@esri/solutions-components 1.2.0-next.184 → 1.2.0-next.186
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/{T4BABRET.js → 2Z4TOYVC.js} +1 -1
- package/dist/cdn/{UJRIZPZV.js → 3A7PC2RZ.js} +1 -1
- package/dist/cdn/{AHSUDDTV.js → 3HWKU2CT.js} +1 -1
- package/dist/cdn/{3OBXQOE4.js → 4CPDEFIT.js} +1 -1
- package/dist/cdn/{GXGL7E5C.js → 6TJ6HIGG.js} +1 -1
- package/dist/cdn/{2J5B4RQM.js → 7M3GJY6J.js} +1 -1
- package/dist/cdn/AS6FGEVT.js +2 -0
- package/dist/cdn/BEC6A65P.js +2 -0
- package/dist/cdn/BHSNNVIL.js +2 -0
- package/dist/cdn/{FYIT6WMR.js → BT66JT22.js} +1 -1
- package/dist/cdn/{WSU4ELZX.js → C7DWPTJL.js} +1 -1
- package/dist/cdn/{HUWZTPMY.js → CN4TSLTZ.js} +1 -1
- package/dist/cdn/{IZAAOTKA.js → DOFNBU4Q.js} +1 -1
- package/dist/cdn/{D4YDAIIJ.js → EERFOEDZ.js} +1 -1
- package/dist/cdn/{RSJOED5F.js → FP5UBHCW.js} +1 -1
- package/dist/cdn/{KNOAIRGH.js → FWFL23CM.js} +1 -1
- package/dist/cdn/FY4GDFB5.js +2 -0
- package/dist/cdn/{YUXRMEUI.js → HEW273HR.js} +1 -1
- package/dist/cdn/{G7PIGNB5.js → I3ERNQTX.js} +1 -1
- package/dist/cdn/{TQ6UUSC6.js → LN36O3EB.js} +1 -1
- package/dist/cdn/MVNKOMSZ.js +2 -0
- package/dist/cdn/OQVULF2Q.js +2 -0
- package/dist/cdn/{UPCW6ZJC.js → OUH4HVG4.js} +28 -24
- package/dist/cdn/{YJCIONLF.js → PFQDRDKQ.js} +1 -1
- package/dist/cdn/{FQDOIGWN.js → PJ2IZ77K.js} +1 -1
- package/dist/cdn/{DPOINX2J.js → QPEQNTE2.js} +1 -1
- package/dist/cdn/{6KZ7BPYY.js → R6QJKOAM.js} +1 -1
- package/dist/cdn/RG6FVRCW.js +2 -0
- package/dist/cdn/RYK5PICU.js +2 -0
- package/dist/cdn/{G6YTMDRE.js → U3MPHGGT.js} +1 -1
- package/dist/cdn/{VCNW2JFC.js → V25NUVVQ.js} +1 -1
- package/dist/cdn/{VWSBR3EG.js → VHA56S7W.js} +1 -1
- package/dist/cdn/{JZEB6HZ4.js → W4DGTEPL.js} +1 -1
- package/dist/cdn/{YN3QQTPJ.js → WI7VFPQ3.js} +1 -1
- package/dist/cdn/Y2S3AB43.js +2 -0
- package/dist/cdn/{YOUPERBP.js → YBZ4RYD3.js} +1 -1
- package/dist/cdn/{SYHSZMOM.js → ZVLL5DZC.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/cardFetchingUtils.js +66 -58
- package/dist/chunks/cardsHelpers.js +2 -2
- package/dist/chunks/interfaces.js +295 -293
- package/dist/chunks/solutions-deploy-app-nav.js +10 -10
- package/dist/components/arcgis-solutions-assistant/customElement.js +79 -69
- package/dist/components/solution-details-card/customElement.js +8 -8
- package/dist/components/solution-details-panel/customElement.js +50 -50
- package/dist/components/solution-resource-card/customElement.js +11 -11
- package/dist/components/solution-snapshot-gallery/customElement.js +17 -17
- package/dist/components/solution-social-share/customElement.js +5 -5
- package/dist/components/solutions-all-panel/customElement.js +22 -21
- package/dist/components/solutions-deploy-app/customElement.js +12 -11
- package/dist/components/solutions-deployed-panel/customElement.d.ts +2 -2
- package/dist/components/solutions-deployed-panel/customElement.js +42 -27
- 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/solutions-components_commit.txt +7 -7
- package/dist/utils/interfaces.d.ts +1 -0
- package/package.json +1 -1
- package/dist/cdn/5HY4G5MJ.js +0 -2
- package/dist/cdn/7QFCHNYA.js +0 -2
- package/dist/cdn/BU24GNCR.js +0 -2
- package/dist/cdn/EMCLBWJH.js +0 -2
- package/dist/cdn/ETZI55AM.js +0 -2
- package/dist/cdn/EVTIE353.js +0 -2
- package/dist/cdn/K3V6XHE4.js +0 -2
- package/dist/cdn/LEBOMHXU.js +0 -2
- package/dist/cdn/QAT4TZD4.js +0 -2
|
@@ -1,146 +1,252 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
|
|
2
2
|
import * as g from "@esri/solution-common";
|
|
3
|
-
import { c as
|
|
4
|
-
import { css as
|
|
5
|
-
import { u as
|
|
6
|
-
import { LitElement as
|
|
7
|
-
import { useContextConsumer as
|
|
8
|
-
import { c as
|
|
3
|
+
import { c as C } from "./runtime.js";
|
|
4
|
+
import { css as L, html as l, svg as M } from "lit";
|
|
5
|
+
import { u as x } from "./useT9n.js";
|
|
6
|
+
import { LitElement as U, createEvent as $, nothing as m, safeClassMap as P } from "@arcgis/lumina";
|
|
7
|
+
import { useContextConsumer as w } from "@arcgis/lumina/context";
|
|
8
|
+
import { c as G, i as B } from "./deployAppContexts.js";
|
|
9
9
|
import "@arcgis/lumina/controllers";
|
|
10
10
|
import "@arcgis/core/identity/IdentityManager.js";
|
|
11
11
|
import "@arcgis/core/identity/OAuthInfo.js";
|
|
12
12
|
import "@arcgis/core/portal/Portal.js";
|
|
13
|
-
import { createRef as E, ref as w } from "lit-html/directives/ref.js";
|
|
14
13
|
import "@arcgis/core/intl.js";
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
import { createRef as E, ref as _ } from "lit-html/directives/ref.js";
|
|
15
|
+
const K = L`calcite-card{height:100%;padding-bottom:var(--calcite-spacing-base)}@media(max-width:400px){calcite-card{width:100%}}calcite-card:hover img{-webkit-filter:brightness(30%);filter:brightness(30%);-webkit-transition:all .1s ease;-moz-transition:all .1s ease;-o-transition:all .1s ease;-ms-transition:all .1s ease;transition:all .1s ease}calcite-card:hover .hover-text{opacity:1;color:#fff}calcite-card:hover{outline:var(--calcite-spacing-base) solid var(--calcite-color-brand);box-sizing:content-box;cursor:pointer}.hover-text{transition:.1s ease;opacity:0;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);text-align:center;display:flex;flex-direction:row;align-items:center;height:100%;font-size:var(--calcite-spacing-xl)}.card-image-wrap{flex:0 0 auto}.card-image-wrap{width:100%;position:relative;margin-bottom:0;-webkit-box-flex:0 0 auto;-ms-flex:0 0 auto;flex:0 0 auto}.card-image{width:100%;display:block}video,img{max-width:100%;height:auto}img{overflow-clip-margin:content-box;overflow:clip}.width-full{width:100%}.deployed-label-override{--calcite-label-text-color: var(--calcite-color-text-3);--calcite-label-margin-bottom: var(--calcite-spacing-none)}.svg-color{fill:var(--calcite-color-text-3)}.padding-end-1-2{padding-inline-end:var(--calcite-spacing-sm)}.padding-bottom-1-2{padding-bottom:var(--calcite-spacing-sm)}.display-flex{display:flex}.display-none{display:none}.flex-direction-column{flex-direction:column}.align-items-center{align-items:center}.font-weight-400,.font-weight-normal{font-weight:400}.font-color-text-2{--calcite-label-text-color: var(--calcite-color-text-2)}.font-line-height{line-height:1.4}.font-size-size--1{font-size:var(--calcite-font-size--1)}.icon-brand-color{--calcite-icon-color: var(--calcite-color-brand)}.header-line-height{--calcite-label-margin-bottom: 0;margin-top:var(--calcite-spacing-sm);margin-bottom:.7rem}.dialog-y-size{--calcite-dialog-size-y: 90% }.dialog-x-size{--calcite-dialog-size-x: 90% }.justify-content-space-between{justify-content:space-between}.panel-bg-color{--calcite-panel-header-background-color: var(--calcite-color-foreground-1);--calcite-panel-background-color: var(--calcite-color-foreground-1)}.cursor-default{cursor:default}`;
|
|
16
|
+
function F(t) {
|
|
17
|
+
let e = "", i = "?";
|
|
18
|
+
return t.forEach((s) => {
|
|
19
|
+
s.k && s.v && (e += i + s.k + "=" + s.v, i = "&");
|
|
20
|
+
}), e;
|
|
21
|
+
}
|
|
22
|
+
function ve(t) {
|
|
23
|
+
return t ? g.getVelocityUrlBase(t, {}).then((e) => Promise.resolve(!!e)) : Promise.resolve(!1);
|
|
24
|
+
}
|
|
25
|
+
async function H(t, e) {
|
|
26
|
+
const i = e, s = await i.getUsername(), r = {
|
|
27
|
+
q: new g.SearchQueryBuilder().match(t).in("title").and().match(s).in("owner"),
|
|
28
|
+
filter: "type:Solution",
|
|
29
|
+
authentication: i
|
|
30
|
+
}, n = (await g.searchAllItems(r)).results.map((p) => p.title), { folders: o } = await g.getFoldersAndGroups(i), h = o.map((p) => p.title), u = [...n, ...h].map((p) => p.trim().toLowerCase()), b = t.toLowerCase(), k = u.filter((p) => p === b), N = u.filter((p) => p.startsWith(b));
|
|
31
|
+
return { conflictingNames: k, similiarNames: N };
|
|
32
|
+
}
|
|
33
|
+
async function Re(t, e) {
|
|
34
|
+
return W(t) ? { status: !1, type: "empty" } : V(t) ? { status: !1, type: "exceed length" } : z(t, "folder") ? { status: !1, type: "special character" } : (await H(t.trim(), e)).conflictingNames.length > 0 ? { status: !1, type: "not unique" } : { status: !0, type: "" };
|
|
35
|
+
}
|
|
36
|
+
function W(t) {
|
|
37
|
+
return t.length <= 0;
|
|
38
|
+
}
|
|
39
|
+
function V(t) {
|
|
40
|
+
return t.length > me;
|
|
41
|
+
}
|
|
42
|
+
function z(t, e) {
|
|
43
|
+
return (e === "item" ? /[><~`$^+=|]/u : /[/<>]/u).test(t);
|
|
44
|
+
}
|
|
45
|
+
function ke(t) {
|
|
46
|
+
if (t) {
|
|
47
|
+
const e = t.trim();
|
|
48
|
+
return e ? "<div>" + e + "</div>" : "";
|
|
49
|
+
} else
|
|
50
|
+
return "";
|
|
51
|
+
}
|
|
52
|
+
function Y(t) {
|
|
53
|
+
let e = "", i = "?";
|
|
54
|
+
return t.forEach((s) => {
|
|
55
|
+
s.k && s.v && (e += i + s.k + "=" + s.v, i = "&");
|
|
56
|
+
}), e;
|
|
57
|
+
}
|
|
58
|
+
function Ne(t, e, i, s) {
|
|
59
|
+
let a = "";
|
|
60
|
+
return e ? a = s + "/sharing/rest/content/items/" + t + "/info/" + e + Y([{ k: "w", v: "400" }]) : a = i, a;
|
|
61
|
+
}
|
|
62
|
+
function Ce(t) {
|
|
63
|
+
const e = t ? t.replace("https://", "").replace("www.", "") : "";
|
|
64
|
+
return e.endsWith("devext.arcgis.com") || e.endsWith("mapsqa.arcgis.com") || e.endsWith("qaext.arcgis.com") ? t ?? "https://www.arcgis.com" : "https://www.arcgis.com";
|
|
65
|
+
}
|
|
66
|
+
function Le(t, e, i) {
|
|
67
|
+
return e.some((s) => s.wkid === t ? (i = s.defaultExtent, !0) : !1), i;
|
|
68
|
+
}
|
|
69
|
+
function Me(t, e) {
|
|
70
|
+
return S(e || t);
|
|
71
|
+
}
|
|
72
|
+
function xe(t, e = "en") {
|
|
73
|
+
return new Intl.DateTimeFormat(e, {
|
|
74
|
+
year: "numeric",
|
|
75
|
+
month: "long",
|
|
76
|
+
day: "numeric"
|
|
77
|
+
}).format(t);
|
|
78
|
+
}
|
|
79
|
+
function Ue(t, e) {
|
|
80
|
+
let i = "";
|
|
81
|
+
return t.some((s) => s.startsWith(e) ? (i = s.substring(e.length), !0) : !1), i;
|
|
82
|
+
}
|
|
83
|
+
function S(t) {
|
|
84
|
+
const e = t.replace("www.", "");
|
|
85
|
+
return e.endsWith("devext.arcgis.com") ? "dev" : e.endsWith("mapsqa.arcgis.com") || e.endsWith("qaext.arcgis.com") ? "qa" : e === "arcgis.com" || e.endsWith(".arcgis.com") ? "prod" : "dev";
|
|
86
|
+
}
|
|
87
|
+
function $e(t, e) {
|
|
88
|
+
let i = t?.reduce((s, a) => (s.indexOf(a.id) < 0 && s.push(a.id), s), []) || [];
|
|
89
|
+
return e ? i.sort((s, a) => e.indexOf(s) - e.indexOf(a)) : i;
|
|
90
|
+
}
|
|
91
|
+
function Pe(t) {
|
|
92
|
+
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
93
|
+
}
|
|
94
|
+
function Ge(t) {
|
|
95
|
+
return {
|
|
96
|
+
relevance: "Relevance",
|
|
97
|
+
title: "Title",
|
|
98
|
+
new: "New",
|
|
99
|
+
created: "Date deployed",
|
|
100
|
+
updated: "Updated",
|
|
101
|
+
suggested: "Suggested for you"
|
|
102
|
+
}[t] || t;
|
|
103
|
+
}
|
|
104
|
+
function Be(t) {
|
|
105
|
+
if (!t)
|
|
106
|
+
return "Unknown error";
|
|
107
|
+
if (t.message)
|
|
108
|
+
return t.message;
|
|
109
|
+
try {
|
|
110
|
+
const e = JSON.stringify(t);
|
|
111
|
+
return e && e !== "{}" ? e : t.toString();
|
|
112
|
+
} catch {
|
|
113
|
+
return t.toString();
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
function Ke(t) {
|
|
117
|
+
return t ? parseFloat(((Date.now() - t) / 1e3).toFixed(2)) : 0;
|
|
118
|
+
}
|
|
119
|
+
function f(t, e) {
|
|
120
|
+
(t.key === "Enter" || t.code === "NumpadEnter" || t.key === " ") && (t.preventDefault(), t.stopPropagation(), e());
|
|
121
|
+
}
|
|
122
|
+
async function q(t, e) {
|
|
123
|
+
const i = await g.getItemDataAsJson(t, e);
|
|
18
124
|
if (!i)
|
|
19
|
-
throw new Error(`Solution ${
|
|
20
|
-
const s =
|
|
125
|
+
throw new Error(`Solution ${t} was not found`);
|
|
126
|
+
const s = e?.portal.replace("/sharing/rest", "") ?? "https://www.arcgis.com";
|
|
21
127
|
let a = [];
|
|
22
128
|
if (i.templates[0].item)
|
|
23
|
-
a = i.templates.map((
|
|
24
|
-
id:
|
|
25
|
-
title:
|
|
26
|
-
type:
|
|
27
|
-
typeKeywords:
|
|
28
|
-
dependencies:
|
|
29
|
-
snippet:
|
|
129
|
+
a = i.templates.map((r) => ({
|
|
130
|
+
id: r.itemId,
|
|
131
|
+
title: r.item.title,
|
|
132
|
+
type: r.item.type,
|
|
133
|
+
typeKeywords: r.item.typeKeywords,
|
|
134
|
+
dependencies: r.dependencies,
|
|
135
|
+
snippet: r.item.snippet
|
|
30
136
|
}));
|
|
31
137
|
else {
|
|
32
|
-
const
|
|
33
|
-
a = (await Promise.allSettled(
|
|
34
|
-
const u = typeof
|
|
138
|
+
const r = i.templates.map((o) => o.type === "Group" ? g.getGroupBase(o.itemId, e) : g.getItemBase(o.itemId, e));
|
|
139
|
+
a = (await Promise.allSettled(r)).filter((o) => o.status === "fulfilled").map((o) => o.value).map((o, h) => {
|
|
140
|
+
const u = typeof o.type > "u" ? "group" : "item";
|
|
35
141
|
return {
|
|
36
|
-
id:
|
|
37
|
-
title:
|
|
38
|
-
type:
|
|
39
|
-
typeKeywords:
|
|
142
|
+
id: o.id,
|
|
143
|
+
title: o.title,
|
|
144
|
+
type: o.type ?? "Group",
|
|
145
|
+
typeKeywords: o.typeKeywords,
|
|
40
146
|
dependencies: i.templates[h].dependencies,
|
|
41
|
-
snippet:
|
|
42
|
-
url: `${s}/home/${u}.html?id=${
|
|
147
|
+
snippet: o.snippet,
|
|
148
|
+
url: `${s}/home/${u}.html?id=${o.id}`
|
|
43
149
|
};
|
|
44
150
|
});
|
|
45
151
|
}
|
|
46
152
|
return a;
|
|
47
153
|
}
|
|
48
|
-
function
|
|
49
|
-
const s =
|
|
50
|
-
a.push(
|
|
51
|
-
const
|
|
52
|
-
|
|
53
|
-
const
|
|
54
|
-
|
|
55
|
-
const
|
|
56
|
-
|
|
57
|
-
const
|
|
154
|
+
function Fe(t, e, i) {
|
|
155
|
+
const s = t.templates.map((h) => h.type), a = [];
|
|
156
|
+
a.push(se), s.indexOf("Group") >= 0 && (a.push(O), a.push(I)), s.indexOf("Feature Service") >= 0 && a.push(A);
|
|
157
|
+
const r = s.indexOf("Feed") > -1;
|
|
158
|
+
r && a.push(ne);
|
|
159
|
+
const c = s.indexOf("Big Data Analytic") > -1;
|
|
160
|
+
c && a.push(ae);
|
|
161
|
+
const n = s.indexOf("Real Time Analytic") > -1;
|
|
162
|
+
n && a.push(re), (r || c || n) && a.push(he), s.indexOf("Workflow") > -1 && (a.push(O), a.push(A), a.push(I), a.push(ge)), s.indexOf("Geoprocessing Service") > -1 && (a.push(oe), i.IsEnterprisePortal && a.push(ce));
|
|
163
|
+
const o = t.templates.reduce(
|
|
58
164
|
(h, u) => h.concat(u.item.typeKeywords || []),
|
|
59
165
|
[]
|
|
60
166
|
);
|
|
61
|
-
return
|
|
167
|
+
return J(a, o, i), Q(a, e), j(a, t), a;
|
|
62
168
|
}
|
|
63
|
-
function
|
|
64
|
-
|
|
169
|
+
function j(t, e) {
|
|
170
|
+
e.templates.some((i) => i.type === "Group" && i.item?.membershipAccess === "collaboration") && t.push(ie);
|
|
65
171
|
}
|
|
66
|
-
function
|
|
67
|
-
const s =
|
|
68
|
-
["Location Tracking View"].some((
|
|
172
|
+
function J(t, e, i) {
|
|
173
|
+
const s = D(i), a = X(i);
|
|
174
|
+
["Location Tracking View"].some((c) => e.indexOf(c) > -1) && (!s && !a ? t.push(de) : s && !a ? t.push(ue) : !s && a && t.push(pe));
|
|
69
175
|
}
|
|
70
|
-
function
|
|
71
|
-
["HubPremium"].some((s) =>
|
|
176
|
+
function Q(t, e) {
|
|
177
|
+
["HubPremium"].some((s) => e.indexOf(s) > -1) && t.push(le);
|
|
72
178
|
}
|
|
73
|
-
function
|
|
74
|
-
const
|
|
179
|
+
function D(t) {
|
|
180
|
+
const e = t?.PortalUserSubset?.privileges, i = [
|
|
75
181
|
"portal:admin:create",
|
|
76
182
|
"portal:admin:delete",
|
|
77
183
|
"portal:admin:update",
|
|
78
184
|
"portal:admin:reassign"
|
|
79
185
|
];
|
|
80
|
-
return
|
|
81
|
-
(s) =>
|
|
186
|
+
return e ? i.every(
|
|
187
|
+
(s) => e.some((a) => a.startsWith(s))
|
|
82
188
|
) : !1;
|
|
83
189
|
}
|
|
84
|
-
function
|
|
85
|
-
return
|
|
190
|
+
function X(t) {
|
|
191
|
+
return t.PortalSubset?.locationTrackingEnabled || !1;
|
|
86
192
|
}
|
|
87
|
-
function
|
|
193
|
+
function He(t, e) {
|
|
88
194
|
let i = {
|
|
89
195
|
leadingMessages: [],
|
|
90
196
|
bulletedMessages: [],
|
|
91
197
|
trailingMessages: []
|
|
92
198
|
};
|
|
93
199
|
const s = [
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
200
|
+
d.NOTEBOOK,
|
|
201
|
+
d.VELOCITY,
|
|
202
|
+
d.HUBPREMIUM,
|
|
203
|
+
d.WORKFLOW,
|
|
204
|
+
d.TRACKINGBASE
|
|
99
205
|
];
|
|
100
|
-
let a =
|
|
101
|
-
e,
|
|
206
|
+
let a = y(
|
|
102
207
|
t,
|
|
103
|
-
|
|
208
|
+
e,
|
|
209
|
+
d.VELOCITY
|
|
104
210
|
);
|
|
105
211
|
a && i.leadingMessages.push(a);
|
|
106
|
-
let
|
|
107
|
-
e,
|
|
212
|
+
let r = y(
|
|
108
213
|
t,
|
|
109
|
-
c.NOTEBOOK
|
|
110
|
-
);
|
|
111
|
-
o && i.leadingMessages.push(o);
|
|
112
|
-
let l = f(
|
|
113
214
|
e,
|
|
114
|
-
|
|
115
|
-
c.HUBPREMIUM
|
|
215
|
+
d.NOTEBOOK
|
|
116
216
|
);
|
|
117
|
-
|
|
118
|
-
let
|
|
217
|
+
r && i.leadingMessages.push(r);
|
|
218
|
+
let c = y(
|
|
219
|
+
t,
|
|
119
220
|
e,
|
|
221
|
+
d.HUBPREMIUM
|
|
222
|
+
);
|
|
223
|
+
c && i.leadingMessages.push(c);
|
|
224
|
+
let n = y(
|
|
120
225
|
t,
|
|
121
|
-
|
|
226
|
+
e,
|
|
227
|
+
d.WORKFLOW
|
|
122
228
|
);
|
|
123
|
-
|
|
229
|
+
n && i.leadingMessages.push(n), e = e.filter((u) => s.indexOf(u) < 0), e.forEach((u) => {
|
|
124
230
|
i.bulletedMessages.push(
|
|
125
|
-
|
|
231
|
+
v(t, u)
|
|
126
232
|
);
|
|
127
233
|
});
|
|
128
|
-
let
|
|
129
|
-
e,
|
|
234
|
+
let o = y(
|
|
130
235
|
t,
|
|
131
|
-
|
|
236
|
+
e,
|
|
237
|
+
d.TRACKINGBASE
|
|
132
238
|
);
|
|
133
|
-
return
|
|
134
|
-
|
|
239
|
+
return o && i.trailingMessages.push(o), (i.leadingMessages.length > 0 || i.trailingMessages.length > 0 || i.bulletedMessages.length > 0) && i.trailingMessages.push(
|
|
240
|
+
t.missingPrivilegesPopup.suggestedProblemRemedyMessage
|
|
135
241
|
), i;
|
|
136
242
|
}
|
|
137
|
-
function
|
|
138
|
-
return
|
|
243
|
+
function y(t, e, i) {
|
|
244
|
+
return e.filter((a) => a.includes(i)).length > 0 ? v(t, i) : "";
|
|
139
245
|
}
|
|
140
|
-
function
|
|
141
|
-
const i =
|
|
246
|
+
function v(t, e) {
|
|
247
|
+
const i = t.missingPrivilegesPopup.requiredPrivilegesList;
|
|
142
248
|
let s = "";
|
|
143
|
-
switch (
|
|
249
|
+
switch (e) {
|
|
144
250
|
case "portal:user:createItem":
|
|
145
251
|
s = i.createItem;
|
|
146
252
|
break;
|
|
@@ -198,148 +304,42 @@ function D(e, t) {
|
|
|
198
304
|
}
|
|
199
305
|
return s;
|
|
200
306
|
}
|
|
201
|
-
function
|
|
202
|
-
|
|
203
|
-
return e.forEach((s) => {
|
|
204
|
-
s.k && s.v && (t += i + s.k + "=" + s.v, i = "&");
|
|
205
|
-
}), t;
|
|
206
|
-
}
|
|
207
|
-
function Re(e) {
|
|
208
|
-
return e ? g.getVelocityUrlBase(e, {}).then((t) => Promise.resolve(!!t)) : Promise.resolve(!1);
|
|
209
|
-
}
|
|
210
|
-
async function Y(e, t) {
|
|
211
|
-
const i = t, s = await i.getUsername(), o = {
|
|
212
|
-
q: new g.SearchQueryBuilder().match(e).in("title").and().match(s).in("owner"),
|
|
213
|
-
filter: "type:Solution",
|
|
214
|
-
authentication: i
|
|
215
|
-
}, d = (await g.searchAllItems(o)).results.map((p) => p.title), { folders: n } = await g.getFoldersAndGroups(i), h = n.map((p) => p.title), u = [...d, ...h].map((p) => p.trim().toLowerCase()), T = e.toLowerCase(), R = u.filter((p) => p === T), N = u.filter((p) => p.startsWith(T));
|
|
216
|
-
return { conflictingNames: R, similiarNames: N };
|
|
217
|
-
}
|
|
218
|
-
async function Ne(e, t) {
|
|
219
|
-
return q(e) ? { status: !1, type: "empty" } : j(e) ? { status: !1, type: "exceed length" } : J(e, "folder") ? { status: !1, type: "special character" } : (await Y(e.trim(), t)).conflictingNames.length > 0 ? { status: !1, type: "not unique" } : { status: !0, type: "" };
|
|
220
|
-
}
|
|
221
|
-
function q(e) {
|
|
222
|
-
return e.length <= 0;
|
|
223
|
-
}
|
|
224
|
-
function j(e) {
|
|
225
|
-
return e.length > ge;
|
|
226
|
-
}
|
|
227
|
-
function J(e, t) {
|
|
228
|
-
return (t === "item" ? /[><~`$^+=|]/u : /[/<>]/u).test(e);
|
|
229
|
-
}
|
|
230
|
-
function ke(e) {
|
|
231
|
-
if (e) {
|
|
232
|
-
const t = e.trim();
|
|
233
|
-
return t ? "<div>" + t + "</div>" : "";
|
|
234
|
-
} else
|
|
235
|
-
return "";
|
|
236
|
-
}
|
|
237
|
-
function Q(e) {
|
|
238
|
-
let t = "", i = "?";
|
|
239
|
-
return e.forEach((s) => {
|
|
240
|
-
s.k && s.v && (t += i + s.k + "=" + s.v, i = "&");
|
|
241
|
-
}), t;
|
|
242
|
-
}
|
|
243
|
-
function Ce(e, t, i, s) {
|
|
244
|
-
let a = "";
|
|
245
|
-
return t ? a = s + "/sharing/rest/content/items/" + e + "/info/" + t + Q([{ k: "w", v: "400" }]) : a = i, a;
|
|
246
|
-
}
|
|
247
|
-
function Le(e) {
|
|
248
|
-
const t = e ? e.replace("https://", "").replace("www.", "") : "";
|
|
249
|
-
return t.endsWith("devext.arcgis.com") || t.endsWith("mapsqa.arcgis.com") || t.endsWith("qaext.arcgis.com") ? e ?? "https://www.arcgis.com" : "https://www.arcgis.com";
|
|
250
|
-
}
|
|
251
|
-
function Me(e, t, i) {
|
|
252
|
-
return t.some((s) => s.wkid === e ? (i = s.defaultExtent, !0) : !1), i;
|
|
253
|
-
}
|
|
254
|
-
function xe(e, t) {
|
|
255
|
-
return _(t || e);
|
|
256
|
-
}
|
|
257
|
-
function Ue(e, t = "en") {
|
|
258
|
-
return new Intl.DateTimeFormat(t, {
|
|
259
|
-
year: "numeric",
|
|
260
|
-
month: "long",
|
|
261
|
-
day: "numeric"
|
|
262
|
-
}).format(e);
|
|
263
|
-
}
|
|
264
|
-
function Pe(e, t) {
|
|
265
|
-
let i = "";
|
|
266
|
-
return e.some((s) => s.startsWith(t) ? (i = s.substring(t.length), !0) : !1), i;
|
|
267
|
-
}
|
|
268
|
-
function _(e) {
|
|
269
|
-
const t = e.replace("www.", "");
|
|
270
|
-
return t.endsWith("devext.arcgis.com") ? "dev" : t.endsWith("mapsqa.arcgis.com") || t.endsWith("qaext.arcgis.com") ? "qa" : t === "arcgis.com" || t.endsWith(".arcgis.com") ? "prod" : "dev";
|
|
271
|
-
}
|
|
272
|
-
function $e(e, t) {
|
|
273
|
-
let i = e?.reduce((s, a) => (s.indexOf(a.id) < 0 && s.push(a.id), s), []) || [];
|
|
274
|
-
return t ? i.sort((s, a) => t.indexOf(s) - t.indexOf(a)) : i;
|
|
275
|
-
}
|
|
276
|
-
function Ge(e) {
|
|
277
|
-
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
278
|
-
}
|
|
279
|
-
function Be(e) {
|
|
280
|
-
return {
|
|
281
|
-
relevance: "Relevance",
|
|
282
|
-
title: "Title",
|
|
283
|
-
new: "New",
|
|
284
|
-
created: "Date deployed",
|
|
285
|
-
updated: "Updated",
|
|
286
|
-
suggested: "Suggested for you"
|
|
287
|
-
}[e] || e;
|
|
288
|
-
}
|
|
289
|
-
function Ke(e) {
|
|
290
|
-
if (!e)
|
|
291
|
-
return "Unknown error";
|
|
292
|
-
if (e.message)
|
|
293
|
-
return e.message;
|
|
294
|
-
try {
|
|
295
|
-
const t = JSON.stringify(e);
|
|
296
|
-
return t && t !== "{}" ? t : e.toString();
|
|
297
|
-
} catch {
|
|
298
|
-
return e.toString();
|
|
299
|
-
}
|
|
300
|
-
}
|
|
301
|
-
function Fe(e) {
|
|
302
|
-
return e ? parseFloat(((Date.now() - e) / 1e3).toFixed(2)) : 0;
|
|
303
|
-
}
|
|
304
|
-
function He(e, t) {
|
|
305
|
-
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), e.stopPropagation(), t());
|
|
306
|
-
}
|
|
307
|
-
function We(e, t) {
|
|
308
|
-
const i = v(t), s = z([{ k: "id", v: e }]) || "";
|
|
307
|
+
function We(t, e) {
|
|
308
|
+
const i = R(e), s = F([{ k: "id", v: t }]) || "";
|
|
309
309
|
return i ? `${i}/home/item.html${s}` : "";
|
|
310
310
|
}
|
|
311
|
-
function Ve(
|
|
312
|
-
const a = s ||
|
|
313
|
-
return a ? `${a}/sharing/rest/content/items/${
|
|
311
|
+
function Ve(t, e, i, s) {
|
|
312
|
+
const a = s || R(i);
|
|
313
|
+
return a ? `${a}/sharing/rest/content/items/${t}/resources/${e}` : "";
|
|
314
314
|
}
|
|
315
|
-
function
|
|
316
|
-
return
|
|
315
|
+
function R(t) {
|
|
316
|
+
return t?.PortalSubset?.orgUrl || t?.PortalUrl || "";
|
|
317
317
|
}
|
|
318
|
-
function
|
|
319
|
-
const i = new URL(
|
|
320
|
-
return i.searchParams.set("token",
|
|
318
|
+
function Z(t, e) {
|
|
319
|
+
const i = new URL(t);
|
|
320
|
+
return i.searchParams.set("token", e), i.toString();
|
|
321
321
|
}
|
|
322
|
-
class
|
|
322
|
+
class ee extends U {
|
|
323
323
|
constructor() {
|
|
324
|
-
super(), this.deployedDate = "", this.description = "", this.diagramKey = "", this.heading = "", this.itemId = "", this.owner = "", this.thumbnail = "", this.updateAvailable = !1, this.templateInfos = [], this._isDeleteOpen = !1, this._isDiagramOpen = !1, this.isMobile = !1, this.templateInfoGraph = [], this._configureTitlesOpen = !1, this._thumbnailUrl = "", this._translations =
|
|
325
|
-
context:
|
|
324
|
+
super(), this.deployedDate = "", this.description = "", this.diagramKey = "", this.heading = "", this.itemId = "", this.owner = "", this.thumbnail = "", this.updateAvailable = !1, this.templateInfos = [], this._isDeleteOpen = !1, this._isDiagramOpen = !1, this.isMobile = !1, this.templateInfoGraph = [], this._configureTitlesOpen = !1, this._thumbnailUrl = "", this._translations = x({ name: "solution-deployed-card", blocking: !0 }), this._configContextConsumer = w({
|
|
325
|
+
context: G,
|
|
326
326
|
subscribe: !0,
|
|
327
|
-
callback: async (
|
|
328
|
-
|
|
327
|
+
callback: async (e) => {
|
|
328
|
+
e && (this._isOrgAdmin = D(e.authentication), this._thumbnailUrl = `${this.thumbnail}&token=${e.userSession?.token}`);
|
|
329
329
|
}
|
|
330
|
-
}), this._deleteDialogRef = E(), this._diagramDialogRef = E(), this._isOrgAdmin = !1, this._isMobileContextConsumer =
|
|
331
|
-
context:
|
|
330
|
+
}), this._deleteDialogRef = E(), this._diagramDialogRef = E(), this._isOrgAdmin = !1, this._isMobileContextConsumer = w({
|
|
331
|
+
context: B,
|
|
332
332
|
subscribe: !0,
|
|
333
|
-
callback: (
|
|
334
|
-
}), this.deployedCardSelected =
|
|
335
|
-
this._updateThumbnailToken(
|
|
333
|
+
callback: (e) => this.isMobile = e
|
|
334
|
+
}), this.deployedCardSelected = $(), this.listenOn(window, "sessionRefreshed", (e) => {
|
|
335
|
+
this._updateThumbnailToken(e.detail);
|
|
336
336
|
});
|
|
337
337
|
}
|
|
338
338
|
static {
|
|
339
339
|
this.properties = { card: 0, deployedDate: 1, description: 1, diagramKey: 1, heading: 1, itemId: 1, owner: 1, thumbnail: 1, updateAvailable: 5, templateInfos: 0, _isDeleteOpen: 16, _isDiagramOpen: 16, isMobile: 16, templateInfoGraph: 16, _configureTitlesOpen: 16, _thumbnailUrl: 16, _translations: 16 };
|
|
340
340
|
}
|
|
341
341
|
static {
|
|
342
|
-
this.styles =
|
|
342
|
+
this.styles = K;
|
|
343
343
|
}
|
|
344
344
|
get _telemetry() {
|
|
345
345
|
return this._configContextConsumer.value?.telemetrySession;
|
|
@@ -347,8 +347,8 @@ class Z extends x {
|
|
|
347
347
|
async renderDeleteDialog() {
|
|
348
348
|
return this._isDeleteOpen = !0, this._renderDeleteDialog(), this._deleteDialogRef.value;
|
|
349
349
|
}
|
|
350
|
-
async renderDiagramDialog(
|
|
351
|
-
return await this._viewDiagram(
|
|
350
|
+
async renderDiagramDialog(e) {
|
|
351
|
+
return await this._viewDiagram(e), await this._renderDiagramDialog(), this._diagramDialogRef.value;
|
|
352
352
|
}
|
|
353
353
|
async getTemplates() {
|
|
354
354
|
return this._processTemplates(this.card);
|
|
@@ -357,44 +357,46 @@ class Z extends x {
|
|
|
357
357
|
this._isMobileContextConsumer.value && (this.isMobile = this._isMobileContextConsumer.value);
|
|
358
358
|
}
|
|
359
359
|
render() {
|
|
360
|
-
return
|
|
360
|
+
return l`<calcite-card .label=${this.description} @click=${this._cardSelected} @keydown=${(e) => f(e, () => this._cardSelected())}>${this._getImage()}${this._getHeader()}<p class="font-color-text-2 font-line-height font-size-size--1" slot=description>${this.description}</p><div class="width-full display-flex flex-direction-column" slot=footer-start><div class="padding-bottom-1-2">${this.owner !== "" && this._getOwnerLabel() || ""}${this._getDeployedDate()}</div>${this._getConfigureButton()}</div></calcite-card>${this._renderDeleteDialog()}${this._renderDiagramDialog()}${this._renderConfigureTitlesDialog()}`;
|
|
361
361
|
}
|
|
362
362
|
_getImage() {
|
|
363
|
-
return
|
|
363
|
+
return l`<div class="card-image-wrap" slot=thumbnail><img alt=${this.heading ?? m} class="thumbnail card-image" src=${this._thumbnailUrl ?? m}><div class="hover-text">${this._translations.openSolution}</div></div>`;
|
|
364
364
|
}
|
|
365
365
|
_getHeader() {
|
|
366
|
-
return
|
|
366
|
+
return l`<div class="display-flex justify-content-space-between header-line-height" slot=heading><calcite-label layout=inline-space-between scale=l>${this.heading}</calcite-label></div>`;
|
|
367
367
|
}
|
|
368
368
|
_getOwnerLabel() {
|
|
369
|
-
return
|
|
369
|
+
return l`<calcite-label class="font-weight-400 padding-end-1-2" layout=inline scale=s>${`${this._translations.owner}:`}<calcite-link class="font-weight-normal" @click=${this._openUserProfile}>${this.owner}</calcite-link></calcite-label>`;
|
|
370
370
|
}
|
|
371
371
|
_getDeployedDate() {
|
|
372
|
-
return
|
|
372
|
+
return l`<div class="display-flex align-items-center"><div class="padding-end-1-2"><svg height=16px viewBox="0 0 32 32" width=16px xmlns=http://www.w3.org/2000/svg>${M`<path class="svg-color" d="M29.963 7.672a1.586 1.586 0 0 0-1.584-1.585h-5.274a.187.187 0 0 1-.188-.187V3.977A2 2 0 0 0 20.825 2h-9.672A2.095 2.095 0 0 0 9.06 4.093V5.9a.187.187 0 0 1-.187.187H3.598a1.586 1.586 0 0 0-1.584 1.585v4.016a.281.281 0 0 0 .281.28H4.9l.014-.013V9.153a.177.177 0 0 1 .177-.177h21.46a.456.456 0 0 1 .449.45v13.742A1.832 1.832 0 0 1 25.168 25h-8.892a.568.568 0 0 1-.534-.373 3.98 3.98 0 0 0-7.6.373H5.657a.757.757 0 0 1-.757-.757v-3.055A.188.188 0 0 0 4.714 21H2.028l-.014.014v4.58a2.35 2.35 0 0 0 2.347 2.346h4.161a3.963 3.963 0 0 0 6.8.256.569.569 0 0 1 .475-.256h12.065a2.102 2.102 0 0 0 2.101-2.101zM21 5.625a.375.375 0 0 1-.375.375h-9.25A.375.375 0 0 1 11 5.625V4.45a.456.456 0 0 1 .45-.45h9.1a.456.456 0 0 1 .45.45zM12 28a2 2 0 1 1 2-2 2 2 0 0 1-2 2z" /><path class="svg-color" d="M13.273 17.994a.57.57 0 0 1 .479.262A3.73 3.73 0 0 0 17 20a3.74 3.74 0 0 0 3.403-2.006h3.41a.188.188 0 0 0 .187-.188v-2.589a.187.187 0 0 0-.188-.188H20.8A3.8 3.8 0 0 0 17 12a4.058 4.058 0 0 0-3.69 2.647.568.568 0 0 1-.537.383H1.093a.094.094 0 0 0-.093.093V17.9a.094.094 0 0 0 .094.094zM17 13.9a2.1 2.1 0 1 1-2.1 2.1 2.1 2.1 0 0 1 2.1-2.1z" />`}</svg></div><calcite-label class="deployed-label-override" scale=s>${this._translations.deployedDate.replace("{{date}}", this.deployedDate)}</calcite-label></div>`;
|
|
373
373
|
}
|
|
374
374
|
_getConfigureButton() {
|
|
375
|
-
const
|
|
376
|
-
return
|
|
375
|
+
const e = this._configContextConsumer.value?.userSession?.username, i = this._configContextConsumer.value?.authentication?.CanUpdateSolution, s = this._configContextConsumer.value?.authentication?.CanDeleteSolution, a = this.card?.owner === e || this._isOrgAdmin || i, r = this.card?.owner === e || this._isOrgAdmin || s, c = a ? "display-none" : "";
|
|
376
|
+
return l`<calcite-split-button appearance=outline aria-label=${this._translations.openSolution ?? m} dropdown-label=${this._translations.moreActions ?? m} kind=neutral @calciteSplitButtonPrimaryClick=${this._cardSelected} @click=${(n) => n.stopPropagation()} @keydown=${(n) => n.stopPropagation()} overlay-positioning=fixed primary-text=${this._translations.openSolution ?? m} width=full><calcite-dropdown-group selection-mode=none>${!this.isMobile && l`<calcite-dropdown-item icon-start=model @click=${this._viewDiagram} @keydown=${(n) => f(n, () => this._viewDiagram(n))}>${this._translations.viewDiagram}</calcite-dropdown-item>` || ""}<calcite-dropdown-item icon-start=file-text @click=${this._viewDocumentation} @keydown=${(n) => f(n, () => this._viewDocumentation(n))}>${this._translations.documentation}</calcite-dropdown-item><calcite-dropdown-item icon-start=information @click=${this._viewItemDetails} @keydown=${(n) => f(n, () => this._viewItemDetails(n))}>${this._translations.viewItemDetails}</calcite-dropdown-item>${!this.isMobile && a && l`<calcite-dropdown-item icon-start=edit-attributes id=solution-configure-titles-dropdown @click=${async () => {
|
|
377
|
+
this.templateInfos = await this._processTemplates(this.card), this._configureTitlesOpen = !0;
|
|
378
|
+
}} @keydown=${(n) => f(n, async () => {
|
|
377
379
|
this.templateInfos = await this._processTemplates(this.card), this._configureTitlesOpen = !0;
|
|
378
|
-
}}>${this._translations.renameItems}</calcite-dropdown-item>` || ""}${!this.isMobile &&
|
|
380
|
+
})}>${this._translations.renameItems}</calcite-dropdown-item>` || ""}${!this.isMobile && r && l`<calcite-dropdown-item icon-start=trash @click=${this._deleteSolution} @keydown=${(n) => f(n, () => this._deleteSolution(n))}>${this._translations.deleteSolution}</calcite-dropdown-item>` || ""}</calcite-dropdown-group><calcite-tooltip class=${P(c)} overlay-positioning=fixed reference-element=solution-configure-titles-dropdown><span>${this._translations.mustOwnSolution}</span></calcite-tooltip></calcite-split-button>`;
|
|
379
381
|
}
|
|
380
382
|
_renderDeleteDialog() {
|
|
381
|
-
return this._isDeleteOpen ?
|
|
382
|
-
this._isDeleteOpen =
|
|
383
|
-
}} .open=${this._isDeleteOpen} source="Card Dropdown" ${
|
|
383
|
+
return this._isDeleteOpen ? l`<solution-delete-dialog .card=${this.card} @solutionDeleteDialogOpen=${(e) => {
|
|
384
|
+
this._isDeleteOpen = e.detail;
|
|
385
|
+
}} .open=${this._isDeleteOpen} source="Card Dropdown" ${_(this._deleteDialogRef)}></solution-delete-dialog>` : "";
|
|
384
386
|
}
|
|
385
387
|
_renderDiagramDialog() {
|
|
386
|
-
return this._isDiagramOpen ?
|
|
388
|
+
return this._isDiagramOpen ? l`<calcite-dialog class="dialog-y-size dialog-x-size panel-bg-color" .heading=${this._translations.diagramTitle.replace("{{solution}}", this.card?.title ?? "")} id=${this._translations.diagramTitle.replace("{{solution}}", this.card?.title ?? "") ?? m} modal .open=${this._isDiagramOpen} @calciteDialogClose=${() => {
|
|
387
389
|
this._isDiagramOpen = !1;
|
|
388
|
-
}} outside-close-disabled scale=m width=l ${
|
|
390
|
+
}} outside-close-disabled scale=m width=l ${_(this._diagramDialogRef)}><solution-item-diagram .diagramKey=${this.diagramKey} .templateInfoGraph=${this.templateInfoGraph} .typeKeywords=${this.card?.typeKeywords}></solution-item-diagram></calcite-dialog>` : "";
|
|
389
391
|
}
|
|
390
392
|
_renderConfigureTitlesDialog() {
|
|
391
|
-
return this._configureTitlesOpen ?
|
|
392
|
-
this._processTemplates(this.card).then((
|
|
393
|
-
this.templateInfos =
|
|
393
|
+
return this._configureTitlesOpen ? l`<solution-configure-titles .card=${this.card} @solutionConfigureTitlesBeforeClose=${async () => {
|
|
394
|
+
this._processTemplates(this.card).then((e) => {
|
|
395
|
+
this.templateInfos = e;
|
|
394
396
|
}), this._configureTitlesOpen = !1;
|
|
395
397
|
}} @solutionItemsTitlesChanged=${async () => {
|
|
396
|
-
this._processTemplates(this.card).then((
|
|
397
|
-
this.templateInfos =
|
|
398
|
+
this._processTemplates(this.card).then((e) => {
|
|
399
|
+
this.templateInfos = e;
|
|
398
400
|
});
|
|
399
401
|
}} .open=${this._configureTitlesOpen} source="Card Dropdown" .templateInfos=${this.templateInfos}></solution-configure-titles>` : "";
|
|
400
402
|
}
|
|
@@ -404,9 +406,9 @@ class Z extends x {
|
|
|
404
406
|
cardRef: this.el
|
|
405
407
|
});
|
|
406
408
|
}
|
|
407
|
-
async _viewDiagram(
|
|
408
|
-
|
|
409
|
-
category:
|
|
409
|
+
async _viewDiagram(e) {
|
|
410
|
+
e.stopPropagation(), this.card && (this._telemetry?.logEvent({
|
|
411
|
+
category: T.DEPLOYMENTS,
|
|
410
412
|
action: "View Diagram",
|
|
411
413
|
dimensions: [
|
|
412
414
|
this.card.title || "",
|
|
@@ -416,9 +418,9 @@ class Z extends x {
|
|
|
416
418
|
]
|
|
417
419
|
}), this.templateInfoGraph = await this._processTemplates(this.card), this._isDiagramOpen = !0);
|
|
418
420
|
}
|
|
419
|
-
_viewDocumentation(
|
|
420
|
-
|
|
421
|
-
category:
|
|
421
|
+
_viewDocumentation(e) {
|
|
422
|
+
e.stopPropagation(), this._telemetry?.logEvent({
|
|
423
|
+
category: T.DEPLOYMENTS,
|
|
422
424
|
action: "Open Help",
|
|
423
425
|
dimensions: [
|
|
424
426
|
this.card?.title || "",
|
|
@@ -428,9 +430,9 @@ class Z extends x {
|
|
|
428
430
|
]
|
|
429
431
|
}), window.open(this.card.learnMoreUrl, "_blank");
|
|
430
432
|
}
|
|
431
|
-
_viewItemDetails(
|
|
432
|
-
|
|
433
|
-
category:
|
|
433
|
+
_viewItemDetails(e) {
|
|
434
|
+
e.stopPropagation(), this._telemetry?.logEvent({
|
|
435
|
+
category: T.DEPLOYMENTS,
|
|
434
436
|
action: "Open Item Details",
|
|
435
437
|
dimensions: [
|
|
436
438
|
this.card?.title || "",
|
|
@@ -440,22 +442,22 @@ class Z extends x {
|
|
|
440
442
|
]
|
|
441
443
|
}), window.open(this.card.itemUrl, "_blank");
|
|
442
444
|
}
|
|
443
|
-
_deleteSolution(
|
|
444
|
-
|
|
445
|
+
_deleteSolution(e) {
|
|
446
|
+
e.stopPropagation(), this._isDeleteOpen = !0;
|
|
445
447
|
}
|
|
446
|
-
_openUserProfile(
|
|
447
|
-
|
|
448
|
+
_openUserProfile(e) {
|
|
449
|
+
e.stopPropagation();
|
|
448
450
|
const i = this._configContextConsumer.value?.authentication?.PortalSubset?.orgUrl;
|
|
449
451
|
i && window.open(`${i}/home/user.html?user=${this.owner}`, "_blank");
|
|
450
452
|
}
|
|
451
|
-
async _processTemplates(
|
|
452
|
-
return await
|
|
453
|
+
async _processTemplates(e) {
|
|
454
|
+
return await q(e.id, this._configContextConsumer.value.userSession);
|
|
453
455
|
}
|
|
454
|
-
_updateThumbnailToken(
|
|
455
|
-
this._thumbnailUrl !== "" && (this._thumbnailUrl =
|
|
456
|
+
_updateThumbnailToken(e) {
|
|
457
|
+
this._thumbnailUrl !== "" && (this._thumbnailUrl = Z(this._thumbnailUrl, e));
|
|
456
458
|
}
|
|
457
459
|
}
|
|
458
|
-
|
|
460
|
+
C("solution-deployed-card", ee);
|
|
459
461
|
const ze = 500, Ye = {
|
|
460
462
|
AEC: "Architecture, Engineering, and Construction (AEC)",
|
|
461
463
|
AIRPORTPORTRAIL: "Airports, Ports, and Rails",
|
|
@@ -495,8 +497,8 @@ const ze = 500, Ye = {
|
|
|
495
497
|
TRANSPORTATION: "Transportation",
|
|
496
498
|
WATER: "Water Distribution"
|
|
497
499
|
};
|
|
498
|
-
var
|
|
499
|
-
const je = '((typekeywords:Solution,Deployed,"ArcGIS Solution") OR ((typekeywords:Solution,Deployed) AND (created:[1577862000000 TO 1622576880000])))', Je = "(typekeywords:Solution,Template)",
|
|
500
|
+
var d = /* @__PURE__ */ ((t) => (t.HUBPREMIUM = "solutions:hubPremium", t.NOTEBOOK = "solutions:notebook", t.TRACKINGBASE = "solutions:locationtracking", t.TRACKING = "solutions:locationtracking:tracking", t.TRACKINGADMIN = "solutions:locationtracking:admin", t.TRACKINGADMINANDTRACKING = "solutions:locationtracking:admin:tracking", t.VELOCITY = "solutions:velocity", t.WORKFLOW = "solutions:workflowManager", t))(d || {}), te = /* @__PURE__ */ ((t) => (t.VELOCITYBIGDATA = "portal:publisher:publishBigDataAnalytics", t.VELOCITYFEEDS = "portal:publisher:publishFeeds", t.VELOCITYREALTIME = "portal:publisher:publishRealTimeAnalytics", t))(te || {});
|
|
501
|
+
const je = '((typekeywords:Solution,Deployed,"ArcGIS Solution") OR ((typekeywords:Solution,Deployed) AND (created:[1577862000000 TO 1622576880000])))', Je = "(typekeywords:Solution,Template)", ie = "portal:user:addExternalMembersToGroup", se = "portal:user:createItem", O = "portal:user:createGroup", ae = "portal:publisher:publishBigDataAnalytics", A = "portal:publisher:publishFeatures", ne = "portal:publisher:publishFeeds", oe = "portal:publisher:publishServerGPServices", re = "portal:publisher:publishRealTimeAnalytics", I = "portal:user:shareToGroup", le = "solutions:hubPremium", ce = "solutions:notebook", de = "solutions:locationtracking:admin:tracking", ue = "solutions:locationtracking:tracking", pe = "solutions:locationtracking:admin", he = "solutions:velocity", ge = "solutions:workflowManager", me = 250, T = {
|
|
500
502
|
SOLUTION_DETAILS: "Solution Details",
|
|
501
503
|
GLOBAL_NAVIGATION: "Global Nav",
|
|
502
504
|
ALL_SOLUTIONS: "Solutions",
|
|
@@ -522,59 +524,59 @@ const je = '((typekeywords:Solution,Deployed,"ArcGIS Solution") OR ((typekeyword
|
|
|
522
524
|
AIOPEN: "aiOpen"
|
|
523
525
|
};
|
|
524
526
|
export {
|
|
525
|
-
|
|
526
|
-
|
|
527
|
+
H as $,
|
|
528
|
+
z as A,
|
|
527
529
|
je as B,
|
|
528
530
|
We as C,
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
531
|
+
D,
|
|
532
|
+
d as E,
|
|
533
|
+
Z as F,
|
|
534
|
+
f as G,
|
|
533
535
|
Ve as H,
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
536
|
+
me as I,
|
|
537
|
+
Pe as J,
|
|
538
|
+
Ge as K,
|
|
539
|
+
Ce as L,
|
|
538
540
|
ke as M,
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
Q,
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
541
|
+
xe as N,
|
|
542
|
+
Ne as O,
|
|
543
|
+
ie as P,
|
|
544
|
+
Y as Q,
|
|
545
|
+
ve as R,
|
|
546
|
+
le as S,
|
|
547
|
+
T,
|
|
548
|
+
Ke as U,
|
|
549
|
+
Be as V,
|
|
550
|
+
Fe as W,
|
|
551
|
+
He as X,
|
|
552
|
+
Me as Y,
|
|
553
|
+
Re as Z,
|
|
554
|
+
Le as _,
|
|
553
555
|
Je as a,
|
|
554
|
-
|
|
556
|
+
ee as a0,
|
|
555
557
|
ze as b,
|
|
556
558
|
Qe as c,
|
|
557
559
|
qe as d,
|
|
558
560
|
Ye as e,
|
|
559
561
|
Xe as f,
|
|
560
|
-
|
|
562
|
+
te as g,
|
|
561
563
|
et as h,
|
|
562
564
|
Ze as i,
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
565
|
+
O as j,
|
|
566
|
+
se as k,
|
|
567
|
+
ae as l,
|
|
568
|
+
A as m,
|
|
569
|
+
ne as n,
|
|
570
|
+
oe as o,
|
|
571
|
+
re as p,
|
|
572
|
+
I as q,
|
|
573
|
+
ce as r,
|
|
574
|
+
ue as s,
|
|
575
|
+
pe as t,
|
|
576
|
+
de as u,
|
|
577
|
+
he as v,
|
|
578
|
+
ge as w,
|
|
579
|
+
q as x,
|
|
580
|
+
Ue as y,
|
|
579
581
|
$e as z
|
|
580
582
|
};
|