@nizza/core 0.4.5-alpha.11 → 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 +282 -282
- package/dist/index.mjs.map +1 -1
- package/dist/lib/constants/products.d.ts +2 -1
- 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",
|
|
@@ -2680,7 +2680,7 @@ function ge(n, e) {
|
|
|
2680
2680
|
function ke(n) {
|
|
2681
2681
|
return n && n.indexOf("_") > 0 ? n.replace("_", "-") : n;
|
|
2682
2682
|
}
|
|
2683
|
-
class
|
|
2683
|
+
class yt extends Ne {
|
|
2684
2684
|
constructor(e) {
|
|
2685
2685
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
2686
2686
|
ns: ["translation"],
|
|
@@ -2765,7 +2765,7 @@ var Yt = {
|
|
|
2765
2765
|
}), e;
|
|
2766
2766
|
}
|
|
2767
2767
|
};
|
|
2768
|
-
const
|
|
2768
|
+
const St = {};
|
|
2769
2769
|
class ve extends Ne {
|
|
2770
2770
|
constructor(e) {
|
|
2771
2771
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
@@ -2837,8 +2837,8 @@ class ve extends Ne {
|
|
|
2837
2837
|
}
|
|
2838
2838
|
const p = this.resolve(e, t);
|
|
2839
2839
|
let c = p && p.res;
|
|
2840
|
-
const v = p && p.usedKey || r,
|
|
2841
|
-
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]")) {
|
|
2842
2842
|
if (!t.returnObjects && !this.options.returnObjects) {
|
|
2843
2843
|
this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
|
2844
2844
|
const E = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(v, c, {
|
|
@@ -2848,28 +2848,28 @@ class ve extends Ne {
|
|
|
2848
2848
|
return a ? (p.res = E, p.usedParams = this.getUsedParamsDetails(t), p) : E;
|
|
2849
2849
|
}
|
|
2850
2850
|
if (s) {
|
|
2851
|
-
const E = k === "[object Array]",
|
|
2851
|
+
const E = k === "[object Array]", T = E ? [] : {}, P = E ? y : v;
|
|
2852
2852
|
for (const A in c)
|
|
2853
2853
|
if (Object.prototype.hasOwnProperty.call(c, A)) {
|
|
2854
2854
|
const f = `${P}${s}${A}`;
|
|
2855
|
-
|
|
2855
|
+
T[A] = this.translate(f, {
|
|
2856
2856
|
...t,
|
|
2857
2857
|
joinArrays: !1,
|
|
2858
2858
|
ns: o
|
|
2859
|
-
}),
|
|
2859
|
+
}), T[A] === f && (T[A] = c[A]);
|
|
2860
2860
|
}
|
|
2861
|
-
c =
|
|
2861
|
+
c = T;
|
|
2862
2862
|
}
|
|
2863
2863
|
} else if (w && typeof F == "string" && k === "[object Array]")
|
|
2864
2864
|
c = c.join(F), c && (c = this.extendTranslation(c, e, t, i));
|
|
2865
2865
|
else {
|
|
2866
|
-
let E = !1,
|
|
2866
|
+
let E = !1, T = !1;
|
|
2867
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, {
|
|
2868
2868
|
ordinal: !1
|
|
2869
2869
|
}) : "", g = t[`defaultValue${f}`] || t[`defaultValue${m}`] || t.defaultValue;
|
|
2870
|
-
!this.isValidLookup(c) && A && (E = !0, c = g), this.isValidLookup(c) || (
|
|
2871
|
-
const N = (t.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) &&
|
|
2872
|
-
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) {
|
|
2873
2873
|
if (this.logger.log(C ? "updateKey" : "missingKey", l, d, r, C ? g : c), s) {
|
|
2874
2874
|
const R = this.resolve(r, {
|
|
2875
2875
|
...t,
|
|
@@ -2884,17 +2884,17 @@ class ve extends Ne {
|
|
|
2884
2884
|
b.push(O[R]);
|
|
2885
2885
|
else
|
|
2886
2886
|
this.options.saveMissingTo === "all" ? b = this.languageUtils.toResolveHierarchy(t.lng || this.language) : b.push(t.lng || this.language);
|
|
2887
|
-
const
|
|
2887
|
+
const L = (R, D, V) => {
|
|
2888
2888
|
const se = A && V !== c ? V : N;
|
|
2889
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);
|
|
2890
2890
|
};
|
|
2891
2891
|
this.options.saveMissing && (this.options.saveMissingPlurals && P ? b.forEach((R) => {
|
|
2892
2892
|
this.pluralResolver.getSuffixes(R, t).forEach((D) => {
|
|
2893
|
-
|
|
2893
|
+
L([R], r + D, t[`defaultValue${D}`] || g);
|
|
2894
2894
|
});
|
|
2895
|
-
}) :
|
|
2895
|
+
}) : L(b, r, g));
|
|
2896
2896
|
}
|
|
2897
|
-
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));
|
|
2898
2898
|
}
|
|
2899
2899
|
return a ? (p.res = c, p.usedParams = this.getUsedParamsDetails(t), p) : c;
|
|
2900
2900
|
}
|
|
@@ -2930,8 +2930,8 @@ class ve extends Ne {
|
|
|
2930
2930
|
u < v && (i.nest = !1);
|
|
2931
2931
|
}
|
|
2932
2932
|
!i.lng && this.options.compatibilityAPI !== "v1" && a && a.res && (i.lng = a.usedLng), i.nest !== !1 && (e = this.interpolator.nest(e, function() {
|
|
2933
|
-
for (var c = arguments.length, v = new Array(c),
|
|
2934
|
-
v[
|
|
2933
|
+
for (var c = arguments.length, v = new Array(c), y = 0; y < c; y++)
|
|
2934
|
+
v[y] = arguments[y];
|
|
2935
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);
|
|
2936
2936
|
}, i)), i.interpolation && this.interpolator.reset();
|
|
2937
2937
|
}
|
|
@@ -2953,27 +2953,27 @@ class ve extends Ne {
|
|
|
2953
2953
|
a = u;
|
|
2954
2954
|
let p = l.namespaces;
|
|
2955
2955
|
this.options.fallbackNS && (p = p.concat(this.options.fallbackNS));
|
|
2956
|
-
const c = t.count !== void 0 && typeof t.count != "string", v = c && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(),
|
|
2957
|
-
p.forEach((
|
|
2958
|
-
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) => {
|
|
2959
2959
|
if (this.isValidLookup(i))
|
|
2960
2960
|
return;
|
|
2961
2961
|
r = F;
|
|
2962
2962
|
const w = [u];
|
|
2963
2963
|
if (this.i18nFormat && this.i18nFormat.addLookupKeys)
|
|
2964
|
-
this.i18nFormat.addLookupKeys(w, u, F,
|
|
2964
|
+
this.i18nFormat.addLookupKeys(w, u, F, S, t);
|
|
2965
2965
|
else {
|
|
2966
2966
|
let E;
|
|
2967
2967
|
c && (E = this.pluralResolver.getSuffix(F, t.count, t));
|
|
2968
|
-
const
|
|
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 +
|
|
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) {
|
|
2970
2970
|
const A = `${u}${this.options.contextSeparator}${t.context}`;
|
|
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 +
|
|
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));
|
|
2972
2972
|
}
|
|
2973
2973
|
}
|
|
2974
|
-
let
|
|
2975
|
-
for (;
|
|
2976
|
-
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));
|
|
2977
2977
|
}));
|
|
2978
2978
|
});
|
|
2979
2979
|
}), {
|
|
@@ -3247,7 +3247,7 @@ let Ka = [{
|
|
|
3247
3247
|
return n == 1 ? 0 : n == 2 ? 1 : (n < 0 || n > 10) && n % 10 == 0 ? 2 : 3;
|
|
3248
3248
|
}
|
|
3249
3249
|
};
|
|
3250
|
-
const Wa = ["v1", "v2", "v3"],
|
|
3250
|
+
const Wa = ["v1", "v2", "v3"], qa = ["v4"], bt = {
|
|
3251
3251
|
zero: 0,
|
|
3252
3252
|
one: 1,
|
|
3253
3253
|
two: 2,
|
|
@@ -3255,7 +3255,7 @@ const Wa = ["v1", "v2", "v3"], Ja = ["v4"], bt = {
|
|
|
3255
3255
|
many: 4,
|
|
3256
3256
|
other: 5
|
|
3257
3257
|
};
|
|
3258
|
-
function
|
|
3258
|
+
function Ha() {
|
|
3259
3259
|
const n = {};
|
|
3260
3260
|
return Ka.forEach((e) => {
|
|
3261
3261
|
e.lngs.forEach((t) => {
|
|
@@ -3266,10 +3266,10 @@ function qa() {
|
|
|
3266
3266
|
});
|
|
3267
3267
|
}), n;
|
|
3268
3268
|
}
|
|
3269
|
-
class
|
|
3269
|
+
class Ja {
|
|
3270
3270
|
constructor(e) {
|
|
3271
3271
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
3272
|
-
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();
|
|
3273
3273
|
}
|
|
3274
3274
|
addRule(e, t) {
|
|
3275
3275
|
this.rules[e] = t;
|
|
@@ -3347,35 +3347,35 @@ class Za {
|
|
|
3347
3347
|
interpolate(e, t, i, a) {
|
|
3348
3348
|
let s, r, o;
|
|
3349
3349
|
const d = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {};
|
|
3350
|
-
function l(
|
|
3351
|
-
return
|
|
3350
|
+
function l(y) {
|
|
3351
|
+
return y.replace(/\$/g, "$$$$");
|
|
3352
3352
|
}
|
|
3353
|
-
const u = (
|
|
3354
|
-
if (
|
|
3355
|
-
const w = Ft(t, d,
|
|
3353
|
+
const u = (y) => {
|
|
3354
|
+
if (y.indexOf(this.formatSeparator) < 0) {
|
|
3355
|
+
const w = Ft(t, d, y, this.options.keySeparator, this.options.ignoreJSONStructure);
|
|
3356
3356
|
return this.alwaysFormat ? this.format(w, void 0, i, {
|
|
3357
3357
|
...a,
|
|
3358
3358
|
...t,
|
|
3359
|
-
interpolationkey:
|
|
3359
|
+
interpolationkey: y
|
|
3360
3360
|
}) : w;
|
|
3361
3361
|
}
|
|
3362
|
-
const k =
|
|
3363
|
-
return this.format(Ft(t, d,
|
|
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, {
|
|
3364
3364
|
...a,
|
|
3365
3365
|
...t,
|
|
3366
|
-
interpolationkey:
|
|
3366
|
+
interpolationkey: S
|
|
3367
3367
|
});
|
|
3368
3368
|
};
|
|
3369
3369
|
this.resetRegExp();
|
|
3370
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;
|
|
3371
3371
|
return [{
|
|
3372
3372
|
regex: this.regexpUnescape,
|
|
3373
|
-
safeValue: (
|
|
3373
|
+
safeValue: (y) => l(y)
|
|
3374
3374
|
}, {
|
|
3375
3375
|
regex: this.regexp,
|
|
3376
|
-
safeValue: (
|
|
3377
|
-
}].forEach((
|
|
3378
|
-
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); ) {
|
|
3379
3379
|
const k = s[1].trim();
|
|
3380
3380
|
if (r = u(k), r === void 0)
|
|
3381
3381
|
if (typeof p == "function") {
|
|
@@ -3390,8 +3390,8 @@ class Za {
|
|
|
3390
3390
|
this.logger.warn(`missed to pass in variable ${k} for interpolating ${e}`), r = "";
|
|
3391
3391
|
else
|
|
3392
3392
|
typeof r != "string" && !this.useRawValueToEscape && (r = kt(r));
|
|
3393
|
-
const
|
|
3394
|
-
if (e = e.replace(s[0],
|
|
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)
|
|
3395
3395
|
break;
|
|
3396
3396
|
}
|
|
3397
3397
|
}), e;
|
|
@@ -3405,8 +3405,8 @@ class Za {
|
|
|
3405
3405
|
const p = d.split(new RegExp(`${u}[ ]*{`));
|
|
3406
3406
|
let c = `{${p[1]}`;
|
|
3407
3407
|
d = p[0], c = this.interpolate(c, r);
|
|
3408
|
-
const v = c.match(/'/g),
|
|
3409
|
-
(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, '"'));
|
|
3410
3410
|
try {
|
|
3411
3411
|
r = JSON.parse(c), l && (r = {
|
|
3412
3412
|
...l,
|
|
@@ -3779,21 +3779,21 @@ class ae extends Ne {
|
|
|
3779
3779
|
let u;
|
|
3780
3780
|
this.modules.formatter ? u = this.modules.formatter : typeof Intl != "undefined" && (u = Ya);
|
|
3781
3781
|
const p = new Nt(this.options);
|
|
3782
|
-
this.store = new
|
|
3782
|
+
this.store = new yt(this.options.resources, this.options);
|
|
3783
3783
|
const c = this.services;
|
|
3784
|
-
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, {
|
|
3785
3785
|
prepend: this.options.pluralSeparator,
|
|
3786
3786
|
compatibilityJSON: this.options.compatibilityJSON,
|
|
3787
3787
|
simplifyPluralSuffix: this.options.simplifyPluralSuffix
|
|
3788
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 = {
|
|
3789
3789
|
hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
|
|
3790
3790
|
}, c.backendConnector = new ts(s(this.modules.backend), c.resourceStore, c, this.options), c.backendConnector.on("*", function(v) {
|
|
3791
|
-
for (var
|
|
3792
|
-
k[
|
|
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];
|
|
3793
3793
|
e.emit(v, ...k);
|
|
3794
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) {
|
|
3795
|
-
for (var
|
|
3796
|
-
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];
|
|
3797
3797
|
e.emit(v, ...k);
|
|
3798
3798
|
}), this.modules.external.forEach((v) => {
|
|
3799
3799
|
v.init && v.init(this);
|
|
@@ -3901,7 +3901,7 @@ class ae extends Ne {
|
|
|
3901
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;
|
|
3902
3902
|
const c = a.options.keySeparator || ".";
|
|
3903
3903
|
let v;
|
|
3904
|
-
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);
|
|
3905
3905
|
};
|
|
3906
3906
|
return typeof e == "string" ? s.lng = e : s.lngs = e, s.ns = t, s.keyPrefix = i, s;
|
|
3907
3907
|
}
|
|
@@ -3975,7 +3975,7 @@ class ae extends Ne {
|
|
|
3975
3975
|
...this.services
|
|
3976
3976
|
}, s.services.utils = {
|
|
3977
3977
|
hasLoadedNamespace: s.hasLoadedNamespace.bind(s)
|
|
3978
|
-
}, i && (s.store = new
|
|
3978
|
+
}, i && (s.store = new yt(this.store.data, a), s.services.resourceStore = s.store), s.translator = new ve(s.services, a), s.translator.on("*", function(o) {
|
|
3979
3979
|
for (var d = arguments.length, l = new Array(d > 1 ? d - 1 : 0), u = 1; u < d; u++)
|
|
3980
3980
|
l[u - 1] = arguments[u];
|
|
3981
3981
|
s.emit(o, ...l);
|
|
@@ -4057,41 +4057,41 @@ const ls = {
|
|
|
4057
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,20 +4141,20 @@ 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,
|