@nizza/core 0.5.0-beta.1 → 0.5.0-beta.2
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 +12 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +1330 -1563
- package/dist/index.mjs.map +1 -1
- package/dist/lib/nizza-store/NizzaStore.d.ts +4 -1
- package/dist/lib/nizza-store/NizzaStore.v2.d.ts +4 -0
- package/dist/lib/types/nizza/globalStore.d.ts +1 -7
- 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
|
|
1
|
+
var zt = Object.defineProperty;
|
|
2
|
+
var Bt = (n, e, t) => e in n ? zt(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
|
|
3
|
+
var R = (n, e, t) => (Bt(n, typeof e != "symbol" ? e + "" : e, t), t);
|
|
4
4
|
import * as M from "react";
|
|
5
|
-
import
|
|
6
|
-
import { jsx as
|
|
5
|
+
import fe, { createContext as pt, useReducer as Qt, useEffect as ht, useDebugValue as Gt, useCallback as Kt, useContext as Ce, useMemo as Wt } from "react";
|
|
6
|
+
import { jsx as Jt } from "react/jsx-runtime";
|
|
7
7
|
var _ = { NZ_AWS_REGION: "us-east-1", NZ_VTEX_PROJECT: "/Users/jbermudez/TODO/PROJECTS/live-shopping", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
|
|
8
|
-
let
|
|
9
|
-
function
|
|
10
|
-
const t = `atom${++
|
|
8
|
+
let qt = 0;
|
|
9
|
+
function Ht(n, e) {
|
|
10
|
+
const t = `atom${++qt}`, i = {
|
|
11
11
|
toString: () => t
|
|
12
12
|
};
|
|
13
13
|
return typeof n == "function" ? i.read = n : (i.init = n, i.read = function(a) {
|
|
@@ -19,311 +19,311 @@ function dn(n, e) {
|
|
|
19
19
|
);
|
|
20
20
|
}), e && (i.write = e), i;
|
|
21
21
|
}
|
|
22
|
-
const
|
|
23
|
-
|
|
24
|
-
}).finally(() =>
|
|
25
|
-
},
|
|
26
|
-
const t =
|
|
27
|
-
t && (
|
|
28
|
-
},
|
|
22
|
+
const ke = (n) => "init" in n, ve = (n) => !!n.write, re = /* @__PURE__ */ new WeakMap(), Zt = (n, e) => {
|
|
23
|
+
re.set(n, e), n.catch(() => {
|
|
24
|
+
}).finally(() => re.delete(n));
|
|
25
|
+
}, 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
|
+
}, Ve = (n, e) => {
|
|
31
31
|
n.status = "rejected", n.reason = e;
|
|
32
|
-
},
|
|
32
|
+
}, Xt = (n) => typeof (n == null ? void 0 : n.then) == "function", W = (n, e) => !!n && "v" in n && "v" in e && Object.is(n.v, e.v), _e = (n, e) => !!n && "e" in n && "e" in e && Object.is(n.e, e.e), z = (n) => !!n && "v" in n && n.v instanceof Promise, Yt = (n, e) => "v" in n && "v" in e && n.v.orig && n.v.orig === e.v.orig, ne = (n) => {
|
|
33
33
|
if ("e" in n)
|
|
34
34
|
throw n.e;
|
|
35
35
|
return n.v;
|
|
36
|
-
},
|
|
36
|
+
}, gt = () => {
|
|
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());
|
|
40
|
-
const s = (
|
|
41
|
-
(_ ? "production" : void 0) !== "production" && Object.freeze(
|
|
42
|
-
const
|
|
43
|
-
if (n.set(
|
|
44
|
-
const
|
|
45
|
-
|
|
46
|
-
}
|
|
47
|
-
}, o = (
|
|
48
|
-
const
|
|
49
|
-
let
|
|
50
|
-
|
|
51
|
-
!C &&
|
|
52
|
-
}), (
|
|
53
|
-
},
|
|
54
|
-
const
|
|
55
|
-
d: (
|
|
56
|
-
v:
|
|
40
|
+
const s = (m) => n.get(m), r = (m, p) => {
|
|
41
|
+
(_ ? "production" : void 0) !== "production" && Object.freeze(p);
|
|
42
|
+
const h = n.get(m);
|
|
43
|
+
if (n.set(m, p), t.has(m) || t.set(m, h), z(h)) {
|
|
44
|
+
const g = "v" in p ? p.v instanceof Promise ? p.v : Promise.resolve(p.v) : Promise.reject(p.e);
|
|
45
|
+
h.v !== g && Ae(h.v, g);
|
|
46
|
+
}
|
|
47
|
+
}, o = (m, p, h) => {
|
|
48
|
+
const g = /* @__PURE__ */ new Map();
|
|
49
|
+
let b = !1;
|
|
50
|
+
h.forEach((C, v) => {
|
|
51
|
+
!C && v === m && (C = p), C ? (g.set(v, C), p.d.get(v) !== C && (b = !0)) : (_ ? "production" : void 0) !== "production" && console.warn("[Bug] atom state not found");
|
|
52
|
+
}), (b || p.d.size !== g.size) && (p.d = g);
|
|
53
|
+
}, l = (m, p, h) => {
|
|
54
|
+
const g = s(m), b = {
|
|
55
|
+
d: (g == null ? void 0 : g.d) || /* @__PURE__ */ new Map(),
|
|
56
|
+
v: p
|
|
57
57
|
};
|
|
58
|
-
if (
|
|
59
|
-
return
|
|
60
|
-
if (
|
|
61
|
-
if (
|
|
62
|
-
return
|
|
63
|
-
|
|
64
|
-
}
|
|
65
|
-
return r(
|
|
66
|
-
},
|
|
67
|
-
if (
|
|
68
|
-
let
|
|
58
|
+
if (h && o(m, b, h), W(g, b) && g.d === b.d)
|
|
59
|
+
return g;
|
|
60
|
+
if (z(g) && z(b) && Yt(g, b)) {
|
|
61
|
+
if (g.d === b.d)
|
|
62
|
+
return g;
|
|
63
|
+
b.v = g.v;
|
|
64
|
+
}
|
|
65
|
+
return r(m, b), b;
|
|
66
|
+
}, u = (m, p, h, g) => {
|
|
67
|
+
if (Xt(p)) {
|
|
68
|
+
let b;
|
|
69
69
|
const C = () => {
|
|
70
|
-
const
|
|
71
|
-
if (!
|
|
70
|
+
const E = s(m);
|
|
71
|
+
if (!z(E) || E.v !== v)
|
|
72
72
|
return;
|
|
73
|
-
const
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
73
|
+
const P = l(
|
|
74
|
+
m,
|
|
75
|
+
v,
|
|
76
|
+
h
|
|
77
77
|
);
|
|
78
|
-
e.has(
|
|
79
|
-
},
|
|
80
|
-
let
|
|
81
|
-
|
|
82
|
-
(
|
|
83
|
-
|
|
78
|
+
e.has(m) && E.d !== P.d && I(m, P, E.d);
|
|
79
|
+
}, v = new Promise((E, P) => {
|
|
80
|
+
let x = !1;
|
|
81
|
+
p.then(
|
|
82
|
+
(T) => {
|
|
83
|
+
x || (x = !0, Pe(v, T), E(T), C());
|
|
84
84
|
},
|
|
85
|
-
(
|
|
86
|
-
|
|
85
|
+
(T) => {
|
|
86
|
+
x || (x = !0, Ve(v, T), P(T), C());
|
|
87
87
|
}
|
|
88
|
-
),
|
|
89
|
-
|
|
90
|
-
(V) =>
|
|
91
|
-
(V) =>
|
|
92
|
-
),
|
|
88
|
+
), b = (T) => {
|
|
89
|
+
x || (x = !0, T.then(
|
|
90
|
+
(V) => Pe(v, V),
|
|
91
|
+
(V) => Ve(v, V)
|
|
92
|
+
), E(T));
|
|
93
93
|
};
|
|
94
94
|
});
|
|
95
|
-
return
|
|
96
|
-
|
|
97
|
-
}),
|
|
98
|
-
}
|
|
99
|
-
return
|
|
100
|
-
},
|
|
101
|
-
const
|
|
102
|
-
d: (
|
|
103
|
-
e:
|
|
95
|
+
return v.orig = p, v.status = "pending", Zt(v, (E) => {
|
|
96
|
+
E && b(E), g == null || g();
|
|
97
|
+
}), l(m, v, h);
|
|
98
|
+
}
|
|
99
|
+
return l(m, p, h);
|
|
100
|
+
}, d = (m, p, h) => {
|
|
101
|
+
const g = s(m), b = {
|
|
102
|
+
d: (g == null ? void 0 : g.d) || /* @__PURE__ */ new Map(),
|
|
103
|
+
e: p
|
|
104
104
|
};
|
|
105
|
-
return
|
|
106
|
-
},
|
|
107
|
-
const
|
|
108
|
-
if (!
|
|
109
|
-
if (
|
|
105
|
+
return h && o(m, b, h), _e(g, b) && g.d === b.d ? g : (r(m, b), b);
|
|
106
|
+
}, f = (m, p) => {
|
|
107
|
+
const h = s(m);
|
|
108
|
+
if (!p && h && (e.has(m) || Array.from(h.d).every(([x, T]) => {
|
|
109
|
+
if (x === m)
|
|
110
110
|
return !0;
|
|
111
|
-
const V =
|
|
112
|
-
return V ===
|
|
111
|
+
const V = f(x);
|
|
112
|
+
return V === T || W(V, T);
|
|
113
113
|
})))
|
|
114
|
-
return
|
|
115
|
-
const
|
|
116
|
-
let
|
|
117
|
-
const C = (
|
|
118
|
-
if (
|
|
119
|
-
const V = s(
|
|
114
|
+
return h;
|
|
115
|
+
const g = /* @__PURE__ */ new Map();
|
|
116
|
+
let b = !0;
|
|
117
|
+
const C = (x) => {
|
|
118
|
+
if (x === m) {
|
|
119
|
+
const V = s(x);
|
|
120
120
|
if (V)
|
|
121
|
-
return
|
|
122
|
-
if (
|
|
123
|
-
return
|
|
121
|
+
return g.set(x, V), ne(V);
|
|
122
|
+
if (ke(x))
|
|
123
|
+
return g.set(x, void 0), x.init;
|
|
124
124
|
throw new Error("no atom init");
|
|
125
125
|
}
|
|
126
|
-
const
|
|
127
|
-
return
|
|
126
|
+
const T = f(x);
|
|
127
|
+
return g.set(x, T), ne(T);
|
|
128
128
|
};
|
|
129
|
-
let
|
|
130
|
-
const
|
|
129
|
+
let v, E;
|
|
130
|
+
const P = {
|
|
131
131
|
get signal() {
|
|
132
|
-
return
|
|
132
|
+
return v || (v = new AbortController()), v.signal;
|
|
133
133
|
},
|
|
134
134
|
get setSelf() {
|
|
135
|
-
return (_ ? "production" : void 0) !== "production" && !
|
|
136
|
-
if ((_ ? "production" : void 0) !== "production" &&
|
|
137
|
-
return
|
|
138
|
-
}),
|
|
135
|
+
return (_ ? "production" : void 0) !== "production" && !ve(m) && console.warn("setSelf function cannot be used with read-only atom"), !E && ve(m) && (E = (...x) => {
|
|
136
|
+
if ((_ ? "production" : void 0) !== "production" && b && console.warn("setSelf function cannot be called in sync"), !b)
|
|
137
|
+
return F(m, ...x);
|
|
138
|
+
}), E;
|
|
139
139
|
}
|
|
140
140
|
};
|
|
141
141
|
try {
|
|
142
|
-
const
|
|
143
|
-
return
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
() =>
|
|
142
|
+
const x = m.read(C, P);
|
|
143
|
+
return u(
|
|
144
|
+
m,
|
|
145
|
+
x,
|
|
146
|
+
g,
|
|
147
|
+
() => v == null ? void 0 : v.abort()
|
|
148
148
|
);
|
|
149
|
-
} catch (
|
|
150
|
-
return
|
|
149
|
+
} catch (x) {
|
|
150
|
+
return d(m, x, g);
|
|
151
151
|
} finally {
|
|
152
|
-
|
|
153
|
-
}
|
|
154
|
-
}, c = (
|
|
155
|
-
let
|
|
156
|
-
return
|
|
157
|
-
},
|
|
158
|
-
const
|
|
159
|
-
|
|
160
|
-
},
|
|
161
|
-
const
|
|
162
|
-
var
|
|
163
|
-
const
|
|
164
|
-
return t.forEach((
|
|
152
|
+
b = !1;
|
|
153
|
+
}
|
|
154
|
+
}, c = (m) => ne(f(m)), S = (m) => {
|
|
155
|
+
let p = e.get(m);
|
|
156
|
+
return p || (p = D(m)), p;
|
|
157
|
+
}, y = (m, p) => !p.l.size && (!p.t.size || p.t.size === 1 && p.t.has(m)), k = (m) => {
|
|
158
|
+
const p = e.get(m);
|
|
159
|
+
p && y(m, p) && w(m);
|
|
160
|
+
}, N = (m) => {
|
|
161
|
+
const p = /* @__PURE__ */ new Map(), h = /* @__PURE__ */ new WeakMap(), g = (v) => {
|
|
162
|
+
var E;
|
|
163
|
+
const P = new Set((E = e.get(v)) == null ? void 0 : E.t);
|
|
164
|
+
return t.forEach((x, T) => {
|
|
165
165
|
var V;
|
|
166
|
-
(V = s(
|
|
167
|
-
}),
|
|
168
|
-
},
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
(
|
|
173
|
-
),
|
|
166
|
+
(V = s(T)) != null && V.d.has(v) && P.add(T);
|
|
167
|
+
}), P;
|
|
168
|
+
}, b = (v) => {
|
|
169
|
+
g(v).forEach((E) => {
|
|
170
|
+
E !== v && (p.set(
|
|
171
|
+
E,
|
|
172
|
+
(p.get(E) || /* @__PURE__ */ new Set()).add(v)
|
|
173
|
+
), h.set(E, (h.get(E) || 0) + 1), b(E));
|
|
174
174
|
});
|
|
175
175
|
};
|
|
176
|
-
|
|
177
|
-
const C = (
|
|
178
|
-
|
|
179
|
-
var
|
|
180
|
-
if (
|
|
181
|
-
let
|
|
182
|
-
if (
|
|
183
|
-
let
|
|
184
|
-
if (
|
|
185
|
-
const V = s(
|
|
186
|
-
|
|
176
|
+
b(m);
|
|
177
|
+
const C = (v) => {
|
|
178
|
+
g(v).forEach((E) => {
|
|
179
|
+
var P;
|
|
180
|
+
if (E !== v) {
|
|
181
|
+
let x = h.get(E);
|
|
182
|
+
if (x && h.set(E, --x), !x) {
|
|
183
|
+
let T = !!((P = p.get(E)) != null && P.size);
|
|
184
|
+
if (T) {
|
|
185
|
+
const V = s(E), te = f(E, !0);
|
|
186
|
+
T = !W(V, te);
|
|
187
187
|
}
|
|
188
|
-
|
|
188
|
+
T || p.forEach((V) => V.delete(E));
|
|
189
189
|
}
|
|
190
|
-
C(
|
|
190
|
+
C(E);
|
|
191
191
|
}
|
|
192
192
|
});
|
|
193
193
|
};
|
|
194
|
-
C(
|
|
195
|
-
},
|
|
196
|
-
let
|
|
197
|
-
const
|
|
198
|
-
let
|
|
199
|
-
if (
|
|
200
|
-
if (!
|
|
194
|
+
C(m);
|
|
195
|
+
}, O = (m, ...p) => {
|
|
196
|
+
let h = !0;
|
|
197
|
+
const g = (v) => ne(f(v)), b = (v, ...E) => {
|
|
198
|
+
let P;
|
|
199
|
+
if (v === m) {
|
|
200
|
+
if (!ke(v))
|
|
201
201
|
throw new Error("atom not writable");
|
|
202
|
-
const
|
|
203
|
-
|
|
202
|
+
const x = s(v), T = u(v, E[0]);
|
|
203
|
+
W(x, T) || N(v);
|
|
204
204
|
} else
|
|
205
|
-
|
|
206
|
-
if (!
|
|
207
|
-
const
|
|
205
|
+
P = O(v, ...E);
|
|
206
|
+
if (!h) {
|
|
207
|
+
const x = L();
|
|
208
208
|
(_ ? "production" : void 0) !== "production" && i.forEach(
|
|
209
|
-
(
|
|
209
|
+
(T) => T({ type: "async-write", flushed: x })
|
|
210
210
|
);
|
|
211
211
|
}
|
|
212
|
-
return
|
|
213
|
-
}, C =
|
|
214
|
-
return
|
|
215
|
-
},
|
|
216
|
-
const
|
|
212
|
+
return P;
|
|
213
|
+
}, C = m.write(g, b, ...p);
|
|
214
|
+
return h = !1, C;
|
|
215
|
+
}, F = (m, ...p) => {
|
|
216
|
+
const h = O(m, ...p), g = L();
|
|
217
217
|
return (_ ? "production" : void 0) !== "production" && i.forEach(
|
|
218
|
-
(
|
|
219
|
-
),
|
|
220
|
-
},
|
|
221
|
-
var
|
|
222
|
-
const
|
|
223
|
-
(
|
|
224
|
-
const
|
|
225
|
-
|
|
226
|
-
}),
|
|
218
|
+
(b) => b({ type: "write", flushed: g })
|
|
219
|
+
), h;
|
|
220
|
+
}, D = (m, p, h) => {
|
|
221
|
+
var g;
|
|
222
|
+
const b = h || [];
|
|
223
|
+
(g = s(m)) == null || g.d.forEach((v, E) => {
|
|
224
|
+
const P = e.get(E);
|
|
225
|
+
P ? P.t.add(m) : E !== m && D(E, m, b);
|
|
226
|
+
}), f(m);
|
|
227
227
|
const C = {
|
|
228
|
-
t: new Set(
|
|
228
|
+
t: new Set(p && [p]),
|
|
229
229
|
l: /* @__PURE__ */ new Set()
|
|
230
230
|
};
|
|
231
|
-
if (e.set(
|
|
232
|
-
const { onMount:
|
|
233
|
-
|
|
234
|
-
const
|
|
235
|
-
|
|
231
|
+
if (e.set(m, C), (_ ? "production" : void 0) !== "production" && a.add(m), ve(m) && m.onMount) {
|
|
232
|
+
const { onMount: v } = m;
|
|
233
|
+
b.push(() => {
|
|
234
|
+
const E = v((...P) => F(m, ...P));
|
|
235
|
+
E && (C.u = E);
|
|
236
236
|
});
|
|
237
237
|
}
|
|
238
|
-
return
|
|
239
|
-
},
|
|
240
|
-
var
|
|
241
|
-
const
|
|
242
|
-
|
|
243
|
-
const
|
|
244
|
-
|
|
245
|
-
if (C !==
|
|
246
|
-
const
|
|
247
|
-
|
|
238
|
+
return h || b.forEach((v) => v()), C;
|
|
239
|
+
}, w = (m) => {
|
|
240
|
+
var p;
|
|
241
|
+
const h = (p = e.get(m)) == null ? void 0 : p.u;
|
|
242
|
+
h && h(), e.delete(m), (_ ? "production" : void 0) !== "production" && a.delete(m);
|
|
243
|
+
const g = s(m);
|
|
244
|
+
g ? (z(g) && Ae(g.v), g.d.forEach((b, C) => {
|
|
245
|
+
if (C !== m) {
|
|
246
|
+
const v = e.get(C);
|
|
247
|
+
v && (v.t.delete(m), y(C, v) && w(C));
|
|
248
248
|
}
|
|
249
|
-
})) : (_ ? "production" : void 0) !== "production" && console.warn("[Bug] could not find atom state to unmount",
|
|
250
|
-
}, I = (
|
|
251
|
-
const
|
|
252
|
-
|
|
253
|
-
if (
|
|
254
|
-
|
|
249
|
+
})) : (_ ? "production" : void 0) !== "production" && console.warn("[Bug] could not find atom state to unmount", m);
|
|
250
|
+
}, I = (m, p, h) => {
|
|
251
|
+
const g = new Set(p.d.keys());
|
|
252
|
+
h == null || h.forEach((b, C) => {
|
|
253
|
+
if (g.has(C)) {
|
|
254
|
+
g.delete(C);
|
|
255
255
|
return;
|
|
256
256
|
}
|
|
257
|
-
const
|
|
258
|
-
|
|
259
|
-
}),
|
|
260
|
-
const C = e.get(
|
|
261
|
-
C ? C.t.add(
|
|
257
|
+
const v = e.get(C);
|
|
258
|
+
v && (v.t.delete(m), y(C, v) && w(C));
|
|
259
|
+
}), g.forEach((b) => {
|
|
260
|
+
const C = e.get(b);
|
|
261
|
+
C ? C.t.add(m) : e.has(m) && D(b, m);
|
|
262
262
|
});
|
|
263
|
-
},
|
|
264
|
-
let
|
|
265
|
-
for ((_ ? "production" : void 0) !== "production" && (
|
|
266
|
-
const
|
|
267
|
-
t.clear(),
|
|
268
|
-
const
|
|
269
|
-
if (
|
|
270
|
-
const C = e.get(
|
|
271
|
-
C &&
|
|
263
|
+
}, L = () => {
|
|
264
|
+
let m;
|
|
265
|
+
for ((_ ? "production" : void 0) !== "production" && (m = /* @__PURE__ */ new Set()); t.size; ) {
|
|
266
|
+
const p = Array.from(t);
|
|
267
|
+
t.clear(), p.forEach(([h, g]) => {
|
|
268
|
+
const b = s(h);
|
|
269
|
+
if (b) {
|
|
270
|
+
const C = e.get(h);
|
|
271
|
+
C && b.d !== (g == null ? void 0 : g.d) && I(h, b, g == null ? void 0 : g.d), C && !// TODO This seems pretty hacky. Hope to fix it.
|
|
272
272
|
// Maybe we could `mountDependencies` in `setAtomState`?
|
|
273
|
-
(!
|
|
273
|
+
(!z(g) && (W(g, b) || _e(g, b))) && (C.l.forEach((v) => v()), (_ ? "production" : void 0) !== "production" && m.add(h));
|
|
274
274
|
} else
|
|
275
275
|
(_ ? "production" : void 0) !== "production" && console.warn("[Bug] no atom state to flush");
|
|
276
276
|
});
|
|
277
277
|
}
|
|
278
278
|
if ((_ ? "production" : void 0) !== "production")
|
|
279
|
-
return
|
|
280
|
-
}, A = (
|
|
281
|
-
const
|
|
282
|
-
return
|
|
283
|
-
(C) => C({ type: "sub", flushed:
|
|
279
|
+
return m;
|
|
280
|
+
}, A = (m, p) => {
|
|
281
|
+
const h = S(m), g = L(), b = h.l;
|
|
282
|
+
return b.add(p), (_ ? "production" : void 0) !== "production" && i.forEach(
|
|
283
|
+
(C) => C({ type: "sub", flushed: g })
|
|
284
284
|
), () => {
|
|
285
|
-
|
|
285
|
+
b.delete(p), k(m), (_ ? "production" : void 0) !== "production" && i.forEach((C) => C({ type: "unsub" }));
|
|
286
286
|
};
|
|
287
287
|
};
|
|
288
288
|
return (_ ? "production" : void 0) !== "production" ? {
|
|
289
289
|
get: c,
|
|
290
|
-
set:
|
|
290
|
+
set: F,
|
|
291
291
|
sub: A,
|
|
292
292
|
// store dev methods (these are tentative and subject to change without notice)
|
|
293
|
-
dev_subscribe_store: (
|
|
294
|
-
if (
|
|
293
|
+
dev_subscribe_store: (m, p) => {
|
|
294
|
+
if (p !== 2)
|
|
295
295
|
throw new Error("The current StoreListener revision is 2.");
|
|
296
|
-
return i.add(
|
|
297
|
-
i.delete(
|
|
296
|
+
return i.add(m), () => {
|
|
297
|
+
i.delete(m);
|
|
298
298
|
};
|
|
299
299
|
},
|
|
300
300
|
dev_get_mounted_atoms: () => a.values(),
|
|
301
|
-
dev_get_atom_state: (
|
|
302
|
-
dev_get_mounted: (
|
|
303
|
-
dev_restore_atoms: (
|
|
304
|
-
for (const [
|
|
305
|
-
|
|
306
|
-
const
|
|
301
|
+
dev_get_atom_state: (m) => n.get(m),
|
|
302
|
+
dev_get_mounted: (m) => e.get(m),
|
|
303
|
+
dev_restore_atoms: (m) => {
|
|
304
|
+
for (const [h, g] of m)
|
|
305
|
+
ke(h) && (u(h, g), N(h));
|
|
306
|
+
const p = L();
|
|
307
307
|
i.forEach(
|
|
308
|
-
(
|
|
308
|
+
(h) => h({ type: "restore", flushed: p })
|
|
309
309
|
);
|
|
310
310
|
}
|
|
311
311
|
} : {
|
|
312
312
|
get: c,
|
|
313
|
-
set:
|
|
313
|
+
set: F,
|
|
314
314
|
sub: A
|
|
315
315
|
};
|
|
316
316
|
};
|
|
317
|
-
let
|
|
317
|
+
let Se;
|
|
318
318
|
(_ ? "production" : void 0) !== "production" && (typeof globalThis.__NUMBER_OF_JOTAI_INSTANCES__ == "number" ? ++globalThis.__NUMBER_OF_JOTAI_INSTANCES__ : globalThis.__NUMBER_OF_JOTAI_INSTANCES__ = 1);
|
|
319
|
-
const
|
|
319
|
+
const en = () => (Se || ((_ ? "production" : void 0) !== "production" && globalThis.__NUMBER_OF_JOTAI_INSTANCES__ !== 1 && console.warn(
|
|
320
320
|
"Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"
|
|
321
|
-
),
|
|
322
|
-
var
|
|
323
|
-
const
|
|
324
|
-
const e =
|
|
325
|
-
return (n == null ? void 0 : n.store) || e ||
|
|
326
|
-
},
|
|
321
|
+
), Se = gt()), Se);
|
|
322
|
+
var tn = { NZ_AWS_REGION: "us-east-1", NZ_VTEX_PROJECT: "/Users/jbermudez/TODO/PROJECTS/live-shopping", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
|
|
323
|
+
const nn = pt(void 0), kt = (n) => {
|
|
324
|
+
const e = Ce(nn);
|
|
325
|
+
return (n == null ? void 0 : n.store) || e || en();
|
|
326
|
+
}, an = (n) => typeof (n == null ? void 0 : n.then) == "function", sn = fe.use || ((n) => {
|
|
327
327
|
if (n.status === "pending")
|
|
328
328
|
throw n;
|
|
329
329
|
if (n.status === "fulfilled")
|
|
@@ -337,58 +337,58 @@ const hn = Ot(void 0), Lt = (n) => {
|
|
|
337
337
|
}
|
|
338
338
|
), n);
|
|
339
339
|
});
|
|
340
|
-
function
|
|
341
|
-
const t =
|
|
342
|
-
(
|
|
343
|
-
const
|
|
344
|
-
return Object.is(
|
|
340
|
+
function rn(n, e) {
|
|
341
|
+
const t = kt(e), [[i, a, s], r] = Qt(
|
|
342
|
+
(u) => {
|
|
343
|
+
const d = t.get(n);
|
|
344
|
+
return Object.is(u[0], d) && u[1] === t && u[2] === n ? u : [d, t, n];
|
|
345
345
|
},
|
|
346
346
|
void 0,
|
|
347
347
|
() => [t.get(n), t, n]
|
|
348
348
|
);
|
|
349
349
|
let o = i;
|
|
350
350
|
(a !== t || s !== n) && (r(), o = t.get(n));
|
|
351
|
-
const
|
|
352
|
-
return
|
|
353
|
-
const
|
|
354
|
-
if (typeof
|
|
355
|
-
setTimeout(r,
|
|
351
|
+
const l = e == null ? void 0 : e.delay;
|
|
352
|
+
return ht(() => {
|
|
353
|
+
const u = t.sub(n, () => {
|
|
354
|
+
if (typeof l == "number") {
|
|
355
|
+
setTimeout(r, l);
|
|
356
356
|
return;
|
|
357
357
|
}
|
|
358
358
|
r();
|
|
359
359
|
});
|
|
360
|
-
return r(),
|
|
361
|
-
}, [t, n,
|
|
360
|
+
return r(), u;
|
|
361
|
+
}, [t, n, l]), Gt(o), an(o) ? sn(o) : o;
|
|
362
362
|
}
|
|
363
|
-
function
|
|
364
|
-
const t =
|
|
365
|
-
return
|
|
363
|
+
function on(n, e) {
|
|
364
|
+
const t = kt(e);
|
|
365
|
+
return Kt(
|
|
366
366
|
(...a) => {
|
|
367
|
-
if ((
|
|
367
|
+
if ((tn ? "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 ln(n, e) {
|
|
375
375
|
return [
|
|
376
|
-
|
|
376
|
+
rn(n, e),
|
|
377
377
|
// We do wrong type assertion here, which results in throwing an error.
|
|
378
|
-
|
|
378
|
+
on(n, e)
|
|
379
379
|
];
|
|
380
380
|
}
|
|
381
|
-
const
|
|
382
|
-
|
|
383
|
-
var
|
|
381
|
+
const Ee = Ht(null);
|
|
382
|
+
Ee.debugLabel = "accountAtom";
|
|
383
|
+
var dn = { 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: un,
|
|
386
|
+
NZ_BACKOFFICE_BACK_URL: cn,
|
|
387
|
+
NZ_CORE_SERVICES_GRAPHQL_URL: mn,
|
|
388
|
+
NZ_CORE_SERVICES_REST_URL: fn
|
|
389
|
+
} = dn, pn = {
|
|
390
390
|
AWS: {
|
|
391
|
-
region:
|
|
391
|
+
region: un,
|
|
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: cn || "https://pabprg32bj.execute-api.us-east-1.amazonaws.com",
|
|
400
|
+
restV2: fn || "https://core-services-dev.nizza.com/api",
|
|
401
|
+
graphql: mn || "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 vt(n) {
|
|
416
416
|
const {
|
|
417
417
|
url: e,
|
|
418
418
|
method: t = "GET",
|
|
@@ -421,40 +421,40 @@ async function It(n) {
|
|
|
421
421
|
contentTypeJson: s = !0,
|
|
422
422
|
timeout: r,
|
|
423
423
|
...o
|
|
424
|
-
} = n,
|
|
424
|
+
} = n, l = s && !n.headers ? new Headers({
|
|
425
425
|
"content-type": "application/json"
|
|
426
426
|
}) : n.headers;
|
|
427
427
|
try {
|
|
428
|
-
const
|
|
429
|
-
let
|
|
428
|
+
const u = new AbortController(), { signal: d } = u;
|
|
429
|
+
let f;
|
|
430
430
|
const c = fetch(e, {
|
|
431
431
|
method: t,
|
|
432
|
-
headers:
|
|
432
|
+
headers: l,
|
|
433
433
|
body: i,
|
|
434
|
-
signal:
|
|
434
|
+
signal: d,
|
|
435
435
|
...o
|
|
436
436
|
});
|
|
437
|
-
r && (
|
|
438
|
-
|
|
437
|
+
r && (f = setTimeout(() => {
|
|
438
|
+
u.abort();
|
|
439
439
|
}, r));
|
|
440
|
-
const
|
|
440
|
+
const S = await c;
|
|
441
441
|
if (a)
|
|
442
|
-
return
|
|
443
|
-
const
|
|
444
|
-
if (clearTimeout(
|
|
445
|
-
const k =
|
|
442
|
+
return S;
|
|
443
|
+
const y = await S.json();
|
|
444
|
+
if (clearTimeout(f), !S.ok) {
|
|
445
|
+
const k = y ? JSON.stringify(y) : S.statusText;
|
|
446
446
|
throw new Error(k);
|
|
447
447
|
}
|
|
448
|
-
return
|
|
449
|
-
} catch (
|
|
450
|
-
throw console.error("[CustomFetch] ",
|
|
448
|
+
return y;
|
|
449
|
+
} catch (u) {
|
|
450
|
+
throw console.error("[CustomFetch] ", u), u;
|
|
451
451
|
}
|
|
452
452
|
}
|
|
453
|
-
const
|
|
454
|
-
function
|
|
455
|
-
fetch(e).then((i) => i.blob()).then((i) =>
|
|
453
|
+
const Ts = (n) => vt({ ...n, contentTypeJson: !1, raw: !1 });
|
|
454
|
+
function Ds(n, e, t) {
|
|
455
|
+
fetch(e).then((i) => i.blob()).then((i) => hn(i, `${n}.${t}`));
|
|
456
456
|
}
|
|
457
|
-
const
|
|
457
|
+
const hn = (n, e, t) => {
|
|
458
458
|
const i = [n], a = new Blob(i, {
|
|
459
459
|
type: t != null ? t : "application/octet-stream"
|
|
460
460
|
});
|
|
@@ -464,283 +464,28 @@ const On = (n, e, t) => {
|
|
|
464
464
|
return r.style.display = "none", r.href = s, r.setAttribute("download", e), typeof r.download == "undefined" && r.setAttribute("target", "_blank"), document.body.appendChild(r), r.click(), setTimeout(() => {
|
|
465
465
|
document.body.removeChild(r), window.URL.revokeObjectURL(s);
|
|
466
466
|
}, 200);
|
|
467
|
-
}, Rn = Symbol(), _e = Symbol(), q = "a", ne = "w";
|
|
468
|
-
let xn = (n, e) => new Proxy(n, e);
|
|
469
|
-
const xe = Object.getPrototypeOf, Te = /* @__PURE__ */ new WeakMap(), At = (n) => n && (Te.has(n) ? Te.get(n) : xe(n) === Object.prototype || xe(n) === Array.prototype), ce = (n) => typeof n == "object" && n !== null, Tn = (n) => {
|
|
470
|
-
if (Array.isArray(n))
|
|
471
|
-
return Array.from(n);
|
|
472
|
-
const e = Object.getOwnPropertyDescriptors(n);
|
|
473
|
-
return Object.values(e).forEach((t) => {
|
|
474
|
-
t.configurable = !0;
|
|
475
|
-
}), Object.create(xe(n), e);
|
|
476
|
-
}, Ue = (n) => n[_e] || n, Pt = (n, e, t, i) => {
|
|
477
|
-
if (!At(n))
|
|
478
|
-
return n;
|
|
479
|
-
let a = i && i.get(n);
|
|
480
|
-
if (!a) {
|
|
481
|
-
const d = Ue(n);
|
|
482
|
-
a = ((l) => Object.values(Object.getOwnPropertyDescriptors(l)).some((u) => !u.configurable && !u.writable))(d) ? [d, Tn(d)] : [d], i == null || i.set(n, a);
|
|
483
|
-
}
|
|
484
|
-
const [s, r] = a;
|
|
485
|
-
let o = t && t.get(s);
|
|
486
|
-
return o && o[1].f === !!r || (o = ((d, l) => {
|
|
487
|
-
const u = { f: l };
|
|
488
|
-
let p = !1;
|
|
489
|
-
const c = (S, k) => {
|
|
490
|
-
if (!p) {
|
|
491
|
-
let y = u[q].get(d);
|
|
492
|
-
if (y || (y = {}, u[q].set(d, y)), S === ne)
|
|
493
|
-
y[ne] = !0;
|
|
494
|
-
else {
|
|
495
|
-
let F = y[S];
|
|
496
|
-
F || (F = /* @__PURE__ */ new Set(), y[S] = F), F.add(k);
|
|
497
|
-
}
|
|
498
|
-
}
|
|
499
|
-
}, v = { get: (S, k) => k === _e ? d : (c("k", k), Pt(Reflect.get(S, k), u[q], u.c, u.t)), has: (S, k) => k === Rn ? (p = !0, u[q].delete(d), !0) : (c("h", k), Reflect.has(S, k)), getOwnPropertyDescriptor: (S, k) => (c("o", k), Reflect.getOwnPropertyDescriptor(S, k)), ownKeys: (S) => (c(ne), Reflect.ownKeys(S)) };
|
|
500
|
-
return l && (v.set = v.deleteProperty = () => !1), [v, u];
|
|
501
|
-
})(s, !!r), o[1].p = xn(r || s, o[0]), t && t.set(s, o)), o[1][q] = e, o[1].c = t, o[1].t = i, o[1].p;
|
|
502
|
-
}, Vt = (n, e, t, i) => {
|
|
503
|
-
if (Object.is(n, e))
|
|
504
|
-
return !1;
|
|
505
|
-
if (!ce(n) || !ce(e))
|
|
506
|
-
return !0;
|
|
507
|
-
const a = t.get(Ue(n));
|
|
508
|
-
if (!a)
|
|
509
|
-
return !0;
|
|
510
|
-
if (i) {
|
|
511
|
-
const r = i.get(n);
|
|
512
|
-
if (r && r.n === e)
|
|
513
|
-
return r.g;
|
|
514
|
-
i.set(n, { n: e, g: !1 });
|
|
515
|
-
}
|
|
516
|
-
let s = null;
|
|
517
|
-
try {
|
|
518
|
-
for (const r of a.h || [])
|
|
519
|
-
if (s = Reflect.has(n, r) !== Reflect.has(e, r), s)
|
|
520
|
-
return s;
|
|
521
|
-
if (a[ne] === !0) {
|
|
522
|
-
if (s = ((r, o) => {
|
|
523
|
-
const d = Reflect.ownKeys(r), l = Reflect.ownKeys(o);
|
|
524
|
-
return d.length !== l.length || d.some((u, p) => u !== l[p]);
|
|
525
|
-
})(n, e), s)
|
|
526
|
-
return s;
|
|
527
|
-
} else
|
|
528
|
-
for (const r of a.o || [])
|
|
529
|
-
if (s = !!Reflect.getOwnPropertyDescriptor(n, r) != !!Reflect.getOwnPropertyDescriptor(e, r), s)
|
|
530
|
-
return s;
|
|
531
|
-
for (const r of a.k || [])
|
|
532
|
-
if (s = Vt(n[r], e[r], t, i), s)
|
|
533
|
-
return s;
|
|
534
|
-
return s === null && (s = !0), s;
|
|
535
|
-
} finally {
|
|
536
|
-
i && i.set(n, { n: e, g: s });
|
|
537
|
-
}
|
|
538
|
-
}, Dn = (n) => At(n) && n[_e] || null, Ze = (n, e = !0) => {
|
|
539
|
-
Te.set(n, e);
|
|
540
|
-
}, Ln = (n, e, t) => {
|
|
541
|
-
const i = [], a = /* @__PURE__ */ new WeakSet(), s = (r, o) => {
|
|
542
|
-
if (a.has(r))
|
|
543
|
-
return;
|
|
544
|
-
ce(r) && a.add(r);
|
|
545
|
-
const d = ce(r) && e.get(Ue(r));
|
|
546
|
-
if (d) {
|
|
547
|
-
var l, u;
|
|
548
|
-
if ((l = d.h) == null || l.forEach((c) => {
|
|
549
|
-
const v = `:has(${String(c)})`;
|
|
550
|
-
i.push(o ? [...o, v] : [v]);
|
|
551
|
-
}), d[ne] === !0) {
|
|
552
|
-
const c = ":ownKeys";
|
|
553
|
-
i.push(o ? [...o, c] : [c]);
|
|
554
|
-
} else {
|
|
555
|
-
var p;
|
|
556
|
-
(p = d.o) == null || p.forEach((c) => {
|
|
557
|
-
const v = `:hasOwn(${String(c)})`;
|
|
558
|
-
i.push(o ? [...o, v] : [v]);
|
|
559
|
-
});
|
|
560
|
-
}
|
|
561
|
-
(u = d.k) == null || u.forEach((c) => {
|
|
562
|
-
t && !("value" in (Object.getOwnPropertyDescriptor(r, c) || {})) || s(r[c], o ? [...o, c] : [c]);
|
|
563
|
-
});
|
|
564
|
-
} else
|
|
565
|
-
o && i.push(o);
|
|
566
|
-
};
|
|
567
|
-
return s(n), i;
|
|
568
467
|
};
|
|
569
|
-
var
|
|
570
|
-
const
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
}
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
const k = Reflect.get(l, S), { enumerable: y } = Reflect.getOwnPropertyDescriptor(
|
|
588
|
-
l,
|
|
589
|
-
S
|
|
590
|
-
), F = {
|
|
591
|
-
value: k,
|
|
592
|
-
enumerable: y,
|
|
593
|
-
// This is intentional to avoid copying with proxy-compare.
|
|
594
|
-
// It's still non-writable, so it avoids assigning a value.
|
|
595
|
-
configurable: !0
|
|
596
|
-
};
|
|
597
|
-
if (Y.has(k))
|
|
598
|
-
Ze(k, !1);
|
|
599
|
-
else if (k instanceof Promise)
|
|
600
|
-
delete F.value, F.get = () => p(k);
|
|
601
|
-
else if ($.has(k)) {
|
|
602
|
-
const [w, L] = $.get(
|
|
603
|
-
k
|
|
604
|
-
);
|
|
605
|
-
F.value = s(
|
|
606
|
-
w,
|
|
607
|
-
L(),
|
|
608
|
-
p
|
|
609
|
-
);
|
|
610
|
-
}
|
|
611
|
-
Object.defineProperty(v, S, F);
|
|
612
|
-
}), Object.preventExtensions(v);
|
|
613
|
-
}, r = /* @__PURE__ */ new WeakMap(), o = [1, 1], d = (l) => {
|
|
614
|
-
if (!Ce(l))
|
|
615
|
-
throw new Error("object required");
|
|
616
|
-
const u = r.get(l);
|
|
617
|
-
if (u)
|
|
618
|
-
return u;
|
|
619
|
-
let p = o[0];
|
|
620
|
-
const c = /* @__PURE__ */ new Set(), v = (m, g = ++o[0]) => {
|
|
621
|
-
p !== g && (p = g, c.forEach((h) => h(m, g)));
|
|
622
|
-
};
|
|
623
|
-
let S = o[1];
|
|
624
|
-
const k = (m = ++o[1]) => (S !== m && !c.size && (S = m, F.forEach(([g]) => {
|
|
625
|
-
const h = g[1](m);
|
|
626
|
-
h > p && (p = h);
|
|
627
|
-
})), p), y = (m) => (g, h) => {
|
|
628
|
-
const N = [...g];
|
|
629
|
-
N[1] = [m, ...N[1]], v(N, h);
|
|
630
|
-
}, F = /* @__PURE__ */ new Map(), w = (m, g) => {
|
|
631
|
-
if ((me ? "production" : void 0) !== "production" && F.has(m))
|
|
632
|
-
throw new Error("prop listener already exists");
|
|
633
|
-
if (c.size) {
|
|
634
|
-
const h = g[3](y(m));
|
|
635
|
-
F.set(m, [g, h]);
|
|
636
|
-
} else
|
|
637
|
-
F.set(m, [g]);
|
|
638
|
-
}, L = (m) => {
|
|
639
|
-
var g;
|
|
640
|
-
const h = F.get(m);
|
|
641
|
-
h && (F.delete(m), (g = h[1]) == null || g.call(h));
|
|
642
|
-
}, E = (m) => (c.add(m), c.size === 1 && F.forEach(([h, N], C) => {
|
|
643
|
-
if ((me ? "production" : void 0) !== "production" && N)
|
|
644
|
-
throw new Error("remove already exists");
|
|
645
|
-
const b = h[3](y(C));
|
|
646
|
-
F.set(C, [h, b]);
|
|
647
|
-
}), () => {
|
|
648
|
-
c.delete(m), c.size === 0 && F.forEach(([h, N], C) => {
|
|
649
|
-
N && (N(), F.set(C, [h]));
|
|
650
|
-
});
|
|
651
|
-
}), I = Array.isArray(l) ? [] : Object.create(Object.getPrototypeOf(l)), A = e(I, {
|
|
652
|
-
deleteProperty(m, g) {
|
|
653
|
-
const h = Reflect.get(m, g);
|
|
654
|
-
L(g);
|
|
655
|
-
const N = Reflect.deleteProperty(m, g);
|
|
656
|
-
return N && v(["delete", [g], h]), N;
|
|
657
|
-
},
|
|
658
|
-
set(m, g, h, N) {
|
|
659
|
-
const C = Reflect.has(m, g), b = Reflect.get(m, g, N);
|
|
660
|
-
if (C && (n(b, h) || r.has(h) && n(b, r.get(h))))
|
|
661
|
-
return !0;
|
|
662
|
-
L(g), Ce(h) && (h = Dn(h) || h);
|
|
663
|
-
let O = h;
|
|
664
|
-
if (h instanceof Promise)
|
|
665
|
-
h.then((T) => {
|
|
666
|
-
h.status = "fulfilled", h.value = T, v(["resolve", [g], T]);
|
|
667
|
-
}).catch((T) => {
|
|
668
|
-
h.status = "rejected", h.reason = T, v(["reject", [g], T]);
|
|
669
|
-
});
|
|
670
|
-
else {
|
|
671
|
-
!$.has(h) && t(h) && (O = d(h));
|
|
672
|
-
const T = !Y.has(O) && $.get(O);
|
|
673
|
-
T && w(g, T);
|
|
674
|
-
}
|
|
675
|
-
return Reflect.set(m, g, O, N), v(["set", [g], h, b]), !0;
|
|
676
|
-
}
|
|
677
|
-
});
|
|
678
|
-
r.set(l, A);
|
|
679
|
-
const f = [
|
|
680
|
-
I,
|
|
681
|
-
k,
|
|
682
|
-
s,
|
|
683
|
-
E
|
|
684
|
-
];
|
|
685
|
-
return $.set(A, f), Reflect.ownKeys(l).forEach((m) => {
|
|
686
|
-
const g = Object.getOwnPropertyDescriptor(
|
|
687
|
-
l,
|
|
688
|
-
m
|
|
689
|
-
);
|
|
690
|
-
"value" in g && (A[m] = l[m], delete g.value, delete g.writable), Object.defineProperty(I, m, g);
|
|
691
|
-
}), A;
|
|
692
|
-
}) => [
|
|
693
|
-
// public functions
|
|
694
|
-
d,
|
|
695
|
-
// shared state
|
|
696
|
-
$,
|
|
697
|
-
Y,
|
|
698
|
-
// internal things
|
|
699
|
-
n,
|
|
700
|
-
e,
|
|
701
|
-
t,
|
|
702
|
-
i,
|
|
703
|
-
a,
|
|
704
|
-
s,
|
|
705
|
-
r,
|
|
706
|
-
o
|
|
707
|
-
], [An] = In();
|
|
708
|
-
function Pn(n = {}) {
|
|
709
|
-
return An(n);
|
|
710
|
-
}
|
|
711
|
-
function Vn(n, e, t) {
|
|
712
|
-
const i = $.get(n);
|
|
713
|
-
(me ? "production" : void 0) !== "production" && !i && console.warn("Please use proxy object");
|
|
714
|
-
let a;
|
|
715
|
-
const s = [], r = i[3];
|
|
716
|
-
let o = !1;
|
|
717
|
-
const l = r((u) => {
|
|
718
|
-
if (s.push(u), t) {
|
|
719
|
-
e(s.splice(0));
|
|
720
|
-
return;
|
|
721
|
-
}
|
|
722
|
-
a || (a = Promise.resolve().then(() => {
|
|
723
|
-
a = void 0, o && e(s.splice(0));
|
|
724
|
-
}));
|
|
725
|
-
});
|
|
726
|
-
return o = !0, () => {
|
|
727
|
-
o = !1, l();
|
|
728
|
-
};
|
|
729
|
-
}
|
|
730
|
-
function Xe(n, e) {
|
|
731
|
-
const t = $.get(n);
|
|
732
|
-
(me ? "production" : void 0) !== "production" && !t && console.warn("Please use proxy object");
|
|
733
|
-
const [i, a, s] = t;
|
|
734
|
-
return s(i, a(), e);
|
|
735
|
-
}
|
|
736
|
-
function _t(n) {
|
|
737
|
-
return Y.add(n), n;
|
|
738
|
-
}
|
|
739
|
-
var Ut = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
|
|
740
|
-
function Me(n) {
|
|
468
|
+
var gn = { NZ_AWS_REGION: "us-east-1", NZ_VTEX_PROJECT: "/Users/jbermudez/TODO/PROJECTS/live-shopping", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
|
|
469
|
+
const Ue = (n) => {
|
|
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
|
+
(gn ? "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
|
+
}, kn = (n) => n ? Ue(n) : Ue;
|
|
484
|
+
var St = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
|
|
485
|
+
function xe(n) {
|
|
741
486
|
return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
|
|
742
487
|
}
|
|
743
|
-
var
|
|
488
|
+
var yt = { exports: {} }, Nt = {}, bt = { exports: {} }, Ft = {};
|
|
744
489
|
/**
|
|
745
490
|
* @license React
|
|
746
491
|
* use-sync-external-store-shim.production.min.js
|
|
@@ -750,95 +495,121 @@ var Mt = { exports: {} }, jt = {};
|
|
|
750
495
|
* This source code is licensed under the MIT license found in the
|
|
751
496
|
* LICENSE file in the root directory of this source tree.
|
|
752
497
|
*/
|
|
753
|
-
var
|
|
754
|
-
function
|
|
498
|
+
var K = fe;
|
|
499
|
+
function vn(n, e) {
|
|
755
500
|
return n === e && (n !== 0 || 1 / n === 1 / e) || n !== n && e !== e;
|
|
756
501
|
}
|
|
757
|
-
var
|
|
758
|
-
function
|
|
759
|
-
var t = e(), i =
|
|
760
|
-
return
|
|
761
|
-
a.value = t, a.getSnapshot = e,
|
|
762
|
-
}, [n, t, e]),
|
|
763
|
-
return
|
|
764
|
-
|
|
502
|
+
var Sn = typeof Object.is == "function" ? Object.is : vn, yn = K.useState, Nn = K.useEffect, bn = K.useLayoutEffect, Fn = K.useDebugValue;
|
|
503
|
+
function wn(n, e) {
|
|
504
|
+
var t = e(), i = yn({ inst: { value: t, getSnapshot: e } }), a = i[0].inst, s = i[1];
|
|
505
|
+
return bn(function() {
|
|
506
|
+
a.value = t, a.getSnapshot = e, ye(a) && s({ inst: a });
|
|
507
|
+
}, [n, t, e]), Nn(function() {
|
|
508
|
+
return ye(a) && s({ inst: a }), n(function() {
|
|
509
|
+
ye(a) && s({ inst: a });
|
|
765
510
|
});
|
|
766
|
-
}, [n]),
|
|
511
|
+
}, [n]), Fn(t), t;
|
|
767
512
|
}
|
|
768
|
-
function
|
|
513
|
+
function ye(n) {
|
|
769
514
|
var e = n.getSnapshot;
|
|
770
515
|
n = n.value;
|
|
771
516
|
try {
|
|
772
517
|
var t = e();
|
|
773
|
-
return !
|
|
518
|
+
return !Sn(n, t);
|
|
774
519
|
} catch {
|
|
775
520
|
return !0;
|
|
776
521
|
}
|
|
777
522
|
}
|
|
778
|
-
function
|
|
523
|
+
function Cn(n, e) {
|
|
779
524
|
return e();
|
|
780
525
|
}
|
|
781
|
-
var
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
var
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
526
|
+
var En = typeof window == "undefined" || typeof window.document == "undefined" || typeof window.document.createElement == "undefined" ? Cn : wn;
|
|
527
|
+
Ft.useSyncExternalStore = K.useSyncExternalStore !== void 0 ? K.useSyncExternalStore : En;
|
|
528
|
+
bt.exports = Ft;
|
|
529
|
+
var wt = bt.exports;
|
|
530
|
+
/**
|
|
531
|
+
* @license React
|
|
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, xn = wt;
|
|
540
|
+
function On(n, e) {
|
|
541
|
+
return n === e && (n !== 0 || 1 / n === 1 / e) || n !== n && e !== e;
|
|
542
|
+
}
|
|
543
|
+
var Rn = typeof Object.is == "function" ? Object.is : On, Tn = xn.useSyncExternalStore, Dn = pe.useRef, In = pe.useEffect, Ln = pe.useMemo, An = pe.useDebugValue;
|
|
544
|
+
Nt.useSyncExternalStoreWithSelector = function(n, e, t, i, a) {
|
|
545
|
+
var s = Dn(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 = Ln(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;
|
|
815
560
|
}
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
561
|
+
if (y = f, Rn(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 = Tn(n, s[0], s[1]);
|
|
574
|
+
return In(function() {
|
|
575
|
+
r.hasValue = !0, r.value = o;
|
|
576
|
+
}, [o]), An(o), o;
|
|
577
|
+
};
|
|
578
|
+
yt.exports = Nt;
|
|
579
|
+
var Pn = yt.exports;
|
|
580
|
+
const Vn = /* @__PURE__ */ xe(Pn);
|
|
581
|
+
var Ct = { 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: _n } = fe, { useSyncExternalStoreWithSelector: Un } = Vn;
|
|
583
|
+
let Me = !1;
|
|
584
|
+
function Mn(n, e = n.getState, t) {
|
|
585
|
+
(Ct ? "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 = Un(
|
|
589
|
+
n.subscribe,
|
|
590
|
+
n.getState,
|
|
591
|
+
n.getServerState || n.getState,
|
|
592
|
+
e,
|
|
593
|
+
t
|
|
831
594
|
);
|
|
595
|
+
return _n(i), i;
|
|
832
596
|
}
|
|
833
|
-
|
|
597
|
+
const $e = (n) => {
|
|
598
|
+
(Ct ? "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" ? kn(n) : n, t = (i, a) => Mn(e, i, a);
|
|
602
|
+
return Object.assign(t, e), t;
|
|
603
|
+
}, $n = (n) => n ? $e(n) : $e;
|
|
604
|
+
class jn {
|
|
834
605
|
constructor(e) {
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
606
|
+
R(this, "channel");
|
|
607
|
+
R(this, "listeners", /* @__PURE__ */ new Map());
|
|
608
|
+
R(this, "eventQueue", /* @__PURE__ */ new Map());
|
|
838
609
|
try {
|
|
839
|
-
this.channel = new BroadcastChannel(e), this.channel.onmessage = (t) => this.handleMessage(t), this.channel.onmessageerror = (t) =>
|
|
610
|
+
this.channel = new BroadcastChannel(e), this.channel.onmessage = (t) => this.handleMessage(t), this.channel.onmessageerror = (t) => Z.error("NizzaBroadcastChannel:", t);
|
|
840
611
|
} catch (t) {
|
|
841
|
-
throw
|
|
612
|
+
throw Z.error("Failed to create NizzaBroadcastChannel:", t), t;
|
|
842
613
|
}
|
|
843
614
|
}
|
|
844
615
|
/**
|
|
@@ -899,7 +670,7 @@ class Xn {
|
|
|
899
670
|
subscribeToEvent(e, t) {
|
|
900
671
|
if (typeof e != "string" || typeof t != "function") {
|
|
901
672
|
const i = new Error("Invalid arguments");
|
|
902
|
-
throw
|
|
673
|
+
throw Z.error(i), i;
|
|
903
674
|
}
|
|
904
675
|
for (const [i, a] of this.listeners.entries())
|
|
905
676
|
if (this.matchWildcard(i, e)) {
|
|
@@ -923,7 +694,7 @@ class Xn {
|
|
|
923
694
|
emitEvent(e, t, i) {
|
|
924
695
|
if (typeof e != "string") {
|
|
925
696
|
const r = new Error("Invalid arguments");
|
|
926
|
-
throw
|
|
697
|
+
throw Z.error(r), r;
|
|
927
698
|
}
|
|
928
699
|
const a = {
|
|
929
700
|
name: e,
|
|
@@ -976,21 +747,21 @@ class Xn {
|
|
|
976
747
|
return new RegExp(`^${i}$`).test(t);
|
|
977
748
|
}
|
|
978
749
|
}
|
|
979
|
-
let
|
|
980
|
-
const
|
|
750
|
+
let zn = (n = 21) => crypto.getRandomValues(new Uint8Array(n)).reduce((e, t) => (t &= 63, t < 36 ? e += t.toString(36) : t < 62 ? e += (t - 26).toString(36).toUpperCase() : t > 62 ? e += "-" : e += "_", e), "");
|
|
751
|
+
const Bn = (n = 8) => zn(n), Is = (n) => {
|
|
981
752
|
const e = Object.entries(n).reduce((t, [i, a]) => a !== void 0 ? `${t}${t ? "&" : ""}${i}=${a}` : t, "");
|
|
982
753
|
return e ? `?${e}` : "";
|
|
983
754
|
};
|
|
984
|
-
function
|
|
755
|
+
function Ls() {
|
|
985
756
|
const n = new Error().stack.split(`
|
|
986
757
|
`);
|
|
987
758
|
return n.length < 3 ? "" : n[2].trim().substring(3);
|
|
988
759
|
}
|
|
989
|
-
var
|
|
760
|
+
var Et = { exports: {} };
|
|
990
761
|
(function(n) {
|
|
991
762
|
(function(e, t) {
|
|
992
763
|
n.exports ? n.exports = t() : e.log = t();
|
|
993
|
-
})(
|
|
764
|
+
})(St, function() {
|
|
994
765
|
var e = function() {
|
|
995
766
|
}, t = "undefined", i = typeof window !== t && typeof window.navigator !== t && /Trident\/|MSIE /.test(window.navigator.userAgent), a = [
|
|
996
767
|
"trace",
|
|
@@ -999,15 +770,15 @@ var zt = { exports: {} };
|
|
|
999
770
|
"warn",
|
|
1000
771
|
"error"
|
|
1001
772
|
];
|
|
1002
|
-
function s(k,
|
|
1003
|
-
var
|
|
1004
|
-
if (typeof
|
|
1005
|
-
return
|
|
773
|
+
function s(k, N) {
|
|
774
|
+
var O = k[N];
|
|
775
|
+
if (typeof O.bind == "function")
|
|
776
|
+
return O.bind(k);
|
|
1006
777
|
try {
|
|
1007
|
-
return Function.prototype.bind.call(
|
|
778
|
+
return Function.prototype.bind.call(O, k);
|
|
1008
779
|
} catch {
|
|
1009
780
|
return function() {
|
|
1010
|
-
return Function.prototype.apply.apply(
|
|
781
|
+
return Function.prototype.apply.apply(O, [k, arguments]);
|
|
1011
782
|
};
|
|
1012
783
|
}
|
|
1013
784
|
}
|
|
@@ -1017,180 +788,180 @@ var zt = { exports: {} };
|
|
|
1017
788
|
function o(k) {
|
|
1018
789
|
return k === "debug" && (k = "log"), typeof console === t ? !1 : k === "trace" && i ? r : console[k] !== void 0 ? s(console, k) : console.log !== void 0 ? s(console, "log") : e;
|
|
1019
790
|
}
|
|
1020
|
-
function
|
|
1021
|
-
for (var
|
|
1022
|
-
var
|
|
1023
|
-
this[
|
|
791
|
+
function l(k, N) {
|
|
792
|
+
for (var O = 0; O < a.length; O++) {
|
|
793
|
+
var F = a[O];
|
|
794
|
+
this[F] = O < k ? e : this.methodFactory(F, k, N);
|
|
1024
795
|
}
|
|
1025
796
|
this.log = this.debug;
|
|
1026
797
|
}
|
|
1027
|
-
function
|
|
798
|
+
function u(k, N, O) {
|
|
1028
799
|
return function() {
|
|
1029
|
-
typeof console !== t && (
|
|
800
|
+
typeof console !== t && (l.call(this, N, O), this[k].apply(this, arguments));
|
|
1030
801
|
};
|
|
1031
802
|
}
|
|
1032
|
-
function
|
|
1033
|
-
return o(k) ||
|
|
1034
|
-
}
|
|
1035
|
-
function
|
|
1036
|
-
var
|
|
1037
|
-
|
|
1038
|
-
var
|
|
1039
|
-
typeof k == "string" ?
|
|
1040
|
-
function I(
|
|
1041
|
-
var
|
|
1042
|
-
if (!(typeof window === t || !
|
|
803
|
+
function d(k, N, O) {
|
|
804
|
+
return o(k) || u.apply(this, arguments);
|
|
805
|
+
}
|
|
806
|
+
function f(k, N, O) {
|
|
807
|
+
var F = this, D;
|
|
808
|
+
N = N == null ? "WARN" : N;
|
|
809
|
+
var w = "loglevel";
|
|
810
|
+
typeof k == "string" ? w += ":" + k : typeof k == "symbol" && (w = void 0);
|
|
811
|
+
function I(p) {
|
|
812
|
+
var h = (a[p] || "silent").toUpperCase();
|
|
813
|
+
if (!(typeof window === t || !w)) {
|
|
1043
814
|
try {
|
|
1044
|
-
window.localStorage[
|
|
815
|
+
window.localStorage[w] = h;
|
|
1045
816
|
return;
|
|
1046
817
|
} catch {
|
|
1047
818
|
}
|
|
1048
819
|
try {
|
|
1049
|
-
window.document.cookie = encodeURIComponent(
|
|
820
|
+
window.document.cookie = encodeURIComponent(w) + "=" + h + ";";
|
|
1050
821
|
} catch {
|
|
1051
822
|
}
|
|
1052
823
|
}
|
|
1053
824
|
}
|
|
1054
|
-
function
|
|
1055
|
-
var
|
|
1056
|
-
if (!(typeof window === t || !
|
|
825
|
+
function L() {
|
|
826
|
+
var p;
|
|
827
|
+
if (!(typeof window === t || !w)) {
|
|
1057
828
|
try {
|
|
1058
|
-
|
|
829
|
+
p = window.localStorage[w];
|
|
1059
830
|
} catch {
|
|
1060
831
|
}
|
|
1061
|
-
if (typeof
|
|
832
|
+
if (typeof p === t)
|
|
1062
833
|
try {
|
|
1063
|
-
var
|
|
1064
|
-
encodeURIComponent(
|
|
834
|
+
var h = window.document.cookie, g = h.indexOf(
|
|
835
|
+
encodeURIComponent(w) + "="
|
|
1065
836
|
);
|
|
1066
|
-
|
|
837
|
+
g !== -1 && (p = /^([^;]+)/.exec(h.slice(g))[1]);
|
|
1067
838
|
} catch {
|
|
1068
839
|
}
|
|
1069
|
-
return
|
|
840
|
+
return F.levels[p] === void 0 && (p = void 0), p;
|
|
1070
841
|
}
|
|
1071
842
|
}
|
|
1072
843
|
function A() {
|
|
1073
|
-
if (!(typeof window === t || !
|
|
844
|
+
if (!(typeof window === t || !w)) {
|
|
1074
845
|
try {
|
|
1075
|
-
window.localStorage.removeItem(
|
|
846
|
+
window.localStorage.removeItem(w);
|
|
1076
847
|
return;
|
|
1077
848
|
} catch {
|
|
1078
849
|
}
|
|
1079
850
|
try {
|
|
1080
|
-
window.document.cookie = encodeURIComponent(
|
|
851
|
+
window.document.cookie = encodeURIComponent(w) + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC";
|
|
1081
852
|
} catch {
|
|
1082
853
|
}
|
|
1083
854
|
}
|
|
1084
855
|
}
|
|
1085
|
-
|
|
856
|
+
F.name = k, F.levels = {
|
|
1086
857
|
TRACE: 0,
|
|
1087
858
|
DEBUG: 1,
|
|
1088
859
|
INFO: 2,
|
|
1089
860
|
WARN: 3,
|
|
1090
861
|
ERROR: 4,
|
|
1091
862
|
SILENT: 5
|
|
1092
|
-
},
|
|
1093
|
-
return
|
|
1094
|
-
},
|
|
1095
|
-
if (typeof
|
|
1096
|
-
if (
|
|
863
|
+
}, F.methodFactory = O || d, F.getLevel = function() {
|
|
864
|
+
return D;
|
|
865
|
+
}, F.setLevel = function(p, h) {
|
|
866
|
+
if (typeof p == "string" && F.levels[p.toUpperCase()] !== void 0 && (p = F.levels[p.toUpperCase()]), typeof p == "number" && p >= 0 && p <= F.levels.SILENT) {
|
|
867
|
+
if (D = p, h !== !1 && I(p), l.call(F, p, k), typeof console === t && p < F.levels.SILENT)
|
|
1097
868
|
return "No console available for logging";
|
|
1098
869
|
} else
|
|
1099
|
-
throw "log.setLevel() called with invalid level: " +
|
|
1100
|
-
},
|
|
1101
|
-
|
|
1102
|
-
},
|
|
1103
|
-
|
|
1104
|
-
},
|
|
1105
|
-
|
|
1106
|
-
},
|
|
1107
|
-
|
|
870
|
+
throw "log.setLevel() called with invalid level: " + p;
|
|
871
|
+
}, F.setDefaultLevel = function(p) {
|
|
872
|
+
N = p, L() || F.setLevel(p, !1);
|
|
873
|
+
}, F.resetLevel = function() {
|
|
874
|
+
F.setLevel(N, !1), A();
|
|
875
|
+
}, F.enableAll = function(p) {
|
|
876
|
+
F.setLevel(F.levels.TRACE, p);
|
|
877
|
+
}, F.disableAll = function(p) {
|
|
878
|
+
F.setLevel(F.levels.SILENT, p);
|
|
1108
879
|
};
|
|
1109
|
-
var
|
|
1110
|
-
|
|
880
|
+
var m = L();
|
|
881
|
+
m == null && (m = N), F.setLevel(m, !1);
|
|
1111
882
|
}
|
|
1112
|
-
var c = new
|
|
1113
|
-
c.getLogger = function(
|
|
1114
|
-
if (typeof
|
|
883
|
+
var c = new f(), S = {};
|
|
884
|
+
c.getLogger = function(N) {
|
|
885
|
+
if (typeof N != "symbol" && typeof N != "string" || N === "")
|
|
1115
886
|
throw new TypeError("You must supply a name when creating a logger.");
|
|
1116
|
-
var
|
|
1117
|
-
return
|
|
1118
|
-
|
|
887
|
+
var O = S[N];
|
|
888
|
+
return O || (O = S[N] = new f(
|
|
889
|
+
N,
|
|
1119
890
|
c.getLevel(),
|
|
1120
891
|
c.methodFactory
|
|
1121
|
-
)),
|
|
892
|
+
)), O;
|
|
1122
893
|
};
|
|
1123
|
-
var
|
|
894
|
+
var y = typeof window !== t ? window.log : void 0;
|
|
1124
895
|
return c.noConflict = function() {
|
|
1125
|
-
return typeof window !== t && window.log === c && (window.log =
|
|
896
|
+
return typeof window !== t && window.log === c && (window.log = y), c;
|
|
1126
897
|
}, c.getLoggers = function() {
|
|
1127
|
-
return
|
|
898
|
+
return S;
|
|
1128
899
|
}, c.default = c, c;
|
|
1129
900
|
});
|
|
1130
|
-
})(
|
|
1131
|
-
var
|
|
1132
|
-
const
|
|
1133
|
-
var
|
|
901
|
+
})(Et);
|
|
902
|
+
var xt = Et.exports;
|
|
903
|
+
const ie = /* @__PURE__ */ xe(xt);
|
|
904
|
+
var Ot = { exports: {} };
|
|
1134
905
|
(function(n) {
|
|
1135
906
|
(function(e, t) {
|
|
1136
907
|
n.exports ? n.exports = t() : e.prefix = t(e);
|
|
1137
|
-
})(
|
|
1138
|
-
var t = function(
|
|
1139
|
-
for (var
|
|
1140
|
-
for (
|
|
1141
|
-
Object.prototype.hasOwnProperty.call(arguments[
|
|
1142
|
-
return
|
|
908
|
+
})(St, function(e) {
|
|
909
|
+
var t = function(d) {
|
|
910
|
+
for (var f = 1, c = arguments.length, S; f < c; f++)
|
|
911
|
+
for (S in arguments[f])
|
|
912
|
+
Object.prototype.hasOwnProperty.call(arguments[f], S) && (d[S] = arguments[f][S]);
|
|
913
|
+
return d;
|
|
1143
914
|
}, i = {
|
|
1144
915
|
template: "[%t] %l:",
|
|
1145
|
-
levelFormatter: function(
|
|
1146
|
-
return
|
|
916
|
+
levelFormatter: function(d) {
|
|
917
|
+
return d.toUpperCase();
|
|
1147
918
|
},
|
|
1148
|
-
nameFormatter: function(
|
|
1149
|
-
return
|
|
919
|
+
nameFormatter: function(d) {
|
|
920
|
+
return d || "root";
|
|
1150
921
|
},
|
|
1151
|
-
timestampFormatter: function(
|
|
1152
|
-
return
|
|
922
|
+
timestampFormatter: function(d) {
|
|
923
|
+
return d.toTimeString().replace(/.*(\d{2}:\d{2}:\d{2}).*/, "$1");
|
|
1153
924
|
},
|
|
1154
925
|
format: void 0
|
|
1155
|
-
}, a, s = {}, r = function(
|
|
1156
|
-
if (!
|
|
926
|
+
}, a, s = {}, r = function(d) {
|
|
927
|
+
if (!d || !d.getLogger)
|
|
1157
928
|
throw new TypeError("Argument is not a root logger");
|
|
1158
|
-
a =
|
|
1159
|
-
}, o = function(
|
|
1160
|
-
if (!
|
|
929
|
+
a = d;
|
|
930
|
+
}, o = function(d, f) {
|
|
931
|
+
if (!d || !d.setLevel)
|
|
1161
932
|
throw new TypeError("Argument is not a logger");
|
|
1162
|
-
var c =
|
|
1163
|
-
function k(
|
|
1164
|
-
var
|
|
933
|
+
var c = d.methodFactory, S = d.name || "", y = s[S] || s[""] || i;
|
|
934
|
+
function k(N, O, F) {
|
|
935
|
+
var D = c(N, O, F), w = s[F] || s[""], I = w.template.indexOf("%t") !== -1, L = w.template.indexOf("%l") !== -1, A = w.template.indexOf("%n") !== -1;
|
|
1165
936
|
return function() {
|
|
1166
|
-
for (var
|
|
1167
|
-
g
|
|
1168
|
-
if (
|
|
1169
|
-
var
|
|
1170
|
-
|
|
937
|
+
for (var m = "", p = arguments.length, h = Array(p), g = 0; g < p; g++)
|
|
938
|
+
h[g] = arguments[g];
|
|
939
|
+
if (S || !s[F]) {
|
|
940
|
+
var b = w.timestampFormatter(/* @__PURE__ */ new Date()), C = w.levelFormatter(N), v = w.nameFormatter(F);
|
|
941
|
+
w.format ? m += w.format(C, v, b) : (m += w.template, I && (m = m.replace(/%t/, b)), L && (m = m.replace(/%l/, C)), A && (m = m.replace(/%n/, v))), h.length && typeof h[0] == "string" ? h[0] = m + " " + h[0] : h.unshift(m);
|
|
1171
942
|
}
|
|
1172
|
-
|
|
943
|
+
D.apply(void 0, h);
|
|
1173
944
|
};
|
|
1174
945
|
}
|
|
1175
|
-
return s[
|
|
946
|
+
return s[S] || (d.methodFactory = k), f = f || {}, f.template && (f.format = void 0), s[S] = t({}, y, f), d.setLevel(d.getLevel()), a || d.warn(
|
|
1176
947
|
"It is necessary to call the function reg() of loglevel-plugin-prefix before calling apply. From the next release, it will throw an error. See more: https://github.com/kutuluk/loglevel-plugin-prefix/blob/master/README.md"
|
|
1177
|
-
),
|
|
1178
|
-
},
|
|
948
|
+
), d;
|
|
949
|
+
}, l = {
|
|
1179
950
|
reg: r,
|
|
1180
951
|
apply: o
|
|
1181
|
-
},
|
|
1182
|
-
return e && (
|
|
1183
|
-
return e.prefix ===
|
|
1184
|
-
}),
|
|
952
|
+
}, u;
|
|
953
|
+
return e && (u = e.prefix, l.noConflict = function() {
|
|
954
|
+
return e.prefix === l && (e.prefix = u), l;
|
|
955
|
+
}), l;
|
|
1185
956
|
});
|
|
1186
|
-
})(
|
|
1187
|
-
var
|
|
1188
|
-
const
|
|
1189
|
-
let
|
|
957
|
+
})(Ot);
|
|
958
|
+
var Qn = Ot.exports;
|
|
959
|
+
const je = /* @__PURE__ */ xe(Qn);
|
|
960
|
+
let Gn = class {
|
|
1190
961
|
constructor(e) {
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
this.namePrefix = e ? `${e}-` : "",
|
|
962
|
+
R(this, "defaultLevel", xt.levels.INFO);
|
|
963
|
+
R(this, "namePrefix");
|
|
964
|
+
this.namePrefix = e ? `${e}-` : "", ie.setDefaultLevel(this.defaultLevel), je.reg(ie), je.apply(ie, {
|
|
1194
965
|
template: "[%t] %l (%n)",
|
|
1195
966
|
nameFormatter: (t) => {
|
|
1196
967
|
var i;
|
|
@@ -1200,116 +971,106 @@ let ni = class {
|
|
|
1200
971
|
});
|
|
1201
972
|
}
|
|
1202
973
|
createLogger(e) {
|
|
1203
|
-
const t = this.namePrefix + e.toLowerCase(), i =
|
|
974
|
+
const t = this.namePrefix + e.toLowerCase(), i = ie.getLogger(t), a = localStorage.getItem(`loglevel:${t}`);
|
|
1204
975
|
return a ? i.setLevel(a) : i.setLevel(this.defaultLevel), i;
|
|
1205
976
|
}
|
|
1206
977
|
};
|
|
1207
|
-
const
|
|
1208
|
-
config: null
|
|
1209
|
-
|
|
1210
|
-
var n;
|
|
1211
|
-
return (n = this.config) == null ? void 0 : n.account;
|
|
1212
|
-
},
|
|
1213
|
-
get ok() {
|
|
1214
|
-
return !!this.account;
|
|
1215
|
-
}
|
|
1216
|
-
}), ii = async (n) => {
|
|
1217
|
-
var e;
|
|
978
|
+
const j = $n(() => ({
|
|
979
|
+
config: null
|
|
980
|
+
})), Kn = async (n) => {
|
|
1218
981
|
try {
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
982
|
+
const e = j.getState().account;
|
|
983
|
+
if ((e == null ? void 0 : e.account) !== n.account) {
|
|
984
|
+
const t = await ta(n.account);
|
|
985
|
+
j.setState({ account: t });
|
|
1222
986
|
}
|
|
1223
987
|
if (n.getProductDataSource) {
|
|
1224
988
|
const t = await n.getProductDataSource();
|
|
1225
|
-
|
|
1226
|
-
}
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
}
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
configure:
|
|
1236
|
-
setProductDataSource:
|
|
1237
|
-
instanceId:
|
|
1238
|
-
log: new
|
|
1239
|
-
eventBus: new
|
|
1240
|
-
get
|
|
1241
|
-
return
|
|
1242
|
-
}
|
|
1243
|
-
|
|
1244
|
-
return z.productDataSource;
|
|
1245
|
-
}
|
|
1246
|
-
}), si = () => {
|
|
989
|
+
j.setState({ productDataSource: t });
|
|
990
|
+
}
|
|
991
|
+
j.setState({ config: n });
|
|
992
|
+
} catch (e) {
|
|
993
|
+
console.error("Error configuring NizzaStore:", e);
|
|
994
|
+
}
|
|
995
|
+
}, Wn = (n) => {
|
|
996
|
+
j.setState({ productDataSource: n });
|
|
997
|
+
}, ze = () => ({
|
|
998
|
+
version: "1.0.0",
|
|
999
|
+
configure: Kn,
|
|
1000
|
+
setProductDataSource: Wn,
|
|
1001
|
+
instanceId: Bn(),
|
|
1002
|
+
log: new Gn("nz"),
|
|
1003
|
+
eventBus: new jn("nizza"),
|
|
1004
|
+
get state() {
|
|
1005
|
+
return j.getState();
|
|
1006
|
+
}
|
|
1007
|
+
}), Jn = () => {
|
|
1247
1008
|
if (typeof window != "undefined") {
|
|
1248
1009
|
if (!window.nizza) {
|
|
1249
|
-
const n =
|
|
1010
|
+
const n = ze();
|
|
1250
1011
|
window.nizza = n, window.nz = n;
|
|
1251
1012
|
}
|
|
1252
1013
|
return window.nizza;
|
|
1253
1014
|
}
|
|
1254
|
-
return
|
|
1255
|
-
},
|
|
1015
|
+
return ze();
|
|
1016
|
+
}, Rt = Jn(), qn = j, Ps = Rt.log.createLogger("main"), Z = Rt.log.createLogger("core");
|
|
1256
1017
|
function G(n) {
|
|
1257
1018
|
return n != null && typeof n == "object" && n["@@functional/placeholder"] === !0;
|
|
1258
1019
|
}
|
|
1259
|
-
function
|
|
1020
|
+
function se(n) {
|
|
1260
1021
|
return function e(t) {
|
|
1261
1022
|
return arguments.length === 0 || G(t) ? e : n.apply(this, arguments);
|
|
1262
1023
|
};
|
|
1263
1024
|
}
|
|
1264
|
-
function
|
|
1025
|
+
function Oe(n) {
|
|
1265
1026
|
return function e(t, i) {
|
|
1266
1027
|
switch (arguments.length) {
|
|
1267
1028
|
case 0:
|
|
1268
1029
|
return e;
|
|
1269
1030
|
case 1:
|
|
1270
|
-
return G(t) ? e :
|
|
1031
|
+
return G(t) ? e : se(function(a) {
|
|
1271
1032
|
return n(t, a);
|
|
1272
1033
|
});
|
|
1273
1034
|
default:
|
|
1274
|
-
return G(t) && G(i) ? e : G(t) ?
|
|
1035
|
+
return G(t) && G(i) ? e : G(t) ? se(function(a) {
|
|
1275
1036
|
return n(a, i);
|
|
1276
|
-
}) : G(i) ?
|
|
1037
|
+
}) : G(i) ? se(function(a) {
|
|
1277
1038
|
return n(t, a);
|
|
1278
1039
|
}) : n(t, i);
|
|
1279
1040
|
}
|
|
1280
1041
|
};
|
|
1281
1042
|
}
|
|
1282
|
-
const
|
|
1043
|
+
const Hn = Number.isInteger || function(e) {
|
|
1283
1044
|
return e << 0 === e;
|
|
1284
1045
|
};
|
|
1285
|
-
function
|
|
1046
|
+
function Zn(n) {
|
|
1286
1047
|
return Object.prototype.toString.call(n) === "[object String]";
|
|
1287
1048
|
}
|
|
1288
|
-
var
|
|
1049
|
+
var Xn = /* @__PURE__ */ Oe(function(e, t) {
|
|
1289
1050
|
var i = e < 0 ? t.length + e : e;
|
|
1290
|
-
return
|
|
1051
|
+
return Zn(t) ? t.charAt(i) : t[i];
|
|
1291
1052
|
});
|
|
1292
|
-
const
|
|
1293
|
-
var
|
|
1053
|
+
const Yn = Xn;
|
|
1054
|
+
var ei = /* @__PURE__ */ se(function(e) {
|
|
1294
1055
|
return e == null;
|
|
1295
1056
|
});
|
|
1296
|
-
const
|
|
1297
|
-
var
|
|
1057
|
+
const ti = ei;
|
|
1058
|
+
var ni = /* @__PURE__ */ Oe(function(e, t) {
|
|
1298
1059
|
return e.map(function(i) {
|
|
1299
1060
|
for (var a = t, s = 0, r; s < i.length; ) {
|
|
1300
1061
|
if (a == null)
|
|
1301
1062
|
return;
|
|
1302
|
-
r = i[s], a =
|
|
1063
|
+
r = i[s], a = Hn(r) ? Yn(r, a) : a[r], s += 1;
|
|
1303
1064
|
}
|
|
1304
1065
|
return a;
|
|
1305
1066
|
});
|
|
1306
1067
|
});
|
|
1307
|
-
const
|
|
1308
|
-
var
|
|
1309
|
-
return
|
|
1068
|
+
const ii = ni;
|
|
1069
|
+
var ai = /* @__PURE__ */ Oe(function(e, t) {
|
|
1070
|
+
return ii([e], t)[0];
|
|
1310
1071
|
});
|
|
1311
|
-
const
|
|
1312
|
-
class
|
|
1072
|
+
const si = ai;
|
|
1073
|
+
class he extends Error {
|
|
1313
1074
|
constructor(e, t, i) {
|
|
1314
1075
|
super(t), this.value = i, this.name = e;
|
|
1315
1076
|
}
|
|
@@ -1321,7 +1082,7 @@ class ye extends Error {
|
|
|
1321
1082
|
};
|
|
1322
1083
|
}
|
|
1323
1084
|
}
|
|
1324
|
-
class
|
|
1085
|
+
class ri extends he {
|
|
1325
1086
|
constructor(e) {
|
|
1326
1087
|
super(
|
|
1327
1088
|
"RESOURCE_NOT_FOUND_ERROR",
|
|
@@ -1330,7 +1091,7 @@ class gi extends ye {
|
|
|
1330
1091
|
);
|
|
1331
1092
|
}
|
|
1332
1093
|
}
|
|
1333
|
-
class
|
|
1094
|
+
class oi extends he {
|
|
1334
1095
|
constructor(e) {
|
|
1335
1096
|
var t;
|
|
1336
1097
|
super(
|
|
@@ -1340,12 +1101,12 @@ class ki extends ye {
|
|
|
1340
1101
|
);
|
|
1341
1102
|
}
|
|
1342
1103
|
}
|
|
1343
|
-
class
|
|
1104
|
+
class Vs extends he {
|
|
1344
1105
|
constructor() {
|
|
1345
1106
|
super("APP_ACCOUNT_INVALID_ERROR", "Account not defined");
|
|
1346
1107
|
}
|
|
1347
1108
|
}
|
|
1348
|
-
class
|
|
1109
|
+
class li extends he {
|
|
1349
1110
|
constructor(e) {
|
|
1350
1111
|
super(
|
|
1351
1112
|
"INVALID_NIZZA_GLOBAL_OBJECT_ERROR",
|
|
@@ -1373,28 +1134,28 @@ class vi extends ye {
|
|
|
1373
1134
|
);
|
|
1374
1135
|
}
|
|
1375
1136
|
}
|
|
1376
|
-
function
|
|
1137
|
+
function _s(n, e) {
|
|
1377
1138
|
e.forEach((t) => {
|
|
1378
|
-
if (
|
|
1379
|
-
throw new
|
|
1139
|
+
if (ti(si(t.split("."), n)))
|
|
1140
|
+
throw new li(t);
|
|
1380
1141
|
});
|
|
1381
1142
|
}
|
|
1382
|
-
function
|
|
1143
|
+
function Us() {
|
|
1383
1144
|
var i, a, s;
|
|
1384
1145
|
let n = null, e = null, t = null;
|
|
1385
1146
|
try {
|
|
1386
1147
|
n = (s = (a = (i = Intl.DateTimeFormat()) == null ? void 0 : i.resolvedOptions()) == null ? void 0 : a.timeZone) != null ? s : null;
|
|
1387
1148
|
const r = -(/* @__PURE__ */ new Date()).getTimezoneOffset();
|
|
1388
1149
|
t = r;
|
|
1389
|
-
const o = r >= 0 ? "+" : "-",
|
|
1150
|
+
const o = r >= 0 ? "+" : "-", l = String(
|
|
1390
1151
|
Math.floor(Math.abs(r) / 60)
|
|
1391
|
-
).padStart(2, "0"),
|
|
1152
|
+
).padStart(2, "0"), u = String(Math.abs(r) % 60).padStart(
|
|
1392
1153
|
2,
|
|
1393
1154
|
"0"
|
|
1394
1155
|
);
|
|
1395
|
-
e = `${o}${
|
|
1156
|
+
e = `${o}${l}:${u}`;
|
|
1396
1157
|
} catch {
|
|
1397
|
-
|
|
1158
|
+
Z.error("Error obtaining time zone or offset");
|
|
1398
1159
|
}
|
|
1399
1160
|
return {
|
|
1400
1161
|
offset: e,
|
|
@@ -1405,10 +1166,10 @@ function Js() {
|
|
|
1405
1166
|
label: null
|
|
1406
1167
|
};
|
|
1407
1168
|
}
|
|
1408
|
-
class
|
|
1169
|
+
class di {
|
|
1409
1170
|
constructor(e) {
|
|
1410
|
-
|
|
1411
|
-
|
|
1171
|
+
R(this, "aggregate");
|
|
1172
|
+
R(this, "_numSetPropsApplied", 0);
|
|
1412
1173
|
this.aggregate = e;
|
|
1413
1174
|
}
|
|
1414
1175
|
setProps(e) {
|
|
@@ -1420,48 +1181,48 @@ class Si {
|
|
|
1420
1181
|
return this._numSetPropsApplied === 1;
|
|
1421
1182
|
}
|
|
1422
1183
|
}
|
|
1423
|
-
function
|
|
1424
|
-
return new
|
|
1184
|
+
function ui(n) {
|
|
1185
|
+
return new di(n);
|
|
1425
1186
|
}
|
|
1426
|
-
class
|
|
1187
|
+
class Ms {
|
|
1427
1188
|
}
|
|
1428
|
-
class
|
|
1189
|
+
class $s {
|
|
1429
1190
|
constructor(e) {
|
|
1430
|
-
|
|
1191
|
+
R(this, "_value");
|
|
1431
1192
|
e !== void 0 && (this._value = e);
|
|
1432
1193
|
}
|
|
1433
1194
|
get value() {
|
|
1434
1195
|
return this._value;
|
|
1435
1196
|
}
|
|
1436
1197
|
}
|
|
1437
|
-
var
|
|
1438
|
-
class
|
|
1198
|
+
var Tt = /* @__PURE__ */ ((n) => (n.VTEX = "VTEX", n.VTEX_IO = "VTEX-IO", n.VTEX_CMS = "PORTAL-VTEX", n.PLATFORM = "PLATFORM", n.UNKNOWN = "UNKNOWN", n))(Tt || {}), ci = /* @__PURE__ */ ((n) => (n.PLATFORM = "platform_module", n.ADENDA = "subscription_module", n.APP_STORE = "app_store", n))(ci || {}), Dt = /* @__PURE__ */ ((n) => (n.ACTIVE = "active_contract", n.INACTIVE = "inactive_contract", n))(Dt || {}), mi = /* @__PURE__ */ ((n) => (n.LITE = "lite", n.STANDARD = "standard", n.PRO = "pro", n))(mi || {}), fi = /* @__PURE__ */ ((n) => (n.LITE = "PLAN_LITE", n.STANDARD = "PLAN_ESTANDAR", n.PRO = "PLAN_PRO", n.NONE = "NO_PLAN", n))(fi || {}), pi = /* @__PURE__ */ ((n) => (n.PAST = "past", n.LIVE = "live", n.FUTURE = "future", n))(pi || {});
|
|
1199
|
+
class Re {
|
|
1439
1200
|
constructor(e) {
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1201
|
+
R(this, "root", ui(this));
|
|
1202
|
+
R(this, "id");
|
|
1203
|
+
R(this, "account");
|
|
1204
|
+
R(this, "accountType", Tt.UNKNOWN);
|
|
1205
|
+
R(this, "username");
|
|
1206
|
+
R(this, "currencyConfig");
|
|
1207
|
+
R(this, "contractType");
|
|
1208
|
+
R(this, "nextDateMetricRecord");
|
|
1209
|
+
R(this, "spendedMinutes", 0);
|
|
1210
|
+
R(this, "unlimitedService", !1);
|
|
1211
|
+
R(this, "hoursAvailable", 0);
|
|
1212
|
+
R(this, "contractStatus", Dt.ACTIVE);
|
|
1213
|
+
R(this, "createdAt");
|
|
1214
|
+
R(this, "installationDateApp");
|
|
1215
|
+
R(this, "cxAccount");
|
|
1216
|
+
R(this, "freeService", !1);
|
|
1217
|
+
R(this, "subscriptionType", null);
|
|
1218
|
+
R(this, "minutesAvailable", 0);
|
|
1219
|
+
R(this, "globalPage");
|
|
1220
|
+
R(this, "stripe");
|
|
1221
|
+
R(this, "descriptionPlan");
|
|
1222
|
+
R(this, "planType");
|
|
1223
|
+
R(this, "selectFreeTrial");
|
|
1224
|
+
R(this, "exceededFeatures");
|
|
1225
|
+
R(this, "host", null);
|
|
1465
1226
|
this.root.setProps(e);
|
|
1466
1227
|
}
|
|
1467
1228
|
static toDomain(e) {
|
|
@@ -1470,7 +1231,7 @@ class ze {
|
|
|
1470
1231
|
username: i != null ? i : a.account,
|
|
1471
1232
|
createdAt: new Date(Number(t))
|
|
1472
1233
|
};
|
|
1473
|
-
return new
|
|
1234
|
+
return new Re(s);
|
|
1474
1235
|
}
|
|
1475
1236
|
toPrimitives() {
|
|
1476
1237
|
const { root: e, createdAt: t, ...i } = this;
|
|
@@ -1480,16 +1241,16 @@ class ze {
|
|
|
1480
1241
|
};
|
|
1481
1242
|
}
|
|
1482
1243
|
}
|
|
1483
|
-
const
|
|
1484
|
-
class
|
|
1244
|
+
const hi = `${pn.apiUrls.restV1}/accounts/v2`;
|
|
1245
|
+
class gi {
|
|
1485
1246
|
async get(e) {
|
|
1486
|
-
const t = `${
|
|
1247
|
+
const t = `${hi}/${e}`, { data: i } = await vt({
|
|
1487
1248
|
url: t
|
|
1488
1249
|
});
|
|
1489
|
-
return i ?
|
|
1250
|
+
return i ? Re.toDomain(i) : null;
|
|
1490
1251
|
}
|
|
1491
1252
|
}
|
|
1492
|
-
class
|
|
1253
|
+
class ki {
|
|
1493
1254
|
constructor(e) {
|
|
1494
1255
|
this.accountRepository = e;
|
|
1495
1256
|
}
|
|
@@ -1497,15 +1258,15 @@ class Oi {
|
|
|
1497
1258
|
try {
|
|
1498
1259
|
const t = await this.accountRepository.get(e);
|
|
1499
1260
|
if (!t)
|
|
1500
|
-
throw new
|
|
1261
|
+
throw new ri(e);
|
|
1501
1262
|
return t;
|
|
1502
1263
|
} catch (t) {
|
|
1503
|
-
throw new
|
|
1264
|
+
throw new oi(t);
|
|
1504
1265
|
}
|
|
1505
1266
|
}
|
|
1506
1267
|
}
|
|
1507
|
-
const
|
|
1508
|
-
class
|
|
1268
|
+
const vi = new gi(), It = new ki(vi);
|
|
1269
|
+
class Te {
|
|
1509
1270
|
constructor() {
|
|
1510
1271
|
this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
|
|
1511
1272
|
}
|
|
@@ -1525,17 +1286,17 @@ class Be {
|
|
|
1525
1286
|
onUnsubscribe() {
|
|
1526
1287
|
}
|
|
1527
1288
|
}
|
|
1528
|
-
const
|
|
1529
|
-
function
|
|
1289
|
+
const oe = typeof window == "undefined" || "Deno" in window;
|
|
1290
|
+
function Si() {
|
|
1530
1291
|
}
|
|
1531
|
-
function
|
|
1292
|
+
function Be(n) {
|
|
1532
1293
|
return typeof n == "number" && n >= 0 && n !== 1 / 0;
|
|
1533
1294
|
}
|
|
1534
|
-
function
|
|
1295
|
+
function yi(n, e) {
|
|
1535
1296
|
return Math.max(n + (e || 0) - Date.now(), 0);
|
|
1536
1297
|
}
|
|
1537
|
-
function
|
|
1538
|
-
return
|
|
1298
|
+
function Ni(n, e, t) {
|
|
1299
|
+
return bi(n) ? typeof e == "function" ? {
|
|
1539
1300
|
...t,
|
|
1540
1301
|
queryKey: n,
|
|
1541
1302
|
queryFn: e
|
|
@@ -1544,22 +1305,22 @@ function Di(n, e, t) {
|
|
|
1544
1305
|
queryKey: n
|
|
1545
1306
|
} : n;
|
|
1546
1307
|
}
|
|
1547
|
-
function
|
|
1308
|
+
function Lt(n, e) {
|
|
1548
1309
|
if (n === e)
|
|
1549
1310
|
return n;
|
|
1550
|
-
const t =
|
|
1551
|
-
if (t ||
|
|
1311
|
+
const t = Qe(n) && Qe(e);
|
|
1312
|
+
if (t || Ge(n) && Ge(e)) {
|
|
1552
1313
|
const i = t ? n.length : Object.keys(n).length, a = t ? e : Object.keys(e), s = a.length, r = t ? [] : {};
|
|
1553
1314
|
let o = 0;
|
|
1554
|
-
for (let
|
|
1555
|
-
const
|
|
1556
|
-
r[
|
|
1315
|
+
for (let l = 0; l < s; l++) {
|
|
1316
|
+
const u = t ? l : a[l];
|
|
1317
|
+
r[u] = Lt(n[u], e[u]), r[u] === n[u] && o++;
|
|
1557
1318
|
}
|
|
1558
1319
|
return i === s && o === i ? n : r;
|
|
1559
1320
|
}
|
|
1560
1321
|
return e;
|
|
1561
1322
|
}
|
|
1562
|
-
function
|
|
1323
|
+
function be(n, e) {
|
|
1563
1324
|
if (n && !e || e && !n)
|
|
1564
1325
|
return !1;
|
|
1565
1326
|
for (const t in n)
|
|
@@ -1567,39 +1328,39 @@ function De(n, e) {
|
|
|
1567
1328
|
return !1;
|
|
1568
1329
|
return !0;
|
|
1569
1330
|
}
|
|
1570
|
-
function
|
|
1331
|
+
function Qe(n) {
|
|
1571
1332
|
return Array.isArray(n) && n.length === Object.keys(n).length;
|
|
1572
1333
|
}
|
|
1573
|
-
function
|
|
1574
|
-
if (!
|
|
1334
|
+
function Ge(n) {
|
|
1335
|
+
if (!Ke(n))
|
|
1575
1336
|
return !1;
|
|
1576
1337
|
const e = n.constructor;
|
|
1577
1338
|
if (typeof e == "undefined")
|
|
1578
1339
|
return !0;
|
|
1579
1340
|
const t = e.prototype;
|
|
1580
|
-
return !(!
|
|
1341
|
+
return !(!Ke(t) || !t.hasOwnProperty("isPrototypeOf"));
|
|
1581
1342
|
}
|
|
1582
|
-
function
|
|
1343
|
+
function Ke(n) {
|
|
1583
1344
|
return Object.prototype.toString.call(n) === "[object Object]";
|
|
1584
1345
|
}
|
|
1585
|
-
function
|
|
1346
|
+
function bi(n) {
|
|
1586
1347
|
return Array.isArray(n);
|
|
1587
1348
|
}
|
|
1588
|
-
function
|
|
1349
|
+
function Fi(n) {
|
|
1589
1350
|
return new Promise((e) => {
|
|
1590
1351
|
setTimeout(e, n);
|
|
1591
1352
|
});
|
|
1592
1353
|
}
|
|
1593
|
-
function
|
|
1594
|
-
|
|
1354
|
+
function We(n) {
|
|
1355
|
+
Fi(0).then(n);
|
|
1595
1356
|
}
|
|
1596
|
-
function
|
|
1597
|
-
return t.isDataEqual != null && t.isDataEqual(n, e) ? n : typeof t.structuralSharing == "function" ? t.structuralSharing(n, e) : t.structuralSharing !== !1 ?
|
|
1357
|
+
function Je(n, e, t) {
|
|
1358
|
+
return t.isDataEqual != null && t.isDataEqual(n, e) ? n : typeof t.structuralSharing == "function" ? t.structuralSharing(n, e) : t.structuralSharing !== !1 ? Lt(n, e) : e;
|
|
1598
1359
|
}
|
|
1599
|
-
class
|
|
1360
|
+
class wi extends Te {
|
|
1600
1361
|
constructor() {
|
|
1601
1362
|
super(), this.setup = (e) => {
|
|
1602
|
-
if (!
|
|
1363
|
+
if (!oe && window.addEventListener) {
|
|
1603
1364
|
const t = () => e();
|
|
1604
1365
|
return window.addEventListener("visibilitychange", t, !1), window.addEventListener("focus", t, !1), () => {
|
|
1605
1366
|
window.removeEventListener("visibilitychange", t), window.removeEventListener("focus", t);
|
|
@@ -1636,16 +1397,16 @@ class Ai extends Be {
|
|
|
1636
1397
|
return typeof this.focused == "boolean" ? this.focused : typeof document == "undefined" ? !0 : [void 0, "visible", "prerender"].includes(document.visibilityState);
|
|
1637
1398
|
}
|
|
1638
1399
|
}
|
|
1639
|
-
const
|
|
1640
|
-
class
|
|
1400
|
+
const Ci = new wi(), qe = ["online", "offline"];
|
|
1401
|
+
class Ei extends Te {
|
|
1641
1402
|
constructor() {
|
|
1642
1403
|
super(), this.setup = (e) => {
|
|
1643
|
-
if (!
|
|
1404
|
+
if (!oe && window.addEventListener) {
|
|
1644
1405
|
const t = () => e();
|
|
1645
|
-
return
|
|
1406
|
+
return qe.forEach((i) => {
|
|
1646
1407
|
window.addEventListener(i, t, !1);
|
|
1647
1408
|
}), () => {
|
|
1648
|
-
|
|
1409
|
+
qe.forEach((i) => {
|
|
1649
1410
|
window.removeEventListener(i, t);
|
|
1650
1411
|
});
|
|
1651
1412
|
};
|
|
@@ -1681,47 +1442,47 @@ class Vi extends Be {
|
|
|
1681
1442
|
return typeof this.online == "boolean" ? this.online : typeof navigator == "undefined" || typeof navigator.onLine == "undefined" ? !0 : navigator.onLine;
|
|
1682
1443
|
}
|
|
1683
1444
|
}
|
|
1684
|
-
const
|
|
1685
|
-
function
|
|
1686
|
-
return (n != null ? n : "online") === "online" ?
|
|
1445
|
+
const xi = new Ei();
|
|
1446
|
+
function Oi(n) {
|
|
1447
|
+
return (n != null ? n : "online") === "online" ? xi.isOnline() : !0;
|
|
1687
1448
|
}
|
|
1688
|
-
class
|
|
1449
|
+
class Ri {
|
|
1689
1450
|
constructor(e) {
|
|
1690
1451
|
this.revert = e == null ? void 0 : e.revert, this.silent = e == null ? void 0 : e.silent;
|
|
1691
1452
|
}
|
|
1692
1453
|
}
|
|
1693
|
-
function
|
|
1694
|
-
return n instanceof
|
|
1454
|
+
function Ti(n) {
|
|
1455
|
+
return n instanceof Ri;
|
|
1695
1456
|
}
|
|
1696
|
-
function
|
|
1697
|
-
let n = [], e = 0, t = (
|
|
1698
|
-
|
|
1699
|
-
}, i = (
|
|
1700
|
-
|
|
1457
|
+
function Di() {
|
|
1458
|
+
let n = [], e = 0, t = (d) => {
|
|
1459
|
+
d();
|
|
1460
|
+
}, i = (d) => {
|
|
1461
|
+
d();
|
|
1701
1462
|
};
|
|
1702
|
-
const a = (
|
|
1703
|
-
let
|
|
1463
|
+
const a = (d) => {
|
|
1464
|
+
let f;
|
|
1704
1465
|
e++;
|
|
1705
1466
|
try {
|
|
1706
|
-
|
|
1467
|
+
f = d();
|
|
1707
1468
|
} finally {
|
|
1708
1469
|
e--, e || o();
|
|
1709
1470
|
}
|
|
1710
|
-
return
|
|
1711
|
-
}, s = (
|
|
1712
|
-
e ? n.push(
|
|
1713
|
-
t(
|
|
1471
|
+
return f;
|
|
1472
|
+
}, s = (d) => {
|
|
1473
|
+
e ? n.push(d) : We(() => {
|
|
1474
|
+
t(d);
|
|
1714
1475
|
});
|
|
1715
|
-
}, r = (
|
|
1476
|
+
}, r = (d) => (...f) => {
|
|
1716
1477
|
s(() => {
|
|
1717
|
-
|
|
1478
|
+
d(...f);
|
|
1718
1479
|
});
|
|
1719
1480
|
}, o = () => {
|
|
1720
|
-
const
|
|
1721
|
-
n = [],
|
|
1481
|
+
const d = n;
|
|
1482
|
+
n = [], d.length && We(() => {
|
|
1722
1483
|
i(() => {
|
|
1723
|
-
|
|
1724
|
-
t(
|
|
1484
|
+
d.forEach((f) => {
|
|
1485
|
+
t(f);
|
|
1725
1486
|
});
|
|
1726
1487
|
});
|
|
1727
1488
|
});
|
|
@@ -1730,16 +1491,16 @@ function $i() {
|
|
|
1730
1491
|
batch: a,
|
|
1731
1492
|
batchCalls: r,
|
|
1732
1493
|
schedule: s,
|
|
1733
|
-
setNotifyFunction: (
|
|
1734
|
-
t =
|
|
1494
|
+
setNotifyFunction: (d) => {
|
|
1495
|
+
t = d;
|
|
1735
1496
|
},
|
|
1736
|
-
setBatchNotifyFunction: (
|
|
1737
|
-
i =
|
|
1497
|
+
setBatchNotifyFunction: (d) => {
|
|
1498
|
+
i = d;
|
|
1738
1499
|
}
|
|
1739
1500
|
};
|
|
1740
1501
|
}
|
|
1741
|
-
const
|
|
1742
|
-
class
|
|
1502
|
+
const X = Di();
|
|
1503
|
+
class Ii extends Te {
|
|
1743
1504
|
constructor(e, t) {
|
|
1744
1505
|
super(), this.client = e, this.options = t, this.trackedProps = /* @__PURE__ */ new Set(), this.selectError = null, this.bindMethods(), this.setOptions(t);
|
|
1745
1506
|
}
|
|
@@ -1747,23 +1508,23 @@ class zi extends Be {
|
|
|
1747
1508
|
this.remove = this.remove.bind(this), this.refetch = this.refetch.bind(this);
|
|
1748
1509
|
}
|
|
1749
1510
|
onSubscribe() {
|
|
1750
|
-
this.listeners.size === 1 && (this.currentQuery.addObserver(this),
|
|
1511
|
+
this.listeners.size === 1 && (this.currentQuery.addObserver(this), He(this.currentQuery, this.options) && this.executeFetch(), this.updateTimers());
|
|
1751
1512
|
}
|
|
1752
1513
|
onUnsubscribe() {
|
|
1753
1514
|
this.hasListeners() || this.destroy();
|
|
1754
1515
|
}
|
|
1755
1516
|
shouldFetchOnReconnect() {
|
|
1756
|
-
return
|
|
1517
|
+
return Fe(this.currentQuery, this.options, this.options.refetchOnReconnect);
|
|
1757
1518
|
}
|
|
1758
1519
|
shouldFetchOnWindowFocus() {
|
|
1759
|
-
return
|
|
1520
|
+
return Fe(this.currentQuery, this.options, this.options.refetchOnWindowFocus);
|
|
1760
1521
|
}
|
|
1761
1522
|
destroy() {
|
|
1762
1523
|
this.listeners = /* @__PURE__ */ new Set(), this.clearStaleTimeout(), this.clearRefetchInterval(), this.currentQuery.removeObserver(this);
|
|
1763
1524
|
}
|
|
1764
1525
|
setOptions(e, t) {
|
|
1765
1526
|
const i = this.options, a = this.currentQuery;
|
|
1766
|
-
if (this.options = this.client.defaultQueryOptions(e),
|
|
1527
|
+
if (this.options = this.client.defaultQueryOptions(e), be(i, this.options) || this.client.getQueryCache().notify({
|
|
1767
1528
|
type: "observerOptionsUpdated",
|
|
1768
1529
|
query: this.currentQuery,
|
|
1769
1530
|
observer: this
|
|
@@ -1771,13 +1532,13 @@ class zi extends Be {
|
|
|
1771
1532
|
throw new Error("Expected enabled to be a boolean");
|
|
1772
1533
|
this.options.queryKey || (this.options.queryKey = i.queryKey), this.updateQuery();
|
|
1773
1534
|
const s = this.hasListeners();
|
|
1774
|
-
s &&
|
|
1535
|
+
s && Ze(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();
|
|
1775
1536
|
const r = this.computeRefetchInterval();
|
|
1776
1537
|
s && (this.currentQuery !== a || this.options.enabled !== i.enabled || r !== this.currentRefetchInterval) && this.updateRefetchInterval(r);
|
|
1777
1538
|
}
|
|
1778
1539
|
getOptimisticResult(e) {
|
|
1779
1540
|
const t = this.client.getQueryCache().build(this.client, e), i = this.createResult(t, e);
|
|
1780
|
-
return
|
|
1541
|
+
return Ai(this, i, e) && (this.currentResult = i, this.currentResultOptions = this.options, this.currentResultState = this.currentQuery.state), i;
|
|
1781
1542
|
}
|
|
1782
1543
|
getCurrentResult() {
|
|
1783
1544
|
return this.currentResult;
|
|
@@ -1823,12 +1584,12 @@ class zi extends Be {
|
|
|
1823
1584
|
executeFetch(e) {
|
|
1824
1585
|
this.updateQuery();
|
|
1825
1586
|
let t = this.currentQuery.fetch(this.options, e);
|
|
1826
|
-
return e != null && e.throwOnError || (t = t.catch(
|
|
1587
|
+
return e != null && e.throwOnError || (t = t.catch(Si)), t;
|
|
1827
1588
|
}
|
|
1828
1589
|
updateStaleTimeout() {
|
|
1829
|
-
if (this.clearStaleTimeout(),
|
|
1590
|
+
if (this.clearStaleTimeout(), oe || this.currentResult.isStale || !Be(this.options.staleTime))
|
|
1830
1591
|
return;
|
|
1831
|
-
const t =
|
|
1592
|
+
const t = yi(this.currentResult.dataUpdatedAt, this.options.staleTime) + 1;
|
|
1832
1593
|
this.staleTimeoutId = setTimeout(() => {
|
|
1833
1594
|
this.currentResult.isStale || this.updateResult();
|
|
1834
1595
|
}, t);
|
|
@@ -1838,8 +1599,8 @@ class zi extends Be {
|
|
|
1838
1599
|
return typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(this.currentResult.data, this.currentQuery) : (e = this.options.refetchInterval) != null ? e : !1;
|
|
1839
1600
|
}
|
|
1840
1601
|
updateRefetchInterval(e) {
|
|
1841
|
-
this.clearRefetchInterval(), this.currentRefetchInterval = e, !(
|
|
1842
|
-
(this.options.refetchIntervalInBackground ||
|
|
1602
|
+
this.clearRefetchInterval(), this.currentRefetchInterval = e, !(oe || this.options.enabled === !1 || !Be(this.currentRefetchInterval) || this.currentRefetchInterval === 0) && (this.refetchIntervalId = setInterval(() => {
|
|
1603
|
+
(this.options.refetchIntervalInBackground || Ci.isFocused()) && this.executeFetch();
|
|
1843
1604
|
}, this.currentRefetchInterval));
|
|
1844
1605
|
}
|
|
1845
1606
|
updateTimers() {
|
|
@@ -1852,78 +1613,78 @@ class zi extends Be {
|
|
|
1852
1613
|
this.refetchIntervalId && (clearInterval(this.refetchIntervalId), this.refetchIntervalId = void 0);
|
|
1853
1614
|
}
|
|
1854
1615
|
createResult(e, t) {
|
|
1855
|
-
const i = this.currentQuery, a = this.options, s = this.currentResult, r = this.currentResultState, o = this.currentResultOptions,
|
|
1856
|
-
state:
|
|
1616
|
+
const i = this.currentQuery, a = this.options, s = this.currentResult, r = this.currentResultState, o = this.currentResultOptions, l = e !== i, u = l ? e.state : this.currentQueryInitialState, d = l ? this.currentResult : this.previousQueryResult, {
|
|
1617
|
+
state: f
|
|
1857
1618
|
} = e;
|
|
1858
1619
|
let {
|
|
1859
1620
|
dataUpdatedAt: c,
|
|
1860
|
-
error:
|
|
1861
|
-
errorUpdatedAt:
|
|
1621
|
+
error: S,
|
|
1622
|
+
errorUpdatedAt: y,
|
|
1862
1623
|
fetchStatus: k,
|
|
1863
|
-
status:
|
|
1864
|
-
} =
|
|
1624
|
+
status: N
|
|
1625
|
+
} = f, O = !1, F = !1, D;
|
|
1865
1626
|
if (t._optimisticResults) {
|
|
1866
|
-
const
|
|
1867
|
-
(
|
|
1868
|
-
}
|
|
1869
|
-
if (t.keepPreviousData && !
|
|
1870
|
-
|
|
1871
|
-
else if (t.select && typeof
|
|
1872
|
-
if (s &&
|
|
1873
|
-
|
|
1627
|
+
const m = this.hasListeners(), p = !m && He(e, t), h = m && Ze(e, i, t, a);
|
|
1628
|
+
(p || h) && (k = Oi(e.options.networkMode) ? "fetching" : "paused", c || (N = "loading")), t._optimisticResults === "isRestoring" && (k = "idle");
|
|
1629
|
+
}
|
|
1630
|
+
if (t.keepPreviousData && !f.dataUpdatedAt && d != null && d.isSuccess && N !== "error")
|
|
1631
|
+
D = d.data, c = d.dataUpdatedAt, N = d.status, O = !0;
|
|
1632
|
+
else if (t.select && typeof f.data != "undefined")
|
|
1633
|
+
if (s && f.data === (r == null ? void 0 : r.data) && t.select === this.selectFn)
|
|
1634
|
+
D = this.selectResult;
|
|
1874
1635
|
else
|
|
1875
1636
|
try {
|
|
1876
|
-
this.selectFn = t.select,
|
|
1877
|
-
} catch (
|
|
1878
|
-
this.selectError =
|
|
1637
|
+
this.selectFn = t.select, D = t.select(f.data), D = Je(s == null ? void 0 : s.data, D, t), this.selectResult = D, this.selectError = null;
|
|
1638
|
+
} catch (m) {
|
|
1639
|
+
this.selectError = m;
|
|
1879
1640
|
}
|
|
1880
1641
|
else
|
|
1881
|
-
|
|
1882
|
-
if (typeof t.placeholderData != "undefined" && typeof
|
|
1883
|
-
let
|
|
1642
|
+
D = f.data;
|
|
1643
|
+
if (typeof t.placeholderData != "undefined" && typeof D == "undefined" && N === "loading") {
|
|
1644
|
+
let m;
|
|
1884
1645
|
if (s != null && s.isPlaceholderData && t.placeholderData === (o == null ? void 0 : o.placeholderData))
|
|
1885
|
-
|
|
1886
|
-
else if (
|
|
1646
|
+
m = s.data;
|
|
1647
|
+
else if (m = typeof t.placeholderData == "function" ? t.placeholderData() : t.placeholderData, t.select && typeof m != "undefined")
|
|
1887
1648
|
try {
|
|
1888
|
-
|
|
1889
|
-
} catch (
|
|
1890
|
-
this.selectError =
|
|
1649
|
+
m = t.select(m), this.selectError = null;
|
|
1650
|
+
} catch (p) {
|
|
1651
|
+
this.selectError = p;
|
|
1891
1652
|
}
|
|
1892
|
-
typeof
|
|
1653
|
+
typeof m != "undefined" && (N = "success", D = Je(s == null ? void 0 : s.data, m, t), F = !0);
|
|
1893
1654
|
}
|
|
1894
|
-
this.selectError && (
|
|
1895
|
-
const
|
|
1655
|
+
this.selectError && (S = this.selectError, D = this.selectResult, y = Date.now(), N = "error");
|
|
1656
|
+
const w = k === "fetching", I = N === "loading", L = N === "error";
|
|
1896
1657
|
return {
|
|
1897
|
-
status:
|
|
1658
|
+
status: N,
|
|
1898
1659
|
fetchStatus: k,
|
|
1899
1660
|
isLoading: I,
|
|
1900
|
-
isSuccess:
|
|
1901
|
-
isError:
|
|
1902
|
-
isInitialLoading: I &&
|
|
1903
|
-
data:
|
|
1661
|
+
isSuccess: N === "success",
|
|
1662
|
+
isError: L,
|
|
1663
|
+
isInitialLoading: I && w,
|
|
1664
|
+
data: D,
|
|
1904
1665
|
dataUpdatedAt: c,
|
|
1905
|
-
error:
|
|
1906
|
-
errorUpdatedAt:
|
|
1907
|
-
failureCount:
|
|
1908
|
-
failureReason:
|
|
1909
|
-
errorUpdateCount:
|
|
1910
|
-
isFetched:
|
|
1911
|
-
isFetchedAfterMount:
|
|
1912
|
-
isFetching:
|
|
1913
|
-
isRefetching:
|
|
1914
|
-
isLoadingError:
|
|
1666
|
+
error: S,
|
|
1667
|
+
errorUpdatedAt: y,
|
|
1668
|
+
failureCount: f.fetchFailureCount,
|
|
1669
|
+
failureReason: f.fetchFailureReason,
|
|
1670
|
+
errorUpdateCount: f.errorUpdateCount,
|
|
1671
|
+
isFetched: f.dataUpdateCount > 0 || f.errorUpdateCount > 0,
|
|
1672
|
+
isFetchedAfterMount: f.dataUpdateCount > u.dataUpdateCount || f.errorUpdateCount > u.errorUpdateCount,
|
|
1673
|
+
isFetching: w,
|
|
1674
|
+
isRefetching: w && !I,
|
|
1675
|
+
isLoadingError: L && f.dataUpdatedAt === 0,
|
|
1915
1676
|
isPaused: k === "paused",
|
|
1916
|
-
isPlaceholderData:
|
|
1917
|
-
isPreviousData:
|
|
1918
|
-
isRefetchError:
|
|
1919
|
-
isStale:
|
|
1677
|
+
isPlaceholderData: F,
|
|
1678
|
+
isPreviousData: O,
|
|
1679
|
+
isRefetchError: L && f.dataUpdatedAt !== 0,
|
|
1680
|
+
isStale: De(e, t),
|
|
1920
1681
|
refetch: this.refetch,
|
|
1921
1682
|
remove: this.remove
|
|
1922
1683
|
};
|
|
1923
1684
|
}
|
|
1924
1685
|
updateResult(e) {
|
|
1925
1686
|
const t = this.currentResult, i = this.createResult(this.currentQuery, this.options);
|
|
1926
|
-
if (this.currentResultState = this.currentQuery.state, this.currentResultOptions = this.options,
|
|
1687
|
+
if (this.currentResultState = this.currentQuery.state, this.currentResultOptions = this.options, be(i, t))
|
|
1927
1688
|
return;
|
|
1928
1689
|
this.currentResult = i;
|
|
1929
1690
|
const a = {
|
|
@@ -1936,10 +1697,10 @@ class zi extends Be {
|
|
|
1936
1697
|
} = this.options, o = typeof r == "function" ? r() : r;
|
|
1937
1698
|
if (o === "all" || !o && !this.trackedProps.size)
|
|
1938
1699
|
return !0;
|
|
1939
|
-
const
|
|
1940
|
-
return this.options.useErrorBoundary &&
|
|
1941
|
-
const
|
|
1942
|
-
return this.currentResult[
|
|
1700
|
+
const l = new Set(o != null ? o : this.trackedProps);
|
|
1701
|
+
return this.options.useErrorBoundary && l.add("error"), Object.keys(this.currentResult).some((u) => {
|
|
1702
|
+
const d = u;
|
|
1703
|
+
return this.currentResult[d] !== t[d] && l.has(d);
|
|
1943
1704
|
});
|
|
1944
1705
|
};
|
|
1945
1706
|
(e == null ? void 0 : e.listeners) !== !1 && s() && (a.listeners = !0), this.notify({
|
|
@@ -1956,21 +1717,21 @@ class zi extends Be {
|
|
|
1956
1717
|
}
|
|
1957
1718
|
onQueryUpdate(e) {
|
|
1958
1719
|
const t = {};
|
|
1959
|
-
e.type === "success" ? t.onSuccess = !e.manual : e.type === "error" && !
|
|
1720
|
+
e.type === "success" ? t.onSuccess = !e.manual : e.type === "error" && !Ti(e.error) && (t.onError = !0), this.updateResult(t), this.hasListeners() && this.updateTimers();
|
|
1960
1721
|
}
|
|
1961
1722
|
notify(e) {
|
|
1962
|
-
|
|
1723
|
+
X.batch(() => {
|
|
1963
1724
|
if (e.onSuccess) {
|
|
1964
1725
|
var t, i, a, s;
|
|
1965
1726
|
(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);
|
|
1966
1727
|
} else if (e.onError) {
|
|
1967
|
-
var r, o,
|
|
1968
|
-
(r = (o = this.options).onError) == null || r.call(o, this.currentResult.error), (
|
|
1728
|
+
var r, o, l, u;
|
|
1729
|
+
(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);
|
|
1969
1730
|
}
|
|
1970
1731
|
e.listeners && this.listeners.forEach(({
|
|
1971
|
-
listener:
|
|
1732
|
+
listener: d
|
|
1972
1733
|
}) => {
|
|
1973
|
-
|
|
1734
|
+
d(this.currentResult);
|
|
1974
1735
|
}), e.cache && this.client.getQueryCache().notify({
|
|
1975
1736
|
query: this.currentQuery,
|
|
1976
1737
|
type: "observerResultsUpdated"
|
|
@@ -1978,42 +1739,42 @@ class zi extends Be {
|
|
|
1978
1739
|
});
|
|
1979
1740
|
}
|
|
1980
1741
|
}
|
|
1981
|
-
function
|
|
1742
|
+
function Li(n, e) {
|
|
1982
1743
|
return e.enabled !== !1 && !n.state.dataUpdatedAt && !(n.state.status === "error" && e.retryOnMount === !1);
|
|
1983
1744
|
}
|
|
1984
|
-
function
|
|
1985
|
-
return
|
|
1745
|
+
function He(n, e) {
|
|
1746
|
+
return Li(n, e) || n.state.dataUpdatedAt > 0 && Fe(n, e, e.refetchOnMount);
|
|
1986
1747
|
}
|
|
1987
|
-
function
|
|
1748
|
+
function Fe(n, e, t) {
|
|
1988
1749
|
if (e.enabled !== !1) {
|
|
1989
1750
|
const i = typeof t == "function" ? t(n) : t;
|
|
1990
|
-
return i === "always" || i !== !1 &&
|
|
1751
|
+
return i === "always" || i !== !1 && De(n, e);
|
|
1991
1752
|
}
|
|
1992
1753
|
return !1;
|
|
1993
1754
|
}
|
|
1994
|
-
function
|
|
1995
|
-
return t.enabled !== !1 && (n !== e || i.enabled === !1) && (!t.suspense || n.state.status !== "error") &&
|
|
1755
|
+
function Ze(n, e, t, i) {
|
|
1756
|
+
return t.enabled !== !1 && (n !== e || i.enabled === !1) && (!t.suspense || n.state.status !== "error") && De(n, t);
|
|
1996
1757
|
}
|
|
1997
|
-
function
|
|
1758
|
+
function De(n, e) {
|
|
1998
1759
|
return n.isStaleByTime(e.staleTime);
|
|
1999
1760
|
}
|
|
2000
|
-
function
|
|
2001
|
-
return t.keepPreviousData ? !1 : t.placeholderData !== void 0 ? e.isPlaceholderData : !
|
|
1761
|
+
function Ai(n, e, t) {
|
|
1762
|
+
return t.keepPreviousData ? !1 : t.placeholderData !== void 0 ? e.isPlaceholderData : !be(n.getCurrentResult(), e);
|
|
2002
1763
|
}
|
|
2003
|
-
const
|
|
2004
|
-
function
|
|
2005
|
-
return n || (e && typeof window != "undefined" ? (window.ReactQueryClientContext || (window.ReactQueryClientContext =
|
|
1764
|
+
const Pi = wt.useSyncExternalStore, Xe = /* @__PURE__ */ M.createContext(void 0), Vi = /* @__PURE__ */ M.createContext(!1);
|
|
1765
|
+
function _i(n, e) {
|
|
1766
|
+
return n || (e && typeof window != "undefined" ? (window.ReactQueryClientContext || (window.ReactQueryClientContext = Xe), window.ReactQueryClientContext) : Xe);
|
|
2006
1767
|
}
|
|
2007
|
-
const
|
|
1768
|
+
const Ui = ({
|
|
2008
1769
|
context: n
|
|
2009
1770
|
} = {}) => {
|
|
2010
|
-
const e = M.useContext(
|
|
1771
|
+
const e = M.useContext(_i(n, M.useContext(Vi)));
|
|
2011
1772
|
if (!e)
|
|
2012
1773
|
throw new Error("No QueryClient set, use QueryClientProvider to set one");
|
|
2013
1774
|
return e;
|
|
2014
|
-
},
|
|
2015
|
-
|
|
2016
|
-
function
|
|
1775
|
+
}, At = /* @__PURE__ */ M.createContext(!1), Mi = () => M.useContext(At);
|
|
1776
|
+
At.Provider;
|
|
1777
|
+
function $i() {
|
|
2017
1778
|
let n = !1;
|
|
2018
1779
|
return {
|
|
2019
1780
|
clearReset: () => {
|
|
@@ -2025,47 +1786,47 @@ function Hi() {
|
|
|
2025
1786
|
isReset: () => n
|
|
2026
1787
|
};
|
|
2027
1788
|
}
|
|
2028
|
-
const
|
|
2029
|
-
function
|
|
1789
|
+
const ji = /* @__PURE__ */ M.createContext($i()), zi = () => M.useContext(ji);
|
|
1790
|
+
function Bi(n, e) {
|
|
2030
1791
|
return typeof n == "function" ? n(...e) : !!n;
|
|
2031
1792
|
}
|
|
2032
|
-
const
|
|
1793
|
+
const Qi = (n, e) => {
|
|
2033
1794
|
(n.suspense || n.useErrorBoundary) && (e.isReset() || (n.retryOnMount = !1));
|
|
2034
|
-
},
|
|
1795
|
+
}, Gi = (n) => {
|
|
2035
1796
|
M.useEffect(() => {
|
|
2036
1797
|
n.clearReset();
|
|
2037
1798
|
}, [n]);
|
|
2038
|
-
},
|
|
1799
|
+
}, Ki = ({
|
|
2039
1800
|
result: n,
|
|
2040
1801
|
errorResetBoundary: e,
|
|
2041
1802
|
useErrorBoundary: t,
|
|
2042
1803
|
query: i
|
|
2043
|
-
}) => n.isError && !e.isReset() && !n.isFetching &&
|
|
1804
|
+
}) => n.isError && !e.isReset() && !n.isFetching && Bi(t, [n.error, i]), Wi = (n) => {
|
|
2044
1805
|
n.suspense && typeof n.staleTime != "number" && (n.staleTime = 1e3);
|
|
2045
|
-
},
|
|
1806
|
+
}, 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(({
|
|
2046
1807
|
data: i
|
|
2047
1808
|
}) => {
|
|
2048
1809
|
n.onSuccess == null || n.onSuccess(i), n.onSettled == null || n.onSettled(i, null);
|
|
2049
1810
|
}).catch((i) => {
|
|
2050
1811
|
t.clearReset(), n.onError == null || n.onError(i), n.onSettled == null || n.onSettled(void 0, i);
|
|
2051
1812
|
});
|
|
2052
|
-
function
|
|
2053
|
-
const t =
|
|
1813
|
+
function Zi(n, e) {
|
|
1814
|
+
const t = Ui({
|
|
2054
1815
|
context: n.context
|
|
2055
|
-
}), i =
|
|
2056
|
-
s._optimisticResults = i ? "isRestoring" : "optimistic", s.onError && (s.onError =
|
|
1816
|
+
}), i = Mi(), a = zi(), s = t.defaultQueryOptions(n);
|
|
1817
|
+
s._optimisticResults = i ? "isRestoring" : "optimistic", s.onError && (s.onError = X.batchCalls(s.onError)), s.onSuccess && (s.onSuccess = X.batchCalls(s.onSuccess)), s.onSettled && (s.onSettled = X.batchCalls(s.onSettled)), Wi(s), Qi(s, a), Gi(a);
|
|
2057
1818
|
const [r] = M.useState(() => new e(t, s)), o = r.getOptimisticResult(s);
|
|
2058
|
-
if (
|
|
2059
|
-
const
|
|
2060
|
-
} : r.subscribe(
|
|
2061
|
-
return r.updateResult(),
|
|
1819
|
+
if (Pi(M.useCallback((l) => {
|
|
1820
|
+
const u = i ? () => {
|
|
1821
|
+
} : r.subscribe(X.batchCalls(l));
|
|
1822
|
+
return r.updateResult(), u;
|
|
2062
1823
|
}, [r, i]), () => r.getCurrentResult(), () => r.getCurrentResult()), M.useEffect(() => {
|
|
2063
1824
|
r.setOptions(s, {
|
|
2064
1825
|
listeners: !1
|
|
2065
1826
|
});
|
|
2066
|
-
}, [s, r]),
|
|
2067
|
-
throw
|
|
2068
|
-
if (
|
|
1827
|
+
}, [s, r]), qi(s, o, i))
|
|
1828
|
+
throw Hi(s, r, a);
|
|
1829
|
+
if (Ki({
|
|
2069
1830
|
result: o,
|
|
2070
1831
|
errorResetBoundary: a,
|
|
2071
1832
|
useErrorBoundary: s.useErrorBoundary,
|
|
@@ -2074,30 +1835,33 @@ function oa(n, e) {
|
|
|
2074
1835
|
throw o.error;
|
|
2075
1836
|
return s.notifyOnChangeProps ? o : r.trackResult(o);
|
|
2076
1837
|
}
|
|
2077
|
-
function
|
|
2078
|
-
const i =
|
|
2079
|
-
return
|
|
1838
|
+
function Xi(n, e, t) {
|
|
1839
|
+
const i = Ni(n, e, t);
|
|
1840
|
+
return Zi(i, Ii);
|
|
2080
1841
|
}
|
|
2081
|
-
const
|
|
2082
|
-
const
|
|
1842
|
+
const Yi = () => ["account"], js = () => {
|
|
1843
|
+
const n = qn((a) => {
|
|
1844
|
+
var s;
|
|
1845
|
+
return (s = a.config) == null ? void 0 : s.account;
|
|
1846
|
+
}), [e, t] = ln(Ee), i = Xi(Yi(), () => It.get(n), {
|
|
2083
1847
|
enabled: !!n && !e,
|
|
2084
1848
|
refetchOnWindowFocus: !1,
|
|
2085
1849
|
refetchOnMount: !1
|
|
2086
1850
|
});
|
|
2087
|
-
return
|
|
1851
|
+
return ht(() => {
|
|
2088
1852
|
const a = i.data;
|
|
2089
1853
|
!i.isSuccess || !a || t(a);
|
|
2090
1854
|
}, [i.status]), {
|
|
2091
1855
|
findQuery: i,
|
|
2092
1856
|
account: e
|
|
2093
1857
|
};
|
|
2094
|
-
},
|
|
2095
|
-
async function
|
|
2096
|
-
const e = await
|
|
2097
|
-
return
|
|
1858
|
+
}, ea = gt();
|
|
1859
|
+
async function ta(n) {
|
|
1860
|
+
const e = await It.get(n);
|
|
1861
|
+
return ea.set(Ee, e), e;
|
|
2098
1862
|
}
|
|
2099
|
-
var
|
|
2100
|
-
const
|
|
1863
|
+
var na = /* @__PURE__ */ ((n) => (n.CREATED = "CREATED", n.STARTING = "STARTING", n.LIVE = "LIVE", n.FINALIZED = "FINALIZED", n))(na || {});
|
|
1864
|
+
const zs = {
|
|
2101
1865
|
ALL: "*",
|
|
2102
1866
|
CORE: "core:**",
|
|
2103
1867
|
LIVE_STREAMING_EVENT: "event:**",
|
|
@@ -2109,77 +1873,77 @@ const Xs = {
|
|
|
2109
1873
|
SNACK_SIZE_VIDEO_ADMIN: "ssv-admin:**",
|
|
2110
1874
|
UI: "ui:**",
|
|
2111
1875
|
UTILS: "utils:**"
|
|
2112
|
-
},
|
|
1876
|
+
}, Bs = {
|
|
2113
1877
|
EVENT_STATUS_CHANGED: "event:statusChanged"
|
|
2114
1878
|
};
|
|
2115
|
-
var
|
|
2116
|
-
function
|
|
1879
|
+
var ia = /* @__PURE__ */ ((n) => (n.English = "en", n.Spanish = "es", n.Portuguese = "pt", n))(ia || {}), aa = /* @__PURE__ */ ((n) => (n.COMBO = "Combo", n))(aa || {}), sa = /* @__PURE__ */ ((n) => (n.VTEX = "VTEX", n.PLATFORM = "platform", n.CACE = "CACE", n.GLOBAL_PAGE = "globalPage", n.DEV_LOCAL = "dev:local", n.CUSTOMIZATION = "customization", n.FAST_STORE = "faststore", n))(sa || {});
|
|
1880
|
+
function ra(n) {
|
|
2117
1881
|
const e = Object.values(n);
|
|
2118
1882
|
return Object.assign({}, ...e);
|
|
2119
1883
|
}
|
|
2120
|
-
function
|
|
1884
|
+
function oa(n) {
|
|
2121
1885
|
return Object.entries(n).reduce(
|
|
2122
1886
|
(e, [t, i]) => {
|
|
2123
|
-
const a =
|
|
1887
|
+
const a = ra(i);
|
|
2124
1888
|
return { ...e, [t]: a };
|
|
2125
1889
|
},
|
|
2126
1890
|
{}
|
|
2127
1891
|
);
|
|
2128
1892
|
}
|
|
2129
|
-
function
|
|
2130
|
-
const t =
|
|
1893
|
+
function la(n, e) {
|
|
1894
|
+
const t = oa(e);
|
|
2131
1895
|
Object.entries(t).forEach(([i, a]) => {
|
|
2132
1896
|
n.addResourceBundle(i, "translation", a, !0);
|
|
2133
1897
|
});
|
|
2134
1898
|
}
|
|
2135
|
-
function
|
|
1899
|
+
function da(n, e) {
|
|
2136
1900
|
if (!(n instanceof e))
|
|
2137
1901
|
throw new TypeError("Cannot call a class as a function");
|
|
2138
1902
|
}
|
|
2139
|
-
function
|
|
1903
|
+
function Y(n) {
|
|
2140
1904
|
"@babel/helpers - typeof";
|
|
2141
|
-
return
|
|
1905
|
+
return Y = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
2142
1906
|
return typeof e;
|
|
2143
1907
|
} : function(e) {
|
|
2144
1908
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
2145
|
-
},
|
|
1909
|
+
}, Y(n);
|
|
2146
1910
|
}
|
|
2147
|
-
function
|
|
2148
|
-
if (
|
|
1911
|
+
function ua(n, e) {
|
|
1912
|
+
if (Y(n) !== "object" || n === null)
|
|
2149
1913
|
return n;
|
|
2150
1914
|
var t = n[Symbol.toPrimitive];
|
|
2151
1915
|
if (t !== void 0) {
|
|
2152
1916
|
var i = t.call(n, e || "default");
|
|
2153
|
-
if (
|
|
1917
|
+
if (Y(i) !== "object")
|
|
2154
1918
|
return i;
|
|
2155
1919
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
2156
1920
|
}
|
|
2157
1921
|
return (e === "string" ? String : Number)(n);
|
|
2158
1922
|
}
|
|
2159
|
-
function
|
|
2160
|
-
var e =
|
|
2161
|
-
return
|
|
1923
|
+
function ca(n) {
|
|
1924
|
+
var e = ua(n, "string");
|
|
1925
|
+
return Y(e) === "symbol" ? e : String(e);
|
|
2162
1926
|
}
|
|
2163
|
-
function
|
|
1927
|
+
function Ye(n, e) {
|
|
2164
1928
|
for (var t = 0; t < e.length; t++) {
|
|
2165
1929
|
var i = e[t];
|
|
2166
|
-
i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(n,
|
|
1930
|
+
i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(n, ca(i.key), i);
|
|
2167
1931
|
}
|
|
2168
1932
|
}
|
|
2169
|
-
function
|
|
2170
|
-
return e &&
|
|
1933
|
+
function ma(n, e, t) {
|
|
1934
|
+
return e && Ye(n.prototype, e), t && Ye(n, t), Object.defineProperty(n, "prototype", {
|
|
2171
1935
|
writable: !1
|
|
2172
1936
|
}), n;
|
|
2173
1937
|
}
|
|
2174
|
-
var
|
|
2175
|
-
function
|
|
2176
|
-
return
|
|
1938
|
+
var Pt = [], fa = Pt.forEach, pa = Pt.slice;
|
|
1939
|
+
function ha(n) {
|
|
1940
|
+
return fa.call(pa.call(arguments, 1), function(e) {
|
|
2177
1941
|
if (e)
|
|
2178
1942
|
for (var t in e)
|
|
2179
1943
|
n[t] === void 0 && (n[t] = e[t]);
|
|
2180
1944
|
}), n;
|
|
2181
1945
|
}
|
|
2182
|
-
var
|
|
1946
|
+
var et = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, ga = function(e, t, i) {
|
|
2183
1947
|
var a = i || {};
|
|
2184
1948
|
a.path = a.path || "/";
|
|
2185
1949
|
var s = encodeURIComponent(t), r = "".concat(e, "=").concat(s);
|
|
@@ -2190,12 +1954,12 @@ var ft = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Ea = function(e, t, i) {
|
|
|
2190
1954
|
r += "; Max-Age=".concat(Math.floor(o));
|
|
2191
1955
|
}
|
|
2192
1956
|
if (a.domain) {
|
|
2193
|
-
if (!
|
|
1957
|
+
if (!et.test(a.domain))
|
|
2194
1958
|
throw new TypeError("option domain is invalid");
|
|
2195
1959
|
r += "; Domain=".concat(a.domain);
|
|
2196
1960
|
}
|
|
2197
1961
|
if (a.path) {
|
|
2198
|
-
if (!
|
|
1962
|
+
if (!et.test(a.path))
|
|
2199
1963
|
throw new TypeError("option path is invalid");
|
|
2200
1964
|
r += "; Path=".concat(a.path);
|
|
2201
1965
|
}
|
|
@@ -2205,8 +1969,8 @@ var ft = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Ea = function(e, t, i) {
|
|
|
2205
1969
|
r += "; Expires=".concat(a.expires.toUTCString());
|
|
2206
1970
|
}
|
|
2207
1971
|
if (a.httpOnly && (r += "; HttpOnly"), a.secure && (r += "; Secure"), a.sameSite) {
|
|
2208
|
-
var
|
|
2209
|
-
switch (
|
|
1972
|
+
var l = typeof a.sameSite == "string" ? a.sameSite.toLowerCase() : a.sameSite;
|
|
1973
|
+
switch (l) {
|
|
2210
1974
|
case !0:
|
|
2211
1975
|
r += "; SameSite=Strict";
|
|
2212
1976
|
break;
|
|
@@ -2224,13 +1988,13 @@ var ft = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Ea = function(e, t, i) {
|
|
|
2224
1988
|
}
|
|
2225
1989
|
}
|
|
2226
1990
|
return r;
|
|
2227
|
-
},
|
|
1991
|
+
}, tt = {
|
|
2228
1992
|
create: function(e, t, i, a) {
|
|
2229
1993
|
var s = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
|
|
2230
1994
|
path: "/",
|
|
2231
1995
|
sameSite: "strict"
|
|
2232
1996
|
};
|
|
2233
|
-
i && (s.expires = /* @__PURE__ */ new Date(), s.expires.setTime(s.expires.getTime() + i * 60 * 1e3)), a && (s.domain = a), document.cookie =
|
|
1997
|
+
i && (s.expires = /* @__PURE__ */ new Date(), s.expires.setTime(s.expires.getTime() + i * 60 * 1e3)), a && (s.domain = a), document.cookie = ga(e, encodeURIComponent(t), s);
|
|
2234
1998
|
},
|
|
2235
1999
|
read: function(e) {
|
|
2236
2000
|
for (var t = "".concat(e, "="), i = document.cookie.split(";"), a = 0; a < i.length; a++) {
|
|
@@ -2244,20 +2008,20 @@ var ft = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Ea = function(e, t, i) {
|
|
|
2244
2008
|
remove: function(e) {
|
|
2245
2009
|
this.create(e, "", -1);
|
|
2246
2010
|
}
|
|
2247
|
-
},
|
|
2011
|
+
}, ka = {
|
|
2248
2012
|
name: "cookie",
|
|
2249
2013
|
lookup: function(e) {
|
|
2250
2014
|
var t;
|
|
2251
2015
|
if (e.lookupCookie && typeof document != "undefined") {
|
|
2252
|
-
var i =
|
|
2016
|
+
var i = tt.read(e.lookupCookie);
|
|
2253
2017
|
i && (t = i);
|
|
2254
2018
|
}
|
|
2255
2019
|
return t;
|
|
2256
2020
|
},
|
|
2257
2021
|
cacheUserLanguage: function(e, t) {
|
|
2258
|
-
t.lookupCookie && typeof document != "undefined" &&
|
|
2022
|
+
t.lookupCookie && typeof document != "undefined" && tt.create(t.lookupCookie, e, t.cookieMinutes, t.cookieDomain, t.cookieOptions);
|
|
2259
2023
|
}
|
|
2260
|
-
},
|
|
2024
|
+
}, va = {
|
|
2261
2025
|
name: "querystring",
|
|
2262
2026
|
lookup: function(e) {
|
|
2263
2027
|
var t;
|
|
@@ -2267,62 +2031,62 @@ var ft = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Ea = function(e, t, i) {
|
|
|
2267
2031
|
for (var a = i.substring(1), s = a.split("&"), r = 0; r < s.length; r++) {
|
|
2268
2032
|
var o = s[r].indexOf("=");
|
|
2269
2033
|
if (o > 0) {
|
|
2270
|
-
var
|
|
2271
|
-
|
|
2034
|
+
var l = s[r].substring(0, o);
|
|
2035
|
+
l === e.lookupQuerystring && (t = s[r].substring(o + 1));
|
|
2272
2036
|
}
|
|
2273
2037
|
}
|
|
2274
2038
|
}
|
|
2275
2039
|
return t;
|
|
2276
2040
|
}
|
|
2277
|
-
},
|
|
2278
|
-
if (
|
|
2279
|
-
return
|
|
2041
|
+
}, J = null, nt = function() {
|
|
2042
|
+
if (J !== null)
|
|
2043
|
+
return J;
|
|
2280
2044
|
try {
|
|
2281
|
-
|
|
2045
|
+
J = window !== "undefined" && window.localStorage !== null;
|
|
2282
2046
|
var e = "i18next.translate.boo";
|
|
2283
2047
|
window.localStorage.setItem(e, "foo"), window.localStorage.removeItem(e);
|
|
2284
2048
|
} catch {
|
|
2285
|
-
|
|
2049
|
+
J = !1;
|
|
2286
2050
|
}
|
|
2287
|
-
return
|
|
2288
|
-
},
|
|
2051
|
+
return J;
|
|
2052
|
+
}, Sa = {
|
|
2289
2053
|
name: "localStorage",
|
|
2290
2054
|
lookup: function(e) {
|
|
2291
2055
|
var t;
|
|
2292
|
-
if (e.lookupLocalStorage &&
|
|
2056
|
+
if (e.lookupLocalStorage && nt()) {
|
|
2293
2057
|
var i = window.localStorage.getItem(e.lookupLocalStorage);
|
|
2294
2058
|
i && (t = i);
|
|
2295
2059
|
}
|
|
2296
2060
|
return t;
|
|
2297
2061
|
},
|
|
2298
2062
|
cacheUserLanguage: function(e, t) {
|
|
2299
|
-
t.lookupLocalStorage &&
|
|
2063
|
+
t.lookupLocalStorage && nt() && window.localStorage.setItem(t.lookupLocalStorage, e);
|
|
2300
2064
|
}
|
|
2301
|
-
},
|
|
2302
|
-
if (
|
|
2303
|
-
return
|
|
2065
|
+
}, q = null, it = function() {
|
|
2066
|
+
if (q !== null)
|
|
2067
|
+
return q;
|
|
2304
2068
|
try {
|
|
2305
|
-
|
|
2069
|
+
q = window !== "undefined" && window.sessionStorage !== null;
|
|
2306
2070
|
var e = "i18next.translate.boo";
|
|
2307
2071
|
window.sessionStorage.setItem(e, "foo"), window.sessionStorage.removeItem(e);
|
|
2308
2072
|
} catch {
|
|
2309
|
-
|
|
2073
|
+
q = !1;
|
|
2310
2074
|
}
|
|
2311
|
-
return
|
|
2312
|
-
},
|
|
2075
|
+
return q;
|
|
2076
|
+
}, ya = {
|
|
2313
2077
|
name: "sessionStorage",
|
|
2314
2078
|
lookup: function(e) {
|
|
2315
2079
|
var t;
|
|
2316
|
-
if (e.lookupSessionStorage &&
|
|
2080
|
+
if (e.lookupSessionStorage && it()) {
|
|
2317
2081
|
var i = window.sessionStorage.getItem(e.lookupSessionStorage);
|
|
2318
2082
|
i && (t = i);
|
|
2319
2083
|
}
|
|
2320
2084
|
return t;
|
|
2321
2085
|
},
|
|
2322
2086
|
cacheUserLanguage: function(e, t) {
|
|
2323
|
-
t.lookupSessionStorage &&
|
|
2087
|
+
t.lookupSessionStorage && it() && window.sessionStorage.setItem(t.lookupSessionStorage, e);
|
|
2324
2088
|
}
|
|
2325
|
-
},
|
|
2089
|
+
}, Na = {
|
|
2326
2090
|
name: "navigator",
|
|
2327
2091
|
lookup: function(e) {
|
|
2328
2092
|
var t = [];
|
|
@@ -2334,13 +2098,13 @@ var ft = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Ea = function(e, t, i) {
|
|
|
2334
2098
|
}
|
|
2335
2099
|
return t.length > 0 ? t : void 0;
|
|
2336
2100
|
}
|
|
2337
|
-
},
|
|
2101
|
+
}, ba = {
|
|
2338
2102
|
name: "htmlTag",
|
|
2339
2103
|
lookup: function(e) {
|
|
2340
2104
|
var t, i = e.htmlTag || (typeof document != "undefined" ? document.documentElement : null);
|
|
2341
2105
|
return i && typeof i.getAttribute == "function" && (t = i.getAttribute("lang")), t;
|
|
2342
2106
|
}
|
|
2343
|
-
},
|
|
2107
|
+
}, Fa = {
|
|
2344
2108
|
name: "path",
|
|
2345
2109
|
lookup: function(e) {
|
|
2346
2110
|
var t;
|
|
@@ -2356,7 +2120,7 @@ var ft = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Ea = function(e, t, i) {
|
|
|
2356
2120
|
}
|
|
2357
2121
|
return t;
|
|
2358
2122
|
}
|
|
2359
|
-
},
|
|
2123
|
+
}, wa = {
|
|
2360
2124
|
name: "subdomain",
|
|
2361
2125
|
lookup: function(e) {
|
|
2362
2126
|
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);
|
|
@@ -2364,7 +2128,7 @@ var ft = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Ea = function(e, t, i) {
|
|
|
2364
2128
|
return i[t];
|
|
2365
2129
|
}
|
|
2366
2130
|
};
|
|
2367
|
-
function
|
|
2131
|
+
function Ca() {
|
|
2368
2132
|
return {
|
|
2369
2133
|
order: ["querystring", "cookie", "localStorage", "sessionStorage", "navigator", "htmlTag"],
|
|
2370
2134
|
lookupQuerystring: "lng",
|
|
@@ -2381,20 +2145,20 @@ function Pa() {
|
|
|
2381
2145
|
}
|
|
2382
2146
|
};
|
|
2383
2147
|
}
|
|
2384
|
-
var
|
|
2148
|
+
var Vt = /* @__PURE__ */ function() {
|
|
2385
2149
|
function n(e) {
|
|
2386
2150
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
2387
|
-
|
|
2151
|
+
da(this, n), this.type = "languageDetector", this.detectors = {}, this.init(e, t);
|
|
2388
2152
|
}
|
|
2389
|
-
return
|
|
2153
|
+
return ma(n, [{
|
|
2390
2154
|
key: "init",
|
|
2391
2155
|
value: function(t) {
|
|
2392
2156
|
var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
2393
2157
|
this.services = t || {
|
|
2394
2158
|
languageUtils: {}
|
|
2395
|
-
}, this.options =
|
|
2159
|
+
}, this.options = ha(i, this.options || {}, Ca()), typeof this.options.convertDetectedLanguage == "string" && this.options.convertDetectedLanguage.indexOf("15897") > -1 && (this.options.convertDetectedLanguage = function(s) {
|
|
2396
2160
|
return s.replace("-", "_");
|
|
2397
|
-
}), this.options.lookupFromUrlIndex && (this.options.lookupFromPathIndex = this.options.lookupFromUrlIndex), this.i18nOptions = a, this.addDetector(
|
|
2161
|
+
}), this.options.lookupFromUrlIndex && (this.options.lookupFromPathIndex = this.options.lookupFromUrlIndex), this.i18nOptions = a, this.addDetector(ka), this.addDetector(va), this.addDetector(Sa), this.addDetector(ya), this.addDetector(Na), this.addDetector(ba), this.addDetector(Fa), this.addDetector(wa);
|
|
2398
2162
|
}
|
|
2399
2163
|
}, {
|
|
2400
2164
|
key: "addDetector",
|
|
@@ -2426,9 +2190,9 @@ var Zt = /* @__PURE__ */ function() {
|
|
|
2426
2190
|
}
|
|
2427
2191
|
}]), n;
|
|
2428
2192
|
}();
|
|
2429
|
-
|
|
2430
|
-
function
|
|
2431
|
-
n.use(e).use(
|
|
2193
|
+
Vt.type = "languageDetector";
|
|
2194
|
+
function Ea(n, e) {
|
|
2195
|
+
n.use(e).use(Vt).init({
|
|
2432
2196
|
resources: {},
|
|
2433
2197
|
fallbackLng: "en",
|
|
2434
2198
|
debug: !1,
|
|
@@ -2467,7 +2231,7 @@ function Va(n, e) {
|
|
|
2467
2231
|
}
|
|
2468
2232
|
});
|
|
2469
2233
|
}
|
|
2470
|
-
const
|
|
2234
|
+
const xa = {
|
|
2471
2235
|
type: "logger",
|
|
2472
2236
|
log(n) {
|
|
2473
2237
|
this.output("log", n);
|
|
@@ -2482,14 +2246,14 @@ const _a = {
|
|
|
2482
2246
|
console && console[n] && console[n].apply(console, e);
|
|
2483
2247
|
}
|
|
2484
2248
|
};
|
|
2485
|
-
class
|
|
2249
|
+
class le {
|
|
2486
2250
|
constructor(e) {
|
|
2487
2251
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
2488
2252
|
this.init(e, t);
|
|
2489
2253
|
}
|
|
2490
2254
|
init(e) {
|
|
2491
2255
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
2492
|
-
this.prefix = t.prefix || "i18next:", this.logger = e ||
|
|
2256
|
+
this.prefix = t.prefix || "i18next:", this.logger = e || xa, this.options = t, this.debug = t.debug;
|
|
2493
2257
|
}
|
|
2494
2258
|
log() {
|
|
2495
2259
|
for (var e = arguments.length, t = new Array(e), i = 0; i < e; i++)
|
|
@@ -2515,17 +2279,17 @@ class pe {
|
|
|
2515
2279
|
return a && !this.debug ? null : (typeof e[0] == "string" && (e[0] = `${i}${this.prefix} ${e[0]}`), this.logger[t](e));
|
|
2516
2280
|
}
|
|
2517
2281
|
create(e) {
|
|
2518
|
-
return new
|
|
2282
|
+
return new le(this.logger, {
|
|
2519
2283
|
prefix: `${this.prefix}:${e}:`,
|
|
2520
2284
|
...this.options
|
|
2521
2285
|
});
|
|
2522
2286
|
}
|
|
2523
2287
|
clone(e) {
|
|
2524
|
-
return e = e || this.options, e.prefix = e.prefix || this.prefix, new
|
|
2288
|
+
return e = e || this.options, e.prefix = e.prefix || this.prefix, new le(this.logger, e);
|
|
2525
2289
|
}
|
|
2526
2290
|
}
|
|
2527
|
-
var
|
|
2528
|
-
class
|
|
2291
|
+
var $ = new le();
|
|
2292
|
+
class ge {
|
|
2529
2293
|
constructor() {
|
|
2530
2294
|
this.observers = {};
|
|
2531
2295
|
}
|
|
@@ -2553,22 +2317,22 @@ class Ne {
|
|
|
2553
2317
|
});
|
|
2554
2318
|
}
|
|
2555
2319
|
}
|
|
2556
|
-
function
|
|
2320
|
+
function H() {
|
|
2557
2321
|
let n, e;
|
|
2558
2322
|
const t = new Promise((i, a) => {
|
|
2559
2323
|
n = i, e = a;
|
|
2560
2324
|
});
|
|
2561
2325
|
return t.resolve = n, t.reject = e, t;
|
|
2562
2326
|
}
|
|
2563
|
-
function
|
|
2327
|
+
function at(n) {
|
|
2564
2328
|
return n == null ? "" : "" + n;
|
|
2565
2329
|
}
|
|
2566
|
-
function
|
|
2330
|
+
function Oa(n, e, t) {
|
|
2567
2331
|
n.forEach((i) => {
|
|
2568
2332
|
e[i] && (t[i] = e[i]);
|
|
2569
2333
|
});
|
|
2570
2334
|
}
|
|
2571
|
-
function
|
|
2335
|
+
function Ie(n, e, t) {
|
|
2572
2336
|
function i(r) {
|
|
2573
2337
|
return r && r.indexOf("###") > -1 ? r.replace(/###/g, ".") : r;
|
|
2574
2338
|
}
|
|
@@ -2587,41 +2351,41 @@ function Ke(n, e, t) {
|
|
|
2587
2351
|
k: i(s.shift())
|
|
2588
2352
|
};
|
|
2589
2353
|
}
|
|
2590
|
-
function
|
|
2354
|
+
function st(n, e, t) {
|
|
2591
2355
|
const {
|
|
2592
2356
|
obj: i,
|
|
2593
2357
|
k: a
|
|
2594
|
-
} =
|
|
2358
|
+
} = Ie(n, e, Object);
|
|
2595
2359
|
i[a] = t;
|
|
2596
2360
|
}
|
|
2597
|
-
function
|
|
2361
|
+
function Ra(n, e, t, i) {
|
|
2598
2362
|
const {
|
|
2599
2363
|
obj: a,
|
|
2600
2364
|
k: s
|
|
2601
|
-
} =
|
|
2365
|
+
} = Ie(n, e, Object);
|
|
2602
2366
|
a[s] = a[s] || [], i && (a[s] = a[s].concat(t)), i || a[s].push(t);
|
|
2603
2367
|
}
|
|
2604
|
-
function
|
|
2368
|
+
function de(n, e) {
|
|
2605
2369
|
const {
|
|
2606
2370
|
obj: t,
|
|
2607
2371
|
k: i
|
|
2608
|
-
} =
|
|
2372
|
+
} = Ie(n, e);
|
|
2609
2373
|
if (t)
|
|
2610
2374
|
return t[i];
|
|
2611
2375
|
}
|
|
2612
|
-
function
|
|
2613
|
-
const i =
|
|
2614
|
-
return i !== void 0 ? i :
|
|
2376
|
+
function Ta(n, e, t) {
|
|
2377
|
+
const i = de(n, t);
|
|
2378
|
+
return i !== void 0 ? i : de(e, t);
|
|
2615
2379
|
}
|
|
2616
|
-
function
|
|
2380
|
+
function _t(n, e, t) {
|
|
2617
2381
|
for (const i in e)
|
|
2618
|
-
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]) :
|
|
2382
|
+
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]) : _t(n[i], e[i], t) : n[i] = e[i]);
|
|
2619
2383
|
return n;
|
|
2620
2384
|
}
|
|
2621
|
-
function
|
|
2385
|
+
function B(n) {
|
|
2622
2386
|
return n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
|
|
2623
2387
|
}
|
|
2624
|
-
var
|
|
2388
|
+
var Da = {
|
|
2625
2389
|
"&": "&",
|
|
2626
2390
|
"<": "<",
|
|
2627
2391
|
">": ">",
|
|
@@ -2629,13 +2393,13 @@ var $a = {
|
|
|
2629
2393
|
"'": "'",
|
|
2630
2394
|
"/": "/"
|
|
2631
2395
|
};
|
|
2632
|
-
function
|
|
2633
|
-
return typeof n == "string" ? n.replace(/[&<>"'\/]/g, (e) =>
|
|
2396
|
+
function Ia(n) {
|
|
2397
|
+
return typeof n == "string" ? n.replace(/[&<>"'\/]/g, (e) => Da[e]) : n;
|
|
2634
2398
|
}
|
|
2635
|
-
const
|
|
2636
|
-
function
|
|
2399
|
+
const La = [" ", ",", "?", "!", ";"];
|
|
2400
|
+
function Aa(n, e, t) {
|
|
2637
2401
|
e = e || "", t = t || "";
|
|
2638
|
-
const i =
|
|
2402
|
+
const i = La.filter((r) => e.indexOf(r) < 0 && t.indexOf(r) < 0);
|
|
2639
2403
|
if (i.length === 0)
|
|
2640
2404
|
return !0;
|
|
2641
2405
|
const a = new RegExp(`(${i.map((r) => r === "?" ? "\\?" : r).join("|")})`);
|
|
@@ -2646,7 +2410,7 @@ function Qa(n, e, t) {
|
|
|
2646
2410
|
}
|
|
2647
2411
|
return s;
|
|
2648
2412
|
}
|
|
2649
|
-
function
|
|
2413
|
+
function ue(n, e) {
|
|
2650
2414
|
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ".";
|
|
2651
2415
|
if (!n)
|
|
2652
2416
|
return;
|
|
@@ -2658,30 +2422,30 @@ function ge(n, e) {
|
|
|
2658
2422
|
if (!a || typeof a[i[s]] == "string" && s + 1 < i.length)
|
|
2659
2423
|
return;
|
|
2660
2424
|
if (a[i[s]] === void 0) {
|
|
2661
|
-
let r = 2, o = i.slice(s, s + r).join(t),
|
|
2662
|
-
for (;
|
|
2663
|
-
r++, o = i.slice(s, s + r).join(t),
|
|
2664
|
-
if (
|
|
2425
|
+
let r = 2, o = i.slice(s, s + r).join(t), l = a[o];
|
|
2426
|
+
for (; l === void 0 && i.length > s + r; )
|
|
2427
|
+
r++, o = i.slice(s, s + r).join(t), l = a[o];
|
|
2428
|
+
if (l === void 0)
|
|
2665
2429
|
return;
|
|
2666
|
-
if (
|
|
2430
|
+
if (l === null)
|
|
2667
2431
|
return null;
|
|
2668
2432
|
if (e.endsWith(o)) {
|
|
2669
|
-
if (typeof
|
|
2670
|
-
return
|
|
2671
|
-
if (o && typeof
|
|
2672
|
-
return
|
|
2433
|
+
if (typeof l == "string")
|
|
2434
|
+
return l;
|
|
2435
|
+
if (o && typeof l[o] == "string")
|
|
2436
|
+
return l[o];
|
|
2673
2437
|
}
|
|
2674
|
-
const
|
|
2675
|
-
return
|
|
2438
|
+
const u = i.slice(s + r).join(t);
|
|
2439
|
+
return u ? ue(l, u, t) : void 0;
|
|
2676
2440
|
}
|
|
2677
2441
|
a = a[i[s]];
|
|
2678
2442
|
}
|
|
2679
2443
|
return a;
|
|
2680
2444
|
}
|
|
2681
|
-
function
|
|
2445
|
+
function ce(n) {
|
|
2682
2446
|
return n && n.indexOf("_") > 0 ? n.replace("_", "-") : n;
|
|
2683
2447
|
}
|
|
2684
|
-
class
|
|
2448
|
+
class rt extends ge {
|
|
2685
2449
|
constructor(e) {
|
|
2686
2450
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
2687
2451
|
ns: ["translation"],
|
|
@@ -2701,8 +2465,8 @@ class St extends Ne {
|
|
|
2701
2465
|
const s = a.keySeparator !== void 0 ? a.keySeparator : this.options.keySeparator, r = a.ignoreJSONStructure !== void 0 ? a.ignoreJSONStructure : this.options.ignoreJSONStructure;
|
|
2702
2466
|
let o = [e, t];
|
|
2703
2467
|
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("."));
|
|
2704
|
-
const
|
|
2705
|
-
return
|
|
2468
|
+
const l = de(this.data, o);
|
|
2469
|
+
return l || !r || typeof i != "string" ? l : ue(this.data && this.data[e] && this.data[e][t], i, s);
|
|
2706
2470
|
}
|
|
2707
2471
|
addResource(e, t, i, a) {
|
|
2708
2472
|
let s = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
|
|
@@ -2710,7 +2474,7 @@ class St extends Ne {
|
|
|
2710
2474
|
};
|
|
2711
2475
|
const r = s.keySeparator !== void 0 ? s.keySeparator : this.options.keySeparator;
|
|
2712
2476
|
let o = [e, t];
|
|
2713
|
-
i && (o = o.concat(r ? i.split(r) : i)), e.indexOf(".") > -1 && (o = e.split("."), a = t, t = o[1]), this.addNamespaces(t),
|
|
2477
|
+
i && (o = o.concat(r ? i.split(r) : i)), e.indexOf(".") > -1 && (o = e.split("."), a = t, t = o[1]), this.addNamespaces(t), st(this.data, o, a), s.silent || this.emit("added", e, t, i, a);
|
|
2714
2478
|
}
|
|
2715
2479
|
addResources(e, t, i) {
|
|
2716
2480
|
let a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {
|
|
@@ -2727,11 +2491,11 @@ class St extends Ne {
|
|
|
2727
2491
|
silent: !1
|
|
2728
2492
|
}, o = [e, t];
|
|
2729
2493
|
e.indexOf(".") > -1 && (o = e.split("."), a = i, i = t, t = o[1]), this.addNamespaces(t);
|
|
2730
|
-
let
|
|
2731
|
-
a ?
|
|
2732
|
-
...
|
|
2494
|
+
let l = de(this.data, o) || {};
|
|
2495
|
+
a ? _t(l, i, s) : l = {
|
|
2496
|
+
...l,
|
|
2733
2497
|
...i
|
|
2734
|
-
},
|
|
2498
|
+
}, st(this.data, o, l), r.silent || this.emit("added", e, t, i);
|
|
2735
2499
|
}
|
|
2736
2500
|
removeResourceBundle(e, t) {
|
|
2737
2501
|
this.hasResourceBundle(e, t) && delete this.data[e][t], this.removeNamespaces(t), this.emit("removed", e, t);
|
|
@@ -2755,7 +2519,7 @@ class St extends Ne {
|
|
|
2755
2519
|
return this.data;
|
|
2756
2520
|
}
|
|
2757
2521
|
}
|
|
2758
|
-
var
|
|
2522
|
+
var Ut = {
|
|
2759
2523
|
processors: {},
|
|
2760
2524
|
addPostProcessor(n) {
|
|
2761
2525
|
this.processors[n.name] = n;
|
|
@@ -2766,11 +2530,11 @@ var Yt = {
|
|
|
2766
2530
|
}), e;
|
|
2767
2531
|
}
|
|
2768
2532
|
};
|
|
2769
|
-
const
|
|
2770
|
-
class
|
|
2533
|
+
const ot = {};
|
|
2534
|
+
class me extends ge {
|
|
2771
2535
|
constructor(e) {
|
|
2772
2536
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
2773
|
-
super(),
|
|
2537
|
+
super(), Oa(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = $.create("translator");
|
|
2774
2538
|
}
|
|
2775
2539
|
changeLanguage(e) {
|
|
2776
2540
|
e && (this.language = e);
|
|
@@ -2789,16 +2553,16 @@ class ve extends Ne {
|
|
|
2789
2553
|
i === void 0 && (i = ":");
|
|
2790
2554
|
const a = t.keySeparator !== void 0 ? t.keySeparator : this.options.keySeparator;
|
|
2791
2555
|
let s = t.ns || this.options.defaultNS || [];
|
|
2792
|
-
const r = i && e.indexOf(i) > -1, o = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !
|
|
2556
|
+
const r = i && e.indexOf(i) > -1, o = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !Aa(e, i, a);
|
|
2793
2557
|
if (r && !o) {
|
|
2794
|
-
const
|
|
2795
|
-
if (
|
|
2558
|
+
const l = e.match(this.interpolator.nestingRegexp);
|
|
2559
|
+
if (l && l.length > 0)
|
|
2796
2560
|
return {
|
|
2797
2561
|
key: e,
|
|
2798
2562
|
namespaces: s
|
|
2799
2563
|
};
|
|
2800
|
-
const
|
|
2801
|
-
(i !== a || i === a && this.options.ns.indexOf(
|
|
2564
|
+
const u = e.split(i);
|
|
2565
|
+
(i !== a || i === a && this.options.ns.indexOf(u[0]) > -1) && (s = u.shift()), e = u.join(a);
|
|
2802
2566
|
}
|
|
2803
2567
|
return typeof s == "string" && (s = [s]), {
|
|
2804
2568
|
key: e,
|
|
@@ -2814,90 +2578,90 @@ class ve extends Ne {
|
|
|
2814
2578
|
const a = t.returnDetails !== void 0 ? t.returnDetails : this.options.returnDetails, s = t.keySeparator !== void 0 ? t.keySeparator : this.options.keySeparator, {
|
|
2815
2579
|
key: r,
|
|
2816
2580
|
namespaces: o
|
|
2817
|
-
} = this.extractFromKey(e[e.length - 1], t),
|
|
2818
|
-
if (
|
|
2819
|
-
if (
|
|
2820
|
-
const
|
|
2581
|
+
} = this.extractFromKey(e[e.length - 1], t), l = o[o.length - 1], u = t.lng || this.language, d = t.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
|
|
2582
|
+
if (u && u.toLowerCase() === "cimode") {
|
|
2583
|
+
if (d) {
|
|
2584
|
+
const w = t.nsSeparator || this.options.nsSeparator;
|
|
2821
2585
|
return a ? {
|
|
2822
|
-
res: `${
|
|
2586
|
+
res: `${l}${w}${r}`,
|
|
2823
2587
|
usedKey: r,
|
|
2824
2588
|
exactUsedKey: r,
|
|
2825
|
-
usedLng:
|
|
2826
|
-
usedNS:
|
|
2589
|
+
usedLng: u,
|
|
2590
|
+
usedNS: l,
|
|
2827
2591
|
usedParams: this.getUsedParamsDetails(t)
|
|
2828
|
-
} : `${
|
|
2592
|
+
} : `${l}${w}${r}`;
|
|
2829
2593
|
}
|
|
2830
2594
|
return a ? {
|
|
2831
2595
|
res: r,
|
|
2832
2596
|
usedKey: r,
|
|
2833
2597
|
exactUsedKey: r,
|
|
2834
|
-
usedLng:
|
|
2835
|
-
usedNS:
|
|
2598
|
+
usedLng: u,
|
|
2599
|
+
usedNS: l,
|
|
2836
2600
|
usedParams: this.getUsedParamsDetails(t)
|
|
2837
2601
|
} : r;
|
|
2838
2602
|
}
|
|
2839
|
-
const
|
|
2840
|
-
let c =
|
|
2841
|
-
const
|
|
2842
|
-
if (
|
|
2603
|
+
const f = this.resolve(e, t);
|
|
2604
|
+
let c = f && f.res;
|
|
2605
|
+
const S = f && f.usedKey || r, y = f && f.exactUsedKey || r, k = Object.prototype.toString.apply(c), N = ["[object Number]", "[object Function]", "[object RegExp]"], O = t.joinArrays !== void 0 ? t.joinArrays : this.options.joinArrays, F = !this.i18nFormat || this.i18nFormat.handleAsObject;
|
|
2606
|
+
if (F && c && (typeof c != "string" && typeof c != "boolean" && typeof c != "number") && N.indexOf(k) < 0 && !(typeof O == "string" && k === "[object Array]")) {
|
|
2843
2607
|
if (!t.returnObjects && !this.options.returnObjects) {
|
|
2844
2608
|
this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
|
2845
|
-
const
|
|
2609
|
+
const w = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(S, c, {
|
|
2846
2610
|
...t,
|
|
2847
2611
|
ns: o
|
|
2848
2612
|
}) : `key '${r} (${this.language})' returned an object instead of string.`;
|
|
2849
|
-
return a ? (
|
|
2613
|
+
return a ? (f.res = w, f.usedParams = this.getUsedParamsDetails(t), f) : w;
|
|
2850
2614
|
}
|
|
2851
2615
|
if (s) {
|
|
2852
|
-
const
|
|
2616
|
+
const w = k === "[object Array]", I = w ? [] : {}, L = w ? y : S;
|
|
2853
2617
|
for (const A in c)
|
|
2854
2618
|
if (Object.prototype.hasOwnProperty.call(c, A)) {
|
|
2855
|
-
const
|
|
2856
|
-
I[A] = this.translate(
|
|
2619
|
+
const m = `${L}${s}${A}`;
|
|
2620
|
+
I[A] = this.translate(m, {
|
|
2857
2621
|
...t,
|
|
2858
2622
|
joinArrays: !1,
|
|
2859
2623
|
ns: o
|
|
2860
|
-
}), I[A] ===
|
|
2624
|
+
}), I[A] === m && (I[A] = c[A]);
|
|
2861
2625
|
}
|
|
2862
2626
|
c = I;
|
|
2863
2627
|
}
|
|
2864
|
-
} else if (
|
|
2865
|
-
c = c.join(
|
|
2628
|
+
} else if (F && typeof O == "string" && k === "[object Array]")
|
|
2629
|
+
c = c.join(O), c && (c = this.extendTranslation(c, e, t, i));
|
|
2866
2630
|
else {
|
|
2867
|
-
let
|
|
2868
|
-
const
|
|
2631
|
+
let w = !1, I = !1;
|
|
2632
|
+
const L = t.count !== void 0 && typeof t.count != "string", A = me.hasDefaultValue(t), m = L ? this.pluralResolver.getSuffix(u, t.count, t) : "", p = t.ordinal && L ? this.pluralResolver.getSuffix(u, t.count, {
|
|
2869
2633
|
ordinal: !1
|
|
2870
|
-
}) : "",
|
|
2871
|
-
!this.isValidLookup(c) && A && (
|
|
2872
|
-
const
|
|
2873
|
-
if (I ||
|
|
2874
|
-
if (this.logger.log(C ? "updateKey" : "missingKey",
|
|
2875
|
-
const
|
|
2634
|
+
}) : "", h = t[`defaultValue${m}`] || t[`defaultValue${p}`] || t.defaultValue;
|
|
2635
|
+
!this.isValidLookup(c) && A && (w = !0, c = h), this.isValidLookup(c) || (I = !0, c = r);
|
|
2636
|
+
const b = (t.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && I ? void 0 : c, C = A && h !== c && this.options.updateMissing;
|
|
2637
|
+
if (I || w || C) {
|
|
2638
|
+
if (this.logger.log(C ? "updateKey" : "missingKey", u, l, r, C ? h : c), s) {
|
|
2639
|
+
const x = this.resolve(r, {
|
|
2876
2640
|
...t,
|
|
2877
2641
|
keySeparator: !1
|
|
2878
2642
|
});
|
|
2879
|
-
|
|
2643
|
+
x && x.res && this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");
|
|
2880
2644
|
}
|
|
2881
|
-
let
|
|
2882
|
-
const
|
|
2883
|
-
if (this.options.saveMissingTo === "fallback" &&
|
|
2884
|
-
for (let
|
|
2885
|
-
|
|
2645
|
+
let v = [];
|
|
2646
|
+
const E = this.languageUtils.getFallbackCodes(this.options.fallbackLng, t.lng || this.language);
|
|
2647
|
+
if (this.options.saveMissingTo === "fallback" && E && E[0])
|
|
2648
|
+
for (let x = 0; x < E.length; x++)
|
|
2649
|
+
v.push(E[x]);
|
|
2886
2650
|
else
|
|
2887
|
-
this.options.saveMissingTo === "all" ?
|
|
2888
|
-
const
|
|
2889
|
-
const
|
|
2890
|
-
this.options.missingKeyHandler ? this.options.missingKeyHandler(
|
|
2651
|
+
this.options.saveMissingTo === "all" ? v = this.languageUtils.toResolveHierarchy(t.lng || this.language) : v.push(t.lng || this.language);
|
|
2652
|
+
const P = (x, T, V) => {
|
|
2653
|
+
const te = A && V !== c ? V : b;
|
|
2654
|
+
this.options.missingKeyHandler ? this.options.missingKeyHandler(x, l, T, te, C, t) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(x, l, T, te, C, t), this.emit("missingKey", x, l, T, c);
|
|
2891
2655
|
};
|
|
2892
|
-
this.options.saveMissing && (this.options.saveMissingPlurals &&
|
|
2893
|
-
this.pluralResolver.getSuffixes(
|
|
2894
|
-
|
|
2656
|
+
this.options.saveMissing && (this.options.saveMissingPlurals && L ? v.forEach((x) => {
|
|
2657
|
+
this.pluralResolver.getSuffixes(x, t).forEach((T) => {
|
|
2658
|
+
P([x], r + T, t[`defaultValue${T}`] || h);
|
|
2895
2659
|
});
|
|
2896
|
-
}) :
|
|
2660
|
+
}) : P(v, r, h));
|
|
2897
2661
|
}
|
|
2898
|
-
c = this.extendTranslation(c, e, t,
|
|
2662
|
+
c = this.extendTranslation(c, e, t, f, i), I && c === r && this.options.appendNamespaceToMissingKey && (c = `${l}:${r}`), (I || w) && this.options.parseMissingKeyHandler && (this.options.compatibilityAPI !== "v1" ? c = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${l}:${r}` : r, w ? c : void 0) : c = this.options.parseMissingKeyHandler(c));
|
|
2899
2663
|
}
|
|
2900
|
-
return a ? (
|
|
2664
|
+
return a ? (f.res = c, f.usedParams = this.getUsedParamsDetails(t), f) : c;
|
|
2901
2665
|
}
|
|
2902
2666
|
extendTranslation(e, t, i, a, s) {
|
|
2903
2667
|
var r = this;
|
|
@@ -2916,28 +2680,28 @@ class ve extends Ne {
|
|
|
2916
2680
|
...i.interpolation
|
|
2917
2681
|
}
|
|
2918
2682
|
});
|
|
2919
|
-
const
|
|
2920
|
-
let
|
|
2921
|
-
if (
|
|
2683
|
+
const u = typeof e == "string" && (i && i.interpolation && i.interpolation.skipOnVariables !== void 0 ? i.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables);
|
|
2684
|
+
let d;
|
|
2685
|
+
if (u) {
|
|
2922
2686
|
const c = e.match(this.interpolator.nestingRegexp);
|
|
2923
|
-
|
|
2687
|
+
d = c && c.length;
|
|
2924
2688
|
}
|
|
2925
|
-
let
|
|
2926
|
-
if (this.options.interpolation.defaultVariables && (
|
|
2689
|
+
let f = i.replace && typeof i.replace != "string" ? i.replace : i;
|
|
2690
|
+
if (this.options.interpolation.defaultVariables && (f = {
|
|
2927
2691
|
...this.options.interpolation.defaultVariables,
|
|
2928
|
-
...
|
|
2929
|
-
}), e = this.interpolator.interpolate(e,
|
|
2930
|
-
const c = e.match(this.interpolator.nestingRegexp),
|
|
2931
|
-
|
|
2692
|
+
...f
|
|
2693
|
+
}), e = this.interpolator.interpolate(e, f, i.lng || this.language, i), u) {
|
|
2694
|
+
const c = e.match(this.interpolator.nestingRegexp), S = c && c.length;
|
|
2695
|
+
d < S && (i.nest = !1);
|
|
2932
2696
|
}
|
|
2933
2697
|
!i.lng && this.options.compatibilityAPI !== "v1" && a && a.res && (i.lng = a.usedLng), i.nest !== !1 && (e = this.interpolator.nest(e, function() {
|
|
2934
|
-
for (var c = arguments.length,
|
|
2935
|
-
|
|
2936
|
-
return s && s[0] ===
|
|
2698
|
+
for (var c = arguments.length, S = new Array(c), y = 0; y < c; y++)
|
|
2699
|
+
S[y] = arguments[y];
|
|
2700
|
+
return s && s[0] === S[0] && !i.context ? (r.logger.warn(`It seems you are nesting recursively key: ${S[0]} in key: ${t[0]}`), null) : r.translate(...S, t);
|
|
2937
2701
|
}, i)), i.interpolation && this.interpolator.reset();
|
|
2938
2702
|
}
|
|
2939
|
-
const o = i.postProcess || this.options.postProcess,
|
|
2940
|
-
return e != null &&
|
|
2703
|
+
const o = i.postProcess || this.options.postProcess, l = typeof o == "string" ? [o] : o;
|
|
2704
|
+
return e != null && l && l.length && i.applyPostProcessor !== !1 && (e = Ut.handle(l, e, t, this.options && this.options.postProcessPassResolved ? {
|
|
2941
2705
|
i18nResolved: {
|
|
2942
2706
|
...a,
|
|
2943
2707
|
usedParams: this.getUsedParamsDetails(i)
|
|
@@ -2947,34 +2711,34 @@ class ve extends Ne {
|
|
|
2947
2711
|
}
|
|
2948
2712
|
resolve(e) {
|
|
2949
2713
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i, a, s, r, o;
|
|
2950
|
-
return typeof e == "string" && (e = [e]), e.forEach((
|
|
2714
|
+
return typeof e == "string" && (e = [e]), e.forEach((l) => {
|
|
2951
2715
|
if (this.isValidLookup(i))
|
|
2952
2716
|
return;
|
|
2953
|
-
const
|
|
2954
|
-
a =
|
|
2955
|
-
let
|
|
2956
|
-
this.options.fallbackNS && (
|
|
2957
|
-
const c = t.count !== void 0 && typeof t.count != "string",
|
|
2958
|
-
|
|
2959
|
-
this.isValidLookup(i) || (o =
|
|
2717
|
+
const u = this.extractFromKey(l, t), d = u.key;
|
|
2718
|
+
a = d;
|
|
2719
|
+
let f = u.namespaces;
|
|
2720
|
+
this.options.fallbackNS && (f = f.concat(this.options.fallbackNS));
|
|
2721
|
+
const c = t.count !== void 0 && typeof t.count != "string", S = c && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(), y = t.context !== void 0 && (typeof t.context == "string" || typeof t.context == "number") && t.context !== "", k = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
|
|
2722
|
+
f.forEach((N) => {
|
|
2723
|
+
this.isValidLookup(i) || (o = N, !ot[`${k[0]}-${N}`] && this.utils && this.utils.hasLoadedNamespace && !this.utils.hasLoadedNamespace(o) && (ot[`${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) => {
|
|
2960
2724
|
if (this.isValidLookup(i))
|
|
2961
2725
|
return;
|
|
2962
|
-
r =
|
|
2963
|
-
const
|
|
2726
|
+
r = O;
|
|
2727
|
+
const F = [d];
|
|
2964
2728
|
if (this.i18nFormat && this.i18nFormat.addLookupKeys)
|
|
2965
|
-
this.i18nFormat.addLookupKeys(
|
|
2729
|
+
this.i18nFormat.addLookupKeys(F, d, O, N, t);
|
|
2966
2730
|
else {
|
|
2967
|
-
let
|
|
2968
|
-
c && (
|
|
2969
|
-
const I = `${this.options.pluralSeparator}zero`,
|
|
2970
|
-
if (c && (
|
|
2971
|
-
const A = `${
|
|
2972
|
-
|
|
2731
|
+
let w;
|
|
2732
|
+
c && (w = this.pluralResolver.getSuffix(O, t.count, t));
|
|
2733
|
+
const I = `${this.options.pluralSeparator}zero`, L = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
|
|
2734
|
+
if (c && (F.push(d + w), t.ordinal && w.indexOf(L) === 0 && F.push(d + w.replace(L, this.options.pluralSeparator)), S && F.push(d + I)), y) {
|
|
2735
|
+
const A = `${d}${this.options.contextSeparator}${t.context}`;
|
|
2736
|
+
F.push(A), c && (F.push(A + w), t.ordinal && w.indexOf(L) === 0 && F.push(A + w.replace(L, this.options.pluralSeparator)), S && F.push(A + I));
|
|
2973
2737
|
}
|
|
2974
2738
|
}
|
|
2975
|
-
let
|
|
2976
|
-
for (;
|
|
2977
|
-
this.isValidLookup(i) || (s =
|
|
2739
|
+
let D;
|
|
2740
|
+
for (; D = F.pop(); )
|
|
2741
|
+
this.isValidLookup(i) || (s = D, i = this.getResource(O, N, D, t));
|
|
2978
2742
|
}));
|
|
2979
2743
|
});
|
|
2980
2744
|
}), {
|
|
@@ -3016,21 +2780,21 @@ class ve extends Ne {
|
|
|
3016
2780
|
return !1;
|
|
3017
2781
|
}
|
|
3018
2782
|
}
|
|
3019
|
-
function
|
|
2783
|
+
function Ne(n) {
|
|
3020
2784
|
return n.charAt(0).toUpperCase() + n.slice(1);
|
|
3021
2785
|
}
|
|
3022
|
-
class
|
|
2786
|
+
class lt {
|
|
3023
2787
|
constructor(e) {
|
|
3024
|
-
this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger =
|
|
2788
|
+
this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = $.create("languageUtils");
|
|
3025
2789
|
}
|
|
3026
2790
|
getScriptPartFromCode(e) {
|
|
3027
|
-
if (e =
|
|
2791
|
+
if (e = ce(e), !e || e.indexOf("-") < 0)
|
|
3028
2792
|
return null;
|
|
3029
2793
|
const t = e.split("-");
|
|
3030
2794
|
return t.length === 2 || (t.pop(), t[t.length - 1].toLowerCase() === "x") ? null : this.formatLanguageCode(t.join("-"));
|
|
3031
2795
|
}
|
|
3032
2796
|
getLanguagePartFromCode(e) {
|
|
3033
|
-
if (e =
|
|
2797
|
+
if (e = ce(e), !e || e.indexOf("-") < 0)
|
|
3034
2798
|
return e;
|
|
3035
2799
|
const t = e.split("-");
|
|
3036
2800
|
return this.formatLanguageCode(t[0]);
|
|
@@ -3039,7 +2803,7 @@ class Nt {
|
|
|
3039
2803
|
if (typeof e == "string" && e.indexOf("-") > -1) {
|
|
3040
2804
|
const t = ["hans", "hant", "latn", "cyrl", "cans", "mong", "arab"];
|
|
3041
2805
|
let i = e.split("-");
|
|
3042
|
-
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] =
|
|
2806
|
+
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] = Ne(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] = Ne(i[1].toLowerCase())), t.indexOf(i[2].toLowerCase()) > -1 && (i[2] = Ne(i[2].toLowerCase()))), i.join("-");
|
|
3043
2807
|
}
|
|
3044
2808
|
return this.options.cleanCode || this.options.lowerCaseLng ? e.toLowerCase() : e;
|
|
3045
2809
|
}
|
|
@@ -3088,7 +2852,7 @@ class Nt {
|
|
|
3088
2852
|
}), a;
|
|
3089
2853
|
}
|
|
3090
2854
|
}
|
|
3091
|
-
let
|
|
2855
|
+
let Pa = [{
|
|
3092
2856
|
lngs: ["ach", "ak", "am", "arn", "br", "fil", "gun", "ln", "mfe", "mg", "mi", "oc", "pt", "pt-BR", "tg", "tl", "ti", "tr", "uz", "wa"],
|
|
3093
2857
|
nr: [1, 2],
|
|
3094
2858
|
fc: 1
|
|
@@ -3180,7 +2944,7 @@ let Ka = [{
|
|
|
3180
2944
|
lngs: ["he", "iw"],
|
|
3181
2945
|
nr: [1, 2, 20, 21],
|
|
3182
2946
|
fc: 22
|
|
3183
|
-
}],
|
|
2947
|
+
}], Va = {
|
|
3184
2948
|
1: function(n) {
|
|
3185
2949
|
return +(n > 1);
|
|
3186
2950
|
},
|
|
@@ -3248,7 +3012,7 @@ let Ka = [{
|
|
|
3248
3012
|
return n == 1 ? 0 : n == 2 ? 1 : (n < 0 || n > 10) && n % 10 == 0 ? 2 : 3;
|
|
3249
3013
|
}
|
|
3250
3014
|
};
|
|
3251
|
-
const
|
|
3015
|
+
const _a = ["v1", "v2", "v3"], Ua = ["v4"], dt = {
|
|
3252
3016
|
zero: 0,
|
|
3253
3017
|
one: 1,
|
|
3254
3018
|
two: 2,
|
|
@@ -3256,21 +3020,21 @@ const Wa = ["v1", "v2", "v3"], Ja = ["v4"], bt = {
|
|
|
3256
3020
|
many: 4,
|
|
3257
3021
|
other: 5
|
|
3258
3022
|
};
|
|
3259
|
-
function
|
|
3023
|
+
function Ma() {
|
|
3260
3024
|
const n = {};
|
|
3261
|
-
return
|
|
3025
|
+
return Pa.forEach((e) => {
|
|
3262
3026
|
e.lngs.forEach((t) => {
|
|
3263
3027
|
n[t] = {
|
|
3264
3028
|
numbers: e.nr,
|
|
3265
|
-
plurals:
|
|
3029
|
+
plurals: Va[e.fc]
|
|
3266
3030
|
};
|
|
3267
3031
|
});
|
|
3268
3032
|
}), n;
|
|
3269
3033
|
}
|
|
3270
|
-
class
|
|
3034
|
+
class $a {
|
|
3271
3035
|
constructor(e) {
|
|
3272
3036
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
3273
|
-
this.languageUtils = e, this.options = t, this.logger =
|
|
3037
|
+
this.languageUtils = e, this.options = t, this.logger = $.create("pluralResolver"), (!this.options.compatibilityJSON || Ua.includes(this.options.compatibilityJSON)) && (typeof Intl == "undefined" || !Intl.PluralRules) && (this.options.compatibilityJSON = "v3", this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")), this.rules = Ma();
|
|
3274
3038
|
}
|
|
3275
3039
|
addRule(e, t) {
|
|
3276
3040
|
this.rules[e] = t;
|
|
@@ -3279,7 +3043,7 @@ class Ha {
|
|
|
3279
3043
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
3280
3044
|
if (this.shouldUseIntlApi())
|
|
3281
3045
|
try {
|
|
3282
|
-
return new Intl.PluralRules(
|
|
3046
|
+
return new Intl.PluralRules(ce(e), {
|
|
3283
3047
|
type: t.ordinal ? "ordinal" : "cardinal"
|
|
3284
3048
|
});
|
|
3285
3049
|
} catch {
|
|
@@ -3299,7 +3063,7 @@ class Ha {
|
|
|
3299
3063
|
getSuffixes(e) {
|
|
3300
3064
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
3301
3065
|
const i = this.getRule(e, t);
|
|
3302
|
-
return i ? this.shouldUseIntlApi() ? i.resolvedOptions().pluralCategories.sort((a, s) =>
|
|
3066
|
+
return i ? this.shouldUseIntlApi() ? i.resolvedOptions().pluralCategories.sort((a, s) => dt[a] - dt[s]).map((a) => `${this.options.prepend}${t.ordinal ? `ordinal${this.options.prepend}` : ""}${a}`) : i.numbers.map((a) => this.getSuffix(e, a, t)) : [];
|
|
3303
3067
|
}
|
|
3304
3068
|
getSuffix(e, t) {
|
|
3305
3069
|
let i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
@@ -3314,17 +3078,17 @@ class Ha {
|
|
|
3314
3078
|
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();
|
|
3315
3079
|
}
|
|
3316
3080
|
shouldUseIntlApi() {
|
|
3317
|
-
return !
|
|
3081
|
+
return !_a.includes(this.options.compatibilityJSON);
|
|
3318
3082
|
}
|
|
3319
3083
|
}
|
|
3320
|
-
function
|
|
3321
|
-
let i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", a = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, s =
|
|
3322
|
-
return !s && a && typeof t == "string" && (s =
|
|
3084
|
+
function ut(n, e, t) {
|
|
3085
|
+
let i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", a = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, s = Ta(n, e, t);
|
|
3086
|
+
return !s && a && typeof t == "string" && (s = ue(n, t, i), s === void 0 && (s = ue(e, t, i))), s;
|
|
3323
3087
|
}
|
|
3324
|
-
class
|
|
3088
|
+
class ja {
|
|
3325
3089
|
constructor() {
|
|
3326
3090
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
3327
|
-
this.logger =
|
|
3091
|
+
this.logger = $.create("interpolator"), this.options = e, this.format = e.interpolation && e.interpolation.format || ((t) => t), this.init(e);
|
|
3328
3092
|
}
|
|
3329
3093
|
init() {
|
|
3330
3094
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
@@ -3332,7 +3096,7 @@ class Za {
|
|
|
3332
3096
|
escapeValue: !0
|
|
3333
3097
|
});
|
|
3334
3098
|
const t = e.interpolation;
|
|
3335
|
-
this.escape = t.escape !== void 0 ? t.escape :
|
|
3099
|
+
this.escape = t.escape !== void 0 ? t.escape : Ia, 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();
|
|
3336
3100
|
}
|
|
3337
3101
|
reset() {
|
|
3338
3102
|
this.options && this.init(this.options);
|
|
@@ -3347,41 +3111,41 @@ class Za {
|
|
|
3347
3111
|
}
|
|
3348
3112
|
interpolate(e, t, i, a) {
|
|
3349
3113
|
let s, r, o;
|
|
3350
|
-
const
|
|
3351
|
-
function
|
|
3352
|
-
return
|
|
3353
|
-
}
|
|
3354
|
-
const
|
|
3355
|
-
if (
|
|
3356
|
-
const
|
|
3357
|
-
return this.alwaysFormat ? this.format(
|
|
3114
|
+
const l = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {};
|
|
3115
|
+
function u(y) {
|
|
3116
|
+
return y.replace(/\$/g, "$$$$");
|
|
3117
|
+
}
|
|
3118
|
+
const d = (y) => {
|
|
3119
|
+
if (y.indexOf(this.formatSeparator) < 0) {
|
|
3120
|
+
const F = ut(t, l, y, this.options.keySeparator, this.options.ignoreJSONStructure);
|
|
3121
|
+
return this.alwaysFormat ? this.format(F, void 0, i, {
|
|
3358
3122
|
...a,
|
|
3359
3123
|
...t,
|
|
3360
|
-
interpolationkey:
|
|
3361
|
-
}) :
|
|
3124
|
+
interpolationkey: y
|
|
3125
|
+
}) : F;
|
|
3362
3126
|
}
|
|
3363
|
-
const k =
|
|
3364
|
-
return this.format(
|
|
3127
|
+
const k = y.split(this.formatSeparator), N = k.shift().trim(), O = k.join(this.formatSeparator).trim();
|
|
3128
|
+
return this.format(ut(t, l, N, this.options.keySeparator, this.options.ignoreJSONStructure), O, i, {
|
|
3365
3129
|
...a,
|
|
3366
3130
|
...t,
|
|
3367
|
-
interpolationkey:
|
|
3131
|
+
interpolationkey: N
|
|
3368
3132
|
});
|
|
3369
3133
|
};
|
|
3370
3134
|
this.resetRegExp();
|
|
3371
|
-
const
|
|
3135
|
+
const f = a && a.missingInterpolationHandler || this.options.missingInterpolationHandler, c = a && a.interpolation && a.interpolation.skipOnVariables !== void 0 ? a.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;
|
|
3372
3136
|
return [{
|
|
3373
3137
|
regex: this.regexpUnescape,
|
|
3374
|
-
safeValue: (
|
|
3138
|
+
safeValue: (y) => u(y)
|
|
3375
3139
|
}, {
|
|
3376
3140
|
regex: this.regexp,
|
|
3377
|
-
safeValue: (
|
|
3378
|
-
}].forEach((
|
|
3379
|
-
for (o = 0; s =
|
|
3141
|
+
safeValue: (y) => this.escapeValue ? u(this.escape(y)) : u(y)
|
|
3142
|
+
}].forEach((y) => {
|
|
3143
|
+
for (o = 0; s = y.regex.exec(e); ) {
|
|
3380
3144
|
const k = s[1].trim();
|
|
3381
|
-
if (r =
|
|
3382
|
-
if (typeof
|
|
3383
|
-
const
|
|
3384
|
-
r = typeof
|
|
3145
|
+
if (r = d(k), r === void 0)
|
|
3146
|
+
if (typeof f == "function") {
|
|
3147
|
+
const O = f(e, s, a);
|
|
3148
|
+
r = typeof O == "string" ? O : "";
|
|
3385
3149
|
} else if (a && Object.prototype.hasOwnProperty.call(a, k))
|
|
3386
3150
|
r = "";
|
|
3387
3151
|
else if (c) {
|
|
@@ -3390,47 +3154,47 @@ class Za {
|
|
|
3390
3154
|
} else
|
|
3391
3155
|
this.logger.warn(`missed to pass in variable ${k} for interpolating ${e}`), r = "";
|
|
3392
3156
|
else
|
|
3393
|
-
typeof r != "string" && !this.useRawValueToEscape && (r =
|
|
3394
|
-
const
|
|
3395
|
-
if (e = e.replace(s[0],
|
|
3157
|
+
typeof r != "string" && !this.useRawValueToEscape && (r = at(r));
|
|
3158
|
+
const N = y.safeValue(r);
|
|
3159
|
+
if (e = e.replace(s[0], N), c ? (y.regex.lastIndex += r.length, y.regex.lastIndex -= s[0].length) : y.regex.lastIndex = 0, o++, o >= this.maxReplaces)
|
|
3396
3160
|
break;
|
|
3397
3161
|
}
|
|
3398
3162
|
}), e;
|
|
3399
3163
|
}
|
|
3400
3164
|
nest(e, t) {
|
|
3401
3165
|
let i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, a, s, r;
|
|
3402
|
-
function o(
|
|
3403
|
-
const
|
|
3404
|
-
if (
|
|
3405
|
-
return
|
|
3406
|
-
const
|
|
3407
|
-
let c = `{${
|
|
3408
|
-
|
|
3409
|
-
const
|
|
3410
|
-
(
|
|
3166
|
+
function o(l, u) {
|
|
3167
|
+
const d = this.nestingOptionsSeparator;
|
|
3168
|
+
if (l.indexOf(d) < 0)
|
|
3169
|
+
return l;
|
|
3170
|
+
const f = l.split(new RegExp(`${d}[ ]*{`));
|
|
3171
|
+
let c = `{${f[1]}`;
|
|
3172
|
+
l = f[0], c = this.interpolate(c, r);
|
|
3173
|
+
const S = c.match(/'/g), y = c.match(/"/g);
|
|
3174
|
+
(S && S.length % 2 === 0 && !y || y.length % 2 !== 0) && (c = c.replace(/'/g, '"'));
|
|
3411
3175
|
try {
|
|
3412
|
-
r = JSON.parse(c),
|
|
3413
|
-
...
|
|
3176
|
+
r = JSON.parse(c), u && (r = {
|
|
3177
|
+
...u,
|
|
3414
3178
|
...r
|
|
3415
3179
|
});
|
|
3416
3180
|
} catch (k) {
|
|
3417
|
-
return this.logger.warn(`failed parsing options string in nesting for key ${
|
|
3181
|
+
return this.logger.warn(`failed parsing options string in nesting for key ${l}`, k), `${l}${d}${c}`;
|
|
3418
3182
|
}
|
|
3419
|
-
return delete r.defaultValue,
|
|
3183
|
+
return delete r.defaultValue, l;
|
|
3420
3184
|
}
|
|
3421
3185
|
for (; a = this.nestingRegexp.exec(e); ) {
|
|
3422
|
-
let
|
|
3186
|
+
let l = [];
|
|
3423
3187
|
r = {
|
|
3424
3188
|
...i
|
|
3425
3189
|
}, r = r.replace && typeof r.replace != "string" ? r.replace : r, r.applyPostProcessor = !1, delete r.defaultValue;
|
|
3426
|
-
let
|
|
3190
|
+
let u = !1;
|
|
3427
3191
|
if (a[0].indexOf(this.formatSeparator) !== -1 && !/{.*}/.test(a[1])) {
|
|
3428
|
-
const
|
|
3429
|
-
a[1] =
|
|
3192
|
+
const d = a[1].split(this.formatSeparator).map((f) => f.trim());
|
|
3193
|
+
a[1] = d.shift(), l = d, u = !0;
|
|
3430
3194
|
}
|
|
3431
3195
|
if (s = t(o.call(this, a[1].trim(), r), r), s && a[0] === e && typeof s != "string")
|
|
3432
3196
|
return s;
|
|
3433
|
-
typeof s != "string" && (s =
|
|
3197
|
+
typeof s != "string" && (s = at(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, {
|
|
3434
3198
|
...i,
|
|
3435
3199
|
interpolationkey: a[1].trim()
|
|
3436
3200
|
}), s.trim())), e = e.replace(a[0], s), this.regexp.lastIndex = 0;
|
|
@@ -3438,7 +3202,7 @@ class Za {
|
|
|
3438
3202
|
return e;
|
|
3439
3203
|
}
|
|
3440
3204
|
}
|
|
3441
|
-
function
|
|
3205
|
+
function za(n) {
|
|
3442
3206
|
let e = n.toLowerCase().trim();
|
|
3443
3207
|
const t = {};
|
|
3444
3208
|
if (n.indexOf("(") > -1) {
|
|
@@ -3448,8 +3212,8 @@ function Xa(n) {
|
|
|
3448
3212
|
e === "currency" && a.indexOf(":") < 0 ? t.currency || (t.currency = a.trim()) : e === "relativetime" && a.indexOf(":") < 0 ? t.range || (t.range = a.trim()) : a.split(";").forEach((r) => {
|
|
3449
3213
|
if (!r)
|
|
3450
3214
|
return;
|
|
3451
|
-
const [o, ...
|
|
3452
|
-
t[o.trim()] || (t[o.trim()] =
|
|
3215
|
+
const [o, ...l] = r.split(":"), u = l.join(":").trim().replace(/^'+|'+$/g, "");
|
|
3216
|
+
t[o.trim()] || (t[o.trim()] = u), u === "false" && (t[o.trim()] = !1), u === "true" && (t[o.trim()] = !0), isNaN(u) || (t[o.trim()] = parseInt(u, 10));
|
|
3453
3217
|
});
|
|
3454
3218
|
}
|
|
3455
3219
|
return {
|
|
@@ -3457,44 +3221,44 @@ function Xa(n) {
|
|
|
3457
3221
|
formatOptions: t
|
|
3458
3222
|
};
|
|
3459
3223
|
}
|
|
3460
|
-
function
|
|
3224
|
+
function Q(n) {
|
|
3461
3225
|
const e = {};
|
|
3462
3226
|
return function(i, a, s) {
|
|
3463
3227
|
const r = a + JSON.stringify(s);
|
|
3464
3228
|
let o = e[r];
|
|
3465
|
-
return o || (o = n(
|
|
3229
|
+
return o || (o = n(ce(a), s), e[r] = o), o(i);
|
|
3466
3230
|
};
|
|
3467
3231
|
}
|
|
3468
|
-
class
|
|
3232
|
+
class Ba {
|
|
3469
3233
|
constructor() {
|
|
3470
3234
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
3471
|
-
this.logger =
|
|
3472
|
-
number:
|
|
3235
|
+
this.logger = $.create("formatter"), this.options = e, this.formats = {
|
|
3236
|
+
number: Q((t, i) => {
|
|
3473
3237
|
const a = new Intl.NumberFormat(t, {
|
|
3474
3238
|
...i
|
|
3475
3239
|
});
|
|
3476
3240
|
return (s) => a.format(s);
|
|
3477
3241
|
}),
|
|
3478
|
-
currency:
|
|
3242
|
+
currency: Q((t, i) => {
|
|
3479
3243
|
const a = new Intl.NumberFormat(t, {
|
|
3480
3244
|
...i,
|
|
3481
3245
|
style: "currency"
|
|
3482
3246
|
});
|
|
3483
3247
|
return (s) => a.format(s);
|
|
3484
3248
|
}),
|
|
3485
|
-
datetime:
|
|
3249
|
+
datetime: Q((t, i) => {
|
|
3486
3250
|
const a = new Intl.DateTimeFormat(t, {
|
|
3487
3251
|
...i
|
|
3488
3252
|
});
|
|
3489
3253
|
return (s) => a.format(s);
|
|
3490
3254
|
}),
|
|
3491
|
-
relativetime:
|
|
3255
|
+
relativetime: Q((t, i) => {
|
|
3492
3256
|
const a = new Intl.RelativeTimeFormat(t, {
|
|
3493
3257
|
...i
|
|
3494
3258
|
});
|
|
3495
3259
|
return (s) => a.format(s, i.range || "day");
|
|
3496
3260
|
}),
|
|
3497
|
-
list:
|
|
3261
|
+
list: Q((t, i) => {
|
|
3498
3262
|
const a = new Intl.ListFormat(t, {
|
|
3499
3263
|
...i
|
|
3500
3264
|
});
|
|
@@ -3512,50 +3276,50 @@ class Ya {
|
|
|
3512
3276
|
this.formats[e.toLowerCase().trim()] = t;
|
|
3513
3277
|
}
|
|
3514
3278
|
addCached(e, t) {
|
|
3515
|
-
this.formats[e.toLowerCase().trim()] =
|
|
3279
|
+
this.formats[e.toLowerCase().trim()] = Q(t);
|
|
3516
3280
|
}
|
|
3517
3281
|
format(e, t, i) {
|
|
3518
3282
|
let a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
|
3519
|
-
return t.split(this.formatSeparator).reduce((o,
|
|
3283
|
+
return t.split(this.formatSeparator).reduce((o, l) => {
|
|
3520
3284
|
const {
|
|
3521
|
-
formatName:
|
|
3522
|
-
formatOptions:
|
|
3523
|
-
} =
|
|
3524
|
-
if (this.formats[
|
|
3525
|
-
let
|
|
3285
|
+
formatName: u,
|
|
3286
|
+
formatOptions: d
|
|
3287
|
+
} = za(l);
|
|
3288
|
+
if (this.formats[u]) {
|
|
3289
|
+
let f = o;
|
|
3526
3290
|
try {
|
|
3527
|
-
const c = a && a.formatParams && a.formatParams[a.interpolationkey] || {},
|
|
3528
|
-
|
|
3529
|
-
...
|
|
3291
|
+
const c = a && a.formatParams && a.formatParams[a.interpolationkey] || {}, S = c.locale || c.lng || a.locale || a.lng || i;
|
|
3292
|
+
f = this.formats[u](o, S, {
|
|
3293
|
+
...d,
|
|
3530
3294
|
...a,
|
|
3531
3295
|
...c
|
|
3532
3296
|
});
|
|
3533
3297
|
} catch (c) {
|
|
3534
3298
|
this.logger.warn(c);
|
|
3535
3299
|
}
|
|
3536
|
-
return
|
|
3300
|
+
return f;
|
|
3537
3301
|
} else
|
|
3538
|
-
this.logger.warn(`there was no format function for ${
|
|
3302
|
+
this.logger.warn(`there was no format function for ${u}`);
|
|
3539
3303
|
return o;
|
|
3540
3304
|
}, e);
|
|
3541
3305
|
}
|
|
3542
3306
|
}
|
|
3543
|
-
function
|
|
3307
|
+
function Qa(n, e) {
|
|
3544
3308
|
n.pending[e] !== void 0 && (delete n.pending[e], n.pendingCount--);
|
|
3545
3309
|
}
|
|
3546
|
-
class
|
|
3310
|
+
class Ga extends ge {
|
|
3547
3311
|
constructor(e, t, i) {
|
|
3548
3312
|
let a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
|
3549
|
-
super(), this.backend = e, this.store = t, this.services = i, this.languageUtils = i.languageUtils, this.options = a, this.logger =
|
|
3313
|
+
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);
|
|
3550
3314
|
}
|
|
3551
3315
|
queueLoad(e, t, i, a) {
|
|
3552
|
-
const s = {}, r = {}, o = {},
|
|
3553
|
-
return e.forEach((
|
|
3554
|
-
let
|
|
3555
|
-
t.forEach((
|
|
3556
|
-
const c = `${
|
|
3557
|
-
!i.reload && this.store.hasResourceBundle(
|
|
3558
|
-
}),
|
|
3316
|
+
const s = {}, r = {}, o = {}, l = {};
|
|
3317
|
+
return e.forEach((u) => {
|
|
3318
|
+
let d = !0;
|
|
3319
|
+
t.forEach((f) => {
|
|
3320
|
+
const c = `${u}|${f}`;
|
|
3321
|
+
!i.reload && this.store.hasResourceBundle(u, f) ? this.state[c] = 2 : this.state[c] < 0 || (this.state[c] === 1 ? r[c] === void 0 && (r[c] = !0) : (this.state[c] = 1, d = !1, r[c] === void 0 && (r[c] = !0), s[c] === void 0 && (s[c] = !0), l[f] === void 0 && (l[f] = !0)));
|
|
3322
|
+
}), d || (o[u] = !0);
|
|
3559
3323
|
}), (Object.keys(s).length || Object.keys(r).length) && this.queue.push({
|
|
3560
3324
|
pending: r,
|
|
3561
3325
|
pendingCount: Object.keys(r).length,
|
|
@@ -3566,22 +3330,22 @@ class ts extends Ne {
|
|
|
3566
3330
|
toLoad: Object.keys(s),
|
|
3567
3331
|
pending: Object.keys(r),
|
|
3568
3332
|
toLoadLanguages: Object.keys(o),
|
|
3569
|
-
toLoadNamespaces: Object.keys(
|
|
3333
|
+
toLoadNamespaces: Object.keys(l)
|
|
3570
3334
|
};
|
|
3571
3335
|
}
|
|
3572
3336
|
loaded(e, t, i) {
|
|
3573
3337
|
const a = e.split("|"), s = a[0], r = a[1];
|
|
3574
3338
|
t && this.emit("failedLoading", s, r, t), i && this.store.addResourceBundle(s, r, i), this.state[e] = t ? -1 : 2;
|
|
3575
3339
|
const o = {};
|
|
3576
|
-
this.queue.forEach((
|
|
3577
|
-
|
|
3578
|
-
o[
|
|
3579
|
-
const
|
|
3580
|
-
|
|
3581
|
-
o[
|
|
3340
|
+
this.queue.forEach((l) => {
|
|
3341
|
+
Ra(l.loaded, [s], r), Qa(l, e), t && l.errors.push(t), l.pendingCount === 0 && !l.done && (Object.keys(l.loaded).forEach((u) => {
|
|
3342
|
+
o[u] || (o[u] = {});
|
|
3343
|
+
const d = l.loaded[u];
|
|
3344
|
+
d.length && d.forEach((f) => {
|
|
3345
|
+
o[u][f] === void 0 && (o[u][f] = !0);
|
|
3582
3346
|
});
|
|
3583
|
-
}),
|
|
3584
|
-
}), this.emit("loaded", o), this.queue = this.queue.filter((
|
|
3347
|
+
}), l.done = !0, l.errors.length ? l.callback(l.errors) : l.callback());
|
|
3348
|
+
}), this.emit("loaded", o), this.queue = this.queue.filter((l) => !l.done);
|
|
3585
3349
|
}
|
|
3586
3350
|
read(e, t, i) {
|
|
3587
3351
|
let a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 0, s = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : this.retryTimeout, r = arguments.length > 5 ? arguments[5] : void 0;
|
|
@@ -3599,29 +3363,29 @@ class ts extends Ne {
|
|
|
3599
3363
|
return;
|
|
3600
3364
|
}
|
|
3601
3365
|
this.readingCalls++;
|
|
3602
|
-
const o = (
|
|
3366
|
+
const o = (u, d) => {
|
|
3603
3367
|
if (this.readingCalls--, this.waitingReads.length > 0) {
|
|
3604
|
-
const
|
|
3605
|
-
this.read(
|
|
3368
|
+
const f = this.waitingReads.shift();
|
|
3369
|
+
this.read(f.lng, f.ns, f.fcName, f.tried, f.wait, f.callback);
|
|
3606
3370
|
}
|
|
3607
|
-
if (
|
|
3371
|
+
if (u && d && a < this.maxRetries) {
|
|
3608
3372
|
setTimeout(() => {
|
|
3609
3373
|
this.read.call(this, e, t, i, a + 1, s * 2, r);
|
|
3610
3374
|
}, s);
|
|
3611
3375
|
return;
|
|
3612
3376
|
}
|
|
3613
|
-
r(
|
|
3614
|
-
},
|
|
3615
|
-
if (
|
|
3377
|
+
r(u, d);
|
|
3378
|
+
}, l = this.backend[i].bind(this.backend);
|
|
3379
|
+
if (l.length === 2) {
|
|
3616
3380
|
try {
|
|
3617
|
-
const
|
|
3618
|
-
|
|
3619
|
-
} catch (
|
|
3620
|
-
o(
|
|
3381
|
+
const u = l(e, t);
|
|
3382
|
+
u && typeof u.then == "function" ? u.then((d) => o(null, d)).catch(o) : o(null, u);
|
|
3383
|
+
} catch (u) {
|
|
3384
|
+
o(u);
|
|
3621
3385
|
}
|
|
3622
3386
|
return;
|
|
3623
3387
|
}
|
|
3624
|
-
return
|
|
3388
|
+
return l(e, t, o);
|
|
3625
3389
|
}
|
|
3626
3390
|
prepareLoading(e, t) {
|
|
3627
3391
|
let i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, a = arguments.length > 3 ? arguments[3] : void 0;
|
|
@@ -3659,25 +3423,25 @@ class ts extends Ne {
|
|
|
3659
3423
|
}
|
|
3660
3424
|
if (!(i == null || i === "")) {
|
|
3661
3425
|
if (this.backend && this.backend.create) {
|
|
3662
|
-
const
|
|
3426
|
+
const l = {
|
|
3663
3427
|
...r,
|
|
3664
3428
|
isUpdate: s
|
|
3665
|
-
},
|
|
3666
|
-
if (
|
|
3429
|
+
}, u = this.backend.create.bind(this.backend);
|
|
3430
|
+
if (u.length < 6)
|
|
3667
3431
|
try {
|
|
3668
|
-
let
|
|
3669
|
-
|
|
3670
|
-
} catch (
|
|
3671
|
-
o(
|
|
3432
|
+
let d;
|
|
3433
|
+
u.length === 5 ? d = u(e, t, i, a, l) : d = u(e, t, i, a), d && typeof d.then == "function" ? d.then((f) => o(null, f)).catch(o) : o(null, d);
|
|
3434
|
+
} catch (d) {
|
|
3435
|
+
o(d);
|
|
3672
3436
|
}
|
|
3673
3437
|
else
|
|
3674
|
-
|
|
3438
|
+
u(e, t, i, a, o, l);
|
|
3675
3439
|
}
|
|
3676
3440
|
!e || !e[0] || this.store.addResource(e[0], t, i, a);
|
|
3677
3441
|
}
|
|
3678
3442
|
}
|
|
3679
3443
|
}
|
|
3680
|
-
function
|
|
3444
|
+
function ct() {
|
|
3681
3445
|
return {
|
|
3682
3446
|
debug: !1,
|
|
3683
3447
|
initImmediate: !0,
|
|
@@ -3736,22 +3500,22 @@ function wt() {
|
|
|
3736
3500
|
}
|
|
3737
3501
|
};
|
|
3738
3502
|
}
|
|
3739
|
-
function
|
|
3503
|
+
function mt(n) {
|
|
3740
3504
|
return typeof n.ns == "string" && (n.ns = [n.ns]), typeof n.fallbackLng == "string" && (n.fallbackLng = [n.fallbackLng]), typeof n.fallbackNS == "string" && (n.fallbackNS = [n.fallbackNS]), n.supportedLngs && n.supportedLngs.indexOf("cimode") < 0 && (n.supportedLngs = n.supportedLngs.concat(["cimode"])), n;
|
|
3741
3505
|
}
|
|
3742
|
-
function
|
|
3506
|
+
function ae() {
|
|
3743
3507
|
}
|
|
3744
|
-
function
|
|
3508
|
+
function Ka(n) {
|
|
3745
3509
|
Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach((t) => {
|
|
3746
3510
|
typeof n[t] == "function" && (n[t] = n[t].bind(n));
|
|
3747
3511
|
});
|
|
3748
3512
|
}
|
|
3749
|
-
class
|
|
3513
|
+
class ee extends ge {
|
|
3750
3514
|
constructor() {
|
|
3751
3515
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 ? arguments[1] : void 0;
|
|
3752
|
-
if (super(), this.options =
|
|
3516
|
+
if (super(), this.options = mt(e), this.services = {}, this.logger = $, this.modules = {
|
|
3753
3517
|
external: []
|
|
3754
|
-
},
|
|
3518
|
+
}, Ka(this), t && !this.isInitialized && !e.isClone) {
|
|
3755
3519
|
if (!this.options.initImmediate)
|
|
3756
3520
|
return this.init(e, t), this;
|
|
3757
3521
|
setTimeout(() => {
|
|
@@ -3763,68 +3527,68 @@ class ae extends Ne {
|
|
|
3763
3527
|
var e = this;
|
|
3764
3528
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, i = arguments.length > 1 ? arguments[1] : void 0;
|
|
3765
3529
|
typeof t == "function" && (i = t, t = {}), !t.defaultNS && t.defaultNS !== !1 && t.ns && (typeof t.ns == "string" ? t.defaultNS = t.ns : t.ns.indexOf("translation") < 0 && (t.defaultNS = t.ns[0]));
|
|
3766
|
-
const a =
|
|
3530
|
+
const a = ct();
|
|
3767
3531
|
this.options = {
|
|
3768
3532
|
...a,
|
|
3769
3533
|
...this.options,
|
|
3770
|
-
...
|
|
3534
|
+
...mt(t)
|
|
3771
3535
|
}, this.options.compatibilityAPI !== "v1" && (this.options.interpolation = {
|
|
3772
3536
|
...a.interpolation,
|
|
3773
3537
|
...this.options.interpolation
|
|
3774
3538
|
}), t.keySeparator !== void 0 && (this.options.userDefinedKeySeparator = t.keySeparator), t.nsSeparator !== void 0 && (this.options.userDefinedNsSeparator = t.nsSeparator);
|
|
3775
|
-
function s(
|
|
3776
|
-
return
|
|
3539
|
+
function s(d) {
|
|
3540
|
+
return d ? typeof d == "function" ? new d() : d : null;
|
|
3777
3541
|
}
|
|
3778
3542
|
if (!this.options.isClone) {
|
|
3779
|
-
this.modules.logger ?
|
|
3780
|
-
let
|
|
3781
|
-
this.modules.formatter ?
|
|
3782
|
-
const
|
|
3783
|
-
this.store = new
|
|
3543
|
+
this.modules.logger ? $.init(s(this.modules.logger), this.options) : $.init(null, this.options);
|
|
3544
|
+
let d;
|
|
3545
|
+
this.modules.formatter ? d = this.modules.formatter : typeof Intl != "undefined" && (d = Ba);
|
|
3546
|
+
const f = new lt(this.options);
|
|
3547
|
+
this.store = new rt(this.options.resources, this.options);
|
|
3784
3548
|
const c = this.services;
|
|
3785
|
-
c.logger =
|
|
3549
|
+
c.logger = $, c.resourceStore = this.store, c.languageUtils = f, c.pluralResolver = new $a(f, {
|
|
3786
3550
|
prepend: this.options.pluralSeparator,
|
|
3787
3551
|
compatibilityJSON: this.options.compatibilityJSON,
|
|
3788
3552
|
simplifyPluralSuffix: this.options.simplifyPluralSuffix
|
|
3789
|
-
}),
|
|
3553
|
+
}), d && (!this.options.interpolation.format || this.options.interpolation.format === a.interpolation.format) && (c.formatter = s(d), c.formatter.init(c, this.options), this.options.interpolation.format = c.formatter.format.bind(c.formatter)), c.interpolator = new ja(this.options), c.utils = {
|
|
3790
3554
|
hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
|
|
3791
|
-
}, c.backendConnector = new
|
|
3792
|
-
for (var
|
|
3793
|
-
k[
|
|
3794
|
-
e.emit(
|
|
3795
|
-
}), 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
|
|
3796
|
-
for (var
|
|
3797
|
-
k[
|
|
3798
|
-
e.emit(
|
|
3799
|
-
}), this.modules.external.forEach((
|
|
3800
|
-
|
|
3555
|
+
}, c.backendConnector = new Ga(s(this.modules.backend), c.resourceStore, c, this.options), c.backendConnector.on("*", function(S) {
|
|
3556
|
+
for (var y = arguments.length, k = new Array(y > 1 ? y - 1 : 0), N = 1; N < y; N++)
|
|
3557
|
+
k[N - 1] = arguments[N];
|
|
3558
|
+
e.emit(S, ...k);
|
|
3559
|
+
}), 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 me(this.services, this.options), this.translator.on("*", function(S) {
|
|
3560
|
+
for (var y = arguments.length, k = new Array(y > 1 ? y - 1 : 0), N = 1; N < y; N++)
|
|
3561
|
+
k[N - 1] = arguments[N];
|
|
3562
|
+
e.emit(S, ...k);
|
|
3563
|
+
}), this.modules.external.forEach((S) => {
|
|
3564
|
+
S.init && S.init(this);
|
|
3801
3565
|
});
|
|
3802
3566
|
}
|
|
3803
|
-
if (this.format = this.options.interpolation.format, i || (i =
|
|
3804
|
-
const
|
|
3805
|
-
|
|
3567
|
+
if (this.format = this.options.interpolation.format, i || (i = ae), this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
|
|
3568
|
+
const d = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
|
|
3569
|
+
d.length > 0 && d[0] !== "dev" && (this.options.lng = d[0]);
|
|
3806
3570
|
}
|
|
3807
|
-
!this.services.languageDetector && !this.options.lng && this.logger.warn("init: no languageDetector is used and no lng is defined"), ["getResource", "hasResourceBundle", "getResourceBundle", "getDataByLanguage"].forEach((
|
|
3808
|
-
this[
|
|
3809
|
-
return e.store[
|
|
3571
|
+
!this.services.languageDetector && !this.options.lng && this.logger.warn("init: no languageDetector is used and no lng is defined"), ["getResource", "hasResourceBundle", "getResourceBundle", "getDataByLanguage"].forEach((d) => {
|
|
3572
|
+
this[d] = function() {
|
|
3573
|
+
return e.store[d](...arguments);
|
|
3810
3574
|
};
|
|
3811
|
-
}), ["addResource", "addResources", "addResourceBundle", "removeResourceBundle"].forEach((
|
|
3812
|
-
this[
|
|
3813
|
-
return e.store[
|
|
3575
|
+
}), ["addResource", "addResources", "addResourceBundle", "removeResourceBundle"].forEach((d) => {
|
|
3576
|
+
this[d] = function() {
|
|
3577
|
+
return e.store[d](...arguments), e;
|
|
3814
3578
|
};
|
|
3815
3579
|
});
|
|
3816
|
-
const
|
|
3817
|
-
const
|
|
3818
|
-
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),
|
|
3580
|
+
const l = H(), u = () => {
|
|
3581
|
+
const d = (f, c) => {
|
|
3582
|
+
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);
|
|
3819
3583
|
};
|
|
3820
3584
|
if (this.languages && this.options.compatibilityAPI !== "v1" && !this.isInitialized)
|
|
3821
|
-
return
|
|
3822
|
-
this.changeLanguage(this.options.lng,
|
|
3585
|
+
return d(null, this.t.bind(this));
|
|
3586
|
+
this.changeLanguage(this.options.lng, d);
|
|
3823
3587
|
};
|
|
3824
|
-
return this.options.resources || !this.options.initImmediate ?
|
|
3588
|
+
return this.options.resources || !this.options.initImmediate ? u() : setTimeout(u, 0), l;
|
|
3825
3589
|
}
|
|
3826
3590
|
loadResources(e) {
|
|
3827
|
-
let i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] :
|
|
3591
|
+
let i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : ae;
|
|
3828
3592
|
const a = typeof e == "string" ? e : this.language;
|
|
3829
3593
|
if (typeof e == "function" && (i = e), !this.options.resources || this.options.partialBundledLanguages) {
|
|
3830
3594
|
if (a && a.toLowerCase() === "cimode" && (!this.options.preload || this.options.preload.length === 0))
|
|
@@ -3832,19 +3596,19 @@ class ae extends Ne {
|
|
|
3832
3596
|
const s = [], r = (o) => {
|
|
3833
3597
|
if (!o || o === "cimode")
|
|
3834
3598
|
return;
|
|
3835
|
-
this.services.languageUtils.toResolveHierarchy(o).forEach((
|
|
3836
|
-
|
|
3599
|
+
this.services.languageUtils.toResolveHierarchy(o).forEach((u) => {
|
|
3600
|
+
u !== "cimode" && s.indexOf(u) < 0 && s.push(u);
|
|
3837
3601
|
});
|
|
3838
3602
|
};
|
|
3839
|
-
a ? r(a) : this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((
|
|
3603
|
+
a ? r(a) : this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((l) => r(l)), this.options.preload && this.options.preload.forEach((o) => r(o)), this.services.backendConnector.load(s, this.options.ns, (o) => {
|
|
3840
3604
|
!o && !this.resolvedLanguage && this.language && this.setResolvedLanguage(this.language), i(o);
|
|
3841
3605
|
});
|
|
3842
3606
|
} else
|
|
3843
3607
|
i(null);
|
|
3844
3608
|
}
|
|
3845
3609
|
reloadResources(e, t, i) {
|
|
3846
|
-
const a =
|
|
3847
|
-
return e || (e = this.languages), t || (t = this.options.ns), i || (i =
|
|
3610
|
+
const a = H();
|
|
3611
|
+
return e || (e = this.languages), t || (t = this.options.ns), i || (i = ae), this.services.backendConnector.reload(e, t, (s) => {
|
|
3848
3612
|
a.resolve(), i(s);
|
|
3849
3613
|
}), a;
|
|
3850
3614
|
}
|
|
@@ -3853,7 +3617,7 @@ class ae extends Ne {
|
|
|
3853
3617
|
throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");
|
|
3854
3618
|
if (!e.type)
|
|
3855
3619
|
throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");
|
|
3856
|
-
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" &&
|
|
3620
|
+
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" && Ut.addPostProcessor(e), e.type === "formatter" && (this.modules.formatter = e), e.type === "3rdParty" && this.modules.external.push(e), this;
|
|
3857
3621
|
}
|
|
3858
3622
|
setResolvedLanguage(e) {
|
|
3859
3623
|
if (!(!e || !this.languages) && !(["cimode", "dev"].indexOf(e) > -1))
|
|
@@ -3868,21 +3632,21 @@ class ae extends Ne {
|
|
|
3868
3632
|
changeLanguage(e, t) {
|
|
3869
3633
|
var i = this;
|
|
3870
3634
|
this.isLanguageChangingTo = e;
|
|
3871
|
-
const a =
|
|
3635
|
+
const a = H();
|
|
3872
3636
|
this.emit("languageChanging", e);
|
|
3873
|
-
const s = (
|
|
3874
|
-
this.language =
|
|
3875
|
-
}, r = (
|
|
3876
|
-
|
|
3637
|
+
const s = (l) => {
|
|
3638
|
+
this.language = l, this.languages = this.services.languageUtils.toResolveHierarchy(l), this.resolvedLanguage = void 0, this.setResolvedLanguage(l);
|
|
3639
|
+
}, r = (l, u) => {
|
|
3640
|
+
u ? (s(u), this.translator.changeLanguage(u), this.isLanguageChangingTo = void 0, this.emit("languageChanged", u), this.logger.log("languageChanged", u)) : this.isLanguageChangingTo = void 0, a.resolve(function() {
|
|
3877
3641
|
return i.t(...arguments);
|
|
3878
|
-
}), t && t(
|
|
3642
|
+
}), t && t(l, function() {
|
|
3879
3643
|
return i.t(...arguments);
|
|
3880
3644
|
});
|
|
3881
|
-
}, o = (
|
|
3882
|
-
!e && !
|
|
3883
|
-
const
|
|
3884
|
-
|
|
3885
|
-
r(
|
|
3645
|
+
}, o = (l) => {
|
|
3646
|
+
!e && !l && this.services.languageDetector && (l = []);
|
|
3647
|
+
const u = typeof l == "string" ? l : this.services.languageUtils.getBestMatchFromCodes(l);
|
|
3648
|
+
u && (this.language || s(u), this.translator.language || this.translator.changeLanguage(u), this.services.languageDetector && this.services.languageDetector.cacheUserLanguage && this.services.languageDetector.cacheUserLanguage(u)), this.loadResources(u, (d) => {
|
|
3649
|
+
r(d, u);
|
|
3886
3650
|
});
|
|
3887
3651
|
};
|
|
3888
3652
|
return !e && this.services.languageDetector && !this.services.languageDetector.async ? o(this.services.languageDetector.detect()) : !e && this.services.languageDetector && this.services.languageDetector.async ? this.services.languageDetector.detect.length === 0 ? this.services.languageDetector.detect().then(o) : this.services.languageDetector.detect(o) : o(e), a;
|
|
@@ -3890,19 +3654,19 @@ class ae extends Ne {
|
|
|
3890
3654
|
getFixedT(e, t, i) {
|
|
3891
3655
|
var a = this;
|
|
3892
3656
|
const s = function(r, o) {
|
|
3893
|
-
let
|
|
3657
|
+
let l;
|
|
3894
3658
|
if (typeof o != "object") {
|
|
3895
|
-
for (var
|
|
3896
|
-
|
|
3897
|
-
|
|
3659
|
+
for (var u = arguments.length, d = new Array(u > 2 ? u - 2 : 0), f = 2; f < u; f++)
|
|
3660
|
+
d[f - 2] = arguments[f];
|
|
3661
|
+
l = a.options.overloadTranslationOptionHandler([r, o].concat(d));
|
|
3898
3662
|
} else
|
|
3899
|
-
|
|
3663
|
+
l = {
|
|
3900
3664
|
...o
|
|
3901
3665
|
};
|
|
3902
|
-
|
|
3666
|
+
l.lng = l.lng || s.lng, l.lngs = l.lngs || s.lngs, l.ns = l.ns || s.ns, l.keyPrefix = l.keyPrefix || i || s.keyPrefix;
|
|
3903
3667
|
const c = a.options.keySeparator || ".";
|
|
3904
|
-
let
|
|
3905
|
-
return
|
|
3668
|
+
let S;
|
|
3669
|
+
return l.keyPrefix && Array.isArray(r) ? S = r.map((y) => `${l.keyPrefix}${c}${y}`) : S = l.keyPrefix ? `${l.keyPrefix}${c}${r}` : r, a.t(S, l);
|
|
3906
3670
|
};
|
|
3907
3671
|
return typeof e == "string" ? s.lng = e : s.lngs = e, s.ns = t, s.keyPrefix = i, s;
|
|
3908
3672
|
}
|
|
@@ -3924,9 +3688,9 @@ class ae extends Ne {
|
|
|
3924
3688
|
const i = t.lng || this.resolvedLanguage || this.languages[0], a = this.options ? this.options.fallbackLng : !1, s = this.languages[this.languages.length - 1];
|
|
3925
3689
|
if (i.toLowerCase() === "cimode")
|
|
3926
3690
|
return !0;
|
|
3927
|
-
const r = (o,
|
|
3928
|
-
const
|
|
3929
|
-
return
|
|
3691
|
+
const r = (o, l) => {
|
|
3692
|
+
const u = this.services.backendConnector.state[`${o}|${l}`];
|
|
3693
|
+
return u === -1 || u === 2;
|
|
3930
3694
|
};
|
|
3931
3695
|
if (t.precheck) {
|
|
3932
3696
|
const o = t.precheck(this, r);
|
|
@@ -3936,7 +3700,7 @@ class ae extends Ne {
|
|
|
3936
3700
|
return !!(this.hasResourceBundle(i, e) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || r(i, e) && (!a || r(s, e)));
|
|
3937
3701
|
}
|
|
3938
3702
|
loadNamespaces(e, t) {
|
|
3939
|
-
const i =
|
|
3703
|
+
const i = H();
|
|
3940
3704
|
return this.options.ns ? (typeof e == "string" && (e = [e]), e.forEach((a) => {
|
|
3941
3705
|
this.options.ns.indexOf(a) < 0 && this.options.ns.push(a);
|
|
3942
3706
|
}), this.loadResources((a) => {
|
|
@@ -3944,7 +3708,7 @@ class ae extends Ne {
|
|
|
3944
3708
|
}), i) : (t && t(), Promise.resolve());
|
|
3945
3709
|
}
|
|
3946
3710
|
loadLanguages(e, t) {
|
|
3947
|
-
const i =
|
|
3711
|
+
const i = H();
|
|
3948
3712
|
typeof e == "string" && (e = [e]);
|
|
3949
3713
|
const a = this.options.preload || [], s = e.filter((r) => a.indexOf(r) < 0);
|
|
3950
3714
|
return s.length ? (this.options.preload = a.concat(s), this.loadResources((r) => {
|
|
@@ -3954,32 +3718,32 @@ class ae extends Ne {
|
|
|
3954
3718
|
dir(e) {
|
|
3955
3719
|
if (e || (e = this.resolvedLanguage || (this.languages && this.languages.length > 0 ? this.languages[0] : this.language)), !e)
|
|
3956
3720
|
return "rtl";
|
|
3957
|
-
const t = ["ar", "shu", "sqr", "ssh", "xaa", "yhd", "yud", "aao", "abh", "abv", "acm", "acq", "acw", "acx", "acy", "adf", "ads", "aeb", "aec", "afb", "ajp", "apc", "apd", "arb", "arq", "ars", "ary", "arz", "auz", "avl", "ayh", "ayl", "ayn", "ayp", "bbz", "pga", "he", "iw", "ps", "pbt", "pbu", "pst", "prp", "prd", "ug", "ur", "ydd", "yds", "yih", "ji", "yi", "hbo", "men", "xmn", "fa", "jpr", "peo", "pes", "prs", "dv", "sam", "ckb"], i = this.services && this.services.languageUtils || new
|
|
3721
|
+
const t = ["ar", "shu", "sqr", "ssh", "xaa", "yhd", "yud", "aao", "abh", "abv", "acm", "acq", "acw", "acx", "acy", "adf", "ads", "aeb", "aec", "afb", "ajp", "apc", "apd", "arb", "arq", "ars", "ary", "arz", "auz", "avl", "ayh", "ayl", "ayn", "ayp", "bbz", "pga", "he", "iw", "ps", "pbt", "pbu", "pst", "prp", "prd", "ug", "ur", "ydd", "yds", "yih", "ji", "yi", "hbo", "men", "xmn", "fa", "jpr", "peo", "pes", "prs", "dv", "sam", "ckb"], i = this.services && this.services.languageUtils || new lt(ct());
|
|
3958
3722
|
return t.indexOf(i.getLanguagePartFromCode(e)) > -1 || e.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
|
|
3959
3723
|
}
|
|
3960
3724
|
static createInstance() {
|
|
3961
3725
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 ? arguments[1] : void 0;
|
|
3962
|
-
return new
|
|
3726
|
+
return new ee(e, t);
|
|
3963
3727
|
}
|
|
3964
3728
|
cloneInstance() {
|
|
3965
|
-
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] :
|
|
3729
|
+
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : ae;
|
|
3966
3730
|
const i = e.forkResourceStore;
|
|
3967
3731
|
i && delete e.forkResourceStore;
|
|
3968
3732
|
const a = {
|
|
3969
3733
|
...this.options,
|
|
3970
3734
|
...e,
|
|
3971
3735
|
isClone: !0
|
|
3972
|
-
}, s = new
|
|
3736
|
+
}, s = new ee(a);
|
|
3973
3737
|
return (e.debug !== void 0 || e.prefix !== void 0) && (s.logger = s.logger.clone(e)), ["store", "services", "language"].forEach((o) => {
|
|
3974
3738
|
s[o] = this[o];
|
|
3975
3739
|
}), s.services = {
|
|
3976
3740
|
...this.services
|
|
3977
3741
|
}, s.services.utils = {
|
|
3978
3742
|
hasLoadedNamespace: s.hasLoadedNamespace.bind(s)
|
|
3979
|
-
}, i && (s.store = new
|
|
3980
|
-
for (var
|
|
3981
|
-
|
|
3982
|
-
s.emit(o, ...
|
|
3743
|
+
}, i && (s.store = new rt(this.store.data, a), s.services.resourceStore = s.store), s.translator = new me(s.services, a), s.translator.on("*", function(o) {
|
|
3744
|
+
for (var l = arguments.length, u = new Array(l > 1 ? l - 1 : 0), d = 1; d < l; d++)
|
|
3745
|
+
u[d - 1] = arguments[d];
|
|
3746
|
+
s.emit(o, ...u);
|
|
3983
3747
|
}), s.init(a, t), s.translator.options = a, s.translator.backendConnector.services.utils = {
|
|
3984
3748
|
hasLoadedNamespace: s.hasLoadedNamespace.bind(s)
|
|
3985
3749
|
}, s;
|
|
@@ -3994,8 +3758,8 @@ class ae extends Ne {
|
|
|
3994
3758
|
};
|
|
3995
3759
|
}
|
|
3996
3760
|
}
|
|
3997
|
-
const U =
|
|
3998
|
-
U.createInstance =
|
|
3761
|
+
const U = ee.createInstance();
|
|
3762
|
+
U.createInstance = ee.createInstance;
|
|
3999
3763
|
U.createInstance;
|
|
4000
3764
|
U.dir;
|
|
4001
3765
|
U.init;
|
|
@@ -4010,7 +3774,7 @@ U.setDefaultNamespace;
|
|
|
4010
3774
|
U.hasLoadedNamespace;
|
|
4011
3775
|
U.loadNamespaces;
|
|
4012
3776
|
U.loadLanguages;
|
|
4013
|
-
const
|
|
3777
|
+
const Wa = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, Ja = {
|
|
4014
3778
|
"&": "&",
|
|
4015
3779
|
"&": "&",
|
|
4016
3780
|
"<": "<",
|
|
@@ -4031,8 +3795,8 @@ const is = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|
|
|
|
4031
3795
|
"…": "…",
|
|
4032
3796
|
"/": "/",
|
|
4033
3797
|
"/": "/"
|
|
4034
|
-
},
|
|
4035
|
-
let
|
|
3798
|
+
}, qa = (n) => Ja[n], Ha = (n) => n.replace(Wa, qa);
|
|
3799
|
+
let ft = {
|
|
4036
3800
|
bindI18n: "languageChanged",
|
|
4037
3801
|
bindI18nStore: "",
|
|
4038
3802
|
transEmptyNodeValue: "",
|
|
@@ -4040,73 +3804,73 @@ let Et = {
|
|
|
4040
3804
|
transWrapTextNodes: "",
|
|
4041
3805
|
transKeepBasicHtmlNodesFor: ["br", "strong", "i", "p"],
|
|
4042
3806
|
useSuspense: !0,
|
|
4043
|
-
unescape:
|
|
3807
|
+
unescape: Ha
|
|
4044
3808
|
};
|
|
4045
|
-
function
|
|
3809
|
+
function Za() {
|
|
4046
3810
|
let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
4047
|
-
|
|
4048
|
-
...
|
|
3811
|
+
ft = {
|
|
3812
|
+
...ft,
|
|
4049
3813
|
...n
|
|
4050
3814
|
};
|
|
4051
3815
|
}
|
|
4052
|
-
const
|
|
3816
|
+
const Xa = {
|
|
4053
3817
|
type: "3rdParty",
|
|
4054
3818
|
init(n) {
|
|
4055
|
-
|
|
3819
|
+
Za(n.options.react);
|
|
4056
3820
|
}
|
|
4057
3821
|
};
|
|
4058
|
-
|
|
4059
|
-
const
|
|
4060
|
-
let
|
|
4061
|
-
const
|
|
4062
|
-
const t =
|
|
3822
|
+
Ea(U, Xa);
|
|
3823
|
+
const Qs = (n) => la(U, n);
|
|
3824
|
+
let Le = /* @__PURE__ */ new Map();
|
|
3825
|
+
const we = pt(Le), Gs = ({ children: n, stores: e }) => {
|
|
3826
|
+
const t = Ce(we), i = Wt(() => {
|
|
4063
3827
|
const a = /* @__PURE__ */ new Map();
|
|
4064
|
-
return e.forEach((s) => a.set(s.class, s.value)),
|
|
3828
|
+
return e.forEach((s) => a.set(s.class, s.value)), Le = new Map([...t, ...a]);
|
|
4065
3829
|
}, []);
|
|
4066
|
-
return /* @__PURE__ */
|
|
3830
|
+
return /* @__PURE__ */ Jt(we.Provider, { value: i, children: n });
|
|
4067
3831
|
};
|
|
4068
|
-
function
|
|
4069
|
-
return
|
|
3832
|
+
function Ks(n) {
|
|
3833
|
+
return Ce(we).get(n);
|
|
4070
3834
|
}
|
|
4071
|
-
function
|
|
4072
|
-
return
|
|
3835
|
+
function Ws(n) {
|
|
3836
|
+
return Le.get(n);
|
|
4073
3837
|
}
|
|
4074
|
-
var
|
|
4075
|
-
const ds = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "AddCollection" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "CreateCollectionInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "createCollection" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CollectionSuccess" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, us = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "DeleteCollection" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "QueryInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "deleteCollection" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, cs = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FindCollection" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "QueryInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "findCollection" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CollectionSuccess" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "name" } }, { kind: "Field", name: { kind: "Name", value: "description" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "createdat" } }, { kind: "Field", name: { kind: "Name", value: "products" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "title" } }, { kind: "Field", name: { kind: "Name", value: "link" } }, { kind: "Field", name: { kind: "Name", value: "pictures" } }, { kind: "Field", name: { kind: "Name", value: "price" } }, { kind: "Field", name: { kind: "Name", value: "salesprice" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "createdat" } }] } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, ms = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "GetAllCollections" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "QueryInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "getAllCollection" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CollectionSuccessArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "name" } }, { kind: "Field", name: { kind: "Name", value: "description" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "createdat" } }, { kind: "Field", name: { kind: "Name", value: "products" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "title" } }, { kind: "Field", name: { kind: "Name", value: "link" } }, { kind: "Field", name: { kind: "Name", value: "pictures" } }, { kind: "Field", name: { kind: "Name", value: "price" } }, { kind: "Field", name: { kind: "Name", value: "salesprice" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "createdat" } }] } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, fs = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "ManageCollectionProduct" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ManageCollectionProductInInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "manageCollectionProduct" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, ps = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "SearchCollections" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "QueryInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "searchCollection" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CollectionSuccessArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "name" } }, { kind: "Field", name: { kind: "Name", value: "description" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "createdat" } }, { kind: "Field", name: { kind: "Name", value: "products" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "title" } }, { kind: "Field", name: { kind: "Name", value: "link" } }, { kind: "Field", name: { kind: "Name", value: "pictures" } }, { kind: "Field", name: { kind: "Name", value: "price" } }, { kind: "Field", name: { kind: "Name", value: "salesprice" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "createdat" } }] } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, hs = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "UpdateCollection" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "UpdateCollectionInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "updateCollection" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, gs = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FindMinimalEvent" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "FindEventInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "findEvent" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "EventData" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "eventName" } }, { kind: "Field", name: { kind: "Name", value: "thumbnailsPath" } }, { kind: "Field", name: { kind: "Name", value: "recordVideoPath" } }, { kind: "Field", name: { kind: "Name", value: "createdAt" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "thumbnails" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, ks = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "SearchMinimalEvents" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "SearchEventInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "searchEvent" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "EventArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "eventName" } }, { kind: "Field", name: { kind: "Name", value: "thumbnailsPath" } }, { kind: "Field", name: { kind: "Name", value: "recordVideoPath" } }, { kind: "Field", name: { kind: "Name", value: "createdAt" } }, { kind: "Field", name: { kind: "Name", value: "status" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, vs = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "BlockUser" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "BlockUserInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "blockUser" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "BlockUserSuccess" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }] } }] } }] }, Ss = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "ChangeAccountUsername" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ChangeUsernameInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "changeAccountUsername" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ChangeUsernameSuccess" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }] } }] } }] }, ys = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "DeleteChatMessage" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "DeleteChatInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "deleteChatMessage" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "DeleteChatMessageSuccess" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }] } }] } }] }, Ns = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "GetAllChatMessage" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "GetAllChatMessageInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "getAllChatMessage" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ChatMessageArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "connectionId" } }, { kind: "Field", name: { kind: "Name", value: "data" } }, { kind: "Field", name: { kind: "Name", value: "email" } }, { kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "idEvent" } }, { kind: "Field", name: { kind: "Name", value: "sendDate" } }, { kind: "Field", name: { kind: "Name", value: "sessionId" } }, { kind: "Field", name: { kind: "Name", value: "type" } }, { kind: "Field", name: { kind: "Name", value: "username" } }, { kind: "Field", name: { kind: "Name", value: "isAdmin" } }, { kind: "Field", name: { kind: "Name", value: "urlGif" } }, { kind: "Field", name: { kind: "Name", value: "second" } }, { kind: "Field", name: { kind: "Name", value: "ip" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, bs = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "GetChatRoomToken" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "GetChatRoomInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "getChatRoomToken" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ChatRoomTokenData" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "token" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, Fs = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "PinChatMessage" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "PinChatInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "pinChatMessage" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "PinChatMessageSuccess" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }] } }] } }] }, ws = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "deleteAllCustomization" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "CustomPlayerInputAccount" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "deleteAllCustomPlayer" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, Cs = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "getAllCustomization" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "QueryInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "getAllCustomPlayer" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CustomPlayerSuccessArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "data" } }, { kind: "Field", name: { kind: "Name", value: "section" } }, { kind: "Field", name: { kind: "Name", value: "id" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, Es = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "updateCustomization" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "CustomPlayerInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "updateCustomPlayer" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, Os = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "GetTimeLine" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "GetTimeLineInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "getTimeLine" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "TimeLineArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "time" } }, { kind: "Field", name: { kind: "Name", value: "likes" } }, { kind: "Field", name: { kind: "Name", value: "comments" } }, { kind: "Field", name: { kind: "Name", value: "viewers" } }, { kind: "Field", name: { kind: "Name", value: "orders" } }, { kind: "Field", name: { kind: "Name", value: "minute" } }, { kind: "Field", name: { kind: "Name", value: "hour" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, Rs = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "AppendProductsToSnackVideo" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "RelateToProductsSnackVideoInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "appendProductsSnackVideo" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ActionSnackVideoSuccess" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, xs = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "CreateSnackVideoBatch" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "CreateSnackVideoInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "createSnackVideos" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "SnackVideoArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, Ts = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "DeleteRelationshipWithSnackVideo" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "SnackVideoRelationshipKeys" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "deleteRelationshipSnackVideo" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ActionSnackVideoSuccess" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }] } }] } }] } }] }, Ds = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "DeleteSnackVideo" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "DeleteSnackVideoInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "deleteSnackVideo" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ActionSnackVideoSuccess" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }] } }] } }] }, Ls = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FindManySnackVideos" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "FindManySnackVideoInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "findManySnackVideos" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "SnackVideoArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "name" } }, { kind: "Field", name: { kind: "Name", value: "url" } }, { kind: "Field", name: { kind: "Name", value: "thumbnailUrl" } }, { kind: "Field", name: { kind: "Name", value: "uploadProgress" } }, { kind: "Field", name: { kind: "Name", value: "duration" } }, { kind: "Field", name: { kind: "Name", value: "eventId" } }, { kind: "Field", name: { kind: "Name", value: "eventName" } }, { kind: "Field", name: { kind: "Name", value: "transmitionType" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, Is = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "GetAllSnackVideos" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "QueryInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "getAllSnackVideos" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "SnackVideoCreatedArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "snackVideos" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "name" } }, { kind: "Field", name: { kind: "Name", value: "url" } }, { kind: "Field", name: { kind: "Name", value: "thumbnailUrl" } }, { kind: "Field", name: { kind: "Name", value: "uploadProgress" } }, { kind: "Field", name: { kind: "Name", value: "duration" } }, { kind: "Field", name: { kind: "Name", value: "eventId" } }, { kind: "Field", name: { kind: "Name", value: "eventName" } }, { kind: "Field", name: { kind: "Name", value: "created" } }, { kind: "Field", name: { kind: "Name", value: "transmitionType" } }] } }, { kind: "Field", name: { kind: "Name", value: "cursor" } }, { kind: "Field", name: { kind: "Name", value: "totalItems" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, As = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "GetSnackVideoRelationships" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "SnackVideoRelationshipInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "getRelationshipSnackVideos" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "RelationshipSnackVideoArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "sourceEntity" } }, { kind: "Field", name: { kind: "Name", value: "attributeId" } }] } }] } }] } }] } }] }, Ps = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "SearchSnackVideos" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "SearchInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "searchSnackVideos" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "SnackVideoCreatedArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "snackVideos" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "name" } }, { kind: "Field", name: { kind: "Name", value: "url" } }, { kind: "Field", name: { kind: "Name", value: "thumbnailUrl" } }, { kind: "Field", name: { kind: "Name", value: "uploadProgress" } }, { kind: "Field", name: { kind: "Name", value: "duration" } }, { kind: "Field", name: { kind: "Name", value: "eventId" } }, { kind: "Field", name: { kind: "Name", value: "eventName" } }, { kind: "Field", name: { kind: "Name", value: "created" } }] } }, { kind: "Field", name: { kind: "Name", value: "cursor" } }, { kind: "Field", name: { kind: "Name", value: "totalItems" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, Vs = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FindByProductSnackVideo" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "FindByProductSnackVideoInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "findByProductSnackVideo" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "SnackVideoArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "name" } }, { kind: "Field", name: { kind: "Name", value: "url" } }, { kind: "Field", name: { kind: "Name", value: "thumbnailUrl" } }, { kind: "Field", name: { kind: "Name", value: "duration" } }, { kind: "Field", name: { kind: "Name", value: "transmitionType" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, ar = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3838
|
+
var Mt = /* @__PURE__ */ ((n) => (n.Created = "CREATED", n.Finalized = "FINALIZED", n.Live = "LIVE", n.Starting = "STARTING", n))(Mt || {}), $t = /* @__PURE__ */ ((n) => (n.Add = "add", n.Remove = "remove", n))($t || {}), jt = /* @__PURE__ */ ((n) => (n.Active = "active", n.Inactive = "inactive", n))(jt || {});
|
|
3839
|
+
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({
|
|
4076
3840
|
__proto__: null,
|
|
4077
|
-
AddCollectionDocument:
|
|
4078
|
-
AppendProductsToSnackVideoDocument:
|
|
4079
|
-
BlockUserDocument:
|
|
4080
|
-
ChangeAccountUsernameDocument:
|
|
4081
|
-
CreateSnackVideoBatchDocument:
|
|
4082
|
-
DeleteAllCustomizationDocument:
|
|
4083
|
-
DeleteChatMessageDocument:
|
|
4084
|
-
DeleteCollectionDocument:
|
|
4085
|
-
DeleteRelationshipWithSnackVideoDocument:
|
|
4086
|
-
DeleteSnackVideoDocument:
|
|
4087
|
-
EventStatus:
|
|
4088
|
-
FindByProductSnackVideoDocument:
|
|
4089
|
-
FindCollectionDocument:
|
|
4090
|
-
FindManySnackVideosDocument:
|
|
4091
|
-
FindMinimalEventDocument:
|
|
4092
|
-
GetAllChatMessageDocument:
|
|
4093
|
-
GetAllCollectionsDocument:
|
|
4094
|
-
GetAllCustomizationDocument:
|
|
4095
|
-
GetAllSnackVideosDocument:
|
|
4096
|
-
GetChatRoomTokenDocument:
|
|
4097
|
-
GetSnackVideoRelationshipsDocument:
|
|
4098
|
-
GetTimeLineDocument:
|
|
4099
|
-
ManageCollectionProductDocument:
|
|
4100
|
-
Methods:
|
|
4101
|
-
PinChatMessageDocument:
|
|
4102
|
-
SearchCollectionsDocument:
|
|
4103
|
-
SearchMinimalEventsDocument:
|
|
4104
|
-
SearchSnackVideosDocument:
|
|
4105
|
-
Status:
|
|
4106
|
-
UpdateCollectionDocument:
|
|
4107
|
-
UpdateCustomizationDocument:
|
|
3841
|
+
AddCollectionDocument: Ya,
|
|
3842
|
+
AppendProductsToSnackVideoDocument: vs,
|
|
3843
|
+
BlockUserDocument: ls,
|
|
3844
|
+
ChangeAccountUsernameDocument: ds,
|
|
3845
|
+
CreateSnackVideoBatchDocument: Ss,
|
|
3846
|
+
DeleteAllCustomizationDocument: ps,
|
|
3847
|
+
DeleteChatMessageDocument: us,
|
|
3848
|
+
DeleteCollectionDocument: es,
|
|
3849
|
+
DeleteRelationshipWithSnackVideoDocument: ys,
|
|
3850
|
+
DeleteSnackVideoDocument: Ns,
|
|
3851
|
+
EventStatus: Mt,
|
|
3852
|
+
FindByProductSnackVideoDocument: Es,
|
|
3853
|
+
FindCollectionDocument: ts,
|
|
3854
|
+
FindManySnackVideosDocument: bs,
|
|
3855
|
+
FindMinimalEventDocument: rs,
|
|
3856
|
+
GetAllChatMessageDocument: cs,
|
|
3857
|
+
GetAllCollectionsDocument: ns,
|
|
3858
|
+
GetAllCustomizationDocument: hs,
|
|
3859
|
+
GetAllSnackVideosDocument: Fs,
|
|
3860
|
+
GetChatRoomTokenDocument: ms,
|
|
3861
|
+
GetSnackVideoRelationshipsDocument: ws,
|
|
3862
|
+
GetTimeLineDocument: ks,
|
|
3863
|
+
ManageCollectionProductDocument: is,
|
|
3864
|
+
Methods: $t,
|
|
3865
|
+
PinChatMessageDocument: fs,
|
|
3866
|
+
SearchCollectionsDocument: as,
|
|
3867
|
+
SearchMinimalEventsDocument: os,
|
|
3868
|
+
SearchSnackVideosDocument: Cs,
|
|
3869
|
+
Status: jt,
|
|
3870
|
+
UpdateCollectionDocument: ss,
|
|
3871
|
+
UpdateCustomizationDocument: gs
|
|
4108
3872
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4109
|
-
function
|
|
3873
|
+
function qs(n) {
|
|
4110
3874
|
return {
|
|
4111
3875
|
class: n,
|
|
4112
3876
|
_value: null,
|
|
@@ -4116,58 +3880,61 @@ function sr(n) {
|
|
|
4116
3880
|
};
|
|
4117
3881
|
}
|
|
4118
3882
|
export {
|
|
4119
|
-
|
|
4120
|
-
|
|
4121
|
-
|
|
4122
|
-
|
|
4123
|
-
|
|
4124
|
-
|
|
4125
|
-
|
|
4126
|
-
|
|
4127
|
-
|
|
4128
|
-
|
|
4129
|
-
|
|
4130
|
-
|
|
4131
|
-
|
|
4132
|
-
|
|
4133
|
-
|
|
4134
|
-
|
|
4135
|
-
|
|
4136
|
-
|
|
4137
|
-
|
|
4138
|
-
|
|
4139
|
-
|
|
4140
|
-
|
|
4141
|
-
|
|
4142
|
-
|
|
4143
|
-
|
|
4144
|
-
|
|
4145
|
-
|
|
4146
|
-
|
|
4147
|
-
|
|
4148
|
-
|
|
4149
|
-
|
|
4150
|
-
|
|
4151
|
-
|
|
4152
|
-
|
|
4153
|
-
|
|
4154
|
-
|
|
4155
|
-
|
|
4156
|
-
|
|
4157
|
-
|
|
4158
|
-
|
|
4159
|
-
|
|
4160
|
-
|
|
4161
|
-
|
|
4162
|
-
|
|
4163
|
-
|
|
4164
|
-
|
|
4165
|
-
|
|
4166
|
-
|
|
4167
|
-
|
|
4168
|
-
|
|
4169
|
-
|
|
4170
|
-
|
|
4171
|
-
|
|
3883
|
+
Dt as AccountContractStatusTypes,
|
|
3884
|
+
ci as AccountContractTypes,
|
|
3885
|
+
Vs as AccountInvalidError,
|
|
3886
|
+
fi as AccountPlanDescriptionTypes,
|
|
3887
|
+
gi as AccountRestRepository,
|
|
3888
|
+
ki as AccountService,
|
|
3889
|
+
mi as AccountSubscriptionTypes,
|
|
3890
|
+
Tt as AccountTypes,
|
|
3891
|
+
di as AggregateRoot,
|
|
3892
|
+
Js as ApiGraphqlTypes,
|
|
3893
|
+
Ms as BaseMobxStore,
|
|
3894
|
+
jn as BroadcastChannelEventBus,
|
|
3895
|
+
he as DomainError,
|
|
3896
|
+
zs as EventBusWildcards,
|
|
3897
|
+
Bs as EventNames,
|
|
3898
|
+
pi as GlobalPageSectionTypes,
|
|
3899
|
+
li as InvalidNizzaGlobalObjectError,
|
|
3900
|
+
ia as LanguageTypes,
|
|
3901
|
+
Gn as Logger,
|
|
3902
|
+
Re as NizzaAccount,
|
|
3903
|
+
na as NizzaEventStatus,
|
|
3904
|
+
sa as NizzaProductRequestOriginTypes,
|
|
3905
|
+
aa as NizzaVariationTypes,
|
|
3906
|
+
ri as ResourceNotFoundError,
|
|
3907
|
+
Gs as StoreProvider,
|
|
3908
|
+
oi as UnexpectedError,
|
|
3909
|
+
$s as ValueObject,
|
|
3910
|
+
Ee as accountAtom,
|
|
3911
|
+
It as accountService,
|
|
3912
|
+
Ts as apiCall,
|
|
3913
|
+
ra as buildLanguageTranslations,
|
|
3914
|
+
oa as buildTranslations,
|
|
3915
|
+
Kn as configure,
|
|
3916
|
+
Z as coreLogger,
|
|
3917
|
+
ui as createAggregateRoot,
|
|
3918
|
+
qs as createStore,
|
|
3919
|
+
vt as customFetch,
|
|
3920
|
+
Ds as downloadFile,
|
|
3921
|
+
Ls as fileOrigin,
|
|
3922
|
+
ta as getAccount,
|
|
3923
|
+
Us as getClientTimeZone,
|
|
3924
|
+
Ws as getStore,
|
|
3925
|
+
ea as globalAtomStore,
|
|
3926
|
+
Ea as i18Init,
|
|
3927
|
+
hn as jsDownload,
|
|
3928
|
+
Ps as logger,
|
|
3929
|
+
Rt as nizza,
|
|
3930
|
+
Qs as registerTranslations,
|
|
3931
|
+
la as registerTranslationsOf,
|
|
3932
|
+
Is as searchParams,
|
|
3933
|
+
Wn as setProductDataSource,
|
|
3934
|
+
Bn as shortId,
|
|
3935
|
+
js as useAccount,
|
|
3936
|
+
qn as useNizza,
|
|
3937
|
+
Ks as useStore,
|
|
3938
|
+
_s as validateRequiredProps
|
|
4172
3939
|
};
|
|
4173
3940
|
//# sourceMappingURL=index.mjs.map
|