@arcgis/portal-components 6.0.0-next.40 → 6.0.0-next.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/{GG6U75ZA.js → 2GIECQ25.js} +1 -1
- package/dist/cdn/{75CT6IMW.js → 2N6K2UUQ.js} +1 -1
- package/dist/cdn/{RTZ2TKM5.js → 36DGXQLJ.js} +1 -1
- package/dist/cdn/{47DKAGRV.js → 3HXQ5Z4C.js} +1 -1
- package/dist/cdn/{KPZGBBDG.js → 3SG67WP5.js} +1 -1
- package/dist/cdn/3ZVDEJPF.js +2 -0
- package/dist/cdn/42AN66SK.js +2 -0
- package/dist/cdn/{6APPSZ7E.js → 4E354KKM.js} +1 -1
- package/dist/cdn/{4VLEUN7I.js → 67FEZD25.js} +1 -1
- package/dist/cdn/{7J22VLBO.js → 6GPAZV4Z.js} +1 -1
- package/dist/cdn/{DT4HGMLS.js → 6XDKSVRF.js} +1 -1
- package/dist/cdn/{N3WRMPM6.js → 6ZYYG64M.js} +1 -1
- package/dist/cdn/{SYXCSFIA.js → 7AG3E7K6.js} +1 -1
- package/dist/cdn/7JDXAVUG.js +2 -0
- package/dist/cdn/{3KGSWW6B.js → 7JKFWVCY.js} +1 -1
- package/dist/cdn/{AZTAWZI5.js → AJEQETRW.js} +1 -1
- package/dist/cdn/{W3JJBZYX.js → AP7UWD4P.js} +1 -1
- package/dist/cdn/CERDMRFQ.js +2 -0
- package/dist/cdn/{UIK6LPA7.js → DFECUYNW.js} +1 -1
- package/dist/cdn/{2574FNAZ.js → DGWOMELT.js} +1 -1
- package/dist/cdn/{LEESUFWE.js → DIWTHL4N.js} +1 -1
- package/dist/cdn/{FFL2L4X5.js → DKUOQCHO.js} +1 -1
- package/dist/cdn/{FIAEPK5L.js → DQL2JT6K.js} +1 -1
- package/dist/cdn/{RKHNP3KL.js → EETYTFHH.js} +1 -1
- package/dist/cdn/FINVGL3V.js +2 -0
- package/dist/cdn/{RXMM6CFK.js → FXXFSYNB.js} +1 -1
- package/dist/cdn/{6AHPTR2E.js → GA4OWLSO.js} +1 -1
- package/dist/cdn/{43A74S72.js → GHDMQJG4.js} +1 -1
- package/dist/cdn/{GZ4ONSFV.js → GY4SY4XC.js} +1 -1
- package/dist/cdn/{OQ2JULON.js → H4TPPTVB.js} +1 -1
- package/dist/cdn/{TP7V25GT.js → IQPJOVDL.js} +1 -1
- package/dist/cdn/{IAWL475A.js → IWPJEUHY.js} +1 -1
- package/dist/cdn/{XVV75AX3.js → JDW7ECBF.js} +1 -1
- package/dist/cdn/{DENQY4OE.js → JGTBDGJ7.js} +1 -1
- package/dist/cdn/{SLK7PV62.js → LVWAYUYZ.js} +1 -1
- package/dist/cdn/{YYVLFAFT.js → ME6XACY6.js} +1 -1
- package/dist/cdn/{P3FFM322.js → N5AG34NK.js} +1 -1
- package/dist/cdn/{JIU6MBGB.js → ODYYTLLQ.js} +1 -1
- package/dist/cdn/{XCOP6QHA.js → OQBLBDR5.js} +1 -1
- package/dist/cdn/{ZG7OW456.js → OWODUQF2.js} +1 -1
- package/dist/cdn/{W6WVMRGQ.js → PM33STYQ.js} +1 -1
- package/dist/cdn/{XE3DCC5D.js → PUHZVFK7.js} +1 -1
- package/dist/cdn/{SUN4MBT3.js → QXPDVHB5.js} +1 -1
- package/dist/cdn/{ZLNBCJE4.js → R45EMSQJ.js} +1 -1
- package/dist/cdn/{RJXIU4GH.js → RDRSZQAR.js} +1 -1
- package/dist/cdn/{X7W4VJO7.js → SGV47YVU.js} +1 -1
- package/dist/cdn/{C7SNE6YG.js → TQX5BOZG.js} +1 -1
- package/dist/cdn/{FTKSVLDI.js → U2J4ST45.js} +1 -1
- package/dist/cdn/{5M25PCH2.js → U3V7PPC2.js} +1 -1
- package/dist/cdn/{LTD5KLLE.js → UCHX4CBR.js} +1 -1
- package/dist/cdn/{5RBH3LGK.js → UCTXRTQZ.js} +1 -1
- package/dist/cdn/UWB23CG4.js +2 -0
- package/dist/cdn/{IOF72CDU.js → VABNHOVG.js} +1 -1
- package/dist/cdn/{OPI4P6VO.js → W6U2HMEK.js} +1 -1
- package/dist/cdn/{LUJGCYQY.js → XSEFGIVV.js} +1 -1
- package/dist/cdn/{7ZU43BL6.js → YCMZ3RVZ.js} +1 -1
- package/dist/cdn/{ZDH4KVAV.js → ZOOEWYFB.js} +1 -1
- package/dist/cdn/assets/portal-item-card/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/portal-navigation/t9n/messages.en.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/portal.js +12 -8
- package/dist/chunks/query.js +1 -1
- package/dist/components/arcgis-portal-item-card/customElement.d.ts +11 -0
- package/dist/components/arcgis-portal-item-card/customElement.js +81 -52
- package/dist/components/arcgis-portal-item-card/index.js +2 -0
- package/dist/components/arcgis-portal-navigation/customElement.d.ts +4 -0
- package/dist/components/arcgis-portal-navigation/customElement.js +265 -264
- package/dist/components/arcgis-portal-navigation/index.js +4 -4
- package/dist/components/arcgis-portal-navigation/types.d.ts +3 -0
- package/dist/components/arcgis-portal-replacement-item-redirect/customElement.js +1 -1
- package/dist/components/arcgis-portal-review-layer-sharing/customElement.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/loader.js +1 -1
- package/dist/types/item.d.ts +4 -0
- 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 +8 -8
- package/dist/cdn/3DOZPC3W.js +0 -2
- package/dist/cdn/46MYBPSS.js +0 -2
- package/dist/cdn/66VV7NHO.js +0 -2
- package/dist/cdn/A5QLPZ57.js +0 -2
- package/dist/cdn/G272JPUS.js +0 -2
- package/dist/cdn/IGLODZPX.js +0 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import { g as ne, c as
|
|
2
|
+
import { g as ne, c as _t } from "../../chunks/runtime.js";
|
|
3
3
|
import { safeStyleMap as Ie, safeClassMap as re, LitElement as yt, createEvent as q } from "@arcgis/lumina";
|
|
4
4
|
import { u as $t } from "../../chunks/useT9n.js";
|
|
5
5
|
import { nothing as M, html as c, svg as kt, css as At } from "lit";
|
|
@@ -9,24 +9,25 @@ import { c as B } from "../../chunks/requests.js";
|
|
|
9
9
|
import { repeat as U } from "lit/directives/repeat.js";
|
|
10
10
|
import { m as Pt } from "../../chunks/icons.js";
|
|
11
11
|
import { i as C, c as ge, a as Nt } from "../../chunks/user2.js";
|
|
12
|
-
import { b as Tt, c as Ct, d as Mt, e as Ot, f as
|
|
13
|
-
import { c as
|
|
12
|
+
import { b as Tt, c as Ct, d as Mt, e as Ot, f as Et } from "../../chunks/portal2.js";
|
|
13
|
+
import { c as Lt, d as jt, e as Dt } from "../../chunks/user.js";
|
|
14
14
|
import { i as zt, a as Gt } from "../../chunks/utils4.js";
|
|
15
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
|
-
import { g as ue, n as Ft, a as de,
|
|
18
|
+
import { g as ue, n as Ft, a as de, f as J, b as Rt } from "../../chunks/portal.js";
|
|
19
|
+
import { g as Wt } from "../../chunks/items.js";
|
|
19
20
|
import { ref as W, createRef as R } from "lit/directives/ref.js";
|
|
20
|
-
import { c as
|
|
21
|
+
import { c as Vt, g as Ht } from "../../chunks/dom.js";
|
|
21
22
|
import { debounce as be } from "@arcgis/toolkit/function";
|
|
22
|
-
import
|
|
23
|
-
import { t as
|
|
24
|
-
import { b as
|
|
23
|
+
import qt from "@arcgis/core/identity/IdentityManager.js";
|
|
24
|
+
import { t as Jt } from "../../chunks/functionalities.js";
|
|
25
|
+
import { b as Kt } from "../../chunks/string.js";
|
|
25
26
|
function ve({ portal: e, productInfo: t }) {
|
|
26
27
|
const { name: i, glyph: n } = t || {};
|
|
27
28
|
return c`<img alt class="logo__glyph" src=${n ?? M}><span class="logo__text"><span class="logo__title">${i}</span>${e?.name && c`<span class="logo__subtitle">${e.name}</span>` || ""}</span>`;
|
|
28
29
|
}
|
|
29
|
-
function
|
|
30
|
+
function Qt({ navigate: e, portal: t, product: i, productInfo: n, productHref: r, messages: o, searchActive: a, showNav: s, projectTitleEditing: l }) {
|
|
30
31
|
const d = a && i === "Online" && !s || i !== "Online" && l && window.innerWidth < 960;
|
|
31
32
|
return !i || !t || !o || d || ["Online", "Enterprise"].includes(i) && !t?.user ? null : r ? c`<a href=${r ?? M} @click=${(h) => {
|
|
32
33
|
e({ event: h, href: r });
|
|
@@ -72,27 +73,27 @@ function Ce({ locale: e, time: t, t9n: i }) {
|
|
|
72
73
|
const r = Ne(n);
|
|
73
74
|
return r ? r[1] === "second" ? i?.lessThanOneMinute || `< ${te[e].format(r[0] > 0 ? 1 : -1, "minutes")}` : te[e].format(r[0], r[1]) : "";
|
|
74
75
|
}
|
|
75
|
-
const
|
|
76
|
+
const Xt = {
|
|
76
77
|
month: "long",
|
|
77
78
|
day: "numeric",
|
|
78
79
|
year: "numeric"
|
|
79
|
-
},
|
|
80
|
+
}, Yt = {
|
|
80
81
|
month: "long",
|
|
81
82
|
day: "numeric"
|
|
82
83
|
};
|
|
83
|
-
function
|
|
84
|
+
function Zt({ locale: e, time: t }, i) {
|
|
84
85
|
if (!e || !t)
|
|
85
86
|
return "";
|
|
86
87
|
const n = new Date(t);
|
|
87
|
-
return xt(n, i ?
|
|
88
|
+
return xt(n, i ? Xt : Yt);
|
|
88
89
|
}
|
|
89
|
-
async function
|
|
90
|
+
async function ei({ portal: e }) {
|
|
90
91
|
if (!e?.user)
|
|
91
92
|
return { result: [] };
|
|
92
93
|
const t = `${e.restUrl}/community/users/${e.user.id}/notifications`, { result: i, error: n } = await B(t);
|
|
93
94
|
return n ? { error: n } : { result: i?.notifications };
|
|
94
95
|
}
|
|
95
|
-
async function
|
|
96
|
+
async function ti(e, t) {
|
|
96
97
|
if (!e?.user)
|
|
97
98
|
return { success: !0 };
|
|
98
99
|
const i = t.map((o) => ({ portal: e, id: o })).map(Me);
|
|
@@ -106,7 +107,7 @@ async function Me({
|
|
|
106
107
|
return n?.success ? { success: !0, id: t } : { success: !1, id: t };
|
|
107
108
|
}
|
|
108
109
|
const Oe = "notifications-menu";
|
|
109
|
-
function
|
|
110
|
+
function ii(e) {
|
|
110
111
|
try {
|
|
111
112
|
const t = decodeURIComponent(e);
|
|
112
113
|
return t !== e ? t : e;
|
|
@@ -114,7 +115,7 @@ function ti(e) {
|
|
|
114
115
|
return e;
|
|
115
116
|
}
|
|
116
117
|
}
|
|
117
|
-
function
|
|
118
|
+
function ni(e) {
|
|
118
119
|
switch (e) {
|
|
119
120
|
case "group_join_admin":
|
|
120
121
|
return "users";
|
|
@@ -169,7 +170,7 @@ function ii(e) {
|
|
|
169
170
|
return "bell";
|
|
170
171
|
}
|
|
171
172
|
}
|
|
172
|
-
function
|
|
173
|
+
function ri({
|
|
173
174
|
notification: e,
|
|
174
175
|
portal: t,
|
|
175
176
|
locale: i,
|
|
@@ -180,9 +181,9 @@ function ni({
|
|
|
180
181
|
date: Ce({ locale: i, time: e.received, t9n: n }),
|
|
181
182
|
id: e.id,
|
|
182
183
|
text: "",
|
|
183
|
-
icon:
|
|
184
|
+
icon: ni(e.type)
|
|
184
185
|
};
|
|
185
|
-
if (e.type === "webapp_not_copied" && t.isPortal && (e.type = "webapp_not_copied_portal"), e.data?.taskTitle && (e.data.taskTitle =
|
|
186
|
+
if (e.type === "webapp_not_copied" && t.isPortal && (e.type = "webapp_not_copied_portal"), e.data?.taskTitle && (e.data.taskTitle = ii(e.data.taskTitle)), e.type === "message_received")
|
|
186
187
|
r.text = e.data.message || "";
|
|
187
188
|
else if (n.types[e.type]) {
|
|
188
189
|
const o = ce({ portal: t, usePortalHostname: !!t.user });
|
|
@@ -193,61 +194,61 @@ function ni({
|
|
|
193
194
|
}
|
|
194
195
|
return null;
|
|
195
196
|
}
|
|
196
|
-
async function
|
|
197
|
+
async function we({
|
|
197
198
|
portal: e,
|
|
198
199
|
locale: t,
|
|
199
200
|
t9n: i
|
|
200
201
|
}) {
|
|
201
202
|
if (!i)
|
|
202
203
|
return [];
|
|
203
|
-
const { result: n, error: r } = await
|
|
204
|
-
return r && console.error(r), n?.length ? n.map((a) =>
|
|
204
|
+
const { result: n, error: r } = await ei({ portal: e });
|
|
205
|
+
return r && console.error(r), n?.length ? n.map((a) => ri({ notification: a, portal: e, t9n: i, locale: t })).filter((a) => a) : [];
|
|
205
206
|
}
|
|
206
|
-
function
|
|
207
|
+
function oi({ notifications: e, messages: t, handleToggleNotifications: i, handleToggleSearch: n, notificationsActive: r }) {
|
|
207
208
|
return t ? c`<calcite-action class="action" scale=l .text=${t.label} icon=bell .indicator=${!!e?.length} id=${Oe} @click=${() => i(!r)} @focusin=${() => n(!1, !0)}></calcite-action>` : null;
|
|
208
209
|
}
|
|
209
210
|
function K({ icon: e, title: t, description: i }) {
|
|
210
211
|
return !t && !i ? null : c`<div class="empty">${e && c`<svg xmlns=http://www.w3.org/2000/svg width=64 height=64 viewBox="0 0 64 64" fill=none>${kt`<path d=${Pt[e] ?? M} fill=var(--calcite-color-border-input) />`}</svg>` || ""}${t && c`<h3 class="notifications__empty__header">${t}</h3>` || ""}${i && c`<p class="notifications__empty__text">${i}</p>` || ""}</div>`;
|
|
211
212
|
}
|
|
212
|
-
function
|
|
213
|
+
function ai({ notifications: e, deleteNotifications: t, messages: i, navigate: n, portal: r, notificationsActive: o, handleToggleNotifications: a, notificationDeleteProgress: s }) {
|
|
213
214
|
return i ? c`<calcite-popover .referenceElement=${Oe} @calcitePopoverClose=${() => a(!1)} .label=${i.label} auto-close .open=${o} pointer-disabled flip-disabled trigger-disabled placement=bottom-end scale=l .heading=${i.label}>${e?.length > 0 ? c`<div class="notifications notifications--full">${typeof s == "number" && c`<calcite-scrim><calcite-loader type=determinate-value .label=${i.deleting} .value=${s}></calcite-loader></calcite-scrim>` || ""}<calcite-list .label=${i.label} interaction-mode=static class="notifications__list" scale=l>${U(e, (l) => l.id, (l) => c`<calcite-list-item closable @calciteListItemClose=${async () => await t([l.id])} .messageOverrides=${{ close: i.dismissLabel }} .iconStart=${l.icon}><div slot=content class="notification"><div class="notification__message" .innerHTML=${l.text ?? ""} @click=${(d) => {
|
|
214
|
-
const h = d.target,
|
|
215
|
-
if (h.nodeName === "CALCITE-LINK" &&
|
|
215
|
+
const h = d.target, g = h.href;
|
|
216
|
+
if (h.nodeName === "CALCITE-LINK" && g) {
|
|
216
217
|
const p = `${ce({ portal: r, usePortalHostname: !!r.user })}/home/`;
|
|
217
|
-
n({ event: d, href:
|
|
218
|
+
n({ event: d, href: g, relativePath: g.replace(p, "") });
|
|
218
219
|
}
|
|
219
220
|
}}></div><div class="notification__date">${l.date}</div></div></calcite-list-item>`)}</calcite-list></div><calcite-button class="notifications__dismiss" scale=l appearance=transparent @click=${async (l) => {
|
|
220
221
|
const d = l.currentTarget?.parentElement;
|
|
221
222
|
await t(e?.map(({ id: h }) => h)), d.open = !1;
|
|
222
223
|
}}>${i.dismissAllLabel}</calcite-button>` : c`<div class="notifications">${K({ title: i.noNotifications, description: i.noNotificationsDescription, icon: "check" })}</div>`}</calcite-popover>` : null;
|
|
223
224
|
}
|
|
224
|
-
function
|
|
225
|
-
|
|
226
|
-
}
|
|
227
|
-
function si(e) {
|
|
228
|
-
return ui(e, !0);
|
|
225
|
+
function si(e, t, i, n) {
|
|
226
|
+
hi(e, JSON.stringify(t), i);
|
|
229
227
|
}
|
|
230
228
|
function ci(e) {
|
|
229
|
+
return di(e, !0);
|
|
230
|
+
}
|
|
231
|
+
function li(e) {
|
|
231
232
|
try {
|
|
232
233
|
window.localStorage.removeItem(e);
|
|
233
234
|
} catch {
|
|
234
235
|
}
|
|
235
236
|
}
|
|
236
|
-
function
|
|
237
|
+
function ui(e) {
|
|
237
238
|
try {
|
|
238
239
|
window.sessionStorage.removeItem(e);
|
|
239
240
|
} catch {
|
|
240
241
|
}
|
|
241
242
|
}
|
|
242
|
-
function
|
|
243
|
-
const i =
|
|
243
|
+
function di(e, t) {
|
|
244
|
+
const i = pi(e);
|
|
244
245
|
return i && t ? JSON.parse(i) : i;
|
|
245
246
|
}
|
|
246
|
-
function
|
|
247
|
+
function pi(e) {
|
|
247
248
|
const t = document.cookie, i = new RegExp(`(?:^|; )${Ut(e)}=([^;]*)`, "u"), n = t.match(i);
|
|
248
249
|
return n ? decodeURIComponent(n[1]) : "";
|
|
249
250
|
}
|
|
250
|
-
function
|
|
251
|
+
function hi(e, t, i) {
|
|
251
252
|
i = i || {};
|
|
252
253
|
let n = i?.expires;
|
|
253
254
|
if (typeof n == "number") {
|
|
@@ -263,7 +264,7 @@ function pi(e, t, i) {
|
|
|
263
264
|
}
|
|
264
265
|
document.cookie = r;
|
|
265
266
|
}
|
|
266
|
-
async function
|
|
267
|
+
async function mi(e) {
|
|
267
268
|
const i = `owner:"${e.isPortal ? "esri" : "esri_config"}" AND title:"AppSwitcher Config" AND type:"Application Configuration"`, n = `${e.restUrl}/search`;
|
|
268
269
|
return await B(n, { query: {
|
|
269
270
|
num: 1,
|
|
@@ -273,17 +274,17 @@ async function hi(e) {
|
|
|
273
274
|
q: i
|
|
274
275
|
} });
|
|
275
276
|
}
|
|
276
|
-
async function
|
|
277
|
+
async function fi(e) {
|
|
277
278
|
const t = { appSwitcher: { apps: [] } };
|
|
278
279
|
if (!e?.id || !e.user)
|
|
279
280
|
return t;
|
|
280
|
-
const { result: i } = await
|
|
281
|
+
const { result: i } = await mi(e), n = i?.results?.[0];
|
|
281
282
|
if (!n)
|
|
282
283
|
return t;
|
|
283
284
|
const r = n.id;
|
|
284
285
|
return (await Pe(e, r)).result;
|
|
285
286
|
}
|
|
286
|
-
async function
|
|
287
|
+
async function gi(e, t, i) {
|
|
287
288
|
if (!t || !e?.length)
|
|
288
289
|
return { result: null };
|
|
289
290
|
const n = `${i.restUrl}/search`;
|
|
@@ -294,7 +295,7 @@ async function fi(e, t, i) {
|
|
|
294
295
|
}
|
|
295
296
|
});
|
|
296
297
|
}
|
|
297
|
-
async function
|
|
298
|
+
async function bi(e) {
|
|
298
299
|
const t = `${e.restUrl}/search`, i = {
|
|
299
300
|
num: 10,
|
|
300
301
|
start: 0,
|
|
@@ -304,15 +305,15 @@ async function gi(e) {
|
|
|
304
305
|
}, { result: n } = await B(t, { query: i }), r = n?.results?.[0]?.id;
|
|
305
306
|
return r ? (await Pe(e, r))?.result?.blockedApps || [] : [];
|
|
306
307
|
}
|
|
307
|
-
function
|
|
308
|
+
function vi(e, t) {
|
|
308
309
|
const i = e?.toLowerCase() || "", n = `${t.title || ""} ${t.label || ""}`;
|
|
309
310
|
return !i || n.toLowerCase().includes(i);
|
|
310
311
|
}
|
|
311
|
-
function
|
|
312
|
-
if (
|
|
312
|
+
function wi() {
|
|
313
|
+
if (ci("APSW-query")?.expires > (/* @__PURE__ */ new Date()).setHours((/* @__PURE__ */ new Date()).getHours()))
|
|
313
314
|
return !0;
|
|
314
315
|
const t = { expires: (/* @__PURE__ */ new Date()).setHours((/* @__PURE__ */ new Date()).getHours() + 5) };
|
|
315
|
-
return
|
|
316
|
+
return si(
|
|
316
317
|
"APSW-query",
|
|
317
318
|
t,
|
|
318
319
|
{
|
|
@@ -322,7 +323,7 @@ function vi() {
|
|
|
322
323
|
}
|
|
323
324
|
), !1;
|
|
324
325
|
}
|
|
325
|
-
function
|
|
326
|
+
function _e(e) {
|
|
326
327
|
const i = [
|
|
327
328
|
"api-for-python",
|
|
328
329
|
"appstudio",
|
|
@@ -417,102 +418,102 @@ function _i(e, t) {
|
|
|
417
418
|
o && n.push(o);
|
|
418
419
|
}), n);
|
|
419
420
|
}
|
|
420
|
-
function
|
|
421
|
+
function P(e, t) {
|
|
421
422
|
return t && t[e.toLowerCase()]?.valid || !1;
|
|
422
423
|
}
|
|
423
|
-
function wi(e, t) {
|
|
424
|
-
return e?.portalProperties && !e.portalProperties?.openData?.enabled ? !1 : I("HubforArcGIS", t);
|
|
425
|
-
}
|
|
426
424
|
function yi(e, t) {
|
|
425
|
+
return e?.portalProperties && !e.portalProperties?.openData?.enabled ? !1 : P("HubforArcGIS", t);
|
|
426
|
+
}
|
|
427
|
+
function $i(e, t) {
|
|
427
428
|
if (!e)
|
|
428
429
|
return !1;
|
|
429
430
|
const i = [
|
|
430
431
|
"portal:publisher:publishFeeds",
|
|
431
432
|
"portal:publisher:publishRealTimeAnalytics",
|
|
432
433
|
"portal:publisher:publishBigDataAnalytics"
|
|
433
|
-
], r = (e?.privileges || []).some((a) => i.includes(a)), o =
|
|
434
|
+
], r = (e?.privileges || []).some((a) => i.includes(a)), o = P("velocity", t);
|
|
434
435
|
return r && o;
|
|
435
436
|
}
|
|
436
|
-
function
|
|
437
|
-
return
|
|
437
|
+
function ki(e) {
|
|
438
|
+
return P("HubforArcGIS", e);
|
|
438
439
|
}
|
|
439
|
-
function
|
|
440
|
-
return !(e.isPortal && e.portalProperties?.newMapViewerEnabled === !1) &&
|
|
440
|
+
function Ai(e, t) {
|
|
441
|
+
return !(e.isPortal && e.portalProperties?.newMapViewerEnabled === !1) && P("arcgisWebApps", t);
|
|
441
442
|
}
|
|
442
|
-
function
|
|
443
|
+
function xi(e) {
|
|
443
444
|
return !!e.helperServices?.rasterAnalytics && !!e.helperServices.orthoMapping;
|
|
444
445
|
}
|
|
445
|
-
function
|
|
446
|
+
function Si(e, t, i) {
|
|
446
447
|
const n = i && (!e.isPortal || !!e.sourceJSON?.supportsHostedNotebooks), r = !!t?.privileges?.length && t.privileges.some((o) => o === "premium:publisher:createNotebooks");
|
|
447
448
|
return n && r;
|
|
448
449
|
}
|
|
449
|
-
function
|
|
450
|
+
function Ii(e, t) {
|
|
450
451
|
return !!e.helperServices?.locationTracking && t;
|
|
451
452
|
}
|
|
452
|
-
function
|
|
453
|
+
function Pi(e, t, i, n) {
|
|
453
454
|
const r = e?.user;
|
|
454
455
|
return {
|
|
455
456
|
"Open Data": {
|
|
456
|
-
hasAccess: () =>
|
|
457
|
+
hasAccess: () => yi(e, n)
|
|
457
458
|
},
|
|
458
459
|
AppStudio: {
|
|
459
|
-
hasAccess: () =>
|
|
460
|
+
hasAccess: () => P("arcgisWebApps", n)
|
|
460
461
|
},
|
|
461
462
|
"ArcGIS Velocity": {
|
|
462
|
-
hasAccess: () => e.isPortal ||
|
|
463
|
+
hasAccess: () => e.isPortal || $i(r, n)
|
|
463
464
|
},
|
|
464
465
|
"ArcGIS Hub": {
|
|
465
|
-
hasAccess: () =>
|
|
466
|
+
hasAccess: () => P("HubforArcGIS", n)
|
|
466
467
|
},
|
|
467
468
|
"ArcGIS Enterprise Sites": {
|
|
468
|
-
hasAccess: () =>
|
|
469
|
+
hasAccess: () => ki(n)
|
|
469
470
|
},
|
|
470
471
|
"ArcGIS QuickCapture Web Designer": {
|
|
471
|
-
hasAccess: () =>
|
|
472
|
+
hasAccess: () => P("arcgisWebApps", n)
|
|
472
473
|
},
|
|
473
474
|
"ArcGIS Dashboards": {
|
|
474
|
-
hasAccess: () =>
|
|
475
|
+
hasAccess: () => P("dashboards", n)
|
|
475
476
|
},
|
|
476
477
|
"Map Viewer": {
|
|
477
|
-
hasAccess: () =>
|
|
478
|
+
hasAccess: () => Ai(e, n)
|
|
478
479
|
},
|
|
479
480
|
"Map Viewer Classic": {
|
|
480
|
-
hasAccess: () =>
|
|
481
|
+
hasAccess: () => P("arcgisWebApps", n)
|
|
481
482
|
},
|
|
482
483
|
"Operations Dashboard for ArcGIS": {
|
|
483
|
-
hasAccess: () =>
|
|
484
|
+
hasAccess: () => P("opsdashboard", n)
|
|
484
485
|
},
|
|
485
486
|
"ArcGIS Dashboards Classic": {
|
|
486
|
-
hasAccess: () =>
|
|
487
|
+
hasAccess: () => P("opsdashboard", n)
|
|
487
488
|
},
|
|
488
489
|
"Ortho Maker": {
|
|
489
|
-
hasAccess: () =>
|
|
490
|
+
hasAccess: () => xi(e)
|
|
490
491
|
},
|
|
491
492
|
Notebook: {
|
|
492
|
-
hasAccess: () =>
|
|
493
|
+
hasAccess: () => Si(e, r, t)
|
|
493
494
|
},
|
|
494
495
|
"Scene Viewer": {
|
|
495
|
-
hasAccess: () =>
|
|
496
|
+
hasAccess: () => P("arcgisWebApps", n)
|
|
496
497
|
},
|
|
497
498
|
"Story Maps": {
|
|
498
|
-
hasAccess: () =>
|
|
499
|
+
hasAccess: () => P("arcgisWebApps", n)
|
|
499
500
|
},
|
|
500
501
|
Survey123: {
|
|
501
|
-
hasAccess: () =>
|
|
502
|
+
hasAccess: () => P("survey123", n)
|
|
502
503
|
},
|
|
503
504
|
"Track Viewer": {
|
|
504
|
-
hasAccess: () =>
|
|
505
|
+
hasAccess: () => Ii(e, i)
|
|
505
506
|
},
|
|
506
507
|
"Instant Apps": {
|
|
507
508
|
// For Portal
|
|
508
|
-
hasAccess: () =>
|
|
509
|
+
hasAccess: () => P("arcgisWebApps", n)
|
|
509
510
|
},
|
|
510
511
|
"ArcGIS Maps for Adobe Creative Cloud": {
|
|
511
|
-
hasAccess: () =>
|
|
512
|
+
hasAccess: () => P("arcgisWebApps", n) && !e.isPortal
|
|
512
513
|
}
|
|
513
514
|
};
|
|
514
515
|
}
|
|
515
|
-
function
|
|
516
|
+
function Ni(e) {
|
|
516
517
|
let t = {
|
|
517
518
|
arcgisonline: 1,
|
|
518
519
|
opsdashboard: 1,
|
|
@@ -543,7 +544,7 @@ function oe(e) {
|
|
|
543
544
|
function V(e) {
|
|
544
545
|
return ne(`assets/portal-navigation/apps/${e || ""}`);
|
|
545
546
|
}
|
|
546
|
-
function
|
|
547
|
+
function Ee(e, t, i) {
|
|
547
548
|
return e.icon ? `${t.restUrl}/portals/self/resources/${e.icon}?token=${i}` : `${t.restUrl}/content/items/${e.itemId}/resources/${e.image || e.properties?.appSwitcher?.image}?token=${i}`;
|
|
548
549
|
}
|
|
549
550
|
function G(e, t, i) {
|
|
@@ -553,31 +554,31 @@ function G(e, t, i) {
|
|
|
553
554
|
}
|
|
554
555
|
return e.title === "ArcGIS GeoBIM" && (e.label = "ArcGIS GeoBIM"), delete e.isLicensed, delete e.privileges, e.itemId = t, e;
|
|
555
556
|
}
|
|
556
|
-
function
|
|
557
|
+
function Le() {
|
|
557
558
|
return `${V()}svg-app-circle.svg`;
|
|
558
559
|
}
|
|
559
|
-
function
|
|
560
|
+
function Ti(e, t, i) {
|
|
560
561
|
const n = e.properties?.appSwitcher?.image || e.icon;
|
|
561
562
|
return {
|
|
562
563
|
abbr: e.properties?.appSwitcher?.abbr || e.abbreviation,
|
|
563
564
|
itemId: e.itemId,
|
|
564
565
|
canAccess: !0,
|
|
565
566
|
webMappingApp: !0,
|
|
566
|
-
image: n ?
|
|
567
|
+
image: n ? Ee(e, t, i) : void 0,
|
|
567
568
|
label: e.title || e.label,
|
|
568
569
|
url: e.url,
|
|
569
|
-
placeHolderIcon: e.placeHolderIcon ||
|
|
570
|
+
placeHolderIcon: e.placeHolderIcon || Le()
|
|
570
571
|
};
|
|
571
572
|
}
|
|
572
|
-
function
|
|
573
|
-
return e.appSwitcher?.image || e.icon ? e.image =
|
|
573
|
+
function Ci(e, t, i) {
|
|
574
|
+
return e.appSwitcher?.image || e.icon ? e.image = Ee(e, t, i) : e.placeHolderIcon = Le(), e.abbr = e.appSwitcher?.abbr || e.abbreviation, delete e.abbreviation, delete e.appSwitcher, delete e.approvedApp, delete e.webMappingApp, e;
|
|
574
575
|
}
|
|
575
576
|
function ye(e, t) {
|
|
576
577
|
e.forEach((i) => {
|
|
577
578
|
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"));
|
|
578
579
|
});
|
|
579
580
|
}
|
|
580
|
-
async function
|
|
581
|
+
async function Mi({
|
|
581
582
|
userApps: e,
|
|
582
583
|
servers: t,
|
|
583
584
|
portal: i,
|
|
@@ -590,58 +591,58 @@ async function Ci({
|
|
|
590
591
|
willQueryForItems: d,
|
|
591
592
|
approvedApps: h
|
|
592
593
|
}) {
|
|
593
|
-
const
|
|
594
|
+
const g = {}, p = {}, w = Pi(i, l, s, n), A = Ni(i), y = [], _ = e.length;
|
|
594
595
|
for (let m = 0; m < _; m++) {
|
|
595
|
-
const u = e[m],
|
|
596
|
-
let
|
|
597
|
-
const $ = !u.serverFunction || t?.some((k) => (k.serverFunction?.split(",") || []).includes(u.serverFunction)),
|
|
596
|
+
const u = e[m], f = u.itemId || u.title;
|
|
597
|
+
let S = !0;
|
|
598
|
+
const $ = !u.serverFunction || t?.some((k) => (k.serverFunction?.split(",") || []).includes(u.serverFunction)), I = r?.some(
|
|
598
599
|
(k) => u.itemId && u.itemId === k.itemid || u.title && u.title === k.title
|
|
599
600
|
);
|
|
600
|
-
if (f
|
|
601
|
+
if (g[f] = 1, p[f] = u, I || oe(i) && !u.showInLocationPlatform || i.sourceJSON?.portalDeploymentType === "ArcGISEnterpriseOnKubernetes" && u.supportsKubernetes === !1)
|
|
601
602
|
continue;
|
|
602
|
-
const
|
|
603
|
-
if (w[
|
|
603
|
+
const b = u.title;
|
|
604
|
+
if (w[b] && !w[b]?.hasAccess())
|
|
604
605
|
continue;
|
|
605
606
|
const j = i.sourceJSON?.subscriptionInfo;
|
|
606
607
|
if (u.subscriptionType) {
|
|
607
|
-
j?.type === u.subscriptionType && (p[
|
|
608
|
+
j?.type === u.subscriptionType && (p[f].canAccess = !0, y.push(G(u, f, i)));
|
|
608
609
|
continue;
|
|
609
610
|
}
|
|
610
611
|
if (u.orgCapabilities) {
|
|
611
|
-
a?.length && a.some((
|
|
612
|
+
a?.length && a.some((L) => u.orgCapabilities?.includes(L.id)) && (p[f].canAccess = !0, y.push(G(u, f, i)));
|
|
612
613
|
continue;
|
|
613
614
|
}
|
|
614
615
|
if (!u.privileges?.length && !u.isLicensed && $ && (u.label !== "ArcGIS Location Platform" || oe(i))) {
|
|
615
|
-
p[
|
|
616
|
+
p[f].canAccess = !0, y.push(G(u, f, i));
|
|
616
617
|
continue;
|
|
617
618
|
}
|
|
618
619
|
if (i.user?.sourceJSON?.userLicenseTypeId?.toLowerCase() === "storytellerut" && u.label?.toLowerCase() === "storymaps") {
|
|
619
|
-
p[
|
|
620
|
+
p[f].canAccess = !0, y.push(G(u, f, i));
|
|
620
621
|
continue;
|
|
621
622
|
}
|
|
622
623
|
if (u.privileges?.length && i.user?.privileges) {
|
|
623
624
|
for (let k = 0; k < u.privileges.length; k++)
|
|
624
625
|
if (!i.user.privileges.includes(u.privileges[k])) {
|
|
625
|
-
|
|
626
|
+
S = !1;
|
|
626
627
|
break;
|
|
627
628
|
}
|
|
628
|
-
if (!u.isLicensed &&
|
|
629
|
-
p[
|
|
629
|
+
if (!u.isLicensed && S && $) {
|
|
630
|
+
p[f].canAccess = !0, y.push(G(u, f, i));
|
|
630
631
|
continue;
|
|
631
632
|
}
|
|
632
633
|
}
|
|
633
|
-
if (u.isLicensed &&
|
|
634
|
+
if (u.isLicensed && S && $) {
|
|
634
635
|
for (let k = 0; k < o.length; k++)
|
|
635
|
-
if (
|
|
636
|
-
p[
|
|
636
|
+
if (f === o[k].itemId || f === o[k].title) {
|
|
637
|
+
p[f].canAccess = !0, y.push(G(u, f, i));
|
|
637
638
|
break;
|
|
638
639
|
}
|
|
639
640
|
}
|
|
640
641
|
}
|
|
641
|
-
const
|
|
642
|
+
const N = await Bt(i);
|
|
642
643
|
return o.forEach((m) => {
|
|
643
|
-
if (m.type === "Web Mapping Application" && !A[m.clientId] && !
|
|
644
|
-
const u =
|
|
644
|
+
if (m.type === "Web Mapping Application" && !A[m.clientId] && !g[m.itemId] && m.url && m.title && !g[m.title] && !m.typeKeywords.includes("hideFromAppSwitcher")) {
|
|
645
|
+
const u = Ti(m, i, N);
|
|
645
646
|
p[m.itemId] = u, y.push(u);
|
|
646
647
|
}
|
|
647
648
|
}), {
|
|
@@ -654,7 +655,7 @@ async function Ci({
|
|
|
654
655
|
approvedApp: !0,
|
|
655
656
|
canAccess: !d
|
|
656
657
|
};
|
|
657
|
-
return p[m.itemId] = u,
|
|
658
|
+
return p[m.itemId] = u, Ci(u, i, N);
|
|
658
659
|
}),
|
|
659
660
|
...y
|
|
660
661
|
],
|
|
@@ -676,44 +677,44 @@ function $e({
|
|
|
676
677
|
let a = Object.keys(i).map((s) => i[s]).filter((s) => s.itemId === t.uid || s.title === t.uid).shift();
|
|
677
678
|
return a && !i[t.uid] && (t.uid = a.itemId || a.title || ""), a?.hasBeenPopulated || (a ? ((t.hasChanged || a.hasChanged || !a.canAccess && !a.ignoreNoAccess) && zt(r.user) && (i[t.uid].hasChanged = !0, i[t.uid].ignoreNoAccess = t.ignoreNoAccess), t.isNew && (i[t.uid].isNew = !0), delete n[t.uid]) : (a = t, a.canAccess = !1, a.itemId = t.uid, i[t.uid] = a), i[t.uid].hasBeenPopulated = !0, e.push(a)), e;
|
|
678
679
|
}
|
|
679
|
-
async function
|
|
680
|
+
async function Oi({
|
|
680
681
|
portal: e,
|
|
681
682
|
trackViewerEnabled: t,
|
|
682
683
|
notebookServerEnabled: i
|
|
683
684
|
}) {
|
|
684
685
|
if (!e?.id || !e.user)
|
|
685
686
|
return { apps: [], hiddenApps: {} };
|
|
686
|
-
const n =
|
|
687
|
-
|
|
687
|
+
const n = wi(), [r, o, a, s, l, d, h] = await Promise.all([
|
|
688
|
+
fi(e),
|
|
688
689
|
jt(e),
|
|
689
690
|
Dt(e),
|
|
690
691
|
Tt(e),
|
|
691
692
|
Ct(e),
|
|
692
693
|
Mt(e),
|
|
693
|
-
|
|
694
|
-
]),
|
|
694
|
+
bi(e)
|
|
695
|
+
]), g = e.isPortal ? await Ot(e) : null, p = a?.result?.properties;
|
|
695
696
|
let w = r?.appSwitcher?.apps || [];
|
|
696
697
|
e.isPortal || (w = w.filter(
|
|
697
698
|
($) => $.title !== "Map Viewer Classic" || e.sourceJSON.created < /* @__PURE__ */ new Date("February 26 2025")
|
|
698
699
|
));
|
|
699
700
|
const A = s?.result?.approvedApps?.filter(($) => !$.hideForNonPrivilegedMember) || [], y = {};
|
|
700
701
|
o?.forEach(($) => {
|
|
701
|
-
const
|
|
702
|
-
|
|
702
|
+
const I = $.clientId?.toLowerCase();
|
|
703
|
+
I && (y[I] = {
|
|
703
704
|
valid: !0,
|
|
704
705
|
itemId: $.itemId,
|
|
705
706
|
clientId: $.clientId
|
|
706
707
|
});
|
|
707
708
|
}), l?.forEach(($) => {
|
|
708
|
-
const
|
|
709
|
-
|
|
709
|
+
const I = $.id?.toLowerCase();
|
|
710
|
+
I && (y[I] = {
|
|
710
711
|
valid: !0,
|
|
711
712
|
clientId: $.id
|
|
712
713
|
});
|
|
713
714
|
});
|
|
714
|
-
const _ = _i(d, h), { apps:
|
|
715
|
+
const _ = _i(d, h), { apps: N, appDictionary: v } = await Mi({
|
|
715
716
|
userApps: w,
|
|
716
|
-
servers:
|
|
717
|
+
servers: g,
|
|
717
718
|
portal: e,
|
|
718
719
|
blockedApps: _,
|
|
719
720
|
provisionedListings: o,
|
|
@@ -727,36 +728,36 @@ async function Mi({
|
|
|
727
728
|
p?.appLauncher && (p?.appLauncher.primary && ye(p?.appLauncher.primary, e), p?.appLauncher.secondary && ye(p?.appLauncher.secondary, e));
|
|
728
729
|
let m = [], u = [];
|
|
729
730
|
if (!p?.appLauncher?.primary || !p?.appLauncher.secondary)
|
|
730
|
-
m =
|
|
731
|
+
m = N.slice().sort(($, I) => ($.label || "") < (I.label || "") ? -1 : 1), m = ie(m, _), u = [];
|
|
731
732
|
else {
|
|
732
|
-
const { result: $ } = await
|
|
733
|
+
const { result: $ } = await gi(A, n, e);
|
|
733
734
|
$?.results?.length && $.results.forEach((x) => {
|
|
734
|
-
const
|
|
735
|
-
|
|
735
|
+
const b = v[x.id];
|
|
736
|
+
b.canAccess = !0, b.hasChanged = b.url !== x.url ? !!x.url : !1;
|
|
736
737
|
});
|
|
737
|
-
const
|
|
738
|
+
const I = { ...v };
|
|
738
739
|
p?.appLauncher?.primary?.forEach((x) => {
|
|
739
740
|
x.label === "Map Viewer" && (x.uid = "Map Viewer");
|
|
740
741
|
}), m = p?.appLauncher.primary.reduce(
|
|
741
|
-
(x,
|
|
742
|
+
(x, b) => $e({ apps: x, app: b, appDictionary: v, newAppDictionary: I, portal: e }),
|
|
742
743
|
[]
|
|
743
744
|
) || [], u = p?.appLauncher.secondary.reduce(
|
|
744
|
-
(x,
|
|
745
|
+
(x, b) => $e({ apps: x, app: b, appDictionary: v, newAppDictionary: I, portal: e }),
|
|
745
746
|
[]
|
|
746
747
|
) || [], m = ie(m, _), u = ie(u, _), oe(e) && (m = m.filter((x) => x.canAccess), u = u.filter((x) => x.canAccess));
|
|
747
|
-
for (const x of Object.keys(
|
|
748
|
-
|
|
748
|
+
for (const x of Object.keys(I))
|
|
749
|
+
I[x].canAccess && (I[x].isNew = !0, v[x] = I[x], m.push(I[x]));
|
|
749
750
|
}
|
|
750
|
-
const
|
|
751
|
+
const f = [...m, ...u], S = u.reduce(($, I) => (I.itemId && ($[I.itemId] = !0), $), {});
|
|
751
752
|
return {
|
|
752
|
-
apps:
|
|
753
|
-
hiddenApps:
|
|
753
|
+
apps: f,
|
|
754
|
+
hiddenApps: S,
|
|
754
755
|
signInSettings: d,
|
|
755
756
|
licenses: y,
|
|
756
757
|
userProperties: p
|
|
757
758
|
};
|
|
758
759
|
}
|
|
759
|
-
function
|
|
760
|
+
function Ei(e, t) {
|
|
760
761
|
return !e?.itemId || !t ? !1 : t[e.itemId];
|
|
761
762
|
}
|
|
762
763
|
async function Li({
|
|
@@ -775,7 +776,7 @@ async function Li({
|
|
|
775
776
|
},
|
|
776
777
|
{ primary: [], secondary: [] }
|
|
777
778
|
), o = { ...i || {}, appLauncher: r };
|
|
778
|
-
return await
|
|
779
|
+
return await Lt(o, n);
|
|
779
780
|
}
|
|
780
781
|
function je({ app: e }) {
|
|
781
782
|
if (!e)
|
|
@@ -783,36 +784,36 @@ function je({ app: e }) {
|
|
|
783
784
|
if (!e.canAccess)
|
|
784
785
|
return c`<span class="list-item__logo list-item__logo-empty"></span>`;
|
|
785
786
|
const t = !e.image && e.abbr;
|
|
786
|
-
return c`${t && c`<span class="list-item__logo">${e.placeHolderIcon && c`<img src=${
|
|
787
|
+
return c`${t && c`<span class="list-item__logo">${e.placeHolderIcon && c`<img src=${_e(e.placeHolderIcon) ?? M} class="list-item__logo-bg" alt>` || ""}<span style=${Ie({ fontSize: e.fontSize || "20px" })} class="list-item__abbr">${e.abbr}</span></span>` || ""}${e.image && c`<img src=${_e(e.image) ?? M} class="list-item__logo" alt>` || ""}`;
|
|
787
788
|
}
|
|
788
|
-
function
|
|
789
|
+
function ji({ app: e, hiddenApps: t, messages: i, toggleAppVisibility: n, handleAppDelete: r }) {
|
|
789
790
|
if (!e || !i)
|
|
790
791
|
return null;
|
|
791
|
-
const o =
|
|
792
|
+
const o = Ei(e, t), { title: a, itemId: s, label: l } = e;
|
|
792
793
|
return c`<calcite-list-item .label=${a || l} class=${re(o ? "app--hidden" : "")}><span slot=content-start>${je({ app: e })}</span>${e.canAccess ? c`<calcite-action .text=${o ? i.show : i.hide} .icon=${o ? "view-hide" : "view-visible"} slot=actions-end @click=${() => s && n(s, !o)}></calcite-action>` : c`<calcite-action .text=${i.delete} icon=x slot=actions-end @click=${() => s && r(s)}></calcite-action>`}</calcite-list-item>`;
|
|
793
794
|
}
|
|
794
|
-
function
|
|
795
|
+
function Di({ app: e, messages: t }) {
|
|
795
796
|
if (!e || !t)
|
|
796
797
|
return null;
|
|
797
798
|
const { title: i, itemId: n, label: r, url: o, isNew: a } = e, s = t?.descriptions?.[i] || t?.descriptions?.[r];
|
|
798
799
|
return c`<li class="list-item"><a class="list-item__link" href=${o ?? M} target=_blank id=${n ?? M} aria-describedby=${`${n}--tooltip`}>${c`<span class="list-item__container">${je({ app: e })}<span class="list-item__title">${r || i}</span>${a && c`<calcite-chip scale=s class="list-item__chip" .label=${t.new}>${t.new}</calcite-chip>` || ""}</span>`}</a>${s && c`<calcite-tooltip .referenceElement=${n} placement=trailing .id=${`${n}--tooltip`} role=tooltip>${s}</calcite-tooltip>` || ""}</li>`;
|
|
799
800
|
}
|
|
800
|
-
function
|
|
801
|
+
function zi({ apps: e, appsLoading: t, appsSearchTerm: i, hiddenApps: n, messages: r, handleAppsSearch: o, handleAppReorder: a, handleAppSave: s, handleAppHide: l, handleAppDelete: d, handleAppCancel: h, handleAppEdit: g, editingApplications: p }) {
|
|
801
802
|
if (!e || !r)
|
|
802
803
|
return null;
|
|
803
|
-
const w = i?.length > 0, A = (e || []).filter((_) => _.itemId && (!n?.[_.itemId] || w) &&
|
|
804
|
+
const w = i?.length > 0, A = (e || []).filter((_) => _.itemId && (!n?.[_.itemId] || w) && vi(i, _)), y = w ? r.noAppResults.replace("{term}", i) : r.noAppsAvailable;
|
|
804
805
|
return p ? c`<div class="list__header"><calcite-button appearance=outline width=half @click=${() => {
|
|
805
806
|
h();
|
|
806
807
|
}}>${r.cancel}</calcite-button><calcite-button width=half @click=${() => {
|
|
807
808
|
s();
|
|
808
809
|
}}>${r.applyChanges}</calcite-button></div><calcite-list .label=${r.allMyApplications} drag-enabled @calciteListDragEnd=${(_) => {
|
|
809
|
-
const { newIndex:
|
|
810
|
-
a({ newIndex:
|
|
811
|
-
}} .loading=${t}>${U(e, (_) => _.itemId, (_) =>
|
|
812
|
-
l({ app:
|
|
810
|
+
const { newIndex: N, oldIndex: v } = _.detail;
|
|
811
|
+
a({ newIndex: N, oldIndex: v });
|
|
812
|
+
}} .loading=${t}>${U(e, (_) => _.itemId, (_) => ji({ app: _, hiddenApps: n, messages: r, toggleAppVisibility: (N, v) => {
|
|
813
|
+
l({ app: N, hidden: v });
|
|
813
814
|
}, handleAppDelete: d }))}</calcite-list>` : c`<div class="list__header"><calcite-input type=search icon .placeholder=${r.searchMyApps} .value=${i} scale=m class="list__search" @calciteInputInput=${(_) => {
|
|
814
815
|
o(_.currentTarget.value);
|
|
815
|
-
}}></calcite-input><calcite-button appearance=transparent kind=neutral icon-start=reorder-cards .label=${r.reorder} @click=${() =>
|
|
816
|
+
}}></calcite-input><calcite-button appearance=transparent kind=neutral icon-start=reorder-cards .label=${r.reorder} @click=${() => g()} id=customize-apps></calcite-button><calcite-tooltip reference-element=customize-apps><span>${r.customizeApps}</span></calcite-tooltip></div>${A?.length > 0 ? c`<ul class="list">${U(A, (_) => _.itemId, (_) => Di({ app: _, messages: r }))}</ul>` : K({ title: y, icon: i ? "search" : "apps" })}`;
|
|
816
817
|
}
|
|
817
818
|
const ke = "portalAppClientId", pe = {
|
|
818
819
|
GeoanalyticsEngine: "geoanalyticsengine",
|
|
@@ -831,7 +832,7 @@ function De(e) {
|
|
|
831
832
|
function Q(e) {
|
|
832
833
|
return ["Location Platform", "GeoAnalytics Fabric", "GeoAnalytics Engine", "Online", "Enterprise"].includes(e);
|
|
833
834
|
}
|
|
834
|
-
function
|
|
835
|
+
function Gi({
|
|
835
836
|
portal: e,
|
|
836
837
|
messages: t,
|
|
837
838
|
licenses: i,
|
|
@@ -840,28 +841,28 @@ function zi({
|
|
|
840
841
|
}) {
|
|
841
842
|
if (!t || !e)
|
|
842
843
|
return [];
|
|
843
|
-
const o = e.sourceJSON?.subscriptionInfo, a =
|
|
844
|
+
const o = e.sourceJSON?.subscriptionInfo, a = Wi({ messages: t, portal: e });
|
|
844
845
|
if (!e.user)
|
|
845
846
|
return a;
|
|
846
847
|
if (!e || !a || e?.user && !i && !C(e))
|
|
847
848
|
return [];
|
|
848
|
-
const s =
|
|
849
|
+
const s = Hi({
|
|
849
850
|
portal: e,
|
|
850
851
|
licenses: i,
|
|
851
852
|
subscriptionInfo: o
|
|
852
|
-
}), l =
|
|
853
|
+
}), l = Vi({
|
|
853
854
|
messages: t,
|
|
854
855
|
portal: e,
|
|
855
856
|
clientId: n,
|
|
856
857
|
signInSettings: r,
|
|
857
858
|
navLinkDictionary: s
|
|
858
859
|
});
|
|
859
|
-
return
|
|
860
|
+
return Ui({ links: l, portal: e });
|
|
860
861
|
}
|
|
861
862
|
function Ae(e, t) {
|
|
862
863
|
return t ? e.configName ? t.indexOf(e.configName) : t.length : 0;
|
|
863
864
|
}
|
|
864
|
-
function
|
|
865
|
+
function Ui({
|
|
865
866
|
links: e,
|
|
866
867
|
portal: t
|
|
867
868
|
}) {
|
|
@@ -877,11 +878,11 @@ function Gi({
|
|
|
877
878
|
newTab: !0
|
|
878
879
|
}), i.order ? e.sort((r, o) => Ae(r, i.order) - Ae(o, i.order)) : e;
|
|
879
880
|
}
|
|
880
|
-
function
|
|
881
|
+
function Bi(e) {
|
|
881
882
|
const { id: t, access: i, isPortal: n } = e;
|
|
882
883
|
return !t && !i && !n;
|
|
883
884
|
}
|
|
884
|
-
function
|
|
885
|
+
function Fi(e, t, i) {
|
|
885
886
|
if (i === "customPage")
|
|
886
887
|
return !1;
|
|
887
888
|
const n = new URL(e), r = t || window.location.pathname;
|
|
@@ -897,7 +898,7 @@ function ze({
|
|
|
897
898
|
groups: l = "all",
|
|
898
899
|
map: d = "all",
|
|
899
900
|
notebook: h = "notebookCreators",
|
|
900
|
-
scene:
|
|
901
|
+
scene: g = "all"
|
|
901
902
|
} = a?.topNav || {};
|
|
902
903
|
let p = ["home"];
|
|
903
904
|
if (!n) {
|
|
@@ -909,7 +910,7 @@ function ze({
|
|
|
909
910
|
...p,
|
|
910
911
|
...s === "all" ? ["gallery"] : [],
|
|
911
912
|
...d === "all" ? ["map"] : [],
|
|
912
|
-
...
|
|
913
|
+
...g === "all" ? ["scene"] : [],
|
|
913
914
|
...l === "all" ? ["groups"] : [],
|
|
914
915
|
...e.isPortal ? ["help"] : []
|
|
915
916
|
];
|
|
@@ -919,7 +920,7 @@ function ze({
|
|
|
919
920
|
...p,
|
|
920
921
|
...(s === "all" || s === "members" && w) && !r ? ["gallery"] : [],
|
|
921
922
|
...(d === "all" || d === "members" && w || d === "mapCreators" && ge(n)) && !r ? ["map"] : [],
|
|
922
|
-
...(
|
|
923
|
+
...(g === "all" || g === "members" && w || g === "sceneCreators" && ge(n)) && !r ? ["scene"] : [],
|
|
923
924
|
...!o && // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
924
925
|
(!e.isPortal || e.sourceJSON.supportsHostedNotebooks) && (h === "members" && w || h === "notebookCreators" && Nt(n)) && !r ? ["notebook"] : [],
|
|
925
926
|
...(l === "all" || l === "members" && w) && !r ? ["groups"] : [],
|
|
@@ -929,7 +930,7 @@ function ze({
|
|
|
929
930
|
function O(e) {
|
|
930
931
|
return `${It({ portal: e })}/`;
|
|
931
932
|
}
|
|
932
|
-
function
|
|
933
|
+
function Ri({
|
|
933
934
|
keys: e,
|
|
934
935
|
navLinkDictionary: t,
|
|
935
936
|
messages: i
|
|
@@ -950,7 +951,7 @@ function Fi({
|
|
|
950
951
|
}
|
|
951
952
|
}), n;
|
|
952
953
|
}
|
|
953
|
-
function
|
|
954
|
+
function Wi({
|
|
954
955
|
messages: e,
|
|
955
956
|
portal: t
|
|
956
957
|
}) {
|
|
@@ -984,9 +985,9 @@ function Ri({
|
|
|
984
985
|
configName: "groups"
|
|
985
986
|
}
|
|
986
987
|
};
|
|
987
|
-
return (
|
|
988
|
+
return (Bi(t) ? ["overview", "pricing", "map", "scene", "help"] : ze({ portal: t })).map((o) => n[o]);
|
|
988
989
|
}
|
|
989
|
-
function
|
|
990
|
+
function Vi({
|
|
990
991
|
messages: e,
|
|
991
992
|
portal: t,
|
|
992
993
|
clientId: i,
|
|
@@ -1014,14 +1015,14 @@ function Wi({
|
|
|
1014
1015
|
href: `${s}#account`,
|
|
1015
1016
|
label: e.account
|
|
1016
1017
|
}
|
|
1017
|
-
] :
|
|
1018
|
+
] : Ri({ keys: a, messages: e, navLinkDictionary: r });
|
|
1018
1019
|
}
|
|
1019
|
-
function
|
|
1020
|
+
function Hi({
|
|
1020
1021
|
portal: e,
|
|
1021
1022
|
licenses: t,
|
|
1022
1023
|
subscriptionInfo: i
|
|
1023
1024
|
}) {
|
|
1024
|
-
const n = e.user, r = O(e), o = i?.options?.includes("Developer"), a =
|
|
1025
|
+
const n = e.user, r = O(e), o = i?.options?.includes("Developer"), a = P("arcgiswebapps", t) || o && P("locationplatformwebapps", t) || C(e);
|
|
1025
1026
|
return {
|
|
1026
1027
|
pricing: { href: `${r}../features/plans/pricing.html` },
|
|
1027
1028
|
overview: { href: `${r}../features/features.html` },
|
|
@@ -1092,25 +1093,25 @@ function Vi({
|
|
|
1092
1093
|
}
|
|
1093
1094
|
};
|
|
1094
1095
|
}
|
|
1095
|
-
function
|
|
1096
|
+
function qi({ portal: e, item: t, messages: i, navigate: n, locale: r }) {
|
|
1096
1097
|
if (!t || !i || !t.modified)
|
|
1097
1098
|
return null;
|
|
1098
|
-
const o = t.modified, a = { lessThanOneMinute: i.lessThanOneMinute }, s = Ne(Te(o)), l = s?.[1] === "year" || s?.[1] === "month" ?
|
|
1099
|
-
return le(t.id, c`<li class="list-item"><a class="list-item__link" href=${h ?? M} @click=${(
|
|
1100
|
-
n({ event:
|
|
1099
|
+
const o = t.modified, a = { lessThanOneMinute: i.lessThanOneMinute }, s = Ne(Te(o)), l = s?.[1] === "year" || s?.[1] === "month" ? Zt({ locale: r, time: o }, s?.[1] === "year") : Ce({ locale: r, time: o, t9n: a }), d = `item.html?id=${t.id}`, h = `${O(e)}${d}}`;
|
|
1100
|
+
return le(t.id, c`<li class="list-item"><a class="list-item__link" href=${h ?? M} @click=${(g) => {
|
|
1101
|
+
n({ event: g, href: h, relativePath: d, item: Wt(t) });
|
|
1101
1102
|
}}>${c`<span class="list-item__container"><span class="list-item__logo list-item__logo--item-type"><arcgis-portal-item-type .item=${t} .user=${e.user} hide-text></arcgis-portal-item-type></span><span class="list-item__content"><span class="list-item__title list-item__title--regular">${t.title}</span><span class="list-item__subtitle">${X(i.lastUpdated, { date: l })}</span></span></span>`}</a></li>`);
|
|
1102
1103
|
}
|
|
1103
|
-
function
|
|
1104
|
-
if (!$ || !i || !
|
|
1104
|
+
function Ji({ locale: e, navigate: t, portal: i, open: n, apps: r, appsLoading: o, hiddenApps: a, appsSearchTerm: s, handlePlatformClose: l, handleAppsSearch: d, handleAppReorder: h, handleAppSave: g, handleAppDelete: p, handleAppHide: w, handleAppCancel: A, handleAppEdit: y, handleItemSearch: _, handlePlatformTabUpdate: N, platformTab: v, editingApplications: m, recentContent: u, recentContentLoading: f, recentContentSearchTerm: S, product: $, platformInfo: I, links: x, messages: b }) {
|
|
1105
|
+
if (!$ || !i || !b)
|
|
1105
1106
|
return null;
|
|
1106
|
-
const { name: j, icon:
|
|
1107
|
-
return c`<calcite-sheet class="platform" .label=${
|
|
1108
|
-
(D.key === "Enter" || D.key === " ") && t({ event: D, href:
|
|
1107
|
+
const { name: j, icon: E } = I || {};
|
|
1108
|
+
return c`<calcite-sheet class="platform" .label=${b.label} position=inline-start display-mode=overlay id=example-sheet .open=${n} @calciteSheetClose=${l}><calcite-panel class="platform__panel"><div slot=header-content class="platform__header"><img src=${E ?? M} class="platform__header-image"><div class="platform__header-text"><h2 class="platform__title">${j}</h2><p class="platform__subtitle">${i.name}</p></div><calcite-action icon=x text="Close menu" scale=l @click=${l}></calcite-action></div><div class="platform__tiles">${x.filter(({ icon: k }) => k).map(({ label: k, href: L, icon: Y, relativePath: H }) => c`<calcite-tile .icon=${Y} .description=${k} .href=${L} alignment=center scale=s @keydown=${(D) => {
|
|
1109
|
+
(D.key === "Enter" || D.key === " ") && t({ event: D, href: L, relativePath: H });
|
|
1109
1110
|
}} @click=${(D) => {
|
|
1110
|
-
t({ event: D, href:
|
|
1111
|
+
t({ event: D, href: L, relativePath: H });
|
|
1111
1112
|
}}></calcite-tile>`)}</div>${i?.user && c`<calcite-tabs layout=center><calcite-tab-nav slot=title-group @calciteTabChange=${(k) => {
|
|
1112
|
-
|
|
1113
|
-
}}>${!C(i) && c`<calcite-tab-title data-id=apps .selected=${
|
|
1113
|
+
N(k.target.selectedTitle?.dataset.id);
|
|
1114
|
+
}}>${!C(i) && c`<calcite-tab-title data-id=apps .selected=${v === "apps"}>${b.myApps}</calcite-tab-title>` || ""}<calcite-tab-title data-id=content .selected=${v === "content"}>${b.recentContent}</calcite-tab-title></calcite-tab-nav></calcite-tabs>` || ""}${!C(i) && v === "apps" && c`${o && c`<calcite-scrim loading></calcite-scrim>` || ""}${zi({ apps: r, appsLoading: o, appsSearchTerm: s, hiddenApps: a, messages: b, handleAppsSearch: d, handleAppReorder: h, handleAppSave: g, handleAppDelete: p, handleAppHide: w, handleAppCancel: A, handleAppEdit: y, editingApplications: m })}` || ""}${v === "content" && c`<div class="list__header"><calcite-input type=search icon .placeholder=${b.searchRecentContent} .value=${S} scale=m class="list__search" .loading=${f} @calciteInputInput=${(k) => _(k.target.value)}></calcite-input></div><div class="list__container">${f && !o && c`<calcite-scrim loading></calcite-scrim>` || ""}${u?.length > 0 || f ? c`<ul class="list">${U(u, (k) => k.id, (k) => qi({ portal: i, messages: b, navigate: t, item: k, locale: e }))}</ul>` : S?.length ? K({ title: X(b.noAppResults, { term: S }), icon: "search" }) : K({ title: b.noContent, icon: "clock" })}</div>` || ""}</calcite-panel></calcite-sheet>`;
|
|
1114
1115
|
}
|
|
1115
1116
|
const ae = [
|
|
1116
1117
|
"new",
|
|
@@ -1123,19 +1124,19 @@ const ae = [
|
|
|
1123
1124
|
"embed",
|
|
1124
1125
|
"details"
|
|
1125
1126
|
];
|
|
1126
|
-
async function
|
|
1127
|
+
async function Ki(e) {
|
|
1127
1128
|
return await Promise.resolve({ status: "success" });
|
|
1128
1129
|
}
|
|
1129
1130
|
function se(e) {
|
|
1130
1131
|
return ae.includes(e.id);
|
|
1131
1132
|
}
|
|
1132
|
-
function
|
|
1133
|
+
function Qi(e) {
|
|
1133
1134
|
return (e || [])?.toSorted((t, i) => {
|
|
1134
1135
|
const n = se(t), r = se(i);
|
|
1135
1136
|
return n && !r ? -1 : r && !n ? 1 : r && n ? ae.indexOf(t.id) - ae.indexOf(i.id) : -1;
|
|
1136
1137
|
});
|
|
1137
1138
|
}
|
|
1138
|
-
function
|
|
1139
|
+
function Xi(e, t) {
|
|
1139
1140
|
const i = {
|
|
1140
1141
|
new: [],
|
|
1141
1142
|
save: [],
|
|
@@ -1155,7 +1156,7 @@ function Qi(e, t) {
|
|
|
1155
1156
|
copyLink: { text: t.copyLink, group: "share" },
|
|
1156
1157
|
embed: { text: t.embed, group: "share" },
|
|
1157
1158
|
details: { text: t.itemDetails, group: "details", external: !0 }
|
|
1158
|
-
}, r =
|
|
1159
|
+
}, r = Qi(e), o = [];
|
|
1159
1160
|
return r.forEach((a) => {
|
|
1160
1161
|
if (!se(a)) {
|
|
1161
1162
|
o.push(a);
|
|
@@ -1168,31 +1169,31 @@ function Qi(e, t) {
|
|
|
1168
1169
|
i[s].push(a);
|
|
1169
1170
|
}), i;
|
|
1170
1171
|
}
|
|
1171
|
-
function
|
|
1172
|
+
function Yi({ navigate: e, portal: t, menuItem: i, messages: n, portalItem: r, openProjectTitleEdit: o, projectMenuClick: a, projectMenuSaveIndicator: s }) {
|
|
1172
1173
|
if (!t || !n || !i || i.id === "details" && !r)
|
|
1173
1174
|
return null;
|
|
1174
|
-
const { external:
|
|
1175
|
-
return le(`${
|
|
1176
|
-
if (
|
|
1175
|
+
const { external: l, id: d, text: h } = i, g = `${O(t)}item.html?id=${r?.id}`;
|
|
1176
|
+
return le(`${d}${h}`, c`<calcite-dropdown-item .iconEnd=${l ? "launch" : void 0} .href=${d === "details" ? g : i.href} .target=${l ? "_blank" : void 0} @calciteDropdownItemSelect=${(p) => {
|
|
1177
|
+
if (d === "rename") {
|
|
1177
1178
|
o?.();
|
|
1178
1179
|
return;
|
|
1179
1180
|
}
|
|
1180
|
-
|
|
1181
|
-
}}>${
|
|
1181
|
+
d === "details" && e({ event: p, href: g }), a?.({ type: d });
|
|
1182
|
+
}} .disabled=${i?.disabled}>${h}${d === "save" && s && c`<calcite-icon icon=bullet-point-large class="project__indicator" scale=s></calcite-icon>` || ""}</calcite-dropdown-item>`);
|
|
1182
1183
|
}
|
|
1183
|
-
function
|
|
1184
|
-
if (!t || !
|
|
1184
|
+
function Zi({ navigate: e, portal: t, projectTitle: i, editedProjectTitle: n, handleProjectTitleSave: r, handleProjectTitleEdit: o, handleProjectTitleCancel: a, openProjectTitleEdit: s, portalItem: l, projectTitleEditing: d, projectTitleSaving: h, projectTitleErrorMessage: g, projectMenuIcon: p, projectMenuSaveIndicator: w, projectMenuClick: A, projectMenuOptions: y, projectTitleInputRef: _, projectButtonRef: N, messages: v }) {
|
|
1185
|
+
if (!t || !v || !y?.length && !i)
|
|
1185
1186
|
return null;
|
|
1186
1187
|
if (!y?.length)
|
|
1187
1188
|
return c`<div class="project__title">${p && c`<calcite-icon .icon=${p} scale=s class="project__menu-icon"></calcite-icon>` || ""}<h1 class="project__title__header">${i}</h1>${w && c`<calcite-icon scale=s icon=bullet-point-large class="project__indicator"></calcite-icon>` || ""}</div>`;
|
|
1188
|
-
const m =
|
|
1189
|
-
return d ? c`<form class="rename" @submit=${async (
|
|
1190
|
-
|
|
1191
|
-
}} @keydown=${(
|
|
1192
|
-
|
|
1193
|
-
}}><calcite-input id=project-title-input type=text scale=l class="rename__input" .label=${
|
|
1194
|
-
}
|
|
1195
|
-
function
|
|
1189
|
+
const m = Xi(y, v), u = !!g;
|
|
1190
|
+
return d ? c`<form class="rename" @submit=${async (f) => {
|
|
1191
|
+
f.preventDefault(), await r?.(n);
|
|
1192
|
+
}} @keydown=${(f) => {
|
|
1193
|
+
f.key === "Escape" && a?.();
|
|
1194
|
+
}}><calcite-input id=project-title-input type=text scale=l class="rename__input" .label=${v.title} .value=${n} .status=${u ? "invalid" : "idle"} @calciteInputInput=${(f) => o?.(f.target.value)} ${W(_)}></calcite-input>${u && c`<calcite-popover open .label=${v.error} .referenceElement=${_?.value || "project-title-input"} pointer-disabled placement=bottom-start><calcite-notice kind=danger open><div slot=message>${g}</div></calcite-notice></calcite-popover>` || ""}<calcite-action .disabled=${h} icon=check scale=l .text=${v?.saveRename} active class="rename__action" type=submit .loading=${h}></calcite-action><calcite-action .disabled=${h} icon=x scale=l .text=${v?.cancelRename} class="rename__action" @click=${() => a?.()}></calcite-action></form>` : c`<calcite-dropdown width=m class="fade-in project__dropdown"><button slot=trigger class="project" ${W(N)}>${p && c`<calcite-icon scale=s .icon=${p} class="project__menu-icon"></calcite-icon>` || ""}<span class="project__text">${i}</span>${w && c`<calcite-icon scale=s icon=bullet-point-large class="project__indicator"></calcite-icon>` || ""}<calcite-icon scale=s icon=chevron-down></calcite-icon></button>${U(Object.entries(m).filter(([f, S]) => S.length), ([f, S]) => f, ([f, S]) => c`<calcite-dropdown-group selection-mode=none>${S.map(($) => Yi({ menuItem: $, navigate: e, portal: t, messages: v, portalItem: l, openProjectTitleEdit: s, projectMenuClick: A, projectMenuSaveIndicator: w }))}</calcite-dropdown-group>`)}</calcite-dropdown>`;
|
|
1195
|
+
}
|
|
1196
|
+
function en(e) {
|
|
1196
1197
|
return ["Location Platform", "Online", "Enterprise"].includes(e);
|
|
1197
1198
|
}
|
|
1198
1199
|
function Ge({
|
|
@@ -1203,7 +1204,7 @@ function Ge({
|
|
|
1203
1204
|
const r = e?.sourceJSON?.vectorSearchEnabled ? `&mode=${t}` : "";
|
|
1204
1205
|
return `search.html?q=${i}${r}`;
|
|
1205
1206
|
}
|
|
1206
|
-
function
|
|
1207
|
+
function tn({ portal: e, item: t, messages: i, navigate: n }) {
|
|
1207
1208
|
if (!t || !i)
|
|
1208
1209
|
return null;
|
|
1209
1210
|
const r = X(i.by, {
|
|
@@ -1212,44 +1213,44 @@ function en({ portal: e, item: t, messages: i, navigate: n }) {
|
|
|
1212
1213
|
}), o = `item.html?id=${t.id}`, a = `${O(e)}${o}`;
|
|
1213
1214
|
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>`);
|
|
1214
1215
|
}
|
|
1215
|
-
function
|
|
1216
|
+
function nn({ portal: e, suggestions: t, messages: i, navigate: n, searchType: r, searchTerm: o }) {
|
|
1216
1217
|
if (!i || !e || !o)
|
|
1217
1218
|
return null;
|
|
1218
1219
|
if (!t)
|
|
1219
1220
|
return c`<div><calcite-loader scale=l .label=${i.loadingResults}></calcite-loader></div>`;
|
|
1220
1221
|
const a = Ge({ portal: e, searchType: r, searchTerm: o }), s = `/${a}`, l = `${O(e)}${a}`;
|
|
1221
|
-
return c`<ul class="list">${t.map((d) =>
|
|
1222
|
+
return c`<ul class="list">${t.map((d) => tn({ messages: i, portal: e, item: d, navigate: n }))}</ul><div class="suggestions__footer"><calcite-button icon-end=arrow-right scale=l appearance=outline class="suggestions__footer__button" kind=neutral round .href=${l} @click=${(d) => {
|
|
1222
1223
|
n({ href: l, event: d, relativePath: s });
|
|
1223
1224
|
}}>${i.viewAll}</calcite-button></div>`;
|
|
1224
1225
|
}
|
|
1225
|
-
function
|
|
1226
|
+
function rn({ portal: e, messages: t, searchType: i, handleSearchTypeChange: n }) {
|
|
1226
1227
|
if (!t || !e?.sourceJSON?.vectorSearchEnabled)
|
|
1227
1228
|
return null;
|
|
1228
1229
|
const r = i === "keyword", o = t.searchType;
|
|
1229
1230
|
return c`<calcite-chip .label=${o.label} .icon=${r ? "text" : "effects"} id=search-type-toggle appearance=solid kind=neutral><span>${r ? o.keywordTitle : o.semanticTitle}</span><calcite-icon icon=chevron-down scale=s class="suggestions__search-type__icon" aria-hidden=true></calcite-icon></calcite-chip><calcite-popover pointer-disabled .label=${t.searchType.label} reference-element=search-type-toggle placement=bottom-end class="suggestions__search-type"><div class="esri-header-search-type-popover-contents"><calcite-list .label=${t.searchType.label} interaction-mode=interactive display-mode=flat scale=m selection-mode=none><calcite-list-item @calciteListItemSelect=${() => n("keyword")} icon-start=text value=keyword .label=${o.keywordTitle} .description=${o.keywordDescription}></calcite-list-item><calcite-list-item @calciteListItemSelect=${() => n("vector")} icon-start=effects value=semantic .label=${o.semanticTitle} .description=${o.semanticDescription}></calcite-list-item></calcite-list></div></calcite-popover>`;
|
|
1230
1231
|
}
|
|
1231
|
-
function
|
|
1232
|
-
if (!
|
|
1232
|
+
function on({ currentPathname: e, navigate: t, product: i, portal: n, messages: r, searchActive: o, searchType: a, searchTerm: s, suggestions: l, searchInputRef: d, searchActionRef: h, searchPopoverRef: g, handleSearch: p, handleToggleSearch: w, handleSearchTypeChange: A }) {
|
|
1233
|
+
if (!en(i) || !r || !n || e?.includes("search.html"))
|
|
1233
1234
|
return null;
|
|
1234
|
-
const y = Ge({ portal: n, searchType: a, searchTerm: s }), _ = `/${y}`,
|
|
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" ?
|
|
1236
|
-
|
|
1237
|
-
}} ${W(d)}></calcite-input><calcite-action icon=x scale=l .text=${r?.close} active class="search__action" @click=${() => w(!1)}></calcite-action><calcite-popover .label=${r.suggestions} reference-element=search-reference-element .open=${o && !!s} pointer-disabled placement=bottom-start trigger-disabled .focusTrapOptions=${{ initialFocus: !1 }} ${W(
|
|
1235
|
+
const y = Ge({ portal: n, searchType: a, searchTerm: s }), _ = `/${y}`, N = `${O(n)}${y}`, v = r.searchType, m = n?.isPortal, u = m ? v.keywordPlaceholderEnterprise : v.keywordPlaceholder, f = m ? v.semanticPlaceholderEnterprise : v.semanticPlaceholder;
|
|
1236
|
+
return o ? c`<div class="search" id=search-reference-element><calcite-input type=search scale=l icon=search class="search__input" .ariaLabel=${r.label} .placeholder=${a === "vector" ? f : u} @calciteInputInput=${(S) => p(S.target.value)} @keydown=${(S) => {
|
|
1237
|
+
S.key === "Enter" && (t({ href: N, event: S, relativePath: _ }), S.defaultPrevented || (window.location.href = N)), S.key === "Escape" && w(!1);
|
|
1238
|
+
}} ${W(d)}></calcite-input><calcite-action icon=x scale=l .text=${r?.close} active class="search__action" @click=${() => w(!1)}></calcite-action><calcite-popover .label=${r.suggestions} reference-element=search-reference-element .open=${o && !!s} pointer-disabled placement=bottom-start trigger-disabled .focusTrapOptions=${{ initialFocus: !1 }} ${W(g)}><div class="suggestions__header"><h3 class="suggestions__title">${r.topResults}</h3>${rn({ portal: n, messages: r, searchType: a, handleSearchTypeChange: A })}</div><div class="suggestions__results">${nn({ portal: n, suggestions: l, navigate: t, messages: r, searchType: a, searchTerm: s })}</div></calcite-popover></div>` : c`<calcite-action icon=search scale=l text=search class="search__action" @click=${() => w(!0)} ${W(h)}></calcite-action>`;
|
|
1238
1239
|
}
|
|
1239
|
-
function
|
|
1240
|
+
function an({ signIn: e, messages: t }) {
|
|
1240
1241
|
return c`<div class="border-start fade-in"><calcite-button class="user__button" slot=trigger appearance=transparent kind=neutral @click=${() => e()}><span class="user__button__contents"><calcite-avatar scale=m class="user__button__avatar"></calcite-avatar><span class="user__button__text"><p class="user__button__username">${t?.signIn || ""}</p></span></span></calcite-button></div>`;
|
|
1241
1242
|
}
|
|
1242
|
-
function
|
|
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: h, newTab:
|
|
1243
|
+
function sn({ navigate: e, portal: t, product: i, links: n, messages: r, currentPathname: o, searchActive: a }) {
|
|
1244
|
+
return Q(i) && n?.length === 0 && t ? c`<div slot=content-start class="site-nav skeleton">${["Overview", "Pricing", "Map", "Scene", "Help"].map((s) => c`<span class="skeleton-line" aria-hidden>${s}</span>`)}</div>` : !i || !t || !r || !Q(i) || !n || a ? null : c`<calcite-menu slot=content-start .label=${r.label} class="site-nav fade-in">${U(n, ({ href: s }) => s, ({ label: s, href: l, relativePath: d, configName: h, newTab: g }) => c`<calcite-menu-item .text=${s} text-enabled .label=${s} .href=${l} .target=${g ? "_blank" : void 0} .active=${Fi(l, o, h)} @click=${(p) => e({ event: p, href: l, relativePath: d })}></calcite-menu-item>`)}</calcite-menu>`;
|
|
1244
1245
|
}
|
|
1245
|
-
function
|
|
1246
|
+
function cn({ userLinks: e, messages: t, navigate: i, openAccountSwitcher: n, portal: r, signOut: o, textDisabled: a }) {
|
|
1246
1247
|
const s = r?.user;
|
|
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: h, label:
|
|
1248
|
+
return !s || !e || !t || e?.account?.options.length < 1 && e?.resources?.options.length < 1 ? null : c`<div class="user"><calcite-dropdown .width=${a ? "l" : "m"} class="user__dropdown"><calcite-button class="user__button" slot=trigger appearance=transparent kind=neutral><span class="user__button__contents"><arcgis-portal-user-avatar .user=${s} .portal=${r} scale=l class="user__button__avatar"></arcgis-portal-user-avatar>${!a && c`<span class="user__button__text"><h2 class="user__button__full user__full">${s.fullName}</h2><p class="user__button__username user__username">${s.username}</p></span>` || ""}</span></calcite-button>${a && c`<div class="user__top"><arcgis-portal-user-avatar .user=${s} .portal=${r} scale=l class="user__avatar"></arcgis-portal-user-avatar><div class="user__top__text"><h2 class="user__top__full user__full">${s.fullName}</h2><p class="user__top__username user__username">${s.username}</p></div></div>` || ""}${Object.values(e).filter((l) => l.options.length).map(({ title: l, options: d }) => c`<calcite-dropdown-group selection-mode=none .groupTitle=${l}>${d.map(({ icon: h, label: g, href: p, relativePath: w }) => c`<calcite-dropdown-item .iconStart=${h} .href=${p} @keydown=${(A) => {
|
|
1248
1249
|
(A.key === "Enter" || A.key === " ") && i({ event: A, href: p, relativePath: w });
|
|
1249
1250
|
}} @click=${(A) => {
|
|
1250
1251
|
i({ event: A, href: p, relativePath: w });
|
|
1251
|
-
}}>${
|
|
1252
|
-
const d =
|
|
1252
|
+
}}>${g}</calcite-dropdown-item>`)}</calcite-dropdown-group>`)}<calcite-dropdown-group selection-mode=none>${n && c`<calcite-dropdown-item icon-start=users @calciteDropdownItemSelect=${(l) => {
|
|
1253
|
+
const d = Vt(l.target, "calcite-dropdown");
|
|
1253
1254
|
d && (d.open = !1), n();
|
|
1254
1255
|
}}>${t.switchAccounts}</calcite-dropdown-item>` || ""}<calcite-dropdown-item icon-start=sign-out @calciteDropdownItemSelect=${() => o()}>${t.signOut}</calcite-dropdown-item></calcite-dropdown-group></calcite-dropdown></div>`;
|
|
1255
1256
|
}
|
|
@@ -1257,7 +1258,7 @@ const Ue = {
|
|
|
1257
1258
|
community: "https://community.esri.com/plugins/common/feature/oauth2sso_v2/sso_login_redirect?referer=https%3A%2F%2Fcommunity.esri.com%2F",
|
|
1258
1259
|
myEsri: "https://my.esri.com"
|
|
1259
1260
|
};
|
|
1260
|
-
function
|
|
1261
|
+
function ln({
|
|
1261
1262
|
messages: e,
|
|
1262
1263
|
userLinks: t
|
|
1263
1264
|
}) {
|
|
@@ -1269,7 +1270,7 @@ function cn({
|
|
|
1269
1270
|
i[n.group].options.push(n);
|
|
1270
1271
|
}), i;
|
|
1271
1272
|
}
|
|
1272
|
-
function
|
|
1273
|
+
function un({
|
|
1273
1274
|
portal: e,
|
|
1274
1275
|
messages: t,
|
|
1275
1276
|
clientId: i
|
|
@@ -1279,10 +1280,10 @@ function ln({
|
|
|
1279
1280
|
account: { title: t?.account, options: [] },
|
|
1280
1281
|
resources: { title: t?.account, options: [] }
|
|
1281
1282
|
};
|
|
1282
|
-
const n =
|
|
1283
|
-
return
|
|
1283
|
+
const n = hn(e), r = dn({ navLinkDictionary: n, messages: t, clientId: i });
|
|
1284
|
+
return ln({ userLinks: r, messages: t });
|
|
1284
1285
|
}
|
|
1285
|
-
function
|
|
1286
|
+
function dn({
|
|
1286
1287
|
navLinkDictionary: e,
|
|
1287
1288
|
messages: t,
|
|
1288
1289
|
clientId: i
|
|
@@ -1297,9 +1298,9 @@ function un({
|
|
|
1297
1298
|
"arcgisBlog",
|
|
1298
1299
|
"help"
|
|
1299
1300
|
];
|
|
1300
|
-
return (he(i) || me(i)) && (n = ["mySettings", "arcgisBlog", "help"]), De(i) && (n = []),
|
|
1301
|
+
return (he(i) || me(i)) && (n = ["mySettings", "arcgisBlog", "help"]), De(i) && (n = []), pn(n, t, e);
|
|
1301
1302
|
}
|
|
1302
|
-
function
|
|
1303
|
+
function pn(e, t, i) {
|
|
1303
1304
|
const n = [];
|
|
1304
1305
|
return e.forEach((r) => {
|
|
1305
1306
|
const o = i[r];
|
|
@@ -1316,8 +1317,8 @@ function dn(e, t, i) {
|
|
|
1316
1317
|
}
|
|
1317
1318
|
}), n;
|
|
1318
1319
|
}
|
|
1319
|
-
function
|
|
1320
|
-
const t = O(e), i =
|
|
1320
|
+
function hn(e) {
|
|
1321
|
+
const t = O(e), i = mn(e), n = `user.html${window.location.pathname.includes("home/user.html") ? "?nav=1" : ""}`;
|
|
1321
1322
|
return {
|
|
1322
1323
|
myProfile: {
|
|
1323
1324
|
href: `${t}${n}`,
|
|
@@ -1348,7 +1349,7 @@ function pn(e) {
|
|
|
1348
1349
|
show: i,
|
|
1349
1350
|
group: "account",
|
|
1350
1351
|
icon: "blank",
|
|
1351
|
-
href:
|
|
1352
|
+
href: gn(e),
|
|
1352
1353
|
newTab: !0
|
|
1353
1354
|
},
|
|
1354
1355
|
arcgisBlog: {
|
|
@@ -1362,38 +1363,38 @@ function pn(e) {
|
|
|
1362
1363
|
show: i,
|
|
1363
1364
|
group: "resources",
|
|
1364
1365
|
icon: "education",
|
|
1365
|
-
href:
|
|
1366
|
+
href: fn(e),
|
|
1366
1367
|
newTab: !0
|
|
1367
1368
|
},
|
|
1368
1369
|
trialDownload: {
|
|
1369
1370
|
group: "resources",
|
|
1370
1371
|
icon: "download-to",
|
|
1371
|
-
show:
|
|
1372
|
+
show: vn(e),
|
|
1372
1373
|
href: `${t}/home/user.html${window.location.pathname.includes("home/user.html") ? "?nav=1&tab=licenses" : "?tab=licenses"}#settings`
|
|
1373
1374
|
}
|
|
1374
1375
|
};
|
|
1375
1376
|
}
|
|
1376
|
-
function
|
|
1377
|
+
function mn(e) {
|
|
1377
1378
|
return !e.isPortal && e?.user?.sourceJSON?.userType === "both";
|
|
1378
1379
|
}
|
|
1379
|
-
function
|
|
1380
|
+
function fn(e) {
|
|
1380
1381
|
return Be(
|
|
1381
1382
|
e,
|
|
1382
1383
|
`${window.location.protocol}//www.esri.com/training/arcgis-online-training`
|
|
1383
1384
|
);
|
|
1384
1385
|
}
|
|
1385
|
-
function
|
|
1386
|
+
function gn(e) {
|
|
1386
1387
|
return Be(e, Ue.myEsri);
|
|
1387
1388
|
}
|
|
1388
1389
|
function Be(e, t) {
|
|
1389
|
-
const i = de(e), n =
|
|
1390
|
+
const i = de(e), n = bn(e), r = `https://accounts${n ? n === "dev" ? "-dev" : "-stg" : ""}.esri.com/`, o = `&authBaseUrl=${J(i.replace("/sharing/rest/", ""), e)}`, a = `${r}LoginHandler/switchuser?`, s = `username=${e?.user?.username ?? ""}&redirect_uri=${t}${o}`;
|
|
1390
1391
|
return `${a}${s}`;
|
|
1391
1392
|
}
|
|
1392
|
-
function
|
|
1393
|
+
function bn(e) {
|
|
1393
1394
|
const t = e.portalHostname;
|
|
1394
1395
|
return t?.includes("dev") ? "dev" : t?.includes("qa") ? "qa" : "";
|
|
1395
1396
|
}
|
|
1396
|
-
function
|
|
1397
|
+
function vn(e) {
|
|
1397
1398
|
return !e?.isPortal && ["Trial", "Trial Press"].includes(e?.sourceJSON?.subscriptionInfo?.type);
|
|
1398
1399
|
}
|
|
1399
1400
|
function Fe(e) {
|
|
@@ -1631,7 +1632,7 @@ function Re({
|
|
|
1631
1632
|
function We({ portal: e, clientId: t }) {
|
|
1632
1633
|
return e?.sourceJSON?.subscriptionInfo?.options?.includes("Developer") ? "Location Platform" : me(t) ? "GeoAnalytics Fabric" : he(t) ? "GeoAnalytics Engine" : e?.isPortal ? "Enterprise" : "Online";
|
|
1633
1634
|
}
|
|
1634
|
-
function
|
|
1635
|
+
function wn(e) {
|
|
1635
1636
|
const t = We(e);
|
|
1636
1637
|
return Re(Fe(t));
|
|
1637
1638
|
}
|
|
@@ -1645,30 +1646,30 @@ function _n() {
|
|
|
1645
1646
|
window.location.href
|
|
1646
1647
|
)}` : window.location.href = `./signin.html?locale=${e}&useLandingPage=true`;
|
|
1647
1648
|
}
|
|
1648
|
-
function
|
|
1649
|
+
function yn({ portal: e, clientId: t }) {
|
|
1649
1650
|
const i = ce({ portal: e });
|
|
1650
1651
|
if (e?.isPortal) {
|
|
1651
1652
|
const n = e.access === "private" ? J("signin.html", e) : e.allSSL || window.location.protocol === "https:" ? J("./index.html", e) : `${i}/index.html`;
|
|
1652
|
-
|
|
1653
|
+
kn(e, n);
|
|
1653
1654
|
} else
|
|
1654
1655
|
window.location.href = `${i}/pages/Account/manage_accounts.html#client_id=${t}&signout=true`;
|
|
1655
1656
|
}
|
|
1656
|
-
function
|
|
1657
|
-
|
|
1657
|
+
function $n() {
|
|
1658
|
+
li(ke), ui(ke);
|
|
1658
1659
|
}
|
|
1659
|
-
function
|
|
1660
|
+
function kn(e, t = window.location.href) {
|
|
1660
1661
|
const i = window.location.href.startsWith("http://"), n = Rt(e);
|
|
1661
|
-
|
|
1662
|
+
qt.destroyCredentials(), $n();
|
|
1662
1663
|
const r = new URL(J(`${de(e)}oauth2/signout`, e)), { searchParams: o } = r;
|
|
1663
1664
|
o.append("client_id", "arcgisonline"), o.append("redirect_uri", t), n && i && (e.isPortal || e.user?.sourceJSON.provider === "enterprise") && o.append("token", n), window.location.href = r.href;
|
|
1664
1665
|
}
|
|
1665
1666
|
function z(e, t) {
|
|
1666
1667
|
if (!e)
|
|
1667
1668
|
return 0;
|
|
1668
|
-
const i =
|
|
1669
|
+
const i = Ht({ text: e, font: `${t === "s" ? ".875rem" : "1rem"} 'Avenir Next'` });
|
|
1669
1670
|
return Math.ceil(i);
|
|
1670
1671
|
}
|
|
1671
|
-
function
|
|
1672
|
+
function An({
|
|
1672
1673
|
portal: e,
|
|
1673
1674
|
product: t,
|
|
1674
1675
|
projectTitle: i,
|
|
@@ -1678,7 +1679,7 @@ function kn({
|
|
|
1678
1679
|
}) {
|
|
1679
1680
|
if (!t || !e)
|
|
1680
1681
|
return;
|
|
1681
|
-
const a = e.user, l = Q(t) && n?.length ? 24 + n.reduce((
|
|
1682
|
+
const a = e.user, l = Q(t) && n?.length ? 24 + n.reduce((g, p) => g + 16 + z(p.label) + 16, 0) : 0, d = 40 + z(i) + 32 + 16 + 16 + 12, h = a ? Math.max(z(a?.username, "s"), z(a?.fullName)) : z(r?.signIn);
|
|
1682
1683
|
return {
|
|
1683
1684
|
actions: 192,
|
|
1684
1685
|
project: i ? Math.min(d, 400) : 0,
|
|
@@ -1687,7 +1688,7 @@ function kn({
|
|
|
1687
1688
|
user: 64 + h + 16
|
|
1688
1689
|
};
|
|
1689
1690
|
}
|
|
1690
|
-
function
|
|
1691
|
+
function xn({
|
|
1691
1692
|
measurements: e,
|
|
1692
1693
|
screenWidth: t
|
|
1693
1694
|
}) {
|
|
@@ -1717,13 +1718,13 @@ async function Se({
|
|
|
1717
1718
|
return [];
|
|
1718
1719
|
}
|
|
1719
1720
|
}
|
|
1720
|
-
async function
|
|
1721
|
+
async function Sn({
|
|
1721
1722
|
portal: e,
|
|
1722
1723
|
searchTerm: t
|
|
1723
1724
|
}) {
|
|
1724
1725
|
if (!e)
|
|
1725
1726
|
return [];
|
|
1726
|
-
const i =
|
|
1727
|
+
const i = Kt((t || "").substring(0, 409)), n = `${e?.id ? `accountid:"${e.id}"` : ""}${Ve}`, r = `${de(e)}search/suggest`;
|
|
1727
1728
|
return (await B(r, { query: {
|
|
1728
1729
|
suggest: i,
|
|
1729
1730
|
filters: n,
|
|
@@ -1731,19 +1732,19 @@ async function xn({
|
|
|
1731
1732
|
f: "json"
|
|
1732
1733
|
} }))?.result?.results || [];
|
|
1733
1734
|
}
|
|
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}.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}.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
|
|
1735
|
+
const In = At`:host{display:block;--arcgis-portal-navigation-logo-max-width: 260px;--arcgis-portal-navigation-logo-text-display: flex;--arcgis-portal-navigation-user-max-width: 260px;--arcgis-portal-navigation-user-text-display: block;--arcgis-portal-navigation-project-max-width: auto}.scrim{z-index:100;pointer-events:none;opacity:0;transition:opacity .2s ease-in-out;--calcite-scrim-background: rgba(0, 0, 0, .85)}.scrim--active{opacity:1}.wrapper{background:var(--calcite-color-foreground-1);border-bottom:1px solid var(--calcite-color-border-3);position:relative;z-index:200}.navigation{width:100%;min-width:0;min-height:4rem;display:flex;align-items:stretch;max-width:var(--arcgis-portal-navigation-max-width);margin-inline:auto;overflow:hidden}.navigation--loading .fade-in{opacity:0}.fade-in{opacity:1;transition:opacity ease-in-out .15s}.content-end{margin-inline-start:auto;display:flex;align-items:center}.content-end[hidden]{display:none}.action{height:100%;--calcite-internal-action-spacing: 1.25rem}.border-start{border-inline-start:1px solid var(--calcite-color-border-3)}.platform{--calcite-sheet-width: 24rem}.platform__container{display:flex;flex-direction:column}.platform__header{display:flex;align-items:center}.platform__header-image{width:48px;height:48px;margin-inline-end:1rem}.platform__header-text{flex:1 1 auto;line-height:1.375;min-width:0}.platform__title{margin:0;padding:0;color:var(--calcite-color-text-1);font-size:var(--calcite-font-size--1);font-weight:var(--calcite-font-weight-medium)}.platform__subtitle{margin:0;padding:0;word-wrap:break-word;font-size:var(--calcite-font-size--2);color:var(--calcite-color-text-2)}.platform__panel{border-inline-end:1px solid var(--calcite-color-border-3);--calcite-panel-background-color: var(--calcite-color-foreground-1)}.platform__tiles{margin:.75rem .75rem 1.5rem;display:grid;grid-template-columns:repeat(auto-fit,minmax(100px,1fr));grid-gap:.5rem}.list{list-style:none;margin:0;padding:0}.list__container{position:relative}.list__header{display:flex;align-items:center;padding:.5rem .75rem;border-bottom:1px solid var(--calcite-color-border-3);background-color:var(--calcite-color-foreground-1);position:sticky;top:0;z-index:701}.list__search{flex:1 1 auto;--calcite-color-border-input: var(--calcite-color-foreground-1)}.list-item__link{display:block;box-sizing:border-box;width:100%;padding-inline-start:.75rem;background-color:var(--calcite-color-foreground-1);outline-color:transparent;text-decoration:none;outline-offset:0;transition:color var(--calcite-animation-timing) ease-in-out,background-color var(--calcite-animation-timing) ease-in-out,outline-color var(--calcite-internal-animation-timing-fast) ease-in-out,outline-offset var(--calcite-internal-animation-timing-fast) ease-in-out}.list-item__link:hover{background-color:var(--calcite-color-transparent-hover)}.list-item__link:focus{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus);outline-offset:-2px}.list-item:focus-within .list-item__container{border-bottom-color:transparent}.list-item__container{box-sizing:border-box;width:100%;padding-block:.5rem;padding-inline-start:0;padding-inline-end:.5rem;border-bottom:1px solid var(--calcite-color-border-3);display:flex;align-items:center;position:relative;pointer-events:none}.list-item__content{display:flex;flex-direction:column;justify-content:center;min-width:0}.list-item__logo{width:48px;height:48px;flex:0 0 auto;box-sizing:border-box;margin-inline-end:.5rem;justify-content:center;align-items:center;position:relative;display:flex}.list-item__logo-bg{position:absolute}.list-item__indicator{position:absolute;width:.5rem;height:.5rem;border-radius:50%;background-color:var(--calcite-color-status-success);border:2px solid var(--calcite-color-foreground-1);z-index:50;top:.25rem;inset-inline-start:-.25rem}.list-item__abbr{color:#fff;font-weight:700;position:relative}.list-item__logo-empty{border:2px dashed var(--calcite-color-border-3);border-radius:8px}.list-item__logo--item-type{background-color:var(--calcite-color-background);display:flex;justify-content:center;align-items:center}.list-item__title{display:block;font-size:var(--calcite-font-size--1);color:var(--calcite-color-text-1);font-weight:500;word-wrap:break-word}.list-item__title--regular{font-weight:400;padding-top:.25rem}.list-item__title--large{font-size:var(--calcite-font-size-0);line-height:1}.list-item__subtitle{display:block;font-size:var(--calcite-font-size--2);color:var(--calcite-color-text-3);font-weight:500;padding-top:.25rem;padding-bottom:.25rem}.list-item__subtitle--large{font-size:var(--calcite-font-size--1);font-weight:400;padding:0}.list-item__chip{margin-inline-start:auto;--calcite-chip-background-color: var(--calcite-color-foreground-current)}.app--hidden{--calcite-list-background-color: var(--calcite-color-background)}.app--hidden .list-item__logo{opacity:.4}.logo{border-inline-end:1px solid var(--calcite-color-border-3);max-width:var(--arcgis-portal-navigation-logo-max-width);display:flex;align-items:center}.logo--link{text-decoration:none}.logo--link:hover{background-color:var(--calcite-color-transparent-hover)}.logo--link:focus{outline:2px solid var(--calcite-color-brand);outline-offset:-2px}.logo__glyph{width:32px;height:32px;padding-inline:1rem}.logo__text{display:var(--arcgis-portal-navigation-logo-text-display);flex-direction:column;overflow:hidden;white-space:nowrap;text-align:start;padding-inline:var(--calcite-internal-navigation-logo-padding-inline);padding-inline-end:1rem}.logo__title{margin:0;padding:0;color:var(--calcite-color-text-1);font-size:var(--calcite-font-size-0);font-weight:var(--calcite-font-weight-medium);line-height:1.25rem;text-overflow:ellipsis;overflow:hidden}.logo__subtitle{margin:0;padding:0;font-size:var(--calcite-font-size--1);color:var(--calcite-color-text-2);font-size:.875rem;line-height:1rem;text-overflow:ellipsis;overflow:hidden}.site-nav{margin-inline-start:1.5rem}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}.skeleton{height:4rem;display:flex;align-items:center;animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}.skeleton-line{width:auto;height:.75rem;color:transparent;background:var(--calcite-color-foreground-3);border-radius:.5rem;margin:0 1rem;line-height:1}.project{min-width:0;outline:none;border:none;border-inline-end:1px solid var(--calcite-color-border-3);cursor:pointer;background-color:var(--calcite-color-foreground-1);box-sizing:border-box;display:flex;user-select:none;appearance:none;align-items:center;justify-content:center;text-align:center;font-family:inherit;font-weight:var(--calcite-font-weight-normal);text-decoration-line:none;outline-color:transparent;box-shadow:var(--calcite-button-shadow, var(--calcite-shadow-none));color:var(--calcite-color-text-1);transition:all var(--calcite-animation-timing) ease-in-out 0s,outline 0s,outline-offset 0s;inset-inline-end:.25rem;background:transparent;white-space:nowrap;padding:0 1.375rem;flex-grow:2}.project:hover{background-color:var(--calcite-color-transparent-hover)}.project:focus{outline:2px solid var(--calcite-color-brand);outline-offset:-2px}.project__title{display:flex;justify-self:stretch;min-width:0;align-items:center;justify-content:center;padding:0 1.5rem;margin-inline-end:1.5rem;color:var(--calcite-color-text-1);border-inline-end:1px solid var(--calcite-color-border-3);max-width:var(--arcgis-portal-navigation-project-max-width, 60%)}.project__title__header{padding:0;margin:0;font-size:1rem;font-weight:400;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project__dropdown{max-width:var(--arcgis-portal-navigation-project-max-width, 60%);--calcite-dropdown-max-height: calc(100vh - 110px) ;min-width:0;margin-inline-end:1.5rem}.project__indicator{margin-inline-end:.5rem;--calcite-ui-icon-color: var(--calcite-color-status-danger)}.project__menu-icon{margin-inline-end:.75rem}.project__text{font-size:1rem;min-width:0;overflow:hidden;text-overflow:ellipsis;margin-inline-end:.75rem}.rename{width:100%;min-width:0;display:flex;flex:1 1 0;align-items:center;margin-inline-start:.5rem}.rename__action{margin-inline-end:.5rem;display:flex;align-items:center}.rename__input{margin-inline-end:.5rem;display:block;width:100%}.search{width:100%;min-width:0;display:flex;flex:1 1 0;align-items:center;margin-inline-start:.5rem}.search__action{margin-inline-end:.5rem;display:flex;align-items:center}.search__input{margin-inline-end:.5rem;display:block;width:100%}.suggestions__header{display:flex;align-items:center;width:var(--calcite-popover-max-size-x);box-sizing:border-box;padding:.75rem 1rem;border-bottom:1px solid var(--calcite-color-border-3)}.suggestions__title{padding:0;margin:0;font-weight:500;color:var(--calcite-color-text-1);font-size:var(--calcite-font-size-1);flex:1 1 0}.suggestions__search-type{--calcite-popover-max-size-x: 320px}.suggestions__search-type__icon{vertical-align:-.2rem}.suggestions__footer{display:flex;align-items:center;justify-content:center;padding:1rem}.notifications{width:min(24rem,80vw)}.notifications--full:after{content:"";display:block;border-top:1px solid var(--calcite-color-border-3);margin-left:1rem}.notifications__list{max-height:min(18rem,80vh);overflow:auto;box-sizing:border-box;width:100%}.notifications--empty{padding:2rem}.empty{padding:1rem;text-align:center;color:var(--calcite-color-text-3);--calcite-icon-color: var(--calcite-color-status-success-hover)}.empty__header{margin:0;padding:.75rem 0 0;color:var(--calcite-color-text-1);font-weight:500;font-size:var(--calcite-font-size-1)}.empty__text{margin:0;padding:0;color:var(--calcite-color-text-3);font-weight:400;font-size:var(--calcite-font-size-0)}.notification{display:flex;flex-direction:column;padding:.5rem}.notification__message{color:var(--calcite-color-text-1);font-size:var(--calcite-font-size-0);--calcite-color-brand-underline: transparent}.notification__date{color:var(--calcite-color-text-3);font-size:var(--calcite-font-size-0)}.notifications__dismiss{margin-inline-start:auto;margin-inline-end:1rem;margin-block:.5rem}.user{display:flex;max-width:var(--arcgis-portal-navigation-user-max-width);--calcite-dropdown-item-text-color: var(--calcite-color-text-3);--calcite-dropdown-group-title-text-color: var(--calcite-color-text-2)}.user__dropdown{max-width:100%;--calcite-dropdown-max-height: calc(100vh - 110px) }.user__button{max-width:100%;--calcite-spacing-base: -2px}.user__button__contents{display:flex;text-align:start;align-items:center}.user__button__text{display:var(--arcgis-portal-navigation-user-text-display);flex:1 1 0;min-width:0;padding-inline-start:1rem;line-height:1.375;overflow:hidden}.user__button__avatar{flex:0 0 auto}.user__button__full,.user__button__username{max-width:100%;overflow:hidden;text-overflow:ellipsis}.user__top{display:flex;padding:.75rem;border-bottom:1px solid var(--calcite-color-border-3)}.user__top__avatar{flex:0 0 auto}.user__top__text{box-sizing:border-box;word-wrap:break-word;flex:1 1 0;min-width:0;padding-inline-start:1rem;line-height:1.375}.user__full{font-size:1rem;font-weight:medium;color:var(--calcite-colot-text-1);line-height:1.25;padding:0;margin:0}.user__username{font-size:.875rem;line-height:1.25;color:var(--calcite-colot-text-2);padding:0;margin:0}`;
|
|
1736
|
+
function Pn({ messages: e, portal: t, showNav: i, openPlatformMenu: n, handleToggleSearch: r }) {
|
|
1736
1737
|
return !e || i && !t?.user ? null : c`<calcite-action .label=${e.applicationMenu} text="app switcher" icon=app-launcher scale=l class="action" @click=${n} @focusin=${() => r(!1, !0)}></calcite-action>`;
|
|
1737
1738
|
}
|
|
1738
|
-
class
|
|
1739
|
+
class Nn extends yt {
|
|
1739
1740
|
constructor() {
|
|
1740
1741
|
super(...arguments), this.messages = $t({ blocking: !0 }), this.originalRecentContent = [], this.refreshNotifications = async () => {
|
|
1741
1742
|
const { portal: t, messages: i } = this;
|
|
1742
|
-
this.notifications = await
|
|
1743
|
+
this.notifications = await we({ portal: t, locale: i._t9nLocale, t9n: i.notifications });
|
|
1743
1744
|
}, this.deleteNotifications = async (t) => {
|
|
1744
1745
|
const { portal: i } = this;
|
|
1745
1746
|
if (t?.length < 20)
|
|
1746
|
-
await
|
|
1747
|
+
await ti(i, t);
|
|
1747
1748
|
else {
|
|
1748
1749
|
let n = 0;
|
|
1749
1750
|
for await (const r of t)
|
|
@@ -1766,7 +1767,7 @@ class Pn extends yt {
|
|
|
1766
1767
|
});
|
|
1767
1768
|
}, this.handleProjectTitleSave = async (t) => {
|
|
1768
1769
|
this.projectTitleSaving = !0;
|
|
1769
|
-
const n = await (this.projectTitleSave ||
|
|
1770
|
+
const n = await (this.projectTitleSave || Ki)(t);
|
|
1770
1771
|
if (this.projectTitleSaving = !1, n.status === "success") {
|
|
1771
1772
|
this.closeProjectTitleEdit();
|
|
1772
1773
|
return;
|
|
@@ -1778,7 +1779,7 @@ class Pn extends yt {
|
|
|
1778
1779
|
this.editedProjectTitle = this.projectTitle, this.closeProjectTitleEdit();
|
|
1779
1780
|
}, this.signOut = () => {
|
|
1780
1781
|
const { portal: t, clientId: i } = this;
|
|
1781
|
-
|
|
1782
|
+
yn({ portal: t, clientId: i }), this.arcgisNavigationSignOut.emit();
|
|
1782
1783
|
}, this.signIn = () => {
|
|
1783
1784
|
this.arcgisNavigationSignIn.emit(), _n();
|
|
1784
1785
|
}, this.openAccountSwitcher = () => {
|
|
@@ -1794,7 +1795,7 @@ class Pn extends yt {
|
|
|
1794
1795
|
o?.success && (this.previousAppState = {
|
|
1795
1796
|
apps: i,
|
|
1796
1797
|
hiddenApps: t
|
|
1797
|
-
}), await
|
|
1798
|
+
}), await Jt(1e3), this.appsLoading = !1;
|
|
1798
1799
|
}, this.handleAppDelete = async (t) => {
|
|
1799
1800
|
t && (this.apps = this.sortedApps.filter((i) => i.itemId !== t), this.sortedApps = this.sortedApps.filter((i) => i.itemId !== t));
|
|
1800
1801
|
}, this.handleAppCancel = () => {
|
|
@@ -1809,7 +1810,7 @@ class Pn extends yt {
|
|
|
1809
1810
|
}, this.debouncedItemSearch = be(async (t) => {
|
|
1810
1811
|
this.recentContent = await Se({ portal: this.portal, searchTerm: t }), this.recentContentLoading = !1, t || (this.originalRecentContent = [...this.recentContent]);
|
|
1811
1812
|
}, 1e3), this.debouncedSuggest = be(async (t) => {
|
|
1812
|
-
this.suggestions = await
|
|
1813
|
+
this.suggestions = await Sn({ portal: this.portal, searchTerm: t });
|
|
1813
1814
|
}, 1e3), this.handleSearch = (t) => {
|
|
1814
1815
|
this.searchTerm = t, this.suggestions = void 0, this.debouncedSuggest(t);
|
|
1815
1816
|
}, this.sizeSearchPopover = () => {
|
|
@@ -1836,7 +1837,7 @@ class Pn extends yt {
|
|
|
1836
1837
|
this.properties = { infoBanner: 16, links: 16, userLinks: 16, notifications: 16, notificationsActive: 16, apps: 16, hiddenApps: 16, sortedApps: 16, previousAppState: 16, appsSearchTerm: 16, appsLoading: 16, editingApplications: 16, recentContent: 16, recentContentSearchTerm: 16, recentContentLoading: 16, platformMenuOpen: 16, platformTab: 16, accountSwitcherOpen: 16, editedProjectTitle: 16, projectTitleEditing: 16, projectTitleSaving: 16, projectTitleErrorMessage: 16, productInfo: 16, platformInfo: 16, notificationDeleteProgress: 16, measurements: 16, screenWidth: 16, showProduct: 16, showNav: 16, showUser: 16, searchActive: 16, searchTerm: 16, suggestions: 16, searchType: 16, portal: 0, portalItem: 0, product: 1, productHref: 1, projectTitle: 1, projectTitleSave: 0, projectMenuIcon: 1, projectMenuSaveIndicator: 5, projectMenuOptions: 0, disableTrackViewer: 5, disableNotebookServer: 5, clientId: 1, currentPathname: 1, maxWidth: 9, showNotifications: 5 };
|
|
1837
1838
|
}
|
|
1838
1839
|
static {
|
|
1839
|
-
this.styles =
|
|
1840
|
+
this.styles = In;
|
|
1840
1841
|
}
|
|
1841
1842
|
#e;
|
|
1842
1843
|
connectedCallback() {
|
|
@@ -1860,13 +1861,13 @@ class Pn extends yt {
|
|
|
1860
1861
|
}
|
|
1861
1862
|
async fetchData() {
|
|
1862
1863
|
const { portal: t, messages: i, clientId: n, product: r } = this;
|
|
1863
|
-
this.calculateMeasurements(), this.productInfo = xe({ product: r, clientId: n, portal: t }), this.platformInfo =
|
|
1864
|
-
const { apps: o, hiddenApps: a, signInSettings: s, licenses: l, userProperties: d } = await
|
|
1864
|
+
this.calculateMeasurements(), this.productInfo = xe({ product: r, clientId: n, portal: t }), this.platformInfo = wn({ clientId: n, portal: t }), this.userLinks = un({ portal: t, messages: i.user, clientId: n }), this.notifications = await we({ portal: t, locale: i._t9nLocale, t9n: i.notifications }), this.recentContent = await Se({ portal: t }), this.originalRecentContent = [...this.recentContent], this.recentContentLoading = !1;
|
|
1865
|
+
const { apps: o, hiddenApps: a, signInSettings: s, licenses: l, userProperties: d } = await Oi({
|
|
1865
1866
|
portal: t,
|
|
1866
1867
|
trackViewerEnabled: !this.disableTrackViewer,
|
|
1867
1868
|
notebookServerEnabled: !this.disableNotebookServer
|
|
1868
|
-
}), h = await
|
|
1869
|
-
this.infoBanner = h?.informationalBanner, this.userProperties = d, this.apps = o, this.hiddenApps = a, this.sortedApps = o, this.previousAppState = { apps: o, hiddenApps: a }, this.appsLoading = !1, this.links =
|
|
1869
|
+
}), h = await Et(t);
|
|
1870
|
+
this.infoBanner = h?.informationalBanner, this.userProperties = d, this.apps = o, this.hiddenApps = a, this.sortedApps = o, this.previousAppState = { apps: o, hiddenApps: a }, this.appsLoading = !1, this.links = Gi({
|
|
1870
1871
|
portal: t,
|
|
1871
1872
|
messages: i.links,
|
|
1872
1873
|
licenses: l,
|
|
@@ -1877,7 +1878,7 @@ class Pn extends yt {
|
|
|
1877
1878
|
calculateMeasurements() {
|
|
1878
1879
|
const { links: t, messages: i, portal: n, product: r, productInfo: o, projectTitle: a } = this;
|
|
1879
1880
|
if (n) {
|
|
1880
|
-
const s =
|
|
1881
|
+
const s = An({
|
|
1881
1882
|
portal: n,
|
|
1882
1883
|
product: r,
|
|
1883
1884
|
productInfo: o,
|
|
@@ -1891,18 +1892,18 @@ class Pn extends yt {
|
|
|
1891
1892
|
updateBreakpoints() {
|
|
1892
1893
|
const { measurements: t, maxWidth: i } = this;
|
|
1893
1894
|
if (t) {
|
|
1894
|
-
const n = i ? Math.min(this.screenWidth, i) : this.screenWidth, r =
|
|
1895
|
+
const n = i ? Math.min(this.screenWidth, i) : this.screenWidth, r = xn({ measurements: t, screenWidth: n });
|
|
1895
1896
|
this.showProduct = r.product, this.showNav = r.nav, this.showUser = r.user;
|
|
1896
1897
|
}
|
|
1897
1898
|
}
|
|
1898
1899
|
render() {
|
|
1899
|
-
const { accountSwitcherOpen: t, apps: i, appsLoading: n, appsSearchTerm: r, currentPathname: o, handleAppCancel: a, handleAppDelete: s, handleAppHide: l, handleAppReorder: d, handleAppSave: h, handleItemSearch:
|
|
1900
|
-
return c`<calcite-scrim class=${re({ scrim: !0, "scrim--active": F })}></calcite-scrim><div class="wrapper" style=${Ie({ "--arcgis-portal-navigation-max-width": this.maxWidth ? `${this.maxWidth}px` : "100%" })}><arcgis-portal-info-banner .config=${
|
|
1900
|
+
const { accountSwitcherOpen: t, apps: i, appsLoading: n, appsSearchTerm: r, currentPathname: o, handleAppCancel: a, handleAppDelete: s, handleAppHide: l, handleAppReorder: d, handleAppSave: h, handleItemSearch: g, handlePlatformClose: p, handleSearch: w, handleToggleSearch: A, handleSearchTypeChange: y, hiddenApps: _, infoBanner: N, links: v, messages: m, navigate: u, notifications: f, notificationsActive: S, notificationDeleteProgress: $, openAccountSwitcher: I, platformInfo: x, portal: b, portalItem: j, product: E, productInfo: k, productHref: L, projectTitle: Y, editedProjectTitle: H, handleProjectTitleSave: D, handleProjectTitleEdit: He, handleProjectTitleCancel: qe, handleToggleNotifications: fe, openProjectTitleEdit: Je, openPlatformMenu: Ke, platformMenuOpen: Qe, projectTitleEditing: Z, projectTitleSaving: Xe, projectTitleErrorMessage: Ye, projectMenuIcon: Ze, projectMenuSaveIndicator: et, projectMenuClick: tt, projectMenuOptions: it, projectTitleInputRef: nt, projectButtonRef: rt, recentContent: ot, recentContentSearchTerm: at, recentContentLoading: st, userLinks: ct, searchActive: F, searchTerm: lt, searchType: ut, searchInput: dt, searchAction: pt, searchPopover: ht, showNav: ee, showProduct: mt, showUser: ft, suggestions: gt } = this, bt = b?.user, vt = Q(E) && !v?.length || !this.measurements;
|
|
1901
|
+
return c`<calcite-scrim class=${re({ scrim: !0, "scrim--active": F })}></calcite-scrim><div class="wrapper" style=${Ie({ "--arcgis-portal-navigation-max-width": this.maxWidth ? `${this.maxWidth}px` : "100%" })}><arcgis-portal-info-banner .config=${N}></arcgis-portal-info-banner>${b?.isPortal && j?.loaded && c`<arcgis-portal-classification-banner .portalItem=${j}></arcgis-portal-classification-banner>` || ""}<header class=${re({ navigation: !0, "navigation--loading": vt })}>${Pn({ messages: m?.platform, portal: b, showNav: ee, openPlatformMenu: Ke, handleToggleSearch: A })}${mt && Qt({ navigate: u, portal: b, product: E, productInfo: k, productHref: L, messages: m?.logo, showNav: ee, searchActive: F, projectTitleEditing: Z }) || ""}${Zi({ navigate: u, portal: b, portalItem: j, messages: m?.project, projectTitle: Y, editedProjectTitle: H, handleProjectTitleSave: D, handleProjectTitleEdit: He, openProjectTitleEdit: Je, projectTitleErrorMessage: Ye, handleProjectTitleCancel: qe, projectTitleEditing: Z, projectTitleSaving: Xe, projectMenuIcon: Ze, projectMenuSaveIndicator: et, projectMenuClick: tt, projectMenuOptions: it, projectTitleInputRef: nt, projectButtonRef: rt })}${ee && sn({ searchActive: F, navigate: u, portal: b, product: E, messages: m?.links, links: v, currentPathname: o }) || ""}<div slot=content-end class="content-end fade-in" .hidden=${Z || F}><slot name=content-end></slot></div>${on({ currentPathname: o, navigate: u, portal: b, product: E, messages: m?.search, searchActive: F, searchType: ut, searchTerm: lt, suggestions: gt, handleSearch: w, handleToggleSearch: A, handleSearchTypeChange: y, searchInputRef: dt, searchActionRef: pt, searchPopoverRef: ht })}${bt ? c`<div class="border-start">${this.showNotifications && c`${oi({ notifications: f, notificationsActive: S, messages: m?.notifications, handleToggleNotifications: fe, handleToggleSearch: A })}${ai({ notificationsActive: S, notifications: f, navigate: u, portal: b, deleteNotifications: this.deleteNotifications, handleToggleNotifications: fe, messages: m?.notifications, notificationDeleteProgress: $ })}` || ""}</div>${cn({ portal: b, userLinks: ct, openAccountSwitcher: b?.isPortal ? void 0 : I, signOut: this.signOut, messages: m?.user, textDisabled: ft === "avatar", navigate: u })}` : an({ messages: m.user, signIn: this.signIn })}</header>${Ji({ locale: m._t9nLocale, navigate: u, portal: b, product: E, platformInfo: x, messages: m?.platform, apps: i, appsLoading: n, hiddenApps: _, appsSearchTerm: r, editingApplications: this.editingApplications, open: Qe, links: v, recentContent: ot, recentContentSearchTerm: at, recentContentLoading: st, handlePlatformClose: p, handlePlatformTabUpdate: this.handlePlatformTabUpdate, handleAppReorder: d, handleAppEdit: () => this.editingApplications = !0, handleAppDelete: s, handleAppsSearch: (wt) => this.appsSearchTerm = wt, handleAppSave: h, handleAppCancel: a, handleAppHide: l, handleItemSearch: g, platformTab: this.platformTab })}${t && c`<arcgis-portal-account-switcher .portal=${b} @arcgisClose=${() => {
|
|
1901
1902
|
this.accountSwitcherOpen = !1;
|
|
1902
1903
|
}}></arcgis-portal-account-switcher>` || ""}</div>`;
|
|
1903
1904
|
}
|
|
1904
1905
|
}
|
|
1905
|
-
|
|
1906
|
+
_t("arcgis-portal-navigation", Nn);
|
|
1906
1907
|
export {
|
|
1907
|
-
|
|
1908
|
+
Nn as ArcGISPortalNavigation
|
|
1908
1909
|
};
|