@nizza/core 0.5.0-beta.8 → 0.5.0-beta.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +19 -19
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +1091 -1088
- package/dist/index.mjs.map +1 -1
- package/dist/lib/nizza-store/NizzaStore.d.ts +0 -3
- package/dist/lib/nizza-store/NizzaStore.v2.d.ts +0 -2
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var R = (n, e, t) => (
|
|
1
|
+
var $t = Object.defineProperty;
|
|
2
|
+
var jt = (n, e, t) => e in n ? $t(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
|
|
3
|
+
var R = (n, e, t) => (jt(n, typeof e != "symbol" ? e + "" : e, t), t);
|
|
4
4
|
import * as M from "react";
|
|
5
|
-
import
|
|
6
|
-
import { jsx as
|
|
5
|
+
import me, { createContext as mt, useReducer as zt, useEffect as ft, useDebugValue as Bt, useCallback as Qt, useContext as we, useMemo as Gt } from "react";
|
|
6
|
+
import { jsx as Kt } from "react/jsx-runtime";
|
|
7
7
|
var _ = { NZ_AWS_REGION: "us-east-1", NZ_VTEX_PROJECT: "/Users/jbermudez/TODO/PROJECTS/live-shopping", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
|
|
8
|
-
let
|
|
9
|
-
function
|
|
10
|
-
const t = `atom${++
|
|
8
|
+
let Wt = 0;
|
|
9
|
+
function Jt(n, e) {
|
|
10
|
+
const t = `atom${++Wt}`, i = {
|
|
11
11
|
toString: () => t
|
|
12
12
|
};
|
|
13
13
|
return typeof n == "function" ? i.read = n : (i.init = n, i.read = function(a) {
|
|
@@ -19,21 +19,21 @@ function qt(n, e) {
|
|
|
19
19
|
);
|
|
20
20
|
}), e && (i.write = e), i;
|
|
21
21
|
}
|
|
22
|
-
const
|
|
23
|
-
|
|
24
|
-
}).finally(() =>
|
|
22
|
+
const ge = (n) => "init" in n, ke = (n) => !!n.write, se = /* @__PURE__ */ new WeakMap(), qt = (n, e) => {
|
|
23
|
+
se.set(n, e), n.catch(() => {
|
|
24
|
+
}).finally(() => se.delete(n));
|
|
25
|
+
}, Le = (n, e) => {
|
|
26
|
+
const t = se.get(n);
|
|
27
|
+
t && (se.delete(n), t(e));
|
|
25
28
|
}, Ae = (n, e) => {
|
|
26
|
-
const t = re.get(n);
|
|
27
|
-
t && (re.delete(n), t(e));
|
|
28
|
-
}, Pe = (n, e) => {
|
|
29
29
|
n.status = "fulfilled", n.value = e;
|
|
30
|
-
},
|
|
30
|
+
}, Pe = (n, e) => {
|
|
31
31
|
n.status = "rejected", n.reason = e;
|
|
32
|
-
},
|
|
32
|
+
}, Ht = (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), Ve = (n, e) => !!n && "e" in n && "e" in e && Object.is(n.e, e.e), z = (n) => !!n && "v" in n && n.v instanceof Promise, Zt = (n, e) => "v" in n && "v" in e && n.v.orig && n.v.orig === e.v.orig, te = (n) => {
|
|
33
33
|
if ("e" in n)
|
|
34
34
|
throw n.e;
|
|
35
35
|
return n.v;
|
|
36
|
-
},
|
|
36
|
+
}, pt = () => {
|
|
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 && Le(h.v, g);
|
|
46
46
|
}
|
|
47
47
|
}, o = (m, p, h) => {
|
|
48
48
|
const g = /* @__PURE__ */ new Map();
|
|
@@ -55,16 +55,16 @@ const ke = (n) => "init" in n, ve = (n) => !!n.write, re = /* @__PURE__ */ new W
|
|
|
55
55
|
d: (g == null ? void 0 : g.d) || /* @__PURE__ */ new Map(),
|
|
56
56
|
v: p
|
|
57
57
|
};
|
|
58
|
-
if (h && o(m, b, h),
|
|
58
|
+
if (h && o(m, b, h), W(g, b) && g.d === b.d)
|
|
59
59
|
return g;
|
|
60
|
-
if (z(g) && z(b) &&
|
|
60
|
+
if (z(g) && z(b) && Zt(g, b)) {
|
|
61
61
|
if (g.d === b.d)
|
|
62
62
|
return g;
|
|
63
63
|
b.v = g.v;
|
|
64
64
|
}
|
|
65
65
|
return r(m, b), b;
|
|
66
66
|
}, u = (m, p, h, g) => {
|
|
67
|
-
if (
|
|
67
|
+
if (Ht(p)) {
|
|
68
68
|
let b;
|
|
69
69
|
const C = () => {
|
|
70
70
|
const E = s(m);
|
|
@@ -80,19 +80,19 @@ 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, Ae(v, T), E(T), C());
|
|
84
84
|
},
|
|
85
85
|
(T) => {
|
|
86
|
-
x || (x = !0,
|
|
86
|
+
x || (x = !0, Pe(v, T), P(T), C());
|
|
87
87
|
}
|
|
88
88
|
), b = (T) => {
|
|
89
89
|
x || (x = !0, T.then(
|
|
90
|
-
(V) =>
|
|
91
|
-
(V) =>
|
|
90
|
+
(V) => Ae(v, V),
|
|
91
|
+
(V) => Pe(v, V)
|
|
92
92
|
), E(T));
|
|
93
93
|
};
|
|
94
94
|
});
|
|
95
|
-
return v.orig = p, v.status = "pending",
|
|
95
|
+
return v.orig = p, v.status = "pending", qt(v, (E) => {
|
|
96
96
|
E && b(E), g == null || g();
|
|
97
97
|
}), l(m, v, h);
|
|
98
98
|
}
|
|
@@ -102,14 +102,14 @@ 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), Ve(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]) => {
|
|
109
109
|
if (x === m)
|
|
110
110
|
return !0;
|
|
111
111
|
const V = f(x);
|
|
112
|
-
return V === T ||
|
|
112
|
+
return V === T || W(V, T);
|
|
113
113
|
})))
|
|
114
114
|
return h;
|
|
115
115
|
const g = /* @__PURE__ */ new Map();
|
|
@@ -118,13 +118,13 @@ const ke = (n) => "init" in n, ve = (n) => !!n.write, re = /* @__PURE__ */ new W
|
|
|
118
118
|
if (x === m) {
|
|
119
119
|
const V = s(x);
|
|
120
120
|
if (V)
|
|
121
|
-
return g.set(x, V),
|
|
122
|
-
if (
|
|
121
|
+
return g.set(x, V), te(V);
|
|
122
|
+
if (ge(x))
|
|
123
123
|
return g.set(x, void 0), x.init;
|
|
124
124
|
throw new Error("no atom init");
|
|
125
125
|
}
|
|
126
126
|
const T = f(x);
|
|
127
|
-
return g.set(x, T),
|
|
127
|
+
return g.set(x, T), te(T);
|
|
128
128
|
};
|
|
129
129
|
let v, E;
|
|
130
130
|
const P = {
|
|
@@ -132,7 +132,7 @@ const ke = (n) => "init" in n, ve = (n) => !!n.write, re = /* @__PURE__ */ new W
|
|
|
132
132
|
return v || (v = new AbortController()), v.signal;
|
|
133
133
|
},
|
|
134
134
|
get setSelf() {
|
|
135
|
-
return (_ ? "production" : void 0) !== "production" && !
|
|
135
|
+
return (_ ? "production" : void 0) !== "production" && !ke(m) && console.warn("setSelf function cannot be used with read-only atom"), !E && ke(m) && (E = (...x) => {
|
|
136
136
|
if ((_ ? "production" : void 0) !== "production" && b && console.warn("setSelf function cannot be called in sync"), !b)
|
|
137
137
|
return F(m, ...x);
|
|
138
138
|
}), E;
|
|
@@ -151,7 +151,7 @@ const ke = (n) => "init" in n, ve = (n) => !!n.write, re = /* @__PURE__ */ new W
|
|
|
151
151
|
} finally {
|
|
152
152
|
b = !1;
|
|
153
153
|
}
|
|
154
|
-
}, c = (m) =>
|
|
154
|
+
}, c = (m) => te(f(m)), S = (m) => {
|
|
155
155
|
let p = e.get(m);
|
|
156
156
|
return p || (p = I(m)), p;
|
|
157
157
|
}, y = (m, p) => !p.l.size && (!p.t.size || p.t.size === 1 && p.t.has(m)), k = (m) => {
|
|
@@ -182,8 +182,8 @@ const ke = (n) => "init" in n, ve = (n) => !!n.write, re = /* @__PURE__ */ new W
|
|
|
182
182
|
if (x && h.set(E, --x), !x) {
|
|
183
183
|
let T = !!((P = p.get(E)) != null && P.size);
|
|
184
184
|
if (T) {
|
|
185
|
-
const V = s(E),
|
|
186
|
-
T = !
|
|
185
|
+
const V = s(E), ee = f(E, !0);
|
|
186
|
+
T = !W(V, ee);
|
|
187
187
|
}
|
|
188
188
|
T || p.forEach((V) => V.delete(E));
|
|
189
189
|
}
|
|
@@ -194,13 +194,13 @@ const ke = (n) => "init" in n, ve = (n) => !!n.write, re = /* @__PURE__ */ new W
|
|
|
194
194
|
C(m);
|
|
195
195
|
}, O = (m, ...p) => {
|
|
196
196
|
let h = !0;
|
|
197
|
-
const g = (v) =>
|
|
197
|
+
const g = (v) => te(f(v)), b = (v, ...E) => {
|
|
198
198
|
let P;
|
|
199
199
|
if (v === m) {
|
|
200
|
-
if (!
|
|
200
|
+
if (!ge(v))
|
|
201
201
|
throw new Error("atom not writable");
|
|
202
202
|
const x = s(v), T = u(v, E[0]);
|
|
203
|
-
|
|
203
|
+
W(x, T) || N(v);
|
|
204
204
|
} else
|
|
205
205
|
P = O(v, ...E);
|
|
206
206
|
if (!h) {
|
|
@@ -228,7 +228,7 @@ const ke = (n) => "init" in n, ve = (n) => !!n.write, re = /* @__PURE__ */ new W
|
|
|
228
228
|
t: new Set(p && [p]),
|
|
229
229
|
l: /* @__PURE__ */ new Set()
|
|
230
230
|
};
|
|
231
|
-
if (e.set(m, C), (_ ? "production" : void 0) !== "production" && a.add(m),
|
|
231
|
+
if (e.set(m, C), (_ ? "production" : void 0) !== "production" && a.add(m), ke(m) && m.onMount) {
|
|
232
232
|
const { onMount: v } = m;
|
|
233
233
|
b.push(() => {
|
|
234
234
|
const E = v((...P) => F(m, ...P));
|
|
@@ -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) && Le(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) && D(h, b, g == null ? void 0 : g.d), C && !// TODO This seems pretty hacky. Hope to fix it.
|
|
272
272
|
// Maybe we could `mountDependencies` in `setAtomState`?
|
|
273
|
-
(!z(g) && (
|
|
273
|
+
(!z(g) && (W(g, b) || Ve(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
|
});
|
|
@@ -302,7 +302,7 @@ const ke = (n) => "init" in n, ve = (n) => !!n.write, re = /* @__PURE__ */ new W
|
|
|
302
302
|
dev_get_mounted: (m) => e.get(m),
|
|
303
303
|
dev_restore_atoms: (m) => {
|
|
304
304
|
for (const [h, g] of m)
|
|
305
|
-
|
|
305
|
+
ge(h) && (u(h, g), N(h));
|
|
306
306
|
const p = L();
|
|
307
307
|
i.forEach(
|
|
308
308
|
(h) => h({ type: "restore", flushed: p })
|
|
@@ -314,16 +314,16 @@ const ke = (n) => "init" in n, ve = (n) => !!n.write, re = /* @__PURE__ */ new W
|
|
|
314
314
|
sub: A
|
|
315
315
|
};
|
|
316
316
|
};
|
|
317
|
-
let
|
|
317
|
+
let ve;
|
|
318
318
|
(_ ? "production" : void 0) !== "production" && (typeof globalThis.__NUMBER_OF_JOTAI_INSTANCES__ == "number" ? ++globalThis.__NUMBER_OF_JOTAI_INSTANCES__ : globalThis.__NUMBER_OF_JOTAI_INSTANCES__ = 1);
|
|
319
|
-
const
|
|
319
|
+
const Xt = () => (ve || ((_ ? "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
|
-
),
|
|
322
|
-
var
|
|
323
|
-
const
|
|
324
|
-
const e =
|
|
325
|
-
return (n == null ? void 0 : n.store) || e ||
|
|
326
|
-
},
|
|
321
|
+
), ve = pt()), ve);
|
|
322
|
+
var Yt = { NZ_AWS_REGION: "us-east-1", NZ_VTEX_PROJECT: "/Users/jbermudez/TODO/PROJECTS/live-shopping", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
|
|
323
|
+
const en = mt(void 0), ht = (n) => {
|
|
324
|
+
const e = we(en);
|
|
325
|
+
return (n == null ? void 0 : n.store) || e || Xt();
|
|
326
|
+
}, tn = (n) => typeof (n == null ? void 0 : n.then) == "function", nn = me.use || ((n) => {
|
|
327
327
|
if (n.status === "pending")
|
|
328
328
|
throw n;
|
|
329
329
|
if (n.status === "fulfilled")
|
|
@@ -337,8 +337,8 @@ const tn = ft(void 0), gt = (n) => {
|
|
|
337
337
|
}
|
|
338
338
|
), n);
|
|
339
339
|
});
|
|
340
|
-
function
|
|
341
|
-
const t =
|
|
340
|
+
function an(n, e) {
|
|
341
|
+
const t = ht(e), [[i, a, s], r] = zt(
|
|
342
342
|
(u) => {
|
|
343
343
|
const d = t.get(n);
|
|
344
344
|
return Object.is(u[0], d) && u[1] === t && u[2] === n ? u : [d, t, n];
|
|
@@ -349,7 +349,7 @@ function sn(n, e) {
|
|
|
349
349
|
let o = i;
|
|
350
350
|
(a !== t || s !== n) && (r(), o = t.get(n));
|
|
351
351
|
const l = e == null ? void 0 : e.delay;
|
|
352
|
-
return
|
|
352
|
+
return ft(() => {
|
|
353
353
|
const u = t.sub(n, () => {
|
|
354
354
|
if (typeof l == "number") {
|
|
355
355
|
setTimeout(r, l);
|
|
@@ -358,37 +358,37 @@ function sn(n, e) {
|
|
|
358
358
|
r();
|
|
359
359
|
});
|
|
360
360
|
return r(), u;
|
|
361
|
-
}, [t, n, l]),
|
|
361
|
+
}, [t, n, l]), Bt(o), tn(o) ? nn(o) : o;
|
|
362
362
|
}
|
|
363
|
-
function
|
|
364
|
-
const t =
|
|
365
|
-
return
|
|
363
|
+
function sn(n, e) {
|
|
364
|
+
const t = ht(e);
|
|
365
|
+
return Qt(
|
|
366
366
|
(...a) => {
|
|
367
|
-
if ((
|
|
367
|
+
if ((Yt ? "production" : void 0) !== "production" && !("write" in n))
|
|
368
368
|
throw new Error("not writable atom");
|
|
369
369
|
return t.set(n, ...a);
|
|
370
370
|
},
|
|
371
371
|
[t, n]
|
|
372
372
|
);
|
|
373
373
|
}
|
|
374
|
-
function
|
|
374
|
+
function rn(n, e) {
|
|
375
375
|
return [
|
|
376
|
-
|
|
376
|
+
an(n, e),
|
|
377
377
|
// We do wrong type assertion here, which results in throwing an error.
|
|
378
|
-
|
|
378
|
+
sn(n, e)
|
|
379
379
|
];
|
|
380
380
|
}
|
|
381
|
-
const
|
|
382
|
-
|
|
383
|
-
var
|
|
381
|
+
const Ce = Jt(null);
|
|
382
|
+
Ce.debugLabel = "accountAtom";
|
|
383
|
+
var on = { NZ_AWS_REGION: "us-east-1", NZ_VTEX_PROJECT: "/Users/jbermudez/TODO/PROJECTS/live-shopping", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
|
|
384
384
|
const {
|
|
385
|
-
NZ_AWS_REGION:
|
|
386
|
-
NZ_BACKOFFICE_BACK_URL:
|
|
387
|
-
NZ_CORE_SERVICES_GRAPHQL_URL:
|
|
388
|
-
NZ_CORE_SERVICES_REST_URL:
|
|
389
|
-
} =
|
|
385
|
+
NZ_AWS_REGION: ln,
|
|
386
|
+
NZ_BACKOFFICE_BACK_URL: dn,
|
|
387
|
+
NZ_CORE_SERVICES_GRAPHQL_URL: un,
|
|
388
|
+
NZ_CORE_SERVICES_REST_URL: cn
|
|
389
|
+
} = on, mn = {
|
|
390
390
|
AWS: {
|
|
391
|
-
region:
|
|
391
|
+
region: ln,
|
|
392
392
|
cognito: {
|
|
393
393
|
userPoolId: "us-east-1_knSlGEmJ0",
|
|
394
394
|
userPoolWebClientId: "3hmbfhf7nl3kq20qr9i5lihf1p"
|
|
@@ -396,9 +396,9 @@ const {
|
|
|
396
396
|
},
|
|
397
397
|
// Back services
|
|
398
398
|
apiUrls: {
|
|
399
|
-
restV1:
|
|
400
|
-
restV2:
|
|
401
|
-
graphql:
|
|
399
|
+
restV1: dn || "https://pabprg32bj.execute-api.us-east-1.amazonaws.com",
|
|
400
|
+
restV2: cn || "https://core-services-dev.nizza.com/api",
|
|
401
|
+
graphql: un || "https://core-services-dev.nizza.com/graphql",
|
|
402
402
|
corsProxy: "https://1qmd8jteh1.execute-api.us-east-1.amazonaws.com"
|
|
403
403
|
},
|
|
404
404
|
publicUrls: {
|
|
@@ -412,7 +412,7 @@ const {
|
|
|
412
412
|
wssIVSChat: "wss://edge.ivschat.us-east-1.amazonaws.com"
|
|
413
413
|
}
|
|
414
414
|
};
|
|
415
|
-
async function
|
|
415
|
+
async function gt(n) {
|
|
416
416
|
const {
|
|
417
417
|
url: e,
|
|
418
418
|
method: t = "GET",
|
|
@@ -450,11 +450,11 @@ async function kt(n) {
|
|
|
450
450
|
throw console.error("[CustomFetch] ", u), u;
|
|
451
451
|
}
|
|
452
452
|
}
|
|
453
|
-
const
|
|
454
|
-
function
|
|
455
|
-
fetch(e).then((i) => i.blob()).then((i) =>
|
|
453
|
+
const Os = (n) => gt({ ...n, contentTypeJson: !1, raw: !1 });
|
|
454
|
+
function Rs(n, e, t) {
|
|
455
|
+
fetch(e).then((i) => i.blob()).then((i) => fn(i, `${n}.${t}`));
|
|
456
456
|
}
|
|
457
|
-
const
|
|
457
|
+
const fn = (n, e, t) => {
|
|
458
458
|
const i = [n], a = new Blob(i, {
|
|
459
459
|
type: t != null ? t : "application/octet-stream"
|
|
460
460
|
});
|
|
@@ -465,303 +465,54 @@ const pn = (n, e, t) => {
|
|
|
465
465
|
document.body.removeChild(r), window.URL.revokeObjectURL(s);
|
|
466
466
|
}, 200);
|
|
467
467
|
};
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
let e;
|
|
471
|
-
const t = /* @__PURE__ */ new Set(), i = (l, u) => {
|
|
472
|
-
const d = typeof l == "function" ? l(e) : l;
|
|
473
|
-
if (!Object.is(d, e)) {
|
|
474
|
-
const f = e;
|
|
475
|
-
e = (u != null ? u : typeof d != "object" || d === null) ? d : Object.assign({}, e, d), t.forEach((c) => c(e, f));
|
|
476
|
-
}
|
|
477
|
-
}, a = () => e, o = { setState: i, getState: a, subscribe: (l) => (t.add(l), () => t.delete(l)), destroy: () => {
|
|
478
|
-
(hn ? "production" : void 0) !== "production" && console.warn(
|
|
479
|
-
"[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."
|
|
480
|
-
), t.clear();
|
|
481
|
-
} };
|
|
482
|
-
return e = n(i, a, o), o;
|
|
483
|
-
}, gn = (n) => n ? Ue(n) : Ue;
|
|
484
|
-
var vt = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
|
|
485
|
-
function xe(n) {
|
|
486
|
-
return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
|
|
487
|
-
}
|
|
488
|
-
var St = { exports: {} }, yt = {}, Nt = { exports: {} }, bt = {};
|
|
489
|
-
/**
|
|
490
|
-
* @license React
|
|
491
|
-
* use-sync-external-store-shim.production.min.js
|
|
492
|
-
*
|
|
493
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
494
|
-
*
|
|
495
|
-
* This source code is licensed under the MIT license found in the
|
|
496
|
-
* LICENSE file in the root directory of this source tree.
|
|
497
|
-
*/
|
|
498
|
-
var W = fe;
|
|
499
|
-
function kn(n, e) {
|
|
500
|
-
return n === e && (n !== 0 || 1 / n === 1 / e) || n !== n && e !== e;
|
|
501
|
-
}
|
|
502
|
-
var vn = typeof Object.is == "function" ? Object.is : kn, Sn = W.useState, yn = W.useEffect, Nn = W.useLayoutEffect, bn = W.useDebugValue;
|
|
503
|
-
function Fn(n, e) {
|
|
504
|
-
var t = e(), i = Sn({ inst: { value: t, getSnapshot: e } }), a = i[0].inst, s = i[1];
|
|
505
|
-
return Nn(function() {
|
|
506
|
-
a.value = t, a.getSnapshot = e, ye(a) && s({ inst: a });
|
|
507
|
-
}, [n, t, e]), yn(function() {
|
|
508
|
-
return ye(a) && s({ inst: a }), n(function() {
|
|
509
|
-
ye(a) && s({ inst: a });
|
|
510
|
-
});
|
|
511
|
-
}, [n]), bn(t), t;
|
|
512
|
-
}
|
|
513
|
-
function ye(n) {
|
|
514
|
-
var e = n.getSnapshot;
|
|
515
|
-
n = n.value;
|
|
468
|
+
function Ts() {
|
|
469
|
+
var i, a, s;
|
|
470
|
+
let n = null, e = null, t = null;
|
|
516
471
|
try {
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
* use-sync-external-store-shim/with-selector.production.min.js
|
|
533
|
-
*
|
|
534
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
535
|
-
*
|
|
536
|
-
* This source code is licensed under the MIT license found in the
|
|
537
|
-
* LICENSE file in the root directory of this source tree.
|
|
538
|
-
*/
|
|
539
|
-
var pe = fe, En = Ft;
|
|
540
|
-
function xn(n, e) {
|
|
541
|
-
return n === e && (n !== 0 || 1 / n === 1 / e) || n !== n && e !== e;
|
|
542
|
-
}
|
|
543
|
-
var On = typeof Object.is == "function" ? Object.is : xn, Rn = En.useSyncExternalStore, Tn = pe.useRef, In = pe.useEffect, Dn = pe.useMemo, Ln = pe.useDebugValue;
|
|
544
|
-
yt.useSyncExternalStoreWithSelector = function(n, e, t, i, a) {
|
|
545
|
-
var s = Tn(null);
|
|
546
|
-
if (s.current === null) {
|
|
547
|
-
var r = { hasValue: !1, value: null };
|
|
548
|
-
s.current = r;
|
|
549
|
-
} else
|
|
550
|
-
r = s.current;
|
|
551
|
-
s = Dn(function() {
|
|
552
|
-
function l(S) {
|
|
553
|
-
if (!u) {
|
|
554
|
-
if (u = !0, d = S, S = i(S), a !== void 0 && r.hasValue) {
|
|
555
|
-
var y = r.value;
|
|
556
|
-
if (a(y, S))
|
|
557
|
-
return f = y;
|
|
558
|
-
}
|
|
559
|
-
return f = S;
|
|
560
|
-
}
|
|
561
|
-
if (y = f, On(d, S))
|
|
562
|
-
return y;
|
|
563
|
-
var k = i(S);
|
|
564
|
-
return a !== void 0 && a(y, k) ? y : (d = S, f = k);
|
|
565
|
-
}
|
|
566
|
-
var u = !1, d, f, c = t === void 0 ? null : t;
|
|
567
|
-
return [function() {
|
|
568
|
-
return l(e());
|
|
569
|
-
}, c === null ? void 0 : function() {
|
|
570
|
-
return l(c());
|
|
571
|
-
}];
|
|
572
|
-
}, [e, t, i, a]);
|
|
573
|
-
var o = Rn(n, s[0], s[1]);
|
|
574
|
-
return In(function() {
|
|
575
|
-
r.hasValue = !0, r.value = o;
|
|
576
|
-
}, [o]), Ln(o), o;
|
|
577
|
-
};
|
|
578
|
-
St.exports = yt;
|
|
579
|
-
var An = St.exports;
|
|
580
|
-
const Pn = /* @__PURE__ */ xe(An);
|
|
581
|
-
var wt = { NZ_AWS_REGION: "us-east-1", NZ_VTEX_PROJECT: "/Users/jbermudez/TODO/PROJECTS/live-shopping", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
|
|
582
|
-
const { useDebugValue: Vn } = fe, { useSyncExternalStoreWithSelector: _n } = Pn;
|
|
583
|
-
let Me = !1;
|
|
584
|
-
function Un(n, e = n.getState, t) {
|
|
585
|
-
(wt ? "production" : void 0) !== "production" && t && !Me && (console.warn(
|
|
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
|
-
), Me = !0);
|
|
588
|
-
const i = _n(
|
|
589
|
-
n.subscribe,
|
|
590
|
-
n.getState,
|
|
591
|
-
n.getServerState || n.getState,
|
|
592
|
-
e,
|
|
593
|
-
t
|
|
594
|
-
);
|
|
595
|
-
return Vn(i), i;
|
|
596
|
-
}
|
|
597
|
-
const $e = (n) => {
|
|
598
|
-
(wt ? "production" : void 0) !== "production" && typeof n != "function" && console.warn(
|
|
599
|
-
"[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`."
|
|
600
|
-
);
|
|
601
|
-
const e = typeof n == "function" ? gn(n) : n, t = (i, a) => Un(e, i, a);
|
|
602
|
-
return Object.assign(t, e), t;
|
|
603
|
-
}, Mn = (n) => n ? $e(n) : $e;
|
|
604
|
-
class $n {
|
|
605
|
-
constructor(e) {
|
|
606
|
-
R(this, "channel");
|
|
607
|
-
R(this, "listeners", /* @__PURE__ */ new Map());
|
|
608
|
-
R(this, "eventQueue", /* @__PURE__ */ new Map());
|
|
609
|
-
try {
|
|
610
|
-
this.channel = new BroadcastChannel(e), this.channel.onmessage = (t) => this.handleMessage(t), this.channel.onmessageerror = (t) => K.error("NizzaBroadcastChannel:", t);
|
|
611
|
-
} catch (t) {
|
|
612
|
-
throw K.error("Failed to create NizzaBroadcastChannel:", t), t;
|
|
613
|
-
}
|
|
614
|
-
}
|
|
615
|
-
/**
|
|
616
|
-
* Subscribe a listener function to a specific event with wildcards.
|
|
617
|
-
*
|
|
618
|
-
* @param {string} event - The event name to subscribe to. You can use wildcards like 'user:*' or 'chat:**'.
|
|
619
|
-
* @param {EventBusListener} listener - The listener function to handle the event.
|
|
620
|
-
* @returns {EventBusSubscription} - A subscription object that includes the event name and the `off()` function for unsubscribing.
|
|
621
|
-
* @example
|
|
622
|
-
* const subscription = eventBus.on('user:*', (event) => {
|
|
623
|
-
* console.log('User event:', event.name);
|
|
624
|
-
* });
|
|
625
|
-
* const chatSubscription = eventBus.on('chat:**', (event) => {
|
|
626
|
-
* console.log('Chat event:', event.name);
|
|
627
|
-
* });
|
|
628
|
-
*/
|
|
629
|
-
on(e, t) {
|
|
630
|
-
return this.subscribeToEvent(e, t), {
|
|
631
|
-
off: () => this.unsubscribeFromEvent(e, t)
|
|
632
|
-
};
|
|
633
|
-
}
|
|
634
|
-
/**
|
|
635
|
-
* Emit an event through the BroadcastChannel.
|
|
636
|
-
*
|
|
637
|
-
* @param {string} event - The event name to emit.
|
|
638
|
-
* @param {any} data - The data associated with the event.
|
|
639
|
-
* @param {Attributes} attrs - Optional attributes associated with the event.
|
|
640
|
-
* @example
|
|
641
|
-
* // Emit a user login event
|
|
642
|
-
* eventBus.emit('user:login', { username: 'user123' });
|
|
643
|
-
*
|
|
644
|
-
* // Emit a chat message event
|
|
645
|
-
* eventBus.emit('chat:message', { text: 'Hello, world!' });
|
|
646
|
-
*/
|
|
647
|
-
emit(e, t, i = {}) {
|
|
648
|
-
this.emitEvent(e, t, i);
|
|
649
|
-
}
|
|
650
|
-
/**
|
|
651
|
-
* Handle messages received through the BroadcastChannel and call the corresponding listener functions.
|
|
652
|
-
*
|
|
653
|
-
* @private
|
|
654
|
-
* @param {MessageEvent} event - The received message event.
|
|
655
|
-
*/
|
|
656
|
-
handleMessage(e) {
|
|
657
|
-
const t = e.data, { name: i } = t;
|
|
658
|
-
for (const [a, s] of this.listeners.entries())
|
|
659
|
-
this.matchWildcard(a, i) && s.forEach(
|
|
660
|
-
(r) => r({ ...t, wildcard: a })
|
|
661
|
-
);
|
|
662
|
-
}
|
|
663
|
-
/**
|
|
664
|
-
* Subscribe a listener function to a specific event.
|
|
665
|
-
*
|
|
666
|
-
* @private
|
|
667
|
-
* @param {string} event - The event name to subscribe to.
|
|
668
|
-
* @param {EventBusListener} listener - The listener function to handle the event.
|
|
669
|
-
*/
|
|
670
|
-
subscribeToEvent(e, t) {
|
|
671
|
-
if (typeof e != "string" || typeof t != "function") {
|
|
672
|
-
const i = new Error("Invalid arguments");
|
|
673
|
-
throw K.error(i), i;
|
|
674
|
-
}
|
|
675
|
-
for (const [i, a] of this.listeners.entries())
|
|
676
|
-
if (this.matchWildcard(i, e)) {
|
|
677
|
-
a.add(t);
|
|
678
|
-
const s = this.eventQueue.get(i);
|
|
679
|
-
s && (s.forEach((r) => {
|
|
680
|
-
t({ ...r, wildcard: i });
|
|
681
|
-
}), this.eventQueue.delete(i));
|
|
682
|
-
return;
|
|
683
|
-
}
|
|
684
|
-
this.listeners.set(e, /* @__PURE__ */ new Set([t]));
|
|
685
|
-
}
|
|
686
|
-
/**
|
|
687
|
-
* Emit an event and deliver it to the corresponding listeners.
|
|
688
|
-
*
|
|
689
|
-
* @private
|
|
690
|
-
* @param {string} event - The event name to emit.
|
|
691
|
-
* @param {any} data - The data associated with the event.
|
|
692
|
-
* @param {Attributes} attrs - Optional attributes associated with the event.
|
|
693
|
-
*/
|
|
694
|
-
emitEvent(e, t, i) {
|
|
695
|
-
if (typeof e != "string") {
|
|
696
|
-
const r = new Error("Invalid arguments");
|
|
697
|
-
throw K.error(r), r;
|
|
698
|
-
}
|
|
699
|
-
const a = {
|
|
700
|
-
name: e,
|
|
701
|
-
data: t,
|
|
702
|
-
attrs: i
|
|
703
|
-
}, s = Array.from(this.getMatchingListeners(e));
|
|
704
|
-
if (s.length)
|
|
705
|
-
for (const [r, o] of s)
|
|
706
|
-
o({ ...a, wildcard: r });
|
|
707
|
-
else
|
|
708
|
-
this.eventQueue.has(e) || this.eventQueue.set(e, []), this.eventQueue.get(e).push(a);
|
|
709
|
-
this.channel.postMessage(a);
|
|
710
|
-
}
|
|
711
|
-
/**
|
|
712
|
-
* Get listeners that match the event name pattern.
|
|
713
|
-
*
|
|
714
|
-
* @private
|
|
715
|
-
* @param {string} event - The event name to match.
|
|
716
|
-
* @returns {Iterable<[string, EventBusListener]>} - Iterable of matching listeners and their patterns.
|
|
717
|
-
*/
|
|
718
|
-
*getMatchingListeners(e) {
|
|
719
|
-
for (const [t, i] of this.listeners.entries())
|
|
720
|
-
if (this.matchWildcard(t, e))
|
|
721
|
-
for (const a of i)
|
|
722
|
-
yield [t, a];
|
|
723
|
-
}
|
|
724
|
-
/**
|
|
725
|
-
* Unsubscribe a listener function from a specific event.
|
|
726
|
-
*
|
|
727
|
-
* @private
|
|
728
|
-
* @param {string} event - The event name to unsubscribe from.
|
|
729
|
-
* @param {EventBusListener} listener - The listener function to unsubscribe.
|
|
730
|
-
*/
|
|
731
|
-
unsubscribeFromEvent(e, t) {
|
|
732
|
-
if (this.listeners.has(e)) {
|
|
733
|
-
const i = this.listeners.get(e);
|
|
734
|
-
i.delete(t), i.size === 0 && this.listeners.delete(e);
|
|
735
|
-
}
|
|
736
|
-
}
|
|
737
|
-
/**
|
|
738
|
-
* Match wildcards in event names.
|
|
739
|
-
*
|
|
740
|
-
* @private
|
|
741
|
-
* @param {string} pattern - The wildcard pattern to match.
|
|
742
|
-
* @param {string} eventName - The event name to check.
|
|
743
|
-
* @returns {boolean} - `true` if the event name matches the pattern, otherwise `false`.
|
|
744
|
-
*/
|
|
745
|
-
matchWildcard(e, t) {
|
|
746
|
-
const i = e.replace(/\*/g, "[^:]*").replace(/\*\*/g, ".*");
|
|
747
|
-
return new RegExp(`^${i}$`).test(t);
|
|
472
|
+
n = (s = (a = (i = Intl.DateTimeFormat()) == null ? void 0 : i.resolvedOptions()) == null ? void 0 : a.timeZone) != null ? s : null;
|
|
473
|
+
const r = -(/* @__PURE__ */ new Date()).getTimezoneOffset();
|
|
474
|
+
t = r;
|
|
475
|
+
const o = r >= 0 ? "+" : "-", l = String(
|
|
476
|
+
Math.floor(Math.abs(r) / 60)
|
|
477
|
+
).padStart(2, "0"), u = String(Math.abs(r) % 60).padStart(
|
|
478
|
+
2,
|
|
479
|
+
"0"
|
|
480
|
+
);
|
|
481
|
+
e = `${o}${l}:${u}`;
|
|
482
|
+
} catch (r) {
|
|
483
|
+
console.error(
|
|
484
|
+
"getClientTimeZone Error obtaining time zone or offset",
|
|
485
|
+
r
|
|
486
|
+
);
|
|
748
487
|
}
|
|
488
|
+
return {
|
|
489
|
+
offset: e,
|
|
490
|
+
offsetValue: t,
|
|
491
|
+
value: n,
|
|
492
|
+
country: null,
|
|
493
|
+
included: null,
|
|
494
|
+
label: null
|
|
495
|
+
};
|
|
749
496
|
}
|
|
750
|
-
let
|
|
751
|
-
const
|
|
497
|
+
let pn = (n = 21) => crypto.getRandomValues(new Uint8Array(n)).reduce((e, t) => (t &= 63, t < 36 ? e += t.toString(36) : t < 62 ? e += (t - 26).toString(36).toUpperCase() : t > 62 ? e += "-" : e += "_", e), "");
|
|
498
|
+
const hn = (n = 8) => pn(n), Is = (n) => {
|
|
752
499
|
const e = Object.entries(n).reduce((t, [i, a]) => a !== void 0 ? `${t}${t ? "&" : ""}${i}=${a}` : t, "");
|
|
753
500
|
return e ? `?${e}` : "";
|
|
754
501
|
};
|
|
755
|
-
function
|
|
502
|
+
function Ds() {
|
|
756
503
|
const n = new Error().stack.split(`
|
|
757
504
|
`);
|
|
758
505
|
return n.length < 3 ? "" : n[2].trim().substring(3);
|
|
759
506
|
}
|
|
760
|
-
var
|
|
507
|
+
var kt = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
|
|
508
|
+
function Ee(n) {
|
|
509
|
+
return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
|
|
510
|
+
}
|
|
511
|
+
var vt = { exports: {} };
|
|
761
512
|
(function(n) {
|
|
762
513
|
(function(e, t) {
|
|
763
514
|
n.exports ? n.exports = t() : e.log = t();
|
|
764
|
-
})(
|
|
515
|
+
})(kt, function() {
|
|
765
516
|
var e = function() {
|
|
766
517
|
}, t = "undefined", i = typeof window !== t && typeof window.navigator !== t && /Trident\/|MSIE /.test(window.navigator.userAgent), a = [
|
|
767
518
|
"trace",
|
|
@@ -898,14 +649,14 @@ var Ct = { exports: {} };
|
|
|
898
649
|
return S;
|
|
899
650
|
}, c.default = c, c;
|
|
900
651
|
});
|
|
901
|
-
})(
|
|
902
|
-
var
|
|
903
|
-
const
|
|
904
|
-
var
|
|
652
|
+
})(vt);
|
|
653
|
+
var St = vt.exports;
|
|
654
|
+
const ne = /* @__PURE__ */ Ee(St);
|
|
655
|
+
var yt = { exports: {} };
|
|
905
656
|
(function(n) {
|
|
906
657
|
(function(e, t) {
|
|
907
658
|
n.exports ? n.exports = t() : e.prefix = t(e);
|
|
908
|
-
})(
|
|
659
|
+
})(kt, function(e) {
|
|
909
660
|
var t = function(d) {
|
|
910
661
|
for (var f = 1, c = arguments.length, S; f < c; f++)
|
|
911
662
|
for (S in arguments[f])
|
|
@@ -954,14 +705,14 @@ var xt = { exports: {} };
|
|
|
954
705
|
return e.prefix === l && (e.prefix = u), l;
|
|
955
706
|
}), l;
|
|
956
707
|
});
|
|
957
|
-
})(
|
|
958
|
-
var
|
|
959
|
-
const
|
|
960
|
-
let
|
|
708
|
+
})(yt);
|
|
709
|
+
var gn = yt.exports;
|
|
710
|
+
const _e = /* @__PURE__ */ Ee(gn);
|
|
711
|
+
let kn = class {
|
|
961
712
|
constructor(e) {
|
|
962
|
-
R(this, "defaultLevel",
|
|
713
|
+
R(this, "defaultLevel", St.levels.INFO);
|
|
963
714
|
R(this, "namePrefix");
|
|
964
|
-
this.namePrefix = e ? `${e}-` : "",
|
|
715
|
+
this.namePrefix = e ? `${e}-` : "", ne.setDefaultLevel(this.defaultLevel), _e.reg(ne), _e.apply(ne, {
|
|
965
716
|
template: "[%t] %l (%n)",
|
|
966
717
|
nameFormatter: (t) => {
|
|
967
718
|
var i;
|
|
@@ -971,208 +722,11 @@ let Qn = class {
|
|
|
971
722
|
});
|
|
972
723
|
}
|
|
973
724
|
createLogger(e) {
|
|
974
|
-
const t = this.namePrefix + e.toLowerCase(), i =
|
|
725
|
+
const t = this.namePrefix + e.toLowerCase(), i = ne.getLogger(t), a = localStorage.getItem(`loglevel:${t}`);
|
|
975
726
|
return a ? i.setLevel(a) : i.setLevel(this.defaultLevel), i;
|
|
976
727
|
}
|
|
977
|
-
}, $, Gn, K, Ot;
|
|
978
|
-
function Ps() {
|
|
979
|
-
return $ = Kn(), Ot = $.store, Gn = $.log.createLogger("main"), K = $.log.createLogger("core"), $;
|
|
980
|
-
}
|
|
981
|
-
function Kn() {
|
|
982
|
-
if (!window.nizza) {
|
|
983
|
-
const n = Wn();
|
|
984
|
-
window.nizza = n, window.nz = n;
|
|
985
|
-
}
|
|
986
|
-
return window.nizza;
|
|
987
|
-
}
|
|
988
|
-
function Wn() {
|
|
989
|
-
const n = Mn(() => ({
|
|
990
|
-
config: null
|
|
991
|
-
}));
|
|
992
|
-
return {
|
|
993
|
-
version: "1.0.4",
|
|
994
|
-
store: n,
|
|
995
|
-
configure: Jn,
|
|
996
|
-
setProductDataSource: qn,
|
|
997
|
-
instanceId: zn(),
|
|
998
|
-
log: new Qn("nz"),
|
|
999
|
-
eventBus: new $n("nizza"),
|
|
1000
|
-
get state() {
|
|
1001
|
-
return n.getState();
|
|
1002
|
-
}
|
|
1003
|
-
};
|
|
1004
|
-
}
|
|
1005
|
-
async function Jn(n) {
|
|
1006
|
-
try {
|
|
1007
|
-
const e = $.store.getState().account;
|
|
1008
|
-
if ($.store.setState({ config: n }), (e == null ? void 0 : e.account) !== n.account) {
|
|
1009
|
-
const t = await ta(n.account);
|
|
1010
|
-
$.store.setState({ account: t });
|
|
1011
|
-
}
|
|
1012
|
-
if (n.getProductDataSource) {
|
|
1013
|
-
const t = await n.getProductDataSource();
|
|
1014
|
-
$.store.setState({ productDataSource: t });
|
|
1015
|
-
}
|
|
1016
|
-
} catch (e) {
|
|
1017
|
-
console.error("Error configuring NizzaStore:", e);
|
|
1018
|
-
}
|
|
1019
|
-
}
|
|
1020
|
-
function qn(n) {
|
|
1021
|
-
$.store.setState({ productDataSource: n });
|
|
1022
|
-
}
|
|
1023
|
-
function G(n) {
|
|
1024
|
-
return n != null && typeof n == "object" && n["@@functional/placeholder"] === !0;
|
|
1025
|
-
}
|
|
1026
|
-
function se(n) {
|
|
1027
|
-
return function e(t) {
|
|
1028
|
-
return arguments.length === 0 || G(t) ? e : n.apply(this, arguments);
|
|
1029
|
-
};
|
|
1030
|
-
}
|
|
1031
|
-
function Oe(n) {
|
|
1032
|
-
return function e(t, i) {
|
|
1033
|
-
switch (arguments.length) {
|
|
1034
|
-
case 0:
|
|
1035
|
-
return e;
|
|
1036
|
-
case 1:
|
|
1037
|
-
return G(t) ? e : se(function(a) {
|
|
1038
|
-
return n(t, a);
|
|
1039
|
-
});
|
|
1040
|
-
default:
|
|
1041
|
-
return G(t) && G(i) ? e : G(t) ? se(function(a) {
|
|
1042
|
-
return n(a, i);
|
|
1043
|
-
}) : G(i) ? se(function(a) {
|
|
1044
|
-
return n(t, a);
|
|
1045
|
-
}) : n(t, i);
|
|
1046
|
-
}
|
|
1047
|
-
};
|
|
1048
|
-
}
|
|
1049
|
-
const Hn = Number.isInteger || function(e) {
|
|
1050
|
-
return e << 0 === e;
|
|
1051
728
|
};
|
|
1052
|
-
|
|
1053
|
-
return Object.prototype.toString.call(n) === "[object String]";
|
|
1054
|
-
}
|
|
1055
|
-
var Xn = /* @__PURE__ */ Oe(function(e, t) {
|
|
1056
|
-
var i = e < 0 ? t.length + e : e;
|
|
1057
|
-
return Zn(t) ? t.charAt(i) : t[i];
|
|
1058
|
-
});
|
|
1059
|
-
const Yn = Xn;
|
|
1060
|
-
var ei = /* @__PURE__ */ se(function(e) {
|
|
1061
|
-
return e == null;
|
|
1062
|
-
});
|
|
1063
|
-
const ti = ei;
|
|
1064
|
-
var ni = /* @__PURE__ */ Oe(function(e, t) {
|
|
1065
|
-
return e.map(function(i) {
|
|
1066
|
-
for (var a = t, s = 0, r; s < i.length; ) {
|
|
1067
|
-
if (a == null)
|
|
1068
|
-
return;
|
|
1069
|
-
r = i[s], a = Hn(r) ? Yn(r, a) : a[r], s += 1;
|
|
1070
|
-
}
|
|
1071
|
-
return a;
|
|
1072
|
-
});
|
|
1073
|
-
});
|
|
1074
|
-
const ii = ni;
|
|
1075
|
-
var ai = /* @__PURE__ */ Oe(function(e, t) {
|
|
1076
|
-
return ii([e], t)[0];
|
|
1077
|
-
});
|
|
1078
|
-
const si = ai;
|
|
1079
|
-
class he extends Error {
|
|
1080
|
-
constructor(e, t, i) {
|
|
1081
|
-
super(t), this.value = i, this.name = e;
|
|
1082
|
-
}
|
|
1083
|
-
toDTO() {
|
|
1084
|
-
return {
|
|
1085
|
-
name: this.name,
|
|
1086
|
-
message: this.message,
|
|
1087
|
-
...this.value && { value: this.value }
|
|
1088
|
-
};
|
|
1089
|
-
}
|
|
1090
|
-
}
|
|
1091
|
-
class ri extends he {
|
|
1092
|
-
constructor(e) {
|
|
1093
|
-
super(
|
|
1094
|
-
"RESOURCE_NOT_FOUND_ERROR",
|
|
1095
|
-
`Resource with id '${e}' not found.`,
|
|
1096
|
-
e
|
|
1097
|
-
);
|
|
1098
|
-
}
|
|
1099
|
-
}
|
|
1100
|
-
class oi extends he {
|
|
1101
|
-
constructor(e) {
|
|
1102
|
-
var t;
|
|
1103
|
-
super(
|
|
1104
|
-
"APP_UNEXPECTED_ERROR",
|
|
1105
|
-
(t = e.message) != null ? t : "An unexpected error occurred.",
|
|
1106
|
-
e
|
|
1107
|
-
);
|
|
1108
|
-
}
|
|
1109
|
-
}
|
|
1110
|
-
class Vs extends he {
|
|
1111
|
-
constructor() {
|
|
1112
|
-
super("APP_ACCOUNT_INVALID_ERROR", "Account not defined");
|
|
1113
|
-
}
|
|
1114
|
-
}
|
|
1115
|
-
class li extends he {
|
|
1116
|
-
constructor(e) {
|
|
1117
|
-
super(
|
|
1118
|
-
"INVALID_NIZZA_GLOBAL_OBJECT_ERROR",
|
|
1119
|
-
`
|
|
1120
|
-
Configuration property invalid: "${e}".
|
|
1121
|
-
|
|
1122
|
-
It looks like you are trying to use a configuration property that is required but is "undefined", make sure you have initialized the global object "nizza".
|
|
1123
|
-
|
|
1124
|
-
* If you are using the @nizza/core library:
|
|
1125
|
-
|
|
1126
|
-
import { nizza } from '@nizza/core';
|
|
1127
|
-
|
|
1128
|
-
nizza.configure({
|
|
1129
|
-
account: env.account,
|
|
1130
|
-
...
|
|
1131
|
-
});
|
|
1132
|
-
|
|
1133
|
-
* If you are using the window:
|
|
1134
|
-
|
|
1135
|
-
window.nizza.configure({
|
|
1136
|
-
account: env.account,
|
|
1137
|
-
...
|
|
1138
|
-
});
|
|
1139
|
-
`
|
|
1140
|
-
);
|
|
1141
|
-
}
|
|
1142
|
-
}
|
|
1143
|
-
function _s(n, e) {
|
|
1144
|
-
e.forEach((t) => {
|
|
1145
|
-
if (ti(si(t.split("."), n)))
|
|
1146
|
-
throw new li(t);
|
|
1147
|
-
});
|
|
1148
|
-
}
|
|
1149
|
-
function Us() {
|
|
1150
|
-
var i, a, s;
|
|
1151
|
-
let n = null, e = null, t = null;
|
|
1152
|
-
try {
|
|
1153
|
-
n = (s = (a = (i = Intl.DateTimeFormat()) == null ? void 0 : i.resolvedOptions()) == null ? void 0 : a.timeZone) != null ? s : null;
|
|
1154
|
-
const r = -(/* @__PURE__ */ new Date()).getTimezoneOffset();
|
|
1155
|
-
t = r;
|
|
1156
|
-
const o = r >= 0 ? "+" : "-", l = String(
|
|
1157
|
-
Math.floor(Math.abs(r) / 60)
|
|
1158
|
-
).padStart(2, "0"), u = String(Math.abs(r) % 60).padStart(
|
|
1159
|
-
2,
|
|
1160
|
-
"0"
|
|
1161
|
-
);
|
|
1162
|
-
e = `${o}${l}:${u}`;
|
|
1163
|
-
} catch {
|
|
1164
|
-
K.error("Error obtaining time zone or offset");
|
|
1165
|
-
}
|
|
1166
|
-
return {
|
|
1167
|
-
offset: e,
|
|
1168
|
-
offsetValue: t,
|
|
1169
|
-
value: n,
|
|
1170
|
-
country: null,
|
|
1171
|
-
included: null,
|
|
1172
|
-
label: null
|
|
1173
|
-
};
|
|
1174
|
-
}
|
|
1175
|
-
class di {
|
|
729
|
+
class vn {
|
|
1176
730
|
constructor(e) {
|
|
1177
731
|
R(this, "aggregate");
|
|
1178
732
|
R(this, "_numSetPropsApplied", 0);
|
|
@@ -1187,12 +741,12 @@ class di {
|
|
|
1187
741
|
return this._numSetPropsApplied === 1;
|
|
1188
742
|
}
|
|
1189
743
|
}
|
|
1190
|
-
function
|
|
1191
|
-
return new
|
|
744
|
+
function Sn(n) {
|
|
745
|
+
return new vn(n);
|
|
1192
746
|
}
|
|
1193
|
-
class
|
|
747
|
+
class As {
|
|
1194
748
|
}
|
|
1195
|
-
class
|
|
749
|
+
class Ps {
|
|
1196
750
|
constructor(e) {
|
|
1197
751
|
R(this, "_value");
|
|
1198
752
|
e !== void 0 && (this._value = e);
|
|
@@ -1201,13 +755,13 @@ class $s {
|
|
|
1201
755
|
return this._value;
|
|
1202
756
|
}
|
|
1203
757
|
}
|
|
1204
|
-
var
|
|
1205
|
-
class
|
|
758
|
+
var Nt = /* @__PURE__ */ ((n) => (n.VTEX = "VTEX", n.VTEX_IO = "VTEX-IO", n.VTEX_CMS = "PORTAL-VTEX", n.PLATFORM = "PLATFORM", n.UNKNOWN = "UNKNOWN", n))(Nt || {}), yn = /* @__PURE__ */ ((n) => (n.PLATFORM = "platform_module", n.ADENDA = "subscription_module", n.APP_STORE = "app_store", n))(yn || {}), bt = /* @__PURE__ */ ((n) => (n.ACTIVE = "active_contract", n.INACTIVE = "inactive_contract", n))(bt || {}), Nn = /* @__PURE__ */ ((n) => (n.LITE = "lite", n.STANDARD = "standard", n.PRO = "pro", n))(Nn || {}), bn = /* @__PURE__ */ ((n) => (n.LITE = "PLAN_LITE", n.STANDARD = "PLAN_ESTANDAR", n.PRO = "PLAN_PRO", n.NONE = "NO_PLAN", n))(bn || {}), Fn = /* @__PURE__ */ ((n) => (n.PAST = "past", n.LIVE = "live", n.FUTURE = "future", n))(Fn || {});
|
|
759
|
+
class xe {
|
|
1206
760
|
constructor(e) {
|
|
1207
|
-
R(this, "root",
|
|
761
|
+
R(this, "root", Sn(this));
|
|
1208
762
|
R(this, "id");
|
|
1209
763
|
R(this, "account");
|
|
1210
|
-
R(this, "accountType",
|
|
764
|
+
R(this, "accountType", Nt.UNKNOWN);
|
|
1211
765
|
R(this, "username");
|
|
1212
766
|
R(this, "currencyConfig");
|
|
1213
767
|
R(this, "contractType");
|
|
@@ -1215,7 +769,7 @@ class Re {
|
|
|
1215
769
|
R(this, "spendedMinutes", 0);
|
|
1216
770
|
R(this, "unlimitedService", !1);
|
|
1217
771
|
R(this, "hoursAvailable", 0);
|
|
1218
|
-
R(this, "contractStatus",
|
|
772
|
+
R(this, "contractStatus", bt.ACTIVE);
|
|
1219
773
|
R(this, "createdAt");
|
|
1220
774
|
R(this, "installationDateApp");
|
|
1221
775
|
R(this, "cxAccount");
|
|
@@ -1237,7 +791,7 @@ class Re {
|
|
|
1237
791
|
username: i != null ? i : a.account,
|
|
1238
792
|
createdAt: new Date(Number(t))
|
|
1239
793
|
};
|
|
1240
|
-
return new
|
|
794
|
+
return new xe(s);
|
|
1241
795
|
}
|
|
1242
796
|
toPrimitives() {
|
|
1243
797
|
const { root: e, createdAt: t, ...i } = this;
|
|
@@ -1247,16 +801,80 @@ class Re {
|
|
|
1247
801
|
};
|
|
1248
802
|
}
|
|
1249
803
|
}
|
|
1250
|
-
const
|
|
1251
|
-
class
|
|
804
|
+
const wn = `${mn.apiUrls.restV1}/accounts/v2`;
|
|
805
|
+
class Cn {
|
|
1252
806
|
async get(e) {
|
|
1253
|
-
const t = `${
|
|
807
|
+
const t = `${wn}/${e}`, { data: i } = await gt({
|
|
1254
808
|
url: t
|
|
1255
809
|
});
|
|
1256
|
-
return i ?
|
|
810
|
+
return i ? xe.toDomain(i) : null;
|
|
811
|
+
}
|
|
812
|
+
}
|
|
813
|
+
class fe extends Error {
|
|
814
|
+
constructor(e, t, i) {
|
|
815
|
+
super(t), this.value = i, this.name = e;
|
|
816
|
+
}
|
|
817
|
+
toDTO() {
|
|
818
|
+
return {
|
|
819
|
+
name: this.name,
|
|
820
|
+
message: this.message,
|
|
821
|
+
...this.value && { value: this.value }
|
|
822
|
+
};
|
|
823
|
+
}
|
|
824
|
+
}
|
|
825
|
+
class En extends fe {
|
|
826
|
+
constructor(e) {
|
|
827
|
+
super(
|
|
828
|
+
"RESOURCE_NOT_FOUND_ERROR",
|
|
829
|
+
`Resource with id '${e}' not found.`,
|
|
830
|
+
e
|
|
831
|
+
);
|
|
832
|
+
}
|
|
833
|
+
}
|
|
834
|
+
class xn extends fe {
|
|
835
|
+
constructor(e) {
|
|
836
|
+
var t;
|
|
837
|
+
super(
|
|
838
|
+
"APP_UNEXPECTED_ERROR",
|
|
839
|
+
(t = e.message) != null ? t : "An unexpected error occurred.",
|
|
840
|
+
e
|
|
841
|
+
);
|
|
842
|
+
}
|
|
843
|
+
}
|
|
844
|
+
class Vs extends fe {
|
|
845
|
+
constructor() {
|
|
846
|
+
super("APP_ACCOUNT_INVALID_ERROR", "Account not defined");
|
|
1257
847
|
}
|
|
1258
848
|
}
|
|
1259
|
-
class
|
|
849
|
+
class On extends fe {
|
|
850
|
+
constructor(e) {
|
|
851
|
+
super(
|
|
852
|
+
"INVALID_NIZZA_GLOBAL_OBJECT_ERROR",
|
|
853
|
+
`
|
|
854
|
+
Configuration property invalid: "${e}".
|
|
855
|
+
|
|
856
|
+
It looks like you are trying to use a configuration property that is required but is "undefined", make sure you have initialized the global object "nizza".
|
|
857
|
+
|
|
858
|
+
* If you are using the @nizza/core library:
|
|
859
|
+
|
|
860
|
+
import { nizza } from '@nizza/core';
|
|
861
|
+
|
|
862
|
+
nizza.configure({
|
|
863
|
+
account: env.account,
|
|
864
|
+
...
|
|
865
|
+
});
|
|
866
|
+
|
|
867
|
+
* If you are using the window:
|
|
868
|
+
|
|
869
|
+
window.nizza.configure({
|
|
870
|
+
account: env.account,
|
|
871
|
+
...
|
|
872
|
+
});
|
|
873
|
+
`
|
|
874
|
+
);
|
|
875
|
+
}
|
|
876
|
+
}
|
|
877
|
+
class Rn {
|
|
1260
878
|
constructor(e) {
|
|
1261
879
|
this.accountRepository = e;
|
|
1262
880
|
}
|
|
@@ -1264,15 +882,15 @@ class ki {
|
|
|
1264
882
|
try {
|
|
1265
883
|
const t = await this.accountRepository.get(e);
|
|
1266
884
|
if (!t)
|
|
1267
|
-
throw new
|
|
885
|
+
throw new En(e);
|
|
1268
886
|
return t;
|
|
1269
887
|
} catch (t) {
|
|
1270
|
-
throw new
|
|
888
|
+
throw new xn(t);
|
|
1271
889
|
}
|
|
1272
890
|
}
|
|
1273
891
|
}
|
|
1274
|
-
const
|
|
1275
|
-
class
|
|
892
|
+
const Tn = new Cn(), Ft = new Rn(Tn);
|
|
893
|
+
class Oe {
|
|
1276
894
|
constructor() {
|
|
1277
895
|
this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
|
|
1278
896
|
}
|
|
@@ -1292,17 +910,17 @@ class Te {
|
|
|
1292
910
|
onUnsubscribe() {
|
|
1293
911
|
}
|
|
1294
912
|
}
|
|
1295
|
-
const
|
|
1296
|
-
function
|
|
913
|
+
const re = typeof window == "undefined" || "Deno" in window;
|
|
914
|
+
function In() {
|
|
1297
915
|
}
|
|
1298
|
-
function
|
|
916
|
+
function Ue(n) {
|
|
1299
917
|
return typeof n == "number" && n >= 0 && n !== 1 / 0;
|
|
1300
918
|
}
|
|
1301
|
-
function
|
|
919
|
+
function Dn(n, e) {
|
|
1302
920
|
return Math.max(n + (e || 0) - Date.now(), 0);
|
|
1303
921
|
}
|
|
1304
|
-
function
|
|
1305
|
-
return
|
|
922
|
+
function Ln(n, e, t) {
|
|
923
|
+
return An(n) ? typeof e == "function" ? {
|
|
1306
924
|
...t,
|
|
1307
925
|
queryKey: n,
|
|
1308
926
|
queryFn: e
|
|
@@ -1311,22 +929,22 @@ function Ni(n, e, t) {
|
|
|
1311
929
|
queryKey: n
|
|
1312
930
|
} : n;
|
|
1313
931
|
}
|
|
1314
|
-
function
|
|
932
|
+
function wt(n, e) {
|
|
1315
933
|
if (n === e)
|
|
1316
934
|
return n;
|
|
1317
|
-
const t =
|
|
1318
|
-
if (t ||
|
|
935
|
+
const t = Me(n) && Me(e);
|
|
936
|
+
if (t || $e(n) && $e(e)) {
|
|
1319
937
|
const i = t ? n.length : Object.keys(n).length, a = t ? e : Object.keys(e), s = a.length, r = t ? [] : {};
|
|
1320
938
|
let o = 0;
|
|
1321
939
|
for (let l = 0; l < s; l++) {
|
|
1322
940
|
const u = t ? l : a[l];
|
|
1323
|
-
r[u] =
|
|
941
|
+
r[u] = wt(n[u], e[u]), r[u] === n[u] && o++;
|
|
1324
942
|
}
|
|
1325
943
|
return i === s && o === i ? n : r;
|
|
1326
944
|
}
|
|
1327
945
|
return e;
|
|
1328
946
|
}
|
|
1329
|
-
function
|
|
947
|
+
function Ne(n, e) {
|
|
1330
948
|
if (n && !e || e && !n)
|
|
1331
949
|
return !1;
|
|
1332
950
|
for (const t in n)
|
|
@@ -1334,39 +952,39 @@ function be(n, e) {
|
|
|
1334
952
|
return !1;
|
|
1335
953
|
return !0;
|
|
1336
954
|
}
|
|
1337
|
-
function
|
|
955
|
+
function Me(n) {
|
|
1338
956
|
return Array.isArray(n) && n.length === Object.keys(n).length;
|
|
1339
957
|
}
|
|
1340
|
-
function
|
|
1341
|
-
if (!
|
|
958
|
+
function $e(n) {
|
|
959
|
+
if (!je(n))
|
|
1342
960
|
return !1;
|
|
1343
961
|
const e = n.constructor;
|
|
1344
962
|
if (typeof e == "undefined")
|
|
1345
963
|
return !0;
|
|
1346
964
|
const t = e.prototype;
|
|
1347
|
-
return !(!
|
|
965
|
+
return !(!je(t) || !t.hasOwnProperty("isPrototypeOf"));
|
|
1348
966
|
}
|
|
1349
|
-
function
|
|
967
|
+
function je(n) {
|
|
1350
968
|
return Object.prototype.toString.call(n) === "[object Object]";
|
|
1351
969
|
}
|
|
1352
|
-
function
|
|
970
|
+
function An(n) {
|
|
1353
971
|
return Array.isArray(n);
|
|
1354
972
|
}
|
|
1355
|
-
function
|
|
973
|
+
function Pn(n) {
|
|
1356
974
|
return new Promise((e) => {
|
|
1357
975
|
setTimeout(e, n);
|
|
1358
976
|
});
|
|
1359
977
|
}
|
|
1360
|
-
function
|
|
1361
|
-
|
|
978
|
+
function ze(n) {
|
|
979
|
+
Pn(0).then(n);
|
|
1362
980
|
}
|
|
1363
|
-
function
|
|
1364
|
-
return t.isDataEqual != null && t.isDataEqual(n, e) ? n : typeof t.structuralSharing == "function" ? t.structuralSharing(n, e) : t.structuralSharing !== !1 ?
|
|
981
|
+
function Be(n, e, t) {
|
|
982
|
+
return t.isDataEqual != null && t.isDataEqual(n, e) ? n : typeof t.structuralSharing == "function" ? t.structuralSharing(n, e) : t.structuralSharing !== !1 ? wt(n, e) : e;
|
|
1365
983
|
}
|
|
1366
|
-
class
|
|
984
|
+
class Vn extends Oe {
|
|
1367
985
|
constructor() {
|
|
1368
986
|
super(), this.setup = (e) => {
|
|
1369
|
-
if (!
|
|
987
|
+
if (!re && window.addEventListener) {
|
|
1370
988
|
const t = () => e();
|
|
1371
989
|
return window.addEventListener("visibilitychange", t, !1), window.addEventListener("focus", t, !1), () => {
|
|
1372
990
|
window.removeEventListener("visibilitychange", t), window.removeEventListener("focus", t);
|
|
@@ -1403,16 +1021,16 @@ class wi extends Te {
|
|
|
1403
1021
|
return typeof this.focused == "boolean" ? this.focused : typeof document == "undefined" ? !0 : [void 0, "visible", "prerender"].includes(document.visibilityState);
|
|
1404
1022
|
}
|
|
1405
1023
|
}
|
|
1406
|
-
const
|
|
1407
|
-
class
|
|
1024
|
+
const _n = new Vn(), Qe = ["online", "offline"];
|
|
1025
|
+
class Un extends Oe {
|
|
1408
1026
|
constructor() {
|
|
1409
1027
|
super(), this.setup = (e) => {
|
|
1410
|
-
if (!
|
|
1028
|
+
if (!re && window.addEventListener) {
|
|
1411
1029
|
const t = () => e();
|
|
1412
|
-
return
|
|
1030
|
+
return Qe.forEach((i) => {
|
|
1413
1031
|
window.addEventListener(i, t, !1);
|
|
1414
1032
|
}), () => {
|
|
1415
|
-
|
|
1033
|
+
Qe.forEach((i) => {
|
|
1416
1034
|
window.removeEventListener(i, t);
|
|
1417
1035
|
});
|
|
1418
1036
|
};
|
|
@@ -1448,19 +1066,19 @@ class Ei extends Te {
|
|
|
1448
1066
|
return typeof this.online == "boolean" ? this.online : typeof navigator == "undefined" || typeof navigator.onLine == "undefined" ? !0 : navigator.onLine;
|
|
1449
1067
|
}
|
|
1450
1068
|
}
|
|
1451
|
-
const
|
|
1452
|
-
function
|
|
1453
|
-
return (n != null ? n : "online") === "online" ?
|
|
1069
|
+
const Mn = new Un();
|
|
1070
|
+
function $n(n) {
|
|
1071
|
+
return (n != null ? n : "online") === "online" ? Mn.isOnline() : !0;
|
|
1454
1072
|
}
|
|
1455
|
-
class
|
|
1073
|
+
class jn {
|
|
1456
1074
|
constructor(e) {
|
|
1457
1075
|
this.revert = e == null ? void 0 : e.revert, this.silent = e == null ? void 0 : e.silent;
|
|
1458
1076
|
}
|
|
1459
1077
|
}
|
|
1460
|
-
function
|
|
1461
|
-
return n instanceof
|
|
1078
|
+
function zn(n) {
|
|
1079
|
+
return n instanceof jn;
|
|
1462
1080
|
}
|
|
1463
|
-
function
|
|
1081
|
+
function Bn() {
|
|
1464
1082
|
let n = [], e = 0, t = (d) => {
|
|
1465
1083
|
d();
|
|
1466
1084
|
}, i = (d) => {
|
|
@@ -1476,7 +1094,7 @@ function Ii() {
|
|
|
1476
1094
|
}
|
|
1477
1095
|
return f;
|
|
1478
1096
|
}, s = (d) => {
|
|
1479
|
-
e ? n.push(d) :
|
|
1097
|
+
e ? n.push(d) : ze(() => {
|
|
1480
1098
|
t(d);
|
|
1481
1099
|
});
|
|
1482
1100
|
}, r = (d) => (...f) => {
|
|
@@ -1485,7 +1103,7 @@ function Ii() {
|
|
|
1485
1103
|
});
|
|
1486
1104
|
}, o = () => {
|
|
1487
1105
|
const d = n;
|
|
1488
|
-
n = [], d.length &&
|
|
1106
|
+
n = [], d.length && ze(() => {
|
|
1489
1107
|
i(() => {
|
|
1490
1108
|
d.forEach((f) => {
|
|
1491
1109
|
t(f);
|
|
@@ -1505,8 +1123,8 @@ function Ii() {
|
|
|
1505
1123
|
}
|
|
1506
1124
|
};
|
|
1507
1125
|
}
|
|
1508
|
-
const
|
|
1509
|
-
class
|
|
1126
|
+
const Z = Bn();
|
|
1127
|
+
class Qn extends Oe {
|
|
1510
1128
|
constructor(e, t) {
|
|
1511
1129
|
super(), this.client = e, this.options = t, this.trackedProps = /* @__PURE__ */ new Set(), this.selectError = null, this.bindMethods(), this.setOptions(t);
|
|
1512
1130
|
}
|
|
@@ -1514,23 +1132,23 @@ class Di extends Te {
|
|
|
1514
1132
|
this.remove = this.remove.bind(this), this.refetch = this.refetch.bind(this);
|
|
1515
1133
|
}
|
|
1516
1134
|
onSubscribe() {
|
|
1517
|
-
this.listeners.size === 1 && (this.currentQuery.addObserver(this),
|
|
1135
|
+
this.listeners.size === 1 && (this.currentQuery.addObserver(this), Ge(this.currentQuery, this.options) && this.executeFetch(), this.updateTimers());
|
|
1518
1136
|
}
|
|
1519
1137
|
onUnsubscribe() {
|
|
1520
1138
|
this.hasListeners() || this.destroy();
|
|
1521
1139
|
}
|
|
1522
1140
|
shouldFetchOnReconnect() {
|
|
1523
|
-
return
|
|
1141
|
+
return be(this.currentQuery, this.options, this.options.refetchOnReconnect);
|
|
1524
1142
|
}
|
|
1525
1143
|
shouldFetchOnWindowFocus() {
|
|
1526
|
-
return
|
|
1144
|
+
return be(this.currentQuery, this.options, this.options.refetchOnWindowFocus);
|
|
1527
1145
|
}
|
|
1528
1146
|
destroy() {
|
|
1529
1147
|
this.listeners = /* @__PURE__ */ new Set(), this.clearStaleTimeout(), this.clearRefetchInterval(), this.currentQuery.removeObserver(this);
|
|
1530
1148
|
}
|
|
1531
1149
|
setOptions(e, t) {
|
|
1532
1150
|
const i = this.options, a = this.currentQuery;
|
|
1533
|
-
if (this.options = this.client.defaultQueryOptions(e),
|
|
1151
|
+
if (this.options = this.client.defaultQueryOptions(e), Ne(i, this.options) || this.client.getQueryCache().notify({
|
|
1534
1152
|
type: "observerOptionsUpdated",
|
|
1535
1153
|
query: this.currentQuery,
|
|
1536
1154
|
observer: this
|
|
@@ -1538,13 +1156,13 @@ class Di extends Te {
|
|
|
1538
1156
|
throw new Error("Expected enabled to be a boolean");
|
|
1539
1157
|
this.options.queryKey || (this.options.queryKey = i.queryKey), this.updateQuery();
|
|
1540
1158
|
const s = this.hasListeners();
|
|
1541
|
-
s &&
|
|
1159
|
+
s && Ke(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();
|
|
1542
1160
|
const r = this.computeRefetchInterval();
|
|
1543
1161
|
s && (this.currentQuery !== a || this.options.enabled !== i.enabled || r !== this.currentRefetchInterval) && this.updateRefetchInterval(r);
|
|
1544
1162
|
}
|
|
1545
1163
|
getOptimisticResult(e) {
|
|
1546
1164
|
const t = this.client.getQueryCache().build(this.client, e), i = this.createResult(t, e);
|
|
1547
|
-
return
|
|
1165
|
+
return Kn(this, i, e) && (this.currentResult = i, this.currentResultOptions = this.options, this.currentResultState = this.currentQuery.state), i;
|
|
1548
1166
|
}
|
|
1549
1167
|
getCurrentResult() {
|
|
1550
1168
|
return this.currentResult;
|
|
@@ -1590,12 +1208,12 @@ class Di extends Te {
|
|
|
1590
1208
|
executeFetch(e) {
|
|
1591
1209
|
this.updateQuery();
|
|
1592
1210
|
let t = this.currentQuery.fetch(this.options, e);
|
|
1593
|
-
return e != null && e.throwOnError || (t = t.catch(
|
|
1211
|
+
return e != null && e.throwOnError || (t = t.catch(In)), t;
|
|
1594
1212
|
}
|
|
1595
1213
|
updateStaleTimeout() {
|
|
1596
|
-
if (this.clearStaleTimeout(),
|
|
1214
|
+
if (this.clearStaleTimeout(), re || this.currentResult.isStale || !Ue(this.options.staleTime))
|
|
1597
1215
|
return;
|
|
1598
|
-
const t =
|
|
1216
|
+
const t = Dn(this.currentResult.dataUpdatedAt, this.options.staleTime) + 1;
|
|
1599
1217
|
this.staleTimeoutId = setTimeout(() => {
|
|
1600
1218
|
this.currentResult.isStale || this.updateResult();
|
|
1601
1219
|
}, t);
|
|
@@ -1605,8 +1223,8 @@ class Di extends Te {
|
|
|
1605
1223
|
return typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(this.currentResult.data, this.currentQuery) : (e = this.options.refetchInterval) != null ? e : !1;
|
|
1606
1224
|
}
|
|
1607
1225
|
updateRefetchInterval(e) {
|
|
1608
|
-
this.clearRefetchInterval(), this.currentRefetchInterval = e, !(
|
|
1609
|
-
(this.options.refetchIntervalInBackground ||
|
|
1226
|
+
this.clearRefetchInterval(), this.currentRefetchInterval = e, !(re || this.options.enabled === !1 || !Ue(this.currentRefetchInterval) || this.currentRefetchInterval === 0) && (this.refetchIntervalId = setInterval(() => {
|
|
1227
|
+
(this.options.refetchIntervalInBackground || _n.isFocused()) && this.executeFetch();
|
|
1610
1228
|
}, this.currentRefetchInterval));
|
|
1611
1229
|
}
|
|
1612
1230
|
updateTimers() {
|
|
@@ -1630,8 +1248,8 @@ class Di extends Te {
|
|
|
1630
1248
|
status: N
|
|
1631
1249
|
} = f, O = !1, F = !1, I;
|
|
1632
1250
|
if (t._optimisticResults) {
|
|
1633
|
-
const m = this.hasListeners(), p = !m &&
|
|
1634
|
-
(p || h) && (k =
|
|
1251
|
+
const m = this.hasListeners(), p = !m && Ge(e, t), h = m && Ke(e, i, t, a);
|
|
1252
|
+
(p || h) && (k = $n(e.options.networkMode) ? "fetching" : "paused", c || (N = "loading")), t._optimisticResults === "isRestoring" && (k = "idle");
|
|
1635
1253
|
}
|
|
1636
1254
|
if (t.keepPreviousData && !f.dataUpdatedAt && d != null && d.isSuccess && N !== "error")
|
|
1637
1255
|
I = d.data, c = d.dataUpdatedAt, N = d.status, O = !0;
|
|
@@ -1640,7 +1258,7 @@ class Di extends Te {
|
|
|
1640
1258
|
I = this.selectResult;
|
|
1641
1259
|
else
|
|
1642
1260
|
try {
|
|
1643
|
-
this.selectFn = t.select, I = t.select(f.data), I =
|
|
1261
|
+
this.selectFn = t.select, I = t.select(f.data), I = Be(s == null ? void 0 : s.data, I, t), this.selectResult = I, this.selectError = null;
|
|
1644
1262
|
} catch (m) {
|
|
1645
1263
|
this.selectError = m;
|
|
1646
1264
|
}
|
|
@@ -1656,7 +1274,7 @@ class Di extends Te {
|
|
|
1656
1274
|
} catch (p) {
|
|
1657
1275
|
this.selectError = p;
|
|
1658
1276
|
}
|
|
1659
|
-
typeof m != "undefined" && (N = "success", I =
|
|
1277
|
+
typeof m != "undefined" && (N = "success", I = Be(s == null ? void 0 : s.data, m, t), F = !0);
|
|
1660
1278
|
}
|
|
1661
1279
|
this.selectError && (S = this.selectError, I = this.selectResult, y = Date.now(), N = "error");
|
|
1662
1280
|
const w = k === "fetching", D = N === "loading", L = N === "error";
|
|
@@ -1683,191 +1301,578 @@ class Di extends Te {
|
|
|
1683
1301
|
isPlaceholderData: F,
|
|
1684
1302
|
isPreviousData: O,
|
|
1685
1303
|
isRefetchError: L && f.dataUpdatedAt !== 0,
|
|
1686
|
-
isStale:
|
|
1304
|
+
isStale: Re(e, t),
|
|
1687
1305
|
refetch: this.refetch,
|
|
1688
1306
|
remove: this.remove
|
|
1689
1307
|
};
|
|
1690
1308
|
}
|
|
1691
|
-
updateResult(e) {
|
|
1692
|
-
const t = this.currentResult, i = this.createResult(this.currentQuery, this.options);
|
|
1693
|
-
if (this.currentResultState = this.currentQuery.state, this.currentResultOptions = this.options,
|
|
1694
|
-
return;
|
|
1695
|
-
this.currentResult = i;
|
|
1309
|
+
updateResult(e) {
|
|
1310
|
+
const t = this.currentResult, i = this.createResult(this.currentQuery, this.options);
|
|
1311
|
+
if (this.currentResultState = this.currentQuery.state, this.currentResultOptions = this.options, Ne(i, t))
|
|
1312
|
+
return;
|
|
1313
|
+
this.currentResult = i;
|
|
1314
|
+
const a = {
|
|
1315
|
+
cache: !0
|
|
1316
|
+
}, s = () => {
|
|
1317
|
+
if (!t)
|
|
1318
|
+
return !0;
|
|
1319
|
+
const {
|
|
1320
|
+
notifyOnChangeProps: r
|
|
1321
|
+
} = this.options, o = typeof r == "function" ? r() : r;
|
|
1322
|
+
if (o === "all" || !o && !this.trackedProps.size)
|
|
1323
|
+
return !0;
|
|
1324
|
+
const l = new Set(o != null ? o : this.trackedProps);
|
|
1325
|
+
return this.options.useErrorBoundary && l.add("error"), Object.keys(this.currentResult).some((u) => {
|
|
1326
|
+
const d = u;
|
|
1327
|
+
return this.currentResult[d] !== t[d] && l.has(d);
|
|
1328
|
+
});
|
|
1329
|
+
};
|
|
1330
|
+
(e == null ? void 0 : e.listeners) !== !1 && s() && (a.listeners = !0), this.notify({
|
|
1331
|
+
...a,
|
|
1332
|
+
...e
|
|
1333
|
+
});
|
|
1334
|
+
}
|
|
1335
|
+
updateQuery() {
|
|
1336
|
+
const e = this.client.getQueryCache().build(this.client, this.options);
|
|
1337
|
+
if (e === this.currentQuery)
|
|
1338
|
+
return;
|
|
1339
|
+
const t = this.currentQuery;
|
|
1340
|
+
this.currentQuery = e, this.currentQueryInitialState = e.state, this.previousQueryResult = this.currentResult, this.hasListeners() && (t == null || t.removeObserver(this), e.addObserver(this));
|
|
1341
|
+
}
|
|
1342
|
+
onQueryUpdate(e) {
|
|
1343
|
+
const t = {};
|
|
1344
|
+
e.type === "success" ? t.onSuccess = !e.manual : e.type === "error" && !zn(e.error) && (t.onError = !0), this.updateResult(t), this.hasListeners() && this.updateTimers();
|
|
1345
|
+
}
|
|
1346
|
+
notify(e) {
|
|
1347
|
+
Z.batch(() => {
|
|
1348
|
+
if (e.onSuccess) {
|
|
1349
|
+
var t, i, a, s;
|
|
1350
|
+
(t = (i = this.options).onSuccess) == null || t.call(i, this.currentResult.data), (a = (s = this.options).onSettled) == null || a.call(s, this.currentResult.data, null);
|
|
1351
|
+
} else if (e.onError) {
|
|
1352
|
+
var r, o, l, u;
|
|
1353
|
+
(r = (o = this.options).onError) == null || r.call(o, this.currentResult.error), (l = (u = this.options).onSettled) == null || l.call(u, void 0, this.currentResult.error);
|
|
1354
|
+
}
|
|
1355
|
+
e.listeners && this.listeners.forEach(({
|
|
1356
|
+
listener: d
|
|
1357
|
+
}) => {
|
|
1358
|
+
d(this.currentResult);
|
|
1359
|
+
}), e.cache && this.client.getQueryCache().notify({
|
|
1360
|
+
query: this.currentQuery,
|
|
1361
|
+
type: "observerResultsUpdated"
|
|
1362
|
+
});
|
|
1363
|
+
});
|
|
1364
|
+
}
|
|
1365
|
+
}
|
|
1366
|
+
function Gn(n, e) {
|
|
1367
|
+
return e.enabled !== !1 && !n.state.dataUpdatedAt && !(n.state.status === "error" && e.retryOnMount === !1);
|
|
1368
|
+
}
|
|
1369
|
+
function Ge(n, e) {
|
|
1370
|
+
return Gn(n, e) || n.state.dataUpdatedAt > 0 && be(n, e, e.refetchOnMount);
|
|
1371
|
+
}
|
|
1372
|
+
function be(n, e, t) {
|
|
1373
|
+
if (e.enabled !== !1) {
|
|
1374
|
+
const i = typeof t == "function" ? t(n) : t;
|
|
1375
|
+
return i === "always" || i !== !1 && Re(n, e);
|
|
1376
|
+
}
|
|
1377
|
+
return !1;
|
|
1378
|
+
}
|
|
1379
|
+
function Ke(n, e, t, i) {
|
|
1380
|
+
return t.enabled !== !1 && (n !== e || i.enabled === !1) && (!t.suspense || n.state.status !== "error") && Re(n, t);
|
|
1381
|
+
}
|
|
1382
|
+
function Re(n, e) {
|
|
1383
|
+
return n.isStaleByTime(e.staleTime);
|
|
1384
|
+
}
|
|
1385
|
+
function Kn(n, e, t) {
|
|
1386
|
+
return t.keepPreviousData ? !1 : t.placeholderData !== void 0 ? e.isPlaceholderData : !Ne(n.getCurrentResult(), e);
|
|
1387
|
+
}
|
|
1388
|
+
var Ct = { exports: {} }, Et = {};
|
|
1389
|
+
/**
|
|
1390
|
+
* @license React
|
|
1391
|
+
* use-sync-external-store-shim.production.min.js
|
|
1392
|
+
*
|
|
1393
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
1394
|
+
*
|
|
1395
|
+
* This source code is licensed under the MIT license found in the
|
|
1396
|
+
* LICENSE file in the root directory of this source tree.
|
|
1397
|
+
*/
|
|
1398
|
+
var K = me;
|
|
1399
|
+
function Wn(n, e) {
|
|
1400
|
+
return n === e && (n !== 0 || 1 / n === 1 / e) || n !== n && e !== e;
|
|
1401
|
+
}
|
|
1402
|
+
var Jn = typeof Object.is == "function" ? Object.is : Wn, qn = K.useState, Hn = K.useEffect, Zn = K.useLayoutEffect, Xn = K.useDebugValue;
|
|
1403
|
+
function Yn(n, e) {
|
|
1404
|
+
var t = e(), i = qn({ inst: { value: t, getSnapshot: e } }), a = i[0].inst, s = i[1];
|
|
1405
|
+
return Zn(function() {
|
|
1406
|
+
a.value = t, a.getSnapshot = e, Se(a) && s({ inst: a });
|
|
1407
|
+
}, [n, t, e]), Hn(function() {
|
|
1408
|
+
return Se(a) && s({ inst: a }), n(function() {
|
|
1409
|
+
Se(a) && s({ inst: a });
|
|
1410
|
+
});
|
|
1411
|
+
}, [n]), Xn(t), t;
|
|
1412
|
+
}
|
|
1413
|
+
function Se(n) {
|
|
1414
|
+
var e = n.getSnapshot;
|
|
1415
|
+
n = n.value;
|
|
1416
|
+
try {
|
|
1417
|
+
var t = e();
|
|
1418
|
+
return !Jn(n, t);
|
|
1419
|
+
} catch {
|
|
1420
|
+
return !0;
|
|
1421
|
+
}
|
|
1422
|
+
}
|
|
1423
|
+
function ei(n, e) {
|
|
1424
|
+
return e();
|
|
1425
|
+
}
|
|
1426
|
+
var ti = typeof window == "undefined" || typeof window.document == "undefined" || typeof window.document.createElement == "undefined" ? ei : Yn;
|
|
1427
|
+
Et.useSyncExternalStore = K.useSyncExternalStore !== void 0 ? K.useSyncExternalStore : ti;
|
|
1428
|
+
Ct.exports = Et;
|
|
1429
|
+
var xt = Ct.exports;
|
|
1430
|
+
const ni = xt.useSyncExternalStore, We = /* @__PURE__ */ M.createContext(void 0), ii = /* @__PURE__ */ M.createContext(!1);
|
|
1431
|
+
function ai(n, e) {
|
|
1432
|
+
return n || (e && typeof window != "undefined" ? (window.ReactQueryClientContext || (window.ReactQueryClientContext = We), window.ReactQueryClientContext) : We);
|
|
1433
|
+
}
|
|
1434
|
+
const si = ({
|
|
1435
|
+
context: n
|
|
1436
|
+
} = {}) => {
|
|
1437
|
+
const e = M.useContext(ai(n, M.useContext(ii)));
|
|
1438
|
+
if (!e)
|
|
1439
|
+
throw new Error("No QueryClient set, use QueryClientProvider to set one");
|
|
1440
|
+
return e;
|
|
1441
|
+
}, Ot = /* @__PURE__ */ M.createContext(!1), ri = () => M.useContext(Ot);
|
|
1442
|
+
Ot.Provider;
|
|
1443
|
+
function oi() {
|
|
1444
|
+
let n = !1;
|
|
1445
|
+
return {
|
|
1446
|
+
clearReset: () => {
|
|
1447
|
+
n = !1;
|
|
1448
|
+
},
|
|
1449
|
+
reset: () => {
|
|
1450
|
+
n = !0;
|
|
1451
|
+
},
|
|
1452
|
+
isReset: () => n
|
|
1453
|
+
};
|
|
1454
|
+
}
|
|
1455
|
+
const li = /* @__PURE__ */ M.createContext(oi()), di = () => M.useContext(li);
|
|
1456
|
+
function ui(n, e) {
|
|
1457
|
+
return typeof n == "function" ? n(...e) : !!n;
|
|
1458
|
+
}
|
|
1459
|
+
const ci = (n, e) => {
|
|
1460
|
+
(n.suspense || n.useErrorBoundary) && (e.isReset() || (n.retryOnMount = !1));
|
|
1461
|
+
}, mi = (n) => {
|
|
1462
|
+
M.useEffect(() => {
|
|
1463
|
+
n.clearReset();
|
|
1464
|
+
}, [n]);
|
|
1465
|
+
}, fi = ({
|
|
1466
|
+
result: n,
|
|
1467
|
+
errorResetBoundary: e,
|
|
1468
|
+
useErrorBoundary: t,
|
|
1469
|
+
query: i
|
|
1470
|
+
}) => n.isError && !e.isReset() && !n.isFetching && ui(t, [n.error, i]), pi = (n) => {
|
|
1471
|
+
n.suspense && typeof n.staleTime != "number" && (n.staleTime = 1e3);
|
|
1472
|
+
}, hi = (n, e) => n.isLoading && n.isFetching && !e, gi = (n, e, t) => (n == null ? void 0 : n.suspense) && hi(e, t), ki = (n, e, t) => e.fetchOptimistic(n).then(({
|
|
1473
|
+
data: i
|
|
1474
|
+
}) => {
|
|
1475
|
+
n.onSuccess == null || n.onSuccess(i), n.onSettled == null || n.onSettled(i, null);
|
|
1476
|
+
}).catch((i) => {
|
|
1477
|
+
t.clearReset(), n.onError == null || n.onError(i), n.onSettled == null || n.onSettled(void 0, i);
|
|
1478
|
+
});
|
|
1479
|
+
function vi(n, e) {
|
|
1480
|
+
const t = si({
|
|
1481
|
+
context: n.context
|
|
1482
|
+
}), i = ri(), a = di(), s = t.defaultQueryOptions(n);
|
|
1483
|
+
s._optimisticResults = i ? "isRestoring" : "optimistic", s.onError && (s.onError = Z.batchCalls(s.onError)), s.onSuccess && (s.onSuccess = Z.batchCalls(s.onSuccess)), s.onSettled && (s.onSettled = Z.batchCalls(s.onSettled)), pi(s), ci(s, a), mi(a);
|
|
1484
|
+
const [r] = M.useState(() => new e(t, s)), o = r.getOptimisticResult(s);
|
|
1485
|
+
if (ni(M.useCallback((l) => {
|
|
1486
|
+
const u = i ? () => {
|
|
1487
|
+
} : r.subscribe(Z.batchCalls(l));
|
|
1488
|
+
return r.updateResult(), u;
|
|
1489
|
+
}, [r, i]), () => r.getCurrentResult(), () => r.getCurrentResult()), M.useEffect(() => {
|
|
1490
|
+
r.setOptions(s, {
|
|
1491
|
+
listeners: !1
|
|
1492
|
+
});
|
|
1493
|
+
}, [s, r]), gi(s, o, i))
|
|
1494
|
+
throw ki(s, r, a);
|
|
1495
|
+
if (fi({
|
|
1496
|
+
result: o,
|
|
1497
|
+
errorResetBoundary: a,
|
|
1498
|
+
useErrorBoundary: s.useErrorBoundary,
|
|
1499
|
+
query: r.getCurrentQuery()
|
|
1500
|
+
}))
|
|
1501
|
+
throw o.error;
|
|
1502
|
+
return s.notifyOnChangeProps ? o : r.trackResult(o);
|
|
1503
|
+
}
|
|
1504
|
+
function Si(n, e, t) {
|
|
1505
|
+
const i = Ln(n, e, t);
|
|
1506
|
+
return vi(i, Qn);
|
|
1507
|
+
}
|
|
1508
|
+
var yi = { 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 };
|
|
1509
|
+
const Je = (n) => {
|
|
1510
|
+
let e;
|
|
1511
|
+
const t = /* @__PURE__ */ new Set(), i = (l, u) => {
|
|
1512
|
+
const d = typeof l == "function" ? l(e) : l;
|
|
1513
|
+
if (!Object.is(d, e)) {
|
|
1514
|
+
const f = e;
|
|
1515
|
+
e = (u != null ? u : typeof d != "object" || d === null) ? d : Object.assign({}, e, d), t.forEach((c) => c(e, f));
|
|
1516
|
+
}
|
|
1517
|
+
}, a = () => e, o = { setState: i, getState: a, subscribe: (l) => (t.add(l), () => t.delete(l)), destroy: () => {
|
|
1518
|
+
(yi ? "production" : void 0) !== "production" && console.warn(
|
|
1519
|
+
"[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."
|
|
1520
|
+
), t.clear();
|
|
1521
|
+
} };
|
|
1522
|
+
return e = n(i, a, o), o;
|
|
1523
|
+
}, Ni = (n) => n ? Je(n) : Je;
|
|
1524
|
+
var Rt = { exports: {} }, Tt = {};
|
|
1525
|
+
/**
|
|
1526
|
+
* @license React
|
|
1527
|
+
* use-sync-external-store-shim/with-selector.production.min.js
|
|
1528
|
+
*
|
|
1529
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
1530
|
+
*
|
|
1531
|
+
* This source code is licensed under the MIT license found in the
|
|
1532
|
+
* LICENSE file in the root directory of this source tree.
|
|
1533
|
+
*/
|
|
1534
|
+
var pe = me, bi = xt;
|
|
1535
|
+
function Fi(n, e) {
|
|
1536
|
+
return n === e && (n !== 0 || 1 / n === 1 / e) || n !== n && e !== e;
|
|
1537
|
+
}
|
|
1538
|
+
var wi = typeof Object.is == "function" ? Object.is : Fi, Ci = bi.useSyncExternalStore, Ei = pe.useRef, xi = pe.useEffect, Oi = pe.useMemo, Ri = pe.useDebugValue;
|
|
1539
|
+
Tt.useSyncExternalStoreWithSelector = function(n, e, t, i, a) {
|
|
1540
|
+
var s = Ei(null);
|
|
1541
|
+
if (s.current === null) {
|
|
1542
|
+
var r = { hasValue: !1, value: null };
|
|
1543
|
+
s.current = r;
|
|
1544
|
+
} else
|
|
1545
|
+
r = s.current;
|
|
1546
|
+
s = Oi(function() {
|
|
1547
|
+
function l(S) {
|
|
1548
|
+
if (!u) {
|
|
1549
|
+
if (u = !0, d = S, S = i(S), a !== void 0 && r.hasValue) {
|
|
1550
|
+
var y = r.value;
|
|
1551
|
+
if (a(y, S))
|
|
1552
|
+
return f = y;
|
|
1553
|
+
}
|
|
1554
|
+
return f = S;
|
|
1555
|
+
}
|
|
1556
|
+
if (y = f, wi(d, S))
|
|
1557
|
+
return y;
|
|
1558
|
+
var k = i(S);
|
|
1559
|
+
return a !== void 0 && a(y, k) ? y : (d = S, f = k);
|
|
1560
|
+
}
|
|
1561
|
+
var u = !1, d, f, c = t === void 0 ? null : t;
|
|
1562
|
+
return [function() {
|
|
1563
|
+
return l(e());
|
|
1564
|
+
}, c === null ? void 0 : function() {
|
|
1565
|
+
return l(c());
|
|
1566
|
+
}];
|
|
1567
|
+
}, [e, t, i, a]);
|
|
1568
|
+
var o = Ci(n, s[0], s[1]);
|
|
1569
|
+
return xi(function() {
|
|
1570
|
+
r.hasValue = !0, r.value = o;
|
|
1571
|
+
}, [o]), Ri(o), o;
|
|
1572
|
+
};
|
|
1573
|
+
Rt.exports = Tt;
|
|
1574
|
+
var Ti = Rt.exports;
|
|
1575
|
+
const Ii = /* @__PURE__ */ Ee(Ti);
|
|
1576
|
+
var It = { 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 };
|
|
1577
|
+
const { useDebugValue: Di } = me, { useSyncExternalStoreWithSelector: Li } = Ii;
|
|
1578
|
+
let qe = !1;
|
|
1579
|
+
function Ai(n, e = n.getState, t) {
|
|
1580
|
+
(It ? "production" : void 0) !== "production" && t && !qe && (console.warn(
|
|
1581
|
+
"[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"
|
|
1582
|
+
), qe = !0);
|
|
1583
|
+
const i = Li(
|
|
1584
|
+
n.subscribe,
|
|
1585
|
+
n.getState,
|
|
1586
|
+
n.getServerState || n.getState,
|
|
1587
|
+
e,
|
|
1588
|
+
t
|
|
1589
|
+
);
|
|
1590
|
+
return Di(i), i;
|
|
1591
|
+
}
|
|
1592
|
+
const He = (n) => {
|
|
1593
|
+
(It ? "production" : void 0) !== "production" && typeof n != "function" && console.warn(
|
|
1594
|
+
"[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`."
|
|
1595
|
+
);
|
|
1596
|
+
const e = typeof n == "function" ? Ni(n) : n, t = (i, a) => Ai(e, i, a);
|
|
1597
|
+
return Object.assign(t, e), t;
|
|
1598
|
+
}, Pi = (n) => n ? He(n) : He;
|
|
1599
|
+
class Vi {
|
|
1600
|
+
constructor(e) {
|
|
1601
|
+
R(this, "channel");
|
|
1602
|
+
R(this, "listeners", /* @__PURE__ */ new Map());
|
|
1603
|
+
R(this, "eventQueue", /* @__PURE__ */ new Map());
|
|
1604
|
+
try {
|
|
1605
|
+
this.channel = new BroadcastChannel(e), this.channel.onmessage = (t) => this.handleMessage(t), this.channel.onmessageerror = (t) => console.error("NizzaBroadcastChannel:", t);
|
|
1606
|
+
} catch (t) {
|
|
1607
|
+
throw console.error("Failed to create NizzaBroadcastChannel:", t), t;
|
|
1608
|
+
}
|
|
1609
|
+
}
|
|
1610
|
+
/**
|
|
1611
|
+
* Subscribe a listener function to a specific event with wildcards.
|
|
1612
|
+
*
|
|
1613
|
+
* @param {string} event - The event name to subscribe to. You can use wildcards like 'user:*' or 'chat:**'.
|
|
1614
|
+
* @param {EventBusListener} listener - The listener function to handle the event.
|
|
1615
|
+
* @returns {EventBusSubscription} - A subscription object that includes the event name and the `off()` function for unsubscribing.
|
|
1616
|
+
* @example
|
|
1617
|
+
* const subscription = eventBus.on('user:*', (event) => {
|
|
1618
|
+
* console.log('User event:', event.name);
|
|
1619
|
+
* });
|
|
1620
|
+
* const chatSubscription = eventBus.on('chat:**', (event) => {
|
|
1621
|
+
* console.log('Chat event:', event.name);
|
|
1622
|
+
* });
|
|
1623
|
+
*/
|
|
1624
|
+
on(e, t) {
|
|
1625
|
+
return this.subscribeToEvent(e, t), {
|
|
1626
|
+
off: () => this.unsubscribeFromEvent(e, t)
|
|
1627
|
+
};
|
|
1628
|
+
}
|
|
1629
|
+
/**
|
|
1630
|
+
* Emit an event through the BroadcastChannel.
|
|
1631
|
+
*
|
|
1632
|
+
* @param {string} event - The event name to emit.
|
|
1633
|
+
* @param {any} data - The data associated with the event.
|
|
1634
|
+
* @param {Attributes} attrs - Optional attributes associated with the event.
|
|
1635
|
+
* @example
|
|
1636
|
+
* // Emit a user login event
|
|
1637
|
+
* eventBus.emit('user:login', { username: 'user123' });
|
|
1638
|
+
*
|
|
1639
|
+
* // Emit a chat message event
|
|
1640
|
+
* eventBus.emit('chat:message', { text: 'Hello, world!' });
|
|
1641
|
+
*/
|
|
1642
|
+
emit(e, t, i = {}) {
|
|
1643
|
+
this.emitEvent(e, t, i);
|
|
1644
|
+
}
|
|
1645
|
+
/**
|
|
1646
|
+
* Handle messages received through the BroadcastChannel and call the corresponding listener functions.
|
|
1647
|
+
*
|
|
1648
|
+
* @private
|
|
1649
|
+
* @param {MessageEvent} event - The received message event.
|
|
1650
|
+
*/
|
|
1651
|
+
handleMessage(e) {
|
|
1652
|
+
const t = e.data, { name: i } = t;
|
|
1653
|
+
for (const [a, s] of this.listeners.entries())
|
|
1654
|
+
this.matchWildcard(a, i) && s.forEach(
|
|
1655
|
+
(r) => r({ ...t, wildcard: a })
|
|
1656
|
+
);
|
|
1657
|
+
}
|
|
1658
|
+
/**
|
|
1659
|
+
* Subscribe a listener function to a specific event.
|
|
1660
|
+
*
|
|
1661
|
+
* @private
|
|
1662
|
+
* @param {string} event - The event name to subscribe to.
|
|
1663
|
+
* @param {EventBusListener} listener - The listener function to handle the event.
|
|
1664
|
+
*/
|
|
1665
|
+
subscribeToEvent(e, t) {
|
|
1666
|
+
if (typeof e != "string" || typeof t != "function") {
|
|
1667
|
+
const i = new Error("Invalid arguments");
|
|
1668
|
+
throw console.error(i), i;
|
|
1669
|
+
}
|
|
1670
|
+
for (const [i, a] of this.listeners.entries())
|
|
1671
|
+
if (this.matchWildcard(i, e)) {
|
|
1672
|
+
a.add(t);
|
|
1673
|
+
const s = this.eventQueue.get(i);
|
|
1674
|
+
s && (s.forEach((r) => {
|
|
1675
|
+
t({ ...r, wildcard: i });
|
|
1676
|
+
}), this.eventQueue.delete(i));
|
|
1677
|
+
return;
|
|
1678
|
+
}
|
|
1679
|
+
this.listeners.set(e, /* @__PURE__ */ new Set([t]));
|
|
1680
|
+
}
|
|
1681
|
+
/**
|
|
1682
|
+
* Emit an event and deliver it to the corresponding listeners.
|
|
1683
|
+
*
|
|
1684
|
+
* @private
|
|
1685
|
+
* @param {string} event - The event name to emit.
|
|
1686
|
+
* @param {any} data - The data associated with the event.
|
|
1687
|
+
* @param {Attributes} attrs - Optional attributes associated with the event.
|
|
1688
|
+
*/
|
|
1689
|
+
emitEvent(e, t, i) {
|
|
1690
|
+
if (typeof e != "string") {
|
|
1691
|
+
const r = new Error("Invalid arguments");
|
|
1692
|
+
throw console.error(r), r;
|
|
1693
|
+
}
|
|
1696
1694
|
const a = {
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
return this.options.useErrorBoundary && l.add("error"), Object.keys(this.currentResult).some((u) => {
|
|
1708
|
-
const d = u;
|
|
1709
|
-
return this.currentResult[d] !== t[d] && l.has(d);
|
|
1710
|
-
});
|
|
1711
|
-
};
|
|
1712
|
-
(e == null ? void 0 : e.listeners) !== !1 && s() && (a.listeners = !0), this.notify({
|
|
1713
|
-
...a,
|
|
1714
|
-
...e
|
|
1715
|
-
});
|
|
1695
|
+
name: e,
|
|
1696
|
+
data: t,
|
|
1697
|
+
attrs: i
|
|
1698
|
+
}, s = Array.from(this.getMatchingListeners(e));
|
|
1699
|
+
if (s.length)
|
|
1700
|
+
for (const [r, o] of s)
|
|
1701
|
+
o({ ...a, wildcard: r });
|
|
1702
|
+
else
|
|
1703
|
+
this.eventQueue.has(e) || this.eventQueue.set(e, []), this.eventQueue.get(e).push(a);
|
|
1704
|
+
this.channel.postMessage(a);
|
|
1716
1705
|
}
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1706
|
+
/**
|
|
1707
|
+
* Get listeners that match the event name pattern.
|
|
1708
|
+
*
|
|
1709
|
+
* @private
|
|
1710
|
+
* @param {string} event - The event name to match.
|
|
1711
|
+
* @returns {Iterable<[string, EventBusListener]>} - Iterable of matching listeners and their patterns.
|
|
1712
|
+
*/
|
|
1713
|
+
*getMatchingListeners(e) {
|
|
1714
|
+
for (const [t, i] of this.listeners.entries())
|
|
1715
|
+
if (this.matchWildcard(t, e))
|
|
1716
|
+
for (const a of i)
|
|
1717
|
+
yield [t, a];
|
|
1723
1718
|
}
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1719
|
+
/**
|
|
1720
|
+
* Unsubscribe a listener function from a specific event.
|
|
1721
|
+
*
|
|
1722
|
+
* @private
|
|
1723
|
+
* @param {string} event - The event name to unsubscribe from.
|
|
1724
|
+
* @param {EventBusListener} listener - The listener function to unsubscribe.
|
|
1725
|
+
*/
|
|
1726
|
+
unsubscribeFromEvent(e, t) {
|
|
1727
|
+
if (this.listeners.has(e)) {
|
|
1728
|
+
const i = this.listeners.get(e);
|
|
1729
|
+
i.delete(t), i.size === 0 && this.listeners.delete(e);
|
|
1730
|
+
}
|
|
1727
1731
|
}
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
}) => {
|
|
1740
|
-
d(this.currentResult);
|
|
1741
|
-
}), e.cache && this.client.getQueryCache().notify({
|
|
1742
|
-
query: this.currentQuery,
|
|
1743
|
-
type: "observerResultsUpdated"
|
|
1744
|
-
});
|
|
1745
|
-
});
|
|
1732
|
+
/**
|
|
1733
|
+
* Match wildcards in event names.
|
|
1734
|
+
*
|
|
1735
|
+
* @private
|
|
1736
|
+
* @param {string} pattern - The wildcard pattern to match.
|
|
1737
|
+
* @param {string} eventName - The event name to check.
|
|
1738
|
+
* @returns {boolean} - `true` if the event name matches the pattern, otherwise `false`.
|
|
1739
|
+
*/
|
|
1740
|
+
matchWildcard(e, t) {
|
|
1741
|
+
const i = e.replace(/\*/g, "[^:]*").replace(/\*\*/g, ".*");
|
|
1742
|
+
return new RegExp(`^${i}$`).test(t);
|
|
1746
1743
|
}
|
|
1747
1744
|
}
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
function qe(n, e) {
|
|
1752
|
-
return Li(n, e) || n.state.dataUpdatedAt > 0 && Fe(n, e, e.refetchOnMount);
|
|
1745
|
+
let j, Dt;
|
|
1746
|
+
function _s() {
|
|
1747
|
+
return j = _i(), Dt = j.store, j;
|
|
1753
1748
|
}
|
|
1754
|
-
function
|
|
1755
|
-
if (
|
|
1756
|
-
const
|
|
1757
|
-
|
|
1749
|
+
function _i() {
|
|
1750
|
+
if (!window.nizza) {
|
|
1751
|
+
const n = Ui();
|
|
1752
|
+
window.nizza = n, window.nz = n;
|
|
1758
1753
|
}
|
|
1759
|
-
return
|
|
1754
|
+
return window.nizza;
|
|
1755
|
+
}
|
|
1756
|
+
function Ui() {
|
|
1757
|
+
const n = Pi(() => ({
|
|
1758
|
+
config: null
|
|
1759
|
+
}));
|
|
1760
|
+
return {
|
|
1761
|
+
version: "1.0.4",
|
|
1762
|
+
store: n,
|
|
1763
|
+
configure: Mi,
|
|
1764
|
+
setProductDataSource: $i,
|
|
1765
|
+
instanceId: hn(),
|
|
1766
|
+
log: new kn("nz"),
|
|
1767
|
+
eventBus: new Vi("nizza"),
|
|
1768
|
+
get state() {
|
|
1769
|
+
return n.getState();
|
|
1770
|
+
}
|
|
1771
|
+
};
|
|
1760
1772
|
}
|
|
1761
|
-
function
|
|
1762
|
-
|
|
1773
|
+
async function Mi(n) {
|
|
1774
|
+
try {
|
|
1775
|
+
const e = j.store.getState().account;
|
|
1776
|
+
if (j.store.setState({ config: n }), (e == null ? void 0 : e.account) !== n.account) {
|
|
1777
|
+
const t = await Yi(n.account);
|
|
1778
|
+
j.store.setState({ account: t });
|
|
1779
|
+
}
|
|
1780
|
+
if (n.getProductDataSource) {
|
|
1781
|
+
const t = await n.getProductDataSource();
|
|
1782
|
+
j.store.setState({ productDataSource: t });
|
|
1783
|
+
}
|
|
1784
|
+
} catch (e) {
|
|
1785
|
+
console.error("Error configuring NizzaStore:", e);
|
|
1786
|
+
}
|
|
1763
1787
|
}
|
|
1764
|
-
function
|
|
1765
|
-
|
|
1788
|
+
function $i(n) {
|
|
1789
|
+
j.store.setState({ productDataSource: n });
|
|
1766
1790
|
}
|
|
1767
|
-
function
|
|
1768
|
-
return
|
|
1791
|
+
function G(n) {
|
|
1792
|
+
return n != null && typeof n == "object" && n["@@functional/placeholder"] === !0;
|
|
1769
1793
|
}
|
|
1770
|
-
|
|
1771
|
-
function
|
|
1772
|
-
|
|
1794
|
+
function ae(n) {
|
|
1795
|
+
return function e(t) {
|
|
1796
|
+
return arguments.length === 0 || G(t) ? e : n.apply(this, arguments);
|
|
1797
|
+
};
|
|
1773
1798
|
}
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
n = !0;
|
|
1791
|
-
},
|
|
1792
|
-
isReset: () => n
|
|
1799
|
+
function Te(n) {
|
|
1800
|
+
return function e(t, i) {
|
|
1801
|
+
switch (arguments.length) {
|
|
1802
|
+
case 0:
|
|
1803
|
+
return e;
|
|
1804
|
+
case 1:
|
|
1805
|
+
return G(t) ? e : ae(function(a) {
|
|
1806
|
+
return n(t, a);
|
|
1807
|
+
});
|
|
1808
|
+
default:
|
|
1809
|
+
return G(t) && G(i) ? e : G(t) ? ae(function(a) {
|
|
1810
|
+
return n(a, i);
|
|
1811
|
+
}) : G(i) ? ae(function(a) {
|
|
1812
|
+
return n(t, a);
|
|
1813
|
+
}) : n(t, i);
|
|
1814
|
+
}
|
|
1793
1815
|
};
|
|
1794
1816
|
}
|
|
1795
|
-
const ji =
|
|
1796
|
-
|
|
1797
|
-
|
|
1817
|
+
const ji = Number.isInteger || function(e) {
|
|
1818
|
+
return e << 0 === e;
|
|
1819
|
+
};
|
|
1820
|
+
function zi(n) {
|
|
1821
|
+
return Object.prototype.toString.call(n) === "[object String]";
|
|
1798
1822
|
}
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
M.useEffect(() => {
|
|
1803
|
-
n.clearReset();
|
|
1804
|
-
}, [n]);
|
|
1805
|
-
}, Ki = ({
|
|
1806
|
-
result: n,
|
|
1807
|
-
errorResetBoundary: e,
|
|
1808
|
-
useErrorBoundary: t,
|
|
1809
|
-
query: i
|
|
1810
|
-
}) => n.isError && !e.isReset() && !n.isFetching && Bi(t, [n.error, i]), Wi = (n) => {
|
|
1811
|
-
n.suspense && typeof n.staleTime != "number" && (n.staleTime = 1e3);
|
|
1812
|
-
}, Ji = (n, e) => n.isLoading && n.isFetching && !e, qi = (n, e, t) => (n == null ? void 0 : n.suspense) && Ji(e, t), Hi = (n, e, t) => e.fetchOptimistic(n).then(({
|
|
1813
|
-
data: i
|
|
1814
|
-
}) => {
|
|
1815
|
-
n.onSuccess == null || n.onSuccess(i), n.onSettled == null || n.onSettled(i, null);
|
|
1816
|
-
}).catch((i) => {
|
|
1817
|
-
t.clearReset(), n.onError == null || n.onError(i), n.onSettled == null || n.onSettled(void 0, i);
|
|
1823
|
+
var Bi = /* @__PURE__ */ Te(function(e, t) {
|
|
1824
|
+
var i = e < 0 ? t.length + e : e;
|
|
1825
|
+
return zi(t) ? t.charAt(i) : t[i];
|
|
1818
1826
|
});
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
}
|
|
1844
|
-
function Xi(n, e, t) {
|
|
1845
|
-
const i = Ni(n, e, t);
|
|
1846
|
-
return Zi(i, Di);
|
|
1827
|
+
const Qi = Bi;
|
|
1828
|
+
var Gi = /* @__PURE__ */ ae(function(e) {
|
|
1829
|
+
return e == null;
|
|
1830
|
+
});
|
|
1831
|
+
const Ki = Gi;
|
|
1832
|
+
var Wi = /* @__PURE__ */ Te(function(e, t) {
|
|
1833
|
+
return e.map(function(i) {
|
|
1834
|
+
for (var a = t, s = 0, r; s < i.length; ) {
|
|
1835
|
+
if (a == null)
|
|
1836
|
+
return;
|
|
1837
|
+
r = i[s], a = ji(r) ? Qi(r, a) : a[r], s += 1;
|
|
1838
|
+
}
|
|
1839
|
+
return a;
|
|
1840
|
+
});
|
|
1841
|
+
});
|
|
1842
|
+
const Ji = Wi;
|
|
1843
|
+
var qi = /* @__PURE__ */ Te(function(e, t) {
|
|
1844
|
+
return Ji([e], t)[0];
|
|
1845
|
+
});
|
|
1846
|
+
const Hi = qi;
|
|
1847
|
+
function Us(n, e) {
|
|
1848
|
+
e.forEach((t) => {
|
|
1849
|
+
if (Ki(Hi(t.split("."), n)))
|
|
1850
|
+
throw new On(t);
|
|
1851
|
+
});
|
|
1847
1852
|
}
|
|
1848
|
-
const
|
|
1849
|
-
const n =
|
|
1853
|
+
const Zi = () => ["account"], Ms = () => {
|
|
1854
|
+
const n = Dt((a) => {
|
|
1850
1855
|
var s;
|
|
1851
1856
|
return (s = a.config) == null ? void 0 : s.account;
|
|
1852
|
-
}), [e, t] =
|
|
1857
|
+
}), [e, t] = rn(Ce), i = Si(Zi(), () => Ft.get(n), {
|
|
1853
1858
|
enabled: !!n && !e,
|
|
1854
1859
|
refetchOnWindowFocus: !1,
|
|
1855
1860
|
refetchOnMount: !1
|
|
1856
1861
|
});
|
|
1857
|
-
return
|
|
1862
|
+
return ft(() => {
|
|
1858
1863
|
const a = i.data;
|
|
1859
1864
|
!i.isSuccess || !a || t(a);
|
|
1860
1865
|
}, [i.status]), {
|
|
1861
1866
|
findQuery: i,
|
|
1862
1867
|
account: e
|
|
1863
1868
|
};
|
|
1864
|
-
},
|
|
1865
|
-
async function
|
|
1866
|
-
const e = await
|
|
1867
|
-
return
|
|
1869
|
+
}, Xi = pt();
|
|
1870
|
+
async function Yi(n) {
|
|
1871
|
+
const e = await Ft.get(n);
|
|
1872
|
+
return Xi.set(Ce, e), e;
|
|
1868
1873
|
}
|
|
1869
|
-
var
|
|
1870
|
-
const
|
|
1874
|
+
var ea = /* @__PURE__ */ ((n) => (n.CREATED = "CREATED", n.STARTING = "STARTING", n.LIVE = "LIVE", n.FINALIZED = "FINALIZED", n))(ea || {});
|
|
1875
|
+
const $s = {
|
|
1871
1876
|
ALL: "*",
|
|
1872
1877
|
CORE: "core:**",
|
|
1873
1878
|
LIVE_STREAMING_EVENT: "event:**",
|
|
@@ -1879,77 +1884,77 @@ const zs = {
|
|
|
1879
1884
|
SNACK_SIZE_VIDEO_ADMIN: "ssv-admin:**",
|
|
1880
1885
|
UI: "ui:**",
|
|
1881
1886
|
UTILS: "utils:**"
|
|
1882
|
-
},
|
|
1887
|
+
}, js = {
|
|
1883
1888
|
EVENT_STATUS_CHANGED: "event:statusChanged"
|
|
1884
1889
|
};
|
|
1885
|
-
var
|
|
1886
|
-
function
|
|
1890
|
+
var ta = /* @__PURE__ */ ((n) => (n.English = "en", n.Spanish = "es", n.Portuguese = "pt", n))(ta || {}), na = /* @__PURE__ */ ((n) => (n.COMBO = "Combo", n))(na || {}), ia = /* @__PURE__ */ ((n) => (n.VTEX = "VTEX", n.PLATFORM = "platform", n.CACE = "CACE", n.GLOBAL_PAGE = "globalPage", n.DEV_LOCAL = "dev:local", n.CUSTOMIZATION = "customization", n.FAST_STORE = "faststore", n))(ia || {});
|
|
1891
|
+
function aa(n) {
|
|
1887
1892
|
const e = Object.values(n);
|
|
1888
1893
|
return Object.assign({}, ...e);
|
|
1889
1894
|
}
|
|
1890
|
-
function
|
|
1895
|
+
function sa(n) {
|
|
1891
1896
|
return Object.entries(n).reduce(
|
|
1892
1897
|
(e, [t, i]) => {
|
|
1893
|
-
const a =
|
|
1898
|
+
const a = aa(i);
|
|
1894
1899
|
return { ...e, [t]: a };
|
|
1895
1900
|
},
|
|
1896
1901
|
{}
|
|
1897
1902
|
);
|
|
1898
1903
|
}
|
|
1899
|
-
function
|
|
1900
|
-
const t =
|
|
1904
|
+
function ra(n, e) {
|
|
1905
|
+
const t = sa(e);
|
|
1901
1906
|
Object.entries(t).forEach(([i, a]) => {
|
|
1902
1907
|
n.addResourceBundle(i, "translation", a, !0);
|
|
1903
1908
|
});
|
|
1904
1909
|
}
|
|
1905
|
-
function
|
|
1910
|
+
function oa(n, e) {
|
|
1906
1911
|
if (!(n instanceof e))
|
|
1907
1912
|
throw new TypeError("Cannot call a class as a function");
|
|
1908
1913
|
}
|
|
1909
|
-
function
|
|
1914
|
+
function X(n) {
|
|
1910
1915
|
"@babel/helpers - typeof";
|
|
1911
|
-
return
|
|
1916
|
+
return X = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
1912
1917
|
return typeof e;
|
|
1913
1918
|
} : function(e) {
|
|
1914
1919
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
1915
|
-
},
|
|
1920
|
+
}, X(n);
|
|
1916
1921
|
}
|
|
1917
|
-
function
|
|
1918
|
-
if (
|
|
1922
|
+
function la(n, e) {
|
|
1923
|
+
if (X(n) !== "object" || n === null)
|
|
1919
1924
|
return n;
|
|
1920
1925
|
var t = n[Symbol.toPrimitive];
|
|
1921
1926
|
if (t !== void 0) {
|
|
1922
1927
|
var i = t.call(n, e || "default");
|
|
1923
|
-
if (
|
|
1928
|
+
if (X(i) !== "object")
|
|
1924
1929
|
return i;
|
|
1925
1930
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
1926
1931
|
}
|
|
1927
1932
|
return (e === "string" ? String : Number)(n);
|
|
1928
1933
|
}
|
|
1929
|
-
function
|
|
1930
|
-
var e =
|
|
1931
|
-
return
|
|
1934
|
+
function da(n) {
|
|
1935
|
+
var e = la(n, "string");
|
|
1936
|
+
return X(e) === "symbol" ? e : String(e);
|
|
1932
1937
|
}
|
|
1933
|
-
function
|
|
1938
|
+
function Ze(n, e) {
|
|
1934
1939
|
for (var t = 0; t < e.length; t++) {
|
|
1935
1940
|
var i = e[t];
|
|
1936
|
-
i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(n,
|
|
1941
|
+
i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(n, da(i.key), i);
|
|
1937
1942
|
}
|
|
1938
1943
|
}
|
|
1939
|
-
function
|
|
1940
|
-
return e &&
|
|
1944
|
+
function ua(n, e, t) {
|
|
1945
|
+
return e && Ze(n.prototype, e), t && Ze(n, t), Object.defineProperty(n, "prototype", {
|
|
1941
1946
|
writable: !1
|
|
1942
1947
|
}), n;
|
|
1943
1948
|
}
|
|
1944
|
-
var
|
|
1945
|
-
function
|
|
1946
|
-
return
|
|
1949
|
+
var Lt = [], ca = Lt.forEach, ma = Lt.slice;
|
|
1950
|
+
function fa(n) {
|
|
1951
|
+
return ca.call(ma.call(arguments, 1), function(e) {
|
|
1947
1952
|
if (e)
|
|
1948
1953
|
for (var t in e)
|
|
1949
1954
|
n[t] === void 0 && (n[t] = e[t]);
|
|
1950
1955
|
}), n;
|
|
1951
1956
|
}
|
|
1952
|
-
var
|
|
1957
|
+
var Xe = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, pa = function(e, t, i) {
|
|
1953
1958
|
var a = i || {};
|
|
1954
1959
|
a.path = a.path || "/";
|
|
1955
1960
|
var s = encodeURIComponent(t), r = "".concat(e, "=").concat(s);
|
|
@@ -1960,12 +1965,12 @@ var Ye = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, ga = function(e, t, i) {
|
|
|
1960
1965
|
r += "; Max-Age=".concat(Math.floor(o));
|
|
1961
1966
|
}
|
|
1962
1967
|
if (a.domain) {
|
|
1963
|
-
if (!
|
|
1968
|
+
if (!Xe.test(a.domain))
|
|
1964
1969
|
throw new TypeError("option domain is invalid");
|
|
1965
1970
|
r += "; Domain=".concat(a.domain);
|
|
1966
1971
|
}
|
|
1967
1972
|
if (a.path) {
|
|
1968
|
-
if (!
|
|
1973
|
+
if (!Xe.test(a.path))
|
|
1969
1974
|
throw new TypeError("option path is invalid");
|
|
1970
1975
|
r += "; Path=".concat(a.path);
|
|
1971
1976
|
}
|
|
@@ -1994,13 +1999,13 @@ var Ye = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, ga = function(e, t, i) {
|
|
|
1994
1999
|
}
|
|
1995
2000
|
}
|
|
1996
2001
|
return r;
|
|
1997
|
-
},
|
|
2002
|
+
}, Ye = {
|
|
1998
2003
|
create: function(e, t, i, a) {
|
|
1999
2004
|
var s = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
|
|
2000
2005
|
path: "/",
|
|
2001
2006
|
sameSite: "strict"
|
|
2002
2007
|
};
|
|
2003
|
-
i && (s.expires = /* @__PURE__ */ new Date(), s.expires.setTime(s.expires.getTime() + i * 60 * 1e3)), a && (s.domain = a), document.cookie =
|
|
2008
|
+
i && (s.expires = /* @__PURE__ */ new Date(), s.expires.setTime(s.expires.getTime() + i * 60 * 1e3)), a && (s.domain = a), document.cookie = pa(e, encodeURIComponent(t), s);
|
|
2004
2009
|
},
|
|
2005
2010
|
read: function(e) {
|
|
2006
2011
|
for (var t = "".concat(e, "="), i = document.cookie.split(";"), a = 0; a < i.length; a++) {
|
|
@@ -2014,20 +2019,20 @@ var Ye = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, ga = function(e, t, i) {
|
|
|
2014
2019
|
remove: function(e) {
|
|
2015
2020
|
this.create(e, "", -1);
|
|
2016
2021
|
}
|
|
2017
|
-
},
|
|
2022
|
+
}, ha = {
|
|
2018
2023
|
name: "cookie",
|
|
2019
2024
|
lookup: function(e) {
|
|
2020
2025
|
var t;
|
|
2021
2026
|
if (e.lookupCookie && typeof document != "undefined") {
|
|
2022
|
-
var i =
|
|
2027
|
+
var i = Ye.read(e.lookupCookie);
|
|
2023
2028
|
i && (t = i);
|
|
2024
2029
|
}
|
|
2025
2030
|
return t;
|
|
2026
2031
|
},
|
|
2027
2032
|
cacheUserLanguage: function(e, t) {
|
|
2028
|
-
t.lookupCookie && typeof document != "undefined" &&
|
|
2033
|
+
t.lookupCookie && typeof document != "undefined" && Ye.create(t.lookupCookie, e, t.cookieMinutes, t.cookieDomain, t.cookieOptions);
|
|
2029
2034
|
}
|
|
2030
|
-
},
|
|
2035
|
+
}, ga = {
|
|
2031
2036
|
name: "querystring",
|
|
2032
2037
|
lookup: function(e) {
|
|
2033
2038
|
var t;
|
|
@@ -2044,55 +2049,55 @@ var Ye = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, ga = function(e, t, i) {
|
|
|
2044
2049
|
}
|
|
2045
2050
|
return t;
|
|
2046
2051
|
}
|
|
2047
|
-
},
|
|
2048
|
-
if (
|
|
2049
|
-
return
|
|
2052
|
+
}, J = null, et = function() {
|
|
2053
|
+
if (J !== null)
|
|
2054
|
+
return J;
|
|
2050
2055
|
try {
|
|
2051
|
-
|
|
2056
|
+
J = window !== "undefined" && window.localStorage !== null;
|
|
2052
2057
|
var e = "i18next.translate.boo";
|
|
2053
2058
|
window.localStorage.setItem(e, "foo"), window.localStorage.removeItem(e);
|
|
2054
2059
|
} catch {
|
|
2055
|
-
|
|
2060
|
+
J = !1;
|
|
2056
2061
|
}
|
|
2057
|
-
return
|
|
2058
|
-
},
|
|
2062
|
+
return J;
|
|
2063
|
+
}, ka = {
|
|
2059
2064
|
name: "localStorage",
|
|
2060
2065
|
lookup: function(e) {
|
|
2061
2066
|
var t;
|
|
2062
|
-
if (e.lookupLocalStorage &&
|
|
2067
|
+
if (e.lookupLocalStorage && et()) {
|
|
2063
2068
|
var i = window.localStorage.getItem(e.lookupLocalStorage);
|
|
2064
2069
|
i && (t = i);
|
|
2065
2070
|
}
|
|
2066
2071
|
return t;
|
|
2067
2072
|
},
|
|
2068
2073
|
cacheUserLanguage: function(e, t) {
|
|
2069
|
-
t.lookupLocalStorage &&
|
|
2074
|
+
t.lookupLocalStorage && et() && window.localStorage.setItem(t.lookupLocalStorage, e);
|
|
2070
2075
|
}
|
|
2071
|
-
},
|
|
2072
|
-
if (
|
|
2073
|
-
return
|
|
2076
|
+
}, q = null, tt = function() {
|
|
2077
|
+
if (q !== null)
|
|
2078
|
+
return q;
|
|
2074
2079
|
try {
|
|
2075
|
-
|
|
2080
|
+
q = window !== "undefined" && window.sessionStorage !== null;
|
|
2076
2081
|
var e = "i18next.translate.boo";
|
|
2077
2082
|
window.sessionStorage.setItem(e, "foo"), window.sessionStorage.removeItem(e);
|
|
2078
2083
|
} catch {
|
|
2079
|
-
|
|
2084
|
+
q = !1;
|
|
2080
2085
|
}
|
|
2081
|
-
return
|
|
2082
|
-
},
|
|
2086
|
+
return q;
|
|
2087
|
+
}, va = {
|
|
2083
2088
|
name: "sessionStorage",
|
|
2084
2089
|
lookup: function(e) {
|
|
2085
2090
|
var t;
|
|
2086
|
-
if (e.lookupSessionStorage &&
|
|
2091
|
+
if (e.lookupSessionStorage && tt()) {
|
|
2087
2092
|
var i = window.sessionStorage.getItem(e.lookupSessionStorage);
|
|
2088
2093
|
i && (t = i);
|
|
2089
2094
|
}
|
|
2090
2095
|
return t;
|
|
2091
2096
|
},
|
|
2092
2097
|
cacheUserLanguage: function(e, t) {
|
|
2093
|
-
t.lookupSessionStorage &&
|
|
2098
|
+
t.lookupSessionStorage && tt() && window.sessionStorage.setItem(t.lookupSessionStorage, e);
|
|
2094
2099
|
}
|
|
2095
|
-
},
|
|
2100
|
+
}, Sa = {
|
|
2096
2101
|
name: "navigator",
|
|
2097
2102
|
lookup: function(e) {
|
|
2098
2103
|
var t = [];
|
|
@@ -2104,13 +2109,13 @@ var Ye = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, ga = function(e, t, i) {
|
|
|
2104
2109
|
}
|
|
2105
2110
|
return t.length > 0 ? t : void 0;
|
|
2106
2111
|
}
|
|
2107
|
-
},
|
|
2112
|
+
}, ya = {
|
|
2108
2113
|
name: "htmlTag",
|
|
2109
2114
|
lookup: function(e) {
|
|
2110
2115
|
var t, i = e.htmlTag || (typeof document != "undefined" ? document.documentElement : null);
|
|
2111
2116
|
return i && typeof i.getAttribute == "function" && (t = i.getAttribute("lang")), t;
|
|
2112
2117
|
}
|
|
2113
|
-
},
|
|
2118
|
+
}, Na = {
|
|
2114
2119
|
name: "path",
|
|
2115
2120
|
lookup: function(e) {
|
|
2116
2121
|
var t;
|
|
@@ -2126,7 +2131,7 @@ var Ye = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, ga = function(e, t, i) {
|
|
|
2126
2131
|
}
|
|
2127
2132
|
return t;
|
|
2128
2133
|
}
|
|
2129
|
-
},
|
|
2134
|
+
}, ba = {
|
|
2130
2135
|
name: "subdomain",
|
|
2131
2136
|
lookup: function(e) {
|
|
2132
2137
|
var t = typeof e.lookupFromSubdomainIndex == "number" ? e.lookupFromSubdomainIndex + 1 : 1, i = typeof window != "undefined" && window.location && window.location.hostname && window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);
|
|
@@ -2134,7 +2139,7 @@ var Ye = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, ga = function(e, t, i) {
|
|
|
2134
2139
|
return i[t];
|
|
2135
2140
|
}
|
|
2136
2141
|
};
|
|
2137
|
-
function
|
|
2142
|
+
function Fa() {
|
|
2138
2143
|
return {
|
|
2139
2144
|
order: ["querystring", "cookie", "localStorage", "sessionStorage", "navigator", "htmlTag"],
|
|
2140
2145
|
lookupQuerystring: "lng",
|
|
@@ -2151,20 +2156,20 @@ function Ca() {
|
|
|
2151
2156
|
}
|
|
2152
2157
|
};
|
|
2153
2158
|
}
|
|
2154
|
-
var
|
|
2159
|
+
var At = /* @__PURE__ */ function() {
|
|
2155
2160
|
function n(e) {
|
|
2156
2161
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
2157
|
-
|
|
2162
|
+
oa(this, n), this.type = "languageDetector", this.detectors = {}, this.init(e, t);
|
|
2158
2163
|
}
|
|
2159
|
-
return
|
|
2164
|
+
return ua(n, [{
|
|
2160
2165
|
key: "init",
|
|
2161
2166
|
value: function(t) {
|
|
2162
2167
|
var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
2163
2168
|
this.services = t || {
|
|
2164
2169
|
languageUtils: {}
|
|
2165
|
-
}, this.options =
|
|
2170
|
+
}, this.options = fa(i, this.options || {}, Fa()), typeof this.options.convertDetectedLanguage == "string" && this.options.convertDetectedLanguage.indexOf("15897") > -1 && (this.options.convertDetectedLanguage = function(s) {
|
|
2166
2171
|
return s.replace("-", "_");
|
|
2167
|
-
}), this.options.lookupFromUrlIndex && (this.options.lookupFromPathIndex = this.options.lookupFromUrlIndex), this.i18nOptions = a, this.addDetector(
|
|
2172
|
+
}), this.options.lookupFromUrlIndex && (this.options.lookupFromPathIndex = this.options.lookupFromUrlIndex), this.i18nOptions = a, this.addDetector(ha), this.addDetector(ga), this.addDetector(ka), this.addDetector(va), this.addDetector(Sa), this.addDetector(ya), this.addDetector(Na), this.addDetector(ba);
|
|
2168
2173
|
}
|
|
2169
2174
|
}, {
|
|
2170
2175
|
key: "addDetector",
|
|
@@ -2196,9 +2201,9 @@ var Pt = /* @__PURE__ */ function() {
|
|
|
2196
2201
|
}
|
|
2197
2202
|
}]), n;
|
|
2198
2203
|
}();
|
|
2199
|
-
|
|
2200
|
-
function
|
|
2201
|
-
n.use(e).use(
|
|
2204
|
+
At.type = "languageDetector";
|
|
2205
|
+
function wa(n, e) {
|
|
2206
|
+
n.use(e).use(At).init({
|
|
2202
2207
|
resources: {},
|
|
2203
2208
|
fallbackLng: "en",
|
|
2204
2209
|
debug: !1,
|
|
@@ -2237,7 +2242,7 @@ function Ea(n, e) {
|
|
|
2237
2242
|
}
|
|
2238
2243
|
});
|
|
2239
2244
|
}
|
|
2240
|
-
const
|
|
2245
|
+
const Ca = {
|
|
2241
2246
|
type: "logger",
|
|
2242
2247
|
log(n) {
|
|
2243
2248
|
this.output("log", n);
|
|
@@ -2252,14 +2257,14 @@ const xa = {
|
|
|
2252
2257
|
console && console[n] && console[n].apply(console, e);
|
|
2253
2258
|
}
|
|
2254
2259
|
};
|
|
2255
|
-
class
|
|
2260
|
+
class oe {
|
|
2256
2261
|
constructor(e) {
|
|
2257
2262
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
2258
2263
|
this.init(e, t);
|
|
2259
2264
|
}
|
|
2260
2265
|
init(e) {
|
|
2261
2266
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
2262
|
-
this.prefix = t.prefix || "i18next:", this.logger = e ||
|
|
2267
|
+
this.prefix = t.prefix || "i18next:", this.logger = e || Ca, this.options = t, this.debug = t.debug;
|
|
2263
2268
|
}
|
|
2264
2269
|
log() {
|
|
2265
2270
|
for (var e = arguments.length, t = new Array(e), i = 0; i < e; i++)
|
|
@@ -2285,17 +2290,17 @@ class le {
|
|
|
2285
2290
|
return a && !this.debug ? null : (typeof e[0] == "string" && (e[0] = `${i}${this.prefix} ${e[0]}`), this.logger[t](e));
|
|
2286
2291
|
}
|
|
2287
2292
|
create(e) {
|
|
2288
|
-
return new
|
|
2293
|
+
return new oe(this.logger, {
|
|
2289
2294
|
prefix: `${this.prefix}:${e}:`,
|
|
2290
2295
|
...this.options
|
|
2291
2296
|
});
|
|
2292
2297
|
}
|
|
2293
2298
|
clone(e) {
|
|
2294
|
-
return e = e || this.options, e.prefix = e.prefix || this.prefix, new
|
|
2299
|
+
return e = e || this.options, e.prefix = e.prefix || this.prefix, new oe(this.logger, e);
|
|
2295
2300
|
}
|
|
2296
2301
|
}
|
|
2297
|
-
var
|
|
2298
|
-
class
|
|
2302
|
+
var $ = new oe();
|
|
2303
|
+
class he {
|
|
2299
2304
|
constructor() {
|
|
2300
2305
|
this.observers = {};
|
|
2301
2306
|
}
|
|
@@ -2323,22 +2328,22 @@ class ge {
|
|
|
2323
2328
|
});
|
|
2324
2329
|
}
|
|
2325
2330
|
}
|
|
2326
|
-
function
|
|
2331
|
+
function H() {
|
|
2327
2332
|
let n, e;
|
|
2328
2333
|
const t = new Promise((i, a) => {
|
|
2329
2334
|
n = i, e = a;
|
|
2330
2335
|
});
|
|
2331
2336
|
return t.resolve = n, t.reject = e, t;
|
|
2332
2337
|
}
|
|
2333
|
-
function
|
|
2338
|
+
function nt(n) {
|
|
2334
2339
|
return n == null ? "" : "" + n;
|
|
2335
2340
|
}
|
|
2336
|
-
function
|
|
2341
|
+
function Ea(n, e, t) {
|
|
2337
2342
|
n.forEach((i) => {
|
|
2338
2343
|
e[i] && (t[i] = e[i]);
|
|
2339
2344
|
});
|
|
2340
2345
|
}
|
|
2341
|
-
function
|
|
2346
|
+
function Ie(n, e, t) {
|
|
2342
2347
|
function i(r) {
|
|
2343
2348
|
return r && r.indexOf("###") > -1 ? r.replace(/###/g, ".") : r;
|
|
2344
2349
|
}
|
|
@@ -2357,41 +2362,41 @@ function De(n, e, t) {
|
|
|
2357
2362
|
k: i(s.shift())
|
|
2358
2363
|
};
|
|
2359
2364
|
}
|
|
2360
|
-
function
|
|
2365
|
+
function it(n, e, t) {
|
|
2361
2366
|
const {
|
|
2362
2367
|
obj: i,
|
|
2363
2368
|
k: a
|
|
2364
|
-
} =
|
|
2369
|
+
} = Ie(n, e, Object);
|
|
2365
2370
|
i[a] = t;
|
|
2366
2371
|
}
|
|
2367
|
-
function
|
|
2372
|
+
function xa(n, e, t, i) {
|
|
2368
2373
|
const {
|
|
2369
2374
|
obj: a,
|
|
2370
2375
|
k: s
|
|
2371
|
-
} =
|
|
2376
|
+
} = Ie(n, e, Object);
|
|
2372
2377
|
a[s] = a[s] || [], i && (a[s] = a[s].concat(t)), i || a[s].push(t);
|
|
2373
2378
|
}
|
|
2374
|
-
function
|
|
2379
|
+
function le(n, e) {
|
|
2375
2380
|
const {
|
|
2376
2381
|
obj: t,
|
|
2377
2382
|
k: i
|
|
2378
|
-
} =
|
|
2383
|
+
} = Ie(n, e);
|
|
2379
2384
|
if (t)
|
|
2380
2385
|
return t[i];
|
|
2381
2386
|
}
|
|
2382
|
-
function
|
|
2383
|
-
const i =
|
|
2384
|
-
return i !== void 0 ? i :
|
|
2387
|
+
function Oa(n, e, t) {
|
|
2388
|
+
const i = le(n, t);
|
|
2389
|
+
return i !== void 0 ? i : le(e, t);
|
|
2385
2390
|
}
|
|
2386
|
-
function
|
|
2391
|
+
function Pt(n, e, t) {
|
|
2387
2392
|
for (const i in e)
|
|
2388
|
-
i !== "__proto__" && i !== "constructor" && (i in n ? typeof n[i] == "string" || n[i] instanceof String || typeof e[i] == "string" || e[i] instanceof String ? t && (n[i] = e[i]) :
|
|
2393
|
+
i !== "__proto__" && i !== "constructor" && (i in n ? typeof n[i] == "string" || n[i] instanceof String || typeof e[i] == "string" || e[i] instanceof String ? t && (n[i] = e[i]) : Pt(n[i], e[i], t) : n[i] = e[i]);
|
|
2389
2394
|
return n;
|
|
2390
2395
|
}
|
|
2391
2396
|
function B(n) {
|
|
2392
2397
|
return n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
|
|
2393
2398
|
}
|
|
2394
|
-
var
|
|
2399
|
+
var Ra = {
|
|
2395
2400
|
"&": "&",
|
|
2396
2401
|
"<": "<",
|
|
2397
2402
|
">": ">",
|
|
@@ -2399,13 +2404,13 @@ var Ia = {
|
|
|
2399
2404
|
"'": "'",
|
|
2400
2405
|
"/": "/"
|
|
2401
2406
|
};
|
|
2402
|
-
function
|
|
2403
|
-
return typeof n == "string" ? n.replace(/[&<>"'\/]/g, (e) =>
|
|
2407
|
+
function Ta(n) {
|
|
2408
|
+
return typeof n == "string" ? n.replace(/[&<>"'\/]/g, (e) => Ra[e]) : n;
|
|
2404
2409
|
}
|
|
2405
|
-
const
|
|
2406
|
-
function
|
|
2410
|
+
const Ia = [" ", ",", "?", "!", ";"];
|
|
2411
|
+
function Da(n, e, t) {
|
|
2407
2412
|
e = e || "", t = t || "";
|
|
2408
|
-
const i =
|
|
2413
|
+
const i = Ia.filter((r) => e.indexOf(r) < 0 && t.indexOf(r) < 0);
|
|
2409
2414
|
if (i.length === 0)
|
|
2410
2415
|
return !0;
|
|
2411
2416
|
const a = new RegExp(`(${i.map((r) => r === "?" ? "\\?" : r).join("|")})`);
|
|
@@ -2416,7 +2421,7 @@ function Aa(n, e, t) {
|
|
|
2416
2421
|
}
|
|
2417
2422
|
return s;
|
|
2418
2423
|
}
|
|
2419
|
-
function
|
|
2424
|
+
function de(n, e) {
|
|
2420
2425
|
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ".";
|
|
2421
2426
|
if (!n)
|
|
2422
2427
|
return;
|
|
@@ -2442,16 +2447,16 @@ function ue(n, e) {
|
|
|
2442
2447
|
return l[o];
|
|
2443
2448
|
}
|
|
2444
2449
|
const u = i.slice(s + r).join(t);
|
|
2445
|
-
return u ?
|
|
2450
|
+
return u ? de(l, u, t) : void 0;
|
|
2446
2451
|
}
|
|
2447
2452
|
a = a[i[s]];
|
|
2448
2453
|
}
|
|
2449
2454
|
return a;
|
|
2450
2455
|
}
|
|
2451
|
-
function
|
|
2456
|
+
function ue(n) {
|
|
2452
2457
|
return n && n.indexOf("_") > 0 ? n.replace("_", "-") : n;
|
|
2453
2458
|
}
|
|
2454
|
-
class
|
|
2459
|
+
class at extends he {
|
|
2455
2460
|
constructor(e) {
|
|
2456
2461
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
2457
2462
|
ns: ["translation"],
|
|
@@ -2471,8 +2476,8 @@ class st extends ge {
|
|
|
2471
2476
|
const s = a.keySeparator !== void 0 ? a.keySeparator : this.options.keySeparator, r = a.ignoreJSONStructure !== void 0 ? a.ignoreJSONStructure : this.options.ignoreJSONStructure;
|
|
2472
2477
|
let o = [e, t];
|
|
2473
2478
|
i && typeof i != "string" && (o = o.concat(i)), i && typeof i == "string" && (o = o.concat(s ? i.split(s) : i)), e.indexOf(".") > -1 && (o = e.split("."));
|
|
2474
|
-
const l =
|
|
2475
|
-
return l || !r || typeof i != "string" ? l :
|
|
2479
|
+
const l = le(this.data, o);
|
|
2480
|
+
return l || !r || typeof i != "string" ? l : de(this.data && this.data[e] && this.data[e][t], i, s);
|
|
2476
2481
|
}
|
|
2477
2482
|
addResource(e, t, i, a) {
|
|
2478
2483
|
let s = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
|
|
@@ -2480,7 +2485,7 @@ class st extends ge {
|
|
|
2480
2485
|
};
|
|
2481
2486
|
const r = s.keySeparator !== void 0 ? s.keySeparator : this.options.keySeparator;
|
|
2482
2487
|
let o = [e, t];
|
|
2483
|
-
i && (o = o.concat(r ? i.split(r) : i)), e.indexOf(".") > -1 && (o = e.split("."), a = t, t = o[1]), this.addNamespaces(t),
|
|
2488
|
+
i && (o = o.concat(r ? i.split(r) : i)), e.indexOf(".") > -1 && (o = e.split("."), a = t, t = o[1]), this.addNamespaces(t), it(this.data, o, a), s.silent || this.emit("added", e, t, i, a);
|
|
2484
2489
|
}
|
|
2485
2490
|
addResources(e, t, i) {
|
|
2486
2491
|
let a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {
|
|
@@ -2497,11 +2502,11 @@ class st extends ge {
|
|
|
2497
2502
|
silent: !1
|
|
2498
2503
|
}, o = [e, t];
|
|
2499
2504
|
e.indexOf(".") > -1 && (o = e.split("."), a = i, i = t, t = o[1]), this.addNamespaces(t);
|
|
2500
|
-
let l =
|
|
2501
|
-
a ?
|
|
2505
|
+
let l = le(this.data, o) || {};
|
|
2506
|
+
a ? Pt(l, i, s) : l = {
|
|
2502
2507
|
...l,
|
|
2503
2508
|
...i
|
|
2504
|
-
},
|
|
2509
|
+
}, it(this.data, o, l), r.silent || this.emit("added", e, t, i);
|
|
2505
2510
|
}
|
|
2506
2511
|
removeResourceBundle(e, t) {
|
|
2507
2512
|
this.hasResourceBundle(e, t) && delete this.data[e][t], this.removeNamespaces(t), this.emit("removed", e, t);
|
|
@@ -2525,7 +2530,7 @@ class st extends ge {
|
|
|
2525
2530
|
return this.data;
|
|
2526
2531
|
}
|
|
2527
2532
|
}
|
|
2528
|
-
var
|
|
2533
|
+
var Vt = {
|
|
2529
2534
|
processors: {},
|
|
2530
2535
|
addPostProcessor(n) {
|
|
2531
2536
|
this.processors[n.name] = n;
|
|
@@ -2536,11 +2541,11 @@ var _t = {
|
|
|
2536
2541
|
}), e;
|
|
2537
2542
|
}
|
|
2538
2543
|
};
|
|
2539
|
-
const
|
|
2540
|
-
class
|
|
2544
|
+
const st = {};
|
|
2545
|
+
class ce extends he {
|
|
2541
2546
|
constructor(e) {
|
|
2542
2547
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
2543
|
-
super(),
|
|
2548
|
+
super(), Ea(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = $.create("translator");
|
|
2544
2549
|
}
|
|
2545
2550
|
changeLanguage(e) {
|
|
2546
2551
|
e && (this.language = e);
|
|
@@ -2559,7 +2564,7 @@ class me extends ge {
|
|
|
2559
2564
|
i === void 0 && (i = ":");
|
|
2560
2565
|
const a = t.keySeparator !== void 0 ? t.keySeparator : this.options.keySeparator;
|
|
2561
2566
|
let s = t.ns || this.options.defaultNS || [];
|
|
2562
|
-
const r = i && e.indexOf(i) > -1, o = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !
|
|
2567
|
+
const r = i && e.indexOf(i) > -1, o = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !Da(e, i, a);
|
|
2563
2568
|
if (r && !o) {
|
|
2564
2569
|
const l = e.match(this.interpolator.nestingRegexp);
|
|
2565
2570
|
if (l && l.length > 0)
|
|
@@ -2635,7 +2640,7 @@ class me extends ge {
|
|
|
2635
2640
|
c = c.join(O), c && (c = this.extendTranslation(c, e, t, i));
|
|
2636
2641
|
else {
|
|
2637
2642
|
let w = !1, D = !1;
|
|
2638
|
-
const L = t.count !== void 0 && typeof t.count != "string", A =
|
|
2643
|
+
const L = t.count !== void 0 && typeof t.count != "string", A = ce.hasDefaultValue(t), m = L ? this.pluralResolver.getSuffix(u, t.count, t) : "", p = t.ordinal && L ? this.pluralResolver.getSuffix(u, t.count, {
|
|
2639
2644
|
ordinal: !1
|
|
2640
2645
|
}) : "", h = t[`defaultValue${m}`] || t[`defaultValue${p}`] || t.defaultValue;
|
|
2641
2646
|
!this.isValidLookup(c) && A && (w = !0, c = h), this.isValidLookup(c) || (D = !0, c = r);
|
|
@@ -2656,8 +2661,8 @@ class me extends ge {
|
|
|
2656
2661
|
else
|
|
2657
2662
|
this.options.saveMissingTo === "all" ? v = this.languageUtils.toResolveHierarchy(t.lng || this.language) : v.push(t.lng || this.language);
|
|
2658
2663
|
const P = (x, T, V) => {
|
|
2659
|
-
const
|
|
2660
|
-
this.options.missingKeyHandler ? this.options.missingKeyHandler(x, l, T,
|
|
2664
|
+
const ee = A && V !== c ? V : b;
|
|
2665
|
+
this.options.missingKeyHandler ? this.options.missingKeyHandler(x, l, T, ee, C, t) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(x, l, T, ee, C, t), this.emit("missingKey", x, l, T, c);
|
|
2661
2666
|
};
|
|
2662
2667
|
this.options.saveMissing && (this.options.saveMissingPlurals && L ? v.forEach((x) => {
|
|
2663
2668
|
this.pluralResolver.getSuffixes(x, t).forEach((T) => {
|
|
@@ -2707,7 +2712,7 @@ class me extends ge {
|
|
|
2707
2712
|
}, i)), i.interpolation && this.interpolator.reset();
|
|
2708
2713
|
}
|
|
2709
2714
|
const o = i.postProcess || this.options.postProcess, l = typeof o == "string" ? [o] : o;
|
|
2710
|
-
return e != null && l && l.length && i.applyPostProcessor !== !1 && (e =
|
|
2715
|
+
return e != null && l && l.length && i.applyPostProcessor !== !1 && (e = Vt.handle(l, e, t, this.options && this.options.postProcessPassResolved ? {
|
|
2711
2716
|
i18nResolved: {
|
|
2712
2717
|
...a,
|
|
2713
2718
|
usedParams: this.getUsedParamsDetails(i)
|
|
@@ -2726,7 +2731,7 @@ class me extends ge {
|
|
|
2726
2731
|
this.options.fallbackNS && (f = f.concat(this.options.fallbackNS));
|
|
2727
2732
|
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);
|
|
2728
2733
|
f.forEach((N) => {
|
|
2729
|
-
this.isValidLookup(i) || (o = N, !
|
|
2734
|
+
this.isValidLookup(i) || (o = N, !st[`${k[0]}-${N}`] && this.utils && this.utils.hasLoadedNamespace && !this.utils.hasLoadedNamespace(o) && (st[`${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) => {
|
|
2730
2735
|
if (this.isValidLookup(i))
|
|
2731
2736
|
return;
|
|
2732
2737
|
r = O;
|
|
@@ -2786,21 +2791,21 @@ class me extends ge {
|
|
|
2786
2791
|
return !1;
|
|
2787
2792
|
}
|
|
2788
2793
|
}
|
|
2789
|
-
function
|
|
2794
|
+
function ye(n) {
|
|
2790
2795
|
return n.charAt(0).toUpperCase() + n.slice(1);
|
|
2791
2796
|
}
|
|
2792
|
-
class
|
|
2797
|
+
class rt {
|
|
2793
2798
|
constructor(e) {
|
|
2794
|
-
this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger =
|
|
2799
|
+
this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = $.create("languageUtils");
|
|
2795
2800
|
}
|
|
2796
2801
|
getScriptPartFromCode(e) {
|
|
2797
|
-
if (e =
|
|
2802
|
+
if (e = ue(e), !e || e.indexOf("-") < 0)
|
|
2798
2803
|
return null;
|
|
2799
2804
|
const t = e.split("-");
|
|
2800
2805
|
return t.length === 2 || (t.pop(), t[t.length - 1].toLowerCase() === "x") ? null : this.formatLanguageCode(t.join("-"));
|
|
2801
2806
|
}
|
|
2802
2807
|
getLanguagePartFromCode(e) {
|
|
2803
|
-
if (e =
|
|
2808
|
+
if (e = ue(e), !e || e.indexOf("-") < 0)
|
|
2804
2809
|
return e;
|
|
2805
2810
|
const t = e.split("-");
|
|
2806
2811
|
return this.formatLanguageCode(t[0]);
|
|
@@ -2809,7 +2814,7 @@ class ot {
|
|
|
2809
2814
|
if (typeof e == "string" && e.indexOf("-") > -1) {
|
|
2810
2815
|
const t = ["hans", "hant", "latn", "cyrl", "cans", "mong", "arab"];
|
|
2811
2816
|
let i = e.split("-");
|
|
2812
|
-
return this.options.lowerCaseLng ? i = i.map((a) => a.toLowerCase()) : i.length === 2 ? (i[0] = i[0].toLowerCase(), i[1] = i[1].toUpperCase(), t.indexOf(i[1].toLowerCase()) > -1 && (i[1] =
|
|
2817
|
+
return this.options.lowerCaseLng ? i = i.map((a) => a.toLowerCase()) : i.length === 2 ? (i[0] = i[0].toLowerCase(), i[1] = i[1].toUpperCase(), t.indexOf(i[1].toLowerCase()) > -1 && (i[1] = ye(i[1].toLowerCase()))) : i.length === 3 && (i[0] = i[0].toLowerCase(), i[1].length === 2 && (i[1] = i[1].toUpperCase()), i[0] !== "sgn" && i[2].length === 2 && (i[2] = i[2].toUpperCase()), t.indexOf(i[1].toLowerCase()) > -1 && (i[1] = ye(i[1].toLowerCase())), t.indexOf(i[2].toLowerCase()) > -1 && (i[2] = ye(i[2].toLowerCase()))), i.join("-");
|
|
2813
2818
|
}
|
|
2814
2819
|
return this.options.cleanCode || this.options.lowerCaseLng ? e.toLowerCase() : e;
|
|
2815
2820
|
}
|
|
@@ -2858,7 +2863,7 @@ class ot {
|
|
|
2858
2863
|
}), a;
|
|
2859
2864
|
}
|
|
2860
2865
|
}
|
|
2861
|
-
let
|
|
2866
|
+
let La = [{
|
|
2862
2867
|
lngs: ["ach", "ak", "am", "arn", "br", "fil", "gun", "ln", "mfe", "mg", "mi", "oc", "pt", "pt-BR", "tg", "tl", "ti", "tr", "uz", "wa"],
|
|
2863
2868
|
nr: [1, 2],
|
|
2864
2869
|
fc: 1
|
|
@@ -2950,7 +2955,7 @@ let Pa = [{
|
|
|
2950
2955
|
lngs: ["he", "iw"],
|
|
2951
2956
|
nr: [1, 2, 20, 21],
|
|
2952
2957
|
fc: 22
|
|
2953
|
-
}],
|
|
2958
|
+
}], Aa = {
|
|
2954
2959
|
1: function(n) {
|
|
2955
2960
|
return +(n > 1);
|
|
2956
2961
|
},
|
|
@@ -3018,7 +3023,7 @@ let Pa = [{
|
|
|
3018
3023
|
return n == 1 ? 0 : n == 2 ? 1 : (n < 0 || n > 10) && n % 10 == 0 ? 2 : 3;
|
|
3019
3024
|
}
|
|
3020
3025
|
};
|
|
3021
|
-
const
|
|
3026
|
+
const Pa = ["v1", "v2", "v3"], Va = ["v4"], ot = {
|
|
3022
3027
|
zero: 0,
|
|
3023
3028
|
one: 1,
|
|
3024
3029
|
two: 2,
|
|
@@ -3026,21 +3031,21 @@ const _a = ["v1", "v2", "v3"], Ua = ["v4"], lt = {
|
|
|
3026
3031
|
many: 4,
|
|
3027
3032
|
other: 5
|
|
3028
3033
|
};
|
|
3029
|
-
function
|
|
3034
|
+
function _a() {
|
|
3030
3035
|
const n = {};
|
|
3031
|
-
return
|
|
3036
|
+
return La.forEach((e) => {
|
|
3032
3037
|
e.lngs.forEach((t) => {
|
|
3033
3038
|
n[t] = {
|
|
3034
3039
|
numbers: e.nr,
|
|
3035
|
-
plurals:
|
|
3040
|
+
plurals: Aa[e.fc]
|
|
3036
3041
|
};
|
|
3037
3042
|
});
|
|
3038
3043
|
}), n;
|
|
3039
3044
|
}
|
|
3040
|
-
class
|
|
3045
|
+
class Ua {
|
|
3041
3046
|
constructor(e) {
|
|
3042
3047
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
3043
|
-
this.languageUtils = e, this.options = t, this.logger =
|
|
3048
|
+
this.languageUtils = e, this.options = t, this.logger = $.create("pluralResolver"), (!this.options.compatibilityJSON || Va.includes(this.options.compatibilityJSON)) && (typeof Intl == "undefined" || !Intl.PluralRules) && (this.options.compatibilityJSON = "v3", this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")), this.rules = _a();
|
|
3044
3049
|
}
|
|
3045
3050
|
addRule(e, t) {
|
|
3046
3051
|
this.rules[e] = t;
|
|
@@ -3049,7 +3054,7 @@ class $a {
|
|
|
3049
3054
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
3050
3055
|
if (this.shouldUseIntlApi())
|
|
3051
3056
|
try {
|
|
3052
|
-
return new Intl.PluralRules(
|
|
3057
|
+
return new Intl.PluralRules(ue(e), {
|
|
3053
3058
|
type: t.ordinal ? "ordinal" : "cardinal"
|
|
3054
3059
|
});
|
|
3055
3060
|
} catch {
|
|
@@ -3069,7 +3074,7 @@ class $a {
|
|
|
3069
3074
|
getSuffixes(e) {
|
|
3070
3075
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
3071
3076
|
const i = this.getRule(e, t);
|
|
3072
|
-
return i ? this.shouldUseIntlApi() ? i.resolvedOptions().pluralCategories.sort((a, s) =>
|
|
3077
|
+
return i ? this.shouldUseIntlApi() ? i.resolvedOptions().pluralCategories.sort((a, s) => ot[a] - ot[s]).map((a) => `${this.options.prepend}${t.ordinal ? `ordinal${this.options.prepend}` : ""}${a}`) : i.numbers.map((a) => this.getSuffix(e, a, t)) : [];
|
|
3073
3078
|
}
|
|
3074
3079
|
getSuffix(e, t) {
|
|
3075
3080
|
let i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
@@ -3084,17 +3089,17 @@ class $a {
|
|
|
3084
3089
|
return this.options.compatibilityJSON === "v1" ? a === 1 ? "" : typeof a == "number" ? `_plural_${a.toString()}` : s() : this.options.compatibilityJSON === "v2" || this.options.simplifyPluralSuffix && e.numbers.length === 2 && e.numbers[0] === 1 ? s() : this.options.prepend && i.toString() ? this.options.prepend + i.toString() : i.toString();
|
|
3085
3090
|
}
|
|
3086
3091
|
shouldUseIntlApi() {
|
|
3087
|
-
return !
|
|
3092
|
+
return !Pa.includes(this.options.compatibilityJSON);
|
|
3088
3093
|
}
|
|
3089
3094
|
}
|
|
3090
|
-
function
|
|
3091
|
-
let i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", a = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, s =
|
|
3092
|
-
return !s && a && typeof t == "string" && (s =
|
|
3095
|
+
function lt(n, e, t) {
|
|
3096
|
+
let i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", a = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, s = Oa(n, e, t);
|
|
3097
|
+
return !s && a && typeof t == "string" && (s = de(n, t, i), s === void 0 && (s = de(e, t, i))), s;
|
|
3093
3098
|
}
|
|
3094
|
-
class
|
|
3099
|
+
class Ma {
|
|
3095
3100
|
constructor() {
|
|
3096
3101
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
3097
|
-
this.logger =
|
|
3102
|
+
this.logger = $.create("interpolator"), this.options = e, this.format = e.interpolation && e.interpolation.format || ((t) => t), this.init(e);
|
|
3098
3103
|
}
|
|
3099
3104
|
init() {
|
|
3100
3105
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
@@ -3102,7 +3107,7 @@ class ja {
|
|
|
3102
3107
|
escapeValue: !0
|
|
3103
3108
|
});
|
|
3104
3109
|
const t = e.interpolation;
|
|
3105
|
-
this.escape = t.escape !== void 0 ? t.escape :
|
|
3110
|
+
this.escape = t.escape !== void 0 ? t.escape : Ta, this.escapeValue = t.escapeValue !== void 0 ? t.escapeValue : !0, this.useRawValueToEscape = t.useRawValueToEscape !== void 0 ? t.useRawValueToEscape : !1, this.prefix = t.prefix ? B(t.prefix) : t.prefixEscaped || "{{", this.suffix = t.suffix ? B(t.suffix) : t.suffixEscaped || "}}", this.formatSeparator = t.formatSeparator ? t.formatSeparator : t.formatSeparator || ",", this.unescapePrefix = t.unescapeSuffix ? "" : t.unescapePrefix || "-", this.unescapeSuffix = this.unescapePrefix ? "" : t.unescapeSuffix || "", this.nestingPrefix = t.nestingPrefix ? B(t.nestingPrefix) : t.nestingPrefixEscaped || B("$t("), this.nestingSuffix = t.nestingSuffix ? B(t.nestingSuffix) : t.nestingSuffixEscaped || B(")"), this.nestingOptionsSeparator = t.nestingOptionsSeparator ? t.nestingOptionsSeparator : t.nestingOptionsSeparator || ",", this.maxReplaces = t.maxReplaces ? t.maxReplaces : 1e3, this.alwaysFormat = t.alwaysFormat !== void 0 ? t.alwaysFormat : !1, this.resetRegExp();
|
|
3106
3111
|
}
|
|
3107
3112
|
reset() {
|
|
3108
3113
|
this.options && this.init(this.options);
|
|
@@ -3123,7 +3128,7 @@ class ja {
|
|
|
3123
3128
|
}
|
|
3124
3129
|
const d = (y) => {
|
|
3125
3130
|
if (y.indexOf(this.formatSeparator) < 0) {
|
|
3126
|
-
const F =
|
|
3131
|
+
const F = lt(t, l, y, this.options.keySeparator, this.options.ignoreJSONStructure);
|
|
3127
3132
|
return this.alwaysFormat ? this.format(F, void 0, i, {
|
|
3128
3133
|
...a,
|
|
3129
3134
|
...t,
|
|
@@ -3131,7 +3136,7 @@ class ja {
|
|
|
3131
3136
|
}) : F;
|
|
3132
3137
|
}
|
|
3133
3138
|
const k = y.split(this.formatSeparator), N = k.shift().trim(), O = k.join(this.formatSeparator).trim();
|
|
3134
|
-
return this.format(
|
|
3139
|
+
return this.format(lt(t, l, N, this.options.keySeparator, this.options.ignoreJSONStructure), O, i, {
|
|
3135
3140
|
...a,
|
|
3136
3141
|
...t,
|
|
3137
3142
|
interpolationkey: N
|
|
@@ -3160,7 +3165,7 @@ class ja {
|
|
|
3160
3165
|
} else
|
|
3161
3166
|
this.logger.warn(`missed to pass in variable ${k} for interpolating ${e}`), r = "";
|
|
3162
3167
|
else
|
|
3163
|
-
typeof r != "string" && !this.useRawValueToEscape && (r =
|
|
3168
|
+
typeof r != "string" && !this.useRawValueToEscape && (r = nt(r));
|
|
3164
3169
|
const N = y.safeValue(r);
|
|
3165
3170
|
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)
|
|
3166
3171
|
break;
|
|
@@ -3200,7 +3205,7 @@ class ja {
|
|
|
3200
3205
|
}
|
|
3201
3206
|
if (s = t(o.call(this, a[1].trim(), r), r), s && a[0] === e && typeof s != "string")
|
|
3202
3207
|
return s;
|
|
3203
|
-
typeof s != "string" && (s =
|
|
3208
|
+
typeof s != "string" && (s = nt(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, {
|
|
3204
3209
|
...i,
|
|
3205
3210
|
interpolationkey: a[1].trim()
|
|
3206
3211
|
}), s.trim())), e = e.replace(a[0], s), this.regexp.lastIndex = 0;
|
|
@@ -3208,7 +3213,7 @@ class ja {
|
|
|
3208
3213
|
return e;
|
|
3209
3214
|
}
|
|
3210
3215
|
}
|
|
3211
|
-
function
|
|
3216
|
+
function $a(n) {
|
|
3212
3217
|
let e = n.toLowerCase().trim();
|
|
3213
3218
|
const t = {};
|
|
3214
3219
|
if (n.indexOf("(") > -1) {
|
|
@@ -3232,13 +3237,13 @@ function Q(n) {
|
|
|
3232
3237
|
return function(i, a, s) {
|
|
3233
3238
|
const r = a + JSON.stringify(s);
|
|
3234
3239
|
let o = e[r];
|
|
3235
|
-
return o || (o = n(
|
|
3240
|
+
return o || (o = n(ue(a), s), e[r] = o), o(i);
|
|
3236
3241
|
};
|
|
3237
3242
|
}
|
|
3238
|
-
class
|
|
3243
|
+
class ja {
|
|
3239
3244
|
constructor() {
|
|
3240
3245
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
3241
|
-
this.logger =
|
|
3246
|
+
this.logger = $.create("formatter"), this.options = e, this.formats = {
|
|
3242
3247
|
number: Q((t, i) => {
|
|
3243
3248
|
const a = new Intl.NumberFormat(t, {
|
|
3244
3249
|
...i
|
|
@@ -3290,7 +3295,7 @@ class Ba {
|
|
|
3290
3295
|
const {
|
|
3291
3296
|
formatName: u,
|
|
3292
3297
|
formatOptions: d
|
|
3293
|
-
} =
|
|
3298
|
+
} = $a(l);
|
|
3294
3299
|
if (this.formats[u]) {
|
|
3295
3300
|
let f = o;
|
|
3296
3301
|
try {
|
|
@@ -3310,13 +3315,13 @@ class Ba {
|
|
|
3310
3315
|
}, e);
|
|
3311
3316
|
}
|
|
3312
3317
|
}
|
|
3313
|
-
function
|
|
3318
|
+
function za(n, e) {
|
|
3314
3319
|
n.pending[e] !== void 0 && (delete n.pending[e], n.pendingCount--);
|
|
3315
3320
|
}
|
|
3316
|
-
class
|
|
3321
|
+
class Ba extends he {
|
|
3317
3322
|
constructor(e, t, i) {
|
|
3318
3323
|
let a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
|
3319
|
-
super(), this.backend = e, this.store = t, this.services = i, this.languageUtils = i.languageUtils, this.options = a, this.logger =
|
|
3324
|
+
super(), this.backend = e, this.store = t, this.services = i, this.languageUtils = i.languageUtils, this.options = a, this.logger = $.create("backendConnector"), this.waitingReads = [], this.maxParallelReads = a.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = a.maxRetries >= 0 ? a.maxRetries : 5, this.retryTimeout = a.retryTimeout >= 1 ? a.retryTimeout : 350, this.state = {}, this.queue = [], this.backend && this.backend.init && this.backend.init(i, a.backend, a);
|
|
3320
3325
|
}
|
|
3321
3326
|
queueLoad(e, t, i, a) {
|
|
3322
3327
|
const s = {}, r = {}, o = {}, l = {};
|
|
@@ -3344,7 +3349,7 @@ class Ga extends ge {
|
|
|
3344
3349
|
t && this.emit("failedLoading", s, r, t), i && this.store.addResourceBundle(s, r, i), this.state[e] = t ? -1 : 2;
|
|
3345
3350
|
const o = {};
|
|
3346
3351
|
this.queue.forEach((l) => {
|
|
3347
|
-
|
|
3352
|
+
xa(l.loaded, [s], r), za(l, e), t && l.errors.push(t), l.pendingCount === 0 && !l.done && (Object.keys(l.loaded).forEach((u) => {
|
|
3348
3353
|
o[u] || (o[u] = {});
|
|
3349
3354
|
const d = l.loaded[u];
|
|
3350
3355
|
d.length && d.forEach((f) => {
|
|
@@ -3447,7 +3452,7 @@ class Ga extends ge {
|
|
|
3447
3452
|
}
|
|
3448
3453
|
}
|
|
3449
3454
|
}
|
|
3450
|
-
function
|
|
3455
|
+
function dt() {
|
|
3451
3456
|
return {
|
|
3452
3457
|
debug: !1,
|
|
3453
3458
|
initImmediate: !0,
|
|
@@ -3506,22 +3511,22 @@ function ut() {
|
|
|
3506
3511
|
}
|
|
3507
3512
|
};
|
|
3508
3513
|
}
|
|
3509
|
-
function
|
|
3514
|
+
function ut(n) {
|
|
3510
3515
|
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;
|
|
3511
3516
|
}
|
|
3512
|
-
function
|
|
3517
|
+
function ie() {
|
|
3513
3518
|
}
|
|
3514
|
-
function
|
|
3519
|
+
function Qa(n) {
|
|
3515
3520
|
Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach((t) => {
|
|
3516
3521
|
typeof n[t] == "function" && (n[t] = n[t].bind(n));
|
|
3517
3522
|
});
|
|
3518
3523
|
}
|
|
3519
|
-
class
|
|
3524
|
+
class Y extends he {
|
|
3520
3525
|
constructor() {
|
|
3521
3526
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 ? arguments[1] : void 0;
|
|
3522
|
-
if (super(), this.options =
|
|
3527
|
+
if (super(), this.options = ut(e), this.services = {}, this.logger = $, this.modules = {
|
|
3523
3528
|
external: []
|
|
3524
|
-
},
|
|
3529
|
+
}, Qa(this), t && !this.isInitialized && !e.isClone) {
|
|
3525
3530
|
if (!this.options.initImmediate)
|
|
3526
3531
|
return this.init(e, t), this;
|
|
3527
3532
|
setTimeout(() => {
|
|
@@ -3533,11 +3538,11 @@ class ee extends ge {
|
|
|
3533
3538
|
var e = this;
|
|
3534
3539
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, i = arguments.length > 1 ? arguments[1] : void 0;
|
|
3535
3540
|
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]));
|
|
3536
|
-
const a =
|
|
3541
|
+
const a = dt();
|
|
3537
3542
|
this.options = {
|
|
3538
3543
|
...a,
|
|
3539
3544
|
...this.options,
|
|
3540
|
-
...
|
|
3545
|
+
...ut(t)
|
|
3541
3546
|
}, this.options.compatibilityAPI !== "v1" && (this.options.interpolation = {
|
|
3542
3547
|
...a.interpolation,
|
|
3543
3548
|
...this.options.interpolation
|
|
@@ -3546,23 +3551,23 @@ class ee extends ge {
|
|
|
3546
3551
|
return d ? typeof d == "function" ? new d() : d : null;
|
|
3547
3552
|
}
|
|
3548
3553
|
if (!this.options.isClone) {
|
|
3549
|
-
this.modules.logger ?
|
|
3554
|
+
this.modules.logger ? $.init(s(this.modules.logger), this.options) : $.init(null, this.options);
|
|
3550
3555
|
let d;
|
|
3551
|
-
this.modules.formatter ? d = this.modules.formatter : typeof Intl != "undefined" && (d =
|
|
3552
|
-
const f = new
|
|
3553
|
-
this.store = new
|
|
3556
|
+
this.modules.formatter ? d = this.modules.formatter : typeof Intl != "undefined" && (d = ja);
|
|
3557
|
+
const f = new rt(this.options);
|
|
3558
|
+
this.store = new at(this.options.resources, this.options);
|
|
3554
3559
|
const c = this.services;
|
|
3555
|
-
c.logger =
|
|
3560
|
+
c.logger = $, c.resourceStore = this.store, c.languageUtils = f, c.pluralResolver = new Ua(f, {
|
|
3556
3561
|
prepend: this.options.pluralSeparator,
|
|
3557
3562
|
compatibilityJSON: this.options.compatibilityJSON,
|
|
3558
3563
|
simplifyPluralSuffix: this.options.simplifyPluralSuffix
|
|
3559
|
-
}), d && (!this.options.interpolation.format || this.options.interpolation.format === a.interpolation.format) && (c.formatter = s(d), c.formatter.init(c, this.options), this.options.interpolation.format = c.formatter.format.bind(c.formatter)), c.interpolator = new
|
|
3564
|
+
}), d && (!this.options.interpolation.format || this.options.interpolation.format === a.interpolation.format) && (c.formatter = s(d), c.formatter.init(c, this.options), this.options.interpolation.format = c.formatter.format.bind(c.formatter)), c.interpolator = new Ma(this.options), c.utils = {
|
|
3560
3565
|
hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
|
|
3561
|
-
}, c.backendConnector = new
|
|
3566
|
+
}, c.backendConnector = new Ba(s(this.modules.backend), c.resourceStore, c, this.options), c.backendConnector.on("*", function(S) {
|
|
3562
3567
|
for (var y = arguments.length, k = new Array(y > 1 ? y - 1 : 0), N = 1; N < y; N++)
|
|
3563
3568
|
k[N - 1] = arguments[N];
|
|
3564
3569
|
e.emit(S, ...k);
|
|
3565
|
-
}), this.modules.languageDetector && (c.languageDetector = s(this.modules.languageDetector), c.languageDetector.init && c.languageDetector.init(c, this.options.detection, this.options)), this.modules.i18nFormat && (c.i18nFormat = s(this.modules.i18nFormat), c.i18nFormat.init && c.i18nFormat.init(this)), this.translator = new
|
|
3570
|
+
}), this.modules.languageDetector && (c.languageDetector = s(this.modules.languageDetector), c.languageDetector.init && c.languageDetector.init(c, this.options.detection, this.options)), this.modules.i18nFormat && (c.i18nFormat = s(this.modules.i18nFormat), c.i18nFormat.init && c.i18nFormat.init(this)), this.translator = new ce(this.services, this.options), this.translator.on("*", function(S) {
|
|
3566
3571
|
for (var y = arguments.length, k = new Array(y > 1 ? y - 1 : 0), N = 1; N < y; N++)
|
|
3567
3572
|
k[N - 1] = arguments[N];
|
|
3568
3573
|
e.emit(S, ...k);
|
|
@@ -3570,7 +3575,7 @@ class ee extends ge {
|
|
|
3570
3575
|
S.init && S.init(this);
|
|
3571
3576
|
});
|
|
3572
3577
|
}
|
|
3573
|
-
if (this.format = this.options.interpolation.format, i || (i =
|
|
3578
|
+
if (this.format = this.options.interpolation.format, i || (i = ie), this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
|
|
3574
3579
|
const d = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
|
|
3575
3580
|
d.length > 0 && d[0] !== "dev" && (this.options.lng = d[0]);
|
|
3576
3581
|
}
|
|
@@ -3583,7 +3588,7 @@ class ee extends ge {
|
|
|
3583
3588
|
return e.store[d](...arguments), e;
|
|
3584
3589
|
};
|
|
3585
3590
|
});
|
|
3586
|
-
const l =
|
|
3591
|
+
const l = H(), u = () => {
|
|
3587
3592
|
const d = (f, c) => {
|
|
3588
3593
|
this.isInitialized && !this.initializedStoreOnce && this.logger.warn("init: i18next is already initialized. You should call init just once!"), this.isInitialized = !0, this.options.isClone || this.logger.log("initialized", this.options), this.emit("initialized", this.options), l.resolve(c), i(f, c);
|
|
3589
3594
|
};
|
|
@@ -3594,7 +3599,7 @@ class ee extends ge {
|
|
|
3594
3599
|
return this.options.resources || !this.options.initImmediate ? u() : setTimeout(u, 0), l;
|
|
3595
3600
|
}
|
|
3596
3601
|
loadResources(e) {
|
|
3597
|
-
let i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] :
|
|
3602
|
+
let i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : ie;
|
|
3598
3603
|
const a = typeof e == "string" ? e : this.language;
|
|
3599
3604
|
if (typeof e == "function" && (i = e), !this.options.resources || this.options.partialBundledLanguages) {
|
|
3600
3605
|
if (a && a.toLowerCase() === "cimode" && (!this.options.preload || this.options.preload.length === 0))
|
|
@@ -3613,8 +3618,8 @@ class ee extends ge {
|
|
|
3613
3618
|
i(null);
|
|
3614
3619
|
}
|
|
3615
3620
|
reloadResources(e, t, i) {
|
|
3616
|
-
const a =
|
|
3617
|
-
return e || (e = this.languages), t || (t = this.options.ns), i || (i =
|
|
3621
|
+
const a = H();
|
|
3622
|
+
return e || (e = this.languages), t || (t = this.options.ns), i || (i = ie), this.services.backendConnector.reload(e, t, (s) => {
|
|
3618
3623
|
a.resolve(), i(s);
|
|
3619
3624
|
}), a;
|
|
3620
3625
|
}
|
|
@@ -3623,7 +3628,7 @@ class ee extends ge {
|
|
|
3623
3628
|
throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");
|
|
3624
3629
|
if (!e.type)
|
|
3625
3630
|
throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");
|
|
3626
|
-
return e.type === "backend" && (this.modules.backend = e), (e.type === "logger" || e.log && e.warn && e.error) && (this.modules.logger = e), e.type === "languageDetector" && (this.modules.languageDetector = e), e.type === "i18nFormat" && (this.modules.i18nFormat = e), e.type === "postProcessor" &&
|
|
3631
|
+
return e.type === "backend" && (this.modules.backend = e), (e.type === "logger" || e.log && e.warn && e.error) && (this.modules.logger = e), e.type === "languageDetector" && (this.modules.languageDetector = e), e.type === "i18nFormat" && (this.modules.i18nFormat = e), e.type === "postProcessor" && Vt.addPostProcessor(e), e.type === "formatter" && (this.modules.formatter = e), e.type === "3rdParty" && this.modules.external.push(e), this;
|
|
3627
3632
|
}
|
|
3628
3633
|
setResolvedLanguage(e) {
|
|
3629
3634
|
if (!(!e || !this.languages) && !(["cimode", "dev"].indexOf(e) > -1))
|
|
@@ -3638,7 +3643,7 @@ class ee extends ge {
|
|
|
3638
3643
|
changeLanguage(e, t) {
|
|
3639
3644
|
var i = this;
|
|
3640
3645
|
this.isLanguageChangingTo = e;
|
|
3641
|
-
const a =
|
|
3646
|
+
const a = H();
|
|
3642
3647
|
this.emit("languageChanging", e);
|
|
3643
3648
|
const s = (l) => {
|
|
3644
3649
|
this.language = l, this.languages = this.services.languageUtils.toResolveHierarchy(l), this.resolvedLanguage = void 0, this.setResolvedLanguage(l);
|
|
@@ -3706,7 +3711,7 @@ class ee extends ge {
|
|
|
3706
3711
|
return !!(this.hasResourceBundle(i, e) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || r(i, e) && (!a || r(s, e)));
|
|
3707
3712
|
}
|
|
3708
3713
|
loadNamespaces(e, t) {
|
|
3709
|
-
const i =
|
|
3714
|
+
const i = H();
|
|
3710
3715
|
return this.options.ns ? (typeof e == "string" && (e = [e]), e.forEach((a) => {
|
|
3711
3716
|
this.options.ns.indexOf(a) < 0 && this.options.ns.push(a);
|
|
3712
3717
|
}), this.loadResources((a) => {
|
|
@@ -3714,7 +3719,7 @@ class ee extends ge {
|
|
|
3714
3719
|
}), i) : (t && t(), Promise.resolve());
|
|
3715
3720
|
}
|
|
3716
3721
|
loadLanguages(e, t) {
|
|
3717
|
-
const i =
|
|
3722
|
+
const i = H();
|
|
3718
3723
|
typeof e == "string" && (e = [e]);
|
|
3719
3724
|
const a = this.options.preload || [], s = e.filter((r) => a.indexOf(r) < 0);
|
|
3720
3725
|
return s.length ? (this.options.preload = a.concat(s), this.loadResources((r) => {
|
|
@@ -3724,29 +3729,29 @@ class ee extends ge {
|
|
|
3724
3729
|
dir(e) {
|
|
3725
3730
|
if (e || (e = this.resolvedLanguage || (this.languages && this.languages.length > 0 ? this.languages[0] : this.language)), !e)
|
|
3726
3731
|
return "rtl";
|
|
3727
|
-
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
|
|
3732
|
+
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 rt(dt());
|
|
3728
3733
|
return t.indexOf(i.getLanguagePartFromCode(e)) > -1 || e.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
|
|
3729
3734
|
}
|
|
3730
3735
|
static createInstance() {
|
|
3731
3736
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 ? arguments[1] : void 0;
|
|
3732
|
-
return new
|
|
3737
|
+
return new Y(e, t);
|
|
3733
3738
|
}
|
|
3734
3739
|
cloneInstance() {
|
|
3735
|
-
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] :
|
|
3740
|
+
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : ie;
|
|
3736
3741
|
const i = e.forkResourceStore;
|
|
3737
3742
|
i && delete e.forkResourceStore;
|
|
3738
3743
|
const a = {
|
|
3739
3744
|
...this.options,
|
|
3740
3745
|
...e,
|
|
3741
3746
|
isClone: !0
|
|
3742
|
-
}, s = new
|
|
3747
|
+
}, s = new Y(a);
|
|
3743
3748
|
return (e.debug !== void 0 || e.prefix !== void 0) && (s.logger = s.logger.clone(e)), ["store", "services", "language"].forEach((o) => {
|
|
3744
3749
|
s[o] = this[o];
|
|
3745
3750
|
}), s.services = {
|
|
3746
3751
|
...this.services
|
|
3747
3752
|
}, s.services.utils = {
|
|
3748
3753
|
hasLoadedNamespace: s.hasLoadedNamespace.bind(s)
|
|
3749
|
-
}, i && (s.store = new
|
|
3754
|
+
}, i && (s.store = new at(this.store.data, a), s.services.resourceStore = s.store), s.translator = new ce(s.services, a), s.translator.on("*", function(o) {
|
|
3750
3755
|
for (var l = arguments.length, u = new Array(l > 1 ? l - 1 : 0), d = 1; d < l; d++)
|
|
3751
3756
|
u[d - 1] = arguments[d];
|
|
3752
3757
|
s.emit(o, ...u);
|
|
@@ -3764,8 +3769,8 @@ class ee extends ge {
|
|
|
3764
3769
|
};
|
|
3765
3770
|
}
|
|
3766
3771
|
}
|
|
3767
|
-
const U =
|
|
3768
|
-
U.createInstance =
|
|
3772
|
+
const U = Y.createInstance();
|
|
3773
|
+
U.createInstance = Y.createInstance;
|
|
3769
3774
|
U.createInstance;
|
|
3770
3775
|
U.dir;
|
|
3771
3776
|
U.init;
|
|
@@ -3780,7 +3785,7 @@ U.setDefaultNamespace;
|
|
|
3780
3785
|
U.hasLoadedNamespace;
|
|
3781
3786
|
U.loadNamespaces;
|
|
3782
3787
|
U.loadLanguages;
|
|
3783
|
-
const
|
|
3788
|
+
const Ga = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, Ka = {
|
|
3784
3789
|
"&": "&",
|
|
3785
3790
|
"&": "&",
|
|
3786
3791
|
"<": "<",
|
|
@@ -3801,8 +3806,8 @@ const Wa = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|
|
|
|
3801
3806
|
"…": "…",
|
|
3802
3807
|
"/": "/",
|
|
3803
3808
|
"/": "/"
|
|
3804
|
-
},
|
|
3805
|
-
let
|
|
3809
|
+
}, Wa = (n) => Ka[n], Ja = (n) => n.replace(Ga, Wa);
|
|
3810
|
+
let ct = {
|
|
3806
3811
|
bindI18n: "languageChanged",
|
|
3807
3812
|
bindI18nStore: "",
|
|
3808
3813
|
transEmptyNodeValue: "",
|
|
@@ -3810,73 +3815,73 @@ let mt = {
|
|
|
3810
3815
|
transWrapTextNodes: "",
|
|
3811
3816
|
transKeepBasicHtmlNodesFor: ["br", "strong", "i", "p"],
|
|
3812
3817
|
useSuspense: !0,
|
|
3813
|
-
unescape:
|
|
3818
|
+
unescape: Ja
|
|
3814
3819
|
};
|
|
3815
|
-
function
|
|
3820
|
+
function qa() {
|
|
3816
3821
|
let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
3817
|
-
|
|
3818
|
-
...
|
|
3822
|
+
ct = {
|
|
3823
|
+
...ct,
|
|
3819
3824
|
...n
|
|
3820
3825
|
};
|
|
3821
3826
|
}
|
|
3822
|
-
const
|
|
3827
|
+
const Ha = {
|
|
3823
3828
|
type: "3rdParty",
|
|
3824
3829
|
init(n) {
|
|
3825
|
-
|
|
3830
|
+
qa(n.options.react);
|
|
3826
3831
|
}
|
|
3827
3832
|
};
|
|
3828
|
-
|
|
3829
|
-
const
|
|
3830
|
-
let
|
|
3831
|
-
const
|
|
3832
|
-
const t =
|
|
3833
|
+
wa(U, Ha);
|
|
3834
|
+
const zs = (n) => ra(U, n);
|
|
3835
|
+
let De = /* @__PURE__ */ new Map();
|
|
3836
|
+
const Fe = mt(De), Bs = ({ children: n, stores: e }) => {
|
|
3837
|
+
const t = we(Fe), i = Gt(() => {
|
|
3833
3838
|
const a = /* @__PURE__ */ new Map();
|
|
3834
|
-
return e.forEach((s) => a.set(s.class, s.value)),
|
|
3839
|
+
return e.forEach((s) => a.set(s.class, s.value)), De = new Map([...t, ...a]);
|
|
3835
3840
|
}, []);
|
|
3836
|
-
return /* @__PURE__ */
|
|
3841
|
+
return /* @__PURE__ */ Kt(Fe.Provider, { value: i, children: n });
|
|
3837
3842
|
};
|
|
3838
|
-
function
|
|
3839
|
-
return
|
|
3843
|
+
function Qs(n) {
|
|
3844
|
+
return we(Fe).get(n);
|
|
3840
3845
|
}
|
|
3841
|
-
function
|
|
3842
|
-
return
|
|
3846
|
+
function Gs(n) {
|
|
3847
|
+
return De.get(n);
|
|
3843
3848
|
}
|
|
3844
|
-
var
|
|
3845
|
-
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({
|
|
3849
|
+
var _t = /* @__PURE__ */ ((n) => (n.Created = "CREATED", n.Finalized = "FINALIZED", n.Live = "LIVE", n.Starting = "STARTING", n))(_t || {}), Ut = /* @__PURE__ */ ((n) => (n.Add = "add", n.Remove = "remove", n))(Ut || {}), Mt = /* @__PURE__ */ ((n) => (n.Active = "active", n.Inactive = "inactive", n))(Mt || {});
|
|
3850
|
+
const Za = { 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" } }] } }] } }] } }] }, Xa = { 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" } }] } }] } }] } }] }, Ya = { 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" } }] } }] } }] } }] }, es = { 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" } }] } }] } }] } }] }, ts = { 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" } }] } }] } }] } }] }, ns = { 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" } }] } }] } }] } }] }, is = { 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" } }] } }] } }] } }] }, as = { 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" } }] } }] } }] } }] }, ss = { 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" } }] } }] } }] } }] }, rs = { 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" } }] } }] } }] } }] }, os = { 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" } }] } }] } }] } }] }, ls = { 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" } }] } }] } }] } }] }, ds = { 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" } }] } }] } }] } }] }, us = { 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" } }] } }] } }] } }] }, cs = { 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" } }] } }] } }] } }] }, ms = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "deleteAllCustomization" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "CustomPlayerInputAccount" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "deleteAllCustomPlayer" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, fs = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "getAllCustomization" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "QueryInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "getAllCustomPlayer" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CustomPlayerSuccessArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "data" } }, { kind: "Field", name: { kind: "Name", value: "section" } }, { kind: "Field", name: { kind: "Name", value: "id" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, ps = { 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" } }] } }] } }] } }] }, hs = { 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" } }] } }] } }] } }] }, gs = { 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" } }] } }] } }] } }] }, ks = { 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" } }] } }] } }] } }] }, vs = { 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" } }] } }] } }] } }] }, Ss = { 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" } }] } }] } }] } }] }, ys = { 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" } }] } }] } }] } }] }, Ns = { 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" } }] } }] } }] } }] }, bs = { 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" } }] } }] } }] } }] } }] }, Fs = { 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" } }] } }] } }] } }] }, ws = { 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" } }] } }] } }] } }] }, Ks = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3846
3851
|
__proto__: null,
|
|
3847
|
-
AddCollectionDocument:
|
|
3848
|
-
AppendProductsToSnackVideoDocument:
|
|
3849
|
-
BlockUserDocument:
|
|
3850
|
-
ChangeAccountUsernameDocument:
|
|
3851
|
-
CreateSnackVideoBatchDocument:
|
|
3852
|
-
DeleteAllCustomizationDocument:
|
|
3853
|
-
DeleteChatMessageDocument:
|
|
3854
|
-
DeleteCollectionDocument:
|
|
3855
|
-
DeleteRelationshipWithSnackVideoDocument:
|
|
3856
|
-
DeleteSnackVideoDocument:
|
|
3857
|
-
EventStatus:
|
|
3858
|
-
FindByProductSnackVideoDocument:
|
|
3859
|
-
FindCollectionDocument:
|
|
3860
|
-
FindManySnackVideosDocument:
|
|
3861
|
-
FindMinimalEventDocument:
|
|
3862
|
-
GetAllChatMessageDocument:
|
|
3863
|
-
GetAllCollectionsDocument:
|
|
3864
|
-
GetAllCustomizationDocument:
|
|
3865
|
-
GetAllSnackVideosDocument:
|
|
3866
|
-
GetChatRoomTokenDocument:
|
|
3867
|
-
GetSnackVideoRelationshipsDocument:
|
|
3868
|
-
GetTimeLineDocument:
|
|
3869
|
-
ManageCollectionProductDocument:
|
|
3870
|
-
Methods:
|
|
3871
|
-
PinChatMessageDocument:
|
|
3872
|
-
SearchCollectionsDocument:
|
|
3873
|
-
SearchMinimalEventsDocument:
|
|
3874
|
-
SearchSnackVideosDocument:
|
|
3875
|
-
Status:
|
|
3876
|
-
UpdateCollectionDocument:
|
|
3877
|
-
UpdateCustomizationDocument:
|
|
3852
|
+
AddCollectionDocument: Za,
|
|
3853
|
+
AppendProductsToSnackVideoDocument: gs,
|
|
3854
|
+
BlockUserDocument: rs,
|
|
3855
|
+
ChangeAccountUsernameDocument: os,
|
|
3856
|
+
CreateSnackVideoBatchDocument: ks,
|
|
3857
|
+
DeleteAllCustomizationDocument: ms,
|
|
3858
|
+
DeleteChatMessageDocument: ls,
|
|
3859
|
+
DeleteCollectionDocument: Xa,
|
|
3860
|
+
DeleteRelationshipWithSnackVideoDocument: vs,
|
|
3861
|
+
DeleteSnackVideoDocument: Ss,
|
|
3862
|
+
EventStatus: _t,
|
|
3863
|
+
FindByProductSnackVideoDocument: ws,
|
|
3864
|
+
FindCollectionDocument: Ya,
|
|
3865
|
+
FindManySnackVideosDocument: ys,
|
|
3866
|
+
FindMinimalEventDocument: as,
|
|
3867
|
+
GetAllChatMessageDocument: ds,
|
|
3868
|
+
GetAllCollectionsDocument: es,
|
|
3869
|
+
GetAllCustomizationDocument: fs,
|
|
3870
|
+
GetAllSnackVideosDocument: Ns,
|
|
3871
|
+
GetChatRoomTokenDocument: us,
|
|
3872
|
+
GetSnackVideoRelationshipsDocument: bs,
|
|
3873
|
+
GetTimeLineDocument: hs,
|
|
3874
|
+
ManageCollectionProductDocument: ts,
|
|
3875
|
+
Methods: Ut,
|
|
3876
|
+
PinChatMessageDocument: cs,
|
|
3877
|
+
SearchCollectionsDocument: ns,
|
|
3878
|
+
SearchMinimalEventsDocument: ss,
|
|
3879
|
+
SearchSnackVideosDocument: Fs,
|
|
3880
|
+
Status: Mt,
|
|
3881
|
+
UpdateCollectionDocument: is,
|
|
3882
|
+
UpdateCustomizationDocument: ps
|
|
3878
3883
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3879
|
-
function
|
|
3884
|
+
function Ws(n) {
|
|
3880
3885
|
return {
|
|
3881
3886
|
class: n,
|
|
3882
3887
|
_value: null,
|
|
@@ -3886,63 +3891,61 @@ function qs(n) {
|
|
|
3886
3891
|
};
|
|
3887
3892
|
}
|
|
3888
3893
|
export {
|
|
3889
|
-
|
|
3890
|
-
|
|
3894
|
+
bt as AccountContractStatusTypes,
|
|
3895
|
+
yn as AccountContractTypes,
|
|
3891
3896
|
Vs as AccountInvalidError,
|
|
3892
|
-
|
|
3893
|
-
|
|
3894
|
-
|
|
3895
|
-
|
|
3896
|
-
|
|
3897
|
-
|
|
3898
|
-
|
|
3899
|
-
|
|
3900
|
-
|
|
3901
|
-
|
|
3902
|
-
|
|
3903
|
-
|
|
3904
|
-
|
|
3905
|
-
|
|
3906
|
-
|
|
3907
|
-
|
|
3908
|
-
|
|
3909
|
-
|
|
3910
|
-
|
|
3911
|
-
|
|
3912
|
-
|
|
3913
|
-
|
|
3914
|
-
|
|
3915
|
-
|
|
3916
|
-
|
|
3917
|
-
|
|
3918
|
-
|
|
3919
|
-
|
|
3920
|
-
|
|
3921
|
-
|
|
3922
|
-
|
|
3923
|
-
|
|
3924
|
-
|
|
3925
|
-
|
|
3926
|
-
|
|
3927
|
-
|
|
3928
|
-
|
|
3929
|
-
|
|
3930
|
-
|
|
3931
|
-
|
|
3932
|
-
|
|
3933
|
-
|
|
3934
|
-
|
|
3935
|
-
|
|
3936
|
-
|
|
3937
|
-
|
|
3938
|
-
|
|
3939
|
-
|
|
3940
|
-
|
|
3941
|
-
|
|
3942
|
-
|
|
3943
|
-
|
|
3944
|
-
|
|
3945
|
-
Ks as useStore,
|
|
3946
|
-
_s as validateRequiredProps
|
|
3897
|
+
bn as AccountPlanDescriptionTypes,
|
|
3898
|
+
Cn as AccountRestRepository,
|
|
3899
|
+
Rn as AccountService,
|
|
3900
|
+
Nn as AccountSubscriptionTypes,
|
|
3901
|
+
Nt as AccountTypes,
|
|
3902
|
+
vn as AggregateRoot,
|
|
3903
|
+
Ks as ApiGraphqlTypes,
|
|
3904
|
+
As as BaseMobxStore,
|
|
3905
|
+
Vi as BroadcastChannelEventBus,
|
|
3906
|
+
fe as DomainError,
|
|
3907
|
+
$s as EventBusWildcards,
|
|
3908
|
+
js as EventNames,
|
|
3909
|
+
Fn as GlobalPageSectionTypes,
|
|
3910
|
+
On as InvalidNizzaGlobalObjectError,
|
|
3911
|
+
ta as LanguageTypes,
|
|
3912
|
+
kn as Logger,
|
|
3913
|
+
xe as NizzaAccount,
|
|
3914
|
+
ea as NizzaEventStatus,
|
|
3915
|
+
ia as NizzaProductRequestOriginTypes,
|
|
3916
|
+
na as NizzaVariationTypes,
|
|
3917
|
+
En as ResourceNotFoundError,
|
|
3918
|
+
Bs as StoreProvider,
|
|
3919
|
+
xn as UnexpectedError,
|
|
3920
|
+
Ps as ValueObject,
|
|
3921
|
+
Ce as accountAtom,
|
|
3922
|
+
Ft as accountService,
|
|
3923
|
+
Os as apiCall,
|
|
3924
|
+
aa as buildLanguageTranslations,
|
|
3925
|
+
sa as buildTranslations,
|
|
3926
|
+
Mi as configure,
|
|
3927
|
+
Sn as createAggregateRoot,
|
|
3928
|
+
Ws as createStore,
|
|
3929
|
+
gt as customFetch,
|
|
3930
|
+
Rs as downloadFile,
|
|
3931
|
+
Ds as fileOrigin,
|
|
3932
|
+
Yi as getAccount,
|
|
3933
|
+
Ts as getClientTimeZone,
|
|
3934
|
+
_i as getInstance,
|
|
3935
|
+
Gs as getStore,
|
|
3936
|
+
Xi as globalAtomStore,
|
|
3937
|
+
wa as i18Init,
|
|
3938
|
+
fn as jsDownload,
|
|
3939
|
+
j as nizza,
|
|
3940
|
+
_s as nizzaInit,
|
|
3941
|
+
zs as registerTranslations,
|
|
3942
|
+
ra as registerTranslationsOf,
|
|
3943
|
+
Is as searchParams,
|
|
3944
|
+
$i as setProductDataSource,
|
|
3945
|
+
hn as shortId,
|
|
3946
|
+
Ms as useAccount,
|
|
3947
|
+
Dt as useNizza,
|
|
3948
|
+
Qs as useStore,
|
|
3949
|
+
Us as validateRequiredProps
|
|
3947
3950
|
};
|
|
3948
3951
|
//# sourceMappingURL=index.mjs.map
|