@chaibuilder/sdk 1.2.6 → 1.2.8
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-gbfzju1d.js → AddBlocks-tMxKPoen.js} +50 -50
- package/dist/{AddBlocks-wuKI1ieB.cjs → AddBlocks-x2LkOHSj.cjs} +1 -1
- package/dist/BrandingOptions-EzT9UYd6.cjs +1 -0
- package/dist/{BrandingOptions-mZXO7thQ.js → BrandingOptions-QJJ1y5ez.js} +55 -50
- package/dist/{CanvasArea-7GpvsKP6.js → CanvasArea-EfZgx-gN.js} +406 -404
- package/dist/CanvasArea-rIDwPHl5.cjs +60 -0
- package/dist/{CurrentPage-tHBommaV.cjs → CurrentPage-QNFPD078.cjs} +1 -1
- package/dist/{CurrentPage-C52wu_r7.js → CurrentPage-ulHTz4MD.js} +7 -7
- package/dist/{Layers-NDtp2-im.js → Layers-rehZkz78.js} +171 -148
- package/dist/Layers-v-7k3W2I.cjs +1 -0
- package/dist/{MarkAsGlobalBlock-SPWd6Flk.js → MarkAsGlobalBlock-BjP-Rqlf.js} +6 -5
- package/dist/MarkAsGlobalBlock-X5dNmZcb.cjs +1 -0
- package/dist/{PagesPanel-qV7yGT-K.js → PagesPanel-acGVGJf-.js} +5 -5
- package/dist/{PagesPanel-qZ_-tybb.cjs → PagesPanel-x5ms_LOD.cjs} +1 -1
- package/dist/{ProjectPanel-vzyFbBNU.cjs → ProjectPanel-5BHQ5ANP.cjs} +1 -1
- package/dist/{ProjectPanel-RJqNz-uq.js → ProjectPanel-aLFJq49M.js} +5 -5
- package/dist/Settings-iOjfw5NQ.cjs +1 -0
- package/dist/{Settings-t0I7LKxe.js → Settings-v-txwlII.js} +172 -171
- package/dist/{SidePanels-rXx-fGjB.js → SidePanels-Vdc-J5wK.js} +96 -93
- package/dist/SidePanels-t0g9ZQFT.cjs +1 -0
- package/dist/Topbar-V8xCetWF.cjs +1 -0
- package/dist/{Topbar-ks1ckGLz.js → Topbar-j4t4AgCq.js} +4 -3
- package/dist/{UnsplashImages-8vJPuqrF.js → UnsplashImages-41Y3q5_Q.js} +7 -6
- package/dist/UnsplashImages-DbHky6cj.cjs +1 -0
- package/dist/UploadImages-DnQ95_NW.cjs +1 -0
- package/dist/{UploadImages-6N6UrjLo.js → UploadImages-xBg-kbKv.js} +13 -12
- package/dist/{add-page-modal-a8r8poMY.cjs → add-page-modal-0YAI9dXr.cjs} +1 -1
- package/dist/{add-page-modal-2VlONTs5.js → add-page-modal-6DlGzdA4.js} +5 -5
- package/dist/{confirm-alert-f3DYO5Hj.cjs → confirm-alert-U7-NcG7G.cjs} +1 -1
- package/dist/{confirm-alert-biqvaLT-.js → confirm-alert-i4pM3mOt.js} +4 -3
- package/dist/core.cjs +1 -1
- package/dist/core.js +19 -19
- package/dist/{delete-page-modal-_8O4RCkG.js → delete-page-modal-T_rlQfNd.js} +4 -4
- package/dist/{delete-page-modal-NmwHGjZP.cjs → delete-page-modal-qXpi_2xR.cjs} +1 -1
- package/dist/email-blocks.cjs +1 -1
- package/dist/email-blocks.js +263 -24
- package/dist/{form-Moz_psOw.js → form-OVmsLOrc.js} +1 -1
- package/dist/{form-lJhy9DEC.cjs → form-VbouZlAW.cjs} +1 -1
- package/dist/html-to-json-2PeOCVey.cjs +1 -0
- package/dist/{html-to-json-yjzEN9OX.js → html-to-json-57841sEK.js} +25 -26
- package/dist/{index-482XFRhB.js → index-EGUphg4R.js} +5402 -5366
- package/dist/index-H6vIwGfD.cjs +1 -0
- package/dist/index-e0c8PmRQ.js +205 -0
- package/dist/index-gi1LIOCw.cjs +1 -0
- package/dist/{index-3OU9zl6c.cjs → index-jw8RxsTv.cjs} +33 -33
- package/dist/{index-_OgCuSUz.js → index-niHREMmR.js} +1051 -1043
- package/dist/lib.cjs +1 -1
- package/dist/lib.js +20 -21
- package/dist/mockServiceWorker.js +1 -1
- package/dist/{page-viewer-ajtG_WZC.js → page-viewer-EoYYnA56.js} +5 -5
- package/dist/{page-viewer-k2VlWE3T.cjs → page-viewer-Ou8vDXGV.cjs} +1 -1
- package/dist/{project-general-setting-tAgCjUtR.cjs → project-general-setting-92q4oEYv.cjs} +1 -1
- package/dist/{project-general-setting-TIHLI4Qg.js → project-general-setting-DC_nADG-.js} +5 -5
- package/dist/{project-seo-setting-9JGBPzcA.cjs → project-seo-setting-Snn2nZgS.cjs} +1 -1
- package/dist/{project-seo-setting-dXclexQW.js → project-seo-setting-wxAGEkd_.js} +8 -7
- package/dist/{single-page-detail-6btKDNjs.cjs → single-page-detail-QmmhR_h2.cjs} +1 -1
- package/dist/{single-page-detail-lST7hWvC.js → single-page-detail-xtNZ9YxX.js} +6 -6
- package/dist/studio.cjs +1 -1
- package/dist/studio.js +4 -4
- package/dist/style.css +1 -1
- package/dist/ui.cjs +1 -1
- package/dist/ui.js +134 -133
- package/dist/{useAddBlockByDrop-uPXvrg4G.js → useAddBlockByDrop-_nwI4W3q.js} +1 -1
- package/dist/{useAddBlockByDrop-_nd8yZBa.cjs → useAddBlockByDrop-inkD7Lck.cjs} +1 -1
- package/dist/web-blocks.cjs +2 -2
- package/dist/web-blocks.js +138 -139
- package/package.json +5 -5
- package/dist/BrandingOptions-arKT1zCy.cjs +0 -1
- package/dist/CanvasArea-jvwkPvtQ.cjs +0 -59
- package/dist/Layers-4G-0aNk9.cjs +0 -1
- package/dist/MarkAsGlobalBlock-S2BhHTsK.cjs +0 -1
- package/dist/Settings-SV08lVcH.cjs +0 -1
- package/dist/SidePanels-TOJotvzn.cjs +0 -1
- package/dist/Topbar-u5XKdWgQ.cjs +0 -1
- package/dist/UnsplashImages-V8oKEHfi.cjs +0 -1
- package/dist/UploadImages-eHYxwWAp.cjs +0 -1
- package/dist/html-to-json-5UoswV2Q.cjs +0 -1
- package/dist/index-IIJ_o44s.cjs +0 -1
|
@@ -1,44 +1,45 @@
|
|
|
1
1
|
import { j as a } from "./jsx-runtime-WbnYoNE9.js";
|
|
2
|
-
import * as
|
|
3
|
-
import et, { createContext as
|
|
4
|
-
import * as
|
|
2
|
+
import * as p from "react";
|
|
3
|
+
import et, { createContext as Vs, useContext as $s, useRef as Br, createElement as Tr, useReducer as Fs, useEffect as je, useDebugValue as Gs, useCallback as A, useMemo as Ws, useState as De, Suspense as Nt } from "react";
|
|
4
|
+
import * as $t from "@radix-ui/react-toggle";
|
|
5
5
|
import { cva as be } from "class-variance-authority";
|
|
6
|
-
import { c as
|
|
6
|
+
import { c as Re, a as c } from "./utils-AvyFzbPC.js";
|
|
7
7
|
import * as He from "@radix-ui/react-switch";
|
|
8
|
-
import { Slot as
|
|
9
|
-
import * as
|
|
10
|
-
import { ChevronDownIcon as
|
|
11
|
-
import * as
|
|
8
|
+
import { Slot as Us } from "@radix-ui/react-slot";
|
|
9
|
+
import * as me from "@radix-ui/react-accordion";
|
|
10
|
+
import { ChevronDownIcon as Hs, Cross2Icon as tt, ChevronRightIcon as st, CheckIcon as Ee, DotFilledIcon as ot, CaretSortIcon as qs, MagnifyingGlassIcon as Ks } from "@radix-ui/react-icons";
|
|
11
|
+
import * as $ from "@radix-ui/react-alert-dialog";
|
|
12
12
|
import * as B from "@radix-ui/react-dialog";
|
|
13
|
-
import * as
|
|
14
|
-
import * as
|
|
15
|
-
import * as
|
|
13
|
+
import * as Ft from "@radix-ui/react-label";
|
|
14
|
+
import * as pe from "@radix-ui/react-scroll-area";
|
|
15
|
+
import * as he from "@radix-ui/react-tabs";
|
|
16
16
|
import * as we from "@radix-ui/react-tooltip";
|
|
17
17
|
import * as Se from "@radix-ui/react-popover";
|
|
18
18
|
import * as C from "@radix-ui/react-menubar";
|
|
19
|
-
import * as
|
|
19
|
+
import * as Oe from "@radix-ui/react-hover-card";
|
|
20
20
|
import * as O from "@radix-ui/react-select";
|
|
21
|
-
import * as
|
|
22
|
-
import * as
|
|
21
|
+
import * as R from "@radix-ui/react-dropdown-menu";
|
|
22
|
+
import * as Gt from "@radix-ui/react-separator";
|
|
23
23
|
import * as q from "@radix-ui/react-toast";
|
|
24
24
|
import { Command as U } from "cmdk";
|
|
25
|
-
import * as
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import { flatten as Y, filter as I, omit as at, isEmpty as
|
|
29
|
-
import
|
|
30
|
-
import { atom as y, useAtom as
|
|
31
|
-
import
|
|
32
|
-
import { g as
|
|
33
|
-
import
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
25
|
+
import * as P from "@radix-ui/react-context-menu";
|
|
26
|
+
import Js, { IconPickerItem as Ys } from "react-icons-picker";
|
|
27
|
+
import Qs from "react-dom";
|
|
28
|
+
import { flatten as Y, filter as I, omit as at, isEmpty as ce, isString as Xs, find as se, map as V, each as ie, get as z, set as fe, has as nt, includes as W, isUndefined as zr, without as Wt, forIn as Ut, findIndex as Be, last as Zs, first as ee, startsWith as Ht, isNull as qe, pick as kt, sortBy as St, isObject as eo } from "lodash-es";
|
|
29
|
+
import to from "react-quill";
|
|
30
|
+
import { atom as y, useAtom as T, useAtomValue as E, useSetAtom as de } from "jotai";
|
|
31
|
+
import qt from "flat-to-nested";
|
|
32
|
+
import { g as le, a as so } from "./Functions-7jnEwJyw.js";
|
|
33
|
+
import oo, { excludeAction as ao, ActionCreators as Ve } from "redux-undo";
|
|
34
|
+
import { getBlockComponent as rt, useChaiBlocks as no } from "@chaibuilder/runtime";
|
|
35
|
+
import { has as it } from "lodash";
|
|
36
|
+
import { a as ge, I as Kt, S as Ke, B as Je } from "./MODIFIERS-RiXS5Mn1.js";
|
|
37
|
+
import { useThrottledCallback as ro } from "@react-hookz/web";
|
|
37
38
|
import "react-i18next";
|
|
38
|
-
var
|
|
39
|
-
let
|
|
39
|
+
var L = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
|
|
40
|
+
let io = 0;
|
|
40
41
|
function Z(e, t) {
|
|
41
|
-
const s = `atom${++
|
|
42
|
+
const s = `atom${++io}`, o = {
|
|
42
43
|
toString: () => s
|
|
43
44
|
};
|
|
44
45
|
return typeof e == "function" ? o.read = e : (o.init = e, o.read = (n) => n(o), o.write = (n, r, i) => r(
|
|
@@ -46,54 +47,54 @@ function Z(e, t) {
|
|
|
46
47
|
typeof i == "function" ? i(n(o)) : i
|
|
47
48
|
)), t && (o.write = t), o;
|
|
48
49
|
}
|
|
49
|
-
const $e = (e) => "init" in e, Fe = (e) => !!e.write, Me = /* @__PURE__ */ new WeakMap(),
|
|
50
|
+
const $e = (e) => "init" in e, Fe = (e) => !!e.write, Me = /* @__PURE__ */ new WeakMap(), lo = (e, t) => {
|
|
50
51
|
Me.set(e, t), e.catch(() => {
|
|
51
52
|
}).finally(() => Me.delete(e));
|
|
52
|
-
},
|
|
53
|
+
}, jt = (e, t) => {
|
|
53
54
|
const s = Me.get(e);
|
|
54
55
|
s && (Me.delete(e), s(t));
|
|
55
|
-
},
|
|
56
|
+
}, At = (e, t) => {
|
|
56
57
|
e.status = "fulfilled", e.value = t;
|
|
57
|
-
},
|
|
58
|
+
}, Ct = (e, t) => {
|
|
58
59
|
e.status = "rejected", e.reason = t;
|
|
59
|
-
},
|
|
60
|
+
}, co = (e) => typeof (e == null ? void 0 : e.then) == "function", Ne = (e, t) => "v" in e && "v" in t && Object.is(e.v, t.v), _t = (e, t) => "e" in e && "e" in t && Object.is(e.e, t.e), ye = (e) => "v" in e && e.v instanceof Promise, uo = (e, t) => "v" in e && "v" in t && e.v.orig && e.v.orig === t.v.orig, Te = (e) => {
|
|
60
61
|
if ("e" in e)
|
|
61
62
|
throw e.e;
|
|
62
63
|
return e.v;
|
|
63
|
-
},
|
|
64
|
+
}, po = () => {
|
|
64
65
|
const e = /* @__PURE__ */ new WeakMap(), t = /* @__PURE__ */ new WeakMap(), s = /* @__PURE__ */ new Map();
|
|
65
66
|
let o, n, r;
|
|
66
|
-
(
|
|
67
|
+
(L ? "production" : void 0) !== "production" && (o = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set());
|
|
67
68
|
const i = (d) => e.get(d), u = (d, f) => {
|
|
68
|
-
(
|
|
69
|
-
const
|
|
70
|
-
if (e.set(d, f), s.has(d) || s.set(d,
|
|
69
|
+
(L ? "production" : void 0) !== "production" && Object.freeze(f);
|
|
70
|
+
const x = e.get(d);
|
|
71
|
+
if (e.set(d, f), s.has(d) || s.set(d, x), x && ye(x)) {
|
|
71
72
|
const g = "v" in f ? f.v instanceof Promise ? f.v : Promise.resolve(f.v) : Promise.reject(f.e);
|
|
72
|
-
|
|
73
|
+
jt(x.v, g);
|
|
73
74
|
}
|
|
74
|
-
},
|
|
75
|
+
}, m = (d, f, x) => {
|
|
75
76
|
const g = /* @__PURE__ */ new Map();
|
|
76
77
|
let v = !1;
|
|
77
|
-
|
|
78
|
-
!
|
|
78
|
+
x.forEach((h, N) => {
|
|
79
|
+
!h && N === d && (h = f), h ? (g.set(N, h), f.d.get(N) !== h && (v = !0)) : (L ? "production" : void 0) !== "production" && console.warn("[Bug] atom state not found");
|
|
79
80
|
}), (v || f.d.size !== g.size) && (f.d = g);
|
|
80
|
-
}, l = (d, f,
|
|
81
|
+
}, l = (d, f, x) => {
|
|
81
82
|
const g = i(d), v = {
|
|
82
83
|
d: (g == null ? void 0 : g.d) || /* @__PURE__ */ new Map(),
|
|
83
84
|
v: f
|
|
84
85
|
};
|
|
85
|
-
if (
|
|
86
|
+
if (x && m(d, v, x), g && Ne(g, v) && g.d === v.d)
|
|
86
87
|
return g;
|
|
87
|
-
if (g && ye(g) && ye(v) &&
|
|
88
|
+
if (g && ye(g) && ye(v) && uo(g, v)) {
|
|
88
89
|
if (g.d === v.d)
|
|
89
90
|
return g;
|
|
90
91
|
v.v = g.v;
|
|
91
92
|
}
|
|
92
93
|
return u(d, v), v;
|
|
93
|
-
}, b = (d, f,
|
|
94
|
-
if (
|
|
94
|
+
}, b = (d, f, x, g) => {
|
|
95
|
+
if (co(f)) {
|
|
95
96
|
let v;
|
|
96
|
-
const
|
|
97
|
+
const h = new Promise((N, M) => {
|
|
97
98
|
let S = !1;
|
|
98
99
|
f.then(
|
|
99
100
|
(_) => {
|
|
@@ -101,10 +102,10 @@ const $e = (e) => "init" in e, Fe = (e) => !!e.write, Me = /* @__PURE__ */ new W
|
|
|
101
102
|
S = !0;
|
|
102
103
|
const j = i(d), X = l(
|
|
103
104
|
d,
|
|
104
|
-
|
|
105
|
-
|
|
105
|
+
h,
|
|
106
|
+
x
|
|
106
107
|
);
|
|
107
|
-
|
|
108
|
+
At(h, _), N(_), (j == null ? void 0 : j.d) !== X.d && H(d, X, j == null ? void 0 : j.d);
|
|
108
109
|
}
|
|
109
110
|
},
|
|
110
111
|
(_) => {
|
|
@@ -112,30 +113,30 @@ const $e = (e) => "init" in e, Fe = (e) => !!e.write, Me = /* @__PURE__ */ new W
|
|
|
112
113
|
S = !0;
|
|
113
114
|
const j = i(d), X = l(
|
|
114
115
|
d,
|
|
115
|
-
|
|
116
|
-
|
|
116
|
+
h,
|
|
117
|
+
x
|
|
117
118
|
);
|
|
118
|
-
|
|
119
|
+
Ct(h, _), M(_), (j == null ? void 0 : j.d) !== X.d && H(d, X, j == null ? void 0 : j.d);
|
|
119
120
|
}
|
|
120
121
|
}
|
|
121
122
|
), v = (_) => {
|
|
122
123
|
S || (S = !0, _.then(
|
|
123
|
-
(j) =>
|
|
124
|
-
(j) =>
|
|
124
|
+
(j) => At(h, j),
|
|
125
|
+
(j) => Ct(h, j)
|
|
125
126
|
), N(_));
|
|
126
127
|
};
|
|
127
128
|
});
|
|
128
|
-
return
|
|
129
|
+
return h.orig = f, h.status = "pending", lo(h, (N) => {
|
|
129
130
|
N && v(N), g == null || g();
|
|
130
|
-
}), l(d,
|
|
131
|
+
}), l(d, h, x);
|
|
131
132
|
}
|
|
132
|
-
return l(d, f,
|
|
133
|
-
}, w = (d, f,
|
|
133
|
+
return l(d, f, x);
|
|
134
|
+
}, w = (d, f, x) => {
|
|
134
135
|
const g = i(d), v = {
|
|
135
136
|
d: (g == null ? void 0 : g.d) || /* @__PURE__ */ new Map(),
|
|
136
137
|
e: f
|
|
137
138
|
};
|
|
138
|
-
return
|
|
139
|
+
return x && m(d, v, x), g && _t(g, v) && g.d === v.d ? g : (u(d, v), v);
|
|
139
140
|
}, k = (d) => {
|
|
140
141
|
const f = i(d);
|
|
141
142
|
if (f && (f.d.forEach((S, _) => {
|
|
@@ -146,28 +147,28 @@ const $e = (e) => "init" in e, Fe = (e) => !!e.write, Me = /* @__PURE__ */ new W
|
|
|
146
147
|
j && !ye(j) && Ne(j, _);
|
|
147
148
|
})))
|
|
148
149
|
return f;
|
|
149
|
-
const
|
|
150
|
+
const x = /* @__PURE__ */ new Map();
|
|
150
151
|
let g = !0;
|
|
151
152
|
const v = (S) => {
|
|
152
153
|
if (S === d) {
|
|
153
154
|
const j = i(S);
|
|
154
155
|
if (j)
|
|
155
|
-
return
|
|
156
|
+
return x.set(S, j), Te(j);
|
|
156
157
|
if ($e(S))
|
|
157
|
-
return
|
|
158
|
+
return x.set(S, void 0), S.init;
|
|
158
159
|
throw new Error("no atom init");
|
|
159
160
|
}
|
|
160
161
|
const _ = k(S);
|
|
161
|
-
return
|
|
162
|
+
return x.set(S, _), Te(_);
|
|
162
163
|
};
|
|
163
|
-
let
|
|
164
|
+
let h, N;
|
|
164
165
|
const M = {
|
|
165
166
|
get signal() {
|
|
166
|
-
return
|
|
167
|
+
return h || (h = new AbortController()), h.signal;
|
|
167
168
|
},
|
|
168
169
|
get setSelf() {
|
|
169
|
-
return (
|
|
170
|
-
if ((
|
|
170
|
+
return (L ? "production" : void 0) !== "production" && !Fe(d) && console.warn("setSelf function cannot be used with read-only atom"), !N && Fe(d) && (N = (...S) => {
|
|
171
|
+
if ((L ? "production" : void 0) !== "production" && g && console.warn("setSelf function cannot be called in sync"), !g)
|
|
171
172
|
return te(d, ...S);
|
|
172
173
|
}), N;
|
|
173
174
|
}
|
|
@@ -177,42 +178,42 @@ const $e = (e) => "init" in e, Fe = (e) => !!e.write, Me = /* @__PURE__ */ new W
|
|
|
177
178
|
return b(
|
|
178
179
|
d,
|
|
179
180
|
S,
|
|
180
|
-
|
|
181
|
-
() =>
|
|
181
|
+
x,
|
|
182
|
+
() => h == null ? void 0 : h.abort()
|
|
182
183
|
);
|
|
183
184
|
} catch (S) {
|
|
184
|
-
return w(d, S,
|
|
185
|
+
return w(d, S, x);
|
|
185
186
|
} finally {
|
|
186
187
|
g = !1;
|
|
187
188
|
}
|
|
188
|
-
}, D = (d) =>
|
|
189
|
+
}, D = (d) => Te(k(d)), G = (d) => {
|
|
189
190
|
let f = t.get(d);
|
|
190
191
|
return f || (f = J(d)), f;
|
|
191
|
-
},
|
|
192
|
+
}, F = (d, f) => !f.l.size && (!f.t.size || f.t.size === 1 && f.t.has(d)), oe = (d) => {
|
|
192
193
|
const f = t.get(d);
|
|
193
|
-
f &&
|
|
194
|
-
},
|
|
195
|
-
const f = /* @__PURE__ */ new Map(),
|
|
196
|
-
const N = t.get(
|
|
194
|
+
f && F(d, f) && ue(d);
|
|
195
|
+
}, xe = (d) => {
|
|
196
|
+
const f = /* @__PURE__ */ new Map(), x = /* @__PURE__ */ new WeakMap(), g = (h) => {
|
|
197
|
+
const N = t.get(h);
|
|
197
198
|
N == null || N.t.forEach((M) => {
|
|
198
|
-
M !==
|
|
199
|
+
M !== h && (f.set(
|
|
199
200
|
M,
|
|
200
|
-
(f.get(M) || /* @__PURE__ */ new Set()).add(
|
|
201
|
-
),
|
|
201
|
+
(f.get(M) || /* @__PURE__ */ new Set()).add(h)
|
|
202
|
+
), x.set(M, (x.get(M) || 0) + 1), g(M));
|
|
202
203
|
});
|
|
203
204
|
};
|
|
204
205
|
g(d);
|
|
205
|
-
const v = (
|
|
206
|
-
const N = t.get(
|
|
206
|
+
const v = (h) => {
|
|
207
|
+
const N = t.get(h);
|
|
207
208
|
N == null || N.t.forEach((M) => {
|
|
208
209
|
var S;
|
|
209
|
-
if (M !==
|
|
210
|
-
let _ =
|
|
211
|
-
if (_ &&
|
|
210
|
+
if (M !== h) {
|
|
211
|
+
let _ = x.get(M);
|
|
212
|
+
if (_ && x.set(M, --_), !_) {
|
|
212
213
|
let j = !!((S = f.get(M)) != null && S.size);
|
|
213
214
|
if (j) {
|
|
214
|
-
const X = i(M),
|
|
215
|
-
j = !X || !Ne(X,
|
|
215
|
+
const X = i(M), zs = k(M);
|
|
216
|
+
j = !X || !Ne(X, zs);
|
|
216
217
|
}
|
|
217
218
|
j || f.forEach((X) => X.delete(M));
|
|
218
219
|
}
|
|
@@ -221,98 +222,98 @@ const $e = (e) => "init" in e, Fe = (e) => !!e.write, Me = /* @__PURE__ */ new W
|
|
|
221
222
|
});
|
|
222
223
|
};
|
|
223
224
|
v(d);
|
|
224
|
-
},
|
|
225
|
-
let
|
|
226
|
-
const g = (N) =>
|
|
225
|
+
}, ae = (d, ...f) => {
|
|
226
|
+
let x = !0;
|
|
227
|
+
const g = (N) => Te(k(N)), v = (N, ...M) => {
|
|
227
228
|
let S;
|
|
228
229
|
if (N === d) {
|
|
229
230
|
if (!$e(N))
|
|
230
231
|
throw new Error("atom not writable");
|
|
231
232
|
const _ = i(N), j = b(N, M[0]);
|
|
232
|
-
(!_ || !Ne(_, j)) &&
|
|
233
|
+
(!_ || !Ne(_, j)) && xe(N);
|
|
233
234
|
} else
|
|
234
|
-
S =
|
|
235
|
-
if (!
|
|
236
|
-
const _ =
|
|
237
|
-
(
|
|
235
|
+
S = ae(N, ...M);
|
|
236
|
+
if (!x) {
|
|
237
|
+
const _ = ne();
|
|
238
|
+
(L ? "production" : void 0) !== "production" && n.forEach(
|
|
238
239
|
(j) => j({ type: "async-write", flushed: _ })
|
|
239
240
|
);
|
|
240
241
|
}
|
|
241
242
|
return S;
|
|
242
|
-
},
|
|
243
|
-
return
|
|
243
|
+
}, h = d.write(g, v, ...f);
|
|
244
|
+
return x = !1, h;
|
|
244
245
|
}, te = (d, ...f) => {
|
|
245
|
-
const
|
|
246
|
-
return (
|
|
246
|
+
const x = ae(d, ...f), g = ne();
|
|
247
|
+
return (L ? "production" : void 0) !== "production" && n.forEach(
|
|
247
248
|
(v) => v({ type: "write", flushed: g })
|
|
248
|
-
),
|
|
249
|
+
), x;
|
|
249
250
|
}, J = (d, f) => {
|
|
250
|
-
const
|
|
251
|
+
const x = {
|
|
251
252
|
t: new Set(f && [f]),
|
|
252
253
|
l: /* @__PURE__ */ new Set()
|
|
253
254
|
};
|
|
254
|
-
if (t.set(d,
|
|
255
|
-
const
|
|
256
|
-
|
|
255
|
+
if (t.set(d, x), (L ? "production" : void 0) !== "production" && r.add(d), k(d).d.forEach((g, v) => {
|
|
256
|
+
const h = t.get(v);
|
|
257
|
+
h ? h.t.add(d) : v !== d && J(v, d);
|
|
257
258
|
}), k(d), Fe(d) && d.onMount) {
|
|
258
259
|
const g = d.onMount((...v) => te(d, ...v));
|
|
259
|
-
g && (
|
|
260
|
+
g && (x.u = g);
|
|
260
261
|
}
|
|
261
|
-
return
|
|
262
|
+
return x;
|
|
262
263
|
}, ue = (d) => {
|
|
263
264
|
var f;
|
|
264
|
-
const
|
|
265
|
-
|
|
265
|
+
const x = (f = t.get(d)) == null ? void 0 : f.u;
|
|
266
|
+
x && x(), t.delete(d), (L ? "production" : void 0) !== "production" && r.delete(d);
|
|
266
267
|
const g = i(d);
|
|
267
|
-
g ? (ye(g) &&
|
|
268
|
-
if (
|
|
269
|
-
const N = t.get(
|
|
270
|
-
N && (N.t.delete(d),
|
|
268
|
+
g ? (ye(g) && jt(g.v), g.d.forEach((v, h) => {
|
|
269
|
+
if (h !== d) {
|
|
270
|
+
const N = t.get(h);
|
|
271
|
+
N && (N.t.delete(d), F(h, N) && ue(h));
|
|
271
272
|
}
|
|
272
|
-
})) : (
|
|
273
|
-
}, H = (d, f,
|
|
273
|
+
})) : (L ? "production" : void 0) !== "production" && console.warn("[Bug] could not find atom state to unmount", d);
|
|
274
|
+
}, H = (d, f, x) => {
|
|
274
275
|
const g = new Set(f.d.keys());
|
|
275
|
-
|
|
276
|
-
if (g.has(
|
|
277
|
-
g.delete(
|
|
276
|
+
x == null || x.forEach((v, h) => {
|
|
277
|
+
if (g.has(h)) {
|
|
278
|
+
g.delete(h);
|
|
278
279
|
return;
|
|
279
280
|
}
|
|
280
|
-
const N = t.get(
|
|
281
|
-
N && (N.t.delete(d),
|
|
281
|
+
const N = t.get(h);
|
|
282
|
+
N && (N.t.delete(d), F(h, N) && ue(h));
|
|
282
283
|
}), g.forEach((v) => {
|
|
283
|
-
const
|
|
284
|
-
|
|
284
|
+
const h = t.get(v);
|
|
285
|
+
h ? h.t.add(d) : t.has(d) && J(v, d);
|
|
285
286
|
});
|
|
286
|
-
},
|
|
287
|
+
}, ne = () => {
|
|
287
288
|
let d;
|
|
288
|
-
for ((
|
|
289
|
+
for ((L ? "production" : void 0) !== "production" && (d = /* @__PURE__ */ new Set()); s.size; ) {
|
|
289
290
|
const f = Array.from(s);
|
|
290
|
-
s.clear(), f.forEach(([
|
|
291
|
-
const v = i(
|
|
291
|
+
s.clear(), f.forEach(([x, g]) => {
|
|
292
|
+
const v = i(x);
|
|
292
293
|
if (v) {
|
|
293
|
-
v.d !== (g == null ? void 0 : g.d) && H(
|
|
294
|
-
const
|
|
295
|
-
|
|
294
|
+
v.d !== (g == null ? void 0 : g.d) && H(x, v, g == null ? void 0 : g.d);
|
|
295
|
+
const h = t.get(x);
|
|
296
|
+
h && !// TODO This seems pretty hacky. Hope to fix it.
|
|
296
297
|
// Maybe we could `mountDependencies` in `setAtomState`?
|
|
297
|
-
(g && !ye(g) && (Ne(g, v) ||
|
|
298
|
+
(g && !ye(g) && (Ne(g, v) || _t(g, v))) && (h.l.forEach((N) => N()), (L ? "production" : void 0) !== "production" && d.add(x));
|
|
298
299
|
} else
|
|
299
|
-
(
|
|
300
|
+
(L ? "production" : void 0) !== "production" && console.warn("[Bug] no atom state to flush");
|
|
300
301
|
});
|
|
301
302
|
}
|
|
302
|
-
if ((
|
|
303
|
+
if ((L ? "production" : void 0) !== "production")
|
|
303
304
|
return o.forEach((f) => f("state")), d;
|
|
304
|
-
},
|
|
305
|
-
const
|
|
306
|
-
return v.add(f), (
|
|
307
|
-
(
|
|
305
|
+
}, re = (d, f) => {
|
|
306
|
+
const x = G(d), g = ne(), v = x.l;
|
|
307
|
+
return v.add(f), (L ? "production" : void 0) !== "production" && (o.forEach((h) => h("sub")), n.forEach(
|
|
308
|
+
(h) => h({ type: "sub", flushed: g })
|
|
308
309
|
)), () => {
|
|
309
|
-
v.delete(f),
|
|
310
|
+
v.delete(f), oe(d), (L ? "production" : void 0) !== "production" && (o.forEach((h) => h("unsub")), n.forEach((h) => h({ type: "unsub" })));
|
|
310
311
|
};
|
|
311
312
|
};
|
|
312
|
-
return (
|
|
313
|
+
return (L ? "production" : void 0) !== "production" ? {
|
|
313
314
|
get: D,
|
|
314
315
|
set: te,
|
|
315
|
-
sub:
|
|
316
|
+
sub: re,
|
|
316
317
|
// store dev methods (these are tentative and subject to change without notice)
|
|
317
318
|
dev_subscribe_store: (d, f) => f !== 2 ? (console.warn(
|
|
318
319
|
"The current StoreListener revision is 2. The older ones are deprecated."
|
|
@@ -325,27 +326,27 @@ const $e = (e) => "init" in e, Fe = (e) => !!e.write, Me = /* @__PURE__ */ new W
|
|
|
325
326
|
dev_get_atom_state: (d) => e.get(d),
|
|
326
327
|
dev_get_mounted: (d) => t.get(d),
|
|
327
328
|
dev_restore_atoms: (d) => {
|
|
328
|
-
for (const [
|
|
329
|
-
$e(
|
|
330
|
-
const f =
|
|
329
|
+
for (const [x, g] of d)
|
|
330
|
+
$e(x) && (b(x, g), xe(x));
|
|
331
|
+
const f = ne();
|
|
331
332
|
n.forEach(
|
|
332
|
-
(
|
|
333
|
+
(x) => x({ type: "restore", flushed: f })
|
|
333
334
|
);
|
|
334
335
|
}
|
|
335
336
|
} : {
|
|
336
337
|
get: D,
|
|
337
338
|
set: te,
|
|
338
|
-
sub:
|
|
339
|
+
sub: re
|
|
339
340
|
};
|
|
340
341
|
};
|
|
341
342
|
let Ge;
|
|
342
|
-
const
|
|
343
|
-
var
|
|
344
|
-
const
|
|
345
|
-
const t =
|
|
346
|
-
return (e == null ? void 0 : e.store) || t ||
|
|
343
|
+
const mo = () => (Ge || (Ge = po()), Ge);
|
|
344
|
+
var fo = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
|
|
345
|
+
const go = Vs(void 0), Jt = (e) => {
|
|
346
|
+
const t = $s(go);
|
|
347
|
+
return (e == null ? void 0 : e.store) || t || mo();
|
|
347
348
|
};
|
|
348
|
-
const
|
|
349
|
+
const bo = (e) => typeof (e == null ? void 0 : e.then) == "function", ho = et.use || ((e) => {
|
|
349
350
|
if (e.status === "pending")
|
|
350
351
|
throw e;
|
|
351
352
|
if (e.status === "fulfilled")
|
|
@@ -359,8 +360,8 @@ const fo = (e) => typeof (e == null ? void 0 : e.then) == "function", go = et.us
|
|
|
359
360
|
}
|
|
360
361
|
), e);
|
|
361
362
|
});
|
|
362
|
-
function
|
|
363
|
-
const s =
|
|
363
|
+
function xo(e, t) {
|
|
364
|
+
const s = Jt(t), [[o, n, r], i] = Fs(
|
|
364
365
|
(l) => {
|
|
365
366
|
const b = s.get(e);
|
|
366
367
|
return Object.is(l[0], b) && l[1] === s && l[2] === e ? l : [b, s, e];
|
|
@@ -370,98 +371,98 @@ function bo(e, t) {
|
|
|
370
371
|
);
|
|
371
372
|
let u = o;
|
|
372
373
|
(n !== s || r !== e) && (i(), u = s.get(e));
|
|
373
|
-
const
|
|
374
|
+
const m = t == null ? void 0 : t.delay;
|
|
374
375
|
return je(() => {
|
|
375
376
|
const l = s.sub(e, () => {
|
|
376
|
-
if (typeof
|
|
377
|
-
setTimeout(i,
|
|
377
|
+
if (typeof m == "number") {
|
|
378
|
+
setTimeout(i, m);
|
|
378
379
|
return;
|
|
379
380
|
}
|
|
380
381
|
i();
|
|
381
382
|
});
|
|
382
383
|
return i(), l;
|
|
383
|
-
}, [s, e,
|
|
384
|
+
}, [s, e, m]), Gs(u), bo(u) ? ho(u) : u;
|
|
384
385
|
}
|
|
385
|
-
function
|
|
386
|
-
const s =
|
|
386
|
+
function yo(e, t) {
|
|
387
|
+
const s = Jt(t);
|
|
387
388
|
return A(
|
|
388
389
|
(...n) => {
|
|
389
|
-
if ((
|
|
390
|
+
if ((fo ? "production" : void 0) !== "production" && !("write" in e))
|
|
390
391
|
throw new Error("not writable atom");
|
|
391
392
|
return s.set(e, ...n);
|
|
392
393
|
},
|
|
393
394
|
[s, e]
|
|
394
395
|
);
|
|
395
396
|
}
|
|
396
|
-
function
|
|
397
|
+
function Yr(e, t) {
|
|
397
398
|
return [
|
|
398
|
-
|
|
399
|
+
xo(e, t),
|
|
399
400
|
// We do wrong type assertion here, which results in throwing an error.
|
|
400
|
-
|
|
401
|
+
yo(e, t)
|
|
401
402
|
];
|
|
402
403
|
}
|
|
403
|
-
var
|
|
404
|
-
const
|
|
405
|
-
function
|
|
404
|
+
var lt = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
|
|
405
|
+
const Yt = Symbol();
|
|
406
|
+
function vo(e, t) {
|
|
406
407
|
const s = Z(
|
|
407
408
|
e,
|
|
408
409
|
(o, n, r) => n(s, t(o(s), r))
|
|
409
410
|
);
|
|
410
411
|
return s;
|
|
411
412
|
}
|
|
412
|
-
const
|
|
413
|
-
const o =
|
|
414
|
-
return
|
|
415
|
-
},
|
|
416
|
-
function
|
|
417
|
-
return
|
|
413
|
+
const Bt = (e, t, s) => (t.has(s) ? t : t.set(s, e())).get(s), wo = /* @__PURE__ */ new WeakMap(), No = (e, t, s) => {
|
|
414
|
+
const o = Bt(() => /* @__PURE__ */ new WeakMap(), wo, t);
|
|
415
|
+
return Bt(e, o, s);
|
|
416
|
+
}, ko = {}, Tt = (e) => !!e.write, So = (e) => typeof e == "function";
|
|
417
|
+
function jo(e, t) {
|
|
418
|
+
return No(
|
|
418
419
|
() => {
|
|
419
420
|
const s = /* @__PURE__ */ new WeakMap(), o = (i, u) => {
|
|
420
|
-
let
|
|
421
|
-
if (
|
|
422
|
-
return
|
|
421
|
+
let m = s.get(i);
|
|
422
|
+
if (m)
|
|
423
|
+
return m;
|
|
423
424
|
const l = u && s.get(u), b = [], w = [];
|
|
424
425
|
return i.forEach((k, D) => {
|
|
425
|
-
const
|
|
426
|
-
w[D] =
|
|
427
|
-
const
|
|
428
|
-
if (
|
|
429
|
-
b[D] =
|
|
426
|
+
const G = t ? t(k) : D;
|
|
427
|
+
w[D] = G;
|
|
428
|
+
const F = l && l.atomList[l.keyList.indexOf(G)];
|
|
429
|
+
if (F) {
|
|
430
|
+
b[D] = F;
|
|
430
431
|
return;
|
|
431
432
|
}
|
|
432
|
-
const
|
|
433
|
-
const te =
|
|
433
|
+
const oe = (ae) => {
|
|
434
|
+
const te = ae(n), J = ae(e), H = o(J, te == null ? void 0 : te.arr).keyList.indexOf(G);
|
|
434
435
|
if (H < 0 || H >= J.length) {
|
|
435
|
-
const
|
|
436
|
-
if (
|
|
437
|
-
return
|
|
436
|
+
const ne = i[o(i).keyList.indexOf(G)];
|
|
437
|
+
if (ne)
|
|
438
|
+
return ne;
|
|
438
439
|
throw new Error("splitAtom: index out of bounds for read");
|
|
439
440
|
}
|
|
440
441
|
return J[H];
|
|
441
|
-
},
|
|
442
|
-
const ue =
|
|
443
|
-
if (
|
|
442
|
+
}, xe = (ae, te, J) => {
|
|
443
|
+
const ue = ae(n), H = ae(e), re = o(H, ue == null ? void 0 : ue.arr).keyList.indexOf(G);
|
|
444
|
+
if (re < 0 || re >= H.length)
|
|
444
445
|
throw new Error("splitAtom: index out of bounds for write");
|
|
445
|
-
const d =
|
|
446
|
+
const d = So(J) ? J(H[re]) : J;
|
|
446
447
|
te(e, [
|
|
447
|
-
...H.slice(0,
|
|
448
|
+
...H.slice(0, re),
|
|
448
449
|
d,
|
|
449
|
-
...H.slice(
|
|
450
|
+
...H.slice(re + 1)
|
|
450
451
|
]);
|
|
451
452
|
};
|
|
452
|
-
b[D] =
|
|
453
|
-
}), l && l.keyList.length === w.length && l.keyList.every((k, D) => k === w[D]) ?
|
|
453
|
+
b[D] = Tt(e) ? Z(oe, xe) : Z(oe);
|
|
454
|
+
}), l && l.keyList.length === w.length && l.keyList.every((k, D) => k === w[D]) ? m = l : m = { arr: i, atomList: b, keyList: w }, s.set(i, m), m;
|
|
454
455
|
}, n = Z((i) => {
|
|
455
|
-
const u = i(n),
|
|
456
|
-
return o(
|
|
456
|
+
const u = i(n), m = i(e);
|
|
457
|
+
return o(m, u == null ? void 0 : u.arr);
|
|
457
458
|
});
|
|
458
|
-
(
|
|
459
|
-
const r =
|
|
459
|
+
(lt ? "production" : void 0) !== "production" && (n.debugPrivate = !0), n.init = void 0;
|
|
460
|
+
const r = Tt(e) ? Z(
|
|
460
461
|
(i) => i(n).atomList,
|
|
461
|
-
(i, u,
|
|
462
|
-
switch (
|
|
462
|
+
(i, u, m) => {
|
|
463
|
+
switch (m.type) {
|
|
463
464
|
case "remove": {
|
|
464
|
-
const l = i(r).indexOf(
|
|
465
|
+
const l = i(r).indexOf(m.atom);
|
|
465
466
|
if (l >= 0) {
|
|
466
467
|
const b = i(e);
|
|
467
468
|
u(e, [
|
|
@@ -472,19 +473,19 @@ function ko(e, t) {
|
|
|
472
473
|
break;
|
|
473
474
|
}
|
|
474
475
|
case "insert": {
|
|
475
|
-
const l =
|
|
476
|
+
const l = m.before ? i(r).indexOf(m.before) : i(r).length;
|
|
476
477
|
if (l >= 0) {
|
|
477
478
|
const b = i(e);
|
|
478
479
|
u(e, [
|
|
479
480
|
...b.slice(0, l),
|
|
480
|
-
|
|
481
|
+
m.value,
|
|
481
482
|
...b.slice(l)
|
|
482
483
|
]);
|
|
483
484
|
}
|
|
484
485
|
break;
|
|
485
486
|
}
|
|
486
487
|
case "move": {
|
|
487
|
-
const l = i(r).indexOf(
|
|
488
|
+
const l = i(r).indexOf(m.atom), b = m.before ? i(r).indexOf(m.before) : i(r).length;
|
|
488
489
|
if (l >= 0 && b >= 0) {
|
|
489
490
|
const w = i(e);
|
|
490
491
|
l < b ? u(e, [
|
|
@@ -507,19 +508,19 @@ function ko(e, t) {
|
|
|
507
508
|
return r;
|
|
508
509
|
},
|
|
509
510
|
e,
|
|
510
|
-
t ||
|
|
511
|
+
t || ko
|
|
511
512
|
);
|
|
512
513
|
}
|
|
513
|
-
function
|
|
514
|
+
function Qr(e) {
|
|
514
515
|
const t = Symbol(), s = Z(t);
|
|
515
|
-
(
|
|
516
|
+
(lt ? "production" : void 0) !== "production" && (s.debugPrivate = !0);
|
|
516
517
|
const o = Z(
|
|
517
518
|
(n, r) => {
|
|
518
519
|
const i = n(s);
|
|
519
520
|
return i !== t ? i : e(n, r);
|
|
520
521
|
},
|
|
521
522
|
(n, r, i) => {
|
|
522
|
-
if (i ===
|
|
523
|
+
if (i === Yt)
|
|
523
524
|
r(s, t);
|
|
524
525
|
else if (typeof i == "function") {
|
|
525
526
|
const u = n(o);
|
|
@@ -530,13 +531,13 @@ function Kr(e) {
|
|
|
530
531
|
);
|
|
531
532
|
return o;
|
|
532
533
|
}
|
|
533
|
-
const
|
|
534
|
-
function
|
|
534
|
+
const Ao = (e) => typeof (e == null ? void 0 : e.then) == "function";
|
|
535
|
+
function Co(e) {
|
|
535
536
|
let t, s;
|
|
536
537
|
const o = {
|
|
537
538
|
getItem: (n, r) => {
|
|
538
539
|
var i, u;
|
|
539
|
-
const
|
|
540
|
+
const m = (b) => {
|
|
540
541
|
if (b = b || "", t !== b) {
|
|
541
542
|
try {
|
|
542
543
|
s = JSON.parse(b);
|
|
@@ -547,7 +548,7 @@ function jo(e) {
|
|
|
547
548
|
}
|
|
548
549
|
return s;
|
|
549
550
|
}, l = (u = (i = e()) == null ? void 0 : i.getItem(n)) != null ? u : null;
|
|
550
|
-
return
|
|
551
|
+
return Ao(l) ? l.then(m) : m(l);
|
|
551
552
|
},
|
|
552
553
|
setItem: (n, r) => {
|
|
553
554
|
var i;
|
|
@@ -562,11 +563,11 @@ function jo(e) {
|
|
|
562
563
|
if (!(e() instanceof window.Storage))
|
|
563
564
|
return () => {
|
|
564
565
|
};
|
|
565
|
-
const u = (
|
|
566
|
-
if (
|
|
566
|
+
const u = (m) => {
|
|
567
|
+
if (m.storageArea === e() && m.key === n) {
|
|
567
568
|
let l;
|
|
568
569
|
try {
|
|
569
|
-
l = JSON.parse(
|
|
570
|
+
l = JSON.parse(m.newValue || "");
|
|
570
571
|
} catch {
|
|
571
572
|
l = i;
|
|
572
573
|
}
|
|
@@ -578,85 +579,85 @@ function jo(e) {
|
|
|
578
579
|
};
|
|
579
580
|
}), o;
|
|
580
581
|
}
|
|
581
|
-
const
|
|
582
|
+
const _o = Co(
|
|
582
583
|
() => typeof window < "u" ? window.localStorage : void 0
|
|
583
584
|
);
|
|
584
|
-
function Ae(e, t, s =
|
|
585
|
+
function Ae(e, t, s = _o, o) {
|
|
585
586
|
const n = o == null ? void 0 : o.unstable_getOnInit, r = Z(
|
|
586
587
|
n ? s.getItem(e, t) : t
|
|
587
588
|
);
|
|
588
|
-
return (
|
|
589
|
+
return (lt ? "production" : void 0) !== "production" && (r.debugPrivate = !0), r.onMount = (u) => {
|
|
589
590
|
n || u(s.getItem(e, t));
|
|
590
|
-
let
|
|
591
|
-
return s.subscribe && (
|
|
591
|
+
let m;
|
|
592
|
+
return s.subscribe && (m = s.subscribe(e, u, t)), m;
|
|
592
593
|
}, Z(
|
|
593
594
|
(u) => u(r),
|
|
594
|
-
(u,
|
|
595
|
+
(u, m, l) => {
|
|
595
596
|
const b = typeof l == "function" ? l(u(r)) : l;
|
|
596
|
-
return b ===
|
|
597
|
+
return b === Yt ? (m(r, t), s.removeItem(e)) : b instanceof Promise ? b.then((w) => (m(r, w), s.setItem(e, w))) : (m(r, b), s.setItem(e, b));
|
|
597
598
|
}
|
|
598
599
|
);
|
|
599
600
|
}
|
|
600
|
-
const
|
|
601
|
-
|
|
602
|
-
const
|
|
603
|
-
|
|
604
|
-
const
|
|
601
|
+
const ct = y(null);
|
|
602
|
+
ct.debugLabel = "chaiBuilderPropsAtom";
|
|
603
|
+
const Bo = y({});
|
|
604
|
+
Bo.debugLabel = "chaiExternalDataAtom";
|
|
605
|
+
const Xr = () => !1, To = (e) => {
|
|
605
606
|
const t = e.replace(ge, "").split(",");
|
|
606
607
|
return { baseClasses: t[0], classes: t[1] };
|
|
607
608
|
};
|
|
608
|
-
const
|
|
609
|
+
const Ro = new qt({ children: "blockNodes" }), Qt = (e, t = null) => Y(
|
|
609
610
|
e.map((s) => {
|
|
610
611
|
if (s = t !== null ? { ...s, parent: t } : s, s.children && s.children.length) {
|
|
611
612
|
const o = [...s.children];
|
|
612
|
-
return delete s.children, Y([s, ...
|
|
613
|
+
return delete s.children, Y([s, ...Qt(o, s._id)]);
|
|
613
614
|
}
|
|
614
615
|
return s;
|
|
615
616
|
})
|
|
616
617
|
);
|
|
617
|
-
function
|
|
618
|
+
function Xt(e, t, s) {
|
|
618
619
|
const o = I(e, (r) => r._parent === t), n = [];
|
|
619
620
|
for (let r = 0; r < o.length; r++) {
|
|
620
|
-
const i =
|
|
621
|
+
const i = Zt(o[r]);
|
|
621
622
|
if (Object.keys(i).length > 0 && Object.keys(i).forEach((u) => {
|
|
622
|
-
o[r][u] = `slot:${
|
|
623
|
+
o[r][u] = `slot:${le()}`;
|
|
623
624
|
}), I(e, { _parent: o[r]._id }).length > 0) {
|
|
624
|
-
const u =
|
|
625
|
-
n.push({ ...o[r], oldId: o[r]._id, _id: u, _parent: s }), n.push(Y(
|
|
625
|
+
const u = le();
|
|
626
|
+
n.push({ ...o[r], oldId: o[r]._id, _id: u, _parent: s }), n.push(Y(Xt(e, o[r]._id, u)));
|
|
626
627
|
} else
|
|
627
628
|
n.push({
|
|
628
629
|
...o[r],
|
|
629
630
|
oldId: o[r]._id,
|
|
630
|
-
_id:
|
|
631
|
+
_id: le(),
|
|
631
632
|
_parent: s
|
|
632
633
|
});
|
|
633
634
|
}
|
|
634
635
|
return Y(n);
|
|
635
636
|
}
|
|
636
|
-
function
|
|
637
|
-
let t =
|
|
638
|
-
return t = !t.type && t.blockNodes ? t.blockNodes :
|
|
637
|
+
function Po(e) {
|
|
638
|
+
let t = Ro.convert(e.map((s) => at(s, ["settings"])));
|
|
639
|
+
return t = !t.type && t.blockNodes ? t.blockNodes : ce(t) ? [] : [t], t;
|
|
639
640
|
}
|
|
640
|
-
const
|
|
641
|
+
const Zt = (e) => {
|
|
641
642
|
const t = {};
|
|
642
643
|
return Object.keys(e).forEach((s) => {
|
|
643
|
-
|
|
644
|
+
Xs(e[s]) && e[s].startsWith("slot") && (t[s] = e[s].replace("slot:", ""));
|
|
644
645
|
}), t;
|
|
645
|
-
},
|
|
646
|
+
}, Io = (e, t, s = null) => {
|
|
646
647
|
let o = se(e, { _id: t });
|
|
647
|
-
o = { ...o, oldId: o._id, _id:
|
|
648
|
+
o = { ...o, oldId: o._id, _id: le() }, s && (o = { ...o, _parent: s });
|
|
648
649
|
const n = [o];
|
|
649
|
-
I(e, { _parent: t }).length > 0 && n.push(Y(
|
|
650
|
+
I(e, { _parent: t }).length > 0 && n.push(Y(Xt(e, t, o._id)));
|
|
650
651
|
const r = Y(n);
|
|
651
652
|
return V(r, (i) => {
|
|
652
|
-
const u = i,
|
|
653
|
-
return Object.keys(
|
|
654
|
-
const b = se(r, { oldId:
|
|
653
|
+
const u = i, m = Zt(u);
|
|
654
|
+
return Object.keys(m).length > 0 && Object.keys(m).forEach((l) => {
|
|
655
|
+
const b = se(r, { oldId: m[l].replace("slot:", "") });
|
|
655
656
|
u[l] = `slot:${b._id}`;
|
|
656
657
|
}), at(u, ["global", "oldId"]);
|
|
657
658
|
});
|
|
658
659
|
};
|
|
659
|
-
const
|
|
660
|
+
const Mo = oo(
|
|
660
661
|
// eslint-disable-next-line default-param-last
|
|
661
662
|
(e = [], t) => {
|
|
662
663
|
switch (t.type) {
|
|
@@ -671,7 +672,7 @@ const To = to(
|
|
|
671
672
|
case "update_props":
|
|
672
673
|
case "update_props_realtime":
|
|
673
674
|
const { payload: s } = t;
|
|
674
|
-
return e.map((o) => (s.ids.includes(o._id) && !
|
|
675
|
+
return e.map((o) => (s.ids.includes(o._id) && !ce(t.payload.props) && Object.keys(t.payload.props).forEach((n) => {
|
|
675
676
|
fe(o, n, t.payload.props[n]);
|
|
676
677
|
}), o));
|
|
677
678
|
default:
|
|
@@ -682,50 +683,50 @@ const To = to(
|
|
|
682
683
|
debug: !1,
|
|
683
684
|
ignoreInitialState: !1,
|
|
684
685
|
limit: 30,
|
|
685
|
-
filter:
|
|
686
|
+
filter: ao(["update_props_realtime", "add_duplicate_blocks", "set_page_blocks"])
|
|
686
687
|
}
|
|
687
|
-
),
|
|
688
|
+
), Le = vo(
|
|
688
689
|
{
|
|
689
690
|
past: [],
|
|
690
691
|
present: [],
|
|
691
692
|
future: []
|
|
692
693
|
},
|
|
693
|
-
|
|
694
|
+
Mo
|
|
694
695
|
);
|
|
695
|
-
|
|
696
|
+
Le.debugLabel = "pageBlocksAtom";
|
|
696
697
|
const Q = y((e) => {
|
|
697
698
|
var t;
|
|
698
|
-
return (t = e(
|
|
699
|
+
return (t = e(Le)) == null ? void 0 : t.present;
|
|
699
700
|
});
|
|
700
701
|
Q.debugLabel = "presentBlocksAtom";
|
|
701
|
-
const
|
|
702
|
-
|
|
703
|
-
const
|
|
704
|
-
|
|
705
|
-
const
|
|
706
|
-
|
|
707
|
-
const
|
|
708
|
-
|
|
709
|
-
const
|
|
710
|
-
|
|
711
|
-
const
|
|
712
|
-
const t = e(
|
|
702
|
+
const dt = jo(Q);
|
|
703
|
+
dt.debugLabel = "pageBlocksAtomsAtom";
|
|
704
|
+
const es = y((e) => Po(e(Q)));
|
|
705
|
+
es.debugLabel = "pageBlocksTreeAtom";
|
|
706
|
+
const Do = y("");
|
|
707
|
+
Do.debugLabel = "builderActivePageAtom";
|
|
708
|
+
const Eo = y(-1);
|
|
709
|
+
Eo.debugLabel = "destinationDropIndexAtom";
|
|
710
|
+
const ts = y([]);
|
|
711
|
+
ts.debugLabel = "buildingBlocksAtom";
|
|
712
|
+
const ss = y((e) => {
|
|
713
|
+
const t = e(ts);
|
|
713
714
|
return I(t, (s) => nt(s, "blockId"));
|
|
714
715
|
});
|
|
715
|
-
|
|
716
|
+
ss.debugLabel = "globalBlocksAtom";
|
|
716
717
|
const K = () => {
|
|
717
|
-
const [, e] =
|
|
718
|
+
const [, e] = T(Le);
|
|
718
719
|
return e;
|
|
719
|
-
},
|
|
720
|
-
const e = K(), t =
|
|
720
|
+
}, Zr = () => {
|
|
721
|
+
const e = K(), t = E(es), s = A(
|
|
721
722
|
(o) => {
|
|
722
|
-
const n =
|
|
723
|
+
const n = Qt(o);
|
|
723
724
|
e({ type: "set_page_blocks", payload: n });
|
|
724
725
|
},
|
|
725
726
|
[e]
|
|
726
727
|
);
|
|
727
728
|
return [t, s];
|
|
728
|
-
},
|
|
729
|
+
}, ei = () => {
|
|
729
730
|
const e = K();
|
|
730
731
|
return [A(
|
|
731
732
|
(s) => {
|
|
@@ -733,57 +734,64 @@ const K = () => {
|
|
|
733
734
|
},
|
|
734
735
|
[e]
|
|
735
736
|
)];
|
|
736
|
-
},
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
const
|
|
746
|
-
|
|
737
|
+
}, Ye = (e, t) => {
|
|
738
|
+
if (!e)
|
|
739
|
+
return !0;
|
|
740
|
+
const s = rt(e);
|
|
741
|
+
return s && it(s, "canAcceptBlock") ? s.canAcceptBlock(t) : !1;
|
|
742
|
+
}, ti = (e) => {
|
|
743
|
+
const t = rt(e);
|
|
744
|
+
return t && it(t, "canDuplicate") ? t.canDuplicate() : !0;
|
|
745
|
+
}, si = (e) => {
|
|
746
|
+
const t = rt(e);
|
|
747
|
+
return t && it(t, "canDelete") ? t.canDelete() : !0;
|
|
748
|
+
}, oi = (e, { dragSource: t, dropTarget: s }) => {
|
|
749
|
+
const o = z(t, "data._type", ""), n = z(s, "data._type", "");
|
|
750
|
+
return Ye(n, o);
|
|
751
|
+
}, ut = y([]);
|
|
752
|
+
ut.debugLabel = "selectedBlockIdsAtom";
|
|
753
|
+
const pt = y((e) => {
|
|
754
|
+
const t = e(Q), s = e(ut);
|
|
747
755
|
return V(
|
|
748
|
-
I(t, ({ _id: o }) =>
|
|
756
|
+
I(t, ({ _id: o }) => W(s, o)),
|
|
749
757
|
(o) => ({ ...o })
|
|
750
758
|
);
|
|
751
759
|
});
|
|
752
|
-
|
|
753
|
-
const
|
|
754
|
-
const t = e(
|
|
760
|
+
pt.debugLabel = "selectedBlocksAtom";
|
|
761
|
+
const mt = y((e) => {
|
|
762
|
+
const t = e(pt);
|
|
755
763
|
return t.length === 0 ? null : t.length === 1 ? t[0] : {
|
|
756
764
|
type: "Multiple",
|
|
757
765
|
id: V(t, "id")
|
|
758
766
|
};
|
|
759
767
|
});
|
|
760
|
-
|
|
761
|
-
const
|
|
762
|
-
const t = e(
|
|
763
|
-
return I(e(Q), (o) =>
|
|
768
|
+
mt.debugLabel = "selectedBlockAtom";
|
|
769
|
+
const Oo = (e) => z(e, "parent", null), Lo = y((e) => {
|
|
770
|
+
const t = e(pt), s = V(t, Oo);
|
|
771
|
+
return I(e(Q), (o) => W(s, o._id));
|
|
764
772
|
});
|
|
765
773
|
Lo.debugLabel = "selectedBlocksParentsAtom";
|
|
766
|
-
const
|
|
767
|
-
|
|
768
|
-
const
|
|
769
|
-
|
|
770
|
-
const
|
|
771
|
-
|
|
772
|
-
const
|
|
773
|
-
|
|
774
|
-
const
|
|
775
|
-
flexChild:
|
|
776
|
-
gridChild:
|
|
777
|
-
}),
|
|
774
|
+
const os = y(() => !1);
|
|
775
|
+
os.debugLabel = "selectedBlockFlexChildAtom";
|
|
776
|
+
const as = y(() => !1);
|
|
777
|
+
as.debugLabel = "selectedBlockGridChildAtom";
|
|
778
|
+
const ft = y("");
|
|
779
|
+
ft.debugLabel = "styleStateAtom";
|
|
780
|
+
const ns = Ae("styleBreakpoint", "xs");
|
|
781
|
+
ns.debugLabel = "styleBreakpointAtom";
|
|
782
|
+
const ai = () => ({
|
|
783
|
+
flexChild: E(os),
|
|
784
|
+
gridChild: E(as)
|
|
785
|
+
}), ni = () => E(mt);
|
|
778
786
|
const Ce = () => {
|
|
779
|
-
const [e, t] =
|
|
787
|
+
const [e, t] = T(ut), s = A(
|
|
780
788
|
(o) => {
|
|
781
|
-
t((n) =>
|
|
789
|
+
t((n) => W(n, o) ? Wt(n, o) : [...n, o]);
|
|
782
790
|
},
|
|
783
791
|
[t]
|
|
784
792
|
);
|
|
785
793
|
return [e, t, s];
|
|
786
|
-
},
|
|
794
|
+
}, Rt = (e) => {
|
|
787
795
|
switch (e.type) {
|
|
788
796
|
case "singular":
|
|
789
797
|
return e.uiSchema;
|
|
@@ -791,10 +799,10 @@ const Ce = () => {
|
|
|
791
799
|
const { properties: t } = e, s = {};
|
|
792
800
|
return Object.keys(t).forEach((r) => {
|
|
793
801
|
const i = t[r];
|
|
794
|
-
if (
|
|
802
|
+
if (W(["slot", "styles"], i.type))
|
|
795
803
|
return;
|
|
796
804
|
const u = r;
|
|
797
|
-
s[u] =
|
|
805
|
+
s[u] = Rt(i);
|
|
798
806
|
}), s;
|
|
799
807
|
case "list":
|
|
800
808
|
const { itemProperties: o } = e, n = {
|
|
@@ -802,15 +810,15 @@ const Ce = () => {
|
|
|
802
810
|
};
|
|
803
811
|
return Object.keys(o).forEach((r) => {
|
|
804
812
|
const i = o[r];
|
|
805
|
-
if (
|
|
813
|
+
if (W(["slot", "styles"], i.type))
|
|
806
814
|
return;
|
|
807
815
|
const u = r;
|
|
808
|
-
n.items[u] =
|
|
816
|
+
n.items[u] = Rt(i);
|
|
809
817
|
}), n;
|
|
810
818
|
default:
|
|
811
819
|
return {};
|
|
812
820
|
}
|
|
813
|
-
},
|
|
821
|
+
}, Pt = (e) => {
|
|
814
822
|
switch (e.type) {
|
|
815
823
|
case "singular":
|
|
816
824
|
return e.schema;
|
|
@@ -821,11 +829,11 @@ const Ce = () => {
|
|
|
821
829
|
properties: {}
|
|
822
830
|
};
|
|
823
831
|
return Object.keys(t).forEach((u) => {
|
|
824
|
-
const
|
|
825
|
-
if (
|
|
832
|
+
const m = t[u];
|
|
833
|
+
if (W(["slot", "styles"], m.type))
|
|
826
834
|
return;
|
|
827
835
|
const l = u;
|
|
828
|
-
o.properties[l] =
|
|
836
|
+
o.properties[l] = Pt(m);
|
|
829
837
|
}), o;
|
|
830
838
|
case "list":
|
|
831
839
|
const { itemProperties: n, title: r } = e, i = {
|
|
@@ -837,51 +845,51 @@ const Ce = () => {
|
|
|
837
845
|
}
|
|
838
846
|
};
|
|
839
847
|
return Object.keys(n).forEach((u) => {
|
|
840
|
-
const
|
|
841
|
-
if (
|
|
848
|
+
const m = n[u];
|
|
849
|
+
if (W(["slot", "styles"], m.type))
|
|
842
850
|
return;
|
|
843
851
|
const l = u;
|
|
844
|
-
i.items.properties[l] =
|
|
852
|
+
i.items.properties[l] = Pt(m), fe(i.items, "title", z(m, "itemTitle", `${r} item`));
|
|
845
853
|
}), i;
|
|
846
854
|
default:
|
|
847
855
|
return {};
|
|
848
856
|
}
|
|
849
|
-
},
|
|
857
|
+
}, rs = (e) => {
|
|
850
858
|
const t = {};
|
|
851
859
|
return Object.keys(e).forEach((s) => {
|
|
852
|
-
t[s] =
|
|
860
|
+
t[s] = Vo(e[s]);
|
|
853
861
|
}), t;
|
|
854
|
-
},
|
|
855
|
-
if (
|
|
862
|
+
}, zo = (e) => {
|
|
863
|
+
if (ce(e.default))
|
|
856
864
|
return [];
|
|
857
865
|
const { itemProperties: t } = e;
|
|
858
866
|
return V(e.default, (s) => {
|
|
859
867
|
const o = { ...s };
|
|
860
|
-
return
|
|
861
|
-
nt(t, r) &&
|
|
868
|
+
return Ut(s, (n, r) => {
|
|
869
|
+
nt(t, r) && z(t[r], "i18n", !1) && (o[r] = Kt);
|
|
862
870
|
}), o;
|
|
863
871
|
});
|
|
864
|
-
},
|
|
872
|
+
}, Vo = (e) => {
|
|
865
873
|
switch (e.type) {
|
|
866
874
|
case "styles":
|
|
867
875
|
return e.default;
|
|
868
876
|
case "slot":
|
|
869
|
-
return `${Ke}${
|
|
877
|
+
return `${Ke}${le()}`;
|
|
870
878
|
case "singular":
|
|
871
879
|
const { i18n: t, schema: s } = e;
|
|
872
|
-
return t ?
|
|
880
|
+
return t ? Kt : z(s, "default", "");
|
|
873
881
|
case "model":
|
|
874
|
-
return
|
|
882
|
+
return rs(e.properties);
|
|
875
883
|
case "list":
|
|
876
|
-
return
|
|
884
|
+
return zo(e);
|
|
877
885
|
default:
|
|
878
886
|
return "";
|
|
879
887
|
}
|
|
880
888
|
};
|
|
881
|
-
const
|
|
882
|
-
function
|
|
889
|
+
const $o = () => E(Q);
|
|
890
|
+
function It(e, t, s, o, n) {
|
|
883
891
|
if (s !== null) {
|
|
884
|
-
const
|
|
892
|
+
const m = Be(e, { _parent: t }), l = (m === -1 ? 0 : m) + s;
|
|
885
893
|
return e.splice(l, 0, ...o), e;
|
|
886
894
|
}
|
|
887
895
|
if (!n) {
|
|
@@ -890,28 +898,28 @@ function Pt(e, t, s, o, n) {
|
|
|
890
898
|
}
|
|
891
899
|
let r = Be(e, { _id: t });
|
|
892
900
|
const i = I(e, { _parent: t });
|
|
893
|
-
|
|
901
|
+
ce(i) || (r = Be(e, { _id: Zs(i)._id }));
|
|
894
902
|
const u = r + 1;
|
|
895
903
|
return e.splice(u, 0, ...o), e;
|
|
896
904
|
}
|
|
897
|
-
const
|
|
898
|
-
const e = K(), t =
|
|
905
|
+
const ri = () => {
|
|
906
|
+
const e = K(), t = $o(), [, s] = Ce(), o = A(
|
|
899
907
|
(r, i, u) => {
|
|
900
908
|
var w;
|
|
901
909
|
for (let k = 0; k < r.length; k++) {
|
|
902
910
|
const { _id: D } = r[k];
|
|
903
|
-
r[k]._id =
|
|
904
|
-
const
|
|
905
|
-
for (let
|
|
906
|
-
|
|
911
|
+
r[k]._id = le();
|
|
912
|
+
const G = I(r, { _parent: D });
|
|
913
|
+
for (let F = 0; F < G.length; F++)
|
|
914
|
+
G[F]._parent = r[k]._id;
|
|
907
915
|
}
|
|
908
|
-
const
|
|
916
|
+
const m = ee(r);
|
|
909
917
|
let l;
|
|
910
918
|
i && (l = se(t, { _id: i }), r[0]._parent = i);
|
|
911
|
-
const b = l ? Ye(
|
|
919
|
+
const b = l ? Ye(l._type, m._type) : !0;
|
|
912
920
|
return !b && l && (r[0]._parent = l._parent), e({
|
|
913
921
|
type: "set_blocks",
|
|
914
|
-
payload:
|
|
922
|
+
payload: It(t, i || null, u || null, r, b)
|
|
915
923
|
}), s([(w = ee(r)) == null ? void 0 : w._id]), ee(r);
|
|
916
924
|
},
|
|
917
925
|
[t, e, s]
|
|
@@ -919,57 +927,57 @@ const oi = () => {
|
|
|
919
927
|
return { addCoreBlock: A(
|
|
920
928
|
(r, i, u) => {
|
|
921
929
|
if (nt(r, "blocks")) {
|
|
922
|
-
const
|
|
923
|
-
return o(
|
|
930
|
+
const F = r.blocks;
|
|
931
|
+
return o(F, i, u);
|
|
924
932
|
}
|
|
925
|
-
const
|
|
926
|
-
|
|
927
|
-
if (
|
|
928
|
-
const
|
|
933
|
+
const m = le(), l = rs(r.props), b = [];
|
|
934
|
+
Ut(l, (F, oe) => {
|
|
935
|
+
if (Ht(F, Ke)) {
|
|
936
|
+
const xe = F.replace(Ke, "");
|
|
929
937
|
b.push({
|
|
930
|
-
_id:
|
|
938
|
+
_id: xe,
|
|
931
939
|
_type: "Slot",
|
|
932
|
-
_parent:
|
|
933
|
-
_name: r.props[
|
|
934
|
-
_styles: r.props[
|
|
935
|
-
_emptyStyles: r.props[
|
|
940
|
+
_parent: m,
|
|
941
|
+
_name: r.props[oe].name,
|
|
942
|
+
_styles: r.props[oe].styles,
|
|
943
|
+
_emptyStyles: r.props[oe].emptyStyles
|
|
936
944
|
});
|
|
937
945
|
}
|
|
938
946
|
});
|
|
939
947
|
const w = {
|
|
940
948
|
_type: r.type,
|
|
941
|
-
_id:
|
|
949
|
+
_id: m,
|
|
942
950
|
...l
|
|
943
951
|
};
|
|
944
952
|
let k;
|
|
945
953
|
i && (k = se(t, { _id: i }), w._parent = i);
|
|
946
|
-
const D = k ? Ye(
|
|
954
|
+
const D = k ? Ye(k._type, r.type) : !0;
|
|
947
955
|
!D && k && (w._parent = k._parent);
|
|
948
|
-
const
|
|
956
|
+
const G = [w, ...b];
|
|
949
957
|
return e({
|
|
950
958
|
type: "set_blocks",
|
|
951
|
-
payload:
|
|
959
|
+
payload: It(t, i || null, u || null, G, D)
|
|
952
960
|
}), s([w._id]), w;
|
|
953
961
|
},
|
|
954
962
|
[o, t, e, s]
|
|
955
963
|
), addPredefinedBlock: o };
|
|
956
|
-
},
|
|
964
|
+
}, Mt = {
|
|
957
965
|
xs: 420,
|
|
958
966
|
sm: 620,
|
|
959
967
|
md: 768,
|
|
960
968
|
lg: 1024,
|
|
961
969
|
xl: 1280,
|
|
962
970
|
"2xl": 1536
|
|
963
|
-
},
|
|
964
|
-
function
|
|
971
|
+
}, Dt = ["xs", "sm", "md", "lg", "xl", "2xl"];
|
|
972
|
+
function Fo(e, t) {
|
|
965
973
|
if (t === null)
|
|
966
974
|
return "baseClasses";
|
|
967
975
|
const s = t.mq;
|
|
968
976
|
if (s === "xs" || t.dark || t.mod !== "")
|
|
969
977
|
return "classes";
|
|
970
|
-
let o = "baseClasses", n =
|
|
978
|
+
let o = "baseClasses", n = Dt.indexOf(s);
|
|
971
979
|
for (; n > 0; ) {
|
|
972
|
-
const r =
|
|
980
|
+
const r = Dt[n - 1];
|
|
973
981
|
if (se(e, {
|
|
974
982
|
mq: r,
|
|
975
983
|
property: t.property
|
|
@@ -981,25 +989,25 @@ function $o(e, t) {
|
|
|
981
989
|
}
|
|
982
990
|
return o;
|
|
983
991
|
}
|
|
984
|
-
const
|
|
985
|
-
function
|
|
992
|
+
const Et = [];
|
|
993
|
+
function Go(e = "", t = "", s = []) {
|
|
986
994
|
e = e.trim().replace(/ +/g, "");
|
|
987
995
|
let o = I(
|
|
988
|
-
V(e.split(" "),
|
|
996
|
+
V(e.split(" "), Re),
|
|
989
997
|
(l) => !qe(l)
|
|
990
|
-
), n = I(V(t.split(" "),
|
|
998
|
+
), n = I(V(t.split(" "), Re), (l) => !qe(l));
|
|
991
999
|
n = I(
|
|
992
1000
|
n,
|
|
993
|
-
(l) =>
|
|
1001
|
+
(l) => !W(Et, l.property)
|
|
994
1002
|
);
|
|
995
1003
|
const r = [], i = [];
|
|
996
|
-
|
|
997
|
-
const b =
|
|
1004
|
+
ie(s, (l) => {
|
|
1005
|
+
const b = Re(l), w = se(o, kt(b, ["dark", "mq", "mod", "property"]));
|
|
998
1006
|
if (w && (o = I(
|
|
999
1007
|
o,
|
|
1000
1008
|
(k) => k.fullCls !== (w == null ? void 0 : w.fullCls)
|
|
1001
|
-
)), r.push(b), b.mq === "xs" && !b.dark && b.mod === "" && (n = I(n, (k) => k.property !== b.property)),
|
|
1002
|
-
const k = se(n,
|
|
1009
|
+
)), r.push(b), b.mq === "xs" && !b.dark && b.mod === "" && (n = I(n, (k) => k.property !== b.property)), Fo(o, b) === "baseClasses" && !W(Et, b.property)) {
|
|
1010
|
+
const k = se(n, kt(b, ["property"]));
|
|
1003
1011
|
w && (n = I(
|
|
1004
1012
|
n,
|
|
1005
1013
|
(D) => D.fullCls !== (k == null ? void 0 : k.fullCls)
|
|
@@ -1011,123 +1019,123 @@ function Fo(e = "", t = "", s = []) {
|
|
|
1011
1019
|
}
|
|
1012
1020
|
});
|
|
1013
1021
|
const u = V(
|
|
1014
|
-
|
|
1022
|
+
St([...o, ...r], (l) => Mt[l.mq]),
|
|
1015
1023
|
"fullCls"
|
|
1016
1024
|
).join(" ");
|
|
1017
1025
|
return `${V(
|
|
1018
|
-
|
|
1026
|
+
St([...n, ...i], (l) => Mt[l.mq]),
|
|
1019
1027
|
"fullCls"
|
|
1020
1028
|
).join(" ").trim()},${u.trim()}`.trim().replace(/ +/g, "");
|
|
1021
1029
|
}
|
|
1022
1030
|
const _e = y([]);
|
|
1023
1031
|
_e.debugLabel = "selectedStylingBlocksAtom";
|
|
1024
|
-
const
|
|
1032
|
+
const is = () => T(_e), Wo = (e) => {
|
|
1025
1033
|
const t = e.replace(ge, "").split(",");
|
|
1026
1034
|
return { baseClasses: t[0], classes: t[1] };
|
|
1027
|
-
},
|
|
1035
|
+
}, Uo = y(null, (e, t, { blockIds: s, newClasses: o, dispatch: n }) => {
|
|
1028
1036
|
const r = I(
|
|
1029
|
-
e(
|
|
1037
|
+
e(dt),
|
|
1030
1038
|
(u) => (
|
|
1031
1039
|
// @ts-ignore
|
|
1032
1040
|
s.includes(e(u)._id)
|
|
1033
1041
|
)
|
|
1034
1042
|
), i = ee(e(_e));
|
|
1035
|
-
|
|
1036
|
-
const
|
|
1043
|
+
ie(r, (u) => {
|
|
1044
|
+
const m = e(u), l = z(m, i.prop, `${ge},`), { baseClasses: b, classes: w } = Wo(l);
|
|
1037
1045
|
n({
|
|
1038
1046
|
type: "update_props_realtime",
|
|
1039
1047
|
payload: {
|
|
1040
|
-
ids: [
|
|
1041
|
-
props: { [i.prop]: `${ge}${
|
|
1048
|
+
ids: [m._id],
|
|
1049
|
+
props: { [i.prop]: `${ge}${Go(w, b, o)}` }
|
|
1042
1050
|
}
|
|
1043
1051
|
});
|
|
1044
1052
|
});
|
|
1045
|
-
}),
|
|
1046
|
-
const e = K(), t = de(
|
|
1053
|
+
}), ii = () => {
|
|
1054
|
+
const e = K(), t = de(Uo);
|
|
1047
1055
|
return A(
|
|
1048
1056
|
(s, o, n) => {
|
|
1049
1057
|
t({ blockIds: s, newClasses: o, dispatch: e }), n && setTimeout(() => e({ type: "create_snapshot" }), 500);
|
|
1050
1058
|
},
|
|
1051
1059
|
[e, t]
|
|
1052
1060
|
);
|
|
1053
|
-
},
|
|
1054
|
-
},
|
|
1055
|
-
const e =
|
|
1056
|
-
|
|
1057
|
-
}, o = A(() =>
|
|
1061
|
+
}, Ot = () => {
|
|
1062
|
+
}, Ho = () => {
|
|
1063
|
+
const e = no(), t = E(ss), s = () => {
|
|
1064
|
+
Ot();
|
|
1065
|
+
}, o = A(() => Ot(), []);
|
|
1058
1066
|
return [e, t, s, o];
|
|
1059
|
-
},
|
|
1060
|
-
const [e, t] =
|
|
1067
|
+
}, qo = y(!1), Ko = () => {
|
|
1068
|
+
const [e, t] = T(qo);
|
|
1061
1069
|
return [e, t];
|
|
1062
|
-
},
|
|
1063
|
-
const [e, t] =
|
|
1070
|
+
}, Jo = y(Je), Yo = y(null), Qo = () => {
|
|
1071
|
+
const [e, t] = T(Jo);
|
|
1064
1072
|
return [
|
|
1065
|
-
|
|
1073
|
+
eo(e) ? { ...Je, ...e } : Je,
|
|
1066
1074
|
t
|
|
1067
1075
|
];
|
|
1068
|
-
}, Yo = y(null),
|
|
1069
|
-
function
|
|
1070
|
-
let t =
|
|
1071
|
-
return t = !t.type && t.children && t.children.length ? t.children :
|
|
1076
|
+
}, li = () => T(Yo), Xo = y(null), Zo = () => ({ currentPage: E(Xo) }), ls = new qt({});
|
|
1077
|
+
function ea(e) {
|
|
1078
|
+
let t = ls.convert(e);
|
|
1079
|
+
return t = !t.type && t.children && t.children.length ? t.children : ce(t) ? [] : [t], t;
|
|
1072
1080
|
}
|
|
1073
|
-
const
|
|
1081
|
+
const gt = (e, t) => Y(
|
|
1074
1082
|
e.map((s) => {
|
|
1075
1083
|
if (s = t ? { ...s, parent: t } : { ...s }, s.children) {
|
|
1076
1084
|
const o = [...s.children];
|
|
1077
|
-
return delete s.children, Y([s, ...
|
|
1085
|
+
return delete s.children, Y([s, ...gt(o, s._id)]);
|
|
1078
1086
|
}
|
|
1079
1087
|
return s;
|
|
1080
1088
|
})
|
|
1081
1089
|
);
|
|
1082
|
-
function
|
|
1090
|
+
function bt(e, t = !1) {
|
|
1083
1091
|
for (let s = 0; s < e.length; s++) {
|
|
1084
1092
|
const o = e[s];
|
|
1085
1093
|
o.global && !t ? e[s] = {
|
|
1086
1094
|
type: "GlobalBlock",
|
|
1087
1095
|
blockId: o.blockId,
|
|
1088
|
-
_parent:
|
|
1096
|
+
_parent: z(o, "parent", null),
|
|
1089
1097
|
_id: o._id
|
|
1090
|
-
} : o.children && o.children.length &&
|
|
1098
|
+
} : o.children && o.children.length && bt(o.children);
|
|
1091
1099
|
}
|
|
1092
1100
|
}
|
|
1093
|
-
function
|
|
1101
|
+
function cs(e) {
|
|
1094
1102
|
let t = [], s = I(e, { type: "GlobalBlock" });
|
|
1095
|
-
return s.length > 0 && (s = V(s,
|
|
1096
|
-
t = [...t, ...
|
|
1103
|
+
return s.length > 0 && (s = V(s, ds), ie(s, (o) => {
|
|
1104
|
+
t = [...t, ...ta(o)];
|
|
1097
1105
|
})), t;
|
|
1098
1106
|
}
|
|
1099
|
-
function
|
|
1107
|
+
function ta(e) {
|
|
1100
1108
|
let t = [];
|
|
1101
|
-
const s =
|
|
1109
|
+
const s = z(ee(e), "parent", null);
|
|
1102
1110
|
fe(ee(e), "parent", null);
|
|
1103
|
-
const o = [
|
|
1104
|
-
|
|
1105
|
-
let n =
|
|
1106
|
-
return n = fe(n, "0.parent", s), t = [...t, n, ...
|
|
1111
|
+
const o = [ls.convert(us(e))];
|
|
1112
|
+
bt(o, !0);
|
|
1113
|
+
let n = gt(o, e[0]._id);
|
|
1114
|
+
return n = fe(n, "0.parent", s), t = [...t, n, ...cs(n)], t;
|
|
1107
1115
|
}
|
|
1108
|
-
function
|
|
1116
|
+
function ds(e) {
|
|
1109
1117
|
const t = se(Qe, { _id: e._id });
|
|
1110
1118
|
if (!t)
|
|
1111
1119
|
return [];
|
|
1112
1120
|
const s = [t], o = I(Qe, { _parent: e._id });
|
|
1113
|
-
return o.length ? Y([...s, ...Y(V(o,
|
|
1121
|
+
return o.length ? Y([...s, ...Y(V(o, ds))]) : Y(s);
|
|
1114
1122
|
}
|
|
1115
|
-
const
|
|
1123
|
+
const us = (e) => JSON.parse(JSON.stringify(e));
|
|
1116
1124
|
let Qe = [];
|
|
1117
|
-
function
|
|
1125
|
+
function sa(e) {
|
|
1118
1126
|
Qe = e;
|
|
1119
|
-
const t =
|
|
1120
|
-
|
|
1121
|
-
const s =
|
|
1122
|
-
return
|
|
1127
|
+
const t = ea(us(e));
|
|
1128
|
+
bt(t);
|
|
1129
|
+
const s = gt(t, null), o = cs(s), n = {};
|
|
1130
|
+
return ie(o, (r) => fe(n, ee(r).blockId, r)), [s, n];
|
|
1123
1131
|
}
|
|
1124
|
-
const
|
|
1125
|
-
const [e] =
|
|
1132
|
+
const ps = () => {
|
|
1133
|
+
const [e] = Qo(), { currentPage: t } = Zo(), s = E(Q);
|
|
1126
1134
|
return A(() => {
|
|
1127
1135
|
const o = V(
|
|
1128
1136
|
s,
|
|
1129
1137
|
(i) => at(i, ["expanded", "order", "title", "siblings", "tempClasses"])
|
|
1130
|
-
), [n = [], r = []] =
|
|
1138
|
+
), [n = [], r = []] = sa(o);
|
|
1131
1139
|
return {
|
|
1132
1140
|
currentPage: t,
|
|
1133
1141
|
blocks: n,
|
|
@@ -1135,65 +1143,65 @@ const ds = () => {
|
|
|
1135
1143
|
};
|
|
1136
1144
|
}, [e, t, s]);
|
|
1137
1145
|
}, ve = (e, t = void 0) => {
|
|
1138
|
-
const s =
|
|
1139
|
-
return
|
|
1140
|
-
},
|
|
1141
|
-
|
|
1142
|
-
const ta = y(!1);
|
|
1143
|
-
ta.debugLabel = "advanceStylingOpenAtom";
|
|
1144
|
-
const sa = y("online");
|
|
1145
|
-
sa.debugLabel = "networkModeAtom";
|
|
1146
|
+
const s = E(ct);
|
|
1147
|
+
return z(s, e, t);
|
|
1148
|
+
}, ms = y(!1);
|
|
1149
|
+
ms.debugLabel = "readOnlyModeAtom";
|
|
1146
1150
|
const oa = y(!1);
|
|
1147
|
-
oa.debugLabel = "
|
|
1148
|
-
const aa = y(
|
|
1149
|
-
aa.debugLabel = "
|
|
1150
|
-
const na = y(
|
|
1151
|
-
na.debugLabel = "
|
|
1152
|
-
const ra = y(
|
|
1153
|
-
ra.debugLabel = "
|
|
1154
|
-
const ia = y(
|
|
1155
|
-
ia.debugLabel = "
|
|
1156
|
-
const la = y("
|
|
1157
|
-
la.debugLabel = "
|
|
1158
|
-
const ca = y(
|
|
1159
|
-
ca.debugLabel = "
|
|
1151
|
+
oa.debugLabel = "advanceStylingOpenAtom";
|
|
1152
|
+
const aa = y("online");
|
|
1153
|
+
aa.debugLabel = "networkModeAtom";
|
|
1154
|
+
const na = y(!1);
|
|
1155
|
+
na.debugLabel = "codeEditorOpenAtom";
|
|
1156
|
+
const ra = y(!1);
|
|
1157
|
+
ra.debugLabel = "editLayerNameAtom";
|
|
1158
|
+
const ia = y("");
|
|
1159
|
+
ia.debugLabel = "activeLanguageAtom";
|
|
1160
|
+
const la = y("");
|
|
1161
|
+
la.debugLabel = "primaryLanguageAtom";
|
|
1162
|
+
const ca = y(null);
|
|
1163
|
+
ca.debugLabel = "canvasIframeAtom";
|
|
1164
|
+
const da = y("layers");
|
|
1165
|
+
da.debugLabel = "activePanelAtom";
|
|
1166
|
+
const ua = y("");
|
|
1167
|
+
ua.debugLabel = "showPredefinedBlockCategoryAtom";
|
|
1160
1168
|
const ze = y({ undoCount: 0, redoCount: 0 });
|
|
1161
1169
|
ze.debugLabel = "historyStatesAtom";
|
|
1162
|
-
const
|
|
1163
|
-
|
|
1164
|
-
const
|
|
1165
|
-
|
|
1166
|
-
const
|
|
1167
|
-
|
|
1168
|
-
const
|
|
1169
|
-
|
|
1170
|
-
const
|
|
1171
|
-
|
|
1172
|
-
const
|
|
1173
|
-
const [e, t] =
|
|
1170
|
+
const pa = y("");
|
|
1171
|
+
pa.debugLabel = "inlineEditingActiveAtom";
|
|
1172
|
+
const ma = y(!1);
|
|
1173
|
+
ma.debugLabel = "draggingFlagAtom";
|
|
1174
|
+
const fa = y("");
|
|
1175
|
+
fa.debugLabel = "draggedBlockIdAtom";
|
|
1176
|
+
const fs = y([]);
|
|
1177
|
+
fs.debugLabel = "dataProvidersAtom";
|
|
1178
|
+
const ga = () => T(fs), ht = y("SAVED");
|
|
1179
|
+
ht.debugLabel = "pageSyncStateAtom";
|
|
1180
|
+
const ci = () => {
|
|
1181
|
+
const [e, t] = T(ht), s = ve("onSaveBlocks", async () => {
|
|
1174
1182
|
}), o = ve("onSavePage", async () => {
|
|
1175
1183
|
}), n = ve("onSyncStatusChange", () => {
|
|
1176
|
-
}), r =
|
|
1177
|
-
return { savePage:
|
|
1184
|
+
}), r = ps(), i = de(ze), { undoCount: u, redoCount: m } = xt(), [l] = ga();
|
|
1185
|
+
return { savePage: ro(
|
|
1178
1186
|
async () => {
|
|
1179
1187
|
t("SAVING"), n("SAVING");
|
|
1180
1188
|
const w = r();
|
|
1181
1189
|
return await o({ blocks: w.blocks, providers: l }), setTimeout(() => {
|
|
1182
|
-
i({ undoCount: u, redoCount:
|
|
1190
|
+
i({ undoCount: u, redoCount: m }), t("SAVED"), n("SAVED");
|
|
1183
1191
|
}, 100), !0;
|
|
1184
1192
|
},
|
|
1185
1193
|
[r, t, n, s],
|
|
1186
1194
|
5e3
|
|
1187
1195
|
// save only every 5 seconds
|
|
1188
1196
|
), syncState: e, setSyncState: t };
|
|
1189
|
-
},
|
|
1190
|
-
const e =
|
|
1197
|
+
}, xt = () => {
|
|
1198
|
+
const e = E(Le), [{ undoCount: t, redoCount: s }] = T(ze), o = K(), [n] = Ko(), [, r] = Ce(), [, i] = is(), [u, m] = T(ht), l = ve("onSyncStatusChange", () => {
|
|
1191
1199
|
}), b = A(() => {
|
|
1192
1200
|
o({ type: "create_snapshot" });
|
|
1193
1201
|
}, [o]);
|
|
1194
1202
|
return je(() => {
|
|
1195
|
-
(u === "SAVED" && t !== (e == null ? void 0 : e.past.length) || s !== (e == null ? void 0 : e.future.length)) && (
|
|
1196
|
-
}, [e == null ? void 0 : e.past.length, e == null ? void 0 : e.future.length, t, s, l,
|
|
1203
|
+
(u === "SAVED" && t !== (e == null ? void 0 : e.past.length) || s !== (e == null ? void 0 : e.future.length)) && (m("UNSAVED"), l("UNSAVED"));
|
|
1204
|
+
}, [e == null ? void 0 : e.past.length, e == null ? void 0 : e.future.length, t, s, l, m, u]), {
|
|
1197
1205
|
undoCount: e == null ? void 0 : e.past.length,
|
|
1198
1206
|
redoCount: e == null ? void 0 : e.future.length,
|
|
1199
1207
|
undo: A(() => {
|
|
@@ -1211,155 +1219,155 @@ const ni = () => {
|
|
|
1211
1219
|
},
|
|
1212
1220
|
createSnapshot: b
|
|
1213
1221
|
};
|
|
1214
|
-
},
|
|
1215
|
-
const t = e(
|
|
1216
|
-
return
|
|
1217
|
-
}),
|
|
1218
|
-
const [e, t] =
|
|
1222
|
+
}, ba = () => T(ns), gs = Ae("canvasWidth", 800), bs = y((e) => {
|
|
1223
|
+
const t = e(gs);
|
|
1224
|
+
return so(t).toLowerCase();
|
|
1225
|
+
}), di = () => {
|
|
1226
|
+
const [e, t] = T(gs), s = E(bs), [o, n] = ba();
|
|
1219
1227
|
return je(() => {
|
|
1220
1228
|
o !== "xs" && n(s);
|
|
1221
1229
|
}, [s, o, n]), [e, s, t];
|
|
1222
|
-
},
|
|
1223
|
-
const [e, t] =
|
|
1230
|
+
}, ha = Ae("canvasZoom", 100), ui = () => T(ha), hs = y([]), xa = () => {
|
|
1231
|
+
const [e, t] = T(hs), s = de(yt), o = A(
|
|
1224
1232
|
(n) => {
|
|
1225
1233
|
t(n), s([]);
|
|
1226
1234
|
},
|
|
1227
1235
|
[t, s]
|
|
1228
1236
|
);
|
|
1229
1237
|
return [e, o];
|
|
1230
|
-
},
|
|
1231
|
-
const [e, t] =
|
|
1238
|
+
}, yt = y([]), pi = () => {
|
|
1239
|
+
const [e, t] = T(yt), s = de(hs), o = A(
|
|
1232
1240
|
(n) => {
|
|
1233
1241
|
t(n), s([]);
|
|
1234
1242
|
},
|
|
1235
1243
|
[t, s]
|
|
1236
1244
|
);
|
|
1237
1245
|
return [e, o];
|
|
1238
|
-
},
|
|
1239
|
-
const [e, t] =
|
|
1246
|
+
}, xs = Ae("darkMode", !1), mi = () => {
|
|
1247
|
+
const [e, t] = T(xs);
|
|
1240
1248
|
return [e, t];
|
|
1241
|
-
},
|
|
1242
|
-
const [e, t] =
|
|
1249
|
+
}, ya = y(!1), fi = () => {
|
|
1250
|
+
const [e, t] = T(ya);
|
|
1243
1251
|
return [e, t];
|
|
1244
|
-
},
|
|
1245
|
-
const e = K(), t =
|
|
1252
|
+
}, va = () => {
|
|
1253
|
+
const e = K(), t = E(Q), [, s] = Ce();
|
|
1246
1254
|
return A(
|
|
1247
1255
|
(o, n = null) => {
|
|
1248
1256
|
const r = [];
|
|
1249
|
-
|
|
1250
|
-
const
|
|
1251
|
-
r.push(
|
|
1257
|
+
ie(o, (i) => {
|
|
1258
|
+
const m = Io(t, i, n === i ? null : n);
|
|
1259
|
+
r.push(z(m, "0._id", "")), e({ type: "add_duplicate_blocks", payload: m });
|
|
1252
1260
|
}), s(r), e({ type: "create_snapshot" });
|
|
1253
1261
|
},
|
|
1254
1262
|
[t, s, e]
|
|
1255
1263
|
);
|
|
1256
|
-
},
|
|
1257
|
-
const [e, t] =
|
|
1264
|
+
}, wa = y([]), gi = () => {
|
|
1265
|
+
const [e, t] = T(wa), s = A(
|
|
1258
1266
|
(o) => {
|
|
1259
|
-
t((n) =>
|
|
1267
|
+
t((n) => W(n, o) ? Wt(n, o) : [...n, o]);
|
|
1260
1268
|
},
|
|
1261
1269
|
[t]
|
|
1262
1270
|
);
|
|
1263
1271
|
return [e, t, s];
|
|
1264
|
-
},
|
|
1265
|
-
const e =
|
|
1272
|
+
}, Na = y(""), ka = () => T(Na), bi = () => {
|
|
1273
|
+
const e = E(Q), t = K(), s = ps(), [, , o] = Ho();
|
|
1266
1274
|
return A(
|
|
1267
1275
|
async (n, r) => {
|
|
1268
|
-
const i =
|
|
1276
|
+
const i = le(16), u = V(e, (m) => (m._id === n && (m._globalBlockId = i, m._name = r), m));
|
|
1269
1277
|
t({ type: "set_page_blocks", payload: u }), o();
|
|
1270
1278
|
},
|
|
1271
1279
|
[e, t, s, o]
|
|
1272
1280
|
);
|
|
1273
|
-
},
|
|
1274
|
-
const e =
|
|
1281
|
+
}, hi = () => ({}), Sa = () => {
|
|
1282
|
+
const e = E(Q), t = K();
|
|
1275
1283
|
return A(
|
|
1276
1284
|
(s, o) => {
|
|
1277
|
-
const n = V(e, (r) => (
|
|
1285
|
+
const n = V(e, (r) => (W(s, z(r, "_id")) && fe(r, "_parent", o), r));
|
|
1278
1286
|
t({ type: "set_blocks", payload: n });
|
|
1279
1287
|
},
|
|
1280
1288
|
[e, t]
|
|
1281
1289
|
);
|
|
1282
|
-
},
|
|
1283
|
-
const e =
|
|
1290
|
+
}, xi = () => {
|
|
1291
|
+
const e = E(yt), [t, s] = xa(), o = va(), n = Sa();
|
|
1284
1292
|
return {
|
|
1285
|
-
canPaste:
|
|
1293
|
+
canPaste: Ws(
|
|
1286
1294
|
() => t.length > 0 || e.length > 0,
|
|
1287
1295
|
[e, t]
|
|
1288
1296
|
),
|
|
1289
1297
|
pasteBlocks: A(
|
|
1290
1298
|
(i) => {
|
|
1291
|
-
|
|
1299
|
+
ce(e) ? n(t, i) : o(e, i), s(() => []);
|
|
1292
1300
|
},
|
|
1293
1301
|
[t, e, o, n, s]
|
|
1294
1302
|
)
|
|
1295
1303
|
};
|
|
1296
|
-
},
|
|
1297
|
-
const e =
|
|
1304
|
+
}, ja = y(""), yi = () => {
|
|
1305
|
+
const e = E(ja), t = A(() => {
|
|
1298
1306
|
}, []), s = A(() => {
|
|
1299
1307
|
}, []), o = A(() => {
|
|
1300
1308
|
}, []);
|
|
1301
1309
|
return { currentProject: e, createProject: o, deleteProject: t, updateProject: s };
|
|
1302
|
-
},
|
|
1303
|
-
const s = [], o = I(e, (n) =>
|
|
1304
|
-
return
|
|
1305
|
-
},
|
|
1306
|
-
const e = K(), t =
|
|
1310
|
+
}, ys = (e, t) => {
|
|
1311
|
+
const s = [], o = I(e, (n) => W(t, n._id) || W(t, n._parent) ? (s.push(n._id), !1) : !0);
|
|
1312
|
+
return ce(s) ? o : ys(o, s);
|
|
1313
|
+
}, vi = () => {
|
|
1314
|
+
const e = K(), t = E(Q), [s, o] = Ce();
|
|
1307
1315
|
return A(
|
|
1308
1316
|
(n) => {
|
|
1309
1317
|
var u;
|
|
1310
|
-
const r = ((u = se(t, { _id: n[0] })) == null ? void 0 : u._parent) || null, i =
|
|
1318
|
+
const r = ((u = se(t, { _id: n[0] })) == null ? void 0 : u._parent) || null, i = ys(t, n);
|
|
1311
1319
|
e({ type: "set_blocks", payload: i }), setTimeout(() => o(r ? [r] : []), 200);
|
|
1312
1320
|
},
|
|
1313
1321
|
[t, o, e, s]
|
|
1314
1322
|
);
|
|
1315
|
-
},
|
|
1323
|
+
}, Aa = y(null, (e, t, { blockIds: s, fullClasses: o, dispatch: n }) => {
|
|
1316
1324
|
const r = ee(e(_e)), i = I(
|
|
1317
|
-
e(
|
|
1325
|
+
e(dt),
|
|
1318
1326
|
(u) => (
|
|
1319
1327
|
// @ts-ignore
|
|
1320
1328
|
s.includes(e(u)._id)
|
|
1321
1329
|
)
|
|
1322
1330
|
);
|
|
1323
|
-
|
|
1324
|
-
const
|
|
1325
|
-
let { classes: b, baseClasses: w } =
|
|
1326
|
-
|
|
1331
|
+
ie(i, (u) => {
|
|
1332
|
+
const m = e(u), l = o;
|
|
1333
|
+
let { classes: b, baseClasses: w } = To(z(m, r.prop, "styles:,"));
|
|
1334
|
+
ie(l, (k) => {
|
|
1327
1335
|
const D = new RegExp(`(^| )${k.replace("[", "\\[").replace("]", "\\]")}($| )`, "g");
|
|
1328
1336
|
b = b.replace(D, " ").replace(/ +/g, " ").trim();
|
|
1329
|
-
const
|
|
1330
|
-
|
|
1331
|
-
}),
|
|
1337
|
+
const G = ee(k.split(":"));
|
|
1338
|
+
W(["2xl", "xl", "lg", "md", "sm"], G) && l.push(k.split(":").pop().trim());
|
|
1339
|
+
}), ie(l, (k) => {
|
|
1332
1340
|
const D = new RegExp(`(^| )${k.replace("[", "\\[").replace("]", "\\]")}($| )`, "g");
|
|
1333
1341
|
w = w.replace(D, " ").replace(/ +/g, " ").trim();
|
|
1334
1342
|
}), n({
|
|
1335
1343
|
type: "update_props_realtime",
|
|
1336
1344
|
payload: {
|
|
1337
|
-
ids: [
|
|
1345
|
+
ids: [m._id],
|
|
1338
1346
|
props: {
|
|
1339
1347
|
[r.prop]: `${ge}${w},${b}`
|
|
1340
1348
|
}
|
|
1341
1349
|
}
|
|
1342
1350
|
});
|
|
1343
1351
|
});
|
|
1344
|
-
}),
|
|
1345
|
-
const e = K(), t = de(
|
|
1352
|
+
}), wi = () => {
|
|
1353
|
+
const e = K(), t = de(Aa);
|
|
1346
1354
|
return A(
|
|
1347
1355
|
(s, o) => {
|
|
1348
1356
|
t({ blockIds: s, fullClasses: o, dispatch: e }), setTimeout(() => e({ type: "create_snapshot" }));
|
|
1349
1357
|
},
|
|
1350
1358
|
[e, t]
|
|
1351
1359
|
);
|
|
1352
|
-
},
|
|
1353
|
-
const t = ee(e(_e)), s = e(
|
|
1354
|
-
if (!t || t.blockId !==
|
|
1360
|
+
}, vs = y((e) => {
|
|
1361
|
+
const t = ee(e(_e)), s = e(mt);
|
|
1362
|
+
if (!t || t.blockId !== z(s, "_id", null))
|
|
1355
1363
|
return [];
|
|
1356
|
-
const n =
|
|
1357
|
-
return I(V(n.trim().split(" "),
|
|
1358
|
-
}),
|
|
1359
|
-
const t = e(
|
|
1360
|
-
let r = I(e(
|
|
1361
|
-
return
|
|
1362
|
-
}),
|
|
1364
|
+
const n = z(s, t.prop, `${ge},`).replace(ge, "").split(",").join(" ");
|
|
1365
|
+
return I(V(n.trim().split(" "), Re), (r) => !qe(r));
|
|
1366
|
+
}), Ni = () => E(vs), Lt = { xs: 0, sm: 1, md: 2, lg: 3, xl: 4, "2xl": 5 }, Ca = y((e) => {
|
|
1367
|
+
const t = e(bs), s = e(ft), o = e(xs), n = _a(t);
|
|
1368
|
+
let r = I(e(vs), { mod: s });
|
|
1369
|
+
return Ht(s, "_") || (r = I(r, (i) => n.includes(i.mq))), r = r.sort((i, u) => Lt[i.mq] - Lt[u.mq]), o || (r = I(r, { dark: !1 })), r;
|
|
1370
|
+
}), _a = (e) => {
|
|
1363
1371
|
let t = [];
|
|
1364
1372
|
switch (e) {
|
|
1365
1373
|
case "xs":
|
|
@@ -1385,42 +1393,42 @@ const ni = () => {
|
|
|
1385
1393
|
break;
|
|
1386
1394
|
}
|
|
1387
1395
|
return t;
|
|
1388
|
-
},
|
|
1396
|
+
}, ki = () => E(Ca), Si = () => T(ft), ws = y(null, (e, t, { blockIds: s, props: o, dispatch: n }) => {
|
|
1389
1397
|
n({
|
|
1390
1398
|
type: "update_props_realtime",
|
|
1391
1399
|
payload: { ids: s, props: o }
|
|
1392
1400
|
});
|
|
1393
|
-
}),
|
|
1394
|
-
const { createSnapshot: e } =
|
|
1401
|
+
}), ji = () => {
|
|
1402
|
+
const { createSnapshot: e } = xt(), t = K(), s = de(ws);
|
|
1395
1403
|
return A(
|
|
1396
1404
|
(o, n) => {
|
|
1397
1405
|
s({ blockIds: o, props: n, dispatch: t }), e();
|
|
1398
1406
|
},
|
|
1399
1407
|
[e, t, s]
|
|
1400
1408
|
);
|
|
1401
|
-
},
|
|
1402
|
-
const e = K(), t = de(
|
|
1409
|
+
}, Ai = () => {
|
|
1410
|
+
const e = K(), t = de(ws);
|
|
1403
1411
|
return A(
|
|
1404
1412
|
(s, o) => {
|
|
1405
1413
|
t({ blockIds: s, props: o, dispatch: e });
|
|
1406
1414
|
},
|
|
1407
1415
|
[e, t]
|
|
1408
1416
|
);
|
|
1409
|
-
},
|
|
1417
|
+
}, Ns = {
|
|
1410
1418
|
name: "",
|
|
1411
1419
|
props: {},
|
|
1412
1420
|
modalProps: {},
|
|
1413
1421
|
backdropClose: !0
|
|
1414
|
-
},
|
|
1415
|
-
const [e, t] =
|
|
1422
|
+
}, Ba = y(Ns), Ci = () => {
|
|
1423
|
+
const [e, t] = T(Ba), s = A(
|
|
1416
1424
|
(n, r = {}, i = {}) => {
|
|
1417
1425
|
t({ name: n, props: r, modalProps: i });
|
|
1418
1426
|
},
|
|
1419
1427
|
[t]
|
|
1420
1428
|
), o = A(
|
|
1421
1429
|
(...n) => {
|
|
1422
|
-
|
|
1423
|
-
})(...n), t(
|
|
1430
|
+
z(e, "props.onClose", () => {
|
|
1431
|
+
})(...n), t(Ns);
|
|
1424
1432
|
},
|
|
1425
1433
|
[t, e]
|
|
1426
1434
|
);
|
|
@@ -1429,31 +1437,31 @@ const ni = () => {
|
|
|
1429
1437
|
openModal: s,
|
|
1430
1438
|
closeModal: o
|
|
1431
1439
|
};
|
|
1432
|
-
},
|
|
1433
|
-
const [e, t] =
|
|
1440
|
+
}, _i = () => E(ms), Ta = y(""), Ra = y(null), Bi = () => T(Ta), Ti = () => T(Ra), Pa = Ae("selectedBreakpoints", ["XS", "MD", "XL"]), Ri = () => {
|
|
1441
|
+
const [e, t] = T(Pa);
|
|
1434
1442
|
return [e, t];
|
|
1435
|
-
},
|
|
1436
|
-
const e = de(ze), { clear: t } =
|
|
1443
|
+
}, Pi = () => {
|
|
1444
|
+
const e = de(ze), { clear: t } = xt(), [, s] = Ce(), [, o] = ka(), [, n] = is();
|
|
1437
1445
|
return () => {
|
|
1438
1446
|
s([]), n([]), o(""), t(), e({ undoCount: 0, redoCount: 0 });
|
|
1439
1447
|
};
|
|
1440
|
-
},
|
|
1441
|
-
const [e, t] =
|
|
1448
|
+
}, Ia = y({ en: {} }), Ii = () => {
|
|
1449
|
+
const [e, t] = T(Ia), s = A(
|
|
1442
1450
|
(o, n, r) => {
|
|
1443
1451
|
fe(e, `${o}.${n}`, r), t(e);
|
|
1444
1452
|
},
|
|
1445
1453
|
[e, t]
|
|
1446
1454
|
);
|
|
1447
1455
|
return [e, s];
|
|
1448
|
-
},
|
|
1449
|
-
const [s] =
|
|
1450
|
-
return
|
|
1451
|
-
},
|
|
1452
|
-
const [e, t] = De(!1), [s, o] =
|
|
1456
|
+
}, Mi = (e, t) => {
|
|
1457
|
+
const [s] = T(ct);
|
|
1458
|
+
return z(s, e, t);
|
|
1459
|
+
}, Ma = y([]), Di = () => {
|
|
1460
|
+
const [e, t] = De(!1), [s, o] = T(Ma), n = ve("getUILibraryBlocks", () => []);
|
|
1453
1461
|
return je(() => {
|
|
1454
1462
|
(async () => s.length > 0 || (t(!0), o(await n()), t(!1)))();
|
|
1455
1463
|
}, []), { data: s, isLoading: e };
|
|
1456
|
-
},
|
|
1464
|
+
}, Da = be(
|
|
1457
1465
|
"inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",
|
|
1458
1466
|
{
|
|
1459
1467
|
variants: {
|
|
@@ -1472,9 +1480,9 @@ const ni = () => {
|
|
|
1472
1480
|
size: "default"
|
|
1473
1481
|
}
|
|
1474
1482
|
}
|
|
1475
|
-
),
|
|
1476
|
-
|
|
1477
|
-
const
|
|
1483
|
+
), Ea = p.forwardRef(({ className: e, variant: t, size: s, ...o }, n) => /* @__PURE__ */ a.jsx($t.Root, { ref: n, className: c(Da({ variant: t, size: s, className: e })), ...o }));
|
|
1484
|
+
Ea.displayName = $t.Root.displayName;
|
|
1485
|
+
const Oa = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
1478
1486
|
He.Root,
|
|
1479
1487
|
{
|
|
1480
1488
|
className: c(
|
|
@@ -1493,8 +1501,8 @@ const Da = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
1493
1501
|
)
|
|
1494
1502
|
}
|
|
1495
1503
|
));
|
|
1496
|
-
|
|
1497
|
-
const
|
|
1504
|
+
Oa.displayName = He.Root.displayName;
|
|
1505
|
+
const vt = be(
|
|
1498
1506
|
"inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",
|
|
1499
1507
|
{
|
|
1500
1508
|
variants: {
|
|
@@ -1518,17 +1526,17 @@ const ht = be(
|
|
|
1518
1526
|
size: "default"
|
|
1519
1527
|
}
|
|
1520
1528
|
}
|
|
1521
|
-
),
|
|
1529
|
+
), La = p.forwardRef(
|
|
1522
1530
|
({ className: e, variant: t, size: s, asChild: o = !1, ...n }, r) => {
|
|
1523
|
-
const i = o ?
|
|
1524
|
-
return /* @__PURE__ */ a.jsx(i, { className: c(
|
|
1531
|
+
const i = o ? Us : "button";
|
|
1532
|
+
return /* @__PURE__ */ a.jsx(i, { className: c(vt({ variant: t, size: s, className: e })), ref: r, ...n });
|
|
1525
1533
|
}
|
|
1526
1534
|
);
|
|
1527
|
-
|
|
1528
|
-
const
|
|
1529
|
-
|
|
1530
|
-
const
|
|
1531
|
-
|
|
1535
|
+
La.displayName = "Button";
|
|
1536
|
+
const Ei = me.Root, za = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(me.Item, { ref: s, className: c("border-b", e), ...t }));
|
|
1537
|
+
za.displayName = "AccordionItem";
|
|
1538
|
+
const Va = p.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsx(me.Header, { className: "flex", children: /* @__PURE__ */ a.jsxs(
|
|
1539
|
+
me.Trigger,
|
|
1532
1540
|
{
|
|
1533
1541
|
ref: o,
|
|
1534
1542
|
className: c(
|
|
@@ -1538,13 +1546,13 @@ const Oa = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__
|
|
|
1538
1546
|
...s,
|
|
1539
1547
|
children: [
|
|
1540
1548
|
t,
|
|
1541
|
-
/* @__PURE__ */ a.jsx(
|
|
1549
|
+
/* @__PURE__ */ a.jsx(Hs, { className: "h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200" })
|
|
1542
1550
|
]
|
|
1543
1551
|
}
|
|
1544
1552
|
) }));
|
|
1545
|
-
|
|
1546
|
-
const
|
|
1547
|
-
|
|
1553
|
+
Va.displayName = me.Trigger.displayName;
|
|
1554
|
+
const $a = p.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsx(
|
|
1555
|
+
me.Content,
|
|
1548
1556
|
{
|
|
1549
1557
|
ref: o,
|
|
1550
1558
|
className: c(
|
|
@@ -1555,8 +1563,8 @@ const za = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__
|
|
|
1555
1563
|
children: /* @__PURE__ */ a.jsx("div", { className: "pb-4 pt-0", children: t })
|
|
1556
1564
|
}
|
|
1557
1565
|
));
|
|
1558
|
-
|
|
1559
|
-
const
|
|
1566
|
+
$a.displayName = me.Content.displayName;
|
|
1567
|
+
const Fa = be(
|
|
1560
1568
|
"relative w-full rounded-lg border px-4 py-3 text-sm [&:has(svg)]:pl-11 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",
|
|
1561
1569
|
{
|
|
1562
1570
|
variants: {
|
|
@@ -1569,17 +1577,17 @@ const Va = be(
|
|
|
1569
1577
|
variant: "default"
|
|
1570
1578
|
}
|
|
1571
1579
|
}
|
|
1572
|
-
),
|
|
1573
|
-
|
|
1574
|
-
const
|
|
1580
|
+
), Ga = p.forwardRef(({ className: e, variant: t, ...s }, o) => /* @__PURE__ */ a.jsx("div", { ref: o, role: "alert", className: c(Fa({ variant: t }), e), ...s }));
|
|
1581
|
+
Ga.displayName = "Alert";
|
|
1582
|
+
const Wa = p.forwardRef(
|
|
1575
1583
|
({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx("h5", { ref: s, className: c("mb-1 font-medium leading-none tracking-tight", e), ...t })
|
|
1576
1584
|
);
|
|
1577
|
-
|
|
1578
|
-
const
|
|
1585
|
+
Wa.displayName = "AlertTitle";
|
|
1586
|
+
const Ua = p.forwardRef(
|
|
1579
1587
|
({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx("div", { ref: s, className: c("text-sm [&_p]:leading-relaxed", e), ...t })
|
|
1580
1588
|
);
|
|
1581
|
-
|
|
1582
|
-
const
|
|
1589
|
+
Ua.displayName = "AlertDescription";
|
|
1590
|
+
const Ha = be(
|
|
1583
1591
|
"inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
|
|
1584
1592
|
{
|
|
1585
1593
|
variants: {
|
|
@@ -1594,10 +1602,10 @@ const Wa = be(
|
|
|
1594
1602
|
variant: "default"
|
|
1595
1603
|
}
|
|
1596
1604
|
}
|
|
1597
|
-
),
|
|
1598
|
-
|
|
1599
|
-
const
|
|
1600
|
-
|
|
1605
|
+
), Oi = ({ className: e, variant: t, ...s }) => /* @__PURE__ */ a.jsx("div", { className: c(Ha({ variant: t }), e), ...s }), Li = $.Root, zi = $.Trigger, ks = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx($.Portal, { className: c(e), ...t });
|
|
1606
|
+
ks.displayName = $.Portal.displayName;
|
|
1607
|
+
const Ss = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
1608
|
+
$.Overlay,
|
|
1601
1609
|
{
|
|
1602
1610
|
className: c(
|
|
1603
1611
|
"fixed inset-0 z-50 bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
@@ -1607,11 +1615,11 @@ const Ns = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
1607
1615
|
ref: s
|
|
1608
1616
|
}
|
|
1609
1617
|
));
|
|
1610
|
-
|
|
1611
|
-
const
|
|
1612
|
-
/* @__PURE__ */ a.jsx(
|
|
1618
|
+
Ss.displayName = $.Overlay.displayName;
|
|
1619
|
+
const qa = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsxs(ks, { children: [
|
|
1620
|
+
/* @__PURE__ */ a.jsx(Ss, {}),
|
|
1613
1621
|
/* @__PURE__ */ a.jsx(
|
|
1614
|
-
|
|
1622
|
+
$.Content,
|
|
1615
1623
|
{
|
|
1616
1624
|
ref: s,
|
|
1617
1625
|
className: c(
|
|
@@ -1622,29 +1630,29 @@ const Ua = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsxs(ws
|
|
|
1622
1630
|
}
|
|
1623
1631
|
)
|
|
1624
1632
|
] }));
|
|
1625
|
-
|
|
1626
|
-
const
|
|
1627
|
-
|
|
1628
|
-
const
|
|
1629
|
-
|
|
1630
|
-
const
|
|
1631
|
-
|
|
1632
|
-
const
|
|
1633
|
-
|
|
1634
|
-
const
|
|
1635
|
-
|
|
1636
|
-
const
|
|
1637
|
-
|
|
1633
|
+
qa.displayName = $.Content.displayName;
|
|
1634
|
+
const Ka = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: c("flex flex-col space-y-2 text-center sm:text-left", e), ...t });
|
|
1635
|
+
Ka.displayName = "AlertDialogHeader";
|
|
1636
|
+
const Ja = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: c("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", e), ...t });
|
|
1637
|
+
Ja.displayName = "AlertDialogFooter";
|
|
1638
|
+
const Ya = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx($.Title, { ref: s, className: c("text-lg font-semibold", e), ...t }));
|
|
1639
|
+
Ya.displayName = $.Title.displayName;
|
|
1640
|
+
const Qa = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx($.Description, { ref: s, className: c("text-sm text-muted-foreground", e), ...t }));
|
|
1641
|
+
Qa.displayName = $.Description.displayName;
|
|
1642
|
+
const Xa = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx($.Action, { ref: s, className: c(vt(), e), ...t }));
|
|
1643
|
+
Xa.displayName = $.Action.displayName;
|
|
1644
|
+
const Za = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
1645
|
+
$.Cancel,
|
|
1638
1646
|
{
|
|
1639
1647
|
ref: s,
|
|
1640
|
-
className: c(
|
|
1648
|
+
className: c(vt({ variant: "outline" }), "mt-2 sm:mt-0", e),
|
|
1641
1649
|
...t
|
|
1642
1650
|
}
|
|
1643
1651
|
));
|
|
1644
|
-
|
|
1645
|
-
const
|
|
1646
|
-
|
|
1647
|
-
const
|
|
1652
|
+
Za.displayName = $.Cancel.displayName;
|
|
1653
|
+
const js = B.Root, en = B.Trigger, As = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx(B.Portal, { className: c(e), ...t });
|
|
1654
|
+
As.displayName = B.Portal.displayName;
|
|
1655
|
+
const Cs = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
1648
1656
|
B.Overlay,
|
|
1649
1657
|
{
|
|
1650
1658
|
ref: s,
|
|
@@ -1655,9 +1663,9 @@ const js = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
1655
1663
|
...t
|
|
1656
1664
|
}
|
|
1657
1665
|
));
|
|
1658
|
-
|
|
1659
|
-
const
|
|
1660
|
-
/* @__PURE__ */ a.jsx(
|
|
1666
|
+
Cs.displayName = B.Overlay.displayName;
|
|
1667
|
+
const wt = p.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(As, { children: [
|
|
1668
|
+
/* @__PURE__ */ a.jsx(Cs, {}),
|
|
1661
1669
|
/* @__PURE__ */ a.jsxs(
|
|
1662
1670
|
B.Content,
|
|
1663
1671
|
{
|
|
@@ -1677,12 +1685,12 @@ const yt = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__
|
|
|
1677
1685
|
}
|
|
1678
1686
|
)
|
|
1679
1687
|
] }));
|
|
1680
|
-
|
|
1681
|
-
const
|
|
1682
|
-
|
|
1683
|
-
const
|
|
1684
|
-
|
|
1685
|
-
const
|
|
1688
|
+
wt.displayName = B.Content.displayName;
|
|
1689
|
+
const tn = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: c("flex flex-col space-y-1.5 text-center sm:text-left", e), ...t });
|
|
1690
|
+
tn.displayName = "DialogHeader";
|
|
1691
|
+
const sn = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: c("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", e), ...t });
|
|
1692
|
+
sn.displayName = "DialogFooter";
|
|
1693
|
+
const on = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
1686
1694
|
B.Title,
|
|
1687
1695
|
{
|
|
1688
1696
|
ref: s,
|
|
@@ -1690,32 +1698,32 @@ const tn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
1690
1698
|
...t
|
|
1691
1699
|
}
|
|
1692
1700
|
));
|
|
1693
|
-
|
|
1694
|
-
const
|
|
1695
|
-
|
|
1696
|
-
const
|
|
1697
|
-
|
|
1698
|
-
const
|
|
1701
|
+
on.displayName = B.Title.displayName;
|
|
1702
|
+
const an = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(B.Description, { ref: s, className: c("text-sm text-muted-foreground", e), ...t }));
|
|
1703
|
+
an.displayName = B.Description.displayName;
|
|
1704
|
+
const nn = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx("div", { ref: s, className: c("rounded-xl border bg-card text-card-foreground shadow", e), ...t }));
|
|
1705
|
+
nn.displayName = "Card";
|
|
1706
|
+
const rn = p.forwardRef(
|
|
1699
1707
|
({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx("div", { ref: s, className: c("flex flex-col space-y-1.5 p-6", e), ...t })
|
|
1700
1708
|
);
|
|
1701
|
-
|
|
1702
|
-
const
|
|
1709
|
+
rn.displayName = "CardHeader";
|
|
1710
|
+
const ln = p.forwardRef(
|
|
1703
1711
|
({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx("h3", { ref: s, className: c("font-semibold leading-none tracking-tight", e), ...t })
|
|
1704
1712
|
);
|
|
1705
|
-
|
|
1706
|
-
const
|
|
1713
|
+
ln.displayName = "CardTitle";
|
|
1714
|
+
const cn = p.forwardRef(
|
|
1707
1715
|
({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx("p", { ref: s, className: c("text-sm text-muted-foreground", e), ...t })
|
|
1708
1716
|
);
|
|
1709
|
-
|
|
1710
|
-
const
|
|
1717
|
+
cn.displayName = "CardDescription";
|
|
1718
|
+
const dn = p.forwardRef(
|
|
1711
1719
|
({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx("div", { ref: s, className: c("p-6 pt-0", e), ...t })
|
|
1712
1720
|
);
|
|
1713
|
-
|
|
1714
|
-
const
|
|
1721
|
+
dn.displayName = "CardContent";
|
|
1722
|
+
const un = p.forwardRef(
|
|
1715
1723
|
({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx("div", { ref: s, className: c(" flex items-center p-6 pt-0", e), ...t })
|
|
1716
1724
|
);
|
|
1717
|
-
|
|
1718
|
-
const
|
|
1725
|
+
un.displayName = "CardFooter";
|
|
1726
|
+
const pn = p.forwardRef(({ className: e, type: t, ...s }, o) => /* @__PURE__ */ a.jsx(
|
|
1719
1727
|
"input",
|
|
1720
1728
|
{
|
|
1721
1729
|
type: t,
|
|
@@ -1727,10 +1735,10 @@ const dn = m.forwardRef(({ className: e, type: t, ...s }, o) => /* @__PURE__ */
|
|
|
1727
1735
|
...s
|
|
1728
1736
|
}
|
|
1729
1737
|
));
|
|
1730
|
-
|
|
1731
|
-
const
|
|
1732
|
-
|
|
1733
|
-
const
|
|
1738
|
+
pn.displayName = "Input";
|
|
1739
|
+
const mn = be("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"), fn = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(Ft.Root, { ref: s, className: c(mn(), e), ...t }));
|
|
1740
|
+
fn.displayName = Ft.Root.displayName;
|
|
1741
|
+
const gn = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
1734
1742
|
"textarea",
|
|
1735
1743
|
{
|
|
1736
1744
|
className: c(
|
|
@@ -1741,15 +1749,15 @@ const pn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
1741
1749
|
...t
|
|
1742
1750
|
}
|
|
1743
1751
|
));
|
|
1744
|
-
|
|
1745
|
-
const
|
|
1746
|
-
/* @__PURE__ */ a.jsx(
|
|
1747
|
-
/* @__PURE__ */ a.jsx(
|
|
1748
|
-
/* @__PURE__ */ a.jsx(
|
|
1752
|
+
gn.displayName = "Textarea";
|
|
1753
|
+
const bn = p.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(pe.Root, { ref: o, className: c("relative overflow-hidden", e), ...s, children: [
|
|
1754
|
+
/* @__PURE__ */ a.jsx(pe.Viewport, { className: "h-full w-full rounded-[inherit]", children: t }),
|
|
1755
|
+
/* @__PURE__ */ a.jsx(_s, {}),
|
|
1756
|
+
/* @__PURE__ */ a.jsx(pe.Corner, {})
|
|
1749
1757
|
] }));
|
|
1750
|
-
|
|
1751
|
-
const
|
|
1752
|
-
|
|
1758
|
+
bn.displayName = pe.Root.displayName;
|
|
1759
|
+
const _s = p.forwardRef(({ className: e, orientation: t = "vertical", ...s }, o) => /* @__PURE__ */ a.jsx(
|
|
1760
|
+
pe.ScrollAreaScrollbar,
|
|
1753
1761
|
{
|
|
1754
1762
|
ref: o,
|
|
1755
1763
|
orientation: t,
|
|
@@ -1760,12 +1768,12 @@ const As = m.forwardRef(({ className: e, orientation: t = "vertical", ...s }, o)
|
|
|
1760
1768
|
e
|
|
1761
1769
|
),
|
|
1762
1770
|
...s,
|
|
1763
|
-
children: /* @__PURE__ */ a.jsx(
|
|
1771
|
+
children: /* @__PURE__ */ a.jsx(pe.ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-border" })
|
|
1764
1772
|
}
|
|
1765
1773
|
));
|
|
1766
|
-
|
|
1767
|
-
const
|
|
1768
|
-
|
|
1774
|
+
_s.displayName = pe.ScrollAreaScrollbar.displayName;
|
|
1775
|
+
const hn = he.Root, Bs = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
1776
|
+
he.List,
|
|
1769
1777
|
{
|
|
1770
1778
|
ref: s,
|
|
1771
1779
|
className: c(
|
|
@@ -1775,9 +1783,9 @@ const gn = xe.Root, Cs = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE_
|
|
|
1775
1783
|
...t
|
|
1776
1784
|
}
|
|
1777
1785
|
));
|
|
1778
|
-
|
|
1779
|
-
const Xe =
|
|
1780
|
-
|
|
1786
|
+
Bs.displayName = he.List.displayName;
|
|
1787
|
+
const Xe = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
1788
|
+
he.Trigger,
|
|
1781
1789
|
{
|
|
1782
1790
|
ref: s,
|
|
1783
1791
|
className: c(
|
|
@@ -1787,9 +1795,9 @@ const Xe = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
1787
1795
|
...t
|
|
1788
1796
|
}
|
|
1789
1797
|
));
|
|
1790
|
-
Xe.displayName =
|
|
1791
|
-
const Ze =
|
|
1792
|
-
|
|
1798
|
+
Xe.displayName = he.Trigger.displayName;
|
|
1799
|
+
const Ze = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
1800
|
+
he.Content,
|
|
1793
1801
|
{
|
|
1794
1802
|
ref: s,
|
|
1795
1803
|
className: c(
|
|
@@ -1799,8 +1807,8 @@ const Ze = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
1799
1807
|
...t
|
|
1800
1808
|
}
|
|
1801
1809
|
));
|
|
1802
|
-
Ze.displayName =
|
|
1803
|
-
const
|
|
1810
|
+
Ze.displayName = he.Content.displayName;
|
|
1811
|
+
const Vi = we.Portal, $i = we.Provider, Fi = we.Root, Gi = we.Trigger, xn = p.forwardRef(({ className: e, sideOffset: t = 4, ...s }, o) => /* @__PURE__ */ a.jsx(
|
|
1804
1812
|
we.Content,
|
|
1805
1813
|
{
|
|
1806
1814
|
ref: o,
|
|
@@ -1812,8 +1820,8 @@ const Ei = we.Portal, Li = we.Provider, Oi = we.Root, zi = we.Trigger, bn = m.fo
|
|
|
1812
1820
|
...s
|
|
1813
1821
|
}
|
|
1814
1822
|
));
|
|
1815
|
-
|
|
1816
|
-
const
|
|
1823
|
+
xn.displayName = we.Content.displayName;
|
|
1824
|
+
const Wi = Se.Root, Ui = Se.Trigger, yn = p.forwardRef(({ className: e, align: t = "center", sideOffset: s = 4, ...o }, n) => /* @__PURE__ */ a.jsx(Se.Portal, { children: /* @__PURE__ */ a.jsx(
|
|
1817
1825
|
Se.Content,
|
|
1818
1826
|
{
|
|
1819
1827
|
ref: n,
|
|
@@ -1826,8 +1834,8 @@ const Vi = Se.Root, $i = Se.Trigger, xn = m.forwardRef(({ className: e, align: t
|
|
|
1826
1834
|
...o
|
|
1827
1835
|
}
|
|
1828
1836
|
) }));
|
|
1829
|
-
|
|
1830
|
-
const
|
|
1837
|
+
yn.displayName = Se.Content.displayName;
|
|
1838
|
+
const Hi = C.Menu, qi = C.Group, Ki = C.Portal, Ji = C.Sub, Yi = C.RadioGroup, vn = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
1831
1839
|
C.Root,
|
|
1832
1840
|
{
|
|
1833
1841
|
ref: s,
|
|
@@ -1835,8 +1843,8 @@ const Fi = C.Menu, Gi = C.Group, Wi = C.Portal, Ui = C.Sub, Hi = C.RadioGroup, h
|
|
|
1835
1843
|
...t
|
|
1836
1844
|
}
|
|
1837
1845
|
));
|
|
1838
|
-
|
|
1839
|
-
const
|
|
1846
|
+
vn.displayName = C.Root.displayName;
|
|
1847
|
+
const wn = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
1840
1848
|
C.Trigger,
|
|
1841
1849
|
{
|
|
1842
1850
|
ref: s,
|
|
@@ -1847,8 +1855,8 @@ const yn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
1847
1855
|
...t
|
|
1848
1856
|
}
|
|
1849
1857
|
));
|
|
1850
|
-
|
|
1851
|
-
const
|
|
1858
|
+
wn.displayName = C.Trigger.displayName;
|
|
1859
|
+
const Nn = p.forwardRef(({ className: e, inset: t, children: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
|
|
1852
1860
|
C.SubTrigger,
|
|
1853
1861
|
{
|
|
1854
1862
|
ref: n,
|
|
@@ -1864,8 +1872,8 @@ const vn = m.forwardRef(({ className: e, inset: t, children: s, ...o }, n) => /*
|
|
|
1864
1872
|
]
|
|
1865
1873
|
}
|
|
1866
1874
|
));
|
|
1867
|
-
|
|
1868
|
-
const
|
|
1875
|
+
Nn.displayName = C.SubTrigger.displayName;
|
|
1876
|
+
const kn = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
1869
1877
|
C.SubContent,
|
|
1870
1878
|
{
|
|
1871
1879
|
ref: s,
|
|
@@ -1876,8 +1884,8 @@ const wn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
1876
1884
|
...t
|
|
1877
1885
|
}
|
|
1878
1886
|
));
|
|
1879
|
-
|
|
1880
|
-
const
|
|
1887
|
+
kn.displayName = C.SubContent.displayName;
|
|
1888
|
+
const Sn = p.forwardRef(({ className: e, align: t = "start", alignOffset: s = -4, sideOffset: o = 8, ...n }, r) => /* @__PURE__ */ a.jsx(C.Portal, { children: /* @__PURE__ */ a.jsx(
|
|
1881
1889
|
C.Content,
|
|
1882
1890
|
{
|
|
1883
1891
|
ref: r,
|
|
@@ -1891,8 +1899,8 @@ const Nn = m.forwardRef(({ className: e, align: t = "start", alignOffset: s = -4
|
|
|
1891
1899
|
...n
|
|
1892
1900
|
}
|
|
1893
1901
|
) }));
|
|
1894
|
-
|
|
1895
|
-
const
|
|
1902
|
+
Sn.displayName = C.Content.displayName;
|
|
1903
|
+
const jn = p.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
|
|
1896
1904
|
C.Item,
|
|
1897
1905
|
{
|
|
1898
1906
|
ref: o,
|
|
@@ -1904,8 +1912,8 @@ const kn = m.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */
|
|
|
1904
1912
|
...s
|
|
1905
1913
|
}
|
|
1906
1914
|
));
|
|
1907
|
-
|
|
1908
|
-
const
|
|
1915
|
+
jn.displayName = C.Item.displayName;
|
|
1916
|
+
const An = p.forwardRef(({ className: e, children: t, checked: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
|
|
1909
1917
|
C.CheckboxItem,
|
|
1910
1918
|
{
|
|
1911
1919
|
ref: n,
|
|
@@ -1921,8 +1929,8 @@ const Sn = m.forwardRef(({ className: e, children: t, checked: s, ...o }, n) =>
|
|
|
1921
1929
|
]
|
|
1922
1930
|
}
|
|
1923
1931
|
));
|
|
1924
|
-
|
|
1925
|
-
const
|
|
1932
|
+
An.displayName = C.CheckboxItem.displayName;
|
|
1933
|
+
const Cn = p.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(
|
|
1926
1934
|
C.RadioItem,
|
|
1927
1935
|
{
|
|
1928
1936
|
ref: o,
|
|
@@ -1937,8 +1945,8 @@ const jn = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__
|
|
|
1937
1945
|
]
|
|
1938
1946
|
}
|
|
1939
1947
|
));
|
|
1940
|
-
|
|
1941
|
-
const
|
|
1948
|
+
Cn.displayName = C.RadioItem.displayName;
|
|
1949
|
+
const _n = p.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
|
|
1942
1950
|
C.Label,
|
|
1943
1951
|
{
|
|
1944
1952
|
ref: o,
|
|
@@ -1946,13 +1954,13 @@ const An = m.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */
|
|
|
1946
1954
|
...s
|
|
1947
1955
|
}
|
|
1948
1956
|
));
|
|
1949
|
-
|
|
1950
|
-
const
|
|
1951
|
-
|
|
1952
|
-
const
|
|
1953
|
-
|
|
1954
|
-
const
|
|
1955
|
-
|
|
1957
|
+
_n.displayName = C.Label.displayName;
|
|
1958
|
+
const Bn = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(C.Separator, { ref: s, className: c("-mx-1 my-1 h-px bg-muted", e), ...t }));
|
|
1959
|
+
Bn.displayName = C.Separator.displayName;
|
|
1960
|
+
const Tn = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("span", { className: c("ml-auto text-xs tracking-widest text-muted-foreground", e), ...t });
|
|
1961
|
+
Tn.displayname = "MenubarShortcut";
|
|
1962
|
+
const Qi = Oe.Root, Xi = Oe.Trigger, Rn = p.forwardRef(({ className: e, align: t = "center", sideOffset: s = 4, ...o }, n) => /* @__PURE__ */ a.jsx(
|
|
1963
|
+
Oe.Content,
|
|
1956
1964
|
{
|
|
1957
1965
|
ref: n,
|
|
1958
1966
|
align: t,
|
|
@@ -1964,8 +1972,8 @@ const qi = Le.Root, Ki = Le.Trigger, Bn = m.forwardRef(({ className: e, align: t
|
|
|
1964
1972
|
...o
|
|
1965
1973
|
}
|
|
1966
1974
|
));
|
|
1967
|
-
|
|
1968
|
-
const
|
|
1975
|
+
Rn.displayName = Oe.Content.displayName;
|
|
1976
|
+
const Zi = O.Root, el = O.Group, tl = O.Value, Pn = p.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(
|
|
1969
1977
|
O.Trigger,
|
|
1970
1978
|
{
|
|
1971
1979
|
ref: o,
|
|
@@ -1976,12 +1984,12 @@ const Ji = O.Root, Yi = O.Group, Qi = O.Value, Rn = m.forwardRef(({ className: e
|
|
|
1976
1984
|
...s,
|
|
1977
1985
|
children: [
|
|
1978
1986
|
t,
|
|
1979
|
-
/* @__PURE__ */ a.jsx(O.Icon, { asChild: !0, children: /* @__PURE__ */ a.jsx(
|
|
1987
|
+
/* @__PURE__ */ a.jsx(O.Icon, { asChild: !0, children: /* @__PURE__ */ a.jsx(qs, { className: "h-4 w-4 opacity-50" }) })
|
|
1980
1988
|
]
|
|
1981
1989
|
}
|
|
1982
1990
|
));
|
|
1983
|
-
|
|
1984
|
-
const
|
|
1991
|
+
Pn.displayName = O.Trigger.displayName;
|
|
1992
|
+
const In = p.forwardRef(({ className: e, children: t, position: s = "popper", ...o }, n) => /* @__PURE__ */ a.jsx(O.Portal, { children: /* @__PURE__ */ a.jsx(
|
|
1985
1993
|
O.Content,
|
|
1986
1994
|
{
|
|
1987
1995
|
ref: n,
|
|
@@ -2004,10 +2012,10 @@ const Pn = m.forwardRef(({ className: e, children: t, position: s = "popper", ..
|
|
|
2004
2012
|
)
|
|
2005
2013
|
}
|
|
2006
2014
|
) }));
|
|
2007
|
-
|
|
2008
|
-
const
|
|
2009
|
-
|
|
2010
|
-
const
|
|
2015
|
+
In.displayName = O.Content.displayName;
|
|
2016
|
+
const Mn = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(O.Label, { ref: s, className: c("px-2 py-1.5 text-sm font-semibold", e), ...t }));
|
|
2017
|
+
Mn.displayName = O.Label.displayName;
|
|
2018
|
+
const Dn = p.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(
|
|
2011
2019
|
O.Item,
|
|
2012
2020
|
{
|
|
2013
2021
|
ref: o,
|
|
@@ -2022,12 +2030,12 @@ const In = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__
|
|
|
2022
2030
|
]
|
|
2023
2031
|
}
|
|
2024
2032
|
));
|
|
2025
|
-
|
|
2026
|
-
const
|
|
2027
|
-
|
|
2028
|
-
const
|
|
2029
|
-
|
|
2030
|
-
const
|
|
2033
|
+
Dn.displayName = O.Item.displayName;
|
|
2034
|
+
const En = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(O.Separator, { ref: s, className: c("-mx-1 my-1 h-px bg-muted", e), ...t }));
|
|
2035
|
+
En.displayName = O.Separator.displayName;
|
|
2036
|
+
const sl = B.Root, ol = B.Trigger, al = B.Close, Ts = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx(B.Portal, { className: c(e), ...t });
|
|
2037
|
+
Ts.displayName = B.Portal.displayName;
|
|
2038
|
+
const Rs = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
2031
2039
|
B.Overlay,
|
|
2032
2040
|
{
|
|
2033
2041
|
className: c(
|
|
@@ -2038,8 +2046,8 @@ const Bs = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
2038
2046
|
ref: s
|
|
2039
2047
|
}
|
|
2040
2048
|
));
|
|
2041
|
-
|
|
2042
|
-
const
|
|
2049
|
+
Rs.displayName = B.Overlay.displayName;
|
|
2050
|
+
const On = be(
|
|
2043
2051
|
"fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
|
|
2044
2052
|
{
|
|
2045
2053
|
variants: {
|
|
@@ -2054,10 +2062,10 @@ const Dn = be(
|
|
|
2054
2062
|
side: "right"
|
|
2055
2063
|
}
|
|
2056
2064
|
}
|
|
2057
|
-
),
|
|
2058
|
-
({ side: e = "right", className: t, children: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
|
|
2059
|
-
/* @__PURE__ */ a.jsx(
|
|
2060
|
-
/* @__PURE__ */ a.jsxs(B.Content, { ref: n, className: c(
|
|
2065
|
+
), Ln = p.forwardRef(
|
|
2066
|
+
({ side: e = "right", className: t, children: s, ...o }, n) => /* @__PURE__ */ a.jsxs(Ts, { children: [
|
|
2067
|
+
/* @__PURE__ */ a.jsx(Rs, {}),
|
|
2068
|
+
/* @__PURE__ */ a.jsxs(B.Content, { ref: n, className: c(On({ side: e }), t), ...o, children: [
|
|
2061
2069
|
s,
|
|
2062
2070
|
/* @__PURE__ */ a.jsxs(B.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary", children: [
|
|
2063
2071
|
/* @__PURE__ */ a.jsx(tt, { className: "h-4 w-4" }),
|
|
@@ -2066,17 +2074,17 @@ const Dn = be(
|
|
|
2066
2074
|
] })
|
|
2067
2075
|
] })
|
|
2068
2076
|
);
|
|
2069
|
-
|
|
2070
|
-
const
|
|
2071
|
-
|
|
2072
|
-
const
|
|
2073
|
-
|
|
2074
|
-
const
|
|
2075
|
-
|
|
2076
|
-
const
|
|
2077
|
-
|
|
2078
|
-
const
|
|
2079
|
-
|
|
2077
|
+
Ln.displayName = B.Content.displayName;
|
|
2078
|
+
const zn = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: c("flex flex-col space-y-2 text-center sm:text-left", e), ...t });
|
|
2079
|
+
zn.displayName = "SheetHeader";
|
|
2080
|
+
const Vn = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: c("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", e), ...t });
|
|
2081
|
+
Vn.displayName = "SheetFooter";
|
|
2082
|
+
const $n = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(B.Title, { ref: s, className: c("text-lg font-semibold text-foreground", e), ...t }));
|
|
2083
|
+
$n.displayName = B.Title.displayName;
|
|
2084
|
+
const Fn = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(B.Description, { ref: s, className: c("text-sm text-muted-foreground", e), ...t }));
|
|
2085
|
+
Fn.displayName = B.Description.displayName;
|
|
2086
|
+
const nl = R.Root, rl = R.Trigger, il = R.Group, ll = R.Portal, cl = R.Sub, dl = R.RadioGroup, Gn = p.forwardRef(({ className: e, inset: t, children: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
|
|
2087
|
+
R.SubTrigger,
|
|
2080
2088
|
{
|
|
2081
2089
|
ref: n,
|
|
2082
2090
|
className: c(
|
|
@@ -2091,9 +2099,9 @@ const tl = P.Root, sl = P.Trigger, ol = P.Group, al = P.Portal, nl = P.Sub, rl =
|
|
|
2091
2099
|
]
|
|
2092
2100
|
}
|
|
2093
2101
|
));
|
|
2094
|
-
|
|
2095
|
-
const
|
|
2096
|
-
|
|
2102
|
+
Gn.displayName = R.SubTrigger.displayName;
|
|
2103
|
+
const Wn = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
2104
|
+
R.SubContent,
|
|
2097
2105
|
{
|
|
2098
2106
|
ref: s,
|
|
2099
2107
|
className: c(
|
|
@@ -2103,9 +2111,9 @@ const Fn = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
2103
2111
|
...t
|
|
2104
2112
|
}
|
|
2105
2113
|
));
|
|
2106
|
-
|
|
2107
|
-
const
|
|
2108
|
-
|
|
2114
|
+
Wn.displayName = R.SubContent.displayName;
|
|
2115
|
+
const Un = p.forwardRef(({ className: e, sideOffset: t = 4, ...s }, o) => /* @__PURE__ */ a.jsx(R.Portal, { children: /* @__PURE__ */ a.jsx(
|
|
2116
|
+
R.Content,
|
|
2109
2117
|
{
|
|
2110
2118
|
ref: o,
|
|
2111
2119
|
sideOffset: t,
|
|
@@ -2117,9 +2125,9 @@ const Gn = m.forwardRef(({ className: e, sideOffset: t = 4, ...s }, o) => /* @__
|
|
|
2117
2125
|
...s
|
|
2118
2126
|
}
|
|
2119
2127
|
) }));
|
|
2120
|
-
|
|
2121
|
-
const
|
|
2122
|
-
|
|
2128
|
+
Un.displayName = R.Content.displayName;
|
|
2129
|
+
const Hn = p.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
|
|
2130
|
+
R.Item,
|
|
2123
2131
|
{
|
|
2124
2132
|
ref: o,
|
|
2125
2133
|
className: c(
|
|
@@ -2130,9 +2138,9 @@ const Wn = m.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */
|
|
|
2130
2138
|
...s
|
|
2131
2139
|
}
|
|
2132
2140
|
));
|
|
2133
|
-
|
|
2134
|
-
const
|
|
2135
|
-
|
|
2141
|
+
Hn.displayName = R.Item.displayName;
|
|
2142
|
+
const qn = p.forwardRef(({ className: e, children: t, checked: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
|
|
2143
|
+
R.CheckboxItem,
|
|
2136
2144
|
{
|
|
2137
2145
|
ref: n,
|
|
2138
2146
|
className: c(
|
|
@@ -2142,14 +2150,14 @@ const Un = m.forwardRef(({ className: e, children: t, checked: s, ...o }, n) =>
|
|
|
2142
2150
|
checked: s,
|
|
2143
2151
|
...o,
|
|
2144
2152
|
children: [
|
|
2145
|
-
/* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(
|
|
2153
|
+
/* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(R.ItemIndicator, { children: /* @__PURE__ */ a.jsx(Ee, { className: "h-4 w-4" }) }) }),
|
|
2146
2154
|
t
|
|
2147
2155
|
]
|
|
2148
2156
|
}
|
|
2149
2157
|
));
|
|
2150
|
-
|
|
2151
|
-
const
|
|
2152
|
-
|
|
2158
|
+
qn.displayName = R.CheckboxItem.displayName;
|
|
2159
|
+
const Kn = p.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(
|
|
2160
|
+
R.RadioItem,
|
|
2153
2161
|
{
|
|
2154
2162
|
ref: o,
|
|
2155
2163
|
className: c(
|
|
@@ -2158,27 +2166,27 @@ const Hn = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__
|
|
|
2158
2166
|
),
|
|
2159
2167
|
...s,
|
|
2160
2168
|
children: [
|
|
2161
|
-
/* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(
|
|
2169
|
+
/* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(R.ItemIndicator, { children: /* @__PURE__ */ a.jsx(ot, { className: "h-4 w-4 fill-current" }) }) }),
|
|
2162
2170
|
t
|
|
2163
2171
|
]
|
|
2164
2172
|
}
|
|
2165
2173
|
));
|
|
2166
|
-
|
|
2167
|
-
const
|
|
2168
|
-
|
|
2174
|
+
Kn.displayName = R.RadioItem.displayName;
|
|
2175
|
+
const Jn = p.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
|
|
2176
|
+
R.Label,
|
|
2169
2177
|
{
|
|
2170
2178
|
ref: o,
|
|
2171
2179
|
className: c("px-2 py-1.5 text-sm font-semibold", t && "pl-8", e),
|
|
2172
2180
|
...s
|
|
2173
2181
|
}
|
|
2174
2182
|
));
|
|
2175
|
-
|
|
2176
|
-
const
|
|
2177
|
-
|
|
2178
|
-
const
|
|
2179
|
-
|
|
2180
|
-
const
|
|
2181
|
-
|
|
2183
|
+
Jn.displayName = R.Label.displayName;
|
|
2184
|
+
const Yn = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(R.Separator, { ref: s, className: c("-mx-1 my-1 h-px bg-muted", e), ...t }));
|
|
2185
|
+
Yn.displayName = R.Separator.displayName;
|
|
2186
|
+
const Qn = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("span", { className: c("ml-auto text-xs tracking-widest opacity-60", e), ...t });
|
|
2187
|
+
Qn.displayName = "DropdownMenuShortcut";
|
|
2188
|
+
const Xn = p.forwardRef(({ className: e, orientation: t = "horizontal", decorative: s = !0, ...o }, n) => /* @__PURE__ */ a.jsx(
|
|
2189
|
+
Gt.Root,
|
|
2182
2190
|
{
|
|
2183
2191
|
ref: n,
|
|
2184
2192
|
decorative: s,
|
|
@@ -2187,13 +2195,13 @@ const Yn = m.forwardRef(({ className: e, orientation: t = "horizontal", decorati
|
|
|
2187
2195
|
...o
|
|
2188
2196
|
}
|
|
2189
2197
|
));
|
|
2190
|
-
|
|
2191
|
-
const
|
|
2198
|
+
Xn.displayName = Gt.Root.displayName;
|
|
2199
|
+
const Zn = 1, er = 1e6;
|
|
2192
2200
|
let We = 0;
|
|
2193
|
-
function
|
|
2201
|
+
function tr() {
|
|
2194
2202
|
return We = (We + 1) % Number.MAX_VALUE, We.toString();
|
|
2195
2203
|
}
|
|
2196
|
-
const Ue = /* @__PURE__ */ new Map(),
|
|
2204
|
+
const Ue = /* @__PURE__ */ new Map(), zt = (e) => {
|
|
2197
2205
|
if (Ue.has(e))
|
|
2198
2206
|
return;
|
|
2199
2207
|
const t = setTimeout(() => {
|
|
@@ -2201,14 +2209,14 @@ const Ue = /* @__PURE__ */ new Map(), Lt = (e) => {
|
|
|
2201
2209
|
type: "REMOVE_TOAST",
|
|
2202
2210
|
toastId: e
|
|
2203
2211
|
});
|
|
2204
|
-
},
|
|
2212
|
+
}, er);
|
|
2205
2213
|
Ue.set(e, t);
|
|
2206
|
-
},
|
|
2214
|
+
}, sr = (e, t) => {
|
|
2207
2215
|
switch (t.type) {
|
|
2208
2216
|
case "ADD_TOAST":
|
|
2209
2217
|
return {
|
|
2210
2218
|
...e,
|
|
2211
|
-
toasts: [t.toast, ...e.toasts].slice(0,
|
|
2219
|
+
toasts: [t.toast, ...e.toasts].slice(0, Zn)
|
|
2212
2220
|
};
|
|
2213
2221
|
case "UPDATE_TOAST":
|
|
2214
2222
|
return {
|
|
@@ -2217,8 +2225,8 @@ const Ue = /* @__PURE__ */ new Map(), Lt = (e) => {
|
|
|
2217
2225
|
};
|
|
2218
2226
|
case "DISMISS_TOAST": {
|
|
2219
2227
|
const { toastId: s } = t;
|
|
2220
|
-
return s ?
|
|
2221
|
-
|
|
2228
|
+
return s ? zt(s) : e.toasts.forEach((o) => {
|
|
2229
|
+
zt(o.id);
|
|
2222
2230
|
}), {
|
|
2223
2231
|
...e,
|
|
2224
2232
|
toasts: e.toasts.map(
|
|
@@ -2238,15 +2246,15 @@ const Ue = /* @__PURE__ */ new Map(), Lt = (e) => {
|
|
|
2238
2246
|
toasts: e.toasts.filter((s) => s.id !== t.toastId)
|
|
2239
2247
|
};
|
|
2240
2248
|
}
|
|
2241
|
-
},
|
|
2249
|
+
}, Pe = [];
|
|
2242
2250
|
let Ie = { toasts: [] };
|
|
2243
2251
|
function ke(e) {
|
|
2244
|
-
Ie =
|
|
2252
|
+
Ie = sr(Ie, e), Pe.forEach((t) => {
|
|
2245
2253
|
t(Ie);
|
|
2246
2254
|
});
|
|
2247
2255
|
}
|
|
2248
|
-
function
|
|
2249
|
-
const t =
|
|
2256
|
+
function or({ ...e }) {
|
|
2257
|
+
const t = tr(), s = (n) => ke({
|
|
2250
2258
|
type: "UPDATE_TOAST",
|
|
2251
2259
|
toast: { ...n, id: t }
|
|
2252
2260
|
}), o = () => ke({ type: "DISMISS_TOAST", toastId: t });
|
|
@@ -2266,18 +2274,18 @@ function tr({ ...e }) {
|
|
|
2266
2274
|
update: s
|
|
2267
2275
|
};
|
|
2268
2276
|
}
|
|
2269
|
-
function
|
|
2270
|
-
const [e, t] =
|
|
2271
|
-
return
|
|
2272
|
-
const s =
|
|
2273
|
-
s > -1 &&
|
|
2277
|
+
function ar() {
|
|
2278
|
+
const [e, t] = p.useState(Ie);
|
|
2279
|
+
return p.useEffect(() => (Pe.push(t), () => {
|
|
2280
|
+
const s = Pe.indexOf(t);
|
|
2281
|
+
s > -1 && Pe.splice(s, 1);
|
|
2274
2282
|
}), [e]), {
|
|
2275
2283
|
...e,
|
|
2276
|
-
toast:
|
|
2284
|
+
toast: or,
|
|
2277
2285
|
dismiss: (s) => ke({ type: "DISMISS_TOAST", toastId: s })
|
|
2278
2286
|
};
|
|
2279
2287
|
}
|
|
2280
|
-
const
|
|
2288
|
+
const nr = q.Provider, Ps = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
2281
2289
|
q.Viewport,
|
|
2282
2290
|
{
|
|
2283
2291
|
ref: s,
|
|
@@ -2288,8 +2296,8 @@ const or = q.Provider, Rs = m.forwardRef(({ className: e, ...t }, s) => /* @__PU
|
|
|
2288
2296
|
...t
|
|
2289
2297
|
}
|
|
2290
2298
|
));
|
|
2291
|
-
|
|
2292
|
-
const
|
|
2299
|
+
Ps.displayName = q.Viewport.displayName;
|
|
2300
|
+
const rr = be(
|
|
2293
2301
|
"group pointer-events-auto relative flex w-full items-center justify-between space-x-2 overflow-hidden rounded-md border p-4 pr-6 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",
|
|
2294
2302
|
{
|
|
2295
2303
|
variants: {
|
|
@@ -2302,9 +2310,9 @@ const ar = be(
|
|
|
2302
2310
|
variant: "default"
|
|
2303
2311
|
}
|
|
2304
2312
|
}
|
|
2305
|
-
),
|
|
2306
|
-
|
|
2307
|
-
const
|
|
2313
|
+
), Is = p.forwardRef(({ className: e, variant: t, ...s }, o) => /* @__PURE__ */ a.jsx(q.Root, { ref: o, className: c(rr({ variant: t }), e), ...s }));
|
|
2314
|
+
Is.displayName = q.Root.displayName;
|
|
2315
|
+
const ir = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
2308
2316
|
q.Action,
|
|
2309
2317
|
{
|
|
2310
2318
|
ref: s,
|
|
@@ -2315,8 +2323,8 @@ const nr = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
2315
2323
|
...t
|
|
2316
2324
|
}
|
|
2317
2325
|
));
|
|
2318
|
-
|
|
2319
|
-
const
|
|
2326
|
+
ir.displayName = q.Action.displayName;
|
|
2327
|
+
const Ms = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
2320
2328
|
q.Close,
|
|
2321
2329
|
{
|
|
2322
2330
|
ref: s,
|
|
@@ -2329,26 +2337,26 @@ const Ts = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
2329
2337
|
children: /* @__PURE__ */ a.jsx(tt, { className: "h-4 w-4" })
|
|
2330
2338
|
}
|
|
2331
2339
|
));
|
|
2332
|
-
|
|
2333
|
-
const
|
|
2334
|
-
|
|
2335
|
-
const
|
|
2336
|
-
|
|
2337
|
-
function
|
|
2338
|
-
const { toasts: e } =
|
|
2339
|
-
return /* @__PURE__ */ a.jsxs(
|
|
2340
|
-
e.map(({ id: t, title: s, description: o, action: n, ...r }) => /* @__PURE__ */ a.jsxs(
|
|
2340
|
+
Ms.displayName = q.Close.displayName;
|
|
2341
|
+
const Ds = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(q.Title, { ref: s, className: c("text-sm font-semibold [&+div]:text-xs", e), ...t }));
|
|
2342
|
+
Ds.displayName = q.Title.displayName;
|
|
2343
|
+
const Es = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(q.Description, { ref: s, className: c("text-sm opacity-90", e), ...t }));
|
|
2344
|
+
Es.displayName = q.Description.displayName;
|
|
2345
|
+
function ul() {
|
|
2346
|
+
const { toasts: e } = ar();
|
|
2347
|
+
return /* @__PURE__ */ a.jsxs(nr, { children: [
|
|
2348
|
+
e.map(({ id: t, title: s, description: o, action: n, ...r }) => /* @__PURE__ */ a.jsxs(Is, { ...r, children: [
|
|
2341
2349
|
/* @__PURE__ */ a.jsxs("div", { className: "grid gap-1", children: [
|
|
2342
|
-
s && /* @__PURE__ */ a.jsx(
|
|
2343
|
-
o && /* @__PURE__ */ a.jsx(
|
|
2350
|
+
s && /* @__PURE__ */ a.jsx(Ds, { children: s }),
|
|
2351
|
+
o && /* @__PURE__ */ a.jsx(Es, { children: o })
|
|
2344
2352
|
] }),
|
|
2345
2353
|
n,
|
|
2346
|
-
/* @__PURE__ */ a.jsx(
|
|
2354
|
+
/* @__PURE__ */ a.jsx(Ms, {})
|
|
2347
2355
|
] }, t)),
|
|
2348
|
-
/* @__PURE__ */ a.jsx(
|
|
2356
|
+
/* @__PURE__ */ a.jsx(Ps, {})
|
|
2349
2357
|
] });
|
|
2350
2358
|
}
|
|
2351
|
-
const
|
|
2359
|
+
const pl = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: c("animate-pulse rounded-md bg-primary/10", e), ...t }), Os = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
2352
2360
|
U,
|
|
2353
2361
|
{
|
|
2354
2362
|
ref: s,
|
|
@@ -2359,9 +2367,9 @@ const ll = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className:
|
|
|
2359
2367
|
...t
|
|
2360
2368
|
}
|
|
2361
2369
|
));
|
|
2362
|
-
|
|
2363
|
-
const
|
|
2364
|
-
/* @__PURE__ */ a.jsx(
|
|
2370
|
+
Os.displayName = U.displayName;
|
|
2371
|
+
const ml = ({ children: e, ...t }) => /* @__PURE__ */ a.jsx(js, { ...t, children: /* @__PURE__ */ a.jsx(wt, { className: "overflow-hidden p-0", children: /* @__PURE__ */ a.jsx(Os, { className: "[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5", children: e }) }) }), lr = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsxs("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
|
|
2372
|
+
/* @__PURE__ */ a.jsx(Ks, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
|
|
2365
2373
|
/* @__PURE__ */ a.jsx(
|
|
2366
2374
|
U.Input,
|
|
2367
2375
|
{
|
|
@@ -2374,8 +2382,8 @@ const cl = ({ children: e, ...t }) => /* @__PURE__ */ a.jsx(ks, { ...t, children
|
|
|
2374
2382
|
}
|
|
2375
2383
|
)
|
|
2376
2384
|
] }));
|
|
2377
|
-
|
|
2378
|
-
const
|
|
2385
|
+
lr.displayName = U.Input.displayName;
|
|
2386
|
+
const cr = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
2379
2387
|
U.List,
|
|
2380
2388
|
{
|
|
2381
2389
|
ref: s,
|
|
@@ -2383,10 +2391,10 @@ const ir = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
2383
2391
|
...t
|
|
2384
2392
|
}
|
|
2385
2393
|
));
|
|
2386
|
-
|
|
2387
|
-
const
|
|
2388
|
-
|
|
2389
|
-
const
|
|
2394
|
+
cr.displayName = U.List.displayName;
|
|
2395
|
+
const dr = p.forwardRef((e, t) => /* @__PURE__ */ a.jsx(U.Empty, { ref: t, className: "py-6 text-center text-sm", ...e }));
|
|
2396
|
+
dr.displayName = U.Empty.displayName;
|
|
2397
|
+
const ur = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
2390
2398
|
U.Group,
|
|
2391
2399
|
{
|
|
2392
2400
|
ref: s,
|
|
@@ -2397,10 +2405,10 @@ const cr = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
2397
2405
|
...t
|
|
2398
2406
|
}
|
|
2399
2407
|
));
|
|
2400
|
-
|
|
2401
|
-
const
|
|
2402
|
-
|
|
2403
|
-
const
|
|
2408
|
+
ur.displayName = U.Group.displayName;
|
|
2409
|
+
const pr = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(U.Separator, { ref: s, className: c("-mx-1 h-px bg-border", e), ...t }));
|
|
2410
|
+
pr.displayName = U.Separator.displayName;
|
|
2411
|
+
const mr = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
2404
2412
|
U.Item,
|
|
2405
2413
|
{
|
|
2406
2414
|
ref: s,
|
|
@@ -2411,11 +2419,11 @@ const ur = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
2411
2419
|
...t
|
|
2412
2420
|
}
|
|
2413
2421
|
));
|
|
2414
|
-
|
|
2415
|
-
const
|
|
2416
|
-
|
|
2417
|
-
const
|
|
2418
|
-
|
|
2422
|
+
mr.displayName = U.Item.displayName;
|
|
2423
|
+
const fr = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("span", { className: c("ml-auto text-xs tracking-widest text-muted-foreground", e), ...t });
|
|
2424
|
+
fr.displayName = "CommandShortcut";
|
|
2425
|
+
const fl = P.Root, gl = P.Trigger, bl = P.Group, hl = P.Portal, xl = P.Sub, yl = P.RadioGroup, gr = p.forwardRef(({ className: e, inset: t, children: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
|
|
2426
|
+
P.SubTrigger,
|
|
2419
2427
|
{
|
|
2420
2428
|
ref: n,
|
|
2421
2429
|
className: c(
|
|
@@ -2430,9 +2438,9 @@ const dl = T.Root, ul = T.Trigger, ml = T.Group, pl = T.Portal, fl = T.Sub, gl =
|
|
|
2430
2438
|
]
|
|
2431
2439
|
}
|
|
2432
2440
|
));
|
|
2433
|
-
|
|
2434
|
-
const
|
|
2435
|
-
|
|
2441
|
+
gr.displayName = P.SubTrigger.displayName;
|
|
2442
|
+
const br = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
2443
|
+
P.SubContent,
|
|
2436
2444
|
{
|
|
2437
2445
|
ref: s,
|
|
2438
2446
|
className: c(
|
|
@@ -2442,9 +2450,9 @@ const fr = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(
|
|
|
2442
2450
|
...t
|
|
2443
2451
|
}
|
|
2444
2452
|
));
|
|
2445
|
-
|
|
2446
|
-
const
|
|
2447
|
-
|
|
2453
|
+
br.displayName = P.SubContent.displayName;
|
|
2454
|
+
const hr = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(P.Portal, { children: /* @__PURE__ */ a.jsx(
|
|
2455
|
+
P.Content,
|
|
2448
2456
|
{
|
|
2449
2457
|
ref: s,
|
|
2450
2458
|
className: c(
|
|
@@ -2454,9 +2462,9 @@ const gr = m.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(T.P
|
|
|
2454
2462
|
...t
|
|
2455
2463
|
}
|
|
2456
2464
|
) }));
|
|
2457
|
-
|
|
2458
|
-
const
|
|
2459
|
-
|
|
2465
|
+
hr.displayName = P.Content.displayName;
|
|
2466
|
+
const xr = p.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
|
|
2467
|
+
P.Item,
|
|
2460
2468
|
{
|
|
2461
2469
|
ref: o,
|
|
2462
2470
|
className: c(
|
|
@@ -2467,9 +2475,9 @@ const br = m.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */
|
|
|
2467
2475
|
...s
|
|
2468
2476
|
}
|
|
2469
2477
|
));
|
|
2470
|
-
|
|
2471
|
-
const
|
|
2472
|
-
|
|
2478
|
+
xr.displayName = P.Item.displayName;
|
|
2479
|
+
const yr = p.forwardRef(({ className: e, children: t, checked: s, ...o }, n) => /* @__PURE__ */ a.jsxs(
|
|
2480
|
+
P.CheckboxItem,
|
|
2473
2481
|
{
|
|
2474
2482
|
ref: n,
|
|
2475
2483
|
className: c(
|
|
@@ -2479,14 +2487,14 @@ const xr = m.forwardRef(({ className: e, children: t, checked: s, ...o }, n) =>
|
|
|
2479
2487
|
checked: s,
|
|
2480
2488
|
...o,
|
|
2481
2489
|
children: [
|
|
2482
|
-
/* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(
|
|
2490
|
+
/* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(P.ItemIndicator, { children: /* @__PURE__ */ a.jsx(Ee, { className: "h-4 w-4" }) }) }),
|
|
2483
2491
|
t
|
|
2484
2492
|
]
|
|
2485
2493
|
}
|
|
2486
2494
|
));
|
|
2487
|
-
|
|
2488
|
-
const
|
|
2489
|
-
|
|
2495
|
+
yr.displayName = P.CheckboxItem.displayName;
|
|
2496
|
+
const vr = p.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__ */ a.jsxs(
|
|
2497
|
+
P.RadioItem,
|
|
2490
2498
|
{
|
|
2491
2499
|
ref: o,
|
|
2492
2500
|
className: c(
|
|
@@ -2495,29 +2503,29 @@ const hr = m.forwardRef(({ className: e, children: t, ...s }, o) => /* @__PURE__
|
|
|
2495
2503
|
),
|
|
2496
2504
|
...s,
|
|
2497
2505
|
children: [
|
|
2498
|
-
/* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(
|
|
2506
|
+
/* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(P.ItemIndicator, { children: /* @__PURE__ */ a.jsx(ot, { className: "h-4 w-4 fill-current" }) }) }),
|
|
2499
2507
|
t
|
|
2500
2508
|
]
|
|
2501
2509
|
}
|
|
2502
2510
|
));
|
|
2503
|
-
|
|
2504
|
-
const
|
|
2505
|
-
|
|
2511
|
+
vr.displayName = P.RadioItem.displayName;
|
|
2512
|
+
const wr = p.forwardRef(({ className: e, inset: t, ...s }, o) => /* @__PURE__ */ a.jsx(
|
|
2513
|
+
P.Label,
|
|
2506
2514
|
{
|
|
2507
2515
|
ref: o,
|
|
2508
2516
|
className: c("px-2 py-1.5 text-sm font-semibold text-foreground", t && "pl-8", e),
|
|
2509
2517
|
...s
|
|
2510
2518
|
}
|
|
2511
2519
|
));
|
|
2512
|
-
|
|
2513
|
-
const
|
|
2514
|
-
|
|
2515
|
-
const
|
|
2516
|
-
|
|
2517
|
-
const
|
|
2520
|
+
wr.displayName = P.Label.displayName;
|
|
2521
|
+
const Nr = p.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a.jsx(P.Separator, { ref: s, className: c("-mx-1 my-1 h-px bg-border", e), ...t }));
|
|
2522
|
+
Nr.displayName = P.Separator.displayName;
|
|
2523
|
+
const kr = ({ className: e, ...t }) => /* @__PURE__ */ a.jsx("span", { className: c("ml-auto text-xs tracking-widest text-muted-foreground", e), ...t });
|
|
2524
|
+
kr.displayName = "ContextMenuShortcut";
|
|
2525
|
+
const Sr = (e) => {
|
|
2518
2526
|
try {
|
|
2519
2527
|
const t = document.getElementById("icon-picker-field"), s = document.createElement("div");
|
|
2520
|
-
|
|
2528
|
+
Qs.render(/* @__PURE__ */ a.jsx(Ys, { value: e }), s), t.appendChild(s), s.hidden = !0;
|
|
2521
2529
|
let o = s.innerHTML;
|
|
2522
2530
|
setTimeout(() => t.removeChild(s), 1e3);
|
|
2523
2531
|
const r = new DOMParser().parseFromString(o, "image/svg+xml"), i = r.querySelector("svg");
|
|
@@ -2525,10 +2533,10 @@ const Nr = (e) => {
|
|
|
2525
2533
|
} catch {
|
|
2526
2534
|
return "";
|
|
2527
2535
|
}
|
|
2528
|
-
},
|
|
2536
|
+
}, vl = ({ value: e, onChange: t, onBlur: s, id: o }) => {
|
|
2529
2537
|
const n = (r) => {
|
|
2530
2538
|
t("<svg />");
|
|
2531
|
-
const i =
|
|
2539
|
+
const i = Sr(r);
|
|
2532
2540
|
t(i), s(o, i);
|
|
2533
2541
|
};
|
|
2534
2542
|
return /* @__PURE__ */ a.jsxs("div", { className: "mt-1 flex h-20 items-center gap-x-2", id: "icon-picker-field", children: [
|
|
@@ -2541,7 +2549,7 @@ const Nr = (e) => {
|
|
|
2541
2549
|
}
|
|
2542
2550
|
),
|
|
2543
2551
|
/* @__PURE__ */ a.jsx(
|
|
2544
|
-
|
|
2552
|
+
Js,
|
|
2545
2553
|
{
|
|
2546
2554
|
value: e ? "BiSolidGrid" : null,
|
|
2547
2555
|
onChange: n,
|
|
@@ -2577,7 +2585,7 @@ const Nr = (e) => {
|
|
|
2577
2585
|
}
|
|
2578
2586
|
)
|
|
2579
2587
|
] });
|
|
2580
|
-
},
|
|
2588
|
+
}, jr = et.lazy(() => import("./UnsplashImages-41Y3q5_Q.js")), Ar = et.lazy(() => import("./UploadImages-xBg-kbKv.js")), Ls = ({
|
|
2581
2589
|
isModalView: e = !1,
|
|
2582
2590
|
onSelect: t = () => {
|
|
2583
2591
|
}
|
|
@@ -2585,29 +2593,29 @@ const Nr = (e) => {
|
|
|
2585
2593
|
const [s, o] = De("upload");
|
|
2586
2594
|
return /* @__PURE__ */ a.jsxs("div", { className: "flex h-full flex-col", children: [
|
|
2587
2595
|
/* @__PURE__ */ a.jsx("div", { className: "flex items-center justify-between rounded-md bg-background/30 p-1", children: /* @__PURE__ */ a.jsx("h1", { className: "px-1 font-semibold", children: e ? "Select or upload images" : "Images" }) }),
|
|
2588
|
-
/* @__PURE__ */ a.jsxs(
|
|
2589
|
-
/* @__PURE__ */ a.jsxs(
|
|
2596
|
+
/* @__PURE__ */ a.jsxs(hn, { value: s, onValueChange: (n) => o(n), className: "flex h-full w-full flex-col py-2", children: [
|
|
2597
|
+
/* @__PURE__ */ a.jsxs(Bs, { className: "w-full", children: [
|
|
2590
2598
|
/* @__PURE__ */ a.jsx(Xe, { value: "upload", className: "w-1/2", children: "Upload" }),
|
|
2591
2599
|
/* @__PURE__ */ a.jsx(Xe, { value: "unsplash", className: "w-1/2", children: "Unsplash" })
|
|
2592
2600
|
] }),
|
|
2593
|
-
s === "unsplash" ? /* @__PURE__ */ a.jsx(Ze, { value: "unsplash", className: "flex h-full flex-col overflow-hidden", children: /* @__PURE__ */ a.jsx(
|
|
2601
|
+
s === "unsplash" ? /* @__PURE__ */ a.jsx(Ze, { value: "unsplash", className: "flex h-full flex-col overflow-hidden", children: /* @__PURE__ */ a.jsx(Nt, { fallback: /* @__PURE__ */ a.jsx("div", { className: "h-64 w-full animate-pulse bg-gray-100" }), children: /* @__PURE__ */ a.jsx(jr, { isModalView: e, onSelect: t }) }) }) : /* @__PURE__ */ a.jsx(Ze, { value: "upload", className: "flex h-full flex-col overflow-hidden", children: /* @__PURE__ */ a.jsx(Nt, { fallback: /* @__PURE__ */ a.jsx("div", { className: "h-64 w-full animate-pulse bg-gray-100" }), children: /* @__PURE__ */ a.jsx(Ar, { isModalView: e, onSelect: t }) }) })
|
|
2594
2602
|
] })
|
|
2595
2603
|
] });
|
|
2596
|
-
},
|
|
2604
|
+
}, wl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2597
2605
|
__proto__: null,
|
|
2598
|
-
default:
|
|
2599
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2606
|
+
default: Ls
|
|
2607
|
+
}, Symbol.toStringTag, { value: "Module" })), Vt = ({ children: e, onSelect: t }) => {
|
|
2600
2608
|
const [s, o] = De(!1), n = (...r) => {
|
|
2601
2609
|
t.call(void 0, ...r), o(!1);
|
|
2602
2610
|
};
|
|
2603
|
-
return /* @__PURE__ */ a.jsxs(
|
|
2604
|
-
/* @__PURE__ */ a.jsx(
|
|
2605
|
-
/* @__PURE__ */ a.jsx(
|
|
2611
|
+
return /* @__PURE__ */ a.jsxs(js, { open: s, onOpenChange: (r) => o(r), children: [
|
|
2612
|
+
/* @__PURE__ */ a.jsx(en, { asChild: !0, children: e }),
|
|
2613
|
+
/* @__PURE__ */ a.jsx(wt, { className: "flex h-3/4 max-w-5xl", children: /* @__PURE__ */ a.jsx("div", { className: "h-full w-full", children: /* @__PURE__ */ a.jsx(Ls, { isModalView: !0, onSelect: n }) }) })
|
|
2606
2614
|
] });
|
|
2607
|
-
},
|
|
2608
|
-
e ? /* @__PURE__ */ a.jsx("img", { src: e, className: "h-20 w-20 overflow-hidden rounded-md border object-cover", alt: "" }) : /* @__PURE__ */ a.jsx(
|
|
2615
|
+
}, Nl = ({ value: e, onChange: t, id: s, onBlur: o }) => /* @__PURE__ */ a.jsxs("div", { className: "mt-1.5 flex items-center gap-x-3", children: [
|
|
2616
|
+
e ? /* @__PURE__ */ a.jsx("img", { src: e, className: "h-20 w-20 overflow-hidden rounded-md border object-cover", alt: "" }) : /* @__PURE__ */ a.jsx(Vt, { onSelect: t, children: /* @__PURE__ */ a.jsx("div", { className: "h-20 w-20 cursor-pointer rounded-md border bg-[radial-gradient(#AAA,transparent_1px)] duration-300 [background-size:10px_10px] hover:border-gray-400" }) }),
|
|
2609
2617
|
/* @__PURE__ */ a.jsxs("div", { className: "flex w-3/5 flex-col", children: [
|
|
2610
|
-
/* @__PURE__ */ a.jsx(
|
|
2618
|
+
/* @__PURE__ */ a.jsx(Vt, { onSelect: t, children: /* @__PURE__ */ a.jsx("small", { className: "cursor-pointer rounded-full bg-gray-600 px-2 py-1 text-center text-xs text-white hover:bg-gray-500 dark:bg-gray-700", children: e || !ce(e) ? "Replace Image" : "Choose Image" }) }),
|
|
2611
2619
|
/* @__PURE__ */ a.jsx("small", { className: "-pl-4 pt-2 text-center text-xs text-gray-600", children: "OR" }),
|
|
2612
2620
|
/* @__PURE__ */ a.jsx(
|
|
2613
2621
|
"input",
|
|
@@ -2621,7 +2629,7 @@ const Nr = (e) => {
|
|
|
2621
2629
|
}
|
|
2622
2630
|
)
|
|
2623
2631
|
] })
|
|
2624
|
-
] }),
|
|
2632
|
+
] }), kl = ({ id: e, placeholder: t, value: s, onChange: o, onBlur: n }) => {
|
|
2625
2633
|
const r = {
|
|
2626
2634
|
toolbar: [
|
|
2627
2635
|
["bold", "italic", "underline", "strike", "blockquote"],
|
|
@@ -2645,7 +2653,7 @@ const Nr = (e) => {
|
|
|
2645
2653
|
"image"
|
|
2646
2654
|
];
|
|
2647
2655
|
return typeof window > "u" ? null : /* @__PURE__ */ a.jsx(
|
|
2648
|
-
|
|
2656
|
+
to,
|
|
2649
2657
|
{
|
|
2650
2658
|
id: e,
|
|
2651
2659
|
value: s,
|
|
@@ -2657,8 +2665,8 @@ const Nr = (e) => {
|
|
|
2657
2665
|
className: "mt-1 rounded-md"
|
|
2658
2666
|
}
|
|
2659
2667
|
);
|
|
2660
|
-
},
|
|
2661
|
-
const [o, n] = De([]), r = ve("getPages", () => []), { type: i = "page", href: u = "", target:
|
|
2668
|
+
}, Sl = ({ schema: e, formData: t, onChange: s }) => {
|
|
2669
|
+
const [o, n] = De([]), r = ve("getPages", () => []), { type: i = "page", href: u = "", target: m = "self" } = t;
|
|
2662
2670
|
return je(() => {
|
|
2663
2671
|
(async () => {
|
|
2664
2672
|
const l = await r();
|
|
@@ -2701,9 +2709,9 @@ const Nr = (e) => {
|
|
|
2701
2709
|
"input",
|
|
2702
2710
|
{
|
|
2703
2711
|
type: "checkbox",
|
|
2704
|
-
defaultChecked:
|
|
2712
|
+
defaultChecked: m === "_blank",
|
|
2705
2713
|
className: "cursor-pointer rounded-md border border-border",
|
|
2706
|
-
onChange: () => s({ ...t, target:
|
|
2714
|
+
onChange: () => s({ ...t, target: m === "_blank" ? "_self" : "_blank" })
|
|
2707
2715
|
}
|
|
2708
2716
|
),
|
|
2709
2717
|
/* @__PURE__ */ a.jsx("span", { className: "pt-1 text-xs", children: "Open in new tab" })
|
|
@@ -2712,219 +2720,219 @@ const Nr = (e) => {
|
|
|
2712
2720
|
] });
|
|
2713
2721
|
};
|
|
2714
2722
|
export {
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
|
|
2719
|
-
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
+
ka as $,
|
|
2724
|
+
ct as A,
|
|
2725
|
+
La as B,
|
|
2726
|
+
fs as C,
|
|
2727
|
+
ul as D,
|
|
2728
|
+
Li as E,
|
|
2729
|
+
zi as F,
|
|
2730
|
+
qa as G,
|
|
2723
2731
|
Ka as H,
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2732
|
+
Ya as I,
|
|
2733
|
+
Qa as J,
|
|
2734
|
+
Ja as K,
|
|
2735
|
+
Za as L,
|
|
2736
|
+
Mi as M,
|
|
2737
|
+
_i as N,
|
|
2738
|
+
Ci as O,
|
|
2739
|
+
ri as P,
|
|
2740
|
+
ii as Q,
|
|
2741
|
+
Ho as R,
|
|
2742
|
+
pl as S,
|
|
2743
|
+
$i as T,
|
|
2744
|
+
di as U,
|
|
2745
|
+
ui as V,
|
|
2746
|
+
Zo as W,
|
|
2747
|
+
mi as X,
|
|
2748
|
+
fi as Y,
|
|
2749
|
+
ps as Z,
|
|
2750
|
+
gi as _,
|
|
2751
|
+
Yr as a,
|
|
2752
|
+
Wi as a$,
|
|
2753
|
+
bi as a0,
|
|
2754
|
+
hi as a1,
|
|
2755
|
+
yi as a2,
|
|
2756
|
+
Ii as a3,
|
|
2757
|
+
wi as a4,
|
|
2758
|
+
ki as a5,
|
|
2759
|
+
Ni as a6,
|
|
2760
|
+
ni as a7,
|
|
2761
|
+
ba as a8,
|
|
2762
|
+
Di as a9,
|
|
2763
|
+
Ze as aA,
|
|
2764
|
+
el as aB,
|
|
2765
|
+
Mn as aC,
|
|
2766
|
+
Fi as aD,
|
|
2767
|
+
Gi as aE,
|
|
2768
|
+
Ea as aF,
|
|
2769
|
+
xn as aG,
|
|
2770
|
+
Xn as aH,
|
|
2771
|
+
fn as aI,
|
|
2772
|
+
Oa as aJ,
|
|
2773
|
+
Qi as aK,
|
|
2774
|
+
Xi as aL,
|
|
2775
|
+
Rn as aM,
|
|
2776
|
+
nl as aN,
|
|
2777
|
+
rl as aO,
|
|
2778
|
+
Un as aP,
|
|
2779
|
+
Jn as aQ,
|
|
2780
|
+
Yn as aR,
|
|
2781
|
+
qn as aS,
|
|
2782
|
+
ma as aT,
|
|
2783
|
+
pa as aU,
|
|
2784
|
+
ra as aV,
|
|
2785
|
+
fa as aW,
|
|
2786
|
+
ti as aX,
|
|
2787
|
+
si as aY,
|
|
2788
|
+
aa as aZ,
|
|
2789
|
+
ca as a_,
|
|
2790
|
+
Si as aa,
|
|
2791
|
+
Zr as ab,
|
|
2792
|
+
ji as ac,
|
|
2793
|
+
Ai as ad,
|
|
2794
|
+
ai as ae,
|
|
2795
|
+
$o as af,
|
|
2796
|
+
Bi as ag,
|
|
2797
|
+
ci as ah,
|
|
2798
|
+
Ti as ai,
|
|
2799
|
+
Ri as aj,
|
|
2800
|
+
is as ak,
|
|
2801
|
+
js as al,
|
|
2802
|
+
wt as am,
|
|
2795
2803
|
tn as an,
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
|
|
2799
|
-
|
|
2800
|
-
|
|
2801
|
-
|
|
2804
|
+
on as ao,
|
|
2805
|
+
an as ap,
|
|
2806
|
+
Xa as aq,
|
|
2807
|
+
Zi as ar,
|
|
2808
|
+
Pn as as,
|
|
2809
|
+
tl as at,
|
|
2802
2810
|
In as au,
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
|
|
2811
|
+
Dn as av,
|
|
2812
|
+
da as aw,
|
|
2813
|
+
hn as ax,
|
|
2814
|
+
Bs as ay,
|
|
2815
|
+
Xe as az,
|
|
2808
2816
|
Z as b,
|
|
2809
|
-
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
|
|
2838
|
-
|
|
2839
|
-
|
|
2840
|
-
|
|
2841
|
-
|
|
2842
|
-
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
|
|
2895
|
-
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
|
|
2817
|
+
ol as b$,
|
|
2818
|
+
Ui as b0,
|
|
2819
|
+
yn as b1,
|
|
2820
|
+
Os as b2,
|
|
2821
|
+
lr as b3,
|
|
2822
|
+
cr as b4,
|
|
2823
|
+
dr as b5,
|
|
2824
|
+
ur as b6,
|
|
2825
|
+
mr as b7,
|
|
2826
|
+
sn as b8,
|
|
2827
|
+
en as b9,
|
|
2828
|
+
gl as bA,
|
|
2829
|
+
oi as bB,
|
|
2830
|
+
Da as bC,
|
|
2831
|
+
vt as bD,
|
|
2832
|
+
Ua as bE,
|
|
2833
|
+
Oi as bF,
|
|
2834
|
+
Ha as bG,
|
|
2835
|
+
ln as bH,
|
|
2836
|
+
_s as bI,
|
|
2837
|
+
vn as bJ,
|
|
2838
|
+
Hi as bK,
|
|
2839
|
+
wn as bL,
|
|
2840
|
+
Sn as bM,
|
|
2841
|
+
jn as bN,
|
|
2842
|
+
Bn as bO,
|
|
2843
|
+
_n as bP,
|
|
2844
|
+
An as bQ,
|
|
2845
|
+
Yi as bR,
|
|
2846
|
+
Cn as bS,
|
|
2847
|
+
Ki as bT,
|
|
2848
|
+
kn as bU,
|
|
2849
|
+
Nn as bV,
|
|
2850
|
+
qi as bW,
|
|
2851
|
+
Ji as bX,
|
|
2852
|
+
Tn as bY,
|
|
2853
|
+
En as bZ,
|
|
2854
|
+
sl as b_,
|
|
2855
|
+
Pt as ba,
|
|
2856
|
+
Rt as bb,
|
|
2857
|
+
kl as bc,
|
|
2858
|
+
vl as bd,
|
|
2859
|
+
Nl as be,
|
|
2860
|
+
Sl as bf,
|
|
2861
|
+
Ei as bg,
|
|
2862
|
+
za as bh,
|
|
2863
|
+
Va as bi,
|
|
2864
|
+
$a as bj,
|
|
2865
|
+
pn as bk,
|
|
2866
|
+
Vi as bl,
|
|
2867
|
+
oa as bm,
|
|
2868
|
+
bn,
|
|
2869
|
+
nn as bo,
|
|
2870
|
+
rn as bp,
|
|
2871
|
+
cn as bq,
|
|
2872
|
+
dn as br,
|
|
2873
|
+
gn as bs,
|
|
2874
|
+
un as bt,
|
|
2875
|
+
Ga as bu,
|
|
2876
|
+
Wa as bv,
|
|
2877
|
+
ua as bw,
|
|
2878
|
+
xr as bx,
|
|
2879
|
+
hr as by,
|
|
2880
|
+
fl as bz,
|
|
2881
|
+
po as c,
|
|
2882
|
+
al as c0,
|
|
2883
|
+
Ln as c1,
|
|
2884
|
+
zn as c2,
|
|
2885
|
+
Vn as c3,
|
|
2886
|
+
$n as c4,
|
|
2887
|
+
Fn as c5,
|
|
2888
|
+
Hn as c6,
|
|
2889
|
+
Kn as c7,
|
|
2890
|
+
Qn as c8,
|
|
2891
|
+
il as c9,
|
|
2892
|
+
ll as ca,
|
|
2893
|
+
cl as cb,
|
|
2894
|
+
Wn as cc,
|
|
2895
|
+
Gn as cd,
|
|
2896
|
+
dl as ce,
|
|
2897
|
+
sr as cf,
|
|
2898
|
+
ar as cg,
|
|
2899
|
+
or as ch,
|
|
2900
|
+
ml as ci,
|
|
2901
|
+
fr as cj,
|
|
2902
|
+
pr as ck,
|
|
2903
|
+
yr as cl,
|
|
2904
|
+
vr as cm,
|
|
2905
|
+
wr as cn,
|
|
2906
|
+
Nr as co,
|
|
2907
|
+
kr as cp,
|
|
2908
|
+
bl as cq,
|
|
2909
|
+
hl as cr,
|
|
2910
|
+
xl as cs,
|
|
2911
|
+
br as ct,
|
|
2912
|
+
gr as cu,
|
|
2913
|
+
yl as cv,
|
|
2914
|
+
wl as cw,
|
|
2915
|
+
yo as d,
|
|
2916
|
+
xo as e,
|
|
2909
2917
|
Ae as f,
|
|
2910
|
-
|
|
2911
|
-
|
|
2918
|
+
Qr as g,
|
|
2919
|
+
Ko as h,
|
|
2912
2920
|
ve as i,
|
|
2913
2921
|
Ce as j,
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
|
|
2922
|
+
pi as k,
|
|
2923
|
+
vi as l,
|
|
2924
|
+
va as m,
|
|
2925
|
+
xa as n,
|
|
2926
|
+
xi as o,
|
|
2927
|
+
xt as p,
|
|
2920
2928
|
Q as q,
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
|
|
2928
|
-
|
|
2929
|
-
|
|
2929
|
+
Bo as r,
|
|
2930
|
+
ga as s,
|
|
2931
|
+
ht as t,
|
|
2932
|
+
Jt as u,
|
|
2933
|
+
Xr as v,
|
|
2934
|
+
ei as w,
|
|
2935
|
+
Qo as x,
|
|
2936
|
+
li as y,
|
|
2937
|
+
Pi as z
|
|
2930
2938
|
};
|