@nizza/core 0.5.0-beta.6 → 0.5.0-beta.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +5 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +549 -547
- package/dist/index.mjs.map +1 -1
- package/dist/lib/nizza-store/NizzaStore.d.ts +6 -3
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var R = (n, e, t) => (
|
|
1
|
+
var $t = Object.defineProperty;
|
|
2
|
+
var jt = (n, e, t) => e in n ? $t(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
|
|
3
|
+
var R = (n, e, t) => (jt(n, typeof e != "symbol" ? e + "" : e, t), t);
|
|
4
4
|
import * as M from "react";
|
|
5
|
-
import fe, { createContext as
|
|
6
|
-
import { jsx as
|
|
5
|
+
import fe, { createContext as ft, useReducer as zt, useEffect as pt, useDebugValue as Bt, useCallback as Qt, useContext as Ce, useMemo as Gt } from "react";
|
|
6
|
+
import { jsx as Kt } from "react/jsx-runtime";
|
|
7
7
|
var _ = { NZ_AWS_REGION: "us-east-1", NZ_VTEX_PROJECT: "/Users/jbermudez/TODO/PROJECTS/live-shopping", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
|
|
8
|
-
let
|
|
9
|
-
function
|
|
10
|
-
const t = `atom${++
|
|
8
|
+
let Wt = 0;
|
|
9
|
+
function Jt(n, e) {
|
|
10
|
+
const t = `atom${++Wt}`, i = {
|
|
11
11
|
toString: () => t
|
|
12
12
|
};
|
|
13
13
|
return typeof n == "function" ? i.read = n : (i.init = n, i.read = function(a) {
|
|
@@ -19,7 +19,7 @@ function qt(n, e) {
|
|
|
19
19
|
);
|
|
20
20
|
}), e && (i.write = e), i;
|
|
21
21
|
}
|
|
22
|
-
const ke = (n) => "init" in n, ve = (n) => !!n.write, re = /* @__PURE__ */ new WeakMap(),
|
|
22
|
+
const ke = (n) => "init" in n, ve = (n) => !!n.write, re = /* @__PURE__ */ new WeakMap(), qt = (n, e) => {
|
|
23
23
|
re.set(n, e), n.catch(() => {
|
|
24
24
|
}).finally(() => re.delete(n));
|
|
25
25
|
}, Ae = (n, e) => {
|
|
@@ -29,11 +29,11 @@ const ke = (n) => "init" in n, ve = (n) => !!n.write, re = /* @__PURE__ */ new W
|
|
|
29
29
|
n.status = "fulfilled", n.value = e;
|
|
30
30
|
}, Ve = (n, e) => {
|
|
31
31
|
n.status = "rejected", n.reason = e;
|
|
32
|
-
},
|
|
32
|
+
}, Ht = (n) => typeof (n == null ? void 0 : n.then) == "function", J = (n, e) => !!n && "v" in n && "v" in e && Object.is(n.v, e.v), _e = (n, e) => !!n && "e" in n && "e" in e && Object.is(n.e, e.e), z = (n) => !!n && "v" in n && n.v instanceof Promise, Zt = (n, e) => "v" in n && "v" in e && n.v.orig && n.v.orig === e.v.orig, ne = (n) => {
|
|
33
33
|
if ("e" in n)
|
|
34
34
|
throw n.e;
|
|
35
35
|
return n.v;
|
|
36
|
-
},
|
|
36
|
+
}, ht = () => {
|
|
37
37
|
const n = /* @__PURE__ */ new WeakMap(), e = /* @__PURE__ */ new WeakMap(), t = /* @__PURE__ */ new Map();
|
|
38
38
|
let i, a;
|
|
39
39
|
(_ ? "production" : void 0) !== "production" && (i = /* @__PURE__ */ new Set(), a = /* @__PURE__ */ new Set());
|
|
@@ -55,16 +55,16 @@ const ke = (n) => "init" in n, ve = (n) => !!n.write, re = /* @__PURE__ */ new W
|
|
|
55
55
|
d: (g == null ? void 0 : g.d) || /* @__PURE__ */ new Map(),
|
|
56
56
|
v: p
|
|
57
57
|
};
|
|
58
|
-
if (h && o(m, b, h),
|
|
58
|
+
if (h && o(m, b, h), J(g, b) && g.d === b.d)
|
|
59
59
|
return g;
|
|
60
|
-
if (z(g) && z(b) &&
|
|
60
|
+
if (z(g) && z(b) && Zt(g, b)) {
|
|
61
61
|
if (g.d === b.d)
|
|
62
62
|
return g;
|
|
63
63
|
b.v = g.v;
|
|
64
64
|
}
|
|
65
65
|
return r(m, b), b;
|
|
66
66
|
}, u = (m, p, h, g) => {
|
|
67
|
-
if (
|
|
67
|
+
if (Ht(p)) {
|
|
68
68
|
let b;
|
|
69
69
|
const C = () => {
|
|
70
70
|
const E = s(m);
|
|
@@ -75,7 +75,7 @@ const ke = (n) => "init" in n, ve = (n) => !!n.write, re = /* @__PURE__ */ new W
|
|
|
75
75
|
v,
|
|
76
76
|
h
|
|
77
77
|
);
|
|
78
|
-
e.has(m) && E.d !== P.d &&
|
|
78
|
+
e.has(m) && E.d !== P.d && D(m, P, E.d);
|
|
79
79
|
}, v = new Promise((E, P) => {
|
|
80
80
|
let x = !1;
|
|
81
81
|
p.then(
|
|
@@ -92,7 +92,7 @@ const ke = (n) => "init" in n, ve = (n) => !!n.write, re = /* @__PURE__ */ new W
|
|
|
92
92
|
), E(T));
|
|
93
93
|
};
|
|
94
94
|
});
|
|
95
|
-
return v.orig = p, v.status = "pending",
|
|
95
|
+
return v.orig = p, v.status = "pending", qt(v, (E) => {
|
|
96
96
|
E && b(E), g == null || g();
|
|
97
97
|
}), l(m, v, h);
|
|
98
98
|
}
|
|
@@ -109,7 +109,7 @@ const ke = (n) => "init" in n, ve = (n) => !!n.write, re = /* @__PURE__ */ new W
|
|
|
109
109
|
if (x === m)
|
|
110
110
|
return !0;
|
|
111
111
|
const V = f(x);
|
|
112
|
-
return V === T ||
|
|
112
|
+
return V === T || J(V, T);
|
|
113
113
|
})))
|
|
114
114
|
return h;
|
|
115
115
|
const g = /* @__PURE__ */ new Map();
|
|
@@ -153,7 +153,7 @@ const ke = (n) => "init" in n, ve = (n) => !!n.write, re = /* @__PURE__ */ new W
|
|
|
153
153
|
}
|
|
154
154
|
}, c = (m) => ne(f(m)), S = (m) => {
|
|
155
155
|
let p = e.get(m);
|
|
156
|
-
return p || (p =
|
|
156
|
+
return p || (p = I(m)), p;
|
|
157
157
|
}, y = (m, p) => !p.l.size && (!p.t.size || p.t.size === 1 && p.t.has(m)), k = (m) => {
|
|
158
158
|
const p = e.get(m);
|
|
159
159
|
p && y(m, p) && w(m);
|
|
@@ -183,7 +183,7 @@ const ke = (n) => "init" in n, ve = (n) => !!n.write, re = /* @__PURE__ */ new W
|
|
|
183
183
|
let T = !!((P = p.get(E)) != null && P.size);
|
|
184
184
|
if (T) {
|
|
185
185
|
const V = s(E), te = f(E, !0);
|
|
186
|
-
T = !
|
|
186
|
+
T = !J(V, te);
|
|
187
187
|
}
|
|
188
188
|
T || p.forEach((V) => V.delete(E));
|
|
189
189
|
}
|
|
@@ -200,7 +200,7 @@ const ke = (n) => "init" in n, ve = (n) => !!n.write, re = /* @__PURE__ */ new W
|
|
|
200
200
|
if (!ke(v))
|
|
201
201
|
throw new Error("atom not writable");
|
|
202
202
|
const x = s(v), T = u(v, E[0]);
|
|
203
|
-
|
|
203
|
+
J(x, T) || N(v);
|
|
204
204
|
} else
|
|
205
205
|
P = O(v, ...E);
|
|
206
206
|
if (!h) {
|
|
@@ -217,12 +217,12 @@ const ke = (n) => "init" in n, ve = (n) => !!n.write, re = /* @__PURE__ */ new W
|
|
|
217
217
|
return (_ ? "production" : void 0) !== "production" && i.forEach(
|
|
218
218
|
(b) => b({ type: "write", flushed: g })
|
|
219
219
|
), h;
|
|
220
|
-
},
|
|
220
|
+
}, I = (m, p, h) => {
|
|
221
221
|
var g;
|
|
222
222
|
const b = h || [];
|
|
223
223
|
(g = s(m)) == null || g.d.forEach((v, E) => {
|
|
224
224
|
const P = e.get(E);
|
|
225
|
-
P ? P.t.add(m) : E !== m &&
|
|
225
|
+
P ? P.t.add(m) : E !== m && I(E, m, b);
|
|
226
226
|
}), f(m);
|
|
227
227
|
const C = {
|
|
228
228
|
t: new Set(p && [p]),
|
|
@@ -247,7 +247,7 @@ const ke = (n) => "init" in n, ve = (n) => !!n.write, re = /* @__PURE__ */ new W
|
|
|
247
247
|
v && (v.t.delete(m), y(C, v) && w(C));
|
|
248
248
|
}
|
|
249
249
|
})) : (_ ? "production" : void 0) !== "production" && console.warn("[Bug] could not find atom state to unmount", m);
|
|
250
|
-
},
|
|
250
|
+
}, D = (m, p, h) => {
|
|
251
251
|
const g = new Set(p.d.keys());
|
|
252
252
|
h == null || h.forEach((b, C) => {
|
|
253
253
|
if (g.has(C)) {
|
|
@@ -258,7 +258,7 @@ const ke = (n) => "init" in n, ve = (n) => !!n.write, re = /* @__PURE__ */ new W
|
|
|
258
258
|
v && (v.t.delete(m), y(C, v) && w(C));
|
|
259
259
|
}), g.forEach((b) => {
|
|
260
260
|
const C = e.get(b);
|
|
261
|
-
C ? C.t.add(m) : e.has(m) &&
|
|
261
|
+
C ? C.t.add(m) : e.has(m) && I(b, m);
|
|
262
262
|
});
|
|
263
263
|
}, L = () => {
|
|
264
264
|
let m;
|
|
@@ -268,9 +268,9 @@ const ke = (n) => "init" in n, ve = (n) => !!n.write, re = /* @__PURE__ */ new W
|
|
|
268
268
|
const b = s(h);
|
|
269
269
|
if (b) {
|
|
270
270
|
const C = e.get(h);
|
|
271
|
-
C && b.d !== (g == null ? void 0 : g.d) &&
|
|
271
|
+
C && b.d !== (g == null ? void 0 : g.d) && D(h, b, g == null ? void 0 : g.d), C && !// TODO This seems pretty hacky. Hope to fix it.
|
|
272
272
|
// Maybe we could `mountDependencies` in `setAtomState`?
|
|
273
|
-
(!z(g) && (
|
|
273
|
+
(!z(g) && (J(g, b) || _e(g, b))) && (C.l.forEach((v) => v()), (_ ? "production" : void 0) !== "production" && m.add(h));
|
|
274
274
|
} else
|
|
275
275
|
(_ ? "production" : void 0) !== "production" && console.warn("[Bug] no atom state to flush");
|
|
276
276
|
});
|
|
@@ -316,14 +316,14 @@ const ke = (n) => "init" in n, ve = (n) => !!n.write, re = /* @__PURE__ */ new W
|
|
|
316
316
|
};
|
|
317
317
|
let Se;
|
|
318
318
|
(_ ? "production" : void 0) !== "production" && (typeof globalThis.__NUMBER_OF_JOTAI_INSTANCES__ == "number" ? ++globalThis.__NUMBER_OF_JOTAI_INSTANCES__ : globalThis.__NUMBER_OF_JOTAI_INSTANCES__ = 1);
|
|
319
|
-
const
|
|
319
|
+
const Xt = () => (Se || ((_ ? "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
|
-
), Se =
|
|
322
|
-
var
|
|
323
|
-
const
|
|
324
|
-
const e = Ce(
|
|
325
|
-
return (n == null ? void 0 : n.store) || e ||
|
|
326
|
-
},
|
|
321
|
+
), Se = ht()), Se);
|
|
322
|
+
var Yt = { NZ_AWS_REGION: "us-east-1", NZ_VTEX_PROJECT: "/Users/jbermudez/TODO/PROJECTS/live-shopping", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
|
|
323
|
+
const en = ft(void 0), gt = (n) => {
|
|
324
|
+
const e = Ce(en);
|
|
325
|
+
return (n == null ? void 0 : n.store) || e || Xt();
|
|
326
|
+
}, tn = (n) => typeof (n == null ? void 0 : n.then) == "function", nn = fe.use || ((n) => {
|
|
327
327
|
if (n.status === "pending")
|
|
328
328
|
throw n;
|
|
329
329
|
if (n.status === "fulfilled")
|
|
@@ -337,8 +337,8 @@ const tn = pt(void 0), kt = (n) => {
|
|
|
337
337
|
}
|
|
338
338
|
), n);
|
|
339
339
|
});
|
|
340
|
-
function
|
|
341
|
-
const t =
|
|
340
|
+
function an(n, e) {
|
|
341
|
+
const t = gt(e), [[i, a, s], r] = zt(
|
|
342
342
|
(u) => {
|
|
343
343
|
const d = t.get(n);
|
|
344
344
|
return Object.is(u[0], d) && u[1] === t && u[2] === n ? u : [d, t, n];
|
|
@@ -349,7 +349,7 @@ function sn(n, e) {
|
|
|
349
349
|
let o = i;
|
|
350
350
|
(a !== t || s !== n) && (r(), o = t.get(n));
|
|
351
351
|
const l = e == null ? void 0 : e.delay;
|
|
352
|
-
return
|
|
352
|
+
return pt(() => {
|
|
353
353
|
const u = t.sub(n, () => {
|
|
354
354
|
if (typeof l == "number") {
|
|
355
355
|
setTimeout(r, l);
|
|
@@ -358,37 +358,37 @@ function sn(n, e) {
|
|
|
358
358
|
r();
|
|
359
359
|
});
|
|
360
360
|
return r(), u;
|
|
361
|
-
}, [t, n, l]),
|
|
361
|
+
}, [t, n, l]), Bt(o), tn(o) ? nn(o) : o;
|
|
362
362
|
}
|
|
363
|
-
function
|
|
364
|
-
const t =
|
|
365
|
-
return
|
|
363
|
+
function sn(n, e) {
|
|
364
|
+
const t = gt(e);
|
|
365
|
+
return Qt(
|
|
366
366
|
(...a) => {
|
|
367
|
-
if ((
|
|
367
|
+
if ((Yt ? "production" : void 0) !== "production" && !("write" in n))
|
|
368
368
|
throw new Error("not writable atom");
|
|
369
369
|
return t.set(n, ...a);
|
|
370
370
|
},
|
|
371
371
|
[t, n]
|
|
372
372
|
);
|
|
373
373
|
}
|
|
374
|
-
function
|
|
374
|
+
function rn(n, e) {
|
|
375
375
|
return [
|
|
376
|
-
|
|
376
|
+
an(n, e),
|
|
377
377
|
// We do wrong type assertion here, which results in throwing an error.
|
|
378
|
-
|
|
378
|
+
sn(n, e)
|
|
379
379
|
];
|
|
380
380
|
}
|
|
381
|
-
const Ee =
|
|
381
|
+
const Ee = Jt(null);
|
|
382
382
|
Ee.debugLabel = "accountAtom";
|
|
383
|
-
var
|
|
383
|
+
var on = { NZ_AWS_REGION: "us-east-1", NZ_VTEX_PROJECT: "/Users/jbermudez/TODO/PROJECTS/live-shopping", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
|
|
384
384
|
const {
|
|
385
|
-
NZ_AWS_REGION:
|
|
386
|
-
NZ_BACKOFFICE_BACK_URL:
|
|
387
|
-
NZ_CORE_SERVICES_GRAPHQL_URL:
|
|
388
|
-
NZ_CORE_SERVICES_REST_URL:
|
|
389
|
-
} =
|
|
385
|
+
NZ_AWS_REGION: ln,
|
|
386
|
+
NZ_BACKOFFICE_BACK_URL: dn,
|
|
387
|
+
NZ_CORE_SERVICES_GRAPHQL_URL: un,
|
|
388
|
+
NZ_CORE_SERVICES_REST_URL: cn
|
|
389
|
+
} = on, mn = {
|
|
390
390
|
AWS: {
|
|
391
|
-
region:
|
|
391
|
+
region: ln,
|
|
392
392
|
cognito: {
|
|
393
393
|
userPoolId: "us-east-1_knSlGEmJ0",
|
|
394
394
|
userPoolWebClientId: "3hmbfhf7nl3kq20qr9i5lihf1p"
|
|
@@ -396,9 +396,9 @@ const {
|
|
|
396
396
|
},
|
|
397
397
|
// Back services
|
|
398
398
|
apiUrls: {
|
|
399
|
-
restV1:
|
|
400
|
-
restV2:
|
|
401
|
-
graphql:
|
|
399
|
+
restV1: dn || "https://pabprg32bj.execute-api.us-east-1.amazonaws.com",
|
|
400
|
+
restV2: cn || "https://core-services-dev.nizza.com/api",
|
|
401
|
+
graphql: un || "https://core-services-dev.nizza.com/graphql",
|
|
402
402
|
corsProxy: "https://1qmd8jteh1.execute-api.us-east-1.amazonaws.com"
|
|
403
403
|
},
|
|
404
404
|
publicUrls: {
|
|
@@ -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 kt(n) {
|
|
416
416
|
const {
|
|
417
417
|
url: e,
|
|
418
418
|
method: t = "GET",
|
|
@@ -450,11 +450,11 @@ async function vt(n) {
|
|
|
450
450
|
throw console.error("[CustomFetch] ", u), u;
|
|
451
451
|
}
|
|
452
452
|
}
|
|
453
|
-
const
|
|
454
|
-
function
|
|
455
|
-
fetch(e).then((i) => i.blob()).then((i) =>
|
|
453
|
+
const Ts = (n) => kt({ ...n, contentTypeJson: !1, raw: !1 });
|
|
454
|
+
function Is(n, e, t) {
|
|
455
|
+
fetch(e).then((i) => i.blob()).then((i) => fn(i, `${n}.${t}`));
|
|
456
456
|
}
|
|
457
|
-
const
|
|
457
|
+
const fn = (n, e, t) => {
|
|
458
458
|
const i = [n], a = new Blob(i, {
|
|
459
459
|
type: t != null ? t : "application/octet-stream"
|
|
460
460
|
});
|
|
@@ -465,7 +465,7 @@ const pn = (n, e, t) => {
|
|
|
465
465
|
document.body.removeChild(r), window.URL.revokeObjectURL(s);
|
|
466
466
|
}, 200);
|
|
467
467
|
};
|
|
468
|
-
var
|
|
468
|
+
var pn = { NZ_AWS_REGION: "us-east-1", NZ_VTEX_PROJECT: "/Users/jbermudez/TODO/PROJECTS/live-shopping", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
|
|
469
469
|
const Ue = (n) => {
|
|
470
470
|
let e;
|
|
471
471
|
const t = /* @__PURE__ */ new Set(), i = (l, u) => {
|
|
@@ -475,17 +475,17 @@ const Ue = (n) => {
|
|
|
475
475
|
e = (u != null ? u : typeof d != "object" || d === null) ? d : Object.assign({}, e, d), t.forEach((c) => c(e, f));
|
|
476
476
|
}
|
|
477
477
|
}, a = () => e, o = { setState: i, getState: a, subscribe: (l) => (t.add(l), () => t.delete(l)), destroy: () => {
|
|
478
|
-
(
|
|
478
|
+
(pn ? "production" : void 0) !== "production" && console.warn(
|
|
479
479
|
"[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."
|
|
480
480
|
), t.clear();
|
|
481
481
|
} };
|
|
482
482
|
return e = n(i, a, o), o;
|
|
483
|
-
},
|
|
484
|
-
var
|
|
483
|
+
}, hn = (n) => n ? Ue(n) : Ue;
|
|
484
|
+
var vt = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
|
|
485
485
|
function xe(n) {
|
|
486
486
|
return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
|
|
487
487
|
}
|
|
488
|
-
var
|
|
488
|
+
var St = { exports: {} }, yt = {}, Nt = { exports: {} }, bt = {};
|
|
489
489
|
/**
|
|
490
490
|
* @license React
|
|
491
491
|
* use-sync-external-store-shim.production.min.js
|
|
@@ -495,38 +495,38 @@ var yt = { exports: {} }, Nt = {}, bt = { exports: {} }, Ft = {};
|
|
|
495
495
|
* This source code is licensed under the MIT license found in the
|
|
496
496
|
* LICENSE file in the root directory of this source tree.
|
|
497
497
|
*/
|
|
498
|
-
var
|
|
499
|
-
function
|
|
498
|
+
var W = fe;
|
|
499
|
+
function gn(n, e) {
|
|
500
500
|
return n === e && (n !== 0 || 1 / n === 1 / e) || n !== n && e !== e;
|
|
501
501
|
}
|
|
502
|
-
var
|
|
503
|
-
function
|
|
504
|
-
var t = e(), i =
|
|
505
|
-
return
|
|
502
|
+
var kn = typeof Object.is == "function" ? Object.is : gn, vn = W.useState, Sn = W.useEffect, yn = W.useLayoutEffect, Nn = W.useDebugValue;
|
|
503
|
+
function bn(n, e) {
|
|
504
|
+
var t = e(), i = vn({ inst: { value: t, getSnapshot: e } }), a = i[0].inst, s = i[1];
|
|
505
|
+
return yn(function() {
|
|
506
506
|
a.value = t, a.getSnapshot = e, ye(a) && s({ inst: a });
|
|
507
|
-
}, [n, t, e]),
|
|
507
|
+
}, [n, t, e]), Sn(function() {
|
|
508
508
|
return ye(a) && s({ inst: a }), n(function() {
|
|
509
509
|
ye(a) && s({ inst: a });
|
|
510
510
|
});
|
|
511
|
-
}, [n]),
|
|
511
|
+
}, [n]), Nn(t), t;
|
|
512
512
|
}
|
|
513
513
|
function ye(n) {
|
|
514
514
|
var e = n.getSnapshot;
|
|
515
515
|
n = n.value;
|
|
516
516
|
try {
|
|
517
517
|
var t = e();
|
|
518
|
-
return !
|
|
518
|
+
return !kn(n, t);
|
|
519
519
|
} catch {
|
|
520
520
|
return !0;
|
|
521
521
|
}
|
|
522
522
|
}
|
|
523
|
-
function
|
|
523
|
+
function Fn(n, e) {
|
|
524
524
|
return e();
|
|
525
525
|
}
|
|
526
|
-
var
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
var
|
|
526
|
+
var wn = typeof window == "undefined" || typeof window.document == "undefined" || typeof window.document.createElement == "undefined" ? Fn : bn;
|
|
527
|
+
bt.useSyncExternalStore = W.useSyncExternalStore !== void 0 ? W.useSyncExternalStore : wn;
|
|
528
|
+
Nt.exports = bt;
|
|
529
|
+
var Ft = Nt.exports;
|
|
530
530
|
/**
|
|
531
531
|
* @license React
|
|
532
532
|
* use-sync-external-store-shim/with-selector.production.min.js
|
|
@@ -536,13 +536,13 @@ var wt = bt.exports;
|
|
|
536
536
|
* This source code is licensed under the MIT license found in the
|
|
537
537
|
* LICENSE file in the root directory of this source tree.
|
|
538
538
|
*/
|
|
539
|
-
var pe = fe,
|
|
540
|
-
function
|
|
539
|
+
var pe = fe, Cn = Ft;
|
|
540
|
+
function En(n, e) {
|
|
541
541
|
return n === e && (n !== 0 || 1 / n === 1 / e) || n !== n && e !== e;
|
|
542
542
|
}
|
|
543
|
-
var
|
|
544
|
-
|
|
545
|
-
var s =
|
|
543
|
+
var xn = typeof Object.is == "function" ? Object.is : En, On = Cn.useSyncExternalStore, Rn = pe.useRef, Tn = pe.useEffect, In = pe.useMemo, Dn = pe.useDebugValue;
|
|
544
|
+
yt.useSyncExternalStoreWithSelector = function(n, e, t, i, a) {
|
|
545
|
+
var s = Rn(null);
|
|
546
546
|
if (s.current === null) {
|
|
547
547
|
var r = { hasValue: !1, value: null };
|
|
548
548
|
s.current = r;
|
|
@@ -558,7 +558,7 @@ Nt.useSyncExternalStoreWithSelector = function(n, e, t, i, a) {
|
|
|
558
558
|
}
|
|
559
559
|
return f = S;
|
|
560
560
|
}
|
|
561
|
-
if (y = f,
|
|
561
|
+
if (y = f, xn(d, S))
|
|
562
562
|
return y;
|
|
563
563
|
var k = i(S);
|
|
564
564
|
return a !== void 0 && a(y, k) ? y : (d = S, f = k);
|
|
@@ -570,46 +570,46 @@ Nt.useSyncExternalStoreWithSelector = function(n, e, t, i, a) {
|
|
|
570
570
|
return l(c());
|
|
571
571
|
}];
|
|
572
572
|
}, [e, t, i, a]);
|
|
573
|
-
var o =
|
|
574
|
-
return
|
|
573
|
+
var o = On(n, s[0], s[1]);
|
|
574
|
+
return Tn(function() {
|
|
575
575
|
r.hasValue = !0, r.value = o;
|
|
576
|
-
}, [o]),
|
|
576
|
+
}, [o]), Dn(o), o;
|
|
577
577
|
};
|
|
578
|
-
|
|
579
|
-
var
|
|
580
|
-
const
|
|
581
|
-
var
|
|
582
|
-
const { useDebugValue:
|
|
578
|
+
St.exports = yt;
|
|
579
|
+
var Ln = St.exports;
|
|
580
|
+
const An = /* @__PURE__ */ xe(Ln);
|
|
581
|
+
var wt = { NZ_AWS_REGION: "us-east-1", NZ_VTEX_PROJECT: "/Users/jbermudez/TODO/PROJECTS/live-shopping", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
|
|
582
|
+
const { useDebugValue: Pn } = fe, { useSyncExternalStoreWithSelector: Vn } = An;
|
|
583
583
|
let Me = !1;
|
|
584
|
-
function
|
|
585
|
-
(
|
|
584
|
+
function _n(n, e = n.getState, t) {
|
|
585
|
+
(wt ? "production" : void 0) !== "production" && t && !Me && (console.warn(
|
|
586
586
|
"[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"
|
|
587
587
|
), Me = !0);
|
|
588
|
-
const i =
|
|
588
|
+
const i = Vn(
|
|
589
589
|
n.subscribe,
|
|
590
590
|
n.getState,
|
|
591
591
|
n.getServerState || n.getState,
|
|
592
592
|
e,
|
|
593
593
|
t
|
|
594
594
|
);
|
|
595
|
-
return
|
|
595
|
+
return Pn(i), i;
|
|
596
596
|
}
|
|
597
597
|
const $e = (n) => {
|
|
598
|
-
(
|
|
598
|
+
(wt ? "production" : void 0) !== "production" && typeof n != "function" && console.warn(
|
|
599
599
|
"[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`."
|
|
600
600
|
);
|
|
601
|
-
const e = typeof n == "function" ?
|
|
601
|
+
const e = typeof n == "function" ? hn(n) : n, t = (i, a) => _n(e, i, a);
|
|
602
602
|
return Object.assign(t, e), t;
|
|
603
|
-
},
|
|
604
|
-
class
|
|
603
|
+
}, Un = (n) => n ? $e(n) : $e;
|
|
604
|
+
class Mn {
|
|
605
605
|
constructor(e) {
|
|
606
606
|
R(this, "channel");
|
|
607
607
|
R(this, "listeners", /* @__PURE__ */ new Map());
|
|
608
608
|
R(this, "eventQueue", /* @__PURE__ */ new Map());
|
|
609
609
|
try {
|
|
610
|
-
this.channel = new BroadcastChannel(e), this.channel.onmessage = (t) => this.handleMessage(t), this.channel.onmessageerror = (t) =>
|
|
610
|
+
this.channel = new BroadcastChannel(e), this.channel.onmessage = (t) => this.handleMessage(t), this.channel.onmessageerror = (t) => K.error("NizzaBroadcastChannel:", t);
|
|
611
611
|
} catch (t) {
|
|
612
|
-
throw
|
|
612
|
+
throw K.error("Failed to create NizzaBroadcastChannel:", t), t;
|
|
613
613
|
}
|
|
614
614
|
}
|
|
615
615
|
/**
|
|
@@ -670,7 +670,7 @@ class $n {
|
|
|
670
670
|
subscribeToEvent(e, t) {
|
|
671
671
|
if (typeof e != "string" || typeof t != "function") {
|
|
672
672
|
const i = new Error("Invalid arguments");
|
|
673
|
-
throw
|
|
673
|
+
throw K.error(i), i;
|
|
674
674
|
}
|
|
675
675
|
for (const [i, a] of this.listeners.entries())
|
|
676
676
|
if (this.matchWildcard(i, e)) {
|
|
@@ -694,7 +694,7 @@ class $n {
|
|
|
694
694
|
emitEvent(e, t, i) {
|
|
695
695
|
if (typeof e != "string") {
|
|
696
696
|
const r = new Error("Invalid arguments");
|
|
697
|
-
throw
|
|
697
|
+
throw K.error(r), r;
|
|
698
698
|
}
|
|
699
699
|
const a = {
|
|
700
700
|
name: e,
|
|
@@ -747,21 +747,21 @@ class $n {
|
|
|
747
747
|
return new RegExp(`^${i}$`).test(t);
|
|
748
748
|
}
|
|
749
749
|
}
|
|
750
|
-
let
|
|
751
|
-
const
|
|
750
|
+
let $n = (n = 21) => crypto.getRandomValues(new Uint8Array(n)).reduce((e, t) => (t &= 63, t < 36 ? e += t.toString(36) : t < 62 ? e += (t - 26).toString(36).toUpperCase() : t > 62 ? e += "-" : e += "_", e), "");
|
|
751
|
+
const jn = (n = 8) => $n(n), Ds = (n) => {
|
|
752
752
|
const e = Object.entries(n).reduce((t, [i, a]) => a !== void 0 ? `${t}${t ? "&" : ""}${i}=${a}` : t, "");
|
|
753
753
|
return e ? `?${e}` : "";
|
|
754
754
|
};
|
|
755
|
-
function
|
|
755
|
+
function Ls() {
|
|
756
756
|
const n = new Error().stack.split(`
|
|
757
757
|
`);
|
|
758
758
|
return n.length < 3 ? "" : n[2].trim().substring(3);
|
|
759
759
|
}
|
|
760
|
-
var
|
|
760
|
+
var Ct = { exports: {} };
|
|
761
761
|
(function(n) {
|
|
762
762
|
(function(e, t) {
|
|
763
763
|
n.exports ? n.exports = t() : e.log = t();
|
|
764
|
-
})(
|
|
764
|
+
})(vt, function() {
|
|
765
765
|
var e = function() {
|
|
766
766
|
}, t = "undefined", i = typeof window !== t && typeof window.navigator !== t && /Trident\/|MSIE /.test(window.navigator.userAgent), a = [
|
|
767
767
|
"trace",
|
|
@@ -804,11 +804,11 @@ var Et = { exports: {} };
|
|
|
804
804
|
return o(k) || u.apply(this, arguments);
|
|
805
805
|
}
|
|
806
806
|
function f(k, N, O) {
|
|
807
|
-
var F = this,
|
|
807
|
+
var F = this, I;
|
|
808
808
|
N = N == null ? "WARN" : N;
|
|
809
809
|
var w = "loglevel";
|
|
810
810
|
typeof k == "string" ? w += ":" + k : typeof k == "symbol" && (w = void 0);
|
|
811
|
-
function
|
|
811
|
+
function D(p) {
|
|
812
812
|
var h = (a[p] || "silent").toUpperCase();
|
|
813
813
|
if (!(typeof window === t || !w)) {
|
|
814
814
|
try {
|
|
@@ -861,10 +861,10 @@ var Et = { exports: {} };
|
|
|
861
861
|
ERROR: 4,
|
|
862
862
|
SILENT: 5
|
|
863
863
|
}, F.methodFactory = O || d, F.getLevel = function() {
|
|
864
|
-
return
|
|
864
|
+
return I;
|
|
865
865
|
}, F.setLevel = function(p, h) {
|
|
866
866
|
if (typeof p == "string" && F.levels[p.toUpperCase()] !== void 0 && (p = F.levels[p.toUpperCase()]), typeof p == "number" && p >= 0 && p <= F.levels.SILENT) {
|
|
867
|
-
if (
|
|
867
|
+
if (I = p, h !== !1 && D(p), l.call(F, p, k), typeof console === t && p < F.levels.SILENT)
|
|
868
868
|
return "No console available for logging";
|
|
869
869
|
} else
|
|
870
870
|
throw "log.setLevel() called with invalid level: " + p;
|
|
@@ -898,14 +898,14 @@ var Et = { exports: {} };
|
|
|
898
898
|
return S;
|
|
899
899
|
}, c.default = c, c;
|
|
900
900
|
});
|
|
901
|
-
})(
|
|
902
|
-
var
|
|
903
|
-
const ie = /* @__PURE__ */ xe(
|
|
904
|
-
var
|
|
901
|
+
})(Ct);
|
|
902
|
+
var Et = Ct.exports;
|
|
903
|
+
const ie = /* @__PURE__ */ xe(Et);
|
|
904
|
+
var xt = { exports: {} };
|
|
905
905
|
(function(n) {
|
|
906
906
|
(function(e, t) {
|
|
907
907
|
n.exports ? n.exports = t() : e.prefix = t(e);
|
|
908
|
-
})(
|
|
908
|
+
})(vt, function(e) {
|
|
909
909
|
var t = function(d) {
|
|
910
910
|
for (var f = 1, c = arguments.length, S; f < c; f++)
|
|
911
911
|
for (S in arguments[f])
|
|
@@ -932,15 +932,15 @@ var Ot = { exports: {} };
|
|
|
932
932
|
throw new TypeError("Argument is not a logger");
|
|
933
933
|
var c = d.methodFactory, S = d.name || "", y = s[S] || s[""] || i;
|
|
934
934
|
function k(N, O, F) {
|
|
935
|
-
var
|
|
935
|
+
var I = c(N, O, F), w = s[F] || s[""], D = w.template.indexOf("%t") !== -1, L = w.template.indexOf("%l") !== -1, A = w.template.indexOf("%n") !== -1;
|
|
936
936
|
return function() {
|
|
937
937
|
for (var m = "", p = arguments.length, h = Array(p), g = 0; g < p; g++)
|
|
938
938
|
h[g] = arguments[g];
|
|
939
939
|
if (S || !s[F]) {
|
|
940
940
|
var b = w.timestampFormatter(/* @__PURE__ */ new Date()), C = w.levelFormatter(N), v = w.nameFormatter(F);
|
|
941
|
-
w.format ? m += w.format(C, v, b) : (m += w.template,
|
|
941
|
+
w.format ? m += w.format(C, v, b) : (m += w.template, D && (m = m.replace(/%t/, b)), L && (m = m.replace(/%l/, C)), A && (m = m.replace(/%n/, v))), h.length && typeof h[0] == "string" ? h[0] = m + " " + h[0] : h.unshift(m);
|
|
942
942
|
}
|
|
943
|
-
|
|
943
|
+
I.apply(void 0, h);
|
|
944
944
|
};
|
|
945
945
|
}
|
|
946
946
|
return s[S] || (d.methodFactory = k), f = f || {}, f.template && (f.format = void 0), s[S] = t({}, y, f), d.setLevel(d.getLevel()), a || d.warn(
|
|
@@ -954,12 +954,12 @@ var Ot = { exports: {} };
|
|
|
954
954
|
return e.prefix === l && (e.prefix = u), l;
|
|
955
955
|
}), l;
|
|
956
956
|
});
|
|
957
|
-
})(
|
|
958
|
-
var
|
|
959
|
-
const je = /* @__PURE__ */ xe(
|
|
960
|
-
let
|
|
957
|
+
})(xt);
|
|
958
|
+
var zn = xt.exports;
|
|
959
|
+
const je = /* @__PURE__ */ xe(zn);
|
|
960
|
+
let Bn = class {
|
|
961
961
|
constructor(e) {
|
|
962
|
-
R(this, "defaultLevel",
|
|
962
|
+
R(this, "defaultLevel", Et.levels.INFO);
|
|
963
963
|
R(this, "namePrefix");
|
|
964
964
|
this.namePrefix = e ? `${e}-` : "", ie.setDefaultLevel(this.defaultLevel), je.reg(ie), je.apply(ie, {
|
|
965
965
|
template: "[%t] %l (%n)",
|
|
@@ -974,52 +974,52 @@ let Qn = class {
|
|
|
974
974
|
const t = this.namePrefix + e.toLowerCase(), i = ie.getLogger(t), a = localStorage.getItem(`loglevel:${t}`);
|
|
975
975
|
return a ? i.setLevel(a) : i.setLevel(this.defaultLevel), i;
|
|
976
976
|
}
|
|
977
|
-
};
|
|
978
|
-
const
|
|
979
|
-
function
|
|
980
|
-
|
|
977
|
+
}, $, Qn, K;
|
|
978
|
+
const Gn = $.store;
|
|
979
|
+
function Ps() {
|
|
980
|
+
return $ = Kn(), Qn = $.log.createLogger("main"), K = $.log.createLogger("core"), $;
|
|
981
|
+
}
|
|
982
|
+
function Kn() {
|
|
983
|
+
if (!window.nizza) {
|
|
984
|
+
const n = Wn();
|
|
985
|
+
window.nizza = n, window.nz = n;
|
|
986
|
+
}
|
|
987
|
+
return window.nizza;
|
|
988
|
+
}
|
|
989
|
+
function Wn() {
|
|
990
|
+
const n = Un(() => ({
|
|
981
991
|
config: null
|
|
982
992
|
}));
|
|
983
993
|
return {
|
|
984
|
-
version: "1.0.
|
|
994
|
+
version: "1.0.4",
|
|
985
995
|
store: n,
|
|
986
|
-
configure:
|
|
987
|
-
setProductDataSource:
|
|
988
|
-
instanceId:
|
|
989
|
-
log: new
|
|
990
|
-
eventBus: new
|
|
996
|
+
configure: Jn,
|
|
997
|
+
setProductDataSource: qn,
|
|
998
|
+
instanceId: jn(),
|
|
999
|
+
log: new Bn("nz"),
|
|
1000
|
+
eventBus: new Mn("nizza"),
|
|
991
1001
|
get state() {
|
|
992
1002
|
return n.getState();
|
|
993
1003
|
}
|
|
994
1004
|
};
|
|
995
1005
|
}
|
|
996
|
-
function
|
|
997
|
-
if (typeof window != "undefined") {
|
|
998
|
-
if (!window.nizza) {
|
|
999
|
-
const n = ze();
|
|
1000
|
-
window.nizza = n, window.nz = n;
|
|
1001
|
-
}
|
|
1002
|
-
return window.nizza;
|
|
1003
|
-
}
|
|
1004
|
-
return ze();
|
|
1005
|
-
}
|
|
1006
|
-
async function Wn(n) {
|
|
1006
|
+
async function Jn(n) {
|
|
1007
1007
|
try {
|
|
1008
|
-
const e =
|
|
1009
|
-
if (
|
|
1010
|
-
const t = await
|
|
1011
|
-
|
|
1008
|
+
const e = $.store.getState().account;
|
|
1009
|
+
if ($.store.setState({ config: n }), (e == null ? void 0 : e.account) !== n.account) {
|
|
1010
|
+
const t = await ta(n.account);
|
|
1011
|
+
$.store.setState({ account: t });
|
|
1012
1012
|
}
|
|
1013
1013
|
if (n.getProductDataSource) {
|
|
1014
1014
|
const t = await n.getProductDataSource();
|
|
1015
|
-
|
|
1015
|
+
$.store.setState({ productDataSource: t });
|
|
1016
1016
|
}
|
|
1017
1017
|
} catch (e) {
|
|
1018
1018
|
console.error("Error configuring NizzaStore:", e);
|
|
1019
1019
|
}
|
|
1020
1020
|
}
|
|
1021
|
-
function
|
|
1022
|
-
|
|
1021
|
+
function qn(n) {
|
|
1022
|
+
$.store.setState({ productDataSource: n });
|
|
1023
1023
|
}
|
|
1024
1024
|
function G(n) {
|
|
1025
1025
|
return n != null && typeof n == "object" && n["@@functional/placeholder"] === !0;
|
|
@@ -1047,36 +1047,36 @@ function Oe(n) {
|
|
|
1047
1047
|
}
|
|
1048
1048
|
};
|
|
1049
1049
|
}
|
|
1050
|
-
const
|
|
1050
|
+
const Hn = Number.isInteger || function(e) {
|
|
1051
1051
|
return e << 0 === e;
|
|
1052
1052
|
};
|
|
1053
|
-
function
|
|
1053
|
+
function Zn(n) {
|
|
1054
1054
|
return Object.prototype.toString.call(n) === "[object String]";
|
|
1055
1055
|
}
|
|
1056
|
-
var
|
|
1056
|
+
var Xn = /* @__PURE__ */ Oe(function(e, t) {
|
|
1057
1057
|
var i = e < 0 ? t.length + e : e;
|
|
1058
|
-
return
|
|
1058
|
+
return Zn(t) ? t.charAt(i) : t[i];
|
|
1059
1059
|
});
|
|
1060
|
-
const
|
|
1061
|
-
var
|
|
1060
|
+
const Yn = Xn;
|
|
1061
|
+
var ei = /* @__PURE__ */ se(function(e) {
|
|
1062
1062
|
return e == null;
|
|
1063
1063
|
});
|
|
1064
|
-
const
|
|
1065
|
-
var
|
|
1064
|
+
const ti = ei;
|
|
1065
|
+
var ni = /* @__PURE__ */ Oe(function(e, t) {
|
|
1066
1066
|
return e.map(function(i) {
|
|
1067
1067
|
for (var a = t, s = 0, r; s < i.length; ) {
|
|
1068
1068
|
if (a == null)
|
|
1069
1069
|
return;
|
|
1070
|
-
r = i[s], a =
|
|
1070
|
+
r = i[s], a = Hn(r) ? Yn(r, a) : a[r], s += 1;
|
|
1071
1071
|
}
|
|
1072
1072
|
return a;
|
|
1073
1073
|
});
|
|
1074
1074
|
});
|
|
1075
|
-
const
|
|
1076
|
-
var
|
|
1077
|
-
return
|
|
1075
|
+
const ii = ni;
|
|
1076
|
+
var ai = /* @__PURE__ */ Oe(function(e, t) {
|
|
1077
|
+
return ii([e], t)[0];
|
|
1078
1078
|
});
|
|
1079
|
-
const
|
|
1079
|
+
const si = ai;
|
|
1080
1080
|
class he extends Error {
|
|
1081
1081
|
constructor(e, t, i) {
|
|
1082
1082
|
super(t), this.value = i, this.name = e;
|
|
@@ -1089,7 +1089,7 @@ class he extends Error {
|
|
|
1089
1089
|
};
|
|
1090
1090
|
}
|
|
1091
1091
|
}
|
|
1092
|
-
class
|
|
1092
|
+
class ri extends he {
|
|
1093
1093
|
constructor(e) {
|
|
1094
1094
|
super(
|
|
1095
1095
|
"RESOURCE_NOT_FOUND_ERROR",
|
|
@@ -1098,7 +1098,7 @@ class si extends he {
|
|
|
1098
1098
|
);
|
|
1099
1099
|
}
|
|
1100
1100
|
}
|
|
1101
|
-
class
|
|
1101
|
+
class oi extends he {
|
|
1102
1102
|
constructor(e) {
|
|
1103
1103
|
var t;
|
|
1104
1104
|
super(
|
|
@@ -1108,12 +1108,12 @@ class ri extends he {
|
|
|
1108
1108
|
);
|
|
1109
1109
|
}
|
|
1110
1110
|
}
|
|
1111
|
-
class
|
|
1111
|
+
class Vs extends he {
|
|
1112
1112
|
constructor() {
|
|
1113
1113
|
super("APP_ACCOUNT_INVALID_ERROR", "Account not defined");
|
|
1114
1114
|
}
|
|
1115
1115
|
}
|
|
1116
|
-
class
|
|
1116
|
+
class li extends he {
|
|
1117
1117
|
constructor(e) {
|
|
1118
1118
|
super(
|
|
1119
1119
|
"INVALID_NIZZA_GLOBAL_OBJECT_ERROR",
|
|
@@ -1141,13 +1141,13 @@ class oi extends he {
|
|
|
1141
1141
|
);
|
|
1142
1142
|
}
|
|
1143
1143
|
}
|
|
1144
|
-
function
|
|
1144
|
+
function _s(n, e) {
|
|
1145
1145
|
e.forEach((t) => {
|
|
1146
|
-
if (
|
|
1147
|
-
throw new
|
|
1146
|
+
if (ti(si(t.split("."), n)))
|
|
1147
|
+
throw new li(t);
|
|
1148
1148
|
});
|
|
1149
1149
|
}
|
|
1150
|
-
function
|
|
1150
|
+
function Us() {
|
|
1151
1151
|
var i, a, s;
|
|
1152
1152
|
let n = null, e = null, t = null;
|
|
1153
1153
|
try {
|
|
@@ -1162,7 +1162,7 @@ function _s() {
|
|
|
1162
1162
|
);
|
|
1163
1163
|
e = `${o}${l}:${u}`;
|
|
1164
1164
|
} catch {
|
|
1165
|
-
|
|
1165
|
+
K.error("Error obtaining time zone or offset");
|
|
1166
1166
|
}
|
|
1167
1167
|
return {
|
|
1168
1168
|
offset: e,
|
|
@@ -1173,7 +1173,7 @@ function _s() {
|
|
|
1173
1173
|
label: null
|
|
1174
1174
|
};
|
|
1175
1175
|
}
|
|
1176
|
-
class
|
|
1176
|
+
class di {
|
|
1177
1177
|
constructor(e) {
|
|
1178
1178
|
R(this, "aggregate");
|
|
1179
1179
|
R(this, "_numSetPropsApplied", 0);
|
|
@@ -1188,12 +1188,12 @@ class li {
|
|
|
1188
1188
|
return this._numSetPropsApplied === 1;
|
|
1189
1189
|
}
|
|
1190
1190
|
}
|
|
1191
|
-
function
|
|
1192
|
-
return new
|
|
1193
|
-
}
|
|
1194
|
-
class Us {
|
|
1191
|
+
function ui(n) {
|
|
1192
|
+
return new di(n);
|
|
1195
1193
|
}
|
|
1196
1194
|
class Ms {
|
|
1195
|
+
}
|
|
1196
|
+
class $s {
|
|
1197
1197
|
constructor(e) {
|
|
1198
1198
|
R(this, "_value");
|
|
1199
1199
|
e !== void 0 && (this._value = e);
|
|
@@ -1202,13 +1202,13 @@ class Ms {
|
|
|
1202
1202
|
return this._value;
|
|
1203
1203
|
}
|
|
1204
1204
|
}
|
|
1205
|
-
var
|
|
1205
|
+
var Ot = /* @__PURE__ */ ((n) => (n.VTEX = "VTEX", n.VTEX_IO = "VTEX-IO", n.VTEX_CMS = "PORTAL-VTEX", n.PLATFORM = "PLATFORM", n.UNKNOWN = "UNKNOWN", n))(Ot || {}), ci = /* @__PURE__ */ ((n) => (n.PLATFORM = "platform_module", n.ADENDA = "subscription_module", n.APP_STORE = "app_store", n))(ci || {}), Rt = /* @__PURE__ */ ((n) => (n.ACTIVE = "active_contract", n.INACTIVE = "inactive_contract", n))(Rt || {}), mi = /* @__PURE__ */ ((n) => (n.LITE = "lite", n.STANDARD = "standard", n.PRO = "pro", n))(mi || {}), fi = /* @__PURE__ */ ((n) => (n.LITE = "PLAN_LITE", n.STANDARD = "PLAN_ESTANDAR", n.PRO = "PLAN_PRO", n.NONE = "NO_PLAN", n))(fi || {}), pi = /* @__PURE__ */ ((n) => (n.PAST = "past", n.LIVE = "live", n.FUTURE = "future", n))(pi || {});
|
|
1206
1206
|
class Re {
|
|
1207
1207
|
constructor(e) {
|
|
1208
|
-
R(this, "root",
|
|
1208
|
+
R(this, "root", ui(this));
|
|
1209
1209
|
R(this, "id");
|
|
1210
1210
|
R(this, "account");
|
|
1211
|
-
R(this, "accountType",
|
|
1211
|
+
R(this, "accountType", Ot.UNKNOWN);
|
|
1212
1212
|
R(this, "username");
|
|
1213
1213
|
R(this, "currencyConfig");
|
|
1214
1214
|
R(this, "contractType");
|
|
@@ -1216,7 +1216,7 @@ class Re {
|
|
|
1216
1216
|
R(this, "spendedMinutes", 0);
|
|
1217
1217
|
R(this, "unlimitedService", !1);
|
|
1218
1218
|
R(this, "hoursAvailable", 0);
|
|
1219
|
-
R(this, "contractStatus",
|
|
1219
|
+
R(this, "contractStatus", Rt.ACTIVE);
|
|
1220
1220
|
R(this, "createdAt");
|
|
1221
1221
|
R(this, "installationDateApp");
|
|
1222
1222
|
R(this, "cxAccount");
|
|
@@ -1248,16 +1248,16 @@ class Re {
|
|
|
1248
1248
|
};
|
|
1249
1249
|
}
|
|
1250
1250
|
}
|
|
1251
|
-
const
|
|
1252
|
-
class
|
|
1251
|
+
const hi = `${mn.apiUrls.restV1}/accounts/v2`;
|
|
1252
|
+
class gi {
|
|
1253
1253
|
async get(e) {
|
|
1254
|
-
const t = `${
|
|
1254
|
+
const t = `${hi}/${e}`, { data: i } = await kt({
|
|
1255
1255
|
url: t
|
|
1256
1256
|
});
|
|
1257
1257
|
return i ? Re.toDomain(i) : null;
|
|
1258
1258
|
}
|
|
1259
1259
|
}
|
|
1260
|
-
class
|
|
1260
|
+
class ki {
|
|
1261
1261
|
constructor(e) {
|
|
1262
1262
|
this.accountRepository = e;
|
|
1263
1263
|
}
|
|
@@ -1265,14 +1265,14 @@ class gi {
|
|
|
1265
1265
|
try {
|
|
1266
1266
|
const t = await this.accountRepository.get(e);
|
|
1267
1267
|
if (!t)
|
|
1268
|
-
throw new
|
|
1268
|
+
throw new ri(e);
|
|
1269
1269
|
return t;
|
|
1270
1270
|
} catch (t) {
|
|
1271
|
-
throw new
|
|
1271
|
+
throw new oi(t);
|
|
1272
1272
|
}
|
|
1273
1273
|
}
|
|
1274
1274
|
}
|
|
1275
|
-
const
|
|
1275
|
+
const vi = new gi(), Tt = new ki(vi);
|
|
1276
1276
|
class Te {
|
|
1277
1277
|
constructor() {
|
|
1278
1278
|
this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
|
|
@@ -1294,16 +1294,16 @@ class Te {
|
|
|
1294
1294
|
}
|
|
1295
1295
|
}
|
|
1296
1296
|
const oe = typeof window == "undefined" || "Deno" in window;
|
|
1297
|
-
function
|
|
1297
|
+
function Si() {
|
|
1298
1298
|
}
|
|
1299
|
-
function
|
|
1299
|
+
function ze(n) {
|
|
1300
1300
|
return typeof n == "number" && n >= 0 && n !== 1 / 0;
|
|
1301
1301
|
}
|
|
1302
|
-
function
|
|
1302
|
+
function yi(n, e) {
|
|
1303
1303
|
return Math.max(n + (e || 0) - Date.now(), 0);
|
|
1304
1304
|
}
|
|
1305
|
-
function
|
|
1306
|
-
return
|
|
1305
|
+
function Ni(n, e, t) {
|
|
1306
|
+
return bi(n) ? typeof e == "function" ? {
|
|
1307
1307
|
...t,
|
|
1308
1308
|
queryKey: n,
|
|
1309
1309
|
queryFn: e
|
|
@@ -1315,8 +1315,8 @@ function yi(n, e, t) {
|
|
|
1315
1315
|
function It(n, e) {
|
|
1316
1316
|
if (n === e)
|
|
1317
1317
|
return n;
|
|
1318
|
-
const t =
|
|
1319
|
-
if (t ||
|
|
1318
|
+
const t = Be(n) && Be(e);
|
|
1319
|
+
if (t || Qe(n) && Qe(e)) {
|
|
1320
1320
|
const i = t ? n.length : Object.keys(n).length, a = t ? e : Object.keys(e), s = a.length, r = t ? [] : {};
|
|
1321
1321
|
let o = 0;
|
|
1322
1322
|
for (let l = 0; l < s; l++) {
|
|
@@ -1335,36 +1335,36 @@ function be(n, e) {
|
|
|
1335
1335
|
return !1;
|
|
1336
1336
|
return !0;
|
|
1337
1337
|
}
|
|
1338
|
-
function
|
|
1338
|
+
function Be(n) {
|
|
1339
1339
|
return Array.isArray(n) && n.length === Object.keys(n).length;
|
|
1340
1340
|
}
|
|
1341
|
-
function
|
|
1342
|
-
if (!
|
|
1341
|
+
function Qe(n) {
|
|
1342
|
+
if (!Ge(n))
|
|
1343
1343
|
return !1;
|
|
1344
1344
|
const e = n.constructor;
|
|
1345
1345
|
if (typeof e == "undefined")
|
|
1346
1346
|
return !0;
|
|
1347
1347
|
const t = e.prototype;
|
|
1348
|
-
return !(!
|
|
1348
|
+
return !(!Ge(t) || !t.hasOwnProperty("isPrototypeOf"));
|
|
1349
1349
|
}
|
|
1350
|
-
function
|
|
1350
|
+
function Ge(n) {
|
|
1351
1351
|
return Object.prototype.toString.call(n) === "[object Object]";
|
|
1352
1352
|
}
|
|
1353
|
-
function
|
|
1353
|
+
function bi(n) {
|
|
1354
1354
|
return Array.isArray(n);
|
|
1355
1355
|
}
|
|
1356
|
-
function
|
|
1356
|
+
function Fi(n) {
|
|
1357
1357
|
return new Promise((e) => {
|
|
1358
1358
|
setTimeout(e, n);
|
|
1359
1359
|
});
|
|
1360
1360
|
}
|
|
1361
|
-
function
|
|
1362
|
-
|
|
1361
|
+
function Ke(n) {
|
|
1362
|
+
Fi(0).then(n);
|
|
1363
1363
|
}
|
|
1364
|
-
function
|
|
1364
|
+
function We(n, e, t) {
|
|
1365
1365
|
return t.isDataEqual != null && t.isDataEqual(n, e) ? n : typeof t.structuralSharing == "function" ? t.structuralSharing(n, e) : t.structuralSharing !== !1 ? It(n, e) : e;
|
|
1366
1366
|
}
|
|
1367
|
-
class
|
|
1367
|
+
class wi extends Te {
|
|
1368
1368
|
constructor() {
|
|
1369
1369
|
super(), this.setup = (e) => {
|
|
1370
1370
|
if (!oe && window.addEventListener) {
|
|
@@ -1404,16 +1404,16 @@ class Fi extends Te {
|
|
|
1404
1404
|
return typeof this.focused == "boolean" ? this.focused : typeof document == "undefined" ? !0 : [void 0, "visible", "prerender"].includes(document.visibilityState);
|
|
1405
1405
|
}
|
|
1406
1406
|
}
|
|
1407
|
-
const
|
|
1408
|
-
class
|
|
1407
|
+
const Ci = new wi(), Je = ["online", "offline"];
|
|
1408
|
+
class Ei extends Te {
|
|
1409
1409
|
constructor() {
|
|
1410
1410
|
super(), this.setup = (e) => {
|
|
1411
1411
|
if (!oe && window.addEventListener) {
|
|
1412
1412
|
const t = () => e();
|
|
1413
|
-
return
|
|
1413
|
+
return Je.forEach((i) => {
|
|
1414
1414
|
window.addEventListener(i, t, !1);
|
|
1415
1415
|
}), () => {
|
|
1416
|
-
|
|
1416
|
+
Je.forEach((i) => {
|
|
1417
1417
|
window.removeEventListener(i, t);
|
|
1418
1418
|
});
|
|
1419
1419
|
};
|
|
@@ -1449,19 +1449,19 @@ class Ci extends Te {
|
|
|
1449
1449
|
return typeof this.online == "boolean" ? this.online : typeof navigator == "undefined" || typeof navigator.onLine == "undefined" ? !0 : navigator.onLine;
|
|
1450
1450
|
}
|
|
1451
1451
|
}
|
|
1452
|
-
const
|
|
1453
|
-
function
|
|
1454
|
-
return (n != null ? n : "online") === "online" ?
|
|
1452
|
+
const xi = new Ei();
|
|
1453
|
+
function Oi(n) {
|
|
1454
|
+
return (n != null ? n : "online") === "online" ? xi.isOnline() : !0;
|
|
1455
1455
|
}
|
|
1456
|
-
class
|
|
1456
|
+
class Ri {
|
|
1457
1457
|
constructor(e) {
|
|
1458
1458
|
this.revert = e == null ? void 0 : e.revert, this.silent = e == null ? void 0 : e.silent;
|
|
1459
1459
|
}
|
|
1460
1460
|
}
|
|
1461
|
-
function
|
|
1462
|
-
return n instanceof
|
|
1461
|
+
function Ti(n) {
|
|
1462
|
+
return n instanceof Ri;
|
|
1463
1463
|
}
|
|
1464
|
-
function
|
|
1464
|
+
function Ii() {
|
|
1465
1465
|
let n = [], e = 0, t = (d) => {
|
|
1466
1466
|
d();
|
|
1467
1467
|
}, i = (d) => {
|
|
@@ -1477,7 +1477,7 @@ function Ti() {
|
|
|
1477
1477
|
}
|
|
1478
1478
|
return f;
|
|
1479
1479
|
}, s = (d) => {
|
|
1480
|
-
e ? n.push(d) :
|
|
1480
|
+
e ? n.push(d) : Ke(() => {
|
|
1481
1481
|
t(d);
|
|
1482
1482
|
});
|
|
1483
1483
|
}, r = (d) => (...f) => {
|
|
@@ -1486,7 +1486,7 @@ function Ti() {
|
|
|
1486
1486
|
});
|
|
1487
1487
|
}, o = () => {
|
|
1488
1488
|
const d = n;
|
|
1489
|
-
n = [], d.length &&
|
|
1489
|
+
n = [], d.length && Ke(() => {
|
|
1490
1490
|
i(() => {
|
|
1491
1491
|
d.forEach((f) => {
|
|
1492
1492
|
t(f);
|
|
@@ -1506,7 +1506,7 @@ function Ti() {
|
|
|
1506
1506
|
}
|
|
1507
1507
|
};
|
|
1508
1508
|
}
|
|
1509
|
-
const X =
|
|
1509
|
+
const X = Ii();
|
|
1510
1510
|
class Di extends Te {
|
|
1511
1511
|
constructor(e, t) {
|
|
1512
1512
|
super(), this.client = e, this.options = t, this.trackedProps = /* @__PURE__ */ new Set(), this.selectError = null, this.bindMethods(), this.setOptions(t);
|
|
@@ -1515,7 +1515,7 @@ class Di extends Te {
|
|
|
1515
1515
|
this.remove = this.remove.bind(this), this.refetch = this.refetch.bind(this);
|
|
1516
1516
|
}
|
|
1517
1517
|
onSubscribe() {
|
|
1518
|
-
this.listeners.size === 1 && (this.currentQuery.addObserver(this),
|
|
1518
|
+
this.listeners.size === 1 && (this.currentQuery.addObserver(this), qe(this.currentQuery, this.options) && this.executeFetch(), this.updateTimers());
|
|
1519
1519
|
}
|
|
1520
1520
|
onUnsubscribe() {
|
|
1521
1521
|
this.hasListeners() || this.destroy();
|
|
@@ -1539,13 +1539,13 @@ class Di extends Te {
|
|
|
1539
1539
|
throw new Error("Expected enabled to be a boolean");
|
|
1540
1540
|
this.options.queryKey || (this.options.queryKey = i.queryKey), this.updateQuery();
|
|
1541
1541
|
const s = this.hasListeners();
|
|
1542
|
-
s &&
|
|
1542
|
+
s && He(this.currentQuery, a, this.options, i) && this.executeFetch(), this.updateResult(t), s && (this.currentQuery !== a || this.options.enabled !== i.enabled || this.options.staleTime !== i.staleTime) && this.updateStaleTimeout();
|
|
1543
1543
|
const r = this.computeRefetchInterval();
|
|
1544
1544
|
s && (this.currentQuery !== a || this.options.enabled !== i.enabled || r !== this.currentRefetchInterval) && this.updateRefetchInterval(r);
|
|
1545
1545
|
}
|
|
1546
1546
|
getOptimisticResult(e) {
|
|
1547
1547
|
const t = this.client.getQueryCache().build(this.client, e), i = this.createResult(t, e);
|
|
1548
|
-
return
|
|
1548
|
+
return Ai(this, i, e) && (this.currentResult = i, this.currentResultOptions = this.options, this.currentResultState = this.currentQuery.state), i;
|
|
1549
1549
|
}
|
|
1550
1550
|
getCurrentResult() {
|
|
1551
1551
|
return this.currentResult;
|
|
@@ -1591,12 +1591,12 @@ class Di extends Te {
|
|
|
1591
1591
|
executeFetch(e) {
|
|
1592
1592
|
this.updateQuery();
|
|
1593
1593
|
let t = this.currentQuery.fetch(this.options, e);
|
|
1594
|
-
return e != null && e.throwOnError || (t = t.catch(
|
|
1594
|
+
return e != null && e.throwOnError || (t = t.catch(Si)), t;
|
|
1595
1595
|
}
|
|
1596
1596
|
updateStaleTimeout() {
|
|
1597
|
-
if (this.clearStaleTimeout(), oe || this.currentResult.isStale || !
|
|
1597
|
+
if (this.clearStaleTimeout(), oe || this.currentResult.isStale || !ze(this.options.staleTime))
|
|
1598
1598
|
return;
|
|
1599
|
-
const t =
|
|
1599
|
+
const t = yi(this.currentResult.dataUpdatedAt, this.options.staleTime) + 1;
|
|
1600
1600
|
this.staleTimeoutId = setTimeout(() => {
|
|
1601
1601
|
this.currentResult.isStale || this.updateResult();
|
|
1602
1602
|
}, t);
|
|
@@ -1606,8 +1606,8 @@ class Di extends Te {
|
|
|
1606
1606
|
return typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(this.currentResult.data, this.currentQuery) : (e = this.options.refetchInterval) != null ? e : !1;
|
|
1607
1607
|
}
|
|
1608
1608
|
updateRefetchInterval(e) {
|
|
1609
|
-
this.clearRefetchInterval(), this.currentRefetchInterval = e, !(oe || this.options.enabled === !1 || !
|
|
1610
|
-
(this.options.refetchIntervalInBackground ||
|
|
1609
|
+
this.clearRefetchInterval(), this.currentRefetchInterval = e, !(oe || this.options.enabled === !1 || !ze(this.currentRefetchInterval) || this.currentRefetchInterval === 0) && (this.refetchIntervalId = setInterval(() => {
|
|
1610
|
+
(this.options.refetchIntervalInBackground || Ci.isFocused()) && this.executeFetch();
|
|
1611
1611
|
}, this.currentRefetchInterval));
|
|
1612
1612
|
}
|
|
1613
1613
|
updateTimers() {
|
|
@@ -1629,25 +1629,25 @@ class Di extends Te {
|
|
|
1629
1629
|
errorUpdatedAt: y,
|
|
1630
1630
|
fetchStatus: k,
|
|
1631
1631
|
status: N
|
|
1632
|
-
} = f, O = !1, F = !1,
|
|
1632
|
+
} = f, O = !1, F = !1, I;
|
|
1633
1633
|
if (t._optimisticResults) {
|
|
1634
|
-
const m = this.hasListeners(), p = !m &&
|
|
1635
|
-
(p || h) && (k =
|
|
1634
|
+
const m = this.hasListeners(), p = !m && qe(e, t), h = m && He(e, i, t, a);
|
|
1635
|
+
(p || h) && (k = Oi(e.options.networkMode) ? "fetching" : "paused", c || (N = "loading")), t._optimisticResults === "isRestoring" && (k = "idle");
|
|
1636
1636
|
}
|
|
1637
1637
|
if (t.keepPreviousData && !f.dataUpdatedAt && d != null && d.isSuccess && N !== "error")
|
|
1638
|
-
|
|
1638
|
+
I = d.data, c = d.dataUpdatedAt, N = d.status, O = !0;
|
|
1639
1639
|
else if (t.select && typeof f.data != "undefined")
|
|
1640
1640
|
if (s && f.data === (r == null ? void 0 : r.data) && t.select === this.selectFn)
|
|
1641
|
-
|
|
1641
|
+
I = this.selectResult;
|
|
1642
1642
|
else
|
|
1643
1643
|
try {
|
|
1644
|
-
this.selectFn = t.select,
|
|
1644
|
+
this.selectFn = t.select, I = t.select(f.data), I = We(s == null ? void 0 : s.data, I, t), this.selectResult = I, this.selectError = null;
|
|
1645
1645
|
} catch (m) {
|
|
1646
1646
|
this.selectError = m;
|
|
1647
1647
|
}
|
|
1648
1648
|
else
|
|
1649
|
-
|
|
1650
|
-
if (typeof t.placeholderData != "undefined" && typeof
|
|
1649
|
+
I = f.data;
|
|
1650
|
+
if (typeof t.placeholderData != "undefined" && typeof I == "undefined" && N === "loading") {
|
|
1651
1651
|
let m;
|
|
1652
1652
|
if (s != null && s.isPlaceholderData && t.placeholderData === (o == null ? void 0 : o.placeholderData))
|
|
1653
1653
|
m = s.data;
|
|
@@ -1657,18 +1657,18 @@ class Di extends Te {
|
|
|
1657
1657
|
} catch (p) {
|
|
1658
1658
|
this.selectError = p;
|
|
1659
1659
|
}
|
|
1660
|
-
typeof m != "undefined" && (N = "success",
|
|
1660
|
+
typeof m != "undefined" && (N = "success", I = We(s == null ? void 0 : s.data, m, t), F = !0);
|
|
1661
1661
|
}
|
|
1662
|
-
this.selectError && (S = this.selectError,
|
|
1663
|
-
const w = k === "fetching",
|
|
1662
|
+
this.selectError && (S = this.selectError, I = this.selectResult, y = Date.now(), N = "error");
|
|
1663
|
+
const w = k === "fetching", D = N === "loading", L = N === "error";
|
|
1664
1664
|
return {
|
|
1665
1665
|
status: N,
|
|
1666
1666
|
fetchStatus: k,
|
|
1667
|
-
isLoading:
|
|
1667
|
+
isLoading: D,
|
|
1668
1668
|
isSuccess: N === "success",
|
|
1669
1669
|
isError: L,
|
|
1670
|
-
isInitialLoading:
|
|
1671
|
-
data:
|
|
1670
|
+
isInitialLoading: D && w,
|
|
1671
|
+
data: I,
|
|
1672
1672
|
dataUpdatedAt: c,
|
|
1673
1673
|
error: S,
|
|
1674
1674
|
errorUpdatedAt: y,
|
|
@@ -1678,13 +1678,13 @@ class Di extends Te {
|
|
|
1678
1678
|
isFetched: f.dataUpdateCount > 0 || f.errorUpdateCount > 0,
|
|
1679
1679
|
isFetchedAfterMount: f.dataUpdateCount > u.dataUpdateCount || f.errorUpdateCount > u.errorUpdateCount,
|
|
1680
1680
|
isFetching: w,
|
|
1681
|
-
isRefetching: w && !
|
|
1681
|
+
isRefetching: w && !D,
|
|
1682
1682
|
isLoadingError: L && f.dataUpdatedAt === 0,
|
|
1683
1683
|
isPaused: k === "paused",
|
|
1684
1684
|
isPlaceholderData: F,
|
|
1685
1685
|
isPreviousData: O,
|
|
1686
1686
|
isRefetchError: L && f.dataUpdatedAt !== 0,
|
|
1687
|
-
isStale:
|
|
1687
|
+
isStale: Ie(e, t),
|
|
1688
1688
|
refetch: this.refetch,
|
|
1689
1689
|
remove: this.remove
|
|
1690
1690
|
};
|
|
@@ -1724,7 +1724,7 @@ class Di extends Te {
|
|
|
1724
1724
|
}
|
|
1725
1725
|
onQueryUpdate(e) {
|
|
1726
1726
|
const t = {};
|
|
1727
|
-
e.type === "success" ? t.onSuccess = !e.manual : e.type === "error" && !
|
|
1727
|
+
e.type === "success" ? t.onSuccess = !e.manual : e.type === "error" && !Ti(e.error) && (t.onError = !0), this.updateResult(t), this.hasListeners() && this.updateTimers();
|
|
1728
1728
|
}
|
|
1729
1729
|
notify(e) {
|
|
1730
1730
|
X.batch(() => {
|
|
@@ -1746,42 +1746,42 @@ class Di extends Te {
|
|
|
1746
1746
|
});
|
|
1747
1747
|
}
|
|
1748
1748
|
}
|
|
1749
|
-
function
|
|
1749
|
+
function Li(n, e) {
|
|
1750
1750
|
return e.enabled !== !1 && !n.state.dataUpdatedAt && !(n.state.status === "error" && e.retryOnMount === !1);
|
|
1751
1751
|
}
|
|
1752
|
-
function
|
|
1753
|
-
return
|
|
1752
|
+
function qe(n, e) {
|
|
1753
|
+
return Li(n, e) || n.state.dataUpdatedAt > 0 && Fe(n, e, e.refetchOnMount);
|
|
1754
1754
|
}
|
|
1755
1755
|
function Fe(n, e, t) {
|
|
1756
1756
|
if (e.enabled !== !1) {
|
|
1757
1757
|
const i = typeof t == "function" ? t(n) : t;
|
|
1758
|
-
return i === "always" || i !== !1 &&
|
|
1758
|
+
return i === "always" || i !== !1 && Ie(n, e);
|
|
1759
1759
|
}
|
|
1760
1760
|
return !1;
|
|
1761
1761
|
}
|
|
1762
|
-
function
|
|
1763
|
-
return t.enabled !== !1 && (n !== e || i.enabled === !1) && (!t.suspense || n.state.status !== "error") &&
|
|
1762
|
+
function He(n, e, t, i) {
|
|
1763
|
+
return t.enabled !== !1 && (n !== e || i.enabled === !1) && (!t.suspense || n.state.status !== "error") && Ie(n, t);
|
|
1764
1764
|
}
|
|
1765
|
-
function
|
|
1765
|
+
function Ie(n, e) {
|
|
1766
1766
|
return n.isStaleByTime(e.staleTime);
|
|
1767
1767
|
}
|
|
1768
|
-
function
|
|
1768
|
+
function Ai(n, e, t) {
|
|
1769
1769
|
return t.keepPreviousData ? !1 : t.placeholderData !== void 0 ? e.isPlaceholderData : !be(n.getCurrentResult(), e);
|
|
1770
1770
|
}
|
|
1771
|
-
const
|
|
1772
|
-
function
|
|
1773
|
-
return n || (e && typeof window != "undefined" ? (window.ReactQueryClientContext || (window.ReactQueryClientContext =
|
|
1771
|
+
const Pi = Ft.useSyncExternalStore, Ze = /* @__PURE__ */ M.createContext(void 0), Vi = /* @__PURE__ */ M.createContext(!1);
|
|
1772
|
+
function _i(n, e) {
|
|
1773
|
+
return n || (e && typeof window != "undefined" ? (window.ReactQueryClientContext || (window.ReactQueryClientContext = Ze), window.ReactQueryClientContext) : Ze);
|
|
1774
1774
|
}
|
|
1775
|
-
const
|
|
1775
|
+
const Ui = ({
|
|
1776
1776
|
context: n
|
|
1777
1777
|
} = {}) => {
|
|
1778
|
-
const e = M.useContext(
|
|
1778
|
+
const e = M.useContext(_i(n, M.useContext(Vi)));
|
|
1779
1779
|
if (!e)
|
|
1780
1780
|
throw new Error("No QueryClient set, use QueryClientProvider to set one");
|
|
1781
1781
|
return e;
|
|
1782
|
-
},
|
|
1783
|
-
|
|
1784
|
-
function
|
|
1782
|
+
}, Dt = /* @__PURE__ */ M.createContext(!1), Mi = () => M.useContext(Dt);
|
|
1783
|
+
Dt.Provider;
|
|
1784
|
+
function $i() {
|
|
1785
1785
|
let n = !1;
|
|
1786
1786
|
return {
|
|
1787
1787
|
clearReset: () => {
|
|
@@ -1793,37 +1793,37 @@ function Mi() {
|
|
|
1793
1793
|
isReset: () => n
|
|
1794
1794
|
};
|
|
1795
1795
|
}
|
|
1796
|
-
const
|
|
1797
|
-
function
|
|
1796
|
+
const ji = /* @__PURE__ */ M.createContext($i()), zi = () => M.useContext(ji);
|
|
1797
|
+
function Bi(n, e) {
|
|
1798
1798
|
return typeof n == "function" ? n(...e) : !!n;
|
|
1799
1799
|
}
|
|
1800
|
-
const
|
|
1800
|
+
const Qi = (n, e) => {
|
|
1801
1801
|
(n.suspense || n.useErrorBoundary) && (e.isReset() || (n.retryOnMount = !1));
|
|
1802
|
-
},
|
|
1802
|
+
}, Gi = (n) => {
|
|
1803
1803
|
M.useEffect(() => {
|
|
1804
1804
|
n.clearReset();
|
|
1805
1805
|
}, [n]);
|
|
1806
|
-
},
|
|
1806
|
+
}, Ki = ({
|
|
1807
1807
|
result: n,
|
|
1808
1808
|
errorResetBoundary: e,
|
|
1809
1809
|
useErrorBoundary: t,
|
|
1810
1810
|
query: i
|
|
1811
|
-
}) => n.isError && !e.isReset() && !n.isFetching &&
|
|
1811
|
+
}) => n.isError && !e.isReset() && !n.isFetching && Bi(t, [n.error, i]), Wi = (n) => {
|
|
1812
1812
|
n.suspense && typeof n.staleTime != "number" && (n.staleTime = 1e3);
|
|
1813
|
-
},
|
|
1813
|
+
}, Ji = (n, e) => n.isLoading && n.isFetching && !e, qi = (n, e, t) => (n == null ? void 0 : n.suspense) && Ji(e, t), Hi = (n, e, t) => e.fetchOptimistic(n).then(({
|
|
1814
1814
|
data: i
|
|
1815
1815
|
}) => {
|
|
1816
1816
|
n.onSuccess == null || n.onSuccess(i), n.onSettled == null || n.onSettled(i, null);
|
|
1817
1817
|
}).catch((i) => {
|
|
1818
1818
|
t.clearReset(), n.onError == null || n.onError(i), n.onSettled == null || n.onSettled(void 0, i);
|
|
1819
1819
|
});
|
|
1820
|
-
function
|
|
1821
|
-
const t =
|
|
1820
|
+
function Zi(n, e) {
|
|
1821
|
+
const t = Ui({
|
|
1822
1822
|
context: n.context
|
|
1823
|
-
}), i =
|
|
1824
|
-
s._optimisticResults = i ? "isRestoring" : "optimistic", s.onError && (s.onError = X.batchCalls(s.onError)), s.onSuccess && (s.onSuccess = X.batchCalls(s.onSuccess)), s.onSettled && (s.onSettled = X.batchCalls(s.onSettled)),
|
|
1823
|
+
}), i = Mi(), a = zi(), s = t.defaultQueryOptions(n);
|
|
1824
|
+
s._optimisticResults = i ? "isRestoring" : "optimistic", s.onError && (s.onError = X.batchCalls(s.onError)), s.onSuccess && (s.onSuccess = X.batchCalls(s.onSuccess)), s.onSettled && (s.onSettled = X.batchCalls(s.onSettled)), Wi(s), Qi(s, a), Gi(a);
|
|
1825
1825
|
const [r] = M.useState(() => new e(t, s)), o = r.getOptimisticResult(s);
|
|
1826
|
-
if (
|
|
1826
|
+
if (Pi(M.useCallback((l) => {
|
|
1827
1827
|
const u = i ? () => {
|
|
1828
1828
|
} : r.subscribe(X.batchCalls(l));
|
|
1829
1829
|
return r.updateResult(), u;
|
|
@@ -1831,9 +1831,9 @@ function Hi(n, e) {
|
|
|
1831
1831
|
r.setOptions(s, {
|
|
1832
1832
|
listeners: !1
|
|
1833
1833
|
});
|
|
1834
|
-
}, [s, r]),
|
|
1835
|
-
throw
|
|
1836
|
-
if (
|
|
1834
|
+
}, [s, r]), qi(s, o, i))
|
|
1835
|
+
throw Hi(s, r, a);
|
|
1836
|
+
if (Ki({
|
|
1837
1837
|
result: o,
|
|
1838
1838
|
errorResetBoundary: a,
|
|
1839
1839
|
useErrorBoundary: s.useErrorBoundary,
|
|
@@ -1842,33 +1842,33 @@ function Hi(n, e) {
|
|
|
1842
1842
|
throw o.error;
|
|
1843
1843
|
return s.notifyOnChangeProps ? o : r.trackResult(o);
|
|
1844
1844
|
}
|
|
1845
|
-
function
|
|
1846
|
-
const i =
|
|
1847
|
-
return
|
|
1845
|
+
function Xi(n, e, t) {
|
|
1846
|
+
const i = Ni(n, e, t);
|
|
1847
|
+
return Zi(i, Di);
|
|
1848
1848
|
}
|
|
1849
|
-
const
|
|
1849
|
+
const Yi = () => ["account"], js = () => {
|
|
1850
1850
|
const n = Gn((a) => {
|
|
1851
1851
|
var s;
|
|
1852
1852
|
return (s = a.config) == null ? void 0 : s.account;
|
|
1853
|
-
}), [e, t] =
|
|
1853
|
+
}), [e, t] = rn(Ee), i = Xi(Yi(), () => Tt.get(n), {
|
|
1854
1854
|
enabled: !!n && !e,
|
|
1855
1855
|
refetchOnWindowFocus: !1,
|
|
1856
1856
|
refetchOnMount: !1
|
|
1857
1857
|
});
|
|
1858
|
-
return
|
|
1858
|
+
return pt(() => {
|
|
1859
1859
|
const a = i.data;
|
|
1860
1860
|
!i.isSuccess || !a || t(a);
|
|
1861
1861
|
}, [i.status]), {
|
|
1862
1862
|
findQuery: i,
|
|
1863
1863
|
account: e
|
|
1864
1864
|
};
|
|
1865
|
-
},
|
|
1866
|
-
async function
|
|
1867
|
-
const e = await
|
|
1868
|
-
return
|
|
1865
|
+
}, ea = ht();
|
|
1866
|
+
async function ta(n) {
|
|
1867
|
+
const e = await Tt.get(n);
|
|
1868
|
+
return ea.set(Ee, e), e;
|
|
1869
1869
|
}
|
|
1870
|
-
var
|
|
1871
|
-
const
|
|
1870
|
+
var na = /* @__PURE__ */ ((n) => (n.CREATED = "CREATED", n.STARTING = "STARTING", n.LIVE = "LIVE", n.FINALIZED = "FINALIZED", n))(na || {});
|
|
1871
|
+
const zs = {
|
|
1872
1872
|
ALL: "*",
|
|
1873
1873
|
CORE: "core:**",
|
|
1874
1874
|
LIVE_STREAMING_EVENT: "event:**",
|
|
@@ -1880,30 +1880,30 @@ const js = {
|
|
|
1880
1880
|
SNACK_SIZE_VIDEO_ADMIN: "ssv-admin:**",
|
|
1881
1881
|
UI: "ui:**",
|
|
1882
1882
|
UTILS: "utils:**"
|
|
1883
|
-
},
|
|
1883
|
+
}, Bs = {
|
|
1884
1884
|
EVENT_STATUS_CHANGED: "event:statusChanged"
|
|
1885
1885
|
};
|
|
1886
|
-
var
|
|
1887
|
-
function
|
|
1886
|
+
var ia = /* @__PURE__ */ ((n) => (n.English = "en", n.Spanish = "es", n.Portuguese = "pt", n))(ia || {}), aa = /* @__PURE__ */ ((n) => (n.COMBO = "Combo", n))(aa || {}), sa = /* @__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))(sa || {});
|
|
1887
|
+
function ra(n) {
|
|
1888
1888
|
const e = Object.values(n);
|
|
1889
1889
|
return Object.assign({}, ...e);
|
|
1890
1890
|
}
|
|
1891
|
-
function
|
|
1891
|
+
function oa(n) {
|
|
1892
1892
|
return Object.entries(n).reduce(
|
|
1893
1893
|
(e, [t, i]) => {
|
|
1894
|
-
const a =
|
|
1894
|
+
const a = ra(i);
|
|
1895
1895
|
return { ...e, [t]: a };
|
|
1896
1896
|
},
|
|
1897
1897
|
{}
|
|
1898
1898
|
);
|
|
1899
1899
|
}
|
|
1900
|
-
function
|
|
1901
|
-
const t =
|
|
1900
|
+
function la(n, e) {
|
|
1901
|
+
const t = oa(e);
|
|
1902
1902
|
Object.entries(t).forEach(([i, a]) => {
|
|
1903
1903
|
n.addResourceBundle(i, "translation", a, !0);
|
|
1904
1904
|
});
|
|
1905
1905
|
}
|
|
1906
|
-
function
|
|
1906
|
+
function da(n, e) {
|
|
1907
1907
|
if (!(n instanceof e))
|
|
1908
1908
|
throw new TypeError("Cannot call a class as a function");
|
|
1909
1909
|
}
|
|
@@ -1915,7 +1915,7 @@ function Y(n) {
|
|
|
1915
1915
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
1916
1916
|
}, Y(n);
|
|
1917
1917
|
}
|
|
1918
|
-
function
|
|
1918
|
+
function ua(n, e) {
|
|
1919
1919
|
if (Y(n) !== "object" || n === null)
|
|
1920
1920
|
return n;
|
|
1921
1921
|
var t = n[Symbol.toPrimitive];
|
|
@@ -1927,30 +1927,30 @@ function da(n, e) {
|
|
|
1927
1927
|
}
|
|
1928
1928
|
return (e === "string" ? String : Number)(n);
|
|
1929
1929
|
}
|
|
1930
|
-
function
|
|
1931
|
-
var e =
|
|
1930
|
+
function ca(n) {
|
|
1931
|
+
var e = ua(n, "string");
|
|
1932
1932
|
return Y(e) === "symbol" ? e : String(e);
|
|
1933
1933
|
}
|
|
1934
|
-
function
|
|
1934
|
+
function Xe(n, e) {
|
|
1935
1935
|
for (var t = 0; t < e.length; t++) {
|
|
1936
1936
|
var i = e[t];
|
|
1937
|
-
i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(n,
|
|
1937
|
+
i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(n, ca(i.key), i);
|
|
1938
1938
|
}
|
|
1939
1939
|
}
|
|
1940
|
-
function
|
|
1941
|
-
return e &&
|
|
1940
|
+
function ma(n, e, t) {
|
|
1941
|
+
return e && Xe(n.prototype, e), t && Xe(n, t), Object.defineProperty(n, "prototype", {
|
|
1942
1942
|
writable: !1
|
|
1943
1943
|
}), n;
|
|
1944
1944
|
}
|
|
1945
|
-
var
|
|
1946
|
-
function
|
|
1947
|
-
return
|
|
1945
|
+
var Lt = [], fa = Lt.forEach, pa = Lt.slice;
|
|
1946
|
+
function ha(n) {
|
|
1947
|
+
return fa.call(pa.call(arguments, 1), function(e) {
|
|
1948
1948
|
if (e)
|
|
1949
1949
|
for (var t in e)
|
|
1950
1950
|
n[t] === void 0 && (n[t] = e[t]);
|
|
1951
1951
|
}), n;
|
|
1952
1952
|
}
|
|
1953
|
-
var
|
|
1953
|
+
var Ye = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, ga = function(e, t, i) {
|
|
1954
1954
|
var a = i || {};
|
|
1955
1955
|
a.path = a.path || "/";
|
|
1956
1956
|
var s = encodeURIComponent(t), r = "".concat(e, "=").concat(s);
|
|
@@ -1961,12 +1961,12 @@ var et = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, ha = function(e, t, i) {
|
|
|
1961
1961
|
r += "; Max-Age=".concat(Math.floor(o));
|
|
1962
1962
|
}
|
|
1963
1963
|
if (a.domain) {
|
|
1964
|
-
if (!
|
|
1964
|
+
if (!Ye.test(a.domain))
|
|
1965
1965
|
throw new TypeError("option domain is invalid");
|
|
1966
1966
|
r += "; Domain=".concat(a.domain);
|
|
1967
1967
|
}
|
|
1968
1968
|
if (a.path) {
|
|
1969
|
-
if (!
|
|
1969
|
+
if (!Ye.test(a.path))
|
|
1970
1970
|
throw new TypeError("option path is invalid");
|
|
1971
1971
|
r += "; Path=".concat(a.path);
|
|
1972
1972
|
}
|
|
@@ -1995,13 +1995,13 @@ var et = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, ha = function(e, t, i) {
|
|
|
1995
1995
|
}
|
|
1996
1996
|
}
|
|
1997
1997
|
return r;
|
|
1998
|
-
},
|
|
1998
|
+
}, et = {
|
|
1999
1999
|
create: function(e, t, i, a) {
|
|
2000
2000
|
var s = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
|
|
2001
2001
|
path: "/",
|
|
2002
2002
|
sameSite: "strict"
|
|
2003
2003
|
};
|
|
2004
|
-
i && (s.expires = /* @__PURE__ */ new Date(), s.expires.setTime(s.expires.getTime() + i * 60 * 1e3)), a && (s.domain = a), document.cookie =
|
|
2004
|
+
i && (s.expires = /* @__PURE__ */ new Date(), s.expires.setTime(s.expires.getTime() + i * 60 * 1e3)), a && (s.domain = a), document.cookie = ga(e, encodeURIComponent(t), s);
|
|
2005
2005
|
},
|
|
2006
2006
|
read: function(e) {
|
|
2007
2007
|
for (var t = "".concat(e, "="), i = document.cookie.split(";"), a = 0; a < i.length; a++) {
|
|
@@ -2015,20 +2015,20 @@ var et = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, ha = function(e, t, i) {
|
|
|
2015
2015
|
remove: function(e) {
|
|
2016
2016
|
this.create(e, "", -1);
|
|
2017
2017
|
}
|
|
2018
|
-
},
|
|
2018
|
+
}, ka = {
|
|
2019
2019
|
name: "cookie",
|
|
2020
2020
|
lookup: function(e) {
|
|
2021
2021
|
var t;
|
|
2022
2022
|
if (e.lookupCookie && typeof document != "undefined") {
|
|
2023
|
-
var i =
|
|
2023
|
+
var i = et.read(e.lookupCookie);
|
|
2024
2024
|
i && (t = i);
|
|
2025
2025
|
}
|
|
2026
2026
|
return t;
|
|
2027
2027
|
},
|
|
2028
2028
|
cacheUserLanguage: function(e, t) {
|
|
2029
|
-
t.lookupCookie && typeof document != "undefined" &&
|
|
2029
|
+
t.lookupCookie && typeof document != "undefined" && et.create(t.lookupCookie, e, t.cookieMinutes, t.cookieDomain, t.cookieOptions);
|
|
2030
2030
|
}
|
|
2031
|
-
},
|
|
2031
|
+
}, va = {
|
|
2032
2032
|
name: "querystring",
|
|
2033
2033
|
lookup: function(e) {
|
|
2034
2034
|
var t;
|
|
@@ -2045,55 +2045,55 @@ var et = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, ha = function(e, t, i) {
|
|
|
2045
2045
|
}
|
|
2046
2046
|
return t;
|
|
2047
2047
|
}
|
|
2048
|
-
},
|
|
2049
|
-
if (
|
|
2050
|
-
return
|
|
2048
|
+
}, q = null, tt = function() {
|
|
2049
|
+
if (q !== null)
|
|
2050
|
+
return q;
|
|
2051
2051
|
try {
|
|
2052
|
-
|
|
2052
|
+
q = window !== "undefined" && window.localStorage !== null;
|
|
2053
2053
|
var e = "i18next.translate.boo";
|
|
2054
2054
|
window.localStorage.setItem(e, "foo"), window.localStorage.removeItem(e);
|
|
2055
2055
|
} catch {
|
|
2056
|
-
|
|
2056
|
+
q = !1;
|
|
2057
2057
|
}
|
|
2058
|
-
return
|
|
2059
|
-
},
|
|
2058
|
+
return q;
|
|
2059
|
+
}, Sa = {
|
|
2060
2060
|
name: "localStorage",
|
|
2061
2061
|
lookup: function(e) {
|
|
2062
2062
|
var t;
|
|
2063
|
-
if (e.lookupLocalStorage &&
|
|
2063
|
+
if (e.lookupLocalStorage && tt()) {
|
|
2064
2064
|
var i = window.localStorage.getItem(e.lookupLocalStorage);
|
|
2065
2065
|
i && (t = i);
|
|
2066
2066
|
}
|
|
2067
2067
|
return t;
|
|
2068
2068
|
},
|
|
2069
2069
|
cacheUserLanguage: function(e, t) {
|
|
2070
|
-
t.lookupLocalStorage &&
|
|
2070
|
+
t.lookupLocalStorage && tt() && window.localStorage.setItem(t.lookupLocalStorage, e);
|
|
2071
2071
|
}
|
|
2072
|
-
},
|
|
2073
|
-
if (
|
|
2074
|
-
return
|
|
2072
|
+
}, H = null, nt = function() {
|
|
2073
|
+
if (H !== null)
|
|
2074
|
+
return H;
|
|
2075
2075
|
try {
|
|
2076
|
-
|
|
2076
|
+
H = window !== "undefined" && window.sessionStorage !== null;
|
|
2077
2077
|
var e = "i18next.translate.boo";
|
|
2078
2078
|
window.sessionStorage.setItem(e, "foo"), window.sessionStorage.removeItem(e);
|
|
2079
2079
|
} catch {
|
|
2080
|
-
|
|
2080
|
+
H = !1;
|
|
2081
2081
|
}
|
|
2082
|
-
return
|
|
2083
|
-
},
|
|
2082
|
+
return H;
|
|
2083
|
+
}, ya = {
|
|
2084
2084
|
name: "sessionStorage",
|
|
2085
2085
|
lookup: function(e) {
|
|
2086
2086
|
var t;
|
|
2087
|
-
if (e.lookupSessionStorage &&
|
|
2087
|
+
if (e.lookupSessionStorage && nt()) {
|
|
2088
2088
|
var i = window.sessionStorage.getItem(e.lookupSessionStorage);
|
|
2089
2089
|
i && (t = i);
|
|
2090
2090
|
}
|
|
2091
2091
|
return t;
|
|
2092
2092
|
},
|
|
2093
2093
|
cacheUserLanguage: function(e, t) {
|
|
2094
|
-
t.lookupSessionStorage &&
|
|
2094
|
+
t.lookupSessionStorage && nt() && window.sessionStorage.setItem(t.lookupSessionStorage, e);
|
|
2095
2095
|
}
|
|
2096
|
-
},
|
|
2096
|
+
}, Na = {
|
|
2097
2097
|
name: "navigator",
|
|
2098
2098
|
lookup: function(e) {
|
|
2099
2099
|
var t = [];
|
|
@@ -2105,13 +2105,13 @@ var et = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, ha = function(e, t, i) {
|
|
|
2105
2105
|
}
|
|
2106
2106
|
return t.length > 0 ? t : void 0;
|
|
2107
2107
|
}
|
|
2108
|
-
},
|
|
2108
|
+
}, ba = {
|
|
2109
2109
|
name: "htmlTag",
|
|
2110
2110
|
lookup: function(e) {
|
|
2111
2111
|
var t, i = e.htmlTag || (typeof document != "undefined" ? document.documentElement : null);
|
|
2112
2112
|
return i && typeof i.getAttribute == "function" && (t = i.getAttribute("lang")), t;
|
|
2113
2113
|
}
|
|
2114
|
-
},
|
|
2114
|
+
}, Fa = {
|
|
2115
2115
|
name: "path",
|
|
2116
2116
|
lookup: function(e) {
|
|
2117
2117
|
var t;
|
|
@@ -2127,7 +2127,7 @@ var et = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, ha = function(e, t, i) {
|
|
|
2127
2127
|
}
|
|
2128
2128
|
return t;
|
|
2129
2129
|
}
|
|
2130
|
-
},
|
|
2130
|
+
}, wa = {
|
|
2131
2131
|
name: "subdomain",
|
|
2132
2132
|
lookup: function(e) {
|
|
2133
2133
|
var t = typeof e.lookupFromSubdomainIndex == "number" ? e.lookupFromSubdomainIndex + 1 : 1, i = typeof window != "undefined" && window.location && window.location.hostname && window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);
|
|
@@ -2135,7 +2135,7 @@ var et = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, ha = function(e, t, i) {
|
|
|
2135
2135
|
return i[t];
|
|
2136
2136
|
}
|
|
2137
2137
|
};
|
|
2138
|
-
function
|
|
2138
|
+
function Ca() {
|
|
2139
2139
|
return {
|
|
2140
2140
|
order: ["querystring", "cookie", "localStorage", "sessionStorage", "navigator", "htmlTag"],
|
|
2141
2141
|
lookupQuerystring: "lng",
|
|
@@ -2152,20 +2152,20 @@ function wa() {
|
|
|
2152
2152
|
}
|
|
2153
2153
|
};
|
|
2154
2154
|
}
|
|
2155
|
-
var
|
|
2155
|
+
var At = /* @__PURE__ */ function() {
|
|
2156
2156
|
function n(e) {
|
|
2157
2157
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
2158
|
-
|
|
2158
|
+
da(this, n), this.type = "languageDetector", this.detectors = {}, this.init(e, t);
|
|
2159
2159
|
}
|
|
2160
|
-
return
|
|
2160
|
+
return ma(n, [{
|
|
2161
2161
|
key: "init",
|
|
2162
2162
|
value: function(t) {
|
|
2163
2163
|
var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
2164
2164
|
this.services = t || {
|
|
2165
2165
|
languageUtils: {}
|
|
2166
|
-
}, this.options =
|
|
2166
|
+
}, this.options = ha(i, this.options || {}, Ca()), typeof this.options.convertDetectedLanguage == "string" && this.options.convertDetectedLanguage.indexOf("15897") > -1 && (this.options.convertDetectedLanguage = function(s) {
|
|
2167
2167
|
return s.replace("-", "_");
|
|
2168
|
-
}), this.options.lookupFromUrlIndex && (this.options.lookupFromPathIndex = this.options.lookupFromUrlIndex), this.i18nOptions = a, this.addDetector(
|
|
2168
|
+
}), this.options.lookupFromUrlIndex && (this.options.lookupFromPathIndex = this.options.lookupFromUrlIndex), this.i18nOptions = a, this.addDetector(ka), this.addDetector(va), this.addDetector(Sa), this.addDetector(ya), this.addDetector(Na), this.addDetector(ba), this.addDetector(Fa), this.addDetector(wa);
|
|
2169
2169
|
}
|
|
2170
2170
|
}, {
|
|
2171
2171
|
key: "addDetector",
|
|
@@ -2197,9 +2197,9 @@ var Pt = /* @__PURE__ */ function() {
|
|
|
2197
2197
|
}
|
|
2198
2198
|
}]), n;
|
|
2199
2199
|
}();
|
|
2200
|
-
|
|
2201
|
-
function
|
|
2202
|
-
n.use(e).use(
|
|
2200
|
+
At.type = "languageDetector";
|
|
2201
|
+
function Ea(n, e) {
|
|
2202
|
+
n.use(e).use(At).init({
|
|
2203
2203
|
resources: {},
|
|
2204
2204
|
fallbackLng: "en",
|
|
2205
2205
|
debug: !1,
|
|
@@ -2238,7 +2238,7 @@ function Ca(n, e) {
|
|
|
2238
2238
|
}
|
|
2239
2239
|
});
|
|
2240
2240
|
}
|
|
2241
|
-
const
|
|
2241
|
+
const xa = {
|
|
2242
2242
|
type: "logger",
|
|
2243
2243
|
log(n) {
|
|
2244
2244
|
this.output("log", n);
|
|
@@ -2260,7 +2260,7 @@ class le {
|
|
|
2260
2260
|
}
|
|
2261
2261
|
init(e) {
|
|
2262
2262
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
2263
|
-
this.prefix = t.prefix || "i18next:", this.logger = e ||
|
|
2263
|
+
this.prefix = t.prefix || "i18next:", this.logger = e || xa, this.options = t, this.debug = t.debug;
|
|
2264
2264
|
}
|
|
2265
2265
|
log() {
|
|
2266
2266
|
for (var e = arguments.length, t = new Array(e), i = 0; i < e; i++)
|
|
@@ -2295,7 +2295,7 @@ class le {
|
|
|
2295
2295
|
return e = e || this.options, e.prefix = e.prefix || this.prefix, new le(this.logger, e);
|
|
2296
2296
|
}
|
|
2297
2297
|
}
|
|
2298
|
-
var
|
|
2298
|
+
var j = new le();
|
|
2299
2299
|
class ge {
|
|
2300
2300
|
constructor() {
|
|
2301
2301
|
this.observers = {};
|
|
@@ -2324,22 +2324,22 @@ class ge {
|
|
|
2324
2324
|
});
|
|
2325
2325
|
}
|
|
2326
2326
|
}
|
|
2327
|
-
function
|
|
2327
|
+
function Z() {
|
|
2328
2328
|
let n, e;
|
|
2329
2329
|
const t = new Promise((i, a) => {
|
|
2330
2330
|
n = i, e = a;
|
|
2331
2331
|
});
|
|
2332
2332
|
return t.resolve = n, t.reject = e, t;
|
|
2333
2333
|
}
|
|
2334
|
-
function
|
|
2334
|
+
function it(n) {
|
|
2335
2335
|
return n == null ? "" : "" + n;
|
|
2336
2336
|
}
|
|
2337
|
-
function
|
|
2337
|
+
function Oa(n, e, t) {
|
|
2338
2338
|
n.forEach((i) => {
|
|
2339
2339
|
e[i] && (t[i] = e[i]);
|
|
2340
2340
|
});
|
|
2341
2341
|
}
|
|
2342
|
-
function
|
|
2342
|
+
function De(n, e, t) {
|
|
2343
2343
|
function i(r) {
|
|
2344
2344
|
return r && r.indexOf("###") > -1 ? r.replace(/###/g, ".") : r;
|
|
2345
2345
|
}
|
|
@@ -2358,41 +2358,41 @@ function Ie(n, e, t) {
|
|
|
2358
2358
|
k: i(s.shift())
|
|
2359
2359
|
};
|
|
2360
2360
|
}
|
|
2361
|
-
function
|
|
2361
|
+
function at(n, e, t) {
|
|
2362
2362
|
const {
|
|
2363
2363
|
obj: i,
|
|
2364
2364
|
k: a
|
|
2365
|
-
} =
|
|
2365
|
+
} = De(n, e, Object);
|
|
2366
2366
|
i[a] = t;
|
|
2367
2367
|
}
|
|
2368
|
-
function
|
|
2368
|
+
function Ra(n, e, t, i) {
|
|
2369
2369
|
const {
|
|
2370
2370
|
obj: a,
|
|
2371
2371
|
k: s
|
|
2372
|
-
} =
|
|
2372
|
+
} = De(n, e, Object);
|
|
2373
2373
|
a[s] = a[s] || [], i && (a[s] = a[s].concat(t)), i || a[s].push(t);
|
|
2374
2374
|
}
|
|
2375
2375
|
function de(n, e) {
|
|
2376
2376
|
const {
|
|
2377
2377
|
obj: t,
|
|
2378
2378
|
k: i
|
|
2379
|
-
} =
|
|
2379
|
+
} = De(n, e);
|
|
2380
2380
|
if (t)
|
|
2381
2381
|
return t[i];
|
|
2382
2382
|
}
|
|
2383
|
-
function
|
|
2383
|
+
function Ta(n, e, t) {
|
|
2384
2384
|
const i = de(n, t);
|
|
2385
2385
|
return i !== void 0 ? i : de(e, t);
|
|
2386
2386
|
}
|
|
2387
|
-
function
|
|
2387
|
+
function Pt(n, e, t) {
|
|
2388
2388
|
for (const i in e)
|
|
2389
|
-
i !== "__proto__" && i !== "constructor" && (i in n ? typeof n[i] == "string" || n[i] instanceof String || typeof e[i] == "string" || e[i] instanceof String ? t && (n[i] = e[i]) :
|
|
2389
|
+
i !== "__proto__" && i !== "constructor" && (i in n ? typeof n[i] == "string" || n[i] instanceof String || typeof e[i] == "string" || e[i] instanceof String ? t && (n[i] = e[i]) : Pt(n[i], e[i], t) : n[i] = e[i]);
|
|
2390
2390
|
return n;
|
|
2391
2391
|
}
|
|
2392
2392
|
function B(n) {
|
|
2393
2393
|
return n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
|
|
2394
2394
|
}
|
|
2395
|
-
var
|
|
2395
|
+
var Ia = {
|
|
2396
2396
|
"&": "&",
|
|
2397
2397
|
"<": "<",
|
|
2398
2398
|
">": ">",
|
|
@@ -2401,12 +2401,12 @@ var Ta = {
|
|
|
2401
2401
|
"/": "/"
|
|
2402
2402
|
};
|
|
2403
2403
|
function Da(n) {
|
|
2404
|
-
return typeof n == "string" ? n.replace(/[&<>"'\/]/g, (e) =>
|
|
2404
|
+
return typeof n == "string" ? n.replace(/[&<>"'\/]/g, (e) => Ia[e]) : n;
|
|
2405
2405
|
}
|
|
2406
|
-
const
|
|
2407
|
-
function
|
|
2406
|
+
const La = [" ", ",", "?", "!", ";"];
|
|
2407
|
+
function Aa(n, e, t) {
|
|
2408
2408
|
e = e || "", t = t || "";
|
|
2409
|
-
const i =
|
|
2409
|
+
const i = La.filter((r) => e.indexOf(r) < 0 && t.indexOf(r) < 0);
|
|
2410
2410
|
if (i.length === 0)
|
|
2411
2411
|
return !0;
|
|
2412
2412
|
const a = new RegExp(`(${i.map((r) => r === "?" ? "\\?" : r).join("|")})`);
|
|
@@ -2452,7 +2452,7 @@ function ue(n, e) {
|
|
|
2452
2452
|
function ce(n) {
|
|
2453
2453
|
return n && n.indexOf("_") > 0 ? n.replace("_", "-") : n;
|
|
2454
2454
|
}
|
|
2455
|
-
class
|
|
2455
|
+
class st extends ge {
|
|
2456
2456
|
constructor(e) {
|
|
2457
2457
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
2458
2458
|
ns: ["translation"],
|
|
@@ -2481,7 +2481,7 @@ class rt extends ge {
|
|
|
2481
2481
|
};
|
|
2482
2482
|
const r = s.keySeparator !== void 0 ? s.keySeparator : this.options.keySeparator;
|
|
2483
2483
|
let o = [e, t];
|
|
2484
|
-
i && (o = o.concat(r ? i.split(r) : i)), e.indexOf(".") > -1 && (o = e.split("."), a = t, t = o[1]), this.addNamespaces(t),
|
|
2484
|
+
i && (o = o.concat(r ? i.split(r) : i)), e.indexOf(".") > -1 && (o = e.split("."), a = t, t = o[1]), this.addNamespaces(t), at(this.data, o, a), s.silent || this.emit("added", e, t, i, a);
|
|
2485
2485
|
}
|
|
2486
2486
|
addResources(e, t, i) {
|
|
2487
2487
|
let a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {
|
|
@@ -2499,10 +2499,10 @@ class rt extends ge {
|
|
|
2499
2499
|
}, o = [e, t];
|
|
2500
2500
|
e.indexOf(".") > -1 && (o = e.split("."), a = i, i = t, t = o[1]), this.addNamespaces(t);
|
|
2501
2501
|
let l = de(this.data, o) || {};
|
|
2502
|
-
a ?
|
|
2502
|
+
a ? Pt(l, i, s) : l = {
|
|
2503
2503
|
...l,
|
|
2504
2504
|
...i
|
|
2505
|
-
},
|
|
2505
|
+
}, at(this.data, o, l), r.silent || this.emit("added", e, t, i);
|
|
2506
2506
|
}
|
|
2507
2507
|
removeResourceBundle(e, t) {
|
|
2508
2508
|
this.hasResourceBundle(e, t) && delete this.data[e][t], this.removeNamespaces(t), this.emit("removed", e, t);
|
|
@@ -2526,7 +2526,7 @@ class rt extends ge {
|
|
|
2526
2526
|
return this.data;
|
|
2527
2527
|
}
|
|
2528
2528
|
}
|
|
2529
|
-
var
|
|
2529
|
+
var Vt = {
|
|
2530
2530
|
processors: {},
|
|
2531
2531
|
addPostProcessor(n) {
|
|
2532
2532
|
this.processors[n.name] = n;
|
|
@@ -2537,11 +2537,11 @@ var _t = {
|
|
|
2537
2537
|
}), e;
|
|
2538
2538
|
}
|
|
2539
2539
|
};
|
|
2540
|
-
const
|
|
2540
|
+
const rt = {};
|
|
2541
2541
|
class me extends ge {
|
|
2542
2542
|
constructor(e) {
|
|
2543
2543
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
2544
|
-
super(),
|
|
2544
|
+
super(), Oa(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = j.create("translator");
|
|
2545
2545
|
}
|
|
2546
2546
|
changeLanguage(e) {
|
|
2547
2547
|
e && (this.language = e);
|
|
@@ -2560,7 +2560,7 @@ class me extends ge {
|
|
|
2560
2560
|
i === void 0 && (i = ":");
|
|
2561
2561
|
const a = t.keySeparator !== void 0 ? t.keySeparator : this.options.keySeparator;
|
|
2562
2562
|
let s = t.ns || this.options.defaultNS || [];
|
|
2563
|
-
const r = i && e.indexOf(i) > -1, o = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !
|
|
2563
|
+
const r = i && e.indexOf(i) > -1, o = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !Aa(e, i, a);
|
|
2564
2564
|
if (r && !o) {
|
|
2565
2565
|
const l = e.match(this.interpolator.nestingRegexp);
|
|
2566
2566
|
if (l && l.length > 0)
|
|
@@ -2620,28 +2620,28 @@ class me extends ge {
|
|
|
2620
2620
|
return a ? (f.res = w, f.usedParams = this.getUsedParamsDetails(t), f) : w;
|
|
2621
2621
|
}
|
|
2622
2622
|
if (s) {
|
|
2623
|
-
const w = k === "[object Array]",
|
|
2623
|
+
const w = k === "[object Array]", D = w ? [] : {}, L = w ? y : S;
|
|
2624
2624
|
for (const A in c)
|
|
2625
2625
|
if (Object.prototype.hasOwnProperty.call(c, A)) {
|
|
2626
2626
|
const m = `${L}${s}${A}`;
|
|
2627
|
-
|
|
2627
|
+
D[A] = this.translate(m, {
|
|
2628
2628
|
...t,
|
|
2629
2629
|
joinArrays: !1,
|
|
2630
2630
|
ns: o
|
|
2631
|
-
}),
|
|
2631
|
+
}), D[A] === m && (D[A] = c[A]);
|
|
2632
2632
|
}
|
|
2633
|
-
c =
|
|
2633
|
+
c = D;
|
|
2634
2634
|
}
|
|
2635
2635
|
} else if (F && typeof O == "string" && k === "[object Array]")
|
|
2636
2636
|
c = c.join(O), c && (c = this.extendTranslation(c, e, t, i));
|
|
2637
2637
|
else {
|
|
2638
|
-
let w = !1,
|
|
2638
|
+
let w = !1, D = !1;
|
|
2639
2639
|
const L = t.count !== void 0 && typeof t.count != "string", A = me.hasDefaultValue(t), m = L ? this.pluralResolver.getSuffix(u, t.count, t) : "", p = t.ordinal && L ? this.pluralResolver.getSuffix(u, t.count, {
|
|
2640
2640
|
ordinal: !1
|
|
2641
2641
|
}) : "", h = t[`defaultValue${m}`] || t[`defaultValue${p}`] || t.defaultValue;
|
|
2642
|
-
!this.isValidLookup(c) && A && (w = !0, c = h), this.isValidLookup(c) || (
|
|
2643
|
-
const b = (t.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) &&
|
|
2644
|
-
if (
|
|
2642
|
+
!this.isValidLookup(c) && A && (w = !0, c = h), this.isValidLookup(c) || (D = !0, c = r);
|
|
2643
|
+
const b = (t.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && D ? void 0 : c, C = A && h !== c && this.options.updateMissing;
|
|
2644
|
+
if (D || w || C) {
|
|
2645
2645
|
if (this.logger.log(C ? "updateKey" : "missingKey", u, l, r, C ? h : c), s) {
|
|
2646
2646
|
const x = this.resolve(r, {
|
|
2647
2647
|
...t,
|
|
@@ -2666,7 +2666,7 @@ class me extends ge {
|
|
|
2666
2666
|
});
|
|
2667
2667
|
}) : P(v, r, h));
|
|
2668
2668
|
}
|
|
2669
|
-
c = this.extendTranslation(c, e, t, f, i),
|
|
2669
|
+
c = this.extendTranslation(c, e, t, f, i), D && c === r && this.options.appendNamespaceToMissingKey && (c = `${l}:${r}`), (D || w) && this.options.parseMissingKeyHandler && (this.options.compatibilityAPI !== "v1" ? c = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${l}:${r}` : r, w ? c : void 0) : c = this.options.parseMissingKeyHandler(c));
|
|
2670
2670
|
}
|
|
2671
2671
|
return a ? (f.res = c, f.usedParams = this.getUsedParamsDetails(t), f) : c;
|
|
2672
2672
|
}
|
|
@@ -2708,7 +2708,7 @@ class me extends ge {
|
|
|
2708
2708
|
}, i)), i.interpolation && this.interpolator.reset();
|
|
2709
2709
|
}
|
|
2710
2710
|
const o = i.postProcess || this.options.postProcess, l = typeof o == "string" ? [o] : o;
|
|
2711
|
-
return e != null && l && l.length && i.applyPostProcessor !== !1 && (e =
|
|
2711
|
+
return e != null && l && l.length && i.applyPostProcessor !== !1 && (e = Vt.handle(l, e, t, this.options && this.options.postProcessPassResolved ? {
|
|
2712
2712
|
i18nResolved: {
|
|
2713
2713
|
...a,
|
|
2714
2714
|
usedParams: this.getUsedParamsDetails(i)
|
|
@@ -2727,7 +2727,7 @@ class me extends ge {
|
|
|
2727
2727
|
this.options.fallbackNS && (f = f.concat(this.options.fallbackNS));
|
|
2728
2728
|
const c = t.count !== void 0 && typeof t.count != "string", S = 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);
|
|
2729
2729
|
f.forEach((N) => {
|
|
2730
|
-
this.isValidLookup(i) || (o = N, !
|
|
2730
|
+
this.isValidLookup(i) || (o = N, !rt[`${k[0]}-${N}`] && this.utils && this.utils.hasLoadedNamespace && !this.utils.hasLoadedNamespace(o) && (rt[`${k[0]}-${N}`] = !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((O) => {
|
|
2731
2731
|
if (this.isValidLookup(i))
|
|
2732
2732
|
return;
|
|
2733
2733
|
r = O;
|
|
@@ -2737,15 +2737,15 @@ class me extends ge {
|
|
|
2737
2737
|
else {
|
|
2738
2738
|
let w;
|
|
2739
2739
|
c && (w = this.pluralResolver.getSuffix(O, t.count, t));
|
|
2740
|
-
const
|
|
2741
|
-
if (c && (F.push(d + w), t.ordinal && w.indexOf(L) === 0 && F.push(d + w.replace(L, this.options.pluralSeparator)), S && F.push(d +
|
|
2740
|
+
const D = `${this.options.pluralSeparator}zero`, L = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
|
|
2741
|
+
if (c && (F.push(d + w), t.ordinal && w.indexOf(L) === 0 && F.push(d + w.replace(L, this.options.pluralSeparator)), S && F.push(d + D)), y) {
|
|
2742
2742
|
const A = `${d}${this.options.contextSeparator}${t.context}`;
|
|
2743
|
-
F.push(A), c && (F.push(A + w), t.ordinal && w.indexOf(L) === 0 && F.push(A + w.replace(L, this.options.pluralSeparator)), S && F.push(A +
|
|
2743
|
+
F.push(A), c && (F.push(A + w), t.ordinal && w.indexOf(L) === 0 && F.push(A + w.replace(L, this.options.pluralSeparator)), S && F.push(A + D));
|
|
2744
2744
|
}
|
|
2745
2745
|
}
|
|
2746
|
-
let
|
|
2747
|
-
for (;
|
|
2748
|
-
this.isValidLookup(i) || (s =
|
|
2746
|
+
let I;
|
|
2747
|
+
for (; I = F.pop(); )
|
|
2748
|
+
this.isValidLookup(i) || (s = I, i = this.getResource(O, N, I, t));
|
|
2749
2749
|
}));
|
|
2750
2750
|
});
|
|
2751
2751
|
}), {
|
|
@@ -2790,9 +2790,9 @@ class me extends ge {
|
|
|
2790
2790
|
function Ne(n) {
|
|
2791
2791
|
return n.charAt(0).toUpperCase() + n.slice(1);
|
|
2792
2792
|
}
|
|
2793
|
-
class
|
|
2793
|
+
class ot {
|
|
2794
2794
|
constructor(e) {
|
|
2795
|
-
this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger =
|
|
2795
|
+
this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = j.create("languageUtils");
|
|
2796
2796
|
}
|
|
2797
2797
|
getScriptPartFromCode(e) {
|
|
2798
2798
|
if (e = ce(e), !e || e.indexOf("-") < 0)
|
|
@@ -2859,7 +2859,7 @@ class lt {
|
|
|
2859
2859
|
}), a;
|
|
2860
2860
|
}
|
|
2861
2861
|
}
|
|
2862
|
-
let
|
|
2862
|
+
let Pa = [{
|
|
2863
2863
|
lngs: ["ach", "ak", "am", "arn", "br", "fil", "gun", "ln", "mfe", "mg", "mi", "oc", "pt", "pt-BR", "tg", "tl", "ti", "tr", "uz", "wa"],
|
|
2864
2864
|
nr: [1, 2],
|
|
2865
2865
|
fc: 1
|
|
@@ -2951,7 +2951,7 @@ let Aa = [{
|
|
|
2951
2951
|
lngs: ["he", "iw"],
|
|
2952
2952
|
nr: [1, 2, 20, 21],
|
|
2953
2953
|
fc: 22
|
|
2954
|
-
}],
|
|
2954
|
+
}], Va = {
|
|
2955
2955
|
1: function(n) {
|
|
2956
2956
|
return +(n > 1);
|
|
2957
2957
|
},
|
|
@@ -3019,7 +3019,7 @@ let Aa = [{
|
|
|
3019
3019
|
return n == 1 ? 0 : n == 2 ? 1 : (n < 0 || n > 10) && n % 10 == 0 ? 2 : 3;
|
|
3020
3020
|
}
|
|
3021
3021
|
};
|
|
3022
|
-
const
|
|
3022
|
+
const _a = ["v1", "v2", "v3"], Ua = ["v4"], lt = {
|
|
3023
3023
|
zero: 0,
|
|
3024
3024
|
one: 1,
|
|
3025
3025
|
two: 2,
|
|
@@ -3027,21 +3027,21 @@ const Va = ["v1", "v2", "v3"], _a = ["v4"], dt = {
|
|
|
3027
3027
|
many: 4,
|
|
3028
3028
|
other: 5
|
|
3029
3029
|
};
|
|
3030
|
-
function
|
|
3030
|
+
function Ma() {
|
|
3031
3031
|
const n = {};
|
|
3032
|
-
return
|
|
3032
|
+
return Pa.forEach((e) => {
|
|
3033
3033
|
e.lngs.forEach((t) => {
|
|
3034
3034
|
n[t] = {
|
|
3035
3035
|
numbers: e.nr,
|
|
3036
|
-
plurals:
|
|
3036
|
+
plurals: Va[e.fc]
|
|
3037
3037
|
};
|
|
3038
3038
|
});
|
|
3039
3039
|
}), n;
|
|
3040
3040
|
}
|
|
3041
|
-
class
|
|
3041
|
+
class $a {
|
|
3042
3042
|
constructor(e) {
|
|
3043
3043
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
3044
|
-
this.languageUtils = e, this.options = t, this.logger =
|
|
3044
|
+
this.languageUtils = e, this.options = t, this.logger = j.create("pluralResolver"), (!this.options.compatibilityJSON || Ua.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 = Ma();
|
|
3045
3045
|
}
|
|
3046
3046
|
addRule(e, t) {
|
|
3047
3047
|
this.rules[e] = t;
|
|
@@ -3070,7 +3070,7 @@ class Ma {
|
|
|
3070
3070
|
getSuffixes(e) {
|
|
3071
3071
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
3072
3072
|
const i = this.getRule(e, t);
|
|
3073
|
-
return i ? this.shouldUseIntlApi() ? i.resolvedOptions().pluralCategories.sort((a, s) =>
|
|
3073
|
+
return i ? this.shouldUseIntlApi() ? i.resolvedOptions().pluralCategories.sort((a, s) => lt[a] - lt[s]).map((a) => `${this.options.prepend}${t.ordinal ? `ordinal${this.options.prepend}` : ""}${a}`) : i.numbers.map((a) => this.getSuffix(e, a, t)) : [];
|
|
3074
3074
|
}
|
|
3075
3075
|
getSuffix(e, t) {
|
|
3076
3076
|
let i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
@@ -3085,17 +3085,17 @@ class Ma {
|
|
|
3085
3085
|
return this.options.compatibilityJSON === "v1" ? a === 1 ? "" : typeof a == "number" ? `_plural_${a.toString()}` : s() : this.options.compatibilityJSON === "v2" || this.options.simplifyPluralSuffix && e.numbers.length === 2 && e.numbers[0] === 1 ? s() : this.options.prepend && i.toString() ? this.options.prepend + i.toString() : i.toString();
|
|
3086
3086
|
}
|
|
3087
3087
|
shouldUseIntlApi() {
|
|
3088
|
-
return !
|
|
3088
|
+
return !_a.includes(this.options.compatibilityJSON);
|
|
3089
3089
|
}
|
|
3090
3090
|
}
|
|
3091
|
-
function
|
|
3092
|
-
let i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", a = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, s =
|
|
3091
|
+
function dt(n, e, t) {
|
|
3092
|
+
let i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", a = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, s = Ta(n, e, t);
|
|
3093
3093
|
return !s && a && typeof t == "string" && (s = ue(n, t, i), s === void 0 && (s = ue(e, t, i))), s;
|
|
3094
3094
|
}
|
|
3095
|
-
class
|
|
3095
|
+
class ja {
|
|
3096
3096
|
constructor() {
|
|
3097
3097
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
3098
|
-
this.logger =
|
|
3098
|
+
this.logger = j.create("interpolator"), this.options = e, this.format = e.interpolation && e.interpolation.format || ((t) => t), this.init(e);
|
|
3099
3099
|
}
|
|
3100
3100
|
init() {
|
|
3101
3101
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
@@ -3124,7 +3124,7 @@ class $a {
|
|
|
3124
3124
|
}
|
|
3125
3125
|
const d = (y) => {
|
|
3126
3126
|
if (y.indexOf(this.formatSeparator) < 0) {
|
|
3127
|
-
const F =
|
|
3127
|
+
const F = dt(t, l, y, this.options.keySeparator, this.options.ignoreJSONStructure);
|
|
3128
3128
|
return this.alwaysFormat ? this.format(F, void 0, i, {
|
|
3129
3129
|
...a,
|
|
3130
3130
|
...t,
|
|
@@ -3132,7 +3132,7 @@ class $a {
|
|
|
3132
3132
|
}) : F;
|
|
3133
3133
|
}
|
|
3134
3134
|
const k = y.split(this.formatSeparator), N = k.shift().trim(), O = k.join(this.formatSeparator).trim();
|
|
3135
|
-
return this.format(
|
|
3135
|
+
return this.format(dt(t, l, N, this.options.keySeparator, this.options.ignoreJSONStructure), O, i, {
|
|
3136
3136
|
...a,
|
|
3137
3137
|
...t,
|
|
3138
3138
|
interpolationkey: N
|
|
@@ -3161,7 +3161,7 @@ class $a {
|
|
|
3161
3161
|
} else
|
|
3162
3162
|
this.logger.warn(`missed to pass in variable ${k} for interpolating ${e}`), r = "";
|
|
3163
3163
|
else
|
|
3164
|
-
typeof r != "string" && !this.useRawValueToEscape && (r =
|
|
3164
|
+
typeof r != "string" && !this.useRawValueToEscape && (r = it(r));
|
|
3165
3165
|
const N = y.safeValue(r);
|
|
3166
3166
|
if (e = e.replace(s[0], N), c ? (y.regex.lastIndex += r.length, y.regex.lastIndex -= s[0].length) : y.regex.lastIndex = 0, o++, o >= this.maxReplaces)
|
|
3167
3167
|
break;
|
|
@@ -3201,7 +3201,7 @@ class $a {
|
|
|
3201
3201
|
}
|
|
3202
3202
|
if (s = t(o.call(this, a[1].trim(), r), r), s && a[0] === e && typeof s != "string")
|
|
3203
3203
|
return s;
|
|
3204
|
-
typeof s != "string" && (s =
|
|
3204
|
+
typeof s != "string" && (s = it(s)), s || (this.logger.warn(`missed to resolve ${a[1]} for nesting ${e}`), s = ""), u && (s = l.reduce((d, f) => this.format(d, f, i.lng, {
|
|
3205
3205
|
...i,
|
|
3206
3206
|
interpolationkey: a[1].trim()
|
|
3207
3207
|
}), s.trim())), e = e.replace(a[0], s), this.regexp.lastIndex = 0;
|
|
@@ -3209,7 +3209,7 @@ class $a {
|
|
|
3209
3209
|
return e;
|
|
3210
3210
|
}
|
|
3211
3211
|
}
|
|
3212
|
-
function
|
|
3212
|
+
function za(n) {
|
|
3213
3213
|
let e = n.toLowerCase().trim();
|
|
3214
3214
|
const t = {};
|
|
3215
3215
|
if (n.indexOf("(") > -1) {
|
|
@@ -3236,10 +3236,10 @@ function Q(n) {
|
|
|
3236
3236
|
return o || (o = n(ce(a), s), e[r] = o), o(i);
|
|
3237
3237
|
};
|
|
3238
3238
|
}
|
|
3239
|
-
class
|
|
3239
|
+
class Ba {
|
|
3240
3240
|
constructor() {
|
|
3241
3241
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
3242
|
-
this.logger =
|
|
3242
|
+
this.logger = j.create("formatter"), this.options = e, this.formats = {
|
|
3243
3243
|
number: Q((t, i) => {
|
|
3244
3244
|
const a = new Intl.NumberFormat(t, {
|
|
3245
3245
|
...i
|
|
@@ -3291,7 +3291,7 @@ class za {
|
|
|
3291
3291
|
const {
|
|
3292
3292
|
formatName: u,
|
|
3293
3293
|
formatOptions: d
|
|
3294
|
-
} =
|
|
3294
|
+
} = za(l);
|
|
3295
3295
|
if (this.formats[u]) {
|
|
3296
3296
|
let f = o;
|
|
3297
3297
|
try {
|
|
@@ -3311,13 +3311,13 @@ class za {
|
|
|
3311
3311
|
}, e);
|
|
3312
3312
|
}
|
|
3313
3313
|
}
|
|
3314
|
-
function
|
|
3314
|
+
function Qa(n, e) {
|
|
3315
3315
|
n.pending[e] !== void 0 && (delete n.pending[e], n.pendingCount--);
|
|
3316
3316
|
}
|
|
3317
|
-
class
|
|
3317
|
+
class Ga extends ge {
|
|
3318
3318
|
constructor(e, t, i) {
|
|
3319
3319
|
let a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
|
3320
|
-
super(), this.backend = e, this.store = t, this.services = i, this.languageUtils = i.languageUtils, this.options = a, this.logger =
|
|
3320
|
+
super(), this.backend = e, this.store = t, this.services = i, this.languageUtils = i.languageUtils, this.options = a, this.logger = j.create("backendConnector"), this.waitingReads = [], this.maxParallelReads = a.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = a.maxRetries >= 0 ? a.maxRetries : 5, this.retryTimeout = a.retryTimeout >= 1 ? a.retryTimeout : 350, this.state = {}, this.queue = [], this.backend && this.backend.init && this.backend.init(i, a.backend, a);
|
|
3321
3321
|
}
|
|
3322
3322
|
queueLoad(e, t, i, a) {
|
|
3323
3323
|
const s = {}, r = {}, o = {}, l = {};
|
|
@@ -3345,7 +3345,7 @@ class Qa extends ge {
|
|
|
3345
3345
|
t && this.emit("failedLoading", s, r, t), i && this.store.addResourceBundle(s, r, i), this.state[e] = t ? -1 : 2;
|
|
3346
3346
|
const o = {};
|
|
3347
3347
|
this.queue.forEach((l) => {
|
|
3348
|
-
|
|
3348
|
+
Ra(l.loaded, [s], r), Qa(l, e), t && l.errors.push(t), l.pendingCount === 0 && !l.done && (Object.keys(l.loaded).forEach((u) => {
|
|
3349
3349
|
o[u] || (o[u] = {});
|
|
3350
3350
|
const d = l.loaded[u];
|
|
3351
3351
|
d.length && d.forEach((f) => {
|
|
@@ -3448,7 +3448,7 @@ class Qa extends ge {
|
|
|
3448
3448
|
}
|
|
3449
3449
|
}
|
|
3450
3450
|
}
|
|
3451
|
-
function
|
|
3451
|
+
function ut() {
|
|
3452
3452
|
return {
|
|
3453
3453
|
debug: !1,
|
|
3454
3454
|
initImmediate: !0,
|
|
@@ -3507,12 +3507,12 @@ function ct() {
|
|
|
3507
3507
|
}
|
|
3508
3508
|
};
|
|
3509
3509
|
}
|
|
3510
|
-
function
|
|
3510
|
+
function ct(n) {
|
|
3511
3511
|
return typeof n.ns == "string" && (n.ns = [n.ns]), typeof n.fallbackLng == "string" && (n.fallbackLng = [n.fallbackLng]), typeof n.fallbackNS == "string" && (n.fallbackNS = [n.fallbackNS]), n.supportedLngs && n.supportedLngs.indexOf("cimode") < 0 && (n.supportedLngs = n.supportedLngs.concat(["cimode"])), n;
|
|
3512
3512
|
}
|
|
3513
3513
|
function ae() {
|
|
3514
3514
|
}
|
|
3515
|
-
function
|
|
3515
|
+
function Ka(n) {
|
|
3516
3516
|
Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach((t) => {
|
|
3517
3517
|
typeof n[t] == "function" && (n[t] = n[t].bind(n));
|
|
3518
3518
|
});
|
|
@@ -3520,9 +3520,9 @@ function Ga(n) {
|
|
|
3520
3520
|
class ee extends ge {
|
|
3521
3521
|
constructor() {
|
|
3522
3522
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 ? arguments[1] : void 0;
|
|
3523
|
-
if (super(), this.options =
|
|
3523
|
+
if (super(), this.options = ct(e), this.services = {}, this.logger = j, this.modules = {
|
|
3524
3524
|
external: []
|
|
3525
|
-
},
|
|
3525
|
+
}, Ka(this), t && !this.isInitialized && !e.isClone) {
|
|
3526
3526
|
if (!this.options.initImmediate)
|
|
3527
3527
|
return this.init(e, t), this;
|
|
3528
3528
|
setTimeout(() => {
|
|
@@ -3534,11 +3534,11 @@ class ee extends ge {
|
|
|
3534
3534
|
var e = this;
|
|
3535
3535
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, i = arguments.length > 1 ? arguments[1] : void 0;
|
|
3536
3536
|
typeof t == "function" && (i = t, t = {}), !t.defaultNS && t.defaultNS !== !1 && t.ns && (typeof t.ns == "string" ? t.defaultNS = t.ns : t.ns.indexOf("translation") < 0 && (t.defaultNS = t.ns[0]));
|
|
3537
|
-
const a =
|
|
3537
|
+
const a = ut();
|
|
3538
3538
|
this.options = {
|
|
3539
3539
|
...a,
|
|
3540
3540
|
...this.options,
|
|
3541
|
-
...
|
|
3541
|
+
...ct(t)
|
|
3542
3542
|
}, this.options.compatibilityAPI !== "v1" && (this.options.interpolation = {
|
|
3543
3543
|
...a.interpolation,
|
|
3544
3544
|
...this.options.interpolation
|
|
@@ -3547,19 +3547,19 @@ class ee extends ge {
|
|
|
3547
3547
|
return d ? typeof d == "function" ? new d() : d : null;
|
|
3548
3548
|
}
|
|
3549
3549
|
if (!this.options.isClone) {
|
|
3550
|
-
this.modules.logger ?
|
|
3550
|
+
this.modules.logger ? j.init(s(this.modules.logger), this.options) : j.init(null, this.options);
|
|
3551
3551
|
let d;
|
|
3552
|
-
this.modules.formatter ? d = this.modules.formatter : typeof Intl != "undefined" && (d =
|
|
3553
|
-
const f = new
|
|
3554
|
-
this.store = new
|
|
3552
|
+
this.modules.formatter ? d = this.modules.formatter : typeof Intl != "undefined" && (d = Ba);
|
|
3553
|
+
const f = new ot(this.options);
|
|
3554
|
+
this.store = new st(this.options.resources, this.options);
|
|
3555
3555
|
const c = this.services;
|
|
3556
|
-
c.logger =
|
|
3556
|
+
c.logger = j, c.resourceStore = this.store, c.languageUtils = f, c.pluralResolver = new $a(f, {
|
|
3557
3557
|
prepend: this.options.pluralSeparator,
|
|
3558
3558
|
compatibilityJSON: this.options.compatibilityJSON,
|
|
3559
3559
|
simplifyPluralSuffix: this.options.simplifyPluralSuffix
|
|
3560
|
-
}), d && (!this.options.interpolation.format || this.options.interpolation.format === a.interpolation.format) && (c.formatter = s(d), c.formatter.init(c, this.options), this.options.interpolation.format = c.formatter.format.bind(c.formatter)), c.interpolator = new
|
|
3560
|
+
}), d && (!this.options.interpolation.format || this.options.interpolation.format === a.interpolation.format) && (c.formatter = s(d), c.formatter.init(c, this.options), this.options.interpolation.format = c.formatter.format.bind(c.formatter)), c.interpolator = new ja(this.options), c.utils = {
|
|
3561
3561
|
hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
|
|
3562
|
-
}, c.backendConnector = new
|
|
3562
|
+
}, c.backendConnector = new Ga(s(this.modules.backend), c.resourceStore, c, this.options), c.backendConnector.on("*", function(S) {
|
|
3563
3563
|
for (var y = arguments.length, k = new Array(y > 1 ? y - 1 : 0), N = 1; N < y; N++)
|
|
3564
3564
|
k[N - 1] = arguments[N];
|
|
3565
3565
|
e.emit(S, ...k);
|
|
@@ -3584,7 +3584,7 @@ class ee extends ge {
|
|
|
3584
3584
|
return e.store[d](...arguments), e;
|
|
3585
3585
|
};
|
|
3586
3586
|
});
|
|
3587
|
-
const l =
|
|
3587
|
+
const l = Z(), u = () => {
|
|
3588
3588
|
const d = (f, c) => {
|
|
3589
3589
|
this.isInitialized && !this.initializedStoreOnce && this.logger.warn("init: i18next is already initialized. You should call init just once!"), this.isInitialized = !0, this.options.isClone || this.logger.log("initialized", this.options), this.emit("initialized", this.options), l.resolve(c), i(f, c);
|
|
3590
3590
|
};
|
|
@@ -3614,7 +3614,7 @@ class ee extends ge {
|
|
|
3614
3614
|
i(null);
|
|
3615
3615
|
}
|
|
3616
3616
|
reloadResources(e, t, i) {
|
|
3617
|
-
const a =
|
|
3617
|
+
const a = Z();
|
|
3618
3618
|
return e || (e = this.languages), t || (t = this.options.ns), i || (i = ae), this.services.backendConnector.reload(e, t, (s) => {
|
|
3619
3619
|
a.resolve(), i(s);
|
|
3620
3620
|
}), a;
|
|
@@ -3624,7 +3624,7 @@ class ee extends ge {
|
|
|
3624
3624
|
throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");
|
|
3625
3625
|
if (!e.type)
|
|
3626
3626
|
throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");
|
|
3627
|
-
return e.type === "backend" && (this.modules.backend = e), (e.type === "logger" || e.log && e.warn && e.error) && (this.modules.logger = e), e.type === "languageDetector" && (this.modules.languageDetector = e), e.type === "i18nFormat" && (this.modules.i18nFormat = e), e.type === "postProcessor" &&
|
|
3627
|
+
return e.type === "backend" && (this.modules.backend = e), (e.type === "logger" || e.log && e.warn && e.error) && (this.modules.logger = e), e.type === "languageDetector" && (this.modules.languageDetector = e), e.type === "i18nFormat" && (this.modules.i18nFormat = e), e.type === "postProcessor" && Vt.addPostProcessor(e), e.type === "formatter" && (this.modules.formatter = e), e.type === "3rdParty" && this.modules.external.push(e), this;
|
|
3628
3628
|
}
|
|
3629
3629
|
setResolvedLanguage(e) {
|
|
3630
3630
|
if (!(!e || !this.languages) && !(["cimode", "dev"].indexOf(e) > -1))
|
|
@@ -3639,7 +3639,7 @@ class ee extends ge {
|
|
|
3639
3639
|
changeLanguage(e, t) {
|
|
3640
3640
|
var i = this;
|
|
3641
3641
|
this.isLanguageChangingTo = e;
|
|
3642
|
-
const a =
|
|
3642
|
+
const a = Z();
|
|
3643
3643
|
this.emit("languageChanging", e);
|
|
3644
3644
|
const s = (l) => {
|
|
3645
3645
|
this.language = l, this.languages = this.services.languageUtils.toResolveHierarchy(l), this.resolvedLanguage = void 0, this.setResolvedLanguage(l);
|
|
@@ -3707,7 +3707,7 @@ class ee extends ge {
|
|
|
3707
3707
|
return !!(this.hasResourceBundle(i, e) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || r(i, e) && (!a || r(s, e)));
|
|
3708
3708
|
}
|
|
3709
3709
|
loadNamespaces(e, t) {
|
|
3710
|
-
const i =
|
|
3710
|
+
const i = Z();
|
|
3711
3711
|
return this.options.ns ? (typeof e == "string" && (e = [e]), e.forEach((a) => {
|
|
3712
3712
|
this.options.ns.indexOf(a) < 0 && this.options.ns.push(a);
|
|
3713
3713
|
}), this.loadResources((a) => {
|
|
@@ -3715,7 +3715,7 @@ class ee extends ge {
|
|
|
3715
3715
|
}), i) : (t && t(), Promise.resolve());
|
|
3716
3716
|
}
|
|
3717
3717
|
loadLanguages(e, t) {
|
|
3718
|
-
const i =
|
|
3718
|
+
const i = Z();
|
|
3719
3719
|
typeof e == "string" && (e = [e]);
|
|
3720
3720
|
const a = this.options.preload || [], s = e.filter((r) => a.indexOf(r) < 0);
|
|
3721
3721
|
return s.length ? (this.options.preload = a.concat(s), this.loadResources((r) => {
|
|
@@ -3725,7 +3725,7 @@ class ee extends ge {
|
|
|
3725
3725
|
dir(e) {
|
|
3726
3726
|
if (e || (e = this.resolvedLanguage || (this.languages && this.languages.length > 0 ? this.languages[0] : this.language)), !e)
|
|
3727
3727
|
return "rtl";
|
|
3728
|
-
const t = ["ar", "shu", "sqr", "ssh", "xaa", "yhd", "yud", "aao", "abh", "abv", "acm", "acq", "acw", "acx", "acy", "adf", "ads", "aeb", "aec", "afb", "ajp", "apc", "apd", "arb", "arq", "ars", "ary", "arz", "auz", "avl", "ayh", "ayl", "ayn", "ayp", "bbz", "pga", "he", "iw", "ps", "pbt", "pbu", "pst", "prp", "prd", "ug", "ur", "ydd", "yds", "yih", "ji", "yi", "hbo", "men", "xmn", "fa", "jpr", "peo", "pes", "prs", "dv", "sam", "ckb"], i = this.services && this.services.languageUtils || new
|
|
3728
|
+
const t = ["ar", "shu", "sqr", "ssh", "xaa", "yhd", "yud", "aao", "abh", "abv", "acm", "acq", "acw", "acx", "acy", "adf", "ads", "aeb", "aec", "afb", "ajp", "apc", "apd", "arb", "arq", "ars", "ary", "arz", "auz", "avl", "ayh", "ayl", "ayn", "ayp", "bbz", "pga", "he", "iw", "ps", "pbt", "pbu", "pst", "prp", "prd", "ug", "ur", "ydd", "yds", "yih", "ji", "yi", "hbo", "men", "xmn", "fa", "jpr", "peo", "pes", "prs", "dv", "sam", "ckb"], i = this.services && this.services.languageUtils || new ot(ut());
|
|
3729
3729
|
return t.indexOf(i.getLanguagePartFromCode(e)) > -1 || e.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
|
|
3730
3730
|
}
|
|
3731
3731
|
static createInstance() {
|
|
@@ -3747,7 +3747,7 @@ class ee extends ge {
|
|
|
3747
3747
|
...this.services
|
|
3748
3748
|
}, s.services.utils = {
|
|
3749
3749
|
hasLoadedNamespace: s.hasLoadedNamespace.bind(s)
|
|
3750
|
-
}, i && (s.store = new
|
|
3750
|
+
}, i && (s.store = new st(this.store.data, a), s.services.resourceStore = s.store), s.translator = new me(s.services, a), s.translator.on("*", function(o) {
|
|
3751
3751
|
for (var l = arguments.length, u = new Array(l > 1 ? l - 1 : 0), d = 1; d < l; d++)
|
|
3752
3752
|
u[d - 1] = arguments[d];
|
|
3753
3753
|
s.emit(o, ...u);
|
|
@@ -3781,7 +3781,7 @@ U.setDefaultNamespace;
|
|
|
3781
3781
|
U.hasLoadedNamespace;
|
|
3782
3782
|
U.loadNamespaces;
|
|
3783
3783
|
U.loadLanguages;
|
|
3784
|
-
const
|
|
3784
|
+
const Wa = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, Ja = {
|
|
3785
3785
|
"&": "&",
|
|
3786
3786
|
"&": "&",
|
|
3787
3787
|
"<": "<",
|
|
@@ -3802,8 +3802,8 @@ const Ka = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|
|
|
|
3802
3802
|
"…": "…",
|
|
3803
3803
|
"/": "/",
|
|
3804
3804
|
"/": "/"
|
|
3805
|
-
},
|
|
3806
|
-
let
|
|
3805
|
+
}, qa = (n) => Ja[n], Ha = (n) => n.replace(Wa, qa);
|
|
3806
|
+
let mt = {
|
|
3807
3807
|
bindI18n: "languageChanged",
|
|
3808
3808
|
bindI18nStore: "",
|
|
3809
3809
|
transEmptyNodeValue: "",
|
|
@@ -3811,73 +3811,73 @@ let ft = {
|
|
|
3811
3811
|
transWrapTextNodes: "",
|
|
3812
3812
|
transKeepBasicHtmlNodesFor: ["br", "strong", "i", "p"],
|
|
3813
3813
|
useSuspense: !0,
|
|
3814
|
-
unescape:
|
|
3814
|
+
unescape: Ha
|
|
3815
3815
|
};
|
|
3816
|
-
function
|
|
3816
|
+
function Za() {
|
|
3817
3817
|
let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
3818
|
-
|
|
3819
|
-
...
|
|
3818
|
+
mt = {
|
|
3819
|
+
...mt,
|
|
3820
3820
|
...n
|
|
3821
3821
|
};
|
|
3822
3822
|
}
|
|
3823
|
-
const
|
|
3823
|
+
const Xa = {
|
|
3824
3824
|
type: "3rdParty",
|
|
3825
3825
|
init(n) {
|
|
3826
|
-
|
|
3826
|
+
Za(n.options.react);
|
|
3827
3827
|
}
|
|
3828
3828
|
};
|
|
3829
|
-
|
|
3830
|
-
const
|
|
3829
|
+
Ea(U, Xa);
|
|
3830
|
+
const Qs = (n) => la(U, n);
|
|
3831
3831
|
let Le = /* @__PURE__ */ new Map();
|
|
3832
|
-
const we =
|
|
3833
|
-
const t = Ce(we), i =
|
|
3832
|
+
const we = ft(Le), Gs = ({ children: n, stores: e }) => {
|
|
3833
|
+
const t = Ce(we), i = Gt(() => {
|
|
3834
3834
|
const a = /* @__PURE__ */ new Map();
|
|
3835
3835
|
return e.forEach((s) => a.set(s.class, s.value)), Le = new Map([...t, ...a]);
|
|
3836
3836
|
}, []);
|
|
3837
|
-
return /* @__PURE__ */
|
|
3837
|
+
return /* @__PURE__ */ Kt(we.Provider, { value: i, children: n });
|
|
3838
3838
|
};
|
|
3839
|
-
function
|
|
3839
|
+
function Ks(n) {
|
|
3840
3840
|
return Ce(we).get(n);
|
|
3841
3841
|
}
|
|
3842
|
-
function
|
|
3842
|
+
function Ws(n) {
|
|
3843
3843
|
return Le.get(n);
|
|
3844
3844
|
}
|
|
3845
|
-
var
|
|
3846
|
-
const Xa = { 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" } }] } }] } }] } }] }, Ya = { 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" } }] } }] } }] } }] }, es = { 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" } }] } }] } }] } }] }, ts = { 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" } }] } }] } }] } }] }, ns = { 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" } }] } }] } }] } }] }, is = { 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" } }] } }] } }] } }] }, as = { 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" } }] } }] } }] } }] }, ss = { 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" } }] } }] } }] } }] }, rs = { 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" } }] } }] } }] } }] }, os = { 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" } }] } }] } }] } }] }, ls = { 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" } }] } }] } }] } }] }, ds = { 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" } }] } }] } }] } }] }, us = { 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" } }] } }] } }] } }] }, cs = { 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" } }] } }] } }] } }] }, ms = { 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" } }] } }] } }] } }] }, fs = { 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" } }] } }] } }] } }] }, ps = { 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" } }] } }] } }] } }] }, hs = { 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" } }] } }] } }] } }] }, gs = { 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" } }] } }] } }] } }] }, ks = { 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" } }] } }] } }] } }] }, vs = { 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" } }] } }] } }] } }] }, Ss = { 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" } }] } }] } }] } }] }, ys = { 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" } }] } }] } }] } }] }, Ns = { 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" } }] } }] } }] } }] }, bs = { 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" } }] } }] } }] } }] }, Fs = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "GetSnackVideoRelationships" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "SnackVideoRelationshipInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "getRelationshipSnackVideos" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "RelationshipSnackVideoArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "sourceEntity" } }, { kind: "Field", name: { kind: "Name", value: "attributeId" } }] } }] } }] } }] } }] }, ws = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "SearchSnackVideos" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "SearchInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "searchSnackVideos" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "SnackVideoCreatedArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "snackVideos" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "name" } }, { kind: "Field", name: { kind: "Name", value: "url" } }, { kind: "Field", name: { kind: "Name", value: "thumbnailUrl" } }, { kind: "Field", name: { kind: "Name", value: "uploadProgress" } }, { kind: "Field", name: { kind: "Name", value: "duration" } }, { kind: "Field", name: { kind: "Name", value: "eventId" } }, { kind: "Field", name: { kind: "Name", value: "eventName" } }, { kind: "Field", name: { kind: "Name", value: "created" } }] } }, { kind: "Field", name: { kind: "Name", value: "cursor" } }, { kind: "Field", name: { kind: "Name", value: "totalItems" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, Cs = { 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" } }] } }] } }] } }] }, Ws = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3845
|
+
var _t = /* @__PURE__ */ ((n) => (n.Created = "CREATED", n.Finalized = "FINALIZED", n.Live = "LIVE", n.Starting = "STARTING", n))(_t || {}), Ut = /* @__PURE__ */ ((n) => (n.Add = "add", n.Remove = "remove", n))(Ut || {}), Mt = /* @__PURE__ */ ((n) => (n.Active = "active", n.Inactive = "inactive", n))(Mt || {});
|
|
3846
|
+
const Ya = { 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" } }] } }] } }] } }] }, es = { 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" } }] } }] } }] } }] }, ts = { 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" } }] } }] } }] } }] }, ns = { 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" } }] } }] } }] } }] }, is = { 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" } }] } }] } }] } }] }, as = { 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" } }] } }] } }] } }] }, ss = { 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" } }] } }] } }] } }] }, rs = { 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" } }] } }] } }] } }] }, os = { 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" } }] } }] } }] } }] }, ls = { 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" } }] } }] } }] } }] }, ds = { 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" } }] } }] } }] } }] }, us = { 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" } }] } }] } }] } }] }, cs = { 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" } }] } }] } }] } }] }, ms = { 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" } }] } }] } }] } }] }, ps = { 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" } }] } }] } }] } }] }, hs = { 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" } }] } }] } }] } }] }, gs = { 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" } }] } }] } }] } }] }, ks = { 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" } }] } }] } }] } }] }, vs = { 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" } }] } }] } }] } }] }, Ss = { 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" } }] } }] } }] } }] }, ys = { 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" } }] } }] } }] } }] }, Ns = { 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" } }] } }] } }] } }] }, bs = { 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" } }] } }] } }] } }] }, Fs = { 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" } }] } }] } }] } }] }, ws = { 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" } }] } }] } }] } }] } }] }, Cs = { 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" } }] } }] } }] } }] }, Es = { 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" } }] } }] } }] } }] }, Js = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3847
3847
|
__proto__: null,
|
|
3848
|
-
AddCollectionDocument:
|
|
3849
|
-
AppendProductsToSnackVideoDocument:
|
|
3850
|
-
BlockUserDocument:
|
|
3851
|
-
ChangeAccountUsernameDocument:
|
|
3852
|
-
CreateSnackVideoBatchDocument:
|
|
3853
|
-
DeleteAllCustomizationDocument:
|
|
3854
|
-
DeleteChatMessageDocument:
|
|
3855
|
-
DeleteCollectionDocument:
|
|
3856
|
-
DeleteRelationshipWithSnackVideoDocument:
|
|
3857
|
-
DeleteSnackVideoDocument:
|
|
3858
|
-
EventStatus:
|
|
3859
|
-
FindByProductSnackVideoDocument:
|
|
3860
|
-
FindCollectionDocument:
|
|
3861
|
-
FindManySnackVideosDocument:
|
|
3862
|
-
FindMinimalEventDocument:
|
|
3863
|
-
GetAllChatMessageDocument:
|
|
3864
|
-
GetAllCollectionsDocument:
|
|
3865
|
-
GetAllCustomizationDocument:
|
|
3866
|
-
GetAllSnackVideosDocument:
|
|
3867
|
-
GetChatRoomTokenDocument:
|
|
3868
|
-
GetSnackVideoRelationshipsDocument:
|
|
3869
|
-
GetTimeLineDocument:
|
|
3870
|
-
ManageCollectionProductDocument:
|
|
3871
|
-
Methods:
|
|
3872
|
-
PinChatMessageDocument:
|
|
3873
|
-
SearchCollectionsDocument:
|
|
3874
|
-
SearchMinimalEventsDocument:
|
|
3875
|
-
SearchSnackVideosDocument:
|
|
3876
|
-
Status:
|
|
3877
|
-
UpdateCollectionDocument:
|
|
3878
|
-
UpdateCustomizationDocument:
|
|
3848
|
+
AddCollectionDocument: Ya,
|
|
3849
|
+
AppendProductsToSnackVideoDocument: vs,
|
|
3850
|
+
BlockUserDocument: ls,
|
|
3851
|
+
ChangeAccountUsernameDocument: ds,
|
|
3852
|
+
CreateSnackVideoBatchDocument: Ss,
|
|
3853
|
+
DeleteAllCustomizationDocument: ps,
|
|
3854
|
+
DeleteChatMessageDocument: us,
|
|
3855
|
+
DeleteCollectionDocument: es,
|
|
3856
|
+
DeleteRelationshipWithSnackVideoDocument: ys,
|
|
3857
|
+
DeleteSnackVideoDocument: Ns,
|
|
3858
|
+
EventStatus: _t,
|
|
3859
|
+
FindByProductSnackVideoDocument: Es,
|
|
3860
|
+
FindCollectionDocument: ts,
|
|
3861
|
+
FindManySnackVideosDocument: bs,
|
|
3862
|
+
FindMinimalEventDocument: rs,
|
|
3863
|
+
GetAllChatMessageDocument: cs,
|
|
3864
|
+
GetAllCollectionsDocument: ns,
|
|
3865
|
+
GetAllCustomizationDocument: hs,
|
|
3866
|
+
GetAllSnackVideosDocument: Fs,
|
|
3867
|
+
GetChatRoomTokenDocument: ms,
|
|
3868
|
+
GetSnackVideoRelationshipsDocument: ws,
|
|
3869
|
+
GetTimeLineDocument: ks,
|
|
3870
|
+
ManageCollectionProductDocument: is,
|
|
3871
|
+
Methods: Ut,
|
|
3872
|
+
PinChatMessageDocument: fs,
|
|
3873
|
+
SearchCollectionsDocument: as,
|
|
3874
|
+
SearchMinimalEventsDocument: os,
|
|
3875
|
+
SearchSnackVideosDocument: Cs,
|
|
3876
|
+
Status: Mt,
|
|
3877
|
+
UpdateCollectionDocument: ss,
|
|
3878
|
+
UpdateCustomizationDocument: gs
|
|
3879
3879
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3880
|
-
function
|
|
3880
|
+
function qs(n) {
|
|
3881
3881
|
return {
|
|
3882
3882
|
class: n,
|
|
3883
3883
|
_value: null,
|
|
@@ -3887,61 +3887,63 @@ function Js(n) {
|
|
|
3887
3887
|
};
|
|
3888
3888
|
}
|
|
3889
3889
|
export {
|
|
3890
|
-
|
|
3891
|
-
|
|
3892
|
-
|
|
3893
|
-
|
|
3894
|
-
|
|
3895
|
-
|
|
3896
|
-
|
|
3897
|
-
|
|
3898
|
-
|
|
3899
|
-
|
|
3900
|
-
|
|
3901
|
-
|
|
3890
|
+
Rt as AccountContractStatusTypes,
|
|
3891
|
+
ci as AccountContractTypes,
|
|
3892
|
+
Vs as AccountInvalidError,
|
|
3893
|
+
fi as AccountPlanDescriptionTypes,
|
|
3894
|
+
gi as AccountRestRepository,
|
|
3895
|
+
ki as AccountService,
|
|
3896
|
+
mi as AccountSubscriptionTypes,
|
|
3897
|
+
Ot as AccountTypes,
|
|
3898
|
+
di as AggregateRoot,
|
|
3899
|
+
Js as ApiGraphqlTypes,
|
|
3900
|
+
Ms as BaseMobxStore,
|
|
3901
|
+
Mn as BroadcastChannelEventBus,
|
|
3902
3902
|
he as DomainError,
|
|
3903
|
-
|
|
3904
|
-
|
|
3905
|
-
|
|
3906
|
-
|
|
3907
|
-
|
|
3908
|
-
|
|
3903
|
+
zs as EventBusWildcards,
|
|
3904
|
+
Bs as EventNames,
|
|
3905
|
+
pi as GlobalPageSectionTypes,
|
|
3906
|
+
li as InvalidNizzaGlobalObjectError,
|
|
3907
|
+
ia as LanguageTypes,
|
|
3908
|
+
Bn as Logger,
|
|
3909
3909
|
Re as NizzaAccount,
|
|
3910
|
-
|
|
3911
|
-
|
|
3912
|
-
|
|
3913
|
-
|
|
3914
|
-
|
|
3915
|
-
|
|
3916
|
-
|
|
3910
|
+
na as NizzaEventStatus,
|
|
3911
|
+
sa as NizzaProductRequestOriginTypes,
|
|
3912
|
+
aa as NizzaVariationTypes,
|
|
3913
|
+
ri as ResourceNotFoundError,
|
|
3914
|
+
Gs as StoreProvider,
|
|
3915
|
+
oi as UnexpectedError,
|
|
3916
|
+
$s as ValueObject,
|
|
3917
3917
|
Ee as accountAtom,
|
|
3918
|
-
|
|
3919
|
-
|
|
3920
|
-
|
|
3921
|
-
|
|
3922
|
-
|
|
3923
|
-
|
|
3924
|
-
|
|
3925
|
-
|
|
3926
|
-
|
|
3927
|
-
|
|
3928
|
-
|
|
3929
|
-
|
|
3930
|
-
|
|
3931
|
-
|
|
3932
|
-
|
|
3933
|
-
|
|
3934
|
-
|
|
3935
|
-
|
|
3936
|
-
|
|
3937
|
-
|
|
3938
|
-
|
|
3918
|
+
Tt as accountService,
|
|
3919
|
+
Ts as apiCall,
|
|
3920
|
+
ra as buildLanguageTranslations,
|
|
3921
|
+
oa as buildTranslations,
|
|
3922
|
+
Jn as configure,
|
|
3923
|
+
K as coreLogger,
|
|
3924
|
+
ui as createAggregateRoot,
|
|
3925
|
+
qs as createStore,
|
|
3926
|
+
kt as customFetch,
|
|
3927
|
+
Is as downloadFile,
|
|
3928
|
+
Ls as fileOrigin,
|
|
3929
|
+
ta as getAccount,
|
|
3930
|
+
Us as getClientTimeZone,
|
|
3931
|
+
Kn as getInstance,
|
|
3932
|
+
Ws as getStore,
|
|
3933
|
+
ea as globalAtomStore,
|
|
3934
|
+
Ea as i18Init,
|
|
3935
|
+
fn as jsDownload,
|
|
3936
|
+
Qn as logger,
|
|
3937
|
+
$ as nizza,
|
|
3938
|
+
Ps as nizzaInit,
|
|
3939
|
+
Qs as registerTranslations,
|
|
3940
|
+
la as registerTranslationsOf,
|
|
3939
3941
|
Ds as searchParams,
|
|
3940
|
-
|
|
3941
|
-
|
|
3942
|
-
|
|
3942
|
+
qn as setProductDataSource,
|
|
3943
|
+
jn as shortId,
|
|
3944
|
+
js as useAccount,
|
|
3943
3945
|
Gn as useNizza,
|
|
3944
|
-
|
|
3945
|
-
|
|
3946
|
+
Ks as useStore,
|
|
3947
|
+
_s as validateRequiredProps
|
|
3946
3948
|
};
|
|
3947
3949
|
//# sourceMappingURL=index.mjs.map
|