@chaibuilder/sdk 0.1.9 → 0.1.10
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/{AddBlocks-8bcba532.cjs → AddBlocks-2feb85b6.cjs} +1 -1
- package/dist/{AddBlocks-a9d3b6c0.js → AddBlocks-f76f509d.js} +1 -1
- package/dist/{BrandingOptions-c8dba155.js → BrandingOptions-852c1274.js} +1 -1
- package/dist/{BrandingOptions-c4c8676e.cjs → BrandingOptions-96d7aa44.cjs} +1 -1
- package/dist/{CanvasArea-77c280f6.js → CanvasArea-714b0fdd.js} +2 -2
- package/dist/{CanvasArea-c8892280.cjs → CanvasArea-a272e5ce.cjs} +2 -2
- package/dist/{CurrentPage-6ca95592.js → CurrentPage-235f6546.js} +1 -1
- package/dist/{CurrentPage-ebe20c9e.cjs → CurrentPage-b22f60aa.cjs} +1 -1
- package/dist/{Layers-d3c8eea6.js → Layers-1ce42e18.js} +2 -2
- package/dist/{Layers-c1be574f.cjs → Layers-42588f4e.cjs} +1 -1
- package/dist/{MarkAsGlobalBlock-d40a9947.cjs → MarkAsGlobalBlock-a75613f0.cjs} +1 -1
- package/dist/{MarkAsGlobalBlock-04b2d169.js → MarkAsGlobalBlock-f559dc7f.js} +1 -1
- package/dist/{PagesPanel-78e3bbb9.js → PagesPanel-40fa913f.js} +2 -2
- package/dist/{PagesPanel-27f7a791.cjs → PagesPanel-edd76634.cjs} +1 -1
- package/dist/{ProjectPanel-22ec7598.js → ProjectPanel-232d9d07.js} +2 -2
- package/dist/{ProjectPanel-8cec3a82.cjs → ProjectPanel-f8629c81.cjs} +1 -1
- package/dist/{Settings-675c7a84.cjs → Settings-8a78ef02.cjs} +1 -1
- package/dist/{Settings-e49b1212.js → Settings-abd094d0.js} +1 -1
- package/dist/{SidePanels-7371a5c6.js → SidePanels-c1f857a8.js} +2 -2
- package/dist/{SidePanels-35ad2f5f.cjs → SidePanels-edb9c3ac.cjs} +1 -1
- package/dist/{Topbar-da90da83.js → Topbar-8a8249c5.js} +1 -1
- package/dist/{Topbar-3bda931b.cjs → Topbar-a8ca3af7.cjs} +1 -1
- package/dist/{add-page-modal-6b37b90c.js → add-page-modal-0d32113a.js} +1 -1
- package/dist/{add-page-modal-15f377cc.cjs → add-page-modal-1bc36ab2.cjs} +1 -1
- package/dist/core.cjs +1 -1
- package/dist/core.js +1 -1
- package/dist/{delete-page-modal-92a70848.cjs → delete-page-modal-22b50aea.cjs} +1 -1
- package/dist/{delete-page-modal-3b1edeb1.js → delete-page-modal-96c453aa.js} +1 -1
- package/dist/{index-67c3fc28.js → index-3ab5dba5.js} +333 -330
- package/dist/index-8bd8bb62.cjs +2 -0
- package/dist/{page-viewer-584e4c45.cjs → page-viewer-36ef3ef4.cjs} +1 -1
- package/dist/{page-viewer-dcd98e40.js → page-viewer-a32d8269.js} +2 -2
- package/dist/{project-general-setting-f4614eb4.js → project-general-setting-6a64c051.js} +1 -1
- package/dist/{project-general-setting-09427e43.cjs → project-general-setting-f8edd93b.cjs} +1 -1
- package/dist/render.cjs +2 -2
- package/dist/render.d.ts +9 -0
- package/dist/render.js +38 -31
- package/dist/server.cjs +1 -1
- package/dist/server.d.ts +18 -15
- package/dist/server.js +35 -27
- package/dist/{single-page-detail-e9713757.cjs → single-page-detail-4f2cce8a.cjs} +1 -1
- package/dist/{single-page-detail-20bf1b52.js → single-page-detail-8ccf6b26.js} +2 -2
- package/package.json +1 -1
- package/dist/index-d214d8c8.cjs +0 -2
|
@@ -22,17 +22,17 @@ import { FlagsProvider as Bo } from "flagged";
|
|
|
22
22
|
import * as ae from "react";
|
|
23
23
|
import Xn, { createContext as Ro, useReducer as Do, useEffect as Ee, useDebugValue as Mo, useCallback as W, useContext as Lo, useMemo as No, useState as ws, Suspense as Et, lazy as Pt } from "react";
|
|
24
24
|
import { DndProvider as To } from "react-dnd";
|
|
25
|
-
import { flatten as Pe, find as Oe, filter as te, map as de, omit as Zn, isEmpty as Le, isString as $s, set as it, get as ee, includes as he, without as
|
|
25
|
+
import { flatten as Pe, find as Oe, filter as te, map as de, omit as Zn, isEmpty as Le, isString as $s, set as it, get as ee, includes as he, without as fi, forIn as hi, has as es, findIndex as Rn, last as Fo, first as Me, startsWith as pi, isNull as Ss, each as nt, pick as ar, sortBy as Ps, isObject as Uo, capitalize as qo } from "lodash";
|
|
26
26
|
import { getBackendOptions as $o, MultiBackend as Qo } from "@minoru/react-dnd-treeview";
|
|
27
|
-
import { u as dn, c as
|
|
27
|
+
import { u as dn, c as mi, B as gi, S as Vo, T as Ko, a as zo } from "./useBuilderProp-81a14920.js";
|
|
28
28
|
import { atom as N, useAtomValue as ne, useAtom as X, useSetAtom as ot, getDefaultStore as Go } from "jotai";
|
|
29
29
|
import { c as Wo } from "./utils-ac68b2c8.js";
|
|
30
30
|
import { useHotkeys as Qe } from "react-hotkeys-hook";
|
|
31
|
-
import
|
|
31
|
+
import yi from "flat-to-nested";
|
|
32
32
|
import { g as st, c as qn, a as Ho, b as Jo } from "./html-to-json-8397fab5.js";
|
|
33
33
|
import Yo, { excludeAction as Xo, ActionCreators as hs } from "redux-undo";
|
|
34
34
|
import { useThrottledCallback as Zo } from "@react-hookz/web";
|
|
35
|
-
import { S as vt, I as
|
|
35
|
+
import { S as vt, I as vi, a as ks, B as xs } from "./MODIFIERS-c2e02614.js";
|
|
36
36
|
import { useChaiBlocks as ea, syncBlocksWithDefaults as ta } from "@chaibuilder/blocks";
|
|
37
37
|
import { FileTextIcon as na, GearIcon as sa, EyeClosedIcon as ra, EyeOpenIcon as ia } from "@radix-ui/react-icons";
|
|
38
38
|
import { LogOutIcon as oa } from "lucide-react";
|
|
@@ -93,17 +93,17 @@ function ze(e, t) {
|
|
|
93
93
|
typeof o == "function" ? o(r(s)) : o
|
|
94
94
|
)), t && (s.write = t), s;
|
|
95
95
|
}
|
|
96
|
-
const
|
|
96
|
+
const cr = (e) => "init" in e, ur = (e) => !!e.write, Kn = /* @__PURE__ */ new WeakMap(), wa = (e, t) => {
|
|
97
97
|
Kn.set(e, t), e.catch(() => {
|
|
98
98
|
}).finally(() => Kn.delete(e));
|
|
99
|
-
},
|
|
99
|
+
}, lr = (e, t) => {
|
|
100
100
|
const n = Kn.get(e);
|
|
101
101
|
n && (Kn.delete(e), n(t));
|
|
102
|
-
}, lr = (e, t) => {
|
|
103
|
-
e.status = "fulfilled", e.value = t;
|
|
104
102
|
}, dr = (e, t) => {
|
|
103
|
+
e.status = "fulfilled", e.value = t;
|
|
104
|
+
}, fr = (e, t) => {
|
|
105
105
|
e.status = "rejected", e.reason = t;
|
|
106
|
-
}, Sa = (e) => typeof (e == null ? void 0 : e.then) == "function", sn = (e, t) => "v" in e && "v" in t && Object.is(e.v, t.v),
|
|
106
|
+
}, Sa = (e) => typeof (e == null ? void 0 : e.then) == "function", sn = (e, t) => "v" in e && "v" in t && Object.is(e.v, t.v), hr = (e, t) => "e" in e && "e" in t && Object.is(e.e, t.e), At = (e) => "v" in e && e.v instanceof Promise, Pa = (e, t) => "v" in e && "v" in t && e.v.orig && e.v.orig === t.v.orig, Dn = (e) => {
|
|
107
107
|
if ("e" in e)
|
|
108
108
|
throw e.e;
|
|
109
109
|
return e.v;
|
|
@@ -114,7 +114,7 @@ const ar = (e) => "init" in e, cr = (e) => !!e.write, Kn = /* @__PURE__ */ new W
|
|
|
114
114
|
const j = e.get(m);
|
|
115
115
|
if (e.set(m, v), n.has(m) || n.set(m, j), j && At(j)) {
|
|
116
116
|
const w = "v" in v ? v.v instanceof Promise ? v.v : Promise.resolve(v.v) : Promise.reject(v.e);
|
|
117
|
-
|
|
117
|
+
lr(j.v, w);
|
|
118
118
|
}
|
|
119
119
|
}, l = (m, v, j) => {
|
|
120
120
|
const w = /* @__PURE__ */ new Map();
|
|
@@ -149,7 +149,7 @@ const ar = (e) => "init" in e, cr = (e) => !!e.write, Kn = /* @__PURE__ */ new W
|
|
|
149
149
|
E,
|
|
150
150
|
j
|
|
151
151
|
);
|
|
152
|
-
|
|
152
|
+
dr(E, G), S(G), (d == null ? void 0 : d.d) !== h.d && F(m, h, d == null ? void 0 : d.d);
|
|
153
153
|
}
|
|
154
154
|
},
|
|
155
155
|
(G) => {
|
|
@@ -160,13 +160,13 @@ const ar = (e) => "init" in e, cr = (e) => !!e.write, Kn = /* @__PURE__ */ new W
|
|
|
160
160
|
E,
|
|
161
161
|
j
|
|
162
162
|
);
|
|
163
|
-
|
|
163
|
+
fr(E, G), V(G), (d == null ? void 0 : d.d) !== h.d && F(m, h, d == null ? void 0 : d.d);
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
166
|
), D = (G) => {
|
|
167
167
|
$ || ($ = !0, G.then(
|
|
168
|
-
(d) =>
|
|
169
|
-
(d) =>
|
|
168
|
+
(d) => dr(E, d),
|
|
169
|
+
(d) => fr(E, d)
|
|
170
170
|
), S(G));
|
|
171
171
|
};
|
|
172
172
|
});
|
|
@@ -180,7 +180,7 @@ const ar = (e) => "init" in e, cr = (e) => !!e.write, Kn = /* @__PURE__ */ new W
|
|
|
180
180
|
d: (w == null ? void 0 : w.d) || /* @__PURE__ */ new Map(),
|
|
181
181
|
e: v
|
|
182
182
|
};
|
|
183
|
-
return j && l(m, D, j), w &&
|
|
183
|
+
return j && l(m, D, j), w && hr(w, D) && w.d === D.d ? w : (c(m, D), D);
|
|
184
184
|
}, P = (m) => {
|
|
185
185
|
const v = o(m);
|
|
186
186
|
if (v && (v.d.forEach(($, G) => {
|
|
@@ -198,7 +198,7 @@ const ar = (e) => "init" in e, cr = (e) => !!e.write, Kn = /* @__PURE__ */ new W
|
|
|
198
198
|
const d = o($);
|
|
199
199
|
if (d)
|
|
200
200
|
return j.set($, d), Dn(d);
|
|
201
|
-
if (
|
|
201
|
+
if (cr($))
|
|
202
202
|
return j.set($, void 0), $.init;
|
|
203
203
|
throw new Error("no atom init");
|
|
204
204
|
}
|
|
@@ -211,7 +211,7 @@ const ar = (e) => "init" in e, cr = (e) => !!e.write, Kn = /* @__PURE__ */ new W
|
|
|
211
211
|
return E || (E = new AbortController()), E.signal;
|
|
212
212
|
},
|
|
213
213
|
get setSelf() {
|
|
214
|
-
return !S &&
|
|
214
|
+
return !S && ur(m) && (S = (...$) => {
|
|
215
215
|
if (!w)
|
|
216
216
|
return B(m, ...$);
|
|
217
217
|
}), S;
|
|
@@ -271,7 +271,7 @@ const ar = (e) => "init" in e, cr = (e) => !!e.write, Kn = /* @__PURE__ */ new W
|
|
|
271
271
|
const w = (S) => Dn(P(S)), D = (S, ...V) => {
|
|
272
272
|
let $;
|
|
273
273
|
if (S === m) {
|
|
274
|
-
if (!
|
|
274
|
+
if (!cr(S))
|
|
275
275
|
throw new Error("atom not writable");
|
|
276
276
|
const G = o(S), d = f(S, V[0]);
|
|
277
277
|
(!G || !sn(G, d)) && A(S);
|
|
@@ -294,7 +294,7 @@ const ar = (e) => "init" in e, cr = (e) => !!e.write, Kn = /* @__PURE__ */ new W
|
|
|
294
294
|
if (t.set(m, j), P(m).d.forEach((w, D) => {
|
|
295
295
|
const E = t.get(D);
|
|
296
296
|
E ? E.t.add(m) : D !== m && b(D, m);
|
|
297
|
-
}), P(m),
|
|
297
|
+
}), P(m), ur(m) && m.onMount) {
|
|
298
298
|
const w = m.onMount((...D) => B(m, ...D));
|
|
299
299
|
w && (j.u = w);
|
|
300
300
|
}
|
|
@@ -304,7 +304,7 @@ const ar = (e) => "init" in e, cr = (e) => !!e.write, Kn = /* @__PURE__ */ new W
|
|
|
304
304
|
const j = (v = t.get(m)) == null ? void 0 : v.u;
|
|
305
305
|
j && j(), t.delete(m);
|
|
306
306
|
const w = o(m);
|
|
307
|
-
w && (At(w) &&
|
|
307
|
+
w && (At(w) && lr(w.v), w.d.forEach((D, E) => {
|
|
308
308
|
if (E !== m) {
|
|
309
309
|
const S = t.get(E);
|
|
310
310
|
S && (S.t.delete(m), C(E, S) && k(E));
|
|
@@ -334,7 +334,7 @@ const ar = (e) => "init" in e, cr = (e) => !!e.write, Kn = /* @__PURE__ */ new W
|
|
|
334
334
|
const E = t.get(j);
|
|
335
335
|
E && !// TODO This seems pretty hacky. Hope to fix it.
|
|
336
336
|
// Maybe we could `mountDependencies` in `setAtomState`?
|
|
337
|
-
(w && !At(w) && (sn(w, D) ||
|
|
337
|
+
(w && !At(w) && (sn(w, D) || hr(w, D))) && E.l.forEach((S) => S());
|
|
338
338
|
}
|
|
339
339
|
});
|
|
340
340
|
}
|
|
@@ -359,10 +359,10 @@ function Ea(e, t) {
|
|
|
359
359
|
);
|
|
360
360
|
return n;
|
|
361
361
|
}
|
|
362
|
-
const
|
|
363
|
-
const s =
|
|
364
|
-
return
|
|
365
|
-
}, Ca = {},
|
|
362
|
+
const pr = (e, t, n) => (t.has(n) ? t : t.set(n, e())).get(n), Oa = /* @__PURE__ */ new WeakMap(), _a = (e, t, n) => {
|
|
363
|
+
const s = pr(() => /* @__PURE__ */ new WeakMap(), Oa, t);
|
|
364
|
+
return pr(e, s, n);
|
|
365
|
+
}, Ca = {}, mr = (e) => !!e.write, Ia = (e) => typeof e == "function";
|
|
366
366
|
function ja(e, t) {
|
|
367
367
|
return _a(
|
|
368
368
|
() => {
|
|
@@ -399,14 +399,14 @@ function ja(e, t) {
|
|
|
399
399
|
...F.slice(M + 1)
|
|
400
400
|
]);
|
|
401
401
|
};
|
|
402
|
-
f[g] =
|
|
402
|
+
f[g] = mr(e) ? ze(y, A) : ze(y);
|
|
403
403
|
}), u && u.keyList.length === p.length && u.keyList.every((P, g) => P === p[g]) ? l = u : l = { arr: o, atomList: f, keyList: p }, n.set(o, l), l;
|
|
404
404
|
}, r = ze((o) => {
|
|
405
405
|
const c = o(r), l = o(e);
|
|
406
406
|
return s(l, c == null ? void 0 : c.arr);
|
|
407
407
|
});
|
|
408
408
|
r.init = void 0;
|
|
409
|
-
const i =
|
|
409
|
+
const i = mr(e) ? ze(
|
|
410
410
|
(o) => o(r).atomList,
|
|
411
411
|
(o, c, l) => {
|
|
412
412
|
switch (l.type) {
|
|
@@ -527,7 +527,7 @@ function kt(e, t, n = Da, s) {
|
|
|
527
527
|
}
|
|
528
528
|
);
|
|
529
529
|
}
|
|
530
|
-
const Ma = Ro(void 0),
|
|
530
|
+
const Ma = Ro(void 0), bi = (e) => {
|
|
531
531
|
const t = Lo(Ma);
|
|
532
532
|
return (e == null ? void 0 : e.store) || t || xa();
|
|
533
533
|
}, La = (e) => typeof (e == null ? void 0 : e.then) == "function", Na = Xn.use || ((e) => {
|
|
@@ -545,7 +545,7 @@ const Ma = Ro(void 0), vi = (e) => {
|
|
|
545
545
|
), e);
|
|
546
546
|
});
|
|
547
547
|
function Ta(e, t) {
|
|
548
|
-
const n =
|
|
548
|
+
const n = bi(t), [[s, r, i], o] = Do(
|
|
549
549
|
(u) => {
|
|
550
550
|
const f = n.get(e);
|
|
551
551
|
return Object.is(u[0], f) && u[1] === n && u[2] === e ? u : [f, n, e];
|
|
@@ -568,7 +568,7 @@ function Ta(e, t) {
|
|
|
568
568
|
}, [n, e, l]), Mo(c), La(c) ? Na(c) : c;
|
|
569
569
|
}
|
|
570
570
|
function Fa(e, t) {
|
|
571
|
-
const n =
|
|
571
|
+
const n = bi(t);
|
|
572
572
|
return W(
|
|
573
573
|
(...r) => n.set(e, ...r),
|
|
574
574
|
[n, e]
|
|
@@ -581,24 +581,24 @@ function Ua(e, t) {
|
|
|
581
581
|
Fa(e, t)
|
|
582
582
|
];
|
|
583
583
|
}
|
|
584
|
-
const qa = new
|
|
584
|
+
const qa = new yi({ children: "blockNodes" }), wi = (e, t = null) => Pe(
|
|
585
585
|
e.map((n) => {
|
|
586
586
|
if (n = t !== null ? { ...n, parent: t } : n, n.children && n.children.length) {
|
|
587
587
|
const s = [...n.children];
|
|
588
|
-
return delete n.children, Pe([n, ...
|
|
588
|
+
return delete n.children, Pe([n, ...wi(s, n._id)]);
|
|
589
589
|
}
|
|
590
590
|
return n;
|
|
591
591
|
})
|
|
592
592
|
);
|
|
593
|
-
function
|
|
593
|
+
function Si(e, t, n) {
|
|
594
594
|
const s = te(e, (i) => i._parent === t), r = [];
|
|
595
595
|
for (let i = 0; i < s.length; i++) {
|
|
596
|
-
const o =
|
|
596
|
+
const o = Pi(s[i]);
|
|
597
597
|
if (Object.keys(o).length > 0 && Object.keys(o).forEach((c) => {
|
|
598
598
|
s[i][c] = `slot:${st()}`;
|
|
599
599
|
}), te(e, { _parent: s[i]._id }).length > 0) {
|
|
600
600
|
const c = st();
|
|
601
|
-
r.push({ ...s[i], oldId: s[i]._id, _id: c, _parent: n }), r.push(Pe(
|
|
601
|
+
r.push({ ...s[i], oldId: s[i]._id, _id: c, _parent: n }), r.push(Pe(Si(e, s[i]._id, c)));
|
|
602
602
|
} else
|
|
603
603
|
r.push({
|
|
604
604
|
...s[i],
|
|
@@ -613,7 +613,7 @@ function $a(e) {
|
|
|
613
613
|
let t = qa.convert(e.map((n) => Zn(n, ["settings"])));
|
|
614
614
|
return t = !t.type && t.blockNodes ? t.blockNodes : Le(t) ? [] : [t], t;
|
|
615
615
|
}
|
|
616
|
-
const
|
|
616
|
+
const Pi = (e) => {
|
|
617
617
|
const t = {};
|
|
618
618
|
return Object.keys(e).forEach((n) => {
|
|
619
619
|
$s(e[n]) && e[n].startsWith("slot") && (t[n] = e[n].replace("slot:", ""));
|
|
@@ -622,10 +622,10 @@ const Si = (e) => {
|
|
|
622
622
|
let s = Oe(e, { _id: t });
|
|
623
623
|
s = { ...s, oldId: s._id, _id: st() }, n && (s = { ...s, _parent: n });
|
|
624
624
|
const r = [s];
|
|
625
|
-
te(e, { _parent: t }).length > 0 && r.push(Pe(
|
|
625
|
+
te(e, { _parent: t }).length > 0 && r.push(Pe(Si(e, t, s._id)));
|
|
626
626
|
const i = Pe(r);
|
|
627
627
|
return de(i, (o) => {
|
|
628
|
-
const c = o, l =
|
|
628
|
+
const c = o, l = Pi(c);
|
|
629
629
|
return Object.keys(l).length > 0 && Object.keys(l).forEach((u) => {
|
|
630
630
|
const f = Oe(i, { oldId: l[u].replace("slot:", "") });
|
|
631
631
|
c[u] = `slot:${f._id}`;
|
|
@@ -675,8 +675,8 @@ const ke = N((e) => {
|
|
|
675
675
|
ke.debugLabel = "presentBlocksAtom";
|
|
676
676
|
const Qs = ja(ke);
|
|
677
677
|
Qs.debugLabel = "pageBlocksAtomsAtom";
|
|
678
|
-
const
|
|
679
|
-
|
|
678
|
+
const ki = N((e) => $a(e(ke)));
|
|
679
|
+
ki.debugLabel = "pageBlocksTreeAtom";
|
|
680
680
|
const Ka = N("");
|
|
681
681
|
Ka.debugLabel = "builderActivePageAtom";
|
|
682
682
|
const za = N(-1);
|
|
@@ -687,9 +687,9 @@ const xe = () => {
|
|
|
687
687
|
const [, e] = X(ts);
|
|
688
688
|
return e;
|
|
689
689
|
}, Td = () => {
|
|
690
|
-
const e = xe(), t = ne(
|
|
690
|
+
const e = xe(), t = ne(ki), n = W(
|
|
691
691
|
(s) => {
|
|
692
|
-
const r =
|
|
692
|
+
const r = wi(s);
|
|
693
693
|
e({ type: "set_page_blocks", payload: r });
|
|
694
694
|
},
|
|
695
695
|
[e]
|
|
@@ -735,26 +735,26 @@ const Ja = (e) => ee(e, "parent", null), Ya = N((e) => {
|
|
|
735
735
|
return te(e(ke), (s) => he(n, s._id));
|
|
736
736
|
});
|
|
737
737
|
Ya.debugLabel = "selectedBlocksParentsAtom";
|
|
738
|
-
const ki = N(() => !1);
|
|
739
|
-
ki.debugLabel = "selectedBlockFlexChildAtom";
|
|
740
738
|
const xi = N(() => !1);
|
|
741
|
-
xi.debugLabel = "
|
|
739
|
+
xi.debugLabel = "selectedBlockFlexChildAtom";
|
|
740
|
+
const Ai = N(() => !1);
|
|
741
|
+
Ai.debugLabel = "selectedBlockGridChildAtom";
|
|
742
742
|
const Gs = N("");
|
|
743
743
|
Gs.debugLabel = "styleStateAtom";
|
|
744
|
-
const
|
|
745
|
-
|
|
744
|
+
const Ei = kt("styleBreakpoint", "xs");
|
|
745
|
+
Ei.debugLabel = "styleBreakpointAtom";
|
|
746
746
|
const $d = () => ({
|
|
747
|
-
flexChild: ne(
|
|
748
|
-
gridChild: ne(
|
|
747
|
+
flexChild: ne(xi),
|
|
748
|
+
gridChild: ne(Ai)
|
|
749
749
|
}), Qd = () => ne(zs), xt = () => {
|
|
750
750
|
const [e, t] = X(Vs), n = W(
|
|
751
751
|
(s) => {
|
|
752
|
-
t((r) => he(r, s) ?
|
|
752
|
+
t((r) => he(r, s) ? fi(r, s) : [...r, s]);
|
|
753
753
|
},
|
|
754
754
|
[t]
|
|
755
755
|
);
|
|
756
756
|
return [e, t, n];
|
|
757
|
-
},
|
|
757
|
+
}, gr = (e, t = "") => {
|
|
758
758
|
switch (e.type) {
|
|
759
759
|
case "singular":
|
|
760
760
|
return e.uiSchema;
|
|
@@ -765,7 +765,7 @@ const $d = () => ({
|
|
|
765
765
|
if (he(["slot", "styles"], c.type))
|
|
766
766
|
return;
|
|
767
767
|
const l = ee(c, "i18n", !1) ? `${o}-${t}` : o;
|
|
768
|
-
s[l] =
|
|
768
|
+
s[l] = gr(c, t);
|
|
769
769
|
}), s;
|
|
770
770
|
case "list":
|
|
771
771
|
const { itemProperties: r } = e, i = {
|
|
@@ -776,12 +776,12 @@ const $d = () => ({
|
|
|
776
776
|
if (he(["slot", "styles"], c.type))
|
|
777
777
|
return;
|
|
778
778
|
const l = ee(c, "i18n", !1) ? `${o}-${t}` : o;
|
|
779
|
-
i.items[l] =
|
|
779
|
+
i.items[l] = gr(c, t);
|
|
780
780
|
}), i;
|
|
781
781
|
default:
|
|
782
782
|
return {};
|
|
783
783
|
}
|
|
784
|
-
},
|
|
784
|
+
}, yr = (e, t = "") => {
|
|
785
785
|
switch (e.type) {
|
|
786
786
|
case "singular":
|
|
787
787
|
return e.schema;
|
|
@@ -796,7 +796,7 @@ const $d = () => ({
|
|
|
796
796
|
if (he(["slot", "styles"], u.type))
|
|
797
797
|
return;
|
|
798
798
|
const f = ee(u, "i18n", !1) ? `${l}-${t}` : l;
|
|
799
|
-
r.properties[f] =
|
|
799
|
+
r.properties[f] = yr(u, t);
|
|
800
800
|
}), r;
|
|
801
801
|
case "list":
|
|
802
802
|
const { itemProperties: i, title: o } = e, c = {
|
|
@@ -812,12 +812,12 @@ const $d = () => ({
|
|
|
812
812
|
if (he(["slot", "styles"], u.type))
|
|
813
813
|
return;
|
|
814
814
|
const f = ee(u, "i18n", !1) ? `${l}-${t}` : l;
|
|
815
|
-
c.items.properties[f] =
|
|
815
|
+
c.items.properties[f] = yr(u, t), it(c.items, "title", ee(u, "itemTitle", `${o} item`));
|
|
816
816
|
}), c;
|
|
817
817
|
default:
|
|
818
818
|
return {};
|
|
819
819
|
}
|
|
820
|
-
},
|
|
820
|
+
}, Oi = (e) => {
|
|
821
821
|
const t = {};
|
|
822
822
|
return Object.keys(e).forEach((n) => {
|
|
823
823
|
t[n] = Za(e[n]);
|
|
@@ -828,8 +828,8 @@ const $d = () => ({
|
|
|
828
828
|
const { itemProperties: t } = e;
|
|
829
829
|
return de(e.default, (n) => {
|
|
830
830
|
const s = { ...n };
|
|
831
|
-
return
|
|
832
|
-
es(t, i) && ee(t[i], "i18n", !1) && (s[i] =
|
|
831
|
+
return hi(n, (r, i) => {
|
|
832
|
+
es(t, i) && ee(t[i], "i18n", !1) && (s[i] = vi);
|
|
833
833
|
}), s;
|
|
834
834
|
});
|
|
835
835
|
}, Za = (e) => {
|
|
@@ -840,16 +840,16 @@ const $d = () => ({
|
|
|
840
840
|
return `${ks}${st()}`;
|
|
841
841
|
case "singular":
|
|
842
842
|
const { i18n: t, schema: n } = e;
|
|
843
|
-
return t ?
|
|
843
|
+
return t ? vi : ee(n, "default", "");
|
|
844
844
|
case "model":
|
|
845
|
-
return
|
|
845
|
+
return Oi(e.properties);
|
|
846
846
|
case "list":
|
|
847
847
|
return Xa(e);
|
|
848
848
|
default:
|
|
849
849
|
return "";
|
|
850
850
|
}
|
|
851
851
|
}, ec = () => ne(ke);
|
|
852
|
-
function
|
|
852
|
+
function vr(e, t, n, s, r) {
|
|
853
853
|
if (t === null)
|
|
854
854
|
return [...e, ...s];
|
|
855
855
|
if (n !== null) {
|
|
@@ -882,7 +882,7 @@ const Vd = () => {
|
|
|
882
882
|
const u = l ? As(l._type) : !0;
|
|
883
883
|
return !u && l && (i[0]._parent = l._parent), e({
|
|
884
884
|
type: "set_blocks",
|
|
885
|
-
payload:
|
|
885
|
+
payload: vr(t, o || null, c || null, i, u)
|
|
886
886
|
}), n([(f = Me(i)) == null ? void 0 : f._id]), Me(i);
|
|
887
887
|
},
|
|
888
888
|
[t, e, n]
|
|
@@ -893,9 +893,9 @@ const Vd = () => {
|
|
|
893
893
|
const C = i.blocks;
|
|
894
894
|
return s(C, o, c);
|
|
895
895
|
}
|
|
896
|
-
const l = st(), u =
|
|
897
|
-
|
|
898
|
-
if (
|
|
896
|
+
const l = st(), u = Oi(i.props), f = [];
|
|
897
|
+
hi(u, (C, y) => {
|
|
898
|
+
if (pi(C, ks)) {
|
|
899
899
|
const A = C.replace(ks, "");
|
|
900
900
|
f.push({
|
|
901
901
|
_id: A,
|
|
@@ -919,28 +919,28 @@ const Vd = () => {
|
|
|
919
919
|
const O = [p, ...f];
|
|
920
920
|
return e({
|
|
921
921
|
type: "set_blocks",
|
|
922
|
-
payload:
|
|
922
|
+
payload: vr(t, o || null, c || null, O, g)
|
|
923
923
|
}), n([p._id]), p;
|
|
924
924
|
},
|
|
925
925
|
[s, t, e, n]
|
|
926
926
|
), addPredefinedBlock: s };
|
|
927
|
-
},
|
|
927
|
+
}, br = {
|
|
928
928
|
xs: 420,
|
|
929
929
|
sm: 620,
|
|
930
930
|
md: 768,
|
|
931
931
|
lg: 1024,
|
|
932
932
|
xl: 1280,
|
|
933
933
|
"2xl": 1536
|
|
934
|
-
},
|
|
934
|
+
}, wr = ["xs", "sm", "md", "lg", "xl", "2xl"];
|
|
935
935
|
function tc(e, t) {
|
|
936
936
|
if (t === null)
|
|
937
937
|
return "baseClasses";
|
|
938
938
|
const n = t.mq;
|
|
939
939
|
if (n === "xs" || t.dark || t.mod !== "")
|
|
940
940
|
return "classes";
|
|
941
|
-
let s = "baseClasses", r =
|
|
941
|
+
let s = "baseClasses", r = wr.indexOf(n);
|
|
942
942
|
for (; r > 0; ) {
|
|
943
|
-
const i =
|
|
943
|
+
const i = wr[r - 1];
|
|
944
944
|
if (Oe(e, {
|
|
945
945
|
mq: i,
|
|
946
946
|
property: t.property
|
|
@@ -952,7 +952,7 @@ function tc(e, t) {
|
|
|
952
952
|
}
|
|
953
953
|
return s;
|
|
954
954
|
}
|
|
955
|
-
const
|
|
955
|
+
const Sr = [];
|
|
956
956
|
function nc(e = "", t = "", n = []) {
|
|
957
957
|
e = e.trim().replace(/ +/g, "");
|
|
958
958
|
let s = te(
|
|
@@ -961,16 +961,16 @@ function nc(e = "", t = "", n = []) {
|
|
|
961
961
|
), r = te(de(t.split(" "), qn), (u) => !Ss(u));
|
|
962
962
|
r = te(
|
|
963
963
|
r,
|
|
964
|
-
(u) => !he(
|
|
964
|
+
(u) => !he(Sr, u.property)
|
|
965
965
|
);
|
|
966
966
|
const i = [], o = [];
|
|
967
967
|
nt(n, (u) => {
|
|
968
|
-
const f = qn(u), p = Oe(s,
|
|
968
|
+
const f = qn(u), p = Oe(s, ar(f, ["dark", "mq", "mod", "property"]));
|
|
969
969
|
if (p && (s = te(
|
|
970
970
|
s,
|
|
971
971
|
(P) => P.fullCls !== (p == null ? void 0 : p.fullCls)
|
|
972
|
-
)), i.push(f), f.mq === "xs" && !f.dark && f.mod === "" && (r = te(r, (P) => P.property !== f.property)), tc(s, f) === "baseClasses" && !he(
|
|
973
|
-
const P = Oe(r,
|
|
972
|
+
)), i.push(f), f.mq === "xs" && !f.dark && f.mod === "" && (r = te(r, (P) => P.property !== f.property)), tc(s, f) === "baseClasses" && !he(Sr, f.property)) {
|
|
973
|
+
const P = Oe(r, ar(f, ["property"]));
|
|
974
974
|
p && (r = te(
|
|
975
975
|
r,
|
|
976
976
|
(g) => g.fullCls !== (P == null ? void 0 : P.fullCls)
|
|
@@ -982,17 +982,17 @@ function nc(e = "", t = "", n = []) {
|
|
|
982
982
|
}
|
|
983
983
|
});
|
|
984
984
|
const c = de(
|
|
985
|
-
Ps([...s, ...i], (u) =>
|
|
985
|
+
Ps([...s, ...i], (u) => br[u.mq]),
|
|
986
986
|
"fullCls"
|
|
987
987
|
).join(" ");
|
|
988
988
|
return `${de(
|
|
989
|
-
Ps([...r, ...o], (u) =>
|
|
989
|
+
Ps([...r, ...o], (u) => br[u.mq]),
|
|
990
990
|
"fullCls"
|
|
991
991
|
).join(" ").trim()},${c.trim()}`.trim().replace(/ +/g, "");
|
|
992
992
|
}
|
|
993
993
|
const On = N([]);
|
|
994
994
|
On.debugLabel = "selectedStylingBlocksAtom";
|
|
995
|
-
const
|
|
995
|
+
const _i = () => X(On), sc = (e) => {
|
|
996
996
|
const t = e.replace(vt, "").split(",");
|
|
997
997
|
return { baseClasses: t[0], classes: t[1] };
|
|
998
998
|
}, rc = N(null, (e, t, { blockIds: n, newClasses: s, dispatch: r }) => {
|
|
@@ -1021,28 +1021,28 @@ const Oi = () => X(On), sc = (e) => {
|
|
|
1021
1021
|
},
|
|
1022
1022
|
[e, t]
|
|
1023
1023
|
);
|
|
1024
|
-
},
|
|
1025
|
-
|
|
1024
|
+
}, Ci = N([]);
|
|
1025
|
+
Ci.debugLabel = "buildingBlocksAtom";
|
|
1026
1026
|
const ic = N((e) => {
|
|
1027
|
-
const t = e(
|
|
1027
|
+
const t = e(Ci);
|
|
1028
1028
|
return te(t, (n) => es(n, "blockId"));
|
|
1029
1029
|
}), oc = () => {
|
|
1030
1030
|
}, ac = () => {
|
|
1031
1031
|
const e = ea(), t = ne(ic), n = () => {
|
|
1032
1032
|
}, s = W(() => oc(), []);
|
|
1033
1033
|
return [e, t, n, s];
|
|
1034
|
-
}, cc = N(!1),
|
|
1034
|
+
}, cc = N(!1), Ii = () => {
|
|
1035
1035
|
const [e, t] = X(cc);
|
|
1036
1036
|
return [e, t];
|
|
1037
|
-
}, uc = N(xs),
|
|
1037
|
+
}, uc = N(xs), ji = () => {
|
|
1038
1038
|
const [e, t] = X(uc);
|
|
1039
1039
|
return [
|
|
1040
1040
|
Uo(e) ? { ...xs, ...e } : xs,
|
|
1041
1041
|
t
|
|
1042
1042
|
];
|
|
1043
|
-
}, lc = N(null), dc = () => ({ currentPage: ne(lc) }),
|
|
1043
|
+
}, lc = N(null), dc = () => ({ currentPage: ne(lc) }), Bi = new yi({});
|
|
1044
1044
|
function fc(e) {
|
|
1045
|
-
let t =
|
|
1045
|
+
let t = Bi.convert(e);
|
|
1046
1046
|
return t = !t.type && t.children && t.children.length ? t.children : Le(t) ? [] : [t], t;
|
|
1047
1047
|
}
|
|
1048
1048
|
const Ws = (e, t) => Pe(
|
|
@@ -1065,9 +1065,9 @@ function Hs(e, t = !1) {
|
|
|
1065
1065
|
} : s.children && s.children.length && Hs(s.children);
|
|
1066
1066
|
}
|
|
1067
1067
|
}
|
|
1068
|
-
function
|
|
1068
|
+
function Ri(e) {
|
|
1069
1069
|
let t = [], n = te(e, { type: "GlobalBlock" });
|
|
1070
|
-
return n.length > 0 && (n = de(n,
|
|
1070
|
+
return n.length > 0 && (n = de(n, Di), nt(n, (s) => {
|
|
1071
1071
|
t = [...t, ...hc(s)];
|
|
1072
1072
|
})), t;
|
|
1073
1073
|
}
|
|
@@ -1075,29 +1075,29 @@ function hc(e) {
|
|
|
1075
1075
|
let t = [];
|
|
1076
1076
|
const n = ee(Me(e), "parent", null);
|
|
1077
1077
|
it(Me(e), "parent", null);
|
|
1078
|
-
const s = [
|
|
1078
|
+
const s = [Bi.convert(Mi(e))];
|
|
1079
1079
|
Hs(s, !0);
|
|
1080
1080
|
let r = Ws(s, e[0]._id);
|
|
1081
|
-
return r = it(r, "0.parent", n), t = [...t, r, ...
|
|
1081
|
+
return r = it(r, "0.parent", n), t = [...t, r, ...Ri(r)], t;
|
|
1082
1082
|
}
|
|
1083
|
-
function
|
|
1083
|
+
function Di(e) {
|
|
1084
1084
|
const t = Oe(Es, { _id: e._id });
|
|
1085
1085
|
if (!t)
|
|
1086
1086
|
return [];
|
|
1087
1087
|
const n = [t], s = te(Es, { _parent: e._id });
|
|
1088
|
-
return s.length ? Pe([...n, ...Pe(de(s,
|
|
1088
|
+
return s.length ? Pe([...n, ...Pe(de(s, Di))]) : Pe(n);
|
|
1089
1089
|
}
|
|
1090
|
-
const
|
|
1090
|
+
const Mi = (e) => JSON.parse(JSON.stringify(e));
|
|
1091
1091
|
let Es = [];
|
|
1092
1092
|
function pc(e) {
|
|
1093
1093
|
Es = e;
|
|
1094
|
-
const t = fc(
|
|
1094
|
+
const t = fc(Mi(e));
|
|
1095
1095
|
Hs(t);
|
|
1096
|
-
const n = Ws(t, null), s =
|
|
1096
|
+
const n = Ws(t, null), s = Ri(n), r = {};
|
|
1097
1097
|
return nt(s, (i) => it(r, Me(i).blockId, i)), [n, r];
|
|
1098
1098
|
}
|
|
1099
|
-
const
|
|
1100
|
-
const [e] =
|
|
1099
|
+
const Li = () => {
|
|
1100
|
+
const [e] = ji(), { currentPage: t } = dc(), n = ne(ke);
|
|
1101
1101
|
return W(() => {
|
|
1102
1102
|
const s = de(
|
|
1103
1103
|
n,
|
|
@@ -1112,8 +1112,8 @@ const Mi = () => {
|
|
|
1112
1112
|
};
|
|
1113
1113
|
kt("blockStylingActiveTab", 1);
|
|
1114
1114
|
N([]);
|
|
1115
|
-
const
|
|
1116
|
-
|
|
1115
|
+
const Ni = N(!1);
|
|
1116
|
+
Ni.debugLabel = "readOnlyModeAtom";
|
|
1117
1117
|
const mc = N(!1);
|
|
1118
1118
|
mc.debugLabel = "inlineEditingActiveAtom";
|
|
1119
1119
|
const gc = N(!1);
|
|
@@ -1144,7 +1144,7 @@ ss.debugLabel = "pageSyncStateAtom";
|
|
|
1144
1144
|
const zd = () => {
|
|
1145
1145
|
const [e, t] = X(ss), n = dn("onSaveBlocks", async () => {
|
|
1146
1146
|
}), s = dn("onSyncStatusChange", () => {
|
|
1147
|
-
}), r =
|
|
1147
|
+
}), r = Li(), i = ot(ns), { undoCount: o, redoCount: c } = rs();
|
|
1148
1148
|
return { savePage: Zo(
|
|
1149
1149
|
async () => {
|
|
1150
1150
|
t("SAVING"), s("SAVING");
|
|
@@ -1158,7 +1158,7 @@ const zd = () => {
|
|
|
1158
1158
|
// save only every 5 seconds
|
|
1159
1159
|
), syncState: e, setSyncState: t };
|
|
1160
1160
|
}, rs = () => {
|
|
1161
|
-
const e = ne(ts), [{ undoCount: t, redoCount: n }] = X(ns), s = xe(), [r] =
|
|
1161
|
+
const e = ne(ts), [{ undoCount: t, redoCount: n }] = X(ns), s = xe(), [r] = Ii(), [, i] = xt(), [, o] = _i(), [, c] = X(ss), l = dn("onSyncStatusChange", () => {
|
|
1162
1162
|
}), u = W(() => {
|
|
1163
1163
|
s({ type: "create_snapshot" });
|
|
1164
1164
|
}, [s]);
|
|
@@ -1182,16 +1182,16 @@ const zd = () => {
|
|
|
1182
1182
|
},
|
|
1183
1183
|
createSnapshot: u
|
|
1184
1184
|
};
|
|
1185
|
-
}, Ec = () => X(
|
|
1186
|
-
const t = e(
|
|
1185
|
+
}, Ec = () => X(Ei), Ti = kt("canvasWidth", 360), Fi = N((e) => {
|
|
1186
|
+
const t = e(Ti);
|
|
1187
1187
|
return Ho(t).toLowerCase();
|
|
1188
1188
|
}), Gd = () => {
|
|
1189
|
-
const [e, t] = X(
|
|
1189
|
+
const [e, t] = X(Ti), n = ne(Fi), [s, r] = Ec();
|
|
1190
1190
|
return Ee(() => {
|
|
1191
1191
|
s !== "xs" && r(n);
|
|
1192
1192
|
}, [n, s, r]), [e, n, t];
|
|
1193
|
-
}, Oc = kt("canvasZoom", 100), Wd = () => X(Oc),
|
|
1194
|
-
const [e, t] = X(
|
|
1193
|
+
}, Oc = kt("canvasZoom", 100), Wd = () => X(Oc), Ui = N([]), qi = () => {
|
|
1194
|
+
const [e, t] = X(Ui), n = ot(Js), s = W(
|
|
1195
1195
|
(r) => {
|
|
1196
1196
|
t(r), n([]);
|
|
1197
1197
|
},
|
|
@@ -1199,20 +1199,20 @@ const zd = () => {
|
|
|
1199
1199
|
);
|
|
1200
1200
|
return [e, s];
|
|
1201
1201
|
}, Js = N([]), _c = () => {
|
|
1202
|
-
const [e, t] = X(Js), n = ot(
|
|
1202
|
+
const [e, t] = X(Js), n = ot(Ui), s = W(
|
|
1203
1203
|
(r) => {
|
|
1204
1204
|
t(r), n([]);
|
|
1205
1205
|
},
|
|
1206
1206
|
[t, n]
|
|
1207
1207
|
);
|
|
1208
1208
|
return [e, s];
|
|
1209
|
-
},
|
|
1210
|
-
const [e, t] = X(
|
|
1209
|
+
}, $i = kt("darkMode", !1), Hd = () => {
|
|
1210
|
+
const [e, t] = X($i);
|
|
1211
1211
|
return [e, t];
|
|
1212
1212
|
}, Cc = N(!1), Jd = () => {
|
|
1213
1213
|
const [e, t] = X(Cc);
|
|
1214
1214
|
return [e, t];
|
|
1215
|
-
},
|
|
1215
|
+
}, Qi = () => {
|
|
1216
1216
|
const e = xe(), t = ne(ke), [, n] = xt();
|
|
1217
1217
|
return W(
|
|
1218
1218
|
(s, r = null) => {
|
|
@@ -1227,13 +1227,13 @@ const zd = () => {
|
|
|
1227
1227
|
}, Ic = N([]), Yd = () => {
|
|
1228
1228
|
const [e, t] = X(Ic), n = W(
|
|
1229
1229
|
(s) => {
|
|
1230
|
-
t((r) => he(r, s) ?
|
|
1230
|
+
t((r) => he(r, s) ? fi(r, s) : [...r, s]);
|
|
1231
1231
|
},
|
|
1232
1232
|
[t]
|
|
1233
1233
|
);
|
|
1234
1234
|
return [e, t, n];
|
|
1235
1235
|
}, jc = N(""), Bc = () => X(jc), Xd = () => {
|
|
1236
|
-
const e = ne(ke), t = xe(), n =
|
|
1236
|
+
const e = ne(ke), t = xe(), n = Li(), [, , s] = ac();
|
|
1237
1237
|
return W(
|
|
1238
1238
|
async (r, i) => {
|
|
1239
1239
|
const o = st(16), c = de(e, (l) => (l._id === r && (l._globalBlockId = o, l._name = i), l));
|
|
@@ -1251,7 +1251,7 @@ const zd = () => {
|
|
|
1251
1251
|
[e, t]
|
|
1252
1252
|
);
|
|
1253
1253
|
}, Dc = () => {
|
|
1254
|
-
const e = ne(Js), [t, n] =
|
|
1254
|
+
const e = ne(Js), [t, n] = qi(), s = Qi(), r = Rc();
|
|
1255
1255
|
return {
|
|
1256
1256
|
canPaste: No(
|
|
1257
1257
|
() => t.length > 0 || e.length > 0,
|
|
@@ -1270,15 +1270,15 @@ const zd = () => {
|
|
|
1270
1270
|
}, []), s = W(() => {
|
|
1271
1271
|
}, []);
|
|
1272
1272
|
return { currentProject: e, createProject: s, deleteProject: t, updateProject: n };
|
|
1273
|
-
},
|
|
1273
|
+
}, Vi = (e, t) => {
|
|
1274
1274
|
const n = [], s = te(e, (r) => he(t, r._id) || he(t, r._parent) ? (n.push(r._id), !1) : !0);
|
|
1275
|
-
return Le(n) ? s :
|
|
1275
|
+
return Le(n) ? s : Vi(s, n);
|
|
1276
1276
|
}, Lc = () => {
|
|
1277
1277
|
const e = xe(), t = ne(ke), [n, s] = xt();
|
|
1278
1278
|
return W(
|
|
1279
1279
|
(r) => {
|
|
1280
1280
|
var c;
|
|
1281
|
-
const i = ((c = Oe(t, { _id: r[0] })) == null ? void 0 : c._parent) || null, o =
|
|
1281
|
+
const i = ((c = Oe(t, { _id: r[0] })) == null ? void 0 : c._parent) || null, o = Vi(t, r);
|
|
1282
1282
|
e({ type: "set_blocks", payload: o }), s(i ? [i] : []);
|
|
1283
1283
|
},
|
|
1284
1284
|
[t, s, e, n]
|
|
@@ -1320,16 +1320,16 @@ const zd = () => {
|
|
|
1320
1320
|
},
|
|
1321
1321
|
[e, t]
|
|
1322
1322
|
);
|
|
1323
|
-
},
|
|
1323
|
+
}, Ki = N((e) => {
|
|
1324
1324
|
const t = Me(e(On)), n = e(zs);
|
|
1325
1325
|
if (!t || t.blockId !== ee(n, "_id", null))
|
|
1326
1326
|
return [];
|
|
1327
1327
|
const r = ee(n, t.prop, `${vt},`).replace(vt, "").split(",").join(" ");
|
|
1328
1328
|
return te(de(r.trim().split(" "), qn), (i) => !Ss(i));
|
|
1329
|
-
}), nf = () => ne(
|
|
1330
|
-
const t = e(
|
|
1331
|
-
let i = te(e(
|
|
1332
|
-
return
|
|
1329
|
+
}), nf = () => ne(Ki), Pr = { xs: 0, sm: 1, md: 2, lg: 3, xl: 4, "2xl": 5 }, Tc = N((e) => {
|
|
1330
|
+
const t = e(Fi), n = e(Gs), s = e($i), r = Fc(t);
|
|
1331
|
+
let i = te(e(Ki), { mod: n });
|
|
1332
|
+
return pi(n, "_") || (i = te(i, (o) => r.includes(o.mq))), i = i.sort((o, c) => Pr[o.mq] - Pr[c.mq]), s || (i = te(i, { dark: !1 })), i;
|
|
1333
1333
|
}), Fc = (e) => {
|
|
1334
1334
|
let t = [];
|
|
1335
1335
|
switch (e) {
|
|
@@ -1356,13 +1356,13 @@ const zd = () => {
|
|
|
1356
1356
|
break;
|
|
1357
1357
|
}
|
|
1358
1358
|
return t;
|
|
1359
|
-
}, sf = () => ne(Tc), rf = () => X(Gs),
|
|
1359
|
+
}, sf = () => ne(Tc), rf = () => X(Gs), zi = N(null, (e, t, { blockIds: n, props: s, dispatch: r }) => {
|
|
1360
1360
|
r({
|
|
1361
1361
|
type: "update_props_realtime",
|
|
1362
1362
|
payload: { ids: n, props: s }
|
|
1363
1363
|
});
|
|
1364
1364
|
}), of = () => {
|
|
1365
|
-
const { createSnapshot: e } = rs(), t = xe(), n = ot(
|
|
1365
|
+
const { createSnapshot: e } = rs(), t = xe(), n = ot(zi);
|
|
1366
1366
|
return W(
|
|
1367
1367
|
(s, r) => {
|
|
1368
1368
|
n({ blockIds: s, props: r, dispatch: t }), e();
|
|
@@ -1370,19 +1370,19 @@ const zd = () => {
|
|
|
1370
1370
|
[e, t, n]
|
|
1371
1371
|
);
|
|
1372
1372
|
}, af = () => {
|
|
1373
|
-
const e = xe(), t = ot(
|
|
1373
|
+
const e = xe(), t = ot(zi);
|
|
1374
1374
|
return W(
|
|
1375
1375
|
(n, s) => {
|
|
1376
1376
|
t({ blockIds: n, props: s, dispatch: e });
|
|
1377
1377
|
},
|
|
1378
1378
|
[e, t]
|
|
1379
1379
|
);
|
|
1380
|
-
},
|
|
1380
|
+
}, Gi = {
|
|
1381
1381
|
name: "",
|
|
1382
1382
|
props: {},
|
|
1383
1383
|
modalProps: {},
|
|
1384
1384
|
backdropClose: !0
|
|
1385
|
-
}, Uc = N(
|
|
1385
|
+
}, Uc = N(Gi), cf = () => {
|
|
1386
1386
|
const [e, t] = X(Uc), n = W(
|
|
1387
1387
|
(r, i = {}, o = {}) => {
|
|
1388
1388
|
t({ name: r, props: i, modalProps: o });
|
|
@@ -1391,7 +1391,7 @@ const zd = () => {
|
|
|
1391
1391
|
), s = W(
|
|
1392
1392
|
(...r) => {
|
|
1393
1393
|
ee(e, "props.onClose", () => {
|
|
1394
|
-
})(...r), t(
|
|
1394
|
+
})(...r), t(Gi);
|
|
1395
1395
|
},
|
|
1396
1396
|
[t, e]
|
|
1397
1397
|
);
|
|
@@ -1400,11 +1400,11 @@ const zd = () => {
|
|
|
1400
1400
|
openModal: n,
|
|
1401
1401
|
closeModal: s
|
|
1402
1402
|
};
|
|
1403
|
-
}, uf = () => ne(
|
|
1403
|
+
}, uf = () => ne(Ni), qc = N(""), $c = N(null), lf = () => X(qc), df = () => X($c), Qc = kt("selectedBreakpoints", ["XS", "MD", "XL"]), ff = () => {
|
|
1404
1404
|
const [e, t] = X(Qc);
|
|
1405
1405
|
return [e, t];
|
|
1406
|
-
},
|
|
1407
|
-
const e = ot(ns), { clear: t } = rs(), [, n] = xt(), [, s] = Bc(), [, r] =
|
|
1406
|
+
}, Wi = () => {
|
|
1407
|
+
const e = ot(ns), { clear: t } = rs(), [, n] = xt(), [, s] = Bc(), [, r] = _i();
|
|
1408
1408
|
return () => {
|
|
1409
1409
|
n([]), r([]), s(""), t(), e({ undoCount: 0, redoCount: 0 });
|
|
1410
1410
|
};
|
|
@@ -1417,7 +1417,7 @@ const zd = () => {
|
|
|
1417
1417
|
);
|
|
1418
1418
|
return [e, n];
|
|
1419
1419
|
}, pf = (e, t) => {
|
|
1420
|
-
const [n] = X(
|
|
1420
|
+
const [n] = X(mi);
|
|
1421
1421
|
return ee(n, e, t);
|
|
1422
1422
|
}, Kc = N([]), mf = () => {
|
|
1423
1423
|
const [e, t] = ws(!1), [n, s] = X(Kc), r = dn("getUILibraryBlocks", () => []);
|
|
@@ -1428,13 +1428,13 @@ const zd = () => {
|
|
|
1428
1428
|
const [n] = Hc(), s = `${e}${n ? `-${n}` : ""}`;
|
|
1429
1429
|
return { content: ee(t, s, ee(t, e, "")), propKey: e };
|
|
1430
1430
|
}, Jc = () => {
|
|
1431
|
-
const [e, t] =
|
|
1431
|
+
const [e, t] = Ii(), n = dn("previewComponent");
|
|
1432
1432
|
return /* @__PURE__ */ _.jsxs("div", { className: Wo("fixed inset-0 z-[999] bg-background", e ? "block" : "hidden"), children: [
|
|
1433
|
-
/* @__PURE__ */ _.jsx(
|
|
1433
|
+
/* @__PURE__ */ _.jsx(gi, { size: "sm", className: "absolute right-0 top-0 m-4", onClick: () => t(!1), children: "Close Preview" }),
|
|
1434
1434
|
/* @__PURE__ */ _.jsx("div", { children: n ? /* @__PURE__ */ _.jsx(Et, { fallback: /* @__PURE__ */ _.jsx(Vo, { className: "h-96 w-full" }), children: Xn.createElement(n) }) : null })
|
|
1435
1435
|
] });
|
|
1436
1436
|
}, Yc = () => {
|
|
1437
|
-
const [e, t] = xt(), [, n] = _c(), s = Lc(), r =
|
|
1437
|
+
const [e, t] = xt(), [, n] = _c(), s = Lc(), r = Qi(), [, i] = qi(), { pasteBlocks: o } = Dc(), { undo: c, redo: l } = rs();
|
|
1438
1438
|
Qe("esc", () => t([]), {}, [t]), Qe("ctrl+c,command+c", () => n(e), {}, [e, n]), Qe("ctrl+d,command+d", () => r(e), { preventDefault: !0 }, [e, r]), Qe("ctrl+x,command+x", () => i(e), {}, [e, i]), Qe("ctrl+v,command+v", () => e.length === 1 ? o(e[0]) : null, {}, [e, o]), Qe("ctrl+z,command+z", () => c(), {}, [c]), Qe("ctrl+y,command+y", () => l(), {}, [l]), Qe(
|
|
1439
1439
|
"del, backspace",
|
|
1440
1440
|
(u) => {
|
|
@@ -1449,14 +1449,14 @@ const zd = () => {
|
|
|
1449
1449
|
for (; $s(r) && !Le(r); )
|
|
1450
1450
|
n.push(s == null ? void 0 : s._parent), s = Oe(e, { _id: r }), r = s == null ? void 0 : s._parent;
|
|
1451
1451
|
return Pe(n);
|
|
1452
|
-
},
|
|
1453
|
-
const [e] = xt(), t = ne(ke), [, n] = X(
|
|
1452
|
+
}, Hi = N([]), Zc = () => {
|
|
1453
|
+
const [e] = xt(), t = ne(ke), [, n] = X(Hi);
|
|
1454
1454
|
Ee(() => {
|
|
1455
1455
|
let s = [];
|
|
1456
1456
|
const r = Me(e);
|
|
1457
1457
|
$s(r) && (s = [r, ...Xc(t, r)]), n(s);
|
|
1458
1458
|
}, [e, t, n]);
|
|
1459
|
-
}, bf = () => ne(
|
|
1459
|
+
}, bf = () => ne(Hi), eu = Pt(() => import("./SidePanels-c1f857a8.js")), tu = Pt(() => import("./Topbar-8a8249c5.js")), nu = Pt(() => import("./CanvasArea-714b0fdd.js")), su = Pt(() => import("./Settings-abd094d0.js")), ru = () => {
|
|
1460
1460
|
const [e] = Ua(ss), t = (n) => {
|
|
1461
1461
|
n.preventDefault();
|
|
1462
1462
|
};
|
|
@@ -1482,23 +1482,23 @@ const zd = () => {
|
|
|
1482
1482
|
] }) });
|
|
1483
1483
|
}, iu = Go();
|
|
1484
1484
|
N({});
|
|
1485
|
-
function
|
|
1485
|
+
function kr(e, t, n, s, r) {
|
|
1486
1486
|
for (t = t.split ? t.split(".") : t, s = 0; s < t.length; s++)
|
|
1487
1487
|
e = e ? e[t[s]] : r;
|
|
1488
1488
|
return e === r ? n : e;
|
|
1489
1489
|
}
|
|
1490
|
-
var Mn = "undefined",
|
|
1490
|
+
var Mn = "undefined", xr = "object", Ji = "any", Yi = "*", bt = "__", zn = typeof process < "u" ? process : {};
|
|
1491
1491
|
zn.env && zn.env.NODE_ENV;
|
|
1492
1492
|
var _e = typeof document < "u";
|
|
1493
1493
|
zn.versions != null && zn.versions.node != null;
|
|
1494
1494
|
typeof Deno < "u" && Deno.core;
|
|
1495
1495
|
_e && window.name === "nodejs" || typeof navigator < "u" && navigator.userAgent !== void 0 && (navigator.userAgent.includes("Node.js") || navigator.userAgent.includes("jsdom"));
|
|
1496
|
-
function
|
|
1496
|
+
function Xi(e, t) {
|
|
1497
1497
|
return t.charAt(0)[e]() + t.slice(1);
|
|
1498
1498
|
}
|
|
1499
|
-
var ou =
|
|
1499
|
+
var ou = Xi.bind(null, "toUpperCase"), au = Xi.bind(null, "toLowerCase");
|
|
1500
1500
|
function cu(e) {
|
|
1501
|
-
return
|
|
1501
|
+
return Zi(e) ? ou("null") : typeof e == "object" ? hu(e) : Object.prototype.toString.call(e).slice(8, -1);
|
|
1502
1502
|
}
|
|
1503
1503
|
function Gn(e, t) {
|
|
1504
1504
|
t === void 0 && (t = !0);
|
|
@@ -1510,7 +1510,7 @@ function _n(e, t) {
|
|
|
1510
1510
|
}
|
|
1511
1511
|
var De = _n.bind(null, "function"), Ct = _n.bind(null, "string"), Ot = _n.bind(null, "undefined"), uu = _n.bind(null, "boolean");
|
|
1512
1512
|
_n.bind(null, "symbol");
|
|
1513
|
-
function
|
|
1513
|
+
function Zi(e) {
|
|
1514
1514
|
return e === null;
|
|
1515
1515
|
}
|
|
1516
1516
|
function lu(e) {
|
|
@@ -1535,8 +1535,8 @@ function hu(e) {
|
|
|
1535
1535
|
function pu(e) {
|
|
1536
1536
|
return e instanceof Error || Ct(e.message) && e.constructor && lu(e.constructor.stackTraceLimit);
|
|
1537
1537
|
}
|
|
1538
|
-
function
|
|
1539
|
-
if (typeof t != "object" ||
|
|
1538
|
+
function eo(e, t) {
|
|
1539
|
+
if (typeof t != "object" || Zi(t))
|
|
1540
1540
|
return !1;
|
|
1541
1541
|
if (t instanceof e)
|
|
1542
1542
|
return !0;
|
|
@@ -1549,8 +1549,8 @@ function Zi(e, t) {
|
|
|
1549
1549
|
}
|
|
1550
1550
|
return !1;
|
|
1551
1551
|
}
|
|
1552
|
-
|
|
1553
|
-
|
|
1552
|
+
eo.bind(null, TypeError);
|
|
1553
|
+
eo.bind(null, SyntaxError);
|
|
1554
1554
|
function is(e, t) {
|
|
1555
1555
|
var n = e instanceof Element || e instanceof HTMLDocument;
|
|
1556
1556
|
return n && t ? mu(e, t) : n;
|
|
@@ -1568,7 +1568,7 @@ os(is, "form");
|
|
|
1568
1568
|
os(is, "button");
|
|
1569
1569
|
os(is, "input");
|
|
1570
1570
|
os(is, "select");
|
|
1571
|
-
function
|
|
1571
|
+
function Ar(e) {
|
|
1572
1572
|
try {
|
|
1573
1573
|
return decodeURIComponent(e.replace(/\+/g, " "));
|
|
1574
1574
|
} catch {
|
|
@@ -1590,7 +1590,7 @@ function yu() {
|
|
|
1590
1590
|
function vu(e) {
|
|
1591
1591
|
return function(t) {
|
|
1592
1592
|
for (var n, s = /* @__PURE__ */ Object.create(null), r = /([^&=]+)=?([^&]*)/g; n = r.exec(t); ) {
|
|
1593
|
-
var i =
|
|
1593
|
+
var i = Ar(n[1]), o = Ar(n[2]);
|
|
1594
1594
|
i.substring(i.length - 2) === "[]" ? (s[i = i.substring(0, i.length - 2)] || (s[i] = [])).push(o) : s[i] = o === "" || o;
|
|
1595
1595
|
}
|
|
1596
1596
|
for (var c in s) {
|
|
@@ -1624,7 +1624,7 @@ function as() {
|
|
|
1624
1624
|
}
|
|
1625
1625
|
return e;
|
|
1626
1626
|
}
|
|
1627
|
-
var an = "global", Ht = bt + "global" + bt, Jt = typeof self ===
|
|
1627
|
+
var an = "global", Ht = bt + "global" + bt, Jt = typeof self === xr && self.self === self && self || typeof global === xr && global.global === global && global || void 0;
|
|
1628
1628
|
function wt(e) {
|
|
1629
1629
|
return Jt[Ht][e];
|
|
1630
1630
|
}
|
|
@@ -1668,15 +1668,15 @@ function q() {
|
|
|
1668
1668
|
return e;
|
|
1669
1669
|
}, q.apply(this, arguments);
|
|
1670
1670
|
}
|
|
1671
|
-
var Ge = "function", Fe = "undefined", wu = "@@redux/" + Math.random().toString(36),
|
|
1671
|
+
var Ge = "function", Fe = "undefined", wu = "@@redux/" + Math.random().toString(36), Er = /* @__PURE__ */ function() {
|
|
1672
1672
|
return typeof Symbol === Ge && Symbol.observable || "@@observable";
|
|
1673
1673
|
}(), Nn = " != " + Ge;
|
|
1674
|
-
function
|
|
1674
|
+
function to(e, t, n) {
|
|
1675
1675
|
var s;
|
|
1676
1676
|
if (typeof t === Ge && typeof n === Fe && (n = t, t = void 0), typeof n !== Fe) {
|
|
1677
1677
|
if (typeof n !== Ge)
|
|
1678
1678
|
throw new Error("enhancer" + Nn);
|
|
1679
|
-
return n(
|
|
1679
|
+
return n(to)(e, t);
|
|
1680
1680
|
}
|
|
1681
1681
|
if (typeof e !== Ge)
|
|
1682
1682
|
throw new Error("reducer" + Nn);
|
|
@@ -1719,7 +1719,7 @@ function eo(e, t, n) {
|
|
|
1719
1719
|
if (typeof g !== Ge)
|
|
1720
1720
|
throw new Error("next reducer" + Nn);
|
|
1721
1721
|
r = g, P({ type: "@@redux/INIT" });
|
|
1722
|
-
} })[
|
|
1722
|
+
} })[Er] = function() {
|
|
1723
1723
|
var g, O = p;
|
|
1724
1724
|
return (g = { subscribe: function(C) {
|
|
1725
1725
|
if (typeof C != "object")
|
|
@@ -1728,7 +1728,7 @@ function eo(e, t, n) {
|
|
|
1728
1728
|
C.next && C.next(f());
|
|
1729
1729
|
}
|
|
1730
1730
|
return y(), { unsubscribe: O(y) };
|
|
1731
|
-
} })[
|
|
1731
|
+
} })[Er] = function() {
|
|
1732
1732
|
return this;
|
|
1733
1733
|
}, g;
|
|
1734
1734
|
}, s;
|
|
@@ -1766,7 +1766,7 @@ var rt = bt + "anon_id", yt = bt + "user_id", It = bt + "user_traits", Ke = "use
|
|
|
1766
1766
|
return "registerPlugin:" + e;
|
|
1767
1767
|
}, pluginReadyType: function(e) {
|
|
1768
1768
|
return "ready:" + e;
|
|
1769
|
-
} }),
|
|
1769
|
+
} }), Or = /^utm_/, _r = /^an_prop_/, Cr = /^an_trait_/;
|
|
1770
1770
|
function ku(e) {
|
|
1771
1771
|
var t = e.storage.setItem;
|
|
1772
1772
|
return function(n) {
|
|
@@ -1778,11 +1778,11 @@ function ku(e) {
|
|
|
1778
1778
|
var f = Object.keys(r.params);
|
|
1779
1779
|
if (f.length) {
|
|
1780
1780
|
var p = i.an_uid, P = i.an_event, g = f.reduce(function(O, C) {
|
|
1781
|
-
if (C.match(
|
|
1782
|
-
var y = C.replace(
|
|
1781
|
+
if (C.match(Or) || C.match(/^(d|g)clid/)) {
|
|
1782
|
+
var y = C.replace(Or, "");
|
|
1783
1783
|
O.campaign[y === "campaign" ? "name" : y] = i[C];
|
|
1784
1784
|
}
|
|
1785
|
-
return C.match(
|
|
1785
|
+
return C.match(_r) && (O.props[C.replace(_r, "")] = i[C]), C.match(Cr) && (O.traits[C.replace(Cr, "")] = i[C]), O;
|
|
1786
1786
|
}, { campaign: {}, props: {}, traits: {} });
|
|
1787
1787
|
n.dispatch(q({ type: U.params, raw: i }, g, p ? { userId: p } : {})), p && setTimeout(function() {
|
|
1788
1788
|
return e.identify(p, g.traits);
|
|
@@ -1816,7 +1816,7 @@ function xu(e) {
|
|
|
1816
1816
|
}
|
|
1817
1817
|
};
|
|
1818
1818
|
}
|
|
1819
|
-
function
|
|
1819
|
+
function Ir(e) {
|
|
1820
1820
|
return { userId: e.getItem(yt), anonymousId: e.getItem(rt), traits: e.getItem(It) };
|
|
1821
1821
|
}
|
|
1822
1822
|
var _s = function(e) {
|
|
@@ -1843,19 +1843,19 @@ function Au(e) {
|
|
|
1843
1843
|
};
|
|
1844
1844
|
}
|
|
1845
1845
|
var rn = {};
|
|
1846
|
-
function
|
|
1846
|
+
function jr(e, t) {
|
|
1847
1847
|
rn[e] && De(rn[e]) && (rn[e](t), delete rn[e]);
|
|
1848
1848
|
}
|
|
1849
|
-
function
|
|
1849
|
+
function no(e, t, n) {
|
|
1850
1850
|
return new Promise(function(s, r) {
|
|
1851
1851
|
return t() ? s(e) : n < 1 ? r(q({}, e, { queue: !0 })) : new Promise(function(i) {
|
|
1852
1852
|
return setTimeout(i, 10);
|
|
1853
1853
|
}).then(function(i) {
|
|
1854
|
-
return
|
|
1854
|
+
return no(e, t, n - 10).then(s, r);
|
|
1855
1855
|
});
|
|
1856
1856
|
});
|
|
1857
1857
|
}
|
|
1858
|
-
function
|
|
1858
|
+
function so(e, t, n) {
|
|
1859
1859
|
var s = t(), r = e.getState(), i = r.plugins, o = r.queue, c = r.user;
|
|
1860
1860
|
if (!r.context.offline && o && o.actions && o.actions.length) {
|
|
1861
1861
|
var l = o.actions.reduce(function(f, p, P) {
|
|
@@ -1926,15 +1926,15 @@ var ms = function(e) {
|
|
|
1926
1926
|
try {
|
|
1927
1927
|
return Promise.resolve(T).then(function(v) {
|
|
1928
1928
|
return M.method && De(M.method) ? (function(E, S) {
|
|
1929
|
-
var V =
|
|
1929
|
+
var V = Tr(E);
|
|
1930
1930
|
if (V && V.name === S) {
|
|
1931
|
-
var $ =
|
|
1931
|
+
var $ = Tr(V.method);
|
|
1932
1932
|
throw new Error([S + " plugin is calling method " + E, "Plugins cant call self", "Use " + V.method + " " + ($ ? "or " + $.method : "") + " in " + S + " plugin insteadof " + E].join(`
|
|
1933
1933
|
`));
|
|
1934
1934
|
}
|
|
1935
1935
|
}(M.methodName, M.pluginName), Promise.resolve(M.method({ payload: v, instance: s, abort: (j = v, w = B, D = M.pluginName, function(E, S) {
|
|
1936
1936
|
return q({}, j, { abort: { reason: E, plugins: S || [w], caller: p, from: D || w } });
|
|
1937
|
-
}), config:
|
|
1937
|
+
}), config: Dr(M.pluginName, u, i), plugins: u })).then(function(E) {
|
|
1938
1938
|
var S = ge(E) ? E : {};
|
|
1939
1939
|
return Promise.resolve(q({}, v, S));
|
|
1940
1940
|
})) : v;
|
|
@@ -1966,13 +1966,13 @@ var ms = function(e) {
|
|
|
1966
1966
|
if (C.hasOwnProperty(k) && C[k] === !0)
|
|
1967
1967
|
return c.dispatch({ type: "queue", plugin: k, payload: M, _: { called: "queue", from: "queueMechanism" } }), Promise.resolve(T);
|
|
1968
1968
|
var m = O(y[k], i[k]);
|
|
1969
|
-
return Promise.resolve(F[p]({ abort: m.abort, payload: M, instance: s, config:
|
|
1969
|
+
return Promise.resolve(F[p]({ abort: m.abort, payload: M, instance: s, config: Dr(k, u, i), plugins: u })).then(function(v) {
|
|
1970
1970
|
var j = ge(v) ? v : {}, w = q({}, T, j), D = y[k];
|
|
1971
1971
|
if (ys(D, k))
|
|
1972
1972
|
gs({ data: D, method: p, instance: s, pluginName: k, store: c });
|
|
1973
1973
|
else {
|
|
1974
1974
|
var E = p + ":" + k;
|
|
1975
|
-
(E.match(/:/g) || []).length < 2 && !p.match(
|
|
1975
|
+
(E.match(/:/g) || []).length < 2 && !p.match(Br) && !p.match(Rr) && s.dispatch(q({}, P ? w : M, { type: E, _: { called: E, from: "submethod" } }));
|
|
1976
1976
|
}
|
|
1977
1977
|
return Promise.resolve(w);
|
|
1978
1978
|
});
|
|
@@ -1981,11 +1981,11 @@ var ms = function(e) {
|
|
|
1981
1981
|
return Promise.reject(T);
|
|
1982
1982
|
}
|
|
1983
1983
|
}, Promise.resolve(n))).then(function(A) {
|
|
1984
|
-
if (!(p.match(jt) || p.match(/^registerPlugin/) || p.match(
|
|
1984
|
+
if (!(p.match(jt) || p.match(/^registerPlugin/) || p.match(Rr) || p.match(Br) || p.match(/^params/) || p.match(/^userIdChanged/))) {
|
|
1985
1985
|
if (l.plugins.includes(p), A._ && A._.originalAction === p)
|
|
1986
1986
|
return A;
|
|
1987
1987
|
var I = q({}, A, { _: { originalAction: A.type, called: A.type, from: "engineEnd" } });
|
|
1988
|
-
|
|
1988
|
+
ro(A, t.exact.length) && !p.match(/End$/) && (I = q({}, I, { type: A.type + "Aborted" })), c.dispatch(I);
|
|
1989
1989
|
}
|
|
1990
1990
|
return A;
|
|
1991
1991
|
});
|
|
@@ -1993,29 +1993,29 @@ var ms = function(e) {
|
|
|
1993
1993
|
} catch (y) {
|
|
1994
1994
|
return Promise.reject(y);
|
|
1995
1995
|
}
|
|
1996
|
-
}, jt = /Start$/,
|
|
1996
|
+
}, jt = /Start$/, Br = /^bootstrap/, Rr = /^ready/;
|
|
1997
1997
|
function gs(e) {
|
|
1998
1998
|
var t = e.pluginName, n = e.method + "Aborted" + (t ? ":" + t : "");
|
|
1999
1999
|
e.store.dispatch(q({}, e.data, { type: n, _: { called: n, from: "abort" } }));
|
|
2000
2000
|
}
|
|
2001
|
-
function
|
|
2001
|
+
function Dr(e, t, n) {
|
|
2002
2002
|
var s = t[e] || n[e];
|
|
2003
2003
|
return s && s.config ? s.config : {};
|
|
2004
2004
|
}
|
|
2005
|
-
function
|
|
2005
|
+
function Mr(e, t) {
|
|
2006
2006
|
return t.reduce(function(n, s) {
|
|
2007
2007
|
return s[e] ? n.concat({ methodName: e, pluginName: s.name, method: s[e] }) : n;
|
|
2008
2008
|
}, []);
|
|
2009
2009
|
}
|
|
2010
|
-
function
|
|
2010
|
+
function Lr(e, t) {
|
|
2011
2011
|
var n = e.replace(jt, ""), s = t ? ":" + t : "";
|
|
2012
2012
|
return ["" + e + s, "" + n + s, n + "End" + s];
|
|
2013
2013
|
}
|
|
2014
2014
|
function ys(e, t) {
|
|
2015
2015
|
var n = e.abort;
|
|
2016
|
-
return !!n && (n === !0 ||
|
|
2016
|
+
return !!n && (n === !0 || Nr(n, t) || n && Nr(n.plugins, t));
|
|
2017
2017
|
}
|
|
2018
|
-
function
|
|
2018
|
+
function ro(e, t) {
|
|
2019
2019
|
var n = e.abort;
|
|
2020
2020
|
if (!n)
|
|
2021
2021
|
return !1;
|
|
@@ -2027,10 +2027,10 @@ function so(e, t) {
|
|
|
2027
2027
|
function fn(e) {
|
|
2028
2028
|
return Array.isArray(e);
|
|
2029
2029
|
}
|
|
2030
|
-
function
|
|
2030
|
+
function Nr(e, t) {
|
|
2031
2031
|
return !(!e || !fn(e)) && e.includes(t);
|
|
2032
2032
|
}
|
|
2033
|
-
function
|
|
2033
|
+
function Tr(e) {
|
|
2034
2034
|
var t = e.match(/(.*):(.*)/);
|
|
2035
2035
|
return !!t && { method: t[1], name: t[2] };
|
|
2036
2036
|
}
|
|
@@ -2051,7 +2051,7 @@ function Ou(e, t, n) {
|
|
|
2051
2051
|
if (o.abort)
|
|
2052
2052
|
return Promise.resolve(i(o));
|
|
2053
2053
|
if (u === U.enablePlugin && r.dispatch({ type: U.initializeStart, plugins: f, disabled: [], fromEnable: !0, meta: o.meta }), u === U.disablePlugin && setTimeout(function() {
|
|
2054
|
-
return
|
|
2054
|
+
return jr(o.meta.rid, { payload: o });
|
|
2055
2055
|
}, 0), u === U.initializeEnd) {
|
|
2056
2056
|
var P = t(), g = Object.keys(P), O = g.filter(function(b) {
|
|
2057
2057
|
return f.includes(b);
|
|
@@ -2059,7 +2059,7 @@ function Ou(e, t, n) {
|
|
|
2059
2059
|
return P[b];
|
|
2060
2060
|
}), C = [], y = [], A = o.disabled, I = O.map(function(b) {
|
|
2061
2061
|
var k = b.loaded, F = b.name, T = b.config;
|
|
2062
|
-
return
|
|
2062
|
+
return no(b, function() {
|
|
2063
2063
|
return k({ config: T });
|
|
2064
2064
|
}, 1e4).then(function(M) {
|
|
2065
2065
|
return s[F] || (r.dispatch({ type: U.pluginReadyType(F), name: F, events: Object.keys(b).filter(function(m) {
|
|
@@ -2081,7 +2081,7 @@ function Ou(e, t, n) {
|
|
|
2081
2081
|
var B = function() {
|
|
2082
2082
|
if (u !== U.bootstrap)
|
|
2083
2083
|
return /^ready:([^:]*)$/.test(u) && setTimeout(function() {
|
|
2084
|
-
return
|
|
2084
|
+
return so(r, t, e);
|
|
2085
2085
|
}, 0), Promise.resolve(function(b, k, F, T, M) {
|
|
2086
2086
|
try {
|
|
2087
2087
|
var m = De(k) ? k() : k, v = b.type, j = v.replace(jt, "");
|
|
@@ -2102,12 +2102,12 @@ function Ou(e, t, n) {
|
|
|
2102
2102
|
var E = D.map(function(d) {
|
|
2103
2103
|
return d.name;
|
|
2104
2104
|
}), S = function(d, h, L) {
|
|
2105
|
-
var K =
|
|
2106
|
-
return
|
|
2105
|
+
var K = Lr(d).map(function(z) {
|
|
2106
|
+
return Mr(z, h);
|
|
2107
2107
|
});
|
|
2108
2108
|
return h.reduce(function(z, H) {
|
|
2109
|
-
var ce = H.name, Y =
|
|
2110
|
-
return
|
|
2109
|
+
var ce = H.name, Y = Lr(d, ce).map(function(nn) {
|
|
2110
|
+
return Mr(nn, h);
|
|
2111
2111
|
}), se = Y[0], J = Y[1], Ce = Y[2];
|
|
2112
2112
|
return se.length && (z.beforeNS[ce] = se), J.length && (z.duringNS[ce] = J), Ce.length && (z.afterNS[ce] = Ce), z;
|
|
2113
2113
|
}, { before: K[0], beforeNS: {}, during: K[1], duringNS: {}, after: K[2], afterNS: {} });
|
|
@@ -2117,14 +2117,14 @@ function Ou(e, t, n) {
|
|
|
2117
2117
|
var z = function() {
|
|
2118
2118
|
if (v.match(jt))
|
|
2119
2119
|
return Promise.resolve(ms({ action: q({}, L, { type: j + "End" }), data: { exact: S.after, namespaced: S.afterNS }, state: w, allPlugins: m, allMatches: S, instance: F, store: T, EVENTS: M })).then(function(H) {
|
|
2120
|
-
H.meta && H.meta.hasCallback &&
|
|
2120
|
+
H.meta && H.meta.hasCallback && jr(H.meta.rid, { payload: H });
|
|
2121
2121
|
});
|
|
2122
2122
|
}();
|
|
2123
2123
|
return z && z.then ? z.then(function() {
|
|
2124
2124
|
return d;
|
|
2125
2125
|
}) : d;
|
|
2126
2126
|
}
|
|
2127
|
-
if (
|
|
2127
|
+
if (ro(d, E.length))
|
|
2128
2128
|
return d;
|
|
2129
2129
|
var L, K = function() {
|
|
2130
2130
|
if (v !== j)
|
|
@@ -2197,37 +2197,37 @@ function Iu(e) {
|
|
|
2197
2197
|
if (n.type === "initialize:aborted")
|
|
2198
2198
|
return t;
|
|
2199
2199
|
if (/^registerPlugin:([^:]*)$/.test(n.type)) {
|
|
2200
|
-
var r =
|
|
2200
|
+
var r = Fr(n.type, "registerPlugin"), i = e()[r];
|
|
2201
2201
|
if (!i || !r)
|
|
2202
2202
|
return t;
|
|
2203
2203
|
var o = n.enabled, c = i.config;
|
|
2204
2204
|
return s[r] = { enabled: o, initialized: !!o && !i.initialize, loaded: !!o && !!i.loaded({ config: c }), config: c }, q({}, t, s);
|
|
2205
2205
|
}
|
|
2206
2206
|
if (/^initialize:([^:]*)$/.test(n.type)) {
|
|
2207
|
-
var l =
|
|
2207
|
+
var l = Fr(n.type, U.initialize), u = e()[l];
|
|
2208
2208
|
return u && l ? (s[l] = q({}, t[l], { initialized: !0, loaded: !!u.loaded({ config: u.config }) }), q({}, t, s)) : t;
|
|
2209
2209
|
}
|
|
2210
2210
|
if (/^ready:([^:]*)$/.test(n.type))
|
|
2211
2211
|
return s[n.name] = q({}, t[n.name], { loaded: !0 }), q({}, t, s);
|
|
2212
2212
|
switch (n.type) {
|
|
2213
2213
|
case U.disablePlugin:
|
|
2214
|
-
return q({}, t,
|
|
2214
|
+
return q({}, t, Ur(n.plugins, !1, t));
|
|
2215
2215
|
case U.enablePlugin:
|
|
2216
|
-
return q({}, t,
|
|
2216
|
+
return q({}, t, Ur(n.plugins, !0, t));
|
|
2217
2217
|
default:
|
|
2218
2218
|
return t;
|
|
2219
2219
|
}
|
|
2220
2220
|
};
|
|
2221
2221
|
}
|
|
2222
|
-
function
|
|
2222
|
+
function Fr(e, t) {
|
|
2223
2223
|
return e.substring(t.length + 1, e.length);
|
|
2224
2224
|
}
|
|
2225
|
-
function
|
|
2225
|
+
function Ur(e, t, n) {
|
|
2226
2226
|
return e.reduce(function(s, r) {
|
|
2227
2227
|
return s[r] = q({}, n[r], { enabled: t }), s;
|
|
2228
2228
|
}, n);
|
|
2229
2229
|
}
|
|
2230
|
-
function
|
|
2230
|
+
function io(e) {
|
|
2231
2231
|
try {
|
|
2232
2232
|
return JSON.parse(JSON.stringify(e));
|
|
2233
2233
|
} catch {
|
|
@@ -2239,7 +2239,7 @@ function Bu(e, t) {
|
|
|
2239
2239
|
e === void 0 && (e = ju);
|
|
2240
2240
|
var n = t.options, s = t.meta;
|
|
2241
2241
|
if (t.type === U.track) {
|
|
2242
|
-
var r =
|
|
2242
|
+
var r = io(q({ event: t.event, properties: t.properties }, Object.keys(n).length && { options: n }, { meta: s }));
|
|
2243
2243
|
return q({}, e, { last: r, history: e.history.concat(r) });
|
|
2244
2244
|
}
|
|
2245
2245
|
return e;
|
|
@@ -2258,12 +2258,12 @@ function Du(e, t) {
|
|
|
2258
2258
|
return e;
|
|
2259
2259
|
}
|
|
2260
2260
|
}
|
|
2261
|
-
var
|
|
2261
|
+
var oo = /#.*$/;
|
|
2262
2262
|
function Mu(e) {
|
|
2263
2263
|
var t = /(http[s]?:\/\/)?([^\/\s]+\/)(.*)/g.exec(e);
|
|
2264
|
-
return "/" + (t && t[3] ? t[3].split("?")[0].replace(
|
|
2264
|
+
return "/" + (t && t[3] ? t[3].split("?")[0].replace(oo, "") : "");
|
|
2265
2265
|
}
|
|
2266
|
-
var
|
|
2266
|
+
var ao, co, uo, lo, Lu = function(e) {
|
|
2267
2267
|
if (e === void 0 && (e = {}), !_e)
|
|
2268
2268
|
return e;
|
|
2269
2269
|
var t = document, n = t.title, s = t.referrer, r = window, i = r.location, o = r.innerWidth, c = r.innerHeight, l = i.hash, u = i.search, f = function(P) {
|
|
@@ -2274,7 +2274,7 @@ var oo, ao, co, uo, Lu = function(e) {
|
|
|
2274
2274
|
return O.getAttribute("href");
|
|
2275
2275
|
}
|
|
2276
2276
|
}();
|
|
2277
|
-
return g ? g.match(/\?/) ? g : g + P : window.location.href.replace(
|
|
2277
|
+
return g ? g.match(/\?/) ? g : g + P : window.location.href.replace(oo, "");
|
|
2278
2278
|
}(u), p = { title: n, url: f, path: Mu(f), hash: l, search: u, width: o, height: c };
|
|
2279
2279
|
return s && s !== "" && (p.referrer = s), q({}, p, e);
|
|
2280
2280
|
}, Nu = { last: {}, history: [] };
|
|
@@ -2282,20 +2282,20 @@ function Tu(e, t) {
|
|
|
2282
2282
|
e === void 0 && (e = Nu);
|
|
2283
2283
|
var n = t.options;
|
|
2284
2284
|
if (t.type === U.page) {
|
|
2285
|
-
var s =
|
|
2285
|
+
var s = io(q({ properties: t.properties, meta: t.meta }, Object.keys(n).length && { options: n }));
|
|
2286
2286
|
return q({}, e, { last: s, history: e.history.concat(s) });
|
|
2287
2287
|
}
|
|
2288
2288
|
return e;
|
|
2289
2289
|
}
|
|
2290
|
-
|
|
2290
|
+
ao = function() {
|
|
2291
2291
|
if (!_e)
|
|
2292
2292
|
return !1;
|
|
2293
2293
|
var e = navigator.appVersion;
|
|
2294
2294
|
return ~e.indexOf("Win") ? "Windows" : ~e.indexOf("Mac") ? "MacOS" : ~e.indexOf("X11") ? "UNIX" : ~e.indexOf("Linux") ? "Linux" : "Unknown OS";
|
|
2295
|
-
}(),
|
|
2296
|
-
var
|
|
2295
|
+
}(), co = _e ? document.referrer : null, uo = gu(), lo = yu();
|
|
2296
|
+
var qr = { initialized: !1, sessionId: as(), app: null, version: null, debug: !1, offline: !!_e && !navigator.onLine, os: { name: ao }, userAgent: _e ? navigator.userAgent : "node", library: { name: "analytics", version: "0.12.5" }, timezone: lo, locale: uo, campaign: {}, referrer: co };
|
|
2297
2297
|
function Fu(e, t) {
|
|
2298
|
-
e === void 0 && (e =
|
|
2298
|
+
e === void 0 && (e = qr);
|
|
2299
2299
|
var n = e.initialized, s = t.campaign;
|
|
2300
2300
|
switch (t.type) {
|
|
2301
2301
|
case U.campaign:
|
|
@@ -2305,7 +2305,7 @@ function Fu(e, t) {
|
|
|
2305
2305
|
case U.online:
|
|
2306
2306
|
return q({}, e, { offline: !1 });
|
|
2307
2307
|
default:
|
|
2308
|
-
return n ? e : q({},
|
|
2308
|
+
return n ? e : q({}, qr, e, { initialized: !0 });
|
|
2309
2309
|
}
|
|
2310
2310
|
}
|
|
2311
2311
|
var Uu = ["plugins", "reducers", "storage"];
|
|
@@ -2325,7 +2325,7 @@ function $u(e) {
|
|
|
2325
2325
|
return t(!1);
|
|
2326
2326
|
};
|
|
2327
2327
|
}
|
|
2328
|
-
function
|
|
2328
|
+
function fo() {
|
|
2329
2329
|
return St("analytics", []), function(e) {
|
|
2330
2330
|
return function(t, n, s) {
|
|
2331
2331
|
var r = e(t, n, s), i = r.dispatch;
|
|
@@ -2335,15 +2335,15 @@ function lo() {
|
|
|
2335
2335
|
};
|
|
2336
2336
|
};
|
|
2337
2337
|
}
|
|
2338
|
-
function
|
|
2338
|
+
function $r(e) {
|
|
2339
2339
|
return function() {
|
|
2340
|
-
return Yt(Yt.apply(null, arguments),
|
|
2340
|
+
return Yt(Yt.apply(null, arguments), fo());
|
|
2341
2341
|
};
|
|
2342
2342
|
}
|
|
2343
2343
|
function vs(e) {
|
|
2344
2344
|
return e ? du(e) ? e : [e] : [];
|
|
2345
2345
|
}
|
|
2346
|
-
function
|
|
2346
|
+
function Qr(e, t, n) {
|
|
2347
2347
|
e === void 0 && (e = {});
|
|
2348
2348
|
var s, r, i = as();
|
|
2349
2349
|
return t && (rn[i] = (s = t, r = function(o) {
|
|
@@ -2384,7 +2384,7 @@ function Qu(e) {
|
|
|
2384
2384
|
}), d;
|
|
2385
2385
|
}, { plugins: {}, pluginEnabled: {}, methods: {}, pluginsArray: [], middlewares: [], events: [] }), r = e.storage ? e.storage : { getItem: wt, setItem: St, removeItem: Zt }, i = function(d) {
|
|
2386
2386
|
return function(h, L, K) {
|
|
2387
|
-
return L.getState("user")[h] || (K && ge(K) && K[h] ? K[h] :
|
|
2387
|
+
return L.getState("user")[h] || (K && ge(K) && K[h] ? K[h] : Ir(d)[h] || wt(_s(h)) || null);
|
|
2388
2388
|
};
|
|
2389
2389
|
}(r), o = s.plugins, c = s.events.filter(function(d) {
|
|
2390
2390
|
return !Os.includes(d);
|
|
@@ -2394,7 +2394,7 @@ function Qu(e) {
|
|
|
2394
2394
|
return o;
|
|
2395
2395
|
}, p = new Cu(), P = p.addMiddleware, g = p.removeMiddleware, O = p.dynamicMiddlewares, C = function() {
|
|
2396
2396
|
throw new Error("Abort disabled inListener");
|
|
2397
|
-
}, y = vu(), A =
|
|
2397
|
+
}, y = vu(), A = Ir(r), I = q({}, A, n, y.an_uid ? { userId: y.an_uid } : {}, y.an_aid ? { anonymousId: y.an_aid } : {});
|
|
2398
2398
|
I.anonymousId || (I.anonymousId = as());
|
|
2399
2399
|
var B = q({ enable: function(d, h) {
|
|
2400
2400
|
return new Promise(function(L) {
|
|
@@ -2442,7 +2442,7 @@ function Qu(e) {
|
|
|
2442
2442
|
if (d === _t || d === "anonId")
|
|
2443
2443
|
return i(_t, k);
|
|
2444
2444
|
var h = k.getState("user");
|
|
2445
|
-
return d ?
|
|
2445
|
+
return d ? kr(h, d) : h;
|
|
2446
2446
|
}, reset: function(d) {
|
|
2447
2447
|
return new Promise(function(h) {
|
|
2448
2448
|
S.dispatch({ type: U.resetStart }, h, d);
|
|
@@ -2496,7 +2496,7 @@ function Qu(e) {
|
|
|
2496
2496
|
return L;
|
|
2497
2497
|
}, getState: function(d) {
|
|
2498
2498
|
var h = S.getState();
|
|
2499
|
-
return d ?
|
|
2499
|
+
return d ? kr(h, d) : Object.assign({}, h);
|
|
2500
2500
|
}, dispatch: function(d) {
|
|
2501
2501
|
var h = Ct(d) ? { type: d } : d;
|
|
2502
2502
|
if ($n.includes(h.type))
|
|
@@ -2512,14 +2512,14 @@ function Qu(e) {
|
|
|
2512
2512
|
}, events: { core: $n, plugins: c } }, F = s.middlewares.concat([function(d) {
|
|
2513
2513
|
return function(h) {
|
|
2514
2514
|
return function(L) {
|
|
2515
|
-
return L.meta || (L.meta =
|
|
2515
|
+
return L.meta || (L.meta = Qr()), h(L);
|
|
2516
2516
|
};
|
|
2517
2517
|
};
|
|
2518
2518
|
}, O(Tn), Ou(k, f, { all: u, plugins: c }), _u(r), ku(k), Au(k), O(Fn)]), T = { context: Fu, user: xu(r), page: Tu, track: Bu, plugins: Iu(f), queue: Du }, M = Yt, m = Yt;
|
|
2519
2519
|
if (_e && e.debug) {
|
|
2520
2520
|
var v = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__;
|
|
2521
2521
|
v && (M = v({ trace: !0, traceLimit: 25 })), m = function() {
|
|
2522
|
-
return arguments.length === 0 ?
|
|
2522
|
+
return arguments.length === 0 ? fo() : ge(typeof arguments[0]) ? $r() : $r().apply(null, arguments);
|
|
2523
2523
|
};
|
|
2524
2524
|
}
|
|
2525
2525
|
var j, w = function(d) {
|
|
@@ -2529,7 +2529,7 @@ function Qu(e) {
|
|
|
2529
2529
|
}(e), D = s.pluginsArray.reduce(function(d, h) {
|
|
2530
2530
|
var L = h.name, K = h.config, z = h.loaded, H = s.pluginEnabled[L];
|
|
2531
2531
|
return d[L] = { enabled: H, initialized: !!H && !h.initialize, loaded: !!z({ config: K }), config: K }, d;
|
|
2532
|
-
}, {}), E = { context: w, user: I, plugins: D }, S =
|
|
2532
|
+
}, {}), E = { context: w, user: I, plugins: D }, S = to(function(d) {
|
|
2533
2533
|
for (var h = Object.keys(d), L = {}, K = 0; K < h.length; K++) {
|
|
2534
2534
|
var z = h[K];
|
|
2535
2535
|
typeof d[z] === Ge && (L[z] = d[z]);
|
|
@@ -2550,18 +2550,18 @@ function Qu(e) {
|
|
|
2550
2550
|
if (Y === void 0 && (Y = {}), H)
|
|
2551
2551
|
throw H;
|
|
2552
2552
|
for (var J = !1, Ce = {}, nn = 0; nn < ce.length; nn++) {
|
|
2553
|
-
var jn = ce[nn],
|
|
2553
|
+
var jn = ce[nn], or = Y[jn], ds = (0, L[jn])(or, se);
|
|
2554
2554
|
if (typeof ds === Fe) {
|
|
2555
2555
|
var Co = Su(jn, se);
|
|
2556
2556
|
throw new Error(Co);
|
|
2557
2557
|
}
|
|
2558
|
-
Ce[jn] = ds, J = J || ds !==
|
|
2558
|
+
Ce[jn] = ds, J = J || ds !== or;
|
|
2559
2559
|
}
|
|
2560
2560
|
return J ? Ce : Y;
|
|
2561
2561
|
};
|
|
2562
2562
|
}(q({}, T, t)), E, m(M(Pu.apply(void 0, F))));
|
|
2563
2563
|
S.dispatch = (j = S.dispatch, function(d, h, L) {
|
|
2564
|
-
var K = q({}, d, { meta:
|
|
2564
|
+
var K = q({}, d, { meta: Qr(d.meta, h, vs(L)) });
|
|
2565
2565
|
return j.apply(null, [K]);
|
|
2566
2566
|
});
|
|
2567
2567
|
var V = Object.keys(o);
|
|
@@ -2578,20 +2578,20 @@ function Qu(e) {
|
|
|
2578
2578
|
S.dispatch({ type: d ? U.offline : U.online });
|
|
2579
2579
|
}), function(d, h, L) {
|
|
2580
2580
|
setInterval(function() {
|
|
2581
|
-
return
|
|
2581
|
+
return so(d, h, L);
|
|
2582
2582
|
}, 3e3);
|
|
2583
2583
|
}(S, f, k), k;
|
|
2584
2584
|
}
|
|
2585
|
-
var Tn = "before", Fn = "after", cn = "cookie", at =
|
|
2586
|
-
function
|
|
2585
|
+
var Tn = "before", Fn = "after", cn = "cookie", at = mo(), ho = cs, Vu = cs;
|
|
2586
|
+
function po(e) {
|
|
2587
2587
|
return at ? cs(e, "", -1) : Zt(e);
|
|
2588
2588
|
}
|
|
2589
|
-
function
|
|
2589
|
+
function mo() {
|
|
2590
2590
|
if (at !== void 0)
|
|
2591
2591
|
return at;
|
|
2592
2592
|
var e = "cookiecookie";
|
|
2593
2593
|
try {
|
|
2594
|
-
cs(e, e), at = document.cookie.indexOf(e) !== -1,
|
|
2594
|
+
cs(e, e), at = document.cookie.indexOf(e) !== -1, po(e);
|
|
2595
2595
|
} catch {
|
|
2596
2596
|
at = !1;
|
|
2597
2597
|
}
|
|
@@ -2626,13 +2626,13 @@ function Bt(e) {
|
|
|
2626
2626
|
if (t !== null && t !== "")
|
|
2627
2627
|
return t;
|
|
2628
2628
|
}
|
|
2629
|
-
var Gu = Ku(), Wu = zu(), Hu =
|
|
2630
|
-
function
|
|
2629
|
+
var Gu = Ku(), Wu = zu(), Hu = mo();
|
|
2630
|
+
function go(e, t) {
|
|
2631
2631
|
if (e) {
|
|
2632
2632
|
var n = Xs(t), s = !nr(n), r = Zs(n) ? Bt(localStorage.getItem(e)) : void 0;
|
|
2633
2633
|
if (s && !Ot(r))
|
|
2634
2634
|
return r;
|
|
2635
|
-
var i = er(n) ? Bt(
|
|
2635
|
+
var i = er(n) ? Bt(ho(e)) : void 0;
|
|
2636
2636
|
if (s && i)
|
|
2637
2637
|
return i;
|
|
2638
2638
|
var o = tr(n) ? Bt(sessionStorage.getItem(e)) : void 0;
|
|
@@ -2645,17 +2645,17 @@ function mo(e, t) {
|
|
|
2645
2645
|
function Ju(e, t, n) {
|
|
2646
2646
|
if (e && !Ot(t)) {
|
|
2647
2647
|
var s = {}, r = Xs(n), i = JSON.stringify(t), o = !nr(r);
|
|
2648
|
-
return Zs(r) && (s[un] = Un(un, t, Bt(localStorage.getItem(e))), localStorage.setItem(e, i), o) ? s[un] : er(r) && (s[cn] = Un(cn, t, Bt(
|
|
2648
|
+
return Zs(r) && (s[un] = Un(un, t, Bt(localStorage.getItem(e))), localStorage.setItem(e, i), o) ? s[un] : er(r) && (s[cn] = Un(cn, t, Bt(ho(e))), Vu(e, i), o) ? s[cn] : tr(r) && (s[ln] = Un(ln, t, Bt(sessionStorage.getItem(e))), sessionStorage.setItem(e, i), o) ? s[ln] : (s[an] = Un(an, t, wt(e)), St(e, t), o ? s[an] : s);
|
|
2649
2649
|
}
|
|
2650
2650
|
}
|
|
2651
2651
|
function Yu(e, t) {
|
|
2652
2652
|
if (e) {
|
|
2653
|
-
var n = Xs(t), s =
|
|
2654
|
-
return !Ot(s.localStorage) && Zs(n) && (localStorage.removeItem(e), r[un] = s.localStorage), !Ot(s.cookie) && er(n) && (
|
|
2653
|
+
var n = Xs(t), s = go(e, Yi), r = {};
|
|
2654
|
+
return !Ot(s.localStorage) && Zs(n) && (localStorage.removeItem(e), r[un] = s.localStorage), !Ot(s.cookie) && er(n) && (po(e), r[cn] = s.cookie), !Ot(s.sessionStorage) && tr(n) && (sessionStorage.removeItem(e), r[ln] = s.sessionStorage), !Ot(s.global) && us(n, an) && (Zt(e), r[an] = s.global), r;
|
|
2655
2655
|
}
|
|
2656
2656
|
}
|
|
2657
2657
|
function Xs(e) {
|
|
2658
|
-
return e ? Ct(e) ? e : e.storage :
|
|
2658
|
+
return e ? Ct(e) ? e : e.storage : Ji;
|
|
2659
2659
|
}
|
|
2660
2660
|
function Zs(e) {
|
|
2661
2661
|
return Gu && us(e, un);
|
|
@@ -2667,15 +2667,15 @@ function tr(e) {
|
|
|
2667
2667
|
return Wu && us(e, ln);
|
|
2668
2668
|
}
|
|
2669
2669
|
function nr(e) {
|
|
2670
|
-
return e ===
|
|
2670
|
+
return e === Yi || e === "all";
|
|
2671
2671
|
}
|
|
2672
2672
|
function us(e, t) {
|
|
2673
|
-
return e ===
|
|
2673
|
+
return e === Ji || e === t || nr(e);
|
|
2674
2674
|
}
|
|
2675
2675
|
function Un(e, t, n) {
|
|
2676
2676
|
return { location: e, current: t, previous: n };
|
|
2677
2677
|
}
|
|
2678
|
-
var Xu = { setItem: Ju, getItem:
|
|
2678
|
+
var Xu = { setItem: Ju, getItem: go, removeItem: Yu };
|
|
2679
2679
|
function Zu(e, t, n) {
|
|
2680
2680
|
return t in e ? Object.defineProperty(e, t, {
|
|
2681
2681
|
value: n,
|
|
@@ -2684,7 +2684,7 @@ function Zu(e, t, n) {
|
|
|
2684
2684
|
writable: !0
|
|
2685
2685
|
}) : e[t] = n, e;
|
|
2686
2686
|
}
|
|
2687
|
-
function
|
|
2687
|
+
function Vr(e, t) {
|
|
2688
2688
|
var n = Object.keys(e);
|
|
2689
2689
|
if (Object.getOwnPropertySymbols) {
|
|
2690
2690
|
var s = Object.getOwnPropertySymbols(e);
|
|
@@ -2694,12 +2694,12 @@ function Qr(e, t) {
|
|
|
2694
2694
|
}
|
|
2695
2695
|
return n;
|
|
2696
2696
|
}
|
|
2697
|
-
function
|
|
2697
|
+
function Kr(e) {
|
|
2698
2698
|
for (var t = 1; t < arguments.length; t++) {
|
|
2699
2699
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
2700
|
-
t % 2 ?
|
|
2700
|
+
t % 2 ? Vr(Object(n), !0).forEach(function(s) {
|
|
2701
2701
|
Zu(e, s, n[s]);
|
|
2702
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
2702
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Vr(Object(n)).forEach(function(s) {
|
|
2703
2703
|
Object.defineProperty(e, s, Object.getOwnPropertyDescriptor(n, s));
|
|
2704
2704
|
});
|
|
2705
2705
|
}
|
|
@@ -2709,9 +2709,9 @@ function el() {
|
|
|
2709
2709
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = {
|
|
2710
2710
|
storage: Xu
|
|
2711
2711
|
};
|
|
2712
|
-
return Qu(
|
|
2712
|
+
return Qu(Kr(Kr({}, t), e));
|
|
2713
2713
|
}
|
|
2714
|
-
const tl = "@chaibuilder/sdk", nl = "0.1.
|
|
2714
|
+
const tl = "@chaibuilder/sdk", nl = "0.1.10", sl = "module", rl = [
|
|
2715
2715
|
"dist"
|
|
2716
2716
|
], il = "dist/core.js", ol = !1, al = {
|
|
2717
2717
|
".": {
|
|
@@ -2886,7 +2886,7 @@ const tl = "@chaibuilder/sdk", nl = "0.1.9", sl = "module", rl = [
|
|
|
2886
2886
|
dependencies: ul,
|
|
2887
2887
|
devDependencies: ll,
|
|
2888
2888
|
msw: dl
|
|
2889
|
-
},
|
|
2889
|
+
}, zr = "https://api.chaibuilder.com", Gr = () => typeof window > "u" ? !1 : window.location.href.includes("localhost");
|
|
2890
2890
|
function hl() {
|
|
2891
2891
|
return {
|
|
2892
2892
|
/* All plugins require a name */
|
|
@@ -2901,15 +2901,15 @@ function hl() {
|
|
|
2901
2901
|
page: (e) => {
|
|
2902
2902
|
if (typeof window > "u")
|
|
2903
2903
|
return !1;
|
|
2904
|
-
if (
|
|
2904
|
+
if (Gr())
|
|
2905
2905
|
return;
|
|
2906
2906
|
const { payload: t } = e;
|
|
2907
|
-
fetch(`${
|
|
2907
|
+
fetch(`${zr}/v1/log`, { method: "post", body: JSON.stringify(t) }).then((n) => n.json());
|
|
2908
2908
|
},
|
|
2909
2909
|
track: ({ payload: e }) => {
|
|
2910
2910
|
if (typeof window > "u")
|
|
2911
2911
|
return !1;
|
|
2912
|
-
|
|
2912
|
+
Gr() || fetch(`${zr}/v1/log`, { method: "post", body: JSON.stringify(e) });
|
|
2913
2913
|
},
|
|
2914
2914
|
loaded: () => typeof window > "u" ? !0 : !!window.chaibuilderAnalyticsLoaded
|
|
2915
2915
|
};
|
|
@@ -2921,11 +2921,11 @@ const pl = el({
|
|
|
2921
2921
|
});
|
|
2922
2922
|
({}).NODE_ENV === "development" && console.log("Chai Builder:", ma);
|
|
2923
2923
|
const ml = (e) => /* @__PURE__ */ _.jsx(_.Fragment, { children: e.children }), gl = (e) => {
|
|
2924
|
-
const { dndOptions: t = { backend: Qo } } = e, [n] = Wa(), [, s] =
|
|
2924
|
+
const { dndOptions: t = { backend: Qo } } = e, [n] = Wa(), [, s] = ji(), r = Wi();
|
|
2925
2925
|
return Ee(() => {
|
|
2926
2926
|
iu.set(
|
|
2927
2927
|
// @ts-ignore
|
|
2928
|
-
|
|
2928
|
+
mi,
|
|
2929
2929
|
Zn(e, ["blocks", "globalBlocks", "brandingOptions"])
|
|
2930
2930
|
);
|
|
2931
2931
|
}, [e]), Ee(() => {
|
|
@@ -2964,10 +2964,10 @@ function vl(e, t) {
|
|
|
2964
2964
|
function Cs(e) {
|
|
2965
2965
|
return typeof e == "number" && e >= 0 && e !== 1 / 0;
|
|
2966
2966
|
}
|
|
2967
|
-
function
|
|
2967
|
+
function yo(e, t) {
|
|
2968
2968
|
return Math.max(e + (t || 0) - Date.now(), 0);
|
|
2969
2969
|
}
|
|
2970
|
-
function
|
|
2970
|
+
function Wr(e, t) {
|
|
2971
2971
|
const {
|
|
2972
2972
|
type: n = "all",
|
|
2973
2973
|
exact: s,
|
|
@@ -2990,7 +2990,7 @@ function Gr(e, t) {
|
|
|
2990
2990
|
}
|
|
2991
2991
|
return !(typeof c == "boolean" && t.isStale() !== c || typeof r < "u" && r !== t.state.fetchStatus || i && !i(t));
|
|
2992
2992
|
}
|
|
2993
|
-
function
|
|
2993
|
+
function Hr(e, t) {
|
|
2994
2994
|
const { exact: n, status: s, predicate: r, mutationKey: i } = e;
|
|
2995
2995
|
if (i) {
|
|
2996
2996
|
if (!t.options.mutationKey)
|
|
@@ -3015,16 +3015,16 @@ function hn(e) {
|
|
|
3015
3015
|
function pn(e, t) {
|
|
3016
3016
|
return e === t ? !0 : typeof e != typeof t ? !1 : e && t && typeof e == "object" && typeof t == "object" ? !Object.keys(t).some((n) => !pn(e[n], t[n])) : !1;
|
|
3017
3017
|
}
|
|
3018
|
-
function
|
|
3018
|
+
function vo(e, t) {
|
|
3019
3019
|
if (e === t)
|
|
3020
3020
|
return e;
|
|
3021
|
-
const n =
|
|
3021
|
+
const n = Jr(e) && Jr(t);
|
|
3022
3022
|
if (n || Is(e) && Is(t)) {
|
|
3023
3023
|
const s = n ? e.length : Object.keys(e).length, r = n ? t : Object.keys(t), i = r.length, o = n ? [] : {};
|
|
3024
3024
|
let c = 0;
|
|
3025
3025
|
for (let l = 0; l < i; l++) {
|
|
3026
3026
|
const u = n ? l : r[l];
|
|
3027
|
-
o[u] =
|
|
3027
|
+
o[u] = vo(e[u], t[u]), o[u] === e[u] && c++;
|
|
3028
3028
|
}
|
|
3029
3029
|
return s === i && c === s ? e : o;
|
|
3030
3030
|
}
|
|
@@ -3038,31 +3038,31 @@ function Wn(e, t) {
|
|
|
3038
3038
|
return !1;
|
|
3039
3039
|
return !0;
|
|
3040
3040
|
}
|
|
3041
|
-
function
|
|
3041
|
+
function Jr(e) {
|
|
3042
3042
|
return Array.isArray(e) && e.length === Object.keys(e).length;
|
|
3043
3043
|
}
|
|
3044
3044
|
function Is(e) {
|
|
3045
|
-
if (!
|
|
3045
|
+
if (!Yr(e))
|
|
3046
3046
|
return !1;
|
|
3047
3047
|
const t = e.constructor;
|
|
3048
3048
|
if (typeof t > "u")
|
|
3049
3049
|
return !0;
|
|
3050
3050
|
const n = t.prototype;
|
|
3051
|
-
return !(!
|
|
3051
|
+
return !(!Yr(n) || !n.hasOwnProperty("isPrototypeOf"));
|
|
3052
3052
|
}
|
|
3053
|
-
function
|
|
3053
|
+
function Yr(e) {
|
|
3054
3054
|
return Object.prototype.toString.call(e) === "[object Object]";
|
|
3055
3055
|
}
|
|
3056
|
-
function
|
|
3056
|
+
function bo(e) {
|
|
3057
3057
|
return new Promise((t) => {
|
|
3058
3058
|
setTimeout(t, e);
|
|
3059
3059
|
});
|
|
3060
3060
|
}
|
|
3061
|
-
function
|
|
3062
|
-
|
|
3061
|
+
function Xr(e) {
|
|
3062
|
+
bo(0).then(e);
|
|
3063
3063
|
}
|
|
3064
3064
|
function js(e, t, n) {
|
|
3065
|
-
return typeof n.structuralSharing == "function" ? n.structuralSharing(e, t) : n.structuralSharing !== !1 ?
|
|
3065
|
+
return typeof n.structuralSharing == "function" ? n.structuralSharing(e, t) : n.structuralSharing !== !1 ? vo(e, t) : t;
|
|
3066
3066
|
}
|
|
3067
3067
|
function bl(e, t, n = 0) {
|
|
3068
3068
|
const s = [...e, t];
|
|
@@ -3072,7 +3072,7 @@ function wl(e, t, n = 0) {
|
|
|
3072
3072
|
const s = [t, ...e];
|
|
3073
3073
|
return n && s.length > n ? s.slice(0, -1) : s;
|
|
3074
3074
|
}
|
|
3075
|
-
var ct, We, Rt,
|
|
3075
|
+
var ct, We, Rt, ni, Sl = (ni = class extends tn {
|
|
3076
3076
|
constructor() {
|
|
3077
3077
|
super();
|
|
3078
3078
|
R(this, ct, void 0);
|
|
@@ -3112,7 +3112,7 @@ var ct, We, Rt, ti, Sl = (ti = class extends tn {
|
|
|
3112
3112
|
var t;
|
|
3113
3113
|
return typeof a(this, ct) == "boolean" ? a(this, ct) : ((t = globalThis.document) == null ? void 0 : t.visibilityState) !== "hidden";
|
|
3114
3114
|
}
|
|
3115
|
-
}, ct = new WeakMap(), We = new WeakMap(), Rt = new WeakMap(),
|
|
3115
|
+
}, ct = new WeakMap(), We = new WeakMap(), Rt = new WeakMap(), ni), Hn = new Sl(), Dt, He, Mt, si, Pl = (si = class extends tn {
|
|
3116
3116
|
constructor() {
|
|
3117
3117
|
super();
|
|
3118
3118
|
R(this, Dt, !0);
|
|
@@ -3146,28 +3146,28 @@ var ct, We, Rt, ti, Sl = (ti = class extends tn {
|
|
|
3146
3146
|
isOnline() {
|
|
3147
3147
|
return a(this, Dt);
|
|
3148
3148
|
}
|
|
3149
|
-
}, Dt = new WeakMap(), He = new WeakMap(), Mt = new WeakMap(),
|
|
3149
|
+
}, Dt = new WeakMap(), He = new WeakMap(), Mt = new WeakMap(), si), Jn = new Pl();
|
|
3150
3150
|
function kl(e) {
|
|
3151
3151
|
return Math.min(1e3 * 2 ** e, 3e4);
|
|
3152
3152
|
}
|
|
3153
3153
|
function ls(e) {
|
|
3154
3154
|
return (e ?? "online") === "online" ? Jn.isOnline() : !0;
|
|
3155
3155
|
}
|
|
3156
|
-
var
|
|
3156
|
+
var wo = class {
|
|
3157
3157
|
constructor(e) {
|
|
3158
3158
|
this.revert = e == null ? void 0 : e.revert, this.silent = e == null ? void 0 : e.silent;
|
|
3159
3159
|
}
|
|
3160
3160
|
};
|
|
3161
3161
|
function bs(e) {
|
|
3162
|
-
return e instanceof
|
|
3162
|
+
return e instanceof wo;
|
|
3163
3163
|
}
|
|
3164
|
-
function
|
|
3164
|
+
function So(e) {
|
|
3165
3165
|
let t = !1, n = 0, s = !1, r, i, o;
|
|
3166
3166
|
const c = new Promise((y, A) => {
|
|
3167
3167
|
i = y, o = A;
|
|
3168
3168
|
}), l = (y) => {
|
|
3169
3169
|
var A;
|
|
3170
|
-
s || (g(new
|
|
3170
|
+
s || (g(new wo(y)), (A = e.abort) == null || A.call(e));
|
|
3171
3171
|
}, u = () => {
|
|
3172
3172
|
t = !0;
|
|
3173
3173
|
}, f = () => {
|
|
@@ -3205,7 +3205,7 @@ function wo(e) {
|
|
|
3205
3205
|
g(A);
|
|
3206
3206
|
return;
|
|
3207
3207
|
}
|
|
3208
|
-
n++, (F = e.onFail) == null || F.call(e, n, A),
|
|
3208
|
+
n++, (F = e.onFail) == null || F.call(e, n, A), bo(b).then(() => {
|
|
3209
3209
|
if (p())
|
|
3210
3210
|
return O();
|
|
3211
3211
|
}).then(() => {
|
|
@@ -3237,7 +3237,7 @@ function xl() {
|
|
|
3237
3237
|
}
|
|
3238
3238
|
return p;
|
|
3239
3239
|
}, i = (f) => {
|
|
3240
|
-
t ? e.push(f) :
|
|
3240
|
+
t ? e.push(f) : Xr(() => {
|
|
3241
3241
|
n(f);
|
|
3242
3242
|
});
|
|
3243
3243
|
}, o = (f) => (...p) => {
|
|
@@ -3246,7 +3246,7 @@ function xl() {
|
|
|
3246
3246
|
});
|
|
3247
3247
|
}, c = () => {
|
|
3248
3248
|
const f = e;
|
|
3249
|
-
e = [], f.length &&
|
|
3249
|
+
e = [], f.length && Xr(() => {
|
|
3250
3250
|
s(() => {
|
|
3251
3251
|
f.forEach((p) => {
|
|
3252
3252
|
n(p);
|
|
@@ -3266,7 +3266,7 @@ function xl() {
|
|
|
3266
3266
|
}
|
|
3267
3267
|
};
|
|
3268
3268
|
}
|
|
3269
|
-
var ie = xl(), ut,
|
|
3269
|
+
var ie = xl(), ut, ri, Po = (ri = class {
|
|
3270
3270
|
constructor() {
|
|
3271
3271
|
R(this, ut, void 0);
|
|
3272
3272
|
}
|
|
@@ -3287,7 +3287,7 @@ var ie = xl(), ut, si, So = (si = class {
|
|
|
3287
3287
|
clearGcTimeout() {
|
|
3288
3288
|
a(this, ut) && (clearTimeout(a(this, ut)), x(this, ut, void 0));
|
|
3289
3289
|
}
|
|
3290
|
-
}, ut = new WeakMap(),
|
|
3290
|
+
}, ut = new WeakMap(), ri), Lt, Nt, ye, Je, ve, oe, mn, lt, Tt, Qn, Ae, Ne, ii, Al = (ii = class extends Po {
|
|
3291
3291
|
constructor(t) {
|
|
3292
3292
|
super();
|
|
3293
3293
|
R(this, Tt);
|
|
@@ -3343,7 +3343,7 @@ var ie = xl(), ut, si, So = (si = class {
|
|
|
3343
3343
|
return this.state.isInvalidated || !this.state.dataUpdatedAt || a(this, oe).some((t) => t.getCurrentResult().isStale);
|
|
3344
3344
|
}
|
|
3345
3345
|
isStaleByTime(t = 0) {
|
|
3346
|
-
return this.state.isInvalidated || !this.state.dataUpdatedAt || !
|
|
3346
|
+
return this.state.isInvalidated || !this.state.dataUpdatedAt || !yo(this.state.dataUpdatedAt, t);
|
|
3347
3347
|
}
|
|
3348
3348
|
onFocus() {
|
|
3349
3349
|
var n;
|
|
@@ -3427,7 +3427,7 @@ var ie = xl(), ut, si, So = (si = class {
|
|
|
3427
3427
|
this
|
|
3428
3428
|
)), this.isFetchingOptimistic || this.scheduleGc(), this.isFetchingOptimistic = !1;
|
|
3429
3429
|
};
|
|
3430
|
-
return x(this, ve,
|
|
3430
|
+
return x(this, ve, So({
|
|
3431
3431
|
fn: c.fetchFn,
|
|
3432
3432
|
abort: s.abort.bind(s),
|
|
3433
3433
|
onSuccess: (g) => {
|
|
@@ -3537,7 +3537,7 @@ var ie = xl(), ut, si, So = (si = class {
|
|
|
3537
3537
|
s.onQueryUpdate();
|
|
3538
3538
|
}), a(this, ye).notify({ query: this, type: "updated", action: t });
|
|
3539
3539
|
});
|
|
3540
|
-
},
|
|
3540
|
+
}, ii);
|
|
3541
3541
|
function El(e) {
|
|
3542
3542
|
const t = typeof e.initialData == "function" ? e.initialData() : e.initialData, n = typeof t < "u", s = n ? typeof e.initialDataUpdatedAt == "function" ? e.initialDataUpdatedAt() : e.initialDataUpdatedAt : 0;
|
|
3543
3543
|
return {
|
|
@@ -3555,7 +3555,7 @@ function El(e) {
|
|
|
3555
3555
|
fetchStatus: "idle"
|
|
3556
3556
|
};
|
|
3557
3557
|
}
|
|
3558
|
-
var Ie,
|
|
3558
|
+
var Ie, oi, Ol = (oi = class extends tn {
|
|
3559
3559
|
constructor(t = {}) {
|
|
3560
3560
|
super();
|
|
3561
3561
|
R(this, Ie, void 0);
|
|
@@ -3599,12 +3599,12 @@ var Ie, ii, Ol = (ii = class extends tn {
|
|
|
3599
3599
|
find(t) {
|
|
3600
3600
|
const n = { exact: !0, ...t };
|
|
3601
3601
|
return this.getAll().find(
|
|
3602
|
-
(s) =>
|
|
3602
|
+
(s) => Wr(n, s)
|
|
3603
3603
|
);
|
|
3604
3604
|
}
|
|
3605
3605
|
findAll(t = {}) {
|
|
3606
3606
|
const n = this.getAll();
|
|
3607
|
-
return Object.keys(t).length > 0 ? n.filter((s) =>
|
|
3607
|
+
return Object.keys(t).length > 0 ? n.filter((s) => Wr(t, s)) : n;
|
|
3608
3608
|
}
|
|
3609
3609
|
notify(t) {
|
|
3610
3610
|
ie.batch(() => {
|
|
@@ -3627,7 +3627,7 @@ var Ie, ii, Ol = (ii = class extends tn {
|
|
|
3627
3627
|
});
|
|
3628
3628
|
});
|
|
3629
3629
|
}
|
|
3630
|
-
}, Ie = new WeakMap(),
|
|
3630
|
+
}, Ie = new WeakMap(), oi), je, gn, me, Ft, Be, Ve, ai, _l = (ai = class extends Po {
|
|
3631
3631
|
constructor(t) {
|
|
3632
3632
|
super();
|
|
3633
3633
|
R(this, Be);
|
|
@@ -3635,7 +3635,7 @@ var Ie, ii, Ol = (ii = class extends tn {
|
|
|
3635
3635
|
R(this, gn, void 0);
|
|
3636
3636
|
R(this, me, void 0);
|
|
3637
3637
|
R(this, Ft, void 0);
|
|
3638
|
-
this.mutationId = t.mutationId, x(this, gn, t.defaultOptions), x(this, me, t.mutationCache), x(this, je, []), this.state = t.state ||
|
|
3638
|
+
this.mutationId = t.mutationId, x(this, gn, t.defaultOptions), x(this, me, t.mutationCache), x(this, je, []), this.state = t.state || ko(), this.setOptions(t.options), this.scheduleGc();
|
|
3639
3639
|
}
|
|
3640
3640
|
setOptions(t) {
|
|
3641
3641
|
this.options = { ...a(this, gn), ...t }, this.updateGcTime(this.options.gcTime);
|
|
@@ -3667,7 +3667,7 @@ var Ie, ii, Ol = (ii = class extends tn {
|
|
|
3667
3667
|
}
|
|
3668
3668
|
async execute(t) {
|
|
3669
3669
|
var r, i, o, c, l, u, f, p, P, g, O, C, y, A, I, B, b, k, F, T;
|
|
3670
|
-
const n = () => (x(this, Ft,
|
|
3670
|
+
const n = () => (x(this, Ft, So({
|
|
3671
3671
|
fn: () => this.options.mutationFn ? this.options.mutationFn(t) : Promise.reject(new Error("No mutationFn found")),
|
|
3672
3672
|
onFail: (M, m) => {
|
|
3673
3673
|
Q(this, Be, Ve).call(this, { type: "failed", failureCount: M, error: m });
|
|
@@ -3806,8 +3806,8 @@ var Ie, ii, Ol = (ii = class extends tn {
|
|
|
3806
3806
|
action: t
|
|
3807
3807
|
});
|
|
3808
3808
|
});
|
|
3809
|
-
},
|
|
3810
|
-
function
|
|
3809
|
+
}, ai);
|
|
3810
|
+
function ko() {
|
|
3811
3811
|
return {
|
|
3812
3812
|
context: void 0,
|
|
3813
3813
|
data: void 0,
|
|
@@ -3820,7 +3820,7 @@ function Po() {
|
|
|
3820
3820
|
submittedAt: 0
|
|
3821
3821
|
};
|
|
3822
3822
|
}
|
|
3823
|
-
var be, yn, dt,
|
|
3823
|
+
var be, yn, dt, ci, Cl = (ci = class extends tn {
|
|
3824
3824
|
constructor(t = {}) {
|
|
3825
3825
|
super();
|
|
3826
3826
|
R(this, be, void 0);
|
|
@@ -3856,12 +3856,12 @@ var be, yn, dt, ai, Cl = (ai = class extends tn {
|
|
|
3856
3856
|
find(t) {
|
|
3857
3857
|
const n = { exact: !0, ...t };
|
|
3858
3858
|
return a(this, be).find(
|
|
3859
|
-
(s) =>
|
|
3859
|
+
(s) => Hr(n, s)
|
|
3860
3860
|
);
|
|
3861
3861
|
}
|
|
3862
3862
|
findAll(t = {}) {
|
|
3863
3863
|
return a(this, be).filter(
|
|
3864
|
-
(n) =>
|
|
3864
|
+
(n) => Hr(t, n)
|
|
3865
3865
|
);
|
|
3866
3866
|
}
|
|
3867
3867
|
notify(t) {
|
|
@@ -3884,7 +3884,7 @@ var be, yn, dt, ai, Cl = (ai = class extends tn {
|
|
|
3884
3884
|
x(this, dt, void 0);
|
|
3885
3885
|
})), a(this, dt);
|
|
3886
3886
|
}
|
|
3887
|
-
}, be = new WeakMap(), yn = new WeakMap(), dt = new WeakMap(),
|
|
3887
|
+
}, be = new WeakMap(), yn = new WeakMap(), dt = new WeakMap(), ci);
|
|
3888
3888
|
function Il(e) {
|
|
3889
3889
|
return {
|
|
3890
3890
|
onFetch: (t, n) => {
|
|
@@ -3923,7 +3923,7 @@ function Il(e) {
|
|
|
3923
3923
|
};
|
|
3924
3924
|
let g;
|
|
3925
3925
|
if (i && o.length) {
|
|
3926
|
-
const B = i === "backward", b = B ? jl :
|
|
3926
|
+
const B = i === "backward", b = B ? jl : Zr, k = {
|
|
3927
3927
|
pages: o,
|
|
3928
3928
|
pageParams: c
|
|
3929
3929
|
}, F = b(r, k);
|
|
@@ -3935,7 +3935,7 @@ function Il(e) {
|
|
|
3935
3935
|
);
|
|
3936
3936
|
const B = e ?? o.length;
|
|
3937
3937
|
for (let b = 1; b < B; b++) {
|
|
3938
|
-
const k =
|
|
3938
|
+
const k = Zr(r, g);
|
|
3939
3939
|
g = await P(g, k);
|
|
3940
3940
|
}
|
|
3941
3941
|
}
|
|
@@ -3957,7 +3957,7 @@ function Il(e) {
|
|
|
3957
3957
|
}
|
|
3958
3958
|
};
|
|
3959
3959
|
}
|
|
3960
|
-
function
|
|
3960
|
+
function Zr(e, { pages: t, pageParams: n }) {
|
|
3961
3961
|
const s = t.length - 1;
|
|
3962
3962
|
return e.getNextPageParam(
|
|
3963
3963
|
t[s],
|
|
@@ -3976,7 +3976,7 @@ function jl(e, { pages: t, pageParams: n }) {
|
|
|
3976
3976
|
n
|
|
3977
3977
|
);
|
|
3978
3978
|
}
|
|
3979
|
-
var re, Ye, Xe, Ut, qt, Ze, $t, Qt,
|
|
3979
|
+
var re, Ye, Xe, Ut, qt, Ze, $t, Qt, ui, Bl = (ui = class {
|
|
3980
3980
|
constructor(e = {}) {
|
|
3981
3981
|
R(this, re, void 0);
|
|
3982
3982
|
R(this, Ye, void 0);
|
|
@@ -4167,7 +4167,7 @@ var re, Ye, Xe, Ut, qt, Ze, $t, Qt, ci, Bl = (ci = class {
|
|
|
4167
4167
|
clear() {
|
|
4168
4168
|
a(this, re).clear(), a(this, Ye).clear();
|
|
4169
4169
|
}
|
|
4170
|
-
}, re = new WeakMap(), Ye = new WeakMap(), Xe = new WeakMap(), Ut = new WeakMap(), qt = new WeakMap(), Ze = new WeakMap(), $t = new WeakMap(), Qt = new WeakMap(),
|
|
4170
|
+
}, re = new WeakMap(), Ye = new WeakMap(), Xe = new WeakMap(), Ut = new WeakMap(), qt = new WeakMap(), Ze = new WeakMap(), $t = new WeakMap(), Qt = new WeakMap(), ui), fe, Z, Vt, ue, ft, Kt, Re, vn, zt, Gt, ht, pt, et, mt, gt, on, bn, Bs, wn, Rs, Sn, Ds, Pn, Ms, kn, Ls, xn, Ns, An, Ts, Yn, xo, li, Rl = (li = class extends tn {
|
|
4171
4171
|
constructor(t, n) {
|
|
4172
4172
|
super();
|
|
4173
4173
|
R(this, gt);
|
|
@@ -4201,7 +4201,7 @@ var re, Ye, Xe, Ut, qt, Ze, $t, Qt, ci, Bl = (ci = class {
|
|
|
4201
4201
|
this.refetch = this.refetch.bind(this);
|
|
4202
4202
|
}
|
|
4203
4203
|
onSubscribe() {
|
|
4204
|
-
this.listeners.size === 1 && (a(this, Z).addObserver(this),
|
|
4204
|
+
this.listeners.size === 1 && (a(this, Z).addObserver(this), ei(a(this, Z), this.options) ? Q(this, gt, on).call(this) : this.updateResult(), Q(this, Pn, Ms).call(this));
|
|
4205
4205
|
}
|
|
4206
4206
|
onUnsubscribe() {
|
|
4207
4207
|
this.hasListeners() || this.destroy();
|
|
@@ -4233,7 +4233,7 @@ var re, Ye, Xe, Ut, qt, Ze, $t, Qt, ci, Bl = (ci = class {
|
|
|
4233
4233
|
throw new Error("Expected enabled to be a boolean");
|
|
4234
4234
|
this.options.queryKey || (this.options.queryKey = s.queryKey), Q(this, An, Ts).call(this);
|
|
4235
4235
|
const i = this.hasListeners();
|
|
4236
|
-
i &&
|
|
4236
|
+
i && ti(
|
|
4237
4237
|
a(this, Z),
|
|
4238
4238
|
r,
|
|
4239
4239
|
this.options,
|
|
@@ -4282,7 +4282,7 @@ var re, Ye, Xe, Ut, qt, Ze, $t, Qt, ci, Bl = (ci = class {
|
|
|
4282
4282
|
const s = a(this, Z), r = this.options, i = a(this, ue), o = a(this, ft), c = a(this, Kt), u = t !== s ? t.state : a(this, Vt), { state: f } = t;
|
|
4283
4283
|
let { error: p, errorUpdatedAt: P, fetchStatus: g, status: O } = f, C = !1, y;
|
|
4284
4284
|
if (n._optimisticResults) {
|
|
4285
|
-
const T = this.hasListeners(), M = !T &&
|
|
4285
|
+
const T = this.hasListeners(), M = !T && ei(t, n), m = T && ti(t, s, n, r);
|
|
4286
4286
|
(M || m) && (g = ls(t.options.networkMode) ? "fetching" : "paused", f.dataUpdatedAt || (O = "pending")), n._optimisticResults === "isRestoring" && (g = "idle");
|
|
4287
4287
|
}
|
|
4288
4288
|
if (n.select && typeof f.data < "u")
|
|
@@ -4363,7 +4363,7 @@ var re, Ye, Xe, Ut, qt, Ze, $t, Qt, ci, Bl = (ci = class {
|
|
|
4363
4363
|
return a(this, ue)[f] !== n[f] && l.has(f);
|
|
4364
4364
|
});
|
|
4365
4365
|
};
|
|
4366
|
-
(t == null ? void 0 : t.listeners) !== !1 && i() && (r.listeners = !0), Q(this, Yn,
|
|
4366
|
+
(t == null ? void 0 : t.listeners) !== !1 && i() && (r.listeners = !0), Q(this, Yn, xo).call(this, { ...r, ...t });
|
|
4367
4367
|
}
|
|
4368
4368
|
onQueryUpdate() {
|
|
4369
4369
|
this.updateResult(), this.hasListeners() && Q(this, Pn, Ms).call(this);
|
|
@@ -4378,7 +4378,7 @@ var re, Ye, Xe, Ut, qt, Ze, $t, Qt, ci, Bl = (ci = class {
|
|
|
4378
4378
|
}, bn = new WeakSet(), Bs = function() {
|
|
4379
4379
|
if (Q(this, kn, Ls).call(this), Xt || a(this, ue).isStale || !Cs(this.options.staleTime))
|
|
4380
4380
|
return;
|
|
4381
|
-
const n =
|
|
4381
|
+
const n = yo(
|
|
4382
4382
|
a(this, ue).dataUpdatedAt,
|
|
4383
4383
|
this.options.staleTime
|
|
4384
4384
|
) + 1;
|
|
@@ -4403,7 +4403,7 @@ var re, Ye, Xe, Ut, qt, Ze, $t, Qt, ci, Bl = (ci = class {
|
|
|
4403
4403
|
return;
|
|
4404
4404
|
const n = a(this, Z);
|
|
4405
4405
|
x(this, Z, t), x(this, Vt, t.state), this.hasListeners() && (n == null || n.removeObserver(this), t.addObserver(this));
|
|
4406
|
-
}, Yn = new WeakSet(),
|
|
4406
|
+
}, Yn = new WeakSet(), xo = function(t) {
|
|
4407
4407
|
ie.batch(() => {
|
|
4408
4408
|
t.listeners && this.listeners.forEach((n) => {
|
|
4409
4409
|
n(a(this, ue));
|
|
@@ -4412,11 +4412,11 @@ var re, Ye, Xe, Ut, qt, Ze, $t, Qt, ci, Bl = (ci = class {
|
|
|
4412
4412
|
type: "observerResultsUpdated"
|
|
4413
4413
|
});
|
|
4414
4414
|
});
|
|
4415
|
-
},
|
|
4415
|
+
}, li);
|
|
4416
4416
|
function Dl(e, t) {
|
|
4417
4417
|
return t.enabled !== !1 && !e.state.dataUpdatedAt && !(e.state.status === "error" && t.retryOnMount === !1);
|
|
4418
4418
|
}
|
|
4419
|
-
function
|
|
4419
|
+
function ei(e, t) {
|
|
4420
4420
|
return Dl(e, t) || e.state.dataUpdatedAt > 0 && Fs(e, t, t.refetchOnMount);
|
|
4421
4421
|
}
|
|
4422
4422
|
function Fs(e, t, n) {
|
|
@@ -4426,7 +4426,7 @@ function Fs(e, t, n) {
|
|
|
4426
4426
|
}
|
|
4427
4427
|
return !1;
|
|
4428
4428
|
}
|
|
4429
|
-
function
|
|
4429
|
+
function ti(e, t, n, s) {
|
|
4430
4430
|
return n.enabled !== !1 && (e !== t || s.enabled === !1) && (!n.suspense || e.state.status !== "error") && rr(e, n);
|
|
4431
4431
|
}
|
|
4432
4432
|
function rr(e, t) {
|
|
@@ -4435,7 +4435,7 @@ function rr(e, t) {
|
|
|
4435
4435
|
function Ml(e, t) {
|
|
4436
4436
|
return !Wn(e.getCurrentResult(), t);
|
|
4437
4437
|
}
|
|
4438
|
-
var tt, le, we, Te, Wt, Vn, En, Us,
|
|
4438
|
+
var tt, le, we, Te, Wt, Vn, En, Us, di, Ll = (di = class extends tn {
|
|
4439
4439
|
constructor(t, n) {
|
|
4440
4440
|
super();
|
|
4441
4441
|
R(this, Wt);
|
|
@@ -4477,7 +4477,7 @@ var tt, le, we, Te, Wt, Vn, En, Us, li, Ll = (li = class extends tn {
|
|
|
4477
4477
|
}
|
|
4478
4478
|
}, tt = new WeakMap(), le = new WeakMap(), we = new WeakMap(), Te = new WeakMap(), Wt = new WeakSet(), Vn = function() {
|
|
4479
4479
|
var n;
|
|
4480
|
-
const t = ((n = a(this, we)) == null ? void 0 : n.state) ??
|
|
4480
|
+
const t = ((n = a(this, we)) == null ? void 0 : n.state) ?? ko();
|
|
4481
4481
|
x(this, le, {
|
|
4482
4482
|
...t,
|
|
4483
4483
|
isPending: t.status === "pending",
|
|
@@ -4516,10 +4516,10 @@ var tt, le, we, Te, Wt, Vn, En, Us, li, Ll = (li = class extends tn {
|
|
|
4516
4516
|
f(a(this, le));
|
|
4517
4517
|
});
|
|
4518
4518
|
});
|
|
4519
|
-
},
|
|
4519
|
+
}, di), Ao = ae.createContext(
|
|
4520
4520
|
void 0
|
|
4521
4521
|
), qe = (e) => {
|
|
4522
|
-
const t = ae.useContext(
|
|
4522
|
+
const t = ae.useContext(Ao);
|
|
4523
4523
|
if (e)
|
|
4524
4524
|
return e;
|
|
4525
4525
|
if (!t)
|
|
@@ -4530,8 +4530,8 @@ var tt, le, we, Te, Wt, Vn, En, Us, li, Ll = (li = class extends tn {
|
|
|
4530
4530
|
children: t
|
|
4531
4531
|
}) => (ae.useEffect(() => (e.mount(), () => {
|
|
4532
4532
|
e.unmount();
|
|
4533
|
-
}), [e]), /* @__PURE__ */ ae.createElement(
|
|
4534
|
-
|
|
4533
|
+
}), [e]), /* @__PURE__ */ ae.createElement(Ao.Provider, { value: e }, t)), Eo = ae.createContext(!1), Tl = () => ae.useContext(Eo);
|
|
4534
|
+
Eo.Provider;
|
|
4535
4535
|
function Fl() {
|
|
4536
4536
|
let e = !1;
|
|
4537
4537
|
return {
|
|
@@ -4545,7 +4545,7 @@ function Fl() {
|
|
|
4545
4545
|
};
|
|
4546
4546
|
}
|
|
4547
4547
|
var Ul = ae.createContext(Fl()), ql = () => ae.useContext(Ul);
|
|
4548
|
-
function
|
|
4548
|
+
function Oo(e, t) {
|
|
4549
4549
|
return typeof e == "function" ? e(...t) : !!e;
|
|
4550
4550
|
}
|
|
4551
4551
|
var $l = (e, t) => {
|
|
@@ -4559,7 +4559,7 @@ var $l = (e, t) => {
|
|
|
4559
4559
|
errorResetBoundary: t,
|
|
4560
4560
|
throwOnError: n,
|
|
4561
4561
|
query: s
|
|
4562
|
-
}) => e.isError && !t.isReset() && !e.isFetching &&
|
|
4562
|
+
}) => e.isError && !t.isReset() && !e.isFetching && Oo(n, [e.error, s]), Kl = (e) => {
|
|
4563
4563
|
e.suspense && typeof e.staleTime != "number" && (e.staleTime = 1e3);
|
|
4564
4564
|
}, zl = (e, t) => (e == null ? void 0 : e.suspense) && t.isPending, Gl = (e, t, n) => t.fetchOptimistic(e).catch(() => {
|
|
4565
4565
|
n.clearReset();
|
|
@@ -4627,7 +4627,7 @@ function $e(e, t) {
|
|
|
4627
4627
|
},
|
|
4628
4628
|
[s]
|
|
4629
4629
|
);
|
|
4630
|
-
if (r.error &&
|
|
4630
|
+
if (r.error && Oo(s.options.throwOnError, [r.error]))
|
|
4631
4631
|
throw r.error;
|
|
4632
4632
|
return { ...r, mutate: i, mutateAsync: r.mutate };
|
|
4633
4633
|
}
|
|
@@ -4647,7 +4647,7 @@ const In = () => {
|
|
|
4647
4647
|
n && (localStorage.setItem("currentPage", n || ""), t());
|
|
4648
4648
|
}
|
|
4649
4649
|
];
|
|
4650
|
-
},
|
|
4650
|
+
}, ir = () => {
|
|
4651
4651
|
const [e, t] = In(), n = pe();
|
|
4652
4652
|
return Cn({
|
|
4653
4653
|
queryKey: ["project"],
|
|
@@ -4667,7 +4667,7 @@ const In = () => {
|
|
|
4667
4667
|
queryFn: async () => await fetch(`${e}/pages`).then((n) => n.json()) || []
|
|
4668
4668
|
});
|
|
4669
4669
|
}, Jl = () => {
|
|
4670
|
-
const [e, t] = In(), { data: n } =
|
|
4670
|
+
const [e, t] = In(), { data: n } = ir(), s = pe();
|
|
4671
4671
|
return Cn({
|
|
4672
4672
|
queryKey: ["page_data", e],
|
|
4673
4673
|
queryFn: async () => {
|
|
@@ -4697,7 +4697,7 @@ const In = () => {
|
|
|
4697
4697
|
}
|
|
4698
4698
|
});
|
|
4699
4699
|
}, Xl = () => {
|
|
4700
|
-
const [e] = ["SAVED"], [t, n] = In(), s =
|
|
4700
|
+
const [e] = ["SAVED"], [t, n] = In(), s = Wi();
|
|
4701
4701
|
return (r) => e !== "SAVED" ? (Ue.error("You have unsaved changes. Please save before changing the page."), !1) : t === r.uuid ? !1 : (s(), setTimeout(() => {
|
|
4702
4702
|
n(r.uuid);
|
|
4703
4703
|
}, 100), !0);
|
|
@@ -4721,11 +4721,14 @@ const In = () => {
|
|
|
4721
4721
|
}
|
|
4722
4722
|
});
|
|
4723
4723
|
}, ed = () => {
|
|
4724
|
-
const e = pe(), { data: t } = _o(), [n] = In();
|
|
4724
|
+
const e = pe(), { data: t } = _o(), [n] = In(), { data: s } = ir();
|
|
4725
4725
|
return $e({
|
|
4726
4726
|
mutationFn: async () => {
|
|
4727
|
-
const
|
|
4728
|
-
await fetch(`${e}/publish`, {
|
|
4727
|
+
const r = t.find((i) => i.uuid === n).slug;
|
|
4728
|
+
await fetch(`${e}/publish`, {
|
|
4729
|
+
method: "POST",
|
|
4730
|
+
body: JSON.stringify({ slug: r, uuid: n, isHomepage: (s == null ? void 0 : s.homepage) === n })
|
|
4731
|
+
});
|
|
4729
4732
|
},
|
|
4730
4733
|
onSuccess: () => {
|
|
4731
4734
|
Ue.success("Page published successfully.", {
|
|
@@ -4784,7 +4787,7 @@ const In = () => {
|
|
|
4784
4787
|
})).json();
|
|
4785
4788
|
}
|
|
4786
4789
|
});
|
|
4787
|
-
}, rd = Pt(() => import("./PagesPanel-
|
|
4790
|
+
}, rd = Pt(() => import("./PagesPanel-40fa913f.js")), id = Pt(() => import("./ProjectPanel-232d9d07.js")), od = Pt(() => import("./CurrentPage-235f6546.js")), ad = () => /* @__PURE__ */ _.jsx("h2", { children: "Your Logo" }), cd = () => {
|
|
4788
4791
|
const e = qe();
|
|
4789
4792
|
return /* @__PURE__ */ _.jsx("div", { className: "border-gray-200 rounded-md p-2 mb-2 border", children: /* @__PURE__ */ _.jsx(
|
|
4790
4793
|
oa,
|
|
@@ -4797,9 +4800,9 @@ const In = () => {
|
|
|
4797
4800
|
) });
|
|
4798
4801
|
}, ud = () => {
|
|
4799
4802
|
const { mutate: e } = ed();
|
|
4800
|
-
return /* @__PURE__ */ _.jsx(
|
|
4803
|
+
return /* @__PURE__ */ _.jsx(gi, { onClick: e, className: "bg-blue-600 text-white", children: "Publish" });
|
|
4801
4804
|
}, ld = (e) => {
|
|
4802
|
-
const { data: t, isLoading: n } =
|
|
4805
|
+
const { data: t, isLoading: n } = ir(), { data: s, isLoading: r } = _o(), { data: i } = Jl(), { mutate: o } = Yl(), { mutate: c } = Zl(), [l] = In(), u = sd(), f = td(), p = nd(), P = pe(), g = W(
|
|
4803
4806
|
async (I) => await u.mutateAsync(I),
|
|
4804
4807
|
[u]
|
|
4805
4808
|
), O = W(async () => await f.mutateAsync(), [f]), C = W(
|
|
@@ -4949,8 +4952,8 @@ export {
|
|
|
4949
4952
|
af as C,
|
|
4950
4953
|
Hc as D,
|
|
4951
4954
|
ya as E,
|
|
4952
|
-
|
|
4953
|
-
|
|
4955
|
+
yr as F,
|
|
4956
|
+
gr as G,
|
|
4954
4957
|
Kd as H,
|
|
4955
4958
|
tf as I,
|
|
4956
4959
|
rf as J,
|
|
@@ -4959,7 +4962,7 @@ export {
|
|
|
4959
4962
|
gc as M,
|
|
4960
4963
|
_o as N,
|
|
4961
4964
|
Yl as O,
|
|
4962
|
-
|
|
4965
|
+
ir as P,
|
|
4963
4966
|
Xl as Q,
|
|
4964
4967
|
In as R,
|
|
4965
4968
|
Yd as S,
|
|
@@ -4975,13 +4978,13 @@ export {
|
|
|
4975
4978
|
Zl as a0,
|
|
4976
4979
|
Sf as a1,
|
|
4977
4980
|
yl as a2,
|
|
4978
|
-
|
|
4981
|
+
Wi as a3,
|
|
4979
4982
|
uf as a4,
|
|
4980
4983
|
cf as a5,
|
|
4981
4984
|
ac as a6,
|
|
4982
4985
|
dc as a7,
|
|
4983
4986
|
Jd as a8,
|
|
4984
|
-
|
|
4987
|
+
Li as a9,
|
|
4985
4988
|
Zd as aa,
|
|
4986
4989
|
ef as ab,
|
|
4987
4990
|
hf as ac,
|
|
@@ -5002,21 +5005,21 @@ export {
|
|
|
5002
5005
|
ff as f,
|
|
5003
5006
|
Wa as g,
|
|
5004
5007
|
xt as h,
|
|
5005
|
-
|
|
5008
|
+
_i as i,
|
|
5006
5009
|
pf as j,
|
|
5007
5010
|
Wd as k,
|
|
5008
|
-
|
|
5009
|
-
|
|
5011
|
+
Qi as l,
|
|
5012
|
+
qi as m,
|
|
5010
5013
|
_c as n,
|
|
5011
5014
|
Dc as o,
|
|
5012
|
-
|
|
5015
|
+
Ii as p,
|
|
5013
5016
|
Lc as q,
|
|
5014
5017
|
mc as r,
|
|
5015
5018
|
bc as s,
|
|
5016
5019
|
Fd as t,
|
|
5017
5020
|
zd as u,
|
|
5018
5021
|
Ud as v,
|
|
5019
|
-
|
|
5022
|
+
ji as w,
|
|
5020
5023
|
Bc as x,
|
|
5021
5024
|
ec as y,
|
|
5022
5025
|
yc as z
|