@nizza/core 0.5.0-beta.2 → 0.5.0-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/environments/environment.local.d.ts +21 -1
- package/dist/index.cjs +5 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +154 -154
- package/dist/index.mjs.map +1 -1
- package/dist/lib/types/nizza/globalStore.d.ts +2 -0
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2,7 +2,7 @@ var zt = Object.defineProperty;
|
|
|
2
2
|
var Bt = (n, e, t) => e in n ? zt(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
|
|
3
3
|
var R = (n, e, t) => (Bt(n, typeof e != "symbol" ? e + "" : e, t), t);
|
|
4
4
|
import * as M from "react";
|
|
5
|
-
import fe, { createContext as
|
|
5
|
+
import fe, { createContext as ht, useReducer as Qt, useEffect as gt, useDebugValue as Gt, useCallback as Kt, useContext as Ce, useMemo as Wt } from "react";
|
|
6
6
|
import { jsx as Jt } 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
8
|
let qt = 0;
|
|
@@ -22,18 +22,18 @@ function Ht(n, e) {
|
|
|
22
22
|
const ke = (n) => "init" in n, ve = (n) => !!n.write, re = /* @__PURE__ */ new WeakMap(), Zt = (n, e) => {
|
|
23
23
|
re.set(n, e), n.catch(() => {
|
|
24
24
|
}).finally(() => re.delete(n));
|
|
25
|
-
},
|
|
25
|
+
}, Pe = (n, e) => {
|
|
26
26
|
const t = re.get(n);
|
|
27
27
|
t && (re.delete(n), t(e));
|
|
28
|
-
}, Pe = (n, e) => {
|
|
29
|
-
n.status = "fulfilled", n.value = e;
|
|
30
28
|
}, Ve = (n, e) => {
|
|
29
|
+
n.status = "fulfilled", n.value = e;
|
|
30
|
+
}, _e = (n, e) => {
|
|
31
31
|
n.status = "rejected", n.reason = e;
|
|
32
|
-
}, Xt = (n) => typeof (n == null ? void 0 : n.then) == "function", W = (n, e) => !!n && "v" in n && "v" in e && Object.is(n.v, e.v),
|
|
32
|
+
}, Xt = (n) => typeof (n == null ? void 0 : n.then) == "function", W = (n, e) => !!n && "v" in n && "v" in e && Object.is(n.v, e.v), Ue = (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, Yt = (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
|
+
}, kt = () => {
|
|
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());
|
|
@@ -42,7 +42,7 @@ const ke = (n) => "init" in n, ve = (n) => !!n.write, re = /* @__PURE__ */ new W
|
|
|
42
42
|
const h = n.get(m);
|
|
43
43
|
if (n.set(m, p), t.has(m) || t.set(m, h), z(h)) {
|
|
44
44
|
const g = "v" in p ? p.v instanceof Promise ? p.v : Promise.resolve(p.v) : Promise.reject(p.e);
|
|
45
|
-
h.v !== g &&
|
|
45
|
+
h.v !== g && Pe(h.v, g);
|
|
46
46
|
}
|
|
47
47
|
}, o = (m, p, h) => {
|
|
48
48
|
const g = /* @__PURE__ */ new Map();
|
|
@@ -80,15 +80,15 @@ const ke = (n) => "init" in n, ve = (n) => !!n.write, re = /* @__PURE__ */ new W
|
|
|
80
80
|
let x = !1;
|
|
81
81
|
p.then(
|
|
82
82
|
(T) => {
|
|
83
|
-
x || (x = !0,
|
|
83
|
+
x || (x = !0, Ve(v, T), E(T), C());
|
|
84
84
|
},
|
|
85
85
|
(T) => {
|
|
86
|
-
x || (x = !0,
|
|
86
|
+
x || (x = !0, _e(v, T), P(T), C());
|
|
87
87
|
}
|
|
88
88
|
), b = (T) => {
|
|
89
89
|
x || (x = !0, T.then(
|
|
90
|
-
(V) =>
|
|
91
|
-
(V) =>
|
|
90
|
+
(V) => Ve(v, V),
|
|
91
|
+
(V) => _e(v, V)
|
|
92
92
|
), E(T));
|
|
93
93
|
};
|
|
94
94
|
});
|
|
@@ -102,7 +102,7 @@ const ke = (n) => "init" in n, ve = (n) => !!n.write, re = /* @__PURE__ */ new W
|
|
|
102
102
|
d: (g == null ? void 0 : g.d) || /* @__PURE__ */ new Map(),
|
|
103
103
|
e: p
|
|
104
104
|
};
|
|
105
|
-
return h && o(m, b, h),
|
|
105
|
+
return h && o(m, b, h), Ue(g, b) && g.d === b.d ? g : (r(m, b), b);
|
|
106
106
|
}, f = (m, p) => {
|
|
107
107
|
const h = s(m);
|
|
108
108
|
if (!p && h && (e.has(m) || Array.from(h.d).every(([x, T]) => {
|
|
@@ -241,7 +241,7 @@ const ke = (n) => "init" in n, ve = (n) => !!n.write, re = /* @__PURE__ */ new W
|
|
|
241
241
|
const h = (p = e.get(m)) == null ? void 0 : p.u;
|
|
242
242
|
h && h(), e.delete(m), (_ ? "production" : void 0) !== "production" && a.delete(m);
|
|
243
243
|
const g = s(m);
|
|
244
|
-
g ? (z(g) &&
|
|
244
|
+
g ? (z(g) && Pe(g.v), g.d.forEach((b, C) => {
|
|
245
245
|
if (C !== m) {
|
|
246
246
|
const v = e.get(C);
|
|
247
247
|
v && (v.t.delete(m), y(C, v) && w(C));
|
|
@@ -270,7 +270,7 @@ const ke = (n) => "init" in n, ve = (n) => !!n.write, re = /* @__PURE__ */ new W
|
|
|
270
270
|
const C = e.get(h);
|
|
271
271
|
C && b.d !== (g == null ? void 0 : g.d) && I(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) && (W(g, b) ||
|
|
273
|
+
(!z(g) && (W(g, b) || Ue(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
|
});
|
|
@@ -318,9 +318,9 @@ 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
319
|
const en = () => (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 =
|
|
321
|
+
), Se = kt()), Se);
|
|
322
322
|
var tn = { 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 nn =
|
|
323
|
+
const nn = ht(void 0), vt = (n) => {
|
|
324
324
|
const e = Ce(nn);
|
|
325
325
|
return (n == null ? void 0 : n.store) || e || en();
|
|
326
326
|
}, an = (n) => typeof (n == null ? void 0 : n.then) == "function", sn = fe.use || ((n) => {
|
|
@@ -338,7 +338,7 @@ const nn = pt(void 0), kt = (n) => {
|
|
|
338
338
|
), n);
|
|
339
339
|
});
|
|
340
340
|
function rn(n, e) {
|
|
341
|
-
const t =
|
|
341
|
+
const t = vt(e), [[i, a, s], r] = Qt(
|
|
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 rn(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 gt(() => {
|
|
353
353
|
const u = t.sub(n, () => {
|
|
354
354
|
if (typeof l == "number") {
|
|
355
355
|
setTimeout(r, l);
|
|
@@ -361,7 +361,7 @@ function rn(n, e) {
|
|
|
361
361
|
}, [t, n, l]), Gt(o), an(o) ? sn(o) : o;
|
|
362
362
|
}
|
|
363
363
|
function on(n, e) {
|
|
364
|
-
const t =
|
|
364
|
+
const t = vt(e);
|
|
365
365
|
return Kt(
|
|
366
366
|
(...a) => {
|
|
367
367
|
if ((tn ? "production" : void 0) !== "production" && !("write" in n))
|
|
@@ -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 St(n) {
|
|
416
416
|
const {
|
|
417
417
|
url: e,
|
|
418
418
|
method: t = "GET",
|
|
@@ -450,7 +450,7 @@ async function vt(n) {
|
|
|
450
450
|
throw console.error("[CustomFetch] ", u), u;
|
|
451
451
|
}
|
|
452
452
|
}
|
|
453
|
-
const Ts = (n) =>
|
|
453
|
+
const Ts = (n) => St({ ...n, contentTypeJson: !1, raw: !1 });
|
|
454
454
|
function Ds(n, e, t) {
|
|
455
455
|
fetch(e).then((i) => i.blob()).then((i) => hn(i, `${n}.${t}`));
|
|
456
456
|
}
|
|
@@ -466,7 +466,7 @@ const hn = (n, e, t) => {
|
|
|
466
466
|
}, 200);
|
|
467
467
|
};
|
|
468
468
|
var gn = { 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
|
-
const
|
|
469
|
+
const Me = (n) => {
|
|
470
470
|
let e;
|
|
471
471
|
const t = /* @__PURE__ */ new Set(), i = (l, u) => {
|
|
472
472
|
const d = typeof l == "function" ? l(e) : l;
|
|
@@ -480,12 +480,12 @@ const Ue = (n) => {
|
|
|
480
480
|
), t.clear();
|
|
481
481
|
} };
|
|
482
482
|
return e = n(i, a, o), o;
|
|
483
|
-
}, kn = (n) => n ?
|
|
484
|
-
var
|
|
483
|
+
}, kn = (n) => n ? Me(n) : Me;
|
|
484
|
+
var yt = 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 Nt = { exports: {} }, bt = {}, Ft = { exports: {} }, wt = {};
|
|
489
489
|
/**
|
|
490
490
|
* @license React
|
|
491
491
|
* use-sync-external-store-shim.production.min.js
|
|
@@ -524,9 +524,9 @@ function Cn(n, e) {
|
|
|
524
524
|
return e();
|
|
525
525
|
}
|
|
526
526
|
var En = typeof window == "undefined" || typeof window.document == "undefined" || typeof window.document.createElement == "undefined" ? Cn : wn;
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
var
|
|
527
|
+
wt.useSyncExternalStore = K.useSyncExternalStore !== void 0 ? K.useSyncExternalStore : En;
|
|
528
|
+
Ft.exports = wt;
|
|
529
|
+
var Ct = Ft.exports;
|
|
530
530
|
/**
|
|
531
531
|
* @license React
|
|
532
532
|
* use-sync-external-store-shim/with-selector.production.min.js
|
|
@@ -536,12 +536,12 @@ 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, xn =
|
|
539
|
+
var pe = fe, xn = Ct;
|
|
540
540
|
function On(n, e) {
|
|
541
541
|
return n === e && (n !== 0 || 1 / n === 1 / e) || n !== n && e !== e;
|
|
542
542
|
}
|
|
543
543
|
var Rn = typeof Object.is == "function" ? Object.is : On, Tn = xn.useSyncExternalStore, Dn = pe.useRef, In = pe.useEffect, Ln = pe.useMemo, An = pe.useDebugValue;
|
|
544
|
-
|
|
544
|
+
bt.useSyncExternalStoreWithSelector = function(n, e, t, i, a) {
|
|
545
545
|
var s = Dn(null);
|
|
546
546
|
if (s.current === null) {
|
|
547
547
|
var r = { hasValue: !1, value: null };
|
|
@@ -575,16 +575,16 @@ Nt.useSyncExternalStoreWithSelector = function(n, e, t, i, a) {
|
|
|
575
575
|
r.hasValue = !0, r.value = o;
|
|
576
576
|
}, [o]), An(o), o;
|
|
577
577
|
};
|
|
578
|
-
|
|
579
|
-
var Pn =
|
|
578
|
+
Nt.exports = bt;
|
|
579
|
+
var Pn = Nt.exports;
|
|
580
580
|
const Vn = /* @__PURE__ */ xe(Pn);
|
|
581
|
-
var
|
|
581
|
+
var Et = { 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
582
|
const { useDebugValue: _n } = fe, { useSyncExternalStoreWithSelector: Un } = Vn;
|
|
583
|
-
let
|
|
583
|
+
let $e = !1;
|
|
584
584
|
function Mn(n, e = n.getState, t) {
|
|
585
|
-
(
|
|
585
|
+
(Et ? "production" : void 0) !== "production" && t && !$e && (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
|
+
), $e = !0);
|
|
588
588
|
const i = Un(
|
|
589
589
|
n.subscribe,
|
|
590
590
|
n.getState,
|
|
@@ -594,13 +594,13 @@ function Mn(n, e = n.getState, t) {
|
|
|
594
594
|
);
|
|
595
595
|
return _n(i), i;
|
|
596
596
|
}
|
|
597
|
-
const
|
|
598
|
-
(
|
|
597
|
+
const je = (n) => {
|
|
598
|
+
(Et ? "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
601
|
const e = typeof n == "function" ? kn(n) : n, t = (i, a) => Mn(e, i, a);
|
|
602
602
|
return Object.assign(t, e), t;
|
|
603
|
-
}, $n = (n) => n ?
|
|
603
|
+
}, $n = (n) => n ? je(n) : je;
|
|
604
604
|
class jn {
|
|
605
605
|
constructor(e) {
|
|
606
606
|
R(this, "channel");
|
|
@@ -757,11 +757,11 @@ function Ls() {
|
|
|
757
757
|
`);
|
|
758
758
|
return n.length < 3 ? "" : n[2].trim().substring(3);
|
|
759
759
|
}
|
|
760
|
-
var
|
|
760
|
+
var xt = { exports: {} };
|
|
761
761
|
(function(n) {
|
|
762
762
|
(function(e, t) {
|
|
763
763
|
n.exports ? n.exports = t() : e.log = t();
|
|
764
|
-
})(
|
|
764
|
+
})(yt, 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",
|
|
@@ -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
|
+
})(xt);
|
|
902
|
+
var Ot = xt.exports;
|
|
903
|
+
const ie = /* @__PURE__ */ xe(Ot);
|
|
904
|
+
var Rt = { exports: {} };
|
|
905
905
|
(function(n) {
|
|
906
906
|
(function(e, t) {
|
|
907
907
|
n.exports ? n.exports = t() : e.prefix = t(e);
|
|
908
|
-
})(
|
|
908
|
+
})(yt, 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])
|
|
@@ -954,14 +954,14 @@ var Ot = { exports: {} };
|
|
|
954
954
|
return e.prefix === l && (e.prefix = u), l;
|
|
955
955
|
}), l;
|
|
956
956
|
});
|
|
957
|
-
})(
|
|
958
|
-
var Qn =
|
|
959
|
-
const
|
|
957
|
+
})(Rt);
|
|
958
|
+
var Qn = Rt.exports;
|
|
959
|
+
const ze = /* @__PURE__ */ xe(Qn);
|
|
960
960
|
let Gn = class {
|
|
961
961
|
constructor(e) {
|
|
962
|
-
R(this, "defaultLevel",
|
|
962
|
+
R(this, "defaultLevel", Ot.levels.INFO);
|
|
963
963
|
R(this, "namePrefix");
|
|
964
|
-
this.namePrefix = e ? `${e}-` : "", ie.setDefaultLevel(this.defaultLevel),
|
|
964
|
+
this.namePrefix = e ? `${e}-` : "", ie.setDefaultLevel(this.defaultLevel), ze.reg(ie), ze.apply(ie, {
|
|
965
965
|
template: "[%t] %l (%n)",
|
|
966
966
|
nameFormatter: (t) => {
|
|
967
967
|
var i;
|
|
@@ -980,7 +980,7 @@ const j = $n(() => ({
|
|
|
980
980
|
})), Kn = async (n) => {
|
|
981
981
|
try {
|
|
982
982
|
const e = j.getState().account;
|
|
983
|
-
if ((e == null ? void 0 : e.account) !== n.account) {
|
|
983
|
+
if (j.setState({ config: n }), (e == null ? void 0 : e.account) !== n.account) {
|
|
984
984
|
const t = await ta(n.account);
|
|
985
985
|
j.setState({ account: t });
|
|
986
986
|
}
|
|
@@ -988,14 +988,14 @@ const j = $n(() => ({
|
|
|
988
988
|
const t = await n.getProductDataSource();
|
|
989
989
|
j.setState({ productDataSource: t });
|
|
990
990
|
}
|
|
991
|
-
j.setState({ config: n });
|
|
992
991
|
} catch (e) {
|
|
993
992
|
console.error("Error configuring NizzaStore:", e);
|
|
994
993
|
}
|
|
995
994
|
}, Wn = (n) => {
|
|
996
995
|
j.setState({ productDataSource: n });
|
|
997
|
-
},
|
|
998
|
-
version: "1.0.
|
|
996
|
+
}, Be = () => ({
|
|
997
|
+
version: "1.0.2",
|
|
998
|
+
store: j,
|
|
999
999
|
configure: Kn,
|
|
1000
1000
|
setProductDataSource: Wn,
|
|
1001
1001
|
instanceId: Bn(),
|
|
@@ -1007,13 +1007,13 @@ const j = $n(() => ({
|
|
|
1007
1007
|
}), Jn = () => {
|
|
1008
1008
|
if (typeof window != "undefined") {
|
|
1009
1009
|
if (!window.nizza) {
|
|
1010
|
-
const n =
|
|
1010
|
+
const n = Be();
|
|
1011
1011
|
window.nizza = n, window.nz = n;
|
|
1012
1012
|
}
|
|
1013
1013
|
return window.nizza;
|
|
1014
1014
|
}
|
|
1015
|
-
return
|
|
1016
|
-
},
|
|
1015
|
+
return Be();
|
|
1016
|
+
}, Oe = Jn(), qn = Oe.store, Ps = Oe.log.createLogger("main"), Z = Oe.log.createLogger("core");
|
|
1017
1017
|
function G(n) {
|
|
1018
1018
|
return n != null && typeof n == "object" && n["@@functional/placeholder"] === !0;
|
|
1019
1019
|
}
|
|
@@ -1022,7 +1022,7 @@ function se(n) {
|
|
|
1022
1022
|
return arguments.length === 0 || G(t) ? e : n.apply(this, arguments);
|
|
1023
1023
|
};
|
|
1024
1024
|
}
|
|
1025
|
-
function
|
|
1025
|
+
function Re(n) {
|
|
1026
1026
|
return function e(t, i) {
|
|
1027
1027
|
switch (arguments.length) {
|
|
1028
1028
|
case 0:
|
|
@@ -1046,7 +1046,7 @@ const Hn = Number.isInteger || function(e) {
|
|
|
1046
1046
|
function Zn(n) {
|
|
1047
1047
|
return Object.prototype.toString.call(n) === "[object String]";
|
|
1048
1048
|
}
|
|
1049
|
-
var Xn = /* @__PURE__ */
|
|
1049
|
+
var Xn = /* @__PURE__ */ Re(function(e, t) {
|
|
1050
1050
|
var i = e < 0 ? t.length + e : e;
|
|
1051
1051
|
return Zn(t) ? t.charAt(i) : t[i];
|
|
1052
1052
|
});
|
|
@@ -1055,7 +1055,7 @@ var ei = /* @__PURE__ */ se(function(e) {
|
|
|
1055
1055
|
return e == null;
|
|
1056
1056
|
});
|
|
1057
1057
|
const ti = ei;
|
|
1058
|
-
var ni = /* @__PURE__ */
|
|
1058
|
+
var ni = /* @__PURE__ */ Re(function(e, t) {
|
|
1059
1059
|
return e.map(function(i) {
|
|
1060
1060
|
for (var a = t, s = 0, r; s < i.length; ) {
|
|
1061
1061
|
if (a == null)
|
|
@@ -1066,7 +1066,7 @@ var ni = /* @__PURE__ */ Oe(function(e, t) {
|
|
|
1066
1066
|
});
|
|
1067
1067
|
});
|
|
1068
1068
|
const ii = ni;
|
|
1069
|
-
var ai = /* @__PURE__ */
|
|
1069
|
+
var ai = /* @__PURE__ */ Re(function(e, t) {
|
|
1070
1070
|
return ii([e], t)[0];
|
|
1071
1071
|
});
|
|
1072
1072
|
const si = ai;
|
|
@@ -1196,7 +1196,7 @@ class $s {
|
|
|
1196
1196
|
}
|
|
1197
1197
|
}
|
|
1198
1198
|
var Tt = /* @__PURE__ */ ((n) => (n.VTEX = "VTEX", n.VTEX_IO = "VTEX-IO", n.VTEX_CMS = "PORTAL-VTEX", n.PLATFORM = "PLATFORM", n.UNKNOWN = "UNKNOWN", n))(Tt || {}), ci = /* @__PURE__ */ ((n) => (n.PLATFORM = "platform_module", n.ADENDA = "subscription_module", n.APP_STORE = "app_store", n))(ci || {}), Dt = /* @__PURE__ */ ((n) => (n.ACTIVE = "active_contract", n.INACTIVE = "inactive_contract", n))(Dt || {}), 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 || {});
|
|
1199
|
-
class
|
|
1199
|
+
class Te {
|
|
1200
1200
|
constructor(e) {
|
|
1201
1201
|
R(this, "root", ui(this));
|
|
1202
1202
|
R(this, "id");
|
|
@@ -1231,7 +1231,7 @@ class Re {
|
|
|
1231
1231
|
username: i != null ? i : a.account,
|
|
1232
1232
|
createdAt: new Date(Number(t))
|
|
1233
1233
|
};
|
|
1234
|
-
return new
|
|
1234
|
+
return new Te(s);
|
|
1235
1235
|
}
|
|
1236
1236
|
toPrimitives() {
|
|
1237
1237
|
const { root: e, createdAt: t, ...i } = this;
|
|
@@ -1244,10 +1244,10 @@ class Re {
|
|
|
1244
1244
|
const hi = `${pn.apiUrls.restV1}/accounts/v2`;
|
|
1245
1245
|
class gi {
|
|
1246
1246
|
async get(e) {
|
|
1247
|
-
const t = `${hi}/${e}`, { data: i } = await
|
|
1247
|
+
const t = `${hi}/${e}`, { data: i } = await St({
|
|
1248
1248
|
url: t
|
|
1249
1249
|
});
|
|
1250
|
-
return i ?
|
|
1250
|
+
return i ? Te.toDomain(i) : null;
|
|
1251
1251
|
}
|
|
1252
1252
|
}
|
|
1253
1253
|
class ki {
|
|
@@ -1266,7 +1266,7 @@ class ki {
|
|
|
1266
1266
|
}
|
|
1267
1267
|
}
|
|
1268
1268
|
const vi = new gi(), It = new ki(vi);
|
|
1269
|
-
class
|
|
1269
|
+
class De {
|
|
1270
1270
|
constructor() {
|
|
1271
1271
|
this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
|
|
1272
1272
|
}
|
|
@@ -1289,7 +1289,7 @@ class Te {
|
|
|
1289
1289
|
const oe = typeof window == "undefined" || "Deno" in window;
|
|
1290
1290
|
function Si() {
|
|
1291
1291
|
}
|
|
1292
|
-
function
|
|
1292
|
+
function Qe(n) {
|
|
1293
1293
|
return typeof n == "number" && n >= 0 && n !== 1 / 0;
|
|
1294
1294
|
}
|
|
1295
1295
|
function yi(n, e) {
|
|
@@ -1308,8 +1308,8 @@ function Ni(n, e, t) {
|
|
|
1308
1308
|
function Lt(n, e) {
|
|
1309
1309
|
if (n === e)
|
|
1310
1310
|
return n;
|
|
1311
|
-
const t =
|
|
1312
|
-
if (t ||
|
|
1311
|
+
const t = Ge(n) && Ge(e);
|
|
1312
|
+
if (t || Ke(n) && Ke(e)) {
|
|
1313
1313
|
const i = t ? n.length : Object.keys(n).length, a = t ? e : Object.keys(e), s = a.length, r = t ? [] : {};
|
|
1314
1314
|
let o = 0;
|
|
1315
1315
|
for (let l = 0; l < s; l++) {
|
|
@@ -1328,19 +1328,19 @@ function be(n, e) {
|
|
|
1328
1328
|
return !1;
|
|
1329
1329
|
return !0;
|
|
1330
1330
|
}
|
|
1331
|
-
function
|
|
1331
|
+
function Ge(n) {
|
|
1332
1332
|
return Array.isArray(n) && n.length === Object.keys(n).length;
|
|
1333
1333
|
}
|
|
1334
|
-
function
|
|
1335
|
-
if (!
|
|
1334
|
+
function Ke(n) {
|
|
1335
|
+
if (!We(n))
|
|
1336
1336
|
return !1;
|
|
1337
1337
|
const e = n.constructor;
|
|
1338
1338
|
if (typeof e == "undefined")
|
|
1339
1339
|
return !0;
|
|
1340
1340
|
const t = e.prototype;
|
|
1341
|
-
return !(!
|
|
1341
|
+
return !(!We(t) || !t.hasOwnProperty("isPrototypeOf"));
|
|
1342
1342
|
}
|
|
1343
|
-
function
|
|
1343
|
+
function We(n) {
|
|
1344
1344
|
return Object.prototype.toString.call(n) === "[object Object]";
|
|
1345
1345
|
}
|
|
1346
1346
|
function bi(n) {
|
|
@@ -1351,13 +1351,13 @@ function Fi(n) {
|
|
|
1351
1351
|
setTimeout(e, n);
|
|
1352
1352
|
});
|
|
1353
1353
|
}
|
|
1354
|
-
function
|
|
1354
|
+
function Je(n) {
|
|
1355
1355
|
Fi(0).then(n);
|
|
1356
1356
|
}
|
|
1357
|
-
function
|
|
1357
|
+
function qe(n, e, t) {
|
|
1358
1358
|
return t.isDataEqual != null && t.isDataEqual(n, e) ? n : typeof t.structuralSharing == "function" ? t.structuralSharing(n, e) : t.structuralSharing !== !1 ? Lt(n, e) : e;
|
|
1359
1359
|
}
|
|
1360
|
-
class wi extends
|
|
1360
|
+
class wi extends De {
|
|
1361
1361
|
constructor() {
|
|
1362
1362
|
super(), this.setup = (e) => {
|
|
1363
1363
|
if (!oe && window.addEventListener) {
|
|
@@ -1397,16 +1397,16 @@ class wi extends Te {
|
|
|
1397
1397
|
return typeof this.focused == "boolean" ? this.focused : typeof document == "undefined" ? !0 : [void 0, "visible", "prerender"].includes(document.visibilityState);
|
|
1398
1398
|
}
|
|
1399
1399
|
}
|
|
1400
|
-
const Ci = new wi(),
|
|
1401
|
-
class Ei extends
|
|
1400
|
+
const Ci = new wi(), He = ["online", "offline"];
|
|
1401
|
+
class Ei extends De {
|
|
1402
1402
|
constructor() {
|
|
1403
1403
|
super(), this.setup = (e) => {
|
|
1404
1404
|
if (!oe && window.addEventListener) {
|
|
1405
1405
|
const t = () => e();
|
|
1406
|
-
return
|
|
1406
|
+
return He.forEach((i) => {
|
|
1407
1407
|
window.addEventListener(i, t, !1);
|
|
1408
1408
|
}), () => {
|
|
1409
|
-
|
|
1409
|
+
He.forEach((i) => {
|
|
1410
1410
|
window.removeEventListener(i, t);
|
|
1411
1411
|
});
|
|
1412
1412
|
};
|
|
@@ -1470,7 +1470,7 @@ function Di() {
|
|
|
1470
1470
|
}
|
|
1471
1471
|
return f;
|
|
1472
1472
|
}, s = (d) => {
|
|
1473
|
-
e ? n.push(d) :
|
|
1473
|
+
e ? n.push(d) : Je(() => {
|
|
1474
1474
|
t(d);
|
|
1475
1475
|
});
|
|
1476
1476
|
}, r = (d) => (...f) => {
|
|
@@ -1479,7 +1479,7 @@ function Di() {
|
|
|
1479
1479
|
});
|
|
1480
1480
|
}, o = () => {
|
|
1481
1481
|
const d = n;
|
|
1482
|
-
n = [], d.length &&
|
|
1482
|
+
n = [], d.length && Je(() => {
|
|
1483
1483
|
i(() => {
|
|
1484
1484
|
d.forEach((f) => {
|
|
1485
1485
|
t(f);
|
|
@@ -1500,7 +1500,7 @@ function Di() {
|
|
|
1500
1500
|
};
|
|
1501
1501
|
}
|
|
1502
1502
|
const X = Di();
|
|
1503
|
-
class Ii extends
|
|
1503
|
+
class Ii extends De {
|
|
1504
1504
|
constructor(e, t) {
|
|
1505
1505
|
super(), this.client = e, this.options = t, this.trackedProps = /* @__PURE__ */ new Set(), this.selectError = null, this.bindMethods(), this.setOptions(t);
|
|
1506
1506
|
}
|
|
@@ -1508,7 +1508,7 @@ class Ii extends Te {
|
|
|
1508
1508
|
this.remove = this.remove.bind(this), this.refetch = this.refetch.bind(this);
|
|
1509
1509
|
}
|
|
1510
1510
|
onSubscribe() {
|
|
1511
|
-
this.listeners.size === 1 && (this.currentQuery.addObserver(this),
|
|
1511
|
+
this.listeners.size === 1 && (this.currentQuery.addObserver(this), Ze(this.currentQuery, this.options) && this.executeFetch(), this.updateTimers());
|
|
1512
1512
|
}
|
|
1513
1513
|
onUnsubscribe() {
|
|
1514
1514
|
this.hasListeners() || this.destroy();
|
|
@@ -1532,7 +1532,7 @@ class Ii extends Te {
|
|
|
1532
1532
|
throw new Error("Expected enabled to be a boolean");
|
|
1533
1533
|
this.options.queryKey || (this.options.queryKey = i.queryKey), this.updateQuery();
|
|
1534
1534
|
const s = this.hasListeners();
|
|
1535
|
-
s &&
|
|
1535
|
+
s && Xe(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();
|
|
1536
1536
|
const r = this.computeRefetchInterval();
|
|
1537
1537
|
s && (this.currentQuery !== a || this.options.enabled !== i.enabled || r !== this.currentRefetchInterval) && this.updateRefetchInterval(r);
|
|
1538
1538
|
}
|
|
@@ -1587,7 +1587,7 @@ class Ii extends Te {
|
|
|
1587
1587
|
return e != null && e.throwOnError || (t = t.catch(Si)), t;
|
|
1588
1588
|
}
|
|
1589
1589
|
updateStaleTimeout() {
|
|
1590
|
-
if (this.clearStaleTimeout(), oe || this.currentResult.isStale || !
|
|
1590
|
+
if (this.clearStaleTimeout(), oe || this.currentResult.isStale || !Qe(this.options.staleTime))
|
|
1591
1591
|
return;
|
|
1592
1592
|
const t = yi(this.currentResult.dataUpdatedAt, this.options.staleTime) + 1;
|
|
1593
1593
|
this.staleTimeoutId = setTimeout(() => {
|
|
@@ -1599,7 +1599,7 @@ class Ii extends Te {
|
|
|
1599
1599
|
return typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(this.currentResult.data, this.currentQuery) : (e = this.options.refetchInterval) != null ? e : !1;
|
|
1600
1600
|
}
|
|
1601
1601
|
updateRefetchInterval(e) {
|
|
1602
|
-
this.clearRefetchInterval(), this.currentRefetchInterval = e, !(oe || this.options.enabled === !1 || !
|
|
1602
|
+
this.clearRefetchInterval(), this.currentRefetchInterval = e, !(oe || this.options.enabled === !1 || !Qe(this.currentRefetchInterval) || this.currentRefetchInterval === 0) && (this.refetchIntervalId = setInterval(() => {
|
|
1603
1603
|
(this.options.refetchIntervalInBackground || Ci.isFocused()) && this.executeFetch();
|
|
1604
1604
|
}, this.currentRefetchInterval));
|
|
1605
1605
|
}
|
|
@@ -1624,7 +1624,7 @@ class Ii extends Te {
|
|
|
1624
1624
|
status: N
|
|
1625
1625
|
} = f, O = !1, F = !1, D;
|
|
1626
1626
|
if (t._optimisticResults) {
|
|
1627
|
-
const m = this.hasListeners(), p = !m &&
|
|
1627
|
+
const m = this.hasListeners(), p = !m && Ze(e, t), h = m && Xe(e, i, t, a);
|
|
1628
1628
|
(p || h) && (k = Oi(e.options.networkMode) ? "fetching" : "paused", c || (N = "loading")), t._optimisticResults === "isRestoring" && (k = "idle");
|
|
1629
1629
|
}
|
|
1630
1630
|
if (t.keepPreviousData && !f.dataUpdatedAt && d != null && d.isSuccess && N !== "error")
|
|
@@ -1634,7 +1634,7 @@ class Ii extends Te {
|
|
|
1634
1634
|
D = this.selectResult;
|
|
1635
1635
|
else
|
|
1636
1636
|
try {
|
|
1637
|
-
this.selectFn = t.select, D = t.select(f.data), D =
|
|
1637
|
+
this.selectFn = t.select, D = t.select(f.data), D = qe(s == null ? void 0 : s.data, D, t), this.selectResult = D, this.selectError = null;
|
|
1638
1638
|
} catch (m) {
|
|
1639
1639
|
this.selectError = m;
|
|
1640
1640
|
}
|
|
@@ -1650,7 +1650,7 @@ class Ii extends Te {
|
|
|
1650
1650
|
} catch (p) {
|
|
1651
1651
|
this.selectError = p;
|
|
1652
1652
|
}
|
|
1653
|
-
typeof m != "undefined" && (N = "success", D =
|
|
1653
|
+
typeof m != "undefined" && (N = "success", D = qe(s == null ? void 0 : s.data, m, t), F = !0);
|
|
1654
1654
|
}
|
|
1655
1655
|
this.selectError && (S = this.selectError, D = this.selectResult, y = Date.now(), N = "error");
|
|
1656
1656
|
const w = k === "fetching", I = N === "loading", L = N === "error";
|
|
@@ -1677,7 +1677,7 @@ class Ii extends Te {
|
|
|
1677
1677
|
isPlaceholderData: F,
|
|
1678
1678
|
isPreviousData: O,
|
|
1679
1679
|
isRefetchError: L && f.dataUpdatedAt !== 0,
|
|
1680
|
-
isStale:
|
|
1680
|
+
isStale: Ie(e, t),
|
|
1681
1681
|
refetch: this.refetch,
|
|
1682
1682
|
remove: this.remove
|
|
1683
1683
|
};
|
|
@@ -1742,28 +1742,28 @@ class Ii extends Te {
|
|
|
1742
1742
|
function Li(n, e) {
|
|
1743
1743
|
return e.enabled !== !1 && !n.state.dataUpdatedAt && !(n.state.status === "error" && e.retryOnMount === !1);
|
|
1744
1744
|
}
|
|
1745
|
-
function
|
|
1745
|
+
function Ze(n, e) {
|
|
1746
1746
|
return Li(n, e) || n.state.dataUpdatedAt > 0 && Fe(n, e, e.refetchOnMount);
|
|
1747
1747
|
}
|
|
1748
1748
|
function Fe(n, e, t) {
|
|
1749
1749
|
if (e.enabled !== !1) {
|
|
1750
1750
|
const i = typeof t == "function" ? t(n) : t;
|
|
1751
|
-
return i === "always" || i !== !1 &&
|
|
1751
|
+
return i === "always" || i !== !1 && Ie(n, e);
|
|
1752
1752
|
}
|
|
1753
1753
|
return !1;
|
|
1754
1754
|
}
|
|
1755
|
-
function
|
|
1756
|
-
return t.enabled !== !1 && (n !== e || i.enabled === !1) && (!t.suspense || n.state.status !== "error") &&
|
|
1755
|
+
function Xe(n, e, t, i) {
|
|
1756
|
+
return t.enabled !== !1 && (n !== e || i.enabled === !1) && (!t.suspense || n.state.status !== "error") && Ie(n, t);
|
|
1757
1757
|
}
|
|
1758
|
-
function
|
|
1758
|
+
function Ie(n, e) {
|
|
1759
1759
|
return n.isStaleByTime(e.staleTime);
|
|
1760
1760
|
}
|
|
1761
1761
|
function Ai(n, e, t) {
|
|
1762
1762
|
return t.keepPreviousData ? !1 : t.placeholderData !== void 0 ? e.isPlaceholderData : !be(n.getCurrentResult(), e);
|
|
1763
1763
|
}
|
|
1764
|
-
const Pi =
|
|
1764
|
+
const Pi = Ct.useSyncExternalStore, Ye = /* @__PURE__ */ M.createContext(void 0), Vi = /* @__PURE__ */ M.createContext(!1);
|
|
1765
1765
|
function _i(n, e) {
|
|
1766
|
-
return n || (e && typeof window != "undefined" ? (window.ReactQueryClientContext || (window.ReactQueryClientContext =
|
|
1766
|
+
return n || (e && typeof window != "undefined" ? (window.ReactQueryClientContext || (window.ReactQueryClientContext = Ye), window.ReactQueryClientContext) : Ye);
|
|
1767
1767
|
}
|
|
1768
1768
|
const Ui = ({
|
|
1769
1769
|
context: n
|
|
@@ -1848,14 +1848,14 @@ const Yi = () => ["account"], js = () => {
|
|
|
1848
1848
|
refetchOnWindowFocus: !1,
|
|
1849
1849
|
refetchOnMount: !1
|
|
1850
1850
|
});
|
|
1851
|
-
return
|
|
1851
|
+
return gt(() => {
|
|
1852
1852
|
const a = i.data;
|
|
1853
1853
|
!i.isSuccess || !a || t(a);
|
|
1854
1854
|
}, [i.status]), {
|
|
1855
1855
|
findQuery: i,
|
|
1856
1856
|
account: e
|
|
1857
1857
|
};
|
|
1858
|
-
}, ea =
|
|
1858
|
+
}, ea = kt();
|
|
1859
1859
|
async function ta(n) {
|
|
1860
1860
|
const e = await It.get(n);
|
|
1861
1861
|
return ea.set(Ee, e), e;
|
|
@@ -1924,14 +1924,14 @@ function ca(n) {
|
|
|
1924
1924
|
var e = ua(n, "string");
|
|
1925
1925
|
return Y(e) === "symbol" ? e : String(e);
|
|
1926
1926
|
}
|
|
1927
|
-
function
|
|
1927
|
+
function et(n, e) {
|
|
1928
1928
|
for (var t = 0; t < e.length; t++) {
|
|
1929
1929
|
var i = e[t];
|
|
1930
1930
|
i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(n, ca(i.key), i);
|
|
1931
1931
|
}
|
|
1932
1932
|
}
|
|
1933
1933
|
function ma(n, e, t) {
|
|
1934
|
-
return e &&
|
|
1934
|
+
return e && et(n.prototype, e), t && et(n, t), Object.defineProperty(n, "prototype", {
|
|
1935
1935
|
writable: !1
|
|
1936
1936
|
}), n;
|
|
1937
1937
|
}
|
|
@@ -1943,7 +1943,7 @@ function ha(n) {
|
|
|
1943
1943
|
n[t] === void 0 && (n[t] = e[t]);
|
|
1944
1944
|
}), n;
|
|
1945
1945
|
}
|
|
1946
|
-
var
|
|
1946
|
+
var tt = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, ga = function(e, t, i) {
|
|
1947
1947
|
var a = i || {};
|
|
1948
1948
|
a.path = a.path || "/";
|
|
1949
1949
|
var s = encodeURIComponent(t), r = "".concat(e, "=").concat(s);
|
|
@@ -1954,12 +1954,12 @@ var et = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, ga = function(e, t, i) {
|
|
|
1954
1954
|
r += "; Max-Age=".concat(Math.floor(o));
|
|
1955
1955
|
}
|
|
1956
1956
|
if (a.domain) {
|
|
1957
|
-
if (!
|
|
1957
|
+
if (!tt.test(a.domain))
|
|
1958
1958
|
throw new TypeError("option domain is invalid");
|
|
1959
1959
|
r += "; Domain=".concat(a.domain);
|
|
1960
1960
|
}
|
|
1961
1961
|
if (a.path) {
|
|
1962
|
-
if (!
|
|
1962
|
+
if (!tt.test(a.path))
|
|
1963
1963
|
throw new TypeError("option path is invalid");
|
|
1964
1964
|
r += "; Path=".concat(a.path);
|
|
1965
1965
|
}
|
|
@@ -1988,7 +1988,7 @@ var et = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, ga = function(e, t, i) {
|
|
|
1988
1988
|
}
|
|
1989
1989
|
}
|
|
1990
1990
|
return r;
|
|
1991
|
-
},
|
|
1991
|
+
}, nt = {
|
|
1992
1992
|
create: function(e, t, i, a) {
|
|
1993
1993
|
var s = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
|
|
1994
1994
|
path: "/",
|
|
@@ -2013,13 +2013,13 @@ var et = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, ga = function(e, t, i) {
|
|
|
2013
2013
|
lookup: function(e) {
|
|
2014
2014
|
var t;
|
|
2015
2015
|
if (e.lookupCookie && typeof document != "undefined") {
|
|
2016
|
-
var i =
|
|
2016
|
+
var i = nt.read(e.lookupCookie);
|
|
2017
2017
|
i && (t = i);
|
|
2018
2018
|
}
|
|
2019
2019
|
return t;
|
|
2020
2020
|
},
|
|
2021
2021
|
cacheUserLanguage: function(e, t) {
|
|
2022
|
-
t.lookupCookie && typeof document != "undefined" &&
|
|
2022
|
+
t.lookupCookie && typeof document != "undefined" && nt.create(t.lookupCookie, e, t.cookieMinutes, t.cookieDomain, t.cookieOptions);
|
|
2023
2023
|
}
|
|
2024
2024
|
}, va = {
|
|
2025
2025
|
name: "querystring",
|
|
@@ -2038,7 +2038,7 @@ var et = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, ga = function(e, t, i) {
|
|
|
2038
2038
|
}
|
|
2039
2039
|
return t;
|
|
2040
2040
|
}
|
|
2041
|
-
}, J = null,
|
|
2041
|
+
}, J = null, it = function() {
|
|
2042
2042
|
if (J !== null)
|
|
2043
2043
|
return J;
|
|
2044
2044
|
try {
|
|
@@ -2053,16 +2053,16 @@ var et = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, ga = function(e, t, i) {
|
|
|
2053
2053
|
name: "localStorage",
|
|
2054
2054
|
lookup: function(e) {
|
|
2055
2055
|
var t;
|
|
2056
|
-
if (e.lookupLocalStorage &&
|
|
2056
|
+
if (e.lookupLocalStorage && it()) {
|
|
2057
2057
|
var i = window.localStorage.getItem(e.lookupLocalStorage);
|
|
2058
2058
|
i && (t = i);
|
|
2059
2059
|
}
|
|
2060
2060
|
return t;
|
|
2061
2061
|
},
|
|
2062
2062
|
cacheUserLanguage: function(e, t) {
|
|
2063
|
-
t.lookupLocalStorage &&
|
|
2063
|
+
t.lookupLocalStorage && it() && window.localStorage.setItem(t.lookupLocalStorage, e);
|
|
2064
2064
|
}
|
|
2065
|
-
}, q = null,
|
|
2065
|
+
}, q = null, at = function() {
|
|
2066
2066
|
if (q !== null)
|
|
2067
2067
|
return q;
|
|
2068
2068
|
try {
|
|
@@ -2077,14 +2077,14 @@ var et = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, ga = function(e, t, i) {
|
|
|
2077
2077
|
name: "sessionStorage",
|
|
2078
2078
|
lookup: function(e) {
|
|
2079
2079
|
var t;
|
|
2080
|
-
if (e.lookupSessionStorage &&
|
|
2080
|
+
if (e.lookupSessionStorage && at()) {
|
|
2081
2081
|
var i = window.sessionStorage.getItem(e.lookupSessionStorage);
|
|
2082
2082
|
i && (t = i);
|
|
2083
2083
|
}
|
|
2084
2084
|
return t;
|
|
2085
2085
|
},
|
|
2086
2086
|
cacheUserLanguage: function(e, t) {
|
|
2087
|
-
t.lookupSessionStorage &&
|
|
2087
|
+
t.lookupSessionStorage && at() && window.sessionStorage.setItem(t.lookupSessionStorage, e);
|
|
2088
2088
|
}
|
|
2089
2089
|
}, Na = {
|
|
2090
2090
|
name: "navigator",
|
|
@@ -2324,7 +2324,7 @@ function H() {
|
|
|
2324
2324
|
});
|
|
2325
2325
|
return t.resolve = n, t.reject = e, t;
|
|
2326
2326
|
}
|
|
2327
|
-
function
|
|
2327
|
+
function st(n) {
|
|
2328
2328
|
return n == null ? "" : "" + n;
|
|
2329
2329
|
}
|
|
2330
2330
|
function Oa(n, e, t) {
|
|
@@ -2332,7 +2332,7 @@ function Oa(n, e, t) {
|
|
|
2332
2332
|
e[i] && (t[i] = e[i]);
|
|
2333
2333
|
});
|
|
2334
2334
|
}
|
|
2335
|
-
function
|
|
2335
|
+
function Le(n, e, t) {
|
|
2336
2336
|
function i(r) {
|
|
2337
2337
|
return r && r.indexOf("###") > -1 ? r.replace(/###/g, ".") : r;
|
|
2338
2338
|
}
|
|
@@ -2351,25 +2351,25 @@ function Ie(n, e, t) {
|
|
|
2351
2351
|
k: i(s.shift())
|
|
2352
2352
|
};
|
|
2353
2353
|
}
|
|
2354
|
-
function
|
|
2354
|
+
function rt(n, e, t) {
|
|
2355
2355
|
const {
|
|
2356
2356
|
obj: i,
|
|
2357
2357
|
k: a
|
|
2358
|
-
} =
|
|
2358
|
+
} = Le(n, e, Object);
|
|
2359
2359
|
i[a] = t;
|
|
2360
2360
|
}
|
|
2361
2361
|
function Ra(n, e, t, i) {
|
|
2362
2362
|
const {
|
|
2363
2363
|
obj: a,
|
|
2364
2364
|
k: s
|
|
2365
|
-
} =
|
|
2365
|
+
} = Le(n, e, Object);
|
|
2366
2366
|
a[s] = a[s] || [], i && (a[s] = a[s].concat(t)), i || a[s].push(t);
|
|
2367
2367
|
}
|
|
2368
2368
|
function de(n, e) {
|
|
2369
2369
|
const {
|
|
2370
2370
|
obj: t,
|
|
2371
2371
|
k: i
|
|
2372
|
-
} =
|
|
2372
|
+
} = Le(n, e);
|
|
2373
2373
|
if (t)
|
|
2374
2374
|
return t[i];
|
|
2375
2375
|
}
|
|
@@ -2445,7 +2445,7 @@ function ue(n, e) {
|
|
|
2445
2445
|
function ce(n) {
|
|
2446
2446
|
return n && n.indexOf("_") > 0 ? n.replace("_", "-") : n;
|
|
2447
2447
|
}
|
|
2448
|
-
class
|
|
2448
|
+
class ot extends ge {
|
|
2449
2449
|
constructor(e) {
|
|
2450
2450
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
2451
2451
|
ns: ["translation"],
|
|
@@ -2474,7 +2474,7 @@ class rt extends ge {
|
|
|
2474
2474
|
};
|
|
2475
2475
|
const r = s.keySeparator !== void 0 ? s.keySeparator : this.options.keySeparator;
|
|
2476
2476
|
let o = [e, t];
|
|
2477
|
-
i && (o = o.concat(r ? i.split(r) : i)), e.indexOf(".") > -1 && (o = e.split("."), a = t, t = o[1]), this.addNamespaces(t),
|
|
2477
|
+
i && (o = o.concat(r ? i.split(r) : i)), e.indexOf(".") > -1 && (o = e.split("."), a = t, t = o[1]), this.addNamespaces(t), rt(this.data, o, a), s.silent || this.emit("added", e, t, i, a);
|
|
2478
2478
|
}
|
|
2479
2479
|
addResources(e, t, i) {
|
|
2480
2480
|
let a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {
|
|
@@ -2495,7 +2495,7 @@ class rt extends ge {
|
|
|
2495
2495
|
a ? _t(l, i, s) : l = {
|
|
2496
2496
|
...l,
|
|
2497
2497
|
...i
|
|
2498
|
-
},
|
|
2498
|
+
}, rt(this.data, o, l), r.silent || this.emit("added", e, t, i);
|
|
2499
2499
|
}
|
|
2500
2500
|
removeResourceBundle(e, t) {
|
|
2501
2501
|
this.hasResourceBundle(e, t) && delete this.data[e][t], this.removeNamespaces(t), this.emit("removed", e, t);
|
|
@@ -2530,7 +2530,7 @@ var Ut = {
|
|
|
2530
2530
|
}), e;
|
|
2531
2531
|
}
|
|
2532
2532
|
};
|
|
2533
|
-
const
|
|
2533
|
+
const lt = {};
|
|
2534
2534
|
class me extends ge {
|
|
2535
2535
|
constructor(e) {
|
|
2536
2536
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
@@ -2720,7 +2720,7 @@ class me extends ge {
|
|
|
2720
2720
|
this.options.fallbackNS && (f = f.concat(this.options.fallbackNS));
|
|
2721
2721
|
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);
|
|
2722
2722
|
f.forEach((N) => {
|
|
2723
|
-
this.isValidLookup(i) || (o = N, !
|
|
2723
|
+
this.isValidLookup(i) || (o = N, !lt[`${k[0]}-${N}`] && this.utils && this.utils.hasLoadedNamespace && !this.utils.hasLoadedNamespace(o) && (lt[`${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) => {
|
|
2724
2724
|
if (this.isValidLookup(i))
|
|
2725
2725
|
return;
|
|
2726
2726
|
r = O;
|
|
@@ -2783,7 +2783,7 @@ class me extends ge {
|
|
|
2783
2783
|
function Ne(n) {
|
|
2784
2784
|
return n.charAt(0).toUpperCase() + n.slice(1);
|
|
2785
2785
|
}
|
|
2786
|
-
class
|
|
2786
|
+
class dt {
|
|
2787
2787
|
constructor(e) {
|
|
2788
2788
|
this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = $.create("languageUtils");
|
|
2789
2789
|
}
|
|
@@ -3012,7 +3012,7 @@ let Pa = [{
|
|
|
3012
3012
|
return n == 1 ? 0 : n == 2 ? 1 : (n < 0 || n > 10) && n % 10 == 0 ? 2 : 3;
|
|
3013
3013
|
}
|
|
3014
3014
|
};
|
|
3015
|
-
const _a = ["v1", "v2", "v3"], Ua = ["v4"],
|
|
3015
|
+
const _a = ["v1", "v2", "v3"], Ua = ["v4"], ut = {
|
|
3016
3016
|
zero: 0,
|
|
3017
3017
|
one: 1,
|
|
3018
3018
|
two: 2,
|
|
@@ -3063,7 +3063,7 @@ class $a {
|
|
|
3063
3063
|
getSuffixes(e) {
|
|
3064
3064
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
3065
3065
|
const i = this.getRule(e, t);
|
|
3066
|
-
return i ? this.shouldUseIntlApi() ? i.resolvedOptions().pluralCategories.sort((a, s) =>
|
|
3066
|
+
return i ? this.shouldUseIntlApi() ? i.resolvedOptions().pluralCategories.sort((a, s) => ut[a] - ut[s]).map((a) => `${this.options.prepend}${t.ordinal ? `ordinal${this.options.prepend}` : ""}${a}`) : i.numbers.map((a) => this.getSuffix(e, a, t)) : [];
|
|
3067
3067
|
}
|
|
3068
3068
|
getSuffix(e, t) {
|
|
3069
3069
|
let i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
@@ -3081,7 +3081,7 @@ class $a {
|
|
|
3081
3081
|
return !_a.includes(this.options.compatibilityJSON);
|
|
3082
3082
|
}
|
|
3083
3083
|
}
|
|
3084
|
-
function
|
|
3084
|
+
function ct(n, e, t) {
|
|
3085
3085
|
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);
|
|
3086
3086
|
return !s && a && typeof t == "string" && (s = ue(n, t, i), s === void 0 && (s = ue(e, t, i))), s;
|
|
3087
3087
|
}
|
|
@@ -3117,7 +3117,7 @@ class ja {
|
|
|
3117
3117
|
}
|
|
3118
3118
|
const d = (y) => {
|
|
3119
3119
|
if (y.indexOf(this.formatSeparator) < 0) {
|
|
3120
|
-
const F =
|
|
3120
|
+
const F = ct(t, l, y, this.options.keySeparator, this.options.ignoreJSONStructure);
|
|
3121
3121
|
return this.alwaysFormat ? this.format(F, void 0, i, {
|
|
3122
3122
|
...a,
|
|
3123
3123
|
...t,
|
|
@@ -3125,7 +3125,7 @@ class ja {
|
|
|
3125
3125
|
}) : F;
|
|
3126
3126
|
}
|
|
3127
3127
|
const k = y.split(this.formatSeparator), N = k.shift().trim(), O = k.join(this.formatSeparator).trim();
|
|
3128
|
-
return this.format(
|
|
3128
|
+
return this.format(ct(t, l, N, this.options.keySeparator, this.options.ignoreJSONStructure), O, i, {
|
|
3129
3129
|
...a,
|
|
3130
3130
|
...t,
|
|
3131
3131
|
interpolationkey: N
|
|
@@ -3154,7 +3154,7 @@ class ja {
|
|
|
3154
3154
|
} else
|
|
3155
3155
|
this.logger.warn(`missed to pass in variable ${k} for interpolating ${e}`), r = "";
|
|
3156
3156
|
else
|
|
3157
|
-
typeof r != "string" && !this.useRawValueToEscape && (r =
|
|
3157
|
+
typeof r != "string" && !this.useRawValueToEscape && (r = st(r));
|
|
3158
3158
|
const N = y.safeValue(r);
|
|
3159
3159
|
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)
|
|
3160
3160
|
break;
|
|
@@ -3194,7 +3194,7 @@ class ja {
|
|
|
3194
3194
|
}
|
|
3195
3195
|
if (s = t(o.call(this, a[1].trim(), r), r), s && a[0] === e && typeof s != "string")
|
|
3196
3196
|
return s;
|
|
3197
|
-
typeof s != "string" && (s =
|
|
3197
|
+
typeof s != "string" && (s = st(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, {
|
|
3198
3198
|
...i,
|
|
3199
3199
|
interpolationkey: a[1].trim()
|
|
3200
3200
|
}), s.trim())), e = e.replace(a[0], s), this.regexp.lastIndex = 0;
|
|
@@ -3441,7 +3441,7 @@ class Ga extends ge {
|
|
|
3441
3441
|
}
|
|
3442
3442
|
}
|
|
3443
3443
|
}
|
|
3444
|
-
function
|
|
3444
|
+
function mt() {
|
|
3445
3445
|
return {
|
|
3446
3446
|
debug: !1,
|
|
3447
3447
|
initImmediate: !0,
|
|
@@ -3500,7 +3500,7 @@ function ct() {
|
|
|
3500
3500
|
}
|
|
3501
3501
|
};
|
|
3502
3502
|
}
|
|
3503
|
-
function
|
|
3503
|
+
function ft(n) {
|
|
3504
3504
|
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;
|
|
3505
3505
|
}
|
|
3506
3506
|
function ae() {
|
|
@@ -3513,7 +3513,7 @@ function Ka(n) {
|
|
|
3513
3513
|
class ee extends ge {
|
|
3514
3514
|
constructor() {
|
|
3515
3515
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 ? arguments[1] : void 0;
|
|
3516
|
-
if (super(), this.options =
|
|
3516
|
+
if (super(), this.options = ft(e), this.services = {}, this.logger = $, this.modules = {
|
|
3517
3517
|
external: []
|
|
3518
3518
|
}, Ka(this), t && !this.isInitialized && !e.isClone) {
|
|
3519
3519
|
if (!this.options.initImmediate)
|
|
@@ -3527,11 +3527,11 @@ class ee extends ge {
|
|
|
3527
3527
|
var e = this;
|
|
3528
3528
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, i = arguments.length > 1 ? arguments[1] : void 0;
|
|
3529
3529
|
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]));
|
|
3530
|
-
const a =
|
|
3530
|
+
const a = mt();
|
|
3531
3531
|
this.options = {
|
|
3532
3532
|
...a,
|
|
3533
3533
|
...this.options,
|
|
3534
|
-
...
|
|
3534
|
+
...ft(t)
|
|
3535
3535
|
}, this.options.compatibilityAPI !== "v1" && (this.options.interpolation = {
|
|
3536
3536
|
...a.interpolation,
|
|
3537
3537
|
...this.options.interpolation
|
|
@@ -3543,8 +3543,8 @@ class ee extends ge {
|
|
|
3543
3543
|
this.modules.logger ? $.init(s(this.modules.logger), this.options) : $.init(null, this.options);
|
|
3544
3544
|
let d;
|
|
3545
3545
|
this.modules.formatter ? d = this.modules.formatter : typeof Intl != "undefined" && (d = Ba);
|
|
3546
|
-
const f = new
|
|
3547
|
-
this.store = new
|
|
3546
|
+
const f = new dt(this.options);
|
|
3547
|
+
this.store = new ot(this.options.resources, this.options);
|
|
3548
3548
|
const c = this.services;
|
|
3549
3549
|
c.logger = $, c.resourceStore = this.store, c.languageUtils = f, c.pluralResolver = new $a(f, {
|
|
3550
3550
|
prepend: this.options.pluralSeparator,
|
|
@@ -3718,7 +3718,7 @@ class ee extends ge {
|
|
|
3718
3718
|
dir(e) {
|
|
3719
3719
|
if (e || (e = this.resolvedLanguage || (this.languages && this.languages.length > 0 ? this.languages[0] : this.language)), !e)
|
|
3720
3720
|
return "rtl";
|
|
3721
|
-
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
|
|
3721
|
+
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 dt(mt());
|
|
3722
3722
|
return t.indexOf(i.getLanguagePartFromCode(e)) > -1 || e.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
|
|
3723
3723
|
}
|
|
3724
3724
|
static createInstance() {
|
|
@@ -3740,7 +3740,7 @@ class ee extends ge {
|
|
|
3740
3740
|
...this.services
|
|
3741
3741
|
}, s.services.utils = {
|
|
3742
3742
|
hasLoadedNamespace: s.hasLoadedNamespace.bind(s)
|
|
3743
|
-
}, i && (s.store = new
|
|
3743
|
+
}, i && (s.store = new ot(this.store.data, a), s.services.resourceStore = s.store), s.translator = new me(s.services, a), s.translator.on("*", function(o) {
|
|
3744
3744
|
for (var l = arguments.length, u = new Array(l > 1 ? l - 1 : 0), d = 1; d < l; d++)
|
|
3745
3745
|
u[d - 1] = arguments[d];
|
|
3746
3746
|
s.emit(o, ...u);
|
|
@@ -3796,7 +3796,7 @@ const Wa = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|
|
|
|
3796
3796
|
"/": "/",
|
|
3797
3797
|
"/": "/"
|
|
3798
3798
|
}, qa = (n) => Ja[n], Ha = (n) => n.replace(Wa, qa);
|
|
3799
|
-
let
|
|
3799
|
+
let pt = {
|
|
3800
3800
|
bindI18n: "languageChanged",
|
|
3801
3801
|
bindI18nStore: "",
|
|
3802
3802
|
transEmptyNodeValue: "",
|
|
@@ -3808,8 +3808,8 @@ let ft = {
|
|
|
3808
3808
|
};
|
|
3809
3809
|
function Za() {
|
|
3810
3810
|
let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
3811
|
-
|
|
3812
|
-
...
|
|
3811
|
+
pt = {
|
|
3812
|
+
...pt,
|
|
3813
3813
|
...n
|
|
3814
3814
|
};
|
|
3815
3815
|
}
|
|
@@ -3821,11 +3821,11 @@ const Xa = {
|
|
|
3821
3821
|
};
|
|
3822
3822
|
Ea(U, Xa);
|
|
3823
3823
|
const Qs = (n) => la(U, n);
|
|
3824
|
-
let
|
|
3825
|
-
const we =
|
|
3824
|
+
let Ae = /* @__PURE__ */ new Map();
|
|
3825
|
+
const we = ht(Ae), Gs = ({ children: n, stores: e }) => {
|
|
3826
3826
|
const t = Ce(we), i = Wt(() => {
|
|
3827
3827
|
const a = /* @__PURE__ */ new Map();
|
|
3828
|
-
return e.forEach((s) => a.set(s.class, s.value)),
|
|
3828
|
+
return e.forEach((s) => a.set(s.class, s.value)), Ae = new Map([...t, ...a]);
|
|
3829
3829
|
}, []);
|
|
3830
3830
|
return /* @__PURE__ */ Jt(we.Provider, { value: i, children: n });
|
|
3831
3831
|
};
|
|
@@ -3833,7 +3833,7 @@ function Ks(n) {
|
|
|
3833
3833
|
return Ce(we).get(n);
|
|
3834
3834
|
}
|
|
3835
3835
|
function Ws(n) {
|
|
3836
|
-
return
|
|
3836
|
+
return Ae.get(n);
|
|
3837
3837
|
}
|
|
3838
3838
|
var Mt = /* @__PURE__ */ ((n) => (n.Created = "CREATED", n.Finalized = "FINALIZED", n.Live = "LIVE", n.Starting = "STARTING", n))(Mt || {}), $t = /* @__PURE__ */ ((n) => (n.Add = "add", n.Remove = "remove", n))($t || {}), jt = /* @__PURE__ */ ((n) => (n.Active = "active", n.Inactive = "inactive", n))(jt || {});
|
|
3839
3839
|
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({
|
|
@@ -3899,7 +3899,7 @@ export {
|
|
|
3899
3899
|
li as InvalidNizzaGlobalObjectError,
|
|
3900
3900
|
ia as LanguageTypes,
|
|
3901
3901
|
Gn as Logger,
|
|
3902
|
-
|
|
3902
|
+
Te as NizzaAccount,
|
|
3903
3903
|
na as NizzaEventStatus,
|
|
3904
3904
|
sa as NizzaProductRequestOriginTypes,
|
|
3905
3905
|
aa as NizzaVariationTypes,
|
|
@@ -3916,7 +3916,7 @@ export {
|
|
|
3916
3916
|
Z as coreLogger,
|
|
3917
3917
|
ui as createAggregateRoot,
|
|
3918
3918
|
qs as createStore,
|
|
3919
|
-
|
|
3919
|
+
St as customFetch,
|
|
3920
3920
|
Ds as downloadFile,
|
|
3921
3921
|
Ls as fileOrigin,
|
|
3922
3922
|
ta as getAccount,
|
|
@@ -3926,7 +3926,7 @@ export {
|
|
|
3926
3926
|
Ea as i18Init,
|
|
3927
3927
|
hn as jsDownload,
|
|
3928
3928
|
Ps as logger,
|
|
3929
|
-
|
|
3929
|
+
Oe as nizza,
|
|
3930
3930
|
Qs as registerTranslations,
|
|
3931
3931
|
la as registerTranslationsOf,
|
|
3932
3932
|
Is as searchParams,
|