@nizza/core 0.3.1-beta.1 → 0.3.2-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +4 -4
- package/dist/index.mjs +753 -737
- package/dist/lib/types/utils.d.ts +1 -0
- package/dist/lib/utils/customFetch.d.ts +9 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
1
|
+
var Wi = Object.defineProperty, Zi = Object.defineProperties;
|
|
2
|
+
var Xi = 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 ?
|
|
5
|
+
var gt = (e, t, n) => t in e ? Wi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, B = (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
|
-
},
|
|
12
|
+
}, te = (e, t) => Zi(e, Xi(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
|
-
var
|
|
23
|
-
import * as
|
|
24
|
-
import Pn, { createContext as Vn, useReducer as
|
|
25
|
-
import { jsx as
|
|
26
|
-
let
|
|
27
|
-
function
|
|
28
|
-
const n = `atom${++
|
|
22
|
+
var b = (e, t, n) => (gt(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
23
|
+
import * as Q from "react";
|
|
24
|
+
import Pn, { createContext as Vn, useReducer as Hi, useEffect as Me, useDebugValue as Ji, useCallback as Yi, useContext as Ut, useMemo as ea, useState as ta } from "react";
|
|
25
|
+
import { jsx as na } from "react/jsx-runtime";
|
|
26
|
+
let ia = 0;
|
|
27
|
+
function aa(e, t) {
|
|
28
|
+
const n = `atom${++ia}`, i = {
|
|
29
29
|
toString: () => n
|
|
30
30
|
};
|
|
31
31
|
return typeof e == "function" ? i.read = e : (i.init = e, i.read = (a) => a(i), i.write = (a, r, s) => r(
|
|
@@ -33,7 +33,7 @@ function ia(e, t) {
|
|
|
33
33
|
typeof s == "function" ? s(a(i)) : s
|
|
34
34
|
)), t && (i.write = t), i;
|
|
35
35
|
}
|
|
36
|
-
const Nt = (e) => "init" in e, Ot = (e) => !!e.write, nt = /* @__PURE__ */ new WeakMap(),
|
|
36
|
+
const Nt = (e) => "init" in e, Ot = (e) => !!e.write, nt = /* @__PURE__ */ new WeakMap(), ra = (e, t) => {
|
|
37
37
|
nt.set(e, t), e.catch(() => {
|
|
38
38
|
}).finally(() => nt.delete(e));
|
|
39
39
|
}, rn = (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", ra(_, (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 K(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
|
-
},
|
|
166
|
+
}, S = (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
|
+
}, K = (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) => K(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",
|
|
259
|
-
get:
|
|
260
|
-
set:
|
|
258
|
+
return ({ NZ_AWS_REGION: "us-east-1", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 } && "production") !== "production" ? {
|
|
259
|
+
get: S,
|
|
260
|
+
set: K,
|
|
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,19 +269,19 @@ 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
|
-
get:
|
|
276
|
-
set:
|
|
275
|
+
get: S,
|
|
276
|
+
set: K,
|
|
277
277
|
sub: me
|
|
278
278
|
};
|
|
279
279
|
};
|
|
280
280
|
let Et;
|
|
281
|
-
const
|
|
282
|
-
const t =
|
|
283
|
-
return (e == null ? void 0 : e.store) || t ||
|
|
284
|
-
},
|
|
281
|
+
const sa = () => (Et || (Et = In()), Et), oa = Vn(void 0), xn = (e) => {
|
|
282
|
+
const t = Ut(oa);
|
|
283
|
+
return (e == null ? void 0 : e.store) || t || sa();
|
|
284
|
+
}, ua = (e) => e instanceof Promise, la = Pn.use || ((e) => {
|
|
285
285
|
if (e.status === "pending")
|
|
286
286
|
throw e;
|
|
287
287
|
if (e.status === "fulfilled")
|
|
@@ -295,8 +295,8 @@ const ra = () => (Et || (Et = In()), Et), sa = Vn(void 0), jn = (e) => {
|
|
|
295
295
|
}
|
|
296
296
|
), e);
|
|
297
297
|
});
|
|
298
|
-
function
|
|
299
|
-
const n =
|
|
298
|
+
function da(e, t) {
|
|
299
|
+
const n = xn(t), [[i, a, r], s] = Hi(
|
|
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,34 +316,34 @@ function la(e, t) {
|
|
|
316
316
|
s();
|
|
317
317
|
});
|
|
318
318
|
return s(), d;
|
|
319
|
-
}, [n, e, u]),
|
|
319
|
+
}, [n, e, u]), Ji(o), ua(o) ? la(o) : o;
|
|
320
320
|
}
|
|
321
|
-
function
|
|
322
|
-
const n =
|
|
323
|
-
return
|
|
321
|
+
function ca(e, t) {
|
|
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
|
},
|
|
329
329
|
[n, e]
|
|
330
330
|
);
|
|
331
331
|
}
|
|
332
|
-
function
|
|
332
|
+
function fa(e, t) {
|
|
333
333
|
return [
|
|
334
|
-
|
|
334
|
+
da(e, t),
|
|
335
335
|
// We do wrong type assertion here, which results in throwing an error.
|
|
336
|
-
|
|
336
|
+
ca(e, t)
|
|
337
337
|
];
|
|
338
338
|
}
|
|
339
|
-
const
|
|
340
|
-
NZ_AWS_REGION:
|
|
341
|
-
NZ_BACKOFFICE_BACK_URL:
|
|
342
|
-
NZ_CORE_SERVICES_GRAPHQL_URL:
|
|
343
|
-
NZ_CORE_SERVICES_REST_URL:
|
|
344
|
-
} = { NZ_AWS_REGION: "us-east-1",
|
|
339
|
+
const jn = aa(null), {
|
|
340
|
+
NZ_AWS_REGION: ma,
|
|
341
|
+
NZ_BACKOFFICE_BACK_URL: va,
|
|
342
|
+
NZ_CORE_SERVICES_GRAPHQL_URL: ha,
|
|
343
|
+
NZ_CORE_SERVICES_REST_URL: pa
|
|
344
|
+
} = { NZ_AWS_REGION: "us-east-1", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 }, ka = {
|
|
345
345
|
AWS: {
|
|
346
|
-
region:
|
|
346
|
+
region: ma,
|
|
347
347
|
cognito: {
|
|
348
348
|
userPoolId: "us-east-1_knSlGEmJ0",
|
|
349
349
|
userPoolWebClientId: "3hmbfhf7nl3kq20qr9i5lihf1p"
|
|
@@ -351,9 +351,9 @@ const xn = ia(null), {
|
|
|
351
351
|
},
|
|
352
352
|
// Back services
|
|
353
353
|
apiUrls: {
|
|
354
|
-
restV1:
|
|
355
|
-
restV2:
|
|
356
|
-
graphql:
|
|
354
|
+
restV1: va || "https://pabprg32bj.execute-api.us-east-1.amazonaws.com",
|
|
355
|
+
restV2: pa || "https://core-services-dev.nizza.com/api",
|
|
356
|
+
graphql: ha || "https://core-services-dev.nizza.com/graphql",
|
|
357
357
|
corsProxy: "https://1qmd8jteh1.execute-api.us-east-1.amazonaws.com"
|
|
358
358
|
},
|
|
359
359
|
publicUrls: {
|
|
@@ -365,36 +365,51 @@ const xn = ia(null), {
|
|
|
365
365
|
bundleSite: "https://bundledev.nizza.com"
|
|
366
366
|
}
|
|
367
367
|
};
|
|
368
|
-
async function
|
|
369
|
-
var
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
368
|
+
async function Ln(e) {
|
|
369
|
+
var d;
|
|
370
|
+
const u = e, {
|
|
371
|
+
url: t,
|
|
372
|
+
method: n = "GET",
|
|
373
|
+
body: i,
|
|
374
|
+
raw: a = !1,
|
|
375
|
+
contentTypeJson: r = !0
|
|
376
|
+
} = u, s = Re(u, [
|
|
374
377
|
"url",
|
|
375
378
|
"method",
|
|
376
|
-
"
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
379
|
+
"body",
|
|
380
|
+
"raw",
|
|
381
|
+
"contentTypeJson"
|
|
382
|
+
]), o = r && !e.headers ? new Headers({
|
|
383
|
+
"content-type": "application/json"
|
|
384
|
+
}) : e.headers;
|
|
385
|
+
try {
|
|
386
|
+
const c = await fetch(t, B({
|
|
387
|
+
method: n,
|
|
388
|
+
headers: o,
|
|
389
|
+
body: i
|
|
390
|
+
}, s));
|
|
391
|
+
if (a)
|
|
392
|
+
return c;
|
|
393
|
+
const v = await c.json();
|
|
394
|
+
if (!c.ok) {
|
|
395
|
+
const S = (d = v == null ? void 0 : v.message) != null ? d : c.statusText;
|
|
396
|
+
throw new Error(S);
|
|
397
|
+
}
|
|
398
|
+
return v;
|
|
399
|
+
} catch (c) {
|
|
400
|
+
throw console.error("[CustomFetch] ", c), c;
|
|
386
401
|
}
|
|
387
|
-
return o;
|
|
388
402
|
}
|
|
389
|
-
|
|
390
|
-
|
|
403
|
+
const Io = (e) => Ln(te(B({}, e), { contentTypeJson: !1 }));
|
|
404
|
+
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), "");
|
|
405
|
+
const ya = (e = 8) => _a(e), xo = (e) => {
|
|
391
406
|
const t = Object.entries(e).map(([n, i]) => `${n}=${i}`).join("&");
|
|
392
407
|
return t ? `?${t}` : "";
|
|
393
408
|
};
|
|
394
409
|
class Sa {
|
|
395
410
|
constructor(t) {
|
|
396
|
-
|
|
397
|
-
|
|
411
|
+
b(this, "aggregate");
|
|
412
|
+
b(this, "_numSetPropsApplied", 0);
|
|
398
413
|
this.aggregate = t;
|
|
399
414
|
}
|
|
400
415
|
setProps(t) {
|
|
@@ -411,62 +426,62 @@ function ba(e) {
|
|
|
411
426
|
}
|
|
412
427
|
class jo {
|
|
413
428
|
}
|
|
414
|
-
class
|
|
429
|
+
class Lo {
|
|
415
430
|
constructor(t) {
|
|
416
|
-
|
|
431
|
+
b(this, "_value");
|
|
417
432
|
t !== void 0 && (this._value = t);
|
|
418
433
|
}
|
|
419
434
|
get value() {
|
|
420
435
|
return this._value;
|
|
421
436
|
}
|
|
422
437
|
}
|
|
423
|
-
var
|
|
438
|
+
var Mn = /* @__PURE__ */ ((e) => (e.VTEX = "VTEX", e.VTEX_IO = "VTEX-IO", e.VTEX_CMS = "PORTAL-VTEX", e.PLATFORM = "PLATFORM", e.UNKNOWN = "UNKNOWN", e))(Mn || {}), ga = /* @__PURE__ */ ((e) => (e.PLATFORM = "platform_module", e.ADENDA = "subscription_module", e.APP_STORE = "app_store", e))(ga || {}), Bn = /* @__PURE__ */ ((e) => (e.ACTIVE = "active_contract", e.INACTIVE = "inactive_contract", e))(Bn || {}), Na = /* @__PURE__ */ ((e) => (e.LITE = "lite", e.STANDARD = "standard", e.PRO = "pro", e))(Na || {}), Oa = /* @__PURE__ */ ((e) => (e.LITE = "PLAN_LITE", e.STANDARD = "PLAN_ESTANDAR", e.PRO = "PLAN_PRO", e.NONE = "NO_PLAN", e))(Oa || {}), Aa = /* @__PURE__ */ ((e) => (e.PAST = "past", e.LIVE = "live", e.FUTURE = "future", e))(Aa || {});
|
|
424
439
|
class Gt {
|
|
425
440
|
constructor(t) {
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
441
|
+
b(this, "root", ba(this));
|
|
442
|
+
b(this, "id");
|
|
443
|
+
b(this, "account");
|
|
444
|
+
b(this, "accountType", Mn.UNKNOWN);
|
|
445
|
+
b(this, "username");
|
|
446
|
+
b(this, "currencyConfig");
|
|
447
|
+
b(this, "contractType");
|
|
448
|
+
b(this, "nextDateMetricRecord");
|
|
449
|
+
b(this, "spendedMinutes", 0);
|
|
450
|
+
b(this, "unlimitedService", !1);
|
|
451
|
+
b(this, "hoursAvailable", 0);
|
|
452
|
+
b(this, "contractStatus", Bn.ACTIVE);
|
|
453
|
+
b(this, "createdAt");
|
|
454
|
+
b(this, "installationDateApp");
|
|
455
|
+
b(this, "cxAccount");
|
|
456
|
+
b(this, "freeService", !1);
|
|
457
|
+
b(this, "subscriptionType", null);
|
|
458
|
+
b(this, "minutesAvailable", 0);
|
|
459
|
+
b(this, "globalPage");
|
|
460
|
+
b(this, "stripe");
|
|
461
|
+
b(this, "descriptionPlan");
|
|
462
|
+
b(this, "planType");
|
|
463
|
+
b(this, "selectFreeTrial");
|
|
464
|
+
b(this, "exceededFeatures");
|
|
465
|
+
b(this, "host", null);
|
|
451
466
|
this.root.setProps(t);
|
|
452
467
|
}
|
|
453
468
|
static toDomain(t) {
|
|
454
|
-
const r = t, { createdAt: n } = r, i = Re(r, ["createdAt"]), a =
|
|
469
|
+
const r = t, { createdAt: n } = r, i = Re(r, ["createdAt"]), a = te(B({}, i), {
|
|
455
470
|
createdAt: new Date(Number(n))
|
|
456
471
|
});
|
|
457
472
|
return new Gt(a);
|
|
458
473
|
}
|
|
459
474
|
toPrimitives() {
|
|
460
475
|
const a = this, { root: t, createdAt: n } = a, i = Re(a, ["root", "createdAt"]);
|
|
461
|
-
return
|
|
476
|
+
return te(B({}, i), {
|
|
462
477
|
created: n.toISOString()
|
|
463
478
|
});
|
|
464
479
|
}
|
|
465
480
|
}
|
|
466
|
-
const Ea = `${
|
|
481
|
+
const Ea = `${ka.apiUrls.restV1}/accounts/v2`;
|
|
467
482
|
class Fa {
|
|
468
483
|
async get(t) {
|
|
469
|
-
const n = `${Ea}/${t}`, { data: i } = await
|
|
484
|
+
const n = `${Ea}/${t}`, { data: i } = await Ln({
|
|
470
485
|
url: n
|
|
471
486
|
});
|
|
472
487
|
return i ? Gt.toDomain(i) : null;
|
|
@@ -488,7 +503,7 @@ class Ra {
|
|
|
488
503
|
}
|
|
489
504
|
}
|
|
490
505
|
const Ca = new Fa(), Un = new Ra(Ca);
|
|
491
|
-
class
|
|
506
|
+
class Qt {
|
|
492
507
|
constructor() {
|
|
493
508
|
this.listeners = [], this.subscribe = this.subscribe.bind(this);
|
|
494
509
|
}
|
|
@@ -506,23 +521,23 @@ class zt {
|
|
|
506
521
|
}
|
|
507
522
|
}
|
|
508
523
|
const it = typeof window == "undefined" || "Deno" in window;
|
|
509
|
-
function
|
|
524
|
+
function wa() {
|
|
510
525
|
}
|
|
511
526
|
function ln(e) {
|
|
512
527
|
return typeof e == "number" && e >= 0 && e !== 1 / 0;
|
|
513
528
|
}
|
|
514
|
-
function
|
|
529
|
+
function Da(e, t) {
|
|
515
530
|
return Math.max(e + (t || 0) - Date.now(), 0);
|
|
516
531
|
}
|
|
517
|
-
function
|
|
518
|
-
return Pa(e) ? typeof t == "function" ?
|
|
532
|
+
function Ta(e, t, n) {
|
|
533
|
+
return Pa(e) ? typeof t == "function" ? te(B({}, n), {
|
|
519
534
|
queryKey: e,
|
|
520
535
|
queryFn: t
|
|
521
|
-
}) :
|
|
536
|
+
}) : te(B({}, t), {
|
|
522
537
|
queryKey: e
|
|
523
538
|
}) : e;
|
|
524
539
|
}
|
|
525
|
-
function
|
|
540
|
+
function Gn(e, t) {
|
|
526
541
|
if (e === t)
|
|
527
542
|
return e;
|
|
528
543
|
const n = cn(e) && cn(t);
|
|
@@ -531,7 +546,7 @@ function Bn(e, t) {
|
|
|
531
546
|
let o = 0;
|
|
532
547
|
for (let u = 0; u < r; u++) {
|
|
533
548
|
const d = n ? u : a[u];
|
|
534
|
-
s[d] =
|
|
549
|
+
s[d] = Gn(e[d], t[d]), s[d] === e[d] && o++;
|
|
535
550
|
}
|
|
536
551
|
return i === r && o === i ? e : s;
|
|
537
552
|
}
|
|
@@ -572,9 +587,9 @@ function vn(e) {
|
|
|
572
587
|
Va(0).then(e);
|
|
573
588
|
}
|
|
574
589
|
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 ?
|
|
590
|
+
return n.isDataEqual != null && n.isDataEqual(e, t) ? e : typeof n.structuralSharing == "function" ? n.structuralSharing(e, t) : n.structuralSharing !== !1 ? Gn(e, t) : t;
|
|
576
591
|
}
|
|
577
|
-
class Ia extends
|
|
592
|
+
class Ia extends Qt {
|
|
578
593
|
constructor() {
|
|
579
594
|
super(), this.setup = (t) => {
|
|
580
595
|
if (!it && window.addEventListener) {
|
|
@@ -612,8 +627,8 @@ class Ia extends zt {
|
|
|
612
627
|
return typeof this.focused == "boolean" ? this.focused : typeof document == "undefined" ? !0 : [void 0, "visible", "prerender"].includes(document.visibilityState);
|
|
613
628
|
}
|
|
614
629
|
}
|
|
615
|
-
const
|
|
616
|
-
class
|
|
630
|
+
const xa = new Ia();
|
|
631
|
+
class ja extends Qt {
|
|
617
632
|
constructor() {
|
|
618
633
|
super(), this.setup = (t) => {
|
|
619
634
|
if (!it && window.addEventListener) {
|
|
@@ -651,17 +666,17 @@ class xa extends zt {
|
|
|
651
666
|
return typeof this.online == "boolean" ? this.online : typeof navigator == "undefined" || typeof navigator.onLine == "undefined" ? !0 : navigator.onLine;
|
|
652
667
|
}
|
|
653
668
|
}
|
|
654
|
-
const La = new
|
|
669
|
+
const La = new ja();
|
|
655
670
|
function Ma(e) {
|
|
656
671
|
return (e != null ? e : "online") === "online" ? La.isOnline() : !0;
|
|
657
672
|
}
|
|
658
|
-
class
|
|
673
|
+
class Ba {
|
|
659
674
|
constructor(t) {
|
|
660
675
|
this.revert = t == null ? void 0 : t.revert, this.silent = t == null ? void 0 : t.silent;
|
|
661
676
|
}
|
|
662
677
|
}
|
|
663
|
-
function
|
|
664
|
-
return e instanceof
|
|
678
|
+
function Ua(e) {
|
|
679
|
+
return e instanceof Ba;
|
|
665
680
|
}
|
|
666
681
|
function Ga() {
|
|
667
682
|
let e = [], t = 0, n = (c) => {
|
|
@@ -709,7 +724,7 @@ function Ga() {
|
|
|
709
724
|
};
|
|
710
725
|
}
|
|
711
726
|
const Ce = Ga();
|
|
712
|
-
class
|
|
727
|
+
class Qa extends Qt {
|
|
713
728
|
constructor(t, n) {
|
|
714
729
|
super(), this.client = t, this.options = n, this.trackedProps = /* @__PURE__ */ new Set(), this.selectError = null, this.bindMethods(), this.setOptions(n);
|
|
715
730
|
}
|
|
@@ -741,7 +756,7 @@ class za extends zt {
|
|
|
741
756
|
throw new Error("Expected enabled to be a boolean");
|
|
742
757
|
this.options.queryKey || (this.options.queryKey = i.queryKey), this.updateQuery();
|
|
743
758
|
const r = this.hasListeners();
|
|
744
|
-
r &&
|
|
759
|
+
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
760
|
const s = this.computeRefetchInterval();
|
|
746
761
|
r && (this.currentQuery !== a || this.options.enabled !== i.enabled || s !== this.currentRefetchInterval) && this.updateRefetchInterval(s);
|
|
747
762
|
}
|
|
@@ -774,7 +789,7 @@ class za extends zt {
|
|
|
774
789
|
} = a, n = Re(a, [
|
|
775
790
|
"refetchPage"
|
|
776
791
|
]);
|
|
777
|
-
return this.fetch(
|
|
792
|
+
return this.fetch(te(B({}, n), {
|
|
778
793
|
meta: {
|
|
779
794
|
refetchPage: t
|
|
780
795
|
}
|
|
@@ -786,19 +801,19 @@ class za extends zt {
|
|
|
786
801
|
}
|
|
787
802
|
fetch(t) {
|
|
788
803
|
var n;
|
|
789
|
-
return this.executeFetch(
|
|
804
|
+
return this.executeFetch(te(B({}, t), {
|
|
790
805
|
cancelRefetch: (n = t.cancelRefetch) != null ? n : !0
|
|
791
806
|
})).then(() => (this.updateResult(), this.currentResult));
|
|
792
807
|
}
|
|
793
808
|
executeFetch(t) {
|
|
794
809
|
this.updateQuery();
|
|
795
810
|
let n = this.currentQuery.fetch(this.options, t);
|
|
796
|
-
return t != null && t.throwOnError || (n = n.catch(
|
|
811
|
+
return t != null && t.throwOnError || (n = n.catch(wa)), n;
|
|
797
812
|
}
|
|
798
813
|
updateStaleTimeout() {
|
|
799
814
|
if (this.clearStaleTimeout(), it || this.currentResult.isStale || !ln(this.options.staleTime))
|
|
800
815
|
return;
|
|
801
|
-
const n =
|
|
816
|
+
const n = Da(this.currentResult.dataUpdatedAt, this.options.staleTime) + 1;
|
|
802
817
|
this.staleTimeoutId = setTimeout(() => {
|
|
803
818
|
this.currentResult.isStale || this.updateResult();
|
|
804
819
|
}, n);
|
|
@@ -809,7 +824,7 @@ class za extends zt {
|
|
|
809
824
|
}
|
|
810
825
|
updateRefetchInterval(t) {
|
|
811
826
|
this.clearRefetchInterval(), this.currentRefetchInterval = t, !(it || this.options.enabled === !1 || !ln(this.currentRefetchInterval) || this.currentRefetchInterval === 0) && (this.refetchIntervalId = setInterval(() => {
|
|
812
|
-
(this.options.refetchIntervalInBackground ||
|
|
827
|
+
(this.options.refetchIntervalInBackground || xa.isFocused()) && this.executeFetch();
|
|
813
828
|
}, this.currentRefetchInterval));
|
|
814
829
|
}
|
|
815
830
|
updateTimers() {
|
|
@@ -826,18 +841,18 @@ class za extends zt {
|
|
|
826
841
|
state: v
|
|
827
842
|
} = t;
|
|
828
843
|
let {
|
|
829
|
-
dataUpdatedAt:
|
|
844
|
+
dataUpdatedAt: S,
|
|
830
845
|
error: F,
|
|
831
846
|
errorUpdatedAt: I,
|
|
832
847
|
fetchStatus: R,
|
|
833
848
|
status: A
|
|
834
|
-
} = v, W = !1,
|
|
849
|
+
} = v, W = !1, K = !1, C;
|
|
835
850
|
if (n._optimisticResults) {
|
|
836
|
-
const l = this.hasListeners(), m = !l && pn(t, n), h = l &&
|
|
837
|
-
(m || h) && (R = Ma(t.options.networkMode) ? "fetching" : "paused",
|
|
851
|
+
const l = this.hasListeners(), m = !l && pn(t, n), h = l && kn(t, i, n, a);
|
|
852
|
+
(m || h) && (R = Ma(t.options.networkMode) ? "fetching" : "paused", S || (A = "loading")), n._optimisticResults === "isRestoring" && (R = "idle");
|
|
838
853
|
}
|
|
839
854
|
if (n.keepPreviousData && !v.dataUpdatedAt && c != null && c.isSuccess && A !== "error")
|
|
840
|
-
C = c.data,
|
|
855
|
+
C = c.data, S = c.dataUpdatedAt, A = c.status, W = !0;
|
|
841
856
|
else if (n.select && typeof v.data != "undefined")
|
|
842
857
|
if (r && v.data === (s == null ? void 0 : s.data) && n.select === this.selectFn)
|
|
843
858
|
C = this.selectResult;
|
|
@@ -859,19 +874,19 @@ class za extends zt {
|
|
|
859
874
|
} catch (m) {
|
|
860
875
|
this.selectError = m;
|
|
861
876
|
}
|
|
862
|
-
typeof l != "undefined" && (A = "success", C = hn(r == null ? void 0 : r.data, l, n),
|
|
877
|
+
typeof l != "undefined" && (A = "success", C = hn(r == null ? void 0 : r.data, l, n), K = !0);
|
|
863
878
|
}
|
|
864
879
|
this.selectError && (F = this.selectError, C = this.selectResult, I = Date.now(), A = "error");
|
|
865
|
-
const
|
|
880
|
+
const w = R === "fetching", x = A === "loading", j = A === "error";
|
|
866
881
|
return {
|
|
867
882
|
status: A,
|
|
868
883
|
fetchStatus: R,
|
|
869
|
-
isLoading:
|
|
884
|
+
isLoading: x,
|
|
870
885
|
isSuccess: A === "success",
|
|
871
|
-
isError:
|
|
872
|
-
isInitialLoading:
|
|
886
|
+
isError: j,
|
|
887
|
+
isInitialLoading: x && w,
|
|
873
888
|
data: C,
|
|
874
|
-
dataUpdatedAt:
|
|
889
|
+
dataUpdatedAt: S,
|
|
875
890
|
error: F,
|
|
876
891
|
errorUpdatedAt: I,
|
|
877
892
|
failureCount: v.fetchFailureCount,
|
|
@@ -879,14 +894,14 @@ class za extends zt {
|
|
|
879
894
|
errorUpdateCount: v.errorUpdateCount,
|
|
880
895
|
isFetched: v.dataUpdateCount > 0 || v.errorUpdateCount > 0,
|
|
881
896
|
isFetchedAfterMount: v.dataUpdateCount > d.dataUpdateCount || v.errorUpdateCount > d.errorUpdateCount,
|
|
882
|
-
isFetching:
|
|
883
|
-
isRefetching:
|
|
884
|
-
isLoadingError:
|
|
897
|
+
isFetching: w,
|
|
898
|
+
isRefetching: w && !x,
|
|
899
|
+
isLoadingError: j && v.dataUpdatedAt === 0,
|
|
885
900
|
isPaused: R === "paused",
|
|
886
|
-
isPlaceholderData:
|
|
901
|
+
isPlaceholderData: K,
|
|
887
902
|
isPreviousData: W,
|
|
888
|
-
isRefetchError:
|
|
889
|
-
isStale:
|
|
903
|
+
isRefetchError: j && v.dataUpdatedAt !== 0,
|
|
904
|
+
isStale: Kt(t, n),
|
|
890
905
|
refetch: this.refetch,
|
|
891
906
|
remove: this.remove
|
|
892
907
|
};
|
|
@@ -912,7 +927,7 @@ class za extends zt {
|
|
|
912
927
|
return this.currentResult[d] !== n[d] && o.has(d);
|
|
913
928
|
});
|
|
914
929
|
};
|
|
915
|
-
(t == null ? void 0 : t.listeners) !== !1 && r() && (a.listeners = !0), this.notify(
|
|
930
|
+
(t == null ? void 0 : t.listeners) !== !1 && r() && (a.listeners = !0), this.notify(B(B({}, a), t));
|
|
916
931
|
}
|
|
917
932
|
updateQuery() {
|
|
918
933
|
const t = this.client.getQueryCache().build(this.client, this.options);
|
|
@@ -923,7 +938,7 @@ class za extends zt {
|
|
|
923
938
|
}
|
|
924
939
|
onQueryUpdate(t) {
|
|
925
940
|
const n = {};
|
|
926
|
-
t.type === "success" ? n.onSuccess = !t.manual : t.type === "error" && !
|
|
941
|
+
t.type === "success" ? n.onSuccess = !t.manual : t.type === "error" && !Ua(t.error) && (n.onError = !0), this.updateResult(n), this.hasListeners() && this.updateTimers();
|
|
927
942
|
}
|
|
928
943
|
notify(t) {
|
|
929
944
|
Ce.batch(() => {
|
|
@@ -943,26 +958,26 @@ class za extends zt {
|
|
|
943
958
|
});
|
|
944
959
|
}
|
|
945
960
|
}
|
|
946
|
-
function
|
|
961
|
+
function Ka(e, t) {
|
|
947
962
|
return t.enabled !== !1 && !e.state.dataUpdatedAt && !(e.state.status === "error" && t.retryOnMount === !1);
|
|
948
963
|
}
|
|
949
964
|
function pn(e, t) {
|
|
950
|
-
return
|
|
965
|
+
return Ka(e, t) || e.state.dataUpdatedAt > 0 && Pt(e, t, t.refetchOnMount);
|
|
951
966
|
}
|
|
952
967
|
function Pt(e, t, n) {
|
|
953
968
|
if (t.enabled !== !1) {
|
|
954
969
|
const i = typeof n == "function" ? n(e) : n;
|
|
955
|
-
return i === "always" || i !== !1 &&
|
|
970
|
+
return i === "always" || i !== !1 && Kt(e, t);
|
|
956
971
|
}
|
|
957
972
|
return !1;
|
|
958
973
|
}
|
|
959
|
-
function
|
|
960
|
-
return n.enabled !== !1 && (e !== t || i.enabled === !1) && (!n.suspense || e.state.status !== "error") &&
|
|
974
|
+
function kn(e, t, n, i) {
|
|
975
|
+
return n.enabled !== !1 && (e !== t || i.enabled === !1) && (!n.suspense || e.state.status !== "error") && Kt(e, n);
|
|
961
976
|
}
|
|
962
|
-
function
|
|
977
|
+
function Kt(e, t) {
|
|
963
978
|
return e.isStaleByTime(t.staleTime);
|
|
964
979
|
}
|
|
965
|
-
var
|
|
980
|
+
var Qn = { exports: {} }, Kn = {};
|
|
966
981
|
/**
|
|
967
982
|
* @license React
|
|
968
983
|
* use-sync-external-store-shim.production.min.js
|
|
@@ -973,19 +988,19 @@ var Gn = { exports: {} }, zn = {};
|
|
|
973
988
|
* LICENSE file in the root directory of this source tree.
|
|
974
989
|
*/
|
|
975
990
|
var Se = Pn;
|
|
976
|
-
function
|
|
991
|
+
function za(e, t) {
|
|
977
992
|
return e === t && (e !== 0 || 1 / e === 1 / t) || e !== e && t !== t;
|
|
978
993
|
}
|
|
979
|
-
var $a = typeof Object.is == "function" ? Object.is :
|
|
980
|
-
function
|
|
994
|
+
var $a = typeof Object.is == "function" ? Object.is : za, qa = Se.useState, Wa = Se.useEffect, Za = Se.useLayoutEffect, Xa = Se.useDebugValue;
|
|
995
|
+
function Ha(e, t) {
|
|
981
996
|
var n = t(), i = qa({ inst: { value: n, getSnapshot: t } }), a = i[0].inst, r = i[1];
|
|
982
|
-
return
|
|
997
|
+
return Za(function() {
|
|
983
998
|
a.value = n, a.getSnapshot = t, Ft(a) && r({ inst: a });
|
|
984
999
|
}, [e, n, t]), Wa(function() {
|
|
985
1000
|
return Ft(a) && r({ inst: a }), e(function() {
|
|
986
1001
|
Ft(a) && r({ inst: a });
|
|
987
1002
|
});
|
|
988
|
-
}, [e]),
|
|
1003
|
+
}, [e]), Xa(n), n;
|
|
989
1004
|
}
|
|
990
1005
|
function Ft(e) {
|
|
991
1006
|
var t = e.getSnapshot;
|
|
@@ -997,26 +1012,26 @@ function Ft(e) {
|
|
|
997
1012
|
return !0;
|
|
998
1013
|
}
|
|
999
1014
|
}
|
|
1000
|
-
function
|
|
1015
|
+
function Ja(e, t) {
|
|
1001
1016
|
return t();
|
|
1002
1017
|
}
|
|
1003
|
-
var Ya = typeof window == "undefined" || typeof window.document == "undefined" || typeof window.document.createElement == "undefined" ?
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
var er =
|
|
1007
|
-
const tr = er.useSyncExternalStore,
|
|
1018
|
+
var Ya = typeof window == "undefined" || typeof window.document == "undefined" || typeof window.document.createElement == "undefined" ? Ja : Ha;
|
|
1019
|
+
Kn.useSyncExternalStore = Se.useSyncExternalStore !== void 0 ? Se.useSyncExternalStore : Ya;
|
|
1020
|
+
Qn.exports = Kn;
|
|
1021
|
+
var er = Qn.exports;
|
|
1022
|
+
const tr = er.useSyncExternalStore, _n = /* @__PURE__ */ Q.createContext(void 0), nr = /* @__PURE__ */ Q.createContext(!1);
|
|
1008
1023
|
function ir(e, t) {
|
|
1009
|
-
return e || (t && typeof window != "undefined" ? (window.ReactQueryClientContext || (window.ReactQueryClientContext =
|
|
1024
|
+
return e || (t && typeof window != "undefined" ? (window.ReactQueryClientContext || (window.ReactQueryClientContext = _n), window.ReactQueryClientContext) : _n);
|
|
1010
1025
|
}
|
|
1011
1026
|
const ar = ({
|
|
1012
1027
|
context: e
|
|
1013
1028
|
} = {}) => {
|
|
1014
|
-
const t =
|
|
1029
|
+
const t = Q.useContext(ir(e, Q.useContext(nr)));
|
|
1015
1030
|
if (!t)
|
|
1016
1031
|
throw new Error("No QueryClient set, use QueryClientProvider to set one");
|
|
1017
1032
|
return t;
|
|
1018
|
-
},
|
|
1019
|
-
|
|
1033
|
+
}, zn = /* @__PURE__ */ Q.createContext(!1), rr = () => Q.useContext(zn);
|
|
1034
|
+
zn.Provider;
|
|
1020
1035
|
function sr() {
|
|
1021
1036
|
let e = !1;
|
|
1022
1037
|
return {
|
|
@@ -1029,14 +1044,14 @@ function sr() {
|
|
|
1029
1044
|
isReset: () => e
|
|
1030
1045
|
};
|
|
1031
1046
|
}
|
|
1032
|
-
const or = /* @__PURE__ */
|
|
1047
|
+
const or = /* @__PURE__ */ Q.createContext(sr()), ur = () => Q.useContext(or);
|
|
1033
1048
|
function lr(e, t) {
|
|
1034
1049
|
return typeof e == "function" ? e(...t) : !!e;
|
|
1035
1050
|
}
|
|
1036
1051
|
const dr = (e, t) => {
|
|
1037
1052
|
(e.suspense || e.useErrorBoundary) && (t.isReset() || (e.retryOnMount = !1));
|
|
1038
1053
|
}, cr = (e) => {
|
|
1039
|
-
|
|
1054
|
+
Q.useEffect(() => {
|
|
1040
1055
|
e.clearReset();
|
|
1041
1056
|
}, [e]);
|
|
1042
1057
|
}, fr = ({
|
|
@@ -1053,14 +1068,14 @@ const dr = (e, t) => {
|
|
|
1053
1068
|
}).catch((i) => {
|
|
1054
1069
|
n.clearReset(), e.onError == null || e.onError(i), e.onSettled == null || e.onSettled(void 0, i);
|
|
1055
1070
|
});
|
|
1056
|
-
function
|
|
1071
|
+
function kr(e, t) {
|
|
1057
1072
|
const n = ar({
|
|
1058
1073
|
context: e.context
|
|
1059
1074
|
}), i = rr(), a = ur(), r = n.defaultQueryOptions(e);
|
|
1060
1075
|
r._optimisticResults = i ? "isRestoring" : "optimistic", r.onError && (r.onError = Ce.batchCalls(r.onError)), r.onSuccess && (r.onSuccess = Ce.batchCalls(r.onSuccess)), r.onSettled && (r.onSettled = Ce.batchCalls(r.onSettled)), mr(r), dr(r, a), cr(a);
|
|
1061
|
-
const [s] =
|
|
1062
|
-
if (tr(
|
|
1063
|
-
} : s.subscribe(Ce.batchCalls(u)), [s, i]), () => s.getCurrentResult(), () => s.getCurrentResult()),
|
|
1076
|
+
const [s] = Q.useState(() => new t(n, r)), o = s.getOptimisticResult(r);
|
|
1077
|
+
if (tr(Q.useCallback((u) => i ? () => {
|
|
1078
|
+
} : s.subscribe(Ce.batchCalls(u)), [s, i]), () => s.getCurrentResult(), () => s.getCurrentResult()), Q.useEffect(() => {
|
|
1064
1079
|
s.setOptions(r, {
|
|
1065
1080
|
listeners: !1
|
|
1066
1081
|
});
|
|
@@ -1075,15 +1090,15 @@ function _r(e, t) {
|
|
|
1075
1090
|
throw o.error;
|
|
1076
1091
|
return r.notifyOnChangeProps ? o : s.trackResult(o);
|
|
1077
1092
|
}
|
|
1078
|
-
function
|
|
1079
|
-
const i =
|
|
1080
|
-
return
|
|
1093
|
+
function _r(e, t, n) {
|
|
1094
|
+
const i = Ta(e, t, n);
|
|
1095
|
+
return kr(i, Qa);
|
|
1081
1096
|
}
|
|
1082
|
-
const yr = () => ["account"],
|
|
1097
|
+
const yr = () => ["account"], Mo = () => {
|
|
1083
1098
|
const e = co(() => {
|
|
1084
1099
|
var a;
|
|
1085
1100
|
return (a = lo.config) == null ? void 0 : a.account;
|
|
1086
|
-
}), [t, n] =
|
|
1101
|
+
}), [t, n] = fa(jn), i = _r(
|
|
1087
1102
|
yr(),
|
|
1088
1103
|
() => Un.get(e),
|
|
1089
1104
|
{
|
|
@@ -1102,7 +1117,7 @@ const yr = () => ["account"], Lo = () => {
|
|
|
1102
1117
|
}, Sr = In();
|
|
1103
1118
|
async function br(e) {
|
|
1104
1119
|
const t = await Un.get(e);
|
|
1105
|
-
return Sr.set(
|
|
1120
|
+
return Sr.set(jn, t), t;
|
|
1106
1121
|
}
|
|
1107
1122
|
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
1123
|
class ft extends Error {
|
|
@@ -1110,7 +1125,7 @@ class ft extends Error {
|
|
|
1110
1125
|
super(n), this.value = i, this.name = t;
|
|
1111
1126
|
}
|
|
1112
1127
|
toDTO() {
|
|
1113
|
-
return
|
|
1128
|
+
return B({
|
|
1114
1129
|
name: this.name,
|
|
1115
1130
|
message: this.message
|
|
1116
1131
|
}, this.value && { value: this.value });
|
|
@@ -1135,7 +1150,7 @@ class Ar extends ft {
|
|
|
1135
1150
|
);
|
|
1136
1151
|
}
|
|
1137
1152
|
}
|
|
1138
|
-
class
|
|
1153
|
+
class Bo extends ft {
|
|
1139
1154
|
constructor() {
|
|
1140
1155
|
super("APP_ACCOUNT_INVALID_ERROR", "Account not defined");
|
|
1141
1156
|
}
|
|
@@ -1174,18 +1189,18 @@ function N(e) {
|
|
|
1174
1189
|
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
1190
|
}
|
|
1176
1191
|
var Fr = {};
|
|
1177
|
-
function
|
|
1192
|
+
function $n() {
|
|
1178
1193
|
return typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : Fr;
|
|
1179
1194
|
}
|
|
1180
|
-
var
|
|
1195
|
+
var qn = Object.assign, at = Object.getOwnPropertyDescriptor, Z = Object.defineProperty, mt = Object.prototype, Vt = [];
|
|
1181
1196
|
Object.freeze(Vt);
|
|
1182
|
-
var
|
|
1183
|
-
Object.freeze(
|
|
1197
|
+
var zt = {};
|
|
1198
|
+
Object.freeze(zt);
|
|
1184
1199
|
var Rr = typeof Proxy != "undefined", Cr = /* @__PURE__ */ Object.toString();
|
|
1185
|
-
function
|
|
1200
|
+
function Wn() {
|
|
1186
1201
|
Rr || N("Proxy not available");
|
|
1187
1202
|
}
|
|
1188
|
-
function
|
|
1203
|
+
function Zn(e) {
|
|
1189
1204
|
var t = !1;
|
|
1190
1205
|
return function() {
|
|
1191
1206
|
if (!t)
|
|
@@ -1219,20 +1234,20 @@ function Y(e) {
|
|
|
1219
1234
|
var n = Object.hasOwnProperty.call(t, "constructor") && t.constructor;
|
|
1220
1235
|
return typeof n == "function" && n.toString() === Cr;
|
|
1221
1236
|
}
|
|
1222
|
-
function
|
|
1237
|
+
function Xn(e) {
|
|
1223
1238
|
var t = e == null ? void 0 : e.constructor;
|
|
1224
1239
|
return t ? t.name === "GeneratorFunction" || t.displayName === "GeneratorFunction" : !1;
|
|
1225
1240
|
}
|
|
1226
1241
|
function ht(e, t, n) {
|
|
1227
|
-
|
|
1242
|
+
Z(e, t, {
|
|
1228
1243
|
enumerable: !1,
|
|
1229
1244
|
writable: !0,
|
|
1230
1245
|
configurable: !0,
|
|
1231
1246
|
value: n
|
|
1232
1247
|
});
|
|
1233
1248
|
}
|
|
1234
|
-
function
|
|
1235
|
-
|
|
1249
|
+
function Hn(e, t, n) {
|
|
1250
|
+
Z(e, t, {
|
|
1236
1251
|
enumerable: !1,
|
|
1237
1252
|
writable: !1,
|
|
1238
1253
|
configurable: !0,
|
|
@@ -1248,34 +1263,34 @@ function ce(e, t) {
|
|
|
1248
1263
|
function Oe(e) {
|
|
1249
1264
|
return e instanceof Map;
|
|
1250
1265
|
}
|
|
1251
|
-
function
|
|
1266
|
+
function Be(e) {
|
|
1252
1267
|
return e instanceof Set;
|
|
1253
1268
|
}
|
|
1254
|
-
var
|
|
1255
|
-
function
|
|
1269
|
+
var Jn = typeof Object.getOwnPropertySymbols != "undefined";
|
|
1270
|
+
function wr(e) {
|
|
1256
1271
|
var t = Object.keys(e);
|
|
1257
|
-
if (!
|
|
1272
|
+
if (!Jn)
|
|
1258
1273
|
return t;
|
|
1259
1274
|
var n = Object.getOwnPropertySymbols(e);
|
|
1260
1275
|
return n.length ? [].concat(t, n.filter(function(i) {
|
|
1261
1276
|
return mt.propertyIsEnumerable.call(e, i);
|
|
1262
1277
|
})) : t;
|
|
1263
1278
|
}
|
|
1264
|
-
var
|
|
1279
|
+
var Te = typeof Reflect != "undefined" && Reflect.ownKeys ? Reflect.ownKeys : Jn ? function(e) {
|
|
1265
1280
|
return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e));
|
|
1266
1281
|
} : (
|
|
1267
1282
|
/* istanbul ignore next */
|
|
1268
1283
|
Object.getOwnPropertyNames
|
|
1269
1284
|
);
|
|
1270
|
-
function
|
|
1285
|
+
function Yn(e) {
|
|
1271
1286
|
return e === null ? null : typeof e == "object" ? "" + e : e;
|
|
1272
1287
|
}
|
|
1273
|
-
function
|
|
1288
|
+
function ae(e, t) {
|
|
1274
1289
|
return mt.hasOwnProperty.call(e, t);
|
|
1275
1290
|
}
|
|
1276
|
-
var
|
|
1291
|
+
var Dr = Object.getOwnPropertyDescriptors || function(t) {
|
|
1277
1292
|
var n = {};
|
|
1278
|
-
return
|
|
1293
|
+
return Te(t).forEach(function(i) {
|
|
1279
1294
|
n[i] = at(t, i);
|
|
1280
1295
|
}), n;
|
|
1281
1296
|
};
|
|
@@ -1300,7 +1315,7 @@ function Pe() {
|
|
|
1300
1315
|
return e;
|
|
1301
1316
|
}, Pe.apply(this, arguments);
|
|
1302
1317
|
}
|
|
1303
|
-
function
|
|
1318
|
+
function ei(e, t) {
|
|
1304
1319
|
e.prototype = Object.create(t.prototype), e.prototype.constructor = e, It(e, t);
|
|
1305
1320
|
}
|
|
1306
1321
|
function It(e, t) {
|
|
@@ -1313,7 +1328,7 @@ function Rt(e) {
|
|
|
1313
1328
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1314
1329
|
return e;
|
|
1315
1330
|
}
|
|
1316
|
-
function
|
|
1331
|
+
function Tr(e, t) {
|
|
1317
1332
|
if (e) {
|
|
1318
1333
|
if (typeof e == "string")
|
|
1319
1334
|
return Sn(e, t);
|
|
@@ -1330,11 +1345,11 @@ function Sn(e, t) {
|
|
|
1330
1345
|
i[n] = e[n];
|
|
1331
1346
|
return i;
|
|
1332
1347
|
}
|
|
1333
|
-
function
|
|
1348
|
+
function ke(e, t) {
|
|
1334
1349
|
var n = typeof Symbol != "undefined" && e[Symbol.iterator] || e["@@iterator"];
|
|
1335
1350
|
if (n)
|
|
1336
1351
|
return (n = n.call(e)).next.bind(n);
|
|
1337
|
-
if (Array.isArray(e) || (n =
|
|
1352
|
+
if (Array.isArray(e) || (n = Tr(e)) || t && e && typeof e.length == "number") {
|
|
1338
1353
|
n && (e = n);
|
|
1339
1354
|
var i = 0;
|
|
1340
1355
|
return function() {
|
|
@@ -1365,17 +1380,17 @@ function Vr(e) {
|
|
|
1365
1380
|
var t = Pr(e, "string");
|
|
1366
1381
|
return typeof t == "symbol" ? t : String(t);
|
|
1367
1382
|
}
|
|
1368
|
-
var
|
|
1369
|
-
function
|
|
1383
|
+
var _e = /* @__PURE__ */ Symbol("mobx-stored-annotations");
|
|
1384
|
+
function X(e) {
|
|
1370
1385
|
function t(n, i) {
|
|
1371
|
-
|
|
1386
|
+
Ue(n, i, e);
|
|
1372
1387
|
}
|
|
1373
1388
|
return Object.assign(t, e);
|
|
1374
1389
|
}
|
|
1375
|
-
function
|
|
1376
|
-
|
|
1390
|
+
function Ue(e, t, n) {
|
|
1391
|
+
ae(e, _e) || ht(e, _e, Pe({}, e[_e])), Gr(n) || (e[_e][t] = n);
|
|
1377
1392
|
}
|
|
1378
|
-
var
|
|
1393
|
+
var k = /* @__PURE__ */ Symbol("mobx administration"), Ge = /* @__PURE__ */ function() {
|
|
1379
1394
|
function e(n) {
|
|
1380
1395
|
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
1396
|
}
|
|
@@ -1389,25 +1404,25 @@ var _ = /* @__PURE__ */ Symbol("mobx administration"), Ge = /* @__PURE__ */ func
|
|
|
1389
1404
|
return i();
|
|
1390
1405
|
});
|
|
1391
1406
|
}, t.reportObserved = function() {
|
|
1392
|
-
return
|
|
1407
|
+
return Si(this);
|
|
1393
1408
|
}, t.reportChanged = function() {
|
|
1394
|
-
L(),
|
|
1409
|
+
L(), bi(this), f.stateVersion = f.stateVersion < Number.MAX_SAFE_INTEGER ? f.stateVersion + 1 : Number.MIN_SAFE_INTEGER, M();
|
|
1395
1410
|
}, t.toString = function() {
|
|
1396
1411
|
return this.name_;
|
|
1397
1412
|
}, e;
|
|
1398
1413
|
}(), qt = /* @__PURE__ */ ce("Atom", Ge);
|
|
1399
|
-
function
|
|
1414
|
+
function ti(e, t, n) {
|
|
1400
1415
|
t === void 0 && (t = pe), n === void 0 && (n = pe);
|
|
1401
1416
|
var i = new Ge(e);
|
|
1402
|
-
return t !== pe &&
|
|
1417
|
+
return t !== pe && Bs(i, t), n !== pe && Ci(i, n), i;
|
|
1403
1418
|
}
|
|
1404
1419
|
function Ir(e, t) {
|
|
1405
1420
|
return e === t;
|
|
1406
1421
|
}
|
|
1407
|
-
function
|
|
1422
|
+
function xr(e, t) {
|
|
1408
1423
|
return en(e, t);
|
|
1409
1424
|
}
|
|
1410
|
-
function
|
|
1425
|
+
function jr(e, t) {
|
|
1411
1426
|
return en(e, t, 1);
|
|
1412
1427
|
}
|
|
1413
1428
|
function Lr(e, t) {
|
|
@@ -1415,9 +1430,9 @@ function Lr(e, t) {
|
|
|
1415
1430
|
}
|
|
1416
1431
|
var be = {
|
|
1417
1432
|
identity: Ir,
|
|
1418
|
-
structural:
|
|
1433
|
+
structural: xr,
|
|
1419
1434
|
default: Lr,
|
|
1420
|
-
shallow:
|
|
1435
|
+
shallow: jr
|
|
1421
1436
|
};
|
|
1422
1437
|
function ge(e, t, n) {
|
|
1423
1438
|
return $e(e) ? e : Array.isArray(e) ? V.array(e, {
|
|
@@ -1426,12 +1441,12 @@ function ge(e, t, n) {
|
|
|
1426
1441
|
name: n
|
|
1427
1442
|
}) : Oe(e) ? V.map(e, {
|
|
1428
1443
|
name: n
|
|
1429
|
-
}) :
|
|
1444
|
+
}) : Be(e) ? V.set(e, {
|
|
1430
1445
|
name: n
|
|
1431
|
-
}) : typeof e == "function" && !
|
|
1446
|
+
}) : typeof e == "function" && !Xt(e) && !lt(e) ? Xn(e) ? xe(e) : Ie(n, e) : e;
|
|
1432
1447
|
}
|
|
1433
1448
|
function Mr(e, t, n) {
|
|
1434
|
-
if (e == null ||
|
|
1449
|
+
if (e == null || je(e) || St(e) || fe(e) || Ee(e))
|
|
1435
1450
|
return e;
|
|
1436
1451
|
if (Array.isArray(e))
|
|
1437
1452
|
return V.array(e, {
|
|
@@ -1448,7 +1463,7 @@ function Mr(e, t, n) {
|
|
|
1448
1463
|
name: n,
|
|
1449
1464
|
deep: !1
|
|
1450
1465
|
});
|
|
1451
|
-
if (
|
|
1466
|
+
if (Be(e))
|
|
1452
1467
|
return V.set(e, {
|
|
1453
1468
|
name: n,
|
|
1454
1469
|
deep: !1
|
|
@@ -1457,51 +1472,51 @@ function Mr(e, t, n) {
|
|
|
1457
1472
|
function pt(e) {
|
|
1458
1473
|
return e;
|
|
1459
1474
|
}
|
|
1460
|
-
function
|
|
1475
|
+
function Br(e, t) {
|
|
1461
1476
|
return en(e, t) ? t : e;
|
|
1462
1477
|
}
|
|
1463
|
-
var
|
|
1478
|
+
var Ur = "override";
|
|
1464
1479
|
function Gr(e) {
|
|
1465
|
-
return e.annotationType_ ===
|
|
1480
|
+
return e.annotationType_ === Ur;
|
|
1466
1481
|
}
|
|
1467
|
-
function
|
|
1482
|
+
function Qe(e, t) {
|
|
1468
1483
|
return {
|
|
1469
1484
|
annotationType_: e,
|
|
1470
1485
|
options_: t,
|
|
1471
|
-
make_:
|
|
1472
|
-
extend_:
|
|
1486
|
+
make_: Qr,
|
|
1487
|
+
extend_: Kr
|
|
1473
1488
|
};
|
|
1474
1489
|
}
|
|
1475
|
-
function
|
|
1490
|
+
function Qr(e, t, n, i) {
|
|
1476
1491
|
var a;
|
|
1477
1492
|
if ((a = this.options_) != null && a.bound)
|
|
1478
1493
|
return this.extend_(e, t, n, !1) === null ? 0 : 1;
|
|
1479
1494
|
if (i === e.target_)
|
|
1480
1495
|
return this.extend_(e, t, n, !1) === null ? 0 : 2;
|
|
1481
|
-
if (
|
|
1496
|
+
if (Xt(n.value))
|
|
1482
1497
|
return 1;
|
|
1483
|
-
var r =
|
|
1484
|
-
return
|
|
1498
|
+
var r = ni(e, this, t, n, !1);
|
|
1499
|
+
return Z(i, t, r), 2;
|
|
1485
1500
|
}
|
|
1486
|
-
function
|
|
1487
|
-
var a =
|
|
1501
|
+
function Kr(e, t, n, i) {
|
|
1502
|
+
var a = ni(e, this, t, n);
|
|
1488
1503
|
return e.defineProperty_(t, a, i);
|
|
1489
1504
|
}
|
|
1490
|
-
function
|
|
1505
|
+
function zr(e, t, n, i) {
|
|
1491
1506
|
t.annotationType_, i.value;
|
|
1492
1507
|
}
|
|
1493
|
-
function
|
|
1508
|
+
function ni(e, t, n, i, a) {
|
|
1494
1509
|
var r, s, o, u, d, c, v;
|
|
1495
|
-
a === void 0 && (a = f.safeDescriptors),
|
|
1496
|
-
var
|
|
1510
|
+
a === void 0 && (a = f.safeDescriptors), zr(e, t, n, i);
|
|
1511
|
+
var S = i.value;
|
|
1497
1512
|
if ((r = t.options_) != null && r.bound) {
|
|
1498
1513
|
var F;
|
|
1499
|
-
|
|
1514
|
+
S = S.bind((F = e.proxy_) != null ? F : e.target_);
|
|
1500
1515
|
}
|
|
1501
1516
|
return {
|
|
1502
1517
|
value: Ne(
|
|
1503
1518
|
(s = (o = t.options_) == null ? void 0 : o.name) != null ? s : n.toString(),
|
|
1504
|
-
|
|
1519
|
+
S,
|
|
1505
1520
|
(u = (d = t.options_) == null ? void 0 : d.autoAction) != null ? u : !1,
|
|
1506
1521
|
// https://github.com/mobxjs/mobx/discussions/3140
|
|
1507
1522
|
(c = t.options_) != null && c.bound ? (v = e.proxy_) != null ? v : e.target_ : void 0
|
|
@@ -1516,7 +1531,7 @@ function ti(e, t, n, i, a) {
|
|
|
1516
1531
|
writable: !a
|
|
1517
1532
|
};
|
|
1518
1533
|
}
|
|
1519
|
-
function
|
|
1534
|
+
function ii(e, t) {
|
|
1520
1535
|
return {
|
|
1521
1536
|
annotationType_: e,
|
|
1522
1537
|
options_: t,
|
|
@@ -1528,24 +1543,24 @@ function $r(e, t, n, i) {
|
|
|
1528
1543
|
var a;
|
|
1529
1544
|
if (i === e.target_)
|
|
1530
1545
|
return this.extend_(e, t, n, !1) === null ? 0 : 2;
|
|
1531
|
-
if ((a = this.options_) != null && a.bound && (!
|
|
1546
|
+
if ((a = this.options_) != null && a.bound && (!ae(e.target_, t) || !lt(e.target_[t])) && this.extend_(e, t, n, !1) === null)
|
|
1532
1547
|
return 0;
|
|
1533
1548
|
if (lt(n.value))
|
|
1534
1549
|
return 1;
|
|
1535
|
-
var r =
|
|
1536
|
-
return
|
|
1550
|
+
var r = ai(e, this, t, n, !1, !1);
|
|
1551
|
+
return Z(i, t, r), 2;
|
|
1537
1552
|
}
|
|
1538
1553
|
function qr(e, t, n, i) {
|
|
1539
|
-
var a, r =
|
|
1554
|
+
var a, r = ai(e, this, t, n, (a = this.options_) == null ? void 0 : a.bound);
|
|
1540
1555
|
return e.defineProperty_(t, r, i);
|
|
1541
1556
|
}
|
|
1542
1557
|
function Wr(e, t, n, i) {
|
|
1543
1558
|
t.annotationType_, i.value;
|
|
1544
1559
|
}
|
|
1545
|
-
function
|
|
1560
|
+
function ai(e, t, n, i, a, r) {
|
|
1546
1561
|
r === void 0 && (r = f.safeDescriptors), Wr(e, t, n, i);
|
|
1547
1562
|
var s = i.value;
|
|
1548
|
-
if (lt(s) || (s =
|
|
1563
|
+
if (lt(s) || (s = xe(s)), a) {
|
|
1549
1564
|
var o;
|
|
1550
1565
|
s = s.bind((o = e.proxy_) != null ? o : e.target_), s.isMobXFlow = !0;
|
|
1551
1566
|
}
|
|
@@ -1565,31 +1580,31 @@ function Wt(e, t) {
|
|
|
1565
1580
|
return {
|
|
1566
1581
|
annotationType_: e,
|
|
1567
1582
|
options_: t,
|
|
1568
|
-
make_:
|
|
1569
|
-
extend_:
|
|
1583
|
+
make_: Zr,
|
|
1584
|
+
extend_: Xr
|
|
1570
1585
|
};
|
|
1571
1586
|
}
|
|
1572
|
-
function
|
|
1587
|
+
function Zr(e, t, n) {
|
|
1573
1588
|
return this.extend_(e, t, n, !1) === null ? 0 : 1;
|
|
1574
1589
|
}
|
|
1575
|
-
function
|
|
1576
|
-
return
|
|
1590
|
+
function Xr(e, t, n, i) {
|
|
1591
|
+
return Hr(e, this, t, n), e.defineComputedProperty_(t, Pe({}, this.options_, {
|
|
1577
1592
|
get: n.get,
|
|
1578
1593
|
set: n.set
|
|
1579
1594
|
}), i);
|
|
1580
1595
|
}
|
|
1581
|
-
function
|
|
1596
|
+
function Hr(e, t, n, i) {
|
|
1582
1597
|
t.annotationType_, i.get;
|
|
1583
1598
|
}
|
|
1584
|
-
function
|
|
1599
|
+
function kt(e, t) {
|
|
1585
1600
|
return {
|
|
1586
1601
|
annotationType_: e,
|
|
1587
1602
|
options_: t,
|
|
1588
|
-
make_:
|
|
1603
|
+
make_: Jr,
|
|
1589
1604
|
extend_: Yr
|
|
1590
1605
|
};
|
|
1591
1606
|
}
|
|
1592
|
-
function
|
|
1607
|
+
function Jr(e, t, n) {
|
|
1593
1608
|
return this.extend_(e, t, n, !1) === null ? 0 : 1;
|
|
1594
1609
|
}
|
|
1595
1610
|
function Yr(e, t, n, i) {
|
|
@@ -1599,8 +1614,8 @@ function Yr(e, t, n, i) {
|
|
|
1599
1614
|
function es(e, t, n, i) {
|
|
1600
1615
|
t.annotationType_;
|
|
1601
1616
|
}
|
|
1602
|
-
var ts = "true", ns = /* @__PURE__ */
|
|
1603
|
-
function
|
|
1617
|
+
var ts = "true", ns = /* @__PURE__ */ ri();
|
|
1618
|
+
function ri(e) {
|
|
1604
1619
|
return {
|
|
1605
1620
|
annotationType_: ts,
|
|
1606
1621
|
options_: e,
|
|
@@ -1611,21 +1626,21 @@ function ai(e) {
|
|
|
1611
1626
|
function is(e, t, n, i) {
|
|
1612
1627
|
var a, r;
|
|
1613
1628
|
if (n.get)
|
|
1614
|
-
return
|
|
1629
|
+
return _t.make_(e, t, n, i);
|
|
1615
1630
|
if (n.set) {
|
|
1616
1631
|
var s = Ne(t.toString(), n.set);
|
|
1617
1632
|
return i === e.target_ ? e.defineProperty_(t, {
|
|
1618
1633
|
configurable: f.safeDescriptors ? e.isPlainObject_ : !0,
|
|
1619
1634
|
set: s
|
|
1620
|
-
}) === null ? 0 : 2 : (
|
|
1635
|
+
}) === null ? 0 : 2 : (Z(i, t, {
|
|
1621
1636
|
configurable: !0,
|
|
1622
1637
|
set: s
|
|
1623
1638
|
}), 2);
|
|
1624
1639
|
}
|
|
1625
1640
|
if (i !== e.target_ && typeof n.value == "function") {
|
|
1626
1641
|
var o;
|
|
1627
|
-
if (
|
|
1628
|
-
var u, d = (u = this.options_) != null && u.autoBind ?
|
|
1642
|
+
if (Xn(n.value)) {
|
|
1643
|
+
var u, d = (u = this.options_) != null && u.autoBind ? xe.bound : xe;
|
|
1629
1644
|
return d.make_(e, t, n, i);
|
|
1630
1645
|
}
|
|
1631
1646
|
var c = (o = this.options_) != null && o.autoBind ? Ie.bound : Ie;
|
|
@@ -1633,15 +1648,15 @@ function is(e, t, n, i) {
|
|
|
1633
1648
|
}
|
|
1634
1649
|
var v = ((a = this.options_) == null ? void 0 : a.deep) === !1 ? V.ref : V;
|
|
1635
1650
|
if (typeof n.value == "function" && (r = this.options_) != null && r.autoBind) {
|
|
1636
|
-
var
|
|
1637
|
-
n.value = n.value.bind((
|
|
1651
|
+
var S;
|
|
1652
|
+
n.value = n.value.bind((S = e.proxy_) != null ? S : e.target_);
|
|
1638
1653
|
}
|
|
1639
1654
|
return v.make_(e, t, n, i);
|
|
1640
1655
|
}
|
|
1641
1656
|
function as(e, t, n, i) {
|
|
1642
1657
|
var a, r;
|
|
1643
1658
|
if (n.get)
|
|
1644
|
-
return
|
|
1659
|
+
return _t.extend_(e, t, n, i);
|
|
1645
1660
|
if (n.set)
|
|
1646
1661
|
return e.defineProperty_(t, {
|
|
1647
1662
|
configurable: f.safeDescriptors ? e.isPlainObject_ : !0,
|
|
@@ -1654,79 +1669,79 @@ function as(e, t, n, i) {
|
|
|
1654
1669
|
var o = ((r = this.options_) == null ? void 0 : r.deep) === !1 ? V.ref : V;
|
|
1655
1670
|
return o.extend_(e, t, n, i);
|
|
1656
1671
|
}
|
|
1657
|
-
var rs = "observable", ss = "observable.ref", os = "observable.shallow", us = "observable.struct",
|
|
1672
|
+
var rs = "observable", ss = "observable.ref", os = "observable.shallow", us = "observable.struct", si = {
|
|
1658
1673
|
deep: !0,
|
|
1659
1674
|
name: void 0,
|
|
1660
1675
|
defaultDecorator: void 0,
|
|
1661
1676
|
proxy: !0
|
|
1662
1677
|
};
|
|
1663
|
-
Object.freeze(
|
|
1664
|
-
function
|
|
1665
|
-
return e ||
|
|
1678
|
+
Object.freeze(si);
|
|
1679
|
+
function Je(e) {
|
|
1680
|
+
return e || si;
|
|
1666
1681
|
}
|
|
1667
|
-
var
|
|
1682
|
+
var oi = /* @__PURE__ */ kt(rs), ls = /* @__PURE__ */ kt(ss, {
|
|
1668
1683
|
enhancer: pt
|
|
1669
|
-
}), ds = /* @__PURE__ */
|
|
1684
|
+
}), ds = /* @__PURE__ */ kt(os, {
|
|
1670
1685
|
enhancer: Mr
|
|
1671
|
-
}), cs = /* @__PURE__ */
|
|
1672
|
-
enhancer:
|
|
1673
|
-
}),
|
|
1686
|
+
}), cs = /* @__PURE__ */ kt(us, {
|
|
1687
|
+
enhancer: Br
|
|
1688
|
+
}), ui = /* @__PURE__ */ X(oi);
|
|
1674
1689
|
function Ye(e) {
|
|
1675
1690
|
return e.deep === !0 ? ge : e.deep === !1 ? pt : ms(e.defaultDecorator);
|
|
1676
1691
|
}
|
|
1677
1692
|
function fs(e) {
|
|
1678
1693
|
var t;
|
|
1679
|
-
return e ? (t = e.defaultDecorator) != null ? t :
|
|
1694
|
+
return e ? (t = e.defaultDecorator) != null ? t : ri(e) : void 0;
|
|
1680
1695
|
}
|
|
1681
1696
|
function ms(e) {
|
|
1682
1697
|
var t, n;
|
|
1683
1698
|
return e && (t = (n = e.options_) == null ? void 0 : n.enhancer) != null ? t : ge;
|
|
1684
1699
|
}
|
|
1685
|
-
function
|
|
1700
|
+
function li(e, t, n) {
|
|
1686
1701
|
if (le(t)) {
|
|
1687
|
-
|
|
1702
|
+
Ue(e, t, oi);
|
|
1688
1703
|
return;
|
|
1689
1704
|
}
|
|
1690
|
-
return $e(e) ? e : Y(e) ? V.object(e, t, n) : Array.isArray(e) ? V.array(e, t) : Oe(e) ? V.map(e, t) :
|
|
1705
|
+
return $e(e) ? e : Y(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
1706
|
}
|
|
1692
|
-
|
|
1707
|
+
qn(li, ui);
|
|
1693
1708
|
var vs = {
|
|
1694
1709
|
box: function(t, n) {
|
|
1695
|
-
var i =
|
|
1710
|
+
var i = Je(n);
|
|
1696
1711
|
return new ye(t, Ye(i), i.name, !0, i.equals);
|
|
1697
1712
|
},
|
|
1698
1713
|
array: function(t, n) {
|
|
1699
|
-
var i =
|
|
1700
|
-
return (f.useProxies === !1 || i.proxy === !1 ? so :
|
|
1714
|
+
var i = Je(n);
|
|
1715
|
+
return (f.useProxies === !1 || i.proxy === !1 ? so : Hs)(t, Ye(i), i.name);
|
|
1701
1716
|
},
|
|
1702
1717
|
map: function(t, n) {
|
|
1703
|
-
var i =
|
|
1704
|
-
return new
|
|
1718
|
+
var i = Je(n);
|
|
1719
|
+
return new xi(t, Ye(i), i.name);
|
|
1705
1720
|
},
|
|
1706
1721
|
set: function(t, n) {
|
|
1707
|
-
var i =
|
|
1708
|
-
return new
|
|
1722
|
+
var i = Je(n);
|
|
1723
|
+
return new Mi(t, Ye(i), i.name);
|
|
1709
1724
|
},
|
|
1710
1725
|
object: function(t, n, i) {
|
|
1711
|
-
return
|
|
1726
|
+
return Di(f.useProxies === !1 || (i == null ? void 0 : i.proxy) === !1 ? bt({}, i) : qs({}, i), t, n);
|
|
1712
1727
|
},
|
|
1713
|
-
ref: /* @__PURE__ */
|
|
1714
|
-
shallow: /* @__PURE__ */
|
|
1715
|
-
deep:
|
|
1716
|
-
struct: /* @__PURE__ */
|
|
1717
|
-
}, V = /* @__PURE__ */
|
|
1728
|
+
ref: /* @__PURE__ */ X(ls),
|
|
1729
|
+
shallow: /* @__PURE__ */ X(ds),
|
|
1730
|
+
deep: ui,
|
|
1731
|
+
struct: /* @__PURE__ */ X(cs)
|
|
1732
|
+
}, V = /* @__PURE__ */ qn(li, vs), di = "computed", hs = "computed.struct", ci = /* @__PURE__ */ Wt(di), ps = /* @__PURE__ */ Wt(hs, {
|
|
1718
1733
|
equals: be.structural
|
|
1719
|
-
}),
|
|
1734
|
+
}), _t = function(t, n) {
|
|
1720
1735
|
if (le(n))
|
|
1721
|
-
return
|
|
1736
|
+
return Ue(t, n, ci);
|
|
1722
1737
|
if (Y(t))
|
|
1723
|
-
return
|
|
1738
|
+
return X(Wt(di, t));
|
|
1724
1739
|
var i = Y(n) ? n : {};
|
|
1725
1740
|
return i.get = t, i.name || (i.name = t.name || ""), new Ve(i);
|
|
1726
1741
|
};
|
|
1727
|
-
Object.assign(
|
|
1728
|
-
|
|
1729
|
-
var bn, gn, rt = 0,
|
|
1742
|
+
Object.assign(_t, ci);
|
|
1743
|
+
_t.struct = /* @__PURE__ */ X(ps);
|
|
1744
|
+
var bn, gn, rt = 0, ks = 1, _s = (bn = (gn = /* @__PURE__ */ at(function() {
|
|
1730
1745
|
}, "name")) == null ? void 0 : gn.configurable) != null ? bn : !1, Nn = {
|
|
1731
1746
|
value: "action",
|
|
1732
1747
|
configurable: !0,
|
|
@@ -1738,7 +1753,7 @@ function Ne(e, t, n, i) {
|
|
|
1738
1753
|
function a() {
|
|
1739
1754
|
return ys(e, n, t, i || this, arguments);
|
|
1740
1755
|
}
|
|
1741
|
-
return a.isMobxAction = !0,
|
|
1756
|
+
return a.isMobxAction = !0, _s && (Nn.value = e, Z(a, "name", Nn)), a;
|
|
1742
1757
|
}
|
|
1743
1758
|
function ys(e, t, n, i, a) {
|
|
1744
1759
|
var r = Ss(e, t);
|
|
@@ -1754,41 +1769,41 @@ function Ss(e, t, n, i) {
|
|
|
1754
1769
|
var a = !1, r = 0, s = f.trackingDerivation, o = !t || !s;
|
|
1755
1770
|
L();
|
|
1756
1771
|
var u = f.allowStateChanges;
|
|
1757
|
-
o && (Ae(), u =
|
|
1758
|
-
var d =
|
|
1772
|
+
o && (Ae(), u = Ke(!0));
|
|
1773
|
+
var d = Zt(!0), c = {
|
|
1759
1774
|
runAsAction_: o,
|
|
1760
1775
|
prevDerivation_: s,
|
|
1761
1776
|
prevAllowStateChanges_: u,
|
|
1762
1777
|
prevAllowStateReads_: d,
|
|
1763
1778
|
notifySpy_: a,
|
|
1764
1779
|
startTime_: r,
|
|
1765
|
-
actionId_:
|
|
1780
|
+
actionId_: ks++,
|
|
1766
1781
|
parentActionId_: rt
|
|
1767
1782
|
};
|
|
1768
1783
|
return rt = c.actionId_, c;
|
|
1769
1784
|
}
|
|
1770
1785
|
function bs(e) {
|
|
1771
|
-
rt !== e.actionId_ && N(30), rt = e.parentActionId_, e.error_ !== void 0 && (f.suppressReactionErrors = !0),
|
|
1786
|
+
rt !== e.actionId_ && N(30), rt = e.parentActionId_, e.error_ !== void 0 && (f.suppressReactionErrors = !0), ze(e.prevAllowStateChanges_), we(e.prevAllowStateReads_), M(), e.runAsAction_ && re(e.prevDerivation_), f.suppressReactionErrors = !1;
|
|
1772
1787
|
}
|
|
1773
|
-
function
|
|
1774
|
-
var n =
|
|
1788
|
+
function fi(e, t) {
|
|
1789
|
+
var n = Ke(e);
|
|
1775
1790
|
try {
|
|
1776
1791
|
return t();
|
|
1777
1792
|
} finally {
|
|
1778
|
-
|
|
1793
|
+
ze(n);
|
|
1779
1794
|
}
|
|
1780
1795
|
}
|
|
1781
|
-
function
|
|
1796
|
+
function Ke(e) {
|
|
1782
1797
|
var t = f.allowStateChanges;
|
|
1783
1798
|
return f.allowStateChanges = e, t;
|
|
1784
1799
|
}
|
|
1785
|
-
function
|
|
1800
|
+
function ze(e) {
|
|
1786
1801
|
f.allowStateChanges = e;
|
|
1787
1802
|
}
|
|
1788
|
-
var
|
|
1789
|
-
|
|
1803
|
+
var mi;
|
|
1804
|
+
mi = Symbol.toPrimitive;
|
|
1790
1805
|
var ye = /* @__PURE__ */ function(e) {
|
|
1791
|
-
|
|
1806
|
+
ei(t, e);
|
|
1792
1807
|
function t(i, a, r, s, o) {
|
|
1793
1808
|
var u;
|
|
1794
1809
|
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;
|
|
@@ -1800,9 +1815,9 @@ var ye = /* @__PURE__ */ function(e) {
|
|
|
1800
1815
|
this.value_, a = this.prepareNewValue_(a), a !== f.UNCHANGED && this.setNewValue_(a);
|
|
1801
1816
|
}, n.prepareNewValue_ = function(a) {
|
|
1802
1817
|
if (U(this)) {
|
|
1803
|
-
var r =
|
|
1818
|
+
var r = G(this, {
|
|
1804
1819
|
object: this,
|
|
1805
|
-
type:
|
|
1820
|
+
type: H,
|
|
1806
1821
|
newValue: a
|
|
1807
1822
|
});
|
|
1808
1823
|
if (!r)
|
|
@@ -1812,8 +1827,8 @@ var ye = /* @__PURE__ */ function(e) {
|
|
|
1812
1827
|
return a = this.enhancer(a, this.value_, this.name_), this.equals(this.value_, a) ? f.UNCHANGED : a;
|
|
1813
1828
|
}, n.setNewValue_ = function(a) {
|
|
1814
1829
|
var r = this.value_;
|
|
1815
|
-
this.value_ = a, this.reportChanged(),
|
|
1816
|
-
type:
|
|
1830
|
+
this.value_ = a, this.reportChanged(), z(this) && $(this, {
|
|
1831
|
+
type: H,
|
|
1817
1832
|
object: this,
|
|
1818
1833
|
newValue: a,
|
|
1819
1834
|
oldValue: r
|
|
@@ -1827,7 +1842,7 @@ var ye = /* @__PURE__ */ function(e) {
|
|
|
1827
1842
|
observableKind: "value",
|
|
1828
1843
|
debugObjectName: this.name_,
|
|
1829
1844
|
object: this,
|
|
1830
|
-
type:
|
|
1845
|
+
type: H,
|
|
1831
1846
|
newValue: this.value_,
|
|
1832
1847
|
oldValue: void 0
|
|
1833
1848
|
}), We(this, a);
|
|
@@ -1838,12 +1853,12 @@ var ye = /* @__PURE__ */ function(e) {
|
|
|
1838
1853
|
}, n.toString = function() {
|
|
1839
1854
|
return this.name_ + "[" + this.value_ + "]";
|
|
1840
1855
|
}, n.valueOf = function() {
|
|
1841
|
-
return
|
|
1842
|
-
}, n[
|
|
1856
|
+
return Yn(this.get());
|
|
1857
|
+
}, n[mi] = function() {
|
|
1843
1858
|
return this.valueOf();
|
|
1844
1859
|
}, t;
|
|
1845
|
-
}(Ge),
|
|
1846
|
-
|
|
1860
|
+
}(Ge), vi;
|
|
1861
|
+
vi = Symbol.toPrimitive;
|
|
1847
1862
|
var Ve = /* @__PURE__ */ function() {
|
|
1848
1863
|
function e(n) {
|
|
1849
1864
|
this.dependenciesState_ = g.NOT_TRACKING_, this.observing_ = [], this.newObserving_ = null, this.isBeingObserved_ = !1, this.isPendingUnobservation_ = !1, this.observers_ = /* @__PURE__ */ new Set(), this.diffValue_ = 0, this.runId_ = 0, this.lastAccessedBy_ = 0, this.lowestObserverState_ = g.UP_TO_DATE_, this.unboundDepsCount_ = 0, this.value_ = new st(null), this.name_ = void 0, this.triggeredBy_ = void 0, this.isComputing_ = !1, this.isRunningSetter_ = !1, this.derivation = void 0, this.setter_ = void 0, this.isTracing_ = ue.NONE, this.scope_ = void 0, this.equals_ = void 0, this.requiresReaction_ = void 0, this.keepAlive_ = void 0, this.onBOL = void 0, this.onBUOL = void 0, n.get || N(31), this.derivation = n.get, this.name_ = n.name || "ComputedValue", n.set && (this.setter_ = Ne("ComputedValue-setter", n.set)), this.equals_ = n.equals || (n.compareStructural || n.struct ? be.structural : be.default), this.scope_ = n.context, this.requiresReaction_ = n.requiresReaction, this.keepAlive_ = !!n.keepAlive;
|
|
@@ -1862,8 +1877,8 @@ var Ve = /* @__PURE__ */ function() {
|
|
|
1862
1877
|
}, t.get = function() {
|
|
1863
1878
|
if (this.isComputing_ && N(32, this.name_, this.derivation), f.inBatch === 0 && // !globalState.trackingDerivatpion &&
|
|
1864
1879
|
this.observers_.size === 0 && !this.keepAlive_)
|
|
1865
|
-
|
|
1866
|
-
else if (
|
|
1880
|
+
xt(this) && (this.warnAboutUntrackedRead_(), L(), this.value_ = this.computeValue_(!1), M());
|
|
1881
|
+
else if (Si(this), xt(this)) {
|
|
1867
1882
|
var i = f.trackingContext;
|
|
1868
1883
|
this.keepAlive_ && !i && (f.trackingContext = this), this.trackAndCompute() && Os(this), f.trackingContext = i;
|
|
1869
1884
|
}
|
|
@@ -1889,9 +1904,9 @@ var Ve = /* @__PURE__ */ function() {
|
|
|
1889
1904
|
return s && (this.value_ = r), s;
|
|
1890
1905
|
}, t.computeValue_ = function(i) {
|
|
1891
1906
|
this.isComputing_ = !0;
|
|
1892
|
-
var a =
|
|
1907
|
+
var a = Ke(!1), r;
|
|
1893
1908
|
if (i)
|
|
1894
|
-
r =
|
|
1909
|
+
r = hi(this, this.derivation, this.scope_);
|
|
1895
1910
|
else if (f.disableErrorBoundaries === !0)
|
|
1896
1911
|
r = this.derivation.call(this.scope_);
|
|
1897
1912
|
else
|
|
@@ -1900,23 +1915,23 @@ var Ve = /* @__PURE__ */ function() {
|
|
|
1900
1915
|
} catch (s) {
|
|
1901
1916
|
r = new st(s);
|
|
1902
1917
|
}
|
|
1903
|
-
return
|
|
1918
|
+
return ze(a), this.isComputing_ = !1, r;
|
|
1904
1919
|
}, t.suspend_ = function() {
|
|
1905
|
-
this.keepAlive_ || (
|
|
1920
|
+
this.keepAlive_ || (jt(this), this.value_ = void 0);
|
|
1906
1921
|
}, t.observe_ = function(i, a) {
|
|
1907
1922
|
var r = this, s = !0, o = void 0;
|
|
1908
|
-
return
|
|
1923
|
+
return Ht(function() {
|
|
1909
1924
|
var u = r.get();
|
|
1910
1925
|
if (!s || a) {
|
|
1911
1926
|
var d = Ae();
|
|
1912
1927
|
i({
|
|
1913
1928
|
observableKind: "computed",
|
|
1914
1929
|
debugObjectName: r.name_,
|
|
1915
|
-
type:
|
|
1930
|
+
type: H,
|
|
1916
1931
|
object: r,
|
|
1917
1932
|
newValue: u,
|
|
1918
1933
|
oldValue: o
|
|
1919
|
-
}),
|
|
1934
|
+
}), re(d);
|
|
1920
1935
|
}
|
|
1921
1936
|
s = !1, o = u;
|
|
1922
1937
|
});
|
|
@@ -1924,8 +1939,8 @@ var Ve = /* @__PURE__ */ function() {
|
|
|
1924
1939
|
}, t.toString = function() {
|
|
1925
1940
|
return this.name_ + "[" + this.derivation.toString() + "]";
|
|
1926
1941
|
}, t.valueOf = function() {
|
|
1927
|
-
return
|
|
1928
|
-
}, t[
|
|
1942
|
+
return Yn(this.get());
|
|
1943
|
+
}, t[vi] = function() {
|
|
1929
1944
|
return this.valueOf();
|
|
1930
1945
|
}, e;
|
|
1931
1946
|
}(), yt = /* @__PURE__ */ ce("ComputedValue", Ve), g;
|
|
@@ -1942,7 +1957,7 @@ var st = function(t) {
|
|
|
1942
1957
|
function et(e) {
|
|
1943
1958
|
return e instanceof st;
|
|
1944
1959
|
}
|
|
1945
|
-
function
|
|
1960
|
+
function xt(e) {
|
|
1946
1961
|
switch (e.dependenciesState_) {
|
|
1947
1962
|
case g.UP_TO_DATE_:
|
|
1948
1963
|
return !1;
|
|
@@ -1950,7 +1965,7 @@ function jt(e) {
|
|
|
1950
1965
|
case g.STALE_:
|
|
1951
1966
|
return !0;
|
|
1952
1967
|
case g.POSSIBLY_STALE_: {
|
|
1953
|
-
for (var t =
|
|
1968
|
+
for (var t = Zt(!0), n = Ae(), i = e.observing_, a = i.length, r = 0; r < a; r++) {
|
|
1954
1969
|
var s = i[r];
|
|
1955
1970
|
if (yt(s)) {
|
|
1956
1971
|
if (f.disableErrorBoundaries)
|
|
@@ -1959,19 +1974,19 @@ function jt(e) {
|
|
|
1959
1974
|
try {
|
|
1960
1975
|
s.get();
|
|
1961
1976
|
} catch (o) {
|
|
1962
|
-
return
|
|
1977
|
+
return re(n), we(t), !0;
|
|
1963
1978
|
}
|
|
1964
1979
|
if (e.dependenciesState_ === g.STALE_)
|
|
1965
|
-
return
|
|
1980
|
+
return re(n), we(t), !0;
|
|
1966
1981
|
}
|
|
1967
1982
|
}
|
|
1968
|
-
return
|
|
1983
|
+
return ki(e), re(n), we(t), !1;
|
|
1969
1984
|
}
|
|
1970
1985
|
}
|
|
1971
1986
|
}
|
|
1972
|
-
function
|
|
1973
|
-
var i =
|
|
1974
|
-
|
|
1987
|
+
function hi(e, t, n) {
|
|
1988
|
+
var i = Zt(!0);
|
|
1989
|
+
ki(e), e.newObserving_ = new Array(e.observing_.length + 100), e.unboundDepsCount_ = 0, e.runId_ = ++f.runId;
|
|
1975
1990
|
var a = f.trackingDerivation;
|
|
1976
1991
|
f.trackingDerivation = e, f.inBatch++;
|
|
1977
1992
|
var r;
|
|
@@ -1983,7 +1998,7 @@ function vi(e, t, n) {
|
|
|
1983
1998
|
} catch (s) {
|
|
1984
1999
|
r = new st(s);
|
|
1985
2000
|
}
|
|
1986
|
-
return f.inBatch--, f.trackingDerivation = a, gs(e),
|
|
2001
|
+
return f.inBatch--, f.trackingDerivation = a, gs(e), we(i), r;
|
|
1987
2002
|
}
|
|
1988
2003
|
function gs(e) {
|
|
1989
2004
|
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++) {
|
|
@@ -2000,36 +2015,36 @@ function gs(e) {
|
|
|
2000
2015
|
}
|
|
2001
2016
|
i !== g.UP_TO_DATE_ && (e.dependenciesState_ = i, e.onBecomeStale_());
|
|
2002
2017
|
}
|
|
2003
|
-
function
|
|
2018
|
+
function jt(e) {
|
|
2004
2019
|
var t = e.observing_;
|
|
2005
2020
|
e.observing_ = [];
|
|
2006
2021
|
for (var n = t.length; n--; )
|
|
2007
2022
|
_i(t[n], e);
|
|
2008
2023
|
e.dependenciesState_ = g.NOT_TRACKING_;
|
|
2009
2024
|
}
|
|
2010
|
-
function
|
|
2025
|
+
function pi(e) {
|
|
2011
2026
|
var t = Ae();
|
|
2012
2027
|
try {
|
|
2013
2028
|
return e();
|
|
2014
2029
|
} finally {
|
|
2015
|
-
|
|
2030
|
+
re(t);
|
|
2016
2031
|
}
|
|
2017
2032
|
}
|
|
2018
2033
|
function Ae() {
|
|
2019
2034
|
var e = f.trackingDerivation;
|
|
2020
2035
|
return f.trackingDerivation = null, e;
|
|
2021
2036
|
}
|
|
2022
|
-
function
|
|
2037
|
+
function re(e) {
|
|
2023
2038
|
f.trackingDerivation = e;
|
|
2024
2039
|
}
|
|
2025
|
-
function
|
|
2040
|
+
function Zt(e) {
|
|
2026
2041
|
var t = f.allowStateReads;
|
|
2027
2042
|
return f.allowStateReads = e, t;
|
|
2028
2043
|
}
|
|
2029
|
-
function
|
|
2044
|
+
function we(e) {
|
|
2030
2045
|
f.allowStateReads = e;
|
|
2031
2046
|
}
|
|
2032
|
-
function
|
|
2047
|
+
function ki(e) {
|
|
2033
2048
|
if (e.dependenciesState_ !== g.UP_TO_DATE_) {
|
|
2034
2049
|
e.dependenciesState_ = g.UP_TO_DATE_;
|
|
2035
2050
|
for (var t = e.observing_, n = t.length; n--; )
|
|
@@ -2038,9 +2053,9 @@ function pi(e) {
|
|
|
2038
2053
|
}
|
|
2039
2054
|
var Ct = function() {
|
|
2040
2055
|
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 && (
|
|
2056
|
+
}, wt = !0, f = /* @__PURE__ */ function() {
|
|
2057
|
+
var e = /* @__PURE__ */ $n();
|
|
2058
|
+
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
2059
|
N(35);
|
|
2045
2060
|
}, 1), new Ct());
|
|
2046
2061
|
}();
|
|
@@ -2048,9 +2063,9 @@ function Ns(e, t) {
|
|
|
2048
2063
|
e.observers_.add(t), e.lowestObserverState_ > t.dependenciesState_ && (e.lowestObserverState_ = t.dependenciesState_);
|
|
2049
2064
|
}
|
|
2050
2065
|
function _i(e, t) {
|
|
2051
|
-
e.observers_.delete(t), e.observers_.size === 0 &&
|
|
2066
|
+
e.observers_.delete(t), e.observers_.size === 0 && yi(e);
|
|
2052
2067
|
}
|
|
2053
|
-
function
|
|
2068
|
+
function yi(e) {
|
|
2054
2069
|
e.isPendingUnobservation_ === !1 && (e.isPendingUnobservation_ = !0, f.pendingUnobservations.push(e));
|
|
2055
2070
|
}
|
|
2056
2071
|
function L() {
|
|
@@ -2058,7 +2073,7 @@ function L() {
|
|
|
2058
2073
|
}
|
|
2059
2074
|
function M() {
|
|
2060
2075
|
if (--f.inBatch === 0) {
|
|
2061
|
-
|
|
2076
|
+
gi();
|
|
2062
2077
|
for (var e = f.pendingUnobservations, t = 0; t < e.length; t++) {
|
|
2063
2078
|
var n = e[t];
|
|
2064
2079
|
n.isPendingUnobservation_ = !1, n.observers_.size === 0 && (n.isBeingObserved_ && (n.isBeingObserved_ = !1, n.onBUO()), n instanceof Ve && n.suspend_());
|
|
@@ -2066,11 +2081,11 @@ function M() {
|
|
|
2066
2081
|
f.pendingUnobservations = [];
|
|
2067
2082
|
}
|
|
2068
2083
|
}
|
|
2069
|
-
function
|
|
2084
|
+
function Si(e) {
|
|
2070
2085
|
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 &&
|
|
2086
|
+
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 && yi(e), !1);
|
|
2072
2087
|
}
|
|
2073
|
-
function
|
|
2088
|
+
function bi(e) {
|
|
2074
2089
|
e.lowestObserverState_ !== g.STALE_ && (e.lowestObserverState_ = g.STALE_, e.observers_.forEach(function(t) {
|
|
2075
2090
|
t.dependenciesState_ === g.UP_TO_DATE_ && t.onBecomeStale_(), t.dependenciesState_ = g.STALE_;
|
|
2076
2091
|
}));
|
|
@@ -2093,14 +2108,14 @@ var ot = /* @__PURE__ */ function() {
|
|
|
2093
2108
|
return t.onBecomeStale_ = function() {
|
|
2094
2109
|
this.schedule_();
|
|
2095
2110
|
}, t.schedule_ = function() {
|
|
2096
|
-
this.isScheduled_ || (this.isScheduled_ = !0, f.pendingReactions.push(this),
|
|
2111
|
+
this.isScheduled_ || (this.isScheduled_ = !0, f.pendingReactions.push(this), gi());
|
|
2097
2112
|
}, t.isScheduled = function() {
|
|
2098
2113
|
return this.isScheduled_;
|
|
2099
2114
|
}, t.runReaction_ = function() {
|
|
2100
2115
|
if (!this.isDisposed_) {
|
|
2101
2116
|
L(), this.isScheduled_ = !1;
|
|
2102
2117
|
var i = f.trackingContext;
|
|
2103
|
-
if (f.trackingContext = this,
|
|
2118
|
+
if (f.trackingContext = this, xt(this)) {
|
|
2104
2119
|
this.isTrackPending_ = !0;
|
|
2105
2120
|
try {
|
|
2106
2121
|
this.onInvalidate_();
|
|
@@ -2115,8 +2130,8 @@ var ot = /* @__PURE__ */ function() {
|
|
|
2115
2130
|
L(), this.isRunning_ = !0;
|
|
2116
2131
|
var a = f.trackingContext;
|
|
2117
2132
|
f.trackingContext = this;
|
|
2118
|
-
var r =
|
|
2119
|
-
f.trackingContext = a, this.isRunning_ = !1, this.isTrackPending_ = !1, this.isDisposed_ &&
|
|
2133
|
+
var r = hi(this, i, void 0);
|
|
2134
|
+
f.trackingContext = a, this.isRunning_ = !1, this.isTrackPending_ = !1, this.isDisposed_ && jt(this), et(r) && this.reportExceptionInDerivation_(r.cause), M();
|
|
2120
2135
|
}
|
|
2121
2136
|
}, t.reportExceptionInDerivation_ = function(i) {
|
|
2122
2137
|
var a = this;
|
|
@@ -2131,19 +2146,19 @@ var ot = /* @__PURE__ */ function() {
|
|
|
2131
2146
|
return s(i, a);
|
|
2132
2147
|
});
|
|
2133
2148
|
}, t.dispose = function() {
|
|
2134
|
-
this.isDisposed_ || (this.isDisposed_ = !0, this.isRunning_ || (L(),
|
|
2149
|
+
this.isDisposed_ || (this.isDisposed_ = !0, this.isRunning_ || (L(), jt(this), M()));
|
|
2135
2150
|
}, t.getDisposer_ = function() {
|
|
2136
2151
|
var i = this.dispose.bind(this);
|
|
2137
|
-
return i[
|
|
2152
|
+
return i[k] = this, i;
|
|
2138
2153
|
}, t.toString = function() {
|
|
2139
2154
|
return "Reaction[" + this.name_ + "]";
|
|
2140
2155
|
}, t.trace = function(i) {
|
|
2141
|
-
i === void 0 && (i = !1),
|
|
2156
|
+
i === void 0 && (i = !1), Ks(this, i);
|
|
2142
2157
|
}, e;
|
|
2143
2158
|
}(), Es = 100, Fs = function(t) {
|
|
2144
2159
|
return t();
|
|
2145
2160
|
};
|
|
2146
|
-
function
|
|
2161
|
+
function gi() {
|
|
2147
2162
|
f.inBatch > 0 || f.isRunningReactions || Fs(Rs);
|
|
2148
2163
|
}
|
|
2149
2164
|
function Rs() {
|
|
@@ -2156,56 +2171,56 @@ function Rs() {
|
|
|
2156
2171
|
f.isRunningReactions = !1;
|
|
2157
2172
|
}
|
|
2158
2173
|
var ut = /* @__PURE__ */ ce("Reaction", ot);
|
|
2159
|
-
function
|
|
2174
|
+
function De() {
|
|
2160
2175
|
return !1;
|
|
2161
2176
|
}
|
|
2162
2177
|
function Cs(e) {
|
|
2163
2178
|
return console.warn("[mobx.spy] Is a no-op in production builds"), function() {
|
|
2164
2179
|
};
|
|
2165
2180
|
}
|
|
2166
|
-
var
|
|
2181
|
+
var Ni = "action", ws = "action.bound", Oi = "autoAction", Ds = "autoAction.bound", Ts = "<unnamed action>", Ai = /* @__PURE__ */ Qe(Ni), Ps = /* @__PURE__ */ Qe(ws, {
|
|
2167
2182
|
bound: !0
|
|
2168
|
-
}),
|
|
2183
|
+
}), Ei = /* @__PURE__ */ Qe(Oi, {
|
|
2169
2184
|
autoAction: !0
|
|
2170
|
-
}), Vs = /* @__PURE__ */
|
|
2185
|
+
}), Vs = /* @__PURE__ */ Qe(Ds, {
|
|
2171
2186
|
autoAction: !0,
|
|
2172
2187
|
bound: !0
|
|
2173
2188
|
});
|
|
2174
|
-
function
|
|
2189
|
+
function Fi(e) {
|
|
2175
2190
|
var t = function(i, a) {
|
|
2176
2191
|
if (q(i))
|
|
2177
|
-
return Ne(i.name ||
|
|
2192
|
+
return Ne(i.name || Ts, i, e);
|
|
2178
2193
|
if (q(a))
|
|
2179
2194
|
return Ne(i, a, e);
|
|
2180
2195
|
if (le(a))
|
|
2181
|
-
return
|
|
2196
|
+
return Ue(i, a, e ? Ei : Ai);
|
|
2182
2197
|
if (le(i))
|
|
2183
|
-
return
|
|
2198
|
+
return X(Qe(e ? Oi : Ni, {
|
|
2184
2199
|
name: i,
|
|
2185
2200
|
autoAction: e
|
|
2186
2201
|
}));
|
|
2187
2202
|
};
|
|
2188
2203
|
return t;
|
|
2189
2204
|
}
|
|
2190
|
-
var oe = /* @__PURE__ */
|
|
2191
|
-
Object.assign(oe,
|
|
2192
|
-
var Ie = /* @__PURE__ */
|
|
2193
|
-
Object.assign(Ie,
|
|
2194
|
-
oe.bound = /* @__PURE__ */
|
|
2195
|
-
Ie.bound = /* @__PURE__ */
|
|
2196
|
-
function
|
|
2205
|
+
var oe = /* @__PURE__ */ Fi(!1);
|
|
2206
|
+
Object.assign(oe, Ai);
|
|
2207
|
+
var Ie = /* @__PURE__ */ Fi(!0);
|
|
2208
|
+
Object.assign(Ie, Ei);
|
|
2209
|
+
oe.bound = /* @__PURE__ */ X(Ps);
|
|
2210
|
+
Ie.bound = /* @__PURE__ */ X(Vs);
|
|
2211
|
+
function Xt(e) {
|
|
2197
2212
|
return q(e) && e.isMobxAction === !0;
|
|
2198
2213
|
}
|
|
2199
|
-
function
|
|
2214
|
+
function Ht(e, t) {
|
|
2200
2215
|
var n, i;
|
|
2201
|
-
t === void 0 && (t =
|
|
2216
|
+
t === void 0 && (t = zt);
|
|
2202
2217
|
var a = (n = (i = t) == null ? void 0 : i.name) != null ? n : "Autorun", r = !t.scheduler && !t.delay, s;
|
|
2203
2218
|
if (r)
|
|
2204
2219
|
s = new ot(a, function() {
|
|
2205
2220
|
this.track(d);
|
|
2206
2221
|
}, t.onError, t.requiresObservable);
|
|
2207
2222
|
else {
|
|
2208
|
-
var o =
|
|
2223
|
+
var o = Ri(t), u = !1;
|
|
2209
2224
|
s = new ot(a, function() {
|
|
2210
2225
|
u || (u = !0, o(function() {
|
|
2211
2226
|
u = !1, s.isDisposed_ || s.track(d);
|
|
@@ -2220,31 +2235,31 @@ function Xt(e, t) {
|
|
|
2220
2235
|
var Is = function(t) {
|
|
2221
2236
|
return t();
|
|
2222
2237
|
};
|
|
2223
|
-
function
|
|
2238
|
+
function Ri(e) {
|
|
2224
2239
|
return e.scheduler ? e.scheduler : e.delay ? function(t) {
|
|
2225
2240
|
return setTimeout(t, e.delay);
|
|
2226
2241
|
} : Is;
|
|
2227
2242
|
}
|
|
2228
|
-
function
|
|
2243
|
+
function xs(e, t, n) {
|
|
2229
2244
|
var i;
|
|
2230
|
-
n === void 0 && (n =
|
|
2231
|
-
var a = (i = n.name) != null ? i : "Reaction", r = oe(a, n.onError ?
|
|
2245
|
+
n === void 0 && (n = zt);
|
|
2246
|
+
var a = (i = n.name) != null ? i : "Reaction", r = oe(a, n.onError ? js(n.onError, t) : t), s = !n.scheduler && !n.delay, o = Ri(n), u = !0, d = !1, c, v, S = n.compareStructural ? be.structural : n.equals || be.default, F = new ot(a, function() {
|
|
2232
2247
|
u || s ? I() : d || (d = !0, o(I));
|
|
2233
2248
|
}, n.onError, n.requiresObservable);
|
|
2234
2249
|
function I() {
|
|
2235
2250
|
if (d = !1, !F.isDisposed_) {
|
|
2236
2251
|
var R = !1;
|
|
2237
2252
|
F.track(function() {
|
|
2238
|
-
var A =
|
|
2253
|
+
var A = fi(!1, function() {
|
|
2239
2254
|
return e(F);
|
|
2240
2255
|
});
|
|
2241
|
-
R = u || !
|
|
2256
|
+
R = u || !S(c, A), v = c, c = A;
|
|
2242
2257
|
}), (u && n.fireImmediately || !u && R) && r(c, v, F), u = !1;
|
|
2243
2258
|
}
|
|
2244
2259
|
}
|
|
2245
2260
|
return F.schedule_(), F.getDisposer_();
|
|
2246
2261
|
}
|
|
2247
|
-
function
|
|
2262
|
+
function js(e, t) {
|
|
2248
2263
|
return function() {
|
|
2249
2264
|
try {
|
|
2250
2265
|
return t.apply(this, arguments);
|
|
@@ -2254,24 +2269,24 @@ function xs(e, t) {
|
|
|
2254
2269
|
};
|
|
2255
2270
|
}
|
|
2256
2271
|
var Ls = "onBO", Ms = "onBUO";
|
|
2257
|
-
function
|
|
2258
|
-
return
|
|
2272
|
+
function Bs(e, t, n) {
|
|
2273
|
+
return wi(Ls, e, t, n);
|
|
2259
2274
|
}
|
|
2260
|
-
function
|
|
2261
|
-
return
|
|
2275
|
+
function Ci(e, t, n) {
|
|
2276
|
+
return wi(Ms, e, t, n);
|
|
2262
2277
|
}
|
|
2263
|
-
function
|
|
2278
|
+
function wi(e, t, n, i) {
|
|
2264
2279
|
var a = typeof i == "function" ? de(t, n) : de(t), r = q(i) ? i : n, s = e + "L";
|
|
2265
2280
|
return a[s] ? a[s].add(r) : a[s] = /* @__PURE__ */ new Set([r]), function() {
|
|
2266
2281
|
var o = a[s];
|
|
2267
2282
|
o && (o.delete(r), o.size === 0 && delete a[s]);
|
|
2268
2283
|
};
|
|
2269
2284
|
}
|
|
2270
|
-
function
|
|
2271
|
-
var a =
|
|
2285
|
+
function Di(e, t, n, i) {
|
|
2286
|
+
var a = Dr(t), r = bt(e, i)[k];
|
|
2272
2287
|
L();
|
|
2273
2288
|
try {
|
|
2274
|
-
|
|
2289
|
+
Te(a).forEach(function(s) {
|
|
2275
2290
|
r.extend_(
|
|
2276
2291
|
s,
|
|
2277
2292
|
a[s],
|
|
@@ -2284,54 +2299,54 @@ function Ti(e, t, n, i) {
|
|
|
2284
2299
|
}
|
|
2285
2300
|
return e;
|
|
2286
2301
|
}
|
|
2287
|
-
var
|
|
2288
|
-
function
|
|
2302
|
+
var Us = 0;
|
|
2303
|
+
function Ti() {
|
|
2289
2304
|
this.message = "FLOW_CANCELLED";
|
|
2290
2305
|
}
|
|
2291
|
-
|
|
2292
|
-
var On = /* @__PURE__ */
|
|
2306
|
+
Ti.prototype = /* @__PURE__ */ Object.create(Error.prototype);
|
|
2307
|
+
var On = /* @__PURE__ */ ii("flow"), Gs = /* @__PURE__ */ ii("flow.bound", {
|
|
2293
2308
|
bound: !0
|
|
2294
|
-
}),
|
|
2309
|
+
}), xe = /* @__PURE__ */ Object.assign(function(t, n) {
|
|
2295
2310
|
if (le(n))
|
|
2296
|
-
return
|
|
2311
|
+
return Ue(t, n, On);
|
|
2297
2312
|
var i = t, a = i.name || "<unnamed flow>", r = function() {
|
|
2298
|
-
var o = this, u = arguments, d = ++
|
|
2313
|
+
var o = this, u = arguments, d = ++Us, c = oe(a + " - runid: " + d + " - init", i).apply(o, u), v, S = void 0, F = new Promise(function(I, R) {
|
|
2299
2314
|
var A = 0;
|
|
2300
2315
|
v = R;
|
|
2301
|
-
function W(
|
|
2302
|
-
|
|
2303
|
-
var
|
|
2316
|
+
function W(w) {
|
|
2317
|
+
S = void 0;
|
|
2318
|
+
var x;
|
|
2304
2319
|
try {
|
|
2305
|
-
|
|
2306
|
-
} catch (
|
|
2307
|
-
return R(
|
|
2320
|
+
x = oe(a + " - runid: " + d + " - yield " + A++, c.next).call(c, w);
|
|
2321
|
+
} catch (j) {
|
|
2322
|
+
return R(j);
|
|
2308
2323
|
}
|
|
2309
|
-
C(
|
|
2324
|
+
C(x);
|
|
2310
2325
|
}
|
|
2311
|
-
function
|
|
2312
|
-
|
|
2313
|
-
var
|
|
2326
|
+
function K(w) {
|
|
2327
|
+
S = void 0;
|
|
2328
|
+
var x;
|
|
2314
2329
|
try {
|
|
2315
|
-
|
|
2316
|
-
} catch (
|
|
2317
|
-
return R(
|
|
2330
|
+
x = oe(a + " - runid: " + d + " - yield " + A++, c.throw).call(c, w);
|
|
2331
|
+
} catch (j) {
|
|
2332
|
+
return R(j);
|
|
2318
2333
|
}
|
|
2319
|
-
C(
|
|
2334
|
+
C(x);
|
|
2320
2335
|
}
|
|
2321
|
-
function C(
|
|
2322
|
-
if (q(
|
|
2323
|
-
|
|
2336
|
+
function C(w) {
|
|
2337
|
+
if (q(w == null ? void 0 : w.then)) {
|
|
2338
|
+
w.then(C, R);
|
|
2324
2339
|
return;
|
|
2325
2340
|
}
|
|
2326
|
-
return
|
|
2341
|
+
return w.done ? I(w.value) : (S = Promise.resolve(w.value), S.then(W, K));
|
|
2327
2342
|
}
|
|
2328
2343
|
W(void 0);
|
|
2329
2344
|
});
|
|
2330
2345
|
return F.cancel = oe(a + " - runid: " + d + " - cancel", function() {
|
|
2331
2346
|
try {
|
|
2332
|
-
|
|
2347
|
+
S && An(S);
|
|
2333
2348
|
var I = c.return(void 0), R = Promise.resolve(I.value);
|
|
2334
|
-
R.then(pe, pe), An(R), v(new
|
|
2349
|
+
R.then(pe, pe), An(R), v(new Ti());
|
|
2335
2350
|
} catch (A) {
|
|
2336
2351
|
v(A);
|
|
2337
2352
|
}
|
|
@@ -2339,30 +2354,30 @@ var On = /* @__PURE__ */ ni("flow"), Gs = /* @__PURE__ */ ni("flow.bound", {
|
|
|
2339
2354
|
};
|
|
2340
2355
|
return r.isMobXFlow = !0, r;
|
|
2341
2356
|
}, On);
|
|
2342
|
-
|
|
2357
|
+
xe.bound = /* @__PURE__ */ X(Gs);
|
|
2343
2358
|
function An(e) {
|
|
2344
2359
|
q(e.cancel) && e.cancel();
|
|
2345
2360
|
}
|
|
2346
2361
|
function lt(e) {
|
|
2347
2362
|
return (e == null ? void 0 : e.isMobXFlow) === !0;
|
|
2348
2363
|
}
|
|
2349
|
-
function
|
|
2350
|
-
return e ? t !== void 0 ?
|
|
2364
|
+
function Qs(e, t) {
|
|
2365
|
+
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
2366
|
}
|
|
2352
2367
|
function $e(e) {
|
|
2353
|
-
return
|
|
2368
|
+
return Qs(e);
|
|
2354
2369
|
}
|
|
2355
|
-
function
|
|
2370
|
+
function Ks() {
|
|
2356
2371
|
N("trace() is not available in production builds");
|
|
2357
2372
|
for (var e = !1, t = arguments.length, n = new Array(t), i = 0; i < t; i++)
|
|
2358
2373
|
n[i] = arguments[i];
|
|
2359
2374
|
typeof n[n.length - 1] == "boolean" && (e = n.pop());
|
|
2360
|
-
var a =
|
|
2375
|
+
var a = zs(n);
|
|
2361
2376
|
if (!a)
|
|
2362
2377
|
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
2378
|
a.isTracing_ === ue.NONE && console.log("[mobx.trace] '" + a.name_ + "' tracing enabled"), a.isTracing_ = e ? ue.BREAK : ue.LOG;
|
|
2364
2379
|
}
|
|
2365
|
-
function
|
|
2380
|
+
function zs(e) {
|
|
2366
2381
|
switch (e.length) {
|
|
2367
2382
|
case 0:
|
|
2368
2383
|
return f.trackingDerivation;
|
|
@@ -2372,7 +2387,7 @@ function Ks(e) {
|
|
|
2372
2387
|
return de(e[0], e[1]);
|
|
2373
2388
|
}
|
|
2374
2389
|
}
|
|
2375
|
-
function
|
|
2390
|
+
function J(e, t) {
|
|
2376
2391
|
t === void 0 && (t = void 0), L();
|
|
2377
2392
|
try {
|
|
2378
2393
|
return e.apply(t);
|
|
@@ -2381,7 +2396,7 @@ function H(e, t) {
|
|
|
2381
2396
|
}
|
|
2382
2397
|
}
|
|
2383
2398
|
function he(e) {
|
|
2384
|
-
return e[
|
|
2399
|
+
return e[k];
|
|
2385
2400
|
}
|
|
2386
2401
|
var $s = {
|
|
2387
2402
|
has: function(t, n) {
|
|
@@ -2411,34 +2426,34 @@ var $s = {
|
|
|
2411
2426
|
};
|
|
2412
2427
|
function qs(e, t) {
|
|
2413
2428
|
var n, i;
|
|
2414
|
-
return
|
|
2429
|
+
return Wn(), e = bt(e, t), (i = (n = e[k]).proxy_) != null ? i : n.proxy_ = new Proxy(e, $s);
|
|
2415
2430
|
}
|
|
2416
2431
|
function U(e) {
|
|
2417
2432
|
return e.interceptors_ !== void 0 && e.interceptors_.length > 0;
|
|
2418
2433
|
}
|
|
2419
2434
|
function qe(e, t) {
|
|
2420
2435
|
var n = e.interceptors_ || (e.interceptors_ = []);
|
|
2421
|
-
return n.push(t),
|
|
2436
|
+
return n.push(t), Zn(function() {
|
|
2422
2437
|
var i = n.indexOf(t);
|
|
2423
2438
|
i !== -1 && n.splice(i, 1);
|
|
2424
2439
|
});
|
|
2425
2440
|
}
|
|
2426
|
-
function
|
|
2441
|
+
function G(e, t) {
|
|
2427
2442
|
var n = Ae();
|
|
2428
2443
|
try {
|
|
2429
2444
|
for (var i = [].concat(e.interceptors_ || []), a = 0, r = i.length; a < r && (t = i[a](t), t && !t.type && N(14), !!t); a++)
|
|
2430
2445
|
;
|
|
2431
2446
|
return t;
|
|
2432
2447
|
} finally {
|
|
2433
|
-
|
|
2448
|
+
re(n);
|
|
2434
2449
|
}
|
|
2435
2450
|
}
|
|
2436
|
-
function
|
|
2451
|
+
function z(e) {
|
|
2437
2452
|
return e.changeListeners_ !== void 0 && e.changeListeners_.length > 0;
|
|
2438
2453
|
}
|
|
2439
2454
|
function We(e, t) {
|
|
2440
2455
|
var n = e.changeListeners_ || (e.changeListeners_ = []);
|
|
2441
|
-
return n.push(t),
|
|
2456
|
+
return n.push(t), Zn(function() {
|
|
2442
2457
|
var i = n.indexOf(t);
|
|
2443
2458
|
i !== -1 && n.splice(i, 1);
|
|
2444
2459
|
});
|
|
@@ -2449,21 +2464,21 @@ function $(e, t) {
|
|
|
2449
2464
|
i = i.slice();
|
|
2450
2465
|
for (var a = 0, r = i.length; a < r; a++)
|
|
2451
2466
|
i[a](t);
|
|
2452
|
-
|
|
2467
|
+
re(n);
|
|
2453
2468
|
}
|
|
2454
2469
|
}
|
|
2455
|
-
var
|
|
2470
|
+
var Dt = /* @__PURE__ */ Symbol("mobx-keys");
|
|
2456
2471
|
function Ws(e, t, n) {
|
|
2457
2472
|
if (Y(e))
|
|
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(
|
|
2473
|
+
return Di(e, e, t, n);
|
|
2474
|
+
var i = bt(e, n)[k];
|
|
2475
|
+
if (!e[Dt]) {
|
|
2476
|
+
var a = Object.getPrototypeOf(e), r = new Set([].concat(Te(e), Te(a)));
|
|
2477
|
+
r.delete("constructor"), r.delete(k), ht(a, Dt, r);
|
|
2463
2478
|
}
|
|
2464
2479
|
L();
|
|
2465
2480
|
try {
|
|
2466
|
-
e[
|
|
2481
|
+
e[Dt].forEach(function(s) {
|
|
2467
2482
|
return i.make_(
|
|
2468
2483
|
s,
|
|
2469
2484
|
// must pass "undefined" for { key: undefined }
|
|
@@ -2475,19 +2490,19 @@ function Ws(e, t, n) {
|
|
|
2475
2490
|
}
|
|
2476
2491
|
return e;
|
|
2477
2492
|
}
|
|
2478
|
-
var En = "splice",
|
|
2493
|
+
var En = "splice", H = "update", Zs = 1e4, Xs = {
|
|
2479
2494
|
get: function(t, n) {
|
|
2480
|
-
var i = t[
|
|
2481
|
-
return n ===
|
|
2495
|
+
var i = t[k];
|
|
2496
|
+
return n === k ? i : n === "length" ? i.getArrayLength_() : typeof n == "string" && !isNaN(n) ? i.get_(parseInt(n)) : ae(dt, n) ? dt[n] : t[n];
|
|
2482
2497
|
},
|
|
2483
2498
|
set: function(t, n, i) {
|
|
2484
|
-
var a = t[
|
|
2499
|
+
var a = t[k];
|
|
2485
2500
|
return n === "length" && a.setArrayLength_(i), typeof n == "symbol" || isNaN(n) ? t[n] = i : a.set_(parseInt(n), i), !0;
|
|
2486
2501
|
},
|
|
2487
2502
|
preventExtensions: function() {
|
|
2488
2503
|
N(15);
|
|
2489
2504
|
}
|
|
2490
|
-
},
|
|
2505
|
+
}, Jt = /* @__PURE__ */ function() {
|
|
2491
2506
|
function e(n, i, a, r) {
|
|
2492
2507
|
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
2508
|
return i(s, o, "ObservableArray[..]");
|
|
@@ -2525,13 +2540,13 @@ var En = "splice", X = "update", Js = 1e4, Zs = {
|
|
|
2525
2540
|
} else
|
|
2526
2541
|
this.spliceWithArray_(i, a - i);
|
|
2527
2542
|
}, t.updateArrayLength_ = function(i, a) {
|
|
2528
|
-
i !== this.lastKnownLength_ && N(16), this.lastKnownLength_ += a, this.legacyMode_ && a > 0 &&
|
|
2543
|
+
i !== this.lastKnownLength_ && N(16), this.lastKnownLength_ += a, this.legacyMode_ && a > 0 && Qi(i + a + 1);
|
|
2529
2544
|
}, t.spliceWithArray_ = function(i, a, r) {
|
|
2530
2545
|
var s = this;
|
|
2531
2546
|
this.atom_;
|
|
2532
2547
|
var o = this.values_.length;
|
|
2533
2548
|
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), U(this)) {
|
|
2534
|
-
var u =
|
|
2549
|
+
var u = G(this, {
|
|
2535
2550
|
object: this.proxy_,
|
|
2536
2551
|
type: En,
|
|
2537
2552
|
index: i,
|
|
@@ -2551,7 +2566,7 @@ var En = "splice", X = "update", Js = 1e4, Zs = {
|
|
|
2551
2566
|
var c = this.spliceItemsIntoValues_(i, a, r);
|
|
2552
2567
|
return (a !== 0 || r.length !== 0) && this.notifyArraySplice_(i, r, c), this.dehanceValues_(c);
|
|
2553
2568
|
}, t.spliceItemsIntoValues_ = function(i, a, r) {
|
|
2554
|
-
if (r.length <
|
|
2569
|
+
if (r.length < Zs) {
|
|
2555
2570
|
var s;
|
|
2556
2571
|
return (s = this.values_).splice.apply(s, [i, a].concat(r));
|
|
2557
2572
|
} else {
|
|
@@ -2564,10 +2579,10 @@ var En = "splice", X = "update", Js = 1e4, Zs = {
|
|
|
2564
2579
|
return o;
|
|
2565
2580
|
}
|
|
2566
2581
|
}, t.notifyArrayChildUpdate_ = function(i, a, r) {
|
|
2567
|
-
var s = !this.owned_ &&
|
|
2582
|
+
var s = !this.owned_ && De(), o = z(this), u = o || s ? {
|
|
2568
2583
|
observableKind: "array",
|
|
2569
2584
|
object: this.proxy_,
|
|
2570
|
-
type:
|
|
2585
|
+
type: H,
|
|
2571
2586
|
debugObjectName: this.atom_.name_,
|
|
2572
2587
|
index: i,
|
|
2573
2588
|
newValue: a,
|
|
@@ -2575,7 +2590,7 @@ var En = "splice", X = "update", Js = 1e4, Zs = {
|
|
|
2575
2590
|
} : null;
|
|
2576
2591
|
this.atom_.reportChanged(), o && $(this, u);
|
|
2577
2592
|
}, t.notifyArraySplice_ = function(i, a, r) {
|
|
2578
|
-
var s = !this.owned_ &&
|
|
2593
|
+
var s = !this.owned_ && De(), o = z(this), u = o || s ? {
|
|
2579
2594
|
observableKind: "array",
|
|
2580
2595
|
object: this.proxy_,
|
|
2581
2596
|
debugObjectName: this.atom_.name_,
|
|
@@ -2599,8 +2614,8 @@ var En = "splice", X = "update", Js = 1e4, Zs = {
|
|
|
2599
2614
|
this.atom_;
|
|
2600
2615
|
var s = r[i];
|
|
2601
2616
|
if (U(this)) {
|
|
2602
|
-
var o =
|
|
2603
|
-
type:
|
|
2617
|
+
var o = G(this, {
|
|
2618
|
+
type: H,
|
|
2604
2619
|
object: this.proxy_,
|
|
2605
2620
|
index: i,
|
|
2606
2621
|
newValue: a
|
|
@@ -2619,14 +2634,14 @@ var En = "splice", X = "update", Js = 1e4, Zs = {
|
|
|
2619
2634
|
}
|
|
2620
2635
|
}, e;
|
|
2621
2636
|
}();
|
|
2622
|
-
function
|
|
2623
|
-
n === void 0 && (n = "ObservableArray"), i === void 0 && (i = !1),
|
|
2624
|
-
var a = new
|
|
2625
|
-
|
|
2626
|
-
var r = new Proxy(a.values_,
|
|
2637
|
+
function Hs(e, t, n, i) {
|
|
2638
|
+
n === void 0 && (n = "ObservableArray"), i === void 0 && (i = !1), Wn();
|
|
2639
|
+
var a = new Jt(n, t, i, !1);
|
|
2640
|
+
Hn(a.values_, k, a);
|
|
2641
|
+
var r = new Proxy(a.values_, Xs);
|
|
2627
2642
|
if (a.proxy_ = r, e && e.length) {
|
|
2628
|
-
var s =
|
|
2629
|
-
a.spliceWithArray_(0, 0, e),
|
|
2643
|
+
var s = Ke(!0);
|
|
2644
|
+
a.spliceWithArray_(0, 0, e), ze(s);
|
|
2630
2645
|
}
|
|
2631
2646
|
return r;
|
|
2632
2647
|
}
|
|
@@ -2635,7 +2650,7 @@ var dt = {
|
|
|
2635
2650
|
return this.splice(0);
|
|
2636
2651
|
},
|
|
2637
2652
|
replace: function(t) {
|
|
2638
|
-
var n = this[
|
|
2653
|
+
var n = this[k];
|
|
2639
2654
|
return n.spliceWithArray_(0, n.values_.length, t);
|
|
2640
2655
|
},
|
|
2641
2656
|
// Used by JSON.stringify
|
|
@@ -2651,7 +2666,7 @@ var dt = {
|
|
|
2651
2666
|
splice: function(t, n) {
|
|
2652
2667
|
for (var i = arguments.length, a = new Array(i > 2 ? i - 2 : 0), r = 2; r < i; r++)
|
|
2653
2668
|
a[r - 2] = arguments[r];
|
|
2654
|
-
var s = this[
|
|
2669
|
+
var s = this[k];
|
|
2655
2670
|
switch (arguments.length) {
|
|
2656
2671
|
case 0:
|
|
2657
2672
|
return [];
|
|
@@ -2663,21 +2678,21 @@ var dt = {
|
|
|
2663
2678
|
return s.spliceWithArray_(t, n, a);
|
|
2664
2679
|
},
|
|
2665
2680
|
spliceWithArray: function(t, n, i) {
|
|
2666
|
-
return this[
|
|
2681
|
+
return this[k].spliceWithArray_(t, n, i);
|
|
2667
2682
|
},
|
|
2668
2683
|
push: function() {
|
|
2669
|
-
for (var t = this[
|
|
2684
|
+
for (var t = this[k], n = arguments.length, i = new Array(n), a = 0; a < n; a++)
|
|
2670
2685
|
i[a] = arguments[a];
|
|
2671
2686
|
return t.spliceWithArray_(t.values_.length, 0, i), t.values_.length;
|
|
2672
2687
|
},
|
|
2673
2688
|
pop: function() {
|
|
2674
|
-
return this.splice(Math.max(this[
|
|
2689
|
+
return this.splice(Math.max(this[k].values_.length - 1, 0), 1)[0];
|
|
2675
2690
|
},
|
|
2676
2691
|
shift: function() {
|
|
2677
2692
|
return this.splice(0, 1)[0];
|
|
2678
2693
|
},
|
|
2679
2694
|
unshift: function() {
|
|
2680
|
-
for (var t = this[
|
|
2695
|
+
for (var t = this[k], n = arguments.length, i = new Array(n), a = 0; a < n; a++)
|
|
2681
2696
|
i[a] = arguments[a];
|
|
2682
2697
|
return t.spliceWithArray_(0, 0, i), t.values_.length;
|
|
2683
2698
|
},
|
|
@@ -2690,7 +2705,7 @@ var dt = {
|
|
|
2690
2705
|
return t.sort.apply(t, arguments), this.replace(t), this;
|
|
2691
2706
|
},
|
|
2692
2707
|
remove: function(t) {
|
|
2693
|
-
var n = this[
|
|
2708
|
+
var n = this[k], i = n.dehanceValues_(n.values_).indexOf(t);
|
|
2694
2709
|
return i > -1 ? (this.splice(i, 1), !0) : !1;
|
|
2695
2710
|
}
|
|
2696
2711
|
};
|
|
@@ -2703,30 +2718,30 @@ P("lastIndexOf", ee);
|
|
|
2703
2718
|
P("slice", ee);
|
|
2704
2719
|
P("toString", ee);
|
|
2705
2720
|
P("toLocaleString", ee);
|
|
2706
|
-
P("every",
|
|
2707
|
-
P("filter",
|
|
2708
|
-
P("find",
|
|
2709
|
-
P("findIndex",
|
|
2710
|
-
P("flatMap",
|
|
2711
|
-
P("forEach",
|
|
2712
|
-
P("map",
|
|
2713
|
-
P("some",
|
|
2714
|
-
P("reduce",
|
|
2715
|
-
P("reduceRight",
|
|
2721
|
+
P("every", se);
|
|
2722
|
+
P("filter", se);
|
|
2723
|
+
P("find", se);
|
|
2724
|
+
P("findIndex", se);
|
|
2725
|
+
P("flatMap", se);
|
|
2726
|
+
P("forEach", se);
|
|
2727
|
+
P("map", se);
|
|
2728
|
+
P("some", se);
|
|
2729
|
+
P("reduce", Pi);
|
|
2730
|
+
P("reduceRight", Pi);
|
|
2716
2731
|
function P(e, t) {
|
|
2717
2732
|
typeof Array.prototype[e] == "function" && (dt[e] = t(e));
|
|
2718
2733
|
}
|
|
2719
2734
|
function ee(e) {
|
|
2720
2735
|
return function() {
|
|
2721
|
-
var t = this[
|
|
2736
|
+
var t = this[k];
|
|
2722
2737
|
t.atom_.reportObserved();
|
|
2723
2738
|
var n = t.dehanceValues_(t.values_);
|
|
2724
2739
|
return n[e].apply(n, arguments);
|
|
2725
2740
|
};
|
|
2726
2741
|
}
|
|
2727
|
-
function
|
|
2742
|
+
function se(e) {
|
|
2728
2743
|
return function(t, n) {
|
|
2729
|
-
var i = this, a = this[
|
|
2744
|
+
var i = this, a = this[k];
|
|
2730
2745
|
a.atom_.reportObserved();
|
|
2731
2746
|
var r = a.dehanceValues_(a.values_);
|
|
2732
2747
|
return r[e](function(s, o) {
|
|
@@ -2734,9 +2749,9 @@ function re(e) {
|
|
|
2734
2749
|
});
|
|
2735
2750
|
};
|
|
2736
2751
|
}
|
|
2737
|
-
function
|
|
2752
|
+
function Pi(e) {
|
|
2738
2753
|
return function() {
|
|
2739
|
-
var t = this, n = this[
|
|
2754
|
+
var t = this, n = this[k];
|
|
2740
2755
|
n.atom_.reportObserved();
|
|
2741
2756
|
var i = n.dehanceValues_(n.values_), a = arguments[0];
|
|
2742
2757
|
return arguments[0] = function(r, s, o) {
|
|
@@ -2744,17 +2759,17 @@ function Di(e) {
|
|
|
2744
2759
|
}, i[e].apply(i, arguments);
|
|
2745
2760
|
};
|
|
2746
2761
|
}
|
|
2747
|
-
var
|
|
2762
|
+
var Js = /* @__PURE__ */ ce("ObservableArrayAdministration", Jt);
|
|
2748
2763
|
function St(e) {
|
|
2749
|
-
return vt(e) &&
|
|
2764
|
+
return vt(e) && Js(e[k]);
|
|
2750
2765
|
}
|
|
2751
|
-
var
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
var
|
|
2766
|
+
var Vi, Ii, Ys = {}, ie = "add", ct = "delete";
|
|
2767
|
+
Vi = Symbol.iterator;
|
|
2768
|
+
Ii = Symbol.toStringTag;
|
|
2769
|
+
var xi = /* @__PURE__ */ function() {
|
|
2755
2770
|
function e(n, i, a) {
|
|
2756
2771
|
var r = this;
|
|
2757
|
-
i === void 0 && (i = ge), a === void 0 && (a = "ObservableMap"), this.enhancer_ = void 0, this.name_ = void 0, this[
|
|
2772
|
+
i === void 0 && (i = ge), a === void 0 && (a = "ObservableMap"), this.enhancer_ = void 0, this.name_ = void 0, this[k] = Ys, 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_ = ti("ObservableMap.keys()"), this.data_ = /* @__PURE__ */ new Map(), this.hasMap_ = /* @__PURE__ */ new Map(), fi(!0, function() {
|
|
2758
2773
|
r.merge(n);
|
|
2759
2774
|
});
|
|
2760
2775
|
}
|
|
@@ -2768,7 +2783,7 @@ var Ii = /* @__PURE__ */ function() {
|
|
|
2768
2783
|
var r = this.hasMap_.get(i);
|
|
2769
2784
|
if (!r) {
|
|
2770
2785
|
var s = r = new ye(this.has_(i), pt, "ObservableMap.key?", !1);
|
|
2771
|
-
this.hasMap_.set(i, s),
|
|
2786
|
+
this.hasMap_.set(i, s), Ci(s, function() {
|
|
2772
2787
|
return a.hasMap_.delete(i);
|
|
2773
2788
|
});
|
|
2774
2789
|
}
|
|
@@ -2776,8 +2791,8 @@ var Ii = /* @__PURE__ */ function() {
|
|
|
2776
2791
|
}, t.set = function(i, a) {
|
|
2777
2792
|
var r = this.has_(i);
|
|
2778
2793
|
if (U(this)) {
|
|
2779
|
-
var s =
|
|
2780
|
-
type: r ?
|
|
2794
|
+
var s = G(this, {
|
|
2795
|
+
type: r ? H : ie,
|
|
2781
2796
|
object: this,
|
|
2782
2797
|
newValue: a,
|
|
2783
2798
|
name: i
|
|
@@ -2790,7 +2805,7 @@ var Ii = /* @__PURE__ */ function() {
|
|
|
2790
2805
|
}, t.delete = function(i) {
|
|
2791
2806
|
var a = this;
|
|
2792
2807
|
if (this.keysAtom_, U(this)) {
|
|
2793
|
-
var r =
|
|
2808
|
+
var r = G(this, {
|
|
2794
2809
|
type: ct,
|
|
2795
2810
|
object: this,
|
|
2796
2811
|
name: i
|
|
@@ -2799,7 +2814,7 @@ var Ii = /* @__PURE__ */ function() {
|
|
|
2799
2814
|
return !1;
|
|
2800
2815
|
}
|
|
2801
2816
|
if (this.has_(i)) {
|
|
2802
|
-
var s =
|
|
2817
|
+
var s = De(), o = z(this), u = o || s ? {
|
|
2803
2818
|
observableKind: "map",
|
|
2804
2819
|
debugObjectName: this.name_,
|
|
2805
2820
|
type: ct,
|
|
@@ -2807,7 +2822,7 @@ var Ii = /* @__PURE__ */ function() {
|
|
|
2807
2822
|
oldValue: this.data_.get(i).value_,
|
|
2808
2823
|
name: i
|
|
2809
2824
|
} : null;
|
|
2810
|
-
return
|
|
2825
|
+
return J(function() {
|
|
2811
2826
|
var d;
|
|
2812
2827
|
a.keysAtom_.reportChanged(), (d = a.hasMap_.get(i)) == null || d.setNewValue_(!1);
|
|
2813
2828
|
var c = a.data_.get(i);
|
|
@@ -2818,10 +2833,10 @@ var Ii = /* @__PURE__ */ function() {
|
|
|
2818
2833
|
}, t.updateValue_ = function(i, a) {
|
|
2819
2834
|
var r = this.data_.get(i);
|
|
2820
2835
|
if (a = r.prepareNewValue_(a), a !== f.UNCHANGED) {
|
|
2821
|
-
var s =
|
|
2836
|
+
var s = De(), o = z(this), u = o || s ? {
|
|
2822
2837
|
observableKind: "map",
|
|
2823
2838
|
debugObjectName: this.name_,
|
|
2824
|
-
type:
|
|
2839
|
+
type: H,
|
|
2825
2840
|
object: this,
|
|
2826
2841
|
oldValue: r.value_,
|
|
2827
2842
|
name: i,
|
|
@@ -2831,14 +2846,14 @@ var Ii = /* @__PURE__ */ function() {
|
|
|
2831
2846
|
}
|
|
2832
2847
|
}, t.addValue_ = function(i, a) {
|
|
2833
2848
|
var r = this;
|
|
2834
|
-
this.keysAtom_,
|
|
2849
|
+
this.keysAtom_, J(function() {
|
|
2835
2850
|
var d, c = new ye(a, r.enhancer_, "ObservableMap.key", !1);
|
|
2836
2851
|
r.data_.set(i, c), a = c.value_, (d = r.hasMap_.get(i)) == null || d.setNewValue_(!0), r.keysAtom_.reportChanged();
|
|
2837
2852
|
});
|
|
2838
|
-
var s =
|
|
2853
|
+
var s = De(), o = z(this), u = o || s ? {
|
|
2839
2854
|
observableKind: "map",
|
|
2840
2855
|
debugObjectName: this.name_,
|
|
2841
|
-
type:
|
|
2856
|
+
type: ie,
|
|
2842
2857
|
object: this,
|
|
2843
2858
|
name: i,
|
|
2844
2859
|
newValue: a
|
|
@@ -2872,17 +2887,17 @@ var Ii = /* @__PURE__ */ function() {
|
|
|
2872
2887
|
};
|
|
2873
2888
|
}
|
|
2874
2889
|
});
|
|
2875
|
-
}, t[
|
|
2890
|
+
}, t[Vi] = function() {
|
|
2876
2891
|
return this.entries();
|
|
2877
2892
|
}, t.forEach = function(i, a) {
|
|
2878
|
-
for (var r =
|
|
2893
|
+
for (var r = ke(this), s; !(s = r()).done; ) {
|
|
2879
2894
|
var o = s.value, u = o[0], d = o[1];
|
|
2880
2895
|
i.call(a, d, u, this);
|
|
2881
2896
|
}
|
|
2882
2897
|
}, t.merge = function(i) {
|
|
2883
2898
|
var a = this;
|
|
2884
|
-
return fe(i) && (i = new Map(i)),
|
|
2885
|
-
Y(i) ?
|
|
2899
|
+
return fe(i) && (i = new Map(i)), J(function() {
|
|
2900
|
+
Y(i) ? wr(i).forEach(function(r) {
|
|
2886
2901
|
return a.set(r, i[r]);
|
|
2887
2902
|
}) : Array.isArray(i) ? i.forEach(function(r) {
|
|
2888
2903
|
var s = r[0], o = r[1];
|
|
@@ -2893,9 +2908,9 @@ var Ii = /* @__PURE__ */ function() {
|
|
|
2893
2908
|
}), this;
|
|
2894
2909
|
}, t.clear = function() {
|
|
2895
2910
|
var i = this;
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
for (var a =
|
|
2911
|
+
J(function() {
|
|
2912
|
+
pi(function() {
|
|
2913
|
+
for (var a = ke(i.keys()), r; !(r = a()).done; ) {
|
|
2899
2914
|
var s = r.value;
|
|
2900
2915
|
i.delete(s);
|
|
2901
2916
|
}
|
|
@@ -2903,36 +2918,36 @@ var Ii = /* @__PURE__ */ function() {
|
|
|
2903
2918
|
});
|
|
2904
2919
|
}, t.replace = function(i) {
|
|
2905
2920
|
var a = this;
|
|
2906
|
-
return
|
|
2907
|
-
for (var r = eo(i), s = /* @__PURE__ */ new Map(), o = !1, u =
|
|
2921
|
+
return J(function() {
|
|
2922
|
+
for (var r = eo(i), s = /* @__PURE__ */ new Map(), o = !1, u = ke(a.data_.keys()), d; !(d = u()).done; ) {
|
|
2908
2923
|
var c = d.value;
|
|
2909
2924
|
if (!r.has(c)) {
|
|
2910
2925
|
var v = a.delete(c);
|
|
2911
2926
|
if (v)
|
|
2912
2927
|
o = !0;
|
|
2913
2928
|
else {
|
|
2914
|
-
var
|
|
2915
|
-
s.set(c,
|
|
2929
|
+
var S = a.data_.get(c);
|
|
2930
|
+
s.set(c, S);
|
|
2916
2931
|
}
|
|
2917
2932
|
}
|
|
2918
2933
|
}
|
|
2919
|
-
for (var F =
|
|
2920
|
-
var R = I.value, A = R[0], W = R[1],
|
|
2934
|
+
for (var F = ke(r.entries()), I; !(I = F()).done; ) {
|
|
2935
|
+
var R = I.value, A = R[0], W = R[1], K = a.data_.has(A);
|
|
2921
2936
|
if (a.set(A, W), a.data_.has(A)) {
|
|
2922
2937
|
var C = a.data_.get(A);
|
|
2923
|
-
s.set(A, C),
|
|
2938
|
+
s.set(A, C), K || (o = !0);
|
|
2924
2939
|
}
|
|
2925
2940
|
}
|
|
2926
2941
|
if (!o)
|
|
2927
2942
|
if (a.data_.size !== s.size)
|
|
2928
2943
|
a.keysAtom_.reportChanged();
|
|
2929
2944
|
else
|
|
2930
|
-
for (var
|
|
2931
|
-
if (
|
|
2945
|
+
for (var w = a.data_.keys(), x = s.keys(), j = w.next(), me = x.next(); !j.done; ) {
|
|
2946
|
+
if (j.value !== me.value) {
|
|
2932
2947
|
a.keysAtom_.reportChanged();
|
|
2933
2948
|
break;
|
|
2934
2949
|
}
|
|
2935
|
-
|
|
2950
|
+
j = w.next(), me = x.next();
|
|
2936
2951
|
}
|
|
2937
2952
|
a.data_ = s;
|
|
2938
2953
|
}), this;
|
|
@@ -2950,12 +2965,12 @@ var Ii = /* @__PURE__ */ function() {
|
|
|
2950
2965
|
return this.keysAtom_.reportObserved(), this.data_.size;
|
|
2951
2966
|
}
|
|
2952
2967
|
}, {
|
|
2953
|
-
key:
|
|
2968
|
+
key: Ii,
|
|
2954
2969
|
get: function() {
|
|
2955
2970
|
return "Map";
|
|
2956
2971
|
}
|
|
2957
2972
|
}]), e;
|
|
2958
|
-
}(), fe = /* @__PURE__ */ ce("ObservableMap",
|
|
2973
|
+
}(), fe = /* @__PURE__ */ ce("ObservableMap", xi);
|
|
2959
2974
|
function eo(e) {
|
|
2960
2975
|
if (Oe(e) || fe(e))
|
|
2961
2976
|
return e;
|
|
@@ -2969,12 +2984,12 @@ function eo(e) {
|
|
|
2969
2984
|
} else
|
|
2970
2985
|
return N(21, e);
|
|
2971
2986
|
}
|
|
2972
|
-
var ji,
|
|
2987
|
+
var ji, Li, to = {};
|
|
2973
2988
|
ji = Symbol.iterator;
|
|
2974
|
-
|
|
2975
|
-
var
|
|
2989
|
+
Li = Symbol.toStringTag;
|
|
2990
|
+
var Mi = /* @__PURE__ */ function() {
|
|
2976
2991
|
function e(n, i, a) {
|
|
2977
|
-
i === void 0 && (i = ge), a === void 0 && (a = "ObservableSet"), this.name_ = void 0, this[
|
|
2992
|
+
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_ = ti(this.name_), this.enhancer_ = function(r, s) {
|
|
2978
2993
|
return i(r, s, a);
|
|
2979
2994
|
}, n && this.replace(n);
|
|
2980
2995
|
}
|
|
@@ -2983,24 +2998,24 @@ var Li = /* @__PURE__ */ function() {
|
|
|
2983
2998
|
return this.dehancer !== void 0 ? this.dehancer(i) : i;
|
|
2984
2999
|
}, t.clear = function() {
|
|
2985
3000
|
var i = this;
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
for (var a =
|
|
3001
|
+
J(function() {
|
|
3002
|
+
pi(function() {
|
|
3003
|
+
for (var a = ke(i.data_.values()), r; !(r = a()).done; ) {
|
|
2989
3004
|
var s = r.value;
|
|
2990
3005
|
i.delete(s);
|
|
2991
3006
|
}
|
|
2992
3007
|
});
|
|
2993
3008
|
});
|
|
2994
3009
|
}, t.forEach = function(i, a) {
|
|
2995
|
-
for (var r =
|
|
3010
|
+
for (var r = ke(this), s; !(s = r()).done; ) {
|
|
2996
3011
|
var o = s.value;
|
|
2997
3012
|
i.call(a, o, o, this);
|
|
2998
3013
|
}
|
|
2999
3014
|
}, t.add = function(i) {
|
|
3000
3015
|
var a = this;
|
|
3001
3016
|
if (this.atom_, U(this)) {
|
|
3002
|
-
var r =
|
|
3003
|
-
type:
|
|
3017
|
+
var r = G(this, {
|
|
3018
|
+
type: ie,
|
|
3004
3019
|
object: this,
|
|
3005
3020
|
newValue: i
|
|
3006
3021
|
});
|
|
@@ -3008,13 +3023,13 @@ var Li = /* @__PURE__ */ function() {
|
|
|
3008
3023
|
return this;
|
|
3009
3024
|
}
|
|
3010
3025
|
if (!this.has(i)) {
|
|
3011
|
-
|
|
3026
|
+
J(function() {
|
|
3012
3027
|
a.data_.add(a.enhancer_(i, void 0)), a.atom_.reportChanged();
|
|
3013
3028
|
});
|
|
3014
|
-
var s = !1, o =
|
|
3029
|
+
var s = !1, o = z(this), u = o || s ? {
|
|
3015
3030
|
observableKind: "set",
|
|
3016
3031
|
debugObjectName: this.name_,
|
|
3017
|
-
type:
|
|
3032
|
+
type: ie,
|
|
3018
3033
|
object: this,
|
|
3019
3034
|
newValue: i
|
|
3020
3035
|
} : null;
|
|
@@ -3024,7 +3039,7 @@ var Li = /* @__PURE__ */ function() {
|
|
|
3024
3039
|
}, t.delete = function(i) {
|
|
3025
3040
|
var a = this;
|
|
3026
3041
|
if (U(this)) {
|
|
3027
|
-
var r =
|
|
3042
|
+
var r = G(this, {
|
|
3028
3043
|
type: ct,
|
|
3029
3044
|
object: this,
|
|
3030
3045
|
oldValue: i
|
|
@@ -3033,14 +3048,14 @@ var Li = /* @__PURE__ */ function() {
|
|
|
3033
3048
|
return !1;
|
|
3034
3049
|
}
|
|
3035
3050
|
if (this.has(i)) {
|
|
3036
|
-
var s = !1, o =
|
|
3051
|
+
var s = !1, o = z(this), u = o || s ? {
|
|
3037
3052
|
observableKind: "set",
|
|
3038
3053
|
debugObjectName: this.name_,
|
|
3039
3054
|
type: ct,
|
|
3040
3055
|
object: this,
|
|
3041
3056
|
oldValue: i
|
|
3042
3057
|
} : null;
|
|
3043
|
-
return
|
|
3058
|
+
return J(function() {
|
|
3044
3059
|
a.atom_.reportChanged(), a.data_.delete(i);
|
|
3045
3060
|
}), o && $(this, u), !0;
|
|
3046
3061
|
}
|
|
@@ -3077,10 +3092,10 @@ var Li = /* @__PURE__ */ function() {
|
|
|
3077
3092
|
});
|
|
3078
3093
|
}, t.replace = function(i) {
|
|
3079
3094
|
var a = this;
|
|
3080
|
-
return Ee(i) && (i = new Set(i)),
|
|
3095
|
+
return Ee(i) && (i = new Set(i)), J(function() {
|
|
3081
3096
|
Array.isArray(i) ? (a.clear(), i.forEach(function(r) {
|
|
3082
3097
|
return a.add(r);
|
|
3083
|
-
})) :
|
|
3098
|
+
})) : Be(i) ? (a.clear(), i.forEach(function(r) {
|
|
3084
3099
|
return a.add(r);
|
|
3085
3100
|
})) : i != null && N("Cannot initialize set from " + i);
|
|
3086
3101
|
}), this;
|
|
@@ -3100,12 +3115,12 @@ var Li = /* @__PURE__ */ function() {
|
|
|
3100
3115
|
return this.atom_.reportObserved(), this.data_.size;
|
|
3101
3116
|
}
|
|
3102
3117
|
}, {
|
|
3103
|
-
key:
|
|
3118
|
+
key: Li,
|
|
3104
3119
|
get: function() {
|
|
3105
3120
|
return "Set";
|
|
3106
3121
|
}
|
|
3107
3122
|
}]), e;
|
|
3108
|
-
}(), Ee = /* @__PURE__ */ ce("ObservableSet",
|
|
3123
|
+
}(), Ee = /* @__PURE__ */ ce("ObservableSet", Mi), Fn = /* @__PURE__ */ Object.create(null), Rn = "remove", Bi = /* @__PURE__ */ function() {
|
|
3109
3124
|
function e(n, i, a, r) {
|
|
3110
3125
|
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_ = Y(this.target_);
|
|
3111
3126
|
}
|
|
@@ -3117,8 +3132,8 @@ var Li = /* @__PURE__ */ function() {
|
|
|
3117
3132
|
if (r instanceof Ve)
|
|
3118
3133
|
return r.set(a), !0;
|
|
3119
3134
|
if (U(this)) {
|
|
3120
|
-
var s =
|
|
3121
|
-
type:
|
|
3135
|
+
var s = G(this, {
|
|
3136
|
+
type: H,
|
|
3122
3137
|
object: this.proxy_ || this.target_,
|
|
3123
3138
|
name: i,
|
|
3124
3139
|
newValue: a
|
|
@@ -3128,8 +3143,8 @@ var Li = /* @__PURE__ */ function() {
|
|
|
3128
3143
|
a = s.newValue;
|
|
3129
3144
|
}
|
|
3130
3145
|
if (a = r.prepareNewValue_(a), a !== f.UNCHANGED) {
|
|
3131
|
-
var o =
|
|
3132
|
-
type:
|
|
3146
|
+
var o = z(this), u = !1, d = o || u ? {
|
|
3147
|
+
type: H,
|
|
3133
3148
|
observableKind: "object",
|
|
3134
3149
|
debugObjectName: this.name_,
|
|
3135
3150
|
object: this.proxy_ || this.target_,
|
|
@@ -3141,9 +3156,9 @@ var Li = /* @__PURE__ */ function() {
|
|
|
3141
3156
|
}
|
|
3142
3157
|
return !0;
|
|
3143
3158
|
}, t.get_ = function(i) {
|
|
3144
|
-
return f.trackingDerivation && !
|
|
3159
|
+
return f.trackingDerivation && !ae(this.target_, i) && this.has_(i), this.target_[i];
|
|
3145
3160
|
}, t.set_ = function(i, a, r) {
|
|
3146
|
-
return r === void 0 && (r = !1),
|
|
3161
|
+
return r === void 0 && (r = !1), ae(this.target_, i) ? this.values_.has(i) ? this.setObservablePropValue_(i, a) : r ? Reflect.set(this.target_, i, a) : (this.target_[i] = a, !0) : this.extend_(i, {
|
|
3147
3162
|
value: a,
|
|
3148
3163
|
enumerable: !0,
|
|
3149
3164
|
writable: !0,
|
|
@@ -3159,7 +3174,7 @@ var Li = /* @__PURE__ */ function() {
|
|
|
3159
3174
|
if (a === !0 && (a = this.defaultAnnotation_), a !== !1) {
|
|
3160
3175
|
if (!(i in this.target_)) {
|
|
3161
3176
|
var r;
|
|
3162
|
-
if ((r = this.target_[
|
|
3177
|
+
if ((r = this.target_[_e]) != null && r[i])
|
|
3163
3178
|
return;
|
|
3164
3179
|
N(1, a.annotationType_, this.name_ + "." + i.toString());
|
|
3165
3180
|
}
|
|
@@ -3174,13 +3189,13 @@ var Li = /* @__PURE__ */ function() {
|
|
|
3174
3189
|
}
|
|
3175
3190
|
s = Object.getPrototypeOf(s);
|
|
3176
3191
|
}
|
|
3177
|
-
|
|
3192
|
+
wn(this, a, i);
|
|
3178
3193
|
}
|
|
3179
3194
|
}, t.extend_ = function(i, a, r, s) {
|
|
3180
3195
|
if (s === void 0 && (s = !1), r === !0 && (r = this.defaultAnnotation_), r === !1)
|
|
3181
3196
|
return this.defineProperty_(i, a, s);
|
|
3182
3197
|
var o = r.extend_(this, i, a, s);
|
|
3183
|
-
return o &&
|
|
3198
|
+
return o && wn(this, r, i), o;
|
|
3184
3199
|
}, t.defineProperty_ = function(i, a, r) {
|
|
3185
3200
|
r === void 0 && (r = !1);
|
|
3186
3201
|
try {
|
|
@@ -3189,10 +3204,10 @@ var Li = /* @__PURE__ */ function() {
|
|
|
3189
3204
|
if (!s)
|
|
3190
3205
|
return s;
|
|
3191
3206
|
if (U(this)) {
|
|
3192
|
-
var o =
|
|
3207
|
+
var o = G(this, {
|
|
3193
3208
|
object: this.proxy_ || this.target_,
|
|
3194
3209
|
name: i,
|
|
3195
|
-
type:
|
|
3210
|
+
type: ie,
|
|
3196
3211
|
newValue: a.value
|
|
3197
3212
|
});
|
|
3198
3213
|
if (!o)
|
|
@@ -3206,7 +3221,7 @@ var Li = /* @__PURE__ */ function() {
|
|
|
3206
3221
|
if (!Reflect.defineProperty(this.target_, i, a))
|
|
3207
3222
|
return !1;
|
|
3208
3223
|
} else
|
|
3209
|
-
|
|
3224
|
+
Z(this.target_, i, a);
|
|
3210
3225
|
this.notifyPropertyAddition_(i, a.value);
|
|
3211
3226
|
} finally {
|
|
3212
3227
|
M();
|
|
@@ -3220,10 +3235,10 @@ var Li = /* @__PURE__ */ function() {
|
|
|
3220
3235
|
if (!o)
|
|
3221
3236
|
return o;
|
|
3222
3237
|
if (U(this)) {
|
|
3223
|
-
var u =
|
|
3238
|
+
var u = G(this, {
|
|
3224
3239
|
object: this.proxy_ || this.target_,
|
|
3225
3240
|
name: i,
|
|
3226
|
-
type:
|
|
3241
|
+
type: ie,
|
|
3227
3242
|
newValue: a
|
|
3228
3243
|
});
|
|
3229
3244
|
if (!u)
|
|
@@ -3240,7 +3255,7 @@ var Li = /* @__PURE__ */ function() {
|
|
|
3240
3255
|
if (!Reflect.defineProperty(this.target_, i, c))
|
|
3241
3256
|
return !1;
|
|
3242
3257
|
} else
|
|
3243
|
-
|
|
3258
|
+
Z(this.target_, i, c);
|
|
3244
3259
|
var v = new ye(a, r, "ObservableObject.key", !1);
|
|
3245
3260
|
this.values_.set(i, v), this.notifyPropertyAddition_(i, v.value_);
|
|
3246
3261
|
} finally {
|
|
@@ -3255,10 +3270,10 @@ var Li = /* @__PURE__ */ function() {
|
|
|
3255
3270
|
if (!s)
|
|
3256
3271
|
return s;
|
|
3257
3272
|
if (U(this)) {
|
|
3258
|
-
var o =
|
|
3273
|
+
var o = G(this, {
|
|
3259
3274
|
object: this.proxy_ || this.target_,
|
|
3260
3275
|
name: i,
|
|
3261
|
-
type:
|
|
3276
|
+
type: ie,
|
|
3262
3277
|
newValue: void 0
|
|
3263
3278
|
});
|
|
3264
3279
|
if (!o)
|
|
@@ -3275,17 +3290,17 @@ var Li = /* @__PURE__ */ function() {
|
|
|
3275
3290
|
if (!Reflect.defineProperty(this.target_, i, d))
|
|
3276
3291
|
return !1;
|
|
3277
3292
|
} else
|
|
3278
|
-
|
|
3293
|
+
Z(this.target_, i, d);
|
|
3279
3294
|
this.values_.set(i, new Ve(a)), this.notifyPropertyAddition_(i, void 0);
|
|
3280
3295
|
} finally {
|
|
3281
3296
|
M();
|
|
3282
3297
|
}
|
|
3283
3298
|
return !0;
|
|
3284
3299
|
}, t.delete_ = function(i, a) {
|
|
3285
|
-
if (a === void 0 && (a = !1), !
|
|
3300
|
+
if (a === void 0 && (a = !1), !ae(this.target_, i))
|
|
3286
3301
|
return !0;
|
|
3287
3302
|
if (U(this)) {
|
|
3288
|
-
var r =
|
|
3303
|
+
var r = G(this, {
|
|
3289
3304
|
object: this.proxy_ || this.target_,
|
|
3290
3305
|
name: i,
|
|
3291
3306
|
type: Rn
|
|
@@ -3296,17 +3311,17 @@ var Li = /* @__PURE__ */ function() {
|
|
|
3296
3311
|
try {
|
|
3297
3312
|
var s, o;
|
|
3298
3313
|
L();
|
|
3299
|
-
var u =
|
|
3314
|
+
var u = z(this), d = !1, c = this.values_.get(i), v = void 0;
|
|
3300
3315
|
if (!c && (u || d)) {
|
|
3301
|
-
var
|
|
3302
|
-
v = (
|
|
3316
|
+
var S;
|
|
3317
|
+
v = (S = at(this.target_, i)) == null ? void 0 : S.value;
|
|
3303
3318
|
}
|
|
3304
3319
|
if (a) {
|
|
3305
3320
|
if (!Reflect.deleteProperty(this.target_, i))
|
|
3306
3321
|
return !1;
|
|
3307
3322
|
} else
|
|
3308
3323
|
delete this.target_[i];
|
|
3309
|
-
if (c && (this.values_.delete(i), c instanceof ye && (v = c.value_),
|
|
3324
|
+
if (c && (this.values_.delete(i), c instanceof ye && (v = c.value_), bi(c)), this.keysAtom_.reportChanged(), (s = this.pendingKeys_) == null || (o = s.get(i)) == null || o.set(i in this.target_), u || d) {
|
|
3310
3325
|
var F = {
|
|
3311
3326
|
type: Rn,
|
|
3312
3327
|
observableKind: "object",
|
|
@@ -3326,10 +3341,10 @@ var Li = /* @__PURE__ */ function() {
|
|
|
3326
3341
|
}, t.intercept_ = function(i) {
|
|
3327
3342
|
return qe(this, i);
|
|
3328
3343
|
}, t.notifyPropertyAddition_ = function(i, a) {
|
|
3329
|
-
var r, s, o =
|
|
3344
|
+
var r, s, o = z(this), u = !1;
|
|
3330
3345
|
if (o || u) {
|
|
3331
3346
|
var d = o || u ? {
|
|
3332
|
-
type:
|
|
3347
|
+
type: ie,
|
|
3333
3348
|
observableKind: "object",
|
|
3334
3349
|
debugObjectName: this.name_,
|
|
3335
3350
|
object: this.proxy_ || this.target_,
|
|
@@ -3340,57 +3355,57 @@ var Li = /* @__PURE__ */ function() {
|
|
|
3340
3355
|
}
|
|
3341
3356
|
(r = this.pendingKeys_) == null || (s = r.get(i)) == null || s.set(!0), this.keysAtom_.reportChanged();
|
|
3342
3357
|
}, t.ownKeys_ = function() {
|
|
3343
|
-
return this.keysAtom_.reportObserved(),
|
|
3358
|
+
return this.keysAtom_.reportObserved(), Te(this.target_);
|
|
3344
3359
|
}, t.keys_ = function() {
|
|
3345
3360
|
return this.keysAtom_.reportObserved(), Object.keys(this.target_);
|
|
3346
3361
|
}, e;
|
|
3347
3362
|
}();
|
|
3348
3363
|
function bt(e, t) {
|
|
3349
3364
|
var n;
|
|
3350
|
-
if (
|
|
3365
|
+
if (ae(e, k))
|
|
3351
3366
|
return e;
|
|
3352
|
-
var i = (n = t == null ? void 0 : t.name) != null ? n : "ObservableObject", a = new
|
|
3353
|
-
return ht(e,
|
|
3367
|
+
var i = (n = t == null ? void 0 : t.name) != null ? n : "ObservableObject", a = new Bi(e, /* @__PURE__ */ new Map(), String(i), fs(t));
|
|
3368
|
+
return ht(e, k, a), e;
|
|
3354
3369
|
}
|
|
3355
|
-
var no = /* @__PURE__ */ ce("ObservableObjectAdministration",
|
|
3370
|
+
var no = /* @__PURE__ */ ce("ObservableObjectAdministration", Bi);
|
|
3356
3371
|
function Cn(e) {
|
|
3357
3372
|
return Fn[e] || (Fn[e] = {
|
|
3358
3373
|
get: function() {
|
|
3359
|
-
return this[
|
|
3374
|
+
return this[k].getObservablePropValue_(e);
|
|
3360
3375
|
},
|
|
3361
3376
|
set: function(n) {
|
|
3362
|
-
return this[
|
|
3377
|
+
return this[k].setObservablePropValue_(e, n);
|
|
3363
3378
|
}
|
|
3364
3379
|
});
|
|
3365
3380
|
}
|
|
3366
|
-
function
|
|
3367
|
-
return vt(e) ? no(e[
|
|
3381
|
+
function je(e) {
|
|
3382
|
+
return vt(e) ? no(e[k]) : !1;
|
|
3368
3383
|
}
|
|
3369
|
-
function
|
|
3384
|
+
function wn(e, t, n) {
|
|
3370
3385
|
var i;
|
|
3371
|
-
(i = e.target_[
|
|
3386
|
+
(i = e.target_[_e]) == null || delete i[n];
|
|
3372
3387
|
}
|
|
3373
|
-
var io = /* @__PURE__ */
|
|
3388
|
+
var io = /* @__PURE__ */ Gi(0), Tt = 0, Ui = function() {
|
|
3374
3389
|
};
|
|
3375
3390
|
function ao(e, t) {
|
|
3376
3391
|
Object.setPrototypeOf ? Object.setPrototypeOf(e.prototype, t) : e.prototype.__proto__ !== void 0 ? e.prototype.__proto__ = t : e.prototype = t;
|
|
3377
3392
|
}
|
|
3378
3393
|
ao(Ui, Array.prototype);
|
|
3379
3394
|
var Yt = /* @__PURE__ */ function(e, t, n) {
|
|
3380
|
-
|
|
3395
|
+
ei(i, e);
|
|
3381
3396
|
function i(r, s, o, u) {
|
|
3382
3397
|
var d;
|
|
3383
3398
|
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),
|
|
3399
|
+
var c = new Jt(o, s, u, !0);
|
|
3400
|
+
if (c.proxy_ = Rt(d), Hn(Rt(d), k, c), r && r.length) {
|
|
3401
|
+
var v = Ke(!0);
|
|
3402
|
+
d.spliceWithArray(0, 0, r), ze(v);
|
|
3388
3403
|
}
|
|
3389
3404
|
return Object.defineProperty(Rt(d), "0", io), d;
|
|
3390
3405
|
}
|
|
3391
3406
|
var a = i.prototype;
|
|
3392
3407
|
return a.concat = function() {
|
|
3393
|
-
this[
|
|
3408
|
+
this[k].atom_.reportObserved();
|
|
3394
3409
|
for (var s = arguments.length, o = new Array(s), u = 0; u < s; u++)
|
|
3395
3410
|
o[u] = arguments[u];
|
|
3396
3411
|
return Array.prototype.concat.apply(
|
|
@@ -3416,10 +3431,10 @@ var Yt = /* @__PURE__ */ function(e, t, n) {
|
|
|
3416
3431
|
}, $t(i, [{
|
|
3417
3432
|
key: "length",
|
|
3418
3433
|
get: function() {
|
|
3419
|
-
return this[
|
|
3434
|
+
return this[k].getArrayLength_();
|
|
3420
3435
|
},
|
|
3421
3436
|
set: function(s) {
|
|
3422
|
-
this[
|
|
3437
|
+
this[k].setArrayLength_(s);
|
|
3423
3438
|
}
|
|
3424
3439
|
}, {
|
|
3425
3440
|
key: t,
|
|
@@ -3432,36 +3447,36 @@ Object.entries(dt).forEach(function(e) {
|
|
|
3432
3447
|
var t = e[0], n = e[1];
|
|
3433
3448
|
t !== "concat" && ht(Yt.prototype, t, n);
|
|
3434
3449
|
});
|
|
3435
|
-
function
|
|
3450
|
+
function Gi(e) {
|
|
3436
3451
|
return {
|
|
3437
3452
|
enumerable: !1,
|
|
3438
3453
|
configurable: !0,
|
|
3439
3454
|
get: function() {
|
|
3440
|
-
return this[
|
|
3455
|
+
return this[k].get_(e);
|
|
3441
3456
|
},
|
|
3442
3457
|
set: function(n) {
|
|
3443
|
-
this[
|
|
3458
|
+
this[k].set_(e, n);
|
|
3444
3459
|
}
|
|
3445
3460
|
};
|
|
3446
3461
|
}
|
|
3447
3462
|
function ro(e) {
|
|
3448
|
-
|
|
3463
|
+
Z(Yt.prototype, "" + e, Gi(e));
|
|
3449
3464
|
}
|
|
3450
|
-
function
|
|
3451
|
-
if (e >
|
|
3452
|
-
for (var t =
|
|
3465
|
+
function Qi(e) {
|
|
3466
|
+
if (e > Tt) {
|
|
3467
|
+
for (var t = Tt; t < e + 100; t++)
|
|
3453
3468
|
ro(t);
|
|
3454
|
-
|
|
3469
|
+
Tt = e;
|
|
3455
3470
|
}
|
|
3456
3471
|
}
|
|
3457
|
-
|
|
3472
|
+
Qi(1e3);
|
|
3458
3473
|
function so(e, t, n) {
|
|
3459
3474
|
return new Yt(e, t, n);
|
|
3460
3475
|
}
|
|
3461
3476
|
function de(e, t) {
|
|
3462
3477
|
if (typeof e == "object" && e !== null) {
|
|
3463
3478
|
if (St(e))
|
|
3464
|
-
return t !== void 0 && N(23), e[
|
|
3479
|
+
return t !== void 0 && N(23), e[k].atom_;
|
|
3465
3480
|
if (Ee(e))
|
|
3466
3481
|
return e.atom_;
|
|
3467
3482
|
if (fe(e)) {
|
|
@@ -3470,25 +3485,25 @@ function de(e, t) {
|
|
|
3470
3485
|
var n = e.data_.get(t) || e.hasMap_.get(t);
|
|
3471
3486
|
return n || N(25, t, Lt(e)), n;
|
|
3472
3487
|
}
|
|
3473
|
-
if (
|
|
3488
|
+
if (je(e)) {
|
|
3474
3489
|
if (!t)
|
|
3475
3490
|
return N(26);
|
|
3476
|
-
var i = e[
|
|
3491
|
+
var i = e[k].values_.get(t);
|
|
3477
3492
|
return i || N(27, t, Lt(e)), i;
|
|
3478
3493
|
}
|
|
3479
3494
|
if (qt(e) || yt(e) || ut(e))
|
|
3480
3495
|
return e;
|
|
3481
|
-
} else if (q(e) && ut(e[
|
|
3482
|
-
return e[
|
|
3496
|
+
} else if (q(e) && ut(e[k]))
|
|
3497
|
+
return e[k];
|
|
3483
3498
|
N(28);
|
|
3484
3499
|
}
|
|
3485
|
-
function
|
|
3500
|
+
function Ki(e, t) {
|
|
3486
3501
|
if (e || N(29), t !== void 0)
|
|
3487
|
-
return
|
|
3502
|
+
return Ki(de(e, t));
|
|
3488
3503
|
if (qt(e) || yt(e) || ut(e) || fe(e) || Ee(e))
|
|
3489
3504
|
return e;
|
|
3490
|
-
if (e[
|
|
3491
|
-
return e[
|
|
3505
|
+
if (e[k])
|
|
3506
|
+
return e[k];
|
|
3492
3507
|
N(24, e);
|
|
3493
3508
|
}
|
|
3494
3509
|
function Lt(e, t) {
|
|
@@ -3496,13 +3511,13 @@ function Lt(e, t) {
|
|
|
3496
3511
|
if (t !== void 0)
|
|
3497
3512
|
n = de(e, t);
|
|
3498
3513
|
else {
|
|
3499
|
-
if (
|
|
3514
|
+
if (Xt(e))
|
|
3500
3515
|
return e.name;
|
|
3501
|
-
|
|
3516
|
+
je(e) || fe(e) || Ee(e) ? n = Ki(e) : n = de(e);
|
|
3502
3517
|
}
|
|
3503
3518
|
return n.name_;
|
|
3504
3519
|
}
|
|
3505
|
-
var
|
|
3520
|
+
var Dn = mt.toString;
|
|
3506
3521
|
function en(e, t, n) {
|
|
3507
3522
|
return n === void 0 && (n = -1), Mt(e, t, n);
|
|
3508
3523
|
}
|
|
@@ -3516,8 +3531,8 @@ function Mt(e, t, n, i, a) {
|
|
|
3516
3531
|
var r = typeof e;
|
|
3517
3532
|
if (r !== "function" && r !== "object" && typeof t != "object")
|
|
3518
3533
|
return !1;
|
|
3519
|
-
var s =
|
|
3520
|
-
if (s !==
|
|
3534
|
+
var s = Dn.call(e);
|
|
3535
|
+
if (s !== Dn.call(t))
|
|
3521
3536
|
return !1;
|
|
3522
3537
|
switch (s) {
|
|
3523
3538
|
case "[object RegExp]":
|
|
@@ -3535,7 +3550,7 @@ function Mt(e, t, n, i, a) {
|
|
|
3535
3550
|
n >= 0 && n++;
|
|
3536
3551
|
break;
|
|
3537
3552
|
}
|
|
3538
|
-
e =
|
|
3553
|
+
e = Tn(e), t = Tn(t);
|
|
3539
3554
|
var o = s === "[object Array]";
|
|
3540
3555
|
if (!o) {
|
|
3541
3556
|
if (typeof e != "object" || typeof t != "object")
|
|
@@ -3557,17 +3572,17 @@ function Mt(e, t, n, i, a) {
|
|
|
3557
3572
|
if (!Mt(e[c], t[c], n - 1, i, a))
|
|
3558
3573
|
return !1;
|
|
3559
3574
|
} else {
|
|
3560
|
-
var v = Object.keys(e),
|
|
3575
|
+
var v = Object.keys(e), S;
|
|
3561
3576
|
if (c = v.length, Object.keys(t).length !== c)
|
|
3562
3577
|
return !1;
|
|
3563
3578
|
for (; c--; )
|
|
3564
|
-
if (
|
|
3579
|
+
if (S = v[c], !(ae(t, S) && Mt(e[S], t[S], n - 1, i, a)))
|
|
3565
3580
|
return !1;
|
|
3566
3581
|
}
|
|
3567
3582
|
return i.pop(), a.pop(), !0;
|
|
3568
3583
|
}
|
|
3569
|
-
function
|
|
3570
|
-
return St(e) ? e.slice() : Oe(e) || fe(e) ||
|
|
3584
|
+
function Tn(e) {
|
|
3585
|
+
return St(e) ? e.slice() : Oe(e) || fe(e) || Be(e) || Ee(e) ? Array.from(e.entries()) : e;
|
|
3571
3586
|
}
|
|
3572
3587
|
function Le(e) {
|
|
3573
3588
|
return e[Symbol.iterator] = oo, e;
|
|
@@ -3576,7 +3591,7 @@ function oo() {
|
|
|
3576
3591
|
return this;
|
|
3577
3592
|
}
|
|
3578
3593
|
["Symbol", "Map", "Set"].forEach(function(e) {
|
|
3579
|
-
var t =
|
|
3594
|
+
var t = $n();
|
|
3580
3595
|
typeof t[e] == "undefined" && N("MobX requires global '" + e + "' to be available or polyfilled");
|
|
3581
3596
|
});
|
|
3582
3597
|
typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__ == "object" && __MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({
|
|
@@ -3584,18 +3599,18 @@ typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__ == "object" && __MOBX_DEVTOOLS_GLOBAL_HOOK_
|
|
|
3584
3599
|
extras: {
|
|
3585
3600
|
getDebugName: Lt
|
|
3586
3601
|
},
|
|
3587
|
-
$mobx:
|
|
3602
|
+
$mobx: k
|
|
3588
3603
|
});
|
|
3589
|
-
const uo = ["account"],
|
|
3604
|
+
const uo = ["account"], ne = class {
|
|
3590
3605
|
constructor() {
|
|
3591
|
-
|
|
3592
|
-
|
|
3593
|
-
|
|
3594
|
-
|
|
3606
|
+
b(this, "_config", null);
|
|
3607
|
+
b(this, "_account");
|
|
3608
|
+
b(this, "_productDataSource", null);
|
|
3609
|
+
b(this, "instanceId", ya());
|
|
3595
3610
|
Ws(this, {}, { name: "NizzaStore", autoBind: !0 });
|
|
3596
3611
|
}
|
|
3597
3612
|
static instance() {
|
|
3598
|
-
return
|
|
3613
|
+
return ne._instance || (ne._instance = new ne()), window != null && window.nizza ? ne._instance = window == null ? void 0 : window.nizza : window.nizza = ne._instance, ne._instance;
|
|
3599
3614
|
}
|
|
3600
3615
|
async configure(t) {
|
|
3601
3616
|
var n;
|
|
@@ -3628,47 +3643,47 @@ const uo = ["account"], te = class {
|
|
|
3628
3643
|
});
|
|
3629
3644
|
}
|
|
3630
3645
|
};
|
|
3631
|
-
let tt =
|
|
3632
|
-
|
|
3646
|
+
let tt = ne;
|
|
3647
|
+
b(tt, "_instance");
|
|
3633
3648
|
const lo = tt.instance();
|
|
3634
3649
|
let tn = /* @__PURE__ */ new Map();
|
|
3635
|
-
const
|
|
3636
|
-
const n = Bt
|
|
3650
|
+
const Bt = Vn(tn), Uo = ({ children: e, stores: t }) => {
|
|
3651
|
+
const n = Ut(Bt), i = ea(() => {
|
|
3637
3652
|
const a = /* @__PURE__ */ new Map();
|
|
3638
3653
|
return t.forEach((r) => a.set(r.class, r.value)), tn = new Map([...n, ...a]);
|
|
3639
3654
|
}, []);
|
|
3640
|
-
return /* @__PURE__ */
|
|
3655
|
+
return /* @__PURE__ */ na(Bt.Provider, { value: i, children: e });
|
|
3641
3656
|
};
|
|
3642
|
-
function Bo(e) {
|
|
3643
|
-
return Bt(Ut).get(e);
|
|
3644
|
-
}
|
|
3645
3657
|
function Go(e) {
|
|
3658
|
+
return Ut(Bt).get(e);
|
|
3659
|
+
}
|
|
3660
|
+
function Qo(e) {
|
|
3646
3661
|
return tn.get(e);
|
|
3647
3662
|
}
|
|
3648
|
-
function
|
|
3663
|
+
function Ko(e, t = []) {
|
|
3649
3664
|
if (Array.isArray(t) && t.some((n) => $e(n)))
|
|
3650
3665
|
throw new Error("useEffect dependencies must not contain observables, ...");
|
|
3651
|
-
Me(() =>
|
|
3666
|
+
Me(() => Ht(e), t);
|
|
3652
3667
|
}
|
|
3653
3668
|
function co(e, t = []) {
|
|
3654
3669
|
if (Array.isArray(t) && t.some((a) => $e(a)))
|
|
3655
3670
|
throw new Error("useEffect dependencies must not contain observables, ...");
|
|
3656
|
-
const [n, i] =
|
|
3671
|
+
const [n, i] = ta();
|
|
3657
3672
|
return Me(
|
|
3658
|
-
() =>
|
|
3673
|
+
() => Ht(() => {
|
|
3659
3674
|
const a = e();
|
|
3660
3675
|
i(a);
|
|
3661
3676
|
}),
|
|
3662
3677
|
t
|
|
3663
3678
|
), n;
|
|
3664
3679
|
}
|
|
3665
|
-
function
|
|
3680
|
+
function zo(e, t, n = []) {
|
|
3666
3681
|
if (Array.isArray(n) && n.some((i) => $e(i)))
|
|
3667
3682
|
throw new Error("useEffect dependencies must not contain observables, ...");
|
|
3668
|
-
Me(() =>
|
|
3683
|
+
Me(() => xs(e, t), n);
|
|
3669
3684
|
}
|
|
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({
|
|
3685
|
+
var zi = /* @__PURE__ */ ((e) => (e.Created = "CREATED", e.Finalized = "FINALIZED", e.Live = "LIVE", e.Starting = "STARTING", e))(zi || {}), $i = /* @__PURE__ */ ((e) => (e.Add = "add", e.Remove = "remove", e))($i || {}), qi = /* @__PURE__ */ ((e) => (e.Active = "active", e.Inactive = "inactive", e))(qi || {});
|
|
3686
|
+
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" } }] } }] } }] } }] }, $o = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3672
3687
|
__proto__: null,
|
|
3673
3688
|
AddCollectionDocument: ho,
|
|
3674
3689
|
AppendProductsToSnackVideoDocument: Oo,
|
|
@@ -3676,25 +3691,25 @@ const fo = { kind: "Document", definitions: [{ kind: "OperationDefinition", oper
|
|
|
3676
3691
|
DeleteAllCustomizationDocument: fo,
|
|
3677
3692
|
DeleteCollectionDocument: po,
|
|
3678
3693
|
DeleteRelationshipWithSnackVideoDocument: Eo,
|
|
3679
|
-
EventStatus:
|
|
3680
|
-
FindByProductSnackVideoDocument:
|
|
3681
|
-
FindCollectionDocument:
|
|
3694
|
+
EventStatus: zi,
|
|
3695
|
+
FindByProductSnackVideoDocument: Do,
|
|
3696
|
+
FindCollectionDocument: ko,
|
|
3682
3697
|
FindManySnackVideosDocument: Fo,
|
|
3683
3698
|
FindMinimalEventDocument: go,
|
|
3684
|
-
GetAllCollectionsDocument:
|
|
3699
|
+
GetAllCollectionsDocument: _o,
|
|
3685
3700
|
GetAllCustomizationDocument: mo,
|
|
3686
3701
|
GetAllSnackVideosDocument: Ro,
|
|
3687
3702
|
GetSnackVideoRelationshipsDocument: Co,
|
|
3688
3703
|
ManageCollectionProductDocument: yo,
|
|
3689
|
-
Methods:
|
|
3704
|
+
Methods: $i,
|
|
3690
3705
|
SearchCollectionsDocument: So,
|
|
3691
3706
|
SearchMinimalEventsDocument: No,
|
|
3692
|
-
SearchSnackVideosDocument:
|
|
3693
|
-
Status:
|
|
3707
|
+
SearchSnackVideosDocument: wo,
|
|
3708
|
+
Status: qi,
|
|
3694
3709
|
UpdateCollectionDocument: bo,
|
|
3695
3710
|
UpdateCustomizationDocument: vo
|
|
3696
3711
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3697
|
-
function
|
|
3712
|
+
function qo(e) {
|
|
3698
3713
|
return {
|
|
3699
3714
|
class: e,
|
|
3700
3715
|
_value: null,
|
|
@@ -3704,16 +3719,16 @@ function $o(e) {
|
|
|
3704
3719
|
};
|
|
3705
3720
|
}
|
|
3706
3721
|
export {
|
|
3707
|
-
|
|
3722
|
+
Bn as AccountContractStatusTypes,
|
|
3708
3723
|
ga as AccountContractTypes,
|
|
3709
|
-
|
|
3724
|
+
Bo as AccountInvalidError,
|
|
3710
3725
|
Oa as AccountPlanDescriptionTypes,
|
|
3711
3726
|
Fa as AccountRestRepository,
|
|
3712
3727
|
Ra as AccountService,
|
|
3713
3728
|
Na as AccountSubscriptionTypes,
|
|
3714
|
-
|
|
3729
|
+
Mn as AccountTypes,
|
|
3715
3730
|
Sa as AggregateRoot,
|
|
3716
|
-
|
|
3731
|
+
$o as ApiGraphqlTypes,
|
|
3717
3732
|
jo as BaseMobxStore,
|
|
3718
3733
|
ft as DomainError,
|
|
3719
3734
|
Aa as GlobalPageSectionTypes,
|
|
@@ -3725,21 +3740,22 @@ export {
|
|
|
3725
3740
|
Or as ResourceNotFoundError,
|
|
3726
3741
|
Uo as StoreProvider,
|
|
3727
3742
|
Ar as UnexpectedError,
|
|
3728
|
-
|
|
3729
|
-
|
|
3743
|
+
Lo as ValueObject,
|
|
3744
|
+
jn as accountAtom,
|
|
3730
3745
|
Un as accountService,
|
|
3746
|
+
Io as apiCall,
|
|
3731
3747
|
ba as createAggregateRoot,
|
|
3732
|
-
|
|
3733
|
-
|
|
3748
|
+
qo as createStore,
|
|
3749
|
+
Ln as customFetch,
|
|
3734
3750
|
br as getAccount,
|
|
3735
|
-
|
|
3751
|
+
Qo as getStore,
|
|
3736
3752
|
Sr as globalAtomStore,
|
|
3737
3753
|
lo as nizza,
|
|
3738
|
-
|
|
3754
|
+
xo as searchParams,
|
|
3739
3755
|
ya as shortId,
|
|
3740
|
-
|
|
3741
|
-
|
|
3742
|
-
|
|
3756
|
+
Mo as useAccount,
|
|
3757
|
+
Ko as useAutorun,
|
|
3758
|
+
zo as useReaction,
|
|
3743
3759
|
co as useSelect,
|
|
3744
|
-
|
|
3760
|
+
Go as useStore
|
|
3745
3761
|
};
|