@levo-so/site-runtime 0.2.2 → 0.2.3
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/CollectionField-CzS-34zx.js +270 -0
- package/DateTimeWidget-C1jHOtz7.js +255 -0
- package/Dialog-CzVhHLEY.js +145 -0
- package/KBChatWidget-h3xW6Q4I.js +1067 -0
- package/{PhoneWidget-vtDO9CFq.js → PhoneWidget-_nw97rkI.js} +5 -5
- package/{Popover-B76-bN-a.js → Popover-q5dL7y0W.js} +1 -1
- package/PopupRenderer-Bncp54gB-DuCULkBK.js +3514 -0
- package/RichTextWidget-D-mGlES0.js +758 -0
- package/ThemeProvider-BQmIB5tr.js +116 -0
- package/Tooltip-BIgrpetu.js +67 -0
- package/VerifyButton-BkP98H17.js +191 -0
- package/dist-CJknSbJK.js +80 -0
- package/dist-DBbiX2ST.js +3556 -0
- package/index.d.ts +146 -13
- package/index.js +717 -4219
- package/inlineBaseTheme-DS-AfUHi.js +9 -0
- package/inlineCollectionTheme-D2w17LHX.js +86 -0
- package/kbChat-DHujgETt.js +163 -0
- package/nodeAlignment-Cn6xNtOP.js +166 -0
- package/package.json +15 -3
- package/pillChrome-DWHpfbDk.js +16 -0
- package/popups.d.ts +47 -0
- package/popups.js +5 -0
- package/rolldown-runtime-CAFD8bLK.js +11 -0
- package/styles.css +1 -1
- package/theme.cssm-2YTdd8Yh.js +15 -0
- package/DateTimeWidget-CARoq7bQ.js +0 -254
- package/RichTextWidget-CafZBEKI.js +0 -912
- package/ThemeProvider-Cm2jJC7a.js +0 -381
- package/Tooltip-Bx-BfR7T.js +0 -78
- package/VerifyButton-D1Mwk04d.js +0 -299
- /package/{CollectionInput-5QMoXahu.js → CollectionInput-B1qV4QEH.js} +0 -0
|
@@ -0,0 +1,758 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { n as e, r as t } from "./ThemeProvider-BQmIB5tr.js";
|
|
3
|
+
import { t as n } from "./theme.cssm-2YTdd8Yh.js";
|
|
4
|
+
import { n as r, r as i, t as a } from "./CollectionField-CzS-34zx.js";
|
|
5
|
+
import { i as o, n as s, r as c, t as l } from "./Tooltip-BIgrpetu.js";
|
|
6
|
+
import { i as u, n as d, r as f, t as p } from "./nodeAlignment-Cn6xNtOP.js";
|
|
7
|
+
import { a as m, i as h, n as g, o as _, r as v } from "./Popover-q5dL7y0W.js";
|
|
8
|
+
import { forwardRef as y, useEffect as b, useState as x } from "react";
|
|
9
|
+
import { Fragment as S, jsx as C, jsxs as w } from "react/jsx-runtime";
|
|
10
|
+
import { useController as ee } from "react-hook-form";
|
|
11
|
+
import { c as T } from "react/compiler-runtime";
|
|
12
|
+
import te from "clsx";
|
|
13
|
+
import { IconAlignCenter as ne, IconAlignJustified as re, IconAlignLeft as E, IconAlignRight as D, IconArrowBackUp as O, IconArrowForwardUp as k, IconBold as A, IconChevronDown as j, IconCode as M, IconCornerDownLeft as ie, IconExternalLink as ae, IconH1 as N, IconH2 as P, IconH3 as F, IconH4 as I, IconH5 as L, IconH6 as R, IconItalic as z, IconLink as oe, IconList as B, IconListNumbers as se, IconPencil as V, IconPilcrow as H, IconRotate2 as U, IconStrikethrough as W, IconSubscript as G, IconSuperscript as K, IconTrash as ce, IconUnderline as q } from "@tabler/icons-react";
|
|
14
|
+
import { Subscript as J } from "@tiptap/extension-subscript";
|
|
15
|
+
import { Superscript as Y } from "@tiptap/extension-superscript";
|
|
16
|
+
import { Typography as X } from "@tiptap/extension-typography";
|
|
17
|
+
import { UniqueID as Z } from "@tiptap/extension-unique-id";
|
|
18
|
+
import { AllSelection as le, NodeSelection as ue, TextSelection as de } from "@tiptap/pm/state";
|
|
19
|
+
import { Placeholder as fe, Selection as pe } from "@tiptap/extensions";
|
|
20
|
+
import { StarterKit as me } from "@tiptap/starter-kit";
|
|
21
|
+
import { EditorContent as he, EditorContext as ge, useCurrentEditor as _e, useEditor as ve, useEditorState as Q } from "@tiptap/react";
|
|
22
|
+
//#region ../../libraries/editor-core/dist/theme/RteThemeProvider.js
|
|
23
|
+
var ye = (t) => {
|
|
24
|
+
let r = T(7), { children: i, theme: a } = t, o = a?.className, s;
|
|
25
|
+
r[0] === o ? s = r[1] : (s = te(n, f, o), r[0] = o, r[1] = s);
|
|
26
|
+
let c = a?.style, l = a?.portalToThemeRoot, u;
|
|
27
|
+
return r[2] !== i || r[3] !== s || r[4] !== c || r[5] !== l ? (u = /* @__PURE__ */ C(e, {
|
|
28
|
+
className: s,
|
|
29
|
+
style: c,
|
|
30
|
+
portalToThemeRoot: l,
|
|
31
|
+
children: i
|
|
32
|
+
}), r[2] = i, r[3] = s, r[4] = c, r[5] = l, r[6] = u) : u = r[6], u;
|
|
33
|
+
}, be = (e = { placeholder: "Write something ..." }) => [
|
|
34
|
+
me.configure({
|
|
35
|
+
blockquote: !1,
|
|
36
|
+
codeBlock: !1,
|
|
37
|
+
horizontalRule: !1,
|
|
38
|
+
dropcursor: { width: 2 },
|
|
39
|
+
link: {
|
|
40
|
+
openOnClick: !1,
|
|
41
|
+
HTMLAttributes: { target: "_blank" }
|
|
42
|
+
}
|
|
43
|
+
}),
|
|
44
|
+
fe.configure({ placeholder: e?.placeholder }),
|
|
45
|
+
X,
|
|
46
|
+
pe,
|
|
47
|
+
Y,
|
|
48
|
+
J,
|
|
49
|
+
p,
|
|
50
|
+
Z.configure({ types: [
|
|
51
|
+
"paragraph",
|
|
52
|
+
"heading",
|
|
53
|
+
"bulletList",
|
|
54
|
+
"orderedList"
|
|
55
|
+
] })
|
|
56
|
+
], xe = "_261ja30", Se = "_261ja31", $ = y((e, n) => {
|
|
57
|
+
let r = T(27), i, a, o, u, d, f, p;
|
|
58
|
+
r[0] === e ? (i = r[1], a = r[2], o = r[3], u = r[4], d = r[5], f = r[6], p = r[7]) : ({label: u, Icon: i, isActive: o, iconSize: f, trailing: p, className: a, ...d} = e, r[0] = e, r[1] = i, r[2] = a, r[3] = o, r[4] = u, r[5] = d, r[6] = f, r[7] = p);
|
|
59
|
+
let m = f === void 0 ? 16 : f, h = o || void 0, g = o && "_1vaxhty0", _;
|
|
60
|
+
r[8] !== a || r[9] !== g ? (_ = te(g, a), r[8] = a, r[9] = g, r[10] = _) : _ = r[10];
|
|
61
|
+
let v;
|
|
62
|
+
r[11] !== i || r[12] !== m ? (v = /* @__PURE__ */ C(i, { size: m }), r[11] = i, r[12] = m, r[13] = v) : v = r[13];
|
|
63
|
+
let y;
|
|
64
|
+
r[14] !== u || r[15] !== d || r[16] !== n || r[17] !== h || r[18] !== _ || r[19] !== v || r[20] !== p ? (y = /* @__PURE__ */ C(s, {
|
|
65
|
+
onPointerDown: Ce,
|
|
66
|
+
render: /* @__PURE__ */ w(t, {
|
|
67
|
+
ref: n,
|
|
68
|
+
type: "button",
|
|
69
|
+
variant: "ghost",
|
|
70
|
+
size: "sm",
|
|
71
|
+
tabIndex: -1,
|
|
72
|
+
"aria-label": u,
|
|
73
|
+
"aria-pressed": h,
|
|
74
|
+
className: _,
|
|
75
|
+
...d,
|
|
76
|
+
children: [v, p]
|
|
77
|
+
})
|
|
78
|
+
}), r[14] = u, r[15] = d, r[16] = n, r[17] = h, r[18] = _, r[19] = v, r[20] = p, r[21] = y) : y = r[21];
|
|
79
|
+
let b;
|
|
80
|
+
r[22] === u ? b = r[23] : (b = /* @__PURE__ */ C(c, { children: u }), r[22] = u, r[23] = b);
|
|
81
|
+
let x;
|
|
82
|
+
return r[24] !== y || r[25] !== b ? (x = /* @__PURE__ */ w(l, { children: [y, b] }), r[24] = y, r[25] = b, r[26] = x) : x = r[26], x;
|
|
83
|
+
});
|
|
84
|
+
$.displayName = "ToolbarButton";
|
|
85
|
+
function Ce(e) {
|
|
86
|
+
return e.preventDefault();
|
|
87
|
+
}
|
|
88
|
+
//#endregion
|
|
89
|
+
//#region ../../libraries/react-collection/dist/components/editor/utils.js
|
|
90
|
+
var we = [
|
|
91
|
+
"paragraph",
|
|
92
|
+
"heading",
|
|
93
|
+
"bulletList",
|
|
94
|
+
"orderedList",
|
|
95
|
+
"taskList",
|
|
96
|
+
"codeBlock"
|
|
97
|
+
], Te = [
|
|
98
|
+
"tableCell",
|
|
99
|
+
"tableHeader",
|
|
100
|
+
"quoteCaption",
|
|
101
|
+
"detailsSummary"
|
|
102
|
+
], Ee = (e) => {
|
|
103
|
+
if (!e) return !1;
|
|
104
|
+
let { $from: t } = e.state.selection;
|
|
105
|
+
for (let e = t.depth; e > 0; e--) if (Te.includes(t.node(e).type.name)) return !0;
|
|
106
|
+
return !1;
|
|
107
|
+
}, De = (e, t) => {
|
|
108
|
+
if (!e || t.length === 0) return !1;
|
|
109
|
+
let { selection: n } = e.state, r = new Set(t);
|
|
110
|
+
if (n instanceof ue) {
|
|
111
|
+
let e = n.node?.type?.name;
|
|
112
|
+
return !!e && r.has(e);
|
|
113
|
+
}
|
|
114
|
+
if (n instanceof de || n instanceof le) {
|
|
115
|
+
let t = !0;
|
|
116
|
+
return e.state.doc.nodesBetween(n.from, n.to, (e) => e.isTextblock && !r.has(e.type.name) ? (t = !1, !1) : t), t;
|
|
117
|
+
}
|
|
118
|
+
return !1;
|
|
119
|
+
}, Oe = /[\0-\x20\xA0\u1680\u180E\u2000-\u2029\u205F\u3000]/g, ke = [
|
|
120
|
+
"http",
|
|
121
|
+
"https",
|
|
122
|
+
"ftp",
|
|
123
|
+
"ftps",
|
|
124
|
+
"mailto",
|
|
125
|
+
"tel",
|
|
126
|
+
"callto",
|
|
127
|
+
"sms"
|
|
128
|
+
], Ae = (e, t) => {
|
|
129
|
+
try {
|
|
130
|
+
let n = new URL(e, t), r = n.href.replace(Oe, ""), i = RegExp(`^(?:(?:${ke.join("|")}):|[^a-z]|[a-z0-9+.\\-]+(?:[^a-z+.\\-:]|$))`, "i");
|
|
131
|
+
if (r.match(i)) return n.href;
|
|
132
|
+
} catch {}
|
|
133
|
+
return "#";
|
|
134
|
+
}, je = (e, t = []) => {
|
|
135
|
+
let { tr: n } = e.state, { selection: r } = n;
|
|
136
|
+
return r.empty ? !1 : (r.ranges.forEach((e) => {
|
|
137
|
+
n.doc.nodesBetween(e.$from.pos, e.$to.pos, (e, r) => (e.isInline && e.marks.forEach((i) => {
|
|
138
|
+
t.includes(i.type.name) || n.removeMark(r, r + e.nodeSize, i.type);
|
|
139
|
+
}), !0));
|
|
140
|
+
}), e.view.dispatch(n), e.commands.focus(), !0);
|
|
141
|
+
}, Me = (e) => {
|
|
142
|
+
let { selection: t } = e.state;
|
|
143
|
+
if (t.empty) return !1;
|
|
144
|
+
for (let n of t.ranges) {
|
|
145
|
+
let t = !1;
|
|
146
|
+
if (e.state.doc.nodesBetween(n.$from.pos, n.$to.pos, (e) => e.isInline && e.marks.length > 0 ? (t = !0, !1) : !0), t) return !0;
|
|
147
|
+
}
|
|
148
|
+
return !1;
|
|
149
|
+
}, Ne = "j67x6z0", Pe = "j67x6z1", Fe = "_5pk5r80", Ie = (e) => {
|
|
150
|
+
let t = T(50), { editor: n } = e, [r, i] = x(!1), { isActive: a, currentUrl: o } = Q({
|
|
151
|
+
editor: n,
|
|
152
|
+
selector: Le
|
|
153
|
+
}) ?? {
|
|
154
|
+
isActive: !1,
|
|
155
|
+
currentUrl: ""
|
|
156
|
+
}, [u, d] = x(o), f, p;
|
|
157
|
+
t[0] !== o || t[1] !== r ? (f = () => {
|
|
158
|
+
r && d(o);
|
|
159
|
+
}, p = [r, o], t[0] = o, t[1] = r, t[2] = f, t[3] = p) : (f = t[2], p = t[3]), b(f, p);
|
|
160
|
+
let y;
|
|
161
|
+
t[4] !== n || t[5] !== u ? (y = () => {
|
|
162
|
+
u && (n.chain().focus().extendMarkRange("link").setLink({ href: u }).run(), i(!1));
|
|
163
|
+
}, t[4] = n, t[5] = u, t[6] = y) : y = t[6];
|
|
164
|
+
let S = y, ee;
|
|
165
|
+
t[7] === n ? ee = t[8] : (ee = () => {
|
|
166
|
+
n.chain().focus().extendMarkRange("link").unsetLink().run(), d(""), i(!1);
|
|
167
|
+
}, t[7] = n, t[8] = ee);
|
|
168
|
+
let te = ee, ne;
|
|
169
|
+
t[9] === u ? ne = t[10] : (ne = () => {
|
|
170
|
+
let e = Ae(u, window.location.href);
|
|
171
|
+
e !== "#" && window.open(e, "_blank", "noopener,noreferrer");
|
|
172
|
+
}, t[9] = u, t[10] = ne);
|
|
173
|
+
let re = ne, E;
|
|
174
|
+
t[11] === Symbol.for("react.memo_cache_sentinel") ? (E = (e) => {
|
|
175
|
+
e.preventDefault(), i(!0);
|
|
176
|
+
}, t[11] = E) : E = t[11];
|
|
177
|
+
let D;
|
|
178
|
+
t[12] === a ? D = t[13] : (D = /* @__PURE__ */ C(_, {
|
|
179
|
+
onPointerDown: Re,
|
|
180
|
+
render: /* @__PURE__ */ C($, {
|
|
181
|
+
label: "Link",
|
|
182
|
+
Icon: oe,
|
|
183
|
+
isActive: a,
|
|
184
|
+
onClick: E
|
|
185
|
+
})
|
|
186
|
+
}), t[12] = a, t[13] = D);
|
|
187
|
+
let O;
|
|
188
|
+
t[14] === Symbol.for("react.memo_cache_sentinel") ? (O = (e) => d(e.target.value), t[14] = O) : O = t[14];
|
|
189
|
+
let k;
|
|
190
|
+
t[15] === S ? k = t[16] : (k = (e) => {
|
|
191
|
+
e.key === "Enter" && (e.preventDefault(), S());
|
|
192
|
+
}, t[15] = S, t[16] = k);
|
|
193
|
+
let A;
|
|
194
|
+
t[17] !== k || t[18] !== u ? (A = /* @__PURE__ */ C("input", {
|
|
195
|
+
className: Pe,
|
|
196
|
+
value: u,
|
|
197
|
+
onChange: O,
|
|
198
|
+
onKeyDown: k,
|
|
199
|
+
placeholder: "Paste a link..."
|
|
200
|
+
}), t[17] = k, t[18] = u, t[19] = A) : A = t[19];
|
|
201
|
+
let j = !u && !a, M;
|
|
202
|
+
t[20] === Symbol.for("react.memo_cache_sentinel") ? (M = /* @__PURE__ */ C(ie, { size: 16 }), t[20] = M) : M = t[20];
|
|
203
|
+
let N;
|
|
204
|
+
t[21] !== S || t[22] !== j ? (N = /* @__PURE__ */ C(s, { render: /* @__PURE__ */ C("button", {
|
|
205
|
+
type: "button",
|
|
206
|
+
className: Fe,
|
|
207
|
+
onClick: S,
|
|
208
|
+
disabled: j,
|
|
209
|
+
"aria-label": "Apply link",
|
|
210
|
+
children: M
|
|
211
|
+
}) }), t[21] = S, t[22] = j, t[23] = N) : N = t[23];
|
|
212
|
+
let P;
|
|
213
|
+
t[24] === Symbol.for("react.memo_cache_sentinel") ? (P = /* @__PURE__ */ C(c, { children: "Apply link" }), t[24] = P) : P = t[24];
|
|
214
|
+
let F;
|
|
215
|
+
t[25] === N ? F = t[26] : (F = /* @__PURE__ */ w(l, { children: [N, P] }), t[25] = N, t[26] = F);
|
|
216
|
+
let I = !u && !a, L;
|
|
217
|
+
t[27] === Symbol.for("react.memo_cache_sentinel") ? (L = /* @__PURE__ */ C(ae, { size: 16 }), t[27] = L) : L = t[27];
|
|
218
|
+
let R;
|
|
219
|
+
t[28] !== re || t[29] !== I ? (R = /* @__PURE__ */ C(s, { render: /* @__PURE__ */ C("button", {
|
|
220
|
+
type: "button",
|
|
221
|
+
className: Fe,
|
|
222
|
+
onClick: re,
|
|
223
|
+
disabled: I,
|
|
224
|
+
"aria-label": "Open in new window",
|
|
225
|
+
children: L
|
|
226
|
+
}) }), t[28] = re, t[29] = I, t[30] = R) : R = t[30];
|
|
227
|
+
let z;
|
|
228
|
+
t[31] === Symbol.for("react.memo_cache_sentinel") ? (z = /* @__PURE__ */ C(c, { children: "Open in new window" }), t[31] = z) : z = t[31];
|
|
229
|
+
let B;
|
|
230
|
+
t[32] === R ? B = t[33] : (B = /* @__PURE__ */ w(l, { children: [R, z] }), t[32] = R, t[33] = B);
|
|
231
|
+
let se = !u && !a, V;
|
|
232
|
+
t[34] === Symbol.for("react.memo_cache_sentinel") ? (V = /* @__PURE__ */ C(ce, { size: 16 }), t[34] = V) : V = t[34];
|
|
233
|
+
let H;
|
|
234
|
+
t[35] !== te || t[36] !== se ? (H = /* @__PURE__ */ C(s, { render: /* @__PURE__ */ C("button", {
|
|
235
|
+
type: "button",
|
|
236
|
+
className: Fe,
|
|
237
|
+
onClick: te,
|
|
238
|
+
disabled: se,
|
|
239
|
+
"aria-label": "Remove link",
|
|
240
|
+
children: V
|
|
241
|
+
}) }), t[35] = te, t[36] = se, t[37] = H) : H = t[37];
|
|
242
|
+
let U;
|
|
243
|
+
t[38] === Symbol.for("react.memo_cache_sentinel") ? (U = /* @__PURE__ */ C(c, { children: "Remove link" }), t[38] = U) : U = t[38];
|
|
244
|
+
let W;
|
|
245
|
+
t[39] === H ? W = t[40] : (W = /* @__PURE__ */ w(l, { children: [H, U] }), t[39] = H, t[40] = W);
|
|
246
|
+
let G;
|
|
247
|
+
t[41] !== A || t[42] !== F || t[43] !== B || t[44] !== W ? (G = /* @__PURE__ */ C(h, { children: /* @__PURE__ */ C(v, {
|
|
248
|
+
side: "bottom",
|
|
249
|
+
align: "center",
|
|
250
|
+
children: /* @__PURE__ */ w(m.Popup, {
|
|
251
|
+
className: Ne,
|
|
252
|
+
children: [
|
|
253
|
+
A,
|
|
254
|
+
F,
|
|
255
|
+
B,
|
|
256
|
+
W
|
|
257
|
+
]
|
|
258
|
+
})
|
|
259
|
+
}) }), t[41] = A, t[42] = F, t[43] = B, t[44] = W, t[45] = G) : G = t[45];
|
|
260
|
+
let K;
|
|
261
|
+
return t[46] !== r || t[47] !== G || t[48] !== D ? (K = /* @__PURE__ */ w(g, {
|
|
262
|
+
open: r,
|
|
263
|
+
onOpenChange: i,
|
|
264
|
+
children: [D, G]
|
|
265
|
+
}), t[46] = r, t[47] = G, t[48] = D, t[49] = K) : K = t[49], K;
|
|
266
|
+
};
|
|
267
|
+
function Le(e) {
|
|
268
|
+
let { editor: t } = e;
|
|
269
|
+
return {
|
|
270
|
+
isActive: t.isActive("link"),
|
|
271
|
+
currentUrl: t.getAttributes("link")?.href ?? ""
|
|
272
|
+
};
|
|
273
|
+
}
|
|
274
|
+
function Re(e) {
|
|
275
|
+
return e.preventDefault();
|
|
276
|
+
}
|
|
277
|
+
//#endregion
|
|
278
|
+
//#region ../../libraries/react-collection/dist/components/editor/menus/TurnIntoMenu.cssm.js
|
|
279
|
+
var ze = "_1keigwl0", Be = "_1keigwl1 _5pk5r80", Ve = (e) => (t) => t.chain().focus().setHeading({ level: e }).run(), He = [
|
|
280
|
+
{
|
|
281
|
+
type: "paragraph",
|
|
282
|
+
label: "Text",
|
|
283
|
+
Icon: H,
|
|
284
|
+
isActive: (e) => e.isActive("paragraph"),
|
|
285
|
+
canApply: (e) => e.can().setParagraph() || e.can().clearNodes(),
|
|
286
|
+
apply: (e) => e.chain().focus().setParagraph().run()
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
type: "heading_1",
|
|
290
|
+
label: "Heading 1",
|
|
291
|
+
Icon: N,
|
|
292
|
+
isActive: (e) => e.isActive("heading", { level: 1 }),
|
|
293
|
+
canApply: (e) => e.can().setHeading({ level: 1 }) || e.can().clearNodes(),
|
|
294
|
+
apply: Ve(1)
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
type: "heading_2",
|
|
298
|
+
label: "Heading 2",
|
|
299
|
+
Icon: P,
|
|
300
|
+
isActive: (e) => e.isActive("heading", { level: 2 }),
|
|
301
|
+
canApply: (e) => e.can().setHeading({ level: 2 }) || e.can().clearNodes(),
|
|
302
|
+
apply: Ve(2)
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
type: "heading_3",
|
|
306
|
+
label: "Heading 3",
|
|
307
|
+
Icon: F,
|
|
308
|
+
isActive: (e) => e.isActive("heading", { level: 3 }),
|
|
309
|
+
canApply: (e) => e.can().setHeading({ level: 3 }) || e.can().clearNodes(),
|
|
310
|
+
apply: Ve(3)
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
type: "heading_4",
|
|
314
|
+
label: "Heading 4",
|
|
315
|
+
Icon: I,
|
|
316
|
+
isActive: (e) => e.isActive("heading", { level: 4 }),
|
|
317
|
+
canApply: (e) => e.can().setHeading({ level: 4 }) || e.can().clearNodes(),
|
|
318
|
+
apply: Ve(4)
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
type: "heading_5",
|
|
322
|
+
label: "Heading 5",
|
|
323
|
+
Icon: L,
|
|
324
|
+
isActive: (e) => e.isActive("heading", { level: 5 }),
|
|
325
|
+
canApply: (e) => e.can().setHeading({ level: 5 }) || e.can().clearNodes(),
|
|
326
|
+
apply: Ve(5)
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
type: "heading_6",
|
|
330
|
+
label: "Heading 6",
|
|
331
|
+
Icon: R,
|
|
332
|
+
isActive: (e) => e.isActive("heading", { level: 6 }),
|
|
333
|
+
canApply: (e) => e.can().setHeading({ level: 6 }) || e.can().clearNodes(),
|
|
334
|
+
apply: Ve(6)
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
type: "bulletList",
|
|
338
|
+
label: "Bullet List",
|
|
339
|
+
Icon: B,
|
|
340
|
+
isActive: (e) => e.isActive("bulletList"),
|
|
341
|
+
canApply: (e) => e.can().toggleBulletList() || e.can().clearNodes(),
|
|
342
|
+
apply: (e) => e.chain().focus().toggleBulletList().run()
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
type: "orderedList",
|
|
346
|
+
label: "Ordered List",
|
|
347
|
+
Icon: se,
|
|
348
|
+
isActive: (e) => e.isActive("orderedList"),
|
|
349
|
+
canApply: (e) => e.can().toggleOrderedList() || e.can().clearNodes(),
|
|
350
|
+
apply: (e) => e.chain().focus().toggleOrderedList().run()
|
|
351
|
+
}
|
|
352
|
+
], Ue = (e) => {
|
|
353
|
+
let t = T(19), { editor: n } = e, [r, i] = x(!1), { activeBlock: a, canConvert: o, structural: s } = Q({
|
|
354
|
+
editor: n,
|
|
355
|
+
selector: We
|
|
356
|
+
}) ?? {
|
|
357
|
+
activeBlock: null,
|
|
358
|
+
canConvert: !1,
|
|
359
|
+
structural: !1
|
|
360
|
+
}, c = a?.Icon ?? V, l = a?.label ?? "Turn Into", u = s || !o, d, f;
|
|
361
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ C(j, { size: 12 }), f = (e) => {
|
|
362
|
+
e.preventDefault(), i(!0);
|
|
363
|
+
}, t[0] = d, t[1] = f) : (d = t[0], f = t[1]);
|
|
364
|
+
let p;
|
|
365
|
+
t[2] !== c || t[3] !== u || t[4] !== l ? (p = /* @__PURE__ */ C(_, {
|
|
366
|
+
onPointerDown: Ge,
|
|
367
|
+
render: /* @__PURE__ */ C($, {
|
|
368
|
+
label: l,
|
|
369
|
+
Icon: c,
|
|
370
|
+
disabled: u,
|
|
371
|
+
trailing: d,
|
|
372
|
+
onClick: f
|
|
373
|
+
})
|
|
374
|
+
}), t[2] = c, t[3] = u, t[4] = l, t[5] = p) : p = t[5];
|
|
375
|
+
let y;
|
|
376
|
+
if (t[6] !== a?.type || t[7] !== n) {
|
|
377
|
+
let e;
|
|
378
|
+
t[9] === a?.type ? e = t[10] : (e = (e) => a?.type !== e.type, t[9] = a?.type, t[10] = e);
|
|
379
|
+
let r;
|
|
380
|
+
t[11] === n ? r = t[12] : (r = (e) => /* @__PURE__ */ w("button", {
|
|
381
|
+
type: "button",
|
|
382
|
+
className: Be,
|
|
383
|
+
disabled: !e.canApply(n),
|
|
384
|
+
onClick: () => {
|
|
385
|
+
e.apply(n), i(!1);
|
|
386
|
+
},
|
|
387
|
+
children: [/* @__PURE__ */ C(e.Icon, { size: 16 }), /* @__PURE__ */ C("span", { children: e.label })]
|
|
388
|
+
}, e.type), t[11] = n, t[12] = r), y = He.filter(e).map(r), t[6] = a?.type, t[7] = n, t[8] = y;
|
|
389
|
+
} else y = t[8];
|
|
390
|
+
let b;
|
|
391
|
+
t[13] === y ? b = t[14] : (b = /* @__PURE__ */ C(h, { children: /* @__PURE__ */ C(v, {
|
|
392
|
+
side: "bottom",
|
|
393
|
+
align: "start",
|
|
394
|
+
children: /* @__PURE__ */ C(m.Popup, {
|
|
395
|
+
className: ze,
|
|
396
|
+
children: y
|
|
397
|
+
})
|
|
398
|
+
}) }), t[13] = y, t[14] = b);
|
|
399
|
+
let S;
|
|
400
|
+
return t[15] !== r || t[16] !== p || t[17] !== b ? (S = /* @__PURE__ */ w(g, {
|
|
401
|
+
open: r,
|
|
402
|
+
onOpenChange: i,
|
|
403
|
+
children: [p, b]
|
|
404
|
+
}), t[15] = r, t[16] = p, t[17] = b, t[18] = S) : S = t[18], S;
|
|
405
|
+
};
|
|
406
|
+
function We(e) {
|
|
407
|
+
let { editor: t } = e;
|
|
408
|
+
return {
|
|
409
|
+
activeBlock: He.find((e) => e.isActive(t)) ?? null,
|
|
410
|
+
canConvert: De(t, we),
|
|
411
|
+
structural: Ee(t)
|
|
412
|
+
};
|
|
413
|
+
}
|
|
414
|
+
function Ge(e) {
|
|
415
|
+
return e.preventDefault();
|
|
416
|
+
}
|
|
417
|
+
//#endregion
|
|
418
|
+
//#region ../../libraries/react-collection/dist/components/editor/Toolbar.js
|
|
419
|
+
var Ke = [
|
|
420
|
+
{
|
|
421
|
+
mark: "bold",
|
|
422
|
+
label: "Bold",
|
|
423
|
+
Icon: A
|
|
424
|
+
},
|
|
425
|
+
{
|
|
426
|
+
mark: "italic",
|
|
427
|
+
label: "Italic",
|
|
428
|
+
Icon: z
|
|
429
|
+
},
|
|
430
|
+
{
|
|
431
|
+
mark: "underline",
|
|
432
|
+
label: "Underline",
|
|
433
|
+
Icon: q
|
|
434
|
+
},
|
|
435
|
+
{
|
|
436
|
+
mark: "strike",
|
|
437
|
+
label: "Strike",
|
|
438
|
+
Icon: W
|
|
439
|
+
},
|
|
440
|
+
{
|
|
441
|
+
mark: "code",
|
|
442
|
+
label: "Code",
|
|
443
|
+
Icon: M
|
|
444
|
+
}
|
|
445
|
+
], qe = [{
|
|
446
|
+
mark: "superscript",
|
|
447
|
+
label: "Superscript",
|
|
448
|
+
Icon: K
|
|
449
|
+
}, {
|
|
450
|
+
mark: "subscript",
|
|
451
|
+
label: "Subscript",
|
|
452
|
+
Icon: G
|
|
453
|
+
}], Je = [
|
|
454
|
+
{
|
|
455
|
+
align: "left",
|
|
456
|
+
label: "Align left",
|
|
457
|
+
Icon: E
|
|
458
|
+
},
|
|
459
|
+
{
|
|
460
|
+
align: "center",
|
|
461
|
+
label: "Align center",
|
|
462
|
+
Icon: ne
|
|
463
|
+
},
|
|
464
|
+
{
|
|
465
|
+
align: "right",
|
|
466
|
+
label: "Align right",
|
|
467
|
+
Icon: D
|
|
468
|
+
},
|
|
469
|
+
{
|
|
470
|
+
align: "justify",
|
|
471
|
+
label: "Align justify",
|
|
472
|
+
Icon: re
|
|
473
|
+
}
|
|
474
|
+
], Ye = (e) => {
|
|
475
|
+
let t = T(9), { editor: n, mark: r, label: i, Icon: a } = e, { isActive: o, canExecute: s } = Q({
|
|
476
|
+
editor: n,
|
|
477
|
+
selector: (e) => {
|
|
478
|
+
let { editor: t } = e;
|
|
479
|
+
return {
|
|
480
|
+
isActive: t.isActive(r),
|
|
481
|
+
canExecute: t.isEditable && t.can().toggleMark(r)
|
|
482
|
+
};
|
|
483
|
+
}
|
|
484
|
+
}) ?? {
|
|
485
|
+
isActive: !1,
|
|
486
|
+
canExecute: !1
|
|
487
|
+
}, c = !s, l;
|
|
488
|
+
t[0] !== n || t[1] !== r ? (l = () => n.chain().focus().toggleMark(r).run(), t[0] = n, t[1] = r, t[2] = l) : l = t[2];
|
|
489
|
+
let u;
|
|
490
|
+
return t[3] !== a || t[4] !== o || t[5] !== i || t[6] !== c || t[7] !== l ? (u = /* @__PURE__ */ C($, {
|
|
491
|
+
label: i,
|
|
492
|
+
Icon: a,
|
|
493
|
+
isActive: o,
|
|
494
|
+
disabled: c,
|
|
495
|
+
onClick: l
|
|
496
|
+
}), t[3] = a, t[4] = o, t[5] = i, t[6] = c, t[7] = l, t[8] = u) : u = t[8], u;
|
|
497
|
+
}, Xe = (e) => {
|
|
498
|
+
let t = T(9), { editor: n, align: r, label: i, Icon: a } = e, { isActive: o, canExecute: s } = Q({
|
|
499
|
+
editor: n,
|
|
500
|
+
selector: (e) => {
|
|
501
|
+
let { editor: t } = e;
|
|
502
|
+
return {
|
|
503
|
+
isActive: t.isActive({ textAlign: r }),
|
|
504
|
+
canExecute: t.isEditable && t.can().setNodeTextAlign(r)
|
|
505
|
+
};
|
|
506
|
+
}
|
|
507
|
+
}) ?? {
|
|
508
|
+
isActive: !1,
|
|
509
|
+
canExecute: !1
|
|
510
|
+
}, c = !s, l;
|
|
511
|
+
t[0] !== r || t[1] !== n ? (l = () => n.chain().focus().setNodeTextAlign(r).run(), t[0] = r, t[1] = n, t[2] = l) : l = t[2];
|
|
512
|
+
let u;
|
|
513
|
+
return t[3] !== a || t[4] !== o || t[5] !== i || t[6] !== c || t[7] !== l ? (u = /* @__PURE__ */ C($, {
|
|
514
|
+
label: i,
|
|
515
|
+
Icon: a,
|
|
516
|
+
isActive: o,
|
|
517
|
+
disabled: c,
|
|
518
|
+
onClick: l
|
|
519
|
+
}), t[3] = a, t[4] = o, t[5] = i, t[6] = c, t[7] = l, t[8] = u) : u = t[8], u;
|
|
520
|
+
}, Ze = (e) => {
|
|
521
|
+
let t = T(5), { editor: n } = e, r = !(Q({
|
|
522
|
+
editor: n,
|
|
523
|
+
selector: tt
|
|
524
|
+
}) ?? !1), i;
|
|
525
|
+
t[0] === n ? i = t[1] : (i = () => n.chain().focus().undo().run(), t[0] = n, t[1] = i);
|
|
526
|
+
let a;
|
|
527
|
+
return t[2] !== r || t[3] !== i ? (a = /* @__PURE__ */ C($, {
|
|
528
|
+
label: "Undo",
|
|
529
|
+
Icon: O,
|
|
530
|
+
disabled: r,
|
|
531
|
+
onClick: i
|
|
532
|
+
}), t[2] = r, t[3] = i, t[4] = a) : a = t[4], a;
|
|
533
|
+
}, Qe = (e) => {
|
|
534
|
+
let t = T(5), { editor: n } = e, r = !(Q({
|
|
535
|
+
editor: n,
|
|
536
|
+
selector: nt
|
|
537
|
+
}) ?? !1), i;
|
|
538
|
+
t[0] === n ? i = t[1] : (i = () => n.chain().focus().redo().run(), t[0] = n, t[1] = i);
|
|
539
|
+
let a;
|
|
540
|
+
return t[2] !== r || t[3] !== i ? (a = /* @__PURE__ */ C($, {
|
|
541
|
+
label: "Redo",
|
|
542
|
+
Icon: k,
|
|
543
|
+
disabled: r,
|
|
544
|
+
onClick: i
|
|
545
|
+
}), t[2] = r, t[3] = i, t[4] = a) : a = t[4], a;
|
|
546
|
+
}, $e = (e) => {
|
|
547
|
+
let t = T(5), { editor: n } = e, r = !(Q({
|
|
548
|
+
editor: n,
|
|
549
|
+
selector: rt
|
|
550
|
+
}) ?? !1), i;
|
|
551
|
+
t[0] === n ? i = t[1] : (i = () => je(n), t[0] = n, t[1] = i);
|
|
552
|
+
let a;
|
|
553
|
+
return t[2] !== r || t[3] !== i ? (a = /* @__PURE__ */ C($, {
|
|
554
|
+
label: "Reset formatting",
|
|
555
|
+
Icon: U,
|
|
556
|
+
disabled: r,
|
|
557
|
+
onClick: i
|
|
558
|
+
}), t[2] = r, t[3] = i, t[4] = a) : a = t[4], a;
|
|
559
|
+
}, et = (e) => {
|
|
560
|
+
let t = T(33), { children: n } = e, { editor: i } = _e();
|
|
561
|
+
if (!i) return null;
|
|
562
|
+
let a;
|
|
563
|
+
t[0] === i ? a = t[1] : (a = /* @__PURE__ */ C("div", {
|
|
564
|
+
className: Se,
|
|
565
|
+
children: /* @__PURE__ */ C(Ue, { editor: i })
|
|
566
|
+
}), t[0] = i, t[1] = a);
|
|
567
|
+
let o;
|
|
568
|
+
t[2] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ C(r, { orientation: "vertical" }), t[2] = o) : o = t[2];
|
|
569
|
+
let s;
|
|
570
|
+
t[3] === i ? s = t[4] : (s = Ke.map((e) => /* @__PURE__ */ C(Ye, {
|
|
571
|
+
editor: i,
|
|
572
|
+
...e
|
|
573
|
+
}, e.mark)), t[3] = i, t[4] = s);
|
|
574
|
+
let c;
|
|
575
|
+
t[5] === s ? c = t[6] : (c = /* @__PURE__ */ C("div", {
|
|
576
|
+
className: Se,
|
|
577
|
+
children: s
|
|
578
|
+
}), t[5] = s, t[6] = c);
|
|
579
|
+
let l;
|
|
580
|
+
t[7] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ C(r, { orientation: "vertical" }), t[7] = l) : l = t[7];
|
|
581
|
+
let u;
|
|
582
|
+
t[8] === i ? u = t[9] : (u = /* @__PURE__ */ C("div", {
|
|
583
|
+
className: Se,
|
|
584
|
+
children: /* @__PURE__ */ C(Ie, { editor: i })
|
|
585
|
+
}), t[8] = i, t[9] = u);
|
|
586
|
+
let d;
|
|
587
|
+
t[10] === Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ C(r, { orientation: "vertical" }), t[10] = d) : d = t[10];
|
|
588
|
+
let f;
|
|
589
|
+
t[11] === i ? f = t[12] : (f = Je.map((e) => /* @__PURE__ */ C(Xe, {
|
|
590
|
+
editor: i,
|
|
591
|
+
...e
|
|
592
|
+
}, e.align)), t[11] = i, t[12] = f);
|
|
593
|
+
let p;
|
|
594
|
+
t[13] === f ? p = t[14] : (p = /* @__PURE__ */ C("div", {
|
|
595
|
+
className: Se,
|
|
596
|
+
children: f
|
|
597
|
+
}), t[13] = f, t[14] = p);
|
|
598
|
+
let m;
|
|
599
|
+
t[15] === Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ C(r, { orientation: "vertical" }), t[15] = m) : m = t[15];
|
|
600
|
+
let h;
|
|
601
|
+
t[16] === i ? h = t[17] : (h = qe.map((e) => /* @__PURE__ */ C(Ye, {
|
|
602
|
+
editor: i,
|
|
603
|
+
...e
|
|
604
|
+
}, e.mark)), t[16] = i, t[17] = h);
|
|
605
|
+
let g;
|
|
606
|
+
t[18] === h ? g = t[19] : (g = /* @__PURE__ */ C("div", {
|
|
607
|
+
className: Se,
|
|
608
|
+
children: h
|
|
609
|
+
}), t[18] = h, t[19] = g);
|
|
610
|
+
let _;
|
|
611
|
+
t[20] === Symbol.for("react.memo_cache_sentinel") ? (_ = /* @__PURE__ */ C(r, { orientation: "vertical" }), t[20] = _) : _ = t[20];
|
|
612
|
+
let v;
|
|
613
|
+
t[21] === i ? v = t[22] : (v = /* @__PURE__ */ w("div", {
|
|
614
|
+
className: Se,
|
|
615
|
+
children: [
|
|
616
|
+
/* @__PURE__ */ C($e, { editor: i }),
|
|
617
|
+
/* @__PURE__ */ C(Ze, { editor: i }),
|
|
618
|
+
/* @__PURE__ */ C(Qe, { editor: i })
|
|
619
|
+
]
|
|
620
|
+
}), t[21] = i, t[22] = v);
|
|
621
|
+
let y;
|
|
622
|
+
t[23] === n ? y = t[24] : (y = n && /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ C(r, { orientation: "vertical" }), /* @__PURE__ */ C("div", {
|
|
623
|
+
className: "_261ja31",
|
|
624
|
+
children: n
|
|
625
|
+
})] }), t[23] = n, t[24] = y);
|
|
626
|
+
let b;
|
|
627
|
+
return t[25] !== a || t[26] !== g || t[27] !== v || t[28] !== y || t[29] !== c || t[30] !== u || t[31] !== p ? (b = /* @__PURE__ */ w("div", {
|
|
628
|
+
className: xe,
|
|
629
|
+
children: [
|
|
630
|
+
a,
|
|
631
|
+
o,
|
|
632
|
+
c,
|
|
633
|
+
l,
|
|
634
|
+
u,
|
|
635
|
+
d,
|
|
636
|
+
p,
|
|
637
|
+
m,
|
|
638
|
+
g,
|
|
639
|
+
_,
|
|
640
|
+
v,
|
|
641
|
+
y
|
|
642
|
+
]
|
|
643
|
+
}), t[25] = a, t[26] = g, t[27] = v, t[28] = y, t[29] = c, t[30] = u, t[31] = p, t[32] = b) : b = t[32], b;
|
|
644
|
+
};
|
|
645
|
+
function tt(e) {
|
|
646
|
+
let { editor: t } = e;
|
|
647
|
+
return t.isEditable && t.can().undo();
|
|
648
|
+
}
|
|
649
|
+
function nt(e) {
|
|
650
|
+
let { editor: t } = e;
|
|
651
|
+
return t.isEditable && t.can().redo();
|
|
652
|
+
}
|
|
653
|
+
function rt(e) {
|
|
654
|
+
let { editor: t } = e;
|
|
655
|
+
return t.isEditable && Me(t);
|
|
656
|
+
}
|
|
657
|
+
//#endregion
|
|
658
|
+
//#region ../../libraries/react-collection/dist/widgets/richTextWidget/RichTextWidget.cssm.js
|
|
659
|
+
var it = "_1vx76w30", at = "_1vx76w33", ot = "_1vx76w34", st = { style: d({ baseSpacing: ".875rem" }) }, ct = (e) => {
|
|
660
|
+
let t = T(58), { field: n } = e, [s, c] = x(!1), { key: l, label: d, helper_text: f, readonly: p, placeholder: m } = n, h = l === void 0 ? "" : l, g = d === void 0 ? "" : d, _ = f === void 0 ? "" : f, v = p === void 0 ? !1 : p, y;
|
|
661
|
+
t[0] === n ? y = t[1] : (y = i(n), t[0] = n, t[1] = y);
|
|
662
|
+
let S;
|
|
663
|
+
t[2] !== h || t[3] !== y ? (S = {
|
|
664
|
+
name: h,
|
|
665
|
+
rules: y
|
|
666
|
+
}, t[2] = h, t[3] = y, t[4] = S) : S = t[4];
|
|
667
|
+
let { field: ne, fieldState: re } = ee(S), { value: E, onBlur: D, onChange: O, disabled: k } = ne, A = m || "Write something ...", j;
|
|
668
|
+
t[5] === A ? j = t[6] : (j = be({ placeholder: A }), t[5] = A, t[6] = j);
|
|
669
|
+
let M = E || "", ie = !k && !v, ae;
|
|
670
|
+
t[7] === Symbol.for("react.memo_cache_sentinel") ? (ae = { attributes: {
|
|
671
|
+
autocomplete: "off",
|
|
672
|
+
autocorrect: "off",
|
|
673
|
+
autocapitalize: "off",
|
|
674
|
+
class: u
|
|
675
|
+
} }, t[7] = ae) : ae = t[7];
|
|
676
|
+
let N;
|
|
677
|
+
t[8] === O ? N = t[9] : (N = (e) => {
|
|
678
|
+
let { editor: t } = e;
|
|
679
|
+
return O(t.getHTML());
|
|
680
|
+
}, t[8] = O, t[9] = N);
|
|
681
|
+
let P;
|
|
682
|
+
t[10] !== M || t[11] !== ie || t[12] !== N || t[13] !== j ? (P = {
|
|
683
|
+
extensions: j,
|
|
684
|
+
content: M,
|
|
685
|
+
editable: ie,
|
|
686
|
+
editorProps: ae,
|
|
687
|
+
onUpdate: N,
|
|
688
|
+
immediatelyRender: !1
|
|
689
|
+
}, t[10] = M, t[11] = ie, t[12] = N, t[13] = j, t[14] = P) : P = t[14];
|
|
690
|
+
let F = ve(P), I;
|
|
691
|
+
t[15] !== F || t[16] !== s || t[17] !== E ? (I = () => {
|
|
692
|
+
F?.commands && !s && (F.commands.setContent(E || "", { emitUpdate: !1 }), c(!0));
|
|
693
|
+
}, t[15] = F, t[16] = s, t[17] = E, t[18] = I) : I = t[18];
|
|
694
|
+
let L;
|
|
695
|
+
t[19] === E ? L = t[20] : (L = [E], t[19] = E, t[20] = L), b(I, L);
|
|
696
|
+
let R, z;
|
|
697
|
+
t[21] !== k || t[22] !== F || t[23] !== v ? (R = () => {
|
|
698
|
+
F && F.setEditable(!k && !v, !1);
|
|
699
|
+
}, z = [
|
|
700
|
+
F,
|
|
701
|
+
k,
|
|
702
|
+
v
|
|
703
|
+
], t[21] = k, t[22] = F, t[23] = v, t[24] = R, t[25] = z) : (R = t[24], z = t[25]), b(R, z);
|
|
704
|
+
let oe, B;
|
|
705
|
+
t[26] !== F || t[27] !== D ? (oe = () => {
|
|
706
|
+
if (F) return F.on("blur", D), () => {
|
|
707
|
+
F.off("blur", D);
|
|
708
|
+
};
|
|
709
|
+
}, B = [F, D], t[26] = F, t[27] = D, t[28] = oe, t[29] = B) : (oe = t[28], B = t[29]), b(oe, B);
|
|
710
|
+
let se = re?.error?.message, V = !!n?.required, H = k && "_1vx76w31", U = v && "_1vx76w32", W;
|
|
711
|
+
t[30] !== H || t[31] !== U ? (W = te(it, H, U), t[30] = H, t[31] = U, t[32] = W) : W = t[32];
|
|
712
|
+
let G;
|
|
713
|
+
t[33] === F ? G = t[34] : (G = { editor: F }, t[33] = F, t[34] = G);
|
|
714
|
+
let K, ce;
|
|
715
|
+
t[35] === Symbol.for("react.memo_cache_sentinel") ? (K = /* @__PURE__ */ C(et, {}), ce = /* @__PURE__ */ C(r, { orientation: "horizontal" }), t[35] = K, t[36] = ce) : (K = t[35], ce = t[36]);
|
|
716
|
+
let q;
|
|
717
|
+
t[37] === F?.commands ? q = t[38] : (q = () => F?.commands.focus(), t[37] = F?.commands, t[38] = q);
|
|
718
|
+
let J;
|
|
719
|
+
t[39] === F ? J = t[40] : (J = /* @__PURE__ */ C(he, { editor: F }), t[39] = F, t[40] = J);
|
|
720
|
+
let Y;
|
|
721
|
+
t[41] !== q || t[42] !== J ? (Y = /* @__PURE__ */ w("div", {
|
|
722
|
+
className: at,
|
|
723
|
+
children: [
|
|
724
|
+
K,
|
|
725
|
+
ce,
|
|
726
|
+
/* @__PURE__ */ C("div", {
|
|
727
|
+
className: ot,
|
|
728
|
+
onClick: q,
|
|
729
|
+
children: J
|
|
730
|
+
})
|
|
731
|
+
]
|
|
732
|
+
}), t[41] = q, t[42] = J, t[43] = Y) : Y = t[43];
|
|
733
|
+
let X;
|
|
734
|
+
t[44] !== G || t[45] !== Y ? (X = /* @__PURE__ */ C(ye, {
|
|
735
|
+
theme: st,
|
|
736
|
+
children: /* @__PURE__ */ C(o, { children: /* @__PURE__ */ C(ge.Provider, {
|
|
737
|
+
value: G,
|
|
738
|
+
children: Y
|
|
739
|
+
}) })
|
|
740
|
+
}), t[44] = G, t[45] = Y, t[46] = X) : X = t[46];
|
|
741
|
+
let Z;
|
|
742
|
+
t[47] !== W || t[48] !== X ? (Z = /* @__PURE__ */ C("div", {
|
|
743
|
+
className: W,
|
|
744
|
+
children: X
|
|
745
|
+
}), t[47] = W, t[48] = X, t[49] = Z) : Z = t[49];
|
|
746
|
+
let le;
|
|
747
|
+
return t[50] !== _ || t[51] !== h || t[52] !== g || t[53] !== v || t[54] !== se || t[55] !== V || t[56] !== Z ? (le = /* @__PURE__ */ C(a, {
|
|
748
|
+
error: se,
|
|
749
|
+
helperText: _,
|
|
750
|
+
readOnly: v,
|
|
751
|
+
label: g,
|
|
752
|
+
htmlFor: h,
|
|
753
|
+
isRequired: V,
|
|
754
|
+
children: Z
|
|
755
|
+
}), t[50] = _, t[51] = h, t[52] = g, t[53] = v, t[54] = se, t[55] = V, t[56] = Z, t[57] = le) : le = t[57], le;
|
|
756
|
+
};
|
|
757
|
+
//#endregion
|
|
758
|
+
export { ct as RichTextWidget, ct as default };
|