@nizza/core 0.4.5-alpha.4 → 0.4.5-alpha.5
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 +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +1167 -1076
- package/dist/index.mjs.map +1 -1
- package/dist/lib/utils/downloadFile.d.ts +5 -0
- package/dist/lib/utils/logger.d.ts +2 -2
- package/dist/package.json +2 -4
- package/package.json +2 -4
package/dist/index.mjs
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import * as
|
|
5
|
-
import
|
|
6
|
-
import { jsx as
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
var an = Object.defineProperty;
|
|
2
|
+
var sn = (n, e, t) => e in n ? an(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
|
|
3
|
+
var x = (n, e, t) => (sn(n, typeof e != "symbol" ? e + "" : e, t), t);
|
|
4
|
+
import * as M from "react";
|
|
5
|
+
import Ae, { createContext as Ot, useReducer as rn, useEffect as Se, useDebugValue as Rt, useCallback as xt, useContext as Pe, useRef as Re, useMemo as Tt } from "react";
|
|
6
|
+
import { jsx as on } from "react/jsx-runtime";
|
|
7
|
+
var _ = { NZ_AWS_REGION: "us-east-1", NZ_VTEX_PROJECT: "/Users/jbermudez/TODO/PROJECTS/live-shopping", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
|
|
8
|
+
let ln = 0;
|
|
9
|
+
function dn(n, e) {
|
|
10
|
+
const t = `atom${++ln}`, i = {
|
|
10
11
|
toString: () => t
|
|
11
12
|
};
|
|
12
13
|
return typeof n == "function" ? i.read = n : (i.init = n, i.read = function(a) {
|
|
@@ -18,271 +19,311 @@ function rn(n, e) {
|
|
|
18
19
|
);
|
|
19
20
|
}), e && (i.write = e), i;
|
|
20
21
|
}
|
|
21
|
-
const
|
|
22
|
-
|
|
23
|
-
}).finally(() =>
|
|
24
|
-
},
|
|
25
|
-
const t =
|
|
26
|
-
t && (
|
|
27
|
-
}, Ge = (n, e) => {
|
|
28
|
-
n.status = "fulfilled", n.value = e;
|
|
22
|
+
const be = (n) => "init" in n, Fe = (n) => !!n.write, ue = /* @__PURE__ */ new WeakMap(), un = (n, e) => {
|
|
23
|
+
ue.set(n, e), n.catch(() => {
|
|
24
|
+
}).finally(() => ue.delete(n));
|
|
25
|
+
}, We = (n, e) => {
|
|
26
|
+
const t = ue.get(n);
|
|
27
|
+
t && (ue.delete(n), t(e));
|
|
29
28
|
}, Je = (n, e) => {
|
|
29
|
+
n.status = "fulfilled", n.value = e;
|
|
30
|
+
}, qe = (n, e) => {
|
|
30
31
|
n.status = "rejected", n.reason = e;
|
|
31
|
-
},
|
|
32
|
+
}, cn = (n) => typeof (n == null ? void 0 : n.then) == "function", J = (n, e) => !!n && "v" in n && "v" in e && Object.is(n.v, e.v), He = (n, e) => !!n && "e" in n && "e" in e && Object.is(n.e, e.e), B = (n) => !!n && "v" in n && n.v instanceof Promise, mn = (n, e) => "v" in n && "v" in e && n.v.orig && n.v.orig === e.v.orig, re = (n) => {
|
|
32
33
|
if ("e" in n)
|
|
33
34
|
throw n.e;
|
|
34
35
|
return n.v;
|
|
35
|
-
},
|
|
36
|
+
}, Dt = () => {
|
|
36
37
|
const n = /* @__PURE__ */ new WeakMap(), e = /* @__PURE__ */ new WeakMap(), t = /* @__PURE__ */ new Map();
|
|
37
38
|
let i, a;
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
(_ ? "production" : void 0) !== "production" && (i = /* @__PURE__ */ new Set(), a = /* @__PURE__ */ new Set());
|
|
40
|
+
const s = (f) => n.get(f), r = (f, m) => {
|
|
41
|
+
(_ ? "production" : void 0) !== "production" && Object.freeze(m);
|
|
42
|
+
const g = n.get(f);
|
|
43
|
+
if (n.set(f, m), t.has(f) || t.set(f, g), B(g)) {
|
|
41
44
|
const h = "v" in m ? m.v instanceof Promise ? m.v : Promise.resolve(m.v) : Promise.reject(m.e);
|
|
42
|
-
g.v !== h &&
|
|
45
|
+
g.v !== h && We(g.v, h);
|
|
43
46
|
}
|
|
44
|
-
}, o = (
|
|
47
|
+
}, o = (f, m, g) => {
|
|
45
48
|
const h = /* @__PURE__ */ new Map();
|
|
46
49
|
let N = !1;
|
|
47
|
-
g.forEach((
|
|
48
|
-
!
|
|
50
|
+
g.forEach((C, b) => {
|
|
51
|
+
!C && b === f && (C = m), C ? (h.set(b, C), m.d.get(b) !== C && (N = !0)) : (_ ? "production" : void 0) !== "production" && console.warn("[Bug] atom state not found");
|
|
49
52
|
}), (N || m.d.size !== h.size) && (m.d = h);
|
|
50
|
-
}, d = (
|
|
51
|
-
const h = s(
|
|
53
|
+
}, d = (f, m, g) => {
|
|
54
|
+
const h = s(f), N = {
|
|
52
55
|
d: (h == null ? void 0 : h.d) || /* @__PURE__ */ new Map(),
|
|
53
56
|
v: m
|
|
54
57
|
};
|
|
55
|
-
if (g && o(
|
|
58
|
+
if (g && o(f, N, g), J(h, N) && h.d === N.d)
|
|
56
59
|
return h;
|
|
57
|
-
if (
|
|
60
|
+
if (B(h) && B(N) && mn(h, N)) {
|
|
58
61
|
if (h.d === N.d)
|
|
59
62
|
return h;
|
|
60
63
|
N.v = h.v;
|
|
61
64
|
}
|
|
62
|
-
return r(
|
|
63
|
-
}, l = (
|
|
64
|
-
if (
|
|
65
|
+
return r(f, N), N;
|
|
66
|
+
}, l = (f, m, g, h) => {
|
|
67
|
+
if (cn(m)) {
|
|
65
68
|
let N;
|
|
66
|
-
const
|
|
67
|
-
const
|
|
68
|
-
if (!
|
|
69
|
+
const C = () => {
|
|
70
|
+
const O = s(f);
|
|
71
|
+
if (!B(O) || O.v !== b)
|
|
69
72
|
return;
|
|
70
|
-
const
|
|
71
|
-
|
|
73
|
+
const T = d(
|
|
74
|
+
f,
|
|
72
75
|
b,
|
|
73
76
|
g
|
|
74
77
|
);
|
|
75
|
-
e.has(
|
|
76
|
-
}, b = new Promise((
|
|
77
|
-
let
|
|
78
|
+
e.has(f) && O.d !== T.d && I(f, T, O.d);
|
|
79
|
+
}, b = new Promise((O, T) => {
|
|
80
|
+
let R = !1;
|
|
78
81
|
m.then(
|
|
79
|
-
(
|
|
80
|
-
|
|
82
|
+
(D) => {
|
|
83
|
+
R || (R = !0, Je(b, D), O(D), C());
|
|
81
84
|
},
|
|
82
|
-
(
|
|
83
|
-
|
|
85
|
+
(D) => {
|
|
86
|
+
R || (R = !0, qe(b, D), T(D), C());
|
|
84
87
|
}
|
|
85
|
-
), N = (
|
|
86
|
-
|
|
87
|
-
(V) =>
|
|
88
|
-
(V) =>
|
|
89
|
-
),
|
|
88
|
+
), N = (D) => {
|
|
89
|
+
R || (R = !0, D.then(
|
|
90
|
+
(V) => Je(b, V),
|
|
91
|
+
(V) => qe(b, V)
|
|
92
|
+
), O(D));
|
|
90
93
|
};
|
|
91
94
|
});
|
|
92
|
-
return b.orig = m, b.status = "pending",
|
|
93
|
-
|
|
94
|
-
}), d(
|
|
95
|
+
return b.orig = m, b.status = "pending", un(b, (O) => {
|
|
96
|
+
O && N(O), h == null || h();
|
|
97
|
+
}), d(f, b, g);
|
|
95
98
|
}
|
|
96
|
-
return d(
|
|
97
|
-
}, u = (
|
|
98
|
-
const h = s(
|
|
99
|
+
return d(f, m, g);
|
|
100
|
+
}, u = (f, m, g) => {
|
|
101
|
+
const h = s(f), N = {
|
|
99
102
|
d: (h == null ? void 0 : h.d) || /* @__PURE__ */ new Map(),
|
|
100
103
|
e: m
|
|
101
104
|
};
|
|
102
|
-
return g && o(
|
|
103
|
-
},
|
|
104
|
-
const g = s(
|
|
105
|
-
if (!m && g && (e.has(
|
|
106
|
-
if (
|
|
105
|
+
return g && o(f, N, g), He(h, N) && h.d === N.d ? h : (r(f, N), N);
|
|
106
|
+
}, p = (f, m) => {
|
|
107
|
+
const g = s(f);
|
|
108
|
+
if (!m && g && (e.has(f) || Array.from(g.d).every(([R, D]) => {
|
|
109
|
+
if (R === f)
|
|
107
110
|
return !0;
|
|
108
|
-
const V =
|
|
109
|
-
return V ===
|
|
111
|
+
const V = p(R);
|
|
112
|
+
return V === D || J(V, D);
|
|
110
113
|
})))
|
|
111
114
|
return g;
|
|
112
115
|
const h = /* @__PURE__ */ new Map();
|
|
113
116
|
let N = !0;
|
|
114
|
-
const
|
|
115
|
-
if (
|
|
116
|
-
const V = s(
|
|
117
|
+
const C = (R) => {
|
|
118
|
+
if (R === f) {
|
|
119
|
+
const V = s(R);
|
|
117
120
|
if (V)
|
|
118
|
-
return h.set(
|
|
119
|
-
if (
|
|
120
|
-
return h.set(
|
|
121
|
+
return h.set(R, V), re(V);
|
|
122
|
+
if (be(R))
|
|
123
|
+
return h.set(R, void 0), R.init;
|
|
121
124
|
throw new Error("no atom init");
|
|
122
125
|
}
|
|
123
|
-
const
|
|
124
|
-
return h.set(
|
|
126
|
+
const D = p(R);
|
|
127
|
+
return h.set(R, D), re(D);
|
|
125
128
|
};
|
|
126
|
-
let b,
|
|
127
|
-
const
|
|
129
|
+
let b, O;
|
|
130
|
+
const T = {
|
|
128
131
|
get signal() {
|
|
129
132
|
return b || (b = new AbortController()), b.signal;
|
|
130
133
|
},
|
|
131
134
|
get setSelf() {
|
|
132
|
-
return !
|
|
133
|
-
if (!N)
|
|
134
|
-
return
|
|
135
|
-
}),
|
|
135
|
+
return (_ ? "production" : void 0) !== "production" && !Fe(f) && console.warn("setSelf function cannot be used with read-only atom"), !O && Fe(f) && (O = (...R) => {
|
|
136
|
+
if ((_ ? "production" : void 0) !== "production" && N && console.warn("setSelf function cannot be called in sync"), !N)
|
|
137
|
+
return w(f, ...R);
|
|
138
|
+
}), O;
|
|
136
139
|
}
|
|
137
140
|
};
|
|
138
141
|
try {
|
|
139
|
-
const
|
|
142
|
+
const R = f.read(C, T);
|
|
140
143
|
return l(
|
|
141
|
-
|
|
142
|
-
|
|
144
|
+
f,
|
|
145
|
+
R,
|
|
143
146
|
h,
|
|
144
147
|
() => b == null ? void 0 : b.abort()
|
|
145
148
|
);
|
|
146
|
-
} catch (
|
|
147
|
-
return u(
|
|
149
|
+
} catch (R) {
|
|
150
|
+
return u(f, R, h);
|
|
148
151
|
} finally {
|
|
149
152
|
N = !1;
|
|
150
153
|
}
|
|
151
|
-
}, c = (
|
|
152
|
-
let m = e.get(
|
|
153
|
-
return m || (m = L(
|
|
154
|
-
},
|
|
155
|
-
const m = e.get(
|
|
156
|
-
m &&
|
|
157
|
-
},
|
|
154
|
+
}, c = (f) => re(p(f)), v = (f) => {
|
|
155
|
+
let m = e.get(f);
|
|
156
|
+
return m || (m = L(f)), m;
|
|
157
|
+
}, S = (f, m) => !m.l.size && (!m.t.size || m.t.size === 1 && m.t.has(f)), k = (f) => {
|
|
158
|
+
const m = e.get(f);
|
|
159
|
+
m && S(f, m) && E(f);
|
|
160
|
+
}, y = (f) => {
|
|
158
161
|
const m = /* @__PURE__ */ new Map(), g = /* @__PURE__ */ new WeakMap(), h = (b) => {
|
|
159
|
-
var
|
|
160
|
-
const
|
|
161
|
-
return t.forEach((
|
|
162
|
+
var O;
|
|
163
|
+
const T = new Set((O = e.get(b)) == null ? void 0 : O.t);
|
|
164
|
+
return t.forEach((R, D) => {
|
|
162
165
|
var V;
|
|
163
|
-
(V = s(
|
|
164
|
-
}),
|
|
166
|
+
(V = s(D)) != null && V.d.has(b) && T.add(D);
|
|
167
|
+
}), T;
|
|
165
168
|
}, N = (b) => {
|
|
166
|
-
h(b).forEach((
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
(m.get(
|
|
170
|
-
), g.set(
|
|
169
|
+
h(b).forEach((O) => {
|
|
170
|
+
O !== b && (m.set(
|
|
171
|
+
O,
|
|
172
|
+
(m.get(O) || /* @__PURE__ */ new Set()).add(b)
|
|
173
|
+
), g.set(O, (g.get(O) || 0) + 1), N(O));
|
|
171
174
|
});
|
|
172
175
|
};
|
|
173
|
-
N(
|
|
174
|
-
const
|
|
175
|
-
h(b).forEach((
|
|
176
|
-
var
|
|
177
|
-
if (
|
|
178
|
-
let
|
|
179
|
-
if (
|
|
180
|
-
let
|
|
181
|
-
if (
|
|
182
|
-
const V = s(
|
|
183
|
-
|
|
176
|
+
N(f);
|
|
177
|
+
const C = (b) => {
|
|
178
|
+
h(b).forEach((O) => {
|
|
179
|
+
var T;
|
|
180
|
+
if (O !== b) {
|
|
181
|
+
let R = g.get(O);
|
|
182
|
+
if (R && g.set(O, --R), !R) {
|
|
183
|
+
let D = !!((T = m.get(O)) != null && T.size);
|
|
184
|
+
if (D) {
|
|
185
|
+
const V = s(O), se = p(O, !0);
|
|
186
|
+
D = !J(V, se);
|
|
184
187
|
}
|
|
185
|
-
|
|
188
|
+
D || m.forEach((V) => V.delete(O));
|
|
186
189
|
}
|
|
187
|
-
O
|
|
190
|
+
C(O);
|
|
188
191
|
}
|
|
189
192
|
});
|
|
190
193
|
};
|
|
191
|
-
|
|
192
|
-
}, F = (
|
|
194
|
+
C(f);
|
|
195
|
+
}, F = (f, ...m) => {
|
|
193
196
|
let g = !0;
|
|
194
|
-
const h = (b) =>
|
|
195
|
-
let
|
|
196
|
-
if (b ===
|
|
197
|
-
if (
|
|
197
|
+
const h = (b) => re(p(b)), N = (b, ...O) => {
|
|
198
|
+
let T;
|
|
199
|
+
if (b === f) {
|
|
200
|
+
if (!be(b))
|
|
198
201
|
throw new Error("atom not writable");
|
|
199
|
-
const
|
|
200
|
-
|
|
202
|
+
const R = s(b), D = l(b, O[0]);
|
|
203
|
+
J(R, D) || y(b);
|
|
201
204
|
} else
|
|
202
|
-
|
|
205
|
+
T = F(b, ...O);
|
|
203
206
|
if (!g) {
|
|
204
|
-
const
|
|
207
|
+
const R = P();
|
|
208
|
+
(_ ? "production" : void 0) !== "production" && i.forEach(
|
|
209
|
+
(D) => D({ type: "async-write", flushed: R })
|
|
210
|
+
);
|
|
205
211
|
}
|
|
206
|
-
return
|
|
207
|
-
},
|
|
208
|
-
return g = !1,
|
|
209
|
-
},
|
|
210
|
-
const g = F(
|
|
211
|
-
return
|
|
212
|
-
|
|
212
|
+
return T;
|
|
213
|
+
}, C = f.write(h, N, ...m);
|
|
214
|
+
return g = !1, C;
|
|
215
|
+
}, w = (f, ...m) => {
|
|
216
|
+
const g = F(f, ...m), h = P();
|
|
217
|
+
return (_ ? "production" : void 0) !== "production" && i.forEach(
|
|
218
|
+
(N) => N({ type: "write", flushed: h })
|
|
219
|
+
), g;
|
|
220
|
+
}, L = (f, m, g) => {
|
|
213
221
|
var h;
|
|
214
222
|
const N = g || [];
|
|
215
|
-
(h = s(
|
|
216
|
-
const
|
|
217
|
-
|
|
218
|
-
}), f
|
|
219
|
-
const
|
|
223
|
+
(h = s(f)) == null || h.d.forEach((b, O) => {
|
|
224
|
+
const T = e.get(O);
|
|
225
|
+
T ? T.t.add(f) : O !== f && L(O, f, N);
|
|
226
|
+
}), p(f);
|
|
227
|
+
const C = {
|
|
220
228
|
t: new Set(m && [m]),
|
|
221
229
|
l: /* @__PURE__ */ new Set()
|
|
222
230
|
};
|
|
223
|
-
if (e.set(
|
|
224
|
-
const { onMount: b } =
|
|
231
|
+
if (e.set(f, C), (_ ? "production" : void 0) !== "production" && a.add(f), Fe(f) && f.onMount) {
|
|
232
|
+
const { onMount: b } = f;
|
|
225
233
|
N.push(() => {
|
|
226
|
-
const
|
|
227
|
-
|
|
234
|
+
const O = b((...T) => w(f, ...T));
|
|
235
|
+
O && (C.u = O);
|
|
228
236
|
});
|
|
229
237
|
}
|
|
230
|
-
return g || N.forEach((b) => b()),
|
|
231
|
-
},
|
|
238
|
+
return g || N.forEach((b) => b()), C;
|
|
239
|
+
}, E = (f) => {
|
|
232
240
|
var m;
|
|
233
|
-
const g = (m = e.get(
|
|
234
|
-
g && g(), e.delete(
|
|
235
|
-
const h = s(
|
|
236
|
-
h
|
|
237
|
-
if (
|
|
238
|
-
const b = e.get(
|
|
239
|
-
b && (b.t.delete(
|
|
241
|
+
const g = (m = e.get(f)) == null ? void 0 : m.u;
|
|
242
|
+
g && g(), e.delete(f), (_ ? "production" : void 0) !== "production" && a.delete(f);
|
|
243
|
+
const h = s(f);
|
|
244
|
+
h ? (B(h) && We(h.v), h.d.forEach((N, C) => {
|
|
245
|
+
if (C !== f) {
|
|
246
|
+
const b = e.get(C);
|
|
247
|
+
b && (b.t.delete(f), S(C, b) && E(C));
|
|
240
248
|
}
|
|
241
|
-
}));
|
|
242
|
-
},
|
|
249
|
+
})) : (_ ? "production" : void 0) !== "production" && console.warn("[Bug] could not find atom state to unmount", f);
|
|
250
|
+
}, I = (f, m, g) => {
|
|
243
251
|
const h = new Set(m.d.keys());
|
|
244
|
-
g == null || g.forEach((N,
|
|
245
|
-
if (h.has(
|
|
246
|
-
h.delete(
|
|
252
|
+
g == null || g.forEach((N, C) => {
|
|
253
|
+
if (h.has(C)) {
|
|
254
|
+
h.delete(C);
|
|
247
255
|
return;
|
|
248
256
|
}
|
|
249
|
-
const b = e.get(
|
|
250
|
-
b && (b.t.delete(
|
|
257
|
+
const b = e.get(C);
|
|
258
|
+
b && (b.t.delete(f), S(C, b) && E(C));
|
|
251
259
|
}), h.forEach((N) => {
|
|
252
|
-
const
|
|
253
|
-
|
|
260
|
+
const C = e.get(N);
|
|
261
|
+
C ? C.t.add(f) : e.has(f) && L(N, f);
|
|
254
262
|
});
|
|
255
|
-
},
|
|
256
|
-
let
|
|
257
|
-
for (; t.size; ) {
|
|
263
|
+
}, P = () => {
|
|
264
|
+
let f;
|
|
265
|
+
for ((_ ? "production" : void 0) !== "production" && (f = /* @__PURE__ */ new Set()); t.size; ) {
|
|
258
266
|
const m = Array.from(t);
|
|
259
267
|
t.clear(), m.forEach(([g, h]) => {
|
|
260
268
|
const N = s(g);
|
|
261
269
|
if (N) {
|
|
262
|
-
const
|
|
263
|
-
|
|
270
|
+
const C = e.get(g);
|
|
271
|
+
C && N.d !== (h == null ? void 0 : h.d) && I(g, N, h == null ? void 0 : h.d), C && !// TODO This seems pretty hacky. Hope to fix it.
|
|
264
272
|
// Maybe we could `mountDependencies` in `setAtomState`?
|
|
265
|
-
(!
|
|
266
|
-
}
|
|
273
|
+
(!B(h) && (J(h, N) || He(h, N))) && (C.l.forEach((b) => b()), (_ ? "production" : void 0) !== "production" && f.add(g));
|
|
274
|
+
} else
|
|
275
|
+
(_ ? "production" : void 0) !== "production" && console.warn("[Bug] no atom state to flush");
|
|
267
276
|
});
|
|
268
277
|
}
|
|
278
|
+
if ((_ ? "production" : void 0) !== "production")
|
|
279
|
+
return f;
|
|
280
|
+
}, A = (f, m) => {
|
|
281
|
+
const g = v(f), h = P(), N = g.l;
|
|
282
|
+
return N.add(m), (_ ? "production" : void 0) !== "production" && i.forEach(
|
|
283
|
+
(C) => C({ type: "sub", flushed: h })
|
|
284
|
+
), () => {
|
|
285
|
+
N.delete(m), k(f), (_ ? "production" : void 0) !== "production" && i.forEach((C) => C({ type: "unsub" }));
|
|
286
|
+
};
|
|
269
287
|
};
|
|
270
|
-
return {
|
|
288
|
+
return (_ ? "production" : void 0) !== "production" ? {
|
|
271
289
|
get: c,
|
|
272
|
-
set:
|
|
273
|
-
sub:
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
290
|
+
set: w,
|
|
291
|
+
sub: A,
|
|
292
|
+
// store dev methods (these are tentative and subject to change without notice)
|
|
293
|
+
dev_subscribe_store: (f, m) => {
|
|
294
|
+
if (m !== 2)
|
|
295
|
+
throw new Error("The current StoreListener revision is 2.");
|
|
296
|
+
return i.add(f), () => {
|
|
297
|
+
i.delete(f);
|
|
277
298
|
};
|
|
299
|
+
},
|
|
300
|
+
dev_get_mounted_atoms: () => a.values(),
|
|
301
|
+
dev_get_atom_state: (f) => n.get(f),
|
|
302
|
+
dev_get_mounted: (f) => e.get(f),
|
|
303
|
+
dev_restore_atoms: (f) => {
|
|
304
|
+
for (const [g, h] of f)
|
|
305
|
+
be(g) && (l(g, h), y(g));
|
|
306
|
+
const m = P();
|
|
307
|
+
i.forEach(
|
|
308
|
+
(g) => g({ type: "restore", flushed: m })
|
|
309
|
+
);
|
|
278
310
|
}
|
|
311
|
+
} : {
|
|
312
|
+
get: c,
|
|
313
|
+
set: w,
|
|
314
|
+
sub: A
|
|
279
315
|
};
|
|
280
316
|
};
|
|
281
|
-
let
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
317
|
+
let we;
|
|
318
|
+
(_ ? "production" : void 0) !== "production" && (typeof globalThis.__NUMBER_OF_JOTAI_INSTANCES__ == "number" ? ++globalThis.__NUMBER_OF_JOTAI_INSTANCES__ : globalThis.__NUMBER_OF_JOTAI_INSTANCES__ = 1);
|
|
319
|
+
const fn = () => (we || ((_ ? "production" : void 0) !== "production" && globalThis.__NUMBER_OF_JOTAI_INSTANCES__ !== 1 && console.warn(
|
|
320
|
+
"Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"
|
|
321
|
+
), we = Dt()), we);
|
|
322
|
+
var pn = { NZ_AWS_REGION: "us-east-1", NZ_VTEX_PROJECT: "/Users/jbermudez/TODO/PROJECTS/live-shopping", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
|
|
323
|
+
const hn = Ot(void 0), Lt = (n) => {
|
|
324
|
+
const e = Pe(hn);
|
|
325
|
+
return (n == null ? void 0 : n.store) || e || fn();
|
|
326
|
+
}, gn = (n) => typeof (n == null ? void 0 : n.then) == "function", kn = Ae.use || ((n) => {
|
|
286
327
|
if (n.status === "pending")
|
|
287
328
|
throw n;
|
|
288
329
|
if (n.status === "fulfilled")
|
|
@@ -296,8 +337,8 @@ const un = () => (ve || (ve = Rt()), ve), cn = Et(void 0), Ct = (n) => {
|
|
|
296
337
|
}
|
|
297
338
|
), n);
|
|
298
339
|
});
|
|
299
|
-
function
|
|
300
|
-
const t =
|
|
340
|
+
function vn(n, e) {
|
|
341
|
+
const t = Lt(e), [[i, a, s], r] = rn(
|
|
301
342
|
(l) => {
|
|
302
343
|
const u = t.get(n);
|
|
303
344
|
return Object.is(l[0], u) && l[1] === t && l[2] === n ? l : [u, t, n];
|
|
@@ -308,7 +349,7 @@ function pn(n, e) {
|
|
|
308
349
|
let o = i;
|
|
309
350
|
(a !== t || s !== n) && (r(), o = t.get(n));
|
|
310
351
|
const d = e == null ? void 0 : e.delay;
|
|
311
|
-
return
|
|
352
|
+
return Se(() => {
|
|
312
353
|
const l = t.sub(n, () => {
|
|
313
354
|
if (typeof d == "number") {
|
|
314
355
|
setTimeout(r, d);
|
|
@@ -317,32 +358,37 @@ function pn(n, e) {
|
|
|
317
358
|
r();
|
|
318
359
|
});
|
|
319
360
|
return r(), l;
|
|
320
|
-
}, [t, n, d]),
|
|
361
|
+
}, [t, n, d]), Rt(o), gn(o) ? kn(o) : o;
|
|
321
362
|
}
|
|
322
|
-
function
|
|
323
|
-
const t =
|
|
324
|
-
return
|
|
325
|
-
(...a) =>
|
|
363
|
+
function Sn(n, e) {
|
|
364
|
+
const t = Lt(e);
|
|
365
|
+
return xt(
|
|
366
|
+
(...a) => {
|
|
367
|
+
if ((pn ? "production" : void 0) !== "production" && !("write" in n))
|
|
368
|
+
throw new Error("not writable atom");
|
|
369
|
+
return t.set(n, ...a);
|
|
370
|
+
},
|
|
326
371
|
[t, n]
|
|
327
372
|
);
|
|
328
373
|
}
|
|
329
|
-
function
|
|
374
|
+
function yn(n, e) {
|
|
330
375
|
return [
|
|
331
|
-
|
|
376
|
+
vn(n, e),
|
|
332
377
|
// We do wrong type assertion here, which results in throwing an error.
|
|
333
|
-
|
|
378
|
+
Sn(n, e)
|
|
334
379
|
];
|
|
335
380
|
}
|
|
336
|
-
const
|
|
337
|
-
|
|
381
|
+
const Ve = dn(null);
|
|
382
|
+
Ve.debugLabel = "accountAtom";
|
|
383
|
+
var Nn = { NZ_AWS_REGION: "us-east-1", NZ_VTEX_PROJECT: "/Users/jbermudez/TODO/PROJECTS/live-shopping", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
|
|
338
384
|
const {
|
|
339
|
-
NZ_AWS_REGION:
|
|
340
|
-
NZ_BACKOFFICE_BACK_URL:
|
|
341
|
-
NZ_CORE_SERVICES_GRAPHQL_URL:
|
|
342
|
-
NZ_CORE_SERVICES_REST_URL:
|
|
343
|
-
} =
|
|
385
|
+
NZ_AWS_REGION: bn,
|
|
386
|
+
NZ_BACKOFFICE_BACK_URL: Fn,
|
|
387
|
+
NZ_CORE_SERVICES_GRAPHQL_URL: wn,
|
|
388
|
+
NZ_CORE_SERVICES_REST_URL: Cn
|
|
389
|
+
} = Nn, En = {
|
|
344
390
|
AWS: {
|
|
345
|
-
region:
|
|
391
|
+
region: bn,
|
|
346
392
|
cognito: {
|
|
347
393
|
userPoolId: "us-east-1_knSlGEmJ0",
|
|
348
394
|
userPoolWebClientId: "3hmbfhf7nl3kq20qr9i5lihf1p"
|
|
@@ -350,9 +396,9 @@ const {
|
|
|
350
396
|
},
|
|
351
397
|
// Back services
|
|
352
398
|
apiUrls: {
|
|
353
|
-
restV1:
|
|
354
|
-
restV2:
|
|
355
|
-
graphql:
|
|
399
|
+
restV1: Fn || "https://pabprg32bj.execute-api.us-east-1.amazonaws.com",
|
|
400
|
+
restV2: Cn || "https://core-services-dev.nizza.com/api",
|
|
401
|
+
graphql: wn || "https://core-services-dev.nizza.com/graphql",
|
|
356
402
|
corsProxy: "https://1qmd8jteh1.execute-api.us-east-1.amazonaws.com"
|
|
357
403
|
},
|
|
358
404
|
publicUrls: {
|
|
@@ -366,7 +412,7 @@ const {
|
|
|
366
412
|
wssIVSChat: "wss://edge.ivschat.us-east-1.amazonaws.com"
|
|
367
413
|
}
|
|
368
414
|
};
|
|
369
|
-
async function
|
|
415
|
+
async function It(n) {
|
|
370
416
|
const {
|
|
371
417
|
url: e,
|
|
372
418
|
method: t = "GET",
|
|
@@ -380,7 +426,7 @@ async function Tt(n) {
|
|
|
380
426
|
}) : n.headers;
|
|
381
427
|
try {
|
|
382
428
|
const l = new AbortController(), { signal: u } = l;
|
|
383
|
-
let
|
|
429
|
+
let p;
|
|
384
430
|
const c = fetch(e, {
|
|
385
431
|
method: t,
|
|
386
432
|
headers: d,
|
|
@@ -388,27 +434,27 @@ async function Tt(n) {
|
|
|
388
434
|
signal: u,
|
|
389
435
|
...o
|
|
390
436
|
});
|
|
391
|
-
r && (
|
|
437
|
+
r && (p = setTimeout(() => {
|
|
392
438
|
l.abort();
|
|
393
439
|
}, r));
|
|
394
|
-
const
|
|
440
|
+
const v = await c;
|
|
395
441
|
if (a)
|
|
396
|
-
return
|
|
397
|
-
const
|
|
398
|
-
if (clearTimeout(
|
|
399
|
-
const k =
|
|
442
|
+
return v;
|
|
443
|
+
const S = await v.json();
|
|
444
|
+
if (clearTimeout(p), !v.ok) {
|
|
445
|
+
const k = S ? JSON.stringify(S) : v.statusText;
|
|
400
446
|
throw new Error(k);
|
|
401
447
|
}
|
|
402
|
-
return
|
|
448
|
+
return S;
|
|
403
449
|
} catch (l) {
|
|
404
450
|
throw console.error("[CustomFetch] ", l), l;
|
|
405
451
|
}
|
|
406
452
|
}
|
|
407
|
-
const
|
|
408
|
-
function
|
|
409
|
-
fetch(e).then((i) => i.blob()).then((i) =>
|
|
453
|
+
const Us = (n) => It({ ...n, contentTypeJson: !1, raw: !1 });
|
|
454
|
+
function Ms(n, e, t) {
|
|
455
|
+
fetch(e).then((i) => i.blob()).then((i) => On(i, `${n}.${t}`));
|
|
410
456
|
}
|
|
411
|
-
const
|
|
457
|
+
const On = (n, e, t) => {
|
|
412
458
|
const i = [n], a = new Blob(i, {
|
|
413
459
|
type: t != null ? t : "application/octet-stream"
|
|
414
460
|
});
|
|
@@ -418,47 +464,47 @@ const bn = (n, e, t) => {
|
|
|
418
464
|
return r.style.display = "none", r.href = s, r.setAttribute("download", e), typeof r.download == "undefined" && r.setAttribute("target", "_blank"), document.body.appendChild(r), r.click(), setTimeout(() => {
|
|
419
465
|
document.body.removeChild(r), window.URL.revokeObjectURL(s);
|
|
420
466
|
}, 200);
|
|
421
|
-
},
|
|
422
|
-
let
|
|
423
|
-
const
|
|
467
|
+
}, Rn = Symbol(), _e = Symbol(), q = "a", ne = "w";
|
|
468
|
+
let xn = (n, e) => new Proxy(n, e);
|
|
469
|
+
const xe = Object.getPrototypeOf, Te = /* @__PURE__ */ new WeakMap(), At = (n) => n && (Te.has(n) ? Te.get(n) : xe(n) === Object.prototype || xe(n) === Array.prototype), ce = (n) => typeof n == "object" && n !== null, Tn = (n) => {
|
|
424
470
|
if (Array.isArray(n))
|
|
425
471
|
return Array.from(n);
|
|
426
472
|
const e = Object.getOwnPropertyDescriptors(n);
|
|
427
473
|
return Object.values(e).forEach((t) => {
|
|
428
474
|
t.configurable = !0;
|
|
429
|
-
}), Object.create(
|
|
430
|
-
},
|
|
431
|
-
if (!
|
|
475
|
+
}), Object.create(xe(n), e);
|
|
476
|
+
}, Ue = (n) => n[_e] || n, Pt = (n, e, t, i) => {
|
|
477
|
+
if (!At(n))
|
|
432
478
|
return n;
|
|
433
479
|
let a = i && i.get(n);
|
|
434
480
|
if (!a) {
|
|
435
|
-
const d =
|
|
436
|
-
a = ((l) => Object.values(Object.getOwnPropertyDescriptors(l)).some((u) => !u.configurable && !u.writable))(d) ? [d,
|
|
481
|
+
const d = Ue(n);
|
|
482
|
+
a = ((l) => Object.values(Object.getOwnPropertyDescriptors(l)).some((u) => !u.configurable && !u.writable))(d) ? [d, Tn(d)] : [d], i == null || i.set(n, a);
|
|
437
483
|
}
|
|
438
484
|
const [s, r] = a;
|
|
439
485
|
let o = t && t.get(s);
|
|
440
486
|
return o && o[1].f === !!r || (o = ((d, l) => {
|
|
441
487
|
const u = { f: l };
|
|
442
|
-
let
|
|
443
|
-
const c = (
|
|
444
|
-
if (!
|
|
445
|
-
let
|
|
446
|
-
if (
|
|
447
|
-
|
|
488
|
+
let p = !1;
|
|
489
|
+
const c = (S, k) => {
|
|
490
|
+
if (!p) {
|
|
491
|
+
let y = u[q].get(d);
|
|
492
|
+
if (y || (y = {}, u[q].set(d, y)), S === ne)
|
|
493
|
+
y[ne] = !0;
|
|
448
494
|
else {
|
|
449
|
-
let F = S
|
|
450
|
-
F || (F = /* @__PURE__ */ new Set(), S
|
|
495
|
+
let F = y[S];
|
|
496
|
+
F || (F = /* @__PURE__ */ new Set(), y[S] = F), F.add(k);
|
|
451
497
|
}
|
|
452
498
|
}
|
|
453
|
-
},
|
|
454
|
-
return l && (
|
|
455
|
-
})(s, !!r), o[1].p =
|
|
456
|
-
},
|
|
499
|
+
}, v = { get: (S, k) => k === _e ? d : (c("k", k), Pt(Reflect.get(S, k), u[q], u.c, u.t)), has: (S, k) => k === Rn ? (p = !0, u[q].delete(d), !0) : (c("h", k), Reflect.has(S, k)), getOwnPropertyDescriptor: (S, k) => (c("o", k), Reflect.getOwnPropertyDescriptor(S, k)), ownKeys: (S) => (c(ne), Reflect.ownKeys(S)) };
|
|
500
|
+
return l && (v.set = v.deleteProperty = () => !1), [v, u];
|
|
501
|
+
})(s, !!r), o[1].p = xn(r || s, o[0]), t && t.set(s, o)), o[1][q] = e, o[1].c = t, o[1].t = i, o[1].p;
|
|
502
|
+
}, Vt = (n, e, t, i) => {
|
|
457
503
|
if (Object.is(n, e))
|
|
458
504
|
return !1;
|
|
459
|
-
if (!
|
|
505
|
+
if (!ce(n) || !ce(e))
|
|
460
506
|
return !0;
|
|
461
|
-
const a = t.get(
|
|
507
|
+
const a = t.get(Ue(n));
|
|
462
508
|
if (!a)
|
|
463
509
|
return !0;
|
|
464
510
|
if (i) {
|
|
@@ -472,10 +518,10 @@ const be = Object.getPrototypeOf, Fe = /* @__PURE__ */ new WeakMap(), Dt = (n) =
|
|
|
472
518
|
for (const r of a.h || [])
|
|
473
519
|
if (s = Reflect.has(n, r) !== Reflect.has(e, r), s)
|
|
474
520
|
return s;
|
|
475
|
-
if (a[
|
|
521
|
+
if (a[ne] === !0) {
|
|
476
522
|
if (s = ((r, o) => {
|
|
477
523
|
const d = Reflect.ownKeys(r), l = Reflect.ownKeys(o);
|
|
478
|
-
return d.length !== l.length || d.some((u,
|
|
524
|
+
return d.length !== l.length || d.some((u, p) => u !== l[p]);
|
|
479
525
|
})(n, e), s)
|
|
480
526
|
return s;
|
|
481
527
|
} else
|
|
@@ -483,16 +529,45 @@ const be = Object.getPrototypeOf, Fe = /* @__PURE__ */ new WeakMap(), Dt = (n) =
|
|
|
483
529
|
if (s = !!Reflect.getOwnPropertyDescriptor(n, r) != !!Reflect.getOwnPropertyDescriptor(e, r), s)
|
|
484
530
|
return s;
|
|
485
531
|
for (const r of a.k || [])
|
|
486
|
-
if (s =
|
|
532
|
+
if (s = Vt(n[r], e[r], t, i), s)
|
|
487
533
|
return s;
|
|
488
534
|
return s === null && (s = !0), s;
|
|
489
535
|
} finally {
|
|
490
536
|
i && i.set(n, { n: e, g: s });
|
|
491
537
|
}
|
|
492
|
-
},
|
|
493
|
-
|
|
538
|
+
}, Dn = (n) => At(n) && n[_e] || null, Ze = (n, e = !0) => {
|
|
539
|
+
Te.set(n, e);
|
|
540
|
+
}, Ln = (n, e, t) => {
|
|
541
|
+
const i = [], a = /* @__PURE__ */ new WeakSet(), s = (r, o) => {
|
|
542
|
+
if (a.has(r))
|
|
543
|
+
return;
|
|
544
|
+
ce(r) && a.add(r);
|
|
545
|
+
const d = ce(r) && e.get(Ue(r));
|
|
546
|
+
if (d) {
|
|
547
|
+
var l, u;
|
|
548
|
+
if ((l = d.h) == null || l.forEach((c) => {
|
|
549
|
+
const v = `:has(${String(c)})`;
|
|
550
|
+
i.push(o ? [...o, v] : [v]);
|
|
551
|
+
}), d[ne] === !0) {
|
|
552
|
+
const c = ":ownKeys";
|
|
553
|
+
i.push(o ? [...o, c] : [c]);
|
|
554
|
+
} else {
|
|
555
|
+
var p;
|
|
556
|
+
(p = d.o) == null || p.forEach((c) => {
|
|
557
|
+
const v = `:hasOwn(${String(c)})`;
|
|
558
|
+
i.push(o ? [...o, v] : [v]);
|
|
559
|
+
});
|
|
560
|
+
}
|
|
561
|
+
(u = d.k) == null || u.forEach((c) => {
|
|
562
|
+
t && !("value" in (Object.getOwnPropertyDescriptor(r, c) || {})) || s(r[c], o ? [...o, c] : [c]);
|
|
563
|
+
});
|
|
564
|
+
} else
|
|
565
|
+
o && i.push(o);
|
|
566
|
+
};
|
|
567
|
+
return s(n), i;
|
|
494
568
|
};
|
|
495
|
-
|
|
569
|
+
var me = { NZ_AWS_REGION: "us-east-1", NZ_VTEX_PROJECT: "/Users/jbermudez/TODO/PROJECTS/live-shopping", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
|
|
570
|
+
const Ce = (n) => typeof n == "object" && n !== null, $ = /* @__PURE__ */ new WeakMap(), Y = /* @__PURE__ */ new WeakSet(), In = (n = Object.is, e = (l, u) => new Proxy(l, u), t = (l) => Ce(l) && !Y.has(l) && (Array.isArray(l) || !(Symbol.iterator in l)) && !(l instanceof WeakMap) && !(l instanceof WeakSet) && !(l instanceof Error) && !(l instanceof Number) && !(l instanceof Date) && !(l instanceof String) && !(l instanceof RegExp) && !(l instanceof ArrayBuffer), i = (l) => {
|
|
496
571
|
switch (l.status) {
|
|
497
572
|
case "fulfilled":
|
|
498
573
|
return l.value;
|
|
@@ -501,60 +576,62 @@ const Se = (n) => typeof n == "object" && n !== null, j = /* @__PURE__ */ new We
|
|
|
501
576
|
default:
|
|
502
577
|
throw l;
|
|
503
578
|
}
|
|
504
|
-
}, a = /* @__PURE__ */ new WeakMap(), s = (l, u,
|
|
579
|
+
}, a = /* @__PURE__ */ new WeakMap(), s = (l, u, p = i) => {
|
|
505
580
|
const c = a.get(l);
|
|
506
581
|
if ((c == null ? void 0 : c[0]) === u)
|
|
507
582
|
return c[1];
|
|
508
|
-
const
|
|
509
|
-
return
|
|
510
|
-
if (Object.getOwnPropertyDescriptor(
|
|
583
|
+
const v = Array.isArray(l) ? [] : Object.create(Object.getPrototypeOf(l));
|
|
584
|
+
return Ze(v, !0), a.set(l, [u, v]), Reflect.ownKeys(l).forEach((S) => {
|
|
585
|
+
if (Object.getOwnPropertyDescriptor(v, S))
|
|
511
586
|
return;
|
|
512
|
-
const k = Reflect.get(l,
|
|
587
|
+
const k = Reflect.get(l, S), { enumerable: y } = Reflect.getOwnPropertyDescriptor(
|
|
513
588
|
l,
|
|
514
|
-
|
|
589
|
+
S
|
|
515
590
|
), F = {
|
|
516
591
|
value: k,
|
|
517
|
-
enumerable:
|
|
592
|
+
enumerable: y,
|
|
518
593
|
// This is intentional to avoid copying with proxy-compare.
|
|
519
594
|
// It's still non-writable, so it avoids assigning a value.
|
|
520
595
|
configurable: !0
|
|
521
596
|
};
|
|
522
597
|
if (Y.has(k))
|
|
523
|
-
|
|
598
|
+
Ze(k, !1);
|
|
524
599
|
else if (k instanceof Promise)
|
|
525
|
-
delete F.value, F.get = () =>
|
|
526
|
-
else if (
|
|
527
|
-
const [
|
|
600
|
+
delete F.value, F.get = () => p(k);
|
|
601
|
+
else if ($.has(k)) {
|
|
602
|
+
const [w, L] = $.get(
|
|
528
603
|
k
|
|
529
604
|
);
|
|
530
605
|
F.value = s(
|
|
531
|
-
|
|
606
|
+
w,
|
|
532
607
|
L(),
|
|
533
|
-
|
|
608
|
+
p
|
|
534
609
|
);
|
|
535
610
|
}
|
|
536
|
-
Object.defineProperty(
|
|
537
|
-
}), Object.preventExtensions(
|
|
611
|
+
Object.defineProperty(v, S, F);
|
|
612
|
+
}), Object.preventExtensions(v);
|
|
538
613
|
}, r = /* @__PURE__ */ new WeakMap(), o = [1, 1], d = (l) => {
|
|
539
|
-
if (!
|
|
614
|
+
if (!Ce(l))
|
|
540
615
|
throw new Error("object required");
|
|
541
616
|
const u = r.get(l);
|
|
542
617
|
if (u)
|
|
543
618
|
return u;
|
|
544
|
-
let
|
|
545
|
-
const c = /* @__PURE__ */ new Set(),
|
|
546
|
-
|
|
619
|
+
let p = o[0];
|
|
620
|
+
const c = /* @__PURE__ */ new Set(), v = (m, g = ++o[0]) => {
|
|
621
|
+
p !== g && (p = g, c.forEach((h) => h(m, g)));
|
|
547
622
|
};
|
|
548
|
-
let
|
|
549
|
-
const k = (m = ++o[1]) => (
|
|
623
|
+
let S = o[1];
|
|
624
|
+
const k = (m = ++o[1]) => (S !== m && !c.size && (S = m, F.forEach(([g]) => {
|
|
550
625
|
const h = g[1](m);
|
|
551
|
-
h >
|
|
552
|
-
})),
|
|
626
|
+
h > p && (p = h);
|
|
627
|
+
})), p), y = (m) => (g, h) => {
|
|
553
628
|
const N = [...g];
|
|
554
|
-
N[1] = [m, ...N[1]],
|
|
555
|
-
}, F = /* @__PURE__ */ new Map(),
|
|
629
|
+
N[1] = [m, ...N[1]], v(N, h);
|
|
630
|
+
}, F = /* @__PURE__ */ new Map(), w = (m, g) => {
|
|
631
|
+
if ((me ? "production" : void 0) !== "production" && F.has(m))
|
|
632
|
+
throw new Error("prop listener already exists");
|
|
556
633
|
if (c.size) {
|
|
557
|
-
const h = g[3](
|
|
634
|
+
const h = g[3](y(m));
|
|
558
635
|
F.set(m, [g, h]);
|
|
559
636
|
} else
|
|
560
637
|
F.set(m, [g]);
|
|
@@ -562,59 +639,61 @@ const Se = (n) => typeof n == "object" && n !== null, j = /* @__PURE__ */ new We
|
|
|
562
639
|
var g;
|
|
563
640
|
const h = F.get(m);
|
|
564
641
|
h && (F.delete(m), (g = h[1]) == null || g.call(h));
|
|
565
|
-
},
|
|
566
|
-
|
|
567
|
-
|
|
642
|
+
}, E = (m) => (c.add(m), c.size === 1 && F.forEach(([h, N], C) => {
|
|
643
|
+
if ((me ? "production" : void 0) !== "production" && N)
|
|
644
|
+
throw new Error("remove already exists");
|
|
645
|
+
const b = h[3](y(C));
|
|
646
|
+
F.set(C, [h, b]);
|
|
568
647
|
}), () => {
|
|
569
|
-
c.delete(m), c.size === 0 && F.forEach(([h, N],
|
|
570
|
-
N && (N(), F.set(
|
|
648
|
+
c.delete(m), c.size === 0 && F.forEach(([h, N], C) => {
|
|
649
|
+
N && (N(), F.set(C, [h]));
|
|
571
650
|
});
|
|
572
|
-
}),
|
|
651
|
+
}), I = Array.isArray(l) ? [] : Object.create(Object.getPrototypeOf(l)), A = e(I, {
|
|
573
652
|
deleteProperty(m, g) {
|
|
574
653
|
const h = Reflect.get(m, g);
|
|
575
654
|
L(g);
|
|
576
655
|
const N = Reflect.deleteProperty(m, g);
|
|
577
|
-
return N &&
|
|
656
|
+
return N && v(["delete", [g], h]), N;
|
|
578
657
|
},
|
|
579
658
|
set(m, g, h, N) {
|
|
580
|
-
const
|
|
581
|
-
if (
|
|
659
|
+
const C = Reflect.has(m, g), b = Reflect.get(m, g, N);
|
|
660
|
+
if (C && (n(b, h) || r.has(h) && n(b, r.get(h))))
|
|
582
661
|
return !0;
|
|
583
|
-
L(g),
|
|
584
|
-
let
|
|
662
|
+
L(g), Ce(h) && (h = Dn(h) || h);
|
|
663
|
+
let O = h;
|
|
585
664
|
if (h instanceof Promise)
|
|
586
|
-
h.then((
|
|
587
|
-
h.status = "fulfilled", h.value =
|
|
588
|
-
}).catch((
|
|
589
|
-
h.status = "rejected", h.reason =
|
|
665
|
+
h.then((T) => {
|
|
666
|
+
h.status = "fulfilled", h.value = T, v(["resolve", [g], T]);
|
|
667
|
+
}).catch((T) => {
|
|
668
|
+
h.status = "rejected", h.reason = T, v(["reject", [g], T]);
|
|
590
669
|
});
|
|
591
670
|
else {
|
|
592
|
-
|
|
593
|
-
const
|
|
594
|
-
|
|
671
|
+
!$.has(h) && t(h) && (O = d(h));
|
|
672
|
+
const T = !Y.has(O) && $.get(O);
|
|
673
|
+
T && w(g, T);
|
|
595
674
|
}
|
|
596
|
-
return Reflect.set(m, g,
|
|
675
|
+
return Reflect.set(m, g, O, N), v(["set", [g], h, b]), !0;
|
|
597
676
|
}
|
|
598
677
|
});
|
|
599
|
-
r.set(l,
|
|
600
|
-
const
|
|
601
|
-
|
|
678
|
+
r.set(l, A);
|
|
679
|
+
const f = [
|
|
680
|
+
I,
|
|
602
681
|
k,
|
|
603
682
|
s,
|
|
604
|
-
|
|
683
|
+
E
|
|
605
684
|
];
|
|
606
|
-
return
|
|
685
|
+
return $.set(A, f), Reflect.ownKeys(l).forEach((m) => {
|
|
607
686
|
const g = Object.getOwnPropertyDescriptor(
|
|
608
687
|
l,
|
|
609
688
|
m
|
|
610
689
|
);
|
|
611
|
-
"value" in g && (
|
|
612
|
-
}),
|
|
690
|
+
"value" in g && (A[m] = l[m], delete g.value, delete g.writable), Object.defineProperty(I, m, g);
|
|
691
|
+
}), A;
|
|
613
692
|
}) => [
|
|
614
693
|
// public functions
|
|
615
694
|
d,
|
|
616
695
|
// shared state
|
|
617
|
-
|
|
696
|
+
$,
|
|
618
697
|
Y,
|
|
619
698
|
// internal things
|
|
620
699
|
n,
|
|
@@ -625,12 +704,13 @@ const Se = (n) => typeof n == "object" && n !== null, j = /* @__PURE__ */ new We
|
|
|
625
704
|
s,
|
|
626
705
|
r,
|
|
627
706
|
o
|
|
628
|
-
], [
|
|
629
|
-
function
|
|
630
|
-
return
|
|
707
|
+
], [An] = In();
|
|
708
|
+
function Pn(n = {}) {
|
|
709
|
+
return An(n);
|
|
631
710
|
}
|
|
632
|
-
function
|
|
633
|
-
const i =
|
|
711
|
+
function Vn(n, e, t) {
|
|
712
|
+
const i = $.get(n);
|
|
713
|
+
(me ? "production" : void 0) !== "production" && !i && console.warn("Please use proxy object");
|
|
634
714
|
let a;
|
|
635
715
|
const s = [], r = i[3];
|
|
636
716
|
let o = !1;
|
|
@@ -647,18 +727,20 @@ function Dn(n, e, t) {
|
|
|
647
727
|
o = !1, l();
|
|
648
728
|
};
|
|
649
729
|
}
|
|
650
|
-
function
|
|
651
|
-
const t =
|
|
730
|
+
function Xe(n, e) {
|
|
731
|
+
const t = $.get(n);
|
|
732
|
+
(me ? "production" : void 0) !== "production" && !t && console.warn("Please use proxy object");
|
|
733
|
+
const [i, a, s] = t;
|
|
652
734
|
return s(i, a(), e);
|
|
653
735
|
}
|
|
654
|
-
function
|
|
736
|
+
function _t(n) {
|
|
655
737
|
return Y.add(n), n;
|
|
656
738
|
}
|
|
657
|
-
var
|
|
658
|
-
function
|
|
739
|
+
var Ut = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
|
|
740
|
+
function Me(n) {
|
|
659
741
|
return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
|
|
660
742
|
}
|
|
661
|
-
var
|
|
743
|
+
var Mt = { exports: {} }, jt = {};
|
|
662
744
|
/**
|
|
663
745
|
* @license React
|
|
664
746
|
* use-sync-external-store-shim.production.min.js
|
|
@@ -668,55 +750,61 @@ var Vt = { exports: {} }, _t = {};
|
|
|
668
750
|
* This source code is licensed under the MIT license found in the
|
|
669
751
|
* LICENSE file in the root directory of this source tree.
|
|
670
752
|
*/
|
|
671
|
-
var
|
|
672
|
-
function
|
|
753
|
+
var W = Ae;
|
|
754
|
+
function _n(n, e) {
|
|
673
755
|
return n === e && (n !== 0 || 1 / n === 1 / e) || n !== n && e !== e;
|
|
674
756
|
}
|
|
675
|
-
var
|
|
676
|
-
function
|
|
677
|
-
var t = e(), i =
|
|
678
|
-
return
|
|
679
|
-
a.value = t, a.getSnapshot = e,
|
|
680
|
-
}, [n, t, e]),
|
|
681
|
-
return
|
|
682
|
-
|
|
757
|
+
var Un = typeof Object.is == "function" ? Object.is : _n, Mn = W.useState, jn = W.useEffect, $n = W.useLayoutEffect, zn = W.useDebugValue;
|
|
758
|
+
function Bn(n, e) {
|
|
759
|
+
var t = e(), i = Mn({ inst: { value: t, getSnapshot: e } }), a = i[0].inst, s = i[1];
|
|
760
|
+
return $n(function() {
|
|
761
|
+
a.value = t, a.getSnapshot = e, Ee(a) && s({ inst: a });
|
|
762
|
+
}, [n, t, e]), jn(function() {
|
|
763
|
+
return Ee(a) && s({ inst: a }), n(function() {
|
|
764
|
+
Ee(a) && s({ inst: a });
|
|
683
765
|
});
|
|
684
|
-
}, [n]),
|
|
766
|
+
}, [n]), zn(t), t;
|
|
685
767
|
}
|
|
686
|
-
function
|
|
768
|
+
function Ee(n) {
|
|
687
769
|
var e = n.getSnapshot;
|
|
688
770
|
n = n.value;
|
|
689
771
|
try {
|
|
690
772
|
var t = e();
|
|
691
|
-
return !
|
|
773
|
+
return !Un(n, t);
|
|
692
774
|
} catch {
|
|
693
775
|
return !0;
|
|
694
776
|
}
|
|
695
777
|
}
|
|
696
|
-
function
|
|
778
|
+
function Qn(n, e) {
|
|
697
779
|
return e();
|
|
698
780
|
}
|
|
699
|
-
var
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
var
|
|
703
|
-
const
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
const t =
|
|
781
|
+
var Kn = typeof window == "undefined" || typeof window.document == "undefined" || typeof window.document.createElement == "undefined" ? Qn : Bn;
|
|
782
|
+
jt.useSyncExternalStore = W.useSyncExternalStore !== void 0 ? W.useSyncExternalStore : Kn;
|
|
783
|
+
Mt.exports = jt;
|
|
784
|
+
var $t = Mt.exports;
|
|
785
|
+
const Gn = /* @__PURE__ */ Me($t);
|
|
786
|
+
var Wn = { NZ_AWS_REGION: "us-east-1", NZ_VTEX_PROJECT: "/Users/jbermudez/TODO/PROJECTS/live-shopping", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
|
|
787
|
+
const { use: Ye } = Ae, { useSyncExternalStore: Jn } = Gn, qn = (n, e) => {
|
|
788
|
+
const t = Re();
|
|
789
|
+
Se(() => {
|
|
790
|
+
t.current = Ln(n, e, !0);
|
|
791
|
+
}), Rt(t.current);
|
|
792
|
+
}, Hn = /* @__PURE__ */ new WeakMap();
|
|
793
|
+
function Zn(n, e) {
|
|
794
|
+
const t = e == null ? void 0 : e.sync, i = Re(), a = Re();
|
|
707
795
|
let s = !0;
|
|
708
|
-
const r =
|
|
709
|
-
|
|
796
|
+
const r = Jn(
|
|
797
|
+
xt(
|
|
710
798
|
(l) => {
|
|
711
|
-
const u =
|
|
799
|
+
const u = Vn(n, l, t);
|
|
712
800
|
return l(), u;
|
|
713
801
|
},
|
|
714
802
|
[n, t]
|
|
715
803
|
),
|
|
716
804
|
() => {
|
|
717
|
-
const l =
|
|
805
|
+
const l = Xe(n, Ye);
|
|
718
806
|
try {
|
|
719
|
-
if (!s && i.current && a.current && !
|
|
807
|
+
if (!s && i.current && a.current && !Vt(
|
|
720
808
|
i.current,
|
|
721
809
|
l,
|
|
722
810
|
a.current,
|
|
@@ -727,26 +815,26 @@ function Bn(n, e) {
|
|
|
727
815
|
}
|
|
728
816
|
return l;
|
|
729
817
|
},
|
|
730
|
-
() =>
|
|
818
|
+
() => Xe(n, Ye)
|
|
731
819
|
);
|
|
732
820
|
s = !1;
|
|
733
821
|
const o = /* @__PURE__ */ new WeakMap();
|
|
734
|
-
|
|
822
|
+
Se(() => {
|
|
735
823
|
i.current = r, a.current = o;
|
|
736
|
-
});
|
|
737
|
-
const d =
|
|
738
|
-
return
|
|
824
|
+
}), (Wn ? "production" : void 0) !== "production" && qn(r, o);
|
|
825
|
+
const d = Tt(() => /* @__PURE__ */ new WeakMap(), []);
|
|
826
|
+
return Pt(
|
|
739
827
|
r,
|
|
740
828
|
o,
|
|
741
829
|
d,
|
|
742
|
-
|
|
830
|
+
Hn
|
|
743
831
|
);
|
|
744
832
|
}
|
|
745
|
-
class
|
|
833
|
+
class Xn {
|
|
746
834
|
constructor() {
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
835
|
+
x(this, "channel");
|
|
836
|
+
x(this, "listeners", /* @__PURE__ */ new Map());
|
|
837
|
+
x(this, "eventQueue", /* @__PURE__ */ new Map());
|
|
750
838
|
try {
|
|
751
839
|
this.channel = new BroadcastChannel("nizza"), this.channel.onmessage = (e) => this.handleMessage(e), this.channel.onmessageerror = (e) => ee.error("NizzaBroadcastChannel:", e);
|
|
752
840
|
} catch (e) {
|
|
@@ -888,21 +976,21 @@ class Gn {
|
|
|
888
976
|
return new RegExp(`^${i}$`).test(t);
|
|
889
977
|
}
|
|
890
978
|
}
|
|
891
|
-
let
|
|
892
|
-
const
|
|
979
|
+
let Yn = (n = 21) => crypto.getRandomValues(new Uint8Array(n)).reduce((e, t) => (t &= 63, t < 36 ? e += t.toString(36) : t < 62 ? e += (t - 26).toString(36).toUpperCase() : t > 62 ? e += "-" : e += "_", e), "");
|
|
980
|
+
const ei = (n = 8) => Yn(n), js = (n) => {
|
|
893
981
|
const e = Object.entries(n).reduce((t, [i, a]) => a !== void 0 ? `${t}${t ? "&" : ""}${i}=${a}` : t, "");
|
|
894
982
|
return e ? `?${e}` : "";
|
|
895
983
|
};
|
|
896
|
-
function
|
|
984
|
+
function $s() {
|
|
897
985
|
const n = new Error().stack.split(`
|
|
898
986
|
`);
|
|
899
987
|
return n.length < 3 ? "" : n[2].trim().substring(3);
|
|
900
988
|
}
|
|
901
|
-
var
|
|
989
|
+
var zt = { exports: {} };
|
|
902
990
|
(function(n) {
|
|
903
991
|
(function(e, t) {
|
|
904
992
|
n.exports ? n.exports = t() : e.log = t();
|
|
905
|
-
})(
|
|
993
|
+
})(Ut, function() {
|
|
906
994
|
var e = function() {
|
|
907
995
|
}, t = "undefined", i = typeof window !== t && typeof window.navigator !== t && /Trident\/|MSIE /.test(window.navigator.userAgent), a = [
|
|
908
996
|
"trace",
|
|
@@ -911,8 +999,8 @@ var Mt = { exports: {} };
|
|
|
911
999
|
"warn",
|
|
912
1000
|
"error"
|
|
913
1001
|
];
|
|
914
|
-
function s(k,
|
|
915
|
-
var F = k[
|
|
1002
|
+
function s(k, y) {
|
|
1003
|
+
var F = k[y];
|
|
916
1004
|
if (typeof F.bind == "function")
|
|
917
1005
|
return F.bind(k);
|
|
918
1006
|
try {
|
|
@@ -929,128 +1017,128 @@ var Mt = { exports: {} };
|
|
|
929
1017
|
function o(k) {
|
|
930
1018
|
return k === "debug" && (k = "log"), typeof console === t ? !1 : k === "trace" && i ? r : console[k] !== void 0 ? s(console, k) : console.log !== void 0 ? s(console, "log") : e;
|
|
931
1019
|
}
|
|
932
|
-
function d(k,
|
|
1020
|
+
function d(k, y) {
|
|
933
1021
|
for (var F = 0; F < a.length; F++) {
|
|
934
|
-
var
|
|
935
|
-
this[
|
|
1022
|
+
var w = a[F];
|
|
1023
|
+
this[w] = F < k ? e : this.methodFactory(w, k, y);
|
|
936
1024
|
}
|
|
937
1025
|
this.log = this.debug;
|
|
938
1026
|
}
|
|
939
|
-
function l(k,
|
|
1027
|
+
function l(k, y, F) {
|
|
940
1028
|
return function() {
|
|
941
|
-
typeof console !== t && (d.call(this,
|
|
1029
|
+
typeof console !== t && (d.call(this, y, F), this[k].apply(this, arguments));
|
|
942
1030
|
};
|
|
943
1031
|
}
|
|
944
|
-
function u(k,
|
|
1032
|
+
function u(k, y, F) {
|
|
945
1033
|
return o(k) || l.apply(this, arguments);
|
|
946
1034
|
}
|
|
947
|
-
function
|
|
948
|
-
var
|
|
949
|
-
|
|
950
|
-
var
|
|
951
|
-
typeof k == "string" ?
|
|
952
|
-
function
|
|
1035
|
+
function p(k, y, F) {
|
|
1036
|
+
var w = this, L;
|
|
1037
|
+
y = y == null ? "WARN" : y;
|
|
1038
|
+
var E = "loglevel";
|
|
1039
|
+
typeof k == "string" ? E += ":" + k : typeof k == "symbol" && (E = void 0);
|
|
1040
|
+
function I(m) {
|
|
953
1041
|
var g = (a[m] || "silent").toUpperCase();
|
|
954
|
-
if (!(typeof window === t || !
|
|
1042
|
+
if (!(typeof window === t || !E)) {
|
|
955
1043
|
try {
|
|
956
|
-
window.localStorage[
|
|
1044
|
+
window.localStorage[E] = g;
|
|
957
1045
|
return;
|
|
958
1046
|
} catch {
|
|
959
1047
|
}
|
|
960
1048
|
try {
|
|
961
|
-
window.document.cookie = encodeURIComponent(
|
|
1049
|
+
window.document.cookie = encodeURIComponent(E) + "=" + g + ";";
|
|
962
1050
|
} catch {
|
|
963
1051
|
}
|
|
964
1052
|
}
|
|
965
1053
|
}
|
|
966
|
-
function
|
|
1054
|
+
function P() {
|
|
967
1055
|
var m;
|
|
968
|
-
if (!(typeof window === t || !
|
|
1056
|
+
if (!(typeof window === t || !E)) {
|
|
969
1057
|
try {
|
|
970
|
-
m = window.localStorage[
|
|
1058
|
+
m = window.localStorage[E];
|
|
971
1059
|
} catch {
|
|
972
1060
|
}
|
|
973
1061
|
if (typeof m === t)
|
|
974
1062
|
try {
|
|
975
1063
|
var g = window.document.cookie, h = g.indexOf(
|
|
976
|
-
encodeURIComponent(
|
|
1064
|
+
encodeURIComponent(E) + "="
|
|
977
1065
|
);
|
|
978
1066
|
h !== -1 && (m = /^([^;]+)/.exec(g.slice(h))[1]);
|
|
979
1067
|
} catch {
|
|
980
1068
|
}
|
|
981
|
-
return
|
|
1069
|
+
return w.levels[m] === void 0 && (m = void 0), m;
|
|
982
1070
|
}
|
|
983
1071
|
}
|
|
984
|
-
function
|
|
985
|
-
if (!(typeof window === t || !
|
|
1072
|
+
function A() {
|
|
1073
|
+
if (!(typeof window === t || !E)) {
|
|
986
1074
|
try {
|
|
987
|
-
window.localStorage.removeItem(
|
|
1075
|
+
window.localStorage.removeItem(E);
|
|
988
1076
|
return;
|
|
989
1077
|
} catch {
|
|
990
1078
|
}
|
|
991
1079
|
try {
|
|
992
|
-
window.document.cookie = encodeURIComponent(
|
|
1080
|
+
window.document.cookie = encodeURIComponent(E) + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC";
|
|
993
1081
|
} catch {
|
|
994
1082
|
}
|
|
995
1083
|
}
|
|
996
1084
|
}
|
|
997
|
-
|
|
1085
|
+
w.name = k, w.levels = {
|
|
998
1086
|
TRACE: 0,
|
|
999
1087
|
DEBUG: 1,
|
|
1000
1088
|
INFO: 2,
|
|
1001
1089
|
WARN: 3,
|
|
1002
1090
|
ERROR: 4,
|
|
1003
1091
|
SILENT: 5
|
|
1004
|
-
},
|
|
1092
|
+
}, w.methodFactory = F || u, w.getLevel = function() {
|
|
1005
1093
|
return L;
|
|
1006
|
-
},
|
|
1007
|
-
if (typeof m == "string" &&
|
|
1008
|
-
if (L = m, g !== !1 &&
|
|
1094
|
+
}, w.setLevel = function(m, g) {
|
|
1095
|
+
if (typeof m == "string" && w.levels[m.toUpperCase()] !== void 0 && (m = w.levels[m.toUpperCase()]), typeof m == "number" && m >= 0 && m <= w.levels.SILENT) {
|
|
1096
|
+
if (L = m, g !== !1 && I(m), d.call(w, m, k), typeof console === t && m < w.levels.SILENT)
|
|
1009
1097
|
return "No console available for logging";
|
|
1010
1098
|
} else
|
|
1011
1099
|
throw "log.setLevel() called with invalid level: " + m;
|
|
1012
|
-
},
|
|
1013
|
-
|
|
1014
|
-
},
|
|
1015
|
-
|
|
1016
|
-
},
|
|
1017
|
-
|
|
1018
|
-
},
|
|
1019
|
-
|
|
1100
|
+
}, w.setDefaultLevel = function(m) {
|
|
1101
|
+
y = m, P() || w.setLevel(m, !1);
|
|
1102
|
+
}, w.resetLevel = function() {
|
|
1103
|
+
w.setLevel(y, !1), A();
|
|
1104
|
+
}, w.enableAll = function(m) {
|
|
1105
|
+
w.setLevel(w.levels.TRACE, m);
|
|
1106
|
+
}, w.disableAll = function(m) {
|
|
1107
|
+
w.setLevel(w.levels.SILENT, m);
|
|
1020
1108
|
};
|
|
1021
|
-
var
|
|
1022
|
-
|
|
1109
|
+
var f = P();
|
|
1110
|
+
f == null && (f = y), w.setLevel(f, !1);
|
|
1023
1111
|
}
|
|
1024
|
-
var c = new
|
|
1025
|
-
c.getLogger = function(
|
|
1026
|
-
if (typeof
|
|
1112
|
+
var c = new p(), v = {};
|
|
1113
|
+
c.getLogger = function(y) {
|
|
1114
|
+
if (typeof y != "symbol" && typeof y != "string" || y === "")
|
|
1027
1115
|
throw new TypeError("You must supply a name when creating a logger.");
|
|
1028
|
-
var F = y
|
|
1029
|
-
return F || (F = y
|
|
1030
|
-
|
|
1116
|
+
var F = v[y];
|
|
1117
|
+
return F || (F = v[y] = new p(
|
|
1118
|
+
y,
|
|
1031
1119
|
c.getLevel(),
|
|
1032
1120
|
c.methodFactory
|
|
1033
1121
|
)), F;
|
|
1034
1122
|
};
|
|
1035
|
-
var
|
|
1123
|
+
var S = typeof window !== t ? window.log : void 0;
|
|
1036
1124
|
return c.noConflict = function() {
|
|
1037
|
-
return typeof window !== t && window.log === c && (window.log =
|
|
1125
|
+
return typeof window !== t && window.log === c && (window.log = S), c;
|
|
1038
1126
|
}, c.getLoggers = function() {
|
|
1039
|
-
return
|
|
1127
|
+
return v;
|
|
1040
1128
|
}, c.default = c, c;
|
|
1041
1129
|
});
|
|
1042
|
-
})(
|
|
1043
|
-
var
|
|
1044
|
-
const
|
|
1045
|
-
var
|
|
1130
|
+
})(zt);
|
|
1131
|
+
var Bt = zt.exports;
|
|
1132
|
+
const oe = /* @__PURE__ */ Me(Bt);
|
|
1133
|
+
var Qt = { exports: {} };
|
|
1046
1134
|
(function(n) {
|
|
1047
1135
|
(function(e, t) {
|
|
1048
1136
|
n.exports ? n.exports = t() : e.prefix = t(e);
|
|
1049
|
-
})(
|
|
1137
|
+
})(Ut, function(e) {
|
|
1050
1138
|
var t = function(u) {
|
|
1051
|
-
for (var
|
|
1052
|
-
for (
|
|
1053
|
-
Object.prototype.hasOwnProperty.call(arguments[
|
|
1139
|
+
for (var p = 1, c = arguments.length, v; p < c; p++)
|
|
1140
|
+
for (v in arguments[p])
|
|
1141
|
+
Object.prototype.hasOwnProperty.call(arguments[p], v) && (u[v] = arguments[p][v]);
|
|
1054
1142
|
return u;
|
|
1055
1143
|
}, i = {
|
|
1056
1144
|
template: "[%t] %l:",
|
|
@@ -1068,23 +1156,23 @@ var jt = { exports: {} };
|
|
|
1068
1156
|
if (!u || !u.getLogger)
|
|
1069
1157
|
throw new TypeError("Argument is not a root logger");
|
|
1070
1158
|
a = u;
|
|
1071
|
-
}, o = function(u,
|
|
1159
|
+
}, o = function(u, p) {
|
|
1072
1160
|
if (!u || !u.setLevel)
|
|
1073
1161
|
throw new TypeError("Argument is not a logger");
|
|
1074
|
-
var c = u.methodFactory,
|
|
1075
|
-
function k(
|
|
1076
|
-
var L = c(
|
|
1162
|
+
var c = u.methodFactory, v = u.name || "", S = s[v] || s[""] || i;
|
|
1163
|
+
function k(y, F, w) {
|
|
1164
|
+
var L = c(y, F, w), E = s[w] || s[""], I = E.template.indexOf("%t") !== -1, P = E.template.indexOf("%l") !== -1, A = E.template.indexOf("%n") !== -1;
|
|
1077
1165
|
return function() {
|
|
1078
|
-
for (var
|
|
1166
|
+
for (var f = "", m = arguments.length, g = Array(m), h = 0; h < m; h++)
|
|
1079
1167
|
g[h] = arguments[h];
|
|
1080
|
-
if (
|
|
1081
|
-
var N =
|
|
1082
|
-
|
|
1168
|
+
if (v || !s[w]) {
|
|
1169
|
+
var N = E.timestampFormatter(/* @__PURE__ */ new Date()), C = E.levelFormatter(y), b = E.nameFormatter(w);
|
|
1170
|
+
E.format ? f += E.format(C, b, N) : (f += E.template, I && (f = f.replace(/%t/, N)), P && (f = f.replace(/%l/, C)), A && (f = f.replace(/%n/, b))), g.length && typeof g[0] == "string" ? g[0] = f + " " + g[0] : g.unshift(f);
|
|
1083
1171
|
}
|
|
1084
1172
|
L.apply(void 0, g);
|
|
1085
1173
|
};
|
|
1086
1174
|
}
|
|
1087
|
-
return s[
|
|
1175
|
+
return s[v] || (u.methodFactory = k), p = p || {}, p.template && (p.format = void 0), s[v] = t({}, S, p), u.setLevel(u.getLevel()), a || u.warn(
|
|
1088
1176
|
"It is necessary to call the function reg() of loglevel-plugin-prefix before calling apply. From the next release, it will throw an error. See more: https://github.com/kutuluk/loglevel-plugin-prefix/blob/master/README.md"
|
|
1089
1177
|
), u;
|
|
1090
1178
|
}, d = {
|
|
@@ -1095,14 +1183,14 @@ var jt = { exports: {} };
|
|
|
1095
1183
|
return e.prefix === d && (e.prefix = l), d;
|
|
1096
1184
|
}), d;
|
|
1097
1185
|
});
|
|
1098
|
-
})(
|
|
1099
|
-
var
|
|
1100
|
-
const
|
|
1101
|
-
let
|
|
1186
|
+
})(Qt);
|
|
1187
|
+
var ti = Qt.exports;
|
|
1188
|
+
const et = /* @__PURE__ */ Me(ti);
|
|
1189
|
+
let ni = class {
|
|
1102
1190
|
constructor(e) {
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
this.namePrefix = e ? `${e}-` : "",
|
|
1191
|
+
x(this, "defaultLevel", Bt.levels.INFO);
|
|
1192
|
+
x(this, "namePrefix");
|
|
1193
|
+
this.namePrefix = e ? `${e}-` : "", oe.setDefaultLevel(this.defaultLevel), et.reg(oe), et.apply(oe, {
|
|
1106
1194
|
template: "[%t] %l (%n)",
|
|
1107
1195
|
nameFormatter: (t) => {
|
|
1108
1196
|
var i;
|
|
@@ -1112,11 +1200,11 @@ let Zn = class {
|
|
|
1112
1200
|
});
|
|
1113
1201
|
}
|
|
1114
1202
|
createLogger(e) {
|
|
1115
|
-
const t = this.namePrefix + e.toLowerCase(), i =
|
|
1203
|
+
const t = this.namePrefix + e.toLowerCase(), i = oe.getLogger(t), a = localStorage.getItem(`loglevel:${t}`);
|
|
1116
1204
|
return a ? i.setLevel(a) : i.setLevel(this.defaultLevel), i;
|
|
1117
1205
|
}
|
|
1118
1206
|
};
|
|
1119
|
-
const
|
|
1207
|
+
const z = Pn({
|
|
1120
1208
|
config: null,
|
|
1121
1209
|
get accountName() {
|
|
1122
1210
|
var n;
|
|
@@ -1125,102 +1213,102 @@ const $ = Tn({
|
|
|
1125
1213
|
get ok() {
|
|
1126
1214
|
return !!this.account;
|
|
1127
1215
|
}
|
|
1128
|
-
}),
|
|
1216
|
+
}), ii = async (n) => {
|
|
1129
1217
|
var e;
|
|
1130
1218
|
try {
|
|
1131
|
-
if (
|
|
1132
|
-
const t = await
|
|
1133
|
-
|
|
1219
|
+
if (z.config = n, ((e = z.account) == null ? void 0 : e.account) !== n.account) {
|
|
1220
|
+
const t = await ca(n.account);
|
|
1221
|
+
z.account = t;
|
|
1134
1222
|
}
|
|
1135
1223
|
if (n.getProductDataSource) {
|
|
1136
1224
|
const t = await n.getProductDataSource();
|
|
1137
|
-
|
|
1225
|
+
z.productDataSource = _t(t);
|
|
1138
1226
|
}
|
|
1139
1227
|
} catch (t) {
|
|
1140
1228
|
console.error("Error configuring NizzaStore:", t);
|
|
1141
1229
|
}
|
|
1142
|
-
},
|
|
1143
|
-
|
|
1144
|
-
},
|
|
1145
|
-
state:
|
|
1146
|
-
configure:
|
|
1147
|
-
setProductDataSource:
|
|
1148
|
-
instanceId:
|
|
1149
|
-
log: new
|
|
1150
|
-
eventBus: new
|
|
1230
|
+
}, ai = (n) => {
|
|
1231
|
+
z.productDataSource = _t(n);
|
|
1232
|
+
}, tt = () => ({
|
|
1233
|
+
state: z,
|
|
1234
|
+
configure: ii,
|
|
1235
|
+
setProductDataSource: ai,
|
|
1236
|
+
instanceId: ei(),
|
|
1237
|
+
log: new ni("nz"),
|
|
1238
|
+
eventBus: new Xn(),
|
|
1151
1239
|
get account() {
|
|
1152
|
-
return
|
|
1240
|
+
return z.account;
|
|
1153
1241
|
},
|
|
1154
1242
|
get productDataSource() {
|
|
1155
|
-
return
|
|
1243
|
+
return z.productDataSource;
|
|
1156
1244
|
}
|
|
1157
|
-
}),
|
|
1245
|
+
}), si = () => {
|
|
1158
1246
|
if (typeof window != "undefined") {
|
|
1159
1247
|
if (!window.nizza) {
|
|
1160
|
-
const n =
|
|
1248
|
+
const n = tt();
|
|
1161
1249
|
window.nizza = n, window.nz = n;
|
|
1162
1250
|
}
|
|
1163
1251
|
return window.nizza;
|
|
1164
1252
|
}
|
|
1165
|
-
return
|
|
1166
|
-
},
|
|
1167
|
-
function
|
|
1253
|
+
return tt();
|
|
1254
|
+
}, je = si(), Bs = je.log.createLogger("main"), ee = je.log.createLogger("core");
|
|
1255
|
+
function G(n) {
|
|
1168
1256
|
return n != null && typeof n == "object" && n["@@functional/placeholder"] === !0;
|
|
1169
1257
|
}
|
|
1170
|
-
function
|
|
1258
|
+
function de(n) {
|
|
1171
1259
|
return function e(t) {
|
|
1172
|
-
return arguments.length === 0 ||
|
|
1260
|
+
return arguments.length === 0 || G(t) ? e : n.apply(this, arguments);
|
|
1173
1261
|
};
|
|
1174
1262
|
}
|
|
1175
|
-
function
|
|
1263
|
+
function $e(n) {
|
|
1176
1264
|
return function e(t, i) {
|
|
1177
1265
|
switch (arguments.length) {
|
|
1178
1266
|
case 0:
|
|
1179
1267
|
return e;
|
|
1180
1268
|
case 1:
|
|
1181
|
-
return
|
|
1269
|
+
return G(t) ? e : de(function(a) {
|
|
1182
1270
|
return n(t, a);
|
|
1183
1271
|
});
|
|
1184
1272
|
default:
|
|
1185
|
-
return
|
|
1273
|
+
return G(t) && G(i) ? e : G(t) ? de(function(a) {
|
|
1186
1274
|
return n(a, i);
|
|
1187
|
-
}) :
|
|
1275
|
+
}) : G(i) ? de(function(a) {
|
|
1188
1276
|
return n(t, a);
|
|
1189
1277
|
}) : n(t, i);
|
|
1190
1278
|
}
|
|
1191
1279
|
};
|
|
1192
1280
|
}
|
|
1193
|
-
const
|
|
1281
|
+
const ri = Number.isInteger || function(e) {
|
|
1194
1282
|
return e << 0 === e;
|
|
1195
1283
|
};
|
|
1196
|
-
function
|
|
1284
|
+
function oi(n) {
|
|
1197
1285
|
return Object.prototype.toString.call(n) === "[object String]";
|
|
1198
1286
|
}
|
|
1199
|
-
var
|
|
1287
|
+
var li = /* @__PURE__ */ $e(function(e, t) {
|
|
1200
1288
|
var i = e < 0 ? t.length + e : e;
|
|
1201
|
-
return
|
|
1289
|
+
return oi(t) ? t.charAt(i) : t[i];
|
|
1202
1290
|
});
|
|
1203
|
-
const
|
|
1204
|
-
var
|
|
1291
|
+
const di = li;
|
|
1292
|
+
var ui = /* @__PURE__ */ de(function(e) {
|
|
1205
1293
|
return e == null;
|
|
1206
1294
|
});
|
|
1207
|
-
const
|
|
1208
|
-
var
|
|
1295
|
+
const ci = ui;
|
|
1296
|
+
var mi = /* @__PURE__ */ $e(function(e, t) {
|
|
1209
1297
|
return e.map(function(i) {
|
|
1210
1298
|
for (var a = t, s = 0, r; s < i.length; ) {
|
|
1211
1299
|
if (a == null)
|
|
1212
1300
|
return;
|
|
1213
|
-
r = i[s], a =
|
|
1301
|
+
r = i[s], a = ri(r) ? di(r, a) : a[r], s += 1;
|
|
1214
1302
|
}
|
|
1215
1303
|
return a;
|
|
1216
1304
|
});
|
|
1217
1305
|
});
|
|
1218
|
-
const
|
|
1219
|
-
var
|
|
1220
|
-
return
|
|
1306
|
+
const fi = mi;
|
|
1307
|
+
var pi = /* @__PURE__ */ $e(function(e, t) {
|
|
1308
|
+
return fi([e], t)[0];
|
|
1221
1309
|
});
|
|
1222
|
-
const
|
|
1223
|
-
class
|
|
1310
|
+
const hi = pi;
|
|
1311
|
+
class ye extends Error {
|
|
1224
1312
|
constructor(e, t, i) {
|
|
1225
1313
|
super(t), this.value = i, this.name = e;
|
|
1226
1314
|
}
|
|
@@ -1232,7 +1320,7 @@ class ge extends Error {
|
|
|
1232
1320
|
};
|
|
1233
1321
|
}
|
|
1234
1322
|
}
|
|
1235
|
-
class
|
|
1323
|
+
class gi extends ye {
|
|
1236
1324
|
constructor(e) {
|
|
1237
1325
|
super(
|
|
1238
1326
|
"RESOURCE_NOT_FOUND_ERROR",
|
|
@@ -1241,7 +1329,7 @@ class di extends ge {
|
|
|
1241
1329
|
);
|
|
1242
1330
|
}
|
|
1243
1331
|
}
|
|
1244
|
-
class
|
|
1332
|
+
class ki extends ye {
|
|
1245
1333
|
constructor(e) {
|
|
1246
1334
|
var t;
|
|
1247
1335
|
super(
|
|
@@ -1251,12 +1339,12 @@ class ui extends ge {
|
|
|
1251
1339
|
);
|
|
1252
1340
|
}
|
|
1253
1341
|
}
|
|
1254
|
-
class
|
|
1342
|
+
class Qs extends ye {
|
|
1255
1343
|
constructor() {
|
|
1256
1344
|
super("APP_ACCOUNT_INVALID_ERROR", "Account not defined");
|
|
1257
1345
|
}
|
|
1258
1346
|
}
|
|
1259
|
-
class
|
|
1347
|
+
class vi extends ye {
|
|
1260
1348
|
constructor(e) {
|
|
1261
1349
|
super(
|
|
1262
1350
|
"INVALID_NIZZA_GLOBAL_OBJECT_ERROR",
|
|
@@ -1284,13 +1372,13 @@ class ci extends ge {
|
|
|
1284
1372
|
);
|
|
1285
1373
|
}
|
|
1286
1374
|
}
|
|
1287
|
-
function
|
|
1375
|
+
function Ks(n, e) {
|
|
1288
1376
|
e.forEach((t) => {
|
|
1289
|
-
if (
|
|
1290
|
-
throw new
|
|
1377
|
+
if (ci(hi(t.split("."), n)))
|
|
1378
|
+
throw new vi(t);
|
|
1291
1379
|
});
|
|
1292
1380
|
}
|
|
1293
|
-
function
|
|
1381
|
+
function Gs() {
|
|
1294
1382
|
var i, a, s;
|
|
1295
1383
|
let n = null, e = null, t = null;
|
|
1296
1384
|
try {
|
|
@@ -1316,10 +1404,10 @@ function Ms() {
|
|
|
1316
1404
|
label: null
|
|
1317
1405
|
};
|
|
1318
1406
|
}
|
|
1319
|
-
class
|
|
1407
|
+
class Si {
|
|
1320
1408
|
constructor(e) {
|
|
1321
|
-
|
|
1322
|
-
|
|
1409
|
+
x(this, "aggregate");
|
|
1410
|
+
x(this, "_numSetPropsApplied", 0);
|
|
1323
1411
|
this.aggregate = e;
|
|
1324
1412
|
}
|
|
1325
1413
|
setProps(e) {
|
|
@@ -1331,48 +1419,48 @@ class mi {
|
|
|
1331
1419
|
return this._numSetPropsApplied === 1;
|
|
1332
1420
|
}
|
|
1333
1421
|
}
|
|
1334
|
-
function
|
|
1335
|
-
return new
|
|
1422
|
+
function yi(n) {
|
|
1423
|
+
return new Si(n);
|
|
1336
1424
|
}
|
|
1337
|
-
class
|
|
1425
|
+
class Ws {
|
|
1338
1426
|
}
|
|
1339
|
-
class
|
|
1427
|
+
class Js {
|
|
1340
1428
|
constructor(e) {
|
|
1341
|
-
|
|
1429
|
+
x(this, "_value");
|
|
1342
1430
|
e !== void 0 && (this._value = e);
|
|
1343
1431
|
}
|
|
1344
1432
|
get value() {
|
|
1345
1433
|
return this._value;
|
|
1346
1434
|
}
|
|
1347
1435
|
}
|
|
1348
|
-
var
|
|
1349
|
-
class
|
|
1436
|
+
var Kt = /* @__PURE__ */ ((n) => (n.VTEX = "VTEX", n.VTEX_IO = "VTEX-IO", n.VTEX_CMS = "PORTAL-VTEX", n.PLATFORM = "PLATFORM", n.UNKNOWN = "UNKNOWN", n))(Kt || {}), Ni = /* @__PURE__ */ ((n) => (n.PLATFORM = "platform_module", n.ADENDA = "subscription_module", n.APP_STORE = "app_store", n))(Ni || {}), Gt = /* @__PURE__ */ ((n) => (n.ACTIVE = "active_contract", n.INACTIVE = "inactive_contract", n))(Gt || {}), bi = /* @__PURE__ */ ((n) => (n.LITE = "lite", n.STANDARD = "standard", n.PRO = "pro", n))(bi || {}), Fi = /* @__PURE__ */ ((n) => (n.LITE = "PLAN_LITE", n.STANDARD = "PLAN_ESTANDAR", n.PRO = "PLAN_PRO", n.NONE = "NO_PLAN", n))(Fi || {}), wi = /* @__PURE__ */ ((n) => (n.PAST = "past", n.LIVE = "live", n.FUTURE = "future", n))(wi || {});
|
|
1437
|
+
class ze {
|
|
1350
1438
|
constructor(e) {
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1439
|
+
x(this, "root", yi(this));
|
|
1440
|
+
x(this, "id");
|
|
1441
|
+
x(this, "account");
|
|
1442
|
+
x(this, "accountType", Kt.UNKNOWN);
|
|
1443
|
+
x(this, "username");
|
|
1444
|
+
x(this, "currencyConfig");
|
|
1445
|
+
x(this, "contractType");
|
|
1446
|
+
x(this, "nextDateMetricRecord");
|
|
1447
|
+
x(this, "spendedMinutes", 0);
|
|
1448
|
+
x(this, "unlimitedService", !1);
|
|
1449
|
+
x(this, "hoursAvailable", 0);
|
|
1450
|
+
x(this, "contractStatus", Gt.ACTIVE);
|
|
1451
|
+
x(this, "createdAt");
|
|
1452
|
+
x(this, "installationDateApp");
|
|
1453
|
+
x(this, "cxAccount");
|
|
1454
|
+
x(this, "freeService", !1);
|
|
1455
|
+
x(this, "subscriptionType", null);
|
|
1456
|
+
x(this, "minutesAvailable", 0);
|
|
1457
|
+
x(this, "globalPage");
|
|
1458
|
+
x(this, "stripe");
|
|
1459
|
+
x(this, "descriptionPlan");
|
|
1460
|
+
x(this, "planType");
|
|
1461
|
+
x(this, "selectFreeTrial");
|
|
1462
|
+
x(this, "exceededFeatures");
|
|
1463
|
+
x(this, "host", null);
|
|
1376
1464
|
this.root.setProps(e);
|
|
1377
1465
|
}
|
|
1378
1466
|
static toDomain(e) {
|
|
@@ -1381,7 +1469,7 @@ class Ie {
|
|
|
1381
1469
|
username: i != null ? i : a.account,
|
|
1382
1470
|
createdAt: new Date(Number(t))
|
|
1383
1471
|
};
|
|
1384
|
-
return new
|
|
1472
|
+
return new ze(s);
|
|
1385
1473
|
}
|
|
1386
1474
|
toPrimitives() {
|
|
1387
1475
|
const { root: e, createdAt: t, ...i } = this;
|
|
@@ -1391,16 +1479,16 @@ class Ie {
|
|
|
1391
1479
|
};
|
|
1392
1480
|
}
|
|
1393
1481
|
}
|
|
1394
|
-
const
|
|
1395
|
-
class
|
|
1482
|
+
const Ci = `${En.apiUrls.restV1}/accounts/v2`;
|
|
1483
|
+
class Ei {
|
|
1396
1484
|
async get(e) {
|
|
1397
|
-
const t = `${
|
|
1485
|
+
const t = `${Ci}/${e}`, { data: i } = await It({
|
|
1398
1486
|
url: t
|
|
1399
1487
|
});
|
|
1400
|
-
return i ?
|
|
1488
|
+
return i ? ze.toDomain(i) : null;
|
|
1401
1489
|
}
|
|
1402
1490
|
}
|
|
1403
|
-
class
|
|
1491
|
+
class Oi {
|
|
1404
1492
|
constructor(e) {
|
|
1405
1493
|
this.accountRepository = e;
|
|
1406
1494
|
}
|
|
@@ -1408,15 +1496,15 @@ class yi {
|
|
|
1408
1496
|
try {
|
|
1409
1497
|
const t = await this.accountRepository.get(e);
|
|
1410
1498
|
if (!t)
|
|
1411
|
-
throw new
|
|
1499
|
+
throw new gi(e);
|
|
1412
1500
|
return t;
|
|
1413
1501
|
} catch (t) {
|
|
1414
|
-
throw new
|
|
1502
|
+
throw new ki(t);
|
|
1415
1503
|
}
|
|
1416
1504
|
}
|
|
1417
1505
|
}
|
|
1418
|
-
const
|
|
1419
|
-
class
|
|
1506
|
+
const Ri = new Ei(), Wt = new Oi(Ri);
|
|
1507
|
+
class Be {
|
|
1420
1508
|
constructor() {
|
|
1421
1509
|
this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
|
|
1422
1510
|
}
|
|
@@ -1436,17 +1524,17 @@ class Ve {
|
|
|
1436
1524
|
onUnsubscribe() {
|
|
1437
1525
|
}
|
|
1438
1526
|
}
|
|
1439
|
-
const
|
|
1440
|
-
function
|
|
1527
|
+
const fe = typeof window == "undefined" || "Deno" in window;
|
|
1528
|
+
function xi() {
|
|
1441
1529
|
}
|
|
1442
|
-
function
|
|
1530
|
+
function nt(n) {
|
|
1443
1531
|
return typeof n == "number" && n >= 0 && n !== 1 / 0;
|
|
1444
1532
|
}
|
|
1445
|
-
function
|
|
1533
|
+
function Ti(n, e) {
|
|
1446
1534
|
return Math.max(n + (e || 0) - Date.now(), 0);
|
|
1447
1535
|
}
|
|
1448
|
-
function
|
|
1449
|
-
return
|
|
1536
|
+
function Di(n, e, t) {
|
|
1537
|
+
return Li(n) ? typeof e == "function" ? {
|
|
1450
1538
|
...t,
|
|
1451
1539
|
queryKey: n,
|
|
1452
1540
|
queryFn: e
|
|
@@ -1455,22 +1543,22 @@ function Ei(n, e, t) {
|
|
|
1455
1543
|
queryKey: n
|
|
1456
1544
|
} : n;
|
|
1457
1545
|
}
|
|
1458
|
-
function
|
|
1546
|
+
function Jt(n, e) {
|
|
1459
1547
|
if (n === e)
|
|
1460
1548
|
return n;
|
|
1461
|
-
const t =
|
|
1462
|
-
if (t ||
|
|
1549
|
+
const t = it(n) && it(e);
|
|
1550
|
+
if (t || at(n) && at(e)) {
|
|
1463
1551
|
const i = t ? n.length : Object.keys(n).length, a = t ? e : Object.keys(e), s = a.length, r = t ? [] : {};
|
|
1464
1552
|
let o = 0;
|
|
1465
1553
|
for (let d = 0; d < s; d++) {
|
|
1466
1554
|
const l = t ? d : a[d];
|
|
1467
|
-
r[l] =
|
|
1555
|
+
r[l] = Jt(n[l], e[l]), r[l] === n[l] && o++;
|
|
1468
1556
|
}
|
|
1469
1557
|
return i === s && o === i ? n : r;
|
|
1470
1558
|
}
|
|
1471
1559
|
return e;
|
|
1472
1560
|
}
|
|
1473
|
-
function
|
|
1561
|
+
function De(n, e) {
|
|
1474
1562
|
if (n && !e || e && !n)
|
|
1475
1563
|
return !1;
|
|
1476
1564
|
for (const t in n)
|
|
@@ -1478,39 +1566,39 @@ function Ee(n, e) {
|
|
|
1478
1566
|
return !1;
|
|
1479
1567
|
return !0;
|
|
1480
1568
|
}
|
|
1481
|
-
function
|
|
1569
|
+
function it(n) {
|
|
1482
1570
|
return Array.isArray(n) && n.length === Object.keys(n).length;
|
|
1483
1571
|
}
|
|
1484
|
-
function
|
|
1485
|
-
if (!
|
|
1572
|
+
function at(n) {
|
|
1573
|
+
if (!st(n))
|
|
1486
1574
|
return !1;
|
|
1487
1575
|
const e = n.constructor;
|
|
1488
1576
|
if (typeof e == "undefined")
|
|
1489
1577
|
return !0;
|
|
1490
1578
|
const t = e.prototype;
|
|
1491
|
-
return !(!
|
|
1579
|
+
return !(!st(t) || !t.hasOwnProperty("isPrototypeOf"));
|
|
1492
1580
|
}
|
|
1493
|
-
function
|
|
1581
|
+
function st(n) {
|
|
1494
1582
|
return Object.prototype.toString.call(n) === "[object Object]";
|
|
1495
1583
|
}
|
|
1496
|
-
function
|
|
1584
|
+
function Li(n) {
|
|
1497
1585
|
return Array.isArray(n);
|
|
1498
1586
|
}
|
|
1499
|
-
function
|
|
1587
|
+
function Ii(n) {
|
|
1500
1588
|
return new Promise((e) => {
|
|
1501
1589
|
setTimeout(e, n);
|
|
1502
1590
|
});
|
|
1503
1591
|
}
|
|
1504
|
-
function
|
|
1505
|
-
|
|
1592
|
+
function rt(n) {
|
|
1593
|
+
Ii(0).then(n);
|
|
1506
1594
|
}
|
|
1507
|
-
function
|
|
1508
|
-
return t.isDataEqual != null && t.isDataEqual(n, e) ? n : typeof t.structuralSharing == "function" ? t.structuralSharing(n, e) : t.structuralSharing !== !1 ?
|
|
1595
|
+
function ot(n, e, t) {
|
|
1596
|
+
return t.isDataEqual != null && t.isDataEqual(n, e) ? n : typeof t.structuralSharing == "function" ? t.structuralSharing(n, e) : t.structuralSharing !== !1 ? Jt(n, e) : e;
|
|
1509
1597
|
}
|
|
1510
|
-
class
|
|
1598
|
+
class Ai extends Be {
|
|
1511
1599
|
constructor() {
|
|
1512
1600
|
super(), this.setup = (e) => {
|
|
1513
|
-
if (!
|
|
1601
|
+
if (!fe && window.addEventListener) {
|
|
1514
1602
|
const t = () => e();
|
|
1515
1603
|
return window.addEventListener("visibilitychange", t, !1), window.addEventListener("focus", t, !1), () => {
|
|
1516
1604
|
window.removeEventListener("visibilitychange", t), window.removeEventListener("focus", t);
|
|
@@ -1547,16 +1635,16 @@ class Ri extends Ve {
|
|
|
1547
1635
|
return typeof this.focused == "boolean" ? this.focused : typeof document == "undefined" ? !0 : [void 0, "visible", "prerender"].includes(document.visibilityState);
|
|
1548
1636
|
}
|
|
1549
1637
|
}
|
|
1550
|
-
const
|
|
1551
|
-
class
|
|
1638
|
+
const Pi = new Ai(), lt = ["online", "offline"];
|
|
1639
|
+
class Vi extends Be {
|
|
1552
1640
|
constructor() {
|
|
1553
1641
|
super(), this.setup = (e) => {
|
|
1554
|
-
if (!
|
|
1642
|
+
if (!fe && window.addEventListener) {
|
|
1555
1643
|
const t = () => e();
|
|
1556
|
-
return
|
|
1644
|
+
return lt.forEach((i) => {
|
|
1557
1645
|
window.addEventListener(i, t, !1);
|
|
1558
1646
|
}), () => {
|
|
1559
|
-
|
|
1647
|
+
lt.forEach((i) => {
|
|
1560
1648
|
window.removeEventListener(i, t);
|
|
1561
1649
|
});
|
|
1562
1650
|
};
|
|
@@ -1592,47 +1680,47 @@ class Ti extends Ve {
|
|
|
1592
1680
|
return typeof this.online == "boolean" ? this.online : typeof navigator == "undefined" || typeof navigator.onLine == "undefined" ? !0 : navigator.onLine;
|
|
1593
1681
|
}
|
|
1594
1682
|
}
|
|
1595
|
-
const
|
|
1596
|
-
function
|
|
1597
|
-
return (n != null ? n : "online") === "online" ?
|
|
1683
|
+
const _i = new Vi();
|
|
1684
|
+
function Ui(n) {
|
|
1685
|
+
return (n != null ? n : "online") === "online" ? _i.isOnline() : !0;
|
|
1598
1686
|
}
|
|
1599
|
-
class
|
|
1687
|
+
class Mi {
|
|
1600
1688
|
constructor(e) {
|
|
1601
1689
|
this.revert = e == null ? void 0 : e.revert, this.silent = e == null ? void 0 : e.silent;
|
|
1602
1690
|
}
|
|
1603
1691
|
}
|
|
1604
|
-
function
|
|
1605
|
-
return n instanceof
|
|
1692
|
+
function ji(n) {
|
|
1693
|
+
return n instanceof Mi;
|
|
1606
1694
|
}
|
|
1607
|
-
function
|
|
1695
|
+
function $i() {
|
|
1608
1696
|
let n = [], e = 0, t = (u) => {
|
|
1609
1697
|
u();
|
|
1610
1698
|
}, i = (u) => {
|
|
1611
1699
|
u();
|
|
1612
1700
|
};
|
|
1613
1701
|
const a = (u) => {
|
|
1614
|
-
let
|
|
1702
|
+
let p;
|
|
1615
1703
|
e++;
|
|
1616
1704
|
try {
|
|
1617
|
-
|
|
1705
|
+
p = u();
|
|
1618
1706
|
} finally {
|
|
1619
1707
|
e--, e || o();
|
|
1620
1708
|
}
|
|
1621
|
-
return
|
|
1709
|
+
return p;
|
|
1622
1710
|
}, s = (u) => {
|
|
1623
|
-
e ? n.push(u) :
|
|
1711
|
+
e ? n.push(u) : rt(() => {
|
|
1624
1712
|
t(u);
|
|
1625
1713
|
});
|
|
1626
|
-
}, r = (u) => (...
|
|
1714
|
+
}, r = (u) => (...p) => {
|
|
1627
1715
|
s(() => {
|
|
1628
|
-
u(...
|
|
1716
|
+
u(...p);
|
|
1629
1717
|
});
|
|
1630
1718
|
}, o = () => {
|
|
1631
1719
|
const u = n;
|
|
1632
|
-
n = [], u.length &&
|
|
1720
|
+
n = [], u.length && rt(() => {
|
|
1633
1721
|
i(() => {
|
|
1634
|
-
u.forEach((
|
|
1635
|
-
t(
|
|
1722
|
+
u.forEach((p) => {
|
|
1723
|
+
t(p);
|
|
1636
1724
|
});
|
|
1637
1725
|
});
|
|
1638
1726
|
});
|
|
@@ -1649,8 +1737,8 @@ function Pi() {
|
|
|
1649
1737
|
}
|
|
1650
1738
|
};
|
|
1651
1739
|
}
|
|
1652
|
-
const te =
|
|
1653
|
-
class
|
|
1740
|
+
const te = $i();
|
|
1741
|
+
class zi extends Be {
|
|
1654
1742
|
constructor(e, t) {
|
|
1655
1743
|
super(), this.client = e, this.options = t, this.trackedProps = /* @__PURE__ */ new Set(), this.selectError = null, this.bindMethods(), this.setOptions(t);
|
|
1656
1744
|
}
|
|
@@ -1658,23 +1746,23 @@ class Ii extends Ve {
|
|
|
1658
1746
|
this.remove = this.remove.bind(this), this.refetch = this.refetch.bind(this);
|
|
1659
1747
|
}
|
|
1660
1748
|
onSubscribe() {
|
|
1661
|
-
this.listeners.size === 1 && (this.currentQuery.addObserver(this),
|
|
1749
|
+
this.listeners.size === 1 && (this.currentQuery.addObserver(this), dt(this.currentQuery, this.options) && this.executeFetch(), this.updateTimers());
|
|
1662
1750
|
}
|
|
1663
1751
|
onUnsubscribe() {
|
|
1664
1752
|
this.hasListeners() || this.destroy();
|
|
1665
1753
|
}
|
|
1666
1754
|
shouldFetchOnReconnect() {
|
|
1667
|
-
return
|
|
1755
|
+
return Le(this.currentQuery, this.options, this.options.refetchOnReconnect);
|
|
1668
1756
|
}
|
|
1669
1757
|
shouldFetchOnWindowFocus() {
|
|
1670
|
-
return
|
|
1758
|
+
return Le(this.currentQuery, this.options, this.options.refetchOnWindowFocus);
|
|
1671
1759
|
}
|
|
1672
1760
|
destroy() {
|
|
1673
1761
|
this.listeners = /* @__PURE__ */ new Set(), this.clearStaleTimeout(), this.clearRefetchInterval(), this.currentQuery.removeObserver(this);
|
|
1674
1762
|
}
|
|
1675
1763
|
setOptions(e, t) {
|
|
1676
1764
|
const i = this.options, a = this.currentQuery;
|
|
1677
|
-
if (this.options = this.client.defaultQueryOptions(e),
|
|
1765
|
+
if (this.options = this.client.defaultQueryOptions(e), De(i, this.options) || this.client.getQueryCache().notify({
|
|
1678
1766
|
type: "observerOptionsUpdated",
|
|
1679
1767
|
query: this.currentQuery,
|
|
1680
1768
|
observer: this
|
|
@@ -1682,13 +1770,13 @@ class Ii extends Ve {
|
|
|
1682
1770
|
throw new Error("Expected enabled to be a boolean");
|
|
1683
1771
|
this.options.queryKey || (this.options.queryKey = i.queryKey), this.updateQuery();
|
|
1684
1772
|
const s = this.hasListeners();
|
|
1685
|
-
s &&
|
|
1773
|
+
s && ut(this.currentQuery, a, this.options, i) && this.executeFetch(), this.updateResult(t), s && (this.currentQuery !== a || this.options.enabled !== i.enabled || this.options.staleTime !== i.staleTime) && this.updateStaleTimeout();
|
|
1686
1774
|
const r = this.computeRefetchInterval();
|
|
1687
1775
|
s && (this.currentQuery !== a || this.options.enabled !== i.enabled || r !== this.currentRefetchInterval) && this.updateRefetchInterval(r);
|
|
1688
1776
|
}
|
|
1689
1777
|
getOptimisticResult(e) {
|
|
1690
1778
|
const t = this.client.getQueryCache().build(this.client, e), i = this.createResult(t, e);
|
|
1691
|
-
return
|
|
1779
|
+
return Qi(this, i, e) && (this.currentResult = i, this.currentResultOptions = this.options, this.currentResultState = this.currentQuery.state), i;
|
|
1692
1780
|
}
|
|
1693
1781
|
getCurrentResult() {
|
|
1694
1782
|
return this.currentResult;
|
|
@@ -1734,12 +1822,12 @@ class Ii extends Ve {
|
|
|
1734
1822
|
executeFetch(e) {
|
|
1735
1823
|
this.updateQuery();
|
|
1736
1824
|
let t = this.currentQuery.fetch(this.options, e);
|
|
1737
|
-
return e != null && e.throwOnError || (t = t.catch(
|
|
1825
|
+
return e != null && e.throwOnError || (t = t.catch(xi)), t;
|
|
1738
1826
|
}
|
|
1739
1827
|
updateStaleTimeout() {
|
|
1740
|
-
if (this.clearStaleTimeout(),
|
|
1828
|
+
if (this.clearStaleTimeout(), fe || this.currentResult.isStale || !nt(this.options.staleTime))
|
|
1741
1829
|
return;
|
|
1742
|
-
const t =
|
|
1830
|
+
const t = Ti(this.currentResult.dataUpdatedAt, this.options.staleTime) + 1;
|
|
1743
1831
|
this.staleTimeoutId = setTimeout(() => {
|
|
1744
1832
|
this.currentResult.isStale || this.updateResult();
|
|
1745
1833
|
}, t);
|
|
@@ -1749,8 +1837,8 @@ class Ii extends Ve {
|
|
|
1749
1837
|
return typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(this.currentResult.data, this.currentQuery) : (e = this.options.refetchInterval) != null ? e : !1;
|
|
1750
1838
|
}
|
|
1751
1839
|
updateRefetchInterval(e) {
|
|
1752
|
-
this.clearRefetchInterval(), this.currentRefetchInterval = e, !(
|
|
1753
|
-
(this.options.refetchIntervalInBackground ||
|
|
1840
|
+
this.clearRefetchInterval(), this.currentRefetchInterval = e, !(fe || this.options.enabled === !1 || !nt(this.currentRefetchInterval) || this.currentRefetchInterval === 0) && (this.refetchIntervalId = setInterval(() => {
|
|
1841
|
+
(this.options.refetchIntervalInBackground || Pi.isFocused()) && this.executeFetch();
|
|
1754
1842
|
}, this.currentRefetchInterval));
|
|
1755
1843
|
}
|
|
1756
1844
|
updateTimers() {
|
|
@@ -1764,77 +1852,77 @@ class Ii extends Ve {
|
|
|
1764
1852
|
}
|
|
1765
1853
|
createResult(e, t) {
|
|
1766
1854
|
const i = this.currentQuery, a = this.options, s = this.currentResult, r = this.currentResultState, o = this.currentResultOptions, d = e !== i, l = d ? e.state : this.currentQueryInitialState, u = d ? this.currentResult : this.previousQueryResult, {
|
|
1767
|
-
state:
|
|
1855
|
+
state: p
|
|
1768
1856
|
} = e;
|
|
1769
1857
|
let {
|
|
1770
1858
|
dataUpdatedAt: c,
|
|
1771
|
-
error:
|
|
1772
|
-
errorUpdatedAt:
|
|
1859
|
+
error: v,
|
|
1860
|
+
errorUpdatedAt: S,
|
|
1773
1861
|
fetchStatus: k,
|
|
1774
|
-
status:
|
|
1775
|
-
} =
|
|
1862
|
+
status: y
|
|
1863
|
+
} = p, F = !1, w = !1, L;
|
|
1776
1864
|
if (t._optimisticResults) {
|
|
1777
|
-
const
|
|
1778
|
-
(m || g) && (k =
|
|
1865
|
+
const f = this.hasListeners(), m = !f && dt(e, t), g = f && ut(e, i, t, a);
|
|
1866
|
+
(m || g) && (k = Ui(e.options.networkMode) ? "fetching" : "paused", c || (y = "loading")), t._optimisticResults === "isRestoring" && (k = "idle");
|
|
1779
1867
|
}
|
|
1780
|
-
if (t.keepPreviousData && !
|
|
1781
|
-
L = u.data, c = u.dataUpdatedAt,
|
|
1782
|
-
else if (t.select && typeof
|
|
1783
|
-
if (s &&
|
|
1868
|
+
if (t.keepPreviousData && !p.dataUpdatedAt && u != null && u.isSuccess && y !== "error")
|
|
1869
|
+
L = u.data, c = u.dataUpdatedAt, y = u.status, F = !0;
|
|
1870
|
+
else if (t.select && typeof p.data != "undefined")
|
|
1871
|
+
if (s && p.data === (r == null ? void 0 : r.data) && t.select === this.selectFn)
|
|
1784
1872
|
L = this.selectResult;
|
|
1785
1873
|
else
|
|
1786
1874
|
try {
|
|
1787
|
-
this.selectFn = t.select, L = t.select(
|
|
1788
|
-
} catch (
|
|
1789
|
-
this.selectError =
|
|
1875
|
+
this.selectFn = t.select, L = t.select(p.data), L = ot(s == null ? void 0 : s.data, L, t), this.selectResult = L, this.selectError = null;
|
|
1876
|
+
} catch (f) {
|
|
1877
|
+
this.selectError = f;
|
|
1790
1878
|
}
|
|
1791
1879
|
else
|
|
1792
|
-
L =
|
|
1793
|
-
if (typeof t.placeholderData != "undefined" && typeof L == "undefined" &&
|
|
1794
|
-
let
|
|
1880
|
+
L = p.data;
|
|
1881
|
+
if (typeof t.placeholderData != "undefined" && typeof L == "undefined" && y === "loading") {
|
|
1882
|
+
let f;
|
|
1795
1883
|
if (s != null && s.isPlaceholderData && t.placeholderData === (o == null ? void 0 : o.placeholderData))
|
|
1796
|
-
|
|
1797
|
-
else if (
|
|
1884
|
+
f = s.data;
|
|
1885
|
+
else if (f = typeof t.placeholderData == "function" ? t.placeholderData() : t.placeholderData, t.select && typeof f != "undefined")
|
|
1798
1886
|
try {
|
|
1799
|
-
|
|
1887
|
+
f = t.select(f), this.selectError = null;
|
|
1800
1888
|
} catch (m) {
|
|
1801
1889
|
this.selectError = m;
|
|
1802
1890
|
}
|
|
1803
|
-
typeof
|
|
1891
|
+
typeof f != "undefined" && (y = "success", L = ot(s == null ? void 0 : s.data, f, t), w = !0);
|
|
1804
1892
|
}
|
|
1805
|
-
this.selectError && (
|
|
1806
|
-
const
|
|
1893
|
+
this.selectError && (v = this.selectError, L = this.selectResult, S = Date.now(), y = "error");
|
|
1894
|
+
const E = k === "fetching", I = y === "loading", P = y === "error";
|
|
1807
1895
|
return {
|
|
1808
|
-
status:
|
|
1896
|
+
status: y,
|
|
1809
1897
|
fetchStatus: k,
|
|
1810
|
-
isLoading:
|
|
1811
|
-
isSuccess:
|
|
1812
|
-
isError:
|
|
1813
|
-
isInitialLoading:
|
|
1898
|
+
isLoading: I,
|
|
1899
|
+
isSuccess: y === "success",
|
|
1900
|
+
isError: P,
|
|
1901
|
+
isInitialLoading: I && E,
|
|
1814
1902
|
data: L,
|
|
1815
1903
|
dataUpdatedAt: c,
|
|
1816
|
-
error:
|
|
1817
|
-
errorUpdatedAt:
|
|
1818
|
-
failureCount:
|
|
1819
|
-
failureReason:
|
|
1820
|
-
errorUpdateCount:
|
|
1821
|
-
isFetched:
|
|
1822
|
-
isFetchedAfterMount:
|
|
1823
|
-
isFetching:
|
|
1824
|
-
isRefetching:
|
|
1825
|
-
isLoadingError:
|
|
1904
|
+
error: v,
|
|
1905
|
+
errorUpdatedAt: S,
|
|
1906
|
+
failureCount: p.fetchFailureCount,
|
|
1907
|
+
failureReason: p.fetchFailureReason,
|
|
1908
|
+
errorUpdateCount: p.errorUpdateCount,
|
|
1909
|
+
isFetched: p.dataUpdateCount > 0 || p.errorUpdateCount > 0,
|
|
1910
|
+
isFetchedAfterMount: p.dataUpdateCount > l.dataUpdateCount || p.errorUpdateCount > l.errorUpdateCount,
|
|
1911
|
+
isFetching: E,
|
|
1912
|
+
isRefetching: E && !I,
|
|
1913
|
+
isLoadingError: P && p.dataUpdatedAt === 0,
|
|
1826
1914
|
isPaused: k === "paused",
|
|
1827
|
-
isPlaceholderData:
|
|
1915
|
+
isPlaceholderData: w,
|
|
1828
1916
|
isPreviousData: F,
|
|
1829
|
-
isRefetchError:
|
|
1830
|
-
isStale:
|
|
1917
|
+
isRefetchError: P && p.dataUpdatedAt !== 0,
|
|
1918
|
+
isStale: Qe(e, t),
|
|
1831
1919
|
refetch: this.refetch,
|
|
1832
1920
|
remove: this.remove
|
|
1833
1921
|
};
|
|
1834
1922
|
}
|
|
1835
1923
|
updateResult(e) {
|
|
1836
1924
|
const t = this.currentResult, i = this.createResult(this.currentQuery, this.options);
|
|
1837
|
-
if (this.currentResultState = this.currentQuery.state, this.currentResultOptions = this.options,
|
|
1925
|
+
if (this.currentResultState = this.currentQuery.state, this.currentResultOptions = this.options, De(i, t))
|
|
1838
1926
|
return;
|
|
1839
1927
|
this.currentResult = i;
|
|
1840
1928
|
const a = {
|
|
@@ -1867,7 +1955,7 @@ class Ii extends Ve {
|
|
|
1867
1955
|
}
|
|
1868
1956
|
onQueryUpdate(e) {
|
|
1869
1957
|
const t = {};
|
|
1870
|
-
e.type === "success" ? t.onSuccess = !e.manual : e.type === "error" && !
|
|
1958
|
+
e.type === "success" ? t.onSuccess = !e.manual : e.type === "error" && !ji(e.error) && (t.onError = !0), this.updateResult(t), this.hasListeners() && this.updateTimers();
|
|
1871
1959
|
}
|
|
1872
1960
|
notify(e) {
|
|
1873
1961
|
te.batch(() => {
|
|
@@ -1889,42 +1977,42 @@ class Ii extends Ve {
|
|
|
1889
1977
|
});
|
|
1890
1978
|
}
|
|
1891
1979
|
}
|
|
1892
|
-
function
|
|
1980
|
+
function Bi(n, e) {
|
|
1893
1981
|
return e.enabled !== !1 && !n.state.dataUpdatedAt && !(n.state.status === "error" && e.retryOnMount === !1);
|
|
1894
1982
|
}
|
|
1895
|
-
function
|
|
1896
|
-
return
|
|
1983
|
+
function dt(n, e) {
|
|
1984
|
+
return Bi(n, e) || n.state.dataUpdatedAt > 0 && Le(n, e, e.refetchOnMount);
|
|
1897
1985
|
}
|
|
1898
|
-
function
|
|
1986
|
+
function Le(n, e, t) {
|
|
1899
1987
|
if (e.enabled !== !1) {
|
|
1900
1988
|
const i = typeof t == "function" ? t(n) : t;
|
|
1901
|
-
return i === "always" || i !== !1 &&
|
|
1989
|
+
return i === "always" || i !== !1 && Qe(n, e);
|
|
1902
1990
|
}
|
|
1903
1991
|
return !1;
|
|
1904
1992
|
}
|
|
1905
|
-
function
|
|
1906
|
-
return t.enabled !== !1 && (n !== e || i.enabled === !1) && (!t.suspense || n.state.status !== "error") &&
|
|
1993
|
+
function ut(n, e, t, i) {
|
|
1994
|
+
return t.enabled !== !1 && (n !== e || i.enabled === !1) && (!t.suspense || n.state.status !== "error") && Qe(n, t);
|
|
1907
1995
|
}
|
|
1908
|
-
function
|
|
1996
|
+
function Qe(n, e) {
|
|
1909
1997
|
return n.isStaleByTime(e.staleTime);
|
|
1910
1998
|
}
|
|
1911
|
-
function
|
|
1912
|
-
return t.keepPreviousData ? !1 : t.placeholderData !== void 0 ? e.isPlaceholderData : !
|
|
1999
|
+
function Qi(n, e, t) {
|
|
2000
|
+
return t.keepPreviousData ? !1 : t.placeholderData !== void 0 ? e.isPlaceholderData : !De(n.getCurrentResult(), e);
|
|
1913
2001
|
}
|
|
1914
|
-
const
|
|
1915
|
-
function
|
|
1916
|
-
return n || (e && typeof window != "undefined" ? (window.ReactQueryClientContext || (window.ReactQueryClientContext =
|
|
2002
|
+
const Ki = $t.useSyncExternalStore, ct = /* @__PURE__ */ M.createContext(void 0), Gi = /* @__PURE__ */ M.createContext(!1);
|
|
2003
|
+
function Wi(n, e) {
|
|
2004
|
+
return n || (e && typeof window != "undefined" ? (window.ReactQueryClientContext || (window.ReactQueryClientContext = ct), window.ReactQueryClientContext) : ct);
|
|
1917
2005
|
}
|
|
1918
|
-
const
|
|
2006
|
+
const Ji = ({
|
|
1919
2007
|
context: n
|
|
1920
2008
|
} = {}) => {
|
|
1921
|
-
const e =
|
|
2009
|
+
const e = M.useContext(Wi(n, M.useContext(Gi)));
|
|
1922
2010
|
if (!e)
|
|
1923
2011
|
throw new Error("No QueryClient set, use QueryClientProvider to set one");
|
|
1924
2012
|
return e;
|
|
1925
|
-
},
|
|
1926
|
-
|
|
1927
|
-
function
|
|
2013
|
+
}, qt = /* @__PURE__ */ M.createContext(!1), qi = () => M.useContext(qt);
|
|
2014
|
+
qt.Provider;
|
|
2015
|
+
function Hi() {
|
|
1928
2016
|
let n = !1;
|
|
1929
2017
|
return {
|
|
1930
2018
|
clearReset: () => {
|
|
@@ -1936,47 +2024,47 @@ function Bi() {
|
|
|
1936
2024
|
isReset: () => n
|
|
1937
2025
|
};
|
|
1938
2026
|
}
|
|
1939
|
-
const
|
|
1940
|
-
function
|
|
2027
|
+
const Zi = /* @__PURE__ */ M.createContext(Hi()), Xi = () => M.useContext(Zi);
|
|
2028
|
+
function Yi(n, e) {
|
|
1941
2029
|
return typeof n == "function" ? n(...e) : !!n;
|
|
1942
2030
|
}
|
|
1943
|
-
const
|
|
2031
|
+
const ea = (n, e) => {
|
|
1944
2032
|
(n.suspense || n.useErrorBoundary) && (e.isReset() || (n.retryOnMount = !1));
|
|
1945
|
-
},
|
|
1946
|
-
|
|
2033
|
+
}, ta = (n) => {
|
|
2034
|
+
M.useEffect(() => {
|
|
1947
2035
|
n.clearReset();
|
|
1948
2036
|
}, [n]);
|
|
1949
|
-
},
|
|
2037
|
+
}, na = ({
|
|
1950
2038
|
result: n,
|
|
1951
2039
|
errorResetBoundary: e,
|
|
1952
2040
|
useErrorBoundary: t,
|
|
1953
2041
|
query: i
|
|
1954
|
-
}) => n.isError && !e.isReset() && !n.isFetching &&
|
|
2042
|
+
}) => n.isError && !e.isReset() && !n.isFetching && Yi(t, [n.error, i]), ia = (n) => {
|
|
1955
2043
|
n.suspense && typeof n.staleTime != "number" && (n.staleTime = 1e3);
|
|
1956
|
-
},
|
|
2044
|
+
}, aa = (n, e) => n.isLoading && n.isFetching && !e, sa = (n, e, t) => (n == null ? void 0 : n.suspense) && aa(e, t), ra = (n, e, t) => e.fetchOptimistic(n).then(({
|
|
1957
2045
|
data: i
|
|
1958
2046
|
}) => {
|
|
1959
2047
|
n.onSuccess == null || n.onSuccess(i), n.onSettled == null || n.onSettled(i, null);
|
|
1960
2048
|
}).catch((i) => {
|
|
1961
2049
|
t.clearReset(), n.onError == null || n.onError(i), n.onSettled == null || n.onSettled(void 0, i);
|
|
1962
2050
|
});
|
|
1963
|
-
function
|
|
1964
|
-
const t =
|
|
2051
|
+
function oa(n, e) {
|
|
2052
|
+
const t = Ji({
|
|
1965
2053
|
context: n.context
|
|
1966
|
-
}), i =
|
|
1967
|
-
s._optimisticResults = i ? "isRestoring" : "optimistic", s.onError && (s.onError = te.batchCalls(s.onError)), s.onSuccess && (s.onSuccess = te.batchCalls(s.onSuccess)), s.onSettled && (s.onSettled = te.batchCalls(s.onSettled)),
|
|
1968
|
-
const [r] =
|
|
1969
|
-
if (
|
|
2054
|
+
}), i = qi(), a = Xi(), s = t.defaultQueryOptions(n);
|
|
2055
|
+
s._optimisticResults = i ? "isRestoring" : "optimistic", s.onError && (s.onError = te.batchCalls(s.onError)), s.onSuccess && (s.onSuccess = te.batchCalls(s.onSuccess)), s.onSettled && (s.onSettled = te.batchCalls(s.onSettled)), ia(s), ea(s, a), ta(a);
|
|
2056
|
+
const [r] = M.useState(() => new e(t, s)), o = r.getOptimisticResult(s);
|
|
2057
|
+
if (Ki(M.useCallback((d) => {
|
|
1970
2058
|
const l = i ? () => {
|
|
1971
2059
|
} : r.subscribe(te.batchCalls(d));
|
|
1972
2060
|
return r.updateResult(), l;
|
|
1973
|
-
}, [r, i]), () => r.getCurrentResult(), () => r.getCurrentResult()),
|
|
2061
|
+
}, [r, i]), () => r.getCurrentResult(), () => r.getCurrentResult()), M.useEffect(() => {
|
|
1974
2062
|
r.setOptions(s, {
|
|
1975
2063
|
listeners: !1
|
|
1976
2064
|
});
|
|
1977
|
-
}, [s, r]),
|
|
1978
|
-
throw
|
|
1979
|
-
if (
|
|
2065
|
+
}, [s, r]), sa(s, o, i))
|
|
2066
|
+
throw ra(s, r, a);
|
|
2067
|
+
if (na({
|
|
1980
2068
|
result: o,
|
|
1981
2069
|
errorResetBoundary: a,
|
|
1982
2070
|
useErrorBoundary: s.useErrorBoundary,
|
|
@@ -1985,30 +2073,30 @@ function ea(n, e) {
|
|
|
1985
2073
|
throw o.error;
|
|
1986
2074
|
return s.notifyOnChangeProps ? o : r.trackResult(o);
|
|
1987
2075
|
}
|
|
1988
|
-
function
|
|
1989
|
-
const i =
|
|
1990
|
-
return
|
|
2076
|
+
function la(n, e, t) {
|
|
2077
|
+
const i = Di(n, e, t);
|
|
2078
|
+
return oa(i, zi);
|
|
1991
2079
|
}
|
|
1992
|
-
const
|
|
1993
|
-
const { accountName: n } =
|
|
2080
|
+
const da = () => ["account"], qs = () => {
|
|
2081
|
+
const { accountName: n } = Zn(je.state), [e, t] = yn(Ve), i = la(da(), () => Wt.get(n), {
|
|
1994
2082
|
enabled: !!n && !e,
|
|
1995
2083
|
refetchOnWindowFocus: !1,
|
|
1996
2084
|
refetchOnMount: !1
|
|
1997
2085
|
});
|
|
1998
|
-
return
|
|
2086
|
+
return Se(() => {
|
|
1999
2087
|
const a = i.data;
|
|
2000
2088
|
!i.isSuccess || !a || t(a);
|
|
2001
2089
|
}, [i.status]), {
|
|
2002
2090
|
findQuery: i,
|
|
2003
2091
|
account: e
|
|
2004
2092
|
};
|
|
2005
|
-
},
|
|
2006
|
-
async function
|
|
2007
|
-
const e = await
|
|
2008
|
-
return
|
|
2093
|
+
}, ua = Dt();
|
|
2094
|
+
async function ca(n) {
|
|
2095
|
+
const e = await Wt.get(n);
|
|
2096
|
+
return ua.set(Ve, e), e;
|
|
2009
2097
|
}
|
|
2010
|
-
var
|
|
2011
|
-
const
|
|
2098
|
+
var ma = /* @__PURE__ */ ((n) => (n.CREATED = "CREATED", n.STARTING = "STARTING", n.LIVE = "LIVE", n.FINALIZED = "FINALIZED", n))(ma || {});
|
|
2099
|
+
const Hs = {
|
|
2012
2100
|
ALL: "*",
|
|
2013
2101
|
CORE: "core:**",
|
|
2014
2102
|
LIVE_STREAMING_EVENT: "event:**",
|
|
@@ -2020,11 +2108,11 @@ const Bs = {
|
|
|
2020
2108
|
SNACK_SIZE_VIDEO_ADMIN: "ssv-admin:**",
|
|
2021
2109
|
UI: "ui:**",
|
|
2022
2110
|
UTILS: "utils:**"
|
|
2023
|
-
},
|
|
2111
|
+
}, Zs = {
|
|
2024
2112
|
EVENT_STATUS_CHANGED: "event:statusChanged"
|
|
2025
2113
|
};
|
|
2026
|
-
var
|
|
2027
|
-
const
|
|
2114
|
+
var fa = /* @__PURE__ */ ((n) => (n.English = "en", n.Spanish = "es", n.Portuguese = "pt", n))(fa || {}), pa = /* @__PURE__ */ ((n) => (n.COMBO = "Combo", n))(pa || {}), ha = /* @__PURE__ */ ((n) => (n.VTEX = "VTEX", n.PLATFORM = "platform", n.CACE = "CACE", n.GLOBAL_PAGE = "globalPage", n.DEV_LOCAL = "dev:local", n.CUSTOMIZATION = "customization", n))(ha || {});
|
|
2115
|
+
const ga = {
|
|
2028
2116
|
type: "logger",
|
|
2029
2117
|
log(n) {
|
|
2030
2118
|
this.output("log", n);
|
|
@@ -2039,14 +2127,14 @@ const da = {
|
|
|
2039
2127
|
console && console[n] && console[n].apply(console, e);
|
|
2040
2128
|
}
|
|
2041
2129
|
};
|
|
2042
|
-
class
|
|
2130
|
+
class pe {
|
|
2043
2131
|
constructor(e) {
|
|
2044
2132
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
2045
2133
|
this.init(e, t);
|
|
2046
2134
|
}
|
|
2047
2135
|
init(e) {
|
|
2048
2136
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
2049
|
-
this.prefix = t.prefix || "i18next:", this.logger = e ||
|
|
2137
|
+
this.prefix = t.prefix || "i18next:", this.logger = e || ga, this.options = t, this.debug = t.debug;
|
|
2050
2138
|
}
|
|
2051
2139
|
log() {
|
|
2052
2140
|
for (var e = arguments.length, t = new Array(e), i = 0; i < e; i++)
|
|
@@ -2072,17 +2160,17 @@ class ce {
|
|
|
2072
2160
|
return a && !this.debug ? null : (typeof e[0] == "string" && (e[0] = `${i}${this.prefix} ${e[0]}`), this.logger[t](e));
|
|
2073
2161
|
}
|
|
2074
2162
|
create(e) {
|
|
2075
|
-
return new
|
|
2163
|
+
return new pe(this.logger, {
|
|
2076
2164
|
prefix: `${this.prefix}:${e}:`,
|
|
2077
2165
|
...this.options
|
|
2078
2166
|
});
|
|
2079
2167
|
}
|
|
2080
2168
|
clone(e) {
|
|
2081
|
-
return e = e || this.options, e.prefix = e.prefix || this.prefix, new
|
|
2169
|
+
return e = e || this.options, e.prefix = e.prefix || this.prefix, new pe(this.logger, e);
|
|
2082
2170
|
}
|
|
2083
2171
|
}
|
|
2084
|
-
var
|
|
2085
|
-
class
|
|
2172
|
+
var j = new pe();
|
|
2173
|
+
class Ne {
|
|
2086
2174
|
constructor() {
|
|
2087
2175
|
this.observers = {};
|
|
2088
2176
|
}
|
|
@@ -2110,22 +2198,22 @@ class ke {
|
|
|
2110
2198
|
});
|
|
2111
2199
|
}
|
|
2112
2200
|
}
|
|
2113
|
-
function
|
|
2201
|
+
function H() {
|
|
2114
2202
|
let n, e;
|
|
2115
2203
|
const t = new Promise((i, a) => {
|
|
2116
2204
|
n = i, e = a;
|
|
2117
2205
|
});
|
|
2118
2206
|
return t.resolve = n, t.reject = e, t;
|
|
2119
2207
|
}
|
|
2120
|
-
function
|
|
2208
|
+
function mt(n) {
|
|
2121
2209
|
return n == null ? "" : "" + n;
|
|
2122
2210
|
}
|
|
2123
|
-
function
|
|
2211
|
+
function ka(n, e, t) {
|
|
2124
2212
|
n.forEach((i) => {
|
|
2125
2213
|
e[i] && (t[i] = e[i]);
|
|
2126
2214
|
});
|
|
2127
2215
|
}
|
|
2128
|
-
function
|
|
2216
|
+
function Ke(n, e, t) {
|
|
2129
2217
|
function i(r) {
|
|
2130
2218
|
return r && r.indexOf("###") > -1 ? r.replace(/###/g, ".") : r;
|
|
2131
2219
|
}
|
|
@@ -2144,41 +2232,41 @@ function Ue(n, e, t) {
|
|
|
2144
2232
|
k: i(s.shift())
|
|
2145
2233
|
};
|
|
2146
2234
|
}
|
|
2147
|
-
function
|
|
2235
|
+
function ft(n, e, t) {
|
|
2148
2236
|
const {
|
|
2149
2237
|
obj: i,
|
|
2150
2238
|
k: a
|
|
2151
|
-
} =
|
|
2239
|
+
} = Ke(n, e, Object);
|
|
2152
2240
|
i[a] = t;
|
|
2153
2241
|
}
|
|
2154
|
-
function
|
|
2242
|
+
function va(n, e, t, i) {
|
|
2155
2243
|
const {
|
|
2156
2244
|
obj: a,
|
|
2157
2245
|
k: s
|
|
2158
|
-
} =
|
|
2246
|
+
} = Ke(n, e, Object);
|
|
2159
2247
|
a[s] = a[s] || [], i && (a[s] = a[s].concat(t)), i || a[s].push(t);
|
|
2160
2248
|
}
|
|
2161
|
-
function
|
|
2249
|
+
function he(n, e) {
|
|
2162
2250
|
const {
|
|
2163
2251
|
obj: t,
|
|
2164
2252
|
k: i
|
|
2165
|
-
} =
|
|
2253
|
+
} = Ke(n, e);
|
|
2166
2254
|
if (t)
|
|
2167
2255
|
return t[i];
|
|
2168
2256
|
}
|
|
2169
|
-
function
|
|
2170
|
-
const i =
|
|
2171
|
-
return i !== void 0 ? i :
|
|
2257
|
+
function Sa(n, e, t) {
|
|
2258
|
+
const i = he(n, t);
|
|
2259
|
+
return i !== void 0 ? i : he(e, t);
|
|
2172
2260
|
}
|
|
2173
|
-
function
|
|
2261
|
+
function Ht(n, e, t) {
|
|
2174
2262
|
for (const i in e)
|
|
2175
|
-
i !== "__proto__" && i !== "constructor" && (i in n ? typeof n[i] == "string" || n[i] instanceof String || typeof e[i] == "string" || e[i] instanceof String ? t && (n[i] = e[i]) :
|
|
2263
|
+
i !== "__proto__" && i !== "constructor" && (i in n ? typeof n[i] == "string" || n[i] instanceof String || typeof e[i] == "string" || e[i] instanceof String ? t && (n[i] = e[i]) : Ht(n[i], e[i], t) : n[i] = e[i]);
|
|
2176
2264
|
return n;
|
|
2177
2265
|
}
|
|
2178
|
-
function
|
|
2266
|
+
function Q(n) {
|
|
2179
2267
|
return n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
|
|
2180
2268
|
}
|
|
2181
|
-
var
|
|
2269
|
+
var ya = {
|
|
2182
2270
|
"&": "&",
|
|
2183
2271
|
"<": "<",
|
|
2184
2272
|
">": ">",
|
|
@@ -2186,13 +2274,13 @@ var fa = {
|
|
|
2186
2274
|
"'": "'",
|
|
2187
2275
|
"/": "/"
|
|
2188
2276
|
};
|
|
2189
|
-
function
|
|
2190
|
-
return typeof n == "string" ? n.replace(/[&<>"'\/]/g, (e) =>
|
|
2277
|
+
function Na(n) {
|
|
2278
|
+
return typeof n == "string" ? n.replace(/[&<>"'\/]/g, (e) => ya[e]) : n;
|
|
2191
2279
|
}
|
|
2192
|
-
const
|
|
2193
|
-
function
|
|
2280
|
+
const ba = [" ", ",", "?", "!", ";"];
|
|
2281
|
+
function Fa(n, e, t) {
|
|
2194
2282
|
e = e || "", t = t || "";
|
|
2195
|
-
const i =
|
|
2283
|
+
const i = ba.filter((r) => e.indexOf(r) < 0 && t.indexOf(r) < 0);
|
|
2196
2284
|
if (i.length === 0)
|
|
2197
2285
|
return !0;
|
|
2198
2286
|
const a = new RegExp(`(${i.map((r) => r === "?" ? "\\?" : r).join("|")})`);
|
|
@@ -2203,7 +2291,7 @@ function ga(n, e, t) {
|
|
|
2203
2291
|
}
|
|
2204
2292
|
return s;
|
|
2205
2293
|
}
|
|
2206
|
-
function
|
|
2294
|
+
function ge(n, e) {
|
|
2207
2295
|
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ".";
|
|
2208
2296
|
if (!n)
|
|
2209
2297
|
return;
|
|
@@ -2229,16 +2317,16 @@ function fe(n, e) {
|
|
|
2229
2317
|
return d[o];
|
|
2230
2318
|
}
|
|
2231
2319
|
const l = i.slice(s + r).join(t);
|
|
2232
|
-
return l ?
|
|
2320
|
+
return l ? ge(d, l, t) : void 0;
|
|
2233
2321
|
}
|
|
2234
2322
|
a = a[i[s]];
|
|
2235
2323
|
}
|
|
2236
2324
|
return a;
|
|
2237
2325
|
}
|
|
2238
|
-
function
|
|
2326
|
+
function ke(n) {
|
|
2239
2327
|
return n && n.indexOf("_") > 0 ? n.replace("_", "-") : n;
|
|
2240
2328
|
}
|
|
2241
|
-
class
|
|
2329
|
+
class pt extends Ne {
|
|
2242
2330
|
constructor(e) {
|
|
2243
2331
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
2244
2332
|
ns: ["translation"],
|
|
@@ -2258,8 +2346,8 @@ class ct extends ke {
|
|
|
2258
2346
|
const s = a.keySeparator !== void 0 ? a.keySeparator : this.options.keySeparator, r = a.ignoreJSONStructure !== void 0 ? a.ignoreJSONStructure : this.options.ignoreJSONStructure;
|
|
2259
2347
|
let o = [e, t];
|
|
2260
2348
|
i && typeof i != "string" && (o = o.concat(i)), i && typeof i == "string" && (o = o.concat(s ? i.split(s) : i)), e.indexOf(".") > -1 && (o = e.split("."));
|
|
2261
|
-
const d =
|
|
2262
|
-
return d || !r || typeof i != "string" ? d :
|
|
2349
|
+
const d = he(this.data, o);
|
|
2350
|
+
return d || !r || typeof i != "string" ? d : ge(this.data && this.data[e] && this.data[e][t], i, s);
|
|
2263
2351
|
}
|
|
2264
2352
|
addResource(e, t, i, a) {
|
|
2265
2353
|
let s = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
|
|
@@ -2267,7 +2355,7 @@ class ct extends ke {
|
|
|
2267
2355
|
};
|
|
2268
2356
|
const r = s.keySeparator !== void 0 ? s.keySeparator : this.options.keySeparator;
|
|
2269
2357
|
let o = [e, t];
|
|
2270
|
-
i && (o = o.concat(r ? i.split(r) : i)), e.indexOf(".") > -1 && (o = e.split("."), a = t, t = o[1]), this.addNamespaces(t),
|
|
2358
|
+
i && (o = o.concat(r ? i.split(r) : i)), e.indexOf(".") > -1 && (o = e.split("."), a = t, t = o[1]), this.addNamespaces(t), ft(this.data, o, a), s.silent || this.emit("added", e, t, i, a);
|
|
2271
2359
|
}
|
|
2272
2360
|
addResources(e, t, i) {
|
|
2273
2361
|
let a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {
|
|
@@ -2284,11 +2372,11 @@ class ct extends ke {
|
|
|
2284
2372
|
silent: !1
|
|
2285
2373
|
}, o = [e, t];
|
|
2286
2374
|
e.indexOf(".") > -1 && (o = e.split("."), a = i, i = t, t = o[1]), this.addNamespaces(t);
|
|
2287
|
-
let d =
|
|
2288
|
-
a ?
|
|
2375
|
+
let d = he(this.data, o) || {};
|
|
2376
|
+
a ? Ht(d, i, s) : d = {
|
|
2289
2377
|
...d,
|
|
2290
2378
|
...i
|
|
2291
|
-
},
|
|
2379
|
+
}, ft(this.data, o, d), r.silent || this.emit("added", e, t, i);
|
|
2292
2380
|
}
|
|
2293
2381
|
removeResourceBundle(e, t) {
|
|
2294
2382
|
this.hasResourceBundle(e, t) && delete this.data[e][t], this.removeNamespaces(t), this.emit("removed", e, t);
|
|
@@ -2312,7 +2400,7 @@ class ct extends ke {
|
|
|
2312
2400
|
return this.data;
|
|
2313
2401
|
}
|
|
2314
2402
|
}
|
|
2315
|
-
var
|
|
2403
|
+
var Zt = {
|
|
2316
2404
|
processors: {},
|
|
2317
2405
|
addPostProcessor(n) {
|
|
2318
2406
|
this.processors[n.name] = n;
|
|
@@ -2323,11 +2411,11 @@ var Wt = {
|
|
|
2323
2411
|
}), e;
|
|
2324
2412
|
}
|
|
2325
2413
|
};
|
|
2326
|
-
const
|
|
2327
|
-
class
|
|
2414
|
+
const ht = {};
|
|
2415
|
+
class ve extends Ne {
|
|
2328
2416
|
constructor(e) {
|
|
2329
2417
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
2330
|
-
super(),
|
|
2418
|
+
super(), ka(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = j.create("translator");
|
|
2331
2419
|
}
|
|
2332
2420
|
changeLanguage(e) {
|
|
2333
2421
|
e && (this.language = e);
|
|
@@ -2346,7 +2434,7 @@ class he extends ke {
|
|
|
2346
2434
|
i === void 0 && (i = ":");
|
|
2347
2435
|
const a = t.keySeparator !== void 0 ? t.keySeparator : this.options.keySeparator;
|
|
2348
2436
|
let s = t.ns || this.options.defaultNS || [];
|
|
2349
|
-
const r = i && e.indexOf(i) > -1, o = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !
|
|
2437
|
+
const r = i && e.indexOf(i) > -1, o = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !Fa(e, i, a);
|
|
2350
2438
|
if (r && !o) {
|
|
2351
2439
|
const d = e.match(this.interpolator.nestingRegexp);
|
|
2352
2440
|
if (d && d.length > 0)
|
|
@@ -2374,15 +2462,15 @@ class he extends ke {
|
|
|
2374
2462
|
} = this.extractFromKey(e[e.length - 1], t), d = o[o.length - 1], l = t.lng || this.language, u = t.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
|
|
2375
2463
|
if (l && l.toLowerCase() === "cimode") {
|
|
2376
2464
|
if (u) {
|
|
2377
|
-
const
|
|
2465
|
+
const E = t.nsSeparator || this.options.nsSeparator;
|
|
2378
2466
|
return a ? {
|
|
2379
|
-
res: `${d}${
|
|
2467
|
+
res: `${d}${E}${r}`,
|
|
2380
2468
|
usedKey: r,
|
|
2381
2469
|
exactUsedKey: r,
|
|
2382
2470
|
usedLng: l,
|
|
2383
2471
|
usedNS: d,
|
|
2384
2472
|
usedParams: this.getUsedParamsDetails(t)
|
|
2385
|
-
} : `${d}${
|
|
2473
|
+
} : `${d}${E}${r}`;
|
|
2386
2474
|
}
|
|
2387
2475
|
return a ? {
|
|
2388
2476
|
res: r,
|
|
@@ -2393,68 +2481,68 @@ class he extends ke {
|
|
|
2393
2481
|
usedParams: this.getUsedParamsDetails(t)
|
|
2394
2482
|
} : r;
|
|
2395
2483
|
}
|
|
2396
|
-
const
|
|
2397
|
-
let c =
|
|
2398
|
-
const
|
|
2399
|
-
if (
|
|
2484
|
+
const p = this.resolve(e, t);
|
|
2485
|
+
let c = p && p.res;
|
|
2486
|
+
const v = p && p.usedKey || r, S = p && p.exactUsedKey || r, k = Object.prototype.toString.apply(c), y = ["[object Number]", "[object Function]", "[object RegExp]"], F = t.joinArrays !== void 0 ? t.joinArrays : this.options.joinArrays, w = !this.i18nFormat || this.i18nFormat.handleAsObject;
|
|
2487
|
+
if (w && c && (typeof c != "string" && typeof c != "boolean" && typeof c != "number") && y.indexOf(k) < 0 && !(typeof F == "string" && k === "[object Array]")) {
|
|
2400
2488
|
if (!t.returnObjects && !this.options.returnObjects) {
|
|
2401
2489
|
this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
|
2402
|
-
const
|
|
2490
|
+
const E = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(v, c, {
|
|
2403
2491
|
...t,
|
|
2404
2492
|
ns: o
|
|
2405
2493
|
}) : `key '${r} (${this.language})' returned an object instead of string.`;
|
|
2406
|
-
return a ? (
|
|
2494
|
+
return a ? (p.res = E, p.usedParams = this.getUsedParamsDetails(t), p) : E;
|
|
2407
2495
|
}
|
|
2408
2496
|
if (s) {
|
|
2409
|
-
const
|
|
2410
|
-
for (const
|
|
2411
|
-
if (Object.prototype.hasOwnProperty.call(c,
|
|
2412
|
-
const
|
|
2413
|
-
|
|
2497
|
+
const E = k === "[object Array]", I = E ? [] : {}, P = E ? S : v;
|
|
2498
|
+
for (const A in c)
|
|
2499
|
+
if (Object.prototype.hasOwnProperty.call(c, A)) {
|
|
2500
|
+
const f = `${P}${s}${A}`;
|
|
2501
|
+
I[A] = this.translate(f, {
|
|
2414
2502
|
...t,
|
|
2415
2503
|
joinArrays: !1,
|
|
2416
2504
|
ns: o
|
|
2417
|
-
}),
|
|
2505
|
+
}), I[A] === f && (I[A] = c[A]);
|
|
2418
2506
|
}
|
|
2419
|
-
c =
|
|
2507
|
+
c = I;
|
|
2420
2508
|
}
|
|
2421
|
-
} else if (
|
|
2509
|
+
} else if (w && typeof F == "string" && k === "[object Array]")
|
|
2422
2510
|
c = c.join(F), c && (c = this.extendTranslation(c, e, t, i));
|
|
2423
2511
|
else {
|
|
2424
|
-
let
|
|
2425
|
-
const
|
|
2512
|
+
let E = !1, I = !1;
|
|
2513
|
+
const P = t.count !== void 0 && typeof t.count != "string", A = ve.hasDefaultValue(t), f = P ? this.pluralResolver.getSuffix(l, t.count, t) : "", m = t.ordinal && P ? this.pluralResolver.getSuffix(l, t.count, {
|
|
2426
2514
|
ordinal: !1
|
|
2427
|
-
}) : "", g = t[`defaultValue${
|
|
2428
|
-
!this.isValidLookup(c) &&
|
|
2429
|
-
const N = (t.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) &&
|
|
2430
|
-
if (
|
|
2431
|
-
if (this.logger.log(
|
|
2432
|
-
const
|
|
2515
|
+
}) : "", g = t[`defaultValue${f}`] || t[`defaultValue${m}`] || t.defaultValue;
|
|
2516
|
+
!this.isValidLookup(c) && A && (E = !0, c = g), this.isValidLookup(c) || (I = !0, c = r);
|
|
2517
|
+
const N = (t.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && I ? void 0 : c, C = A && g !== c && this.options.updateMissing;
|
|
2518
|
+
if (I || E || C) {
|
|
2519
|
+
if (this.logger.log(C ? "updateKey" : "missingKey", l, d, r, C ? g : c), s) {
|
|
2520
|
+
const R = this.resolve(r, {
|
|
2433
2521
|
...t,
|
|
2434
2522
|
keySeparator: !1
|
|
2435
2523
|
});
|
|
2436
|
-
|
|
2524
|
+
R && R.res && this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");
|
|
2437
2525
|
}
|
|
2438
2526
|
let b = [];
|
|
2439
|
-
const
|
|
2440
|
-
if (this.options.saveMissingTo === "fallback" &&
|
|
2441
|
-
for (let
|
|
2442
|
-
b.push(R
|
|
2527
|
+
const O = this.languageUtils.getFallbackCodes(this.options.fallbackLng, t.lng || this.language);
|
|
2528
|
+
if (this.options.saveMissingTo === "fallback" && O && O[0])
|
|
2529
|
+
for (let R = 0; R < O.length; R++)
|
|
2530
|
+
b.push(O[R]);
|
|
2443
2531
|
else
|
|
2444
2532
|
this.options.saveMissingTo === "all" ? b = this.languageUtils.toResolveHierarchy(t.lng || this.language) : b.push(t.lng || this.language);
|
|
2445
|
-
const
|
|
2446
|
-
const
|
|
2447
|
-
this.options.missingKeyHandler ? this.options.missingKeyHandler(
|
|
2533
|
+
const T = (R, D, V) => {
|
|
2534
|
+
const se = A && V !== c ? V : N;
|
|
2535
|
+
this.options.missingKeyHandler ? this.options.missingKeyHandler(R, d, D, se, C, t) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(R, d, D, se, C, t), this.emit("missingKey", R, d, D, c);
|
|
2448
2536
|
};
|
|
2449
|
-
this.options.saveMissing && (this.options.saveMissingPlurals &&
|
|
2450
|
-
this.pluralResolver.getSuffixes(
|
|
2451
|
-
|
|
2537
|
+
this.options.saveMissing && (this.options.saveMissingPlurals && P ? b.forEach((R) => {
|
|
2538
|
+
this.pluralResolver.getSuffixes(R, t).forEach((D) => {
|
|
2539
|
+
T([R], r + D, t[`defaultValue${D}`] || g);
|
|
2452
2540
|
});
|
|
2453
|
-
}) :
|
|
2541
|
+
}) : T(b, r, g));
|
|
2454
2542
|
}
|
|
2455
|
-
c = this.extendTranslation(c, e, t,
|
|
2543
|
+
c = this.extendTranslation(c, e, t, p, i), I && c === r && this.options.appendNamespaceToMissingKey && (c = `${d}:${r}`), (I || E) && this.options.parseMissingKeyHandler && (this.options.compatibilityAPI !== "v1" ? c = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${d}:${r}` : r, E ? c : void 0) : c = this.options.parseMissingKeyHandler(c));
|
|
2456
2544
|
}
|
|
2457
|
-
return a ? (
|
|
2545
|
+
return a ? (p.res = c, p.usedParams = this.getUsedParamsDetails(t), p) : c;
|
|
2458
2546
|
}
|
|
2459
2547
|
extendTranslation(e, t, i, a, s) {
|
|
2460
2548
|
var r = this;
|
|
@@ -2479,23 +2567,26 @@ class he extends ke {
|
|
|
2479
2567
|
const c = e.match(this.interpolator.nestingRegexp);
|
|
2480
2568
|
u = c && c.length;
|
|
2481
2569
|
}
|
|
2482
|
-
let
|
|
2483
|
-
if (this.options.interpolation.defaultVariables && (
|
|
2570
|
+
let p = i.replace && typeof i.replace != "string" ? i.replace : i;
|
|
2571
|
+
if (this.options.interpolation.defaultVariables && (p = {
|
|
2484
2572
|
...this.options.interpolation.defaultVariables,
|
|
2485
|
-
...
|
|
2486
|
-
}), e = this.interpolator.interpolate(e,
|
|
2487
|
-
const c = e.match(this.interpolator.nestingRegexp),
|
|
2488
|
-
u <
|
|
2573
|
+
...p
|
|
2574
|
+
}), e = this.interpolator.interpolate(e, p, i.lng || this.language, i), l) {
|
|
2575
|
+
const c = e.match(this.interpolator.nestingRegexp), v = c && c.length;
|
|
2576
|
+
u < v && (i.nest = !1);
|
|
2489
2577
|
}
|
|
2490
2578
|
!i.lng && this.options.compatibilityAPI !== "v1" && a && a.res && (i.lng = a.usedLng), i.nest !== !1 && (e = this.interpolator.nest(e, function() {
|
|
2491
|
-
for (var c = arguments.length,
|
|
2492
|
-
|
|
2493
|
-
return s && s[0] ===
|
|
2579
|
+
for (var c = arguments.length, v = new Array(c), S = 0; S < c; S++)
|
|
2580
|
+
v[S] = arguments[S];
|
|
2581
|
+
return s && s[0] === v[0] && !i.context ? (r.logger.warn(`It seems you are nesting recursively key: ${v[0]} in key: ${t[0]}`), null) : r.translate(...v, t);
|
|
2494
2582
|
}, i)), i.interpolation && this.interpolator.reset();
|
|
2495
2583
|
}
|
|
2496
2584
|
const o = i.postProcess || this.options.postProcess, d = typeof o == "string" ? [o] : o;
|
|
2497
|
-
return e != null && d && d.length && i.applyPostProcessor !== !1 && (e =
|
|
2498
|
-
i18nResolved:
|
|
2585
|
+
return e != null && d && d.length && i.applyPostProcessor !== !1 && (e = Zt.handle(d, e, t, this.options && this.options.postProcessPassResolved ? {
|
|
2586
|
+
i18nResolved: {
|
|
2587
|
+
...a,
|
|
2588
|
+
usedParams: this.getUsedParamsDetails(i)
|
|
2589
|
+
},
|
|
2499
2590
|
...i
|
|
2500
2591
|
} : i, this)), e;
|
|
2501
2592
|
}
|
|
@@ -2506,29 +2597,29 @@ class he extends ke {
|
|
|
2506
2597
|
return;
|
|
2507
2598
|
const l = this.extractFromKey(d, t), u = l.key;
|
|
2508
2599
|
a = u;
|
|
2509
|
-
let
|
|
2510
|
-
this.options.fallbackNS && (
|
|
2511
|
-
const c = t.count !== void 0 && typeof t.count != "string",
|
|
2512
|
-
|
|
2513
|
-
this.isValidLookup(i) || (o =
|
|
2600
|
+
let p = l.namespaces;
|
|
2601
|
+
this.options.fallbackNS && (p = p.concat(this.options.fallbackNS));
|
|
2602
|
+
const c = t.count !== void 0 && typeof t.count != "string", v = c && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(), S = t.context !== void 0 && (typeof t.context == "string" || typeof t.context == "number") && t.context !== "", k = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
|
|
2603
|
+
p.forEach((y) => {
|
|
2604
|
+
this.isValidLookup(i) || (o = y, !ht[`${k[0]}-${y}`] && this.utils && this.utils.hasLoadedNamespace && !this.utils.hasLoadedNamespace(o) && (ht[`${k[0]}-${y}`] = !0, this.logger.warn(`key "${a}" for languages "${k.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), k.forEach((F) => {
|
|
2514
2605
|
if (this.isValidLookup(i))
|
|
2515
2606
|
return;
|
|
2516
2607
|
r = F;
|
|
2517
|
-
const
|
|
2608
|
+
const w = [u];
|
|
2518
2609
|
if (this.i18nFormat && this.i18nFormat.addLookupKeys)
|
|
2519
|
-
this.i18nFormat.addLookupKeys(
|
|
2610
|
+
this.i18nFormat.addLookupKeys(w, u, F, y, t);
|
|
2520
2611
|
else {
|
|
2521
|
-
let
|
|
2522
|
-
c && (
|
|
2523
|
-
const
|
|
2524
|
-
if (c && (
|
|
2525
|
-
const
|
|
2526
|
-
|
|
2612
|
+
let E;
|
|
2613
|
+
c && (E = this.pluralResolver.getSuffix(F, t.count, t));
|
|
2614
|
+
const I = `${this.options.pluralSeparator}zero`, P = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
|
|
2615
|
+
if (c && (w.push(u + E), t.ordinal && E.indexOf(P) === 0 && w.push(u + E.replace(P, this.options.pluralSeparator)), v && w.push(u + I)), S) {
|
|
2616
|
+
const A = `${u}${this.options.contextSeparator}${t.context}`;
|
|
2617
|
+
w.push(A), c && (w.push(A + E), t.ordinal && E.indexOf(P) === 0 && w.push(A + E.replace(P, this.options.pluralSeparator)), v && w.push(A + I));
|
|
2527
2618
|
}
|
|
2528
2619
|
}
|
|
2529
2620
|
let L;
|
|
2530
|
-
for (; L =
|
|
2531
|
-
this.isValidLookup(i) || (s = L, i = this.getResource(F,
|
|
2621
|
+
for (; L = w.pop(); )
|
|
2622
|
+
this.isValidLookup(i) || (s = L, i = this.getResource(F, y, L, t));
|
|
2532
2623
|
}));
|
|
2533
2624
|
});
|
|
2534
2625
|
}), {
|
|
@@ -2570,21 +2661,21 @@ class he extends ke {
|
|
|
2570
2661
|
return !1;
|
|
2571
2662
|
}
|
|
2572
2663
|
}
|
|
2573
|
-
function
|
|
2664
|
+
function Oe(n) {
|
|
2574
2665
|
return n.charAt(0).toUpperCase() + n.slice(1);
|
|
2575
2666
|
}
|
|
2576
|
-
class
|
|
2667
|
+
class gt {
|
|
2577
2668
|
constructor(e) {
|
|
2578
|
-
this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger =
|
|
2669
|
+
this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = j.create("languageUtils");
|
|
2579
2670
|
}
|
|
2580
2671
|
getScriptPartFromCode(e) {
|
|
2581
|
-
if (e =
|
|
2672
|
+
if (e = ke(e), !e || e.indexOf("-") < 0)
|
|
2582
2673
|
return null;
|
|
2583
2674
|
const t = e.split("-");
|
|
2584
2675
|
return t.length === 2 || (t.pop(), t[t.length - 1].toLowerCase() === "x") ? null : this.formatLanguageCode(t.join("-"));
|
|
2585
2676
|
}
|
|
2586
2677
|
getLanguagePartFromCode(e) {
|
|
2587
|
-
if (e =
|
|
2678
|
+
if (e = ke(e), !e || e.indexOf("-") < 0)
|
|
2588
2679
|
return e;
|
|
2589
2680
|
const t = e.split("-");
|
|
2590
2681
|
return this.formatLanguageCode(t[0]);
|
|
@@ -2593,7 +2684,7 @@ class ft {
|
|
|
2593
2684
|
if (typeof e == "string" && e.indexOf("-") > -1) {
|
|
2594
2685
|
const t = ["hans", "hant", "latn", "cyrl", "cans", "mong", "arab"];
|
|
2595
2686
|
let i = e.split("-");
|
|
2596
|
-
return this.options.lowerCaseLng ? i = i.map((a) => a.toLowerCase()) : i.length === 2 ? (i[0] = i[0].toLowerCase(), i[1] = i[1].toUpperCase(), t.indexOf(i[1].toLowerCase()) > -1 && (i[1] =
|
|
2687
|
+
return this.options.lowerCaseLng ? i = i.map((a) => a.toLowerCase()) : i.length === 2 ? (i[0] = i[0].toLowerCase(), i[1] = i[1].toUpperCase(), t.indexOf(i[1].toLowerCase()) > -1 && (i[1] = Oe(i[1].toLowerCase()))) : i.length === 3 && (i[0] = i[0].toLowerCase(), i[1].length === 2 && (i[1] = i[1].toUpperCase()), i[0] !== "sgn" && i[2].length === 2 && (i[2] = i[2].toUpperCase()), t.indexOf(i[1].toLowerCase()) > -1 && (i[1] = Oe(i[1].toLowerCase())), t.indexOf(i[2].toLowerCase()) > -1 && (i[2] = Oe(i[2].toLowerCase()))), i.join("-");
|
|
2597
2688
|
}
|
|
2598
2689
|
return this.options.cleanCode || this.options.lowerCaseLng ? e.toLowerCase() : e;
|
|
2599
2690
|
}
|
|
@@ -2642,7 +2733,7 @@ class ft {
|
|
|
2642
2733
|
}), a;
|
|
2643
2734
|
}
|
|
2644
2735
|
}
|
|
2645
|
-
let
|
|
2736
|
+
let wa = [{
|
|
2646
2737
|
lngs: ["ach", "ak", "am", "arn", "br", "fil", "gun", "ln", "mfe", "mg", "mi", "oc", "pt", "pt-BR", "tg", "tl", "ti", "tr", "uz", "wa"],
|
|
2647
2738
|
nr: [1, 2],
|
|
2648
2739
|
fc: 1
|
|
@@ -2734,7 +2825,7 @@ let ka = [{
|
|
|
2734
2825
|
lngs: ["he", "iw"],
|
|
2735
2826
|
nr: [1, 2, 20, 21],
|
|
2736
2827
|
fc: 22
|
|
2737
|
-
}],
|
|
2828
|
+
}], Ca = {
|
|
2738
2829
|
1: function(n) {
|
|
2739
2830
|
return +(n > 1);
|
|
2740
2831
|
},
|
|
@@ -2802,7 +2893,7 @@ let ka = [{
|
|
|
2802
2893
|
return n == 1 ? 0 : n == 2 ? 1 : (n < 0 || n > 10) && n % 10 == 0 ? 2 : 3;
|
|
2803
2894
|
}
|
|
2804
2895
|
};
|
|
2805
|
-
const
|
|
2896
|
+
const Ea = ["v1", "v2", "v3"], Oa = ["v4"], kt = {
|
|
2806
2897
|
zero: 0,
|
|
2807
2898
|
one: 1,
|
|
2808
2899
|
two: 2,
|
|
@@ -2810,21 +2901,21 @@ const Sa = ["v1", "v2", "v3"], ya = ["v4"], pt = {
|
|
|
2810
2901
|
many: 4,
|
|
2811
2902
|
other: 5
|
|
2812
2903
|
};
|
|
2813
|
-
function
|
|
2904
|
+
function Ra() {
|
|
2814
2905
|
const n = {};
|
|
2815
|
-
return
|
|
2906
|
+
return wa.forEach((e) => {
|
|
2816
2907
|
e.lngs.forEach((t) => {
|
|
2817
2908
|
n[t] = {
|
|
2818
2909
|
numbers: e.nr,
|
|
2819
|
-
plurals:
|
|
2910
|
+
plurals: Ca[e.fc]
|
|
2820
2911
|
};
|
|
2821
2912
|
});
|
|
2822
2913
|
}), n;
|
|
2823
2914
|
}
|
|
2824
|
-
class
|
|
2915
|
+
class xa {
|
|
2825
2916
|
constructor(e) {
|
|
2826
2917
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
2827
|
-
this.languageUtils = e, this.options = t, this.logger =
|
|
2918
|
+
this.languageUtils = e, this.options = t, this.logger = j.create("pluralResolver"), (!this.options.compatibilityJSON || Oa.includes(this.options.compatibilityJSON)) && (typeof Intl == "undefined" || !Intl.PluralRules) && (this.options.compatibilityJSON = "v3", this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")), this.rules = Ra();
|
|
2828
2919
|
}
|
|
2829
2920
|
addRule(e, t) {
|
|
2830
2921
|
this.rules[e] = t;
|
|
@@ -2833,7 +2924,7 @@ class ba {
|
|
|
2833
2924
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
2834
2925
|
if (this.shouldUseIntlApi())
|
|
2835
2926
|
try {
|
|
2836
|
-
return new Intl.PluralRules(
|
|
2927
|
+
return new Intl.PluralRules(ke(e), {
|
|
2837
2928
|
type: t.ordinal ? "ordinal" : "cardinal"
|
|
2838
2929
|
});
|
|
2839
2930
|
} catch {
|
|
@@ -2853,7 +2944,7 @@ class ba {
|
|
|
2853
2944
|
getSuffixes(e) {
|
|
2854
2945
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
2855
2946
|
const i = this.getRule(e, t);
|
|
2856
|
-
return i ? this.shouldUseIntlApi() ? i.resolvedOptions().pluralCategories.sort((a, s) =>
|
|
2947
|
+
return i ? this.shouldUseIntlApi() ? i.resolvedOptions().pluralCategories.sort((a, s) => kt[a] - kt[s]).map((a) => `${this.options.prepend}${t.ordinal ? `ordinal${this.options.prepend}` : ""}${a}`) : i.numbers.map((a) => this.getSuffix(e, a, t)) : [];
|
|
2857
2948
|
}
|
|
2858
2949
|
getSuffix(e, t) {
|
|
2859
2950
|
let i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
@@ -2868,17 +2959,17 @@ class ba {
|
|
|
2868
2959
|
return this.options.compatibilityJSON === "v1" ? a === 1 ? "" : typeof a == "number" ? `_plural_${a.toString()}` : s() : this.options.compatibilityJSON === "v2" || this.options.simplifyPluralSuffix && e.numbers.length === 2 && e.numbers[0] === 1 ? s() : this.options.prepend && i.toString() ? this.options.prepend + i.toString() : i.toString();
|
|
2869
2960
|
}
|
|
2870
2961
|
shouldUseIntlApi() {
|
|
2871
|
-
return !
|
|
2962
|
+
return !Ea.includes(this.options.compatibilityJSON);
|
|
2872
2963
|
}
|
|
2873
2964
|
}
|
|
2874
|
-
function
|
|
2875
|
-
let i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", a = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, s =
|
|
2876
|
-
return !s && a && typeof t == "string" && (s =
|
|
2965
|
+
function vt(n, e, t) {
|
|
2966
|
+
let i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", a = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, s = Sa(n, e, t);
|
|
2967
|
+
return !s && a && typeof t == "string" && (s = ge(n, t, i), s === void 0 && (s = ge(e, t, i))), s;
|
|
2877
2968
|
}
|
|
2878
|
-
class
|
|
2969
|
+
class Ta {
|
|
2879
2970
|
constructor() {
|
|
2880
2971
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
2881
|
-
this.logger =
|
|
2972
|
+
this.logger = j.create("interpolator"), this.options = e, this.format = e.interpolation && e.interpolation.format || ((t) => t), this.init(e);
|
|
2882
2973
|
}
|
|
2883
2974
|
init() {
|
|
2884
2975
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
@@ -2886,7 +2977,7 @@ class Fa {
|
|
|
2886
2977
|
escapeValue: !0
|
|
2887
2978
|
});
|
|
2888
2979
|
const t = e.interpolation;
|
|
2889
|
-
this.escape = t.escape !== void 0 ? t.escape :
|
|
2980
|
+
this.escape = t.escape !== void 0 ? t.escape : Na, this.escapeValue = t.escapeValue !== void 0 ? t.escapeValue : !0, this.useRawValueToEscape = t.useRawValueToEscape !== void 0 ? t.useRawValueToEscape : !1, this.prefix = t.prefix ? Q(t.prefix) : t.prefixEscaped || "{{", this.suffix = t.suffix ? Q(t.suffix) : t.suffixEscaped || "}}", this.formatSeparator = t.formatSeparator ? t.formatSeparator : t.formatSeparator || ",", this.unescapePrefix = t.unescapeSuffix ? "" : t.unescapePrefix || "-", this.unescapeSuffix = this.unescapePrefix ? "" : t.unescapeSuffix || "", this.nestingPrefix = t.nestingPrefix ? Q(t.nestingPrefix) : t.nestingPrefixEscaped || Q("$t("), this.nestingSuffix = t.nestingSuffix ? Q(t.nestingSuffix) : t.nestingSuffixEscaped || Q(")"), this.nestingOptionsSeparator = t.nestingOptionsSeparator ? t.nestingOptionsSeparator : t.nestingOptionsSeparator || ",", this.maxReplaces = t.maxReplaces ? t.maxReplaces : 1e3, this.alwaysFormat = t.alwaysFormat !== void 0 ? t.alwaysFormat : !1, this.resetRegExp();
|
|
2890
2981
|
}
|
|
2891
2982
|
reset() {
|
|
2892
2983
|
this.options && this.init(this.options);
|
|
@@ -2902,39 +2993,39 @@ class Fa {
|
|
|
2902
2993
|
interpolate(e, t, i, a) {
|
|
2903
2994
|
let s, r, o;
|
|
2904
2995
|
const d = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {};
|
|
2905
|
-
function l(
|
|
2906
|
-
return
|
|
2996
|
+
function l(S) {
|
|
2997
|
+
return S.replace(/\$/g, "$$$$");
|
|
2907
2998
|
}
|
|
2908
|
-
const u = (
|
|
2909
|
-
if (
|
|
2910
|
-
const
|
|
2911
|
-
return this.alwaysFormat ? this.format(
|
|
2999
|
+
const u = (S) => {
|
|
3000
|
+
if (S.indexOf(this.formatSeparator) < 0) {
|
|
3001
|
+
const w = vt(t, d, S, this.options.keySeparator, this.options.ignoreJSONStructure);
|
|
3002
|
+
return this.alwaysFormat ? this.format(w, void 0, i, {
|
|
2912
3003
|
...a,
|
|
2913
3004
|
...t,
|
|
2914
|
-
interpolationkey:
|
|
2915
|
-
}) :
|
|
3005
|
+
interpolationkey: S
|
|
3006
|
+
}) : w;
|
|
2916
3007
|
}
|
|
2917
|
-
const k =
|
|
2918
|
-
return this.format(
|
|
3008
|
+
const k = S.split(this.formatSeparator), y = k.shift().trim(), F = k.join(this.formatSeparator).trim();
|
|
3009
|
+
return this.format(vt(t, d, y, this.options.keySeparator, this.options.ignoreJSONStructure), F, i, {
|
|
2919
3010
|
...a,
|
|
2920
3011
|
...t,
|
|
2921
|
-
interpolationkey:
|
|
3012
|
+
interpolationkey: y
|
|
2922
3013
|
});
|
|
2923
3014
|
};
|
|
2924
3015
|
this.resetRegExp();
|
|
2925
|
-
const
|
|
3016
|
+
const p = a && a.missingInterpolationHandler || this.options.missingInterpolationHandler, c = a && a.interpolation && a.interpolation.skipOnVariables !== void 0 ? a.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;
|
|
2926
3017
|
return [{
|
|
2927
3018
|
regex: this.regexpUnescape,
|
|
2928
|
-
safeValue: (
|
|
3019
|
+
safeValue: (S) => l(S)
|
|
2929
3020
|
}, {
|
|
2930
3021
|
regex: this.regexp,
|
|
2931
|
-
safeValue: (
|
|
2932
|
-
}].forEach((
|
|
2933
|
-
for (o = 0; s =
|
|
3022
|
+
safeValue: (S) => this.escapeValue ? l(this.escape(S)) : l(S)
|
|
3023
|
+
}].forEach((S) => {
|
|
3024
|
+
for (o = 0; s = S.regex.exec(e); ) {
|
|
2934
3025
|
const k = s[1].trim();
|
|
2935
3026
|
if (r = u(k), r === void 0)
|
|
2936
|
-
if (typeof
|
|
2937
|
-
const F =
|
|
3027
|
+
if (typeof p == "function") {
|
|
3028
|
+
const F = p(e, s, a);
|
|
2938
3029
|
r = typeof F == "string" ? F : "";
|
|
2939
3030
|
} else if (a && Object.prototype.hasOwnProperty.call(a, k))
|
|
2940
3031
|
r = "";
|
|
@@ -2944,9 +3035,9 @@ class Fa {
|
|
|
2944
3035
|
} else
|
|
2945
3036
|
this.logger.warn(`missed to pass in variable ${k} for interpolating ${e}`), r = "";
|
|
2946
3037
|
else
|
|
2947
|
-
typeof r != "string" && !this.useRawValueToEscape && (r =
|
|
2948
|
-
const
|
|
2949
|
-
if (e = e.replace(s[0],
|
|
3038
|
+
typeof r != "string" && !this.useRawValueToEscape && (r = mt(r));
|
|
3039
|
+
const y = S.safeValue(r);
|
|
3040
|
+
if (e = e.replace(s[0], y), c ? (S.regex.lastIndex += r.length, S.regex.lastIndex -= s[0].length) : S.regex.lastIndex = 0, o++, o >= this.maxReplaces)
|
|
2950
3041
|
break;
|
|
2951
3042
|
}
|
|
2952
3043
|
}), e;
|
|
@@ -2957,11 +3048,11 @@ class Fa {
|
|
|
2957
3048
|
const u = this.nestingOptionsSeparator;
|
|
2958
3049
|
if (d.indexOf(u) < 0)
|
|
2959
3050
|
return d;
|
|
2960
|
-
const
|
|
2961
|
-
let c = `{${
|
|
2962
|
-
d =
|
|
2963
|
-
const
|
|
2964
|
-
(
|
|
3051
|
+
const p = d.split(new RegExp(`${u}[ ]*{`));
|
|
3052
|
+
let c = `{${p[1]}`;
|
|
3053
|
+
d = p[0], c = this.interpolate(c, r);
|
|
3054
|
+
const v = c.match(/'/g), S = c.match(/"/g);
|
|
3055
|
+
(v && v.length % 2 === 0 && !S || S.length % 2 !== 0) && (c = c.replace(/'/g, '"'));
|
|
2965
3056
|
try {
|
|
2966
3057
|
r = JSON.parse(c), l && (r = {
|
|
2967
3058
|
...l,
|
|
@@ -2979,12 +3070,12 @@ class Fa {
|
|
|
2979
3070
|
}, r = r.replace && typeof r.replace != "string" ? r.replace : r, r.applyPostProcessor = !1, delete r.defaultValue;
|
|
2980
3071
|
let l = !1;
|
|
2981
3072
|
if (a[0].indexOf(this.formatSeparator) !== -1 && !/{.*}/.test(a[1])) {
|
|
2982
|
-
const u = a[1].split(this.formatSeparator).map((
|
|
3073
|
+
const u = a[1].split(this.formatSeparator).map((p) => p.trim());
|
|
2983
3074
|
a[1] = u.shift(), d = u, l = !0;
|
|
2984
3075
|
}
|
|
2985
3076
|
if (s = t(o.call(this, a[1].trim(), r), r), s && a[0] === e && typeof s != "string")
|
|
2986
3077
|
return s;
|
|
2987
|
-
typeof s != "string" && (s =
|
|
3078
|
+
typeof s != "string" && (s = mt(s)), s || (this.logger.warn(`missed to resolve ${a[1]} for nesting ${e}`), s = ""), l && (s = d.reduce((u, p) => this.format(u, p, i.lng, {
|
|
2988
3079
|
...i,
|
|
2989
3080
|
interpolationkey: a[1].trim()
|
|
2990
3081
|
}), s.trim())), e = e.replace(a[0], s), this.regexp.lastIndex = 0;
|
|
@@ -2992,7 +3083,7 @@ class Fa {
|
|
|
2992
3083
|
return e;
|
|
2993
3084
|
}
|
|
2994
3085
|
}
|
|
2995
|
-
function
|
|
3086
|
+
function Da(n) {
|
|
2996
3087
|
let e = n.toLowerCase().trim();
|
|
2997
3088
|
const t = {};
|
|
2998
3089
|
if (n.indexOf("(") > -1) {
|
|
@@ -3011,44 +3102,44 @@ function Ea(n) {
|
|
|
3011
3102
|
formatOptions: t
|
|
3012
3103
|
};
|
|
3013
3104
|
}
|
|
3014
|
-
function
|
|
3105
|
+
function K(n) {
|
|
3015
3106
|
const e = {};
|
|
3016
3107
|
return function(i, a, s) {
|
|
3017
3108
|
const r = a + JSON.stringify(s);
|
|
3018
3109
|
let o = e[r];
|
|
3019
|
-
return o || (o = n(
|
|
3110
|
+
return o || (o = n(ke(a), s), e[r] = o), o(i);
|
|
3020
3111
|
};
|
|
3021
3112
|
}
|
|
3022
|
-
class
|
|
3113
|
+
class La {
|
|
3023
3114
|
constructor() {
|
|
3024
3115
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
3025
|
-
this.logger =
|
|
3026
|
-
number:
|
|
3116
|
+
this.logger = j.create("formatter"), this.options = e, this.formats = {
|
|
3117
|
+
number: K((t, i) => {
|
|
3027
3118
|
const a = new Intl.NumberFormat(t, {
|
|
3028
3119
|
...i
|
|
3029
3120
|
});
|
|
3030
3121
|
return (s) => a.format(s);
|
|
3031
3122
|
}),
|
|
3032
|
-
currency:
|
|
3123
|
+
currency: K((t, i) => {
|
|
3033
3124
|
const a = new Intl.NumberFormat(t, {
|
|
3034
3125
|
...i,
|
|
3035
3126
|
style: "currency"
|
|
3036
3127
|
});
|
|
3037
3128
|
return (s) => a.format(s);
|
|
3038
3129
|
}),
|
|
3039
|
-
datetime:
|
|
3130
|
+
datetime: K((t, i) => {
|
|
3040
3131
|
const a = new Intl.DateTimeFormat(t, {
|
|
3041
3132
|
...i
|
|
3042
3133
|
});
|
|
3043
3134
|
return (s) => a.format(s);
|
|
3044
3135
|
}),
|
|
3045
|
-
relativetime:
|
|
3136
|
+
relativetime: K((t, i) => {
|
|
3046
3137
|
const a = new Intl.RelativeTimeFormat(t, {
|
|
3047
3138
|
...i
|
|
3048
3139
|
});
|
|
3049
3140
|
return (s) => a.format(s, i.range || "day");
|
|
3050
3141
|
}),
|
|
3051
|
-
list:
|
|
3142
|
+
list: K((t, i) => {
|
|
3052
3143
|
const a = new Intl.ListFormat(t, {
|
|
3053
3144
|
...i
|
|
3054
3145
|
});
|
|
@@ -3066,7 +3157,7 @@ class Oa {
|
|
|
3066
3157
|
this.formats[e.toLowerCase().trim()] = t;
|
|
3067
3158
|
}
|
|
3068
3159
|
addCached(e, t) {
|
|
3069
|
-
this.formats[e.toLowerCase().trim()] =
|
|
3160
|
+
this.formats[e.toLowerCase().trim()] = K(t);
|
|
3070
3161
|
}
|
|
3071
3162
|
format(e, t, i) {
|
|
3072
3163
|
let a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
|
@@ -3074,12 +3165,12 @@ class Oa {
|
|
|
3074
3165
|
const {
|
|
3075
3166
|
formatName: l,
|
|
3076
3167
|
formatOptions: u
|
|
3077
|
-
} =
|
|
3168
|
+
} = Da(d);
|
|
3078
3169
|
if (this.formats[l]) {
|
|
3079
|
-
let
|
|
3170
|
+
let p = o;
|
|
3080
3171
|
try {
|
|
3081
|
-
const c = a && a.formatParams && a.formatParams[a.interpolationkey] || {},
|
|
3082
|
-
|
|
3172
|
+
const c = a && a.formatParams && a.formatParams[a.interpolationkey] || {}, v = c.locale || c.lng || a.locale || a.lng || i;
|
|
3173
|
+
p = this.formats[l](o, v, {
|
|
3083
3174
|
...u,
|
|
3084
3175
|
...a,
|
|
3085
3176
|
...c
|
|
@@ -3087,28 +3178,28 @@ class Oa {
|
|
|
3087
3178
|
} catch (c) {
|
|
3088
3179
|
this.logger.warn(c);
|
|
3089
3180
|
}
|
|
3090
|
-
return
|
|
3181
|
+
return p;
|
|
3091
3182
|
} else
|
|
3092
3183
|
this.logger.warn(`there was no format function for ${l}`);
|
|
3093
3184
|
return o;
|
|
3094
3185
|
}, e);
|
|
3095
3186
|
}
|
|
3096
3187
|
}
|
|
3097
|
-
function
|
|
3188
|
+
function Ia(n, e) {
|
|
3098
3189
|
n.pending[e] !== void 0 && (delete n.pending[e], n.pendingCount--);
|
|
3099
3190
|
}
|
|
3100
|
-
class
|
|
3191
|
+
class Aa extends Ne {
|
|
3101
3192
|
constructor(e, t, i) {
|
|
3102
3193
|
let a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
|
3103
|
-
super(), this.backend = e, this.store = t, this.services = i, this.languageUtils = i.languageUtils, this.options = a, this.logger =
|
|
3194
|
+
super(), this.backend = e, this.store = t, this.services = i, this.languageUtils = i.languageUtils, this.options = a, this.logger = j.create("backendConnector"), this.waitingReads = [], this.maxParallelReads = a.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = a.maxRetries >= 0 ? a.maxRetries : 5, this.retryTimeout = a.retryTimeout >= 1 ? a.retryTimeout : 350, this.state = {}, this.queue = [], this.backend && this.backend.init && this.backend.init(i, a.backend, a);
|
|
3104
3195
|
}
|
|
3105
3196
|
queueLoad(e, t, i, a) {
|
|
3106
3197
|
const s = {}, r = {}, o = {}, d = {};
|
|
3107
3198
|
return e.forEach((l) => {
|
|
3108
3199
|
let u = !0;
|
|
3109
|
-
t.forEach((
|
|
3110
|
-
const c = `${l}|${
|
|
3111
|
-
!i.reload && this.store.hasResourceBundle(l,
|
|
3200
|
+
t.forEach((p) => {
|
|
3201
|
+
const c = `${l}|${p}`;
|
|
3202
|
+
!i.reload && this.store.hasResourceBundle(l, p) ? this.state[c] = 2 : this.state[c] < 0 || (this.state[c] === 1 ? r[c] === void 0 && (r[c] = !0) : (this.state[c] = 1, u = !1, r[c] === void 0 && (r[c] = !0), s[c] === void 0 && (s[c] = !0), d[p] === void 0 && (d[p] = !0)));
|
|
3112
3203
|
}), u || (o[l] = !0);
|
|
3113
3204
|
}), (Object.keys(s).length || Object.keys(r).length) && this.queue.push({
|
|
3114
3205
|
pending: r,
|
|
@@ -3128,11 +3219,11 @@ class Ra extends ke {
|
|
|
3128
3219
|
t && this.emit("failedLoading", s, r, t), i && this.store.addResourceBundle(s, r, i), this.state[e] = t ? -1 : 2;
|
|
3129
3220
|
const o = {};
|
|
3130
3221
|
this.queue.forEach((d) => {
|
|
3131
|
-
|
|
3222
|
+
va(d.loaded, [s], r), Ia(d, e), t && d.errors.push(t), d.pendingCount === 0 && !d.done && (Object.keys(d.loaded).forEach((l) => {
|
|
3132
3223
|
o[l] || (o[l] = {});
|
|
3133
3224
|
const u = d.loaded[l];
|
|
3134
|
-
u.length && u.forEach((
|
|
3135
|
-
o[l][
|
|
3225
|
+
u.length && u.forEach((p) => {
|
|
3226
|
+
o[l][p] === void 0 && (o[l][p] = !0);
|
|
3136
3227
|
});
|
|
3137
3228
|
}), d.done = !0, d.errors.length ? d.callback(d.errors) : d.callback());
|
|
3138
3229
|
}), this.emit("loaded", o), this.queue = this.queue.filter((d) => !d.done);
|
|
@@ -3155,8 +3246,8 @@ class Ra extends ke {
|
|
|
3155
3246
|
this.readingCalls++;
|
|
3156
3247
|
const o = (l, u) => {
|
|
3157
3248
|
if (this.readingCalls--, this.waitingReads.length > 0) {
|
|
3158
|
-
const
|
|
3159
|
-
this.read(
|
|
3249
|
+
const p = this.waitingReads.shift();
|
|
3250
|
+
this.read(p.lng, p.ns, p.fcName, p.tried, p.wait, p.callback);
|
|
3160
3251
|
}
|
|
3161
3252
|
if (l && u && a < this.maxRetries) {
|
|
3162
3253
|
setTimeout(() => {
|
|
@@ -3220,7 +3311,7 @@ class Ra extends ke {
|
|
|
3220
3311
|
if (l.length < 6)
|
|
3221
3312
|
try {
|
|
3222
3313
|
let u;
|
|
3223
|
-
l.length === 5 ? u = l(e, t, i, a, d) : u = l(e, t, i, a), u && typeof u.then == "function" ? u.then((
|
|
3314
|
+
l.length === 5 ? u = l(e, t, i, a, d) : u = l(e, t, i, a), u && typeof u.then == "function" ? u.then((p) => o(null, p)).catch(o) : o(null, u);
|
|
3224
3315
|
} catch (u) {
|
|
3225
3316
|
o(u);
|
|
3226
3317
|
}
|
|
@@ -3231,7 +3322,7 @@ class Ra extends ke {
|
|
|
3231
3322
|
}
|
|
3232
3323
|
}
|
|
3233
3324
|
}
|
|
3234
|
-
function
|
|
3325
|
+
function St() {
|
|
3235
3326
|
return {
|
|
3236
3327
|
debug: !1,
|
|
3237
3328
|
initImmediate: !0,
|
|
@@ -3290,22 +3381,22 @@ function gt() {
|
|
|
3290
3381
|
}
|
|
3291
3382
|
};
|
|
3292
3383
|
}
|
|
3293
|
-
function
|
|
3384
|
+
function yt(n) {
|
|
3294
3385
|
return typeof n.ns == "string" && (n.ns = [n.ns]), typeof n.fallbackLng == "string" && (n.fallbackLng = [n.fallbackLng]), typeof n.fallbackNS == "string" && (n.fallbackNS = [n.fallbackNS]), n.supportedLngs && n.supportedLngs.indexOf("cimode") < 0 && (n.supportedLngs = n.supportedLngs.concat(["cimode"])), n;
|
|
3295
3386
|
}
|
|
3296
|
-
function
|
|
3387
|
+
function le() {
|
|
3297
3388
|
}
|
|
3298
|
-
function
|
|
3389
|
+
function Pa(n) {
|
|
3299
3390
|
Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach((t) => {
|
|
3300
3391
|
typeof n[t] == "function" && (n[t] = n[t].bind(n));
|
|
3301
3392
|
});
|
|
3302
3393
|
}
|
|
3303
|
-
class
|
|
3394
|
+
class ie extends Ne {
|
|
3304
3395
|
constructor() {
|
|
3305
3396
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 ? arguments[1] : void 0;
|
|
3306
|
-
if (super(), this.options =
|
|
3397
|
+
if (super(), this.options = yt(e), this.services = {}, this.logger = j, this.modules = {
|
|
3307
3398
|
external: []
|
|
3308
|
-
},
|
|
3399
|
+
}, Pa(this), t && !this.isInitialized && !e.isClone) {
|
|
3309
3400
|
if (!this.options.initImmediate)
|
|
3310
3401
|
return this.init(e, t), this;
|
|
3311
3402
|
setTimeout(() => {
|
|
@@ -3317,11 +3408,11 @@ class ne extends ke {
|
|
|
3317
3408
|
var e = this;
|
|
3318
3409
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, i = arguments.length > 1 ? arguments[1] : void 0;
|
|
3319
3410
|
typeof t == "function" && (i = t, t = {}), !t.defaultNS && t.defaultNS !== !1 && t.ns && (typeof t.ns == "string" ? t.defaultNS = t.ns : t.ns.indexOf("translation") < 0 && (t.defaultNS = t.ns[0]));
|
|
3320
|
-
const a =
|
|
3411
|
+
const a = St();
|
|
3321
3412
|
this.options = {
|
|
3322
3413
|
...a,
|
|
3323
3414
|
...this.options,
|
|
3324
|
-
...
|
|
3415
|
+
...yt(t)
|
|
3325
3416
|
}, this.options.compatibilityAPI !== "v1" && (this.options.interpolation = {
|
|
3326
3417
|
...a.interpolation,
|
|
3327
3418
|
...this.options.interpolation
|
|
@@ -3330,31 +3421,31 @@ class ne extends ke {
|
|
|
3330
3421
|
return u ? typeof u == "function" ? new u() : u : null;
|
|
3331
3422
|
}
|
|
3332
3423
|
if (!this.options.isClone) {
|
|
3333
|
-
this.modules.logger ?
|
|
3424
|
+
this.modules.logger ? j.init(s(this.modules.logger), this.options) : j.init(null, this.options);
|
|
3334
3425
|
let u;
|
|
3335
|
-
this.modules.formatter ? u = this.modules.formatter : typeof Intl != "undefined" && (u =
|
|
3336
|
-
const
|
|
3337
|
-
this.store = new
|
|
3426
|
+
this.modules.formatter ? u = this.modules.formatter : typeof Intl != "undefined" && (u = La);
|
|
3427
|
+
const p = new gt(this.options);
|
|
3428
|
+
this.store = new pt(this.options.resources, this.options);
|
|
3338
3429
|
const c = this.services;
|
|
3339
|
-
c.logger =
|
|
3430
|
+
c.logger = j, c.resourceStore = this.store, c.languageUtils = p, c.pluralResolver = new xa(p, {
|
|
3340
3431
|
prepend: this.options.pluralSeparator,
|
|
3341
3432
|
compatibilityJSON: this.options.compatibilityJSON,
|
|
3342
3433
|
simplifyPluralSuffix: this.options.simplifyPluralSuffix
|
|
3343
|
-
}), u && (!this.options.interpolation.format || this.options.interpolation.format === a.interpolation.format) && (c.formatter = s(u), c.formatter.init(c, this.options), this.options.interpolation.format = c.formatter.format.bind(c.formatter)), c.interpolator = new
|
|
3434
|
+
}), u && (!this.options.interpolation.format || this.options.interpolation.format === a.interpolation.format) && (c.formatter = s(u), c.formatter.init(c, this.options), this.options.interpolation.format = c.formatter.format.bind(c.formatter)), c.interpolator = new Ta(this.options), c.utils = {
|
|
3344
3435
|
hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
|
|
3345
|
-
}, c.backendConnector = new
|
|
3346
|
-
for (var
|
|
3347
|
-
k[
|
|
3348
|
-
e.emit(
|
|
3349
|
-
}), this.modules.languageDetector && (c.languageDetector = s(this.modules.languageDetector), c.languageDetector.init && c.languageDetector.init(c, this.options.detection, this.options)), this.modules.i18nFormat && (c.i18nFormat = s(this.modules.i18nFormat), c.i18nFormat.init && c.i18nFormat.init(this)), this.translator = new
|
|
3350
|
-
for (var
|
|
3351
|
-
k[
|
|
3352
|
-
e.emit(
|
|
3353
|
-
}), this.modules.external.forEach((
|
|
3354
|
-
|
|
3436
|
+
}, c.backendConnector = new Aa(s(this.modules.backend), c.resourceStore, c, this.options), c.backendConnector.on("*", function(v) {
|
|
3437
|
+
for (var S = arguments.length, k = new Array(S > 1 ? S - 1 : 0), y = 1; y < S; y++)
|
|
3438
|
+
k[y - 1] = arguments[y];
|
|
3439
|
+
e.emit(v, ...k);
|
|
3440
|
+
}), this.modules.languageDetector && (c.languageDetector = s(this.modules.languageDetector), c.languageDetector.init && c.languageDetector.init(c, this.options.detection, this.options)), this.modules.i18nFormat && (c.i18nFormat = s(this.modules.i18nFormat), c.i18nFormat.init && c.i18nFormat.init(this)), this.translator = new ve(this.services, this.options), this.translator.on("*", function(v) {
|
|
3441
|
+
for (var S = arguments.length, k = new Array(S > 1 ? S - 1 : 0), y = 1; y < S; y++)
|
|
3442
|
+
k[y - 1] = arguments[y];
|
|
3443
|
+
e.emit(v, ...k);
|
|
3444
|
+
}), this.modules.external.forEach((v) => {
|
|
3445
|
+
v.init && v.init(this);
|
|
3355
3446
|
});
|
|
3356
3447
|
}
|
|
3357
|
-
if (this.format = this.options.interpolation.format, i || (i =
|
|
3448
|
+
if (this.format = this.options.interpolation.format, i || (i = le), this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
|
|
3358
3449
|
const u = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
|
|
3359
3450
|
u.length > 0 && u[0] !== "dev" && (this.options.lng = u[0]);
|
|
3360
3451
|
}
|
|
@@ -3367,9 +3458,9 @@ class ne extends ke {
|
|
|
3367
3458
|
return e.store[u](...arguments), e;
|
|
3368
3459
|
};
|
|
3369
3460
|
});
|
|
3370
|
-
const d =
|
|
3371
|
-
const u = (
|
|
3372
|
-
this.isInitialized && !this.initializedStoreOnce && this.logger.warn("init: i18next is already initialized. You should call init just once!"), this.isInitialized = !0, this.options.isClone || this.logger.log("initialized", this.options), this.emit("initialized", this.options), d.resolve(c), i(
|
|
3461
|
+
const d = H(), l = () => {
|
|
3462
|
+
const u = (p, c) => {
|
|
3463
|
+
this.isInitialized && !this.initializedStoreOnce && this.logger.warn("init: i18next is already initialized. You should call init just once!"), this.isInitialized = !0, this.options.isClone || this.logger.log("initialized", this.options), this.emit("initialized", this.options), d.resolve(c), i(p, c);
|
|
3373
3464
|
};
|
|
3374
3465
|
if (this.languages && this.options.compatibilityAPI !== "v1" && !this.isInitialized)
|
|
3375
3466
|
return u(null, this.t.bind(this));
|
|
@@ -3378,7 +3469,7 @@ class ne extends ke {
|
|
|
3378
3469
|
return this.options.resources || !this.options.initImmediate ? l() : setTimeout(l, 0), d;
|
|
3379
3470
|
}
|
|
3380
3471
|
loadResources(e) {
|
|
3381
|
-
let i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] :
|
|
3472
|
+
let i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : le;
|
|
3382
3473
|
const a = typeof e == "string" ? e : this.language;
|
|
3383
3474
|
if (typeof e == "function" && (i = e), !this.options.resources || this.options.partialBundledLanguages) {
|
|
3384
3475
|
if (a && a.toLowerCase() === "cimode" && (!this.options.preload || this.options.preload.length === 0))
|
|
@@ -3397,8 +3488,8 @@ class ne extends ke {
|
|
|
3397
3488
|
i(null);
|
|
3398
3489
|
}
|
|
3399
3490
|
reloadResources(e, t, i) {
|
|
3400
|
-
const a =
|
|
3401
|
-
return e || (e = this.languages), t || (t = this.options.ns), i || (i =
|
|
3491
|
+
const a = H();
|
|
3492
|
+
return e || (e = this.languages), t || (t = this.options.ns), i || (i = le), this.services.backendConnector.reload(e, t, (s) => {
|
|
3402
3493
|
a.resolve(), i(s);
|
|
3403
3494
|
}), a;
|
|
3404
3495
|
}
|
|
@@ -3407,7 +3498,7 @@ class ne extends ke {
|
|
|
3407
3498
|
throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");
|
|
3408
3499
|
if (!e.type)
|
|
3409
3500
|
throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");
|
|
3410
|
-
return e.type === "backend" && (this.modules.backend = e), (e.type === "logger" || e.log && e.warn && e.error) && (this.modules.logger = e), e.type === "languageDetector" && (this.modules.languageDetector = e), e.type === "i18nFormat" && (this.modules.i18nFormat = e), e.type === "postProcessor" &&
|
|
3501
|
+
return e.type === "backend" && (this.modules.backend = e), (e.type === "logger" || e.log && e.warn && e.error) && (this.modules.logger = e), e.type === "languageDetector" && (this.modules.languageDetector = e), e.type === "i18nFormat" && (this.modules.i18nFormat = e), e.type === "postProcessor" && Zt.addPostProcessor(e), e.type === "formatter" && (this.modules.formatter = e), e.type === "3rdParty" && this.modules.external.push(e), this;
|
|
3411
3502
|
}
|
|
3412
3503
|
setResolvedLanguage(e) {
|
|
3413
3504
|
if (!(!e || !this.languages) && !(["cimode", "dev"].indexOf(e) > -1))
|
|
@@ -3422,7 +3513,7 @@ class ne extends ke {
|
|
|
3422
3513
|
changeLanguage(e, t) {
|
|
3423
3514
|
var i = this;
|
|
3424
3515
|
this.isLanguageChangingTo = e;
|
|
3425
|
-
const a =
|
|
3516
|
+
const a = H();
|
|
3426
3517
|
this.emit("languageChanging", e);
|
|
3427
3518
|
const s = (d) => {
|
|
3428
3519
|
this.language = d, this.languages = this.services.languageUtils.toResolveHierarchy(d), this.resolvedLanguage = void 0, this.setResolvedLanguage(d);
|
|
@@ -3446,8 +3537,8 @@ class ne extends ke {
|
|
|
3446
3537
|
const s = function(r, o) {
|
|
3447
3538
|
let d;
|
|
3448
3539
|
if (typeof o != "object") {
|
|
3449
|
-
for (var l = arguments.length, u = new Array(l > 2 ? l - 2 : 0),
|
|
3450
|
-
u[
|
|
3540
|
+
for (var l = arguments.length, u = new Array(l > 2 ? l - 2 : 0), p = 2; p < l; p++)
|
|
3541
|
+
u[p - 2] = arguments[p];
|
|
3451
3542
|
d = a.options.overloadTranslationOptionHandler([r, o].concat(u));
|
|
3452
3543
|
} else
|
|
3453
3544
|
d = {
|
|
@@ -3455,8 +3546,8 @@ class ne extends ke {
|
|
|
3455
3546
|
};
|
|
3456
3547
|
d.lng = d.lng || s.lng, d.lngs = d.lngs || s.lngs, d.ns = d.ns || s.ns, d.keyPrefix = d.keyPrefix || i || s.keyPrefix;
|
|
3457
3548
|
const c = a.options.keySeparator || ".";
|
|
3458
|
-
let
|
|
3459
|
-
return d.keyPrefix && Array.isArray(r) ?
|
|
3549
|
+
let v;
|
|
3550
|
+
return d.keyPrefix && Array.isArray(r) ? v = r.map((S) => `${d.keyPrefix}${c}${S}`) : v = d.keyPrefix ? `${d.keyPrefix}${c}${r}` : r, a.t(v, d);
|
|
3460
3551
|
};
|
|
3461
3552
|
return typeof e == "string" ? s.lng = e : s.lngs = e, s.ns = t, s.keyPrefix = i, s;
|
|
3462
3553
|
}
|
|
@@ -3490,7 +3581,7 @@ class ne extends ke {
|
|
|
3490
3581
|
return !!(this.hasResourceBundle(i, e) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || r(i, e) && (!a || r(s, e)));
|
|
3491
3582
|
}
|
|
3492
3583
|
loadNamespaces(e, t) {
|
|
3493
|
-
const i =
|
|
3584
|
+
const i = H();
|
|
3494
3585
|
return this.options.ns ? (typeof e == "string" && (e = [e]), e.forEach((a) => {
|
|
3495
3586
|
this.options.ns.indexOf(a) < 0 && this.options.ns.push(a);
|
|
3496
3587
|
}), this.loadResources((a) => {
|
|
@@ -3498,7 +3589,7 @@ class ne extends ke {
|
|
|
3498
3589
|
}), i) : (t && t(), Promise.resolve());
|
|
3499
3590
|
}
|
|
3500
3591
|
loadLanguages(e, t) {
|
|
3501
|
-
const i =
|
|
3592
|
+
const i = H();
|
|
3502
3593
|
typeof e == "string" && (e = [e]);
|
|
3503
3594
|
const a = this.options.preload || [], s = e.filter((r) => a.indexOf(r) < 0);
|
|
3504
3595
|
return s.length ? (this.options.preload = a.concat(s), this.loadResources((r) => {
|
|
@@ -3508,29 +3599,29 @@ class ne extends ke {
|
|
|
3508
3599
|
dir(e) {
|
|
3509
3600
|
if (e || (e = this.resolvedLanguage || (this.languages && this.languages.length > 0 ? this.languages[0] : this.language)), !e)
|
|
3510
3601
|
return "rtl";
|
|
3511
|
-
const t = ["ar", "shu", "sqr", "ssh", "xaa", "yhd", "yud", "aao", "abh", "abv", "acm", "acq", "acw", "acx", "acy", "adf", "ads", "aeb", "aec", "afb", "ajp", "apc", "apd", "arb", "arq", "ars", "ary", "arz", "auz", "avl", "ayh", "ayl", "ayn", "ayp", "bbz", "pga", "he", "iw", "ps", "pbt", "pbu", "pst", "prp", "prd", "ug", "ur", "ydd", "yds", "yih", "ji", "yi", "hbo", "men", "xmn", "fa", "jpr", "peo", "pes", "prs", "dv", "sam", "ckb"], i = this.services && this.services.languageUtils || new
|
|
3602
|
+
const t = ["ar", "shu", "sqr", "ssh", "xaa", "yhd", "yud", "aao", "abh", "abv", "acm", "acq", "acw", "acx", "acy", "adf", "ads", "aeb", "aec", "afb", "ajp", "apc", "apd", "arb", "arq", "ars", "ary", "arz", "auz", "avl", "ayh", "ayl", "ayn", "ayp", "bbz", "pga", "he", "iw", "ps", "pbt", "pbu", "pst", "prp", "prd", "ug", "ur", "ydd", "yds", "yih", "ji", "yi", "hbo", "men", "xmn", "fa", "jpr", "peo", "pes", "prs", "dv", "sam", "ckb"], i = this.services && this.services.languageUtils || new gt(St());
|
|
3512
3603
|
return t.indexOf(i.getLanguagePartFromCode(e)) > -1 || e.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
|
|
3513
3604
|
}
|
|
3514
3605
|
static createInstance() {
|
|
3515
3606
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 ? arguments[1] : void 0;
|
|
3516
|
-
return new
|
|
3607
|
+
return new ie(e, t);
|
|
3517
3608
|
}
|
|
3518
3609
|
cloneInstance() {
|
|
3519
|
-
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] :
|
|
3610
|
+
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : le;
|
|
3520
3611
|
const i = e.forkResourceStore;
|
|
3521
3612
|
i && delete e.forkResourceStore;
|
|
3522
3613
|
const a = {
|
|
3523
3614
|
...this.options,
|
|
3524
3615
|
...e,
|
|
3525
3616
|
isClone: !0
|
|
3526
|
-
}, s = new
|
|
3617
|
+
}, s = new ie(a);
|
|
3527
3618
|
return (e.debug !== void 0 || e.prefix !== void 0) && (s.logger = s.logger.clone(e)), ["store", "services", "language"].forEach((o) => {
|
|
3528
3619
|
s[o] = this[o];
|
|
3529
3620
|
}), s.services = {
|
|
3530
3621
|
...this.services
|
|
3531
3622
|
}, s.services.utils = {
|
|
3532
3623
|
hasLoadedNamespace: s.hasLoadedNamespace.bind(s)
|
|
3533
|
-
}, i && (s.store = new
|
|
3624
|
+
}, i && (s.store = new pt(this.store.data, a), s.services.resourceStore = s.store), s.translator = new ve(s.services, a), s.translator.on("*", function(o) {
|
|
3534
3625
|
for (var d = arguments.length, l = new Array(d > 1 ? d - 1 : 0), u = 1; u < d; u++)
|
|
3535
3626
|
l[u - 1] = arguments[u];
|
|
3536
3627
|
s.emit(o, ...l);
|
|
@@ -3548,89 +3639,89 @@ class ne extends ke {
|
|
|
3548
3639
|
};
|
|
3549
3640
|
}
|
|
3550
3641
|
}
|
|
3551
|
-
const
|
|
3552
|
-
|
|
3553
|
-
|
|
3554
|
-
|
|
3555
|
-
|
|
3556
|
-
|
|
3557
|
-
|
|
3558
|
-
|
|
3559
|
-
|
|
3560
|
-
|
|
3561
|
-
|
|
3562
|
-
|
|
3563
|
-
|
|
3564
|
-
|
|
3565
|
-
|
|
3566
|
-
|
|
3567
|
-
function
|
|
3642
|
+
const U = ie.createInstance();
|
|
3643
|
+
U.createInstance = ie.createInstance;
|
|
3644
|
+
U.createInstance;
|
|
3645
|
+
U.dir;
|
|
3646
|
+
U.init;
|
|
3647
|
+
U.loadResources;
|
|
3648
|
+
U.reloadResources;
|
|
3649
|
+
U.use;
|
|
3650
|
+
U.changeLanguage;
|
|
3651
|
+
U.getFixedT;
|
|
3652
|
+
U.t;
|
|
3653
|
+
U.exists;
|
|
3654
|
+
U.setDefaultNamespace;
|
|
3655
|
+
U.hasLoadedNamespace;
|
|
3656
|
+
U.loadNamespaces;
|
|
3657
|
+
U.loadLanguages;
|
|
3658
|
+
function Va(n) {
|
|
3568
3659
|
const e = Object.values(n);
|
|
3569
3660
|
return Object.assign({}, ...e);
|
|
3570
3661
|
}
|
|
3571
|
-
function
|
|
3662
|
+
function _a(n) {
|
|
3572
3663
|
return Object.entries(n).reduce(
|
|
3573
3664
|
(e, [t, i]) => {
|
|
3574
|
-
const a =
|
|
3665
|
+
const a = Va(i);
|
|
3575
3666
|
return { ...e, [t]: a };
|
|
3576
3667
|
},
|
|
3577
3668
|
{}
|
|
3578
3669
|
);
|
|
3579
3670
|
}
|
|
3580
|
-
function
|
|
3581
|
-
const e =
|
|
3671
|
+
function Xs(n) {
|
|
3672
|
+
const e = _a(n);
|
|
3582
3673
|
Object.entries(e).forEach(([t, i]) => {
|
|
3583
|
-
|
|
3674
|
+
U.addResourceBundle(t, "translation", i, !0);
|
|
3584
3675
|
});
|
|
3585
3676
|
}
|
|
3586
|
-
function
|
|
3677
|
+
function Ua(n, e) {
|
|
3587
3678
|
if (!(n instanceof e))
|
|
3588
3679
|
throw new TypeError("Cannot call a class as a function");
|
|
3589
3680
|
}
|
|
3590
|
-
function
|
|
3681
|
+
function ae(n) {
|
|
3591
3682
|
"@babel/helpers - typeof";
|
|
3592
|
-
return
|
|
3683
|
+
return ae = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
3593
3684
|
return typeof e;
|
|
3594
3685
|
} : function(e) {
|
|
3595
3686
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
3596
|
-
},
|
|
3687
|
+
}, ae(n);
|
|
3597
3688
|
}
|
|
3598
|
-
function
|
|
3599
|
-
if (
|
|
3689
|
+
function Ma(n, e) {
|
|
3690
|
+
if (ae(n) !== "object" || n === null)
|
|
3600
3691
|
return n;
|
|
3601
3692
|
var t = n[Symbol.toPrimitive];
|
|
3602
3693
|
if (t !== void 0) {
|
|
3603
3694
|
var i = t.call(n, e || "default");
|
|
3604
|
-
if (
|
|
3695
|
+
if (ae(i) !== "object")
|
|
3605
3696
|
return i;
|
|
3606
3697
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
3607
3698
|
}
|
|
3608
3699
|
return (e === "string" ? String : Number)(n);
|
|
3609
3700
|
}
|
|
3610
|
-
function
|
|
3611
|
-
var e =
|
|
3612
|
-
return
|
|
3701
|
+
function ja(n) {
|
|
3702
|
+
var e = Ma(n, "string");
|
|
3703
|
+
return ae(e) === "symbol" ? e : String(e);
|
|
3613
3704
|
}
|
|
3614
|
-
function
|
|
3705
|
+
function Nt(n, e) {
|
|
3615
3706
|
for (var t = 0; t < e.length; t++) {
|
|
3616
3707
|
var i = e[t];
|
|
3617
|
-
i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(n,
|
|
3708
|
+
i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(n, ja(i.key), i);
|
|
3618
3709
|
}
|
|
3619
3710
|
}
|
|
3620
|
-
function
|
|
3621
|
-
return e &&
|
|
3711
|
+
function $a(n, e, t) {
|
|
3712
|
+
return e && Nt(n.prototype, e), t && Nt(n, t), Object.defineProperty(n, "prototype", {
|
|
3622
3713
|
writable: !1
|
|
3623
3714
|
}), n;
|
|
3624
3715
|
}
|
|
3625
|
-
var
|
|
3626
|
-
function
|
|
3627
|
-
return
|
|
3716
|
+
var Xt = [], za = Xt.forEach, Ba = Xt.slice;
|
|
3717
|
+
function Qa(n) {
|
|
3718
|
+
return za.call(Ba.call(arguments, 1), function(e) {
|
|
3628
3719
|
if (e)
|
|
3629
3720
|
for (var t in e)
|
|
3630
3721
|
n[t] === void 0 && (n[t] = e[t]);
|
|
3631
3722
|
}), n;
|
|
3632
3723
|
}
|
|
3633
|
-
var
|
|
3724
|
+
var bt = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Ka = function(e, t, i) {
|
|
3634
3725
|
var a = i || {};
|
|
3635
3726
|
a.path = a.path || "/";
|
|
3636
3727
|
var s = encodeURIComponent(t), r = "".concat(e, "=").concat(s);
|
|
@@ -3641,12 +3732,12 @@ var St = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Ua = function(e, t, i) {
|
|
|
3641
3732
|
r += "; Max-Age=".concat(Math.floor(o));
|
|
3642
3733
|
}
|
|
3643
3734
|
if (a.domain) {
|
|
3644
|
-
if (!
|
|
3735
|
+
if (!bt.test(a.domain))
|
|
3645
3736
|
throw new TypeError("option domain is invalid");
|
|
3646
3737
|
r += "; Domain=".concat(a.domain);
|
|
3647
3738
|
}
|
|
3648
3739
|
if (a.path) {
|
|
3649
|
-
if (!
|
|
3740
|
+
if (!bt.test(a.path))
|
|
3650
3741
|
throw new TypeError("option path is invalid");
|
|
3651
3742
|
r += "; Path=".concat(a.path);
|
|
3652
3743
|
}
|
|
@@ -3675,13 +3766,13 @@ var St = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Ua = function(e, t, i) {
|
|
|
3675
3766
|
}
|
|
3676
3767
|
}
|
|
3677
3768
|
return r;
|
|
3678
|
-
},
|
|
3769
|
+
}, Ft = {
|
|
3679
3770
|
create: function(e, t, i, a) {
|
|
3680
3771
|
var s = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
|
|
3681
3772
|
path: "/",
|
|
3682
3773
|
sameSite: "strict"
|
|
3683
3774
|
};
|
|
3684
|
-
i && (s.expires = /* @__PURE__ */ new Date(), s.expires.setTime(s.expires.getTime() + i * 60 * 1e3)), a && (s.domain = a), document.cookie =
|
|
3775
|
+
i && (s.expires = /* @__PURE__ */ new Date(), s.expires.setTime(s.expires.getTime() + i * 60 * 1e3)), a && (s.domain = a), document.cookie = Ka(e, encodeURIComponent(t), s);
|
|
3685
3776
|
},
|
|
3686
3777
|
read: function(e) {
|
|
3687
3778
|
for (var t = "".concat(e, "="), i = document.cookie.split(";"), a = 0; a < i.length; a++) {
|
|
@@ -3695,20 +3786,20 @@ var St = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Ua = function(e, t, i) {
|
|
|
3695
3786
|
remove: function(e) {
|
|
3696
3787
|
this.create(e, "", -1);
|
|
3697
3788
|
}
|
|
3698
|
-
},
|
|
3789
|
+
}, Ga = {
|
|
3699
3790
|
name: "cookie",
|
|
3700
3791
|
lookup: function(e) {
|
|
3701
3792
|
var t;
|
|
3702
3793
|
if (e.lookupCookie && typeof document != "undefined") {
|
|
3703
|
-
var i =
|
|
3794
|
+
var i = Ft.read(e.lookupCookie);
|
|
3704
3795
|
i && (t = i);
|
|
3705
3796
|
}
|
|
3706
3797
|
return t;
|
|
3707
3798
|
},
|
|
3708
3799
|
cacheUserLanguage: function(e, t) {
|
|
3709
|
-
t.lookupCookie && typeof document != "undefined" &&
|
|
3800
|
+
t.lookupCookie && typeof document != "undefined" && Ft.create(t.lookupCookie, e, t.cookieMinutes, t.cookieDomain, t.cookieOptions);
|
|
3710
3801
|
}
|
|
3711
|
-
},
|
|
3802
|
+
}, Wa = {
|
|
3712
3803
|
name: "querystring",
|
|
3713
3804
|
lookup: function(e) {
|
|
3714
3805
|
var t;
|
|
@@ -3725,55 +3816,55 @@ var St = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Ua = function(e, t, i) {
|
|
|
3725
3816
|
}
|
|
3726
3817
|
return t;
|
|
3727
3818
|
}
|
|
3728
|
-
},
|
|
3729
|
-
if (
|
|
3730
|
-
return
|
|
3819
|
+
}, Z = null, wt = function() {
|
|
3820
|
+
if (Z !== null)
|
|
3821
|
+
return Z;
|
|
3731
3822
|
try {
|
|
3732
|
-
|
|
3823
|
+
Z = window !== "undefined" && window.localStorage !== null;
|
|
3733
3824
|
var e = "i18next.translate.boo";
|
|
3734
3825
|
window.localStorage.setItem(e, "foo"), window.localStorage.removeItem(e);
|
|
3735
3826
|
} catch {
|
|
3736
|
-
|
|
3827
|
+
Z = !1;
|
|
3737
3828
|
}
|
|
3738
|
-
return
|
|
3739
|
-
},
|
|
3829
|
+
return Z;
|
|
3830
|
+
}, Ja = {
|
|
3740
3831
|
name: "localStorage",
|
|
3741
3832
|
lookup: function(e) {
|
|
3742
3833
|
var t;
|
|
3743
|
-
if (e.lookupLocalStorage &&
|
|
3834
|
+
if (e.lookupLocalStorage && wt()) {
|
|
3744
3835
|
var i = window.localStorage.getItem(e.lookupLocalStorage);
|
|
3745
3836
|
i && (t = i);
|
|
3746
3837
|
}
|
|
3747
3838
|
return t;
|
|
3748
3839
|
},
|
|
3749
3840
|
cacheUserLanguage: function(e, t) {
|
|
3750
|
-
t.lookupLocalStorage &&
|
|
3841
|
+
t.lookupLocalStorage && wt() && window.localStorage.setItem(t.lookupLocalStorage, e);
|
|
3751
3842
|
}
|
|
3752
|
-
},
|
|
3753
|
-
if (
|
|
3754
|
-
return
|
|
3843
|
+
}, X = null, Ct = function() {
|
|
3844
|
+
if (X !== null)
|
|
3845
|
+
return X;
|
|
3755
3846
|
try {
|
|
3756
|
-
|
|
3847
|
+
X = window !== "undefined" && window.sessionStorage !== null;
|
|
3757
3848
|
var e = "i18next.translate.boo";
|
|
3758
3849
|
window.sessionStorage.setItem(e, "foo"), window.sessionStorage.removeItem(e);
|
|
3759
3850
|
} catch {
|
|
3760
|
-
|
|
3851
|
+
X = !1;
|
|
3761
3852
|
}
|
|
3762
|
-
return
|
|
3763
|
-
},
|
|
3853
|
+
return X;
|
|
3854
|
+
}, qa = {
|
|
3764
3855
|
name: "sessionStorage",
|
|
3765
3856
|
lookup: function(e) {
|
|
3766
3857
|
var t;
|
|
3767
|
-
if (e.lookupSessionStorage &&
|
|
3858
|
+
if (e.lookupSessionStorage && Ct()) {
|
|
3768
3859
|
var i = window.sessionStorage.getItem(e.lookupSessionStorage);
|
|
3769
3860
|
i && (t = i);
|
|
3770
3861
|
}
|
|
3771
3862
|
return t;
|
|
3772
3863
|
},
|
|
3773
3864
|
cacheUserLanguage: function(e, t) {
|
|
3774
|
-
t.lookupSessionStorage &&
|
|
3865
|
+
t.lookupSessionStorage && Ct() && window.sessionStorage.setItem(t.lookupSessionStorage, e);
|
|
3775
3866
|
}
|
|
3776
|
-
},
|
|
3867
|
+
}, Ha = {
|
|
3777
3868
|
name: "navigator",
|
|
3778
3869
|
lookup: function(e) {
|
|
3779
3870
|
var t = [];
|
|
@@ -3785,13 +3876,13 @@ var St = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Ua = function(e, t, i) {
|
|
|
3785
3876
|
}
|
|
3786
3877
|
return t.length > 0 ? t : void 0;
|
|
3787
3878
|
}
|
|
3788
|
-
},
|
|
3879
|
+
}, Za = {
|
|
3789
3880
|
name: "htmlTag",
|
|
3790
3881
|
lookup: function(e) {
|
|
3791
3882
|
var t, i = e.htmlTag || (typeof document != "undefined" ? document.documentElement : null);
|
|
3792
3883
|
return i && typeof i.getAttribute == "function" && (t = i.getAttribute("lang")), t;
|
|
3793
3884
|
}
|
|
3794
|
-
},
|
|
3885
|
+
}, Xa = {
|
|
3795
3886
|
name: "path",
|
|
3796
3887
|
lookup: function(e) {
|
|
3797
3888
|
var t;
|
|
@@ -3807,7 +3898,7 @@ var St = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Ua = function(e, t, i) {
|
|
|
3807
3898
|
}
|
|
3808
3899
|
return t;
|
|
3809
3900
|
}
|
|
3810
|
-
},
|
|
3901
|
+
}, Ya = {
|
|
3811
3902
|
name: "subdomain",
|
|
3812
3903
|
lookup: function(e) {
|
|
3813
3904
|
var t = typeof e.lookupFromSubdomainIndex == "number" ? e.lookupFromSubdomainIndex + 1 : 1, i = typeof window != "undefined" && window.location && window.location.hostname && window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);
|
|
@@ -3815,7 +3906,7 @@ var St = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Ua = function(e, t, i) {
|
|
|
3815
3906
|
return i[t];
|
|
3816
3907
|
}
|
|
3817
3908
|
};
|
|
3818
|
-
function
|
|
3909
|
+
function es() {
|
|
3819
3910
|
return {
|
|
3820
3911
|
order: ["querystring", "cookie", "localStorage", "sessionStorage", "navigator", "htmlTag"],
|
|
3821
3912
|
lookupQuerystring: "lng",
|
|
@@ -3832,20 +3923,20 @@ function Wa() {
|
|
|
3832
3923
|
}
|
|
3833
3924
|
};
|
|
3834
3925
|
}
|
|
3835
|
-
var
|
|
3926
|
+
var Yt = /* @__PURE__ */ function() {
|
|
3836
3927
|
function n(e) {
|
|
3837
3928
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
3838
|
-
|
|
3929
|
+
Ua(this, n), this.type = "languageDetector", this.detectors = {}, this.init(e, t);
|
|
3839
3930
|
}
|
|
3840
|
-
return
|
|
3931
|
+
return $a(n, [{
|
|
3841
3932
|
key: "init",
|
|
3842
3933
|
value: function(t) {
|
|
3843
3934
|
var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
3844
3935
|
this.services = t || {
|
|
3845
3936
|
languageUtils: {}
|
|
3846
|
-
}, this.options =
|
|
3937
|
+
}, this.options = Qa(i, this.options || {}, es()), typeof this.options.convertDetectedLanguage == "string" && this.options.convertDetectedLanguage.indexOf("15897") > -1 && (this.options.convertDetectedLanguage = function(s) {
|
|
3847
3938
|
return s.replace("-", "_");
|
|
3848
|
-
}), this.options.lookupFromUrlIndex && (this.options.lookupFromPathIndex = this.options.lookupFromUrlIndex), this.i18nOptions = a, this.addDetector(
|
|
3939
|
+
}), this.options.lookupFromUrlIndex && (this.options.lookupFromPathIndex = this.options.lookupFromUrlIndex), this.i18nOptions = a, this.addDetector(Ga), this.addDetector(Wa), this.addDetector(Ja), this.addDetector(qa), this.addDetector(Ha), this.addDetector(Za), this.addDetector(Xa), this.addDetector(Ya);
|
|
3849
3940
|
}
|
|
3850
3941
|
}, {
|
|
3851
3942
|
key: "addDetector",
|
|
@@ -3877,8 +3968,8 @@ var Zt = /* @__PURE__ */ function() {
|
|
|
3877
3968
|
}
|
|
3878
3969
|
}]), n;
|
|
3879
3970
|
}();
|
|
3880
|
-
|
|
3881
|
-
const
|
|
3971
|
+
Yt.type = "languageDetector";
|
|
3972
|
+
const ts = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, ns = {
|
|
3882
3973
|
"&": "&",
|
|
3883
3974
|
"&": "&",
|
|
3884
3975
|
"<": "<",
|
|
@@ -3899,8 +3990,8 @@ const Ka = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|
|
|
|
3899
3990
|
"…": "…",
|
|
3900
3991
|
"/": "/",
|
|
3901
3992
|
"/": "/"
|
|
3902
|
-
},
|
|
3903
|
-
let
|
|
3993
|
+
}, is = (n) => ns[n], as = (n) => n.replace(ts, is);
|
|
3994
|
+
let Et = {
|
|
3904
3995
|
bindI18n: "languageChanged",
|
|
3905
3996
|
bindI18nStore: "",
|
|
3906
3997
|
transEmptyNodeValue: "",
|
|
@@ -3908,21 +3999,21 @@ let Ft = {
|
|
|
3908
3999
|
transWrapTextNodes: "",
|
|
3909
4000
|
transKeepBasicHtmlNodesFor: ["br", "strong", "i", "p"],
|
|
3910
4001
|
useSuspense: !0,
|
|
3911
|
-
unescape:
|
|
4002
|
+
unescape: as
|
|
3912
4003
|
};
|
|
3913
|
-
function
|
|
4004
|
+
function ss() {
|
|
3914
4005
|
let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
3915
|
-
|
|
3916
|
-
...
|
|
4006
|
+
Et = {
|
|
4007
|
+
...Et,
|
|
3917
4008
|
...n
|
|
3918
4009
|
};
|
|
3919
4010
|
}
|
|
3920
|
-
const
|
|
4011
|
+
const rs = {
|
|
3921
4012
|
type: "3rdParty",
|
|
3922
4013
|
init(n) {
|
|
3923
|
-
|
|
4014
|
+
ss(n.options.react);
|
|
3924
4015
|
}
|
|
3925
|
-
},
|
|
4016
|
+
}, Ys = U.use(rs).use(Yt).init({
|
|
3926
4017
|
resources: {},
|
|
3927
4018
|
fallbackLng: "en",
|
|
3928
4019
|
debug: !1,
|
|
@@ -3960,56 +4051,56 @@ const Ya = {
|
|
|
3960
4051
|
]
|
|
3961
4052
|
}
|
|
3962
4053
|
});
|
|
3963
|
-
let
|
|
3964
|
-
const
|
|
3965
|
-
const t =
|
|
4054
|
+
let Ge = /* @__PURE__ */ new Map();
|
|
4055
|
+
const Ie = Ot(Ge), er = ({ children: n, stores: e }) => {
|
|
4056
|
+
const t = Pe(Ie), i = Tt(() => {
|
|
3966
4057
|
const a = /* @__PURE__ */ new Map();
|
|
3967
|
-
return e.forEach((s) => a.set(s.class, s.value)),
|
|
4058
|
+
return e.forEach((s) => a.set(s.class, s.value)), Ge = new Map([...t, ...a]);
|
|
3968
4059
|
}, []);
|
|
3969
|
-
return /* @__PURE__ */
|
|
4060
|
+
return /* @__PURE__ */ on(Ie.Provider, { value: i, children: n });
|
|
3970
4061
|
};
|
|
3971
|
-
function
|
|
3972
|
-
return
|
|
4062
|
+
function tr(n) {
|
|
4063
|
+
return Pe(Ie).get(n);
|
|
3973
4064
|
}
|
|
3974
|
-
function
|
|
3975
|
-
return
|
|
4065
|
+
function nr(n) {
|
|
4066
|
+
return Ge.get(n);
|
|
3976
4067
|
}
|
|
3977
|
-
var
|
|
3978
|
-
const es = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "AddCollection" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "CreateCollectionInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "createCollection" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CollectionSuccess" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, ts = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "DeleteCollection" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "QueryInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "deleteCollection" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, ns = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FindCollection" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "QueryInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "findCollection" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CollectionSuccess" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "name" } }, { kind: "Field", name: { kind: "Name", value: "description" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "createdat" } }, { kind: "Field", name: { kind: "Name", value: "products" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "title" } }, { kind: "Field", name: { kind: "Name", value: "link" } }, { kind: "Field", name: { kind: "Name", value: "pictures" } }, { kind: "Field", name: { kind: "Name", value: "price" } }, { kind: "Field", name: { kind: "Name", value: "salesprice" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "createdat" } }] } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, is = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "GetAllCollections" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "QueryInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "getAllCollection" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CollectionSuccessArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "name" } }, { kind: "Field", name: { kind: "Name", value: "description" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "createdat" } }, { kind: "Field", name: { kind: "Name", value: "products" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "title" } }, { kind: "Field", name: { kind: "Name", value: "link" } }, { kind: "Field", name: { kind: "Name", value: "pictures" } }, { kind: "Field", name: { kind: "Name", value: "price" } }, { kind: "Field", name: { kind: "Name", value: "salesprice" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "createdat" } }] } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, as = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "ManageCollectionProduct" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ManageCollectionProductInInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "manageCollectionProduct" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, ss = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "SearchCollections" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "QueryInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "searchCollection" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CollectionSuccessArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "name" } }, { kind: "Field", name: { kind: "Name", value: "description" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "createdat" } }, { kind: "Field", name: { kind: "Name", value: "products" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "title" } }, { kind: "Field", name: { kind: "Name", value: "link" } }, { kind: "Field", name: { kind: "Name", value: "pictures" } }, { kind: "Field", name: { kind: "Name", value: "price" } }, { kind: "Field", name: { kind: "Name", value: "salesprice" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "createdat" } }] } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, rs = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "UpdateCollection" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "UpdateCollectionInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "updateCollection" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, os = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FindMinimalEvent" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "FindEventInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "findEvent" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "EventData" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "eventName" } }, { kind: "Field", name: { kind: "Name", value: "thumbnailsPath" } }, { kind: "Field", name: { kind: "Name", value: "recordVideoPath" } }, { kind: "Field", name: { kind: "Name", value: "createdAt" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "thumbnails" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, ls = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "SearchMinimalEvents" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "SearchEventInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "searchEvent" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "EventArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "eventName" } }, { kind: "Field", name: { kind: "Name", value: "thumbnailsPath" } }, { kind: "Field", name: { kind: "Name", value: "recordVideoPath" } }, { kind: "Field", name: { kind: "Name", value: "createdAt" } }, { kind: "Field", name: { kind: "Name", value: "status" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, ds = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "BlockUser" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "BlockUserInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "blockUser" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "BlockUserSuccess" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }] } }] } }] }, us = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "ChangeAccountUsername" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ChangeUsernameInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "changeAccountUsername" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ChangeUsernameSuccess" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }] } }] } }] }, cs = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "DeleteChatMessage" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "DeleteChatInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "deleteChatMessage" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "DeleteChatMessageSuccess" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }] } }] } }] }, ms = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "GetAllChatMessage" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "GetAllChatMessageInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "getAllChatMessage" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ChatMessageArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "connectionId" } }, { kind: "Field", name: { kind: "Name", value: "data" } }, { kind: "Field", name: { kind: "Name", value: "email" } }, { kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "idEvent" } }, { kind: "Field", name: { kind: "Name", value: "sendDate" } }, { kind: "Field", name: { kind: "Name", value: "sessionId" } }, { kind: "Field", name: { kind: "Name", value: "type" } }, { kind: "Field", name: { kind: "Name", value: "username" } }, { kind: "Field", name: { kind: "Name", value: "isAdmin" } }, { kind: "Field", name: { kind: "Name", value: "urlGif" } }, { kind: "Field", name: { kind: "Name", value: "second" } }, { kind: "Field", name: { kind: "Name", value: "ip" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, fs = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "GetChatRoomToken" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "GetChatRoomInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "getChatRoomToken" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ChatRoomTokenData" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "token" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, ps = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "PinChatMessage" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "PinChatInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "pinChatMessage" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "PinChatMessageSuccess" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }] } }] } }] }, hs = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "deleteAllCustomization" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "CustomPlayerInputAccount" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "deleteAllCustomPlayer" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, gs = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "getAllCustomization" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "QueryInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "getAllCustomPlayer" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CustomPlayerSuccessArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "data" } }, { kind: "Field", name: { kind: "Name", value: "section" } }, { kind: "Field", name: { kind: "Name", value: "id" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, ks = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "updateCustomization" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "CustomPlayerInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "updateCustomPlayer" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, vs = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "GetTimeLine" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "GetTimeLineInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "getTimeLine" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "TimeLineArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "time" } }, { kind: "Field", name: { kind: "Name", value: "likes" } }, { kind: "Field", name: { kind: "Name", value: "comments" } }, { kind: "Field", name: { kind: "Name", value: "viewers" } }, { kind: "Field", name: { kind: "Name", value: "orders" } }, { kind: "Field", name: { kind: "Name", value: "minute" } }, { kind: "Field", name: { kind: "Name", value: "hour" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, Ss = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "AppendProductsToSnackVideo" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "RelateToProductsSnackVideoInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "appendProductsSnackVideo" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ActionSnackVideoSuccess" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, ys = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "CreateSnackVideoBatch" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "CreateSnackVideoInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "createSnackVideos" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "SnackVideoArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, Ns = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "DeleteRelationshipWithSnackVideo" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "SnackVideoRelationshipKeys" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "deleteRelationshipSnackVideo" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ActionSnackVideoSuccess" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }] } }] } }] } }] }, bs = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "DeleteSnackVideo" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "DeleteSnackVideoInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "deleteSnackVideo" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ActionSnackVideoSuccess" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }] } }] } }] }, Fs = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FindManySnackVideos" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "FindManySnackVideoInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "findManySnackVideos" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "SnackVideoArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "name" } }, { kind: "Field", name: { kind: "Name", value: "url" } }, { kind: "Field", name: { kind: "Name", value: "thumbnailUrl" } }, { kind: "Field", name: { kind: "Name", value: "uploadProgress" } }, { kind: "Field", name: { kind: "Name", value: "duration" } }, { kind: "Field", name: { kind: "Name", value: "eventId" } }, { kind: "Field", name: { kind: "Name", value: "eventName" } }, { kind: "Field", name: { kind: "Name", value: "transmitionType" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, Es = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "GetAllSnackVideos" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "QueryInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "getAllSnackVideos" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "SnackVideoCreatedArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "snackVideos" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "name" } }, { kind: "Field", name: { kind: "Name", value: "url" } }, { kind: "Field", name: { kind: "Name", value: "thumbnailUrl" } }, { kind: "Field", name: { kind: "Name", value: "uploadProgress" } }, { kind: "Field", name: { kind: "Name", value: "duration" } }, { kind: "Field", name: { kind: "Name", value: "eventId" } }, { kind: "Field", name: { kind: "Name", value: "eventName" } }, { kind: "Field", name: { kind: "Name", value: "created" } }, { kind: "Field", name: { kind: "Name", value: "transmitionType" } }] } }, { kind: "Field", name: { kind: "Name", value: "cursor" } }, { kind: "Field", name: { kind: "Name", value: "totalItems" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, Os = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "GetSnackVideoRelationships" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "SnackVideoRelationshipInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "getRelationshipSnackVideos" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "RelationshipSnackVideoArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "sourceEntity" } }, { kind: "Field", name: { kind: "Name", value: "attributeId" } }] } }] } }] } }] } }] }, ws = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "SearchSnackVideos" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "SearchInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "searchSnackVideos" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "SnackVideoCreatedArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "snackVideos" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "name" } }, { kind: "Field", name: { kind: "Name", value: "url" } }, { kind: "Field", name: { kind: "Name", value: "thumbnailUrl" } }, { kind: "Field", name: { kind: "Name", value: "uploadProgress" } }, { kind: "Field", name: { kind: "Name", value: "duration" } }, { kind: "Field", name: { kind: "Name", value: "eventId" } }, { kind: "Field", name: { kind: "Name", value: "eventName" } }, { kind: "Field", name: { kind: "Name", value: "created" } }] } }, { kind: "Field", name: { kind: "Name", value: "cursor" } }, { kind: "Field", name: { kind: "Name", value: "totalItems" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, Rs = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FindByProductSnackVideo" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "FindByProductSnackVideoInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "findByProductSnackVideo" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "SnackVideoArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "name" } }, { kind: "Field", name: { kind: "Name", value: "url" } }, { kind: "Field", name: { kind: "Name", value: "thumbnailUrl" } }, { kind: "Field", name: { kind: "Name", value: "duration" } }, { kind: "Field", name: { kind: "Name", value: "transmitionType" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, qs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4068
|
+
var en = /* @__PURE__ */ ((n) => (n.Created = "CREATED", n.Finalized = "FINALIZED", n.Live = "LIVE", n.Starting = "STARTING", n))(en || {}), tn = /* @__PURE__ */ ((n) => (n.Add = "add", n.Remove = "remove", n))(tn || {}), nn = /* @__PURE__ */ ((n) => (n.Active = "active", n.Inactive = "inactive", n))(nn || {});
|
|
4069
|
+
const os = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "AddCollection" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "CreateCollectionInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "createCollection" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CollectionSuccess" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, ls = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "DeleteCollection" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "QueryInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "deleteCollection" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, ds = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FindCollection" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "QueryInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "findCollection" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CollectionSuccess" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "name" } }, { kind: "Field", name: { kind: "Name", value: "description" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "createdat" } }, { kind: "Field", name: { kind: "Name", value: "products" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "title" } }, { kind: "Field", name: { kind: "Name", value: "link" } }, { kind: "Field", name: { kind: "Name", value: "pictures" } }, { kind: "Field", name: { kind: "Name", value: "price" } }, { kind: "Field", name: { kind: "Name", value: "salesprice" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "createdat" } }] } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, us = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "GetAllCollections" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "QueryInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "getAllCollection" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CollectionSuccessArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "name" } }, { kind: "Field", name: { kind: "Name", value: "description" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "createdat" } }, { kind: "Field", name: { kind: "Name", value: "products" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "title" } }, { kind: "Field", name: { kind: "Name", value: "link" } }, { kind: "Field", name: { kind: "Name", value: "pictures" } }, { kind: "Field", name: { kind: "Name", value: "price" } }, { kind: "Field", name: { kind: "Name", value: "salesprice" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "createdat" } }] } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, cs = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "ManageCollectionProduct" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ManageCollectionProductInInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "manageCollectionProduct" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, ms = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "SearchCollections" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "QueryInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "searchCollection" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CollectionSuccessArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "name" } }, { kind: "Field", name: { kind: "Name", value: "description" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "createdat" } }, { kind: "Field", name: { kind: "Name", value: "products" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "title" } }, { kind: "Field", name: { kind: "Name", value: "link" } }, { kind: "Field", name: { kind: "Name", value: "pictures" } }, { kind: "Field", name: { kind: "Name", value: "price" } }, { kind: "Field", name: { kind: "Name", value: "salesprice" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "createdat" } }] } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, fs = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "UpdateCollection" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "UpdateCollectionInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "updateCollection" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, ps = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FindMinimalEvent" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "FindEventInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "findEvent" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "EventData" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "eventName" } }, { kind: "Field", name: { kind: "Name", value: "thumbnailsPath" } }, { kind: "Field", name: { kind: "Name", value: "recordVideoPath" } }, { kind: "Field", name: { kind: "Name", value: "createdAt" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "thumbnails" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, hs = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "SearchMinimalEvents" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "SearchEventInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "searchEvent" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "EventArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "eventName" } }, { kind: "Field", name: { kind: "Name", value: "thumbnailsPath" } }, { kind: "Field", name: { kind: "Name", value: "recordVideoPath" } }, { kind: "Field", name: { kind: "Name", value: "createdAt" } }, { kind: "Field", name: { kind: "Name", value: "status" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, gs = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "BlockUser" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "BlockUserInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "blockUser" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "BlockUserSuccess" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }] } }] } }] }, ks = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "ChangeAccountUsername" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ChangeUsernameInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "changeAccountUsername" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ChangeUsernameSuccess" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }] } }] } }] }, vs = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "DeleteChatMessage" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "DeleteChatInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "deleteChatMessage" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "DeleteChatMessageSuccess" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }] } }] } }] }, Ss = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "GetAllChatMessage" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "GetAllChatMessageInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "getAllChatMessage" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ChatMessageArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "connectionId" } }, { kind: "Field", name: { kind: "Name", value: "data" } }, { kind: "Field", name: { kind: "Name", value: "email" } }, { kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "idEvent" } }, { kind: "Field", name: { kind: "Name", value: "sendDate" } }, { kind: "Field", name: { kind: "Name", value: "sessionId" } }, { kind: "Field", name: { kind: "Name", value: "type" } }, { kind: "Field", name: { kind: "Name", value: "username" } }, { kind: "Field", name: { kind: "Name", value: "isAdmin" } }, { kind: "Field", name: { kind: "Name", value: "urlGif" } }, { kind: "Field", name: { kind: "Name", value: "second" } }, { kind: "Field", name: { kind: "Name", value: "ip" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, ys = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "GetChatRoomToken" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "GetChatRoomInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "getChatRoomToken" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ChatRoomTokenData" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "token" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, Ns = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "PinChatMessage" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "PinChatInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "pinChatMessage" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "PinChatMessageSuccess" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }] } }] } }] }, bs = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "deleteAllCustomization" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "CustomPlayerInputAccount" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "deleteAllCustomPlayer" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, Fs = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "getAllCustomization" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "QueryInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "getAllCustomPlayer" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CustomPlayerSuccessArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "data" } }, { kind: "Field", name: { kind: "Name", value: "section" } }, { kind: "Field", name: { kind: "Name", value: "id" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, ws = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "updateCustomization" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "CustomPlayerInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "updateCustomPlayer" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, Cs = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "GetTimeLine" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "GetTimeLineInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "getTimeLine" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "TimeLineArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "time" } }, { kind: "Field", name: { kind: "Name", value: "likes" } }, { kind: "Field", name: { kind: "Name", value: "comments" } }, { kind: "Field", name: { kind: "Name", value: "viewers" } }, { kind: "Field", name: { kind: "Name", value: "orders" } }, { kind: "Field", name: { kind: "Name", value: "minute" } }, { kind: "Field", name: { kind: "Name", value: "hour" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, Es = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "AppendProductsToSnackVideo" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "RelateToProductsSnackVideoInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "appendProductsSnackVideo" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ActionSnackVideoSuccess" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, Os = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "CreateSnackVideoBatch" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "CreateSnackVideoInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "createSnackVideos" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "SnackVideoArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, Rs = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "DeleteRelationshipWithSnackVideo" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "SnackVideoRelationshipKeys" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "deleteRelationshipSnackVideo" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ActionSnackVideoSuccess" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }] } }] } }] } }] }, xs = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "DeleteSnackVideo" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "DeleteSnackVideoInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "deleteSnackVideo" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ActionSnackVideoSuccess" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }] } }] } }] }, Ts = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FindManySnackVideos" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "FindManySnackVideoInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "findManySnackVideos" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "SnackVideoArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "name" } }, { kind: "Field", name: { kind: "Name", value: "url" } }, { kind: "Field", name: { kind: "Name", value: "thumbnailUrl" } }, { kind: "Field", name: { kind: "Name", value: "uploadProgress" } }, { kind: "Field", name: { kind: "Name", value: "duration" } }, { kind: "Field", name: { kind: "Name", value: "eventId" } }, { kind: "Field", name: { kind: "Name", value: "eventName" } }, { kind: "Field", name: { kind: "Name", value: "transmitionType" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, Ds = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "GetAllSnackVideos" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "QueryInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "getAllSnackVideos" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "SnackVideoCreatedArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "snackVideos" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "name" } }, { kind: "Field", name: { kind: "Name", value: "url" } }, { kind: "Field", name: { kind: "Name", value: "thumbnailUrl" } }, { kind: "Field", name: { kind: "Name", value: "uploadProgress" } }, { kind: "Field", name: { kind: "Name", value: "duration" } }, { kind: "Field", name: { kind: "Name", value: "eventId" } }, { kind: "Field", name: { kind: "Name", value: "eventName" } }, { kind: "Field", name: { kind: "Name", value: "created" } }, { kind: "Field", name: { kind: "Name", value: "transmitionType" } }] } }, { kind: "Field", name: { kind: "Name", value: "cursor" } }, { kind: "Field", name: { kind: "Name", value: "totalItems" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, Ls = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "GetSnackVideoRelationships" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "SnackVideoRelationshipInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "getRelationshipSnackVideos" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "RelationshipSnackVideoArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "sourceEntity" } }, { kind: "Field", name: { kind: "Name", value: "attributeId" } }] } }] } }] } }] } }] }, Is = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "SearchSnackVideos" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "SearchInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "searchSnackVideos" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "SnackVideoCreatedArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "snackVideos" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "name" } }, { kind: "Field", name: { kind: "Name", value: "url" } }, { kind: "Field", name: { kind: "Name", value: "thumbnailUrl" } }, { kind: "Field", name: { kind: "Name", value: "uploadProgress" } }, { kind: "Field", name: { kind: "Name", value: "duration" } }, { kind: "Field", name: { kind: "Name", value: "eventId" } }, { kind: "Field", name: { kind: "Name", value: "eventName" } }, { kind: "Field", name: { kind: "Name", value: "created" } }] } }, { kind: "Field", name: { kind: "Name", value: "cursor" } }, { kind: "Field", name: { kind: "Name", value: "totalItems" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, As = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FindByProductSnackVideo" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "FindByProductSnackVideoInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "findByProductSnackVideo" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "SnackVideoArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "name" } }, { kind: "Field", name: { kind: "Name", value: "url" } }, { kind: "Field", name: { kind: "Name", value: "thumbnailUrl" } }, { kind: "Field", name: { kind: "Name", value: "duration" } }, { kind: "Field", name: { kind: "Name", value: "transmitionType" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, ir = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3979
4070
|
__proto__: null,
|
|
3980
|
-
AddCollectionDocument:
|
|
3981
|
-
AppendProductsToSnackVideoDocument:
|
|
3982
|
-
BlockUserDocument:
|
|
3983
|
-
ChangeAccountUsernameDocument:
|
|
3984
|
-
CreateSnackVideoBatchDocument:
|
|
3985
|
-
DeleteAllCustomizationDocument:
|
|
3986
|
-
DeleteChatMessageDocument:
|
|
3987
|
-
DeleteCollectionDocument:
|
|
3988
|
-
DeleteRelationshipWithSnackVideoDocument:
|
|
3989
|
-
DeleteSnackVideoDocument:
|
|
3990
|
-
EventStatus:
|
|
3991
|
-
FindByProductSnackVideoDocument:
|
|
3992
|
-
FindCollectionDocument:
|
|
3993
|
-
FindManySnackVideosDocument:
|
|
3994
|
-
FindMinimalEventDocument:
|
|
3995
|
-
GetAllChatMessageDocument:
|
|
3996
|
-
GetAllCollectionsDocument:
|
|
3997
|
-
GetAllCustomizationDocument:
|
|
3998
|
-
GetAllSnackVideosDocument:
|
|
3999
|
-
GetChatRoomTokenDocument:
|
|
4000
|
-
GetSnackVideoRelationshipsDocument:
|
|
4001
|
-
GetTimeLineDocument:
|
|
4002
|
-
ManageCollectionProductDocument:
|
|
4003
|
-
Methods:
|
|
4004
|
-
PinChatMessageDocument:
|
|
4005
|
-
SearchCollectionsDocument:
|
|
4006
|
-
SearchMinimalEventsDocument:
|
|
4007
|
-
SearchSnackVideosDocument:
|
|
4008
|
-
Status:
|
|
4009
|
-
UpdateCollectionDocument:
|
|
4010
|
-
UpdateCustomizationDocument:
|
|
4071
|
+
AddCollectionDocument: os,
|
|
4072
|
+
AppendProductsToSnackVideoDocument: Es,
|
|
4073
|
+
BlockUserDocument: gs,
|
|
4074
|
+
ChangeAccountUsernameDocument: ks,
|
|
4075
|
+
CreateSnackVideoBatchDocument: Os,
|
|
4076
|
+
DeleteAllCustomizationDocument: bs,
|
|
4077
|
+
DeleteChatMessageDocument: vs,
|
|
4078
|
+
DeleteCollectionDocument: ls,
|
|
4079
|
+
DeleteRelationshipWithSnackVideoDocument: Rs,
|
|
4080
|
+
DeleteSnackVideoDocument: xs,
|
|
4081
|
+
EventStatus: en,
|
|
4082
|
+
FindByProductSnackVideoDocument: As,
|
|
4083
|
+
FindCollectionDocument: ds,
|
|
4084
|
+
FindManySnackVideosDocument: Ts,
|
|
4085
|
+
FindMinimalEventDocument: ps,
|
|
4086
|
+
GetAllChatMessageDocument: Ss,
|
|
4087
|
+
GetAllCollectionsDocument: us,
|
|
4088
|
+
GetAllCustomizationDocument: Fs,
|
|
4089
|
+
GetAllSnackVideosDocument: Ds,
|
|
4090
|
+
GetChatRoomTokenDocument: ys,
|
|
4091
|
+
GetSnackVideoRelationshipsDocument: Ls,
|
|
4092
|
+
GetTimeLineDocument: Cs,
|
|
4093
|
+
ManageCollectionProductDocument: cs,
|
|
4094
|
+
Methods: tn,
|
|
4095
|
+
PinChatMessageDocument: Ns,
|
|
4096
|
+
SearchCollectionsDocument: ms,
|
|
4097
|
+
SearchMinimalEventsDocument: hs,
|
|
4098
|
+
SearchSnackVideosDocument: Is,
|
|
4099
|
+
Status: nn,
|
|
4100
|
+
UpdateCollectionDocument: fs,
|
|
4101
|
+
UpdateCustomizationDocument: ws
|
|
4011
4102
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4012
|
-
function
|
|
4103
|
+
function ar(n) {
|
|
4013
4104
|
return {
|
|
4014
4105
|
class: n,
|
|
4015
4106
|
_value: null,
|
|
@@ -4019,55 +4110,55 @@ function Xs(n) {
|
|
|
4019
4110
|
};
|
|
4020
4111
|
}
|
|
4021
4112
|
export {
|
|
4022
|
-
|
|
4023
|
-
|
|
4024
|
-
|
|
4025
|
-
|
|
4026
|
-
|
|
4027
|
-
|
|
4028
|
-
|
|
4029
|
-
|
|
4030
|
-
|
|
4031
|
-
|
|
4032
|
-
|
|
4033
|
-
|
|
4034
|
-
|
|
4035
|
-
|
|
4036
|
-
|
|
4037
|
-
|
|
4038
|
-
|
|
4039
|
-
|
|
4040
|
-
|
|
4041
|
-
|
|
4042
|
-
|
|
4043
|
-
|
|
4044
|
-
|
|
4045
|
-
|
|
4046
|
-
|
|
4047
|
-
|
|
4048
|
-
|
|
4049
|
-
|
|
4050
|
-
|
|
4051
|
-
|
|
4113
|
+
Gt as AccountContractStatusTypes,
|
|
4114
|
+
Ni as AccountContractTypes,
|
|
4115
|
+
Qs as AccountInvalidError,
|
|
4116
|
+
Fi as AccountPlanDescriptionTypes,
|
|
4117
|
+
Ei as AccountRestRepository,
|
|
4118
|
+
Oi as AccountService,
|
|
4119
|
+
bi as AccountSubscriptionTypes,
|
|
4120
|
+
Kt as AccountTypes,
|
|
4121
|
+
Si as AggregateRoot,
|
|
4122
|
+
ir as ApiGraphqlTypes,
|
|
4123
|
+
Ws as BaseMobxStore,
|
|
4124
|
+
Xn as BroadcastChannelEventBus,
|
|
4125
|
+
ye as DomainError,
|
|
4126
|
+
Hs as EventBusWildcards,
|
|
4127
|
+
Zs as EventNames,
|
|
4128
|
+
wi as GlobalPageSectionTypes,
|
|
4129
|
+
vi as InvalidNizzaGlobalObjectError,
|
|
4130
|
+
fa as LanguageTypes,
|
|
4131
|
+
ni as Logger,
|
|
4132
|
+
ze as NizzaAccount,
|
|
4133
|
+
ma as NizzaEventStatus,
|
|
4134
|
+
ha as NizzaProductRequestOriginTypes,
|
|
4135
|
+
pa as NizzaVariationTypes,
|
|
4136
|
+
gi as ResourceNotFoundError,
|
|
4137
|
+
er as StoreProvider,
|
|
4138
|
+
ki as UnexpectedError,
|
|
4139
|
+
Js as ValueObject,
|
|
4140
|
+
Ve as accountAtom,
|
|
4141
|
+
Wt as accountService,
|
|
4142
|
+
Us as apiCall,
|
|
4052
4143
|
ee as coreLogger,
|
|
4053
|
-
|
|
4054
|
-
|
|
4055
|
-
|
|
4056
|
-
|
|
4057
|
-
|
|
4058
|
-
|
|
4059
|
-
|
|
4060
|
-
|
|
4061
|
-
|
|
4062
|
-
|
|
4063
|
-
|
|
4064
|
-
|
|
4065
|
-
|
|
4066
|
-
|
|
4067
|
-
|
|
4068
|
-
|
|
4069
|
-
|
|
4070
|
-
|
|
4071
|
-
|
|
4144
|
+
yi as createAggregateRoot,
|
|
4145
|
+
ar as createStore,
|
|
4146
|
+
It as customFetch,
|
|
4147
|
+
Ms as downloadFile,
|
|
4148
|
+
$s as fileOrigin,
|
|
4149
|
+
ca as getAccount,
|
|
4150
|
+
Gs as getClientTimeZone,
|
|
4151
|
+
nr as getStore,
|
|
4152
|
+
ua as globalAtomStore,
|
|
4153
|
+
Ys as i18n,
|
|
4154
|
+
On as jsDownload,
|
|
4155
|
+
Bs as logger,
|
|
4156
|
+
je as nizza,
|
|
4157
|
+
Xs as registerTranslations,
|
|
4158
|
+
js as searchParams,
|
|
4159
|
+
ei as shortId,
|
|
4160
|
+
qs as useAccount,
|
|
4161
|
+
tr as useStore,
|
|
4162
|
+
Ks as validateRequiredProps
|
|
4072
4163
|
};
|
|
4073
4164
|
//# sourceMappingURL=index.mjs.map
|