@ibdop/platform-kit 1.0.14 → 1.0.15

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.mjs CHANGED
@@ -1,6 +1,6 @@
1
- import et, { useState as T, useRef as tt, useCallback as R, useEffect as U, useMemo as ye, Component as Lt, createContext as Ut, useContext as Vt } from "react";
2
- import Bt from "axios";
3
- function B() {
1
+ import et, { useState as k, useRef as tt, useCallback as R, useEffect as B, useMemo as ye, Component as Lt, createContext as Ut, useContext as Bt } from "react";
2
+ import Vt from "axios";
3
+ function U() {
4
4
  if (typeof window > "u") return null;
5
5
  const t = window;
6
6
  if (t.__SHELL_AUTH_INSTANCE__)
@@ -8,8 +8,8 @@ function B() {
8
8
  const r = window;
9
9
  return r.__SHELL_AUTH__?.authInstance ? r.__SHELL_AUTH__.authInstance : null;
10
10
  }
11
- function Wt() {
12
- const t = B();
11
+ function fr() {
12
+ const t = U();
13
13
  if (!t)
14
14
  return { isAuthenticated: !1 };
15
15
  let r;
@@ -31,18 +31,18 @@ function Wt() {
31
31
  };
32
32
  }
33
33
  function dr() {
34
- const t = B();
34
+ const t = U();
35
35
  return t?.isAuthenticated ? t.user?.profile?.access_token ?? null : null;
36
36
  }
37
37
  function pr() {
38
- return B()?.isAuthenticated ?? !1;
38
+ return U()?.isAuthenticated ?? !1;
39
39
  }
40
- async function zt() {
41
- const t = B();
40
+ async function Ht() {
41
+ const t = U();
42
42
  t?.signinRedirect ? await t.signinRedirect() : typeof window < "u" && (window.location.href = "/");
43
43
  }
44
44
  async function hr() {
45
- const t = B();
45
+ const t = U();
46
46
  t?.removeUser && await t.removeUser();
47
47
  }
48
48
  const Je = {
@@ -52,8 +52,8 @@ const Je = {
52
52
  }
53
53
  };
54
54
  function ae() {
55
- const [t, r] = T(null), [o, a] = T(!0), i = tt(0), d = 20, n = R(() => B(), []);
56
- U(() => {
55
+ const [t, r] = k(null), [o, a] = k(!0), i = tt(0), d = 20, n = R(() => U(), []);
56
+ B(() => {
57
57
  const v = n();
58
58
  if (v) {
59
59
  r(v), a(!1);
@@ -75,17 +75,17 @@ function ae() {
75
75
  isAuthenticated: !1,
76
76
  isLoading: o,
77
77
  signinRedirect: async () => {
78
- const v = B();
78
+ const v = U();
79
79
  v?.signinRedirect ? await v.signinRedirect() : typeof window < "u" && (window.location.href = "/");
80
80
  },
81
81
  removeUser: async () => {
82
- const v = B();
82
+ const v = U();
83
83
  v?.removeUser && await v.removeUser();
84
84
  }
85
85
  };
86
86
  return Je.log("Auth result:", { isAuthenticated: l.isAuthenticated, isLoading: l.isLoading }), l;
87
87
  }
88
- const Ht = {
88
+ const Wt = {
89
89
  log: (...t) => {
90
90
  },
91
91
  warn: (...t) => {
@@ -94,7 +94,7 @@ const Ht = {
94
94
  console.error("[useInfoData]", ...t);
95
95
  }
96
96
  };
97
- function Gt(t) {
97
+ function zt(t) {
98
98
  if (t) return t;
99
99
  if (typeof window < "u") {
100
100
  const r = window;
@@ -102,9 +102,9 @@ function Gt(t) {
102
102
  }
103
103
  return "unknown-mfe";
104
104
  }
105
- function Yt(t) {
106
- const [r, o] = T(null), [a, i] = T(!0), [d, n] = T(null), p = R(() => {
107
- const v = Gt(t?.mfeName).replace("@ib-dop/", "");
105
+ function Gt(t) {
106
+ const [r, o] = k(null), [a, i] = k(!0), [d, n] = k(null), p = R(() => {
107
+ const v = zt(t?.mfeName).replace("@ib-dop/", "");
108
108
  i(!0), n(null), fetch(`/svc/${v}/info.json`).then((c) => {
109
109
  if (!c.ok)
110
110
  throw new Error(`HTTP ${c.status}: ${c.statusText}`);
@@ -112,12 +112,12 @@ function Yt(t) {
112
112
  }).then((c) => {
113
113
  o(c);
114
114
  }).catch((c) => {
115
- Ht.error("Failed to load info:", c), n(c instanceof Error ? c.message : String(c));
115
+ Wt.error("Failed to load info:", c), n(c instanceof Error ? c.message : String(c));
116
116
  }).finally(() => {
117
117
  i(!1);
118
118
  });
119
119
  }, [t?.mfeName]);
120
- return U(() => {
120
+ return B(() => {
121
121
  p();
122
122
  }, [p]), {
123
123
  data: r,
@@ -140,8 +140,8 @@ const _e = {
140
140
  environment: "development"
141
141
  };
142
142
  function gr() {
143
- const [t, r] = T(null), [o, a] = T(!0), [i, d] = T(null);
144
- return U(() => {
143
+ const [t, r] = k(null), [o, a] = k(!0), [i, d] = k(null);
144
+ return B(() => {
145
145
  (() => {
146
146
  if (typeof sessionStorage > "u") {
147
147
  d("sessionStorage not available"), r(re), a(!1);
@@ -177,7 +177,7 @@ const rt = "platform-kit", ne = {
177
177
  info: (...t) => {
178
178
  }
179
179
  };
180
- function qt(t) {
180
+ function Yt(t) {
181
181
  const r = t.response;
182
182
  let o = "unknown";
183
183
  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", {
@@ -189,20 +189,20 @@ function qt(t) {
189
189
  url: t.config?.url
190
190
  };
191
191
  }
192
- const Jt = 3, Kt = 1e3;
193
- function Xt(t) {
192
+ const qt = 3, Jt = 1e3;
193
+ function Kt(t) {
194
194
  return !t || t >= 500 || t === 429;
195
195
  }
196
- function Zt(t) {
196
+ function Xt(t) {
197
197
  return new Promise((r) => setTimeout(r, t));
198
198
  }
199
- function Qt(t = {}) {
200
- const r = t.name || rt, o = t.retries ?? Jt, a = t.retryDelay ?? Kt, i = {
199
+ function Zt(t = {}) {
200
+ const r = t.name || rt, o = t.retries ?? qt, a = t.retryDelay ?? Jt, i = {
201
201
  log: (...n) => ne.log(`[API:${r}]`, ...n),
202
202
  warn: (...n) => ne.warn(`[API:${r}]`, ...n),
203
203
  error: (...n) => ne.error(`[API:${r}]`, ...n),
204
204
  info: (...n) => ne.info(`[API:${r}]`, ...n)
205
- }, d = Bt.create({
205
+ }, d = Vt.create({
206
206
  timeout: t.timeout ?? 1e4,
207
207
  baseURL: t.baseURL ?? "",
208
208
  headers: {
@@ -211,36 +211,30 @@ function Qt(t = {}) {
211
211
  });
212
212
  return d.interceptors.request.use(
213
213
  (n) => {
214
- const p = Wt();
215
- if (i.info("Auth state check:", {
214
+ const p = U();
215
+ return i.info("Auth state check:", {
216
216
  isAuthenticated: p?.isAuthenticated,
217
217
  hasUser: !!p?.user,
218
- userKeys: p?.user ? Object.keys(p.user) : [],
219
- token: p?.user?.access_token ? "(present)" : "(missing)"
220
- }), p?.isAuthenticated) {
221
- const l = p.user?.access_token || p.user?.profile?.access_token;
222
- l && n.headers ? (n.headers.Authorization = `Bearer ${l}`, i.info("Auth token attached")) : i.warn("User is authenticated but no token found in authState.user or authState.user.profile");
223
- } else
224
- i.info("User not authenticated - request without token");
225
- return i.log(`${n.method?.toUpperCase()} ${n.url}`), n;
218
+ hasToken: !!p?.user?.access_token
219
+ }), p?.isAuthenticated && p.user?.access_token ? (n.headers.Authorization = `Bearer ${p.user.access_token}`, i.info("Auth token attached")) : p?.isAuthenticated && !p.user?.access_token ? i.info("User authenticated but token not yet available") : i.info("User not authenticated - request without token"), i.log(`${n.method?.toUpperCase()} ${n.url}`), n;
226
220
  },
227
221
  (n) => (i.error("Request interceptor error:", n.message), Promise.reject(n))
228
222
  ), d.interceptors.response.use(
229
223
  (n) => (i.log(`Response ${n.status}:`, n.config.url), n),
230
224
  async (n) => {
231
225
  const p = n.response?.status, l = n.config?.url, v = n.config?._retryCount ?? 0;
232
- if (Xt(p) && v < o) {
226
+ if (Kt(p) && v < o) {
233
227
  const c = n.config;
234
228
  c._retryCount = v + 1;
235
229
  const g = a * Math.pow(2, v);
236
- return i.warn(`Retrying (${c._retryCount}/${o}) after ${g}ms:`, l), await Zt(g), d.request(c);
230
+ return i.warn(`Retrying (${c._retryCount}/${o}) after ${g}ms:`, l), await Xt(g), d.request(c);
237
231
  }
238
- return p === 401 ? (i.warn("401 Unauthorized - triggering re-auth"), zt()) : p === 403 ? i.warn("403 Forbidden - insufficient permissions") : p === 404 ? i.warn("404 Not found:", l) : p === 429 ? i.warn("429 Rate limited") : p === 500 ? i.error("500 Server error:", l) : n.response ? i.warn(`Error ${p}:`, n.message) : i.error("Network error - backend may be unavailable:", l), Promise.reject(qt(n));
232
+ return p === 401 ? (i.warn("401 Unauthorized - triggering re-auth"), Ht()) : p === 403 ? i.warn("403 Forbidden - insufficient permissions") : p === 404 ? i.warn("404 Not found:", l) : p === 429 ? i.warn("429 Rate limited") : p === 500 ? i.error("500 Server error:", l) : n.response ? i.warn(`Error ${p}:`, n.message) : i.error("Network error - backend may be unavailable:", l), Promise.reject(Yt(n));
239
233
  }
240
234
  ), d;
241
235
  }
242
- const W = Qt();
243
- async function mr(t, r, o = W) {
236
+ const H = Zt();
237
+ async function mr(t, r, o = H) {
244
238
  const a = await o.get(t, { params: r });
245
239
  return {
246
240
  data: a.data,
@@ -248,7 +242,7 @@ async function mr(t, r, o = W) {
248
242
  ok: a.status >= 200 && a.status < 300
249
243
  };
250
244
  }
251
- async function _r(t, r, o = W) {
245
+ async function _r(t, r, o = H) {
252
246
  const a = await o.post(t, r);
253
247
  return {
254
248
  data: a.data,
@@ -256,7 +250,7 @@ async function _r(t, r, o = W) {
256
250
  ok: a.status >= 200 && a.status < 300
257
251
  };
258
252
  }
259
- async function vr(t, r, o = W) {
253
+ async function vr(t, r, o = H) {
260
254
  const a = await o.put(t, r);
261
255
  return {
262
256
  data: a.data,
@@ -264,7 +258,7 @@ async function vr(t, r, o = W) {
264
258
  ok: a.status >= 200 && a.status < 300
265
259
  };
266
260
  }
267
- async function yr(t, r = W) {
261
+ async function yr(t, r = H) {
268
262
  const o = await r.delete(t);
269
263
  return {
270
264
  data: o.data,
@@ -321,7 +315,7 @@ function Ke(t, r) {
321
315
  message: r ? `${a.message} (${r})` : a.message
322
316
  });
323
317
  }
324
- function er(t) {
318
+ function Qt(t) {
325
319
  return t instanceof Error && t.name === "AbortError";
326
320
  }
327
321
  function ie(t, r = {}) {
@@ -332,8 +326,8 @@ function ie(t, r = {}) {
332
326
  errorContext: d,
333
327
  onSuccess: n,
334
328
  onError: p
335
- } = r, [l, v] = T(null), [c, g] = T(null), [f, E] = T(!1), y = tt(null), N = c !== null, S = l !== null && !f && !N;
336
- U(() => () => {
329
+ } = r, [l, v] = k(null), [c, g] = k(null), [f, E] = k(!1), y = tt(null), N = c !== null, S = l !== null && !f && !N;
330
+ B(() => () => {
337
331
  y.current && y.current.abort();
338
332
  }, []);
339
333
  const x = R(() => {
@@ -343,28 +337,28 @@ function ie(t, r = {}) {
343
337
  const j = y.current.signal;
344
338
  E(!0), g(null);
345
339
  try {
346
- const P = await t(j);
340
+ const O = await t(j);
347
341
  if (j.aborted)
348
342
  return null;
349
- if (P.ok)
350
- return v(P.data), a && i && nt({
343
+ if (O.ok)
344
+ return v(O.data), a && i && nt({
351
345
  type: "success",
352
346
  title: "Успешно",
353
347
  message: i
354
- }), n?.(P.data), P.data;
348
+ }), n?.(O.data), O.data;
355
349
  {
356
350
  const L = {
357
- message: P.data || "Request failed",
358
- status: P.status,
351
+ message: O.data || "Request failed",
352
+ status: O.status,
359
353
  type: "client",
360
354
  timestamp: Date.now()
361
355
  };
362
356
  return g(L), o && Ke(L, d), p?.(L), null;
363
357
  }
364
- } catch (P) {
365
- if (er(P))
358
+ } catch (O) {
359
+ if (Qt(O))
366
360
  return null;
367
- const L = P;
361
+ const L = O;
368
362
  return g(L), o && Ke(L, d), p?.(L), null;
369
363
  } finally {
370
364
  j.aborted || E(!1), y.current = null;
@@ -386,25 +380,25 @@ function ie(t, r = {}) {
386
380
  function Er(t, r = {}) {
387
381
  const { skip: o = !1, headers: a, immediate: i = !0, ...d } = r, n = ye(() => (l) => {
388
382
  const v = a ? a() : {};
389
- return W.get(t, {
383
+ return H.get(t, {
390
384
  headers: { "Content-Type": "application/json", ...v },
391
385
  signal: l
392
386
  }).then((c) => ({ data: c.data, status: c.status, ok: c.status >= 200 && c.status < 300 }));
393
387
  }, [t, a]), p = ie(n, { ...d });
394
- return U(() => {
388
+ return B(() => {
395
389
  i && !o && p.execute();
396
390
  }, [i, o, t]), p;
397
391
  }
398
392
  function wr(t, r, o = {}) {
399
- return ie((i) => W.post(t, r, { signal: i }).then((d) => ({ data: d.data, status: d.status, ok: d.status >= 200 && d.status < 300 })), o);
393
+ return ie((i) => H.post(t, r, { signal: i }).then((d) => ({ data: d.data, status: d.status, ok: d.status >= 200 && d.status < 300 })), o);
400
394
  }
401
395
  function br(t, r, o = {}) {
402
- return ie((i) => W.put(t, r, { signal: i }).then((d) => ({ data: d.data, status: d.status, ok: d.status >= 200 && d.status < 300 })), o);
396
+ return ie((i) => H.put(t, r, { signal: i }).then((d) => ({ data: d.data, status: d.status, ok: d.status >= 200 && d.status < 300 })), o);
403
397
  }
404
398
  function xr(t, r = {}) {
405
- return ie((a) => W.delete(t, { signal: a }).then((i) => ({ data: i.data, status: i.status, ok: i.status >= 200 && i.status < 300 })), r);
399
+ return ie((a) => H.delete(t, { signal: a }).then((i) => ({ data: i.data, status: i.status, ok: i.status >= 200 && i.status < 300 })), r);
406
400
  }
407
- const tr = {
401
+ const er = {
408
402
  canView: ["all"],
409
403
  canEdit: ["ibdop-user", "ibdop-admin", "ibdop-devops"],
410
404
  canDelete: ["ibdop-admin", "ibdop-devops"],
@@ -415,7 +409,7 @@ const tr = {
415
409
  };
416
410
  function Ar(t = {}) {
417
411
  const r = ae(), o = ye(() => ({
418
- ...tr,
412
+ ...er,
419
413
  ...t
420
414
  }), [t]), a = ye(() => {
421
415
  const d = r.user?.profile?.realm_roles || r.user?.profile?.roles || [];
@@ -431,8 +425,8 @@ function Ar(t = {}) {
431
425
  canManageUsers: i(o.canManageUsers)
432
426
  };
433
427
  }
434
- function kr() {
435
- const t = ae(), [r, o] = T([]), [a, i] = T(0), [d, n] = T([]), [p, l] = T(!0), [v, c] = T(null), g = R(async () => {
428
+ function Tr() {
429
+ const t = ae(), [r, o] = k([]), [a, i] = k(0), [d, n] = k([]), [p, l] = k(!0), [v, c] = k(null), g = R(async () => {
436
430
  if (!t.isAuthenticated) {
437
431
  console.debug("[useFeatures] Not authenticated"), l(!1);
438
432
  return;
@@ -454,7 +448,7 @@ function kr() {
454
448
  l(!1);
455
449
  }
456
450
  }, [t.isAuthenticated, t.user?.access_token]);
457
- U(() => {
451
+ B(() => {
458
452
  g();
459
453
  }, [g]);
460
454
  const f = R(
@@ -475,8 +469,8 @@ function kr() {
475
469
  getFeaturesByMf: E
476
470
  };
477
471
  }
478
- function Tr() {
479
- const t = ae(), [r, o] = T([]), [a, i] = T([]), [d, n] = T(!1), [p, l] = T(!0), [v, c] = T(null), g = R(async () => {
472
+ function kr() {
473
+ const t = ae(), [r, o] = k([]), [a, i] = k([]), [d, n] = k(!1), [p, l] = k(!0), [v, c] = k(null), g = R(async () => {
480
474
  if (!t.isAuthenticated) {
481
475
  console.debug("[useFeatureAdmin] Not authenticated"), l(!1);
482
476
  return;
@@ -537,8 +531,8 @@ function Tr() {
537
531
  body: JSON.stringify(x)
538
532
  });
539
533
  if (!j.ok) {
540
- const P = await j.json().catch(() => ({}));
541
- throw new Error(P.error || `HTTP ${j.status}`);
534
+ const O = await j.json().catch(() => ({}));
535
+ throw new Error(O.error || `HTTP ${j.status}`);
542
536
  }
543
537
  return await g(), !0;
544
538
  } catch (_) {
@@ -559,8 +553,8 @@ function Tr() {
559
553
  }
560
554
  );
561
555
  if (!j.ok) {
562
- const P = await j.json().catch(() => ({}));
563
- throw new Error(P.error || `HTTP ${j.status}`);
556
+ const O = await j.json().catch(() => ({}));
557
+ throw new Error(O.error || `HTTP ${j.status}`);
564
558
  }
565
559
  return await g(), !0;
566
560
  } catch (_) {
@@ -588,7 +582,7 @@ function Tr() {
588
582
  },
589
583
  [g]
590
584
  );
591
- return U(() => {
585
+ return B(() => {
592
586
  g();
593
587
  }, [g]), {
594
588
  features: r,
@@ -604,7 +598,7 @@ function Tr() {
604
598
  };
605
599
  }
606
600
  function Sr() {
607
- const t = ae(), [r, o] = T([]), [a, i] = T(0), [d, n] = T(!0), [p, l] = T(null), v = R(async () => {
601
+ const t = ae(), [r, o] = k([]), [a, i] = k(0), [d, n] = k(!0), [p, l] = k(null), v = R(async () => {
608
602
  if (!t.isAuthenticated) {
609
603
  n(!1);
610
604
  return;
@@ -626,7 +620,7 @@ function Sr() {
626
620
  n(!1);
627
621
  }
628
622
  }, [t.isAuthenticated, t.user?.access_token]);
629
- return U(() => {
623
+ return B(() => {
630
624
  v();
631
625
  }, [v]), {
632
626
  microfrontends: r,
@@ -638,7 +632,7 @@ function Sr() {
638
632
  }
639
633
  var se = { exports: {} }, K = {};
640
634
  var Xe;
641
- function rr() {
635
+ function tr() {
642
636
  if (Xe) return K;
643
637
  Xe = 1;
644
638
  var t = et, r = /* @__PURE__ */ Symbol.for("react.element"), o = /* @__PURE__ */ Symbol.for("react.fragment"), a = Object.prototype.hasOwnProperty, i = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, d = { key: !0, ref: !0, __self: !0, __source: !0 };
@@ -653,7 +647,7 @@ function rr() {
653
647
  }
654
648
  var X = {};
655
649
  var Ze;
656
- function nr() {
650
+ function rr() {
657
651
  return Ze || (Ze = 1, process.env.NODE_ENV !== "production" && (function() {
658
652
  var t = et, r = /* @__PURE__ */ Symbol.for("react.element"), o = /* @__PURE__ */ Symbol.for("react.portal"), a = /* @__PURE__ */ Symbol.for("react.fragment"), i = /* @__PURE__ */ Symbol.for("react.strict_mode"), d = /* @__PURE__ */ Symbol.for("react.profiler"), n = /* @__PURE__ */ Symbol.for("react.provider"), p = /* @__PURE__ */ Symbol.for("react.context"), l = /* @__PURE__ */ Symbol.for("react.forward_ref"), v = /* @__PURE__ */ Symbol.for("react.suspense"), c = /* @__PURE__ */ Symbol.for("react.suspense_list"), g = /* @__PURE__ */ Symbol.for("react.memo"), f = /* @__PURE__ */ Symbol.for("react.lazy"), E = /* @__PURE__ */ Symbol.for("react.offscreen"), y = Symbol.iterator, N = "@@iterator";
659
653
  function S(e) {
@@ -674,16 +668,16 @@ function nr() {
674
668
  {
675
669
  var h = x.ReactDebugCurrentFrame, A = h.getStackAddendum();
676
670
  A !== "" && (s += "%s", u = u.concat([A]));
677
- var k = u.map(function(b) {
671
+ var T = u.map(function(b) {
678
672
  return String(b);
679
673
  });
680
- k.unshift("Warning: " + s), Function.prototype.apply.call(console[e], console, k);
674
+ T.unshift("Warning: " + s), Function.prototype.apply.call(console[e], console, T);
681
675
  }
682
676
  }
683
- var j = !1, P = !1, L = !1, ut = !1, ct = !1, Ae;
677
+ var j = !1, O = !1, L = !1, ut = !1, ct = !1, Ae;
684
678
  Ae = /* @__PURE__ */ Symbol.for("react.module.reference");
685
679
  function lt(e) {
686
- return !!(typeof e == "string" || typeof e == "function" || e === a || e === d || ct || e === i || e === v || e === c || ut || e === E || j || P || L || typeof e == "object" && e !== null && (e.$$typeof === f || e.$$typeof === g || e.$$typeof === n || e.$$typeof === p || e.$$typeof === l || // This needs to include all possible module reference object
680
+ return !!(typeof e == "string" || typeof e == "function" || e === a || e === d || ct || e === i || e === v || e === c || ut || e === E || j || O || L || typeof e == "object" && e !== null && (e.$$typeof === f || e.$$typeof === g || e.$$typeof === n || e.$$typeof === p || e.$$typeof === l || // This needs to include all possible module reference object
687
681
  // types supported by any Flight configuration anywhere since
688
682
  // we don't know which Flight build this will end up being used
689
683
  // with.
@@ -696,7 +690,7 @@ function nr() {
696
690
  var A = s.displayName || s.name || "";
697
691
  return A !== "" ? u + "(" + A + ")" : u;
698
692
  }
699
- function ke(e) {
693
+ function Te(e) {
700
694
  return e.displayName || "Context";
701
695
  }
702
696
  function V(e) {
@@ -724,19 +718,19 @@ function nr() {
724
718
  switch (e.$$typeof) {
725
719
  case p:
726
720
  var s = e;
727
- return ke(s) + ".Consumer";
721
+ return Te(s) + ".Consumer";
728
722
  case n:
729
723
  var u = e;
730
- return ke(u._context) + ".Provider";
724
+ return Te(u._context) + ".Provider";
731
725
  case l:
732
726
  return ft(e, e.render, "ForwardRef");
733
727
  case g:
734
728
  var h = e.displayName || null;
735
729
  return h !== null ? h : V(e.type) || "Memo";
736
730
  case f: {
737
- var A = e, k = A._payload, b = A._init;
731
+ var A = e, T = A._payload, b = A._init;
738
732
  try {
739
- return V(b(k));
733
+ return V(b(T));
740
734
  } catch {
741
735
  return null;
742
736
  }
@@ -744,14 +738,14 @@ function nr() {
744
738
  }
745
739
  return null;
746
740
  }
747
- var z = Object.assign, q = 0, Te, Se, Re, Ce, Me, Ie, Ne;
741
+ var W = Object.assign, q = 0, ke, Se, Re, Ce, Ie, Me, Ne;
748
742
  function je() {
749
743
  }
750
744
  je.__reactDisabledLog = !0;
751
745
  function dt() {
752
746
  {
753
747
  if (q === 0) {
754
- Te = console.log, Se = console.info, Re = console.warn, Ce = console.error, Me = console.group, Ie = console.groupCollapsed, Ne = console.groupEnd;
748
+ ke = console.log, Se = console.info, Re = console.warn, Ce = console.error, Ie = console.group, Me = console.groupCollapsed, Ne = console.groupEnd;
755
749
  var e = {
756
750
  configurable: !0,
757
751
  enumerable: !0,
@@ -780,25 +774,25 @@ function nr() {
780
774
  writable: !0
781
775
  };
782
776
  Object.defineProperties(console, {
783
- log: z({}, e, {
784
- value: Te
777
+ log: W({}, e, {
778
+ value: ke
785
779
  }),
786
- info: z({}, e, {
780
+ info: W({}, e, {
787
781
  value: Se
788
782
  }),
789
- warn: z({}, e, {
783
+ warn: W({}, e, {
790
784
  value: Re
791
785
  }),
792
- error: z({}, e, {
786
+ error: W({}, e, {
793
787
  value: Ce
794
788
  }),
795
- group: z({}, e, {
796
- value: Me
797
- }),
798
- groupCollapsed: z({}, e, {
789
+ group: W({}, e, {
799
790
  value: Ie
800
791
  }),
801
- groupEnd: z({}, e, {
792
+ groupCollapsed: W({}, e, {
793
+ value: Me
794
+ }),
795
+ groupEnd: W({}, e, {
802
796
  value: Ne
803
797
  })
804
798
  });
@@ -825,7 +819,7 @@ function nr() {
825
819
  var ht = typeof WeakMap == "function" ? WeakMap : Map;
826
820
  Q = new ht();
827
821
  }
828
- function Pe(e, s) {
822
+ function Oe(e, s) {
829
823
  if (!e || fe)
830
824
  return "";
831
825
  {
@@ -837,8 +831,8 @@ function nr() {
837
831
  fe = !0;
838
832
  var A = Error.prepareStackTrace;
839
833
  Error.prepareStackTrace = void 0;
840
- var k;
841
- k = ce.current, ce.current = null, dt();
834
+ var T;
835
+ T = ce.current, ce.current = null, dt();
842
836
  try {
843
837
  if (s) {
844
838
  var b = function() {
@@ -874,30 +868,30 @@ function nr() {
874
868
  } catch (F) {
875
869
  if (F && h && typeof F.stack == "string") {
876
870
  for (var w = F.stack.split(`
877
- `), O = h.stack.split(`
878
- `), M = w.length - 1, I = O.length - 1; M >= 1 && I >= 0 && w[M] !== O[I]; )
879
- I--;
880
- for (; M >= 1 && I >= 0; M--, I--)
881
- if (w[M] !== O[I]) {
882
- if (M !== 1 || I !== 1)
871
+ `), P = h.stack.split(`
872
+ `), I = w.length - 1, M = P.length - 1; I >= 1 && M >= 0 && w[I] !== P[M]; )
873
+ M--;
874
+ for (; I >= 1 && M >= 0; I--, M--)
875
+ if (w[I] !== P[M]) {
876
+ if (I !== 1 || M !== 1)
883
877
  do
884
- if (M--, I--, I < 0 || w[M] !== O[I]) {
885
- var D = `
886
- ` + w[M].replace(" at new ", " at ");
887
- return e.displayName && D.includes("<anonymous>") && (D = D.replace("<anonymous>", e.displayName)), typeof e == "function" && Q.set(e, D), D;
878
+ if (I--, M--, M < 0 || w[I] !== P[M]) {
879
+ var $ = `
880
+ ` + w[I].replace(" at new ", " at ");
881
+ return e.displayName && $.includes("<anonymous>") && ($ = $.replace("<anonymous>", e.displayName)), typeof e == "function" && Q.set(e, $), $;
888
882
  }
889
- while (M >= 1 && I >= 0);
883
+ while (I >= 1 && M >= 0);
890
884
  break;
891
885
  }
892
886
  }
893
887
  } finally {
894
- fe = !1, ce.current = k, pt(), Error.prepareStackTrace = A;
888
+ fe = !1, ce.current = T, pt(), Error.prepareStackTrace = A;
895
889
  }
896
- var Y = e ? e.displayName || e.name : "", H = Y ? Z(Y) : "";
897
- return typeof e == "function" && Q.set(e, H), H;
890
+ var Y = e ? e.displayName || e.name : "", z = Y ? Z(Y) : "";
891
+ return typeof e == "function" && Q.set(e, z), z;
898
892
  }
899
893
  function gt(e, s, u) {
900
- return Pe(e, !1);
894
+ return Oe(e, !1);
901
895
  }
902
896
  function mt(e) {
903
897
  var s = e.prototype;
@@ -907,7 +901,7 @@ function nr() {
907
901
  if (e == null)
908
902
  return "";
909
903
  if (typeof e == "function")
910
- return Pe(e, mt(e));
904
+ return Oe(e, mt(e));
911
905
  if (typeof e == "string")
912
906
  return Z(e);
913
907
  switch (e) {
@@ -923,39 +917,39 @@ function nr() {
923
917
  case g:
924
918
  return ee(e.type, s, u);
925
919
  case f: {
926
- var h = e, A = h._payload, k = h._init;
920
+ var h = e, A = h._payload, T = h._init;
927
921
  try {
928
- return ee(k(A), s, u);
922
+ return ee(T(A), s, u);
929
923
  } catch {
930
924
  }
931
925
  }
932
926
  }
933
927
  return "";
934
928
  }
935
- var J = Object.prototype.hasOwnProperty, Oe = {}, Fe = x.ReactDebugCurrentFrame;
929
+ var J = Object.prototype.hasOwnProperty, Pe = {}, De = x.ReactDebugCurrentFrame;
936
930
  function te(e) {
937
931
  if (e) {
938
932
  var s = e._owner, u = ee(e.type, e._source, s ? s.type : null);
939
- Fe.setExtraStackFrame(u);
933
+ De.setExtraStackFrame(u);
940
934
  } else
941
- Fe.setExtraStackFrame(null);
935
+ De.setExtraStackFrame(null);
942
936
  }
943
937
  function _t(e, s, u, h, A) {
944
938
  {
945
- var k = Function.call.bind(J);
939
+ var T = Function.call.bind(J);
946
940
  for (var b in e)
947
- if (k(e, b)) {
941
+ if (T(e, b)) {
948
942
  var w = void 0;
949
943
  try {
950
944
  if (typeof e[b] != "function") {
951
- var O = Error((h || "React class") + ": " + u + " type `" + b + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[b] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
952
- throw O.name = "Invariant Violation", O;
945
+ var P = Error((h || "React class") + ": " + u + " type `" + b + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[b] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
946
+ throw P.name = "Invariant Violation", P;
953
947
  }
954
948
  w = e[b](s, b, h, u, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
955
- } catch (M) {
956
- w = M;
949
+ } catch (I) {
950
+ w = I;
957
951
  }
958
- w && !(w instanceof Error) && (te(A), _("%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).", h || "React class", u, b, typeof w), te(null)), w instanceof Error && !(w.message in Oe) && (Oe[w.message] = !0, te(A), _("Failed %s type: %s", u, w.message), te(null));
952
+ w && !(w instanceof Error) && (te(A), _("%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).", h || "React class", u, b, typeof w), te(null)), w instanceof Error && !(w.message in Pe) && (Pe[w.message] = !0, te(A), _("Failed %s type: %s", u, w.message), te(null));
959
953
  }
960
954
  }
961
955
  }
@@ -971,24 +965,24 @@ function nr() {
971
965
  }
972
966
  function Et(e) {
973
967
  try {
974
- return De(e), !1;
968
+ return Fe(e), !1;
975
969
  } catch {
976
970
  return !0;
977
971
  }
978
972
  }
979
- function De(e) {
973
+ function Fe(e) {
980
974
  return "" + e;
981
975
  }
982
976
  function $e(e) {
983
977
  if (Et(e))
984
- return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", yt(e)), De(e);
978
+ return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", yt(e)), Fe(e);
985
979
  }
986
980
  var Le = x.ReactCurrentOwner, wt = {
987
981
  key: !0,
988
982
  ref: !0,
989
983
  __self: !0,
990
984
  __source: !0
991
- }, Ue, Ve;
985
+ }, Ue, Be;
992
986
  function bt(e) {
993
987
  if (J.call(e, "ref")) {
994
988
  var s = Object.getOwnPropertyDescriptor(e, "ref").get;
@@ -1008,7 +1002,7 @@ function nr() {
1008
1002
  function At(e, s) {
1009
1003
  typeof e.ref == "string" && Le.current;
1010
1004
  }
1011
- function kt(e, s) {
1005
+ function Tt(e, s) {
1012
1006
  {
1013
1007
  var u = function() {
1014
1008
  Ue || (Ue = !0, _("%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)", s));
@@ -1019,10 +1013,10 @@ function nr() {
1019
1013
  });
1020
1014
  }
1021
1015
  }
1022
- function Tt(e, s) {
1016
+ function kt(e, s) {
1023
1017
  {
1024
1018
  var u = function() {
1025
- Ve || (Ve = !0, _("%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)", s));
1019
+ Be || (Be = !0, _("%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)", s));
1026
1020
  };
1027
1021
  u.isReactWarning = !0, Object.defineProperty(e, "ref", {
1028
1022
  get: u,
@@ -1030,7 +1024,7 @@ function nr() {
1030
1024
  });
1031
1025
  }
1032
1026
  }
1033
- var St = function(e, s, u, h, A, k, b) {
1027
+ var St = function(e, s, u, h, A, T, b) {
1034
1028
  var w = {
1035
1029
  // This tag allows us to uniquely identify this as a React Element
1036
1030
  $$typeof: r,
@@ -1040,7 +1034,7 @@ function nr() {
1040
1034
  ref: u,
1041
1035
  props: b,
1042
1036
  // Record the component responsible for creating this element.
1043
- _owner: k
1037
+ _owner: T
1044
1038
  };
1045
1039
  return w._store = {}, Object.defineProperty(w._store, "validated", {
1046
1040
  configurable: !1,
@@ -1061,36 +1055,36 @@ function nr() {
1061
1055
  };
1062
1056
  function Rt(e, s, u, h, A) {
1063
1057
  {
1064
- var k, b = {}, w = null, O = null;
1065
- u !== void 0 && ($e(u), w = "" + u), xt(s) && ($e(s.key), w = "" + s.key), bt(s) && (O = s.ref, At(s, A));
1066
- for (k in s)
1067
- J.call(s, k) && !wt.hasOwnProperty(k) && (b[k] = s[k]);
1058
+ var T, b = {}, w = null, P = null;
1059
+ u !== void 0 && ($e(u), w = "" + u), xt(s) && ($e(s.key), w = "" + s.key), bt(s) && (P = s.ref, At(s, A));
1060
+ for (T in s)
1061
+ J.call(s, T) && !wt.hasOwnProperty(T) && (b[T] = s[T]);
1068
1062
  if (e && e.defaultProps) {
1069
- var M = e.defaultProps;
1070
- for (k in M)
1071
- b[k] === void 0 && (b[k] = M[k]);
1063
+ var I = e.defaultProps;
1064
+ for (T in I)
1065
+ b[T] === void 0 && (b[T] = I[T]);
1072
1066
  }
1073
- if (w || O) {
1074
- var I = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
1075
- w && kt(b, I), O && Tt(b, I);
1067
+ if (w || P) {
1068
+ var M = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
1069
+ w && Tt(b, M), P && kt(b, M);
1076
1070
  }
1077
- return St(e, w, O, A, h, Le.current, b);
1071
+ return St(e, w, P, A, h, Le.current, b);
1078
1072
  }
1079
1073
  }
1080
- var pe = x.ReactCurrentOwner, Be = x.ReactDebugCurrentFrame;
1074
+ var pe = x.ReactCurrentOwner, Ve = x.ReactDebugCurrentFrame;
1081
1075
  function G(e) {
1082
1076
  if (e) {
1083
1077
  var s = e._owner, u = ee(e.type, e._source, s ? s.type : null);
1084
- Be.setExtraStackFrame(u);
1078
+ Ve.setExtraStackFrame(u);
1085
1079
  } else
1086
- Be.setExtraStackFrame(null);
1080
+ Ve.setExtraStackFrame(null);
1087
1081
  }
1088
1082
  var he;
1089
1083
  he = !1;
1090
1084
  function ge(e) {
1091
1085
  return typeof e == "object" && e !== null && e.$$typeof === r;
1092
1086
  }
1093
- function We() {
1087
+ function He() {
1094
1088
  {
1095
1089
  if (pe.current) {
1096
1090
  var e = V(pe.current.type);
@@ -1105,10 +1099,10 @@ Check the render method of \`` + e + "`.";
1105
1099
  function Ct(e) {
1106
1100
  return "";
1107
1101
  }
1108
- var ze = {};
1109
- function Mt(e) {
1102
+ var We = {};
1103
+ function It(e) {
1110
1104
  {
1111
- var s = We();
1105
+ var s = He();
1112
1106
  if (!s) {
1113
1107
  var u = typeof e == "string" ? e : e.displayName || e.name;
1114
1108
  u && (s = `
@@ -1118,15 +1112,15 @@ Check the top-level render call using <` + u + ">.");
1118
1112
  return s;
1119
1113
  }
1120
1114
  }
1121
- function He(e, s) {
1115
+ function ze(e, s) {
1122
1116
  {
1123
1117
  if (!e._store || e._store.validated || e.key != null)
1124
1118
  return;
1125
1119
  e._store.validated = !0;
1126
- var u = Mt(s);
1127
- if (ze[u])
1120
+ var u = It(s);
1121
+ if (We[u])
1128
1122
  return;
1129
- ze[u] = !0;
1123
+ We[u] = !0;
1130
1124
  var h = "";
1131
1125
  e && e._owner && e._owner !== pe.current && (h = " It was passed a child from " + V(e._owner.type) + "."), G(e), _('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', u, h), G(null);
1132
1126
  }
@@ -1138,19 +1132,19 @@ Check the top-level render call using <` + u + ">.");
1138
1132
  if (de(e))
1139
1133
  for (var u = 0; u < e.length; u++) {
1140
1134
  var h = e[u];
1141
- ge(h) && He(h, s);
1135
+ ge(h) && ze(h, s);
1142
1136
  }
1143
1137
  else if (ge(e))
1144
1138
  e._store && (e._store.validated = !0);
1145
1139
  else if (e) {
1146
1140
  var A = S(e);
1147
1141
  if (typeof A == "function" && A !== e.entries)
1148
- for (var k = A.call(e), b; !(b = k.next()).done; )
1149
- ge(b.value) && He(b.value, s);
1142
+ for (var T = A.call(e), b; !(b = T.next()).done; )
1143
+ ge(b.value) && ze(b.value, s);
1150
1144
  }
1151
1145
  }
1152
1146
  }
1153
- function It(e) {
1147
+ function Mt(e) {
1154
1148
  {
1155
1149
  var s = e.type;
1156
1150
  if (s == null || typeof s == "string")
@@ -1188,66 +1182,66 @@ Check the top-level render call using <` + u + ">.");
1188
1182
  }
1189
1183
  }
1190
1184
  var Ye = {};
1191
- function qe(e, s, u, h, A, k) {
1185
+ function qe(e, s, u, h, A, T) {
1192
1186
  {
1193
1187
  var b = lt(e);
1194
1188
  if (!b) {
1195
1189
  var w = "";
1196
1190
  (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (w += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
1197
- var O = Ct();
1198
- O ? w += O : w += We();
1199
- var M;
1200
- e === null ? M = "null" : de(e) ? M = "array" : e !== void 0 && e.$$typeof === r ? (M = "<" + (V(e.type) || "Unknown") + " />", w = " Did you accidentally export a JSX literal instead of a component?") : M = typeof e, _("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", M, w);
1191
+ var P = Ct();
1192
+ P ? w += P : w += He();
1193
+ var I;
1194
+ e === null ? I = "null" : de(e) ? I = "array" : e !== void 0 && e.$$typeof === r ? (I = "<" + (V(e.type) || "Unknown") + " />", w = " Did you accidentally export a JSX literal instead of a component?") : I = typeof e, _("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", I, w);
1201
1195
  }
1202
- var I = Rt(e, s, u, A, k);
1203
- if (I == null)
1204
- return I;
1196
+ var M = Rt(e, s, u, A, T);
1197
+ if (M == null)
1198
+ return M;
1205
1199
  if (b) {
1206
- var D = s.children;
1207
- if (D !== void 0)
1200
+ var $ = s.children;
1201
+ if ($ !== void 0)
1208
1202
  if (h)
1209
- if (de(D)) {
1210
- for (var Y = 0; Y < D.length; Y++)
1211
- Ge(D[Y], e);
1212
- Object.freeze && Object.freeze(D);
1203
+ if (de($)) {
1204
+ for (var Y = 0; Y < $.length; Y++)
1205
+ Ge($[Y], e);
1206
+ Object.freeze && Object.freeze($);
1213
1207
  } else
1214
1208
  _("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
1215
1209
  else
1216
- Ge(D, e);
1210
+ Ge($, e);
1217
1211
  }
1218
1212
  if (J.call(s, "key")) {
1219
- var H = V(e), F = Object.keys(s).filter(function($t) {
1213
+ var z = V(e), F = Object.keys(s).filter(function($t) {
1220
1214
  return $t !== "key";
1221
1215
  }), me = F.length > 0 ? "{key: someKey, " + F.join(": ..., ") + ": ...}" : "{key: someKey}";
1222
- if (!Ye[H + me]) {
1223
- var Dt = F.length > 0 ? "{" + F.join(": ..., ") + ": ...}" : "{}";
1216
+ if (!Ye[z + me]) {
1217
+ var Ft = F.length > 0 ? "{" + F.join(": ..., ") + ": ...}" : "{}";
1224
1218
  _(`A props object containing a "key" prop is being spread into JSX:
1225
1219
  let props = %s;
1226
1220
  <%s {...props} />
1227
1221
  React keys must be passed directly to JSX without using spread:
1228
1222
  let props = %s;
1229
- <%s key={someKey} {...props} />`, me, H, Dt, H), Ye[H + me] = !0;
1223
+ <%s key={someKey} {...props} />`, me, z, Ft, z), Ye[z + me] = !0;
1230
1224
  }
1231
1225
  }
1232
- return e === a ? Nt(I) : It(I), I;
1226
+ return e === a ? Nt(M) : Mt(M), M;
1233
1227
  }
1234
1228
  }
1235
1229
  function jt(e, s, u) {
1236
1230
  return qe(e, s, u, !0);
1237
1231
  }
1238
- function Pt(e, s, u) {
1232
+ function Ot(e, s, u) {
1239
1233
  return qe(e, s, u, !1);
1240
1234
  }
1241
- var Ot = Pt, Ft = jt;
1242
- X.Fragment = a, X.jsx = Ot, X.jsxs = Ft;
1235
+ var Pt = Ot, Dt = jt;
1236
+ X.Fragment = a, X.jsx = Pt, X.jsxs = Dt;
1243
1237
  })()), X;
1244
1238
  }
1245
1239
  var Qe;
1246
- function sr() {
1247
- return Qe || (Qe = 1, process.env.NODE_ENV === "production" ? se.exports = rr() : se.exports = nr()), se.exports;
1240
+ function nr() {
1241
+ return Qe || (Qe = 1, process.env.NODE_ENV === "production" ? se.exports = tr() : se.exports = rr()), se.exports;
1248
1242
  }
1249
- var m = sr();
1250
- const st = "platform-kit", or = !1, ve = {
1243
+ var m = nr();
1244
+ const st = "platform-kit", sr = !1, ve = {
1251
1245
  log: (...t) => {
1252
1246
  },
1253
1247
  warn: (...t) => {
@@ -1288,7 +1282,7 @@ class Rr extends Lt {
1288
1282
  }
1289
1283
  } catch {
1290
1284
  }
1291
- return or;
1285
+ return sr;
1292
1286
  }
1293
1287
  /**
1294
1288
  * Dispatch ошибки в shell
@@ -1447,7 +1441,7 @@ ${o}`
1447
1441
  return this.props.children == null ? null : this.props.children;
1448
1442
  }
1449
1443
  }
1450
- const $ = {
1444
+ const D = {
1451
1445
  info: "ℹ️",
1452
1446
  code: "💻",
1453
1447
  link: "🔗",
@@ -1459,7 +1453,7 @@ const $ = {
1459
1453
  spreadsheet: "📊"
1460
1454
  };
1461
1455
  function Cr({ mfeName: t }) {
1462
- const { data: r, isLoading: o, error: a } = Yt({ mfeName: t }), [i, d] = T(!1);
1456
+ const { data: r, isLoading: o, error: a } = Gt({ mfeName: t }), [i, d] = k(!1);
1463
1457
  if (o)
1464
1458
  return /* @__PURE__ */ m.jsxs("span", { className: "text-muted small me-2", children: [
1465
1459
  /* @__PURE__ */ m.jsx("span", { className: "me-1", children: "⏳" }),
@@ -1471,7 +1465,7 @@ function Cr({ mfeName: t }) {
1471
1465
  "N/A"
1472
1466
  ] });
1473
1467
  const n = r, p = n.BUILD_VERSION || n.IMAGE_VERSION || n.APP_NAME || "N/A", l = [];
1474
- return n.APP_NAME && l.push({ key: "APP_NAME", value: n.APP_NAME, label: "Приложение", icon: $.apps }), n.BUILD_VERSION && l.push({ key: "BUILD_VERSION", value: n.BUILD_VERSION, label: "Версия", icon: $.tags }), n.IMAGE_VERSION && l.push({ key: "IMAGE_VERSION", value: n.IMAGE_VERSION, label: "Образ", icon: $.storage }), n.GIT_COMMIT && l.push({ key: "GIT_COMMIT", value: n.GIT_COMMIT, label: "Commit", icon: $.spreadsheet }), n.GIT_BRANCH && l.push({ key: "GIT_BRANCH", value: n.GIT_BRANCH, label: "Ветка", icon: $.spreadsheet }), n.CI_COMMIT_AUTHOR && l.push({ key: "CI_COMMIT_AUTHOR", value: n.CI_COMMIT_AUTHOR, label: "Автор", icon: $.user }), n.CI_COMMIT_TIMESTAMP && l.push({ key: "CI_COMMIT_TIMESTAMP", value: n.CI_COMMIT_TIMESTAMP, label: "Дата", icon: $.clock }), n.CI_JOB_URL && l.push({ key: "CI_JOB_URL", value: n.CI_JOB_URL, label: "CI Job", icon: $.link }), n.CI_PIPELINE_URL && l.push({ key: "CI_PIPELINE_URL", value: n.CI_PIPELINE_URL, label: "Pipeline", icon: $.link }), n.CI_COMMIT_MESSAGE && (n.CI_COMMIT_MESSAGE.length > 60 ? n.CI_COMMIT_MESSAGE.substring(0, 57) + "" : n.CI_COMMIT_MESSAGE, l.push({ key: "CI_COMMIT_MESSAGE", value: n.CI_COMMIT_MESSAGE, label: "Сообщение", icon: $.code })), /* @__PURE__ */ m.jsxs("div", { style: { display: "inline-block", position: "relative" }, children: [
1468
+ return n.APP_NAME && l.push({ key: "APP_NAME", value: n.APP_NAME, label: "Приложение", icon: D.apps }), n.BUILD_VERSION && l.push({ key: "BUILD_VERSION", value: n.BUILD_VERSION, label: "Версия", icon: D.tags }), n.IMAGE_VERSION && l.push({ key: "IMAGE_VERSION", value: n.IMAGE_VERSION, label: "Образ", icon: D.storage }), n.GIT_COMMIT && l.push({ key: "GIT_COMMIT", value: n.GIT_COMMIT, label: "Commit", icon: D.spreadsheet }), n.COMMIT_SHA && l.push({ key: "COMMIT_SHA", value: n.COMMIT_SHA, label: "Commit", icon: D.spreadsheet }), n.GIT_BRANCH && l.push({ key: "GIT_BRANCH", value: n.GIT_BRANCH, label: "Ветка", icon: D.spreadsheet }), n.BUILD_BRANCH && l.push({ key: "BUILD_BRANCH", value: n.BUILD_BRANCH, label: "Ветка", icon: D.spreadsheet }), n.CI_COMMIT_AUTHOR && l.push({ key: "CI_COMMIT_AUTHOR", value: n.CI_COMMIT_AUTHOR, label: "Автор", icon: D.user }), n.CI_COMMIT_TIMESTAMP && l.push({ key: "CI_COMMIT_TIMESTAMP", value: n.CI_COMMIT_TIMESTAMP, label: "Дата", icon: D.clock }), n.BUILD_DATE && l.push({ key: "BUILD_DATE", value: n.BUILD_DATE, label: "Сборка", icon: D.clock }), n.CI_JOB_URL && l.push({ key: "CI_JOB_URL", value: n.CI_JOB_URL, label: "CI Job", icon: D.link }), n.CI_PIPELINE_URL && l.push({ key: "CI_PIPELINE_URL", value: n.CI_PIPELINE_URL, label: "Pipeline", icon: D.link }), n.CI_COMMIT_MESSAGE && (n.CI_COMMIT_MESSAGE.length > 60 ? n.CI_COMMIT_MESSAGE.substring(0, 57) + "" : n.CI_COMMIT_MESSAGE, l.push({ key: "CI_COMMIT_MESSAGE", value: n.CI_COMMIT_MESSAGE, label: "Сообщение", icon: D.code })), /* @__PURE__ */ m.jsxs("div", { style: { display: "inline-block", position: "relative" }, children: [
1475
1469
  /* @__PURE__ */ m.jsxs(
1476
1470
  "button",
1477
1471
  {
@@ -1487,7 +1481,7 @@ function Cr({ mfeName: t }) {
1487
1481
  },
1488
1482
  title: "Информация о версии",
1489
1483
  children: [
1490
- /* @__PURE__ */ m.jsx("span", { className: "me-1", children: $.info }),
1484
+ /* @__PURE__ */ m.jsx("span", { className: "me-1", children: D.info }),
1491
1485
  /* @__PURE__ */ m.jsx("span", { className: "text-dark", children: p })
1492
1486
  ]
1493
1487
  }
@@ -1516,7 +1510,7 @@ function Cr({ mfeName: t }) {
1516
1510
  display: "flex",
1517
1511
  alignItems: "center"
1518
1512
  }, children: [
1519
- /* @__PURE__ */ m.jsx("span", { className: "me-2", children: $.apps }),
1513
+ /* @__PURE__ */ m.jsx("span", { className: "me-2", children: D.apps }),
1520
1514
  /* @__PURE__ */ m.jsx("strong", { children: n.APP_NAME || t })
1521
1515
  ] }),
1522
1516
  /* @__PURE__ */ m.jsxs("div", { style: { marginBottom: "12px" }, children: [
@@ -1596,8 +1590,8 @@ function Cr({ mfeName: t }) {
1596
1590
  ] });
1597
1591
  }
1598
1592
  const Ee = "platform-kit", ot = Ut(null);
1599
- function Mr({ children: t }) {
1600
- const [r, o] = T([]), a = typeof window < "u" && window.__MF_NAME__ || Ee, i = R((f, E, y, N) => ({
1593
+ function Ir({ children: t }) {
1594
+ const [r, o] = k([]), a = typeof window < "u" && window.__MF_NAME__ || Ee, i = R((f, E, y, N) => ({
1601
1595
  id: `${Date.now()}-${Math.random().toString(36).substr(2, 9)}`,
1602
1596
  type: f,
1603
1597
  title: E,
@@ -1628,7 +1622,7 @@ function Mr({ children: t }) {
1628
1622
  }, [n]), g = R((f) => {
1629
1623
  o((E) => E.filter((y) => y.id !== f));
1630
1624
  }, []);
1631
- return U(() => {
1625
+ return B(() => {
1632
1626
  if (typeof window > "u") return;
1633
1627
  const f = (E) => {
1634
1628
  const y = E.detail;
@@ -1711,8 +1705,8 @@ function Mr({ children: t }) {
1711
1705
  )
1712
1706
  ] });
1713
1707
  }
1714
- function Ir() {
1715
- const t = Vt(ot);
1708
+ function Mr() {
1709
+ const t = Bt(ot);
1716
1710
  return t || {
1717
1711
  notify: () => {
1718
1712
  },
@@ -1754,7 +1748,7 @@ function ue(t, r) {
1754
1748
  }
1755
1749
  };
1756
1750
  }
1757
- const jr = ue("platform-kit", { prefix: "AUTH" }), Pr = ue("platform-kit", { prefix: "API" }), Or = ue("platform-kit", { prefix: "ERROR" }), Fr = ue("platform-kit", { prefix: "INFO" }), ar = {}, ir = {
1751
+ const jr = ue("platform-kit", { prefix: "AUTH" }), Or = ue("platform-kit", { prefix: "API" }), Pr = ue("platform-kit", { prefix: "ERROR" }), Dr = ue("platform-kit", { prefix: "INFO" }), or = {}, ar = {
1758
1752
  log: (...t) => {
1759
1753
  },
1760
1754
  warn: (...t) => {
@@ -1786,11 +1780,11 @@ function it() {
1786
1780
  return null;
1787
1781
  }
1788
1782
  function xe() {
1789
- const t = ar;
1783
+ const t = or;
1790
1784
  return t.VITE_MFE_NAME ? String(t.VITE_MFE_NAME) : t.MFE_NAME ? String(t.MFE_NAME) : null;
1791
1785
  }
1792
1786
  let oe = null, we = !1;
1793
- function ur(t, r) {
1787
+ function ir(t, r) {
1794
1788
  const o = be(t);
1795
1789
  if (o)
1796
1790
  return o;
@@ -1807,16 +1801,16 @@ function ur(t, r) {
1807
1801
  if (r)
1808
1802
  return r;
1809
1803
  const i = "Cannot determine MFE name. Please pass mfeName in props, set window.__MF_NAME__, sessionStorage.mf-config, or VITE_MFE_NAME";
1810
- throw ir.error(i), new Error(i);
1804
+ throw ar.error(i), new Error(i);
1811
1805
  }
1812
- function Dr(t) {
1813
- return ur(t);
1806
+ function Fr(t) {
1807
+ return ir(t);
1814
1808
  }
1815
- function cr(t) {
1809
+ function ur(t) {
1816
1810
  return be(t) ? "props.mfeName" : at() ? "window.__MF_NAME__" : it() ? "sessionStorage.mf-config" : xe() ? "import.meta.env.VITE_MFE_NAME" : null;
1817
1811
  }
1818
1812
  function $r(t) {
1819
- return cr(t) !== null;
1813
+ return ur(t) !== null;
1820
1814
  }
1821
1815
  function Lr() {
1822
1816
  oe = null, we = !1;
@@ -1827,40 +1821,40 @@ function Ur(t) {
1827
1821
  }
1828
1822
  export {
1829
1823
  Rr as ErrorBoundary,
1830
- Mr as NotificationProvider,
1824
+ Ir as NotificationProvider,
1831
1825
  Cr as VersionInfo,
1832
- W as api,
1833
- Pr as apiLogger,
1826
+ H as api,
1827
+ Or as apiLogger,
1834
1828
  jr as authLogger,
1835
- Qt as createApiClient,
1829
+ Zt as createApiClient,
1836
1830
  ue as createMfLogger,
1837
1831
  yr as del,
1838
1832
  Nr as dispatchNotification,
1839
- Or as errorLogger,
1833
+ Pr as errorLogger,
1840
1834
  mr as get,
1841
1835
  dr as getAccessToken,
1842
1836
  Ur as getAllMfeNameSources,
1843
- Wt as getAuthState,
1844
- ur as getMfeName,
1845
- cr as getMfeNameSource,
1846
- B as getShellAuth,
1837
+ fr as getAuthState,
1838
+ ir as getMfeName,
1839
+ ur as getMfeNameSource,
1840
+ U as getShellAuth,
1847
1841
  $r as hasMfeName,
1848
- Fr as infoLogger,
1842
+ Dr as infoLogger,
1849
1843
  pr as isAuthenticated,
1850
1844
  hr as logout,
1851
1845
  _r as post,
1852
1846
  vr as put,
1853
- zt as redirectToLogin,
1854
- Dr as requireMfeName,
1847
+ Ht as redirectToLogin,
1848
+ Fr as requireMfeName,
1855
1849
  Lr as resetMfeNameCache,
1856
1850
  ie as useApi,
1857
1851
  xr as useDel,
1858
- Tr as useFeatureAdmin,
1859
- kr as useFeatures,
1852
+ kr as useFeatureAdmin,
1853
+ Tr as useFeatures,
1860
1854
  Er as useGet,
1861
- Yt as useInfoData,
1855
+ Gt as useInfoData,
1862
1856
  Sr as useMicrofrontendsFeatures,
1863
- Ir as useNotification,
1857
+ Mr as useNotification,
1864
1858
  Ar as usePermissions,
1865
1859
  wr as usePost,
1866
1860
  br as usePut,