@nizza/core 0.4.5-alpha.10 → 0.4.5-alpha.12
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/environments/environment.local.d.ts +21 -1
- package/dist/index.cjs +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +388 -388
- package/dist/index.mjs.map +1 -1
- package/dist/lib/constants/products.d.ts +2 -1
- package/dist/lib/i18n/init.d.ts +2 -2
- package/dist/lib/types/nizza/productDataSource.d.ts +1 -0
- package/dist/lib/types/vtex/checkout.d.ts +6 -0
- package/dist/lib/types/vtex/index.d.ts +1 -0
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2,9 +2,9 @@ var an = Object.defineProperty;
|
|
|
2
2
|
var sn = (n, e, t) => e in n ? an(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
|
|
3
3
|
var x = (n, e, t) => (sn(n, typeof e != "symbol" ? e + "" : e, t), t);
|
|
4
4
|
import * as M from "react";
|
|
5
|
-
import Ae, { createContext as Ot, useReducer as rn, useEffect as
|
|
5
|
+
import Ae, { createContext as Ot, useReducer as rn, useEffect as ye, useDebugValue as Rt, useCallback as xt, useContext as Pe, useRef as Re, useMemo as Lt } from "react";
|
|
6
6
|
import { jsx as on } from "react/jsx-runtime";
|
|
7
|
-
var _ = { NZ_AWS_REGION: "us-east-1",
|
|
7
|
+
var _ = { NZ_AWS_REGION: "us-east-1", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
|
|
8
8
|
let ln = 0;
|
|
9
9
|
function dn(n, e) {
|
|
10
10
|
const t = `atom${++ln}`, i = {
|
|
@@ -25,11 +25,11 @@ const be = (n) => "init" in n, Fe = (n) => !!n.write, ue = /* @__PURE__ */ new W
|
|
|
25
25
|
}, We = (n, e) => {
|
|
26
26
|
const t = ue.get(n);
|
|
27
27
|
t && (ue.delete(n), t(e));
|
|
28
|
-
}, Je = (n, e) => {
|
|
29
|
-
n.status = "fulfilled", n.value = e;
|
|
30
28
|
}, qe = (n, e) => {
|
|
29
|
+
n.status = "fulfilled", n.value = e;
|
|
30
|
+
}, He = (n, e) => {
|
|
31
31
|
n.status = "rejected", n.reason = e;
|
|
32
|
-
}, cn = (n) => typeof (n == null ? void 0 : n.then) == "function",
|
|
32
|
+
}, cn = (n) => typeof (n == null ? void 0 : n.then) == "function", q = (n, e) => !!n && "v" in n && "v" in e && Object.is(n.v, e.v), Je = (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) => {
|
|
33
33
|
if ("e" in n)
|
|
34
34
|
throw n.e;
|
|
35
35
|
return n.v;
|
|
@@ -55,7 +55,7 @@ const be = (n) => "init" in n, Fe = (n) => !!n.write, ue = /* @__PURE__ */ new W
|
|
|
55
55
|
d: (h == null ? void 0 : h.d) || /* @__PURE__ */ new Map(),
|
|
56
56
|
v: m
|
|
57
57
|
};
|
|
58
|
-
if (g && o(f, N, g),
|
|
58
|
+
if (g && o(f, N, g), q(h, N) && h.d === N.d)
|
|
59
59
|
return h;
|
|
60
60
|
if (B(h) && B(N) && mn(h, N)) {
|
|
61
61
|
if (h.d === N.d)
|
|
@@ -70,25 +70,25 @@ const be = (n) => "init" in n, Fe = (n) => !!n.write, ue = /* @__PURE__ */ new W
|
|
|
70
70
|
const O = s(f);
|
|
71
71
|
if (!B(O) || O.v !== b)
|
|
72
72
|
return;
|
|
73
|
-
const
|
|
73
|
+
const L = d(
|
|
74
74
|
f,
|
|
75
75
|
b,
|
|
76
76
|
g
|
|
77
77
|
);
|
|
78
|
-
e.has(f) && O.d !==
|
|
79
|
-
}, b = new Promise((O,
|
|
78
|
+
e.has(f) && O.d !== L.d && T(f, L, O.d);
|
|
79
|
+
}, b = new Promise((O, L) => {
|
|
80
80
|
let R = !1;
|
|
81
81
|
m.then(
|
|
82
82
|
(D) => {
|
|
83
|
-
R || (R = !0,
|
|
83
|
+
R || (R = !0, qe(b, D), O(D), C());
|
|
84
84
|
},
|
|
85
85
|
(D) => {
|
|
86
|
-
R || (R = !0,
|
|
86
|
+
R || (R = !0, He(b, D), L(D), C());
|
|
87
87
|
}
|
|
88
88
|
), N = (D) => {
|
|
89
89
|
R || (R = !0, D.then(
|
|
90
|
-
(V) =>
|
|
91
|
-
(V) =>
|
|
90
|
+
(V) => qe(b, V),
|
|
91
|
+
(V) => He(b, V)
|
|
92
92
|
), O(D));
|
|
93
93
|
};
|
|
94
94
|
});
|
|
@@ -102,14 +102,14 @@ const be = (n) => "init" in n, Fe = (n) => !!n.write, ue = /* @__PURE__ */ new W
|
|
|
102
102
|
d: (h == null ? void 0 : h.d) || /* @__PURE__ */ new Map(),
|
|
103
103
|
e: m
|
|
104
104
|
};
|
|
105
|
-
return g && o(f, N, g),
|
|
105
|
+
return g && o(f, N, g), Je(h, N) && h.d === N.d ? h : (r(f, N), N);
|
|
106
106
|
}, p = (f, m) => {
|
|
107
107
|
const g = s(f);
|
|
108
108
|
if (!m && g && (e.has(f) || Array.from(g.d).every(([R, D]) => {
|
|
109
109
|
if (R === f)
|
|
110
110
|
return !0;
|
|
111
111
|
const V = p(R);
|
|
112
|
-
return V === D ||
|
|
112
|
+
return V === D || q(V, D);
|
|
113
113
|
})))
|
|
114
114
|
return g;
|
|
115
115
|
const h = /* @__PURE__ */ new Map();
|
|
@@ -127,7 +127,7 @@ const be = (n) => "init" in n, Fe = (n) => !!n.write, ue = /* @__PURE__ */ new W
|
|
|
127
127
|
return h.set(R, D), re(D);
|
|
128
128
|
};
|
|
129
129
|
let b, O;
|
|
130
|
-
const
|
|
130
|
+
const L = {
|
|
131
131
|
get signal() {
|
|
132
132
|
return b || (b = new AbortController()), b.signal;
|
|
133
133
|
},
|
|
@@ -139,7 +139,7 @@ const be = (n) => "init" in n, Fe = (n) => !!n.write, ue = /* @__PURE__ */ new W
|
|
|
139
139
|
}
|
|
140
140
|
};
|
|
141
141
|
try {
|
|
142
|
-
const R = f.read(C,
|
|
142
|
+
const R = f.read(C, L);
|
|
143
143
|
return l(
|
|
144
144
|
f,
|
|
145
145
|
R,
|
|
@@ -153,18 +153,18 @@ const be = (n) => "init" in n, Fe = (n) => !!n.write, ue = /* @__PURE__ */ new W
|
|
|
153
153
|
}
|
|
154
154
|
}, c = (f) => re(p(f)), v = (f) => {
|
|
155
155
|
let m = e.get(f);
|
|
156
|
-
return m || (m =
|
|
157
|
-
},
|
|
156
|
+
return m || (m = I(f)), m;
|
|
157
|
+
}, y = (f, m) => !m.l.size && (!m.t.size || m.t.size === 1 && m.t.has(f)), k = (f) => {
|
|
158
158
|
const m = e.get(f);
|
|
159
|
-
m &&
|
|
160
|
-
},
|
|
159
|
+
m && y(f, m) && E(f);
|
|
160
|
+
}, S = (f) => {
|
|
161
161
|
const m = /* @__PURE__ */ new Map(), g = /* @__PURE__ */ new WeakMap(), h = (b) => {
|
|
162
162
|
var O;
|
|
163
|
-
const
|
|
163
|
+
const L = new Set((O = e.get(b)) == null ? void 0 : O.t);
|
|
164
164
|
return t.forEach((R, D) => {
|
|
165
165
|
var V;
|
|
166
|
-
(V = s(D)) != null && V.d.has(b) &&
|
|
167
|
-
}),
|
|
166
|
+
(V = s(D)) != null && V.d.has(b) && L.add(D);
|
|
167
|
+
}), L;
|
|
168
168
|
}, N = (b) => {
|
|
169
169
|
h(b).forEach((O) => {
|
|
170
170
|
O !== b && (m.set(
|
|
@@ -176,14 +176,14 @@ const be = (n) => "init" in n, Fe = (n) => !!n.write, ue = /* @__PURE__ */ new W
|
|
|
176
176
|
N(f);
|
|
177
177
|
const C = (b) => {
|
|
178
178
|
h(b).forEach((O) => {
|
|
179
|
-
var
|
|
179
|
+
var L;
|
|
180
180
|
if (O !== b) {
|
|
181
181
|
let R = g.get(O);
|
|
182
182
|
if (R && g.set(O, --R), !R) {
|
|
183
|
-
let D = !!((
|
|
183
|
+
let D = !!((L = m.get(O)) != null && L.size);
|
|
184
184
|
if (D) {
|
|
185
185
|
const V = s(O), se = p(O, !0);
|
|
186
|
-
D = !
|
|
186
|
+
D = !q(V, se);
|
|
187
187
|
}
|
|
188
188
|
D || m.forEach((V) => V.delete(O));
|
|
189
189
|
}
|
|
@@ -195,21 +195,21 @@ const be = (n) => "init" in n, Fe = (n) => !!n.write, ue = /* @__PURE__ */ new W
|
|
|
195
195
|
}, F = (f, ...m) => {
|
|
196
196
|
let g = !0;
|
|
197
197
|
const h = (b) => re(p(b)), N = (b, ...O) => {
|
|
198
|
-
let
|
|
198
|
+
let L;
|
|
199
199
|
if (b === f) {
|
|
200
200
|
if (!be(b))
|
|
201
201
|
throw new Error("atom not writable");
|
|
202
202
|
const R = s(b), D = l(b, O[0]);
|
|
203
|
-
|
|
203
|
+
q(R, D) || S(b);
|
|
204
204
|
} else
|
|
205
|
-
|
|
205
|
+
L = F(b, ...O);
|
|
206
206
|
if (!g) {
|
|
207
207
|
const R = P();
|
|
208
208
|
(_ ? "production" : void 0) !== "production" && i.forEach(
|
|
209
209
|
(D) => D({ type: "async-write", flushed: R })
|
|
210
210
|
);
|
|
211
211
|
}
|
|
212
|
-
return
|
|
212
|
+
return L;
|
|
213
213
|
}, C = f.write(h, N, ...m);
|
|
214
214
|
return g = !1, C;
|
|
215
215
|
}, w = (f, ...m) => {
|
|
@@ -217,12 +217,12 @@ const be = (n) => "init" in n, Fe = (n) => !!n.write, ue = /* @__PURE__ */ new W
|
|
|
217
217
|
return (_ ? "production" : void 0) !== "production" && i.forEach(
|
|
218
218
|
(N) => N({ type: "write", flushed: h })
|
|
219
219
|
), g;
|
|
220
|
-
},
|
|
220
|
+
}, I = (f, m, g) => {
|
|
221
221
|
var h;
|
|
222
222
|
const N = g || [];
|
|
223
223
|
(h = s(f)) == null || h.d.forEach((b, O) => {
|
|
224
|
-
const
|
|
225
|
-
|
|
224
|
+
const L = e.get(O);
|
|
225
|
+
L ? L.t.add(f) : O !== f && I(O, f, N);
|
|
226
226
|
}), p(f);
|
|
227
227
|
const C = {
|
|
228
228
|
t: new Set(m && [m]),
|
|
@@ -231,7 +231,7 @@ const be = (n) => "init" in n, Fe = (n) => !!n.write, ue = /* @__PURE__ */ new W
|
|
|
231
231
|
if (e.set(f, C), (_ ? "production" : void 0) !== "production" && a.add(f), Fe(f) && f.onMount) {
|
|
232
232
|
const { onMount: b } = f;
|
|
233
233
|
N.push(() => {
|
|
234
|
-
const O = b((...
|
|
234
|
+
const O = b((...L) => w(f, ...L));
|
|
235
235
|
O && (C.u = O);
|
|
236
236
|
});
|
|
237
237
|
}
|
|
@@ -244,10 +244,10 @@ const be = (n) => "init" in n, Fe = (n) => !!n.write, ue = /* @__PURE__ */ new W
|
|
|
244
244
|
h ? (B(h) && We(h.v), h.d.forEach((N, C) => {
|
|
245
245
|
if (C !== f) {
|
|
246
246
|
const b = e.get(C);
|
|
247
|
-
b && (b.t.delete(f),
|
|
247
|
+
b && (b.t.delete(f), y(C, b) && E(C));
|
|
248
248
|
}
|
|
249
249
|
})) : (_ ? "production" : void 0) !== "production" && console.warn("[Bug] could not find atom state to unmount", f);
|
|
250
|
-
},
|
|
250
|
+
}, T = (f, m, g) => {
|
|
251
251
|
const h = new Set(m.d.keys());
|
|
252
252
|
g == null || g.forEach((N, C) => {
|
|
253
253
|
if (h.has(C)) {
|
|
@@ -255,10 +255,10 @@ const be = (n) => "init" in n, Fe = (n) => !!n.write, ue = /* @__PURE__ */ new W
|
|
|
255
255
|
return;
|
|
256
256
|
}
|
|
257
257
|
const b = e.get(C);
|
|
258
|
-
b && (b.t.delete(f),
|
|
258
|
+
b && (b.t.delete(f), y(C, b) && E(C));
|
|
259
259
|
}), h.forEach((N) => {
|
|
260
260
|
const C = e.get(N);
|
|
261
|
-
C ? C.t.add(f) : e.has(f) &&
|
|
261
|
+
C ? C.t.add(f) : e.has(f) && I(N, f);
|
|
262
262
|
});
|
|
263
263
|
}, P = () => {
|
|
264
264
|
let f;
|
|
@@ -268,9 +268,9 @@ const be = (n) => "init" in n, Fe = (n) => !!n.write, ue = /* @__PURE__ */ new W
|
|
|
268
268
|
const N = s(g);
|
|
269
269
|
if (N) {
|
|
270
270
|
const C = e.get(g);
|
|
271
|
-
C && N.d !== (h == null ? void 0 : h.d) &&
|
|
271
|
+
C && N.d !== (h == null ? void 0 : h.d) && T(g, N, h == null ? void 0 : h.d), C && !// TODO This seems pretty hacky. Hope to fix it.
|
|
272
272
|
// Maybe we could `mountDependencies` in `setAtomState`?
|
|
273
|
-
(!B(h) && (
|
|
273
|
+
(!B(h) && (q(h, N) || Je(h, N))) && (C.l.forEach((b) => b()), (_ ? "production" : void 0) !== "production" && f.add(g));
|
|
274
274
|
} else
|
|
275
275
|
(_ ? "production" : void 0) !== "production" && console.warn("[Bug] no atom state to flush");
|
|
276
276
|
});
|
|
@@ -302,7 +302,7 @@ const be = (n) => "init" in n, Fe = (n) => !!n.write, ue = /* @__PURE__ */ new W
|
|
|
302
302
|
dev_get_mounted: (f) => e.get(f),
|
|
303
303
|
dev_restore_atoms: (f) => {
|
|
304
304
|
for (const [g, h] of f)
|
|
305
|
-
be(g) && (l(g, h),
|
|
305
|
+
be(g) && (l(g, h), S(g));
|
|
306
306
|
const m = P();
|
|
307
307
|
i.forEach(
|
|
308
308
|
(g) => g({ type: "restore", flushed: m })
|
|
@@ -319,8 +319,8 @@ let we;
|
|
|
319
319
|
const fn = () => (we || ((_ ? "production" : void 0) !== "production" && globalThis.__NUMBER_OF_JOTAI_INSTANCES__ !== 1 && console.warn(
|
|
320
320
|
"Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"
|
|
321
321
|
), we = Dt()), we);
|
|
322
|
-
var pn = { NZ_AWS_REGION: "us-east-1",
|
|
323
|
-
const hn = Ot(void 0),
|
|
322
|
+
var pn = { NZ_AWS_REGION: "us-east-1", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
|
|
323
|
+
const hn = Ot(void 0), It = (n) => {
|
|
324
324
|
const e = Pe(hn);
|
|
325
325
|
return (n == null ? void 0 : n.store) || e || fn();
|
|
326
326
|
}, gn = (n) => typeof (n == null ? void 0 : n.then) == "function", kn = Ae.use || ((n) => {
|
|
@@ -338,7 +338,7 @@ const hn = Ot(void 0), Lt = (n) => {
|
|
|
338
338
|
), n);
|
|
339
339
|
});
|
|
340
340
|
function vn(n, e) {
|
|
341
|
-
const t =
|
|
341
|
+
const t = It(e), [[i, a, s], r] = rn(
|
|
342
342
|
(l) => {
|
|
343
343
|
const u = t.get(n);
|
|
344
344
|
return Object.is(l[0], u) && l[1] === t && l[2] === n ? l : [u, t, n];
|
|
@@ -349,7 +349,7 @@ function vn(n, e) {
|
|
|
349
349
|
let o = i;
|
|
350
350
|
(a !== t || s !== n) && (r(), o = t.get(n));
|
|
351
351
|
const d = e == null ? void 0 : e.delay;
|
|
352
|
-
return
|
|
352
|
+
return ye(() => {
|
|
353
353
|
const l = t.sub(n, () => {
|
|
354
354
|
if (typeof d == "number") {
|
|
355
355
|
setTimeout(r, d);
|
|
@@ -360,8 +360,8 @@ function vn(n, e) {
|
|
|
360
360
|
return r(), l;
|
|
361
361
|
}, [t, n, d]), Rt(o), gn(o) ? kn(o) : o;
|
|
362
362
|
}
|
|
363
|
-
function
|
|
364
|
-
const t =
|
|
363
|
+
function yn(n, e) {
|
|
364
|
+
const t = It(e);
|
|
365
365
|
return xt(
|
|
366
366
|
(...a) => {
|
|
367
367
|
if ((pn ? "production" : void 0) !== "production" && !("write" in n))
|
|
@@ -371,16 +371,16 @@ function Sn(n, e) {
|
|
|
371
371
|
[t, n]
|
|
372
372
|
);
|
|
373
373
|
}
|
|
374
|
-
function
|
|
374
|
+
function Sn(n, e) {
|
|
375
375
|
return [
|
|
376
376
|
vn(n, e),
|
|
377
377
|
// We do wrong type assertion here, which results in throwing an error.
|
|
378
|
-
|
|
378
|
+
yn(n, e)
|
|
379
379
|
];
|
|
380
380
|
}
|
|
381
381
|
const Ve = dn(null);
|
|
382
382
|
Ve.debugLabel = "accountAtom";
|
|
383
|
-
var Nn = { NZ_AWS_REGION: "us-east-1",
|
|
383
|
+
var Nn = { NZ_AWS_REGION: "us-east-1", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
|
|
384
384
|
const {
|
|
385
385
|
NZ_AWS_REGION: bn,
|
|
386
386
|
NZ_BACKOFFICE_BACK_URL: Fn,
|
|
@@ -412,7 +412,7 @@ const {
|
|
|
412
412
|
wssIVSChat: "wss://edge.ivschat.us-east-1.amazonaws.com"
|
|
413
413
|
}
|
|
414
414
|
};
|
|
415
|
-
async function
|
|
415
|
+
async function Tt(n) {
|
|
416
416
|
const {
|
|
417
417
|
url: e,
|
|
418
418
|
method: t = "GET",
|
|
@@ -440,17 +440,17 @@ async function It(n) {
|
|
|
440
440
|
const v = await c;
|
|
441
441
|
if (a)
|
|
442
442
|
return v;
|
|
443
|
-
const
|
|
443
|
+
const y = await v.json();
|
|
444
444
|
if (clearTimeout(p), !v.ok) {
|
|
445
|
-
const k =
|
|
445
|
+
const k = y ? JSON.stringify(y) : v.statusText;
|
|
446
446
|
throw new Error(k);
|
|
447
447
|
}
|
|
448
|
-
return
|
|
448
|
+
return y;
|
|
449
449
|
} catch (l) {
|
|
450
450
|
throw console.error("[CustomFetch] ", l), l;
|
|
451
451
|
}
|
|
452
452
|
}
|
|
453
|
-
const js = (n) =>
|
|
453
|
+
const js = (n) => Tt({ ...n, contentTypeJson: !1, raw: !1 });
|
|
454
454
|
function $s(n, e, t) {
|
|
455
455
|
fetch(e).then((i) => i.blob()).then((i) => On(i, `${n}.${t}`));
|
|
456
456
|
}
|
|
@@ -464,9 +464,9 @@ const On = (n, e, t) => {
|
|
|
464
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(() => {
|
|
465
465
|
document.body.removeChild(r), window.URL.revokeObjectURL(s);
|
|
466
466
|
}, 200);
|
|
467
|
-
}, Rn = Symbol(), _e = Symbol(),
|
|
467
|
+
}, Rn = Symbol(), _e = Symbol(), H = "a", ne = "w";
|
|
468
468
|
let xn = (n, e) => new Proxy(n, e);
|
|
469
|
-
const xe = Object.getPrototypeOf,
|
|
469
|
+
const xe = Object.getPrototypeOf, Le = /* @__PURE__ */ new WeakMap(), At = (n) => n && (Le.has(n) ? Le.get(n) : xe(n) === Object.prototype || xe(n) === Array.prototype), ce = (n) => typeof n == "object" && n !== null, Ln = (n) => {
|
|
470
470
|
if (Array.isArray(n))
|
|
471
471
|
return Array.from(n);
|
|
472
472
|
const e = Object.getOwnPropertyDescriptors(n);
|
|
@@ -479,26 +479,26 @@ const xe = Object.getPrototypeOf, Te = /* @__PURE__ */ new WeakMap(), At = (n) =
|
|
|
479
479
|
let a = i && i.get(n);
|
|
480
480
|
if (!a) {
|
|
481
481
|
const d = Ue(n);
|
|
482
|
-
a = ((l) => Object.values(Object.getOwnPropertyDescriptors(l)).some((u) => !u.configurable && !u.writable))(d) ? [d,
|
|
482
|
+
a = ((l) => Object.values(Object.getOwnPropertyDescriptors(l)).some((u) => !u.configurable && !u.writable))(d) ? [d, Ln(d)] : [d], i == null || i.set(n, a);
|
|
483
483
|
}
|
|
484
484
|
const [s, r] = a;
|
|
485
485
|
let o = t && t.get(s);
|
|
486
486
|
return o && o[1].f === !!r || (o = ((d, l) => {
|
|
487
487
|
const u = { f: l };
|
|
488
488
|
let p = !1;
|
|
489
|
-
const c = (
|
|
489
|
+
const c = (y, k) => {
|
|
490
490
|
if (!p) {
|
|
491
|
-
let
|
|
492
|
-
if (
|
|
493
|
-
|
|
491
|
+
let S = u[H].get(d);
|
|
492
|
+
if (S || (S = {}, u[H].set(d, S)), y === ne)
|
|
493
|
+
S[ne] = !0;
|
|
494
494
|
else {
|
|
495
|
-
let F = y
|
|
496
|
-
F || (F = /* @__PURE__ */ new Set(), y
|
|
495
|
+
let F = S[y];
|
|
496
|
+
F || (F = /* @__PURE__ */ new Set(), S[y] = F), F.add(k);
|
|
497
497
|
}
|
|
498
498
|
}
|
|
499
|
-
}, v = { get: (
|
|
499
|
+
}, v = { get: (y, k) => k === _e ? d : (c("k", k), Pt(Reflect.get(y, k), u[H], u.c, u.t)), has: (y, k) => k === Rn ? (p = !0, u[H].delete(d), !0) : (c("h", k), Reflect.has(y, k)), getOwnPropertyDescriptor: (y, k) => (c("o", k), Reflect.getOwnPropertyDescriptor(y, k)), ownKeys: (y) => (c(ne), Reflect.ownKeys(y)) };
|
|
500
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][
|
|
501
|
+
})(s, !!r), o[1].p = xn(r || s, o[0]), t && t.set(s, o)), o[1][H] = e, o[1].c = t, o[1].t = i, o[1].p;
|
|
502
502
|
}, Vt = (n, e, t, i) => {
|
|
503
503
|
if (Object.is(n, e))
|
|
504
504
|
return !1;
|
|
@@ -536,8 +536,8 @@ const xe = Object.getPrototypeOf, Te = /* @__PURE__ */ new WeakMap(), At = (n) =
|
|
|
536
536
|
i && i.set(n, { n: e, g: s });
|
|
537
537
|
}
|
|
538
538
|
}, Dn = (n) => At(n) && n[_e] || null, Ze = (n, e = !0) => {
|
|
539
|
-
|
|
540
|
-
},
|
|
539
|
+
Le.set(n, e);
|
|
540
|
+
}, In = (n, e, t) => {
|
|
541
541
|
const i = [], a = /* @__PURE__ */ new WeakSet(), s = (r, o) => {
|
|
542
542
|
if (a.has(r))
|
|
543
543
|
return;
|
|
@@ -566,8 +566,8 @@ const xe = Object.getPrototypeOf, Te = /* @__PURE__ */ new WeakMap(), At = (n) =
|
|
|
566
566
|
};
|
|
567
567
|
return s(n), i;
|
|
568
568
|
};
|
|
569
|
-
var me = { NZ_AWS_REGION: "us-east-1",
|
|
570
|
-
const Ce = (n) => typeof n == "object" && n !== null, $ = /* @__PURE__ */ new WeakMap(), Y = /* @__PURE__ */ new WeakSet(),
|
|
569
|
+
var me = { NZ_AWS_REGION: "us-east-1", 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(), Tn = (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) => {
|
|
571
571
|
switch (l.status) {
|
|
572
572
|
case "fulfilled":
|
|
573
573
|
return l.value;
|
|
@@ -581,15 +581,15 @@ const Ce = (n) => typeof n == "object" && n !== null, $ = /* @__PURE__ */ new We
|
|
|
581
581
|
if ((c == null ? void 0 : c[0]) === u)
|
|
582
582
|
return c[1];
|
|
583
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((
|
|
585
|
-
if (Object.getOwnPropertyDescriptor(v,
|
|
584
|
+
return Ze(v, !0), a.set(l, [u, v]), Reflect.ownKeys(l).forEach((y) => {
|
|
585
|
+
if (Object.getOwnPropertyDescriptor(v, y))
|
|
586
586
|
return;
|
|
587
|
-
const k = Reflect.get(l,
|
|
587
|
+
const k = Reflect.get(l, y), { enumerable: S } = Reflect.getOwnPropertyDescriptor(
|
|
588
588
|
l,
|
|
589
|
-
|
|
589
|
+
y
|
|
590
590
|
), F = {
|
|
591
591
|
value: k,
|
|
592
|
-
enumerable:
|
|
592
|
+
enumerable: S,
|
|
593
593
|
// This is intentional to avoid copying with proxy-compare.
|
|
594
594
|
// It's still non-writable, so it avoids assigning a value.
|
|
595
595
|
configurable: !0
|
|
@@ -599,16 +599,16 @@ const Ce = (n) => typeof n == "object" && n !== null, $ = /* @__PURE__ */ new We
|
|
|
599
599
|
else if (k instanceof Promise)
|
|
600
600
|
delete F.value, F.get = () => p(k);
|
|
601
601
|
else if ($.has(k)) {
|
|
602
|
-
const [w,
|
|
602
|
+
const [w, I] = $.get(
|
|
603
603
|
k
|
|
604
604
|
);
|
|
605
605
|
F.value = s(
|
|
606
606
|
w,
|
|
607
|
-
|
|
607
|
+
I(),
|
|
608
608
|
p
|
|
609
609
|
);
|
|
610
610
|
}
|
|
611
|
-
Object.defineProperty(v,
|
|
611
|
+
Object.defineProperty(v, y, F);
|
|
612
612
|
}), Object.preventExtensions(v);
|
|
613
613
|
}, r = /* @__PURE__ */ new WeakMap(), o = [1, 1], d = (l) => {
|
|
614
614
|
if (!Ce(l))
|
|
@@ -620,38 +620,38 @@ const Ce = (n) => typeof n == "object" && n !== null, $ = /* @__PURE__ */ new We
|
|
|
620
620
|
const c = /* @__PURE__ */ new Set(), v = (m, g = ++o[0]) => {
|
|
621
621
|
p !== g && (p = g, c.forEach((h) => h(m, g)));
|
|
622
622
|
};
|
|
623
|
-
let
|
|
624
|
-
const k = (m = ++o[1]) => (
|
|
623
|
+
let y = o[1];
|
|
624
|
+
const k = (m = ++o[1]) => (y !== m && !c.size && (y = m, F.forEach(([g]) => {
|
|
625
625
|
const h = g[1](m);
|
|
626
626
|
h > p && (p = h);
|
|
627
|
-
})), p),
|
|
627
|
+
})), p), S = (m) => (g, h) => {
|
|
628
628
|
const N = [...g];
|
|
629
629
|
N[1] = [m, ...N[1]], v(N, h);
|
|
630
630
|
}, F = /* @__PURE__ */ new Map(), w = (m, g) => {
|
|
631
631
|
if ((me ? "production" : void 0) !== "production" && F.has(m))
|
|
632
632
|
throw new Error("prop listener already exists");
|
|
633
633
|
if (c.size) {
|
|
634
|
-
const h = g[3](
|
|
634
|
+
const h = g[3](S(m));
|
|
635
635
|
F.set(m, [g, h]);
|
|
636
636
|
} else
|
|
637
637
|
F.set(m, [g]);
|
|
638
|
-
},
|
|
638
|
+
}, I = (m) => {
|
|
639
639
|
var g;
|
|
640
640
|
const h = F.get(m);
|
|
641
641
|
h && (F.delete(m), (g = h[1]) == null || g.call(h));
|
|
642
642
|
}, E = (m) => (c.add(m), c.size === 1 && F.forEach(([h, N], C) => {
|
|
643
643
|
if ((me ? "production" : void 0) !== "production" && N)
|
|
644
644
|
throw new Error("remove already exists");
|
|
645
|
-
const b = h[3](
|
|
645
|
+
const b = h[3](S(C));
|
|
646
646
|
F.set(C, [h, b]);
|
|
647
647
|
}), () => {
|
|
648
648
|
c.delete(m), c.size === 0 && F.forEach(([h, N], C) => {
|
|
649
649
|
N && (N(), F.set(C, [h]));
|
|
650
650
|
});
|
|
651
|
-
}),
|
|
651
|
+
}), T = Array.isArray(l) ? [] : Object.create(Object.getPrototypeOf(l)), A = e(T, {
|
|
652
652
|
deleteProperty(m, g) {
|
|
653
653
|
const h = Reflect.get(m, g);
|
|
654
|
-
|
|
654
|
+
I(g);
|
|
655
655
|
const N = Reflect.deleteProperty(m, g);
|
|
656
656
|
return N && v(["delete", [g], h]), N;
|
|
657
657
|
},
|
|
@@ -659,25 +659,25 @@ const Ce = (n) => typeof n == "object" && n !== null, $ = /* @__PURE__ */ new We
|
|
|
659
659
|
const C = Reflect.has(m, g), b = Reflect.get(m, g, N);
|
|
660
660
|
if (C && (n(b, h) || r.has(h) && n(b, r.get(h))))
|
|
661
661
|
return !0;
|
|
662
|
-
|
|
662
|
+
I(g), Ce(h) && (h = Dn(h) || h);
|
|
663
663
|
let O = h;
|
|
664
664
|
if (h instanceof Promise)
|
|
665
|
-
h.then((
|
|
666
|
-
h.status = "fulfilled", h.value =
|
|
667
|
-
}).catch((
|
|
668
|
-
h.status = "rejected", h.reason =
|
|
665
|
+
h.then((L) => {
|
|
666
|
+
h.status = "fulfilled", h.value = L, v(["resolve", [g], L]);
|
|
667
|
+
}).catch((L) => {
|
|
668
|
+
h.status = "rejected", h.reason = L, v(["reject", [g], L]);
|
|
669
669
|
});
|
|
670
670
|
else {
|
|
671
671
|
!$.has(h) && t(h) && (O = d(h));
|
|
672
|
-
const
|
|
673
|
-
|
|
672
|
+
const L = !Y.has(O) && $.get(O);
|
|
673
|
+
L && w(g, L);
|
|
674
674
|
}
|
|
675
675
|
return Reflect.set(m, g, O, N), v(["set", [g], h, b]), !0;
|
|
676
676
|
}
|
|
677
677
|
});
|
|
678
678
|
r.set(l, A);
|
|
679
679
|
const f = [
|
|
680
|
-
|
|
680
|
+
T,
|
|
681
681
|
k,
|
|
682
682
|
s,
|
|
683
683
|
E
|
|
@@ -687,7 +687,7 @@ const Ce = (n) => typeof n == "object" && n !== null, $ = /* @__PURE__ */ new We
|
|
|
687
687
|
l,
|
|
688
688
|
m
|
|
689
689
|
);
|
|
690
|
-
"value" in g && (A[m] = l[m], delete g.value, delete g.writable), Object.defineProperty(
|
|
690
|
+
"value" in g && (A[m] = l[m], delete g.value, delete g.writable), Object.defineProperty(T, m, g);
|
|
691
691
|
}), A;
|
|
692
692
|
}) => [
|
|
693
693
|
// public functions
|
|
@@ -704,7 +704,7 @@ const Ce = (n) => typeof n == "object" && n !== null, $ = /* @__PURE__ */ new We
|
|
|
704
704
|
s,
|
|
705
705
|
r,
|
|
706
706
|
o
|
|
707
|
-
], [An] =
|
|
707
|
+
], [An] = Tn();
|
|
708
708
|
function Pn(n = {}) {
|
|
709
709
|
return An(n);
|
|
710
710
|
}
|
|
@@ -783,17 +783,17 @@ jt.useSyncExternalStore = W.useSyncExternalStore !== void 0 ? W.useSyncExternalS
|
|
|
783
783
|
Mt.exports = jt;
|
|
784
784
|
var $t = Mt.exports;
|
|
785
785
|
const Gn = /* @__PURE__ */ Me($t);
|
|
786
|
-
var Wn = { NZ_AWS_REGION: "us-east-1",
|
|
787
|
-
const { use: Ye } = Ae, { useSyncExternalStore:
|
|
786
|
+
var Wn = { NZ_AWS_REGION: "us-east-1", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
|
|
787
|
+
const { use: Ye } = Ae, { useSyncExternalStore: qn } = Gn, Hn = (n, e) => {
|
|
788
788
|
const t = Re();
|
|
789
|
-
|
|
790
|
-
t.current =
|
|
789
|
+
ye(() => {
|
|
790
|
+
t.current = In(n, e, !0);
|
|
791
791
|
}), Rt(t.current);
|
|
792
|
-
},
|
|
792
|
+
}, Jn = /* @__PURE__ */ new WeakMap();
|
|
793
793
|
function Zn(n, e) {
|
|
794
794
|
const t = e == null ? void 0 : e.sync, i = Re(), a = Re();
|
|
795
795
|
let s = !0;
|
|
796
|
-
const r =
|
|
796
|
+
const r = qn(
|
|
797
797
|
xt(
|
|
798
798
|
(l) => {
|
|
799
799
|
const u = Vn(n, l, t);
|
|
@@ -819,15 +819,15 @@ function Zn(n, e) {
|
|
|
819
819
|
);
|
|
820
820
|
s = !1;
|
|
821
821
|
const o = /* @__PURE__ */ new WeakMap();
|
|
822
|
-
|
|
822
|
+
ye(() => {
|
|
823
823
|
i.current = r, a.current = o;
|
|
824
|
-
}), (Wn ? "production" : void 0) !== "production" &&
|
|
825
|
-
const d =
|
|
824
|
+
}), (Wn ? "production" : void 0) !== "production" && Hn(r, o);
|
|
825
|
+
const d = Lt(() => /* @__PURE__ */ new WeakMap(), []);
|
|
826
826
|
return Pt(
|
|
827
827
|
r,
|
|
828
828
|
o,
|
|
829
829
|
d,
|
|
830
|
-
|
|
830
|
+
Jn
|
|
831
831
|
);
|
|
832
832
|
}
|
|
833
833
|
class Xn {
|
|
@@ -999,8 +999,8 @@ var zt = { exports: {} };
|
|
|
999
999
|
"warn",
|
|
1000
1000
|
"error"
|
|
1001
1001
|
];
|
|
1002
|
-
function s(k,
|
|
1003
|
-
var F = k[
|
|
1002
|
+
function s(k, S) {
|
|
1003
|
+
var F = k[S];
|
|
1004
1004
|
if (typeof F.bind == "function")
|
|
1005
1005
|
return F.bind(k);
|
|
1006
1006
|
try {
|
|
@@ -1017,27 +1017,27 @@ var zt = { exports: {} };
|
|
|
1017
1017
|
function o(k) {
|
|
1018
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;
|
|
1019
1019
|
}
|
|
1020
|
-
function d(k,
|
|
1020
|
+
function d(k, S) {
|
|
1021
1021
|
for (var F = 0; F < a.length; F++) {
|
|
1022
1022
|
var w = a[F];
|
|
1023
|
-
this[w] = F < k ? e : this.methodFactory(w, k,
|
|
1023
|
+
this[w] = F < k ? e : this.methodFactory(w, k, S);
|
|
1024
1024
|
}
|
|
1025
1025
|
this.log = this.debug;
|
|
1026
1026
|
}
|
|
1027
|
-
function l(k,
|
|
1027
|
+
function l(k, S, F) {
|
|
1028
1028
|
return function() {
|
|
1029
|
-
typeof console !== t && (d.call(this,
|
|
1029
|
+
typeof console !== t && (d.call(this, S, F), this[k].apply(this, arguments));
|
|
1030
1030
|
};
|
|
1031
1031
|
}
|
|
1032
|
-
function u(k,
|
|
1032
|
+
function u(k, S, F) {
|
|
1033
1033
|
return o(k) || l.apply(this, arguments);
|
|
1034
1034
|
}
|
|
1035
|
-
function p(k,
|
|
1036
|
-
var w = this,
|
|
1037
|
-
|
|
1035
|
+
function p(k, S, F) {
|
|
1036
|
+
var w = this, I;
|
|
1037
|
+
S = S == null ? "WARN" : S;
|
|
1038
1038
|
var E = "loglevel";
|
|
1039
1039
|
typeof k == "string" ? E += ":" + k : typeof k == "symbol" && (E = void 0);
|
|
1040
|
-
function
|
|
1040
|
+
function T(m) {
|
|
1041
1041
|
var g = (a[m] || "silent").toUpperCase();
|
|
1042
1042
|
if (!(typeof window === t || !E)) {
|
|
1043
1043
|
try {
|
|
@@ -1090,39 +1090,39 @@ var zt = { exports: {} };
|
|
|
1090
1090
|
ERROR: 4,
|
|
1091
1091
|
SILENT: 5
|
|
1092
1092
|
}, w.methodFactory = F || u, w.getLevel = function() {
|
|
1093
|
-
return
|
|
1093
|
+
return I;
|
|
1094
1094
|
}, w.setLevel = function(m, g) {
|
|
1095
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 (
|
|
1096
|
+
if (I = m, g !== !1 && T(m), d.call(w, m, k), typeof console === t && m < w.levels.SILENT)
|
|
1097
1097
|
return "No console available for logging";
|
|
1098
1098
|
} else
|
|
1099
1099
|
throw "log.setLevel() called with invalid level: " + m;
|
|
1100
1100
|
}, w.setDefaultLevel = function(m) {
|
|
1101
|
-
|
|
1101
|
+
S = m, P() || w.setLevel(m, !1);
|
|
1102
1102
|
}, w.resetLevel = function() {
|
|
1103
|
-
w.setLevel(
|
|
1103
|
+
w.setLevel(S, !1), A();
|
|
1104
1104
|
}, w.enableAll = function(m) {
|
|
1105
1105
|
w.setLevel(w.levels.TRACE, m);
|
|
1106
1106
|
}, w.disableAll = function(m) {
|
|
1107
1107
|
w.setLevel(w.levels.SILENT, m);
|
|
1108
1108
|
};
|
|
1109
1109
|
var f = P();
|
|
1110
|
-
f == null && (f =
|
|
1110
|
+
f == null && (f = S), w.setLevel(f, !1);
|
|
1111
1111
|
}
|
|
1112
1112
|
var c = new p(), v = {};
|
|
1113
|
-
c.getLogger = function(
|
|
1114
|
-
if (typeof
|
|
1113
|
+
c.getLogger = function(S) {
|
|
1114
|
+
if (typeof S != "symbol" && typeof S != "string" || S === "")
|
|
1115
1115
|
throw new TypeError("You must supply a name when creating a logger.");
|
|
1116
|
-
var F = v[
|
|
1117
|
-
return F || (F = v[
|
|
1118
|
-
|
|
1116
|
+
var F = v[S];
|
|
1117
|
+
return F || (F = v[S] = new p(
|
|
1118
|
+
S,
|
|
1119
1119
|
c.getLevel(),
|
|
1120
1120
|
c.methodFactory
|
|
1121
1121
|
)), F;
|
|
1122
1122
|
};
|
|
1123
|
-
var
|
|
1123
|
+
var y = typeof window !== t ? window.log : void 0;
|
|
1124
1124
|
return c.noConflict = function() {
|
|
1125
|
-
return typeof window !== t && window.log === c && (window.log =
|
|
1125
|
+
return typeof window !== t && window.log === c && (window.log = y), c;
|
|
1126
1126
|
}, c.getLoggers = function() {
|
|
1127
1127
|
return v;
|
|
1128
1128
|
}, c.default = c, c;
|
|
@@ -1159,20 +1159,20 @@ var Qt = { exports: {} };
|
|
|
1159
1159
|
}, o = function(u, p) {
|
|
1160
1160
|
if (!u || !u.setLevel)
|
|
1161
1161
|
throw new TypeError("Argument is not a logger");
|
|
1162
|
-
var c = u.methodFactory, v = u.name || "",
|
|
1163
|
-
function k(
|
|
1164
|
-
var
|
|
1162
|
+
var c = u.methodFactory, v = u.name || "", y = s[v] || s[""] || i;
|
|
1163
|
+
function k(S, F, w) {
|
|
1164
|
+
var I = c(S, F, w), E = s[w] || s[""], T = E.template.indexOf("%t") !== -1, P = E.template.indexOf("%l") !== -1, A = E.template.indexOf("%n") !== -1;
|
|
1165
1165
|
return function() {
|
|
1166
1166
|
for (var f = "", m = arguments.length, g = Array(m), h = 0; h < m; h++)
|
|
1167
1167
|
g[h] = arguments[h];
|
|
1168
1168
|
if (v || !s[w]) {
|
|
1169
|
-
var N = E.timestampFormatter(/* @__PURE__ */ new Date()), C = E.levelFormatter(
|
|
1170
|
-
E.format ? f += E.format(C, b, N) : (f += E.template,
|
|
1169
|
+
var N = E.timestampFormatter(/* @__PURE__ */ new Date()), C = E.levelFormatter(S), b = E.nameFormatter(w);
|
|
1170
|
+
E.format ? f += E.format(C, b, N) : (f += E.template, T && (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);
|
|
1171
1171
|
}
|
|
1172
|
-
|
|
1172
|
+
I.apply(void 0, g);
|
|
1173
1173
|
};
|
|
1174
1174
|
}
|
|
1175
|
-
return s[v] || (u.methodFactory = k), p = p || {}, p.template && (p.format = void 0), s[v] = t({},
|
|
1175
|
+
return s[v] || (u.methodFactory = k), p = p || {}, p.template && (p.format = void 0), s[v] = t({}, y, p), u.setLevel(u.getLevel()), a || u.warn(
|
|
1176
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"
|
|
1177
1177
|
), u;
|
|
1178
1178
|
}, d = {
|
|
@@ -1308,7 +1308,7 @@ var pi = /* @__PURE__ */ $e(function(e, t) {
|
|
|
1308
1308
|
return fi([e], t)[0];
|
|
1309
1309
|
});
|
|
1310
1310
|
const hi = pi;
|
|
1311
|
-
class
|
|
1311
|
+
class Se extends Error {
|
|
1312
1312
|
constructor(e, t, i) {
|
|
1313
1313
|
super(t), this.value = i, this.name = e;
|
|
1314
1314
|
}
|
|
@@ -1320,7 +1320,7 @@ class ye extends Error {
|
|
|
1320
1320
|
};
|
|
1321
1321
|
}
|
|
1322
1322
|
}
|
|
1323
|
-
class gi extends
|
|
1323
|
+
class gi extends Se {
|
|
1324
1324
|
constructor(e) {
|
|
1325
1325
|
super(
|
|
1326
1326
|
"RESOURCE_NOT_FOUND_ERROR",
|
|
@@ -1329,7 +1329,7 @@ class gi extends ye {
|
|
|
1329
1329
|
);
|
|
1330
1330
|
}
|
|
1331
1331
|
}
|
|
1332
|
-
class ki extends
|
|
1332
|
+
class ki extends Se {
|
|
1333
1333
|
constructor(e) {
|
|
1334
1334
|
var t;
|
|
1335
1335
|
super(
|
|
@@ -1339,12 +1339,12 @@ class ki extends ye {
|
|
|
1339
1339
|
);
|
|
1340
1340
|
}
|
|
1341
1341
|
}
|
|
1342
|
-
class Gs extends
|
|
1342
|
+
class Gs extends Se {
|
|
1343
1343
|
constructor() {
|
|
1344
1344
|
super("APP_ACCOUNT_INVALID_ERROR", "Account not defined");
|
|
1345
1345
|
}
|
|
1346
1346
|
}
|
|
1347
|
-
class vi extends
|
|
1347
|
+
class vi extends Se {
|
|
1348
1348
|
constructor(e) {
|
|
1349
1349
|
super(
|
|
1350
1350
|
"INVALID_NIZZA_GLOBAL_OBJECT_ERROR",
|
|
@@ -1378,7 +1378,7 @@ function Ws(n, e) {
|
|
|
1378
1378
|
throw new vi(t);
|
|
1379
1379
|
});
|
|
1380
1380
|
}
|
|
1381
|
-
function
|
|
1381
|
+
function qs() {
|
|
1382
1382
|
var i, a, s;
|
|
1383
1383
|
let n = null, e = null, t = null;
|
|
1384
1384
|
try {
|
|
@@ -1404,7 +1404,7 @@ function Js() {
|
|
|
1404
1404
|
label: null
|
|
1405
1405
|
};
|
|
1406
1406
|
}
|
|
1407
|
-
class
|
|
1407
|
+
class yi {
|
|
1408
1408
|
constructor(e) {
|
|
1409
1409
|
x(this, "aggregate");
|
|
1410
1410
|
x(this, "_numSetPropsApplied", 0);
|
|
@@ -1419,12 +1419,12 @@ class Si {
|
|
|
1419
1419
|
return this._numSetPropsApplied === 1;
|
|
1420
1420
|
}
|
|
1421
1421
|
}
|
|
1422
|
-
function
|
|
1423
|
-
return new
|
|
1424
|
-
}
|
|
1425
|
-
class qs {
|
|
1422
|
+
function Si(n) {
|
|
1423
|
+
return new yi(n);
|
|
1426
1424
|
}
|
|
1427
1425
|
class Hs {
|
|
1426
|
+
}
|
|
1427
|
+
class Js {
|
|
1428
1428
|
constructor(e) {
|
|
1429
1429
|
x(this, "_value");
|
|
1430
1430
|
e !== void 0 && (this._value = e);
|
|
@@ -1436,7 +1436,7 @@ class Hs {
|
|
|
1436
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
1437
|
class ze {
|
|
1438
1438
|
constructor(e) {
|
|
1439
|
-
x(this, "root",
|
|
1439
|
+
x(this, "root", Si(this));
|
|
1440
1440
|
x(this, "id");
|
|
1441
1441
|
x(this, "account");
|
|
1442
1442
|
x(this, "accountType", Kt.UNKNOWN);
|
|
@@ -1482,7 +1482,7 @@ class ze {
|
|
|
1482
1482
|
const Ci = `${En.apiUrls.restV1}/accounts/v2`;
|
|
1483
1483
|
class Ei {
|
|
1484
1484
|
async get(e) {
|
|
1485
|
-
const t = `${Ci}/${e}`, { data: i } = await
|
|
1485
|
+
const t = `${Ci}/${e}`, { data: i } = await Tt({
|
|
1486
1486
|
url: t
|
|
1487
1487
|
});
|
|
1488
1488
|
return i ? ze.toDomain(i) : null;
|
|
@@ -1530,11 +1530,11 @@ function xi() {
|
|
|
1530
1530
|
function nt(n) {
|
|
1531
1531
|
return typeof n == "number" && n >= 0 && n !== 1 / 0;
|
|
1532
1532
|
}
|
|
1533
|
-
function
|
|
1533
|
+
function Li(n, e) {
|
|
1534
1534
|
return Math.max(n + (e || 0) - Date.now(), 0);
|
|
1535
1535
|
}
|
|
1536
1536
|
function Di(n, e, t) {
|
|
1537
|
-
return
|
|
1537
|
+
return Ii(n) ? typeof e == "function" ? {
|
|
1538
1538
|
...t,
|
|
1539
1539
|
queryKey: n,
|
|
1540
1540
|
queryFn: e
|
|
@@ -1543,7 +1543,7 @@ function Di(n, e, t) {
|
|
|
1543
1543
|
queryKey: n
|
|
1544
1544
|
} : n;
|
|
1545
1545
|
}
|
|
1546
|
-
function
|
|
1546
|
+
function qt(n, e) {
|
|
1547
1547
|
if (n === e)
|
|
1548
1548
|
return n;
|
|
1549
1549
|
const t = it(n) && it(e);
|
|
@@ -1552,7 +1552,7 @@ function Jt(n, e) {
|
|
|
1552
1552
|
let o = 0;
|
|
1553
1553
|
for (let d = 0; d < s; d++) {
|
|
1554
1554
|
const l = t ? d : a[d];
|
|
1555
|
-
r[l] =
|
|
1555
|
+
r[l] = qt(n[l], e[l]), r[l] === n[l] && o++;
|
|
1556
1556
|
}
|
|
1557
1557
|
return i === s && o === i ? n : r;
|
|
1558
1558
|
}
|
|
@@ -1581,19 +1581,19 @@ function at(n) {
|
|
|
1581
1581
|
function st(n) {
|
|
1582
1582
|
return Object.prototype.toString.call(n) === "[object Object]";
|
|
1583
1583
|
}
|
|
1584
|
-
function
|
|
1584
|
+
function Ii(n) {
|
|
1585
1585
|
return Array.isArray(n);
|
|
1586
1586
|
}
|
|
1587
|
-
function
|
|
1587
|
+
function Ti(n) {
|
|
1588
1588
|
return new Promise((e) => {
|
|
1589
1589
|
setTimeout(e, n);
|
|
1590
1590
|
});
|
|
1591
1591
|
}
|
|
1592
1592
|
function rt(n) {
|
|
1593
|
-
|
|
1593
|
+
Ti(0).then(n);
|
|
1594
1594
|
}
|
|
1595
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 ?
|
|
1596
|
+
return t.isDataEqual != null && t.isDataEqual(n, e) ? n : typeof t.structuralSharing == "function" ? t.structuralSharing(n, e) : t.structuralSharing !== !1 ? qt(n, e) : e;
|
|
1597
1597
|
}
|
|
1598
1598
|
class Ai extends Be {
|
|
1599
1599
|
constructor() {
|
|
@@ -1752,10 +1752,10 @@ class zi extends Be {
|
|
|
1752
1752
|
this.hasListeners() || this.destroy();
|
|
1753
1753
|
}
|
|
1754
1754
|
shouldFetchOnReconnect() {
|
|
1755
|
-
return
|
|
1755
|
+
return Ie(this.currentQuery, this.options, this.options.refetchOnReconnect);
|
|
1756
1756
|
}
|
|
1757
1757
|
shouldFetchOnWindowFocus() {
|
|
1758
|
-
return
|
|
1758
|
+
return Ie(this.currentQuery, this.options, this.options.refetchOnWindowFocus);
|
|
1759
1759
|
}
|
|
1760
1760
|
destroy() {
|
|
1761
1761
|
this.listeners = /* @__PURE__ */ new Set(), this.clearStaleTimeout(), this.clearRefetchInterval(), this.currentQuery.removeObserver(this);
|
|
@@ -1827,7 +1827,7 @@ class zi extends Be {
|
|
|
1827
1827
|
updateStaleTimeout() {
|
|
1828
1828
|
if (this.clearStaleTimeout(), fe || this.currentResult.isStale || !nt(this.options.staleTime))
|
|
1829
1829
|
return;
|
|
1830
|
-
const t =
|
|
1830
|
+
const t = Li(this.currentResult.dataUpdatedAt, this.options.staleTime) + 1;
|
|
1831
1831
|
this.staleTimeoutId = setTimeout(() => {
|
|
1832
1832
|
this.currentResult.isStale || this.updateResult();
|
|
1833
1833
|
}, t);
|
|
@@ -1857,28 +1857,28 @@ class zi extends Be {
|
|
|
1857
1857
|
let {
|
|
1858
1858
|
dataUpdatedAt: c,
|
|
1859
1859
|
error: v,
|
|
1860
|
-
errorUpdatedAt:
|
|
1860
|
+
errorUpdatedAt: y,
|
|
1861
1861
|
fetchStatus: k,
|
|
1862
|
-
status:
|
|
1863
|
-
} = p, F = !1, w = !1,
|
|
1862
|
+
status: S
|
|
1863
|
+
} = p, F = !1, w = !1, I;
|
|
1864
1864
|
if (t._optimisticResults) {
|
|
1865
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 || (
|
|
1866
|
+
(m || g) && (k = Ui(e.options.networkMode) ? "fetching" : "paused", c || (S = "loading")), t._optimisticResults === "isRestoring" && (k = "idle");
|
|
1867
1867
|
}
|
|
1868
|
-
if (t.keepPreviousData && !p.dataUpdatedAt && u != null && u.isSuccess &&
|
|
1869
|
-
|
|
1868
|
+
if (t.keepPreviousData && !p.dataUpdatedAt && u != null && u.isSuccess && S !== "error")
|
|
1869
|
+
I = u.data, c = u.dataUpdatedAt, S = u.status, F = !0;
|
|
1870
1870
|
else if (t.select && typeof p.data != "undefined")
|
|
1871
1871
|
if (s && p.data === (r == null ? void 0 : r.data) && t.select === this.selectFn)
|
|
1872
|
-
|
|
1872
|
+
I = this.selectResult;
|
|
1873
1873
|
else
|
|
1874
1874
|
try {
|
|
1875
|
-
this.selectFn = t.select,
|
|
1875
|
+
this.selectFn = t.select, I = t.select(p.data), I = ot(s == null ? void 0 : s.data, I, t), this.selectResult = I, this.selectError = null;
|
|
1876
1876
|
} catch (f) {
|
|
1877
1877
|
this.selectError = f;
|
|
1878
1878
|
}
|
|
1879
1879
|
else
|
|
1880
|
-
|
|
1881
|
-
if (typeof t.placeholderData != "undefined" && typeof
|
|
1880
|
+
I = p.data;
|
|
1881
|
+
if (typeof t.placeholderData != "undefined" && typeof I == "undefined" && S === "loading") {
|
|
1882
1882
|
let f;
|
|
1883
1883
|
if (s != null && s.isPlaceholderData && t.placeholderData === (o == null ? void 0 : o.placeholderData))
|
|
1884
1884
|
f = s.data;
|
|
@@ -1888,28 +1888,28 @@ class zi extends Be {
|
|
|
1888
1888
|
} catch (m) {
|
|
1889
1889
|
this.selectError = m;
|
|
1890
1890
|
}
|
|
1891
|
-
typeof f != "undefined" && (
|
|
1891
|
+
typeof f != "undefined" && (S = "success", I = ot(s == null ? void 0 : s.data, f, t), w = !0);
|
|
1892
1892
|
}
|
|
1893
|
-
this.selectError && (v = this.selectError,
|
|
1894
|
-
const E = k === "fetching",
|
|
1893
|
+
this.selectError && (v = this.selectError, I = this.selectResult, y = Date.now(), S = "error");
|
|
1894
|
+
const E = k === "fetching", T = S === "loading", P = S === "error";
|
|
1895
1895
|
return {
|
|
1896
|
-
status:
|
|
1896
|
+
status: S,
|
|
1897
1897
|
fetchStatus: k,
|
|
1898
|
-
isLoading:
|
|
1899
|
-
isSuccess:
|
|
1898
|
+
isLoading: T,
|
|
1899
|
+
isSuccess: S === "success",
|
|
1900
1900
|
isError: P,
|
|
1901
|
-
isInitialLoading:
|
|
1902
|
-
data:
|
|
1901
|
+
isInitialLoading: T && E,
|
|
1902
|
+
data: I,
|
|
1903
1903
|
dataUpdatedAt: c,
|
|
1904
1904
|
error: v,
|
|
1905
|
-
errorUpdatedAt:
|
|
1905
|
+
errorUpdatedAt: y,
|
|
1906
1906
|
failureCount: p.fetchFailureCount,
|
|
1907
1907
|
failureReason: p.fetchFailureReason,
|
|
1908
1908
|
errorUpdateCount: p.errorUpdateCount,
|
|
1909
1909
|
isFetched: p.dataUpdateCount > 0 || p.errorUpdateCount > 0,
|
|
1910
1910
|
isFetchedAfterMount: p.dataUpdateCount > l.dataUpdateCount || p.errorUpdateCount > l.errorUpdateCount,
|
|
1911
1911
|
isFetching: E,
|
|
1912
|
-
isRefetching: E && !
|
|
1912
|
+
isRefetching: E && !T,
|
|
1913
1913
|
isLoadingError: P && p.dataUpdatedAt === 0,
|
|
1914
1914
|
isPaused: k === "paused",
|
|
1915
1915
|
isPlaceholderData: w,
|
|
@@ -1981,9 +1981,9 @@ function Bi(n, e) {
|
|
|
1981
1981
|
return e.enabled !== !1 && !n.state.dataUpdatedAt && !(n.state.status === "error" && e.retryOnMount === !1);
|
|
1982
1982
|
}
|
|
1983
1983
|
function dt(n, e) {
|
|
1984
|
-
return Bi(n, e) || n.state.dataUpdatedAt > 0 &&
|
|
1984
|
+
return Bi(n, e) || n.state.dataUpdatedAt > 0 && Ie(n, e, e.refetchOnMount);
|
|
1985
1985
|
}
|
|
1986
|
-
function
|
|
1986
|
+
function Ie(n, e, t) {
|
|
1987
1987
|
if (e.enabled !== !1) {
|
|
1988
1988
|
const i = typeof t == "function" ? t(n) : t;
|
|
1989
1989
|
return i === "always" || i !== !1 && Qe(n, e);
|
|
@@ -2003,16 +2003,16 @@ const Ki = $t.useSyncExternalStore, ct = /* @__PURE__ */ M.createContext(void 0)
|
|
|
2003
2003
|
function Wi(n, e) {
|
|
2004
2004
|
return n || (e && typeof window != "undefined" ? (window.ReactQueryClientContext || (window.ReactQueryClientContext = ct), window.ReactQueryClientContext) : ct);
|
|
2005
2005
|
}
|
|
2006
|
-
const
|
|
2006
|
+
const qi = ({
|
|
2007
2007
|
context: n
|
|
2008
2008
|
} = {}) => {
|
|
2009
2009
|
const e = M.useContext(Wi(n, M.useContext(Gi)));
|
|
2010
2010
|
if (!e)
|
|
2011
2011
|
throw new Error("No QueryClient set, use QueryClientProvider to set one");
|
|
2012
2012
|
return e;
|
|
2013
|
-
},
|
|
2014
|
-
|
|
2015
|
-
function
|
|
2013
|
+
}, Ht = /* @__PURE__ */ M.createContext(!1), Hi = () => M.useContext(Ht);
|
|
2014
|
+
Ht.Provider;
|
|
2015
|
+
function Ji() {
|
|
2016
2016
|
let n = !1;
|
|
2017
2017
|
return {
|
|
2018
2018
|
clearReset: () => {
|
|
@@ -2024,7 +2024,7 @@ function Hi() {
|
|
|
2024
2024
|
isReset: () => n
|
|
2025
2025
|
};
|
|
2026
2026
|
}
|
|
2027
|
-
const Zi = /* @__PURE__ */ M.createContext(
|
|
2027
|
+
const Zi = /* @__PURE__ */ M.createContext(Ji()), Xi = () => M.useContext(Zi);
|
|
2028
2028
|
function Yi(n, e) {
|
|
2029
2029
|
return typeof n == "function" ? n(...e) : !!n;
|
|
2030
2030
|
}
|
|
@@ -2049,9 +2049,9 @@ const ea = (n, e) => {
|
|
|
2049
2049
|
t.clearReset(), n.onError == null || n.onError(i), n.onSettled == null || n.onSettled(void 0, i);
|
|
2050
2050
|
});
|
|
2051
2051
|
function oa(n, e) {
|
|
2052
|
-
const t =
|
|
2052
|
+
const t = qi({
|
|
2053
2053
|
context: n.context
|
|
2054
|
-
}), i =
|
|
2054
|
+
}), i = Hi(), a = Xi(), s = t.defaultQueryOptions(n);
|
|
2055
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
2056
|
const [r] = M.useState(() => new e(t, s)), o = r.getOptimisticResult(s);
|
|
2057
2057
|
if (Ki(M.useCallback((d) => {
|
|
@@ -2078,12 +2078,12 @@ function la(n, e, t) {
|
|
|
2078
2078
|
return oa(i, zi);
|
|
2079
2079
|
}
|
|
2080
2080
|
const da = () => ["account"], Zs = () => {
|
|
2081
|
-
const { accountName: n } = Zn(je.state), [e, t] =
|
|
2081
|
+
const { accountName: n } = Zn(je.state), [e, t] = Sn(Ve), i = la(da(), () => Wt.get(n), {
|
|
2082
2082
|
enabled: !!n && !e,
|
|
2083
2083
|
refetchOnWindowFocus: !1,
|
|
2084
2084
|
refetchOnMount: !1
|
|
2085
2085
|
});
|
|
2086
|
-
return
|
|
2086
|
+
return ye(() => {
|
|
2087
2087
|
const a = i.data;
|
|
2088
2088
|
!i.isSuccess || !a || t(a);
|
|
2089
2089
|
}, [i.status]), {
|
|
@@ -2111,7 +2111,7 @@ const Xs = {
|
|
|
2111
2111
|
}, Ys = {
|
|
2112
2112
|
EVENT_STATUS_CHANGED: "event:statusChanged"
|
|
2113
2113
|
};
|
|
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 || {});
|
|
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.FAST_STORE = "faststore", n))(ha || {});
|
|
2115
2115
|
function ga(n) {
|
|
2116
2116
|
const e = Object.values(n);
|
|
2117
2117
|
return Object.assign({}, ...e);
|
|
@@ -2131,7 +2131,7 @@ function va(n, e) {
|
|
|
2131
2131
|
n.addResourceBundle(i, "translation", a, !0);
|
|
2132
2132
|
});
|
|
2133
2133
|
}
|
|
2134
|
-
function
|
|
2134
|
+
function ya(n, e) {
|
|
2135
2135
|
if (!(n instanceof e))
|
|
2136
2136
|
throw new TypeError("Cannot call a class as a function");
|
|
2137
2137
|
}
|
|
@@ -2143,7 +2143,7 @@ function ie(n) {
|
|
|
2143
2143
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
2144
2144
|
}, ie(n);
|
|
2145
2145
|
}
|
|
2146
|
-
function
|
|
2146
|
+
function Sa(n, e) {
|
|
2147
2147
|
if (ie(n) !== "object" || n === null)
|
|
2148
2148
|
return n;
|
|
2149
2149
|
var t = n[Symbol.toPrimitive];
|
|
@@ -2156,7 +2156,7 @@ function ya(n, e) {
|
|
|
2156
2156
|
return (e === "string" ? String : Number)(n);
|
|
2157
2157
|
}
|
|
2158
2158
|
function Na(n) {
|
|
2159
|
-
var e =
|
|
2159
|
+
var e = Sa(n, "string");
|
|
2160
2160
|
return ie(e) === "symbol" ? e : String(e);
|
|
2161
2161
|
}
|
|
2162
2162
|
function mt(n, e) {
|
|
@@ -2170,7 +2170,7 @@ function ba(n, e, t) {
|
|
|
2170
2170
|
writable: !1
|
|
2171
2171
|
}), n;
|
|
2172
2172
|
}
|
|
2173
|
-
var
|
|
2173
|
+
var Jt = [], Fa = Jt.forEach, wa = Jt.slice;
|
|
2174
2174
|
function Ca(n) {
|
|
2175
2175
|
return Fa.call(wa.call(arguments, 1), function(e) {
|
|
2176
2176
|
if (e)
|
|
@@ -2273,17 +2273,17 @@ var ft = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Ea = function(e, t, i) {
|
|
|
2273
2273
|
}
|
|
2274
2274
|
return t;
|
|
2275
2275
|
}
|
|
2276
|
-
},
|
|
2277
|
-
if (
|
|
2278
|
-
return
|
|
2276
|
+
}, J = null, ht = function() {
|
|
2277
|
+
if (J !== null)
|
|
2278
|
+
return J;
|
|
2279
2279
|
try {
|
|
2280
|
-
|
|
2280
|
+
J = window !== "undefined" && window.localStorage !== null;
|
|
2281
2281
|
var e = "i18next.translate.boo";
|
|
2282
2282
|
window.localStorage.setItem(e, "foo"), window.localStorage.removeItem(e);
|
|
2283
2283
|
} catch {
|
|
2284
|
-
|
|
2284
|
+
J = !1;
|
|
2285
2285
|
}
|
|
2286
|
-
return
|
|
2286
|
+
return J;
|
|
2287
2287
|
}, xa = {
|
|
2288
2288
|
name: "localStorage",
|
|
2289
2289
|
lookup: function(e) {
|
|
@@ -2308,7 +2308,7 @@ var ft = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Ea = function(e, t, i) {
|
|
|
2308
2308
|
Z = !1;
|
|
2309
2309
|
}
|
|
2310
2310
|
return Z;
|
|
2311
|
-
},
|
|
2311
|
+
}, La = {
|
|
2312
2312
|
name: "sessionStorage",
|
|
2313
2313
|
lookup: function(e) {
|
|
2314
2314
|
var t;
|
|
@@ -2333,13 +2333,13 @@ var ft = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Ea = function(e, t, i) {
|
|
|
2333
2333
|
}
|
|
2334
2334
|
return t.length > 0 ? t : void 0;
|
|
2335
2335
|
}
|
|
2336
|
-
},
|
|
2336
|
+
}, Ia = {
|
|
2337
2337
|
name: "htmlTag",
|
|
2338
2338
|
lookup: function(e) {
|
|
2339
2339
|
var t, i = e.htmlTag || (typeof document != "undefined" ? document.documentElement : null);
|
|
2340
2340
|
return i && typeof i.getAttribute == "function" && (t = i.getAttribute("lang")), t;
|
|
2341
2341
|
}
|
|
2342
|
-
},
|
|
2342
|
+
}, Ta = {
|
|
2343
2343
|
name: "path",
|
|
2344
2344
|
lookup: function(e) {
|
|
2345
2345
|
var t;
|
|
@@ -2383,7 +2383,7 @@ function Pa() {
|
|
|
2383
2383
|
var Zt = /* @__PURE__ */ function() {
|
|
2384
2384
|
function n(e) {
|
|
2385
2385
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
2386
|
-
|
|
2386
|
+
ya(this, n), this.type = "languageDetector", this.detectors = {}, this.init(e, t);
|
|
2387
2387
|
}
|
|
2388
2388
|
return ba(n, [{
|
|
2389
2389
|
key: "init",
|
|
@@ -2393,7 +2393,7 @@ var Zt = /* @__PURE__ */ function() {
|
|
|
2393
2393
|
languageUtils: {}
|
|
2394
2394
|
}, this.options = Ca(i, this.options || {}, Pa()), typeof this.options.convertDetectedLanguage == "string" && this.options.convertDetectedLanguage.indexOf("15897") > -1 && (this.options.convertDetectedLanguage = function(s) {
|
|
2395
2395
|
return s.replace("-", "_");
|
|
2396
|
-
}), this.options.lookupFromUrlIndex && (this.options.lookupFromPathIndex = this.options.lookupFromUrlIndex), this.i18nOptions = a, this.addDetector(Oa), this.addDetector(Ra), this.addDetector(xa), this.addDetector(
|
|
2396
|
+
}), this.options.lookupFromUrlIndex && (this.options.lookupFromPathIndex = this.options.lookupFromUrlIndex), this.i18nOptions = a, this.addDetector(Oa), this.addDetector(Ra), this.addDetector(xa), this.addDetector(La), this.addDetector(Da), this.addDetector(Ia), this.addDetector(Ta), this.addDetector(Aa);
|
|
2397
2397
|
}
|
|
2398
2398
|
}, {
|
|
2399
2399
|
key: "addDetector",
|
|
@@ -2426,74 +2426,29 @@ var Zt = /* @__PURE__ */ function() {
|
|
|
2426
2426
|
}]), n;
|
|
2427
2427
|
}();
|
|
2428
2428
|
Zt.type = "languageDetector";
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
"&": "&",
|
|
2432
|
-
"<": "<",
|
|
2433
|
-
"<": "<",
|
|
2434
|
-
">": ">",
|
|
2435
|
-
">": ">",
|
|
2436
|
-
"'": "'",
|
|
2437
|
-
"'": "'",
|
|
2438
|
-
""": '"',
|
|
2439
|
-
""": '"',
|
|
2440
|
-
" ": " ",
|
|
2441
|
-
" ": " ",
|
|
2442
|
-
"©": "©",
|
|
2443
|
-
"©": "©",
|
|
2444
|
-
"®": "®",
|
|
2445
|
-
"®": "®",
|
|
2446
|
-
"…": "…",
|
|
2447
|
-
"…": "…",
|
|
2448
|
-
"/": "/",
|
|
2449
|
-
"/": "/"
|
|
2450
|
-
}, Ua = (n) => _a[n], Ma = (n) => n.replace(Va, Ua);
|
|
2451
|
-
let kt = {
|
|
2452
|
-
bindI18n: "languageChanged",
|
|
2453
|
-
bindI18nStore: "",
|
|
2454
|
-
transEmptyNodeValue: "",
|
|
2455
|
-
transSupportBasicHtmlNodes: !0,
|
|
2456
|
-
transWrapTextNodes: "",
|
|
2457
|
-
transKeepBasicHtmlNodesFor: ["br", "strong", "i", "p"],
|
|
2458
|
-
useSuspense: !0,
|
|
2459
|
-
unescape: Ma
|
|
2460
|
-
};
|
|
2461
|
-
function ja() {
|
|
2462
|
-
let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
2463
|
-
kt = {
|
|
2464
|
-
...kt,
|
|
2465
|
-
...n
|
|
2466
|
-
};
|
|
2467
|
-
}
|
|
2468
|
-
const $a = {
|
|
2469
|
-
type: "3rdParty",
|
|
2470
|
-
init(n) {
|
|
2471
|
-
ja(n.options.react);
|
|
2472
|
-
}
|
|
2473
|
-
};
|
|
2474
|
-
function za(n) {
|
|
2475
|
-
n.use($a).use(Zt).init({
|
|
2429
|
+
function Va(n, e) {
|
|
2430
|
+
n.use(e).use(Zt).init({
|
|
2476
2431
|
resources: {},
|
|
2477
2432
|
fallbackLng: "en",
|
|
2478
2433
|
debug: !1,
|
|
2479
2434
|
interpolation: {
|
|
2480
2435
|
escapeValue: !1,
|
|
2481
2436
|
// not needed for react as it escapes by default
|
|
2482
|
-
format: (
|
|
2483
|
-
if (
|
|
2484
|
-
const [
|
|
2485
|
-
if (
|
|
2486
|
-
return new Intl.NumberFormat(
|
|
2487
|
-
if (
|
|
2488
|
-
return new Intl.DateTimeFormat(
|
|
2489
|
-
if (
|
|
2490
|
-
return new Intl.NumberFormat(
|
|
2437
|
+
format: (t, i, a) => {
|
|
2438
|
+
if (i) {
|
|
2439
|
+
const [s, ...r] = i.split(",").map((o) => o.trim());
|
|
2440
|
+
if (s === "number")
|
|
2441
|
+
return new Intl.NumberFormat(a).format(t);
|
|
2442
|
+
if (s === "date")
|
|
2443
|
+
return new Intl.DateTimeFormat(a).format(t);
|
|
2444
|
+
if (s === "currency")
|
|
2445
|
+
return new Intl.NumberFormat(a, {
|
|
2491
2446
|
style: "currency",
|
|
2492
|
-
currency:
|
|
2447
|
+
currency: r[0] || "USD",
|
|
2493
2448
|
currencyDisplay: "narrowSymbol"
|
|
2494
|
-
}).format(
|
|
2449
|
+
}).format(t).replace("$", "").trim();
|
|
2495
2450
|
}
|
|
2496
|
-
return
|
|
2451
|
+
return t;
|
|
2497
2452
|
}
|
|
2498
2453
|
},
|
|
2499
2454
|
detection: {
|
|
@@ -2511,7 +2466,7 @@ function za(n) {
|
|
|
2511
2466
|
}
|
|
2512
2467
|
});
|
|
2513
2468
|
}
|
|
2514
|
-
const
|
|
2469
|
+
const _a = {
|
|
2515
2470
|
type: "logger",
|
|
2516
2471
|
log(n) {
|
|
2517
2472
|
this.output("log", n);
|
|
@@ -2533,7 +2488,7 @@ class pe {
|
|
|
2533
2488
|
}
|
|
2534
2489
|
init(e) {
|
|
2535
2490
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
2536
|
-
this.prefix = t.prefix || "i18next:", this.logger = e ||
|
|
2491
|
+
this.prefix = t.prefix || "i18next:", this.logger = e || _a, this.options = t, this.debug = t.debug;
|
|
2537
2492
|
}
|
|
2538
2493
|
log() {
|
|
2539
2494
|
for (var e = arguments.length, t = new Array(e), i = 0; i < e; i++)
|
|
@@ -2604,10 +2559,10 @@ function X() {
|
|
|
2604
2559
|
});
|
|
2605
2560
|
return t.resolve = n, t.reject = e, t;
|
|
2606
2561
|
}
|
|
2607
|
-
function
|
|
2562
|
+
function kt(n) {
|
|
2608
2563
|
return n == null ? "" : "" + n;
|
|
2609
2564
|
}
|
|
2610
|
-
function
|
|
2565
|
+
function Ua(n, e, t) {
|
|
2611
2566
|
n.forEach((i) => {
|
|
2612
2567
|
e[i] && (t[i] = e[i]);
|
|
2613
2568
|
});
|
|
@@ -2631,14 +2586,14 @@ function Ke(n, e, t) {
|
|
|
2631
2586
|
k: i(s.shift())
|
|
2632
2587
|
};
|
|
2633
2588
|
}
|
|
2634
|
-
function
|
|
2589
|
+
function vt(n, e, t) {
|
|
2635
2590
|
const {
|
|
2636
2591
|
obj: i,
|
|
2637
2592
|
k: a
|
|
2638
2593
|
} = Ke(n, e, Object);
|
|
2639
2594
|
i[a] = t;
|
|
2640
2595
|
}
|
|
2641
|
-
function
|
|
2596
|
+
function Ma(n, e, t, i) {
|
|
2642
2597
|
const {
|
|
2643
2598
|
obj: a,
|
|
2644
2599
|
k: s
|
|
@@ -2653,7 +2608,7 @@ function he(n, e) {
|
|
|
2653
2608
|
if (t)
|
|
2654
2609
|
return t[i];
|
|
2655
2610
|
}
|
|
2656
|
-
function
|
|
2611
|
+
function ja(n, e, t) {
|
|
2657
2612
|
const i = he(n, t);
|
|
2658
2613
|
return i !== void 0 ? i : he(e, t);
|
|
2659
2614
|
}
|
|
@@ -2665,7 +2620,7 @@ function Xt(n, e, t) {
|
|
|
2665
2620
|
function Q(n) {
|
|
2666
2621
|
return n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
|
|
2667
2622
|
}
|
|
2668
|
-
var
|
|
2623
|
+
var $a = {
|
|
2669
2624
|
"&": "&",
|
|
2670
2625
|
"<": "<",
|
|
2671
2626
|
">": ">",
|
|
@@ -2673,13 +2628,13 @@ var Wa = {
|
|
|
2673
2628
|
"'": "'",
|
|
2674
2629
|
"/": "/"
|
|
2675
2630
|
};
|
|
2676
|
-
function
|
|
2677
|
-
return typeof n == "string" ? n.replace(/[&<>"'\/]/g, (e) =>
|
|
2631
|
+
function za(n) {
|
|
2632
|
+
return typeof n == "string" ? n.replace(/[&<>"'\/]/g, (e) => $a[e]) : n;
|
|
2678
2633
|
}
|
|
2679
|
-
const
|
|
2680
|
-
function
|
|
2634
|
+
const Ba = [" ", ",", "?", "!", ";"];
|
|
2635
|
+
function Qa(n, e, t) {
|
|
2681
2636
|
e = e || "", t = t || "";
|
|
2682
|
-
const i =
|
|
2637
|
+
const i = Ba.filter((r) => e.indexOf(r) < 0 && t.indexOf(r) < 0);
|
|
2683
2638
|
if (i.length === 0)
|
|
2684
2639
|
return !0;
|
|
2685
2640
|
const a = new RegExp(`(${i.map((r) => r === "?" ? "\\?" : r).join("|")})`);
|
|
@@ -2754,7 +2709,7 @@ class yt extends Ne {
|
|
|
2754
2709
|
};
|
|
2755
2710
|
const r = s.keySeparator !== void 0 ? s.keySeparator : this.options.keySeparator;
|
|
2756
2711
|
let o = [e, t];
|
|
2757
|
-
i && (o = o.concat(r ? i.split(r) : i)), e.indexOf(".") > -1 && (o = e.split("."), a = t, t = o[1]), this.addNamespaces(t),
|
|
2712
|
+
i && (o = o.concat(r ? i.split(r) : i)), e.indexOf(".") > -1 && (o = e.split("."), a = t, t = o[1]), this.addNamespaces(t), vt(this.data, o, a), s.silent || this.emit("added", e, t, i, a);
|
|
2758
2713
|
}
|
|
2759
2714
|
addResources(e, t, i) {
|
|
2760
2715
|
let a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {
|
|
@@ -2775,7 +2730,7 @@ class yt extends Ne {
|
|
|
2775
2730
|
a ? Xt(d, i, s) : d = {
|
|
2776
2731
|
...d,
|
|
2777
2732
|
...i
|
|
2778
|
-
},
|
|
2733
|
+
}, vt(this.data, o, d), r.silent || this.emit("added", e, t, i);
|
|
2779
2734
|
}
|
|
2780
2735
|
removeResourceBundle(e, t) {
|
|
2781
2736
|
this.hasResourceBundle(e, t) && delete this.data[e][t], this.removeNamespaces(t), this.emit("removed", e, t);
|
|
@@ -2810,11 +2765,11 @@ var Yt = {
|
|
|
2810
2765
|
}), e;
|
|
2811
2766
|
}
|
|
2812
2767
|
};
|
|
2813
|
-
const
|
|
2768
|
+
const St = {};
|
|
2814
2769
|
class ve extends Ne {
|
|
2815
2770
|
constructor(e) {
|
|
2816
2771
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
2817
|
-
super(),
|
|
2772
|
+
super(), Ua(["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");
|
|
2818
2773
|
}
|
|
2819
2774
|
changeLanguage(e) {
|
|
2820
2775
|
e && (this.language = e);
|
|
@@ -2833,7 +2788,7 @@ class ve extends Ne {
|
|
|
2833
2788
|
i === void 0 && (i = ":");
|
|
2834
2789
|
const a = t.keySeparator !== void 0 ? t.keySeparator : this.options.keySeparator;
|
|
2835
2790
|
let s = t.ns || this.options.defaultNS || [];
|
|
2836
|
-
const r = i && e.indexOf(i) > -1, o = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !
|
|
2791
|
+
const r = i && e.indexOf(i) > -1, o = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !Qa(e, i, a);
|
|
2837
2792
|
if (r && !o) {
|
|
2838
2793
|
const d = e.match(this.interpolator.nestingRegexp);
|
|
2839
2794
|
if (d && d.length > 0)
|
|
@@ -2882,8 +2837,8 @@ class ve extends Ne {
|
|
|
2882
2837
|
}
|
|
2883
2838
|
const p = this.resolve(e, t);
|
|
2884
2839
|
let c = p && p.res;
|
|
2885
|
-
const v = p && p.usedKey || r,
|
|
2886
|
-
if (w && c && (typeof c != "string" && typeof c != "boolean" && typeof c != "number") &&
|
|
2840
|
+
const v = p && p.usedKey || r, y = p && p.exactUsedKey || r, k = Object.prototype.toString.apply(c), S = ["[object Number]", "[object Function]", "[object RegExp]"], F = t.joinArrays !== void 0 ? t.joinArrays : this.options.joinArrays, w = !this.i18nFormat || this.i18nFormat.handleAsObject;
|
|
2841
|
+
if (w && c && (typeof c != "string" && typeof c != "boolean" && typeof c != "number") && S.indexOf(k) < 0 && !(typeof F == "string" && k === "[object Array]")) {
|
|
2887
2842
|
if (!t.returnObjects && !this.options.returnObjects) {
|
|
2888
2843
|
this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
|
2889
2844
|
const E = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(v, c, {
|
|
@@ -2893,28 +2848,28 @@ class ve extends Ne {
|
|
|
2893
2848
|
return a ? (p.res = E, p.usedParams = this.getUsedParamsDetails(t), p) : E;
|
|
2894
2849
|
}
|
|
2895
2850
|
if (s) {
|
|
2896
|
-
const E = k === "[object Array]",
|
|
2851
|
+
const E = k === "[object Array]", T = E ? [] : {}, P = E ? y : v;
|
|
2897
2852
|
for (const A in c)
|
|
2898
2853
|
if (Object.prototype.hasOwnProperty.call(c, A)) {
|
|
2899
2854
|
const f = `${P}${s}${A}`;
|
|
2900
|
-
|
|
2855
|
+
T[A] = this.translate(f, {
|
|
2901
2856
|
...t,
|
|
2902
2857
|
joinArrays: !1,
|
|
2903
2858
|
ns: o
|
|
2904
|
-
}),
|
|
2859
|
+
}), T[A] === f && (T[A] = c[A]);
|
|
2905
2860
|
}
|
|
2906
|
-
c =
|
|
2861
|
+
c = T;
|
|
2907
2862
|
}
|
|
2908
2863
|
} else if (w && typeof F == "string" && k === "[object Array]")
|
|
2909
2864
|
c = c.join(F), c && (c = this.extendTranslation(c, e, t, i));
|
|
2910
2865
|
else {
|
|
2911
|
-
let E = !1,
|
|
2866
|
+
let E = !1, T = !1;
|
|
2912
2867
|
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, {
|
|
2913
2868
|
ordinal: !1
|
|
2914
2869
|
}) : "", g = t[`defaultValue${f}`] || t[`defaultValue${m}`] || t.defaultValue;
|
|
2915
|
-
!this.isValidLookup(c) && A && (E = !0, c = g), this.isValidLookup(c) || (
|
|
2916
|
-
const N = (t.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) &&
|
|
2917
|
-
if (
|
|
2870
|
+
!this.isValidLookup(c) && A && (E = !0, c = g), this.isValidLookup(c) || (T = !0, c = r);
|
|
2871
|
+
const N = (t.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && T ? void 0 : c, C = A && g !== c && this.options.updateMissing;
|
|
2872
|
+
if (T || E || C) {
|
|
2918
2873
|
if (this.logger.log(C ? "updateKey" : "missingKey", l, d, r, C ? g : c), s) {
|
|
2919
2874
|
const R = this.resolve(r, {
|
|
2920
2875
|
...t,
|
|
@@ -2929,17 +2884,17 @@ class ve extends Ne {
|
|
|
2929
2884
|
b.push(O[R]);
|
|
2930
2885
|
else
|
|
2931
2886
|
this.options.saveMissingTo === "all" ? b = this.languageUtils.toResolveHierarchy(t.lng || this.language) : b.push(t.lng || this.language);
|
|
2932
|
-
const
|
|
2887
|
+
const L = (R, D, V) => {
|
|
2933
2888
|
const se = A && V !== c ? V : N;
|
|
2934
2889
|
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);
|
|
2935
2890
|
};
|
|
2936
2891
|
this.options.saveMissing && (this.options.saveMissingPlurals && P ? b.forEach((R) => {
|
|
2937
2892
|
this.pluralResolver.getSuffixes(R, t).forEach((D) => {
|
|
2938
|
-
|
|
2893
|
+
L([R], r + D, t[`defaultValue${D}`] || g);
|
|
2939
2894
|
});
|
|
2940
|
-
}) :
|
|
2895
|
+
}) : L(b, r, g));
|
|
2941
2896
|
}
|
|
2942
|
-
c = this.extendTranslation(c, e, t, p, i),
|
|
2897
|
+
c = this.extendTranslation(c, e, t, p, i), T && c === r && this.options.appendNamespaceToMissingKey && (c = `${d}:${r}`), (T || 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));
|
|
2943
2898
|
}
|
|
2944
2899
|
return a ? (p.res = c, p.usedParams = this.getUsedParamsDetails(t), p) : c;
|
|
2945
2900
|
}
|
|
@@ -2975,8 +2930,8 @@ class ve extends Ne {
|
|
|
2975
2930
|
u < v && (i.nest = !1);
|
|
2976
2931
|
}
|
|
2977
2932
|
!i.lng && this.options.compatibilityAPI !== "v1" && a && a.res && (i.lng = a.usedLng), i.nest !== !1 && (e = this.interpolator.nest(e, function() {
|
|
2978
|
-
for (var c = arguments.length, v = new Array(c),
|
|
2979
|
-
v[
|
|
2933
|
+
for (var c = arguments.length, v = new Array(c), y = 0; y < c; y++)
|
|
2934
|
+
v[y] = arguments[y];
|
|
2980
2935
|
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);
|
|
2981
2936
|
}, i)), i.interpolation && this.interpolator.reset();
|
|
2982
2937
|
}
|
|
@@ -2998,27 +2953,27 @@ class ve extends Ne {
|
|
|
2998
2953
|
a = u;
|
|
2999
2954
|
let p = l.namespaces;
|
|
3000
2955
|
this.options.fallbackNS && (p = p.concat(this.options.fallbackNS));
|
|
3001
|
-
const c = t.count !== void 0 && typeof t.count != "string", v = c && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(),
|
|
3002
|
-
p.forEach((
|
|
3003
|
-
this.isValidLookup(i) || (o =
|
|
2956
|
+
const c = t.count !== void 0 && typeof t.count != "string", v = c && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(), y = 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);
|
|
2957
|
+
p.forEach((S) => {
|
|
2958
|
+
this.isValidLookup(i) || (o = S, !St[`${k[0]}-${S}`] && this.utils && this.utils.hasLoadedNamespace && !this.utils.hasLoadedNamespace(o) && (St[`${k[0]}-${S}`] = !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) => {
|
|
3004
2959
|
if (this.isValidLookup(i))
|
|
3005
2960
|
return;
|
|
3006
2961
|
r = F;
|
|
3007
2962
|
const w = [u];
|
|
3008
2963
|
if (this.i18nFormat && this.i18nFormat.addLookupKeys)
|
|
3009
|
-
this.i18nFormat.addLookupKeys(w, u, F,
|
|
2964
|
+
this.i18nFormat.addLookupKeys(w, u, F, S, t);
|
|
3010
2965
|
else {
|
|
3011
2966
|
let E;
|
|
3012
2967
|
c && (E = this.pluralResolver.getSuffix(F, t.count, t));
|
|
3013
|
-
const
|
|
3014
|
-
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 +
|
|
2968
|
+
const T = `${this.options.pluralSeparator}zero`, P = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
|
|
2969
|
+
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 + T)), y) {
|
|
3015
2970
|
const A = `${u}${this.options.contextSeparator}${t.context}`;
|
|
3016
|
-
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 +
|
|
2971
|
+
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 + T));
|
|
3017
2972
|
}
|
|
3018
2973
|
}
|
|
3019
|
-
let
|
|
3020
|
-
for (;
|
|
3021
|
-
this.isValidLookup(i) || (s =
|
|
2974
|
+
let I;
|
|
2975
|
+
for (; I = w.pop(); )
|
|
2976
|
+
this.isValidLookup(i) || (s = I, i = this.getResource(F, S, I, t));
|
|
3022
2977
|
}));
|
|
3023
2978
|
});
|
|
3024
2979
|
}), {
|
|
@@ -3063,7 +3018,7 @@ class ve extends Ne {
|
|
|
3063
3018
|
function Oe(n) {
|
|
3064
3019
|
return n.charAt(0).toUpperCase() + n.slice(1);
|
|
3065
3020
|
}
|
|
3066
|
-
class
|
|
3021
|
+
class Nt {
|
|
3067
3022
|
constructor(e) {
|
|
3068
3023
|
this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = j.create("languageUtils");
|
|
3069
3024
|
}
|
|
@@ -3132,7 +3087,7 @@ class bt {
|
|
|
3132
3087
|
}), a;
|
|
3133
3088
|
}
|
|
3134
3089
|
}
|
|
3135
|
-
let
|
|
3090
|
+
let Ka = [{
|
|
3136
3091
|
lngs: ["ach", "ak", "am", "arn", "br", "fil", "gun", "ln", "mfe", "mg", "mi", "oc", "pt", "pt-BR", "tg", "tl", "ti", "tr", "uz", "wa"],
|
|
3137
3092
|
nr: [1, 2],
|
|
3138
3093
|
fc: 1
|
|
@@ -3224,7 +3179,7 @@ let Za = [{
|
|
|
3224
3179
|
lngs: ["he", "iw"],
|
|
3225
3180
|
nr: [1, 2, 20, 21],
|
|
3226
3181
|
fc: 22
|
|
3227
|
-
}],
|
|
3182
|
+
}], Ga = {
|
|
3228
3183
|
1: function(n) {
|
|
3229
3184
|
return +(n > 1);
|
|
3230
3185
|
},
|
|
@@ -3292,7 +3247,7 @@ let Za = [{
|
|
|
3292
3247
|
return n == 1 ? 0 : n == 2 ? 1 : (n < 0 || n > 10) && n % 10 == 0 ? 2 : 3;
|
|
3293
3248
|
}
|
|
3294
3249
|
};
|
|
3295
|
-
const
|
|
3250
|
+
const Wa = ["v1", "v2", "v3"], qa = ["v4"], bt = {
|
|
3296
3251
|
zero: 0,
|
|
3297
3252
|
one: 1,
|
|
3298
3253
|
two: 2,
|
|
@@ -3300,21 +3255,21 @@ const Ya = ["v1", "v2", "v3"], es = ["v4"], Ft = {
|
|
|
3300
3255
|
many: 4,
|
|
3301
3256
|
other: 5
|
|
3302
3257
|
};
|
|
3303
|
-
function
|
|
3258
|
+
function Ha() {
|
|
3304
3259
|
const n = {};
|
|
3305
|
-
return
|
|
3260
|
+
return Ka.forEach((e) => {
|
|
3306
3261
|
e.lngs.forEach((t) => {
|
|
3307
3262
|
n[t] = {
|
|
3308
3263
|
numbers: e.nr,
|
|
3309
|
-
plurals:
|
|
3264
|
+
plurals: Ga[e.fc]
|
|
3310
3265
|
};
|
|
3311
3266
|
});
|
|
3312
3267
|
}), n;
|
|
3313
3268
|
}
|
|
3314
|
-
class
|
|
3269
|
+
class Ja {
|
|
3315
3270
|
constructor(e) {
|
|
3316
3271
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
3317
|
-
this.languageUtils = e, this.options = t, this.logger = j.create("pluralResolver"), (!this.options.compatibilityJSON ||
|
|
3272
|
+
this.languageUtils = e, this.options = t, this.logger = j.create("pluralResolver"), (!this.options.compatibilityJSON || qa.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 = Ha();
|
|
3318
3273
|
}
|
|
3319
3274
|
addRule(e, t) {
|
|
3320
3275
|
this.rules[e] = t;
|
|
@@ -3343,7 +3298,7 @@ class ns {
|
|
|
3343
3298
|
getSuffixes(e) {
|
|
3344
3299
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
3345
3300
|
const i = this.getRule(e, t);
|
|
3346
|
-
return i ? this.shouldUseIntlApi() ? i.resolvedOptions().pluralCategories.sort((a, s) =>
|
|
3301
|
+
return i ? this.shouldUseIntlApi() ? i.resolvedOptions().pluralCategories.sort((a, s) => bt[a] - bt[s]).map((a) => `${this.options.prepend}${t.ordinal ? `ordinal${this.options.prepend}` : ""}${a}`) : i.numbers.map((a) => this.getSuffix(e, a, t)) : [];
|
|
3347
3302
|
}
|
|
3348
3303
|
getSuffix(e, t) {
|
|
3349
3304
|
let i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
@@ -3358,14 +3313,14 @@ class ns {
|
|
|
3358
3313
|
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();
|
|
3359
3314
|
}
|
|
3360
3315
|
shouldUseIntlApi() {
|
|
3361
|
-
return !
|
|
3316
|
+
return !Wa.includes(this.options.compatibilityJSON);
|
|
3362
3317
|
}
|
|
3363
3318
|
}
|
|
3364
|
-
function
|
|
3365
|
-
let i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", a = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, s =
|
|
3319
|
+
function Ft(n, e, t) {
|
|
3320
|
+
let i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", a = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, s = ja(n, e, t);
|
|
3366
3321
|
return !s && a && typeof t == "string" && (s = ge(n, t, i), s === void 0 && (s = ge(e, t, i))), s;
|
|
3367
3322
|
}
|
|
3368
|
-
class
|
|
3323
|
+
class Za {
|
|
3369
3324
|
constructor() {
|
|
3370
3325
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
3371
3326
|
this.logger = j.create("interpolator"), this.options = e, this.format = e.interpolation && e.interpolation.format || ((t) => t), this.init(e);
|
|
@@ -3376,7 +3331,7 @@ class is {
|
|
|
3376
3331
|
escapeValue: !0
|
|
3377
3332
|
});
|
|
3378
3333
|
const t = e.interpolation;
|
|
3379
|
-
this.escape = t.escape !== void 0 ? t.escape :
|
|
3334
|
+
this.escape = t.escape !== void 0 ? t.escape : za, 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();
|
|
3380
3335
|
}
|
|
3381
3336
|
reset() {
|
|
3382
3337
|
this.options && this.init(this.options);
|
|
@@ -3392,35 +3347,35 @@ class is {
|
|
|
3392
3347
|
interpolate(e, t, i, a) {
|
|
3393
3348
|
let s, r, o;
|
|
3394
3349
|
const d = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {};
|
|
3395
|
-
function l(
|
|
3396
|
-
return
|
|
3350
|
+
function l(y) {
|
|
3351
|
+
return y.replace(/\$/g, "$$$$");
|
|
3397
3352
|
}
|
|
3398
|
-
const u = (
|
|
3399
|
-
if (
|
|
3400
|
-
const w =
|
|
3353
|
+
const u = (y) => {
|
|
3354
|
+
if (y.indexOf(this.formatSeparator) < 0) {
|
|
3355
|
+
const w = Ft(t, d, y, this.options.keySeparator, this.options.ignoreJSONStructure);
|
|
3401
3356
|
return this.alwaysFormat ? this.format(w, void 0, i, {
|
|
3402
3357
|
...a,
|
|
3403
3358
|
...t,
|
|
3404
|
-
interpolationkey:
|
|
3359
|
+
interpolationkey: y
|
|
3405
3360
|
}) : w;
|
|
3406
3361
|
}
|
|
3407
|
-
const k =
|
|
3408
|
-
return this.format(
|
|
3362
|
+
const k = y.split(this.formatSeparator), S = k.shift().trim(), F = k.join(this.formatSeparator).trim();
|
|
3363
|
+
return this.format(Ft(t, d, S, this.options.keySeparator, this.options.ignoreJSONStructure), F, i, {
|
|
3409
3364
|
...a,
|
|
3410
3365
|
...t,
|
|
3411
|
-
interpolationkey:
|
|
3366
|
+
interpolationkey: S
|
|
3412
3367
|
});
|
|
3413
3368
|
};
|
|
3414
3369
|
this.resetRegExp();
|
|
3415
3370
|
const p = a && a.missingInterpolationHandler || this.options.missingInterpolationHandler, c = a && a.interpolation && a.interpolation.skipOnVariables !== void 0 ? a.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;
|
|
3416
3371
|
return [{
|
|
3417
3372
|
regex: this.regexpUnescape,
|
|
3418
|
-
safeValue: (
|
|
3373
|
+
safeValue: (y) => l(y)
|
|
3419
3374
|
}, {
|
|
3420
3375
|
regex: this.regexp,
|
|
3421
|
-
safeValue: (
|
|
3422
|
-
}].forEach((
|
|
3423
|
-
for (o = 0; s =
|
|
3376
|
+
safeValue: (y) => this.escapeValue ? l(this.escape(y)) : l(y)
|
|
3377
|
+
}].forEach((y) => {
|
|
3378
|
+
for (o = 0; s = y.regex.exec(e); ) {
|
|
3424
3379
|
const k = s[1].trim();
|
|
3425
3380
|
if (r = u(k), r === void 0)
|
|
3426
3381
|
if (typeof p == "function") {
|
|
@@ -3434,9 +3389,9 @@ class is {
|
|
|
3434
3389
|
} else
|
|
3435
3390
|
this.logger.warn(`missed to pass in variable ${k} for interpolating ${e}`), r = "";
|
|
3436
3391
|
else
|
|
3437
|
-
typeof r != "string" && !this.useRawValueToEscape && (r =
|
|
3438
|
-
const
|
|
3439
|
-
if (e = e.replace(s[0],
|
|
3392
|
+
typeof r != "string" && !this.useRawValueToEscape && (r = kt(r));
|
|
3393
|
+
const S = y.safeValue(r);
|
|
3394
|
+
if (e = e.replace(s[0], S), c ? (y.regex.lastIndex += r.length, y.regex.lastIndex -= s[0].length) : y.regex.lastIndex = 0, o++, o >= this.maxReplaces)
|
|
3440
3395
|
break;
|
|
3441
3396
|
}
|
|
3442
3397
|
}), e;
|
|
@@ -3450,8 +3405,8 @@ class is {
|
|
|
3450
3405
|
const p = d.split(new RegExp(`${u}[ ]*{`));
|
|
3451
3406
|
let c = `{${p[1]}`;
|
|
3452
3407
|
d = p[0], c = this.interpolate(c, r);
|
|
3453
|
-
const v = c.match(/'/g),
|
|
3454
|
-
(v && v.length % 2 === 0 && !
|
|
3408
|
+
const v = c.match(/'/g), y = c.match(/"/g);
|
|
3409
|
+
(v && v.length % 2 === 0 && !y || y.length % 2 !== 0) && (c = c.replace(/'/g, '"'));
|
|
3455
3410
|
try {
|
|
3456
3411
|
r = JSON.parse(c), l && (r = {
|
|
3457
3412
|
...l,
|
|
@@ -3474,7 +3429,7 @@ class is {
|
|
|
3474
3429
|
}
|
|
3475
3430
|
if (s = t(o.call(this, a[1].trim(), r), r), s && a[0] === e && typeof s != "string")
|
|
3476
3431
|
return s;
|
|
3477
|
-
typeof s != "string" && (s =
|
|
3432
|
+
typeof s != "string" && (s = kt(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, {
|
|
3478
3433
|
...i,
|
|
3479
3434
|
interpolationkey: a[1].trim()
|
|
3480
3435
|
}), s.trim())), e = e.replace(a[0], s), this.regexp.lastIndex = 0;
|
|
@@ -3482,7 +3437,7 @@ class is {
|
|
|
3482
3437
|
return e;
|
|
3483
3438
|
}
|
|
3484
3439
|
}
|
|
3485
|
-
function
|
|
3440
|
+
function Xa(n) {
|
|
3486
3441
|
let e = n.toLowerCase().trim();
|
|
3487
3442
|
const t = {};
|
|
3488
3443
|
if (n.indexOf("(") > -1) {
|
|
@@ -3509,7 +3464,7 @@ function K(n) {
|
|
|
3509
3464
|
return o || (o = n(ke(a), s), e[r] = o), o(i);
|
|
3510
3465
|
};
|
|
3511
3466
|
}
|
|
3512
|
-
class
|
|
3467
|
+
class Ya {
|
|
3513
3468
|
constructor() {
|
|
3514
3469
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
3515
3470
|
this.logger = j.create("formatter"), this.options = e, this.formats = {
|
|
@@ -3564,7 +3519,7 @@ class ss {
|
|
|
3564
3519
|
const {
|
|
3565
3520
|
formatName: l,
|
|
3566
3521
|
formatOptions: u
|
|
3567
|
-
} =
|
|
3522
|
+
} = Xa(d);
|
|
3568
3523
|
if (this.formats[l]) {
|
|
3569
3524
|
let p = o;
|
|
3570
3525
|
try {
|
|
@@ -3584,10 +3539,10 @@ class ss {
|
|
|
3584
3539
|
}, e);
|
|
3585
3540
|
}
|
|
3586
3541
|
}
|
|
3587
|
-
function
|
|
3542
|
+
function es(n, e) {
|
|
3588
3543
|
n.pending[e] !== void 0 && (delete n.pending[e], n.pendingCount--);
|
|
3589
3544
|
}
|
|
3590
|
-
class
|
|
3545
|
+
class ts extends Ne {
|
|
3591
3546
|
constructor(e, t, i) {
|
|
3592
3547
|
let a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
|
3593
3548
|
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);
|
|
@@ -3618,7 +3573,7 @@ class os extends Ne {
|
|
|
3618
3573
|
t && this.emit("failedLoading", s, r, t), i && this.store.addResourceBundle(s, r, i), this.state[e] = t ? -1 : 2;
|
|
3619
3574
|
const o = {};
|
|
3620
3575
|
this.queue.forEach((d) => {
|
|
3621
|
-
|
|
3576
|
+
Ma(d.loaded, [s], r), es(d, e), t && d.errors.push(t), d.pendingCount === 0 && !d.done && (Object.keys(d.loaded).forEach((l) => {
|
|
3622
3577
|
o[l] || (o[l] = {});
|
|
3623
3578
|
const u = d.loaded[l];
|
|
3624
3579
|
u.length && u.forEach((p) => {
|
|
@@ -3721,7 +3676,7 @@ class os extends Ne {
|
|
|
3721
3676
|
}
|
|
3722
3677
|
}
|
|
3723
3678
|
}
|
|
3724
|
-
function
|
|
3679
|
+
function wt() {
|
|
3725
3680
|
return {
|
|
3726
3681
|
debug: !1,
|
|
3727
3682
|
initImmediate: !0,
|
|
@@ -3780,12 +3735,12 @@ function Ct() {
|
|
|
3780
3735
|
}
|
|
3781
3736
|
};
|
|
3782
3737
|
}
|
|
3783
|
-
function
|
|
3738
|
+
function Ct(n) {
|
|
3784
3739
|
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;
|
|
3785
3740
|
}
|
|
3786
3741
|
function le() {
|
|
3787
3742
|
}
|
|
3788
|
-
function
|
|
3743
|
+
function ns(n) {
|
|
3789
3744
|
Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach((t) => {
|
|
3790
3745
|
typeof n[t] == "function" && (n[t] = n[t].bind(n));
|
|
3791
3746
|
});
|
|
@@ -3793,9 +3748,9 @@ function ls(n) {
|
|
|
3793
3748
|
class ae extends Ne {
|
|
3794
3749
|
constructor() {
|
|
3795
3750
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 ? arguments[1] : void 0;
|
|
3796
|
-
if (super(), this.options =
|
|
3751
|
+
if (super(), this.options = Ct(e), this.services = {}, this.logger = j, this.modules = {
|
|
3797
3752
|
external: []
|
|
3798
|
-
},
|
|
3753
|
+
}, ns(this), t && !this.isInitialized && !e.isClone) {
|
|
3799
3754
|
if (!this.options.initImmediate)
|
|
3800
3755
|
return this.init(e, t), this;
|
|
3801
3756
|
setTimeout(() => {
|
|
@@ -3807,11 +3762,11 @@ class ae extends Ne {
|
|
|
3807
3762
|
var e = this;
|
|
3808
3763
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, i = arguments.length > 1 ? arguments[1] : void 0;
|
|
3809
3764
|
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]));
|
|
3810
|
-
const a =
|
|
3765
|
+
const a = wt();
|
|
3811
3766
|
this.options = {
|
|
3812
3767
|
...a,
|
|
3813
3768
|
...this.options,
|
|
3814
|
-
...
|
|
3769
|
+
...Ct(t)
|
|
3815
3770
|
}, this.options.compatibilityAPI !== "v1" && (this.options.interpolation = {
|
|
3816
3771
|
...a.interpolation,
|
|
3817
3772
|
...this.options.interpolation
|
|
@@ -3822,23 +3777,23 @@ class ae extends Ne {
|
|
|
3822
3777
|
if (!this.options.isClone) {
|
|
3823
3778
|
this.modules.logger ? j.init(s(this.modules.logger), this.options) : j.init(null, this.options);
|
|
3824
3779
|
let u;
|
|
3825
|
-
this.modules.formatter ? u = this.modules.formatter : typeof Intl != "undefined" && (u =
|
|
3826
|
-
const p = new
|
|
3780
|
+
this.modules.formatter ? u = this.modules.formatter : typeof Intl != "undefined" && (u = Ya);
|
|
3781
|
+
const p = new Nt(this.options);
|
|
3827
3782
|
this.store = new yt(this.options.resources, this.options);
|
|
3828
3783
|
const c = this.services;
|
|
3829
|
-
c.logger = j, c.resourceStore = this.store, c.languageUtils = p, c.pluralResolver = new
|
|
3784
|
+
c.logger = j, c.resourceStore = this.store, c.languageUtils = p, c.pluralResolver = new Ja(p, {
|
|
3830
3785
|
prepend: this.options.pluralSeparator,
|
|
3831
3786
|
compatibilityJSON: this.options.compatibilityJSON,
|
|
3832
3787
|
simplifyPluralSuffix: this.options.simplifyPluralSuffix
|
|
3833
|
-
}), 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
|
|
3788
|
+
}), 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 Za(this.options), c.utils = {
|
|
3834
3789
|
hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
|
|
3835
|
-
}, c.backendConnector = new
|
|
3836
|
-
for (var
|
|
3837
|
-
k[
|
|
3790
|
+
}, c.backendConnector = new ts(s(this.modules.backend), c.resourceStore, c, this.options), c.backendConnector.on("*", function(v) {
|
|
3791
|
+
for (var y = arguments.length, k = new Array(y > 1 ? y - 1 : 0), S = 1; S < y; S++)
|
|
3792
|
+
k[S - 1] = arguments[S];
|
|
3838
3793
|
e.emit(v, ...k);
|
|
3839
3794
|
}), 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) {
|
|
3840
|
-
for (var
|
|
3841
|
-
k[
|
|
3795
|
+
for (var y = arguments.length, k = new Array(y > 1 ? y - 1 : 0), S = 1; S < y; S++)
|
|
3796
|
+
k[S - 1] = arguments[S];
|
|
3842
3797
|
e.emit(v, ...k);
|
|
3843
3798
|
}), this.modules.external.forEach((v) => {
|
|
3844
3799
|
v.init && v.init(this);
|
|
@@ -3946,7 +3901,7 @@ class ae extends Ne {
|
|
|
3946
3901
|
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;
|
|
3947
3902
|
const c = a.options.keySeparator || ".";
|
|
3948
3903
|
let v;
|
|
3949
|
-
return d.keyPrefix && Array.isArray(r) ? v = r.map((
|
|
3904
|
+
return d.keyPrefix && Array.isArray(r) ? v = r.map((y) => `${d.keyPrefix}${c}${y}`) : v = d.keyPrefix ? `${d.keyPrefix}${c}${r}` : r, a.t(v, d);
|
|
3950
3905
|
};
|
|
3951
3906
|
return typeof e == "string" ? s.lng = e : s.lngs = e, s.ns = t, s.keyPrefix = i, s;
|
|
3952
3907
|
}
|
|
@@ -3998,7 +3953,7 @@ class ae extends Ne {
|
|
|
3998
3953
|
dir(e) {
|
|
3999
3954
|
if (e || (e = this.resolvedLanguage || (this.languages && this.languages.length > 0 ? this.languages[0] : this.language)), !e)
|
|
4000
3955
|
return "rtl";
|
|
4001
|
-
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
|
|
3956
|
+
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 Nt(wt());
|
|
4002
3957
|
return t.indexOf(i.getLanguagePartFromCode(e)) > -1 || e.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
|
|
4003
3958
|
}
|
|
4004
3959
|
static createInstance() {
|
|
@@ -4054,44 +4009,89 @@ U.setDefaultNamespace;
|
|
|
4054
4009
|
U.hasLoadedNamespace;
|
|
4055
4010
|
U.loadNamespaces;
|
|
4056
4011
|
U.loadLanguages;
|
|
4057
|
-
|
|
4012
|
+
const is = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, as = {
|
|
4013
|
+
"&": "&",
|
|
4014
|
+
"&": "&",
|
|
4015
|
+
"<": "<",
|
|
4016
|
+
"<": "<",
|
|
4017
|
+
">": ">",
|
|
4018
|
+
">": ">",
|
|
4019
|
+
"'": "'",
|
|
4020
|
+
"'": "'",
|
|
4021
|
+
""": '"',
|
|
4022
|
+
""": '"',
|
|
4023
|
+
" ": " ",
|
|
4024
|
+
" ": " ",
|
|
4025
|
+
"©": "©",
|
|
4026
|
+
"©": "©",
|
|
4027
|
+
"®": "®",
|
|
4028
|
+
"®": "®",
|
|
4029
|
+
"…": "…",
|
|
4030
|
+
"…": "…",
|
|
4031
|
+
"/": "/",
|
|
4032
|
+
"/": "/"
|
|
4033
|
+
}, ss = (n) => as[n], rs = (n) => n.replace(is, ss);
|
|
4034
|
+
let Et = {
|
|
4035
|
+
bindI18n: "languageChanged",
|
|
4036
|
+
bindI18nStore: "",
|
|
4037
|
+
transEmptyNodeValue: "",
|
|
4038
|
+
transSupportBasicHtmlNodes: !0,
|
|
4039
|
+
transWrapTextNodes: "",
|
|
4040
|
+
transKeepBasicHtmlNodesFor: ["br", "strong", "i", "p"],
|
|
4041
|
+
useSuspense: !0,
|
|
4042
|
+
unescape: rs
|
|
4043
|
+
};
|
|
4044
|
+
function os() {
|
|
4045
|
+
let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
4046
|
+
Et = {
|
|
4047
|
+
...Et,
|
|
4048
|
+
...n
|
|
4049
|
+
};
|
|
4050
|
+
}
|
|
4051
|
+
const ls = {
|
|
4052
|
+
type: "3rdParty",
|
|
4053
|
+
init(n) {
|
|
4054
|
+
os(n.options.react);
|
|
4055
|
+
}
|
|
4056
|
+
};
|
|
4057
|
+
Va(U, ls);
|
|
4058
4058
|
const er = (n) => va(U, n);
|
|
4059
4059
|
let Ge = /* @__PURE__ */ new Map();
|
|
4060
|
-
const
|
|
4061
|
-
const t = Pe(
|
|
4060
|
+
const Te = Ot(Ge), tr = ({ children: n, stores: e }) => {
|
|
4061
|
+
const t = Pe(Te), i = Lt(() => {
|
|
4062
4062
|
const a = /* @__PURE__ */ new Map();
|
|
4063
4063
|
return e.forEach((s) => a.set(s.class, s.value)), Ge = new Map([...t, ...a]);
|
|
4064
4064
|
}, []);
|
|
4065
|
-
return /* @__PURE__ */ on(
|
|
4065
|
+
return /* @__PURE__ */ on(Te.Provider, { value: i, children: n });
|
|
4066
4066
|
};
|
|
4067
4067
|
function nr(n) {
|
|
4068
|
-
return Pe(
|
|
4068
|
+
return Pe(Te).get(n);
|
|
4069
4069
|
}
|
|
4070
4070
|
function ir(n) {
|
|
4071
4071
|
return Ge.get(n);
|
|
4072
4072
|
}
|
|
4073
4073
|
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 || {});
|
|
4074
|
-
const ds = { 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" } }] } }] } }] } }] }, us = { 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" } }] } }] } }] } }] }, cs = { 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" } }] } }] } }] } }] }, ms = { 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" } }] } }] } }] } }] }, fs = { 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" } }] } }] } }] } }] }, ps = { 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" } }] } }] } }] } }] }, hs = { 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" } }] } }] } }] } }] }, gs = { 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" } }] } }] } }] } }] }, ks = { 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" } }] } }] } }] } }] }, vs = { 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" } }] } }] } }] } }] }, Ss = { 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" } }] } }] } }] } }] }, ys = { 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" } }] } }] } }] } }] }, Ns = { 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" } }] } }] } }] } }] }, bs = { 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" } }] } }] } }] } }] }, Fs = { 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" } }] } }] } }] } }] }, ws = { 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" } }] } }] } }] } }] }, Cs = { 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" } }] } }] } }] } }] }, Es = { 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" } }] } }] } }] } }] }, Os = { 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" } }] } }] } }] } }] }, Rs = { 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" } }] } }] } }] } }] }, xs = { 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" } }] } }] } }] } }] }, Ts = { 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" } }] } }] } }] } }] }, Ds = { 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" } }] } }] } }] } }] }, Ls = { 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" } }] } }] } }] } }] }, Is = { 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" } }] } }] } }] } }] }, As = { 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" } }] } }] } }] } }] } }] }, Ps = { 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" } }] } }] } }] } }] }, Vs = { 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" } }] } }] } }] } }] }, ar = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4074
|
+
const ds = { 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" } }] } }] } }] } }] }, us = { 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" } }] } }] } }] } }] }, cs = { 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" } }] } }] } }] } }] }, ms = { 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" } }] } }] } }] } }] }, fs = { 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" } }] } }] } }] } }] }, ps = { 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" } }] } }] } }] } }] }, hs = { 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" } }] } }] } }] } }] }, gs = { 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" } }] } }] } }] } }] }, ks = { 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" } }] } }] } }] } }] }, vs = { 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" } }] } }] } }] } }] }, ys = { 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" } }] } }] } }] } }] }, Ss = { 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" } }] } }] } }] } }] }, Ns = { 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" } }] } }] } }] } }] }, bs = { 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" } }] } }] } }] } }] }, Fs = { 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" } }] } }] } }] } }] }, ws = { 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" } }] } }] } }] } }] }, Cs = { 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" } }] } }] } }] } }] }, Es = { 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" } }] } }] } }] } }] }, Os = { 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" } }] } }] } }] } }] }, Rs = { 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" } }] } }] } }] } }] }, xs = { 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" } }] } }] } }] } }] }, Ls = { 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" } }] } }] } }] } }] }, Ds = { 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" } }] } }] } }] } }] }, Is = { 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" } }] } }] } }] } }] }, Ts = { 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" } }] } }] } }] } }] }, As = { 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" } }] } }] } }] } }] } }] }, Ps = { 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" } }] } }] } }] } }] }, Vs = { 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" } }] } }] } }] } }] }, ar = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4075
4075
|
__proto__: null,
|
|
4076
4076
|
AddCollectionDocument: ds,
|
|
4077
4077
|
AppendProductsToSnackVideoDocument: Rs,
|
|
4078
4078
|
BlockUserDocument: vs,
|
|
4079
|
-
ChangeAccountUsernameDocument:
|
|
4079
|
+
ChangeAccountUsernameDocument: ys,
|
|
4080
4080
|
CreateSnackVideoBatchDocument: xs,
|
|
4081
4081
|
DeleteAllCustomizationDocument: ws,
|
|
4082
|
-
DeleteChatMessageDocument:
|
|
4082
|
+
DeleteChatMessageDocument: Ss,
|
|
4083
4083
|
DeleteCollectionDocument: us,
|
|
4084
|
-
DeleteRelationshipWithSnackVideoDocument:
|
|
4084
|
+
DeleteRelationshipWithSnackVideoDocument: Ls,
|
|
4085
4085
|
DeleteSnackVideoDocument: Ds,
|
|
4086
4086
|
EventStatus: en,
|
|
4087
4087
|
FindByProductSnackVideoDocument: Vs,
|
|
4088
4088
|
FindCollectionDocument: cs,
|
|
4089
|
-
FindManySnackVideosDocument:
|
|
4089
|
+
FindManySnackVideosDocument: Is,
|
|
4090
4090
|
FindMinimalEventDocument: gs,
|
|
4091
4091
|
GetAllChatMessageDocument: Ns,
|
|
4092
4092
|
GetAllCollectionsDocument: ms,
|
|
4093
4093
|
GetAllCustomizationDocument: Cs,
|
|
4094
|
-
GetAllSnackVideosDocument:
|
|
4094
|
+
GetAllSnackVideosDocument: Ts,
|
|
4095
4095
|
GetChatRoomTokenDocument: bs,
|
|
4096
4096
|
GetSnackVideoRelationshipsDocument: As,
|
|
4097
4097
|
GetTimeLineDocument: Os,
|
|
@@ -4123,11 +4123,11 @@ export {
|
|
|
4123
4123
|
Oi as AccountService,
|
|
4124
4124
|
bi as AccountSubscriptionTypes,
|
|
4125
4125
|
Kt as AccountTypes,
|
|
4126
|
-
|
|
4126
|
+
yi as AggregateRoot,
|
|
4127
4127
|
ar as ApiGraphqlTypes,
|
|
4128
|
-
|
|
4128
|
+
Hs as BaseMobxStore,
|
|
4129
4129
|
Xn as BroadcastChannelEventBus,
|
|
4130
|
-
|
|
4130
|
+
Se as DomainError,
|
|
4131
4131
|
Xs as EventBusWildcards,
|
|
4132
4132
|
Ys as EventNames,
|
|
4133
4133
|
wi as GlobalPageSectionTypes,
|
|
@@ -4141,23 +4141,23 @@ export {
|
|
|
4141
4141
|
gi as ResourceNotFoundError,
|
|
4142
4142
|
tr as StoreProvider,
|
|
4143
4143
|
ki as UnexpectedError,
|
|
4144
|
-
|
|
4144
|
+
Js as ValueObject,
|
|
4145
4145
|
Ve as accountAtom,
|
|
4146
4146
|
Wt as accountService,
|
|
4147
4147
|
js as apiCall,
|
|
4148
4148
|
ga as buildLanguageTranslations,
|
|
4149
4149
|
ka as buildTranslations,
|
|
4150
4150
|
ee as coreLogger,
|
|
4151
|
-
|
|
4151
|
+
Si as createAggregateRoot,
|
|
4152
4152
|
sr as createStore,
|
|
4153
|
-
|
|
4153
|
+
Tt as customFetch,
|
|
4154
4154
|
$s as downloadFile,
|
|
4155
4155
|
Bs as fileOrigin,
|
|
4156
4156
|
ca as getAccount,
|
|
4157
|
-
|
|
4157
|
+
qs as getClientTimeZone,
|
|
4158
4158
|
ir as getStore,
|
|
4159
4159
|
ua as globalAtomStore,
|
|
4160
|
-
|
|
4160
|
+
Va as i18Init,
|
|
4161
4161
|
On as jsDownload,
|
|
4162
4162
|
Ks as logger,
|
|
4163
4163
|
je as nizza,
|