@levo-so/site-runtime 0.3.1 → 0.3.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/CollectionField-C-6a1ud4.js +270 -0
  2. package/{CollectionInput-B1qV4QEH.js → CollectionInput-BJ__qcbk.js} +40 -40
  3. package/DateTimeWidget-hFjcn3o6.js +255 -0
  4. package/Dialog-dT7y641z.js +130 -0
  5. package/KBChatWidget-ClHFDgJ5.js +1026 -0
  6. package/LevoProvider-Bsjkcwc8.js +20 -0
  7. package/PhoneWidget-BmBO-kvA.js +99 -0
  8. package/{Popover-q5dL7y0W.js → Popover-3N88sRp4.js} +20 -20
  9. package/{PopupRenderer-Bncp54gB-DuCULkBK.js → PopupBody-DZVwDLkg-Cfy3lWGs.js} +201 -910
  10. package/PopupRenderer-BjW1jg70-W2y-PEPH.js +387 -0
  11. package/{RichTextWidget-D-mGlES0.js → RichTextWidget-DkKHEq4j.js} +142 -141
  12. package/ThemeProvider-DutrjSTF.js +116 -0
  13. package/{Tooltip-BIgrpetu.js → Tooltip-CQB0LyxK.js} +20 -20
  14. package/VerifyButton-BUT70lgz.js +192 -0
  15. package/{theme.cssm-2YTdd8Yh.js → createThemeExtension-4AUn51iJ.js} +2 -2
  16. package/dist-CRDgdAkQ.js +3631 -0
  17. package/dist-DPmVG7VB.js +79 -0
  18. package/index.d.ts +575 -3
  19. package/index.js +1217 -722
  20. package/inlineBaseTheme-BB9e6h5f.js +9 -0
  21. package/inlineCollectionTheme-CWcMCUti.js +19 -0
  22. package/{kbChat-AUJxjURc.js → kbChat-C00LVlxP.js} +53 -48
  23. package/{nodeAlignment-Cn6xNtOP.js → nodeAlignment-BnJljFlw.js} +13 -13
  24. package/package.json +9 -9
  25. package/pillChrome-BAu5AfCT.js +30 -0
  26. package/popupState-JmpeKzgM-qhNTV79U.js +229 -0
  27. package/popups.js +1 -1
  28. package/react-CV3jf2mc.js +74 -0
  29. package/rteTheme.cssm-xg0gJ28J.js +4 -0
  30. package/styles.css +1 -1
  31. package/theme.cssm-DUzmx76l.js +4 -0
  32. package/{inlineCollectionTheme-D2w17LHX.js → themeVars.cssm-ByhhC2Jm.js} +18 -33
  33. package/usePopupRedirect-BThP_YPW-COUseDik.js +80 -0
  34. package/CollectionField-CzS-34zx.js +0 -270
  35. package/DateTimeWidget-C1jHOtz7.js +0 -255
  36. package/Dialog-CzVhHLEY.js +0 -145
  37. package/KBChatWidget-D7F9LRwI.js +0 -1078
  38. package/PhoneWidget-_nw97rkI.js +0 -99
  39. package/ThemeProvider-BQmIB5tr.js +0 -116
  40. package/VerifyButton-BkP98H17.js +0 -191
  41. package/dist-CJknSbJK.js +0 -80
  42. package/dist-DBbiX2ST.js +0 -3556
  43. package/inlineBaseTheme-DS-AfUHi.js +0 -9
  44. package/pillChrome-AhXOWXIb.js +0 -20
  45. /package/{es-iCqKQf1c.js → es-CztjLuNy.js} +0 -0
@@ -1,15 +1,16 @@
1
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";
2
+ import { n as e, r as t, t as n } from "./CollectionField-C-6a1ud4.js";
3
+ import { n as r, r as i } from "./ThemeProvider-DutrjSTF.js";
4
+ import { i as a, n as o, r as s, t as c } from "./Tooltip-CQB0LyxK.js";
5
+ import { t as l } from "./theme.cssm-DUzmx76l.js";
6
+ import { n as u, r as d, t as f } from "./nodeAlignment-BnJljFlw.js";
7
+ import { t as p } from "./rteTheme.cssm-xg0gJ28J.js";
8
+ import { a as m, i as h, n as g, o as _, r as v } from "./Popover-3N88sRp4.js";
9
+ import { useController as y } from "react-hook-form";
10
+ import { c as b } from "react/compiler-runtime";
11
+ import x from "clsx";
9
12
  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 { forwardRef as T, useEffect as ee, useState as te } from "react";
13
14
  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
15
  import { Subscript as J } from "@tiptap/extension-subscript";
15
16
  import { Superscript as Y } from "@tiptap/extension-superscript";
@@ -20,16 +21,16 @@ import { Placeholder as fe, Selection as pe } from "@tiptap/extensions";
20
21
  import { StarterKit as me } from "@tiptap/starter-kit";
21
22
  import { EditorContent as he, EditorContext as ge, useCurrentEditor as _e, useEditor as ve, useEditorState as Q } from "@tiptap/react";
22
23
  //#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;
24
+ var ye = (e) => {
25
+ let t = b(7), { children: n, theme: i } = e, a = i?.className, o;
26
+ t[0] === a ? o = t[1] : (o = x(l, p, a), t[0] = a, t[1] = o);
27
+ let s = i?.style, c = i?.portalToThemeRoot, u;
28
+ return t[2] !== n || t[3] !== o || t[4] !== s || t[5] !== c ? (u = /* @__PURE__ */ C(r, {
29
+ className: o,
30
+ style: s,
31
+ portalToThemeRoot: c,
32
+ children: n
33
+ }), t[2] = n, t[3] = o, t[4] = s, t[5] = c, t[6] = u) : u = t[6], u;
33
34
  }, be = (e = { placeholder: "Write something ..." }) => [
34
35
  me.configure({
35
36
  blockquote: !1,
@@ -46,25 +47,25 @@ var ye = (t) => {
46
47
  pe,
47
48
  Y,
48
49
  J,
49
- p,
50
+ f,
50
51
  Z.configure({ types: [
51
52
  "paragraph",
52
53
  "heading",
53
54
  "bulletList",
54
55
  "orderedList"
55
56
  ] })
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];
57
+ ], xe = "_261ja30", Se = "_261ja31", $ = T((e, t) => {
58
+ let n = b(27), r, a, l, u, d, f, p;
59
+ n[0] === e ? (r = n[1], a = n[2], l = n[3], u = n[4], d = n[5], f = n[6], p = n[7]) : ({label: u, Icon: r, isActive: l, iconSize: f, trailing: p, className: a, ...d} = e, n[0] = e, n[1] = r, n[2] = a, n[3] = l, n[4] = u, n[5] = d, n[6] = f, n[7] = p);
60
+ let m = f === void 0 ? 16 : f, h = l || void 0, g = l && "_1vaxhty0", _;
61
+ n[8] !== a || n[9] !== g ? (_ = x(g, a), n[8] = a, n[9] = g, n[10] = _) : _ = n[10];
61
62
  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
+ n[11] !== r || n[12] !== m ? (v = /* @__PURE__ */ C(r, { size: m }), n[11] = r, n[12] = m, n[13] = v) : v = n[13];
63
64
  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
+ n[14] !== u || n[15] !== d || n[16] !== t || n[17] !== h || n[18] !== _ || n[19] !== v || n[20] !== p ? (y = /* @__PURE__ */ C(o, {
65
66
  onPointerDown: Ce,
66
- render: /* @__PURE__ */ w(t, {
67
- ref: n,
67
+ render: /* @__PURE__ */ w(i, {
68
+ ref: t,
68
69
  type: "button",
69
70
  variant: "ghost",
70
71
  size: "sm",
@@ -75,11 +76,11 @@ var ye = (t) => {
75
76
  ...d,
76
77
  children: [v, p]
77
78
  })
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;
79
+ }), n[14] = u, n[15] = d, n[16] = t, n[17] = h, n[18] = _, n[19] = v, n[20] = p, n[21] = y) : y = n[21];
80
+ let S;
81
+ n[22] === u ? S = n[23] : (S = /* @__PURE__ */ C(s, { children: u }), n[22] = u, n[23] = S);
82
+ let T;
83
+ return n[24] !== y || n[25] !== S ? (T = /* @__PURE__ */ w(c, { children: [y, S] }), n[24] = y, n[25] = S, n[26] = T) : T = n[26], T;
83
84
  });
84
85
  $.displayName = "ToolbarButton";
85
86
  function Ce(e) {
@@ -147,25 +148,25 @@ var we = [
147
148
  }
148
149
  return !1;
149
150
  }, 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
+ let t = b(50), { editor: n } = e, [r, i] = te(!1), { isActive: a, currentUrl: l } = Q({
151
152
  editor: n,
152
153
  selector: Le
153
154
  }) ?? {
154
155
  isActive: !1,
155
156
  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);
157
+ }, [u, d] = te(l), f, p;
158
+ t[0] !== l || t[1] !== r ? (f = () => {
159
+ r && d(l);
160
+ }, p = [r, l], t[0] = l, t[1] = r, t[2] = f, t[3] = p) : (f = t[2], p = t[3]), ee(f, p);
160
161
  let y;
161
162
  t[4] !== n || t[5] !== u ? (y = () => {
162
163
  u && (n.chain().focus().extendMarkRange("link").setLink({ href: u }).run(), i(!1));
163
164
  }, 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 = () => {
165
+ let x = y, S;
166
+ t[7] === n ? S = t[8] : (S = () => {
166
167
  n.chain().focus().extendMarkRange("link").unsetLink().run(), d(""), i(!1);
167
- }, t[7] = n, t[8] = ee);
168
- let te = ee, ne;
168
+ }, t[7] = n, t[8] = S);
169
+ let T = S, ne;
169
170
  t[9] === u ? ne = t[10] : (ne = () => {
170
171
  let e = Ae(u, window.location.href);
171
172
  e !== "#" && window.open(e, "_blank", "noopener,noreferrer");
@@ -187,9 +188,9 @@ var we = [
187
188
  let O;
188
189
  t[14] === Symbol.for("react.memo_cache_sentinel") ? (O = (e) => d(e.target.value), t[14] = O) : O = t[14];
189
190
  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);
191
+ t[15] === x ? k = t[16] : (k = (e) => {
192
+ e.key === "Enter" && (e.preventDefault(), x());
193
+ }, t[15] = x, t[16] = k);
193
194
  let A;
194
195
  t[17] !== k || t[18] !== u ? (A = /* @__PURE__ */ C("input", {
195
196
  className: Pe,
@@ -201,22 +202,22 @@ var we = [
201
202
  let j = !u && !a, M;
202
203
  t[20] === Symbol.for("react.memo_cache_sentinel") ? (M = /* @__PURE__ */ C(ie, { size: 16 }), t[20] = M) : M = t[20];
203
204
  let N;
204
- t[21] !== S || t[22] !== j ? (N = /* @__PURE__ */ C(s, { render: /* @__PURE__ */ C("button", {
205
+ t[21] !== x || t[22] !== j ? (N = /* @__PURE__ */ C(o, { render: /* @__PURE__ */ C("button", {
205
206
  type: "button",
206
207
  className: Fe,
207
- onClick: S,
208
+ onClick: x,
208
209
  disabled: j,
209
210
  "aria-label": "Apply link",
210
211
  children: M
211
- }) }), t[21] = S, t[22] = j, t[23] = N) : N = t[23];
212
+ }) }), t[21] = x, t[22] = j, t[23] = N) : N = t[23];
212
213
  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
+ t[24] === Symbol.for("react.memo_cache_sentinel") ? (P = /* @__PURE__ */ C(s, { children: "Apply link" }), t[24] = P) : P = t[24];
214
215
  let F;
215
- t[25] === N ? F = t[26] : (F = /* @__PURE__ */ w(l, { children: [N, P] }), t[25] = N, t[26] = F);
216
+ t[25] === N ? F = t[26] : (F = /* @__PURE__ */ w(c, { children: [N, P] }), t[25] = N, t[26] = F);
216
217
  let I = !u && !a, L;
217
218
  t[27] === Symbol.for("react.memo_cache_sentinel") ? (L = /* @__PURE__ */ C(ae, { size: 16 }), t[27] = L) : L = t[27];
218
219
  let R;
219
- t[28] !== re || t[29] !== I ? (R = /* @__PURE__ */ C(s, { render: /* @__PURE__ */ C("button", {
220
+ t[28] !== re || t[29] !== I ? (R = /* @__PURE__ */ C(o, { render: /* @__PURE__ */ C("button", {
220
221
  type: "button",
221
222
  className: Fe,
222
223
  onClick: re,
@@ -225,24 +226,24 @@ var we = [
225
226
  children: L
226
227
  }) }), t[28] = re, t[29] = I, t[30] = R) : R = t[30];
227
228
  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
+ t[31] === Symbol.for("react.memo_cache_sentinel") ? (z = /* @__PURE__ */ C(s, { children: "Open in new window" }), t[31] = z) : z = t[31];
229
230
  let B;
230
- t[32] === R ? B = t[33] : (B = /* @__PURE__ */ w(l, { children: [R, z] }), t[32] = R, t[33] = B);
231
+ t[32] === R ? B = t[33] : (B = /* @__PURE__ */ w(c, { children: [R, z] }), t[32] = R, t[33] = B);
231
232
  let se = !u && !a, V;
232
233
  t[34] === Symbol.for("react.memo_cache_sentinel") ? (V = /* @__PURE__ */ C(ce, { size: 16 }), t[34] = V) : V = t[34];
233
234
  let H;
234
- t[35] !== te || t[36] !== se ? (H = /* @__PURE__ */ C(s, { render: /* @__PURE__ */ C("button", {
235
+ t[35] !== T || t[36] !== se ? (H = /* @__PURE__ */ C(o, { render: /* @__PURE__ */ C("button", {
235
236
  type: "button",
236
237
  className: Fe,
237
- onClick: te,
238
+ onClick: T,
238
239
  disabled: se,
239
240
  "aria-label": "Remove link",
240
241
  children: V
241
- }) }), t[35] = te, t[36] = se, t[37] = H) : H = t[37];
242
+ }) }), t[35] = T, t[36] = se, t[37] = H) : H = t[37];
242
243
  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
+ t[38] === Symbol.for("react.memo_cache_sentinel") ? (U = /* @__PURE__ */ C(s, { children: "Remove link" }), t[38] = U) : U = t[38];
244
245
  let W;
245
- t[39] === H ? W = t[40] : (W = /* @__PURE__ */ w(l, { children: [H, U] }), t[39] = H, t[40] = W);
246
+ t[39] === H ? W = t[40] : (W = /* @__PURE__ */ w(c, { children: [H, U] }), t[39] = H, t[40] = W);
246
247
  let G;
247
248
  t[41] !== A || t[42] !== F || t[43] !== B || t[44] !== W ? (G = /* @__PURE__ */ C(h, { children: /* @__PURE__ */ C(v, {
248
249
  side: "bottom",
@@ -350,7 +351,7 @@ var ze = "_1keigwl0", Be = "_1keigwl1 _5pk5r80", Ve = (e) => (t) => t.chain().fo
350
351
  apply: (e) => e.chain().focus().toggleOrderedList().run()
351
352
  }
352
353
  ], Ue = (e) => {
353
- let t = T(19), { editor: n } = e, [r, i] = x(!1), { activeBlock: a, canConvert: o, structural: s } = Q({
354
+ let t = b(19), { editor: n } = e, [r, i] = te(!1), { activeBlock: a, canConvert: o, structural: s } = Q({
354
355
  editor: n,
355
356
  selector: We
356
357
  }) ?? {
@@ -387,21 +388,21 @@ var ze = "_1keigwl0", Be = "_1keigwl1 _5pk5r80", Ve = (e) => (t) => t.chain().fo
387
388
  children: [/* @__PURE__ */ C(e.Icon, { size: 16 }), /* @__PURE__ */ C("span", { children: e.label })]
388
389
  }, 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
390
  } else y = t[8];
390
- let b;
391
- t[13] === y ? b = t[14] : (b = /* @__PURE__ */ C(h, { children: /* @__PURE__ */ C(v, {
391
+ let x;
392
+ t[13] === y ? x = t[14] : (x = /* @__PURE__ */ C(h, { children: /* @__PURE__ */ C(v, {
392
393
  side: "bottom",
393
394
  align: "start",
394
395
  children: /* @__PURE__ */ C(m.Popup, {
395
396
  className: ze,
396
397
  children: y
397
398
  })
398
- }) }), t[13] = y, t[14] = b);
399
+ }) }), t[13] = y, t[14] = x);
399
400
  let S;
400
- return t[15] !== r || t[16] !== p || t[17] !== b ? (S = /* @__PURE__ */ w(g, {
401
+ return t[15] !== r || t[16] !== p || t[17] !== x ? (S = /* @__PURE__ */ w(g, {
401
402
  open: r,
402
403
  onOpenChange: i,
403
- children: [p, b]
404
- }), t[15] = r, t[16] = p, t[17] = b, t[18] = S) : S = t[18], S;
404
+ children: [p, x]
405
+ }), t[15] = r, t[16] = p, t[17] = x, t[18] = S) : S = t[18], S;
405
406
  };
406
407
  function We(e) {
407
408
  let { editor: t } = e;
@@ -472,7 +473,7 @@ var Ke = [
472
473
  Icon: re
473
474
  }
474
475
  ], Ye = (e) => {
475
- let t = T(9), { editor: n, mark: r, label: i, Icon: a } = e, { isActive: o, canExecute: s } = Q({
476
+ let t = b(9), { editor: n, mark: r, label: i, Icon: a } = e, { isActive: o, canExecute: s } = Q({
476
477
  editor: n,
477
478
  selector: (e) => {
478
479
  let { editor: t } = e;
@@ -495,7 +496,7 @@ var Ke = [
495
496
  onClick: l
496
497
  }), t[3] = a, t[4] = o, t[5] = i, t[6] = c, t[7] = l, t[8] = u) : u = t[8], u;
497
498
  }, Xe = (e) => {
498
- let t = T(9), { editor: n, align: r, label: i, Icon: a } = e, { isActive: o, canExecute: s } = Q({
499
+ let t = b(9), { editor: n, align: r, label: i, Icon: a } = e, { isActive: o, canExecute: s } = Q({
499
500
  editor: n,
500
501
  selector: (e) => {
501
502
  let { editor: t } = e;
@@ -518,7 +519,7 @@ var Ke = [
518
519
  onClick: l
519
520
  }), t[3] = a, t[4] = o, t[5] = i, t[6] = c, t[7] = l, t[8] = u) : u = t[8], u;
520
521
  }, Ze = (e) => {
521
- let t = T(5), { editor: n } = e, r = !(Q({
522
+ let t = b(5), { editor: n } = e, r = !(Q({
522
523
  editor: n,
523
524
  selector: tt
524
525
  }) ?? !1), i;
@@ -531,7 +532,7 @@ var Ke = [
531
532
  onClick: i
532
533
  }), t[2] = r, t[3] = i, t[4] = a) : a = t[4], a;
533
534
  }, Qe = (e) => {
534
- let t = T(5), { editor: n } = e, r = !(Q({
535
+ let t = b(5), { editor: n } = e, r = !(Q({
535
536
  editor: n,
536
537
  selector: nt
537
538
  }) ?? !1), i;
@@ -544,7 +545,7 @@ var Ke = [
544
545
  onClick: i
545
546
  }), t[2] = r, t[3] = i, t[4] = a) : a = t[4], a;
546
547
  }, $e = (e) => {
547
- let t = T(5), { editor: n } = e, r = !(Q({
548
+ let t = b(5), { editor: n } = e, r = !(Q({
548
549
  editor: n,
549
550
  selector: rt
550
551
  }) ?? !1), i;
@@ -556,75 +557,75 @@ var Ke = [
556
557
  disabled: r,
557
558
  onClick: i
558
559
  }), 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();
560
+ }, et = (t) => {
561
+ let n = b(33), { children: r } = t, { editor: i } = _e();
561
562
  if (!i) return null;
562
563
  let a;
563
- t[0] === i ? a = t[1] : (a = /* @__PURE__ */ C("div", {
564
+ n[0] === i ? a = n[1] : (a = /* @__PURE__ */ C("div", {
564
565
  className: Se,
565
566
  children: /* @__PURE__ */ C(Ue, { editor: i })
566
- }), t[0] = i, t[1] = a);
567
+ }), n[0] = i, n[1] = a);
567
568
  let o;
568
- t[2] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ C(r, { orientation: "vertical" }), t[2] = o) : o = t[2];
569
+ n[2] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ C(e, { orientation: "vertical" }), n[2] = o) : o = n[2];
569
570
  let s;
570
- t[3] === i ? s = t[4] : (s = Ke.map((e) => /* @__PURE__ */ C(Ye, {
571
+ n[3] === i ? s = n[4] : (s = Ke.map((e) => /* @__PURE__ */ C(Ye, {
571
572
  editor: i,
572
573
  ...e
573
- }, e.mark)), t[3] = i, t[4] = s);
574
+ }, e.mark)), n[3] = i, n[4] = s);
574
575
  let c;
575
- t[5] === s ? c = t[6] : (c = /* @__PURE__ */ C("div", {
576
+ n[5] === s ? c = n[6] : (c = /* @__PURE__ */ C("div", {
576
577
  className: Se,
577
578
  children: s
578
- }), t[5] = s, t[6] = c);
579
+ }), n[5] = s, n[6] = c);
579
580
  let l;
580
- t[7] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ C(r, { orientation: "vertical" }), t[7] = l) : l = t[7];
581
+ n[7] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ C(e, { orientation: "vertical" }), n[7] = l) : l = n[7];
581
582
  let u;
582
- t[8] === i ? u = t[9] : (u = /* @__PURE__ */ C("div", {
583
+ n[8] === i ? u = n[9] : (u = /* @__PURE__ */ C("div", {
583
584
  className: Se,
584
585
  children: /* @__PURE__ */ C(Ie, { editor: i })
585
- }), t[8] = i, t[9] = u);
586
+ }), n[8] = i, n[9] = u);
586
587
  let d;
587
- t[10] === Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ C(r, { orientation: "vertical" }), t[10] = d) : d = t[10];
588
+ n[10] === Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ C(e, { orientation: "vertical" }), n[10] = d) : d = n[10];
588
589
  let f;
589
- t[11] === i ? f = t[12] : (f = Je.map((e) => /* @__PURE__ */ C(Xe, {
590
+ n[11] === i ? f = n[12] : (f = Je.map((e) => /* @__PURE__ */ C(Xe, {
590
591
  editor: i,
591
592
  ...e
592
- }, e.align)), t[11] = i, t[12] = f);
593
+ }, e.align)), n[11] = i, n[12] = f);
593
594
  let p;
594
- t[13] === f ? p = t[14] : (p = /* @__PURE__ */ C("div", {
595
+ n[13] === f ? p = n[14] : (p = /* @__PURE__ */ C("div", {
595
596
  className: Se,
596
597
  children: f
597
- }), t[13] = f, t[14] = p);
598
+ }), n[13] = f, n[14] = p);
598
599
  let m;
599
- t[15] === Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ C(r, { orientation: "vertical" }), t[15] = m) : m = t[15];
600
+ n[15] === Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ C(e, { orientation: "vertical" }), n[15] = m) : m = n[15];
600
601
  let h;
601
- t[16] === i ? h = t[17] : (h = qe.map((e) => /* @__PURE__ */ C(Ye, {
602
+ n[16] === i ? h = n[17] : (h = qe.map((e) => /* @__PURE__ */ C(Ye, {
602
603
  editor: i,
603
604
  ...e
604
- }, e.mark)), t[16] = i, t[17] = h);
605
+ }, e.mark)), n[16] = i, n[17] = h);
605
606
  let g;
606
- t[18] === h ? g = t[19] : (g = /* @__PURE__ */ C("div", {
607
+ n[18] === h ? g = n[19] : (g = /* @__PURE__ */ C("div", {
607
608
  className: Se,
608
609
  children: h
609
- }), t[18] = h, t[19] = g);
610
+ }), n[18] = h, n[19] = g);
610
611
  let _;
611
- t[20] === Symbol.for("react.memo_cache_sentinel") ? (_ = /* @__PURE__ */ C(r, { orientation: "vertical" }), t[20] = _) : _ = t[20];
612
+ n[20] === Symbol.for("react.memo_cache_sentinel") ? (_ = /* @__PURE__ */ C(e, { orientation: "vertical" }), n[20] = _) : _ = n[20];
612
613
  let v;
613
- t[21] === i ? v = t[22] : (v = /* @__PURE__ */ w("div", {
614
+ n[21] === i ? v = n[22] : (v = /* @__PURE__ */ w("div", {
614
615
  className: Se,
615
616
  children: [
616
617
  /* @__PURE__ */ C($e, { editor: i }),
617
618
  /* @__PURE__ */ C(Ze, { editor: i }),
618
619
  /* @__PURE__ */ C(Qe, { editor: i })
619
620
  ]
620
- }), t[21] = i, t[22] = v);
621
+ }), n[21] = i, n[22] = v);
621
622
  let y;
622
- t[23] === n ? y = t[24] : (y = n && /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ C(r, { orientation: "vertical" }), /* @__PURE__ */ C("div", {
623
+ n[23] === r ? y = n[24] : (y = r && /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ C(e, { orientation: "vertical" }), /* @__PURE__ */ C("div", {
623
624
  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", {
625
+ children: r
626
+ })] }), n[23] = r, n[24] = y);
627
+ let x;
628
+ return n[25] !== a || n[26] !== g || n[27] !== v || n[28] !== y || n[29] !== c || n[30] !== u || n[31] !== p ? (x = /* @__PURE__ */ w("div", {
628
629
  className: xe,
629
630
  children: [
630
631
  a,
@@ -640,7 +641,7 @@ var Ke = [
640
641
  v,
641
642
  y
642
643
  ]
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
+ }), n[25] = a, n[26] = g, n[27] = v, n[28] = y, n[29] = c, n[30] = u, n[31] = p, n[32] = x) : x = n[32], x;
644
645
  };
645
646
  function tt(e) {
646
647
  let { editor: t } = e;
@@ -656,69 +657,69 @@ function rt(e) {
656
657
  }
657
658
  //#endregion
658
659
  //#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 = {
660
+ var it = "_1vx76w30", at = "_1vx76w33", ot = "_1vx76w34", st = { style: u({ baseSpacing: ".875rem" }) }, ct = (r) => {
661
+ let i = b(58), { field: o } = r, [s, c] = te(!1), { key: l, label: u, helper_text: f, readonly: p, placeholder: m } = o, h = l === void 0 ? "" : l, g = u === void 0 ? "" : u, _ = f === void 0 ? "" : f, v = p === void 0 ? !1 : p, S;
662
+ i[0] === o ? S = i[1] : (S = t(o), i[0] = o, i[1] = S);
663
+ let T;
664
+ i[2] !== h || i[3] !== S ? (T = {
664
665
  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);
666
+ rules: S
667
+ }, i[2] = h, i[3] = S, i[4] = T) : T = i[4];
668
+ let { field: ne, fieldState: re } = y(T), { value: E, onBlur: D, onChange: O, disabled: k } = ne, A = m || "Write something ...", j;
669
+ i[5] === A ? j = i[6] : (j = be({ placeholder: A }), i[5] = A, i[6] = j);
669
670
  let M = E || "", ie = !k && !v, ae;
670
- t[7] === Symbol.for("react.memo_cache_sentinel") ? (ae = { attributes: {
671
+ i[7] === Symbol.for("react.memo_cache_sentinel") ? (ae = { attributes: {
671
672
  autocomplete: "off",
672
673
  autocorrect: "off",
673
674
  autocapitalize: "off",
674
- class: u
675
- } }, t[7] = ae) : ae = t[7];
675
+ class: d
676
+ } }, i[7] = ae) : ae = i[7];
676
677
  let N;
677
- t[8] === O ? N = t[9] : (N = (e) => {
678
+ i[8] === O ? N = i[9] : (N = (e) => {
678
679
  let { editor: t } = e;
679
680
  return O(t.getHTML());
680
- }, t[8] = O, t[9] = N);
681
+ }, i[8] = O, i[9] = N);
681
682
  let P;
682
- t[10] !== M || t[11] !== ie || t[12] !== N || t[13] !== j ? (P = {
683
+ i[10] !== M || i[11] !== ie || i[12] !== N || i[13] !== j ? (P = {
683
684
  extensions: j,
684
685
  content: M,
685
686
  editable: ie,
686
687
  editorProps: ae,
687
688
  onUpdate: N,
688
689
  immediatelyRender: !1
689
- }, t[10] = M, t[11] = ie, t[12] = N, t[13] = j, t[14] = P) : P = t[14];
690
+ }, i[10] = M, i[11] = ie, i[12] = N, i[13] = j, i[14] = P) : P = i[14];
690
691
  let F = ve(P), I;
691
- t[15] !== F || t[16] !== s || t[17] !== E ? (I = () => {
692
+ i[15] !== F || i[16] !== s || i[17] !== E ? (I = () => {
692
693
  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
+ }, i[15] = F, i[16] = s, i[17] = E, i[18] = I) : I = i[18];
694
695
  let L;
695
- t[19] === E ? L = t[20] : (L = [E], t[19] = E, t[20] = L), b(I, L);
696
+ i[19] === E ? L = i[20] : (L = [E], i[19] = E, i[20] = L), ee(I, L);
696
697
  let R, z;
697
- t[21] !== k || t[22] !== F || t[23] !== v ? (R = () => {
698
+ i[21] !== k || i[22] !== F || i[23] !== v ? (R = () => {
698
699
  F && F.setEditable(!k && !v, !1);
699
700
  }, z = [
700
701
  F,
701
702
  k,
702
703
  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
+ ], i[21] = k, i[22] = F, i[23] = v, i[24] = R, i[25] = z) : (R = i[24], z = i[25]), ee(R, z);
704
705
  let oe, B;
705
- t[26] !== F || t[27] !== D ? (oe = () => {
706
+ i[26] !== F || i[27] !== D ? (oe = () => {
706
707
  if (F) return F.on("blur", D), () => {
707
708
  F.off("blur", D);
708
709
  };
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];
710
+ }, B = [F, D], i[26] = F, i[27] = D, i[28] = oe, i[29] = B) : (oe = i[28], B = i[29]), ee(oe, B);
711
+ let se = re?.error?.message, V = !!o?.required, H = k && "_1vx76w31", U = v && "_1vx76w32", W;
712
+ i[30] !== H || i[31] !== U ? (W = x(it, H, U), i[30] = H, i[31] = U, i[32] = W) : W = i[32];
712
713
  let G;
713
- t[33] === F ? G = t[34] : (G = { editor: F }, t[33] = F, t[34] = G);
714
+ i[33] === F ? G = i[34] : (G = { editor: F }, i[33] = F, i[34] = G);
714
715
  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
+ i[35] === Symbol.for("react.memo_cache_sentinel") ? (K = /* @__PURE__ */ C(et, {}), ce = /* @__PURE__ */ C(e, { orientation: "horizontal" }), i[35] = K, i[36] = ce) : (K = i[35], ce = i[36]);
716
717
  let q;
717
- t[37] === F?.commands ? q = t[38] : (q = () => F?.commands.focus(), t[37] = F?.commands, t[38] = q);
718
+ i[37] === F?.commands ? q = i[38] : (q = () => F?.commands.focus(), i[37] = F?.commands, i[38] = q);
718
719
  let J;
719
- t[39] === F ? J = t[40] : (J = /* @__PURE__ */ C(he, { editor: F }), t[39] = F, t[40] = J);
720
+ i[39] === F ? J = i[40] : (J = /* @__PURE__ */ C(he, { editor: F }), i[39] = F, i[40] = J);
720
721
  let Y;
721
- t[41] !== q || t[42] !== J ? (Y = /* @__PURE__ */ w("div", {
722
+ i[41] !== q || i[42] !== J ? (Y = /* @__PURE__ */ w("div", {
722
723
  className: at,
723
724
  children: [
724
725
  K,
@@ -729,22 +730,22 @@ var it = "_1vx76w30", at = "_1vx76w33", ot = "_1vx76w34", st = { style: d({ base
729
730
  children: J
730
731
  })
731
732
  ]
732
- }), t[41] = q, t[42] = J, t[43] = Y) : Y = t[43];
733
+ }), i[41] = q, i[42] = J, i[43] = Y) : Y = i[43];
733
734
  let X;
734
- t[44] !== G || t[45] !== Y ? (X = /* @__PURE__ */ C(ye, {
735
+ i[44] !== G || i[45] !== Y ? (X = /* @__PURE__ */ C(ye, {
735
736
  theme: st,
736
- children: /* @__PURE__ */ C(o, { children: /* @__PURE__ */ C(ge.Provider, {
737
+ children: /* @__PURE__ */ C(a, { children: /* @__PURE__ */ C(ge.Provider, {
737
738
  value: G,
738
739
  children: Y
739
740
  }) })
740
- }), t[44] = G, t[45] = Y, t[46] = X) : X = t[46];
741
+ }), i[44] = G, i[45] = Y, i[46] = X) : X = i[46];
741
742
  let Z;
742
- t[47] !== W || t[48] !== X ? (Z = /* @__PURE__ */ C("div", {
743
+ i[47] !== W || i[48] !== X ? (Z = /* @__PURE__ */ C("div", {
743
744
  className: W,
744
745
  children: X
745
- }), t[47] = W, t[48] = X, t[49] = Z) : Z = t[49];
746
+ }), i[47] = W, i[48] = X, i[49] = Z) : Z = i[49];
746
747
  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
+ return i[50] !== _ || i[51] !== h || i[52] !== g || i[53] !== v || i[54] !== se || i[55] !== V || i[56] !== Z ? (le = /* @__PURE__ */ C(n, {
748
749
  error: se,
749
750
  helperText: _,
750
751
  readOnly: v,
@@ -752,7 +753,7 @@ var it = "_1vx76w30", at = "_1vx76w33", ot = "_1vx76w34", st = { style: d({ base
752
753
  htmlFor: h,
753
754
  isRequired: V,
754
755
  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
+ }), i[50] = _, i[51] = h, i[52] = g, i[53] = v, i[54] = se, i[55] = V, i[56] = Z, i[57] = le) : le = i[57], le;
756
757
  };
757
758
  //#endregion
758
759
  export { ct as RichTextWidget, ct as default };