@levo-so/studio 0.1.103 → 0.1.104

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 (28) hide show
  1. package/{BillingStep-BA3H9BVu.js → BillingStep-2cKT5Pir.js} +1 -1
  2. package/{Button-CZycqusY.js → Button-DtPwDEN0.js} +3 -3
  3. package/{DateTimeWidget-DP_nMhqe.js → DateTimeWidget-DPHIhkAi.js} +1 -1
  4. package/{EntryCard-CQpKNX7G.js → EntryCard-j4uZb2cE.js} +3 -3
  5. package/{LoginCard-Cyvm-y_q.js → LoginCard-asvOHIRg.js} +3 -3
  6. package/{LoginModal-Cyw_XKvz.js → LoginModal-CyvbEK26.js} +2 -2
  7. package/{MessageCard-C2lNTxFx.js → MessageCard-lrXKEsBP.js} +2 -2
  8. package/{ModalManager-DHkd0Zdb.js → ModalManager-BcPk4sbK.js} +1 -1
  9. package/{PendingApprovalCard-C8iZjo06.js → PendingApprovalCard-hYkupl9A.js} +3 -3
  10. package/{PopupRenderer-C7OHYphU-Ct5T6tWM.js → PopupRenderer-C7OHYphU-IWM6d7gW.js} +2 -2
  11. package/{RichTextWidget-BqlcssWt.js → RichTextWidget-18XLL8wW.js} +31 -30
  12. package/{Toolbar-BwxoYWO_.js → Toolbar-Y6JtgPFn.js} +152 -245
  13. package/{bookingCard-BDyuBC6X.js → bookingCard-BdV2YSkq.js} +2 -2
  14. package/collection.js +8 -8
  15. package/{dist-CG-pwDW0.js → dist-CsX9NP5P.js} +2 -2
  16. package/index.js +173 -175
  17. package/package.json +38 -52
  18. package/rolldown-runtime-CAFD8bLK.js +11 -0
  19. /package/{Beams-DboMUgCv.js → Beams-DEybrmUZ.js} +0 -0
  20. /package/{Dots-a8xSboDv.js → Dots-CMyy77GM.js} +0 -0
  21. /package/{Gradient-NacpoDCM.js → Gradient-DBn_zXzI.js} +0 -0
  22. /package/{Grid-BJQvxnks.js → Grid-kGCr-6by.js} +0 -0
  23. /package/{LoginForm-_44FtvWg.js → LoginForm-BdsPVHdO.js} +0 -0
  24. /package/{MessageFooter-59Pziq3i.js → MessageFooter-D-dCrzJH.js} +0 -0
  25. /package/{PhoneWidget-CxxxDXkz.js → PhoneWidget-BOFhs8Ra.js} +0 -0
  26. /package/{Popover-DOvRAGzc.js → Popover-O1poOHk2.js} +0 -0
  27. /package/{Waves-DUuT_IFr.js → Waves-DjLcbiBu.js} +0 -0
  28. /package/{card-E2LKF9nT.js → card-5ooLmYSr.js} +0 -0
@@ -2,116 +2,23 @@ import { t as e } from "./Button-lUfKisu8.js";
2
2
  import { t } from "./nodeAlignment-DKCIjzlR.js";
3
3
  import { l as n } from "./CollectionField-xa-jed3_.js";
4
4
  import { n as r, r as i, t as a } from "./Tooltip-NEMQqPyr.js";
5
- import { a as o, i as s, n as c, o as l, r as u } from "./Popover-DOvRAGzc.js";
5
+ import { a as o, i as s, n as c, o as l, r as u } from "./Popover-O1poOHk2.js";
6
6
  import { c as d } from "react/compiler-runtime";
7
7
  import { forwardRef as f, useEffect as p, useState as m } from "react";
8
8
  import { Fragment as h, jsx as g, jsxs as _ } from "react/jsx-runtime";
9
9
  import v from "clsx";
10
- import { IconAlignCenter as y, IconAlignJustified as b, IconAlignLeft as x, IconAlignRight as S, IconArrowBackUp as C, IconArrowForwardUp as w, IconBold as T, IconChevronDown as E, IconCode as ee, IconCornerDownLeft as te, IconExternalLink as ne, IconH1 as D, IconH2 as re, IconH3 as O, IconH4 as k, IconH5 as A, IconH6 as j, IconItalic as M, IconLink as ie, IconList as N, IconListNumbers as P, IconPencil as F, IconPilcrow as I, IconRotate2 as L, IconStrikethrough as ae, IconSubscript as R, IconSuperscript as z, IconTrash as oe, IconUnderline as B } from "@tabler/icons-react";
11
- import { BulletList as V } from "@tiptap/extension-bullet-list";
12
- import { Color as H } from "@tiptap/extension-color";
13
- import { Document as U } from "@tiptap/extension-document";
14
- import { HardBreak as W } from "@tiptap/extension-hard-break";
15
- import { Heading as G } from "@tiptap/extension-heading";
16
- import { Highlight as K } from "@tiptap/extension-highlight";
17
- import { Link as q } from "@tiptap/extension-link";
18
- import { ListItem as J } from "@tiptap/extension-list-item";
19
- import { OrderedList as se } from "@tiptap/extension-ordered-list";
20
- import { Paragraph as ce } from "@tiptap/extension-paragraph";
21
- import { Subscript as le } from "@tiptap/extension-subscript";
22
- import { Superscript as ue } from "@tiptap/extension-superscript";
23
- import { Text as de } from "@tiptap/extension-text";
24
- import { TextStyle as fe } from "@tiptap/extension-text-style";
25
- import { Typography as pe } from "@tiptap/extension-typography";
26
- import { Underline as me } from "@tiptap/extension-underline";
27
- import { UniqueID as he } from "@tiptap/extension-unique-id";
28
- import { CodeBlock as ge } from "@tiptap/extension-code-block";
29
- import { Details as _e } from "@tiptap/extension-details";
30
- import { DetailsContent as ve } from "@tiptap/extension-details-content";
31
- import { DetailsSummary as ye } from "@tiptap/extension-details-summary";
32
- import { HorizontalRule as be } from "@tiptap/extension-horizontal-rule";
33
- import { Image as xe } from "@tiptap/extension-image";
34
- import { Mention as Se } from "@tiptap/extension-mention";
35
- import { AllSelection as Ce, NodeSelection as we, TextSelection as Te } from "@tiptap/pm/state";
36
- import { Table as Ee, TableCell as De, TableHeader as Oe, TableRow as ke } from "@tiptap/extension-table";
37
- import { Youtube as Ae } from "@tiptap/extension-youtube";
38
- import { CharacterCount as je } from "@tiptap/extension-character-count";
39
- import { DragHandle as Me } from "@tiptap/extension-drag-handle";
40
- import { DragHandle as Ne } from "@tiptap/extension-drag-handle-react";
41
- import { Dropcursor as Pe } from "@tiptap/extension-dropcursor";
42
- import { Emoji as Fe } from "@tiptap/extension-emoji";
43
- import { FileHandler as Ie } from "@tiptap/extension-file-handler";
44
- import { Focus as Le } from "@tiptap/extension-focus";
45
- import { Gapcursor as Re } from "@tiptap/extension-gapcursor";
46
- import { ListKeymap as ze } from "@tiptap/extension-list-keymap";
47
- import { TextAlign as Be } from "@tiptap/extension-text-align";
48
- //#region \0rolldown/runtime.js
49
- var Ve = Object.defineProperty, He = Object.getOwnPropertyDescriptor, Ue = Object.getOwnPropertyNames, We = Object.prototype.hasOwnProperty, Ge = (e, t) => {
50
- let n = {};
51
- for (var r in e) Ve(n, r, {
52
- get: e[r],
53
- enumerable: !0
54
- });
55
- return t || Ve(n, Symbol.toStringTag, { value: "Module" }), n;
56
- }, Ke = (e, t, n, r) => {
57
- if (t && typeof t == "object" || typeof t == "function") for (var i = Ue(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !We.call(e, s) && s !== n && Ve(e, s, {
58
- get: ((e) => t[e]).bind(null, s),
59
- enumerable: !(r = He(t, s)) || r.enumerable
60
- });
61
- return e;
62
- }, Y = (e, t, n) => (Ke(e, t, "default"), n && Ke(n, t, "default")), X = /* @__PURE__ */ Ge({
63
- BulletList: () => V,
64
- CharacterCount: () => je,
65
- CodeBlock: () => ge,
66
- Color: () => H,
67
- Details: () => _e,
68
- DetailsContent: () => ve,
69
- DetailsSummary: () => ye,
70
- Document: () => U,
71
- DragHandle: () => Me,
72
- DragHandleReact: () => Ne,
73
- Dropcursor: () => Pe,
74
- Emoji: () => Fe,
75
- FileHandler: () => Ie,
76
- Focus: () => Le,
77
- Gapcursor: () => Re,
78
- HardBreak: () => W,
79
- Heading: () => G,
80
- Highlight: () => K,
81
- HorizontalRule: () => be,
82
- Image: () => xe,
83
- Link: () => q,
84
- ListItem: () => J,
85
- ListKeymap: () => ze,
86
- Mention: () => Se,
87
- OrderedList: () => se,
88
- Paragraph: () => ce,
89
- Subscript: () => le,
90
- Superscript: () => ue,
91
- Table: () => Ee,
92
- TableCell: () => De,
93
- TableHeader: () => Oe,
94
- TableRow: () => ke,
95
- Text: () => de,
96
- TextAlign: () => Be,
97
- TextStyle: () => fe,
98
- Typography: () => pe,
99
- Underline: () => me,
100
- UniqueID: () => he,
101
- Youtube: () => Ae
102
- });
103
- import * as qe from "@tiptap/core";
104
- Y(X, qe);
105
- import * as Je from "@tiptap/extensions";
106
- Y(X, Je);
107
- import * as Ye from "@tiptap/react";
108
- Y(X, Ye);
109
- import * as Xe from "@tiptap/starter-kit";
110
- Y(X, Xe);
111
- //#endregion
10
+ import { IconAlignCenter as y, IconAlignJustified as b, IconAlignLeft as x, IconAlignRight as S, IconArrowBackUp as C, IconArrowForwardUp as w, IconBold as T, IconChevronDown as E, IconCode as ee, IconCornerDownLeft as te, IconExternalLink as ne, IconH1 as D, IconH2 as O, IconH3 as k, IconH4 as A, IconH5 as j, IconH6 as M, IconItalic as N, IconLink as re, IconList as ie, IconListNumbers as P, IconPencil as F, IconPilcrow as I, IconRotate2 as L, IconStrikethrough as R, IconSubscript as z, IconSuperscript as B, IconTrash as ae, IconUnderline as V } from "@tabler/icons-react";
11
+ import { Subscript as H } from "@tiptap/extension-subscript";
12
+ import { Superscript as U } from "@tiptap/extension-superscript";
13
+ import { Typography as W } from "@tiptap/extension-typography";
14
+ import { UniqueID as G } from "@tiptap/extension-unique-id";
15
+ import { AllSelection as K, NodeSelection as q, TextSelection as J } from "@tiptap/pm/state";
16
+ import { Placeholder as Y, Selection as oe } from "@tiptap/extensions";
17
+ import { StarterKit as se } from "@tiptap/starter-kit";
18
+ import { useCurrentEditor as ce, useEditorState as X } from "@tiptap/react";
112
19
  //#region ../../libraries/react-collection/dist/components/editor/extensionKit.js
113
- var Ze = (e = { placeholder: "Write something ..." }) => [
114
- X.StarterKit.configure({
20
+ var le = (e = { placeholder: "Write something ..." }) => [
21
+ se.configure({
115
22
  blockquote: !1,
116
23
  codeBlock: !1,
117
24
  horizontalRule: !1,
@@ -121,13 +28,13 @@ var Ze = (e = { placeholder: "Write something ..." }) => [
121
28
  HTMLAttributes: { target: "_blank" }
122
29
  }
123
30
  }),
124
- X.Placeholder.configure({ placeholder: e?.placeholder }),
125
- pe,
126
- X.Selection,
127
- ue,
128
- le,
31
+ Y.configure({ placeholder: e?.placeholder }),
32
+ W,
33
+ oe,
34
+ U,
35
+ H,
129
36
  t,
130
- he.configure({ types: [
37
+ G.configure({ types: [
131
38
  "paragraph",
132
39
  "heading",
133
40
  "bulletList",
@@ -142,7 +49,7 @@ var Ze = (e = { placeholder: "Write something ..." }) => [
142
49
  o[11] !== s || o[12] !== h ? (S = /* @__PURE__ */ g(s, { size: h }), o[11] = s, o[12] = h, o[13] = S) : S = o[13];
143
50
  let C;
144
51
  o[14] !== u || o[15] !== f || o[16] !== n || o[17] !== y || o[18] !== x || o[19] !== S || o[20] !== m ? (C = /* @__PURE__ */ g(r, {
145
- onPointerDown: Qe,
52
+ onPointerDown: ue,
146
53
  render: /* @__PURE__ */ _(e, {
147
54
  ref: n,
148
55
  type: "button",
@@ -162,41 +69,41 @@ var Ze = (e = { placeholder: "Write something ..." }) => [
162
69
  return o[24] !== C || o[25] !== w ? (T = /* @__PURE__ */ _(a, { children: [C, w] }), o[24] = C, o[25] = w, o[26] = T) : T = o[26], T;
163
70
  });
164
71
  Z.displayName = "ToolbarButton";
165
- function Qe(e) {
72
+ function ue(e) {
166
73
  return e.preventDefault();
167
74
  }
168
75
  //#endregion
169
76
  //#region ../../libraries/react-collection/dist/components/editor/Toolbar.cssm.js
170
- var $e = "_261ja30", Q = "_261ja31", et = [
77
+ var de = "_261ja30", Q = "_261ja31", fe = [
171
78
  "paragraph",
172
79
  "heading",
173
80
  "bulletList",
174
81
  "orderedList",
175
82
  "taskList",
176
83
  "codeBlock"
177
- ], tt = [
84
+ ], pe = [
178
85
  "tableCell",
179
86
  "tableHeader",
180
87
  "quoteCaption",
181
88
  "detailsSummary"
182
- ], nt = (e) => {
89
+ ], me = (e) => {
183
90
  if (!e) return !1;
184
91
  let { $from: t } = e.state.selection;
185
- for (let e = t.depth; e > 0; e--) if (tt.includes(t.node(e).type.name)) return !0;
92
+ for (let e = t.depth; e > 0; e--) if (pe.includes(t.node(e).type.name)) return !0;
186
93
  return !1;
187
- }, rt = (e, t) => {
94
+ }, he = (e, t) => {
188
95
  if (!e || t.length === 0) return !1;
189
96
  let { selection: n } = e.state, r = new Set(t);
190
- if (n instanceof we) {
97
+ if (n instanceof q) {
191
98
  let e = n.node?.type?.name;
192
99
  return !!e && r.has(e);
193
100
  }
194
- if (n instanceof Te || n instanceof Ce) {
101
+ if (n instanceof J || n instanceof K) {
195
102
  let t = !0;
196
103
  return e.state.doc.nodesBetween(n.from, n.to, (e) => e.isTextblock && !r.has(e.type.name) ? (t = !1, !1) : t), t;
197
104
  }
198
105
  return !1;
199
- }, it = /[\0-\x20\xA0\u1680\u180E\u2000-\u2029\u205F\u3000]/g, at = [
106
+ }, ge = /[\0-\x20\xA0\u1680\u180E\u2000-\u2029\u205F\u3000]/g, _e = [
200
107
  "http",
201
108
  "https",
202
109
  "ftp",
@@ -205,20 +112,20 @@ var $e = "_261ja30", Q = "_261ja31", et = [
205
112
  "tel",
206
113
  "callto",
207
114
  "sms"
208
- ], ot = (e, t) => {
115
+ ], ve = (e, t) => {
209
116
  try {
210
- let n = new URL(e, t), r = n.href.replace(it, ""), i = RegExp(`^(?:(?:${at.join("|")}):|[^a-z]|[a-z0-9+.\\-]+(?:[^a-z+.\\-:]|$))`, "i");
117
+ let n = new URL(e, t), r = n.href.replace(ge, ""), i = RegExp(`^(?:(?:${_e.join("|")}):|[^a-z]|[a-z0-9+.\\-]+(?:[^a-z+.\\-:]|$))`, "i");
211
118
  if (r.match(i)) return n.href;
212
119
  } catch {}
213
120
  return "#";
214
- }, st = (e, t = []) => {
121
+ }, ye = (e, t = []) => {
215
122
  let { tr: n } = e.state, { selection: r } = n;
216
123
  return r.empty ? !1 : (r.ranges.forEach((e) => {
217
124
  n.doc.nodesBetween(e.$from.pos, e.$to.pos, (e, r) => (e.isInline && e.marks.forEach((i) => {
218
125
  t.includes(i.type.name) || n.removeMark(r, r + e.nodeSize, i.type);
219
126
  }), !0));
220
127
  }), e.view.dispatch(n), e.commands.focus(), !0);
221
- }, ct = (e) => {
128
+ }, be = (e) => {
222
129
  let { selection: t } = e.state;
223
130
  if (t.empty) return !1;
224
131
  for (let n of t.ranges) {
@@ -226,10 +133,10 @@ var $e = "_261ja30", Q = "_261ja31", et = [
226
133
  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;
227
134
  }
228
135
  return !1;
229
- }, lt = "j67x6z0", ut = "j67x6z1", dt = "_5pk5r80", ft = (e) => {
230
- let t = d(50), { editor: n } = e, [f, h] = m(!1), { isActive: v, currentUrl: y } = (0, X.useEditorState)({
136
+ }, xe = "j67x6z0", Se = "j67x6z1", Ce = "_5pk5r80", we = (e) => {
137
+ let t = d(50), { editor: n } = e, [f, h] = m(!1), { isActive: v, currentUrl: y } = X({
231
138
  editor: n,
232
- selector: pt
139
+ selector: Te
233
140
  }) ?? {
234
141
  isActive: !1,
235
142
  currentUrl: ""
@@ -247,116 +154,116 @@ var $e = "_261ja30", Q = "_261ja31", et = [
247
154
  }, t[7] = n, t[8] = E);
248
155
  let ee = E, D;
249
156
  t[9] === b ? D = t[10] : (D = () => {
250
- let e = ot(b, window.location.href);
157
+ let e = ve(b, window.location.href);
251
158
  e !== "#" && window.open(e, "_blank", "noopener,noreferrer");
252
159
  }, t[9] = b, t[10] = D);
253
- let re = D, O;
254
- t[11] === Symbol.for("react.memo_cache_sentinel") ? (O = (e) => {
160
+ let O = D, k;
161
+ t[11] === Symbol.for("react.memo_cache_sentinel") ? (k = (e) => {
255
162
  e.preventDefault(), h(!0);
256
- }, t[11] = O) : O = t[11];
257
- let k;
258
- t[12] === v ? k = t[13] : (k = /* @__PURE__ */ g(l, {
259
- onPointerDown: mt,
163
+ }, t[11] = k) : k = t[11];
164
+ let A;
165
+ t[12] === v ? A = t[13] : (A = /* @__PURE__ */ g(l, {
166
+ onPointerDown: Ee,
260
167
  render: /* @__PURE__ */ g(Z, {
261
168
  label: "Link",
262
- Icon: ie,
169
+ Icon: re,
263
170
  isActive: v,
264
- onClick: O
171
+ onClick: k
265
172
  })
266
- }), t[12] = v, t[13] = k);
267
- let A;
268
- t[14] === Symbol.for("react.memo_cache_sentinel") ? (A = (e) => x(e.target.value), t[14] = A) : A = t[14];
173
+ }), t[12] = v, t[13] = A);
269
174
  let j;
270
- t[15] === T ? j = t[16] : (j = (e) => {
271
- e.key === "Enter" && (e.preventDefault(), T());
272
- }, t[15] = T, t[16] = j);
175
+ t[14] === Symbol.for("react.memo_cache_sentinel") ? (j = (e) => x(e.target.value), t[14] = j) : j = t[14];
273
176
  let M;
274
- t[17] !== j || t[18] !== b ? (M = /* @__PURE__ */ g("input", {
275
- className: ut,
177
+ t[15] === T ? M = t[16] : (M = (e) => {
178
+ e.key === "Enter" && (e.preventDefault(), T());
179
+ }, t[15] = T, t[16] = M);
180
+ let N;
181
+ t[17] !== M || t[18] !== b ? (N = /* @__PURE__ */ g("input", {
182
+ className: Se,
276
183
  value: b,
277
- onChange: A,
278
- onKeyDown: j,
184
+ onChange: j,
185
+ onKeyDown: M,
279
186
  placeholder: "Paste a link..."
280
- }), t[17] = j, t[18] = b, t[19] = M) : M = t[19];
281
- let N = !b && !v, P;
187
+ }), t[17] = M, t[18] = b, t[19] = N) : N = t[19];
188
+ let ie = !b && !v, P;
282
189
  t[20] === Symbol.for("react.memo_cache_sentinel") ? (P = /* @__PURE__ */ g(te, { size: 16 }), t[20] = P) : P = t[20];
283
190
  let F;
284
- t[21] !== T || t[22] !== N ? (F = /* @__PURE__ */ g(r, { render: /* @__PURE__ */ g("button", {
191
+ t[21] !== T || t[22] !== ie ? (F = /* @__PURE__ */ g(r, { render: /* @__PURE__ */ g("button", {
285
192
  type: "button",
286
- className: dt,
193
+ className: Ce,
287
194
  onClick: T,
288
- disabled: N,
195
+ disabled: ie,
289
196
  "aria-label": "Apply link",
290
197
  children: P
291
- }) }), t[21] = T, t[22] = N, t[23] = F) : F = t[23];
198
+ }) }), t[21] = T, t[22] = ie, t[23] = F) : F = t[23];
292
199
  let I;
293
200
  t[24] === Symbol.for("react.memo_cache_sentinel") ? (I = /* @__PURE__ */ g(i, { children: "Apply link" }), t[24] = I) : I = t[24];
294
201
  let L;
295
202
  t[25] === F ? L = t[26] : (L = /* @__PURE__ */ _(a, { children: [F, I] }), t[25] = F, t[26] = L);
296
- let ae = !b && !v, R;
297
- t[27] === Symbol.for("react.memo_cache_sentinel") ? (R = /* @__PURE__ */ g(ne, { size: 16 }), t[27] = R) : R = t[27];
298
- let z;
299
- t[28] !== re || t[29] !== ae ? (z = /* @__PURE__ */ g(r, { render: /* @__PURE__ */ g("button", {
203
+ let R = !b && !v, z;
204
+ t[27] === Symbol.for("react.memo_cache_sentinel") ? (z = /* @__PURE__ */ g(ne, { size: 16 }), t[27] = z) : z = t[27];
205
+ let B;
206
+ t[28] !== O || t[29] !== R ? (B = /* @__PURE__ */ g(r, { render: /* @__PURE__ */ g("button", {
300
207
  type: "button",
301
- className: dt,
302
- onClick: re,
303
- disabled: ae,
208
+ className: Ce,
209
+ onClick: O,
210
+ disabled: R,
304
211
  "aria-label": "Open in new window",
305
- children: R
306
- }) }), t[28] = re, t[29] = ae, t[30] = z) : z = t[30];
307
- let B;
308
- t[31] === Symbol.for("react.memo_cache_sentinel") ? (B = /* @__PURE__ */ g(i, { children: "Open in new window" }), t[31] = B) : B = t[31];
212
+ children: z
213
+ }) }), t[28] = O, t[29] = R, t[30] = B) : B = t[30];
309
214
  let V;
310
- t[32] === z ? V = t[33] : (V = /* @__PURE__ */ _(a, { children: [z, B] }), t[32] = z, t[33] = V);
311
- let H = !b && !v, U;
312
- t[34] === Symbol.for("react.memo_cache_sentinel") ? (U = /* @__PURE__ */ g(oe, { size: 16 }), t[34] = U) : U = t[34];
313
- let W;
314
- t[35] !== ee || t[36] !== H ? (W = /* @__PURE__ */ g(r, { render: /* @__PURE__ */ g("button", {
215
+ t[31] === Symbol.for("react.memo_cache_sentinel") ? (V = /* @__PURE__ */ g(i, { children: "Open in new window" }), t[31] = V) : V = t[31];
216
+ let H;
217
+ t[32] === B ? H = t[33] : (H = /* @__PURE__ */ _(a, { children: [B, V] }), t[32] = B, t[33] = H);
218
+ let U = !b && !v, W;
219
+ t[34] === Symbol.for("react.memo_cache_sentinel") ? (W = /* @__PURE__ */ g(ae, { size: 16 }), t[34] = W) : W = t[34];
220
+ let G;
221
+ t[35] !== ee || t[36] !== U ? (G = /* @__PURE__ */ g(r, { render: /* @__PURE__ */ g("button", {
315
222
  type: "button",
316
- className: dt,
223
+ className: Ce,
317
224
  onClick: ee,
318
- disabled: H,
225
+ disabled: U,
319
226
  "aria-label": "Remove link",
320
- children: U
321
- }) }), t[35] = ee, t[36] = H, t[37] = W) : W = t[37];
322
- let G;
323
- t[38] === Symbol.for("react.memo_cache_sentinel") ? (G = /* @__PURE__ */ g(i, { children: "Remove link" }), t[38] = G) : G = t[38];
227
+ children: W
228
+ }) }), t[35] = ee, t[36] = U, t[37] = G) : G = t[37];
324
229
  let K;
325
- t[39] === W ? K = t[40] : (K = /* @__PURE__ */ _(a, { children: [W, G] }), t[39] = W, t[40] = K);
230
+ t[38] === Symbol.for("react.memo_cache_sentinel") ? (K = /* @__PURE__ */ g(i, { children: "Remove link" }), t[38] = K) : K = t[38];
326
231
  let q;
327
- t[41] !== M || t[42] !== L || t[43] !== V || t[44] !== K ? (q = /* @__PURE__ */ g(s, { children: /* @__PURE__ */ g(u, {
232
+ t[39] === G ? q = t[40] : (q = /* @__PURE__ */ _(a, { children: [G, K] }), t[39] = G, t[40] = q);
233
+ let J;
234
+ t[41] !== N || t[42] !== L || t[43] !== H || t[44] !== q ? (J = /* @__PURE__ */ g(s, { children: /* @__PURE__ */ g(u, {
328
235
  side: "bottom",
329
236
  align: "center",
330
237
  children: /* @__PURE__ */ _(o.Popup, {
331
- className: lt,
238
+ className: xe,
332
239
  children: [
333
- M,
240
+ N,
334
241
  L,
335
- V,
336
- K
242
+ H,
243
+ q
337
244
  ]
338
245
  })
339
- }) }), t[41] = M, t[42] = L, t[43] = V, t[44] = K, t[45] = q) : q = t[45];
340
- let J;
341
- return t[46] !== f || t[47] !== q || t[48] !== k ? (J = /* @__PURE__ */ _(c, {
246
+ }) }), t[41] = N, t[42] = L, t[43] = H, t[44] = q, t[45] = J) : J = t[45];
247
+ let Y;
248
+ return t[46] !== f || t[47] !== J || t[48] !== A ? (Y = /* @__PURE__ */ _(c, {
342
249
  open: f,
343
250
  onOpenChange: h,
344
- children: [k, q]
345
- }), t[46] = f, t[47] = q, t[48] = k, t[49] = J) : J = t[49], J;
251
+ children: [A, J]
252
+ }), t[46] = f, t[47] = J, t[48] = A, t[49] = Y) : Y = t[49], Y;
346
253
  };
347
- function pt(e) {
254
+ function Te(e) {
348
255
  let { editor: t } = e;
349
256
  return {
350
257
  isActive: t.isActive("link"),
351
258
  currentUrl: t.getAttributes("link")?.href ?? ""
352
259
  };
353
260
  }
354
- function mt(e) {
261
+ function Ee(e) {
355
262
  return e.preventDefault();
356
263
  }
357
264
  //#endregion
358
265
  //#region ../../libraries/react-collection/dist/components/editor/menus/TurnIntoMenu.cssm.js
359
- var ht = "_1keigwl0", gt = "_1keigwl1 _5pk5r80", $ = (e) => (t) => t.chain().focus().setHeading({ level: e }).run(), _t = [
266
+ var De = "_1keigwl0", Oe = "_1keigwl1 _5pk5r80", $ = (e) => (t) => t.chain().focus().setHeading({ level: e }).run(), ke = [
360
267
  {
361
268
  type: "paragraph",
362
269
  label: "Text",
@@ -376,7 +283,7 @@ var ht = "_1keigwl0", gt = "_1keigwl1 _5pk5r80", $ = (e) => (t) => t.chain().foc
376
283
  {
377
284
  type: "heading_2",
378
285
  label: "Heading 2",
379
- Icon: re,
286
+ Icon: O,
380
287
  isActive: (e) => e.isActive("heading", { level: 2 }),
381
288
  canApply: (e) => e.can().setHeading({ level: 2 }) || e.can().clearNodes(),
382
289
  apply: $(2)
@@ -384,7 +291,7 @@ var ht = "_1keigwl0", gt = "_1keigwl1 _5pk5r80", $ = (e) => (t) => t.chain().foc
384
291
  {
385
292
  type: "heading_3",
386
293
  label: "Heading 3",
387
- Icon: O,
294
+ Icon: k,
388
295
  isActive: (e) => e.isActive("heading", { level: 3 }),
389
296
  canApply: (e) => e.can().setHeading({ level: 3 }) || e.can().clearNodes(),
390
297
  apply: $(3)
@@ -392,7 +299,7 @@ var ht = "_1keigwl0", gt = "_1keigwl1 _5pk5r80", $ = (e) => (t) => t.chain().foc
392
299
  {
393
300
  type: "heading_4",
394
301
  label: "Heading 4",
395
- Icon: k,
302
+ Icon: A,
396
303
  isActive: (e) => e.isActive("heading", { level: 4 }),
397
304
  canApply: (e) => e.can().setHeading({ level: 4 }) || e.can().clearNodes(),
398
305
  apply: $(4)
@@ -400,7 +307,7 @@ var ht = "_1keigwl0", gt = "_1keigwl1 _5pk5r80", $ = (e) => (t) => t.chain().foc
400
307
  {
401
308
  type: "heading_5",
402
309
  label: "Heading 5",
403
- Icon: A,
310
+ Icon: j,
404
311
  isActive: (e) => e.isActive("heading", { level: 5 }),
405
312
  canApply: (e) => e.can().setHeading({ level: 5 }) || e.can().clearNodes(),
406
313
  apply: $(5)
@@ -408,7 +315,7 @@ var ht = "_1keigwl0", gt = "_1keigwl1 _5pk5r80", $ = (e) => (t) => t.chain().foc
408
315
  {
409
316
  type: "heading_6",
410
317
  label: "Heading 6",
411
- Icon: j,
318
+ Icon: M,
412
319
  isActive: (e) => e.isActive("heading", { level: 6 }),
413
320
  canApply: (e) => e.can().setHeading({ level: 6 }) || e.can().clearNodes(),
414
321
  apply: $(6)
@@ -416,7 +323,7 @@ var ht = "_1keigwl0", gt = "_1keigwl1 _5pk5r80", $ = (e) => (t) => t.chain().foc
416
323
  {
417
324
  type: "bulletList",
418
325
  label: "Bullet List",
419
- Icon: N,
326
+ Icon: ie,
420
327
  isActive: (e) => e.isActive("bulletList"),
421
328
  canApply: (e) => e.can().toggleBulletList() || e.can().clearNodes(),
422
329
  apply: (e) => e.chain().focus().toggleBulletList().run()
@@ -429,10 +336,10 @@ var ht = "_1keigwl0", gt = "_1keigwl1 _5pk5r80", $ = (e) => (t) => t.chain().foc
429
336
  canApply: (e) => e.can().toggleOrderedList() || e.can().clearNodes(),
430
337
  apply: (e) => e.chain().focus().toggleOrderedList().run()
431
338
  }
432
- ], vt = (e) => {
433
- let t = d(19), { editor: n } = e, [r, i] = m(!1), { activeBlock: a, canConvert: f, structural: p } = (0, X.useEditorState)({
339
+ ], Ae = (e) => {
340
+ let t = d(19), { editor: n } = e, [r, i] = m(!1), { activeBlock: a, canConvert: f, structural: p } = X({
434
341
  editor: n,
435
- selector: yt
342
+ selector: je
436
343
  }) ?? {
437
344
  activeBlock: null,
438
345
  canConvert: !1,
@@ -443,7 +350,7 @@ var ht = "_1keigwl0", gt = "_1keigwl1 _5pk5r80", $ = (e) => (t) => t.chain().foc
443
350
  }, t[0] = b, t[1] = x) : (b = t[0], x = t[1]);
444
351
  let S;
445
352
  t[2] !== h || t[3] !== y || t[4] !== v ? (S = /* @__PURE__ */ g(l, {
446
- onPointerDown: bt,
353
+ onPointerDown: Me,
447
354
  render: /* @__PURE__ */ g(Z, {
448
355
  label: v,
449
356
  Icon: h,
@@ -459,20 +366,20 @@ var ht = "_1keigwl0", gt = "_1keigwl1 _5pk5r80", $ = (e) => (t) => t.chain().foc
459
366
  let r;
460
367
  t[11] === n ? r = t[12] : (r = (e) => /* @__PURE__ */ _("button", {
461
368
  type: "button",
462
- className: gt,
369
+ className: Oe,
463
370
  disabled: !e.canApply(n),
464
371
  onClick: () => {
465
372
  e.apply(n), i(!1);
466
373
  },
467
374
  children: [/* @__PURE__ */ g(e.Icon, { size: 16 }), /* @__PURE__ */ g("span", { children: e.label })]
468
- }, e.type), t[11] = n, t[12] = r), C = _t.filter(e).map(r), t[6] = a?.type, t[7] = n, t[8] = C;
375
+ }, e.type), t[11] = n, t[12] = r), C = ke.filter(e).map(r), t[6] = a?.type, t[7] = n, t[8] = C;
469
376
  } else C = t[8];
470
377
  let w;
471
378
  t[13] === C ? w = t[14] : (w = /* @__PURE__ */ g(s, { children: /* @__PURE__ */ g(u, {
472
379
  side: "bottom",
473
380
  align: "start",
474
381
  children: /* @__PURE__ */ g(o.Popup, {
475
- className: ht,
382
+ className: De,
476
383
  children: C
477
384
  })
478
385
  }) }), t[13] = C, t[14] = w);
@@ -483,20 +390,20 @@ var ht = "_1keigwl0", gt = "_1keigwl1 _5pk5r80", $ = (e) => (t) => t.chain().foc
483
390
  children: [S, w]
484
391
  }), t[15] = r, t[16] = S, t[17] = w, t[18] = T) : T = t[18], T;
485
392
  };
486
- function yt(e) {
393
+ function je(e) {
487
394
  let { editor: t } = e;
488
395
  return {
489
- activeBlock: _t.find((e) => e.isActive(t)) ?? null,
490
- canConvert: rt(t, et),
491
- structural: nt(t)
396
+ activeBlock: ke.find((e) => e.isActive(t)) ?? null,
397
+ canConvert: he(t, fe),
398
+ structural: me(t)
492
399
  };
493
400
  }
494
- function bt(e) {
401
+ function Me(e) {
495
402
  return e.preventDefault();
496
403
  }
497
404
  //#endregion
498
405
  //#region ../../libraries/react-collection/dist/components/editor/Toolbar.js
499
- var xt = [
406
+ var Ne = [
500
407
  {
501
408
  mark: "bold",
502
409
  label: "Bold",
@@ -505,32 +412,32 @@ var xt = [
505
412
  {
506
413
  mark: "italic",
507
414
  label: "Italic",
508
- Icon: M
415
+ Icon: N
509
416
  },
510
417
  {
511
418
  mark: "underline",
512
419
  label: "Underline",
513
- Icon: B
420
+ Icon: V
514
421
  },
515
422
  {
516
423
  mark: "strike",
517
424
  label: "Strike",
518
- Icon: ae
425
+ Icon: R
519
426
  },
520
427
  {
521
428
  mark: "code",
522
429
  label: "Code",
523
430
  Icon: ee
524
431
  }
525
- ], St = [{
432
+ ], Pe = [{
526
433
  mark: "superscript",
527
434
  label: "Superscript",
528
- Icon: z
435
+ Icon: B
529
436
  }, {
530
437
  mark: "subscript",
531
438
  label: "Subscript",
532
- Icon: R
533
- }], Ct = [
439
+ Icon: z
440
+ }], Fe = [
534
441
  {
535
442
  align: "left",
536
443
  label: "Align left",
@@ -551,8 +458,8 @@ var xt = [
551
458
  label: "Align justify",
552
459
  Icon: b
553
460
  }
554
- ], wt = (e) => {
555
- let t = d(9), { editor: n, mark: r, label: i, Icon: a } = e, { isActive: o, canExecute: s } = (0, X.useEditorState)({
461
+ ], Ie = (e) => {
462
+ let t = d(9), { editor: n, mark: r, label: i, Icon: a } = e, { isActive: o, canExecute: s } = X({
556
463
  editor: n,
557
464
  selector: (e) => {
558
465
  let { editor: t } = e;
@@ -574,8 +481,8 @@ var xt = [
574
481
  disabled: c,
575
482
  onClick: l
576
483
  }), t[3] = a, t[4] = o, t[5] = i, t[6] = c, t[7] = l, t[8] = u) : u = t[8], u;
577
- }, Tt = (e) => {
578
- let t = d(9), { editor: n, align: r, label: i, Icon: a } = e, { isActive: o, canExecute: s } = (0, X.useEditorState)({
484
+ }, Le = (e) => {
485
+ let t = d(9), { editor: n, align: r, label: i, Icon: a } = e, { isActive: o, canExecute: s } = X({
579
486
  editor: n,
580
487
  selector: (e) => {
581
488
  let { editor: t } = e;
@@ -597,10 +504,10 @@ var xt = [
597
504
  disabled: c,
598
505
  onClick: l
599
506
  }), t[3] = a, t[4] = o, t[5] = i, t[6] = c, t[7] = l, t[8] = u) : u = t[8], u;
600
- }, Et = (e) => {
601
- let t = d(5), { editor: n } = e, r = !((0, X.useEditorState)({
507
+ }, Re = (e) => {
508
+ let t = d(5), { editor: n } = e, r = !(X({
602
509
  editor: n,
603
- selector: At
510
+ selector: He
604
511
  }) ?? !1), i;
605
512
  t[0] === n ? i = t[1] : (i = () => n.chain().focus().undo().run(), t[0] = n, t[1] = i);
606
513
  let a;
@@ -610,10 +517,10 @@ var xt = [
610
517
  disabled: r,
611
518
  onClick: i
612
519
  }), t[2] = r, t[3] = i, t[4] = a) : a = t[4], a;
613
- }, Dt = (e) => {
614
- let t = d(5), { editor: n } = e, r = !((0, X.useEditorState)({
520
+ }, ze = (e) => {
521
+ let t = d(5), { editor: n } = e, r = !(X({
615
522
  editor: n,
616
- selector: jt
523
+ selector: Ue
617
524
  }) ?? !1), i;
618
525
  t[0] === n ? i = t[1] : (i = () => n.chain().focus().redo().run(), t[0] = n, t[1] = i);
619
526
  let a;
@@ -623,12 +530,12 @@ var xt = [
623
530
  disabled: r,
624
531
  onClick: i
625
532
  }), t[2] = r, t[3] = i, t[4] = a) : a = t[4], a;
626
- }, Ot = (e) => {
627
- let t = d(5), { editor: n } = e, r = !((0, X.useEditorState)({
533
+ }, Be = (e) => {
534
+ let t = d(5), { editor: n } = e, r = !(X({
628
535
  editor: n,
629
- selector: Mt
536
+ selector: We
630
537
  }) ?? !1), i;
631
- t[0] === n ? i = t[1] : (i = () => st(n), t[0] = n, t[1] = i);
538
+ t[0] === n ? i = t[1] : (i = () => ye(n), t[0] = n, t[1] = i);
632
539
  let a;
633
540
  return t[2] !== r || t[3] !== i ? (a = /* @__PURE__ */ g(Z, {
634
541
  label: "Reset formatting",
@@ -636,18 +543,18 @@ var xt = [
636
543
  disabled: r,
637
544
  onClick: i
638
545
  }), t[2] = r, t[3] = i, t[4] = a) : a = t[4], a;
639
- }, kt = (e) => {
640
- let t = d(33), { children: r } = e, { editor: i } = (0, X.useCurrentEditor)();
546
+ }, Ve = (e) => {
547
+ let t = d(33), { children: r } = e, { editor: i } = ce();
641
548
  if (!i) return null;
642
549
  let a;
643
550
  t[0] === i ? a = t[1] : (a = /* @__PURE__ */ g("div", {
644
551
  className: Q,
645
- children: /* @__PURE__ */ g(vt, { editor: i })
552
+ children: /* @__PURE__ */ g(Ae, { editor: i })
646
553
  }), t[0] = i, t[1] = a);
647
554
  let o;
648
555
  t[2] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ g(n, { orientation: "vertical" }), t[2] = o) : o = t[2];
649
556
  let s;
650
- t[3] === i ? s = t[4] : (s = xt.map((e) => /* @__PURE__ */ g(wt, {
557
+ t[3] === i ? s = t[4] : (s = Ne.map((e) => /* @__PURE__ */ g(Ie, {
651
558
  editor: i,
652
559
  ...e
653
560
  }, e.mark)), t[3] = i, t[4] = s);
@@ -661,12 +568,12 @@ var xt = [
661
568
  let u;
662
569
  t[8] === i ? u = t[9] : (u = /* @__PURE__ */ g("div", {
663
570
  className: Q,
664
- children: /* @__PURE__ */ g(ft, { editor: i })
571
+ children: /* @__PURE__ */ g(we, { editor: i })
665
572
  }), t[8] = i, t[9] = u);
666
573
  let f;
667
574
  t[10] === Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ g(n, { orientation: "vertical" }), t[10] = f) : f = t[10];
668
575
  let p;
669
- t[11] === i ? p = t[12] : (p = Ct.map((e) => /* @__PURE__ */ g(Tt, {
576
+ t[11] === i ? p = t[12] : (p = Fe.map((e) => /* @__PURE__ */ g(Le, {
670
577
  editor: i,
671
578
  ...e
672
579
  }, e.align)), t[11] = i, t[12] = p);
@@ -678,7 +585,7 @@ var xt = [
678
585
  let v;
679
586
  t[15] === Symbol.for("react.memo_cache_sentinel") ? (v = /* @__PURE__ */ g(n, { orientation: "vertical" }), t[15] = v) : v = t[15];
680
587
  let y;
681
- t[16] === i ? y = t[17] : (y = St.map((e) => /* @__PURE__ */ g(wt, {
588
+ t[16] === i ? y = t[17] : (y = Pe.map((e) => /* @__PURE__ */ g(Ie, {
682
589
  editor: i,
683
590
  ...e
684
591
  }, e.mark)), t[16] = i, t[17] = y);
@@ -693,9 +600,9 @@ var xt = [
693
600
  t[21] === i ? S = t[22] : (S = /* @__PURE__ */ _("div", {
694
601
  className: Q,
695
602
  children: [
696
- /* @__PURE__ */ g(Ot, { editor: i }),
697
- /* @__PURE__ */ g(Et, { editor: i }),
698
- /* @__PURE__ */ g(Dt, { editor: i })
603
+ /* @__PURE__ */ g(Be, { editor: i }),
604
+ /* @__PURE__ */ g(Re, { editor: i }),
605
+ /* @__PURE__ */ g(ze, { editor: i })
699
606
  ]
700
607
  }), t[21] = i, t[22] = S);
701
608
  let C;
@@ -705,7 +612,7 @@ var xt = [
705
612
  })] }), t[23] = r, t[24] = C);
706
613
  let w;
707
614
  return t[25] !== a || t[26] !== b || t[27] !== S || t[28] !== C || t[29] !== c || t[30] !== u || t[31] !== m ? (w = /* @__PURE__ */ _("div", {
708
- className: $e,
615
+ className: de,
709
616
  children: [
710
617
  a,
711
618
  o,
@@ -722,17 +629,17 @@ var xt = [
722
629
  ]
723
630
  }), t[25] = a, t[26] = b, t[27] = S, t[28] = C, t[29] = c, t[30] = u, t[31] = m, t[32] = w) : w = t[32], w;
724
631
  };
725
- function At(e) {
632
+ function He(e) {
726
633
  let { editor: t } = e;
727
634
  return t.isEditable && t.can().undo();
728
635
  }
729
- function jt(e) {
636
+ function Ue(e) {
730
637
  let { editor: t } = e;
731
638
  return t.isEditable && t.can().redo();
732
639
  }
733
- function Mt(e) {
640
+ function We(e) {
734
641
  let { editor: t } = e;
735
- return t.isEditable && ct(t);
642
+ return t.isEditable && be(t);
736
643
  }
737
644
  //#endregion
738
- export { Ge as a, X as i, Z as n, Ze as r, kt as t };
645
+ export { Z as n, le as r, Ve as t };