wcz-test 6.27.2 → 6.28.0

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.
Files changed (34) hide show
  1. package/dist/DialogsContext-CGAKEKKW.js +546 -0
  2. package/dist/DialogsContext-CGAKEKKW.js.map +1 -0
  3. package/dist/DialogsHooks-BZUdpDVJ.js +231 -0
  4. package/dist/{DialogsHooks-DzqOb2Zx.js.map → DialogsHooks-BZUdpDVJ.js.map} +1 -1
  5. package/dist/{FileHooks-C8Akmy_o.js → FileHooks-DCznEPaA.js} +65 -61
  6. package/dist/{FileHooks-C8Akmy_o.js.map → FileHooks-DCznEPaA.js.map} +1 -1
  7. package/dist/RouterListItemButton-C_jUvB6C.js +18 -0
  8. package/dist/RouterListItemButton-C_jUvB6C.js.map +1 -0
  9. package/dist/compiler-runtime-BNHg76kC.js +37 -0
  10. package/dist/compiler-runtime-BNHg76kC.js.map +1 -0
  11. package/dist/components.js +1652 -1013
  12. package/dist/components.js.map +1 -1
  13. package/dist/hooks.js +278 -278
  14. package/dist/hooks.js.map +1 -1
  15. package/dist/i18next-Bx3TmZAT.js +1337 -0
  16. package/dist/i18next-Bx3TmZAT.js.map +1 -0
  17. package/dist/index.js +842 -973
  18. package/dist/index.js.map +1 -1
  19. package/dist/queries.js +85 -85
  20. package/dist/queries.js.map +1 -1
  21. package/dist/utils-DV30kRxW.js +1921 -0
  22. package/dist/utils-DV30kRxW.js.map +1 -0
  23. package/dist/utils.js +4 -5
  24. package/dist/utils.js.map +1 -1
  25. package/package.json +1 -4
  26. package/dist/DialogsContext-2Yy6yhzQ.js +0 -6
  27. package/dist/DialogsContext-2Yy6yhzQ.js.map +0 -1
  28. package/dist/DialogsHooks-DzqOb2Zx.js +0 -233
  29. package/dist/RouterListItemButton-i4Ne2G-Z.js +0 -508
  30. package/dist/RouterListItemButton-i4Ne2G-Z.js.map +0 -1
  31. package/dist/_commonjsHelpers-DaMA6jEr.js +0 -9
  32. package/dist/_commonjsHelpers-DaMA6jEr.js.map +0 -1
  33. package/dist/utils-IWcYo8tM.js +0 -106
  34. package/dist/utils-IWcYo8tM.js.map +0 -1
@@ -1,14 +1,17 @@
1
- import { c as M } from "react/compiler-runtime";
1
+ import { c as G } from "./compiler-runtime-BNHg76kC.js";
2
2
  import { useQuery as qe, useMutation as ye, useQueryClient as Pe } from "@tanstack/react-query";
3
- import { c as ee, g as dt } from "./_commonjsHelpers-DaMA6jEr.js";
4
3
  import { useState as It } from "react";
5
4
  import { u as qt } from "./index-Biz5inV2.js";
6
5
  import V from "zod";
7
- import { F as yt } from "./FileMeta-Bzeo3ie9.js";
8
- import { t as Nt, c as mt, h as K } from "./utils-IWcYo8tM.js";
9
- var be = { exports: {} }, Dt = be.exports, Ge;
6
+ import { F as dt } from "./FileMeta-Bzeo3ie9.js";
7
+ import { t as Nt, a as yt, h as K } from "./utils-DV30kRxW.js";
8
+ var ee = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
9
+ function mt(e) {
10
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
11
+ }
12
+ var be = { exports: {} }, Dt = be.exports, Me;
10
13
  function Ht() {
11
- return Ge || (Ge = 1, (function(e, t) {
14
+ return Me || (Me = 1, (function(e, t) {
12
15
  (function(r, n) {
13
16
  n();
14
17
  })(Dt, function() {
@@ -78,7 +81,7 @@ function Ht() {
78
81
  })(be)), be.exports;
79
82
  }
80
83
  var Bt = Ht();
81
- const zt = /* @__PURE__ */ dt(Bt);
84
+ const zt = /* @__PURE__ */ mt(Bt);
82
85
  function je(e) {
83
86
  "@babel/helpers - typeof";
84
87
  return je = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
@@ -87,10 +90,10 @@ function je(e) {
87
90
  return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
88
91
  }, je(e);
89
92
  }
90
- function Gt(e, t, r) {
93
+ function Mt(e, t, r) {
91
94
  return Object.defineProperty(e, "prototype", { writable: !1 }), e;
92
95
  }
93
- function Mt(e, t) {
96
+ function Gt(e, t) {
94
97
  if (!(e instanceof t))
95
98
  throw new TypeError("Cannot call a class as a function");
96
99
  }
@@ -167,13 +170,13 @@ function le(e) {
167
170
  var me = /* @__PURE__ */ (function(e) {
168
171
  function t(r) {
169
172
  var n, o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null, s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null, l = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : null;
170
- if (Mt(this, t), n = Kt(this, t, [r]), n.originalRequest = s, n.originalResponse = l, n.causingError = o, o != null && (r += ", caused by ".concat(o.toString())), s != null) {
173
+ if (Gt(this, t), n = Kt(this, t, [r]), n.originalRequest = s, n.originalResponse = l, n.causingError = o, o != null && (r += ", caused by ".concat(o.toString())), s != null) {
171
174
  var p = s.getHeader("X-Request-ID") || "n/a", c = s.getMethod(), f = s.getURL(), v = l ? l.getStatus() : "n/a", P = l ? l.getBody() || "" : "n/a";
172
175
  r += ", originated from request (method: ".concat(c, ", url: ").concat(f, ", response code: ").concat(v, ", response text: ").concat(P, ", request id: ").concat(p, ")");
173
176
  }
174
177
  return n.message = r, n;
175
178
  }
176
- return Wt(t, e), Gt(t);
179
+ return Wt(t, e), Mt(t);
177
180
  })(/* @__PURE__ */ ke(Error));
178
181
  function fe(e) {
179
182
  "@babel/helpers - typeof";
@@ -236,7 +239,7 @@ var nr = /* @__PURE__ */ (function() {
236
239
  }
237
240
  }]);
238
241
  })();
239
- const vt = "3.7.8", or = vt, ie = typeof Buffer == "function", Me = typeof TextDecoder == "function" ? new TextDecoder() : void 0, Ke = typeof TextEncoder == "function" ? new TextEncoder() : void 0, ir = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", ae = Array.prototype.slice.call(ir), ve = ((e) => {
242
+ const vt = "3.7.8", or = vt, ie = typeof Buffer == "function", Ge = typeof TextDecoder == "function" ? new TextDecoder() : void 0, Ke = typeof TextEncoder == "function" ? new TextEncoder() : void 0, ir = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", ae = Array.prototype.slice.call(ir), ve = ((e) => {
240
243
  let t = {};
241
244
  return e.forEach((r, n) => t[r] = n), t;
242
245
  })(ae), ar = /^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/, C = String.fromCharCode.bind(String), Ye = typeof Uint8Array.from == "function" ? Uint8Array.from.bind(Uint8Array) : (e) => new Uint8Array(Array.prototype.slice.call(e, 0)), gt = (e) => e.replace(/=/g, "").replace(/[+\/]/g, (t) => t == "+" ? "-" : "_"), bt = (e) => e.replace(/[^A-Za-z0-9\+\/]/g, ""), _t = (e) => {
@@ -279,7 +282,7 @@ const vt = "3.7.8", or = vt, ie = typeof Buffer == "function", Me = typeof TextD
279
282
  for (let s = 0; s < e.length; )
280
283
  t = ve[e.charAt(s++)] << 18 | ve[e.charAt(s++)] << 12 | (r = ve[e.charAt(s++)]) << 6 | (n = ve[e.charAt(s++)]), r === 64 ? o.push(C(t >> 16 & 255)) : n === 64 ? o.push(C(t >> 16 & 255, t >> 8 & 255)) : o.push(C(t >> 16 & 255, t >> 8 & 255, t & 255));
281
284
  return o.join("");
282
- }, He = typeof atob == "function" ? (e) => atob(bt(e)) : ie ? (e) => Buffer.from(e, "base64").toString("binary") : Ut, Et = ie ? (e) => Ye(Buffer.from(e, "base64")) : (e) => Ye(He(e).split("").map((t) => t.charCodeAt(0))), Pt = (e) => Et(xt(e)), cr = ie ? (e) => Buffer.from(e, "base64").toString("utf8") : Me ? (e) => Me.decode(Et(e)) : (e) => St(He(e)), xt = (e) => bt(e.replace(/[-_]/g, (t) => t == "-" ? "+" : "/")), Le = (e) => cr(xt(e)), pr = (e) => {
285
+ }, He = typeof atob == "function" ? (e) => atob(bt(e)) : ie ? (e) => Buffer.from(e, "base64").toString("binary") : Ut, Et = ie ? (e) => Ye(Buffer.from(e, "base64")) : (e) => Ye(He(e).split("").map((t) => t.charCodeAt(0))), Pt = (e) => Et(xt(e)), cr = ie ? (e) => Buffer.from(e, "base64").toString("utf8") : Ge ? (e) => Ge.decode(Et(e)) : (e) => St(He(e)), xt = (e) => bt(e.replace(/[-_]/g, (t) => t == "-" ? "+" : "/")), Le = (e) => cr(xt(e)), pr = (e) => {
283
286
  if (typeof e != "string")
284
287
  return !1;
285
288
  const t = e.replace(/\s+/g, "").replace(/={0,2}$/, "");
@@ -462,9 +465,9 @@ function vr() {
462
465
  function T(g, y, _) {
463
466
  if (g = c(g), g = g.replace(n, ""), !(this instanceof T))
464
467
  return new T(g, y, _);
465
- var m, x, U, k, O, B, G = f.slice(), Q = typeof y, w = this, z = 0;
466
- for (Q !== "object" && Q !== "string" && (_ = y, y = null), _ && typeof _ != "function" && (_ = t.parse), y = P(y), x = A(g || "", y), m = !x.protocol && !x.slashes, w.slashes = x.slashes || m && y.slashes, w.protocol = x.protocol || y.protocol || "", g = x.rest, (x.protocol === "file:" && (x.slashesCount !== 2 || p.test(g)) || !x.slashes && (x.protocol || x.slashesCount < 2 || !S(w.protocol))) && (G[3] = [/(.*)/, "pathname"]); z < G.length; z++) {
467
- if (k = G[z], typeof k == "function") {
468
+ var m, x, U, k, O, B, M = f.slice(), Q = typeof y, w = this, z = 0;
469
+ for (Q !== "object" && Q !== "string" && (_ = y, y = null), _ && typeof _ != "function" && (_ = t.parse), y = P(y), x = A(g || "", y), m = !x.protocol && !x.slashes, w.slashes = x.slashes || m && y.slashes, w.protocol = x.protocol || y.protocol || "", g = x.rest, (x.protocol === "file:" && (x.slashesCount !== 2 || p.test(g)) || !x.slashes && (x.protocol || x.slashesCount < 2 || !S(w.protocol))) && (M[3] = [/(.*)/, "pathname"]); z < M.length; z++) {
470
+ if (k = M[z], typeof k == "function") {
468
471
  g = k(g, w);
469
472
  continue;
470
473
  }
@@ -522,7 +525,7 @@ function vr() {
522
525
  return T.prototype = { set: R, toString: H }, T.extractProtocol = A, T.location = P, T.trimLeft = c, T.qs = t, Oe = T, Oe;
523
526
  }
524
527
  var gr = vr();
525
- const br = /* @__PURE__ */ dt(gr);
528
+ const br = /* @__PURE__ */ mt(gr);
526
529
  function _r() {
527
530
  return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
528
531
  var t = Math.random() * 16 | 0, r = e === "x" ? t : t & 3 | 8;
@@ -617,7 +620,7 @@ function Ae() {
617
620
  for (a.method = b, a.arg = d; ; ) {
618
621
  var E = a.delegate;
619
622
  if (E) {
620
- var j = G(E, a);
623
+ var j = M(E, a);
621
624
  if (j) {
622
625
  if (j === R) continue;
623
626
  return j;
@@ -638,9 +641,9 @@ function Ae() {
638
641
  }
639
642
  };
640
643
  }
641
- function G(u, i) {
644
+ function M(u, i) {
642
645
  var a = i.method, h = u.iterator[a];
643
- if (h === e) return i.delegate = null, a === "throw" && u.iterator.return && (i.method = "return", i.arg = e, G(u, i), i.method === "throw") || a !== "return" && (i.method = "throw", i.arg = new TypeError("The iterator does not provide a '" + a + "' method")), R;
646
+ if (h === e) return i.delegate = null, a === "throw" && u.iterator.return && (i.method = "return", i.arg = e, M(u, i), i.method === "throw") || a !== "return" && (i.method = "throw", i.arg = new TypeError("The iterator does not provide a '" + a + "' method")), R;
644
647
  var b = P(h, u.iterator, i.arg);
645
648
  if (b.type === "throw") return i.method = "throw", i.arg = b.arg, i.delegate = null, R;
646
649
  var d = b.arg;
@@ -1624,17 +1627,17 @@ function Hr(e, t) {
1624
1627
  function Br(e, t) {
1625
1628
  for (var r = 0; r < t.length; r++) {
1626
1629
  var n = t[r];
1627
- n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, Gr(n.key), n);
1630
+ n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, Mr(n.key), n);
1628
1631
  }
1629
1632
  }
1630
1633
  function zr(e, t, r) {
1631
1634
  return t && Br(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
1632
1635
  }
1633
- function Gr(e) {
1634
- var t = Mr(e, "string");
1636
+ function Mr(e) {
1637
+ var t = Gr(e, "string");
1635
1638
  return pe(t) == "symbol" ? t : t + "";
1636
1639
  }
1637
- function Mr(e, t) {
1640
+ function Gr(e, t) {
1638
1641
  if (pe(e) != "object" || !e) return e;
1639
1642
  var r = e[Symbol.toPrimitive];
1640
1643
  if (r !== void 0) {
@@ -1795,7 +1798,7 @@ function Ce() {
1795
1798
  for (a.method = b, a.arg = d; ; ) {
1796
1799
  var E = a.delegate;
1797
1800
  if (E) {
1798
- var j = G(E, a);
1801
+ var j = M(E, a);
1799
1802
  if (j) {
1800
1803
  if (j === R) continue;
1801
1804
  return j;
@@ -1816,9 +1819,9 @@ function Ce() {
1816
1819
  }
1817
1820
  };
1818
1821
  }
1819
- function G(u, i) {
1822
+ function M(u, i) {
1820
1823
  var a = i.method, h = u.iterator[a];
1821
- if (h === e) return i.delegate = null, a === "throw" && u.iterator.return && (i.method = "return", i.arg = e, G(u, i), i.method === "throw") || a !== "return" && (i.method = "throw", i.arg = new TypeError("The iterator does not provide a '" + a + "' method")), R;
1824
+ if (h === e) return i.delegate = null, a === "throw" && u.iterator.return && (i.method = "return", i.arg = e, M(u, i), i.method === "throw") || a !== "return" && (i.method = "throw", i.arg = new TypeError("The iterator does not provide a '" + a + "' method")), R;
1822
1825
  var b = P(h, u.iterator, i.arg);
1823
1826
  if (b.type === "throw") return i.method = "throw", i.arg = b.arg, i.delegate = null, R;
1824
1827
  var d = b.arg;
@@ -2402,13 +2405,13 @@ var ht = te(te({}, Ue.defaultOptions), {}, {
2402
2405
  }
2403
2406
  }]);
2404
2407
  })(Ue);
2405
- const $ = "file", oe = 1e3 * 60 * 60, N = Nt(mt.VITE_APP_TITLE);
2408
+ const $ = "file", oe = 1e3 * 60 * 60, N = Nt(yt.VITE_APP_TITLE);
2406
2409
  V.object({
2407
2410
  appName: V.string().min(1).max(255).default(N).optional(),
2408
2411
  subId: V.uuid()
2409
2412
  });
2410
- const Jn = (e, t) => {
2411
- const r = M(12);
2413
+ const Zn = (e, t) => {
2414
+ const r = G.c(12);
2412
2415
  let n;
2413
2416
  r[0] !== e.appName || r[1] !== e.subId ? (n = new URLSearchParams(), n.append("appName", e.appName ?? N), n.append("subId", e.subId), r[0] = e.appName, r[1] = e.subId, r[2] = n) : n = r[2];
2414
2417
  const o = e.appName ?? N;
@@ -2437,10 +2440,10 @@ const Jn = (e, t) => {
2437
2440
  };
2438
2441
  V.object({
2439
2442
  appName: V.string().min(1).max(255).default(N).optional(),
2440
- meta: yt.nullish()
2443
+ meta: dt.nullish()
2441
2444
  });
2442
- const eo = (e, t) => {
2443
- const r = M(13);
2445
+ const Jn = (e, t) => {
2446
+ const r = G.c(13);
2444
2447
  let n;
2445
2448
  r[0] !== e.appName || r[1] !== e.meta?.id ? (n = new URLSearchParams(), n.append("appName", e.appName ?? N), n.append("id", e.meta?.id ?? ""), r[0] = e.appName, r[1] = e.meta?.id, r[2] = n) : n = r[2];
2446
2449
  const o = e.appName ?? N, s = e.meta?.id;
@@ -2473,10 +2476,10 @@ const eo = (e, t) => {
2473
2476
  };
2474
2477
  V.object({
2475
2478
  appName: V.string().min(1).max(255).default(N).optional(),
2476
- meta: yt.nullish()
2479
+ meta: dt.nullish()
2477
2480
  });
2478
- const to = (e, t) => {
2479
- const r = M(13);
2481
+ const eo = (e, t) => {
2482
+ const r = G.c(13);
2480
2483
  let n;
2481
2484
  r[0] !== e.appName || r[1] !== e.meta?.id ? (n = new URLSearchParams(), n.append("appName", e.appName ?? N), n.append("id", e.meta?.id ?? ""), r[0] = e.appName, r[1] = e.meta?.id, r[2] = n) : n = r[2];
2482
2485
  const o = e.appName ?? N, s = e.meta?.id;
@@ -2506,24 +2509,24 @@ const to = (e, t) => {
2506
2509
  refetchOnWindowFocus: !1,
2507
2510
  enabled: c
2508
2511
  }, r[8] = t, r[9] = l, r[10] = p, r[11] = c, r[12] = f) : f = r[12], qe(f);
2509
- }, ro = (e) => {
2510
- const t = M(2);
2512
+ }, to = (e) => {
2513
+ const t = G.c(2);
2511
2514
  let r;
2512
2515
  return t[0] !== e ? (r = {
2513
2516
  ...e,
2514
2517
  mutationFn: Fn,
2515
2518
  onSuccess: Cn
2516
2519
  }, t[0] = e, t[1] = r) : r = t[1], ye(r);
2517
- }, no = (e) => {
2518
- const t = M(2);
2520
+ }, ro = (e) => {
2521
+ const t = G.c(2);
2519
2522
  let r;
2520
2523
  return t[0] !== e ? (r = {
2521
2524
  ...e,
2522
2525
  mutationFn: In,
2523
2526
  onSuccess: qn
2524
2527
  }, t[0] = e, t[1] = r) : r = t[1], ye(r);
2525
- }, oo = (e) => {
2526
- const t = M(5), r = Pe();
2528
+ }, no = (e) => {
2529
+ const t = G.c(5), r = Pe();
2527
2530
  let n;
2528
2531
  t[0] !== r ? (n = () => r.invalidateQueries({
2529
2532
  queryKey: [$, "meta"],
@@ -2535,8 +2538,8 @@ const to = (e, t) => {
2535
2538
  mutationFn: Dn,
2536
2539
  onSettled: n
2537
2540
  }, t[2] = e, t[3] = n, t[4] = o) : o = t[4], ye(o);
2538
- }, io = (e) => {
2539
- const t = M(5), r = Pe();
2541
+ }, oo = (e) => {
2542
+ const t = G.c(5), r = Pe();
2540
2543
  let n;
2541
2544
  t[0] !== r ? (n = () => r.invalidateQueries({
2542
2545
  queryKey: [$, "meta"],
@@ -2548,8 +2551,8 @@ const to = (e, t) => {
2548
2551
  mutationFn: Bn,
2549
2552
  onSettled: n
2550
2553
  }, t[2] = e, t[3] = n, t[4] = o) : o = t[4], ye(o);
2551
- }, ao = (e) => {
2552
- const t = M(5), r = Pe();
2554
+ }, io = (e) => {
2555
+ const t = G.c(5), r = Pe();
2553
2556
  let n;
2554
2557
  t[0] !== r ? (n = () => r.invalidateQueries({
2555
2558
  queryKey: [$, "meta"],
@@ -2558,11 +2561,11 @@ const to = (e, t) => {
2558
2561
  let o;
2559
2562
  return t[2] !== e || t[3] !== n ? (o = {
2560
2563
  ...e,
2561
- mutationFn: Gn,
2564
+ mutationFn: Mn,
2562
2565
  onSettled: n
2563
2566
  }, t[2] = e, t[3] = n, t[4] = o) : o = t[4], ye(o);
2564
- }, uo = (e) => {
2565
- const t = M(8), {
2567
+ }, ao = (e) => {
2568
+ const t = G.c(8), {
2566
2569
  subId: r,
2567
2570
  onSuccess: n,
2568
2571
  onError: o
@@ -2577,7 +2580,7 @@ const to = (e, t) => {
2577
2580
  subId: r,
2578
2581
  fileName: P.name
2579
2582
  }, A = new On(P, {
2580
- endpoint: `${mt.VITE_API_URL}/${$}/v1/upload`,
2583
+ endpoint: `${yt.VITE_API_URL}/${$}/v1/upload`,
2581
2584
  chunkSize: 1048576,
2582
2585
  metadata: {
2583
2586
  id: S.id,
@@ -2674,21 +2677,22 @@ function Bn(e) {
2674
2677
  function zn(e) {
2675
2678
  return e.data;
2676
2679
  }
2677
- function Gn(e) {
2680
+ function Mn(e) {
2678
2681
  return K.request({
2679
2682
  url: `/${$}/v1?appName=${N}&subId=${e}`,
2680
2683
  method: "DELETE"
2681
2684
  }).then(zn);
2682
2685
  }
2683
2686
  export {
2684
- eo as a,
2685
- to as b,
2686
- ro as c,
2687
- no as d,
2688
- oo as e,
2689
- io as f,
2690
- ao as g,
2691
- uo as h,
2692
- Jn as u
2687
+ Jn as a,
2688
+ eo as b,
2689
+ to as c,
2690
+ ro as d,
2691
+ no as e,
2692
+ oo as f,
2693
+ io as g,
2694
+ ao as h,
2695
+ mt as i,
2696
+ Zn as u
2693
2697
  };
2694
- //# sourceMappingURL=FileHooks-C8Akmy_o.js.map
2698
+ //# sourceMappingURL=FileHooks-DCznEPaA.js.map