@nizza/core 0.3.1-beta.1 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/environments/environment.prod.d.ts +21 -0
- package/dist/index.cjs +4 -4
- package/dist/index.mjs +584 -582
- package/dist/lib/utils/customFetch.d.ts +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
var qi = Object.defineProperty, Wi = Object.defineProperties;
|
|
2
|
-
var
|
|
3
|
-
var
|
|
2
|
+
var Zi = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var Ze = Object.getOwnPropertySymbols;
|
|
4
4
|
var nn = Object.prototype.hasOwnProperty, an = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var gt = (e, t, n) => t in e ? qi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n,
|
|
5
|
+
var gt = (e, t, n) => t in e ? qi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, K = (e, t) => {
|
|
6
6
|
for (var n in t || (t = {}))
|
|
7
7
|
nn.call(t, n) && gt(e, n, t[n]);
|
|
8
|
-
if (
|
|
9
|
-
for (var n of
|
|
8
|
+
if (Ze)
|
|
9
|
+
for (var n of Ze(t))
|
|
10
10
|
an.call(t, n) && gt(e, n, t[n]);
|
|
11
11
|
return e;
|
|
12
|
-
}, se = (e, t) => Wi(e,
|
|
12
|
+
}, se = (e, t) => Wi(e, Zi(t));
|
|
13
13
|
var Re = (e, t) => {
|
|
14
14
|
var n = {};
|
|
15
15
|
for (var i in e)
|
|
16
16
|
nn.call(e, i) && t.indexOf(i) < 0 && (n[i] = e[i]);
|
|
17
|
-
if (e != null &&
|
|
18
|
-
for (var i of
|
|
17
|
+
if (e != null && Ze)
|
|
18
|
+
for (var i of Ze(e))
|
|
19
19
|
t.indexOf(i) < 0 && an.call(e, i) && (n[i] = e[i]);
|
|
20
20
|
return n;
|
|
21
21
|
};
|
|
22
22
|
var S = (e, t, n) => (gt(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
23
23
|
import * as G from "react";
|
|
24
|
-
import Pn, { createContext as Vn, useReducer as
|
|
24
|
+
import Pn, { createContext as Vn, useReducer as Xi, useEffect as Me, useDebugValue as Hi, useCallback as Yi, useContext as Ut, useMemo as Ji, useState as ea } from "react";
|
|
25
25
|
import { jsx as ta } from "react/jsx-runtime";
|
|
26
26
|
let na = 0;
|
|
27
27
|
function ia(e, t) {
|
|
@@ -43,16 +43,16 @@ const Nt = (e) => "init" in e, Ot = (e) => !!e.write, nt = /* @__PURE__ */ new W
|
|
|
43
43
|
e.status = "fulfilled", e.value = t;
|
|
44
44
|
}, on = (e, t) => {
|
|
45
45
|
e.status = "rejected", e.reason = t;
|
|
46
|
-
},
|
|
46
|
+
}, Xe = (e, t) => "v" in e && "v" in t && Object.is(e.v, t.v), un = (e, t) => "e" in e && "e" in t && Object.is(e.e, t.e), At = (e) => "v" in e && e.v instanceof Promise, He = (e) => {
|
|
47
47
|
if ("e" in e)
|
|
48
48
|
throw e.e;
|
|
49
49
|
return e.v;
|
|
50
50
|
}, In = () => {
|
|
51
51
|
const e = /* @__PURE__ */ new WeakMap(), t = /* @__PURE__ */ new WeakMap(), n = /* @__PURE__ */ new Map();
|
|
52
52
|
let i, a;
|
|
53
|
-
({ NZ_AWS_REGION: "us-east-1",
|
|
53
|
+
({ NZ_AWS_REGION: "us-east-1", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 } && "production") !== "production" && (i = /* @__PURE__ */ new Set(), a = /* @__PURE__ */ new Set());
|
|
54
54
|
const r = (l) => e.get(l), s = (l, m) => {
|
|
55
|
-
({ NZ_AWS_REGION: "us-east-1",
|
|
55
|
+
({ NZ_AWS_REGION: "us-east-1", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 } && "production") !== "production" && Object.freeze(m);
|
|
56
56
|
const h = e.get(l);
|
|
57
57
|
if (e.set(l, m), n.has(l) || n.set(l, h), h && At(h)) {
|
|
58
58
|
const p = "v" in m ? m.v instanceof Promise ? m.v : Promise.resolve(m.v) : Promise.reject(m.e);
|
|
@@ -61,53 +61,53 @@ const Nt = (e) => "init" in e, Ot = (e) => !!e.write, nt = /* @__PURE__ */ new W
|
|
|
61
61
|
}, o = (l, m, h) => {
|
|
62
62
|
const p = /* @__PURE__ */ new Map();
|
|
63
63
|
let y = !1;
|
|
64
|
-
h.forEach((
|
|
65
|
-
!
|
|
64
|
+
h.forEach((_, O) => {
|
|
65
|
+
!_ && O === l && (_ = m), _ ? (p.set(O, _), m.d.get(O) !== _ && (y = !0)) : ({ NZ_AWS_REGION: "us-east-1", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 } && "production") !== "production" && console.warn("[Bug] atom state not found");
|
|
66
66
|
}), (y || m.d.size !== p.size) && (m.d = p);
|
|
67
67
|
}, u = (l, m, h) => {
|
|
68
68
|
const p = r(l), y = {
|
|
69
69
|
d: (p == null ? void 0 : p.d) || /* @__PURE__ */ new Map(),
|
|
70
70
|
v: m
|
|
71
71
|
};
|
|
72
|
-
return h && o(l, y, h), p &&
|
|
72
|
+
return h && o(l, y, h), p && Xe(p, y) && p.d === y.d ? p : (s(l, y), y);
|
|
73
73
|
}, d = (l, m, h, p) => {
|
|
74
74
|
if (m instanceof Promise) {
|
|
75
75
|
let y;
|
|
76
|
-
const
|
|
76
|
+
const _ = new Promise((O, ve) => {
|
|
77
77
|
let E = !1;
|
|
78
78
|
m.then(
|
|
79
|
-
(
|
|
79
|
+
(D) => {
|
|
80
80
|
if (!E) {
|
|
81
81
|
E = !0;
|
|
82
|
-
const
|
|
82
|
+
const T = r(l), Fe = u(
|
|
83
83
|
l,
|
|
84
|
-
|
|
84
|
+
_,
|
|
85
85
|
h
|
|
86
86
|
);
|
|
87
|
-
sn(
|
|
87
|
+
sn(_, D), O(D), (T == null ? void 0 : T.d) !== Fe.d && x(l, Fe, T == null ? void 0 : T.d);
|
|
88
88
|
}
|
|
89
89
|
},
|
|
90
|
-
(
|
|
90
|
+
(D) => {
|
|
91
91
|
if (!E) {
|
|
92
92
|
E = !0;
|
|
93
|
-
const
|
|
93
|
+
const T = r(l), Fe = u(
|
|
94
94
|
l,
|
|
95
|
-
|
|
95
|
+
_,
|
|
96
96
|
h
|
|
97
97
|
);
|
|
98
|
-
on(
|
|
98
|
+
on(_, D), ve(D), (T == null ? void 0 : T.d) !== Fe.d && x(l, Fe, T == null ? void 0 : T.d);
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
|
-
), y = (
|
|
102
|
-
E || (E = !0,
|
|
103
|
-
(
|
|
104
|
-
(
|
|
105
|
-
), O(
|
|
101
|
+
), y = (D) => {
|
|
102
|
+
E || (E = !0, D.then(
|
|
103
|
+
(T) => sn(_, T),
|
|
104
|
+
(T) => on(_, T)
|
|
105
|
+
), O(D));
|
|
106
106
|
};
|
|
107
107
|
});
|
|
108
|
-
return
|
|
108
|
+
return _.status = "pending", aa(_, (O) => {
|
|
109
109
|
O && y(O), p == null || p();
|
|
110
|
-
}), u(l,
|
|
110
|
+
}), u(l, _, h);
|
|
111
111
|
}
|
|
112
112
|
return u(l, m, h);
|
|
113
113
|
}, c = (l, m, h) => {
|
|
@@ -118,35 +118,35 @@ const Nt = (e) => "init" in e, Ot = (e) => !!e.write, nt = /* @__PURE__ */ new W
|
|
|
118
118
|
return h && o(l, y, h), p && un(p, y) && p.d === y.d ? p : (s(l, y), y);
|
|
119
119
|
}, v = (l) => {
|
|
120
120
|
const m = r(l);
|
|
121
|
-
if (m && (m.d.forEach((E,
|
|
122
|
-
|
|
121
|
+
if (m && (m.d.forEach((E, D) => {
|
|
122
|
+
D !== l && !t.has(D) && v(D);
|
|
123
123
|
}), Array.from(m.d).every(
|
|
124
|
-
([E,
|
|
124
|
+
([E, D]) => E === l || r(E) === D
|
|
125
125
|
)))
|
|
126
126
|
return m;
|
|
127
127
|
const h = /* @__PURE__ */ new Map();
|
|
128
128
|
let p = !0;
|
|
129
129
|
const y = (E) => {
|
|
130
130
|
if (E === l) {
|
|
131
|
-
const
|
|
132
|
-
if (
|
|
133
|
-
return h.set(E,
|
|
131
|
+
const T = r(E);
|
|
132
|
+
if (T)
|
|
133
|
+
return h.set(E, T), He(T);
|
|
134
134
|
if (Nt(E))
|
|
135
135
|
return h.set(E, void 0), E.init;
|
|
136
136
|
throw new Error("no atom init");
|
|
137
137
|
}
|
|
138
|
-
const
|
|
139
|
-
return h.set(E,
|
|
138
|
+
const D = v(E);
|
|
139
|
+
return h.set(E, D), He(D);
|
|
140
140
|
};
|
|
141
|
-
let
|
|
141
|
+
let _, O;
|
|
142
142
|
const ve = {
|
|
143
143
|
get signal() {
|
|
144
|
-
return
|
|
144
|
+
return _ || (_ = new AbortController()), _.signal;
|
|
145
145
|
},
|
|
146
146
|
get setSelf() {
|
|
147
|
-
return ({ NZ_AWS_REGION: "us-east-1",
|
|
148
|
-
if (({ NZ_AWS_REGION: "us-east-1",
|
|
149
|
-
return
|
|
147
|
+
return ({ NZ_AWS_REGION: "us-east-1", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 } && "production") !== "production" && !Ot(l) && console.warn("setSelf function cannot be used with read-only atom"), !O && Ot(l) && (O = (...E) => {
|
|
148
|
+
if (({ NZ_AWS_REGION: "us-east-1", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 } && "production") !== "production" && p && console.warn("setSelf function cannot be called in sync"), !p)
|
|
149
|
+
return Q(l, ...E);
|
|
150
150
|
}), O;
|
|
151
151
|
}
|
|
152
152
|
};
|
|
@@ -156,108 +156,108 @@ const Nt = (e) => "init" in e, Ot = (e) => !!e.write, nt = /* @__PURE__ */ new W
|
|
|
156
156
|
l,
|
|
157
157
|
E,
|
|
158
158
|
h,
|
|
159
|
-
() =>
|
|
159
|
+
() => _ == null ? void 0 : _.abort()
|
|
160
160
|
);
|
|
161
161
|
} catch (E) {
|
|
162
162
|
return c(l, E, h);
|
|
163
163
|
} finally {
|
|
164
164
|
p = !1;
|
|
165
165
|
}
|
|
166
|
-
}, b = (l) =>
|
|
166
|
+
}, b = (l) => He(v(l)), F = (l) => {
|
|
167
167
|
let m = t.get(l);
|
|
168
168
|
return m || (m = C(l)), m;
|
|
169
169
|
}, I = (l, m) => !m.l.size && (!m.t.size || m.t.size === 1 && m.t.has(l)), R = (l) => {
|
|
170
170
|
const m = t.get(l);
|
|
171
|
-
m && I(l, m) &&
|
|
171
|
+
m && I(l, m) && w(l);
|
|
172
172
|
}, A = (l) => {
|
|
173
173
|
const m = t.get(l);
|
|
174
174
|
m == null || m.t.forEach((h) => {
|
|
175
175
|
if (h !== l) {
|
|
176
176
|
const p = r(h), y = v(h);
|
|
177
|
-
(!p || !
|
|
177
|
+
(!p || !Xe(p, y)) && A(h);
|
|
178
178
|
}
|
|
179
179
|
});
|
|
180
180
|
}, W = (l, ...m) => {
|
|
181
181
|
let h = !0;
|
|
182
|
-
const p = (O) =>
|
|
182
|
+
const p = (O) => He(v(O)), y = (O, ...ve) => {
|
|
183
183
|
let E;
|
|
184
184
|
if (O === l) {
|
|
185
185
|
if (!Nt(O))
|
|
186
186
|
throw new Error("atom not writable");
|
|
187
|
-
const
|
|
188
|
-
(!
|
|
187
|
+
const D = r(O), T = d(O, ve[0]);
|
|
188
|
+
(!D || !Xe(D, T)) && A(O);
|
|
189
189
|
} else
|
|
190
190
|
E = W(O, ...ve);
|
|
191
|
-
return h ||
|
|
192
|
-
},
|
|
193
|
-
return h = !1,
|
|
194
|
-
},
|
|
191
|
+
return h || j(), E;
|
|
192
|
+
}, _ = l.write(p, y, ...m);
|
|
193
|
+
return h = !1, _;
|
|
194
|
+
}, Q = (l, ...m) => {
|
|
195
195
|
const h = W(l, ...m);
|
|
196
|
-
return
|
|
196
|
+
return j(), h;
|
|
197
197
|
}, C = (l, m) => {
|
|
198
198
|
const h = {
|
|
199
199
|
t: new Set(m && [m]),
|
|
200
200
|
l: /* @__PURE__ */ new Set()
|
|
201
201
|
};
|
|
202
|
-
if (t.set(l, h), ({ NZ_AWS_REGION: "us-east-1",
|
|
203
|
-
const
|
|
204
|
-
|
|
202
|
+
if (t.set(l, h), ({ NZ_AWS_REGION: "us-east-1", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 } && "production") !== "production" && a.add(l), v(l).d.forEach((p, y) => {
|
|
203
|
+
const _ = t.get(y);
|
|
204
|
+
_ ? _.t.add(l) : y !== l && C(y, l);
|
|
205
205
|
}), v(l), Ot(l) && l.onMount) {
|
|
206
|
-
const p = l.onMount((...y) =>
|
|
206
|
+
const p = l.onMount((...y) => Q(l, ...y));
|
|
207
207
|
p && (h.u = p);
|
|
208
208
|
}
|
|
209
209
|
return h;
|
|
210
|
-
},
|
|
210
|
+
}, w = (l) => {
|
|
211
211
|
var m;
|
|
212
212
|
const h = (m = t.get(l)) == null ? void 0 : m.u;
|
|
213
|
-
h && h(), t.delete(l), ({ NZ_AWS_REGION: "us-east-1",
|
|
213
|
+
h && h(), t.delete(l), ({ NZ_AWS_REGION: "us-east-1", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 } && "production") !== "production" && a.delete(l);
|
|
214
214
|
const p = r(l);
|
|
215
|
-
p ? (At(p) && rn(p.v), p.d.forEach((y,
|
|
216
|
-
if (
|
|
217
|
-
const O = t.get(
|
|
218
|
-
O && (O.t.delete(l), I(
|
|
215
|
+
p ? (At(p) && rn(p.v), p.d.forEach((y, _) => {
|
|
216
|
+
if (_ !== l) {
|
|
217
|
+
const O = t.get(_);
|
|
218
|
+
O && (O.t.delete(l), I(_, O) && w(_));
|
|
219
219
|
}
|
|
220
|
-
})) : ({ NZ_AWS_REGION: "us-east-1",
|
|
221
|
-
},
|
|
220
|
+
})) : ({ NZ_AWS_REGION: "us-east-1", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 } && "production") !== "production" && console.warn("[Bug] could not find atom state to unmount", l);
|
|
221
|
+
}, x = (l, m, h) => {
|
|
222
222
|
const p = new Set(m.d.keys());
|
|
223
|
-
h == null || h.forEach((y,
|
|
224
|
-
if (p.has(
|
|
225
|
-
p.delete(
|
|
223
|
+
h == null || h.forEach((y, _) => {
|
|
224
|
+
if (p.has(_)) {
|
|
225
|
+
p.delete(_);
|
|
226
226
|
return;
|
|
227
227
|
}
|
|
228
|
-
const O = t.get(
|
|
229
|
-
O && (O.t.delete(l), I(
|
|
228
|
+
const O = t.get(_);
|
|
229
|
+
O && (O.t.delete(l), I(_, O) && w(_));
|
|
230
230
|
}), p.forEach((y) => {
|
|
231
|
-
const
|
|
232
|
-
|
|
231
|
+
const _ = t.get(y);
|
|
232
|
+
_ ? _.t.add(l) : t.has(l) && C(y, l);
|
|
233
233
|
});
|
|
234
|
-
},
|
|
234
|
+
}, j = () => {
|
|
235
235
|
for (; n.size; ) {
|
|
236
236
|
const l = Array.from(n);
|
|
237
237
|
n.clear(), l.forEach(([m, h]) => {
|
|
238
238
|
const p = r(m);
|
|
239
239
|
if (p) {
|
|
240
|
-
p.d !== (h == null ? void 0 : h.d) &&
|
|
240
|
+
p.d !== (h == null ? void 0 : h.d) && x(m, p, h == null ? void 0 : h.d);
|
|
241
241
|
const y = t.get(m);
|
|
242
242
|
y && !// TODO This seems pretty hacky. Hope to fix it.
|
|
243
243
|
// Maybe we could `mountDependencies` in `setAtomState`?
|
|
244
|
-
(h && !At(h) && (
|
|
244
|
+
(h && !At(h) && (Xe(h, p) || un(h, p))) && y.l.forEach((_) => _());
|
|
245
245
|
} else
|
|
246
|
-
({ NZ_AWS_REGION: "us-east-1",
|
|
246
|
+
({ NZ_AWS_REGION: "us-east-1", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 } && "production") !== "production" && console.warn("[Bug] no atom state to flush");
|
|
247
247
|
});
|
|
248
248
|
}
|
|
249
|
-
({ NZ_AWS_REGION: "us-east-1",
|
|
249
|
+
({ NZ_AWS_REGION: "us-east-1", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 } && "production") !== "production" && i.forEach((l) => l("state"));
|
|
250
250
|
}, me = (l, m) => {
|
|
251
251
|
const h = F(l);
|
|
252
|
-
|
|
252
|
+
j();
|
|
253
253
|
const p = h.l;
|
|
254
|
-
return p.add(m), ({ NZ_AWS_REGION: "us-east-1",
|
|
255
|
-
p.delete(m), R(l), ({ NZ_AWS_REGION: "us-east-1",
|
|
254
|
+
return p.add(m), ({ NZ_AWS_REGION: "us-east-1", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 } && "production") !== "production" && i.forEach((y) => y("sub")), () => {
|
|
255
|
+
p.delete(m), R(l), ({ NZ_AWS_REGION: "us-east-1", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 } && "production") !== "production" && i.forEach((y) => y("unsub"));
|
|
256
256
|
};
|
|
257
257
|
};
|
|
258
|
-
return ({ NZ_AWS_REGION: "us-east-1",
|
|
258
|
+
return ({ NZ_AWS_REGION: "us-east-1", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 } && "production") !== "production" ? {
|
|
259
259
|
get: b,
|
|
260
|
-
set:
|
|
260
|
+
set: Q,
|
|
261
261
|
sub: me,
|
|
262
262
|
// store dev methods (these are tentative and subject to change without notice)
|
|
263
263
|
dev_subscribe_store: (l) => (i.add(l), () => {
|
|
@@ -269,17 +269,17 @@ const Nt = (e) => "init" in e, Ot = (e) => !!e.write, nt = /* @__PURE__ */ new W
|
|
|
269
269
|
dev_restore_atoms: (l) => {
|
|
270
270
|
for (const [m, h] of l)
|
|
271
271
|
Nt(m) && (d(m, h), A(m));
|
|
272
|
-
|
|
272
|
+
j();
|
|
273
273
|
}
|
|
274
274
|
} : {
|
|
275
275
|
get: b,
|
|
276
|
-
set:
|
|
276
|
+
set: Q,
|
|
277
277
|
sub: me
|
|
278
278
|
};
|
|
279
279
|
};
|
|
280
280
|
let Et;
|
|
281
|
-
const ra = () => (Et || (Et = In()), Et), sa = Vn(void 0),
|
|
282
|
-
const t =
|
|
281
|
+
const ra = () => (Et || (Et = In()), Et), sa = Vn(void 0), xn = (e) => {
|
|
282
|
+
const t = Ut(sa);
|
|
283
283
|
return (e == null ? void 0 : e.store) || t || ra();
|
|
284
284
|
}, oa = (e) => e instanceof Promise, ua = Pn.use || ((e) => {
|
|
285
285
|
if (e.status === "pending")
|
|
@@ -296,7 +296,7 @@ const ra = () => (Et || (Et = In()), Et), sa = Vn(void 0), jn = (e) => {
|
|
|
296
296
|
), e);
|
|
297
297
|
});
|
|
298
298
|
function la(e, t) {
|
|
299
|
-
const n =
|
|
299
|
+
const n = xn(t), [[i, a, r], s] = Xi(
|
|
300
300
|
(d) => {
|
|
301
301
|
const c = n.get(e);
|
|
302
302
|
return Object.is(d[0], c) && d[1] === n && d[2] === e ? d : [c, n, e];
|
|
@@ -316,13 +316,13 @@ function la(e, t) {
|
|
|
316
316
|
s();
|
|
317
317
|
});
|
|
318
318
|
return s(), d;
|
|
319
|
-
}, [n, e, u]),
|
|
319
|
+
}, [n, e, u]), Hi(o), oa(o) ? ua(o) : o;
|
|
320
320
|
}
|
|
321
321
|
function da(e, t) {
|
|
322
|
-
const n =
|
|
323
|
-
return
|
|
322
|
+
const n = xn(t);
|
|
323
|
+
return Yi(
|
|
324
324
|
(...a) => {
|
|
325
|
-
if (({ NZ_AWS_REGION: "us-east-1",
|
|
325
|
+
if (({ NZ_AWS_REGION: "us-east-1", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 } && "production") !== "production" && !("write" in e))
|
|
326
326
|
throw new Error("not writable atom");
|
|
327
327
|
return n.set(e, ...a);
|
|
328
328
|
},
|
|
@@ -336,58 +336,60 @@ function ca(e, t) {
|
|
|
336
336
|
da(e, t)
|
|
337
337
|
];
|
|
338
338
|
}
|
|
339
|
-
const
|
|
339
|
+
const jn = ia(null), {
|
|
340
340
|
NZ_AWS_REGION: fa,
|
|
341
341
|
NZ_BACKOFFICE_BACK_URL: ma,
|
|
342
342
|
NZ_CORE_SERVICES_GRAPHQL_URL: va,
|
|
343
343
|
NZ_CORE_SERVICES_REST_URL: ha
|
|
344
|
-
} = { NZ_AWS_REGION: "us-east-1",
|
|
344
|
+
} = { NZ_AWS_REGION: "us-east-1", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 }, pa = {
|
|
345
345
|
AWS: {
|
|
346
346
|
region: fa,
|
|
347
347
|
cognito: {
|
|
348
|
-
userPoolId: "us-east-
|
|
349
|
-
userPoolWebClientId: "
|
|
348
|
+
userPoolId: "us-east-1_EZ7wuZ4ig",
|
|
349
|
+
userPoolWebClientId: "2jok7cst8ebf6ppscrhji57gvr"
|
|
350
350
|
}
|
|
351
351
|
},
|
|
352
352
|
// Back services
|
|
353
353
|
apiUrls: {
|
|
354
|
-
restV1: ma || "https://
|
|
355
|
-
restV2: ha || "https://core-services-
|
|
356
|
-
graphql: va || "https://core-services-
|
|
357
|
-
corsProxy: "https://
|
|
354
|
+
restV1: ma || "https://b133h34s56.execute-api.us-east-1.amazonaws.com",
|
|
355
|
+
restV2: ha || "https://core-services-prod.nizza.com/api",
|
|
356
|
+
graphql: va || "https://core-services-prod.nizza.com/graphql",
|
|
357
|
+
corsProxy: "https://3hvqfl2xcg.execute-api.us-east-1.amazonaws.com"
|
|
358
358
|
},
|
|
359
359
|
publicUrls: {
|
|
360
360
|
// Public app url
|
|
361
|
-
platformSite: "https://
|
|
361
|
+
platformSite: "https://platform.nizza.com",
|
|
362
362
|
// Nizza CDN
|
|
363
363
|
nizzaCdn: "https://cdn.nizza.com",
|
|
364
364
|
// Bundle
|
|
365
|
-
bundleSite: "https://
|
|
365
|
+
bundleSite: "https://bundle.nizza.com"
|
|
366
366
|
}
|
|
367
367
|
};
|
|
368
|
-
async function
|
|
369
|
-
var
|
|
368
|
+
async function ka(r) {
|
|
369
|
+
var s = r, {
|
|
370
370
|
url: e,
|
|
371
371
|
method: t = "GET",
|
|
372
|
-
raw: n = !1
|
|
373
|
-
|
|
372
|
+
raw: n = !1,
|
|
373
|
+
headers: i = new Headers({ "content-type": "application/json" })
|
|
374
|
+
} = s, a = Re(s, [
|
|
374
375
|
"url",
|
|
375
376
|
"method",
|
|
376
|
-
"raw"
|
|
377
|
+
"raw",
|
|
378
|
+
"headers"
|
|
377
379
|
]);
|
|
378
|
-
var
|
|
379
|
-
const
|
|
380
|
+
var d;
|
|
381
|
+
const o = await fetch(e, K({ method: t, headers: i }, a));
|
|
380
382
|
if (n)
|
|
381
|
-
return
|
|
382
|
-
const
|
|
383
|
-
if (!
|
|
384
|
-
const
|
|
385
|
-
throw new Error(
|
|
383
|
+
return o;
|
|
384
|
+
const u = await o.json();
|
|
385
|
+
if (!o.ok) {
|
|
386
|
+
const c = (d = u == null ? void 0 : u.message) != null ? d : o.statusText;
|
|
387
|
+
throw new Error(c);
|
|
386
388
|
}
|
|
387
|
-
return
|
|
389
|
+
return u;
|
|
388
390
|
}
|
|
389
|
-
let
|
|
390
|
-
const ya = (e = 8) =>
|
|
391
|
+
let _a = (e = 21) => crypto.getRandomValues(new Uint8Array(e)).reduce((t, n) => (n &= 63, n < 36 ? t += n.toString(36) : n < 62 ? t += (n - 26).toString(36).toUpperCase() : n > 62 ? t += "-" : t += "_", t), "");
|
|
392
|
+
const ya = (e = 8) => _a(e), Io = (e) => {
|
|
391
393
|
const t = Object.entries(e).map(([n, i]) => `${n}=${i}`).join("&");
|
|
392
394
|
return t ? `?${t}` : "";
|
|
393
395
|
};
|
|
@@ -409,9 +411,9 @@ class Sa {
|
|
|
409
411
|
function ba(e) {
|
|
410
412
|
return new Sa(e);
|
|
411
413
|
}
|
|
412
|
-
class jo {
|
|
413
|
-
}
|
|
414
414
|
class xo {
|
|
415
|
+
}
|
|
416
|
+
class jo {
|
|
415
417
|
constructor(t) {
|
|
416
418
|
S(this, "_value");
|
|
417
419
|
t !== void 0 && (this._value = t);
|
|
@@ -451,14 +453,14 @@ class Gt {
|
|
|
451
453
|
this.root.setProps(t);
|
|
452
454
|
}
|
|
453
455
|
static toDomain(t) {
|
|
454
|
-
const r = t, { createdAt: n } = r, i = Re(r, ["createdAt"]), a = se(
|
|
456
|
+
const r = t, { createdAt: n } = r, i = Re(r, ["createdAt"]), a = se(K({}, i), {
|
|
455
457
|
createdAt: new Date(Number(n))
|
|
456
458
|
});
|
|
457
459
|
return new Gt(a);
|
|
458
460
|
}
|
|
459
461
|
toPrimitives() {
|
|
460
462
|
const a = this, { root: t, createdAt: n } = a, i = Re(a, ["root", "createdAt"]);
|
|
461
|
-
return se(
|
|
463
|
+
return se(K({}, i), {
|
|
462
464
|
created: n.toISOString()
|
|
463
465
|
});
|
|
464
466
|
}
|
|
@@ -466,7 +468,7 @@ class Gt {
|
|
|
466
468
|
const Ea = `${pa.apiUrls.restV1}/accounts/v2`;
|
|
467
469
|
class Fa {
|
|
468
470
|
async get(t) {
|
|
469
|
-
const n = `${Ea}/${t}`, { data: i } = await
|
|
471
|
+
const n = `${Ea}/${t}`, { data: i } = await ka({
|
|
470
472
|
url: n
|
|
471
473
|
});
|
|
472
474
|
return i ? Gt.toDomain(i) : null;
|
|
@@ -487,8 +489,8 @@ class Ra {
|
|
|
487
489
|
}
|
|
488
490
|
}
|
|
489
491
|
}
|
|
490
|
-
const Ca = new Fa(),
|
|
491
|
-
class
|
|
492
|
+
const Ca = new Fa(), Bn = new Ra(Ca);
|
|
493
|
+
class Qt {
|
|
492
494
|
constructor() {
|
|
493
495
|
this.listeners = [], this.subscribe = this.subscribe.bind(this);
|
|
494
496
|
}
|
|
@@ -506,23 +508,23 @@ class zt {
|
|
|
506
508
|
}
|
|
507
509
|
}
|
|
508
510
|
const it = typeof window == "undefined" || "Deno" in window;
|
|
509
|
-
function
|
|
511
|
+
function wa() {
|
|
510
512
|
}
|
|
511
513
|
function ln(e) {
|
|
512
514
|
return typeof e == "number" && e >= 0 && e !== 1 / 0;
|
|
513
515
|
}
|
|
514
|
-
function
|
|
516
|
+
function Da(e, t) {
|
|
515
517
|
return Math.max(e + (t || 0) - Date.now(), 0);
|
|
516
518
|
}
|
|
517
|
-
function
|
|
518
|
-
return Pa(e) ? typeof t == "function" ? se(
|
|
519
|
+
function Ta(e, t, n) {
|
|
520
|
+
return Pa(e) ? typeof t == "function" ? se(K({}, n), {
|
|
519
521
|
queryKey: e,
|
|
520
522
|
queryFn: t
|
|
521
|
-
}) : se(
|
|
523
|
+
}) : se(K({}, t), {
|
|
522
524
|
queryKey: e
|
|
523
525
|
}) : e;
|
|
524
526
|
}
|
|
525
|
-
function
|
|
527
|
+
function Un(e, t) {
|
|
526
528
|
if (e === t)
|
|
527
529
|
return e;
|
|
528
530
|
const n = cn(e) && cn(t);
|
|
@@ -531,7 +533,7 @@ function Bn(e, t) {
|
|
|
531
533
|
let o = 0;
|
|
532
534
|
for (let u = 0; u < r; u++) {
|
|
533
535
|
const d = n ? u : a[u];
|
|
534
|
-
s[d] =
|
|
536
|
+
s[d] = Un(e[d], t[d]), s[d] === e[d] && o++;
|
|
535
537
|
}
|
|
536
538
|
return i === r && o === i ? e : s;
|
|
537
539
|
}
|
|
@@ -572,9 +574,9 @@ function vn(e) {
|
|
|
572
574
|
Va(0).then(e);
|
|
573
575
|
}
|
|
574
576
|
function hn(e, t, n) {
|
|
575
|
-
return n.isDataEqual != null && n.isDataEqual(e, t) ? e : typeof n.structuralSharing == "function" ? n.structuralSharing(e, t) : n.structuralSharing !== !1 ?
|
|
577
|
+
return n.isDataEqual != null && n.isDataEqual(e, t) ? e : typeof n.structuralSharing == "function" ? n.structuralSharing(e, t) : n.structuralSharing !== !1 ? Un(e, t) : t;
|
|
576
578
|
}
|
|
577
|
-
class Ia extends
|
|
579
|
+
class Ia extends Qt {
|
|
578
580
|
constructor() {
|
|
579
581
|
super(), this.setup = (t) => {
|
|
580
582
|
if (!it && window.addEventListener) {
|
|
@@ -612,8 +614,8 @@ class Ia extends zt {
|
|
|
612
614
|
return typeof this.focused == "boolean" ? this.focused : typeof document == "undefined" ? !0 : [void 0, "visible", "prerender"].includes(document.visibilityState);
|
|
613
615
|
}
|
|
614
616
|
}
|
|
615
|
-
const
|
|
616
|
-
class
|
|
617
|
+
const xa = new Ia();
|
|
618
|
+
class ja extends Qt {
|
|
617
619
|
constructor() {
|
|
618
620
|
super(), this.setup = (t) => {
|
|
619
621
|
if (!it && window.addEventListener) {
|
|
@@ -651,17 +653,17 @@ class xa extends zt {
|
|
|
651
653
|
return typeof this.online == "boolean" ? this.online : typeof navigator == "undefined" || typeof navigator.onLine == "undefined" ? !0 : navigator.onLine;
|
|
652
654
|
}
|
|
653
655
|
}
|
|
654
|
-
const La = new
|
|
656
|
+
const La = new ja();
|
|
655
657
|
function Ma(e) {
|
|
656
658
|
return (e != null ? e : "online") === "online" ? La.isOnline() : !0;
|
|
657
659
|
}
|
|
658
|
-
class
|
|
660
|
+
class Ba {
|
|
659
661
|
constructor(t) {
|
|
660
662
|
this.revert = t == null ? void 0 : t.revert, this.silent = t == null ? void 0 : t.silent;
|
|
661
663
|
}
|
|
662
664
|
}
|
|
663
|
-
function
|
|
664
|
-
return e instanceof
|
|
665
|
+
function Ua(e) {
|
|
666
|
+
return e instanceof Ba;
|
|
665
667
|
}
|
|
666
668
|
function Ga() {
|
|
667
669
|
let e = [], t = 0, n = (c) => {
|
|
@@ -709,7 +711,7 @@ function Ga() {
|
|
|
709
711
|
};
|
|
710
712
|
}
|
|
711
713
|
const Ce = Ga();
|
|
712
|
-
class
|
|
714
|
+
class Qa extends Qt {
|
|
713
715
|
constructor(t, n) {
|
|
714
716
|
super(), this.client = t, this.options = n, this.trackedProps = /* @__PURE__ */ new Set(), this.selectError = null, this.bindMethods(), this.setOptions(n);
|
|
715
717
|
}
|
|
@@ -741,7 +743,7 @@ class za extends zt {
|
|
|
741
743
|
throw new Error("Expected enabled to be a boolean");
|
|
742
744
|
this.options.queryKey || (this.options.queryKey = i.queryKey), this.updateQuery();
|
|
743
745
|
const r = this.hasListeners();
|
|
744
|
-
r &&
|
|
746
|
+
r && kn(this.currentQuery, a, this.options, i) && this.executeFetch(), this.updateResult(n), r && (this.currentQuery !== a || this.options.enabled !== i.enabled || this.options.staleTime !== i.staleTime) && this.updateStaleTimeout();
|
|
745
747
|
const s = this.computeRefetchInterval();
|
|
746
748
|
r && (this.currentQuery !== a || this.options.enabled !== i.enabled || s !== this.currentRefetchInterval) && this.updateRefetchInterval(s);
|
|
747
749
|
}
|
|
@@ -774,7 +776,7 @@ class za extends zt {
|
|
|
774
776
|
} = a, n = Re(a, [
|
|
775
777
|
"refetchPage"
|
|
776
778
|
]);
|
|
777
|
-
return this.fetch(se(
|
|
779
|
+
return this.fetch(se(K({}, n), {
|
|
778
780
|
meta: {
|
|
779
781
|
refetchPage: t
|
|
780
782
|
}
|
|
@@ -786,19 +788,19 @@ class za extends zt {
|
|
|
786
788
|
}
|
|
787
789
|
fetch(t) {
|
|
788
790
|
var n;
|
|
789
|
-
return this.executeFetch(se(
|
|
791
|
+
return this.executeFetch(se(K({}, t), {
|
|
790
792
|
cancelRefetch: (n = t.cancelRefetch) != null ? n : !0
|
|
791
793
|
})).then(() => (this.updateResult(), this.currentResult));
|
|
792
794
|
}
|
|
793
795
|
executeFetch(t) {
|
|
794
796
|
this.updateQuery();
|
|
795
797
|
let n = this.currentQuery.fetch(this.options, t);
|
|
796
|
-
return t != null && t.throwOnError || (n = n.catch(
|
|
798
|
+
return t != null && t.throwOnError || (n = n.catch(wa)), n;
|
|
797
799
|
}
|
|
798
800
|
updateStaleTimeout() {
|
|
799
801
|
if (this.clearStaleTimeout(), it || this.currentResult.isStale || !ln(this.options.staleTime))
|
|
800
802
|
return;
|
|
801
|
-
const n =
|
|
803
|
+
const n = Da(this.currentResult.dataUpdatedAt, this.options.staleTime) + 1;
|
|
802
804
|
this.staleTimeoutId = setTimeout(() => {
|
|
803
805
|
this.currentResult.isStale || this.updateResult();
|
|
804
806
|
}, n);
|
|
@@ -809,7 +811,7 @@ class za extends zt {
|
|
|
809
811
|
}
|
|
810
812
|
updateRefetchInterval(t) {
|
|
811
813
|
this.clearRefetchInterval(), this.currentRefetchInterval = t, !(it || this.options.enabled === !1 || !ln(this.currentRefetchInterval) || this.currentRefetchInterval === 0) && (this.refetchIntervalId = setInterval(() => {
|
|
812
|
-
(this.options.refetchIntervalInBackground ||
|
|
814
|
+
(this.options.refetchIntervalInBackground || xa.isFocused()) && this.executeFetch();
|
|
813
815
|
}, this.currentRefetchInterval));
|
|
814
816
|
}
|
|
815
817
|
updateTimers() {
|
|
@@ -831,9 +833,9 @@ class za extends zt {
|
|
|
831
833
|
errorUpdatedAt: I,
|
|
832
834
|
fetchStatus: R,
|
|
833
835
|
status: A
|
|
834
|
-
} = v, W = !1,
|
|
836
|
+
} = v, W = !1, Q = !1, C;
|
|
835
837
|
if (n._optimisticResults) {
|
|
836
|
-
const l = this.hasListeners(), m = !l && pn(t, n), h = l &&
|
|
838
|
+
const l = this.hasListeners(), m = !l && pn(t, n), h = l && kn(t, i, n, a);
|
|
837
839
|
(m || h) && (R = Ma(t.options.networkMode) ? "fetching" : "paused", b || (A = "loading")), n._optimisticResults === "isRestoring" && (R = "idle");
|
|
838
840
|
}
|
|
839
841
|
if (n.keepPreviousData && !v.dataUpdatedAt && c != null && c.isSuccess && A !== "error")
|
|
@@ -859,17 +861,17 @@ class za extends zt {
|
|
|
859
861
|
} catch (m) {
|
|
860
862
|
this.selectError = m;
|
|
861
863
|
}
|
|
862
|
-
typeof l != "undefined" && (A = "success", C = hn(r == null ? void 0 : r.data, l, n),
|
|
864
|
+
typeof l != "undefined" && (A = "success", C = hn(r == null ? void 0 : r.data, l, n), Q = !0);
|
|
863
865
|
}
|
|
864
866
|
this.selectError && (F = this.selectError, C = this.selectResult, I = Date.now(), A = "error");
|
|
865
|
-
const
|
|
867
|
+
const w = R === "fetching", x = A === "loading", j = A === "error";
|
|
866
868
|
return {
|
|
867
869
|
status: A,
|
|
868
870
|
fetchStatus: R,
|
|
869
|
-
isLoading:
|
|
871
|
+
isLoading: x,
|
|
870
872
|
isSuccess: A === "success",
|
|
871
|
-
isError:
|
|
872
|
-
isInitialLoading:
|
|
873
|
+
isError: j,
|
|
874
|
+
isInitialLoading: x && w,
|
|
873
875
|
data: C,
|
|
874
876
|
dataUpdatedAt: b,
|
|
875
877
|
error: F,
|
|
@@ -879,14 +881,14 @@ class za extends zt {
|
|
|
879
881
|
errorUpdateCount: v.errorUpdateCount,
|
|
880
882
|
isFetched: v.dataUpdateCount > 0 || v.errorUpdateCount > 0,
|
|
881
883
|
isFetchedAfterMount: v.dataUpdateCount > d.dataUpdateCount || v.errorUpdateCount > d.errorUpdateCount,
|
|
882
|
-
isFetching:
|
|
883
|
-
isRefetching:
|
|
884
|
-
isLoadingError:
|
|
884
|
+
isFetching: w,
|
|
885
|
+
isRefetching: w && !x,
|
|
886
|
+
isLoadingError: j && v.dataUpdatedAt === 0,
|
|
885
887
|
isPaused: R === "paused",
|
|
886
|
-
isPlaceholderData:
|
|
888
|
+
isPlaceholderData: Q,
|
|
887
889
|
isPreviousData: W,
|
|
888
|
-
isRefetchError:
|
|
889
|
-
isStale:
|
|
890
|
+
isRefetchError: j && v.dataUpdatedAt !== 0,
|
|
891
|
+
isStale: Kt(t, n),
|
|
890
892
|
refetch: this.refetch,
|
|
891
893
|
remove: this.remove
|
|
892
894
|
};
|
|
@@ -912,7 +914,7 @@ class za extends zt {
|
|
|
912
914
|
return this.currentResult[d] !== n[d] && o.has(d);
|
|
913
915
|
});
|
|
914
916
|
};
|
|
915
|
-
(t == null ? void 0 : t.listeners) !== !1 && r() && (a.listeners = !0), this.notify(
|
|
917
|
+
(t == null ? void 0 : t.listeners) !== !1 && r() && (a.listeners = !0), this.notify(K(K({}, a), t));
|
|
916
918
|
}
|
|
917
919
|
updateQuery() {
|
|
918
920
|
const t = this.client.getQueryCache().build(this.client, this.options);
|
|
@@ -923,7 +925,7 @@ class za extends zt {
|
|
|
923
925
|
}
|
|
924
926
|
onQueryUpdate(t) {
|
|
925
927
|
const n = {};
|
|
926
|
-
t.type === "success" ? n.onSuccess = !t.manual : t.type === "error" && !
|
|
928
|
+
t.type === "success" ? n.onSuccess = !t.manual : t.type === "error" && !Ua(t.error) && (n.onError = !0), this.updateResult(n), this.hasListeners() && this.updateTimers();
|
|
927
929
|
}
|
|
928
930
|
notify(t) {
|
|
929
931
|
Ce.batch(() => {
|
|
@@ -943,26 +945,26 @@ class za extends zt {
|
|
|
943
945
|
});
|
|
944
946
|
}
|
|
945
947
|
}
|
|
946
|
-
function
|
|
948
|
+
function Ka(e, t) {
|
|
947
949
|
return t.enabled !== !1 && !e.state.dataUpdatedAt && !(e.state.status === "error" && t.retryOnMount === !1);
|
|
948
950
|
}
|
|
949
951
|
function pn(e, t) {
|
|
950
|
-
return
|
|
952
|
+
return Ka(e, t) || e.state.dataUpdatedAt > 0 && Pt(e, t, t.refetchOnMount);
|
|
951
953
|
}
|
|
952
954
|
function Pt(e, t, n) {
|
|
953
955
|
if (t.enabled !== !1) {
|
|
954
956
|
const i = typeof n == "function" ? n(e) : n;
|
|
955
|
-
return i === "always" || i !== !1 &&
|
|
957
|
+
return i === "always" || i !== !1 && Kt(e, t);
|
|
956
958
|
}
|
|
957
959
|
return !1;
|
|
958
960
|
}
|
|
959
|
-
function
|
|
960
|
-
return n.enabled !== !1 && (e !== t || i.enabled === !1) && (!n.suspense || e.state.status !== "error") &&
|
|
961
|
+
function kn(e, t, n, i) {
|
|
962
|
+
return n.enabled !== !1 && (e !== t || i.enabled === !1) && (!n.suspense || e.state.status !== "error") && Kt(e, n);
|
|
961
963
|
}
|
|
962
|
-
function
|
|
964
|
+
function Kt(e, t) {
|
|
963
965
|
return e.isStaleByTime(t.staleTime);
|
|
964
966
|
}
|
|
965
|
-
var Gn = { exports: {} },
|
|
967
|
+
var Gn = { exports: {} }, Qn = {};
|
|
966
968
|
/**
|
|
967
969
|
* @license React
|
|
968
970
|
* use-sync-external-store-shim.production.min.js
|
|
@@ -973,19 +975,19 @@ var Gn = { exports: {} }, zn = {};
|
|
|
973
975
|
* LICENSE file in the root directory of this source tree.
|
|
974
976
|
*/
|
|
975
977
|
var Se = Pn;
|
|
976
|
-
function
|
|
978
|
+
function za(e, t) {
|
|
977
979
|
return e === t && (e !== 0 || 1 / e === 1 / t) || e !== e && t !== t;
|
|
978
980
|
}
|
|
979
|
-
var $a = typeof Object.is == "function" ? Object.is :
|
|
980
|
-
function
|
|
981
|
+
var $a = typeof Object.is == "function" ? Object.is : za, qa = Se.useState, Wa = Se.useEffect, Za = Se.useLayoutEffect, Xa = Se.useDebugValue;
|
|
982
|
+
function Ha(e, t) {
|
|
981
983
|
var n = t(), i = qa({ inst: { value: n, getSnapshot: t } }), a = i[0].inst, r = i[1];
|
|
982
|
-
return
|
|
984
|
+
return Za(function() {
|
|
983
985
|
a.value = n, a.getSnapshot = t, Ft(a) && r({ inst: a });
|
|
984
986
|
}, [e, n, t]), Wa(function() {
|
|
985
987
|
return Ft(a) && r({ inst: a }), e(function() {
|
|
986
988
|
Ft(a) && r({ inst: a });
|
|
987
989
|
});
|
|
988
|
-
}, [e]),
|
|
990
|
+
}, [e]), Xa(n), n;
|
|
989
991
|
}
|
|
990
992
|
function Ft(e) {
|
|
991
993
|
var t = e.getSnapshot;
|
|
@@ -997,16 +999,16 @@ function Ft(e) {
|
|
|
997
999
|
return !0;
|
|
998
1000
|
}
|
|
999
1001
|
}
|
|
1000
|
-
function
|
|
1002
|
+
function Ya(e, t) {
|
|
1001
1003
|
return t();
|
|
1002
1004
|
}
|
|
1003
|
-
var
|
|
1004
|
-
|
|
1005
|
-
Gn.exports =
|
|
1005
|
+
var Ja = typeof window == "undefined" || typeof window.document == "undefined" || typeof window.document.createElement == "undefined" ? Ya : Ha;
|
|
1006
|
+
Qn.useSyncExternalStore = Se.useSyncExternalStore !== void 0 ? Se.useSyncExternalStore : Ja;
|
|
1007
|
+
Gn.exports = Qn;
|
|
1006
1008
|
var er = Gn.exports;
|
|
1007
|
-
const tr = er.useSyncExternalStore,
|
|
1009
|
+
const tr = er.useSyncExternalStore, _n = /* @__PURE__ */ G.createContext(void 0), nr = /* @__PURE__ */ G.createContext(!1);
|
|
1008
1010
|
function ir(e, t) {
|
|
1009
|
-
return e || (t && typeof window != "undefined" ? (window.ReactQueryClientContext || (window.ReactQueryClientContext =
|
|
1011
|
+
return e || (t && typeof window != "undefined" ? (window.ReactQueryClientContext || (window.ReactQueryClientContext = _n), window.ReactQueryClientContext) : _n);
|
|
1010
1012
|
}
|
|
1011
1013
|
const ar = ({
|
|
1012
1014
|
context: e
|
|
@@ -1015,8 +1017,8 @@ const ar = ({
|
|
|
1015
1017
|
if (!t)
|
|
1016
1018
|
throw new Error("No QueryClient set, use QueryClientProvider to set one");
|
|
1017
1019
|
return t;
|
|
1018
|
-
},
|
|
1019
|
-
|
|
1020
|
+
}, Kn = /* @__PURE__ */ G.createContext(!1), rr = () => G.useContext(Kn);
|
|
1021
|
+
Kn.Provider;
|
|
1020
1022
|
function sr() {
|
|
1021
1023
|
let e = !1;
|
|
1022
1024
|
return {
|
|
@@ -1053,7 +1055,7 @@ const dr = (e, t) => {
|
|
|
1053
1055
|
}).catch((i) => {
|
|
1054
1056
|
n.clearReset(), e.onError == null || e.onError(i), e.onSettled == null || e.onSettled(void 0, i);
|
|
1055
1057
|
});
|
|
1056
|
-
function
|
|
1058
|
+
function kr(e, t) {
|
|
1057
1059
|
const n = ar({
|
|
1058
1060
|
context: e.context
|
|
1059
1061
|
}), i = rr(), a = ur(), r = n.defaultQueryOptions(e);
|
|
@@ -1075,17 +1077,17 @@ function _r(e, t) {
|
|
|
1075
1077
|
throw o.error;
|
|
1076
1078
|
return r.notifyOnChangeProps ? o : s.trackResult(o);
|
|
1077
1079
|
}
|
|
1078
|
-
function
|
|
1079
|
-
const i =
|
|
1080
|
-
return
|
|
1080
|
+
function _r(e, t, n) {
|
|
1081
|
+
const i = Ta(e, t, n);
|
|
1082
|
+
return kr(i, Qa);
|
|
1081
1083
|
}
|
|
1082
1084
|
const yr = () => ["account"], Lo = () => {
|
|
1083
1085
|
const e = co(() => {
|
|
1084
1086
|
var a;
|
|
1085
1087
|
return (a = lo.config) == null ? void 0 : a.account;
|
|
1086
|
-
}), [t, n] = ca(
|
|
1088
|
+
}), [t, n] = ca(jn), i = _r(
|
|
1087
1089
|
yr(),
|
|
1088
|
-
() =>
|
|
1090
|
+
() => Bn.get(e),
|
|
1089
1091
|
{
|
|
1090
1092
|
enabled: !!e && !t,
|
|
1091
1093
|
refetchOnWindowFocus: !1,
|
|
@@ -1101,8 +1103,8 @@ const yr = () => ["account"], Lo = () => {
|
|
|
1101
1103
|
};
|
|
1102
1104
|
}, Sr = In();
|
|
1103
1105
|
async function br(e) {
|
|
1104
|
-
const t = await
|
|
1105
|
-
return Sr.set(
|
|
1106
|
+
const t = await Bn.get(e);
|
|
1107
|
+
return Sr.set(jn, t), t;
|
|
1106
1108
|
}
|
|
1107
1109
|
var gr = /* @__PURE__ */ ((e) => (e.COMBO = "Combo", e))(gr || {}), Nr = /* @__PURE__ */ ((e) => (e.VTEX = "VTEX", e.PLATFORM = "platform", e.CACE = "CACE", e.GLOBAL_PAGE = "globalPage", e.DEV_LOCAL = "dev:local", e.CUSTOMIZATION = "customization", e))(Nr || {});
|
|
1108
1110
|
class ft extends Error {
|
|
@@ -1110,7 +1112,7 @@ class ft extends Error {
|
|
|
1110
1112
|
super(n), this.value = i, this.name = t;
|
|
1111
1113
|
}
|
|
1112
1114
|
toDTO() {
|
|
1113
|
-
return
|
|
1115
|
+
return K({
|
|
1114
1116
|
name: this.name,
|
|
1115
1117
|
message: this.message
|
|
1116
1118
|
}, this.value && { value: this.value });
|
|
@@ -1174,13 +1176,13 @@ function N(e) {
|
|
|
1174
1176
|
throw new Error(typeof e == "number" ? "[MobX] minified error nr: " + e + (n.length ? " " + n.map(String).join(",") : "") + ". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts" : "[MobX] " + e);
|
|
1175
1177
|
}
|
|
1176
1178
|
var Fr = {};
|
|
1177
|
-
function
|
|
1179
|
+
function zn() {
|
|
1178
1180
|
return typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : Fr;
|
|
1179
1181
|
}
|
|
1180
|
-
var $n = Object.assign, at = Object.getOwnPropertyDescriptor,
|
|
1182
|
+
var $n = Object.assign, at = Object.getOwnPropertyDescriptor, Z = Object.defineProperty, mt = Object.prototype, Vt = [];
|
|
1181
1183
|
Object.freeze(Vt);
|
|
1182
|
-
var
|
|
1183
|
-
Object.freeze(
|
|
1184
|
+
var zt = {};
|
|
1185
|
+
Object.freeze(zt);
|
|
1184
1186
|
var Rr = typeof Proxy != "undefined", Cr = /* @__PURE__ */ Object.toString();
|
|
1185
1187
|
function qn() {
|
|
1186
1188
|
Rr || N("Proxy not available");
|
|
@@ -1210,7 +1212,7 @@ function le(e) {
|
|
|
1210
1212
|
function vt(e) {
|
|
1211
1213
|
return e !== null && typeof e == "object";
|
|
1212
1214
|
}
|
|
1213
|
-
function
|
|
1215
|
+
function J(e) {
|
|
1214
1216
|
if (!vt(e))
|
|
1215
1217
|
return !1;
|
|
1216
1218
|
var t = Object.getPrototypeOf(e);
|
|
@@ -1219,20 +1221,20 @@ function Y(e) {
|
|
|
1219
1221
|
var n = Object.hasOwnProperty.call(t, "constructor") && t.constructor;
|
|
1220
1222
|
return typeof n == "function" && n.toString() === Cr;
|
|
1221
1223
|
}
|
|
1222
|
-
function
|
|
1224
|
+
function Zn(e) {
|
|
1223
1225
|
var t = e == null ? void 0 : e.constructor;
|
|
1224
1226
|
return t ? t.name === "GeneratorFunction" || t.displayName === "GeneratorFunction" : !1;
|
|
1225
1227
|
}
|
|
1226
1228
|
function ht(e, t, n) {
|
|
1227
|
-
|
|
1229
|
+
Z(e, t, {
|
|
1228
1230
|
enumerable: !1,
|
|
1229
1231
|
writable: !0,
|
|
1230
1232
|
configurable: !0,
|
|
1231
1233
|
value: n
|
|
1232
1234
|
});
|
|
1233
1235
|
}
|
|
1234
|
-
function
|
|
1235
|
-
|
|
1236
|
+
function Xn(e, t, n) {
|
|
1237
|
+
Z(e, t, {
|
|
1236
1238
|
enumerable: !1,
|
|
1237
1239
|
writable: !1,
|
|
1238
1240
|
configurable: !0,
|
|
@@ -1248,34 +1250,34 @@ function ce(e, t) {
|
|
|
1248
1250
|
function Oe(e) {
|
|
1249
1251
|
return e instanceof Map;
|
|
1250
1252
|
}
|
|
1251
|
-
function
|
|
1253
|
+
function Be(e) {
|
|
1252
1254
|
return e instanceof Set;
|
|
1253
1255
|
}
|
|
1254
|
-
var
|
|
1255
|
-
function
|
|
1256
|
+
var Hn = typeof Object.getOwnPropertySymbols != "undefined";
|
|
1257
|
+
function wr(e) {
|
|
1256
1258
|
var t = Object.keys(e);
|
|
1257
|
-
if (!
|
|
1259
|
+
if (!Hn)
|
|
1258
1260
|
return t;
|
|
1259
1261
|
var n = Object.getOwnPropertySymbols(e);
|
|
1260
1262
|
return n.length ? [].concat(t, n.filter(function(i) {
|
|
1261
1263
|
return mt.propertyIsEnumerable.call(e, i);
|
|
1262
1264
|
})) : t;
|
|
1263
1265
|
}
|
|
1264
|
-
var
|
|
1266
|
+
var Te = typeof Reflect != "undefined" && Reflect.ownKeys ? Reflect.ownKeys : Hn ? function(e) {
|
|
1265
1267
|
return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e));
|
|
1266
1268
|
} : (
|
|
1267
1269
|
/* istanbul ignore next */
|
|
1268
1270
|
Object.getOwnPropertyNames
|
|
1269
1271
|
);
|
|
1270
|
-
function
|
|
1272
|
+
function Yn(e) {
|
|
1271
1273
|
return e === null ? null : typeof e == "object" ? "" + e : e;
|
|
1272
1274
|
}
|
|
1273
1275
|
function ie(e, t) {
|
|
1274
1276
|
return mt.hasOwnProperty.call(e, t);
|
|
1275
1277
|
}
|
|
1276
|
-
var
|
|
1278
|
+
var Dr = Object.getOwnPropertyDescriptors || function(t) {
|
|
1277
1279
|
var n = {};
|
|
1278
|
-
return
|
|
1280
|
+
return Te(t).forEach(function(i) {
|
|
1279
1281
|
n[i] = at(t, i);
|
|
1280
1282
|
}), n;
|
|
1281
1283
|
};
|
|
@@ -1300,7 +1302,7 @@ function Pe() {
|
|
|
1300
1302
|
return e;
|
|
1301
1303
|
}, Pe.apply(this, arguments);
|
|
1302
1304
|
}
|
|
1303
|
-
function
|
|
1305
|
+
function Jn(e, t) {
|
|
1304
1306
|
e.prototype = Object.create(t.prototype), e.prototype.constructor = e, It(e, t);
|
|
1305
1307
|
}
|
|
1306
1308
|
function It(e, t) {
|
|
@@ -1313,7 +1315,7 @@ function Rt(e) {
|
|
|
1313
1315
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1314
1316
|
return e;
|
|
1315
1317
|
}
|
|
1316
|
-
function
|
|
1318
|
+
function Tr(e, t) {
|
|
1317
1319
|
if (e) {
|
|
1318
1320
|
if (typeof e == "string")
|
|
1319
1321
|
return Sn(e, t);
|
|
@@ -1330,11 +1332,11 @@ function Sn(e, t) {
|
|
|
1330
1332
|
i[n] = e[n];
|
|
1331
1333
|
return i;
|
|
1332
1334
|
}
|
|
1333
|
-
function
|
|
1335
|
+
function ke(e, t) {
|
|
1334
1336
|
var n = typeof Symbol != "undefined" && e[Symbol.iterator] || e["@@iterator"];
|
|
1335
1337
|
if (n)
|
|
1336
1338
|
return (n = n.call(e)).next.bind(n);
|
|
1337
|
-
if (Array.isArray(e) || (n =
|
|
1339
|
+
if (Array.isArray(e) || (n = Tr(e)) || t && e && typeof e.length == "number") {
|
|
1338
1340
|
n && (e = n);
|
|
1339
1341
|
var i = 0;
|
|
1340
1342
|
return function() {
|
|
@@ -1365,17 +1367,17 @@ function Vr(e) {
|
|
|
1365
1367
|
var t = Pr(e, "string");
|
|
1366
1368
|
return typeof t == "symbol" ? t : String(t);
|
|
1367
1369
|
}
|
|
1368
|
-
var
|
|
1369
|
-
function
|
|
1370
|
+
var _e = /* @__PURE__ */ Symbol("mobx-stored-annotations");
|
|
1371
|
+
function X(e) {
|
|
1370
1372
|
function t(n, i) {
|
|
1371
|
-
|
|
1373
|
+
Ue(n, i, e);
|
|
1372
1374
|
}
|
|
1373
1375
|
return Object.assign(t, e);
|
|
1374
1376
|
}
|
|
1375
|
-
function
|
|
1376
|
-
ie(e,
|
|
1377
|
+
function Ue(e, t, n) {
|
|
1378
|
+
ie(e, _e) || ht(e, _e, Pe({}, e[_e])), Gr(n) || (e[_e][t] = n);
|
|
1377
1379
|
}
|
|
1378
|
-
var
|
|
1380
|
+
var k = /* @__PURE__ */ Symbol("mobx administration"), Ge = /* @__PURE__ */ function() {
|
|
1379
1381
|
function e(n) {
|
|
1380
1382
|
n === void 0 && (n = "Atom"), this.name_ = void 0, this.isPendingUnobservation_ = !1, this.isBeingObserved_ = !1, this.observers_ = /* @__PURE__ */ new Set(), this.diffValue_ = 0, this.lastAccessedBy_ = 0, this.lowestObserverState_ = g.NOT_TRACKING_, this.onBOL = void 0, this.onBUOL = void 0, this.name_ = n;
|
|
1381
1383
|
}
|
|
@@ -1399,15 +1401,15 @@ var _ = /* @__PURE__ */ Symbol("mobx administration"), Ge = /* @__PURE__ */ func
|
|
|
1399
1401
|
function ei(e, t, n) {
|
|
1400
1402
|
t === void 0 && (t = pe), n === void 0 && (n = pe);
|
|
1401
1403
|
var i = new Ge(e);
|
|
1402
|
-
return t !== pe &&
|
|
1404
|
+
return t !== pe && Bs(i, t), n !== pe && Ri(i, n), i;
|
|
1403
1405
|
}
|
|
1404
1406
|
function Ir(e, t) {
|
|
1405
1407
|
return e === t;
|
|
1406
1408
|
}
|
|
1407
|
-
function
|
|
1409
|
+
function xr(e, t) {
|
|
1408
1410
|
return en(e, t);
|
|
1409
1411
|
}
|
|
1410
|
-
function
|
|
1412
|
+
function jr(e, t) {
|
|
1411
1413
|
return en(e, t, 1);
|
|
1412
1414
|
}
|
|
1413
1415
|
function Lr(e, t) {
|
|
@@ -1415,30 +1417,30 @@ function Lr(e, t) {
|
|
|
1415
1417
|
}
|
|
1416
1418
|
var be = {
|
|
1417
1419
|
identity: Ir,
|
|
1418
|
-
structural:
|
|
1420
|
+
structural: xr,
|
|
1419
1421
|
default: Lr,
|
|
1420
|
-
shallow:
|
|
1422
|
+
shallow: jr
|
|
1421
1423
|
};
|
|
1422
1424
|
function ge(e, t, n) {
|
|
1423
1425
|
return $e(e) ? e : Array.isArray(e) ? V.array(e, {
|
|
1424
1426
|
name: n
|
|
1425
|
-
}) :
|
|
1427
|
+
}) : J(e) ? V.object(e, void 0, {
|
|
1426
1428
|
name: n
|
|
1427
1429
|
}) : Oe(e) ? V.map(e, {
|
|
1428
1430
|
name: n
|
|
1429
|
-
}) :
|
|
1431
|
+
}) : Be(e) ? V.set(e, {
|
|
1430
1432
|
name: n
|
|
1431
|
-
}) : typeof e == "function" && !
|
|
1433
|
+
}) : typeof e == "function" && !Xt(e) && !lt(e) ? Zn(e) ? xe(e) : Ie(n, e) : e;
|
|
1432
1434
|
}
|
|
1433
1435
|
function Mr(e, t, n) {
|
|
1434
|
-
if (e == null ||
|
|
1436
|
+
if (e == null || je(e) || St(e) || fe(e) || Ee(e))
|
|
1435
1437
|
return e;
|
|
1436
1438
|
if (Array.isArray(e))
|
|
1437
1439
|
return V.array(e, {
|
|
1438
1440
|
name: n,
|
|
1439
1441
|
deep: !1
|
|
1440
1442
|
});
|
|
1441
|
-
if (
|
|
1443
|
+
if (J(e))
|
|
1442
1444
|
return V.object(e, void 0, {
|
|
1443
1445
|
name: n,
|
|
1444
1446
|
deep: !1
|
|
@@ -1448,7 +1450,7 @@ function Mr(e, t, n) {
|
|
|
1448
1450
|
name: n,
|
|
1449
1451
|
deep: !1
|
|
1450
1452
|
});
|
|
1451
|
-
if (
|
|
1453
|
+
if (Be(e))
|
|
1452
1454
|
return V.set(e, {
|
|
1453
1455
|
name: n,
|
|
1454
1456
|
deep: !1
|
|
@@ -1457,42 +1459,42 @@ function Mr(e, t, n) {
|
|
|
1457
1459
|
function pt(e) {
|
|
1458
1460
|
return e;
|
|
1459
1461
|
}
|
|
1460
|
-
function
|
|
1462
|
+
function Br(e, t) {
|
|
1461
1463
|
return en(e, t) ? t : e;
|
|
1462
1464
|
}
|
|
1463
|
-
var
|
|
1465
|
+
var Ur = "override";
|
|
1464
1466
|
function Gr(e) {
|
|
1465
|
-
return e.annotationType_ ===
|
|
1467
|
+
return e.annotationType_ === Ur;
|
|
1466
1468
|
}
|
|
1467
|
-
function
|
|
1469
|
+
function Qe(e, t) {
|
|
1468
1470
|
return {
|
|
1469
1471
|
annotationType_: e,
|
|
1470
1472
|
options_: t,
|
|
1471
|
-
make_:
|
|
1472
|
-
extend_:
|
|
1473
|
+
make_: Qr,
|
|
1474
|
+
extend_: Kr
|
|
1473
1475
|
};
|
|
1474
1476
|
}
|
|
1475
|
-
function
|
|
1477
|
+
function Qr(e, t, n, i) {
|
|
1476
1478
|
var a;
|
|
1477
1479
|
if ((a = this.options_) != null && a.bound)
|
|
1478
1480
|
return this.extend_(e, t, n, !1) === null ? 0 : 1;
|
|
1479
1481
|
if (i === e.target_)
|
|
1480
1482
|
return this.extend_(e, t, n, !1) === null ? 0 : 2;
|
|
1481
|
-
if (
|
|
1483
|
+
if (Xt(n.value))
|
|
1482
1484
|
return 1;
|
|
1483
1485
|
var r = ti(e, this, t, n, !1);
|
|
1484
|
-
return
|
|
1486
|
+
return Z(i, t, r), 2;
|
|
1485
1487
|
}
|
|
1486
|
-
function
|
|
1488
|
+
function Kr(e, t, n, i) {
|
|
1487
1489
|
var a = ti(e, this, t, n);
|
|
1488
1490
|
return e.defineProperty_(t, a, i);
|
|
1489
1491
|
}
|
|
1490
|
-
function
|
|
1492
|
+
function zr(e, t, n, i) {
|
|
1491
1493
|
t.annotationType_, i.value;
|
|
1492
1494
|
}
|
|
1493
1495
|
function ti(e, t, n, i, a) {
|
|
1494
1496
|
var r, s, o, u, d, c, v;
|
|
1495
|
-
a === void 0 && (a = f.safeDescriptors),
|
|
1497
|
+
a === void 0 && (a = f.safeDescriptors), zr(e, t, n, i);
|
|
1496
1498
|
var b = i.value;
|
|
1497
1499
|
if ((r = t.options_) != null && r.bound) {
|
|
1498
1500
|
var F;
|
|
@@ -1533,7 +1535,7 @@ function $r(e, t, n, i) {
|
|
|
1533
1535
|
if (lt(n.value))
|
|
1534
1536
|
return 1;
|
|
1535
1537
|
var r = ii(e, this, t, n, !1, !1);
|
|
1536
|
-
return
|
|
1538
|
+
return Z(i, t, r), 2;
|
|
1537
1539
|
}
|
|
1538
1540
|
function qr(e, t, n, i) {
|
|
1539
1541
|
var a, r = ii(e, this, t, n, (a = this.options_) == null ? void 0 : a.bound);
|
|
@@ -1545,7 +1547,7 @@ function Wr(e, t, n, i) {
|
|
|
1545
1547
|
function ii(e, t, n, i, a, r) {
|
|
1546
1548
|
r === void 0 && (r = f.safeDescriptors), Wr(e, t, n, i);
|
|
1547
1549
|
var s = i.value;
|
|
1548
|
-
if (lt(s) || (s =
|
|
1550
|
+
if (lt(s) || (s = xe(s)), a) {
|
|
1549
1551
|
var o;
|
|
1550
1552
|
s = s.bind((o = e.proxy_) != null ? o : e.target_), s.isMobXFlow = !0;
|
|
1551
1553
|
}
|
|
@@ -1565,34 +1567,34 @@ function Wt(e, t) {
|
|
|
1565
1567
|
return {
|
|
1566
1568
|
annotationType_: e,
|
|
1567
1569
|
options_: t,
|
|
1568
|
-
make_:
|
|
1569
|
-
extend_:
|
|
1570
|
+
make_: Zr,
|
|
1571
|
+
extend_: Xr
|
|
1570
1572
|
};
|
|
1571
1573
|
}
|
|
1572
|
-
function
|
|
1574
|
+
function Zr(e, t, n) {
|
|
1573
1575
|
return this.extend_(e, t, n, !1) === null ? 0 : 1;
|
|
1574
1576
|
}
|
|
1575
|
-
function
|
|
1576
|
-
return
|
|
1577
|
+
function Xr(e, t, n, i) {
|
|
1578
|
+
return Hr(e, this, t, n), e.defineComputedProperty_(t, Pe({}, this.options_, {
|
|
1577
1579
|
get: n.get,
|
|
1578
1580
|
set: n.set
|
|
1579
1581
|
}), i);
|
|
1580
1582
|
}
|
|
1581
|
-
function
|
|
1583
|
+
function Hr(e, t, n, i) {
|
|
1582
1584
|
t.annotationType_, i.get;
|
|
1583
1585
|
}
|
|
1584
|
-
function
|
|
1586
|
+
function kt(e, t) {
|
|
1585
1587
|
return {
|
|
1586
1588
|
annotationType_: e,
|
|
1587
1589
|
options_: t,
|
|
1588
|
-
make_:
|
|
1589
|
-
extend_:
|
|
1590
|
+
make_: Yr,
|
|
1591
|
+
extend_: Jr
|
|
1590
1592
|
};
|
|
1591
1593
|
}
|
|
1592
|
-
function
|
|
1594
|
+
function Yr(e, t, n) {
|
|
1593
1595
|
return this.extend_(e, t, n, !1) === null ? 0 : 1;
|
|
1594
1596
|
}
|
|
1595
|
-
function
|
|
1597
|
+
function Jr(e, t, n, i) {
|
|
1596
1598
|
var a, r;
|
|
1597
1599
|
return es(e, this), e.defineObservableProperty_(t, n.value, (a = (r = this.options_) == null ? void 0 : r.enhancer) != null ? a : ge, i);
|
|
1598
1600
|
}
|
|
@@ -1611,21 +1613,21 @@ function ai(e) {
|
|
|
1611
1613
|
function is(e, t, n, i) {
|
|
1612
1614
|
var a, r;
|
|
1613
1615
|
if (n.get)
|
|
1614
|
-
return
|
|
1616
|
+
return _t.make_(e, t, n, i);
|
|
1615
1617
|
if (n.set) {
|
|
1616
1618
|
var s = Ne(t.toString(), n.set);
|
|
1617
1619
|
return i === e.target_ ? e.defineProperty_(t, {
|
|
1618
1620
|
configurable: f.safeDescriptors ? e.isPlainObject_ : !0,
|
|
1619
1621
|
set: s
|
|
1620
|
-
}) === null ? 0 : 2 : (
|
|
1622
|
+
}) === null ? 0 : 2 : (Z(i, t, {
|
|
1621
1623
|
configurable: !0,
|
|
1622
1624
|
set: s
|
|
1623
1625
|
}), 2);
|
|
1624
1626
|
}
|
|
1625
1627
|
if (i !== e.target_ && typeof n.value == "function") {
|
|
1626
1628
|
var o;
|
|
1627
|
-
if (
|
|
1628
|
-
var u, d = (u = this.options_) != null && u.autoBind ?
|
|
1629
|
+
if (Zn(n.value)) {
|
|
1630
|
+
var u, d = (u = this.options_) != null && u.autoBind ? xe.bound : xe;
|
|
1629
1631
|
return d.make_(e, t, n, i);
|
|
1630
1632
|
}
|
|
1631
1633
|
var c = (o = this.options_) != null && o.autoBind ? Ie.bound : Ie;
|
|
@@ -1641,7 +1643,7 @@ function is(e, t, n, i) {
|
|
|
1641
1643
|
function as(e, t, n, i) {
|
|
1642
1644
|
var a, r;
|
|
1643
1645
|
if (n.get)
|
|
1644
|
-
return
|
|
1646
|
+
return _t.extend_(e, t, n, i);
|
|
1645
1647
|
if (n.set)
|
|
1646
1648
|
return e.defineProperty_(t, {
|
|
1647
1649
|
configurable: f.safeDescriptors ? e.isPlainObject_ : !0,
|
|
@@ -1661,17 +1663,17 @@ var rs = "observable", ss = "observable.ref", os = "observable.shallow", us = "o
|
|
|
1661
1663
|
proxy: !0
|
|
1662
1664
|
};
|
|
1663
1665
|
Object.freeze(ri);
|
|
1664
|
-
function
|
|
1666
|
+
function Ye(e) {
|
|
1665
1667
|
return e || ri;
|
|
1666
1668
|
}
|
|
1667
|
-
var si = /* @__PURE__ */
|
|
1669
|
+
var si = /* @__PURE__ */ kt(rs), ls = /* @__PURE__ */ kt(ss, {
|
|
1668
1670
|
enhancer: pt
|
|
1669
|
-
}), ds = /* @__PURE__ */
|
|
1671
|
+
}), ds = /* @__PURE__ */ kt(os, {
|
|
1670
1672
|
enhancer: Mr
|
|
1671
|
-
}), cs = /* @__PURE__ */
|
|
1672
|
-
enhancer:
|
|
1673
|
-
}), oi = /* @__PURE__ */
|
|
1674
|
-
function
|
|
1673
|
+
}), cs = /* @__PURE__ */ kt(us, {
|
|
1674
|
+
enhancer: Br
|
|
1675
|
+
}), oi = /* @__PURE__ */ X(si);
|
|
1676
|
+
function Je(e) {
|
|
1675
1677
|
return e.deep === !0 ? ge : e.deep === !1 ? pt : ms(e.defaultDecorator);
|
|
1676
1678
|
}
|
|
1677
1679
|
function fs(e) {
|
|
@@ -1684,49 +1686,49 @@ function ms(e) {
|
|
|
1684
1686
|
}
|
|
1685
1687
|
function ui(e, t, n) {
|
|
1686
1688
|
if (le(t)) {
|
|
1687
|
-
|
|
1689
|
+
Ue(e, t, si);
|
|
1688
1690
|
return;
|
|
1689
1691
|
}
|
|
1690
|
-
return $e(e) ? e :
|
|
1692
|
+
return $e(e) ? e : J(e) ? V.object(e, t, n) : Array.isArray(e) ? V.array(e, t) : Oe(e) ? V.map(e, t) : Be(e) ? V.set(e, t) : typeof e == "object" && e !== null ? e : V.box(e, t);
|
|
1691
1693
|
}
|
|
1692
1694
|
$n(ui, oi);
|
|
1693
1695
|
var vs = {
|
|
1694
1696
|
box: function(t, n) {
|
|
1695
|
-
var i =
|
|
1696
|
-
return new ye(t,
|
|
1697
|
+
var i = Ye(n);
|
|
1698
|
+
return new ye(t, Je(i), i.name, !0, i.equals);
|
|
1697
1699
|
},
|
|
1698
1700
|
array: function(t, n) {
|
|
1699
|
-
var i =
|
|
1700
|
-
return (f.useProxies === !1 || i.proxy === !1 ? so :
|
|
1701
|
+
var i = Ye(n);
|
|
1702
|
+
return (f.useProxies === !1 || i.proxy === !1 ? so : Hs)(t, Je(i), i.name);
|
|
1701
1703
|
},
|
|
1702
1704
|
map: function(t, n) {
|
|
1703
|
-
var i =
|
|
1704
|
-
return new Ii(t,
|
|
1705
|
+
var i = Ye(n);
|
|
1706
|
+
return new Ii(t, Je(i), i.name);
|
|
1705
1707
|
},
|
|
1706
1708
|
set: function(t, n) {
|
|
1707
|
-
var i =
|
|
1708
|
-
return new Li(t,
|
|
1709
|
+
var i = Ye(n);
|
|
1710
|
+
return new Li(t, Je(i), i.name);
|
|
1709
1711
|
},
|
|
1710
1712
|
object: function(t, n, i) {
|
|
1711
|
-
return
|
|
1713
|
+
return wi(f.useProxies === !1 || (i == null ? void 0 : i.proxy) === !1 ? bt({}, i) : qs({}, i), t, n);
|
|
1712
1714
|
},
|
|
1713
|
-
ref: /* @__PURE__ */
|
|
1714
|
-
shallow: /* @__PURE__ */
|
|
1715
|
+
ref: /* @__PURE__ */ X(ls),
|
|
1716
|
+
shallow: /* @__PURE__ */ X(ds),
|
|
1715
1717
|
deep: oi,
|
|
1716
|
-
struct: /* @__PURE__ */
|
|
1718
|
+
struct: /* @__PURE__ */ X(cs)
|
|
1717
1719
|
}, V = /* @__PURE__ */ $n(ui, vs), li = "computed", hs = "computed.struct", di = /* @__PURE__ */ Wt(li), ps = /* @__PURE__ */ Wt(hs, {
|
|
1718
1720
|
equals: be.structural
|
|
1719
|
-
}),
|
|
1721
|
+
}), _t = function(t, n) {
|
|
1720
1722
|
if (le(n))
|
|
1721
|
-
return
|
|
1722
|
-
if (
|
|
1723
|
-
return
|
|
1724
|
-
var i =
|
|
1723
|
+
return Ue(t, n, di);
|
|
1724
|
+
if (J(t))
|
|
1725
|
+
return X(Wt(li, t));
|
|
1726
|
+
var i = J(n) ? n : {};
|
|
1725
1727
|
return i.get = t, i.name || (i.name = t.name || ""), new Ve(i);
|
|
1726
1728
|
};
|
|
1727
|
-
Object.assign(
|
|
1728
|
-
|
|
1729
|
-
var bn, gn, rt = 0,
|
|
1729
|
+
Object.assign(_t, di);
|
|
1730
|
+
_t.struct = /* @__PURE__ */ X(ps);
|
|
1731
|
+
var bn, gn, rt = 0, ks = 1, _s = (bn = (gn = /* @__PURE__ */ at(function() {
|
|
1730
1732
|
}, "name")) == null ? void 0 : gn.configurable) != null ? bn : !1, Nn = {
|
|
1731
1733
|
value: "action",
|
|
1732
1734
|
configurable: !0,
|
|
@@ -1738,7 +1740,7 @@ function Ne(e, t, n, i) {
|
|
|
1738
1740
|
function a() {
|
|
1739
1741
|
return ys(e, n, t, i || this, arguments);
|
|
1740
1742
|
}
|
|
1741
|
-
return a.isMobxAction = !0,
|
|
1743
|
+
return a.isMobxAction = !0, _s && (Nn.value = e, Z(a, "name", Nn)), a;
|
|
1742
1744
|
}
|
|
1743
1745
|
function ys(e, t, n, i, a) {
|
|
1744
1746
|
var r = Ss(e, t);
|
|
@@ -1754,41 +1756,41 @@ function Ss(e, t, n, i) {
|
|
|
1754
1756
|
var a = !1, r = 0, s = f.trackingDerivation, o = !t || !s;
|
|
1755
1757
|
L();
|
|
1756
1758
|
var u = f.allowStateChanges;
|
|
1757
|
-
o && (Ae(), u =
|
|
1758
|
-
var d =
|
|
1759
|
+
o && (Ae(), u = Ke(!0));
|
|
1760
|
+
var d = Zt(!0), c = {
|
|
1759
1761
|
runAsAction_: o,
|
|
1760
1762
|
prevDerivation_: s,
|
|
1761
1763
|
prevAllowStateChanges_: u,
|
|
1762
1764
|
prevAllowStateReads_: d,
|
|
1763
1765
|
notifySpy_: a,
|
|
1764
1766
|
startTime_: r,
|
|
1765
|
-
actionId_:
|
|
1767
|
+
actionId_: ks++,
|
|
1766
1768
|
parentActionId_: rt
|
|
1767
1769
|
};
|
|
1768
1770
|
return rt = c.actionId_, c;
|
|
1769
1771
|
}
|
|
1770
1772
|
function bs(e) {
|
|
1771
|
-
rt !== e.actionId_ && N(30), rt = e.parentActionId_, e.error_ !== void 0 && (f.suppressReactionErrors = !0),
|
|
1773
|
+
rt !== e.actionId_ && N(30), rt = e.parentActionId_, e.error_ !== void 0 && (f.suppressReactionErrors = !0), ze(e.prevAllowStateChanges_), we(e.prevAllowStateReads_), M(), e.runAsAction_ && ae(e.prevDerivation_), f.suppressReactionErrors = !1;
|
|
1772
1774
|
}
|
|
1773
1775
|
function ci(e, t) {
|
|
1774
|
-
var n =
|
|
1776
|
+
var n = Ke(e);
|
|
1775
1777
|
try {
|
|
1776
1778
|
return t();
|
|
1777
1779
|
} finally {
|
|
1778
|
-
|
|
1780
|
+
ze(n);
|
|
1779
1781
|
}
|
|
1780
1782
|
}
|
|
1781
|
-
function
|
|
1783
|
+
function Ke(e) {
|
|
1782
1784
|
var t = f.allowStateChanges;
|
|
1783
1785
|
return f.allowStateChanges = e, t;
|
|
1784
1786
|
}
|
|
1785
|
-
function
|
|
1787
|
+
function ze(e) {
|
|
1786
1788
|
f.allowStateChanges = e;
|
|
1787
1789
|
}
|
|
1788
1790
|
var fi;
|
|
1789
1791
|
fi = Symbol.toPrimitive;
|
|
1790
1792
|
var ye = /* @__PURE__ */ function(e) {
|
|
1791
|
-
|
|
1793
|
+
Jn(t, e);
|
|
1792
1794
|
function t(i, a, r, s, o) {
|
|
1793
1795
|
var u;
|
|
1794
1796
|
return r === void 0 && (r = "ObservableValue"), o === void 0 && (o = be.default), u = e.call(this, r) || this, u.enhancer = void 0, u.name_ = void 0, u.equals = void 0, u.hasUnreportedChange_ = !1, u.interceptors_ = void 0, u.changeListeners_ = void 0, u.value_ = void 0, u.dehancer = void 0, u.enhancer = a, u.name_ = r, u.equals = o, u.value_ = a(i, void 0, r), u;
|
|
@@ -1799,10 +1801,10 @@ var ye = /* @__PURE__ */ function(e) {
|
|
|
1799
1801
|
}, n.set = function(a) {
|
|
1800
1802
|
this.value_, a = this.prepareNewValue_(a), a !== f.UNCHANGED && this.setNewValue_(a);
|
|
1801
1803
|
}, n.prepareNewValue_ = function(a) {
|
|
1802
|
-
if (
|
|
1803
|
-
var r =
|
|
1804
|
+
if (B(this)) {
|
|
1805
|
+
var r = U(this, {
|
|
1804
1806
|
object: this,
|
|
1805
|
-
type:
|
|
1807
|
+
type: H,
|
|
1806
1808
|
newValue: a
|
|
1807
1809
|
});
|
|
1808
1810
|
if (!r)
|
|
@@ -1812,8 +1814,8 @@ var ye = /* @__PURE__ */ function(e) {
|
|
|
1812
1814
|
return a = this.enhancer(a, this.value_, this.name_), this.equals(this.value_, a) ? f.UNCHANGED : a;
|
|
1813
1815
|
}, n.setNewValue_ = function(a) {
|
|
1814
1816
|
var r = this.value_;
|
|
1815
|
-
this.value_ = a, this.reportChanged(),
|
|
1816
|
-
type:
|
|
1817
|
+
this.value_ = a, this.reportChanged(), z(this) && $(this, {
|
|
1818
|
+
type: H,
|
|
1817
1819
|
object: this,
|
|
1818
1820
|
newValue: a,
|
|
1819
1821
|
oldValue: r
|
|
@@ -1827,7 +1829,7 @@ var ye = /* @__PURE__ */ function(e) {
|
|
|
1827
1829
|
observableKind: "value",
|
|
1828
1830
|
debugObjectName: this.name_,
|
|
1829
1831
|
object: this,
|
|
1830
|
-
type:
|
|
1832
|
+
type: H,
|
|
1831
1833
|
newValue: this.value_,
|
|
1832
1834
|
oldValue: void 0
|
|
1833
1835
|
}), We(this, a);
|
|
@@ -1838,7 +1840,7 @@ var ye = /* @__PURE__ */ function(e) {
|
|
|
1838
1840
|
}, n.toString = function() {
|
|
1839
1841
|
return this.name_ + "[" + this.value_ + "]";
|
|
1840
1842
|
}, n.valueOf = function() {
|
|
1841
|
-
return
|
|
1843
|
+
return Yn(this.get());
|
|
1842
1844
|
}, n[fi] = function() {
|
|
1843
1845
|
return this.valueOf();
|
|
1844
1846
|
}, t;
|
|
@@ -1862,8 +1864,8 @@ var Ve = /* @__PURE__ */ function() {
|
|
|
1862
1864
|
}, t.get = function() {
|
|
1863
1865
|
if (this.isComputing_ && N(32, this.name_, this.derivation), f.inBatch === 0 && // !globalState.trackingDerivatpion &&
|
|
1864
1866
|
this.observers_.size === 0 && !this.keepAlive_)
|
|
1865
|
-
|
|
1866
|
-
else if (yi(this),
|
|
1867
|
+
xt(this) && (this.warnAboutUntrackedRead_(), L(), this.value_ = this.computeValue_(!1), M());
|
|
1868
|
+
else if (yi(this), xt(this)) {
|
|
1867
1869
|
var i = f.trackingContext;
|
|
1868
1870
|
this.keepAlive_ && !i && (f.trackingContext = this), this.trackAndCompute() && Os(this), f.trackingContext = i;
|
|
1869
1871
|
}
|
|
@@ -1889,7 +1891,7 @@ var Ve = /* @__PURE__ */ function() {
|
|
|
1889
1891
|
return s && (this.value_ = r), s;
|
|
1890
1892
|
}, t.computeValue_ = function(i) {
|
|
1891
1893
|
this.isComputing_ = !0;
|
|
1892
|
-
var a =
|
|
1894
|
+
var a = Ke(!1), r;
|
|
1893
1895
|
if (i)
|
|
1894
1896
|
r = vi(this, this.derivation, this.scope_);
|
|
1895
1897
|
else if (f.disableErrorBoundaries === !0)
|
|
@@ -1900,19 +1902,19 @@ var Ve = /* @__PURE__ */ function() {
|
|
|
1900
1902
|
} catch (s) {
|
|
1901
1903
|
r = new st(s);
|
|
1902
1904
|
}
|
|
1903
|
-
return
|
|
1905
|
+
return ze(a), this.isComputing_ = !1, r;
|
|
1904
1906
|
}, t.suspend_ = function() {
|
|
1905
|
-
this.keepAlive_ || (
|
|
1907
|
+
this.keepAlive_ || (jt(this), this.value_ = void 0);
|
|
1906
1908
|
}, t.observe_ = function(i, a) {
|
|
1907
1909
|
var r = this, s = !0, o = void 0;
|
|
1908
|
-
return
|
|
1910
|
+
return Ht(function() {
|
|
1909
1911
|
var u = r.get();
|
|
1910
1912
|
if (!s || a) {
|
|
1911
1913
|
var d = Ae();
|
|
1912
1914
|
i({
|
|
1913
1915
|
observableKind: "computed",
|
|
1914
1916
|
debugObjectName: r.name_,
|
|
1915
|
-
type:
|
|
1917
|
+
type: H,
|
|
1916
1918
|
object: r,
|
|
1917
1919
|
newValue: u,
|
|
1918
1920
|
oldValue: o
|
|
@@ -1924,7 +1926,7 @@ var Ve = /* @__PURE__ */ function() {
|
|
|
1924
1926
|
}, t.toString = function() {
|
|
1925
1927
|
return this.name_ + "[" + this.derivation.toString() + "]";
|
|
1926
1928
|
}, t.valueOf = function() {
|
|
1927
|
-
return
|
|
1929
|
+
return Yn(this.get());
|
|
1928
1930
|
}, t[mi] = function() {
|
|
1929
1931
|
return this.valueOf();
|
|
1930
1932
|
}, e;
|
|
@@ -1942,7 +1944,7 @@ var st = function(t) {
|
|
|
1942
1944
|
function et(e) {
|
|
1943
1945
|
return e instanceof st;
|
|
1944
1946
|
}
|
|
1945
|
-
function
|
|
1947
|
+
function xt(e) {
|
|
1946
1948
|
switch (e.dependenciesState_) {
|
|
1947
1949
|
case g.UP_TO_DATE_:
|
|
1948
1950
|
return !1;
|
|
@@ -1950,7 +1952,7 @@ function jt(e) {
|
|
|
1950
1952
|
case g.STALE_:
|
|
1951
1953
|
return !0;
|
|
1952
1954
|
case g.POSSIBLY_STALE_: {
|
|
1953
|
-
for (var t =
|
|
1955
|
+
for (var t = Zt(!0), n = Ae(), i = e.observing_, a = i.length, r = 0; r < a; r++) {
|
|
1954
1956
|
var s = i[r];
|
|
1955
1957
|
if (yt(s)) {
|
|
1956
1958
|
if (f.disableErrorBoundaries)
|
|
@@ -1959,18 +1961,18 @@ function jt(e) {
|
|
|
1959
1961
|
try {
|
|
1960
1962
|
s.get();
|
|
1961
1963
|
} catch (o) {
|
|
1962
|
-
return ae(n),
|
|
1964
|
+
return ae(n), we(t), !0;
|
|
1963
1965
|
}
|
|
1964
1966
|
if (e.dependenciesState_ === g.STALE_)
|
|
1965
|
-
return ae(n),
|
|
1967
|
+
return ae(n), we(t), !0;
|
|
1966
1968
|
}
|
|
1967
1969
|
}
|
|
1968
|
-
return pi(e), ae(n),
|
|
1970
|
+
return pi(e), ae(n), we(t), !1;
|
|
1969
1971
|
}
|
|
1970
1972
|
}
|
|
1971
1973
|
}
|
|
1972
1974
|
function vi(e, t, n) {
|
|
1973
|
-
var i =
|
|
1975
|
+
var i = Zt(!0);
|
|
1974
1976
|
pi(e), e.newObserving_ = new Array(e.observing_.length + 100), e.unboundDepsCount_ = 0, e.runId_ = ++f.runId;
|
|
1975
1977
|
var a = f.trackingDerivation;
|
|
1976
1978
|
f.trackingDerivation = e, f.inBatch++;
|
|
@@ -1983,7 +1985,7 @@ function vi(e, t, n) {
|
|
|
1983
1985
|
} catch (s) {
|
|
1984
1986
|
r = new st(s);
|
|
1985
1987
|
}
|
|
1986
|
-
return f.inBatch--, f.trackingDerivation = a, gs(e),
|
|
1988
|
+
return f.inBatch--, f.trackingDerivation = a, gs(e), we(i), r;
|
|
1987
1989
|
}
|
|
1988
1990
|
function gs(e) {
|
|
1989
1991
|
for (var t = e.observing_, n = e.observing_ = e.newObserving_, i = g.UP_TO_DATE_, a = 0, r = e.unboundDepsCount_, s = 0; s < r; s++) {
|
|
@@ -1992,7 +1994,7 @@ function gs(e) {
|
|
|
1992
1994
|
}
|
|
1993
1995
|
for (n.length = a, e.newObserving_ = null, r = t.length; r--; ) {
|
|
1994
1996
|
var u = t[r];
|
|
1995
|
-
u.diffValue_ === 0 &&
|
|
1997
|
+
u.diffValue_ === 0 && ki(u, e), u.diffValue_ = 0;
|
|
1996
1998
|
}
|
|
1997
1999
|
for (; a--; ) {
|
|
1998
2000
|
var d = n[a];
|
|
@@ -2000,11 +2002,11 @@ function gs(e) {
|
|
|
2000
2002
|
}
|
|
2001
2003
|
i !== g.UP_TO_DATE_ && (e.dependenciesState_ = i, e.onBecomeStale_());
|
|
2002
2004
|
}
|
|
2003
|
-
function
|
|
2005
|
+
function jt(e) {
|
|
2004
2006
|
var t = e.observing_;
|
|
2005
2007
|
e.observing_ = [];
|
|
2006
2008
|
for (var n = t.length; n--; )
|
|
2007
|
-
|
|
2009
|
+
ki(t[n], e);
|
|
2008
2010
|
e.dependenciesState_ = g.NOT_TRACKING_;
|
|
2009
2011
|
}
|
|
2010
2012
|
function hi(e) {
|
|
@@ -2022,11 +2024,11 @@ function Ae() {
|
|
|
2022
2024
|
function ae(e) {
|
|
2023
2025
|
f.trackingDerivation = e;
|
|
2024
2026
|
}
|
|
2025
|
-
function
|
|
2027
|
+
function Zt(e) {
|
|
2026
2028
|
var t = f.allowStateReads;
|
|
2027
2029
|
return f.allowStateReads = e, t;
|
|
2028
2030
|
}
|
|
2029
|
-
function
|
|
2031
|
+
function we(e) {
|
|
2030
2032
|
f.allowStateReads = e;
|
|
2031
2033
|
}
|
|
2032
2034
|
function pi(e) {
|
|
@@ -2038,19 +2040,19 @@ function pi(e) {
|
|
|
2038
2040
|
}
|
|
2039
2041
|
var Ct = function() {
|
|
2040
2042
|
this.version = 6, this.UNCHANGED = {}, this.trackingDerivation = null, this.trackingContext = null, this.runId = 0, this.mobxGuid = 0, this.inBatch = 0, this.pendingUnobservations = [], this.pendingReactions = [], this.isRunningReactions = !1, this.allowStateChanges = !1, this.allowStateReads = !0, this.enforceActions = !0, this.spyListeners = [], this.globalReactionErrorHandlers = [], this.computedRequiresReaction = !1, this.reactionRequiresObservable = !1, this.observableRequiresReaction = !1, this.disableErrorBoundaries = !1, this.suppressReactionErrors = !1, this.useProxies = !0, this.verifyProxies = !1, this.safeDescriptors = !0, this.stateVersion = Number.MIN_SAFE_INTEGER;
|
|
2041
|
-
},
|
|
2042
|
-
var e = /* @__PURE__ */
|
|
2043
|
-
return e.__mobxInstanceCount > 0 && !e.__mobxGlobals && (
|
|
2043
|
+
}, wt = !0, f = /* @__PURE__ */ function() {
|
|
2044
|
+
var e = /* @__PURE__ */ zn();
|
|
2045
|
+
return e.__mobxInstanceCount > 0 && !e.__mobxGlobals && (wt = !1), e.__mobxGlobals && e.__mobxGlobals.version !== new Ct().version && (wt = !1), wt ? e.__mobxGlobals ? (e.__mobxInstanceCount += 1, e.__mobxGlobals.UNCHANGED || (e.__mobxGlobals.UNCHANGED = {}), e.__mobxGlobals) : (e.__mobxInstanceCount = 1, e.__mobxGlobals = /* @__PURE__ */ new Ct()) : (setTimeout(function() {
|
|
2044
2046
|
N(35);
|
|
2045
2047
|
}, 1), new Ct());
|
|
2046
2048
|
}();
|
|
2047
2049
|
function Ns(e, t) {
|
|
2048
2050
|
e.observers_.add(t), e.lowestObserverState_ > t.dependenciesState_ && (e.lowestObserverState_ = t.dependenciesState_);
|
|
2049
2051
|
}
|
|
2050
|
-
function
|
|
2051
|
-
e.observers_.delete(t), e.observers_.size === 0 &&
|
|
2052
|
+
function ki(e, t) {
|
|
2053
|
+
e.observers_.delete(t), e.observers_.size === 0 && _i(e);
|
|
2052
2054
|
}
|
|
2053
|
-
function
|
|
2055
|
+
function _i(e) {
|
|
2054
2056
|
e.isPendingUnobservation_ === !1 && (e.isPendingUnobservation_ = !0, f.pendingUnobservations.push(e));
|
|
2055
2057
|
}
|
|
2056
2058
|
function L() {
|
|
@@ -2068,7 +2070,7 @@ function M() {
|
|
|
2068
2070
|
}
|
|
2069
2071
|
function yi(e) {
|
|
2070
2072
|
var t = f.trackingDerivation;
|
|
2071
|
-
return t !== null ? (t.runId_ !== e.lastAccessedBy_ && (e.lastAccessedBy_ = t.runId_, t.newObserving_[t.unboundDepsCount_++] = e, !e.isBeingObserved_ && f.trackingContext && (e.isBeingObserved_ = !0, e.onBO())), e.isBeingObserved_) : (e.observers_.size === 0 && f.inBatch > 0 &&
|
|
2073
|
+
return t !== null ? (t.runId_ !== e.lastAccessedBy_ && (e.lastAccessedBy_ = t.runId_, t.newObserving_[t.unboundDepsCount_++] = e, !e.isBeingObserved_ && f.trackingContext && (e.isBeingObserved_ = !0, e.onBO())), e.isBeingObserved_) : (e.observers_.size === 0 && f.inBatch > 0 && _i(e), !1);
|
|
2072
2074
|
}
|
|
2073
2075
|
function Si(e) {
|
|
2074
2076
|
e.lowestObserverState_ !== g.STALE_ && (e.lowestObserverState_ = g.STALE_, e.observers_.forEach(function(t) {
|
|
@@ -2100,7 +2102,7 @@ var ot = /* @__PURE__ */ function() {
|
|
|
2100
2102
|
if (!this.isDisposed_) {
|
|
2101
2103
|
L(), this.isScheduled_ = !1;
|
|
2102
2104
|
var i = f.trackingContext;
|
|
2103
|
-
if (f.trackingContext = this,
|
|
2105
|
+
if (f.trackingContext = this, xt(this)) {
|
|
2104
2106
|
this.isTrackPending_ = !0;
|
|
2105
2107
|
try {
|
|
2106
2108
|
this.onInvalidate_();
|
|
@@ -2116,7 +2118,7 @@ var ot = /* @__PURE__ */ function() {
|
|
|
2116
2118
|
var a = f.trackingContext;
|
|
2117
2119
|
f.trackingContext = this;
|
|
2118
2120
|
var r = vi(this, i, void 0);
|
|
2119
|
-
f.trackingContext = a, this.isRunning_ = !1, this.isTrackPending_ = !1, this.isDisposed_ &&
|
|
2121
|
+
f.trackingContext = a, this.isRunning_ = !1, this.isTrackPending_ = !1, this.isDisposed_ && jt(this), et(r) && this.reportExceptionInDerivation_(r.cause), M();
|
|
2120
2122
|
}
|
|
2121
2123
|
}, t.reportExceptionInDerivation_ = function(i) {
|
|
2122
2124
|
var a = this;
|
|
@@ -2131,14 +2133,14 @@ var ot = /* @__PURE__ */ function() {
|
|
|
2131
2133
|
return s(i, a);
|
|
2132
2134
|
});
|
|
2133
2135
|
}, t.dispose = function() {
|
|
2134
|
-
this.isDisposed_ || (this.isDisposed_ = !0, this.isRunning_ || (L(),
|
|
2136
|
+
this.isDisposed_ || (this.isDisposed_ = !0, this.isRunning_ || (L(), jt(this), M()));
|
|
2135
2137
|
}, t.getDisposer_ = function() {
|
|
2136
2138
|
var i = this.dispose.bind(this);
|
|
2137
|
-
return i[
|
|
2139
|
+
return i[k] = this, i;
|
|
2138
2140
|
}, t.toString = function() {
|
|
2139
2141
|
return "Reaction[" + this.name_ + "]";
|
|
2140
2142
|
}, t.trace = function(i) {
|
|
2141
|
-
i === void 0 && (i = !1),
|
|
2143
|
+
i === void 0 && (i = !1), Ks(this, i);
|
|
2142
2144
|
}, e;
|
|
2143
2145
|
}(), Es = 100, Fs = function(t) {
|
|
2144
2146
|
return t();
|
|
@@ -2156,31 +2158,31 @@ function Rs() {
|
|
|
2156
2158
|
f.isRunningReactions = !1;
|
|
2157
2159
|
}
|
|
2158
2160
|
var ut = /* @__PURE__ */ ce("Reaction", ot);
|
|
2159
|
-
function
|
|
2161
|
+
function De() {
|
|
2160
2162
|
return !1;
|
|
2161
2163
|
}
|
|
2162
2164
|
function Cs(e) {
|
|
2163
2165
|
return console.warn("[mobx.spy] Is a no-op in production builds"), function() {
|
|
2164
2166
|
};
|
|
2165
2167
|
}
|
|
2166
|
-
var gi = "action",
|
|
2168
|
+
var gi = "action", ws = "action.bound", Ni = "autoAction", Ds = "autoAction.bound", Ts = "<unnamed action>", Oi = /* @__PURE__ */ Qe(gi), Ps = /* @__PURE__ */ Qe(ws, {
|
|
2167
2169
|
bound: !0
|
|
2168
|
-
}), Ai = /* @__PURE__ */
|
|
2170
|
+
}), Ai = /* @__PURE__ */ Qe(Ni, {
|
|
2169
2171
|
autoAction: !0
|
|
2170
|
-
}), Vs = /* @__PURE__ */
|
|
2172
|
+
}), Vs = /* @__PURE__ */ Qe(Ds, {
|
|
2171
2173
|
autoAction: !0,
|
|
2172
2174
|
bound: !0
|
|
2173
2175
|
});
|
|
2174
2176
|
function Ei(e) {
|
|
2175
2177
|
var t = function(i, a) {
|
|
2176
2178
|
if (q(i))
|
|
2177
|
-
return Ne(i.name ||
|
|
2179
|
+
return Ne(i.name || Ts, i, e);
|
|
2178
2180
|
if (q(a))
|
|
2179
2181
|
return Ne(i, a, e);
|
|
2180
2182
|
if (le(a))
|
|
2181
|
-
return
|
|
2183
|
+
return Ue(i, a, e ? Ai : Oi);
|
|
2182
2184
|
if (le(i))
|
|
2183
|
-
return
|
|
2185
|
+
return X(Qe(e ? Ni : gi, {
|
|
2184
2186
|
name: i,
|
|
2185
2187
|
autoAction: e
|
|
2186
2188
|
}));
|
|
@@ -2191,14 +2193,14 @@ var oe = /* @__PURE__ */ Ei(!1);
|
|
|
2191
2193
|
Object.assign(oe, Oi);
|
|
2192
2194
|
var Ie = /* @__PURE__ */ Ei(!0);
|
|
2193
2195
|
Object.assign(Ie, Ai);
|
|
2194
|
-
oe.bound = /* @__PURE__ */
|
|
2195
|
-
Ie.bound = /* @__PURE__ */
|
|
2196
|
-
function
|
|
2196
|
+
oe.bound = /* @__PURE__ */ X(Ps);
|
|
2197
|
+
Ie.bound = /* @__PURE__ */ X(Vs);
|
|
2198
|
+
function Xt(e) {
|
|
2197
2199
|
return q(e) && e.isMobxAction === !0;
|
|
2198
2200
|
}
|
|
2199
|
-
function
|
|
2201
|
+
function Ht(e, t) {
|
|
2200
2202
|
var n, i;
|
|
2201
|
-
t === void 0 && (t =
|
|
2203
|
+
t === void 0 && (t = zt);
|
|
2202
2204
|
var a = (n = (i = t) == null ? void 0 : i.name) != null ? n : "Autorun", r = !t.scheduler && !t.delay, s;
|
|
2203
2205
|
if (r)
|
|
2204
2206
|
s = new ot(a, function() {
|
|
@@ -2225,10 +2227,10 @@ function Fi(e) {
|
|
|
2225
2227
|
return setTimeout(t, e.delay);
|
|
2226
2228
|
} : Is;
|
|
2227
2229
|
}
|
|
2228
|
-
function
|
|
2230
|
+
function xs(e, t, n) {
|
|
2229
2231
|
var i;
|
|
2230
|
-
n === void 0 && (n =
|
|
2231
|
-
var a = (i = n.name) != null ? i : "Reaction", r = oe(a, n.onError ?
|
|
2232
|
+
n === void 0 && (n = zt);
|
|
2233
|
+
var a = (i = n.name) != null ? i : "Reaction", r = oe(a, n.onError ? js(n.onError, t) : t), s = !n.scheduler && !n.delay, o = Fi(n), u = !0, d = !1, c, v, b = n.compareStructural ? be.structural : n.equals || be.default, F = new ot(a, function() {
|
|
2232
2234
|
u || s ? I() : d || (d = !0, o(I));
|
|
2233
2235
|
}, n.onError, n.requiresObservable);
|
|
2234
2236
|
function I() {
|
|
@@ -2244,7 +2246,7 @@ function js(e, t, n) {
|
|
|
2244
2246
|
}
|
|
2245
2247
|
return F.schedule_(), F.getDisposer_();
|
|
2246
2248
|
}
|
|
2247
|
-
function
|
|
2249
|
+
function js(e, t) {
|
|
2248
2250
|
return function() {
|
|
2249
2251
|
try {
|
|
2250
2252
|
return t.apply(this, arguments);
|
|
@@ -2254,7 +2256,7 @@ function xs(e, t) {
|
|
|
2254
2256
|
};
|
|
2255
2257
|
}
|
|
2256
2258
|
var Ls = "onBO", Ms = "onBUO";
|
|
2257
|
-
function
|
|
2259
|
+
function Bs(e, t, n) {
|
|
2258
2260
|
return Ci(Ls, e, t, n);
|
|
2259
2261
|
}
|
|
2260
2262
|
function Ri(e, t, n) {
|
|
@@ -2267,11 +2269,11 @@ function Ci(e, t, n, i) {
|
|
|
2267
2269
|
o && (o.delete(r), o.size === 0 && delete a[s]);
|
|
2268
2270
|
};
|
|
2269
2271
|
}
|
|
2270
|
-
function
|
|
2271
|
-
var a =
|
|
2272
|
+
function wi(e, t, n, i) {
|
|
2273
|
+
var a = Dr(t), r = bt(e, i)[k];
|
|
2272
2274
|
L();
|
|
2273
2275
|
try {
|
|
2274
|
-
|
|
2276
|
+
Te(a).forEach(function(s) {
|
|
2275
2277
|
r.extend_(
|
|
2276
2278
|
s,
|
|
2277
2279
|
a[s],
|
|
@@ -2284,46 +2286,46 @@ function Ti(e, t, n, i) {
|
|
|
2284
2286
|
}
|
|
2285
2287
|
return e;
|
|
2286
2288
|
}
|
|
2287
|
-
var
|
|
2288
|
-
function
|
|
2289
|
+
var Us = 0;
|
|
2290
|
+
function Di() {
|
|
2289
2291
|
this.message = "FLOW_CANCELLED";
|
|
2290
2292
|
}
|
|
2291
|
-
|
|
2293
|
+
Di.prototype = /* @__PURE__ */ Object.create(Error.prototype);
|
|
2292
2294
|
var On = /* @__PURE__ */ ni("flow"), Gs = /* @__PURE__ */ ni("flow.bound", {
|
|
2293
2295
|
bound: !0
|
|
2294
|
-
}),
|
|
2296
|
+
}), xe = /* @__PURE__ */ Object.assign(function(t, n) {
|
|
2295
2297
|
if (le(n))
|
|
2296
|
-
return
|
|
2298
|
+
return Ue(t, n, On);
|
|
2297
2299
|
var i = t, a = i.name || "<unnamed flow>", r = function() {
|
|
2298
|
-
var o = this, u = arguments, d = ++
|
|
2300
|
+
var o = this, u = arguments, d = ++Us, c = oe(a + " - runid: " + d + " - init", i).apply(o, u), v, b = void 0, F = new Promise(function(I, R) {
|
|
2299
2301
|
var A = 0;
|
|
2300
2302
|
v = R;
|
|
2301
|
-
function W(
|
|
2303
|
+
function W(w) {
|
|
2302
2304
|
b = void 0;
|
|
2303
|
-
var
|
|
2305
|
+
var x;
|
|
2304
2306
|
try {
|
|
2305
|
-
|
|
2306
|
-
} catch (
|
|
2307
|
-
return R(
|
|
2307
|
+
x = oe(a + " - runid: " + d + " - yield " + A++, c.next).call(c, w);
|
|
2308
|
+
} catch (j) {
|
|
2309
|
+
return R(j);
|
|
2308
2310
|
}
|
|
2309
|
-
C(
|
|
2311
|
+
C(x);
|
|
2310
2312
|
}
|
|
2311
|
-
function
|
|
2313
|
+
function Q(w) {
|
|
2312
2314
|
b = void 0;
|
|
2313
|
-
var
|
|
2315
|
+
var x;
|
|
2314
2316
|
try {
|
|
2315
|
-
|
|
2316
|
-
} catch (
|
|
2317
|
-
return R(
|
|
2317
|
+
x = oe(a + " - runid: " + d + " - yield " + A++, c.throw).call(c, w);
|
|
2318
|
+
} catch (j) {
|
|
2319
|
+
return R(j);
|
|
2318
2320
|
}
|
|
2319
|
-
C(
|
|
2321
|
+
C(x);
|
|
2320
2322
|
}
|
|
2321
|
-
function C(
|
|
2322
|
-
if (q(
|
|
2323
|
-
|
|
2323
|
+
function C(w) {
|
|
2324
|
+
if (q(w == null ? void 0 : w.then)) {
|
|
2325
|
+
w.then(C, R);
|
|
2324
2326
|
return;
|
|
2325
2327
|
}
|
|
2326
|
-
return
|
|
2328
|
+
return w.done ? I(w.value) : (b = Promise.resolve(w.value), b.then(W, Q));
|
|
2327
2329
|
}
|
|
2328
2330
|
W(void 0);
|
|
2329
2331
|
});
|
|
@@ -2331,7 +2333,7 @@ var On = /* @__PURE__ */ ni("flow"), Gs = /* @__PURE__ */ ni("flow.bound", {
|
|
|
2331
2333
|
try {
|
|
2332
2334
|
b && An(b);
|
|
2333
2335
|
var I = c.return(void 0), R = Promise.resolve(I.value);
|
|
2334
|
-
R.then(pe, pe), An(R), v(new
|
|
2336
|
+
R.then(pe, pe), An(R), v(new Di());
|
|
2335
2337
|
} catch (A) {
|
|
2336
2338
|
v(A);
|
|
2337
2339
|
}
|
|
@@ -2339,30 +2341,30 @@ var On = /* @__PURE__ */ ni("flow"), Gs = /* @__PURE__ */ ni("flow.bound", {
|
|
|
2339
2341
|
};
|
|
2340
2342
|
return r.isMobXFlow = !0, r;
|
|
2341
2343
|
}, On);
|
|
2342
|
-
|
|
2344
|
+
xe.bound = /* @__PURE__ */ X(Gs);
|
|
2343
2345
|
function An(e) {
|
|
2344
2346
|
q(e.cancel) && e.cancel();
|
|
2345
2347
|
}
|
|
2346
2348
|
function lt(e) {
|
|
2347
2349
|
return (e == null ? void 0 : e.isMobXFlow) === !0;
|
|
2348
2350
|
}
|
|
2349
|
-
function
|
|
2350
|
-
return e ? t !== void 0 ?
|
|
2351
|
+
function Qs(e, t) {
|
|
2352
|
+
return e ? t !== void 0 ? je(e) ? e[k].values_.has(t) : !1 : je(e) || !!e[k] || qt(e) || ut(e) || yt(e) : !1;
|
|
2351
2353
|
}
|
|
2352
2354
|
function $e(e) {
|
|
2353
|
-
return
|
|
2355
|
+
return Qs(e);
|
|
2354
2356
|
}
|
|
2355
|
-
function
|
|
2357
|
+
function Ks() {
|
|
2356
2358
|
N("trace() is not available in production builds");
|
|
2357
2359
|
for (var e = !1, t = arguments.length, n = new Array(t), i = 0; i < t; i++)
|
|
2358
2360
|
n[i] = arguments[i];
|
|
2359
2361
|
typeof n[n.length - 1] == "boolean" && (e = n.pop());
|
|
2360
|
-
var a =
|
|
2362
|
+
var a = zs(n);
|
|
2361
2363
|
if (!a)
|
|
2362
2364
|
return N("'trace(break?)' can only be used inside a tracked computed value or a Reaction. Consider passing in the computed value or reaction explicitly");
|
|
2363
2365
|
a.isTracing_ === ue.NONE && console.log("[mobx.trace] '" + a.name_ + "' tracing enabled"), a.isTracing_ = e ? ue.BREAK : ue.LOG;
|
|
2364
2366
|
}
|
|
2365
|
-
function
|
|
2367
|
+
function zs(e) {
|
|
2366
2368
|
switch (e.length) {
|
|
2367
2369
|
case 0:
|
|
2368
2370
|
return f.trackingDerivation;
|
|
@@ -2372,7 +2374,7 @@ function Ks(e) {
|
|
|
2372
2374
|
return de(e[0], e[1]);
|
|
2373
2375
|
}
|
|
2374
2376
|
}
|
|
2375
|
-
function
|
|
2377
|
+
function Y(e, t) {
|
|
2376
2378
|
t === void 0 && (t = void 0), L();
|
|
2377
2379
|
try {
|
|
2378
2380
|
return e.apply(t);
|
|
@@ -2381,7 +2383,7 @@ function H(e, t) {
|
|
|
2381
2383
|
}
|
|
2382
2384
|
}
|
|
2383
2385
|
function he(e) {
|
|
2384
|
-
return e[
|
|
2386
|
+
return e[k];
|
|
2385
2387
|
}
|
|
2386
2388
|
var $s = {
|
|
2387
2389
|
has: function(t, n) {
|
|
@@ -2411,9 +2413,9 @@ var $s = {
|
|
|
2411
2413
|
};
|
|
2412
2414
|
function qs(e, t) {
|
|
2413
2415
|
var n, i;
|
|
2414
|
-
return qn(), e = bt(e, t), (i = (n = e[
|
|
2416
|
+
return qn(), e = bt(e, t), (i = (n = e[k]).proxy_) != null ? i : n.proxy_ = new Proxy(e, $s);
|
|
2415
2417
|
}
|
|
2416
|
-
function
|
|
2418
|
+
function B(e) {
|
|
2417
2419
|
return e.interceptors_ !== void 0 && e.interceptors_.length > 0;
|
|
2418
2420
|
}
|
|
2419
2421
|
function qe(e, t) {
|
|
@@ -2423,7 +2425,7 @@ function qe(e, t) {
|
|
|
2423
2425
|
i !== -1 && n.splice(i, 1);
|
|
2424
2426
|
});
|
|
2425
2427
|
}
|
|
2426
|
-
function
|
|
2428
|
+
function U(e, t) {
|
|
2427
2429
|
var n = Ae();
|
|
2428
2430
|
try {
|
|
2429
2431
|
for (var i = [].concat(e.interceptors_ || []), a = 0, r = i.length; a < r && (t = i[a](t), t && !t.type && N(14), !!t); a++)
|
|
@@ -2433,7 +2435,7 @@ function B(e, t) {
|
|
|
2433
2435
|
ae(n);
|
|
2434
2436
|
}
|
|
2435
2437
|
}
|
|
2436
|
-
function
|
|
2438
|
+
function z(e) {
|
|
2437
2439
|
return e.changeListeners_ !== void 0 && e.changeListeners_.length > 0;
|
|
2438
2440
|
}
|
|
2439
2441
|
function We(e, t) {
|
|
@@ -2452,18 +2454,18 @@ function $(e, t) {
|
|
|
2452
2454
|
ae(n);
|
|
2453
2455
|
}
|
|
2454
2456
|
}
|
|
2455
|
-
var
|
|
2457
|
+
var Dt = /* @__PURE__ */ Symbol("mobx-keys");
|
|
2456
2458
|
function Ws(e, t, n) {
|
|
2457
|
-
if (
|
|
2458
|
-
return
|
|
2459
|
-
var i = bt(e, n)[
|
|
2460
|
-
if (!e[
|
|
2461
|
-
var a = Object.getPrototypeOf(e), r = new Set([].concat(
|
|
2462
|
-
r.delete("constructor"), r.delete(
|
|
2459
|
+
if (J(e))
|
|
2460
|
+
return wi(e, e, t, n);
|
|
2461
|
+
var i = bt(e, n)[k];
|
|
2462
|
+
if (!e[Dt]) {
|
|
2463
|
+
var a = Object.getPrototypeOf(e), r = new Set([].concat(Te(e), Te(a)));
|
|
2464
|
+
r.delete("constructor"), r.delete(k), ht(a, Dt, r);
|
|
2463
2465
|
}
|
|
2464
2466
|
L();
|
|
2465
2467
|
try {
|
|
2466
|
-
e[
|
|
2468
|
+
e[Dt].forEach(function(s) {
|
|
2467
2469
|
return i.make_(
|
|
2468
2470
|
s,
|
|
2469
2471
|
// must pass "undefined" for { key: undefined }
|
|
@@ -2475,19 +2477,19 @@ function Ws(e, t, n) {
|
|
|
2475
2477
|
}
|
|
2476
2478
|
return e;
|
|
2477
2479
|
}
|
|
2478
|
-
var En = "splice",
|
|
2480
|
+
var En = "splice", H = "update", Zs = 1e4, Xs = {
|
|
2479
2481
|
get: function(t, n) {
|
|
2480
|
-
var i = t[
|
|
2481
|
-
return n ===
|
|
2482
|
+
var i = t[k];
|
|
2483
|
+
return n === k ? i : n === "length" ? i.getArrayLength_() : typeof n == "string" && !isNaN(n) ? i.get_(parseInt(n)) : ie(dt, n) ? dt[n] : t[n];
|
|
2482
2484
|
},
|
|
2483
2485
|
set: function(t, n, i) {
|
|
2484
|
-
var a = t[
|
|
2486
|
+
var a = t[k];
|
|
2485
2487
|
return n === "length" && a.setArrayLength_(i), typeof n == "symbol" || isNaN(n) ? t[n] = i : a.set_(parseInt(n), i), !0;
|
|
2486
2488
|
},
|
|
2487
2489
|
preventExtensions: function() {
|
|
2488
2490
|
N(15);
|
|
2489
2491
|
}
|
|
2490
|
-
},
|
|
2492
|
+
}, Yt = /* @__PURE__ */ function() {
|
|
2491
2493
|
function e(n, i, a, r) {
|
|
2492
2494
|
n === void 0 && (n = "ObservableArray"), this.owned_ = void 0, this.legacyMode_ = void 0, this.atom_ = void 0, this.values_ = [], this.interceptors_ = void 0, this.changeListeners_ = void 0, this.enhancer_ = void 0, this.dehancer = void 0, this.proxy_ = void 0, this.lastKnownLength_ = 0, this.owned_ = a, this.legacyMode_ = r, this.atom_ = new Ge(n), this.enhancer_ = function(s, o) {
|
|
2493
2495
|
return i(s, o, "ObservableArray[..]");
|
|
@@ -2530,8 +2532,8 @@ var En = "splice", X = "update", Js = 1e4, Zs = {
|
|
|
2530
2532
|
var s = this;
|
|
2531
2533
|
this.atom_;
|
|
2532
2534
|
var o = this.values_.length;
|
|
2533
|
-
if (i === void 0 ? i = 0 : i > o ? i = o : i < 0 && (i = Math.max(0, o + i)), arguments.length === 1 ? a = o - i : a == null ? a = 0 : a = Math.max(0, Math.min(a, o - i)), r === void 0 && (r = Vt),
|
|
2534
|
-
var u =
|
|
2535
|
+
if (i === void 0 ? i = 0 : i > o ? i = o : i < 0 && (i = Math.max(0, o + i)), arguments.length === 1 ? a = o - i : a == null ? a = 0 : a = Math.max(0, Math.min(a, o - i)), r === void 0 && (r = Vt), B(this)) {
|
|
2536
|
+
var u = U(this, {
|
|
2535
2537
|
object: this.proxy_,
|
|
2536
2538
|
type: En,
|
|
2537
2539
|
index: i,
|
|
@@ -2551,7 +2553,7 @@ var En = "splice", X = "update", Js = 1e4, Zs = {
|
|
|
2551
2553
|
var c = this.spliceItemsIntoValues_(i, a, r);
|
|
2552
2554
|
return (a !== 0 || r.length !== 0) && this.notifyArraySplice_(i, r, c), this.dehanceValues_(c);
|
|
2553
2555
|
}, t.spliceItemsIntoValues_ = function(i, a, r) {
|
|
2554
|
-
if (r.length <
|
|
2556
|
+
if (r.length < Zs) {
|
|
2555
2557
|
var s;
|
|
2556
2558
|
return (s = this.values_).splice.apply(s, [i, a].concat(r));
|
|
2557
2559
|
} else {
|
|
@@ -2564,10 +2566,10 @@ var En = "splice", X = "update", Js = 1e4, Zs = {
|
|
|
2564
2566
|
return o;
|
|
2565
2567
|
}
|
|
2566
2568
|
}, t.notifyArrayChildUpdate_ = function(i, a, r) {
|
|
2567
|
-
var s = !this.owned_ &&
|
|
2569
|
+
var s = !this.owned_ && De(), o = z(this), u = o || s ? {
|
|
2568
2570
|
observableKind: "array",
|
|
2569
2571
|
object: this.proxy_,
|
|
2570
|
-
type:
|
|
2572
|
+
type: H,
|
|
2571
2573
|
debugObjectName: this.atom_.name_,
|
|
2572
2574
|
index: i,
|
|
2573
2575
|
newValue: a,
|
|
@@ -2575,7 +2577,7 @@ var En = "splice", X = "update", Js = 1e4, Zs = {
|
|
|
2575
2577
|
} : null;
|
|
2576
2578
|
this.atom_.reportChanged(), o && $(this, u);
|
|
2577
2579
|
}, t.notifyArraySplice_ = function(i, a, r) {
|
|
2578
|
-
var s = !this.owned_ &&
|
|
2580
|
+
var s = !this.owned_ && De(), o = z(this), u = o || s ? {
|
|
2579
2581
|
observableKind: "array",
|
|
2580
2582
|
object: this.proxy_,
|
|
2581
2583
|
debugObjectName: this.atom_.name_,
|
|
@@ -2598,9 +2600,9 @@ var En = "splice", X = "update", Js = 1e4, Zs = {
|
|
|
2598
2600
|
if (this.legacyMode_ && i > r.length && N(17, i, r.length), i < r.length) {
|
|
2599
2601
|
this.atom_;
|
|
2600
2602
|
var s = r[i];
|
|
2601
|
-
if (
|
|
2602
|
-
var o =
|
|
2603
|
-
type:
|
|
2603
|
+
if (B(this)) {
|
|
2604
|
+
var o = U(this, {
|
|
2605
|
+
type: H,
|
|
2604
2606
|
object: this.proxy_,
|
|
2605
2607
|
index: i,
|
|
2606
2608
|
newValue: a
|
|
@@ -2619,14 +2621,14 @@ var En = "splice", X = "update", Js = 1e4, Zs = {
|
|
|
2619
2621
|
}
|
|
2620
2622
|
}, e;
|
|
2621
2623
|
}();
|
|
2622
|
-
function
|
|
2624
|
+
function Hs(e, t, n, i) {
|
|
2623
2625
|
n === void 0 && (n = "ObservableArray"), i === void 0 && (i = !1), qn();
|
|
2624
|
-
var a = new
|
|
2625
|
-
|
|
2626
|
-
var r = new Proxy(a.values_,
|
|
2626
|
+
var a = new Yt(n, t, i, !1);
|
|
2627
|
+
Xn(a.values_, k, a);
|
|
2628
|
+
var r = new Proxy(a.values_, Xs);
|
|
2627
2629
|
if (a.proxy_ = r, e && e.length) {
|
|
2628
|
-
var s =
|
|
2629
|
-
a.spliceWithArray_(0, 0, e),
|
|
2630
|
+
var s = Ke(!0);
|
|
2631
|
+
a.spliceWithArray_(0, 0, e), ze(s);
|
|
2630
2632
|
}
|
|
2631
2633
|
return r;
|
|
2632
2634
|
}
|
|
@@ -2635,7 +2637,7 @@ var dt = {
|
|
|
2635
2637
|
return this.splice(0);
|
|
2636
2638
|
},
|
|
2637
2639
|
replace: function(t) {
|
|
2638
|
-
var n = this[
|
|
2640
|
+
var n = this[k];
|
|
2639
2641
|
return n.spliceWithArray_(0, n.values_.length, t);
|
|
2640
2642
|
},
|
|
2641
2643
|
// Used by JSON.stringify
|
|
@@ -2651,7 +2653,7 @@ var dt = {
|
|
|
2651
2653
|
splice: function(t, n) {
|
|
2652
2654
|
for (var i = arguments.length, a = new Array(i > 2 ? i - 2 : 0), r = 2; r < i; r++)
|
|
2653
2655
|
a[r - 2] = arguments[r];
|
|
2654
|
-
var s = this[
|
|
2656
|
+
var s = this[k];
|
|
2655
2657
|
switch (arguments.length) {
|
|
2656
2658
|
case 0:
|
|
2657
2659
|
return [];
|
|
@@ -2663,21 +2665,21 @@ var dt = {
|
|
|
2663
2665
|
return s.spliceWithArray_(t, n, a);
|
|
2664
2666
|
},
|
|
2665
2667
|
spliceWithArray: function(t, n, i) {
|
|
2666
|
-
return this[
|
|
2668
|
+
return this[k].spliceWithArray_(t, n, i);
|
|
2667
2669
|
},
|
|
2668
2670
|
push: function() {
|
|
2669
|
-
for (var t = this[
|
|
2671
|
+
for (var t = this[k], n = arguments.length, i = new Array(n), a = 0; a < n; a++)
|
|
2670
2672
|
i[a] = arguments[a];
|
|
2671
2673
|
return t.spliceWithArray_(t.values_.length, 0, i), t.values_.length;
|
|
2672
2674
|
},
|
|
2673
2675
|
pop: function() {
|
|
2674
|
-
return this.splice(Math.max(this[
|
|
2676
|
+
return this.splice(Math.max(this[k].values_.length - 1, 0), 1)[0];
|
|
2675
2677
|
},
|
|
2676
2678
|
shift: function() {
|
|
2677
2679
|
return this.splice(0, 1)[0];
|
|
2678
2680
|
},
|
|
2679
2681
|
unshift: function() {
|
|
2680
|
-
for (var t = this[
|
|
2682
|
+
for (var t = this[k], n = arguments.length, i = new Array(n), a = 0; a < n; a++)
|
|
2681
2683
|
i[a] = arguments[a];
|
|
2682
2684
|
return t.spliceWithArray_(0, 0, i), t.values_.length;
|
|
2683
2685
|
},
|
|
@@ -2690,7 +2692,7 @@ var dt = {
|
|
|
2690
2692
|
return t.sort.apply(t, arguments), this.replace(t), this;
|
|
2691
2693
|
},
|
|
2692
2694
|
remove: function(t) {
|
|
2693
|
-
var n = this[
|
|
2695
|
+
var n = this[k], i = n.dehanceValues_(n.values_).indexOf(t);
|
|
2694
2696
|
return i > -1 ? (this.splice(i, 1), !0) : !1;
|
|
2695
2697
|
}
|
|
2696
2698
|
};
|
|
@@ -2711,14 +2713,14 @@ P("flatMap", re);
|
|
|
2711
2713
|
P("forEach", re);
|
|
2712
2714
|
P("map", re);
|
|
2713
2715
|
P("some", re);
|
|
2714
|
-
P("reduce",
|
|
2715
|
-
P("reduceRight",
|
|
2716
|
+
P("reduce", Ti);
|
|
2717
|
+
P("reduceRight", Ti);
|
|
2716
2718
|
function P(e, t) {
|
|
2717
2719
|
typeof Array.prototype[e] == "function" && (dt[e] = t(e));
|
|
2718
2720
|
}
|
|
2719
2721
|
function ee(e) {
|
|
2720
2722
|
return function() {
|
|
2721
|
-
var t = this[
|
|
2723
|
+
var t = this[k];
|
|
2722
2724
|
t.atom_.reportObserved();
|
|
2723
2725
|
var n = t.dehanceValues_(t.values_);
|
|
2724
2726
|
return n[e].apply(n, arguments);
|
|
@@ -2726,7 +2728,7 @@ function ee(e) {
|
|
|
2726
2728
|
}
|
|
2727
2729
|
function re(e) {
|
|
2728
2730
|
return function(t, n) {
|
|
2729
|
-
var i = this, a = this[
|
|
2731
|
+
var i = this, a = this[k];
|
|
2730
2732
|
a.atom_.reportObserved();
|
|
2731
2733
|
var r = a.dehanceValues_(a.values_);
|
|
2732
2734
|
return r[e](function(s, o) {
|
|
@@ -2734,9 +2736,9 @@ function re(e) {
|
|
|
2734
2736
|
});
|
|
2735
2737
|
};
|
|
2736
2738
|
}
|
|
2737
|
-
function
|
|
2739
|
+
function Ti(e) {
|
|
2738
2740
|
return function() {
|
|
2739
|
-
var t = this, n = this[
|
|
2741
|
+
var t = this, n = this[k];
|
|
2740
2742
|
n.atom_.reportObserved();
|
|
2741
2743
|
var i = n.dehanceValues_(n.values_), a = arguments[0];
|
|
2742
2744
|
return arguments[0] = function(r, s, o) {
|
|
@@ -2744,17 +2746,17 @@ function Di(e) {
|
|
|
2744
2746
|
}, i[e].apply(i, arguments);
|
|
2745
2747
|
};
|
|
2746
2748
|
}
|
|
2747
|
-
var
|
|
2749
|
+
var Ys = /* @__PURE__ */ ce("ObservableArrayAdministration", Yt);
|
|
2748
2750
|
function St(e) {
|
|
2749
|
-
return vt(e) &&
|
|
2751
|
+
return vt(e) && Ys(e[k]);
|
|
2750
2752
|
}
|
|
2751
|
-
var Pi, Vi,
|
|
2753
|
+
var Pi, Vi, Js = {}, ne = "add", ct = "delete";
|
|
2752
2754
|
Pi = Symbol.iterator;
|
|
2753
2755
|
Vi = Symbol.toStringTag;
|
|
2754
2756
|
var Ii = /* @__PURE__ */ function() {
|
|
2755
2757
|
function e(n, i, a) {
|
|
2756
2758
|
var r = this;
|
|
2757
|
-
i === void 0 && (i = ge), a === void 0 && (a = "ObservableMap"), this.enhancer_ = void 0, this.name_ = void 0, this[
|
|
2759
|
+
i === void 0 && (i = ge), a === void 0 && (a = "ObservableMap"), this.enhancer_ = void 0, this.name_ = void 0, this[k] = Js, this.data_ = void 0, this.hasMap_ = void 0, this.keysAtom_ = void 0, this.interceptors_ = void 0, this.changeListeners_ = void 0, this.dehancer = void 0, this.enhancer_ = i, this.name_ = a, q(Map) || N(18), this.keysAtom_ = ei("ObservableMap.keys()"), this.data_ = /* @__PURE__ */ new Map(), this.hasMap_ = /* @__PURE__ */ new Map(), ci(!0, function() {
|
|
2758
2760
|
r.merge(n);
|
|
2759
2761
|
});
|
|
2760
2762
|
}
|
|
@@ -2775,9 +2777,9 @@ var Ii = /* @__PURE__ */ function() {
|
|
|
2775
2777
|
return r.get();
|
|
2776
2778
|
}, t.set = function(i, a) {
|
|
2777
2779
|
var r = this.has_(i);
|
|
2778
|
-
if (
|
|
2779
|
-
var s =
|
|
2780
|
-
type: r ?
|
|
2780
|
+
if (B(this)) {
|
|
2781
|
+
var s = U(this, {
|
|
2782
|
+
type: r ? H : ne,
|
|
2781
2783
|
object: this,
|
|
2782
2784
|
newValue: a,
|
|
2783
2785
|
name: i
|
|
@@ -2789,8 +2791,8 @@ var Ii = /* @__PURE__ */ function() {
|
|
|
2789
2791
|
return r ? this.updateValue_(i, a) : this.addValue_(i, a), this;
|
|
2790
2792
|
}, t.delete = function(i) {
|
|
2791
2793
|
var a = this;
|
|
2792
|
-
if (this.keysAtom_,
|
|
2793
|
-
var r =
|
|
2794
|
+
if (this.keysAtom_, B(this)) {
|
|
2795
|
+
var r = U(this, {
|
|
2794
2796
|
type: ct,
|
|
2795
2797
|
object: this,
|
|
2796
2798
|
name: i
|
|
@@ -2799,7 +2801,7 @@ var Ii = /* @__PURE__ */ function() {
|
|
|
2799
2801
|
return !1;
|
|
2800
2802
|
}
|
|
2801
2803
|
if (this.has_(i)) {
|
|
2802
|
-
var s =
|
|
2804
|
+
var s = De(), o = z(this), u = o || s ? {
|
|
2803
2805
|
observableKind: "map",
|
|
2804
2806
|
debugObjectName: this.name_,
|
|
2805
2807
|
type: ct,
|
|
@@ -2807,7 +2809,7 @@ var Ii = /* @__PURE__ */ function() {
|
|
|
2807
2809
|
oldValue: this.data_.get(i).value_,
|
|
2808
2810
|
name: i
|
|
2809
2811
|
} : null;
|
|
2810
|
-
return
|
|
2812
|
+
return Y(function() {
|
|
2811
2813
|
var d;
|
|
2812
2814
|
a.keysAtom_.reportChanged(), (d = a.hasMap_.get(i)) == null || d.setNewValue_(!1);
|
|
2813
2815
|
var c = a.data_.get(i);
|
|
@@ -2818,10 +2820,10 @@ var Ii = /* @__PURE__ */ function() {
|
|
|
2818
2820
|
}, t.updateValue_ = function(i, a) {
|
|
2819
2821
|
var r = this.data_.get(i);
|
|
2820
2822
|
if (a = r.prepareNewValue_(a), a !== f.UNCHANGED) {
|
|
2821
|
-
var s =
|
|
2823
|
+
var s = De(), o = z(this), u = o || s ? {
|
|
2822
2824
|
observableKind: "map",
|
|
2823
2825
|
debugObjectName: this.name_,
|
|
2824
|
-
type:
|
|
2826
|
+
type: H,
|
|
2825
2827
|
object: this,
|
|
2826
2828
|
oldValue: r.value_,
|
|
2827
2829
|
name: i,
|
|
@@ -2831,11 +2833,11 @@ var Ii = /* @__PURE__ */ function() {
|
|
|
2831
2833
|
}
|
|
2832
2834
|
}, t.addValue_ = function(i, a) {
|
|
2833
2835
|
var r = this;
|
|
2834
|
-
this.keysAtom_,
|
|
2836
|
+
this.keysAtom_, Y(function() {
|
|
2835
2837
|
var d, c = new ye(a, r.enhancer_, "ObservableMap.key", !1);
|
|
2836
2838
|
r.data_.set(i, c), a = c.value_, (d = r.hasMap_.get(i)) == null || d.setNewValue_(!0), r.keysAtom_.reportChanged();
|
|
2837
2839
|
});
|
|
2838
|
-
var s =
|
|
2840
|
+
var s = De(), o = z(this), u = o || s ? {
|
|
2839
2841
|
observableKind: "map",
|
|
2840
2842
|
debugObjectName: this.name_,
|
|
2841
2843
|
type: ne,
|
|
@@ -2875,14 +2877,14 @@ var Ii = /* @__PURE__ */ function() {
|
|
|
2875
2877
|
}, t[Pi] = function() {
|
|
2876
2878
|
return this.entries();
|
|
2877
2879
|
}, t.forEach = function(i, a) {
|
|
2878
|
-
for (var r =
|
|
2880
|
+
for (var r = ke(this), s; !(s = r()).done; ) {
|
|
2879
2881
|
var o = s.value, u = o[0], d = o[1];
|
|
2880
2882
|
i.call(a, d, u, this);
|
|
2881
2883
|
}
|
|
2882
2884
|
}, t.merge = function(i) {
|
|
2883
2885
|
var a = this;
|
|
2884
|
-
return fe(i) && (i = new Map(i)),
|
|
2885
|
-
|
|
2886
|
+
return fe(i) && (i = new Map(i)), Y(function() {
|
|
2887
|
+
J(i) ? wr(i).forEach(function(r) {
|
|
2886
2888
|
return a.set(r, i[r]);
|
|
2887
2889
|
}) : Array.isArray(i) ? i.forEach(function(r) {
|
|
2888
2890
|
var s = r[0], o = r[1];
|
|
@@ -2893,9 +2895,9 @@ var Ii = /* @__PURE__ */ function() {
|
|
|
2893
2895
|
}), this;
|
|
2894
2896
|
}, t.clear = function() {
|
|
2895
2897
|
var i = this;
|
|
2896
|
-
|
|
2898
|
+
Y(function() {
|
|
2897
2899
|
hi(function() {
|
|
2898
|
-
for (var a =
|
|
2900
|
+
for (var a = ke(i.keys()), r; !(r = a()).done; ) {
|
|
2899
2901
|
var s = r.value;
|
|
2900
2902
|
i.delete(s);
|
|
2901
2903
|
}
|
|
@@ -2903,8 +2905,8 @@ var Ii = /* @__PURE__ */ function() {
|
|
|
2903
2905
|
});
|
|
2904
2906
|
}, t.replace = function(i) {
|
|
2905
2907
|
var a = this;
|
|
2906
|
-
return
|
|
2907
|
-
for (var r = eo(i), s = /* @__PURE__ */ new Map(), o = !1, u =
|
|
2908
|
+
return Y(function() {
|
|
2909
|
+
for (var r = eo(i), s = /* @__PURE__ */ new Map(), o = !1, u = ke(a.data_.keys()), d; !(d = u()).done; ) {
|
|
2908
2910
|
var c = d.value;
|
|
2909
2911
|
if (!r.has(c)) {
|
|
2910
2912
|
var v = a.delete(c);
|
|
@@ -2916,23 +2918,23 @@ var Ii = /* @__PURE__ */ function() {
|
|
|
2916
2918
|
}
|
|
2917
2919
|
}
|
|
2918
2920
|
}
|
|
2919
|
-
for (var F =
|
|
2920
|
-
var R = I.value, A = R[0], W = R[1],
|
|
2921
|
+
for (var F = ke(r.entries()), I; !(I = F()).done; ) {
|
|
2922
|
+
var R = I.value, A = R[0], W = R[1], Q = a.data_.has(A);
|
|
2921
2923
|
if (a.set(A, W), a.data_.has(A)) {
|
|
2922
2924
|
var C = a.data_.get(A);
|
|
2923
|
-
s.set(A, C),
|
|
2925
|
+
s.set(A, C), Q || (o = !0);
|
|
2924
2926
|
}
|
|
2925
2927
|
}
|
|
2926
2928
|
if (!o)
|
|
2927
2929
|
if (a.data_.size !== s.size)
|
|
2928
2930
|
a.keysAtom_.reportChanged();
|
|
2929
2931
|
else
|
|
2930
|
-
for (var
|
|
2931
|
-
if (
|
|
2932
|
+
for (var w = a.data_.keys(), x = s.keys(), j = w.next(), me = x.next(); !j.done; ) {
|
|
2933
|
+
if (j.value !== me.value) {
|
|
2932
2934
|
a.keysAtom_.reportChanged();
|
|
2933
2935
|
break;
|
|
2934
2936
|
}
|
|
2935
|
-
|
|
2937
|
+
j = w.next(), me = x.next();
|
|
2936
2938
|
}
|
|
2937
2939
|
a.data_ = s;
|
|
2938
2940
|
}), this;
|
|
@@ -2961,7 +2963,7 @@ function eo(e) {
|
|
|
2961
2963
|
return e;
|
|
2962
2964
|
if (Array.isArray(e))
|
|
2963
2965
|
return new Map(e);
|
|
2964
|
-
if (
|
|
2966
|
+
if (J(e)) {
|
|
2965
2967
|
var t = /* @__PURE__ */ new Map();
|
|
2966
2968
|
for (var n in e)
|
|
2967
2969
|
t.set(n, e[n]);
|
|
@@ -2969,12 +2971,12 @@ function eo(e) {
|
|
|
2969
2971
|
} else
|
|
2970
2972
|
return N(21, e);
|
|
2971
2973
|
}
|
|
2972
|
-
var
|
|
2973
|
-
|
|
2974
|
-
|
|
2974
|
+
var xi, ji, to = {};
|
|
2975
|
+
xi = Symbol.iterator;
|
|
2976
|
+
ji = Symbol.toStringTag;
|
|
2975
2977
|
var Li = /* @__PURE__ */ function() {
|
|
2976
2978
|
function e(n, i, a) {
|
|
2977
|
-
i === void 0 && (i = ge), a === void 0 && (a = "ObservableSet"), this.name_ = void 0, this[
|
|
2979
|
+
i === void 0 && (i = ge), a === void 0 && (a = "ObservableSet"), this.name_ = void 0, this[k] = to, this.data_ = /* @__PURE__ */ new Set(), this.atom_ = void 0, this.changeListeners_ = void 0, this.interceptors_ = void 0, this.dehancer = void 0, this.enhancer_ = void 0, this.name_ = a, q(Set) || N(22), this.atom_ = ei(this.name_), this.enhancer_ = function(r, s) {
|
|
2978
2980
|
return i(r, s, a);
|
|
2979
2981
|
}, n && this.replace(n);
|
|
2980
2982
|
}
|
|
@@ -2983,23 +2985,23 @@ var Li = /* @__PURE__ */ function() {
|
|
|
2983
2985
|
return this.dehancer !== void 0 ? this.dehancer(i) : i;
|
|
2984
2986
|
}, t.clear = function() {
|
|
2985
2987
|
var i = this;
|
|
2986
|
-
|
|
2988
|
+
Y(function() {
|
|
2987
2989
|
hi(function() {
|
|
2988
|
-
for (var a =
|
|
2990
|
+
for (var a = ke(i.data_.values()), r; !(r = a()).done; ) {
|
|
2989
2991
|
var s = r.value;
|
|
2990
2992
|
i.delete(s);
|
|
2991
2993
|
}
|
|
2992
2994
|
});
|
|
2993
2995
|
});
|
|
2994
2996
|
}, t.forEach = function(i, a) {
|
|
2995
|
-
for (var r =
|
|
2997
|
+
for (var r = ke(this), s; !(s = r()).done; ) {
|
|
2996
2998
|
var o = s.value;
|
|
2997
2999
|
i.call(a, o, o, this);
|
|
2998
3000
|
}
|
|
2999
3001
|
}, t.add = function(i) {
|
|
3000
3002
|
var a = this;
|
|
3001
|
-
if (this.atom_,
|
|
3002
|
-
var r =
|
|
3003
|
+
if (this.atom_, B(this)) {
|
|
3004
|
+
var r = U(this, {
|
|
3003
3005
|
type: ne,
|
|
3004
3006
|
object: this,
|
|
3005
3007
|
newValue: i
|
|
@@ -3008,10 +3010,10 @@ var Li = /* @__PURE__ */ function() {
|
|
|
3008
3010
|
return this;
|
|
3009
3011
|
}
|
|
3010
3012
|
if (!this.has(i)) {
|
|
3011
|
-
|
|
3013
|
+
Y(function() {
|
|
3012
3014
|
a.data_.add(a.enhancer_(i, void 0)), a.atom_.reportChanged();
|
|
3013
3015
|
});
|
|
3014
|
-
var s = !1, o =
|
|
3016
|
+
var s = !1, o = z(this), u = o || s ? {
|
|
3015
3017
|
observableKind: "set",
|
|
3016
3018
|
debugObjectName: this.name_,
|
|
3017
3019
|
type: ne,
|
|
@@ -3023,8 +3025,8 @@ var Li = /* @__PURE__ */ function() {
|
|
|
3023
3025
|
return this;
|
|
3024
3026
|
}, t.delete = function(i) {
|
|
3025
3027
|
var a = this;
|
|
3026
|
-
if (
|
|
3027
|
-
var r =
|
|
3028
|
+
if (B(this)) {
|
|
3029
|
+
var r = U(this, {
|
|
3028
3030
|
type: ct,
|
|
3029
3031
|
object: this,
|
|
3030
3032
|
oldValue: i
|
|
@@ -3033,14 +3035,14 @@ var Li = /* @__PURE__ */ function() {
|
|
|
3033
3035
|
return !1;
|
|
3034
3036
|
}
|
|
3035
3037
|
if (this.has(i)) {
|
|
3036
|
-
var s = !1, o =
|
|
3038
|
+
var s = !1, o = z(this), u = o || s ? {
|
|
3037
3039
|
observableKind: "set",
|
|
3038
3040
|
debugObjectName: this.name_,
|
|
3039
3041
|
type: ct,
|
|
3040
3042
|
object: this,
|
|
3041
3043
|
oldValue: i
|
|
3042
3044
|
} : null;
|
|
3043
|
-
return
|
|
3045
|
+
return Y(function() {
|
|
3044
3046
|
a.atom_.reportChanged(), a.data_.delete(i);
|
|
3045
3047
|
}), o && $(this, u), !0;
|
|
3046
3048
|
}
|
|
@@ -3077,10 +3079,10 @@ var Li = /* @__PURE__ */ function() {
|
|
|
3077
3079
|
});
|
|
3078
3080
|
}, t.replace = function(i) {
|
|
3079
3081
|
var a = this;
|
|
3080
|
-
return Ee(i) && (i = new Set(i)),
|
|
3082
|
+
return Ee(i) && (i = new Set(i)), Y(function() {
|
|
3081
3083
|
Array.isArray(i) ? (a.clear(), i.forEach(function(r) {
|
|
3082
3084
|
return a.add(r);
|
|
3083
|
-
})) :
|
|
3085
|
+
})) : Be(i) ? (a.clear(), i.forEach(function(r) {
|
|
3084
3086
|
return a.add(r);
|
|
3085
3087
|
})) : i != null && N("Cannot initialize set from " + i);
|
|
3086
3088
|
}), this;
|
|
@@ -3092,7 +3094,7 @@ var Li = /* @__PURE__ */ function() {
|
|
|
3092
3094
|
return Array.from(this);
|
|
3093
3095
|
}, t.toString = function() {
|
|
3094
3096
|
return "[object ObservableSet]";
|
|
3095
|
-
}, t[
|
|
3097
|
+
}, t[xi] = function() {
|
|
3096
3098
|
return this.values();
|
|
3097
3099
|
}, $t(e, [{
|
|
3098
3100
|
key: "size",
|
|
@@ -3100,14 +3102,14 @@ var Li = /* @__PURE__ */ function() {
|
|
|
3100
3102
|
return this.atom_.reportObserved(), this.data_.size;
|
|
3101
3103
|
}
|
|
3102
3104
|
}, {
|
|
3103
|
-
key:
|
|
3105
|
+
key: ji,
|
|
3104
3106
|
get: function() {
|
|
3105
3107
|
return "Set";
|
|
3106
3108
|
}
|
|
3107
3109
|
}]), e;
|
|
3108
3110
|
}(), Ee = /* @__PURE__ */ ce("ObservableSet", Li), Fn = /* @__PURE__ */ Object.create(null), Rn = "remove", Mi = /* @__PURE__ */ function() {
|
|
3109
3111
|
function e(n, i, a, r) {
|
|
3110
|
-
i === void 0 && (i = /* @__PURE__ */ new Map()), r === void 0 && (r = ns), this.target_ = void 0, this.values_ = void 0, this.name_ = void 0, this.defaultAnnotation_ = void 0, this.keysAtom_ = void 0, this.changeListeners_ = void 0, this.interceptors_ = void 0, this.proxy_ = void 0, this.isPlainObject_ = void 0, this.appliedAnnotations_ = void 0, this.pendingKeys_ = void 0, this.target_ = n, this.values_ = i, this.name_ = a, this.defaultAnnotation_ = r, this.keysAtom_ = new Ge("ObservableObject.keys"), this.isPlainObject_ =
|
|
3112
|
+
i === void 0 && (i = /* @__PURE__ */ new Map()), r === void 0 && (r = ns), this.target_ = void 0, this.values_ = void 0, this.name_ = void 0, this.defaultAnnotation_ = void 0, this.keysAtom_ = void 0, this.changeListeners_ = void 0, this.interceptors_ = void 0, this.proxy_ = void 0, this.isPlainObject_ = void 0, this.appliedAnnotations_ = void 0, this.pendingKeys_ = void 0, this.target_ = n, this.values_ = i, this.name_ = a, this.defaultAnnotation_ = r, this.keysAtom_ = new Ge("ObservableObject.keys"), this.isPlainObject_ = J(this.target_);
|
|
3111
3113
|
}
|
|
3112
3114
|
var t = e.prototype;
|
|
3113
3115
|
return t.getObservablePropValue_ = function(i) {
|
|
@@ -3116,9 +3118,9 @@ var Li = /* @__PURE__ */ function() {
|
|
|
3116
3118
|
var r = this.values_.get(i);
|
|
3117
3119
|
if (r instanceof Ve)
|
|
3118
3120
|
return r.set(a), !0;
|
|
3119
|
-
if (
|
|
3120
|
-
var s =
|
|
3121
|
-
type:
|
|
3121
|
+
if (B(this)) {
|
|
3122
|
+
var s = U(this, {
|
|
3123
|
+
type: H,
|
|
3122
3124
|
object: this.proxy_ || this.target_,
|
|
3123
3125
|
name: i,
|
|
3124
3126
|
newValue: a
|
|
@@ -3128,8 +3130,8 @@ var Li = /* @__PURE__ */ function() {
|
|
|
3128
3130
|
a = s.newValue;
|
|
3129
3131
|
}
|
|
3130
3132
|
if (a = r.prepareNewValue_(a), a !== f.UNCHANGED) {
|
|
3131
|
-
var o =
|
|
3132
|
-
type:
|
|
3133
|
+
var o = z(this), u = !1, d = o || u ? {
|
|
3134
|
+
type: H,
|
|
3133
3135
|
observableKind: "object",
|
|
3134
3136
|
debugObjectName: this.name_,
|
|
3135
3137
|
object: this.proxy_ || this.target_,
|
|
@@ -3159,7 +3161,7 @@ var Li = /* @__PURE__ */ function() {
|
|
|
3159
3161
|
if (a === !0 && (a = this.defaultAnnotation_), a !== !1) {
|
|
3160
3162
|
if (!(i in this.target_)) {
|
|
3161
3163
|
var r;
|
|
3162
|
-
if ((r = this.target_[
|
|
3164
|
+
if ((r = this.target_[_e]) != null && r[i])
|
|
3163
3165
|
return;
|
|
3164
3166
|
N(1, a.annotationType_, this.name_ + "." + i.toString());
|
|
3165
3167
|
}
|
|
@@ -3174,13 +3176,13 @@ var Li = /* @__PURE__ */ function() {
|
|
|
3174
3176
|
}
|
|
3175
3177
|
s = Object.getPrototypeOf(s);
|
|
3176
3178
|
}
|
|
3177
|
-
|
|
3179
|
+
wn(this, a, i);
|
|
3178
3180
|
}
|
|
3179
3181
|
}, t.extend_ = function(i, a, r, s) {
|
|
3180
3182
|
if (s === void 0 && (s = !1), r === !0 && (r = this.defaultAnnotation_), r === !1)
|
|
3181
3183
|
return this.defineProperty_(i, a, s);
|
|
3182
3184
|
var o = r.extend_(this, i, a, s);
|
|
3183
|
-
return o &&
|
|
3185
|
+
return o && wn(this, r, i), o;
|
|
3184
3186
|
}, t.defineProperty_ = function(i, a, r) {
|
|
3185
3187
|
r === void 0 && (r = !1);
|
|
3186
3188
|
try {
|
|
@@ -3188,8 +3190,8 @@ var Li = /* @__PURE__ */ function() {
|
|
|
3188
3190
|
var s = this.delete_(i);
|
|
3189
3191
|
if (!s)
|
|
3190
3192
|
return s;
|
|
3191
|
-
if (
|
|
3192
|
-
var o =
|
|
3193
|
+
if (B(this)) {
|
|
3194
|
+
var o = U(this, {
|
|
3193
3195
|
object: this.proxy_ || this.target_,
|
|
3194
3196
|
name: i,
|
|
3195
3197
|
type: ne,
|
|
@@ -3206,7 +3208,7 @@ var Li = /* @__PURE__ */ function() {
|
|
|
3206
3208
|
if (!Reflect.defineProperty(this.target_, i, a))
|
|
3207
3209
|
return !1;
|
|
3208
3210
|
} else
|
|
3209
|
-
|
|
3211
|
+
Z(this.target_, i, a);
|
|
3210
3212
|
this.notifyPropertyAddition_(i, a.value);
|
|
3211
3213
|
} finally {
|
|
3212
3214
|
M();
|
|
@@ -3219,8 +3221,8 @@ var Li = /* @__PURE__ */ function() {
|
|
|
3219
3221
|
var o = this.delete_(i);
|
|
3220
3222
|
if (!o)
|
|
3221
3223
|
return o;
|
|
3222
|
-
if (
|
|
3223
|
-
var u =
|
|
3224
|
+
if (B(this)) {
|
|
3225
|
+
var u = U(this, {
|
|
3224
3226
|
object: this.proxy_ || this.target_,
|
|
3225
3227
|
name: i,
|
|
3226
3228
|
type: ne,
|
|
@@ -3240,7 +3242,7 @@ var Li = /* @__PURE__ */ function() {
|
|
|
3240
3242
|
if (!Reflect.defineProperty(this.target_, i, c))
|
|
3241
3243
|
return !1;
|
|
3242
3244
|
} else
|
|
3243
|
-
|
|
3245
|
+
Z(this.target_, i, c);
|
|
3244
3246
|
var v = new ye(a, r, "ObservableObject.key", !1);
|
|
3245
3247
|
this.values_.set(i, v), this.notifyPropertyAddition_(i, v.value_);
|
|
3246
3248
|
} finally {
|
|
@@ -3254,8 +3256,8 @@ var Li = /* @__PURE__ */ function() {
|
|
|
3254
3256
|
var s = this.delete_(i);
|
|
3255
3257
|
if (!s)
|
|
3256
3258
|
return s;
|
|
3257
|
-
if (
|
|
3258
|
-
var o =
|
|
3259
|
+
if (B(this)) {
|
|
3260
|
+
var o = U(this, {
|
|
3259
3261
|
object: this.proxy_ || this.target_,
|
|
3260
3262
|
name: i,
|
|
3261
3263
|
type: ne,
|
|
@@ -3275,7 +3277,7 @@ var Li = /* @__PURE__ */ function() {
|
|
|
3275
3277
|
if (!Reflect.defineProperty(this.target_, i, d))
|
|
3276
3278
|
return !1;
|
|
3277
3279
|
} else
|
|
3278
|
-
|
|
3280
|
+
Z(this.target_, i, d);
|
|
3279
3281
|
this.values_.set(i, new Ve(a)), this.notifyPropertyAddition_(i, void 0);
|
|
3280
3282
|
} finally {
|
|
3281
3283
|
M();
|
|
@@ -3284,8 +3286,8 @@ var Li = /* @__PURE__ */ function() {
|
|
|
3284
3286
|
}, t.delete_ = function(i, a) {
|
|
3285
3287
|
if (a === void 0 && (a = !1), !ie(this.target_, i))
|
|
3286
3288
|
return !0;
|
|
3287
|
-
if (
|
|
3288
|
-
var r =
|
|
3289
|
+
if (B(this)) {
|
|
3290
|
+
var r = U(this, {
|
|
3289
3291
|
object: this.proxy_ || this.target_,
|
|
3290
3292
|
name: i,
|
|
3291
3293
|
type: Rn
|
|
@@ -3296,7 +3298,7 @@ var Li = /* @__PURE__ */ function() {
|
|
|
3296
3298
|
try {
|
|
3297
3299
|
var s, o;
|
|
3298
3300
|
L();
|
|
3299
|
-
var u =
|
|
3301
|
+
var u = z(this), d = !1, c = this.values_.get(i), v = void 0;
|
|
3300
3302
|
if (!c && (u || d)) {
|
|
3301
3303
|
var b;
|
|
3302
3304
|
v = (b = at(this.target_, i)) == null ? void 0 : b.value;
|
|
@@ -3326,7 +3328,7 @@ var Li = /* @__PURE__ */ function() {
|
|
|
3326
3328
|
}, t.intercept_ = function(i) {
|
|
3327
3329
|
return qe(this, i);
|
|
3328
3330
|
}, t.notifyPropertyAddition_ = function(i, a) {
|
|
3329
|
-
var r, s, o =
|
|
3331
|
+
var r, s, o = z(this), u = !1;
|
|
3330
3332
|
if (o || u) {
|
|
3331
3333
|
var d = o || u ? {
|
|
3332
3334
|
type: ne,
|
|
@@ -3340,57 +3342,57 @@ var Li = /* @__PURE__ */ function() {
|
|
|
3340
3342
|
}
|
|
3341
3343
|
(r = this.pendingKeys_) == null || (s = r.get(i)) == null || s.set(!0), this.keysAtom_.reportChanged();
|
|
3342
3344
|
}, t.ownKeys_ = function() {
|
|
3343
|
-
return this.keysAtom_.reportObserved(),
|
|
3345
|
+
return this.keysAtom_.reportObserved(), Te(this.target_);
|
|
3344
3346
|
}, t.keys_ = function() {
|
|
3345
3347
|
return this.keysAtom_.reportObserved(), Object.keys(this.target_);
|
|
3346
3348
|
}, e;
|
|
3347
3349
|
}();
|
|
3348
3350
|
function bt(e, t) {
|
|
3349
3351
|
var n;
|
|
3350
|
-
if (ie(e,
|
|
3352
|
+
if (ie(e, k))
|
|
3351
3353
|
return e;
|
|
3352
3354
|
var i = (n = t == null ? void 0 : t.name) != null ? n : "ObservableObject", a = new Mi(e, /* @__PURE__ */ new Map(), String(i), fs(t));
|
|
3353
|
-
return ht(e,
|
|
3355
|
+
return ht(e, k, a), e;
|
|
3354
3356
|
}
|
|
3355
3357
|
var no = /* @__PURE__ */ ce("ObservableObjectAdministration", Mi);
|
|
3356
3358
|
function Cn(e) {
|
|
3357
3359
|
return Fn[e] || (Fn[e] = {
|
|
3358
3360
|
get: function() {
|
|
3359
|
-
return this[
|
|
3361
|
+
return this[k].getObservablePropValue_(e);
|
|
3360
3362
|
},
|
|
3361
3363
|
set: function(n) {
|
|
3362
|
-
return this[
|
|
3364
|
+
return this[k].setObservablePropValue_(e, n);
|
|
3363
3365
|
}
|
|
3364
3366
|
});
|
|
3365
3367
|
}
|
|
3366
|
-
function
|
|
3367
|
-
return vt(e) ? no(e[
|
|
3368
|
+
function je(e) {
|
|
3369
|
+
return vt(e) ? no(e[k]) : !1;
|
|
3368
3370
|
}
|
|
3369
|
-
function
|
|
3371
|
+
function wn(e, t, n) {
|
|
3370
3372
|
var i;
|
|
3371
|
-
(i = e.target_[
|
|
3373
|
+
(i = e.target_[_e]) == null || delete i[n];
|
|
3372
3374
|
}
|
|
3373
|
-
var io = /* @__PURE__ */
|
|
3375
|
+
var io = /* @__PURE__ */ Ui(0), Tt = 0, Bi = function() {
|
|
3374
3376
|
};
|
|
3375
3377
|
function ao(e, t) {
|
|
3376
3378
|
Object.setPrototypeOf ? Object.setPrototypeOf(e.prototype, t) : e.prototype.__proto__ !== void 0 ? e.prototype.__proto__ = t : e.prototype = t;
|
|
3377
3379
|
}
|
|
3378
|
-
ao(
|
|
3379
|
-
var
|
|
3380
|
-
|
|
3380
|
+
ao(Bi, Array.prototype);
|
|
3381
|
+
var Jt = /* @__PURE__ */ function(e, t, n) {
|
|
3382
|
+
Jn(i, e);
|
|
3381
3383
|
function i(r, s, o, u) {
|
|
3382
3384
|
var d;
|
|
3383
3385
|
o === void 0 && (o = "ObservableArray"), u === void 0 && (u = !1), d = e.call(this) || this;
|
|
3384
|
-
var c = new
|
|
3385
|
-
if (c.proxy_ = Rt(d),
|
|
3386
|
-
var v =
|
|
3387
|
-
d.spliceWithArray(0, 0, r),
|
|
3386
|
+
var c = new Yt(o, s, u, !0);
|
|
3387
|
+
if (c.proxy_ = Rt(d), Xn(Rt(d), k, c), r && r.length) {
|
|
3388
|
+
var v = Ke(!0);
|
|
3389
|
+
d.spliceWithArray(0, 0, r), ze(v);
|
|
3388
3390
|
}
|
|
3389
3391
|
return Object.defineProperty(Rt(d), "0", io), d;
|
|
3390
3392
|
}
|
|
3391
3393
|
var a = i.prototype;
|
|
3392
3394
|
return a.concat = function() {
|
|
3393
|
-
this[
|
|
3395
|
+
this[k].atom_.reportObserved();
|
|
3394
3396
|
for (var s = arguments.length, o = new Array(s), u = 0; u < s; u++)
|
|
3395
3397
|
o[u] = arguments[u];
|
|
3396
3398
|
return Array.prototype.concat.apply(
|
|
@@ -3416,10 +3418,10 @@ var Yt = /* @__PURE__ */ function(e, t, n) {
|
|
|
3416
3418
|
}, $t(i, [{
|
|
3417
3419
|
key: "length",
|
|
3418
3420
|
get: function() {
|
|
3419
|
-
return this[
|
|
3421
|
+
return this[k].getArrayLength_();
|
|
3420
3422
|
},
|
|
3421
3423
|
set: function(s) {
|
|
3422
|
-
this[
|
|
3424
|
+
this[k].setArrayLength_(s);
|
|
3423
3425
|
}
|
|
3424
3426
|
}, {
|
|
3425
3427
|
key: t,
|
|
@@ -3427,41 +3429,41 @@ var Yt = /* @__PURE__ */ function(e, t, n) {
|
|
|
3427
3429
|
return "Array";
|
|
3428
3430
|
}
|
|
3429
3431
|
}]), i;
|
|
3430
|
-
}(
|
|
3432
|
+
}(Bi, Symbol.toStringTag, Symbol.iterator);
|
|
3431
3433
|
Object.entries(dt).forEach(function(e) {
|
|
3432
3434
|
var t = e[0], n = e[1];
|
|
3433
|
-
t !== "concat" && ht(
|
|
3435
|
+
t !== "concat" && ht(Jt.prototype, t, n);
|
|
3434
3436
|
});
|
|
3435
|
-
function
|
|
3437
|
+
function Ui(e) {
|
|
3436
3438
|
return {
|
|
3437
3439
|
enumerable: !1,
|
|
3438
3440
|
configurable: !0,
|
|
3439
3441
|
get: function() {
|
|
3440
|
-
return this[
|
|
3442
|
+
return this[k].get_(e);
|
|
3441
3443
|
},
|
|
3442
3444
|
set: function(n) {
|
|
3443
|
-
this[
|
|
3445
|
+
this[k].set_(e, n);
|
|
3444
3446
|
}
|
|
3445
3447
|
};
|
|
3446
3448
|
}
|
|
3447
3449
|
function ro(e) {
|
|
3448
|
-
|
|
3450
|
+
Z(Jt.prototype, "" + e, Ui(e));
|
|
3449
3451
|
}
|
|
3450
3452
|
function Gi(e) {
|
|
3451
|
-
if (e >
|
|
3452
|
-
for (var t =
|
|
3453
|
+
if (e > Tt) {
|
|
3454
|
+
for (var t = Tt; t < e + 100; t++)
|
|
3453
3455
|
ro(t);
|
|
3454
|
-
|
|
3456
|
+
Tt = e;
|
|
3455
3457
|
}
|
|
3456
3458
|
}
|
|
3457
3459
|
Gi(1e3);
|
|
3458
3460
|
function so(e, t, n) {
|
|
3459
|
-
return new
|
|
3461
|
+
return new Jt(e, t, n);
|
|
3460
3462
|
}
|
|
3461
3463
|
function de(e, t) {
|
|
3462
3464
|
if (typeof e == "object" && e !== null) {
|
|
3463
3465
|
if (St(e))
|
|
3464
|
-
return t !== void 0 && N(23), e[
|
|
3466
|
+
return t !== void 0 && N(23), e[k].atom_;
|
|
3465
3467
|
if (Ee(e))
|
|
3466
3468
|
return e.atom_;
|
|
3467
3469
|
if (fe(e)) {
|
|
@@ -3470,25 +3472,25 @@ function de(e, t) {
|
|
|
3470
3472
|
var n = e.data_.get(t) || e.hasMap_.get(t);
|
|
3471
3473
|
return n || N(25, t, Lt(e)), n;
|
|
3472
3474
|
}
|
|
3473
|
-
if (
|
|
3475
|
+
if (je(e)) {
|
|
3474
3476
|
if (!t)
|
|
3475
3477
|
return N(26);
|
|
3476
|
-
var i = e[
|
|
3478
|
+
var i = e[k].values_.get(t);
|
|
3477
3479
|
return i || N(27, t, Lt(e)), i;
|
|
3478
3480
|
}
|
|
3479
3481
|
if (qt(e) || yt(e) || ut(e))
|
|
3480
3482
|
return e;
|
|
3481
|
-
} else if (q(e) && ut(e[
|
|
3482
|
-
return e[
|
|
3483
|
+
} else if (q(e) && ut(e[k]))
|
|
3484
|
+
return e[k];
|
|
3483
3485
|
N(28);
|
|
3484
3486
|
}
|
|
3485
|
-
function
|
|
3487
|
+
function Qi(e, t) {
|
|
3486
3488
|
if (e || N(29), t !== void 0)
|
|
3487
|
-
return
|
|
3489
|
+
return Qi(de(e, t));
|
|
3488
3490
|
if (qt(e) || yt(e) || ut(e) || fe(e) || Ee(e))
|
|
3489
3491
|
return e;
|
|
3490
|
-
if (e[
|
|
3491
|
-
return e[
|
|
3492
|
+
if (e[k])
|
|
3493
|
+
return e[k];
|
|
3492
3494
|
N(24, e);
|
|
3493
3495
|
}
|
|
3494
3496
|
function Lt(e, t) {
|
|
@@ -3496,13 +3498,13 @@ function Lt(e, t) {
|
|
|
3496
3498
|
if (t !== void 0)
|
|
3497
3499
|
n = de(e, t);
|
|
3498
3500
|
else {
|
|
3499
|
-
if (
|
|
3501
|
+
if (Xt(e))
|
|
3500
3502
|
return e.name;
|
|
3501
|
-
|
|
3503
|
+
je(e) || fe(e) || Ee(e) ? n = Qi(e) : n = de(e);
|
|
3502
3504
|
}
|
|
3503
3505
|
return n.name_;
|
|
3504
3506
|
}
|
|
3505
|
-
var
|
|
3507
|
+
var Dn = mt.toString;
|
|
3506
3508
|
function en(e, t, n) {
|
|
3507
3509
|
return n === void 0 && (n = -1), Mt(e, t, n);
|
|
3508
3510
|
}
|
|
@@ -3516,8 +3518,8 @@ function Mt(e, t, n, i, a) {
|
|
|
3516
3518
|
var r = typeof e;
|
|
3517
3519
|
if (r !== "function" && r !== "object" && typeof t != "object")
|
|
3518
3520
|
return !1;
|
|
3519
|
-
var s =
|
|
3520
|
-
if (s !==
|
|
3521
|
+
var s = Dn.call(e);
|
|
3522
|
+
if (s !== Dn.call(t))
|
|
3521
3523
|
return !1;
|
|
3522
3524
|
switch (s) {
|
|
3523
3525
|
case "[object RegExp]":
|
|
@@ -3535,7 +3537,7 @@ function Mt(e, t, n, i, a) {
|
|
|
3535
3537
|
n >= 0 && n++;
|
|
3536
3538
|
break;
|
|
3537
3539
|
}
|
|
3538
|
-
e =
|
|
3540
|
+
e = Tn(e), t = Tn(t);
|
|
3539
3541
|
var o = s === "[object Array]";
|
|
3540
3542
|
if (!o) {
|
|
3541
3543
|
if (typeof e != "object" || typeof t != "object")
|
|
@@ -3566,8 +3568,8 @@ function Mt(e, t, n, i, a) {
|
|
|
3566
3568
|
}
|
|
3567
3569
|
return i.pop(), a.pop(), !0;
|
|
3568
3570
|
}
|
|
3569
|
-
function
|
|
3570
|
-
return St(e) ? e.slice() : Oe(e) || fe(e) ||
|
|
3571
|
+
function Tn(e) {
|
|
3572
|
+
return St(e) ? e.slice() : Oe(e) || fe(e) || Be(e) || Ee(e) ? Array.from(e.entries()) : e;
|
|
3571
3573
|
}
|
|
3572
3574
|
function Le(e) {
|
|
3573
3575
|
return e[Symbol.iterator] = oo, e;
|
|
@@ -3576,7 +3578,7 @@ function oo() {
|
|
|
3576
3578
|
return this;
|
|
3577
3579
|
}
|
|
3578
3580
|
["Symbol", "Map", "Set"].forEach(function(e) {
|
|
3579
|
-
var t =
|
|
3581
|
+
var t = zn();
|
|
3580
3582
|
typeof t[e] == "undefined" && N("MobX requires global '" + e + "' to be available or polyfilled");
|
|
3581
3583
|
});
|
|
3582
3584
|
typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__ == "object" && __MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({
|
|
@@ -3584,7 +3586,7 @@ typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__ == "object" && __MOBX_DEVTOOLS_GLOBAL_HOOK_
|
|
|
3584
3586
|
extras: {
|
|
3585
3587
|
getDebugName: Lt
|
|
3586
3588
|
},
|
|
3587
|
-
$mobx:
|
|
3589
|
+
$mobx: k
|
|
3588
3590
|
});
|
|
3589
3591
|
const uo = ["account"], te = class {
|
|
3590
3592
|
constructor() {
|
|
@@ -3632,43 +3634,43 @@ let tt = te;
|
|
|
3632
3634
|
S(tt, "_instance");
|
|
3633
3635
|
const lo = tt.instance();
|
|
3634
3636
|
let tn = /* @__PURE__ */ new Map();
|
|
3635
|
-
const
|
|
3636
|
-
const n = Bt
|
|
3637
|
+
const Bt = Vn(tn), Bo = ({ children: e, stores: t }) => {
|
|
3638
|
+
const n = Ut(Bt), i = Ji(() => {
|
|
3637
3639
|
const a = /* @__PURE__ */ new Map();
|
|
3638
3640
|
return t.forEach((r) => a.set(r.class, r.value)), tn = new Map([...n, ...a]);
|
|
3639
3641
|
}, []);
|
|
3640
|
-
return /* @__PURE__ */ ta(
|
|
3642
|
+
return /* @__PURE__ */ ta(Bt.Provider, { value: i, children: e });
|
|
3641
3643
|
};
|
|
3642
|
-
function
|
|
3643
|
-
return Bt
|
|
3644
|
+
function Uo(e) {
|
|
3645
|
+
return Ut(Bt).get(e);
|
|
3644
3646
|
}
|
|
3645
3647
|
function Go(e) {
|
|
3646
3648
|
return tn.get(e);
|
|
3647
3649
|
}
|
|
3648
|
-
function
|
|
3650
|
+
function Qo(e, t = []) {
|
|
3649
3651
|
if (Array.isArray(t) && t.some((n) => $e(n)))
|
|
3650
3652
|
throw new Error("useEffect dependencies must not contain observables, ...");
|
|
3651
|
-
Me(() =>
|
|
3653
|
+
Me(() => Ht(e), t);
|
|
3652
3654
|
}
|
|
3653
3655
|
function co(e, t = []) {
|
|
3654
3656
|
if (Array.isArray(t) && t.some((a) => $e(a)))
|
|
3655
3657
|
throw new Error("useEffect dependencies must not contain observables, ...");
|
|
3656
3658
|
const [n, i] = ea();
|
|
3657
3659
|
return Me(
|
|
3658
|
-
() =>
|
|
3660
|
+
() => Ht(() => {
|
|
3659
3661
|
const a = e();
|
|
3660
3662
|
i(a);
|
|
3661
3663
|
}),
|
|
3662
3664
|
t
|
|
3663
3665
|
), n;
|
|
3664
3666
|
}
|
|
3665
|
-
function
|
|
3667
|
+
function Ko(e, t, n = []) {
|
|
3666
3668
|
if (Array.isArray(n) && n.some((i) => $e(i)))
|
|
3667
3669
|
throw new Error("useEffect dependencies must not contain observables, ...");
|
|
3668
|
-
Me(() =>
|
|
3670
|
+
Me(() => xs(e, t), n);
|
|
3669
3671
|
}
|
|
3670
|
-
var
|
|
3671
|
-
const fo = { 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" } }] } }] } }] } }] }, mo = { 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" } }] } }] } }] } }] }, vo = { 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" } }] } }] } }] } }] }, ho = { 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" } }] } }] } }] } }] }, po = { 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" } }] } }] } }] } }] }, _o = { 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" } }] } }] } }] } }] }, ko = { 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" } }] } }] } }] } }] }, yo = { 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" } }] } }] } }] } }] }, So = { 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" } }] } }] } }] } }] }, bo = { 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" } }] } }] } }] } }] }, go = { 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: "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" } }] } }] } }] } }] }, No = { 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" } }] } }] } }] } }] }, Oo = { 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" } }] } }] } }] } }] }, Ao = { 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" } }] } }] } }] } }] }, Eo = { 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" } }] } }] } }] } }] }, Fo = { 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" } }] } }] } }] } }] }, Ro = { 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: "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" } }] } }] } }] } }] }, Co = { 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" } }] } }] } }] } }] } }] }, To = { 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: "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" } }] } }] } }] } }] }, wo = { 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" } }] } }] } }] } }] }, Ko = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3672
|
+
var Ki = /* @__PURE__ */ ((e) => (e.Created = "CREATED", e.Finalized = "FINALIZED", e.Live = "LIVE", e.Starting = "STARTING", e))(Ki || {}), zi = /* @__PURE__ */ ((e) => (e.Add = "add", e.Remove = "remove", e))(zi || {}), $i = /* @__PURE__ */ ((e) => (e.Active = "active", e.Inactive = "inactive", e))($i || {});
|
|
3673
|
+
const fo = { 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" } }] } }] } }] } }] }, mo = { 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" } }] } }] } }] } }] }, vo = { 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" } }] } }] } }] } }] }, ho = { 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" } }] } }] } }] } }] }, po = { 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" } }] } }] } }] } }] }, ko = { 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" } }] } }] } }] } }] }, _o = { 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" } }] } }] } }] } }] }, yo = { 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" } }] } }] } }] } }] }, So = { 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" } }] } }] } }] } }] }, bo = { 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" } }] } }] } }] } }] }, go = { 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: "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" } }] } }] } }] } }] }, No = { 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" } }] } }] } }] } }] }, Oo = { 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" } }] } }] } }] } }] }, Ao = { 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" } }] } }] } }] } }] }, Eo = { 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" } }] } }] } }] } }] }, Fo = { 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" } }] } }] } }] } }] }, Ro = { 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: "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" } }] } }] } }] } }] }, Co = { 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" } }] } }] } }] } }] } }] }, wo = { 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: "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" } }] } }] } }] } }] }, Do = { 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" } }] } }] } }] } }] }, zo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3672
3674
|
__proto__: null,
|
|
3673
3675
|
AddCollectionDocument: ho,
|
|
3674
3676
|
AppendProductsToSnackVideoDocument: Oo,
|
|
@@ -3676,20 +3678,20 @@ const fo = { kind: "Document", definitions: [{ kind: "OperationDefinition", oper
|
|
|
3676
3678
|
DeleteAllCustomizationDocument: fo,
|
|
3677
3679
|
DeleteCollectionDocument: po,
|
|
3678
3680
|
DeleteRelationshipWithSnackVideoDocument: Eo,
|
|
3679
|
-
EventStatus:
|
|
3680
|
-
FindByProductSnackVideoDocument:
|
|
3681
|
-
FindCollectionDocument:
|
|
3681
|
+
EventStatus: Ki,
|
|
3682
|
+
FindByProductSnackVideoDocument: Do,
|
|
3683
|
+
FindCollectionDocument: ko,
|
|
3682
3684
|
FindManySnackVideosDocument: Fo,
|
|
3683
3685
|
FindMinimalEventDocument: go,
|
|
3684
|
-
GetAllCollectionsDocument:
|
|
3686
|
+
GetAllCollectionsDocument: _o,
|
|
3685
3687
|
GetAllCustomizationDocument: mo,
|
|
3686
3688
|
GetAllSnackVideosDocument: Ro,
|
|
3687
3689
|
GetSnackVideoRelationshipsDocument: Co,
|
|
3688
3690
|
ManageCollectionProductDocument: yo,
|
|
3689
|
-
Methods:
|
|
3691
|
+
Methods: zi,
|
|
3690
3692
|
SearchCollectionsDocument: So,
|
|
3691
3693
|
SearchMinimalEventsDocument: No,
|
|
3692
|
-
SearchSnackVideosDocument:
|
|
3694
|
+
SearchSnackVideosDocument: wo,
|
|
3693
3695
|
Status: $i,
|
|
3694
3696
|
UpdateCollectionDocument: bo,
|
|
3695
3697
|
UpdateCustomizationDocument: vo
|
|
@@ -3713,8 +3715,8 @@ export {
|
|
|
3713
3715
|
Na as AccountSubscriptionTypes,
|
|
3714
3716
|
Ln as AccountTypes,
|
|
3715
3717
|
Sa as AggregateRoot,
|
|
3716
|
-
|
|
3717
|
-
|
|
3718
|
+
zo as ApiGraphqlTypes,
|
|
3719
|
+
xo as BaseMobxStore,
|
|
3718
3720
|
ft as DomainError,
|
|
3719
3721
|
Aa as GlobalPageSectionTypes,
|
|
3720
3722
|
Er as InvalidNizzaGlobalObjectError,
|
|
@@ -3723,14 +3725,14 @@ export {
|
|
|
3723
3725
|
tt as NizzaStore,
|
|
3724
3726
|
gr as NizzaVariationTypes,
|
|
3725
3727
|
Or as ResourceNotFoundError,
|
|
3726
|
-
|
|
3728
|
+
Bo as StoreProvider,
|
|
3727
3729
|
Ar as UnexpectedError,
|
|
3728
|
-
|
|
3729
|
-
|
|
3730
|
-
|
|
3730
|
+
jo as ValueObject,
|
|
3731
|
+
jn as accountAtom,
|
|
3732
|
+
Bn as accountService,
|
|
3731
3733
|
ba as createAggregateRoot,
|
|
3732
3734
|
$o as createStore,
|
|
3733
|
-
|
|
3735
|
+
ka as customFetch,
|
|
3734
3736
|
br as getAccount,
|
|
3735
3737
|
Go as getStore,
|
|
3736
3738
|
Sr as globalAtomStore,
|
|
@@ -3738,8 +3740,8 @@ export {
|
|
|
3738
3740
|
Io as searchParams,
|
|
3739
3741
|
ya as shortId,
|
|
3740
3742
|
Lo as useAccount,
|
|
3741
|
-
|
|
3742
|
-
|
|
3743
|
+
Qo as useAutorun,
|
|
3744
|
+
Ko as useReaction,
|
|
3743
3745
|
co as useSelect,
|
|
3744
|
-
|
|
3746
|
+
Uo as useStore
|
|
3745
3747
|
};
|