wcz-test 6.27.1 → 6.27.3

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 +1562 -944
  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 -1
  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-B6kAS_RK.js +0 -640
  30. package/dist/RouterListItemButton-B6kAS_RK.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,233 +0,0 @@
1
- import * as D from "react";
2
- import { useContext as O } from "react";
3
- import { jsx as b, jsxs as A } from "react/jsx-runtime";
4
- import { c as I } from "react/compiler-runtime";
5
- import { useEventCallback as W, DialogContent as w, DialogTitle as F, DialogActions as _, Button as S, Dialog as j } from "@mui/material";
6
- import { useTranslation as B } from "react-i18next";
7
- import { D as z } from "./DialogsContext-2Yy6yhzQ.js";
8
- var E = /* @__PURE__ */ new Map(), y = /* @__PURE__ */ new WeakMap(), $ = 0, V;
9
- function q(t) {
10
- return t ? (y.has(t) || ($ += 1, y.set(t, $.toString())), y.get(t)) : "0";
11
- }
12
- function G(t) {
13
- return Object.keys(t).sort().filter(
14
- (e) => t[e] !== void 0
15
- ).map((e) => `${e}_${e === "root" ? q(t.root) : t[e]}`).toString();
16
- }
17
- function H(t) {
18
- const e = G(t);
19
- let f = E.get(e);
20
- if (!f) {
21
- const o = /* @__PURE__ */ new Map();
22
- let i;
23
- const r = new IntersectionObserver((n) => {
24
- n.forEach((s) => {
25
- var l;
26
- const c = s.isIntersecting && i.some((u) => s.intersectionRatio >= u);
27
- t.trackVisibility && typeof s.isVisible > "u" && (s.isVisible = c), (l = o.get(s.target)) == null || l.forEach((u) => {
28
- u(c, s);
29
- });
30
- });
31
- }, t);
32
- i = r.thresholds || (Array.isArray(t.threshold) ? t.threshold : [t.threshold || 0]), f = {
33
- id: e,
34
- observer: r,
35
- elements: o
36
- }, E.set(e, f);
37
- }
38
- return f;
39
- }
40
- function J(t, e, f = {}, o = V) {
41
- if (typeof window.IntersectionObserver > "u" && o !== void 0) {
42
- const l = t.getBoundingClientRect();
43
- return e(o, {
44
- isIntersecting: o,
45
- target: t,
46
- intersectionRatio: typeof f.threshold == "number" ? f.threshold : 0,
47
- time: 0,
48
- boundingClientRect: l,
49
- intersectionRect: l,
50
- rootBounds: l
51
- }), () => {
52
- };
53
- }
54
- const { id: i, observer: r, elements: n } = H(f), s = n.get(t) || [];
55
- return n.has(t) || n.set(t, s), s.push(e), r.observe(t), function() {
56
- s.splice(s.indexOf(e), 1), s.length === 0 && (n.delete(t), r.unobserve(t)), n.size === 0 && (r.disconnect(), E.delete(i));
57
- };
58
- }
59
- function k({
60
- threshold: t,
61
- delay: e,
62
- trackVisibility: f,
63
- rootMargin: o,
64
- root: i,
65
- triggerOnce: r,
66
- skip: n,
67
- initialInView: s,
68
- fallbackInView: l,
69
- onChange: c
70
- } = {}) {
71
- var u;
72
- const [a, d] = D.useState(null), g = D.useRef(c), v = D.useRef(s), [h, m] = D.useState({
73
- inView: !!s,
74
- entry: void 0
75
- });
76
- g.current = c, D.useEffect(
77
- () => {
78
- if (v.current === void 0 && (v.current = s), n || !a) return;
79
- let R;
80
- return R = J(
81
- a,
82
- (x, T) => {
83
- const M = v.current;
84
- v.current = x, !(M === void 0 && !x) && (m({
85
- inView: x,
86
- entry: T
87
- }), g.current && g.current(x, T), T.isIntersecting && r && R && (R(), R = void 0));
88
- },
89
- {
90
- root: i,
91
- rootMargin: o,
92
- threshold: t,
93
- // @ts-expect-error
94
- trackVisibility: f,
95
- delay: e
96
- },
97
- l
98
- ), () => {
99
- R && R();
100
- };
101
- },
102
- // We break the rule here, because we aren't including the actual `threshold` variable
103
- // eslint-disable-next-line react-hooks/exhaustive-deps
104
- [
105
- // If the threshold is an array, convert it to a string, so it won't change between renders.
106
- Array.isArray(t) ? t.toString() : t,
107
- a,
108
- i,
109
- o,
110
- r,
111
- n,
112
- f,
113
- l,
114
- e
115
- ]
116
- );
117
- const p = (u = h.entry) == null ? void 0 : u.target, L = D.useRef(void 0);
118
- !a && p && !r && !n && L.current !== p && (L.current = p, m({
119
- inView: !!s,
120
- entry: void 0
121
- }), v.current = s);
122
- const C = [d, h.inView, h.entry];
123
- return C.ref = C[0], C.inView = C[1], C.entry = C[2], C;
124
- }
125
- function K(t) {
126
- const e = I(22), {
127
- open: f,
128
- payload: o,
129
- onClose: i
130
- } = t, {
131
- t: r
132
- } = B();
133
- let n;
134
- e[0] !== i ? (n = () => i(), e[0] = i, e[1] = n) : n = e[1];
135
- let s;
136
- e[2] !== o.title || e[3] !== r ? (s = o.title ?? r("Layout.Dialog.Alert"), e[2] = o.title, e[3] = r, e[4] = s) : s = e[4];
137
- let l;
138
- e[5] !== s ? (l = /* @__PURE__ */ b(F, { children: s }), e[5] = s, e[6] = l) : l = e[6];
139
- let c;
140
- e[7] !== o.message ? (c = /* @__PURE__ */ b(w, { children: o.message }), e[7] = o.message, e[8] = c) : c = e[8];
141
- let u;
142
- e[9] !== i ? (u = () => i(), e[9] = i, e[10] = u) : u = e[10];
143
- let a;
144
- e[11] !== r ? (a = r("Layout.Dialog.Confirm"), e[11] = r, e[12] = a) : a = e[12];
145
- let d;
146
- e[13] !== u || e[14] !== a ? (d = /* @__PURE__ */ b(_, { children: /* @__PURE__ */ b(S, { onClick: u, autoFocus: !0, children: a }) }), e[13] = u, e[14] = a, e[15] = d) : d = e[15];
147
- let g;
148
- return e[16] !== f || e[17] !== n || e[18] !== l || e[19] !== c || e[20] !== d ? (g = /* @__PURE__ */ A(j, { maxWidth: "xs", fullWidth: !0, open: f, onClose: n, disableRestoreFocus: !0, children: [
149
- l,
150
- c,
151
- d
152
- ] }), e[16] = f, e[17] = n, e[18] = l, e[19] = c, e[20] = d, e[21] = g) : g = e[21], g;
153
- }
154
- function N(t) {
155
- const e = I(33), {
156
- open: f,
157
- payload: o,
158
- onClose: i
159
- } = t, {
160
- t: r
161
- } = B();
162
- let n;
163
- e[0] !== i ? (n = () => i(!1), e[0] = i, e[1] = n) : n = e[1];
164
- let s;
165
- e[2] !== o.title || e[3] !== r ? (s = o.title ?? r("Layout.Dialog.Confirm"), e[2] = o.title, e[3] = r, e[4] = s) : s = e[4];
166
- let l;
167
- e[5] !== s ? (l = /* @__PURE__ */ b(F, { children: s }), e[5] = s, e[6] = l) : l = e[6];
168
- let c;
169
- e[7] !== o.message ? (c = /* @__PURE__ */ b(w, { children: o.message }), e[7] = o.message, e[8] = c) : c = e[8];
170
- let u;
171
- e[9] !== i ? (u = () => i(!1), e[9] = i, e[10] = u) : u = e[10];
172
- let a;
173
- e[11] !== o.cancelText || e[12] !== r ? (a = o.cancelText ?? r("Layout.Dialog.Cancel"), e[11] = o.cancelText, e[12] = r, e[13] = a) : a = e[13];
174
- let d;
175
- e[14] !== u || e[15] !== a ? (d = /* @__PURE__ */ b(S, { onClick: u, children: a }), e[14] = u, e[15] = a, e[16] = d) : d = e[16];
176
- let g;
177
- e[17] !== i ? (g = () => i(!0), e[17] = i, e[18] = g) : g = e[18];
178
- let v;
179
- e[19] !== r ? (v = r("Layout.Dialog.Confirm"), e[19] = r, e[20] = v) : v = e[20];
180
- let h;
181
- e[21] !== g || e[22] !== v ? (h = /* @__PURE__ */ b(S, { onClick: g, autoFocus: !0, children: v }), e[21] = g, e[22] = v, e[23] = h) : h = e[23];
182
- let m;
183
- e[24] !== h || e[25] !== d ? (m = /* @__PURE__ */ A(_, { children: [
184
- d,
185
- h
186
- ] }), e[24] = h, e[25] = d, e[26] = m) : m = e[26];
187
- let p;
188
- return e[27] !== f || e[28] !== n || e[29] !== m || e[30] !== l || e[31] !== c ? (p = /* @__PURE__ */ A(j, { maxWidth: "xs", fullWidth: !0, open: f, onClose: n, disableRestoreFocus: !0, children: [
189
- l,
190
- c,
191
- m
192
- ] }), e[27] = f, e[28] = n, e[29] = m, e[30] = l, e[31] = c, e[32] = p) : p = e[32], p;
193
- }
194
- function ee() {
195
- const t = I(9), {
196
- open: e,
197
- close: f
198
- } = O(z);
199
- let o;
200
- t[0] !== e ? (o = (l, c) => {
201
- const {
202
- ...u
203
- } = c === void 0 ? {} : c;
204
- return e(K, {
205
- ...u,
206
- message: l
207
- });
208
- }, t[0] = e, t[1] = o) : o = t[1];
209
- const i = W(o);
210
- let r;
211
- t[2] !== e ? (r = (l, c) => {
212
- const {
213
- ...u
214
- } = c === void 0 ? {} : c;
215
- return e(N, {
216
- ...u,
217
- message: l
218
- });
219
- }, t[2] = e, t[3] = r) : r = t[3];
220
- const n = W(r);
221
- let s;
222
- return t[4] !== i || t[5] !== f || t[6] !== n || t[7] !== e ? (s = {
223
- alert: i,
224
- confirm: n,
225
- open: e,
226
- close: f
227
- }, t[4] = i, t[5] = f, t[6] = n, t[7] = e, t[8] = s) : s = t[8], s;
228
- }
229
- export {
230
- k as a,
231
- ee as u
232
- };
233
- //# sourceMappingURL=DialogsHooks-DzqOb2Zx.js.map