@arcgis/portal-components 6.0.0-next.29 → 6.0.0-next.30
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/F5T3DTCW.js +2 -0
- package/dist/cdn/JD6QT6IC.js +2 -0
- package/dist/cdn/index.js +1 -1
- package/dist/components/arcgis-portal-account-switcher/customElement.js +56 -53
- package/dist/components/arcgis-portal-add-gps-metadata/customElement.d.ts +14 -2
- package/dist/components/arcgis-portal-add-gps-metadata/customElement.js +65 -63
- package/dist/components/arcgis-portal-navigation/index.js +4 -4
- 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/package.json +7 -7
- package/dist/cdn/VDBJFYFR.js +0 -2
- package/dist/cdn/VWLUIB7M.js +0 -2
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
import { c as D } from "../../chunks/runtime.js";
|
|
3
3
|
import I from "@arcgis/core/layers/Layer.js";
|
|
4
4
|
import C from "@arcgis/core/portal/PortalItem.js";
|
|
5
|
-
import { LitElement as
|
|
6
|
-
import { usePropertyChange as w, bypassReadOnly as
|
|
7
|
-
import { css as
|
|
5
|
+
import { LitElement as A, createEvent as b } from "@arcgis/lumina";
|
|
6
|
+
import { usePropertyChange as w, bypassReadOnly as T } from "@arcgis/lumina/controllers";
|
|
7
|
+
import { css as L, html as c } from "lit";
|
|
8
8
|
import { u as z } from "../../chunks/useT9n.js";
|
|
9
|
-
import
|
|
10
|
-
import { r as
|
|
9
|
+
import f from "@arcgis/core/request.js";
|
|
10
|
+
import { r as S } from "../../chunks/request.js";
|
|
11
11
|
import { g as G } from "../../chunks/item.js";
|
|
12
12
|
import { p as x } from "../../chunks/functionalities.js";
|
|
13
|
-
const R =
|
|
13
|
+
const R = L`:host{background-color:var(--calcite-color-foreground-1)}.scrim-container{position:relative}.base-fields-control{margin-inline-end:.75rem}.added{display:inline-flex;gap:.5rem;flex-shrink:0;white-space:nowrap}.added calcite-icon{color:var(--calcite-color-status-success)}.add-fields-button{margin:.75rem 0}calcite-block{border-bottom:0}calcite-list-item:last-child:after{display:block;margin-inline-start:var(--calcite-spacing-md);border-block-end:1px solid var(--calcite-list-border-color, var(--calcite-color-border-3));content:""}`;
|
|
14
14
|
async function _({
|
|
15
15
|
item: s,
|
|
16
16
|
layers: e
|
|
@@ -19,33 +19,33 @@ async function _({
|
|
|
19
19
|
if (!t)
|
|
20
20
|
return { result: l };
|
|
21
21
|
try {
|
|
22
|
-
const i = (await
|
|
22
|
+
const i = (await f(t, {
|
|
23
23
|
cacheBust: !0,
|
|
24
24
|
query: { f: "json" },
|
|
25
25
|
responseType: "json"
|
|
26
26
|
})).data;
|
|
27
27
|
if (i.fields) {
|
|
28
|
-
const
|
|
29
|
-
return e?.length === 1 &&
|
|
28
|
+
const r = e?.[0];
|
|
29
|
+
return e?.length === 1 && r?.layerId != null && l.set(r.layerId, i.fields), { result: l };
|
|
30
30
|
}
|
|
31
31
|
if (!i.layers?.length)
|
|
32
32
|
return { result: l };
|
|
33
33
|
const a = t.replace(/\/$/u, "");
|
|
34
34
|
return await Promise.all(
|
|
35
|
-
i.layers.map(async ({ id:
|
|
36
|
-
const
|
|
35
|
+
i.layers.map(async ({ id: r }) => {
|
|
36
|
+
const n = (await f(`${a}/${r}`, {
|
|
37
37
|
cacheBust: !0,
|
|
38
38
|
query: { f: "json" },
|
|
39
39
|
responseType: "json"
|
|
40
40
|
})).data;
|
|
41
|
-
l.set(
|
|
41
|
+
l.set(r, n.fields ?? []);
|
|
42
42
|
})
|
|
43
43
|
), { result: l };
|
|
44
44
|
} catch (i) {
|
|
45
45
|
return console.error("Error getting layer fields:", i), { error: { code: "unhandledError" } };
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
|
-
const
|
|
48
|
+
const O = (s) => {
|
|
49
49
|
const { url: e } = s;
|
|
50
50
|
return e ? e.replace("/rest/services", "/rest/admin/services").replace(/\/$/u, "") : null;
|
|
51
51
|
};
|
|
@@ -55,7 +55,7 @@ async function E({
|
|
|
55
55
|
portal: t,
|
|
56
56
|
layerId: l
|
|
57
57
|
}) {
|
|
58
|
-
const i =
|
|
58
|
+
const i = O(e);
|
|
59
59
|
if (!i)
|
|
60
60
|
return {
|
|
61
61
|
error: {
|
|
@@ -64,7 +64,7 @@ async function E({
|
|
|
64
64
|
}
|
|
65
65
|
};
|
|
66
66
|
try {
|
|
67
|
-
const a = await
|
|
67
|
+
const a = await S({
|
|
68
68
|
url: `${i}/${l != null ? `${l}/` : ""}addToDefinition`,
|
|
69
69
|
portal: t,
|
|
70
70
|
method: "post",
|
|
@@ -92,7 +92,7 @@ async function M({
|
|
|
92
92
|
portal: t,
|
|
93
93
|
layerId: l
|
|
94
94
|
}) {
|
|
95
|
-
const i =
|
|
95
|
+
const i = O(e);
|
|
96
96
|
if (!i)
|
|
97
97
|
return {
|
|
98
98
|
error: {
|
|
@@ -101,7 +101,7 @@ async function M({
|
|
|
101
101
|
}
|
|
102
102
|
};
|
|
103
103
|
try {
|
|
104
|
-
const a = await
|
|
104
|
+
const a = await S({
|
|
105
105
|
url: `${i}/${l != null ? `${l}/` : ""}updateDefinition`,
|
|
106
106
|
portal: t,
|
|
107
107
|
method: "post",
|
|
@@ -128,7 +128,7 @@ async function N(s) {
|
|
|
128
128
|
if (!e)
|
|
129
129
|
return { error: { code: "unhandledError" } };
|
|
130
130
|
try {
|
|
131
|
-
return { result: (await
|
|
131
|
+
return { result: (await f(e, { query: { f: "json" } })).data };
|
|
132
132
|
} catch (t) {
|
|
133
133
|
return console.error("Error getting service info:", t), { error: { code: "unhandledError" } };
|
|
134
134
|
}
|
|
@@ -136,13 +136,13 @@ async function N(s) {
|
|
|
136
136
|
const k = (s, e) => {
|
|
137
137
|
const t = s.domain ?? null, l = e.domain ?? null;
|
|
138
138
|
return t === null || l === null ? t === l : t.type !== l.type ? !1 : t.type === "codedValue" && l.type === "codedValue" ? t.codedValues.length === l.codedValues.length && t.codedValues.every(
|
|
139
|
-
({ code: i, name: a },
|
|
139
|
+
({ code: i, name: a }, r) => i === l.codedValues[r]?.code && a === l.codedValues[r]?.name
|
|
140
140
|
) : t.type === "range" && l.type === "range" ? t.range[0] === l.range[0] && t.range[1] === l.range[1] : !0;
|
|
141
141
|
}, $ = (s, e) => {
|
|
142
142
|
const t = new Map(e.map((a) => [a.name, a])), l = [], i = [];
|
|
143
143
|
for (const a of s) {
|
|
144
|
-
const
|
|
145
|
-
|
|
144
|
+
const r = t.get(a.name);
|
|
145
|
+
r ? k(a, r) || i.push({ name: a.name, domain: a.domain }) : l.push(a);
|
|
146
146
|
}
|
|
147
147
|
return { missingFields: l, modifiedFields: i };
|
|
148
148
|
}, B = (s) => {
|
|
@@ -1193,12 +1193,12 @@ function j(s) {
|
|
|
1193
1193
|
return !0;
|
|
1194
1194
|
}
|
|
1195
1195
|
const W = (s) => s.every(j), X = ["point", "polyline", "polygon"], J = (s) => s?.type === "Feature Service", P = (s) => J(s) && !s.typeKeywords.some((e) => ["View Service", "Multi Services View"].includes(e));
|
|
1196
|
-
class Q extends
|
|
1196
|
+
class Q extends A {
|
|
1197
1197
|
constructor() {
|
|
1198
|
-
super(...arguments), this.messages = z({ blocking: !0 }), this.initCount = 0, this.
|
|
1198
|
+
super(...arguments), this.messages = z({ blocking: !0 }), this.initCount = 0, this.layersLoaded = !1, this.pointLayers = [], this.lineOrPolygonLayers = [], this.loadedItem = null, this.gpsFieldFixesBySet = null, this.addFieldsDisabled = !0, this.initializing = !0, this.hasLineOrPolygonLayer = !1, this.hasPointFeatureLayer = !1, this.addingGPSFieldMetadata = [], this.item = null, this.itemId = null, this.canShowAddGPSMetadata = !1, this.supportsAttachments = !0, this.areSourceSchemaChangesAllowed = !0, this.messageOverrides = {}, this.arcgisPropertyChange = w()("canShowAddGPSMetadata", "supportsAttachments", "areSourceSchemaChangesAllowed"), this.arcgisGPSMetadataFieldsAdded = b(), this.arcgisReadOnlyMode = b();
|
|
1199
1199
|
}
|
|
1200
1200
|
static {
|
|
1201
|
-
this.properties = { loadedItem: 16, gpsFieldFixesBySet: 16, addFieldsDisabled: 16, initializing: 16, hasLineOrPolygonLayer: 16, hasPointFeatureLayer: 16, addingGPSFieldMetadata: 16, item: 0, itemId: 1, portal: 0, canShowAddGPSMetadata: 32, messageOverrides: 0 };
|
|
1201
|
+
this.properties = { loadedItem: 16, gpsFieldFixesBySet: 16, addFieldsDisabled: 16, initializing: 16, hasLineOrPolygonLayer: 16, hasPointFeatureLayer: 16, addingGPSFieldMetadata: 16, item: 0, itemId: 1, portal: 0, canShowAddGPSMetadata: 32, supportsAttachments: 32, areSourceSchemaChangesAllowed: 32, messageOverrides: 0 };
|
|
1202
1202
|
}
|
|
1203
1203
|
static {
|
|
1204
1204
|
this.styles = R;
|
|
@@ -1221,61 +1221,63 @@ class Q extends L {
|
|
|
1221
1221
|
this.resetItemState(), this.initializing = !1;
|
|
1222
1222
|
return;
|
|
1223
1223
|
}
|
|
1224
|
-
const
|
|
1224
|
+
const r = l ? await l.load() : await new C({
|
|
1225
1225
|
id: i,
|
|
1226
1226
|
portal: a
|
|
1227
1227
|
}).load();
|
|
1228
1228
|
if (!this.isCurrentInitialization(t))
|
|
1229
1229
|
return;
|
|
1230
|
-
if (!P(
|
|
1230
|
+
if (!P(r)) {
|
|
1231
1231
|
this.resetItemState(), this.initializing = !1;
|
|
1232
1232
|
return;
|
|
1233
1233
|
}
|
|
1234
|
-
this.loadedItem =
|
|
1235
|
-
const
|
|
1234
|
+
this.loadedItem = r;
|
|
1235
|
+
const n = !e && this.layersLoaded ? [...this.pointLayers, ...this.lineOrPolygonLayers] : await this.getFeatureLayers(r);
|
|
1236
1236
|
if (!this.isCurrentInitialization(t))
|
|
1237
1237
|
return;
|
|
1238
|
-
if (
|
|
1238
|
+
if (n.length === 0) {
|
|
1239
1239
|
this.resetItemState(), this.initializing = !1;
|
|
1240
1240
|
return;
|
|
1241
1241
|
}
|
|
1242
|
-
const
|
|
1242
|
+
const p = await G(r.id, r.portal, {
|
|
1243
1243
|
relationshipType: "Service2Service"
|
|
1244
1244
|
});
|
|
1245
1245
|
if (!this.isCurrentInitialization(t))
|
|
1246
1246
|
return;
|
|
1247
|
-
if (
|
|
1247
|
+
if (p?.data?.relatedItems?.some((d) => ["WMTS", "Map Service", "Vector Tile Service"].includes(d.type))) {
|
|
1248
1248
|
this.resetItemState(), this.initializing = !1;
|
|
1249
1249
|
return;
|
|
1250
1250
|
}
|
|
1251
|
-
this.layersLoaded = !0, this.pointLayers =
|
|
1252
|
-
const { result:
|
|
1251
|
+
this.layersLoaded = !0, this.pointLayers = n.filter((d) => d.geometryType === "point"), this.lineOrPolygonLayers = n.filter((d) => d.geometryType === "polyline" || d.geometryType === "polygon"), this.hasLineOrPolygonLayer = n.some((d) => d.geometryType === "polyline" || d.geometryType === "polygon"), this.hasPointFeatureLayer = n.some((d) => d.geometryType === "point"), T(() => this.canShowAddGPSMetadata = !0);
|
|
1252
|
+
const { result: o } = await N(r);
|
|
1253
1253
|
if (!this.isCurrentInitialization(t))
|
|
1254
1254
|
return;
|
|
1255
|
-
const { result:
|
|
1256
|
-
item:
|
|
1257
|
-
layers:
|
|
1255
|
+
const { result: m, error: h } = await _({
|
|
1256
|
+
item: r,
|
|
1257
|
+
layers: n
|
|
1258
1258
|
});
|
|
1259
1259
|
if (!this.isCurrentInitialization(t))
|
|
1260
1260
|
return;
|
|
1261
|
-
if (
|
|
1261
|
+
if (h) {
|
|
1262
1262
|
this.resetItemState(), this.initializing = !1;
|
|
1263
1263
|
return;
|
|
1264
1264
|
}
|
|
1265
|
-
const
|
|
1265
|
+
const g = m ?? /* @__PURE__ */ new Map();
|
|
1266
1266
|
this.gpsFieldFixesBySet = {
|
|
1267
|
-
base: this.analyzeFieldSet([...this.pointLayers, ...this.lineOrPolygonLayers],
|
|
1268
|
-
gnss: this.analyzeFieldSet(this.pointLayers,
|
|
1269
|
-
rangefinder: this.analyzeFieldSet(this.pointLayers,
|
|
1270
|
-
},
|
|
1271
|
-
|
|
1272
|
-
this.addFieldsDisabled = !this.supportsAttachments || !
|
|
1267
|
+
base: this.analyzeFieldSet([...this.pointLayers, ...this.lineOrPolygonLayers], g, "base"),
|
|
1268
|
+
gnss: this.analyzeFieldSet(this.pointLayers, g, "gnss"),
|
|
1269
|
+
rangefinder: this.analyzeFieldSet(this.pointLayers, g, "rangefinder")
|
|
1270
|
+
}, T(() => {
|
|
1271
|
+
this.supportsAttachments = W(n), this.areSourceSchemaChangesAllowed = o?.sourceSchemaChangesAllowed !== !1;
|
|
1272
|
+
}), this.addFieldsDisabled = !this.supportsAttachments || !this.areSourceSchemaChangesAllowed, this.initializing = !1;
|
|
1273
1273
|
}
|
|
1274
1274
|
isCurrentInitialization(e) {
|
|
1275
1275
|
return e === this.initCount;
|
|
1276
1276
|
}
|
|
1277
1277
|
resetItemState() {
|
|
1278
|
-
|
|
1278
|
+
T(() => {
|
|
1279
|
+
this.canShowAddGPSMetadata = !1, this.supportsAttachments = !0, this.areSourceSchemaChangesAllowed = !0;
|
|
1280
|
+
}), this.loadedItem = null, this.layersLoaded = !1, this.pointLayers = [], this.lineOrPolygonLayers = [], this.gpsFieldFixesBySet = null, this.addFieldsDisabled = !0, this.hasLineOrPolygonLayer = !1, this.hasPointFeatureLayer = !1;
|
|
1279
1281
|
}
|
|
1280
1282
|
async getFeatureLayers(e) {
|
|
1281
1283
|
const t = await I.fromPortalItem({ portalItem: e });
|
|
@@ -1302,11 +1304,11 @@ class Q extends L {
|
|
|
1302
1304
|
for (const a of e) {
|
|
1303
1305
|
if (a.layerId == null)
|
|
1304
1306
|
continue;
|
|
1305
|
-
const
|
|
1306
|
-
(
|
|
1307
|
+
const r = t.get(a.layerId) ?? [], n = this.getCompatibleEsriGeometryType(a), p = n ? l === "base" ? B(n) : l === "gnss" ? F(n) : q(n) : [], o = $(p, r);
|
|
1308
|
+
(o.missingFields.length > 0 || o.modifiedFields.length > 0) && i.push({
|
|
1307
1309
|
layerId: a.layerId,
|
|
1308
|
-
fieldsToAdd:
|
|
1309
|
-
domainsToUpdate:
|
|
1310
|
+
fieldsToAdd: o.missingFields,
|
|
1311
|
+
domainsToUpdate: o.modifiedFields
|
|
1310
1312
|
});
|
|
1311
1313
|
}
|
|
1312
1314
|
return i;
|
|
@@ -1328,46 +1330,46 @@ class Q extends L {
|
|
|
1328
1330
|
this.addingGPSFieldMetadata = [...this.addingGPSFieldMetadata, e];
|
|
1329
1331
|
const a = [...this.pointLayers, ...this.lineOrPolygonLayers];
|
|
1330
1332
|
try {
|
|
1331
|
-
const
|
|
1332
|
-
if (!
|
|
1333
|
+
const r = i[e], p = (await Promise.all(r.filter(({ fieldsToAdd: u }) => u.length > 0).map(async ({ fieldsToAdd: u, layerId: y }) => await E({ fields: u, item: l, layerId: y, portal: t })))).every(({ error: u }) => !u), o = p ? await Promise.all(r.filter(({ domainsToUpdate: u }) => u.length > 0).map(async ({ domainsToUpdate: u, layerId: y }) => await M({ fields: u, item: l, layerId: y, portal: t }))) : [], m = p && o.every(({ error: u }) => !u);
|
|
1334
|
+
if (!m || this.loadedItem !== l)
|
|
1333
1335
|
return;
|
|
1334
|
-
let
|
|
1336
|
+
let h;
|
|
1335
1337
|
if (await x(async () => {
|
|
1336
1338
|
if (this.loadedItem !== l)
|
|
1337
1339
|
return !0;
|
|
1338
|
-
const { result:
|
|
1339
|
-
if (
|
|
1340
|
+
const { result: u, error: y } = await _({ item: l, layers: a });
|
|
1341
|
+
if (y || this.loadedItem !== l)
|
|
1340
1342
|
return !0;
|
|
1341
|
-
if (!
|
|
1343
|
+
if (!u)
|
|
1342
1344
|
return !1;
|
|
1343
1345
|
const V = e === "base" ? a : a.filter((v) => v.geometryType === "point");
|
|
1344
|
-
return this.analyzeFieldSet(V,
|
|
1346
|
+
return this.analyzeFieldSet(V, u, e).length > 0 ? !1 : (h = u, !0);
|
|
1345
1347
|
}, 10) || console.warn("Fields were not verified on the service.", {
|
|
1346
1348
|
itemId: l.id,
|
|
1347
1349
|
fieldSet: e
|
|
1348
|
-
}), !
|
|
1350
|
+
}), !h || this.loadedItem !== l)
|
|
1349
1351
|
return;
|
|
1350
|
-
await this.initItem({ showLoading: !1 }),
|
|
1352
|
+
await this.initItem({ showLoading: !1 }), p && m && this.gpsFieldFixesBySet && !this.hasFieldChanges(e) && this.arcgisGPSMetadataFieldsAdded.emit(e);
|
|
1351
1353
|
} finally {
|
|
1352
|
-
this.addingGPSFieldMetadata = this.addingGPSFieldMetadata.filter((
|
|
1354
|
+
this.addingGPSFieldMetadata = this.addingGPSFieldMetadata.filter((r) => r !== e);
|
|
1353
1355
|
}
|
|
1354
1356
|
}
|
|
1355
1357
|
showAdvancedFields() {
|
|
1356
1358
|
const e = this.gpsFieldFixesBySet;
|
|
1357
1359
|
return !this.hasPointFeatureLayer || !e ? !1 : this.hasFieldChanges("base") ? this.pointLayers.some((t) => t.layerId == null ? !1 : ["gnss", "rangefinder"].some((l) => {
|
|
1358
1360
|
const i = l === "gnss" ? F("esriGeometryPoint") : q("esriGeometryPoint");
|
|
1359
|
-
return (e[l].find(({ layerId:
|
|
1361
|
+
return (e[l].find(({ layerId: r }) => r === t.layerId)?.fieldsToAdd ?? []).length < i.length;
|
|
1360
1362
|
})) : !0;
|
|
1361
1363
|
}
|
|
1362
1364
|
renderAddFieldsControl(e, t = !1) {
|
|
1363
1365
|
const l = this.gpsFieldFixesBySet;
|
|
1364
1366
|
if (!t && l && !this.hasFieldChanges(e))
|
|
1365
|
-
return
|
|
1367
|
+
return c`<span slot=actions-end class="added"><calcite-icon icon=check-circle scale=s aria-hidden></calcite-icon>${this.messages.added}</span>`;
|
|
1366
1368
|
const i = this.isLoading(e);
|
|
1367
|
-
return
|
|
1369
|
+
return c`<calcite-button slot=actions-end class="add-fields-button" appearance=outline-fill .disabled=${t || !l || i || this.addFieldsDisabled} .loading=${i} @click=${async () => await this.addFields(e)}>${i ? this.messages.addingFields : this.messages.addFields}</calcite-button>`;
|
|
1368
1370
|
}
|
|
1369
1371
|
render() {
|
|
1370
|
-
return this.canShowAddGPSMetadata ?
|
|
1372
|
+
return this.canShowAddGPSMetadata ? c`<div class="scrim-container"><calcite-block scale=m expanded>${this.initializing && c`<calcite-scrim loading></calcite-scrim>` || ""}<calcite-list .label=${this.messages.gpsOptions} selection-mode=none><calcite-list-item .label=${this.messages.accordionHeading}>${this.renderAddFieldsControl("base")}</calcite-list-item>${this.showAdvancedFields() && c`<calcite-list-item .label=${this.messages.gnssReceiverFields}>${this.renderAddFieldsControl("gnss")}</calcite-list-item><calcite-list-item .label=${this.messages.laserRangefinderFields}>${this.renderAddFieldsControl("rangefinder")}</calcite-list-item>` || ""}</calcite-list></calcite-block></div>` : null;
|
|
1371
1373
|
}
|
|
1372
1374
|
}
|
|
1373
1375
|
D("arcgis-portal-add-gps-metadata", Q);
|
|
@@ -2,13 +2,13 @@ import "@esri/calcite-components/components/calcite-chip";
|
|
|
2
2
|
import "@esri/calcite-components/components/calcite-tooltip";
|
|
3
3
|
import "@esri/calcite-components/components/calcite-list-item";
|
|
4
4
|
import "@esri/calcite-components/components/calcite-action";
|
|
5
|
-
import "@esri/calcite-components/components/calcite-icon";
|
|
6
|
-
import "@esri/calcite-components/components/calcite-popover";
|
|
7
|
-
import "@esri/calcite-components/components/calcite-list";
|
|
8
5
|
import "../arcgis-portal-item-type/index.js";
|
|
9
|
-
import "@esri/calcite-components/components/calcite-loader";
|
|
10
6
|
import "@esri/calcite-components/components/calcite-button";
|
|
7
|
+
import "@esri/calcite-components/components/calcite-list";
|
|
11
8
|
import "@esri/calcite-components/components/calcite-input";
|
|
9
|
+
import "@esri/calcite-components/components/calcite-icon";
|
|
10
|
+
import "@esri/calcite-components/components/calcite-popover";
|
|
11
|
+
import "@esri/calcite-components/components/calcite-loader";
|
|
12
12
|
import "@esri/calcite-components/components/calcite-dropdown-item";
|
|
13
13
|
import "@esri/calcite-components/components/calcite-dropdown";
|
|
14
14
|
import "../arcgis-portal-user-avatar/index.js";
|