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