@ibdop/platform-kit 1.0.0 → 1.0.2
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/index.cjs.js +10 -10
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.es.js +687 -611
- package/dist/index.umd.js +9 -9
- package/dist/types/index.d.ts +4 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/utils/index.d.ts +6 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/mfeName.d.ts +52 -0
- package/dist/utils/mfeName.d.ts.map +1 -0
- package/package.json +1 -1
- package/src/index.ts +3 -0
- package/src/types/index.ts +12 -0
- package/src/utils/index.ts +16 -0
- package/src/utils/mfeName.ts +228 -0
package/dist/index.es.js
CHANGED
|
@@ -1,138 +1,138 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
const
|
|
4
|
-
log: (...
|
|
1
|
+
import qe, { useState as C, useRef as Dt, useCallback as k, useEffect as Q, useMemo as Be, Component as Ft, createContext as Lt, useContext as $t } from "react";
|
|
2
|
+
import Ut from "axios";
|
|
3
|
+
const He = {
|
|
4
|
+
log: (...t) => {
|
|
5
5
|
},
|
|
6
|
-
warn: (...
|
|
6
|
+
warn: (...t) => {
|
|
7
7
|
}
|
|
8
8
|
};
|
|
9
|
-
function
|
|
9
|
+
function fe() {
|
|
10
10
|
if (typeof window > "u") return null;
|
|
11
|
-
const
|
|
12
|
-
if (
|
|
13
|
-
return
|
|
11
|
+
const t = window;
|
|
12
|
+
if (t.__SHELL_AUTH_INSTANCE__)
|
|
13
|
+
return t.__SHELL_AUTH_INSTANCE__;
|
|
14
14
|
const r = window;
|
|
15
15
|
return r.__SHELL_AUTH__?.authInstance ? r.__SHELL_AUTH__.authInstance : null;
|
|
16
16
|
}
|
|
17
|
-
function
|
|
18
|
-
const [
|
|
19
|
-
|
|
20
|
-
const
|
|
21
|
-
if (
|
|
22
|
-
r(
|
|
17
|
+
function Vt() {
|
|
18
|
+
const [t, r] = C(null), [o, l] = C(!0), s = Dt(0), f = 20, a = k(() => fe(), []);
|
|
19
|
+
Q(() => {
|
|
20
|
+
const E = a();
|
|
21
|
+
if (E) {
|
|
22
|
+
r(E), l(!1);
|
|
23
23
|
return;
|
|
24
24
|
}
|
|
25
|
-
const
|
|
25
|
+
const g = (u) => {
|
|
26
26
|
r(u.detail), l(!1);
|
|
27
27
|
}, b = setInterval(() => {
|
|
28
|
-
|
|
29
|
-
const u =
|
|
30
|
-
u ? (
|
|
28
|
+
s.current++;
|
|
29
|
+
const u = a();
|
|
30
|
+
u ? (He.log("Auth found via polling, attempts:", s.current), r(u), l(!1), clearInterval(b)) : s.current >= f && (l(!1), clearInterval(b));
|
|
31
31
|
}, 500);
|
|
32
|
-
return window.addEventListener("shell-auth-ready",
|
|
33
|
-
clearInterval(b), window.removeEventListener("shell-auth-ready",
|
|
32
|
+
return window.addEventListener("shell-auth-ready", g), () => {
|
|
33
|
+
clearInterval(b), window.removeEventListener("shell-auth-ready", g);
|
|
34
34
|
};
|
|
35
|
-
}, [
|
|
36
|
-
const p =
|
|
35
|
+
}, [a]);
|
|
36
|
+
const p = t || {
|
|
37
37
|
user: null,
|
|
38
38
|
isAuthenticated: !1,
|
|
39
39
|
isLoading: o,
|
|
40
40
|
signinRedirect: async () => {
|
|
41
|
-
const
|
|
42
|
-
|
|
41
|
+
const E = fe();
|
|
42
|
+
E?.signinRedirect ? await E.signinRedirect() : typeof window < "u" && (window.location.href = "/");
|
|
43
43
|
},
|
|
44
44
|
removeUser: async () => {
|
|
45
|
-
const
|
|
46
|
-
|
|
45
|
+
const E = fe();
|
|
46
|
+
E?.removeUser && await E.removeUser();
|
|
47
47
|
}
|
|
48
48
|
};
|
|
49
|
-
return
|
|
49
|
+
return He.log("Auth result:", { isAuthenticated: p.isAuthenticated, isLoading: p.isLoading }), p;
|
|
50
50
|
}
|
|
51
|
-
const
|
|
52
|
-
log: (...
|
|
51
|
+
const Wt = {
|
|
52
|
+
log: (...t) => {
|
|
53
53
|
},
|
|
54
|
-
warn: (...
|
|
54
|
+
warn: (...t) => {
|
|
55
55
|
},
|
|
56
|
-
error: (...
|
|
57
|
-
console.error("[useInfoData]", ...
|
|
56
|
+
error: (...t) => {
|
|
57
|
+
console.error("[useInfoData]", ...t);
|
|
58
58
|
}
|
|
59
59
|
};
|
|
60
|
-
function
|
|
61
|
-
if (
|
|
60
|
+
function Bt(t) {
|
|
61
|
+
if (t) return t;
|
|
62
62
|
if (typeof window < "u") {
|
|
63
63
|
const r = window;
|
|
64
64
|
if (r.__MF_NAME__) return r.__MF_NAME__;
|
|
65
65
|
}
|
|
66
66
|
return "unknown-mfe";
|
|
67
67
|
}
|
|
68
|
-
function
|
|
69
|
-
const [r, o] =
|
|
70
|
-
const
|
|
71
|
-
|
|
72
|
-
if (!
|
|
73
|
-
throw new Error(`HTTP ${
|
|
74
|
-
return
|
|
75
|
-
}).then((
|
|
76
|
-
o(
|
|
77
|
-
}).catch((
|
|
78
|
-
|
|
68
|
+
function Ht(t) {
|
|
69
|
+
const [r, o] = C(null), [l, s] = C(!0), [f, a] = C(null), w = k(() => {
|
|
70
|
+
const E = Bt(t?.mfeName).replace("@ib-dop/", "");
|
|
71
|
+
s(!0), a(null), fetch(`/svc/${E}/info.json`).then((g) => {
|
|
72
|
+
if (!g.ok)
|
|
73
|
+
throw new Error(`HTTP ${g.status}: ${g.statusText}`);
|
|
74
|
+
return g.json();
|
|
75
|
+
}).then((g) => {
|
|
76
|
+
o(g);
|
|
77
|
+
}).catch((g) => {
|
|
78
|
+
Wt.error("Failed to load info:", g), a(g instanceof Error ? g.message : String(g));
|
|
79
79
|
}).finally(() => {
|
|
80
|
-
|
|
80
|
+
s(!1);
|
|
81
81
|
});
|
|
82
|
-
}, [
|
|
83
|
-
return
|
|
84
|
-
|
|
85
|
-
}, [
|
|
82
|
+
}, [t?.mfeName]);
|
|
83
|
+
return Q(() => {
|
|
84
|
+
w();
|
|
85
|
+
}, [w]), {
|
|
86
86
|
data: r,
|
|
87
87
|
isLoading: l,
|
|
88
|
-
error:
|
|
89
|
-
refetch:
|
|
88
|
+
error: f,
|
|
89
|
+
refetch: w
|
|
90
90
|
};
|
|
91
91
|
}
|
|
92
|
-
const
|
|
93
|
-
log: (...
|
|
92
|
+
const de = {
|
|
93
|
+
log: (...t) => {
|
|
94
94
|
},
|
|
95
|
-
warn: (...
|
|
95
|
+
warn: (...t) => {
|
|
96
96
|
},
|
|
97
|
-
error: (...
|
|
98
|
-
console.error("[useV1Config]", ...
|
|
97
|
+
error: (...t) => {
|
|
98
|
+
console.error("[useV1Config]", ...t);
|
|
99
99
|
}
|
|
100
100
|
}, K = {
|
|
101
101
|
authority: "",
|
|
102
102
|
client_id: "",
|
|
103
103
|
environment: "development"
|
|
104
104
|
};
|
|
105
|
-
function
|
|
106
|
-
const [
|
|
107
|
-
return
|
|
105
|
+
function ar() {
|
|
106
|
+
const [t, r] = C(null), [o, l] = C(!0), [s, f] = C(null);
|
|
107
|
+
return Q(() => {
|
|
108
108
|
(() => {
|
|
109
109
|
if (typeof sessionStorage > "u") {
|
|
110
|
-
|
|
110
|
+
f("sessionStorage not available"), r(K), l(!1);
|
|
111
111
|
return;
|
|
112
112
|
}
|
|
113
113
|
try {
|
|
114
|
-
const
|
|
115
|
-
if (
|
|
116
|
-
const p = JSON.parse(
|
|
117
|
-
r({ ...K, ...p }),
|
|
114
|
+
const w = sessionStorage.getItem("config");
|
|
115
|
+
if (w) {
|
|
116
|
+
const p = JSON.parse(w);
|
|
117
|
+
r({ ...K, ...p }), f(null), de.log("Config loaded successfully");
|
|
118
118
|
} else
|
|
119
|
-
r(K),
|
|
120
|
-
} catch (
|
|
121
|
-
|
|
119
|
+
r(K), f("Config not found in sessionStorage"), de.warn("Config not found in sessionStorage");
|
|
120
|
+
} catch (w) {
|
|
121
|
+
de.error("Error parsing config:", w), r(K), f("Error parsing config");
|
|
122
122
|
} finally {
|
|
123
123
|
l(!1);
|
|
124
124
|
}
|
|
125
125
|
})();
|
|
126
126
|
}, []), {
|
|
127
|
-
data:
|
|
127
|
+
data: t,
|
|
128
128
|
isLoading: o,
|
|
129
|
-
error:
|
|
129
|
+
error: s
|
|
130
130
|
};
|
|
131
131
|
}
|
|
132
|
-
function
|
|
132
|
+
function Ke(t) {
|
|
133
133
|
if (typeof window > "u") return;
|
|
134
134
|
const r = window.__MF_NAME__ || "unknown", o = {
|
|
135
|
-
...
|
|
135
|
+
...t,
|
|
136
136
|
mfeName: r,
|
|
137
137
|
timestamp: Date.now()
|
|
138
138
|
};
|
|
@@ -141,7 +141,7 @@ function ze(n) {
|
|
|
141
141
|
bubbles: !0
|
|
142
142
|
}));
|
|
143
143
|
}
|
|
144
|
-
function
|
|
144
|
+
function Ge(t, r) {
|
|
145
145
|
const o = {
|
|
146
146
|
network: {
|
|
147
147
|
title: "Нет подключения",
|
|
@@ -165,66 +165,66 @@ function Ve(n, r) {
|
|
|
165
165
|
},
|
|
166
166
|
client: {
|
|
167
167
|
title: "Ошибка",
|
|
168
|
-
message:
|
|
168
|
+
message: t.message || "Произошла ошибка при выполнении запроса."
|
|
169
169
|
},
|
|
170
170
|
unknown: {
|
|
171
171
|
title: "Неизвестная ошибка",
|
|
172
|
-
message:
|
|
172
|
+
message: t.message || "Произошла неизвестная ошибка."
|
|
173
173
|
}
|
|
174
|
-
}, l = o[
|
|
175
|
-
|
|
176
|
-
type:
|
|
174
|
+
}, l = o[t.type] || o.unknown;
|
|
175
|
+
Ke({
|
|
176
|
+
type: t.type === "network" ? "warning" : "error",
|
|
177
177
|
title: l.title,
|
|
178
178
|
message: r ? `${l.message} (${r})` : l.message
|
|
179
179
|
});
|
|
180
180
|
}
|
|
181
|
-
function
|
|
181
|
+
function sr(t, r = {}) {
|
|
182
182
|
const {
|
|
183
183
|
notifyOnError: o = !0,
|
|
184
184
|
notifyOnSuccess: l = !1,
|
|
185
|
-
successMessage:
|
|
186
|
-
errorContext:
|
|
187
|
-
onSuccess:
|
|
188
|
-
onError:
|
|
189
|
-
} = r, [p,
|
|
190
|
-
|
|
185
|
+
successMessage: s,
|
|
186
|
+
errorContext: f,
|
|
187
|
+
onSuccess: a,
|
|
188
|
+
onError: w
|
|
189
|
+
} = r, [p, E] = C(null), [g, b] = C(null), [u, _] = C(!1), A = g !== null, O = p !== null && !u && !A, re = k(async () => {
|
|
190
|
+
_(!0), b(null);
|
|
191
191
|
try {
|
|
192
|
-
const
|
|
193
|
-
if (
|
|
194
|
-
return
|
|
192
|
+
const x = await t();
|
|
193
|
+
if (x.ok)
|
|
194
|
+
return E(x.data), l && s && Ke({
|
|
195
195
|
type: "success",
|
|
196
196
|
title: "Успешно",
|
|
197
|
-
message:
|
|
198
|
-
}),
|
|
197
|
+
message: s
|
|
198
|
+
}), a?.(x.data), x.data;
|
|
199
199
|
{
|
|
200
|
-
const
|
|
201
|
-
message:
|
|
202
|
-
status:
|
|
200
|
+
const j = {
|
|
201
|
+
message: x.data || "Request failed",
|
|
202
|
+
status: x.status,
|
|
203
203
|
type: "client",
|
|
204
204
|
timestamp: Date.now()
|
|
205
205
|
};
|
|
206
|
-
return b(
|
|
206
|
+
return b(j), o && Ge(j, f), w?.(j), null;
|
|
207
207
|
}
|
|
208
|
-
} catch (
|
|
209
|
-
const
|
|
210
|
-
return b(
|
|
208
|
+
} catch (x) {
|
|
209
|
+
const j = x;
|
|
210
|
+
return b(j), o && Ge(j, f), w?.(j), null;
|
|
211
211
|
} finally {
|
|
212
|
-
|
|
212
|
+
_(!1);
|
|
213
213
|
}
|
|
214
|
-
}, [
|
|
215
|
-
|
|
214
|
+
}, [t, o, l, s, f, a, w]), P = k(() => {
|
|
215
|
+
E(null), b(null), _(!1);
|
|
216
216
|
}, []);
|
|
217
217
|
return {
|
|
218
218
|
data: p,
|
|
219
|
-
error:
|
|
219
|
+
error: g,
|
|
220
220
|
isLoading: u,
|
|
221
|
-
isError:
|
|
222
|
-
isSuccess:
|
|
223
|
-
execute:
|
|
221
|
+
isError: A,
|
|
222
|
+
isSuccess: O,
|
|
223
|
+
execute: re,
|
|
224
224
|
reset: P
|
|
225
225
|
};
|
|
226
226
|
}
|
|
227
|
-
const
|
|
227
|
+
const Gt = {
|
|
228
228
|
canView: ["all"],
|
|
229
229
|
canEdit: ["ibdop-user", "ibdop-admin", "ibdop-devops"],
|
|
230
230
|
canDelete: ["ibdop-admin", "ibdop-devops"],
|
|
@@ -233,91 +233,91 @@ const Ft = {
|
|
|
233
233
|
canExportData: ["ibdop-user"],
|
|
234
234
|
canManageUsers: ["ibdop-admin"]
|
|
235
235
|
};
|
|
236
|
-
function
|
|
237
|
-
const r =
|
|
238
|
-
...
|
|
239
|
-
...
|
|
240
|
-
}), [
|
|
241
|
-
const
|
|
242
|
-
return Array.isArray(
|
|
243
|
-
}, [r.user]),
|
|
236
|
+
function lr(t = {}) {
|
|
237
|
+
const r = Vt(), o = Be(() => ({
|
|
238
|
+
...Gt,
|
|
239
|
+
...t
|
|
240
|
+
}), [t]), l = Be(() => {
|
|
241
|
+
const f = r.user?.profile?.realm_roles || r.user?.profile?.roles || [];
|
|
242
|
+
return Array.isArray(f) ? f : [f];
|
|
243
|
+
}, [r.user]), s = (f) => f.includes("all") ? !0 : f.some((a) => l.includes(a));
|
|
244
244
|
return {
|
|
245
|
-
canView:
|
|
246
|
-
canEdit:
|
|
247
|
-
canDelete:
|
|
248
|
-
canAdmin:
|
|
249
|
-
canViewSensitiveData:
|
|
250
|
-
canExportData:
|
|
251
|
-
canManageUsers:
|
|
245
|
+
canView: s(o.canView),
|
|
246
|
+
canEdit: s(o.canEdit),
|
|
247
|
+
canDelete: s(o.canDelete),
|
|
248
|
+
canAdmin: s(o.canAdmin),
|
|
249
|
+
canViewSensitiveData: s(o.canViewSensitiveData),
|
|
250
|
+
canExportData: s(o.canExportData),
|
|
251
|
+
canManageUsers: s(o.canManageUsers)
|
|
252
252
|
};
|
|
253
253
|
}
|
|
254
254
|
var X = { exports: {} }, B = {};
|
|
255
|
-
var
|
|
256
|
-
function
|
|
257
|
-
if (
|
|
258
|
-
|
|
259
|
-
var
|
|
260
|
-
function
|
|
261
|
-
var
|
|
262
|
-
|
|
263
|
-
for (
|
|
264
|
-
if (
|
|
265
|
-
return { $$typeof: r, type:
|
|
255
|
+
var ze;
|
|
256
|
+
function zt() {
|
|
257
|
+
if (ze) return B;
|
|
258
|
+
ze = 1;
|
|
259
|
+
var t = qe, r = /* @__PURE__ */ Symbol.for("react.element"), o = /* @__PURE__ */ Symbol.for("react.fragment"), l = Object.prototype.hasOwnProperty, s = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, f = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
260
|
+
function a(w, p, E) {
|
|
261
|
+
var g, b = {}, u = null, _ = null;
|
|
262
|
+
E !== void 0 && (u = "" + E), p.key !== void 0 && (u = "" + p.key), p.ref !== void 0 && (_ = p.ref);
|
|
263
|
+
for (g in p) l.call(p, g) && !f.hasOwnProperty(g) && (b[g] = p[g]);
|
|
264
|
+
if (w && w.defaultProps) for (g in p = w.defaultProps, p) b[g] === void 0 && (b[g] = p[g]);
|
|
265
|
+
return { $$typeof: r, type: w, key: u, ref: _, props: b, _owner: s.current };
|
|
266
266
|
}
|
|
267
|
-
return B.Fragment = o, B.jsx =
|
|
267
|
+
return B.Fragment = o, B.jsx = a, B.jsxs = a, B;
|
|
268
268
|
}
|
|
269
269
|
var H = {};
|
|
270
|
-
var
|
|
271
|
-
function
|
|
272
|
-
return
|
|
273
|
-
var
|
|
274
|
-
function
|
|
270
|
+
var Ye;
|
|
271
|
+
function Yt() {
|
|
272
|
+
return Ye || (Ye = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
273
|
+
var t = qe, r = /* @__PURE__ */ Symbol.for("react.element"), o = /* @__PURE__ */ Symbol.for("react.portal"), l = /* @__PURE__ */ Symbol.for("react.fragment"), s = /* @__PURE__ */ Symbol.for("react.strict_mode"), f = /* @__PURE__ */ Symbol.for("react.profiler"), a = /* @__PURE__ */ Symbol.for("react.provider"), w = /* @__PURE__ */ Symbol.for("react.context"), p = /* @__PURE__ */ Symbol.for("react.forward_ref"), E = /* @__PURE__ */ Symbol.for("react.suspense"), g = /* @__PURE__ */ Symbol.for("react.suspense_list"), b = /* @__PURE__ */ Symbol.for("react.memo"), u = /* @__PURE__ */ Symbol.for("react.lazy"), _ = /* @__PURE__ */ Symbol.for("react.offscreen"), A = Symbol.iterator, O = "@@iterator";
|
|
274
|
+
function re(e) {
|
|
275
275
|
if (e === null || typeof e != "object")
|
|
276
276
|
return null;
|
|
277
|
-
var
|
|
278
|
-
return typeof
|
|
277
|
+
var n = A && e[A] || e[O];
|
|
278
|
+
return typeof n == "function" ? n : null;
|
|
279
279
|
}
|
|
280
|
-
var P =
|
|
281
|
-
function
|
|
280
|
+
var P = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
281
|
+
function x(e) {
|
|
282
282
|
{
|
|
283
|
-
for (var
|
|
284
|
-
|
|
285
|
-
|
|
283
|
+
for (var n = arguments.length, i = new Array(n > 1 ? n - 1 : 0), c = 1; c < n; c++)
|
|
284
|
+
i[c - 1] = arguments[c];
|
|
285
|
+
j("error", e, i);
|
|
286
286
|
}
|
|
287
287
|
}
|
|
288
|
-
function
|
|
288
|
+
function j(e, n, i) {
|
|
289
289
|
{
|
|
290
|
-
var c = P.ReactDebugCurrentFrame,
|
|
291
|
-
|
|
292
|
-
var
|
|
293
|
-
return String(
|
|
290
|
+
var c = P.ReactDebugCurrentFrame, v = c.getStackAddendum();
|
|
291
|
+
v !== "" && (n += "%s", i = i.concat([v]));
|
|
292
|
+
var y = i.map(function(h) {
|
|
293
|
+
return String(h);
|
|
294
294
|
});
|
|
295
|
-
|
|
295
|
+
y.unshift("Warning: " + n), Function.prototype.apply.call(console[e], console, y);
|
|
296
296
|
}
|
|
297
297
|
}
|
|
298
|
-
var
|
|
299
|
-
|
|
300
|
-
function
|
|
301
|
-
return !!(typeof e == "string" || typeof e == "function" || e === l || e ===
|
|
298
|
+
var rt = !1, nt = !1, ot = !1, it = !1, at = !1, ve;
|
|
299
|
+
ve = /* @__PURE__ */ Symbol.for("react.module.reference");
|
|
300
|
+
function st(e) {
|
|
301
|
+
return !!(typeof e == "string" || typeof e == "function" || e === l || e === f || at || e === s || e === E || e === g || it || e === _ || rt || nt || ot || typeof e == "object" && e !== null && (e.$$typeof === u || e.$$typeof === b || e.$$typeof === a || e.$$typeof === w || e.$$typeof === p || // This needs to include all possible module reference object
|
|
302
302
|
// types supported by any Flight configuration anywhere since
|
|
303
303
|
// we don't know which Flight build this will end up being used
|
|
304
304
|
// with.
|
|
305
|
-
e.$$typeof ===
|
|
305
|
+
e.$$typeof === ve || e.getModuleId !== void 0));
|
|
306
306
|
}
|
|
307
|
-
function
|
|
307
|
+
function lt(e, n, i) {
|
|
308
308
|
var c = e.displayName;
|
|
309
309
|
if (c)
|
|
310
310
|
return c;
|
|
311
|
-
var
|
|
312
|
-
return
|
|
311
|
+
var v = n.displayName || n.name || "";
|
|
312
|
+
return v !== "" ? i + "(" + v + ")" : i;
|
|
313
313
|
}
|
|
314
|
-
function
|
|
314
|
+
function Ee(e) {
|
|
315
315
|
return e.displayName || "Context";
|
|
316
316
|
}
|
|
317
317
|
function D(e) {
|
|
318
318
|
if (e == null)
|
|
319
319
|
return null;
|
|
320
|
-
if (typeof e.tag == "number" &&
|
|
320
|
+
if (typeof e.tag == "number" && x("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
321
321
|
return e.displayName || e.name || null;
|
|
322
322
|
if (typeof e == "string")
|
|
323
323
|
return e;
|
|
@@ -326,32 +326,32 @@ function Vt() {
|
|
|
326
326
|
return "Fragment";
|
|
327
327
|
case o:
|
|
328
328
|
return "Portal";
|
|
329
|
-
case
|
|
329
|
+
case f:
|
|
330
330
|
return "Profiler";
|
|
331
|
-
case
|
|
331
|
+
case s:
|
|
332
332
|
return "StrictMode";
|
|
333
|
-
case
|
|
333
|
+
case E:
|
|
334
334
|
return "Suspense";
|
|
335
|
-
case
|
|
335
|
+
case g:
|
|
336
336
|
return "SuspenseList";
|
|
337
337
|
}
|
|
338
338
|
if (typeof e == "object")
|
|
339
339
|
switch (e.$$typeof) {
|
|
340
|
-
case
|
|
341
|
-
var
|
|
342
|
-
return
|
|
343
|
-
case
|
|
344
|
-
var
|
|
345
|
-
return
|
|
340
|
+
case w:
|
|
341
|
+
var n = e;
|
|
342
|
+
return Ee(n) + ".Consumer";
|
|
343
|
+
case a:
|
|
344
|
+
var i = e;
|
|
345
|
+
return Ee(i._context) + ".Provider";
|
|
346
346
|
case p:
|
|
347
|
-
return
|
|
347
|
+
return lt(e, e.render, "ForwardRef");
|
|
348
348
|
case b:
|
|
349
349
|
var c = e.displayName || null;
|
|
350
350
|
return c !== null ? c : D(e.type) || "Memo";
|
|
351
351
|
case u: {
|
|
352
|
-
var
|
|
352
|
+
var v = e, y = v._payload, h = v._init;
|
|
353
353
|
try {
|
|
354
|
-
return D(
|
|
354
|
+
return D(h(y));
|
|
355
355
|
} catch {
|
|
356
356
|
return null;
|
|
357
357
|
}
|
|
@@ -359,18 +359,18 @@ function Vt() {
|
|
|
359
359
|
}
|
|
360
360
|
return null;
|
|
361
361
|
}
|
|
362
|
-
var
|
|
363
|
-
function
|
|
362
|
+
var F = Object.assign, V = 0, ye, we, xe, be, Se, Re, Ae;
|
|
363
|
+
function Ie() {
|
|
364
364
|
}
|
|
365
|
-
|
|
366
|
-
function
|
|
365
|
+
Ie.__reactDisabledLog = !0;
|
|
366
|
+
function ut() {
|
|
367
367
|
{
|
|
368
368
|
if (V === 0) {
|
|
369
|
-
|
|
369
|
+
ye = console.log, we = console.info, xe = console.warn, be = console.error, Se = console.group, Re = console.groupCollapsed, Ae = console.groupEnd;
|
|
370
370
|
var e = {
|
|
371
371
|
configurable: !0,
|
|
372
372
|
enumerable: !0,
|
|
373
|
-
value:
|
|
373
|
+
value: Ie,
|
|
374
374
|
writable: !0
|
|
375
375
|
};
|
|
376
376
|
Object.defineProperties(console, {
|
|
@@ -386,7 +386,7 @@ function Vt() {
|
|
|
386
386
|
V++;
|
|
387
387
|
}
|
|
388
388
|
}
|
|
389
|
-
function
|
|
389
|
+
function ct() {
|
|
390
390
|
{
|
|
391
391
|
if (V--, V === 0) {
|
|
392
392
|
var e = {
|
|
@@ -395,320 +395,320 @@ function Vt() {
|
|
|
395
395
|
writable: !0
|
|
396
396
|
};
|
|
397
397
|
Object.defineProperties(console, {
|
|
398
|
-
log:
|
|
399
|
-
value:
|
|
398
|
+
log: F({}, e, {
|
|
399
|
+
value: ye
|
|
400
400
|
}),
|
|
401
|
-
info:
|
|
402
|
-
value:
|
|
401
|
+
info: F({}, e, {
|
|
402
|
+
value: we
|
|
403
403
|
}),
|
|
404
|
-
warn:
|
|
405
|
-
value:
|
|
404
|
+
warn: F({}, e, {
|
|
405
|
+
value: xe
|
|
406
406
|
}),
|
|
407
|
-
error:
|
|
408
|
-
value:
|
|
407
|
+
error: F({}, e, {
|
|
408
|
+
value: be
|
|
409
409
|
}),
|
|
410
|
-
group:
|
|
411
|
-
value:
|
|
410
|
+
group: F({}, e, {
|
|
411
|
+
value: Se
|
|
412
412
|
}),
|
|
413
|
-
groupCollapsed:
|
|
414
|
-
value:
|
|
413
|
+
groupCollapsed: F({}, e, {
|
|
414
|
+
value: Re
|
|
415
415
|
}),
|
|
416
|
-
groupEnd:
|
|
417
|
-
value:
|
|
416
|
+
groupEnd: F({}, e, {
|
|
417
|
+
value: Ae
|
|
418
418
|
})
|
|
419
419
|
});
|
|
420
420
|
}
|
|
421
|
-
V < 0 &&
|
|
421
|
+
V < 0 && x("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
422
422
|
}
|
|
423
423
|
}
|
|
424
|
-
var
|
|
425
|
-
function z(e,
|
|
424
|
+
var ne = P.ReactCurrentDispatcher, oe;
|
|
425
|
+
function z(e, n, i) {
|
|
426
426
|
{
|
|
427
|
-
if (
|
|
427
|
+
if (oe === void 0)
|
|
428
428
|
try {
|
|
429
429
|
throw Error();
|
|
430
|
-
} catch (
|
|
431
|
-
var c =
|
|
432
|
-
|
|
430
|
+
} catch (v) {
|
|
431
|
+
var c = v.stack.trim().match(/\n( *(at )?)/);
|
|
432
|
+
oe = c && c[1] || "";
|
|
433
433
|
}
|
|
434
434
|
return `
|
|
435
|
-
` +
|
|
435
|
+
` + oe + e;
|
|
436
436
|
}
|
|
437
437
|
}
|
|
438
|
-
var
|
|
438
|
+
var ie = !1, Y;
|
|
439
439
|
{
|
|
440
|
-
var
|
|
441
|
-
Y = new
|
|
440
|
+
var ft = typeof WeakMap == "function" ? WeakMap : Map;
|
|
441
|
+
Y = new ft();
|
|
442
442
|
}
|
|
443
|
-
function
|
|
444
|
-
if (!e ||
|
|
443
|
+
function Me(e, n) {
|
|
444
|
+
if (!e || ie)
|
|
445
445
|
return "";
|
|
446
446
|
{
|
|
447
|
-
var
|
|
448
|
-
if (
|
|
449
|
-
return
|
|
447
|
+
var i = Y.get(e);
|
|
448
|
+
if (i !== void 0)
|
|
449
|
+
return i;
|
|
450
450
|
}
|
|
451
451
|
var c;
|
|
452
|
-
|
|
453
|
-
var
|
|
452
|
+
ie = !0;
|
|
453
|
+
var v = Error.prepareStackTrace;
|
|
454
454
|
Error.prepareStackTrace = void 0;
|
|
455
|
-
var
|
|
456
|
-
|
|
455
|
+
var y;
|
|
456
|
+
y = ne.current, ne.current = null, ut();
|
|
457
457
|
try {
|
|
458
|
-
if (
|
|
459
|
-
var
|
|
458
|
+
if (n) {
|
|
459
|
+
var h = function() {
|
|
460
460
|
throw Error();
|
|
461
461
|
};
|
|
462
|
-
if (Object.defineProperty(
|
|
462
|
+
if (Object.defineProperty(h.prototype, "props", {
|
|
463
463
|
set: function() {
|
|
464
464
|
throw Error();
|
|
465
465
|
}
|
|
466
466
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
467
467
|
try {
|
|
468
|
-
Reflect.construct(
|
|
469
|
-
} catch (
|
|
470
|
-
c =
|
|
468
|
+
Reflect.construct(h, []);
|
|
469
|
+
} catch (M) {
|
|
470
|
+
c = M;
|
|
471
471
|
}
|
|
472
|
-
Reflect.construct(e, [],
|
|
472
|
+
Reflect.construct(e, [], h);
|
|
473
473
|
} else {
|
|
474
474
|
try {
|
|
475
|
-
|
|
476
|
-
} catch (
|
|
477
|
-
c =
|
|
475
|
+
h.call();
|
|
476
|
+
} catch (M) {
|
|
477
|
+
c = M;
|
|
478
478
|
}
|
|
479
|
-
e.call(
|
|
479
|
+
e.call(h.prototype);
|
|
480
480
|
}
|
|
481
481
|
} else {
|
|
482
482
|
try {
|
|
483
483
|
throw Error();
|
|
484
|
-
} catch (
|
|
485
|
-
c =
|
|
484
|
+
} catch (M) {
|
|
485
|
+
c = M;
|
|
486
486
|
}
|
|
487
487
|
e();
|
|
488
488
|
}
|
|
489
|
-
} catch (
|
|
490
|
-
if (
|
|
491
|
-
for (var
|
|
492
|
-
`),
|
|
493
|
-
`),
|
|
494
|
-
|
|
495
|
-
for (;
|
|
496
|
-
if (
|
|
497
|
-
if (
|
|
489
|
+
} catch (M) {
|
|
490
|
+
if (M && c && typeof M.stack == "string") {
|
|
491
|
+
for (var m = M.stack.split(`
|
|
492
|
+
`), I = c.stack.split(`
|
|
493
|
+
`), S = m.length - 1, R = I.length - 1; S >= 1 && R >= 0 && m[S] !== I[R]; )
|
|
494
|
+
R--;
|
|
495
|
+
for (; S >= 1 && R >= 0; S--, R--)
|
|
496
|
+
if (m[S] !== I[R]) {
|
|
497
|
+
if (S !== 1 || R !== 1)
|
|
498
498
|
do
|
|
499
|
-
if (
|
|
500
|
-
var
|
|
501
|
-
` +
|
|
502
|
-
return e.displayName &&
|
|
499
|
+
if (S--, R--, R < 0 || m[S] !== I[R]) {
|
|
500
|
+
var T = `
|
|
501
|
+
` + m[S].replace(" at new ", " at ");
|
|
502
|
+
return e.displayName && T.includes("<anonymous>") && (T = T.replace("<anonymous>", e.displayName)), typeof e == "function" && Y.set(e, T), T;
|
|
503
503
|
}
|
|
504
|
-
while (
|
|
504
|
+
while (S >= 1 && R >= 0);
|
|
505
505
|
break;
|
|
506
506
|
}
|
|
507
507
|
}
|
|
508
508
|
} finally {
|
|
509
|
-
|
|
509
|
+
ie = !1, ne.current = y, ct(), Error.prepareStackTrace = v;
|
|
510
510
|
}
|
|
511
|
-
var U = e ? e.displayName || e.name : "",
|
|
512
|
-
return typeof e == "function" && Y.set(e,
|
|
511
|
+
var U = e ? e.displayName || e.name : "", L = U ? z(U) : "";
|
|
512
|
+
return typeof e == "function" && Y.set(e, L), L;
|
|
513
513
|
}
|
|
514
|
-
function
|
|
515
|
-
return
|
|
514
|
+
function dt(e, n, i) {
|
|
515
|
+
return Me(e, !1);
|
|
516
516
|
}
|
|
517
|
-
function
|
|
518
|
-
var
|
|
519
|
-
return !!(
|
|
517
|
+
function pt(e) {
|
|
518
|
+
var n = e.prototype;
|
|
519
|
+
return !!(n && n.isReactComponent);
|
|
520
520
|
}
|
|
521
|
-
function J(e,
|
|
521
|
+
function J(e, n, i) {
|
|
522
522
|
if (e == null)
|
|
523
523
|
return "";
|
|
524
524
|
if (typeof e == "function")
|
|
525
|
-
return
|
|
525
|
+
return Me(e, pt(e));
|
|
526
526
|
if (typeof e == "string")
|
|
527
527
|
return z(e);
|
|
528
528
|
switch (e) {
|
|
529
|
-
case
|
|
529
|
+
case E:
|
|
530
530
|
return z("Suspense");
|
|
531
|
-
case
|
|
531
|
+
case g:
|
|
532
532
|
return z("SuspenseList");
|
|
533
533
|
}
|
|
534
534
|
if (typeof e == "object")
|
|
535
535
|
switch (e.$$typeof) {
|
|
536
536
|
case p:
|
|
537
|
-
return
|
|
537
|
+
return dt(e.render);
|
|
538
538
|
case b:
|
|
539
|
-
return J(e.type,
|
|
539
|
+
return J(e.type, n, i);
|
|
540
540
|
case u: {
|
|
541
|
-
var c = e,
|
|
541
|
+
var c = e, v = c._payload, y = c._init;
|
|
542
542
|
try {
|
|
543
|
-
return J(
|
|
543
|
+
return J(y(v), n, i);
|
|
544
544
|
} catch {
|
|
545
545
|
}
|
|
546
546
|
}
|
|
547
547
|
}
|
|
548
548
|
return "";
|
|
549
549
|
}
|
|
550
|
-
var W = Object.prototype.hasOwnProperty,
|
|
550
|
+
var W = Object.prototype.hasOwnProperty, Ce = {}, Te = P.ReactDebugCurrentFrame;
|
|
551
551
|
function q(e) {
|
|
552
552
|
if (e) {
|
|
553
|
-
var
|
|
554
|
-
|
|
553
|
+
var n = e._owner, i = J(e.type, e._source, n ? n.type : null);
|
|
554
|
+
Te.setExtraStackFrame(i);
|
|
555
555
|
} else
|
|
556
|
-
|
|
556
|
+
Te.setExtraStackFrame(null);
|
|
557
557
|
}
|
|
558
|
-
function
|
|
558
|
+
function gt(e, n, i, c, v) {
|
|
559
559
|
{
|
|
560
|
-
var
|
|
561
|
-
for (var
|
|
562
|
-
if (
|
|
563
|
-
var
|
|
560
|
+
var y = Function.call.bind(W);
|
|
561
|
+
for (var h in e)
|
|
562
|
+
if (y(e, h)) {
|
|
563
|
+
var m = void 0;
|
|
564
564
|
try {
|
|
565
|
-
if (typeof e[
|
|
566
|
-
var
|
|
567
|
-
throw
|
|
565
|
+
if (typeof e[h] != "function") {
|
|
566
|
+
var I = Error((c || "React class") + ": " + i + " type `" + h + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[h] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
567
|
+
throw I.name = "Invariant Violation", I;
|
|
568
568
|
}
|
|
569
|
-
|
|
570
|
-
} catch (
|
|
571
|
-
|
|
569
|
+
m = e[h](n, h, c, i, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
570
|
+
} catch (S) {
|
|
571
|
+
m = S;
|
|
572
572
|
}
|
|
573
|
-
|
|
573
|
+
m && !(m instanceof Error) && (q(v), x("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", c || "React class", i, h, typeof m), q(null)), m instanceof Error && !(m.message in Ce) && (Ce[m.message] = !0, q(v), x("Failed %s type: %s", i, m.message), q(null));
|
|
574
574
|
}
|
|
575
575
|
}
|
|
576
576
|
}
|
|
577
|
-
var
|
|
577
|
+
var mt = Array.isArray;
|
|
578
578
|
function ae(e) {
|
|
579
|
-
return
|
|
579
|
+
return mt(e);
|
|
580
580
|
}
|
|
581
|
-
function
|
|
581
|
+
function ht(e) {
|
|
582
582
|
{
|
|
583
|
-
var
|
|
584
|
-
return
|
|
583
|
+
var n = typeof Symbol == "function" && Symbol.toStringTag, i = n && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
584
|
+
return i;
|
|
585
585
|
}
|
|
586
586
|
}
|
|
587
|
-
function
|
|
587
|
+
function _t(e) {
|
|
588
588
|
try {
|
|
589
|
-
return
|
|
589
|
+
return Ne(e), !1;
|
|
590
590
|
} catch {
|
|
591
591
|
return !0;
|
|
592
592
|
}
|
|
593
593
|
}
|
|
594
|
-
function
|
|
594
|
+
function Ne(e) {
|
|
595
595
|
return "" + e;
|
|
596
596
|
}
|
|
597
|
-
function
|
|
598
|
-
if (
|
|
599
|
-
return
|
|
597
|
+
function ke(e) {
|
|
598
|
+
if (_t(e))
|
|
599
|
+
return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ht(e)), Ne(e);
|
|
600
600
|
}
|
|
601
|
-
var
|
|
601
|
+
var Oe = P.ReactCurrentOwner, vt = {
|
|
602
602
|
key: !0,
|
|
603
603
|
ref: !0,
|
|
604
604
|
__self: !0,
|
|
605
605
|
__source: !0
|
|
606
|
-
},
|
|
607
|
-
function
|
|
606
|
+
}, je, Pe;
|
|
607
|
+
function Et(e) {
|
|
608
608
|
if (W.call(e, "ref")) {
|
|
609
|
-
var
|
|
610
|
-
if (
|
|
609
|
+
var n = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
610
|
+
if (n && n.isReactWarning)
|
|
611
611
|
return !1;
|
|
612
612
|
}
|
|
613
613
|
return e.ref !== void 0;
|
|
614
614
|
}
|
|
615
|
-
function
|
|
615
|
+
function yt(e) {
|
|
616
616
|
if (W.call(e, "key")) {
|
|
617
|
-
var
|
|
618
|
-
if (
|
|
617
|
+
var n = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
618
|
+
if (n && n.isReactWarning)
|
|
619
619
|
return !1;
|
|
620
620
|
}
|
|
621
621
|
return e.key !== void 0;
|
|
622
622
|
}
|
|
623
|
-
function
|
|
624
|
-
typeof e.ref == "string" &&
|
|
623
|
+
function wt(e, n) {
|
|
624
|
+
typeof e.ref == "string" && Oe.current;
|
|
625
625
|
}
|
|
626
|
-
function
|
|
626
|
+
function xt(e, n) {
|
|
627
627
|
{
|
|
628
|
-
var
|
|
629
|
-
|
|
628
|
+
var i = function() {
|
|
629
|
+
je || (je = !0, x("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", n));
|
|
630
630
|
};
|
|
631
|
-
|
|
632
|
-
get:
|
|
631
|
+
i.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
632
|
+
get: i,
|
|
633
633
|
configurable: !0
|
|
634
634
|
});
|
|
635
635
|
}
|
|
636
636
|
}
|
|
637
|
-
function
|
|
637
|
+
function bt(e, n) {
|
|
638
638
|
{
|
|
639
|
-
var
|
|
640
|
-
|
|
639
|
+
var i = function() {
|
|
640
|
+
Pe || (Pe = !0, x("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", n));
|
|
641
641
|
};
|
|
642
|
-
|
|
643
|
-
get:
|
|
642
|
+
i.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
643
|
+
get: i,
|
|
644
644
|
configurable: !0
|
|
645
645
|
});
|
|
646
646
|
}
|
|
647
647
|
}
|
|
648
|
-
var
|
|
649
|
-
var
|
|
648
|
+
var St = function(e, n, i, c, v, y, h) {
|
|
649
|
+
var m = {
|
|
650
650
|
// This tag allows us to uniquely identify this as a React Element
|
|
651
651
|
$$typeof: r,
|
|
652
652
|
// Built-in properties that belong on the element
|
|
653
653
|
type: e,
|
|
654
|
-
key:
|
|
655
|
-
ref:
|
|
656
|
-
props:
|
|
654
|
+
key: n,
|
|
655
|
+
ref: i,
|
|
656
|
+
props: h,
|
|
657
657
|
// Record the component responsible for creating this element.
|
|
658
|
-
_owner:
|
|
658
|
+
_owner: y
|
|
659
659
|
};
|
|
660
|
-
return
|
|
660
|
+
return m._store = {}, Object.defineProperty(m._store, "validated", {
|
|
661
661
|
configurable: !1,
|
|
662
662
|
enumerable: !1,
|
|
663
663
|
writable: !0,
|
|
664
664
|
value: !1
|
|
665
|
-
}), Object.defineProperty(
|
|
665
|
+
}), Object.defineProperty(m, "_self", {
|
|
666
666
|
configurable: !1,
|
|
667
667
|
enumerable: !1,
|
|
668
668
|
writable: !1,
|
|
669
669
|
value: c
|
|
670
|
-
}), Object.defineProperty(
|
|
670
|
+
}), Object.defineProperty(m, "_source", {
|
|
671
671
|
configurable: !1,
|
|
672
672
|
enumerable: !1,
|
|
673
673
|
writable: !1,
|
|
674
|
-
value:
|
|
675
|
-
}), Object.freeze && (Object.freeze(
|
|
674
|
+
value: v
|
|
675
|
+
}), Object.freeze && (Object.freeze(m.props), Object.freeze(m)), m;
|
|
676
676
|
};
|
|
677
|
-
function
|
|
677
|
+
function Rt(e, n, i, c, v) {
|
|
678
678
|
{
|
|
679
|
-
var
|
|
680
|
-
|
|
681
|
-
for (
|
|
682
|
-
W.call(
|
|
679
|
+
var y, h = {}, m = null, I = null;
|
|
680
|
+
i !== void 0 && (ke(i), m = "" + i), yt(n) && (ke(n.key), m = "" + n.key), Et(n) && (I = n.ref, wt(n, v));
|
|
681
|
+
for (y in n)
|
|
682
|
+
W.call(n, y) && !vt.hasOwnProperty(y) && (h[y] = n[y]);
|
|
683
683
|
if (e && e.defaultProps) {
|
|
684
|
-
var
|
|
685
|
-
for (
|
|
686
|
-
|
|
684
|
+
var S = e.defaultProps;
|
|
685
|
+
for (y in S)
|
|
686
|
+
h[y] === void 0 && (h[y] = S[y]);
|
|
687
687
|
}
|
|
688
|
-
if (
|
|
689
|
-
var
|
|
690
|
-
|
|
688
|
+
if (m || I) {
|
|
689
|
+
var R = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
690
|
+
m && xt(h, R), I && bt(h, R);
|
|
691
691
|
}
|
|
692
|
-
return
|
|
692
|
+
return St(e, m, I, v, c, Oe.current, h);
|
|
693
693
|
}
|
|
694
694
|
}
|
|
695
|
-
var
|
|
696
|
-
function
|
|
695
|
+
var se = P.ReactCurrentOwner, De = P.ReactDebugCurrentFrame;
|
|
696
|
+
function $(e) {
|
|
697
697
|
if (e) {
|
|
698
|
-
var
|
|
699
|
-
|
|
698
|
+
var n = e._owner, i = J(e.type, e._source, n ? n.type : null);
|
|
699
|
+
De.setExtraStackFrame(i);
|
|
700
700
|
} else
|
|
701
|
-
|
|
701
|
+
De.setExtraStackFrame(null);
|
|
702
702
|
}
|
|
703
|
-
var
|
|
704
|
-
|
|
705
|
-
function
|
|
703
|
+
var le;
|
|
704
|
+
le = !1;
|
|
705
|
+
function ue(e) {
|
|
706
706
|
return typeof e == "object" && e !== null && e.$$typeof === r;
|
|
707
707
|
}
|
|
708
|
-
function
|
|
708
|
+
function Fe() {
|
|
709
709
|
{
|
|
710
|
-
if (
|
|
711
|
-
var e = D(
|
|
710
|
+
if (se.current) {
|
|
711
|
+
var e = D(se.current.type);
|
|
712
712
|
if (e)
|
|
713
713
|
return `
|
|
714
714
|
|
|
@@ -717,161 +717,161 @@ Check the render method of \`` + e + "`.";
|
|
|
717
717
|
return "";
|
|
718
718
|
}
|
|
719
719
|
}
|
|
720
|
-
function
|
|
720
|
+
function At(e) {
|
|
721
721
|
return "";
|
|
722
722
|
}
|
|
723
|
-
var
|
|
724
|
-
function
|
|
723
|
+
var Le = {};
|
|
724
|
+
function It(e) {
|
|
725
725
|
{
|
|
726
|
-
var
|
|
727
|
-
if (!
|
|
728
|
-
var
|
|
729
|
-
|
|
726
|
+
var n = Fe();
|
|
727
|
+
if (!n) {
|
|
728
|
+
var i = typeof e == "string" ? e : e.displayName || e.name;
|
|
729
|
+
i && (n = `
|
|
730
730
|
|
|
731
|
-
Check the top-level render call using <` +
|
|
731
|
+
Check the top-level render call using <` + i + ">.");
|
|
732
732
|
}
|
|
733
|
-
return
|
|
733
|
+
return n;
|
|
734
734
|
}
|
|
735
735
|
}
|
|
736
|
-
function
|
|
736
|
+
function $e(e, n) {
|
|
737
737
|
{
|
|
738
738
|
if (!e._store || e._store.validated || e.key != null)
|
|
739
739
|
return;
|
|
740
740
|
e._store.validated = !0;
|
|
741
|
-
var
|
|
742
|
-
if (
|
|
741
|
+
var i = It(n);
|
|
742
|
+
if (Le[i])
|
|
743
743
|
return;
|
|
744
|
-
|
|
744
|
+
Le[i] = !0;
|
|
745
745
|
var c = "";
|
|
746
|
-
e && e._owner && e._owner !==
|
|
746
|
+
e && e._owner && e._owner !== se.current && (c = " It was passed a child from " + D(e._owner.type) + "."), $(e), x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', i, c), $(null);
|
|
747
747
|
}
|
|
748
748
|
}
|
|
749
|
-
function
|
|
749
|
+
function Ue(e, n) {
|
|
750
750
|
{
|
|
751
751
|
if (typeof e != "object")
|
|
752
752
|
return;
|
|
753
753
|
if (ae(e))
|
|
754
|
-
for (var
|
|
755
|
-
var c = e[
|
|
756
|
-
|
|
754
|
+
for (var i = 0; i < e.length; i++) {
|
|
755
|
+
var c = e[i];
|
|
756
|
+
ue(c) && $e(c, n);
|
|
757
757
|
}
|
|
758
|
-
else if (
|
|
758
|
+
else if (ue(e))
|
|
759
759
|
e._store && (e._store.validated = !0);
|
|
760
760
|
else if (e) {
|
|
761
|
-
var
|
|
762
|
-
if (typeof
|
|
763
|
-
for (var
|
|
764
|
-
|
|
761
|
+
var v = re(e);
|
|
762
|
+
if (typeof v == "function" && v !== e.entries)
|
|
763
|
+
for (var y = v.call(e), h; !(h = y.next()).done; )
|
|
764
|
+
ue(h.value) && $e(h.value, n);
|
|
765
765
|
}
|
|
766
766
|
}
|
|
767
767
|
}
|
|
768
|
-
function
|
|
768
|
+
function Mt(e) {
|
|
769
769
|
{
|
|
770
|
-
var
|
|
771
|
-
if (
|
|
770
|
+
var n = e.type;
|
|
771
|
+
if (n == null || typeof n == "string")
|
|
772
772
|
return;
|
|
773
|
-
var
|
|
774
|
-
if (typeof
|
|
775
|
-
|
|
776
|
-
else if (typeof
|
|
773
|
+
var i;
|
|
774
|
+
if (typeof n == "function")
|
|
775
|
+
i = n.propTypes;
|
|
776
|
+
else if (typeof n == "object" && (n.$$typeof === p || // Note: Memo only checks outer props here.
|
|
777
777
|
// Inner props are checked in the reconciler.
|
|
778
|
-
|
|
779
|
-
|
|
778
|
+
n.$$typeof === b))
|
|
779
|
+
i = n.propTypes;
|
|
780
780
|
else
|
|
781
781
|
return;
|
|
782
|
-
if (
|
|
783
|
-
var c = D(
|
|
784
|
-
|
|
785
|
-
} else if (
|
|
786
|
-
|
|
787
|
-
var
|
|
788
|
-
|
|
782
|
+
if (i) {
|
|
783
|
+
var c = D(n);
|
|
784
|
+
gt(i, e.props, "prop", c, e);
|
|
785
|
+
} else if (n.PropTypes !== void 0 && !le) {
|
|
786
|
+
le = !0;
|
|
787
|
+
var v = D(n);
|
|
788
|
+
x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", v || "Unknown");
|
|
789
789
|
}
|
|
790
|
-
typeof
|
|
790
|
+
typeof n.getDefaultProps == "function" && !n.getDefaultProps.isReactClassApproved && x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
791
791
|
}
|
|
792
792
|
}
|
|
793
|
-
function
|
|
793
|
+
function Ct(e) {
|
|
794
794
|
{
|
|
795
|
-
for (var
|
|
796
|
-
var c =
|
|
795
|
+
for (var n = Object.keys(e.props), i = 0; i < n.length; i++) {
|
|
796
|
+
var c = n[i];
|
|
797
797
|
if (c !== "children" && c !== "key") {
|
|
798
|
-
|
|
798
|
+
$(e), x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", c), $(null);
|
|
799
799
|
break;
|
|
800
800
|
}
|
|
801
801
|
}
|
|
802
|
-
e.ref !== null && (
|
|
802
|
+
e.ref !== null && ($(e), x("Invalid attribute `ref` supplied to `React.Fragment`."), $(null));
|
|
803
803
|
}
|
|
804
804
|
}
|
|
805
|
-
var
|
|
806
|
-
function
|
|
805
|
+
var Ve = {};
|
|
806
|
+
function We(e, n, i, c, v, y) {
|
|
807
807
|
{
|
|
808
|
-
var
|
|
809
|
-
if (!
|
|
810
|
-
var
|
|
811
|
-
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (
|
|
812
|
-
var
|
|
813
|
-
|
|
814
|
-
var
|
|
815
|
-
e === null ?
|
|
808
|
+
var h = st(e);
|
|
809
|
+
if (!h) {
|
|
810
|
+
var m = "";
|
|
811
|
+
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (m += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
812
|
+
var I = At();
|
|
813
|
+
I ? m += I : m += Fe();
|
|
814
|
+
var S;
|
|
815
|
+
e === null ? S = "null" : ae(e) ? S = "array" : e !== void 0 && e.$$typeof === r ? (S = "<" + (D(e.type) || "Unknown") + " />", m = " Did you accidentally export a JSX literal instead of a component?") : S = typeof e, x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", S, m);
|
|
816
816
|
}
|
|
817
|
-
var
|
|
818
|
-
if (
|
|
819
|
-
return
|
|
820
|
-
if (
|
|
821
|
-
var
|
|
822
|
-
if (
|
|
817
|
+
var R = Rt(e, n, i, v, y);
|
|
818
|
+
if (R == null)
|
|
819
|
+
return R;
|
|
820
|
+
if (h) {
|
|
821
|
+
var T = n.children;
|
|
822
|
+
if (T !== void 0)
|
|
823
823
|
if (c)
|
|
824
|
-
if (ae(
|
|
825
|
-
for (var U = 0; U <
|
|
826
|
-
|
|
827
|
-
Object.freeze && Object.freeze(
|
|
824
|
+
if (ae(T)) {
|
|
825
|
+
for (var U = 0; U < T.length; U++)
|
|
826
|
+
Ue(T[U], e);
|
|
827
|
+
Object.freeze && Object.freeze(T);
|
|
828
828
|
} else
|
|
829
|
-
|
|
829
|
+
x("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
830
830
|
else
|
|
831
|
-
|
|
831
|
+
Ue(T, e);
|
|
832
832
|
}
|
|
833
|
-
if (W.call(
|
|
834
|
-
var
|
|
835
|
-
return
|
|
836
|
-
}),
|
|
837
|
-
if (!
|
|
838
|
-
var
|
|
839
|
-
|
|
833
|
+
if (W.call(n, "key")) {
|
|
834
|
+
var L = D(e), M = Object.keys(n).filter(function(Pt) {
|
|
835
|
+
return Pt !== "key";
|
|
836
|
+
}), ce = M.length > 0 ? "{key: someKey, " + M.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
837
|
+
if (!Ve[L + ce]) {
|
|
838
|
+
var jt = M.length > 0 ? "{" + M.join(": ..., ") + ": ...}" : "{}";
|
|
839
|
+
x(`A props object containing a "key" prop is being spread into JSX:
|
|
840
840
|
let props = %s;
|
|
841
841
|
<%s {...props} />
|
|
842
842
|
React keys must be passed directly to JSX without using spread:
|
|
843
843
|
let props = %s;
|
|
844
|
-
<%s key={someKey} {...props} />`,
|
|
844
|
+
<%s key={someKey} {...props} />`, ce, L, jt, L), Ve[L + ce] = !0;
|
|
845
845
|
}
|
|
846
846
|
}
|
|
847
|
-
return e === l ?
|
|
847
|
+
return e === l ? Ct(R) : Mt(R), R;
|
|
848
848
|
}
|
|
849
849
|
}
|
|
850
|
-
function
|
|
851
|
-
return
|
|
850
|
+
function Tt(e, n, i) {
|
|
851
|
+
return We(e, n, i, !0);
|
|
852
852
|
}
|
|
853
|
-
function
|
|
854
|
-
return
|
|
853
|
+
function Nt(e, n, i) {
|
|
854
|
+
return We(e, n, i, !1);
|
|
855
855
|
}
|
|
856
|
-
var
|
|
857
|
-
H.Fragment = l, H.jsx =
|
|
856
|
+
var kt = Nt, Ot = Tt;
|
|
857
|
+
H.Fragment = l, H.jsx = kt, H.jsxs = Ot;
|
|
858
858
|
})()), H;
|
|
859
859
|
}
|
|
860
|
-
var
|
|
861
|
-
function
|
|
862
|
-
return
|
|
860
|
+
var Je;
|
|
861
|
+
function Jt() {
|
|
862
|
+
return Je || (Je = 1, process.env.NODE_ENV === "production" ? X.exports = zt() : X.exports = Yt()), X.exports;
|
|
863
863
|
}
|
|
864
|
-
var
|
|
865
|
-
const
|
|
866
|
-
log: (...
|
|
864
|
+
var d = Jt();
|
|
865
|
+
const Xe = "platform-kit", qt = !1, pe = {
|
|
866
|
+
log: (...t) => {
|
|
867
867
|
},
|
|
868
|
-
warn: (...
|
|
868
|
+
warn: (...t) => {
|
|
869
869
|
},
|
|
870
|
-
error: (...
|
|
871
|
-
console.error(`[${
|
|
870
|
+
error: (...t) => {
|
|
871
|
+
console.error(`[${Xe}]`, ...t);
|
|
872
872
|
}
|
|
873
873
|
};
|
|
874
|
-
class
|
|
874
|
+
class ur extends Ft {
|
|
875
875
|
hasDispatched = !1;
|
|
876
876
|
constructor(r) {
|
|
877
877
|
super(r), this.state = { hasError: !1 };
|
|
@@ -885,7 +885,7 @@ class Qt extends Ot {
|
|
|
885
885
|
const r = window;
|
|
886
886
|
if (r.__MF_NAME__) return r.__MF_NAME__;
|
|
887
887
|
}
|
|
888
|
-
return
|
|
888
|
+
return Xe;
|
|
889
889
|
}
|
|
890
890
|
/**
|
|
891
891
|
* Определить нужно ли показывать детали ошибки
|
|
@@ -903,7 +903,7 @@ class Qt extends Ot {
|
|
|
903
903
|
}
|
|
904
904
|
} catch {
|
|
905
905
|
}
|
|
906
|
-
return
|
|
906
|
+
return qt;
|
|
907
907
|
}
|
|
908
908
|
/**
|
|
909
909
|
* Dispatch ошибки в shell
|
|
@@ -912,7 +912,7 @@ class Qt extends Ot {
|
|
|
912
912
|
if (this.hasDispatched || typeof window > "u") return;
|
|
913
913
|
this.hasDispatched = !0;
|
|
914
914
|
const l = this.getMfeName();
|
|
915
|
-
|
|
915
|
+
pe.error("ErrorBoundary caught:", r);
|
|
916
916
|
try {
|
|
917
917
|
window.dispatchEvent(new CustomEvent("mfe-error", {
|
|
918
918
|
detail: {
|
|
@@ -924,8 +924,8 @@ class Qt extends Ot {
|
|
|
924
924
|
},
|
|
925
925
|
bubbles: !0
|
|
926
926
|
}));
|
|
927
|
-
} catch (
|
|
928
|
-
|
|
927
|
+
} catch (s) {
|
|
928
|
+
pe.error("Failed to dispatch mfe-error event:", s);
|
|
929
929
|
}
|
|
930
930
|
}
|
|
931
931
|
/**
|
|
@@ -938,7 +938,7 @@ class Qt extends Ot {
|
|
|
938
938
|
* Обработать ошибку
|
|
939
939
|
*/
|
|
940
940
|
componentDidCatch(r, o) {
|
|
941
|
-
this.dispatchError(r, o),
|
|
941
|
+
this.dispatchError(r, o), pe.error("Error info:", o.componentStack);
|
|
942
942
|
}
|
|
943
943
|
/**
|
|
944
944
|
* Копировать ошибку в буфер обмена
|
|
@@ -970,8 +970,8 @@ ${this.state.error?.stack}`;
|
|
|
970
970
|
*/
|
|
971
971
|
render() {
|
|
972
972
|
if (this.state.hasError) {
|
|
973
|
-
const r = this.state.error?.message || "Unknown error", o = this.state.error?.stack || "", l = this.shouldShowDetails(),
|
|
974
|
-
return /* @__PURE__ */
|
|
973
|
+
const r = this.state.error?.message || "Unknown error", o = this.state.error?.stack || "", l = this.shouldShowDetails(), s = this.getMfeName();
|
|
974
|
+
return /* @__PURE__ */ d.jsxs("div", { style: {
|
|
975
975
|
padding: "20px",
|
|
976
976
|
textAlign: "center",
|
|
977
977
|
color: "#d32f2f",
|
|
@@ -981,12 +981,12 @@ ${this.state.error?.stack}`;
|
|
|
981
981
|
borderRadius: "4px",
|
|
982
982
|
margin: "10px"
|
|
983
983
|
}, children: [
|
|
984
|
-
/* @__PURE__ */
|
|
984
|
+
/* @__PURE__ */ d.jsxs("h2", { style: { fontSize: "16px", margin: "0 0 8px 0" }, children: [
|
|
985
985
|
"⚠️ Ошибка в ",
|
|
986
|
-
|
|
986
|
+
s
|
|
987
987
|
] }),
|
|
988
|
-
/* @__PURE__ */
|
|
989
|
-
l && /* @__PURE__ */
|
|
988
|
+
/* @__PURE__ */ d.jsx("p", { style: { fontSize: "12px", margin: 0 }, children: "Произошла ошибка в микрофронтенде. Сообщение отправлено в shell." }),
|
|
989
|
+
l && /* @__PURE__ */ d.jsxs("details", { style: {
|
|
990
990
|
whiteSpace: "pre-wrap",
|
|
991
991
|
textAlign: "left",
|
|
992
992
|
marginTop: "10px",
|
|
@@ -994,8 +994,8 @@ ${this.state.error?.stack}`;
|
|
|
994
994
|
padding: "8px",
|
|
995
995
|
borderRadius: "4px"
|
|
996
996
|
}, children: [
|
|
997
|
-
/* @__PURE__ */
|
|
998
|
-
/* @__PURE__ */
|
|
997
|
+
/* @__PURE__ */ d.jsx("summary", { style: { cursor: "pointer", fontWeight: "bold" }, children: "Детали ошибки" }),
|
|
998
|
+
/* @__PURE__ */ d.jsxs("pre", { style: {
|
|
999
999
|
fontSize: "11px",
|
|
1000
1000
|
overflow: "auto",
|
|
1001
1001
|
maxHeight: "150px",
|
|
@@ -1010,8 +1010,8 @@ ${this.state.error?.stack}`;
|
|
|
1010
1010
|
${o}`
|
|
1011
1011
|
] })
|
|
1012
1012
|
] }),
|
|
1013
|
-
/* @__PURE__ */
|
|
1014
|
-
/* @__PURE__ */
|
|
1013
|
+
/* @__PURE__ */ d.jsxs("div", { style: { marginTop: "12px", display: "flex", gap: "8px", justifyContent: "center" }, children: [
|
|
1014
|
+
/* @__PURE__ */ d.jsx(
|
|
1015
1015
|
"button",
|
|
1016
1016
|
{
|
|
1017
1017
|
onClick: this.handleCopy,
|
|
@@ -1026,7 +1026,7 @@ ${o}`
|
|
|
1026
1026
|
children: "📋 Копировать"
|
|
1027
1027
|
}
|
|
1028
1028
|
),
|
|
1029
|
-
/* @__PURE__ */
|
|
1029
|
+
/* @__PURE__ */ d.jsx(
|
|
1030
1030
|
"button",
|
|
1031
1031
|
{
|
|
1032
1032
|
onClick: this.handleRetry,
|
|
@@ -1041,7 +1041,7 @@ ${o}`
|
|
|
1041
1041
|
children: "🔄 Обновить"
|
|
1042
1042
|
}
|
|
1043
1043
|
),
|
|
1044
|
-
/* @__PURE__ */
|
|
1044
|
+
/* @__PURE__ */ d.jsx(
|
|
1045
1045
|
"button",
|
|
1046
1046
|
{
|
|
1047
1047
|
onClick: this.handleGoHome,
|
|
@@ -1062,7 +1062,7 @@ ${o}`
|
|
|
1062
1062
|
return this.props.children == null ? null : this.props.children;
|
|
1063
1063
|
}
|
|
1064
1064
|
}
|
|
1065
|
-
const
|
|
1065
|
+
const N = {
|
|
1066
1066
|
info: "ℹ️",
|
|
1067
1067
|
code: "💻",
|
|
1068
1068
|
link: "🔗",
|
|
@@ -1073,24 +1073,24 @@ const O = {
|
|
|
1073
1073
|
tags: "🏷️",
|
|
1074
1074
|
spreadsheet: "📊"
|
|
1075
1075
|
};
|
|
1076
|
-
function
|
|
1077
|
-
const { data: r, isLoading: o, error: l } =
|
|
1076
|
+
function cr({ mfeName: t }) {
|
|
1077
|
+
const { data: r, isLoading: o, error: l } = Ht({ mfeName: t }), [s, f] = C(!1);
|
|
1078
1078
|
if (o)
|
|
1079
|
-
return /* @__PURE__ */
|
|
1080
|
-
/* @__PURE__ */
|
|
1079
|
+
return /* @__PURE__ */ d.jsxs("span", { className: "text-muted small me-2", children: [
|
|
1080
|
+
/* @__PURE__ */ d.jsx("span", { className: "me-1", children: "⏳" }),
|
|
1081
1081
|
"Загрузка..."
|
|
1082
1082
|
] });
|
|
1083
1083
|
if (l || !r)
|
|
1084
|
-
return /* @__PURE__ */
|
|
1085
|
-
/* @__PURE__ */
|
|
1084
|
+
return /* @__PURE__ */ d.jsxs("span", { className: "text-muted small me-2", title: `Ошибка: ${l || "нет данных"}`, children: [
|
|
1085
|
+
/* @__PURE__ */ d.jsx("span", { className: "me-1", children: "ℹ️" }),
|
|
1086
1086
|
"N/A"
|
|
1087
1087
|
] });
|
|
1088
|
-
const
|
|
1089
|
-
return
|
|
1090
|
-
/* @__PURE__ */
|
|
1088
|
+
const a = r, w = a.BUILD_VERSION || a.IMAGE_VERSION || a.APP_NAME || "N/A", p = [];
|
|
1089
|
+
return a.APP_NAME && p.push({ key: "APP_NAME", value: a.APP_NAME, label: "Приложение", icon: N.apps }), a.BUILD_VERSION && p.push({ key: "BUILD_VERSION", value: a.BUILD_VERSION, label: "Версия", icon: N.tags }), a.IMAGE_VERSION && p.push({ key: "IMAGE_VERSION", value: a.IMAGE_VERSION, label: "Образ", icon: N.storage }), a.GIT_COMMIT && p.push({ key: "GIT_COMMIT", value: a.GIT_COMMIT, label: "Commit", icon: N.spreadsheet }), a.GIT_BRANCH && p.push({ key: "GIT_BRANCH", value: a.GIT_BRANCH, label: "Ветка", icon: N.spreadsheet }), a.CI_COMMIT_AUTHOR && p.push({ key: "CI_COMMIT_AUTHOR", value: a.CI_COMMIT_AUTHOR, label: "Автор", icon: N.user }), a.CI_COMMIT_TIMESTAMP && p.push({ key: "CI_COMMIT_TIMESTAMP", value: a.CI_COMMIT_TIMESTAMP, label: "Дата", icon: N.clock }), a.CI_JOB_URL && p.push({ key: "CI_JOB_URL", value: a.CI_JOB_URL, label: "CI Job", icon: N.link }), a.CI_PIPELINE_URL && p.push({ key: "CI_PIPELINE_URL", value: a.CI_PIPELINE_URL, label: "Pipeline", icon: N.link }), a.CI_COMMIT_MESSAGE && (a.CI_COMMIT_MESSAGE.length > 60 ? a.CI_COMMIT_MESSAGE.substring(0, 57) + "" : a.CI_COMMIT_MESSAGE, p.push({ key: "CI_COMMIT_MESSAGE", value: a.CI_COMMIT_MESSAGE, label: "Сообщение", icon: N.code })), /* @__PURE__ */ d.jsxs("div", { style: { display: "inline-block", position: "relative" }, children: [
|
|
1090
|
+
/* @__PURE__ */ d.jsxs(
|
|
1091
1091
|
"button",
|
|
1092
1092
|
{
|
|
1093
|
-
onClick: () =>
|
|
1093
|
+
onClick: () => f(!s),
|
|
1094
1094
|
style: {
|
|
1095
1095
|
background: "transparent",
|
|
1096
1096
|
border: "none",
|
|
@@ -1102,12 +1102,12 @@ function er({ mfeName: n }) {
|
|
|
1102
1102
|
},
|
|
1103
1103
|
title: "Информация о версии",
|
|
1104
1104
|
children: [
|
|
1105
|
-
/* @__PURE__ */
|
|
1106
|
-
/* @__PURE__ */
|
|
1105
|
+
/* @__PURE__ */ d.jsx("span", { className: "me-1", children: N.info }),
|
|
1106
|
+
/* @__PURE__ */ d.jsx("span", { className: "text-dark", children: w })
|
|
1107
1107
|
]
|
|
1108
1108
|
}
|
|
1109
1109
|
),
|
|
1110
|
-
|
|
1110
|
+
s && /* @__PURE__ */ d.jsxs(
|
|
1111
1111
|
"div",
|
|
1112
1112
|
{
|
|
1113
1113
|
style: {
|
|
@@ -1124,49 +1124,49 @@ function er({ mfeName: n }) {
|
|
|
1124
1124
|
marginTop: "4px"
|
|
1125
1125
|
},
|
|
1126
1126
|
children: [
|
|
1127
|
-
/* @__PURE__ */
|
|
1127
|
+
/* @__PURE__ */ d.jsxs("div", { style: {
|
|
1128
1128
|
marginBottom: "12px",
|
|
1129
1129
|
paddingBottom: "8px",
|
|
1130
1130
|
borderBottom: "1px solid #dee2e6",
|
|
1131
1131
|
display: "flex",
|
|
1132
1132
|
alignItems: "center"
|
|
1133
1133
|
}, children: [
|
|
1134
|
-
/* @__PURE__ */
|
|
1135
|
-
/* @__PURE__ */
|
|
1134
|
+
/* @__PURE__ */ d.jsx("span", { className: "me-2", children: N.apps }),
|
|
1135
|
+
/* @__PURE__ */ d.jsx("strong", { children: a.APP_NAME || t })
|
|
1136
1136
|
] }),
|
|
1137
|
-
/* @__PURE__ */
|
|
1138
|
-
/* @__PURE__ */
|
|
1139
|
-
/* @__PURE__ */
|
|
1137
|
+
/* @__PURE__ */ d.jsxs("div", { style: { marginBottom: "12px" }, children: [
|
|
1138
|
+
/* @__PURE__ */ d.jsx("span", { className: "text-muted", children: "Версия: " }),
|
|
1139
|
+
/* @__PURE__ */ d.jsx("strong", { children: w })
|
|
1140
1140
|
] }),
|
|
1141
|
-
p.length > 0 && /* @__PURE__ */
|
|
1142
|
-
const
|
|
1143
|
-
return /* @__PURE__ */
|
|
1144
|
-
/* @__PURE__ */
|
|
1145
|
-
/* @__PURE__ */
|
|
1146
|
-
/* @__PURE__ */
|
|
1147
|
-
/* @__PURE__ */
|
|
1141
|
+
p.length > 0 && /* @__PURE__ */ d.jsx("div", { style: { fontSize: "13px" }, children: p.map(({ key: E, value: g, label: b, icon: u }) => {
|
|
1142
|
+
const _ = g.length > 40 && (E.includes("URL") || E.includes("MESSAGE")) ? `${g.substring(0, 37)}...` : g;
|
|
1143
|
+
return /* @__PURE__ */ d.jsxs("div", { style: { marginBottom: "8px", display: "flex", alignItems: "flex-start" }, children: [
|
|
1144
|
+
/* @__PURE__ */ d.jsx("span", { className: "me-2", style: { flexShrink: 0 }, children: u }),
|
|
1145
|
+
/* @__PURE__ */ d.jsxs("div", { style: { flex: 1, minWidth: 0 }, children: [
|
|
1146
|
+
/* @__PURE__ */ d.jsx("div", { className: "small text-muted", children: b }),
|
|
1147
|
+
/* @__PURE__ */ d.jsx(
|
|
1148
1148
|
"div",
|
|
1149
1149
|
{
|
|
1150
1150
|
className: "font-monospace small text-truncate",
|
|
1151
1151
|
style: { maxWidth: "100%" },
|
|
1152
|
-
title:
|
|
1153
|
-
children:
|
|
1152
|
+
title: g,
|
|
1153
|
+
children: E.includes("URL") ? /* @__PURE__ */ d.jsx(
|
|
1154
1154
|
"a",
|
|
1155
1155
|
{
|
|
1156
|
-
href:
|
|
1156
|
+
href: g,
|
|
1157
1157
|
target: "_blank",
|
|
1158
1158
|
rel: "noopener noreferrer",
|
|
1159
1159
|
style: { color: "#007bff" },
|
|
1160
|
-
children:
|
|
1160
|
+
children: _
|
|
1161
1161
|
}
|
|
1162
|
-
) :
|
|
1162
|
+
) : _
|
|
1163
1163
|
}
|
|
1164
1164
|
)
|
|
1165
1165
|
] })
|
|
1166
|
-
] },
|
|
1166
|
+
] }, E);
|
|
1167
1167
|
}) }),
|
|
1168
|
-
p.length === 0 && /* @__PURE__ */
|
|
1169
|
-
/* @__PURE__ */
|
|
1168
|
+
p.length === 0 && /* @__PURE__ */ d.jsx("div", { className: "text-center text-muted py-2 small", children: "Нет информации о версии" }),
|
|
1169
|
+
/* @__PURE__ */ d.jsx("div", { style: {
|
|
1170
1170
|
marginTop: "12px",
|
|
1171
1171
|
paddingTop: "8px",
|
|
1172
1172
|
borderTop: "1px solid #dee2e6",
|
|
@@ -1174,10 +1174,10 @@ function er({ mfeName: n }) {
|
|
|
1174
1174
|
fontSize: "12px",
|
|
1175
1175
|
color: "#6c757d"
|
|
1176
1176
|
}, children: "IngoBank DevOps Platform" }),
|
|
1177
|
-
/* @__PURE__ */
|
|
1177
|
+
/* @__PURE__ */ d.jsx(
|
|
1178
1178
|
"button",
|
|
1179
1179
|
{
|
|
1180
|
-
onClick: () =>
|
|
1180
|
+
onClick: () => f(!1),
|
|
1181
1181
|
style: {
|
|
1182
1182
|
position: "absolute",
|
|
1183
1183
|
top: "8px",
|
|
@@ -1194,10 +1194,10 @@ function er({ mfeName: n }) {
|
|
|
1194
1194
|
]
|
|
1195
1195
|
}
|
|
1196
1196
|
),
|
|
1197
|
-
|
|
1197
|
+
s && /* @__PURE__ */ d.jsx(
|
|
1198
1198
|
"div",
|
|
1199
1199
|
{
|
|
1200
|
-
onClick: () =>
|
|
1200
|
+
onClick: () => f(!1),
|
|
1201
1201
|
style: {
|
|
1202
1202
|
position: "fixed",
|
|
1203
1203
|
top: 0,
|
|
@@ -1210,64 +1210,64 @@ function er({ mfeName: n }) {
|
|
|
1210
1210
|
)
|
|
1211
1211
|
] });
|
|
1212
1212
|
}
|
|
1213
|
-
const
|
|
1214
|
-
function
|
|
1215
|
-
const [r, o] =
|
|
1213
|
+
const ge = "platform-kit", Ze = Lt(null);
|
|
1214
|
+
function fr({ children: t }) {
|
|
1215
|
+
const [r, o] = C([]), l = typeof window < "u" && window.__MF_NAME__ || ge, s = k((u, _, A, O) => ({
|
|
1216
1216
|
id: `${Date.now()}-${Math.random().toString(36).substr(2, 9)}`,
|
|
1217
1217
|
type: u,
|
|
1218
|
-
title:
|
|
1219
|
-
message:
|
|
1218
|
+
title: _,
|
|
1219
|
+
message: A,
|
|
1220
1220
|
mfeName: l,
|
|
1221
1221
|
timestamp: Date.now(),
|
|
1222
|
-
duration:
|
|
1223
|
-
}), [l]),
|
|
1224
|
-
o((
|
|
1225
|
-
const
|
|
1226
|
-
|
|
1227
|
-
o((
|
|
1228
|
-
},
|
|
1229
|
-
}, []),
|
|
1230
|
-
const
|
|
1231
|
-
|
|
1232
|
-
detail:
|
|
1222
|
+
duration: O
|
|
1223
|
+
}), [l]), f = k((u) => {
|
|
1224
|
+
o((A) => [...A, u].slice(0, 5));
|
|
1225
|
+
const _ = u.duration || 5e3;
|
|
1226
|
+
_ > 0 && setTimeout(() => {
|
|
1227
|
+
o((A) => A.filter((O) => O.id !== u.id));
|
|
1228
|
+
}, _);
|
|
1229
|
+
}, []), a = k((u) => {
|
|
1230
|
+
const _ = s(u.type, u.title, u.message, u.duration);
|
|
1231
|
+
f(_), typeof window < "u" && window.dispatchEvent(new CustomEvent("mfe-notification", {
|
|
1232
|
+
detail: _,
|
|
1233
1233
|
bubbles: !0
|
|
1234
1234
|
}));
|
|
1235
|
-
}, [
|
|
1236
|
-
|
|
1237
|
-
}, [
|
|
1238
|
-
|
|
1239
|
-
}, [
|
|
1240
|
-
|
|
1241
|
-
}, [
|
|
1242
|
-
|
|
1243
|
-
}, [
|
|
1244
|
-
o((
|
|
1235
|
+
}, [s, f]), w = k((u, _ = "Успешно") => {
|
|
1236
|
+
a({ type: "success", title: _, message: u });
|
|
1237
|
+
}, [a]), p = k((u, _ = "Ошибка") => {
|
|
1238
|
+
a({ type: "error", title: _, message: u });
|
|
1239
|
+
}, [a]), E = k((u, _ = "Предупреждение") => {
|
|
1240
|
+
a({ type: "warning", title: _, message: u });
|
|
1241
|
+
}, [a]), g = k((u, _ = "Информация") => {
|
|
1242
|
+
a({ type: "info", title: _, message: u });
|
|
1243
|
+
}, [a]), b = k((u) => {
|
|
1244
|
+
o((_) => _.filter((A) => A.id !== u));
|
|
1245
1245
|
}, []);
|
|
1246
|
-
return
|
|
1246
|
+
return Q(() => {
|
|
1247
1247
|
if (typeof window > "u") return;
|
|
1248
|
-
const u = (
|
|
1249
|
-
const
|
|
1250
|
-
if (
|
|
1251
|
-
const
|
|
1252
|
-
...
|
|
1248
|
+
const u = (_) => {
|
|
1249
|
+
const A = _.detail;
|
|
1250
|
+
if (A && A.type && A.title && A.message) {
|
|
1251
|
+
const O = {
|
|
1252
|
+
...A,
|
|
1253
1253
|
id: `${Date.now()}-${Math.random().toString(36).substr(2, 9)}`
|
|
1254
1254
|
};
|
|
1255
|
-
|
|
1255
|
+
f(O);
|
|
1256
1256
|
}
|
|
1257
1257
|
};
|
|
1258
1258
|
return window.addEventListener("mfe-notification", u), () => {
|
|
1259
1259
|
window.removeEventListener("mfe-notification", u);
|
|
1260
1260
|
};
|
|
1261
|
-
}, [
|
|
1262
|
-
notify:
|
|
1263
|
-
notifySuccess:
|
|
1261
|
+
}, [f]), /* @__PURE__ */ d.jsxs(Ze.Provider, { value: {
|
|
1262
|
+
notify: a,
|
|
1263
|
+
notifySuccess: w,
|
|
1264
1264
|
notifyError: p,
|
|
1265
|
-
notifyWarning:
|
|
1266
|
-
notifyInfo:
|
|
1265
|
+
notifyWarning: E,
|
|
1266
|
+
notifyInfo: g,
|
|
1267
1267
|
removeNotification: b
|
|
1268
1268
|
}, children: [
|
|
1269
|
-
|
|
1270
|
-
r.length > 0 && /* @__PURE__ */
|
|
1269
|
+
t,
|
|
1270
|
+
r.length > 0 && /* @__PURE__ */ d.jsx(
|
|
1271
1271
|
"div",
|
|
1272
1272
|
{
|
|
1273
1273
|
style: {
|
|
@@ -1282,7 +1282,7 @@ function tr({ children: n }) {
|
|
|
1282
1282
|
gap: "8px",
|
|
1283
1283
|
pointerEvents: "none"
|
|
1284
1284
|
},
|
|
1285
|
-
children: r.map((u) => /* @__PURE__ */
|
|
1285
|
+
children: r.map((u) => /* @__PURE__ */ d.jsxs(
|
|
1286
1286
|
"div",
|
|
1287
1287
|
{
|
|
1288
1288
|
className: `notification notification-${u.type}`,
|
|
@@ -1298,12 +1298,12 @@ function tr({ children: n }) {
|
|
|
1298
1298
|
gap: "12px"
|
|
1299
1299
|
},
|
|
1300
1300
|
children: [
|
|
1301
|
-
/* @__PURE__ */
|
|
1302
|
-
/* @__PURE__ */
|
|
1303
|
-
/* @__PURE__ */
|
|
1304
|
-
/* @__PURE__ */
|
|
1301
|
+
/* @__PURE__ */ d.jsxs("div", { style: { flex: 1 }, children: [
|
|
1302
|
+
/* @__PURE__ */ d.jsx("strong", { style: { display: "block", marginBottom: "4px" }, children: u.title }),
|
|
1303
|
+
/* @__PURE__ */ d.jsx("p", { style: { margin: 0, fontSize: "14px" }, children: u.message }),
|
|
1304
|
+
/* @__PURE__ */ d.jsx("small", { style: { opacity: 0.7, fontSize: "12px" }, children: u.mfeName })
|
|
1305
1305
|
] }),
|
|
1306
|
-
/* @__PURE__ */
|
|
1306
|
+
/* @__PURE__ */ d.jsx(
|
|
1307
1307
|
"button",
|
|
1308
1308
|
{
|
|
1309
1309
|
onClick: () => b(u.id),
|
|
@@ -1326,9 +1326,9 @@ function tr({ children: n }) {
|
|
|
1326
1326
|
)
|
|
1327
1327
|
] });
|
|
1328
1328
|
}
|
|
1329
|
-
function
|
|
1330
|
-
const
|
|
1331
|
-
return
|
|
1329
|
+
function dr() {
|
|
1330
|
+
const t = $t(Ze);
|
|
1331
|
+
return t || {
|
|
1332
1332
|
notify: () => {
|
|
1333
1333
|
},
|
|
1334
1334
|
notifySuccess: () => {
|
|
@@ -1343,10 +1343,10 @@ function rr() {
|
|
|
1343
1343
|
}
|
|
1344
1344
|
};
|
|
1345
1345
|
}
|
|
1346
|
-
function
|
|
1346
|
+
function pr(t) {
|
|
1347
1347
|
if (typeof window > "u") return;
|
|
1348
|
-
const r = window.__MF_NAME__ ||
|
|
1349
|
-
...
|
|
1348
|
+
const r = window.__MF_NAME__ || ge, o = {
|
|
1349
|
+
...t,
|
|
1350
1350
|
mfeName: r,
|
|
1351
1351
|
timestamp: Date.now()
|
|
1352
1352
|
};
|
|
@@ -1355,112 +1355,112 @@ function nr(n) {
|
|
|
1355
1355
|
bubbles: !0
|
|
1356
1356
|
}));
|
|
1357
1357
|
}
|
|
1358
|
-
const
|
|
1359
|
-
log: (...
|
|
1358
|
+
const Qe = "platform-kit", G = {
|
|
1359
|
+
log: (...t) => {
|
|
1360
1360
|
},
|
|
1361
|
-
warn: (...
|
|
1361
|
+
warn: (...t) => {
|
|
1362
1362
|
},
|
|
1363
|
-
error: (...
|
|
1364
|
-
console.error(`[${
|
|
1363
|
+
error: (...t) => {
|
|
1364
|
+
console.error(`[${Qe}]`, ...t);
|
|
1365
1365
|
},
|
|
1366
|
-
info: (...
|
|
1366
|
+
info: (...t) => {
|
|
1367
1367
|
}
|
|
1368
1368
|
};
|
|
1369
|
-
function
|
|
1369
|
+
function Kt() {
|
|
1370
1370
|
if (typeof window > "u")
|
|
1371
1371
|
return { isAuthenticated: !1 };
|
|
1372
|
-
const
|
|
1373
|
-
if (
|
|
1374
|
-
return
|
|
1372
|
+
const t = window.__SHELL_AUTH_INSTANCE__;
|
|
1373
|
+
if (t)
|
|
1374
|
+
return t;
|
|
1375
1375
|
const r = window.__SHELL_AUTH__;
|
|
1376
1376
|
return r?.authInstance ? r.authInstance : { isAuthenticated: !1 };
|
|
1377
1377
|
}
|
|
1378
|
-
function
|
|
1378
|
+
function Xt() {
|
|
1379
1379
|
if (typeof window > "u") return;
|
|
1380
|
-
const
|
|
1381
|
-
|
|
1380
|
+
const t = window.__SHELL_AUTH_INSTANCE__;
|
|
1381
|
+
t?.signinRedirect ? t.signinRedirect().catch((r) => {
|
|
1382
1382
|
G.error("Failed to redirect to login:", r);
|
|
1383
1383
|
}) : window.location.href = "/";
|
|
1384
1384
|
}
|
|
1385
|
-
function
|
|
1386
|
-
const r =
|
|
1385
|
+
function Zt(t) {
|
|
1386
|
+
const r = t.response;
|
|
1387
1387
|
let o = "unknown";
|
|
1388
1388
|
return r ? r.status === 401 ? o = "unauthorized" : r.status === 403 ? o = "forbidden" : r.status === 404 ? o = "not_found" : r.status >= 500 && (o = "server") : o = "network", {
|
|
1389
|
-
message: r?.data?.message ??
|
|
1389
|
+
message: r?.data?.message ?? t.message ?? "Unknown error",
|
|
1390
1390
|
code: r?.data?.code,
|
|
1391
1391
|
status: r?.status,
|
|
1392
1392
|
type: o,
|
|
1393
1393
|
timestamp: Date.now(),
|
|
1394
|
-
url:
|
|
1394
|
+
url: t.config?.url
|
|
1395
1395
|
};
|
|
1396
1396
|
}
|
|
1397
|
-
function
|
|
1398
|
-
const r =
|
|
1399
|
-
log: (...
|
|
1400
|
-
warn: (...
|
|
1401
|
-
error: (...
|
|
1402
|
-
info: (...
|
|
1403
|
-
}, l =
|
|
1404
|
-
timeout:
|
|
1405
|
-
baseURL:
|
|
1397
|
+
function Qt(t = {}) {
|
|
1398
|
+
const r = t.name || Qe, o = {
|
|
1399
|
+
log: (...s) => G.log(`[API:${r}]`, ...s),
|
|
1400
|
+
warn: (...s) => G.warn(`[API:${r}]`, ...s),
|
|
1401
|
+
error: (...s) => G.error(`[API:${r}]`, ...s),
|
|
1402
|
+
info: (...s) => G.info(`[API:${r}]`, ...s)
|
|
1403
|
+
}, l = Ut.create({
|
|
1404
|
+
timeout: t.timeout ?? 1e4,
|
|
1405
|
+
baseURL: t.baseURL ?? "",
|
|
1406
1406
|
headers: {
|
|
1407
1407
|
"Content-Type": "application/json"
|
|
1408
1408
|
}
|
|
1409
1409
|
});
|
|
1410
1410
|
return l.interceptors.request.use(
|
|
1411
|
-
(
|
|
1412
|
-
const
|
|
1413
|
-
if (
|
|
1414
|
-
const
|
|
1415
|
-
|
|
1411
|
+
(s) => {
|
|
1412
|
+
const f = Kt();
|
|
1413
|
+
if (f?.isAuthenticated) {
|
|
1414
|
+
const a = f.user?.profile?.access_token;
|
|
1415
|
+
a && s.headers && (s.headers.Authorization = `Bearer ${a}`, o.info("Auth token attached"));
|
|
1416
1416
|
} else
|
|
1417
1417
|
o.info("User not authenticated - request without token");
|
|
1418
|
-
return o.log(`${
|
|
1418
|
+
return o.log(`${s.method?.toUpperCase()} ${s.url}`), s;
|
|
1419
1419
|
},
|
|
1420
|
-
(
|
|
1420
|
+
(s) => (o.error("Request interceptor error:", s.message), Promise.reject(s))
|
|
1421
1421
|
), l.interceptors.response.use(
|
|
1422
|
-
(
|
|
1423
|
-
(
|
|
1424
|
-
const
|
|
1425
|
-
return
|
|
1422
|
+
(s) => (o.log(`Response ${s.status}:`, s.config.url), s),
|
|
1423
|
+
(s) => {
|
|
1424
|
+
const f = s.response?.status, a = s.config?.url;
|
|
1425
|
+
return f === 401 ? (o.warn("401 Unauthorized - triggering re-auth"), Xt()) : f === 403 ? o.warn("403 Forbidden - insufficient permissions") : f === 404 ? o.warn("404 Not found:", a) : f === 429 ? o.warn("429 Rate limited") : f === 500 ? o.error("500 Server error:", a) : s.response ? o.warn(`Error ${f}:`, s.message) : o.error("Network error - backend may be unavailable:", a), Promise.reject(Zt(s));
|
|
1426
1426
|
}
|
|
1427
1427
|
), l;
|
|
1428
1428
|
}
|
|
1429
|
-
const
|
|
1430
|
-
async function
|
|
1431
|
-
const l = await o.get(
|
|
1429
|
+
const ee = Qt();
|
|
1430
|
+
async function gr(t, r, o = ee) {
|
|
1431
|
+
const l = await o.get(t, { params: r });
|
|
1432
1432
|
return {
|
|
1433
1433
|
data: l.data,
|
|
1434
1434
|
status: l.status,
|
|
1435
1435
|
ok: l.status >= 200 && l.status < 300
|
|
1436
1436
|
};
|
|
1437
1437
|
}
|
|
1438
|
-
async function
|
|
1439
|
-
const l = await o.post(
|
|
1438
|
+
async function mr(t, r, o = ee) {
|
|
1439
|
+
const l = await o.post(t, r);
|
|
1440
1440
|
return {
|
|
1441
1441
|
data: l.data,
|
|
1442
1442
|
status: l.status,
|
|
1443
1443
|
ok: l.status >= 200 && l.status < 300
|
|
1444
1444
|
};
|
|
1445
1445
|
}
|
|
1446
|
-
async function
|
|
1447
|
-
const l = await o.put(
|
|
1446
|
+
async function hr(t, r, o = ee) {
|
|
1447
|
+
const l = await o.put(t, r);
|
|
1448
1448
|
return {
|
|
1449
1449
|
data: l.data,
|
|
1450
1450
|
status: l.status,
|
|
1451
1451
|
ok: l.status >= 200 && l.status < 300
|
|
1452
1452
|
};
|
|
1453
1453
|
}
|
|
1454
|
-
async function
|
|
1455
|
-
const o = await r.delete(
|
|
1454
|
+
async function _r(t, r = ee) {
|
|
1455
|
+
const o = await r.delete(t);
|
|
1456
1456
|
return {
|
|
1457
1457
|
data: o.data,
|
|
1458
1458
|
status: o.status,
|
|
1459
1459
|
ok: o.status >= 200 && o.status < 300
|
|
1460
1460
|
};
|
|
1461
1461
|
}
|
|
1462
|
-
function
|
|
1463
|
-
const o = r?.prefix ? `[${r.prefix}]` : `[${
|
|
1462
|
+
function te(t, r) {
|
|
1463
|
+
const o = r?.prefix ? `[${r.prefix}]` : `[${t}]`;
|
|
1464
1464
|
return {
|
|
1465
1465
|
log: (...l) => {
|
|
1466
1466
|
},
|
|
@@ -1473,28 +1473,104 @@ function ee(n, r) {
|
|
|
1473
1473
|
}
|
|
1474
1474
|
};
|
|
1475
1475
|
}
|
|
1476
|
-
const
|
|
1476
|
+
const vr = te("platform-kit", { prefix: "AUTH" }), Er = te("platform-kit", { prefix: "API" }), yr = te("platform-kit", { prefix: "ERROR" }), wr = te("platform-kit", { prefix: "INFO" }), er = {}, tr = {
|
|
1477
|
+
log: (...t) => {
|
|
1478
|
+
},
|
|
1479
|
+
warn: (...t) => {
|
|
1480
|
+
},
|
|
1481
|
+
error: (...t) => {
|
|
1482
|
+
console.error("[getMfeName]", ...t);
|
|
1483
|
+
}
|
|
1484
|
+
};
|
|
1485
|
+
function he(t) {
|
|
1486
|
+
return t ? t.mfeName ? t.mfeName : t.name ? t.name.replace("@ib-dop/", "") : null : null;
|
|
1487
|
+
}
|
|
1488
|
+
function et() {
|
|
1489
|
+
if (typeof window > "u") return null;
|
|
1490
|
+
const t = window;
|
|
1491
|
+
return t.__MF_NAME__ ? t.__MF_NAME__ : null;
|
|
1492
|
+
}
|
|
1493
|
+
function tt() {
|
|
1494
|
+
if (typeof window > "u") return null;
|
|
1495
|
+
try {
|
|
1496
|
+
const t = sessionStorage.getItem("mf-config");
|
|
1497
|
+
if (t) {
|
|
1498
|
+
const r = JSON.parse(t);
|
|
1499
|
+
if (r.mfeName) return r.mfeName;
|
|
1500
|
+
if (r.name) return r.name;
|
|
1501
|
+
if (r.appName) return r.appName;
|
|
1502
|
+
}
|
|
1503
|
+
} catch {
|
|
1504
|
+
}
|
|
1505
|
+
return null;
|
|
1506
|
+
}
|
|
1507
|
+
function _e() {
|
|
1508
|
+
const t = er;
|
|
1509
|
+
return t.VITE_MFE_NAME ? String(t.VITE_MFE_NAME) : t.MFE_NAME ? String(t.MFE_NAME) : null;
|
|
1510
|
+
}
|
|
1511
|
+
let Z = null, me = !1;
|
|
1512
|
+
function rr(t, r) {
|
|
1513
|
+
const o = he(t);
|
|
1514
|
+
if (o)
|
|
1515
|
+
return o;
|
|
1516
|
+
if (me && Z)
|
|
1517
|
+
return Z;
|
|
1518
|
+
const l = [
|
|
1519
|
+
{ source: "window.__MF_NAME__", value: et() },
|
|
1520
|
+
{ source: "sessionStorage.mf-config", value: tt() },
|
|
1521
|
+
{ source: "import.meta.env.VITE_MFE_NAME", value: _e() }
|
|
1522
|
+
];
|
|
1523
|
+
for (const { source: f, value: a } of l)
|
|
1524
|
+
if (a)
|
|
1525
|
+
return Z = a, me = !0, a;
|
|
1526
|
+
if (r)
|
|
1527
|
+
return r;
|
|
1528
|
+
const s = "Cannot determine MFE name. Please pass mfeName in props, set window.__MF_NAME__, sessionStorage.mf-config, or VITE_MFE_NAME";
|
|
1529
|
+
throw tr.error(s), new Error(s);
|
|
1530
|
+
}
|
|
1531
|
+
function xr(t) {
|
|
1532
|
+
return rr(t);
|
|
1533
|
+
}
|
|
1534
|
+
function nr(t) {
|
|
1535
|
+
return he(t) ? "props.mfeName" : et() ? "window.__MF_NAME__" : tt() ? "sessionStorage.mf-config" : _e() ? "import.meta.env.VITE_MFE_NAME" : null;
|
|
1536
|
+
}
|
|
1537
|
+
function br(t) {
|
|
1538
|
+
return nr(t) !== null;
|
|
1539
|
+
}
|
|
1540
|
+
function Sr() {
|
|
1541
|
+
Z = null, me = !1;
|
|
1542
|
+
}
|
|
1543
|
+
function Rr(t) {
|
|
1544
|
+
const r = [];
|
|
1545
|
+
return he(t) && r.push("props.mfeName"), typeof window < "u" && (window.__MF_NAME__ && r.push("window.__MF_NAME__"), sessionStorage.getItem("mf-config") && r.push("sessionStorage.mf-config")), _e() && r.push("import.meta.env.VITE_MFE_NAME"), r;
|
|
1546
|
+
}
|
|
1477
1547
|
export {
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1548
|
+
ur as ErrorBoundary,
|
|
1549
|
+
fr as NotificationProvider,
|
|
1550
|
+
cr as VersionInfo,
|
|
1551
|
+
ee as api,
|
|
1552
|
+
Er as apiLogger,
|
|
1553
|
+
vr as authLogger,
|
|
1554
|
+
Qt as createApiClient,
|
|
1555
|
+
te as createMfLogger,
|
|
1556
|
+
_r as del,
|
|
1557
|
+
pr as dispatchNotification,
|
|
1558
|
+
yr as errorLogger,
|
|
1559
|
+
gr as get,
|
|
1560
|
+
Rr as getAllMfeNameSources,
|
|
1561
|
+
fe as getAuth,
|
|
1562
|
+
rr as getMfeName,
|
|
1563
|
+
nr as getMfeNameSource,
|
|
1564
|
+
br as hasMfeName,
|
|
1565
|
+
wr as infoLogger,
|
|
1566
|
+
mr as post,
|
|
1567
|
+
hr as put,
|
|
1568
|
+
xr as requireMfeName,
|
|
1569
|
+
Sr as resetMfeNameCache,
|
|
1570
|
+
sr as useApi,
|
|
1571
|
+
Ht as useInfoData,
|
|
1572
|
+
dr as useNotification,
|
|
1573
|
+
lr as usePermissions,
|
|
1574
|
+
Vt as useShellAuth,
|
|
1575
|
+
ar as useV1Config
|
|
1500
1576
|
};
|