@levo-so/studio 0.1.102 → 0.1.103

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 (57) hide show
  1. package/{AuthProvider-56TywIOB.js → AuthProvider-C6bvedwF.js} +16 -16
  2. package/{BillingStep-BTRobf00.js → BillingStep-BA3H9BVu.js} +1 -1
  3. package/{Button-DTrN8kki.js → Button-CZycqusY.js} +240 -143
  4. package/Button-lUfKisu8.js +116 -0
  5. package/CollectionField-xa-jed3_.js +232 -0
  6. package/{CollectionInput-lHOvWWav.js → CollectionInput-CpNGIXJx.js} +32 -32
  7. package/DateTimeWidget-DP_nMhqe.js +256 -0
  8. package/Dialog-IrII0ugb.js +130 -0
  9. package/{EntryCard-CqZlbw1Z.js → EntryCard-CQpKNX7G.js} +6 -6
  10. package/{LoginCard-DWLnYJJU.js → LoginCard-Cyvm-y_q.js} +3 -3
  11. package/{LoginForm-CEUbBeE3.js → LoginForm-_44FtvWg.js} +200 -200
  12. package/{LoginModal-AWNLO49X.js → LoginModal-Cyw_XKvz.js} +4 -4
  13. package/{MessageCard-C5ULcfuw.js → MessageCard-C2lNTxFx.js} +2 -2
  14. package/{MessageFooter-CATwNJJU.js → MessageFooter-59Pziq3i.js} +2 -2
  15. package/{ModalManager-DQXhkmyC.js → ModalManager-DHkd0Zdb.js} +1 -1
  16. package/{PendingApprovalCard-BowwZMBu.js → PendingApprovalCard-C8iZjo06.js} +3 -3
  17. package/PhoneWidget-CxxxDXkz.js +100 -0
  18. package/{Popover-Du4iigVw.js → Popover-DOvRAGzc.js} +19 -20
  19. package/PopupRenderer-C7OHYphU-Ct5T6tWM.js +2668 -0
  20. package/{RichTextWidget-iYdVRBGB.js → RichTextWidget-BqlcssWt.js} +13 -12
  21. package/RteThemeProvider-Cfepkyer.js +20 -0
  22. package/{StripePaymentModal-DC-ySB_o.js → StripePaymentModal-DrLMN18M.js} +17 -17
  23. package/{Toolbar-BHi_B-nE.js → Toolbar-BwxoYWO_.js} +251 -250
  24. package/Tooltip-NEMQqPyr.js +67 -0
  25. package/VerifyButton-TNkt-SDu.js +177 -0
  26. package/bookingCard-BDyuBC6X.js +636 -0
  27. package/collection.js +8 -8
  28. package/{dialog-CCWrvmHd.js → dialog-C8-iHixJ.js} +32 -32
  29. package/dist-CG-pwDW0.js +3188 -0
  30. package/generateRadiusScale-BpcgkGtN.js +71 -0
  31. package/getFieldValidations-CSkSV2hW.js +90 -0
  32. package/index.d.ts +53 -2
  33. package/index.js +5869 -7655
  34. package/inlineRteTheme-Ajq9PNpQ.js +9 -0
  35. package/{nodeAlignment-DoVbjk29.js → nodeAlignment-DKCIjzlR.js} +3 -3
  36. package/package.json +37 -39
  37. package/studio.css +1 -1
  38. package/{useLogin-D2VCOHYI.js → useLogin-B2qE8710.js} +23 -23
  39. package/{utils-Bh9uGjo1.js → utils-CZLafTgN.js} +1 -1
  40. package/{widgets-CG5Z_dk7.js → widgets-eu5zXTf-.js} +38 -105
  41. package/CollectionField-7uXvhxYK.js +0 -274
  42. package/DateTimeWidget-BHCP5osb.js +0 -255
  43. package/PhoneWidget-C6uZmrk8.js +0 -100
  44. package/Tooltip-K_gFzjOa.js +0 -68
  45. package/VerifyButton-D21AOIX3.js +0 -273
  46. package/bookingCard--NlgtcJs.js +0 -577
  47. package/dist-x5VFEnQl.js +0 -3185
  48. package/getFieldValidations-DZnDgNI0.js +0 -159
  49. package/inlineRteTheme-Cn_Vqgsm.js +0 -23
  50. /package/{Beams-DkcjMVZl.js → Beams-DboMUgCv.js} +0 -0
  51. /package/{Dots-BrEPvoj3.js → Dots-a8xSboDv.js} +0 -0
  52. /package/{Gradient-B4Er9hym.js → Gradient-NacpoDCM.js} +0 -0
  53. /package/{Grid-B4XWU9eL.js → Grid-BJQvxnks.js} +0 -0
  54. /package/{Waves-kW-EBDdJ.js → Waves-DUuT_IFr.js} +0 -0
  55. /package/{authentication-fXmNYss1.js → authentication-hnV1BI8s.js} +0 -0
  56. /package/{card-BwNr7kQS.js → card-E2LKF9nT.js} +0 -0
  57. /package/{theme.cssm-2YTdd8Yh.js → theme.cssm-BXDp-ojp.js} +0 -0
@@ -1,115 +1,116 @@
1
- import { t as e } from "./nodeAlignment-DoVbjk29.js";
2
- import { l as t, u as n } from "./CollectionField-7uXvhxYK.js";
3
- import { n as r, r as i, t as a } from "./Tooltip-K_gFzjOa.js";
4
- import { a as o, i as s, n as c, o as l, r as u } from "./Popover-Du4iigVw.js";
5
- import { forwardRef as d, useEffect as f, useState as p } from "react";
6
- import { Fragment as m, jsx as h, jsxs as g } from "react/jsx-runtime";
7
- import { c as _ } from "react/compiler-runtime";
1
+ import { t as e } from "./Button-lUfKisu8.js";
2
+ import { t } from "./nodeAlignment-DKCIjzlR.js";
3
+ import { l as n } from "./CollectionField-xa-jed3_.js";
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";
6
+ import { c as d } from "react/compiler-runtime";
7
+ import { forwardRef as f, useEffect as p, useState as m } from "react";
8
+ import { Fragment as h, jsx as g, jsxs as _ } from "react/jsx-runtime";
8
9
  import v from "clsx";
9
- import { Document as y } from "@tiptap/extension-document";
10
- import { Link as b } from "@tiptap/extension-link";
11
- import { CodeBlock as x } from "@tiptap/extension-code-block";
12
- import { Details as S } from "@tiptap/extension-details";
13
- import { DetailsContent as C } from "@tiptap/extension-details-content";
14
- import { DetailsSummary as w } from "@tiptap/extension-details-summary";
15
- import { TextStyle as T } from "@tiptap/extension-text-style";
16
- import { HorizontalRule as E } from "@tiptap/extension-horizontal-rule";
17
- import { Image as ee } from "@tiptap/extension-image";
18
- import { AllSelection as D, NodeSelection as te, TextSelection as O } from "@tiptap/pm/state";
19
- import { Table as k, TableCell as A, TableHeader as j, TableRow as M } from "@tiptap/extension-table";
20
- import { BulletList as N } from "@tiptap/extension-bullet-list";
21
- import { Color as P } from "@tiptap/extension-color";
22
- import { HardBreak as F } from "@tiptap/extension-hard-break";
23
- import { Heading as I } from "@tiptap/extension-heading";
24
- import { Highlight as L } from "@tiptap/extension-highlight";
25
- import { ListItem as R } from "@tiptap/extension-list-item";
26
- import { OrderedList as z } from "@tiptap/extension-ordered-list";
27
- import { Paragraph as B } from "@tiptap/extension-paragraph";
28
- import { Subscript as V } from "@tiptap/extension-subscript";
29
- import { Superscript as H } from "@tiptap/extension-superscript";
30
- import { Text as U } from "@tiptap/extension-text";
31
- import { Underline as W } from "@tiptap/extension-underline";
32
- import { Typography as G } from "@tiptap/extension-typography";
33
- import { UniqueID as K } from "@tiptap/extension-unique-id";
34
- import { Youtube as q } from "@tiptap/extension-youtube";
35
- import { IconAlignCenter as J, IconAlignJustified as Y, IconAlignLeft as ne, IconAlignRight as re, IconArrowBackUp as ie, IconArrowForwardUp as ae, IconBold as oe, IconChevronDown as se, IconCode as ce, IconCornerDownLeft as le, IconExternalLink as ue, IconH1 as de, IconH2 as fe, IconH3 as pe, IconH4 as me, IconH5 as he, IconH6 as ge, IconItalic as _e, IconLink as ve, IconList as ye, IconListNumbers as be, IconPencil as xe, IconPilcrow as Se, IconRotate2 as Ce, IconStrikethrough as we, IconSubscript as Te, IconSuperscript as Ee, IconTrash as De, IconUnderline as Oe } from "@tabler/icons-react";
36
- import { Mention as ke } from "@tiptap/extension-mention";
37
- import { CharacterCount as Ae } from "@tiptap/extension-character-count";
38
- import { DragHandle as je } from "@tiptap/extension-drag-handle";
39
- import { DragHandle as Me } from "@tiptap/extension-drag-handle-react";
40
- import { Dropcursor as Ne } from "@tiptap/extension-dropcursor";
41
- import { Emoji as Pe } from "@tiptap/extension-emoji";
42
- import { FileHandler as Fe } from "@tiptap/extension-file-handler";
43
- import { Focus as Ie } from "@tiptap/extension-focus";
44
- import { Gapcursor as Le } from "@tiptap/extension-gapcursor";
45
- import { ListKeymap as Re } from "@tiptap/extension-list-keymap";
46
- import { TextAlign as ze } from "@tiptap/extension-text-align";
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";
47
48
  //#region \0rolldown/runtime.js
48
- var Be = Object.defineProperty, Ve = Object.getOwnPropertyDescriptor, He = Object.getOwnPropertyNames, Ue = Object.prototype.hasOwnProperty, We = (e, t) => {
49
+ var Ve = Object.defineProperty, He = Object.getOwnPropertyDescriptor, Ue = Object.getOwnPropertyNames, We = Object.prototype.hasOwnProperty, Ge = (e, t) => {
49
50
  let n = {};
50
- for (var r in e) Be(n, r, {
51
+ for (var r in e) Ve(n, r, {
51
52
  get: e[r],
52
53
  enumerable: !0
53
54
  });
54
- return t || Be(n, Symbol.toStringTag, { value: "Module" }), n;
55
- }, Ge = (e, t, n, r) => {
56
- if (t && typeof t == "object" || typeof t == "function") for (var i = He(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !Ue.call(e, s) && s !== n && Be(e, s, {
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, {
57
58
  get: ((e) => t[e]).bind(null, s),
58
- enumerable: !(r = Ve(t, s)) || r.enumerable
59
+ enumerable: !(r = He(t, s)) || r.enumerable
59
60
  });
60
61
  return e;
61
- }, Ke = (e, t, n) => (Ge(e, t, "default"), n && Ge(n, t, "default")), X = /* @__PURE__ */ We({
62
- BulletList: () => N,
63
- CharacterCount: () => Ae,
64
- CodeBlock: () => x,
65
- Color: () => P,
66
- Details: () => S,
67
- DetailsContent: () => C,
68
- DetailsSummary: () => w,
69
- Document: () => y,
70
- DragHandle: () => je,
71
- DragHandleReact: () => Me,
72
- Dropcursor: () => Ne,
73
- Emoji: () => Pe,
74
- FileHandler: () => Fe,
75
- Focus: () => Ie,
76
- Gapcursor: () => Le,
77
- HardBreak: () => F,
78
- Heading: () => I,
79
- Highlight: () => L,
80
- HorizontalRule: () => E,
81
- Image: () => ee,
82
- Link: () => b,
83
- ListItem: () => R,
84
- ListKeymap: () => Re,
85
- Mention: () => ke,
86
- OrderedList: () => z,
87
- Paragraph: () => B,
88
- Subscript: () => V,
89
- Superscript: () => H,
90
- Table: () => k,
91
- TableCell: () => A,
92
- TableHeader: () => j,
93
- TableRow: () => M,
94
- Text: () => U,
95
- TextAlign: () => ze,
96
- TextStyle: () => T,
97
- Typography: () => G,
98
- Underline: () => W,
99
- UniqueID: () => K,
100
- Youtube: () => q
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
101
102
  });
102
103
  import * as qe from "@tiptap/core";
103
- Ke(X, qe);
104
+ Y(X, qe);
104
105
  import * as Je from "@tiptap/extensions";
105
- Ke(X, Je);
106
+ Y(X, Je);
106
107
  import * as Ye from "@tiptap/react";
107
- Ke(X, Ye);
108
+ Y(X, Ye);
108
109
  import * as Xe from "@tiptap/starter-kit";
109
- Ke(X, Xe);
110
+ Y(X, Xe);
110
111
  //#endregion
111
112
  //#region ../../libraries/react-collection/dist/components/editor/extensionKit.js
112
- var Ze = (t = { placeholder: "Write something ..." }) => [
113
+ var Ze = (e = { placeholder: "Write something ..." }) => [
113
114
  X.StarterKit.configure({
114
115
  blockquote: !1,
115
116
  codeBlock: !1,
@@ -120,30 +121,30 @@ var Ze = (t = { placeholder: "Write something ..." }) => [
120
121
  HTMLAttributes: { target: "_blank" }
121
122
  }
122
123
  }),
123
- X.Placeholder.configure({ placeholder: t?.placeholder }),
124
- G,
124
+ X.Placeholder.configure({ placeholder: e?.placeholder }),
125
+ pe,
125
126
  X.Selection,
126
- H,
127
- V,
128
- e,
129
- K.configure({ types: [
127
+ ue,
128
+ le,
129
+ t,
130
+ he.configure({ types: [
130
131
  "paragraph",
131
132
  "heading",
132
133
  "bulletList",
133
134
  "orderedList"
134
135
  ] })
135
- ], Z = d((e, t) => {
136
- let o = _(27), s, c, l, u, d, f, p;
137
- o[0] === e ? (s = o[1], c = o[2], l = o[3], u = o[4], d = o[5], f = o[6], p = o[7]) : ({label: u, Icon: s, isActive: l, iconSize: f, trailing: p, className: c, ...d} = e, o[0] = e, o[1] = s, o[2] = c, o[3] = l, o[4] = u, o[5] = d, o[6] = f, o[7] = p);
138
- let m = f === void 0 ? 16 : f, y = l || void 0, b = l && "_1vaxhty0", x;
136
+ ], Z = f((t, n) => {
137
+ let o = d(27), s, c, l, u, f, p, m;
138
+ o[0] === t ? (s = o[1], c = o[2], l = o[3], u = o[4], f = o[5], p = o[6], m = o[7]) : ({label: u, Icon: s, isActive: l, iconSize: p, trailing: m, className: c, ...f} = t, o[0] = t, o[1] = s, o[2] = c, o[3] = l, o[4] = u, o[5] = f, o[6] = p, o[7] = m);
139
+ let h = p === void 0 ? 16 : p, y = l || void 0, b = l && "_1vaxhty0", x;
139
140
  o[8] !== c || o[9] !== b ? (x = v(b, c), o[8] = c, o[9] = b, o[10] = x) : x = o[10];
140
141
  let S;
141
- o[11] !== s || o[12] !== m ? (S = /* @__PURE__ */ h(s, { size: m }), o[11] = s, o[12] = m, o[13] = S) : S = o[13];
142
+ o[11] !== s || o[12] !== h ? (S = /* @__PURE__ */ g(s, { size: h }), o[11] = s, o[12] = h, o[13] = S) : S = o[13];
142
143
  let C;
143
- o[14] !== u || o[15] !== d || o[16] !== t || o[17] !== y || o[18] !== x || o[19] !== S || o[20] !== p ? (C = /* @__PURE__ */ h(r, {
144
+ 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, {
144
145
  onPointerDown: Qe,
145
- render: /* @__PURE__ */ g(n, {
146
- ref: t,
146
+ render: /* @__PURE__ */ _(e, {
147
+ ref: n,
147
148
  type: "button",
148
149
  variant: "ghost",
149
150
  size: "sm",
@@ -151,14 +152,14 @@ var Ze = (t = { placeholder: "Write something ..." }) => [
151
152
  "aria-label": u,
152
153
  "aria-pressed": y,
153
154
  className: x,
154
- ...d,
155
- children: [S, p]
155
+ ...f,
156
+ children: [S, m]
156
157
  })
157
- }), o[14] = u, o[15] = d, o[16] = t, o[17] = y, o[18] = x, o[19] = S, o[20] = p, o[21] = C) : C = o[21];
158
+ }), o[14] = u, o[15] = f, o[16] = n, o[17] = y, o[18] = x, o[19] = S, o[20] = m, o[21] = C) : C = o[21];
158
159
  let w;
159
- o[22] === u ? w = o[23] : (w = /* @__PURE__ */ h(i, { children: u }), o[22] = u, o[23] = w);
160
+ o[22] === u ? w = o[23] : (w = /* @__PURE__ */ g(i, { children: u }), o[22] = u, o[23] = w);
160
161
  let T;
161
- return o[24] !== C || o[25] !== w ? (T = /* @__PURE__ */ g(a, { children: [C, w] }), o[24] = C, o[25] = w, o[26] = T) : T = o[26], T;
162
+ 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;
162
163
  });
163
164
  Z.displayName = "ToolbarButton";
164
165
  function Qe(e) {
@@ -186,11 +187,11 @@ var $e = "_261ja30", Q = "_261ja31", et = [
186
187
  }, rt = (e, t) => {
187
188
  if (!e || t.length === 0) return !1;
188
189
  let { selection: n } = e.state, r = new Set(t);
189
- if (n instanceof te) {
190
+ if (n instanceof we) {
190
191
  let e = n.node?.type?.name;
191
192
  return !!e && r.has(e);
192
193
  }
193
- if (n instanceof O || n instanceof D) {
194
+ if (n instanceof Te || n instanceof Ce) {
194
195
  let t = !0;
195
196
  return e.state.doc.nodesBetween(n.from, n.to, (e) => e.isTextblock && !r.has(e.type.name) ? (t = !1, !1) : t), t;
196
197
  }
@@ -226,39 +227,39 @@ var $e = "_261ja30", Q = "_261ja31", et = [
226
227
  }
227
228
  return !1;
228
229
  }, lt = "j67x6z0", ut = "j67x6z1", dt = "_5pk5r80", ft = (e) => {
229
- let t = _(50), { editor: n } = e, [d, m] = p(!1), { isActive: v, currentUrl: y } = (0, X.useEditorState)({
230
+ let t = d(50), { editor: n } = e, [f, h] = m(!1), { isActive: v, currentUrl: y } = (0, X.useEditorState)({
230
231
  editor: n,
231
232
  selector: pt
232
233
  }) ?? {
233
234
  isActive: !1,
234
235
  currentUrl: ""
235
- }, [b, x] = p(y), S, C;
236
- t[0] !== y || t[1] !== d ? (S = () => {
237
- d && x(y);
238
- }, C = [d, y], t[0] = y, t[1] = d, t[2] = S, t[3] = C) : (S = t[2], C = t[3]), f(S, C);
236
+ }, [b, x] = m(y), S, C;
237
+ t[0] !== y || t[1] !== f ? (S = () => {
238
+ f && x(y);
239
+ }, C = [f, y], t[0] = y, t[1] = f, t[2] = S, t[3] = C) : (S = t[2], C = t[3]), p(S, C);
239
240
  let w;
240
241
  t[4] !== n || t[5] !== b ? (w = () => {
241
- b && (n.chain().focus().extendMarkRange("link").setLink({ href: b }).run(), m(!1));
242
+ b && (n.chain().focus().extendMarkRange("link").setLink({ href: b }).run(), h(!1));
242
243
  }, t[4] = n, t[5] = b, t[6] = w) : w = t[6];
243
244
  let T = w, E;
244
245
  t[7] === n ? E = t[8] : (E = () => {
245
- n.chain().focus().extendMarkRange("link").unsetLink().run(), x(""), m(!1);
246
+ n.chain().focus().extendMarkRange("link").unsetLink().run(), x(""), h(!1);
246
247
  }, t[7] = n, t[8] = E);
247
248
  let ee = E, D;
248
249
  t[9] === b ? D = t[10] : (D = () => {
249
250
  let e = ot(b, window.location.href);
250
251
  e !== "#" && window.open(e, "_blank", "noopener,noreferrer");
251
252
  }, t[9] = b, t[10] = D);
252
- let te = D, O;
253
+ let re = D, O;
253
254
  t[11] === Symbol.for("react.memo_cache_sentinel") ? (O = (e) => {
254
- e.preventDefault(), m(!0);
255
+ e.preventDefault(), h(!0);
255
256
  }, t[11] = O) : O = t[11];
256
257
  let k;
257
- t[12] === v ? k = t[13] : (k = /* @__PURE__ */ h(l, {
258
+ t[12] === v ? k = t[13] : (k = /* @__PURE__ */ g(l, {
258
259
  onPointerDown: mt,
259
- render: /* @__PURE__ */ h(Z, {
260
+ render: /* @__PURE__ */ g(Z, {
260
261
  label: "Link",
261
- Icon: ve,
262
+ Icon: ie,
262
263
  isActive: v,
263
264
  onClick: O
264
265
  })
@@ -270,7 +271,7 @@ var $e = "_261ja30", Q = "_261ja31", et = [
270
271
  e.key === "Enter" && (e.preventDefault(), T());
271
272
  }, t[15] = T, t[16] = j);
272
273
  let M;
273
- t[17] !== j || t[18] !== b ? (M = /* @__PURE__ */ h("input", {
274
+ t[17] !== j || t[18] !== b ? (M = /* @__PURE__ */ g("input", {
274
275
  className: ut,
275
276
  value: b,
276
277
  onChange: A,
@@ -278,9 +279,9 @@ var $e = "_261ja30", Q = "_261ja31", et = [
278
279
  placeholder: "Paste a link..."
279
280
  }), t[17] = j, t[18] = b, t[19] = M) : M = t[19];
280
281
  let N = !b && !v, P;
281
- t[20] === Symbol.for("react.memo_cache_sentinel") ? (P = /* @__PURE__ */ h(le, { size: 16 }), t[20] = P) : P = t[20];
282
+ t[20] === Symbol.for("react.memo_cache_sentinel") ? (P = /* @__PURE__ */ g(te, { size: 16 }), t[20] = P) : P = t[20];
282
283
  let F;
283
- t[21] !== T || t[22] !== N ? (F = /* @__PURE__ */ h(r, { render: /* @__PURE__ */ h("button", {
284
+ t[21] !== T || t[22] !== N ? (F = /* @__PURE__ */ g(r, { render: /* @__PURE__ */ g("button", {
284
285
  type: "button",
285
286
  className: dt,
286
287
  onClick: T,
@@ -289,59 +290,59 @@ var $e = "_261ja30", Q = "_261ja31", et = [
289
290
  children: P
290
291
  }) }), t[21] = T, t[22] = N, t[23] = F) : F = t[23];
291
292
  let I;
292
- t[24] === Symbol.for("react.memo_cache_sentinel") ? (I = /* @__PURE__ */ h(i, { children: "Apply link" }), t[24] = I) : I = t[24];
293
+ t[24] === Symbol.for("react.memo_cache_sentinel") ? (I = /* @__PURE__ */ g(i, { children: "Apply link" }), t[24] = I) : I = t[24];
293
294
  let L;
294
- t[25] === F ? L = t[26] : (L = /* @__PURE__ */ g(a, { children: [F, I] }), t[25] = F, t[26] = L);
295
- let R = !b && !v, z;
296
- t[27] === Symbol.for("react.memo_cache_sentinel") ? (z = /* @__PURE__ */ h(ue, { size: 16 }), t[27] = z) : z = t[27];
297
- let B;
298
- t[28] !== te || t[29] !== R ? (B = /* @__PURE__ */ h(r, { render: /* @__PURE__ */ h("button", {
295
+ 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", {
299
300
  type: "button",
300
301
  className: dt,
301
- onClick: te,
302
- disabled: R,
302
+ onClick: re,
303
+ disabled: ae,
303
304
  "aria-label": "Open in new window",
304
- children: z
305
- }) }), t[28] = te, t[29] = R, t[30] = B) : B = t[30];
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];
306
309
  let V;
307
- t[31] === Symbol.for("react.memo_cache_sentinel") ? (V = /* @__PURE__ */ h(i, { children: "Open in new window" }), t[31] = V) : V = t[31];
308
- let H;
309
- t[32] === B ? H = t[33] : (H = /* @__PURE__ */ g(a, { children: [B, V] }), t[32] = B, t[33] = H);
310
- let U = !b && !v, W;
311
- t[34] === Symbol.for("react.memo_cache_sentinel") ? (W = /* @__PURE__ */ h(De, { size: 16 }), t[34] = W) : W = t[34];
312
- let G;
313
- t[35] !== ee || t[36] !== U ? (G = /* @__PURE__ */ h(r, { render: /* @__PURE__ */ h("button", {
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", {
314
315
  type: "button",
315
316
  className: dt,
316
317
  onClick: ee,
317
- disabled: U,
318
+ disabled: H,
318
319
  "aria-label": "Remove link",
319
- children: W
320
- }) }), t[35] = ee, t[36] = U, t[37] = G) : G = t[37];
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];
321
324
  let K;
322
- t[38] === Symbol.for("react.memo_cache_sentinel") ? (K = /* @__PURE__ */ h(i, { children: "Remove link" }), t[38] = K) : K = t[38];
325
+ t[39] === W ? K = t[40] : (K = /* @__PURE__ */ _(a, { children: [W, G] }), t[39] = W, t[40] = K);
323
326
  let q;
324
- t[39] === G ? q = t[40] : (q = /* @__PURE__ */ g(a, { children: [G, K] }), t[39] = G, t[40] = q);
325
- let J;
326
- t[41] !== M || t[42] !== L || t[43] !== H || t[44] !== q ? (J = /* @__PURE__ */ h(s, { children: /* @__PURE__ */ h(u, {
327
+ t[41] !== M || t[42] !== L || t[43] !== V || t[44] !== K ? (q = /* @__PURE__ */ g(s, { children: /* @__PURE__ */ g(u, {
327
328
  side: "bottom",
328
329
  align: "center",
329
- children: /* @__PURE__ */ g(o.Popup, {
330
+ children: /* @__PURE__ */ _(o.Popup, {
330
331
  className: lt,
331
332
  children: [
332
333
  M,
333
334
  L,
334
- H,
335
- q
335
+ V,
336
+ K
336
337
  ]
337
338
  })
338
- }) }), t[41] = M, t[42] = L, t[43] = H, t[44] = q, t[45] = J) : J = t[45];
339
- let Y;
340
- return t[46] !== d || t[47] !== J || t[48] !== k ? (Y = /* @__PURE__ */ g(c, {
341
- open: d,
342
- onOpenChange: m,
343
- children: [k, J]
344
- }), t[46] = d, t[47] = J, t[48] = k, t[49] = Y) : Y = t[49], Y;
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, {
342
+ open: f,
343
+ onOpenChange: h,
344
+ children: [k, q]
345
+ }), t[46] = f, t[47] = q, t[48] = k, t[49] = J) : J = t[49], J;
345
346
  };
346
347
  function pt(e) {
347
348
  let { editor: t } = e;
@@ -359,7 +360,7 @@ var ht = "_1keigwl0", gt = "_1keigwl1 _5pk5r80", $ = (e) => (t) => t.chain().foc
359
360
  {
360
361
  type: "paragraph",
361
362
  label: "Text",
362
- Icon: Se,
363
+ Icon: I,
363
364
  isActive: (e) => e.isActive("paragraph"),
364
365
  canApply: (e) => e.can().setParagraph() || e.can().clearNodes(),
365
366
  apply: (e) => e.chain().focus().setParagraph().run()
@@ -367,7 +368,7 @@ var ht = "_1keigwl0", gt = "_1keigwl1 _5pk5r80", $ = (e) => (t) => t.chain().foc
367
368
  {
368
369
  type: "heading_1",
369
370
  label: "Heading 1",
370
- Icon: de,
371
+ Icon: D,
371
372
  isActive: (e) => e.isActive("heading", { level: 1 }),
372
373
  canApply: (e) => e.can().setHeading({ level: 1 }) || e.can().clearNodes(),
373
374
  apply: $(1)
@@ -375,7 +376,7 @@ var ht = "_1keigwl0", gt = "_1keigwl1 _5pk5r80", $ = (e) => (t) => t.chain().foc
375
376
  {
376
377
  type: "heading_2",
377
378
  label: "Heading 2",
378
- Icon: fe,
379
+ Icon: re,
379
380
  isActive: (e) => e.isActive("heading", { level: 2 }),
380
381
  canApply: (e) => e.can().setHeading({ level: 2 }) || e.can().clearNodes(),
381
382
  apply: $(2)
@@ -383,7 +384,7 @@ var ht = "_1keigwl0", gt = "_1keigwl1 _5pk5r80", $ = (e) => (t) => t.chain().foc
383
384
  {
384
385
  type: "heading_3",
385
386
  label: "Heading 3",
386
- Icon: pe,
387
+ Icon: O,
387
388
  isActive: (e) => e.isActive("heading", { level: 3 }),
388
389
  canApply: (e) => e.can().setHeading({ level: 3 }) || e.can().clearNodes(),
389
390
  apply: $(3)
@@ -391,7 +392,7 @@ var ht = "_1keigwl0", gt = "_1keigwl1 _5pk5r80", $ = (e) => (t) => t.chain().foc
391
392
  {
392
393
  type: "heading_4",
393
394
  label: "Heading 4",
394
- Icon: me,
395
+ Icon: k,
395
396
  isActive: (e) => e.isActive("heading", { level: 4 }),
396
397
  canApply: (e) => e.can().setHeading({ level: 4 }) || e.can().clearNodes(),
397
398
  apply: $(4)
@@ -399,7 +400,7 @@ var ht = "_1keigwl0", gt = "_1keigwl1 _5pk5r80", $ = (e) => (t) => t.chain().foc
399
400
  {
400
401
  type: "heading_5",
401
402
  label: "Heading 5",
402
- Icon: he,
403
+ Icon: A,
403
404
  isActive: (e) => e.isActive("heading", { level: 5 }),
404
405
  canApply: (e) => e.can().setHeading({ level: 5 }) || e.can().clearNodes(),
405
406
  apply: $(5)
@@ -407,7 +408,7 @@ var ht = "_1keigwl0", gt = "_1keigwl1 _5pk5r80", $ = (e) => (t) => t.chain().foc
407
408
  {
408
409
  type: "heading_6",
409
410
  label: "Heading 6",
410
- Icon: ge,
411
+ Icon: j,
411
412
  isActive: (e) => e.isActive("heading", { level: 6 }),
412
413
  canApply: (e) => e.can().setHeading({ level: 6 }) || e.can().clearNodes(),
413
414
  apply: $(6)
@@ -415,7 +416,7 @@ var ht = "_1keigwl0", gt = "_1keigwl1 _5pk5r80", $ = (e) => (t) => t.chain().foc
415
416
  {
416
417
  type: "bulletList",
417
418
  label: "Bullet List",
418
- Icon: ye,
419
+ Icon: N,
419
420
  isActive: (e) => e.isActive("bulletList"),
420
421
  canApply: (e) => e.can().toggleBulletList() || e.can().clearNodes(),
421
422
  apply: (e) => e.chain().focus().toggleBulletList().run()
@@ -423,60 +424,60 @@ var ht = "_1keigwl0", gt = "_1keigwl1 _5pk5r80", $ = (e) => (t) => t.chain().foc
423
424
  {
424
425
  type: "orderedList",
425
426
  label: "Ordered List",
426
- Icon: be,
427
+ Icon: P,
427
428
  isActive: (e) => e.isActive("orderedList"),
428
429
  canApply: (e) => e.can().toggleOrderedList() || e.can().clearNodes(),
429
430
  apply: (e) => e.chain().focus().toggleOrderedList().run()
430
431
  }
431
432
  ], vt = (e) => {
432
- let t = _(19), { editor: n } = e, [r, i] = p(!1), { activeBlock: a, canConvert: d, structural: f } = (0, X.useEditorState)({
433
+ let t = d(19), { editor: n } = e, [r, i] = m(!1), { activeBlock: a, canConvert: f, structural: p } = (0, X.useEditorState)({
433
434
  editor: n,
434
435
  selector: yt
435
436
  }) ?? {
436
437
  activeBlock: null,
437
438
  canConvert: !1,
438
439
  structural: !1
439
- }, m = a?.Icon ?? xe, v = a?.label ?? "Turn Into", y = f || !d, b, x;
440
- t[0] === Symbol.for("react.memo_cache_sentinel") ? (b = /* @__PURE__ */ h(se, { size: 12 }), x = (e) => {
440
+ }, h = a?.Icon ?? F, v = a?.label ?? "Turn Into", y = p || !f, b, x;
441
+ t[0] === Symbol.for("react.memo_cache_sentinel") ? (b = /* @__PURE__ */ g(E, { size: 12 }), x = (e) => {
441
442
  e.preventDefault(), i(!0);
442
443
  }, t[0] = b, t[1] = x) : (b = t[0], x = t[1]);
443
444
  let S;
444
- t[2] !== m || t[3] !== y || t[4] !== v ? (S = /* @__PURE__ */ h(l, {
445
+ t[2] !== h || t[3] !== y || t[4] !== v ? (S = /* @__PURE__ */ g(l, {
445
446
  onPointerDown: bt,
446
- render: /* @__PURE__ */ h(Z, {
447
+ render: /* @__PURE__ */ g(Z, {
447
448
  label: v,
448
- Icon: m,
449
+ Icon: h,
449
450
  disabled: y,
450
451
  trailing: b,
451
452
  onClick: x
452
453
  })
453
- }), t[2] = m, t[3] = y, t[4] = v, t[5] = S) : S = t[5];
454
+ }), t[2] = h, t[3] = y, t[4] = v, t[5] = S) : S = t[5];
454
455
  let C;
455
456
  if (t[6] !== a?.type || t[7] !== n) {
456
457
  let e;
457
458
  t[9] === a?.type ? e = t[10] : (e = (e) => a?.type !== e.type, t[9] = a?.type, t[10] = e);
458
459
  let r;
459
- t[11] === n ? r = t[12] : (r = (e) => /* @__PURE__ */ g("button", {
460
+ t[11] === n ? r = t[12] : (r = (e) => /* @__PURE__ */ _("button", {
460
461
  type: "button",
461
462
  className: gt,
462
463
  disabled: !e.canApply(n),
463
464
  onClick: () => {
464
465
  e.apply(n), i(!1);
465
466
  },
466
- children: [/* @__PURE__ */ h(e.Icon, { size: 16 }), /* @__PURE__ */ h("span", { children: e.label })]
467
+ children: [/* @__PURE__ */ g(e.Icon, { size: 16 }), /* @__PURE__ */ g("span", { children: e.label })]
467
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;
468
469
  } else C = t[8];
469
470
  let w;
470
- t[13] === C ? w = t[14] : (w = /* @__PURE__ */ h(s, { children: /* @__PURE__ */ h(u, {
471
+ t[13] === C ? w = t[14] : (w = /* @__PURE__ */ g(s, { children: /* @__PURE__ */ g(u, {
471
472
  side: "bottom",
472
473
  align: "start",
473
- children: /* @__PURE__ */ h(o.Popup, {
474
+ children: /* @__PURE__ */ g(o.Popup, {
474
475
  className: ht,
475
476
  children: C
476
477
  })
477
478
  }) }), t[13] = C, t[14] = w);
478
479
  let T;
479
- return t[15] !== r || t[16] !== S || t[17] !== w ? (T = /* @__PURE__ */ g(c, {
480
+ return t[15] !== r || t[16] !== S || t[17] !== w ? (T = /* @__PURE__ */ _(c, {
480
481
  open: r,
481
482
  onOpenChange: i,
482
483
  children: [S, w]
@@ -499,59 +500,59 @@ var xt = [
499
500
  {
500
501
  mark: "bold",
501
502
  label: "Bold",
502
- Icon: oe
503
+ Icon: T
503
504
  },
504
505
  {
505
506
  mark: "italic",
506
507
  label: "Italic",
507
- Icon: _e
508
+ Icon: M
508
509
  },
509
510
  {
510
511
  mark: "underline",
511
512
  label: "Underline",
512
- Icon: Oe
513
+ Icon: B
513
514
  },
514
515
  {
515
516
  mark: "strike",
516
517
  label: "Strike",
517
- Icon: we
518
+ Icon: ae
518
519
  },
519
520
  {
520
521
  mark: "code",
521
522
  label: "Code",
522
- Icon: ce
523
+ Icon: ee
523
524
  }
524
525
  ], St = [{
525
526
  mark: "superscript",
526
527
  label: "Superscript",
527
- Icon: Ee
528
+ Icon: z
528
529
  }, {
529
530
  mark: "subscript",
530
531
  label: "Subscript",
531
- Icon: Te
532
+ Icon: R
532
533
  }], Ct = [
533
534
  {
534
535
  align: "left",
535
536
  label: "Align left",
536
- Icon: ne
537
+ Icon: x
537
538
  },
538
539
  {
539
540
  align: "center",
540
541
  label: "Align center",
541
- Icon: J
542
+ Icon: y
542
543
  },
543
544
  {
544
545
  align: "right",
545
546
  label: "Align right",
546
- Icon: re
547
+ Icon: S
547
548
  },
548
549
  {
549
550
  align: "justify",
550
551
  label: "Align justify",
551
- Icon: Y
552
+ Icon: b
552
553
  }
553
554
  ], wt = (e) => {
554
- let t = _(9), { editor: n, mark: r, label: i, Icon: a } = e, { isActive: o, canExecute: s } = (0, X.useEditorState)({
555
+ let t = d(9), { editor: n, mark: r, label: i, Icon: a } = e, { isActive: o, canExecute: s } = (0, X.useEditorState)({
555
556
  editor: n,
556
557
  selector: (e) => {
557
558
  let { editor: t } = e;
@@ -566,7 +567,7 @@ var xt = [
566
567
  }, c = !s, l;
567
568
  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];
568
569
  let u;
569
- return t[3] !== a || t[4] !== o || t[5] !== i || t[6] !== c || t[7] !== l ? (u = /* @__PURE__ */ h(Z, {
570
+ return t[3] !== a || t[4] !== o || t[5] !== i || t[6] !== c || t[7] !== l ? (u = /* @__PURE__ */ g(Z, {
570
571
  label: i,
571
572
  Icon: a,
572
573
  isActive: o,
@@ -574,7 +575,7 @@ var xt = [
574
575
  onClick: l
575
576
  }), t[3] = a, t[4] = o, t[5] = i, t[6] = c, t[7] = l, t[8] = u) : u = t[8], u;
576
577
  }, Tt = (e) => {
577
- let t = _(9), { editor: n, align: r, label: i, Icon: a } = e, { isActive: o, canExecute: s } = (0, X.useEditorState)({
578
+ let t = d(9), { editor: n, align: r, label: i, Icon: a } = e, { isActive: o, canExecute: s } = (0, X.useEditorState)({
578
579
  editor: n,
579
580
  selector: (e) => {
580
581
  let { editor: t } = e;
@@ -589,7 +590,7 @@ var xt = [
589
590
  }, c = !s, l;
590
591
  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];
591
592
  let u;
592
- return t[3] !== a || t[4] !== o || t[5] !== i || t[6] !== c || t[7] !== l ? (u = /* @__PURE__ */ h(Z, {
593
+ return t[3] !== a || t[4] !== o || t[5] !== i || t[6] !== c || t[7] !== l ? (u = /* @__PURE__ */ g(Z, {
593
594
  label: i,
594
595
  Icon: a,
595
596
  isActive: o,
@@ -597,113 +598,113 @@ var xt = [
597
598
  onClick: l
598
599
  }), t[3] = a, t[4] = o, t[5] = i, t[6] = c, t[7] = l, t[8] = u) : u = t[8], u;
599
600
  }, Et = (e) => {
600
- let t = _(5), { editor: n } = e, r = !((0, X.useEditorState)({
601
+ let t = d(5), { editor: n } = e, r = !((0, X.useEditorState)({
601
602
  editor: n,
602
603
  selector: At
603
604
  }) ?? !1), i;
604
605
  t[0] === n ? i = t[1] : (i = () => n.chain().focus().undo().run(), t[0] = n, t[1] = i);
605
606
  let a;
606
- return t[2] !== r || t[3] !== i ? (a = /* @__PURE__ */ h(Z, {
607
+ return t[2] !== r || t[3] !== i ? (a = /* @__PURE__ */ g(Z, {
607
608
  label: "Undo",
608
- Icon: ie,
609
+ Icon: C,
609
610
  disabled: r,
610
611
  onClick: i
611
612
  }), t[2] = r, t[3] = i, t[4] = a) : a = t[4], a;
612
613
  }, Dt = (e) => {
613
- let t = _(5), { editor: n } = e, r = !((0, X.useEditorState)({
614
+ let t = d(5), { editor: n } = e, r = !((0, X.useEditorState)({
614
615
  editor: n,
615
616
  selector: jt
616
617
  }) ?? !1), i;
617
618
  t[0] === n ? i = t[1] : (i = () => n.chain().focus().redo().run(), t[0] = n, t[1] = i);
618
619
  let a;
619
- return t[2] !== r || t[3] !== i ? (a = /* @__PURE__ */ h(Z, {
620
+ return t[2] !== r || t[3] !== i ? (a = /* @__PURE__ */ g(Z, {
620
621
  label: "Redo",
621
- Icon: ae,
622
+ Icon: w,
622
623
  disabled: r,
623
624
  onClick: i
624
625
  }), t[2] = r, t[3] = i, t[4] = a) : a = t[4], a;
625
626
  }, Ot = (e) => {
626
- let t = _(5), { editor: n } = e, r = !((0, X.useEditorState)({
627
+ let t = d(5), { editor: n } = e, r = !((0, X.useEditorState)({
627
628
  editor: n,
628
629
  selector: Mt
629
630
  }) ?? !1), i;
630
631
  t[0] === n ? i = t[1] : (i = () => st(n), t[0] = n, t[1] = i);
631
632
  let a;
632
- return t[2] !== r || t[3] !== i ? (a = /* @__PURE__ */ h(Z, {
633
+ return t[2] !== r || t[3] !== i ? (a = /* @__PURE__ */ g(Z, {
633
634
  label: "Reset formatting",
634
- Icon: Ce,
635
+ Icon: L,
635
636
  disabled: r,
636
637
  onClick: i
637
638
  }), t[2] = r, t[3] = i, t[4] = a) : a = t[4], a;
638
639
  }, kt = (e) => {
639
- let n = _(33), { children: r } = e, { editor: i } = (0, X.useCurrentEditor)();
640
+ let t = d(33), { children: r } = e, { editor: i } = (0, X.useCurrentEditor)();
640
641
  if (!i) return null;
641
642
  let a;
642
- n[0] === i ? a = n[1] : (a = /* @__PURE__ */ h("div", {
643
+ t[0] === i ? a = t[1] : (a = /* @__PURE__ */ g("div", {
643
644
  className: Q,
644
- children: /* @__PURE__ */ h(vt, { editor: i })
645
- }), n[0] = i, n[1] = a);
645
+ children: /* @__PURE__ */ g(vt, { editor: i })
646
+ }), t[0] = i, t[1] = a);
646
647
  let o;
647
- n[2] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ h(t, { orientation: "vertical" }), n[2] = o) : o = n[2];
648
+ t[2] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ g(n, { orientation: "vertical" }), t[2] = o) : o = t[2];
648
649
  let s;
649
- n[3] === i ? s = n[4] : (s = xt.map((e) => /* @__PURE__ */ h(wt, {
650
+ t[3] === i ? s = t[4] : (s = xt.map((e) => /* @__PURE__ */ g(wt, {
650
651
  editor: i,
651
652
  ...e
652
- }, e.mark)), n[3] = i, n[4] = s);
653
+ }, e.mark)), t[3] = i, t[4] = s);
653
654
  let c;
654
- n[5] === s ? c = n[6] : (c = /* @__PURE__ */ h("div", {
655
+ t[5] === s ? c = t[6] : (c = /* @__PURE__ */ g("div", {
655
656
  className: Q,
656
657
  children: s
657
- }), n[5] = s, n[6] = c);
658
+ }), t[5] = s, t[6] = c);
658
659
  let l;
659
- n[7] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ h(t, { orientation: "vertical" }), n[7] = l) : l = n[7];
660
+ t[7] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ g(n, { orientation: "vertical" }), t[7] = l) : l = t[7];
660
661
  let u;
661
- n[8] === i ? u = n[9] : (u = /* @__PURE__ */ h("div", {
662
+ t[8] === i ? u = t[9] : (u = /* @__PURE__ */ g("div", {
662
663
  className: Q,
663
- children: /* @__PURE__ */ h(ft, { editor: i })
664
- }), n[8] = i, n[9] = u);
665
- let d;
666
- n[10] === Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ h(t, { orientation: "vertical" }), n[10] = d) : d = n[10];
664
+ children: /* @__PURE__ */ g(ft, { editor: i })
665
+ }), t[8] = i, t[9] = u);
667
666
  let f;
668
- n[11] === i ? f = n[12] : (f = Ct.map((e) => /* @__PURE__ */ h(Tt, {
667
+ t[10] === Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ g(n, { orientation: "vertical" }), t[10] = f) : f = t[10];
668
+ let p;
669
+ t[11] === i ? p = t[12] : (p = Ct.map((e) => /* @__PURE__ */ g(Tt, {
669
670
  editor: i,
670
671
  ...e
671
- }, e.align)), n[11] = i, n[12] = f);
672
- let p;
673
- n[13] === f ? p = n[14] : (p = /* @__PURE__ */ h("div", {
672
+ }, e.align)), t[11] = i, t[12] = p);
673
+ let m;
674
+ t[13] === p ? m = t[14] : (m = /* @__PURE__ */ g("div", {
674
675
  className: Q,
675
- children: f
676
- }), n[13] = f, n[14] = p);
676
+ children: p
677
+ }), t[13] = p, t[14] = m);
677
678
  let v;
678
- n[15] === Symbol.for("react.memo_cache_sentinel") ? (v = /* @__PURE__ */ h(t, { orientation: "vertical" }), n[15] = v) : v = n[15];
679
+ t[15] === Symbol.for("react.memo_cache_sentinel") ? (v = /* @__PURE__ */ g(n, { orientation: "vertical" }), t[15] = v) : v = t[15];
679
680
  let y;
680
- n[16] === i ? y = n[17] : (y = St.map((e) => /* @__PURE__ */ h(wt, {
681
+ t[16] === i ? y = t[17] : (y = St.map((e) => /* @__PURE__ */ g(wt, {
681
682
  editor: i,
682
683
  ...e
683
- }, e.mark)), n[16] = i, n[17] = y);
684
+ }, e.mark)), t[16] = i, t[17] = y);
684
685
  let b;
685
- n[18] === y ? b = n[19] : (b = /* @__PURE__ */ h("div", {
686
+ t[18] === y ? b = t[19] : (b = /* @__PURE__ */ g("div", {
686
687
  className: Q,
687
688
  children: y
688
- }), n[18] = y, n[19] = b);
689
+ }), t[18] = y, t[19] = b);
689
690
  let x;
690
- n[20] === Symbol.for("react.memo_cache_sentinel") ? (x = /* @__PURE__ */ h(t, { orientation: "vertical" }), n[20] = x) : x = n[20];
691
+ t[20] === Symbol.for("react.memo_cache_sentinel") ? (x = /* @__PURE__ */ g(n, { orientation: "vertical" }), t[20] = x) : x = t[20];
691
692
  let S;
692
- n[21] === i ? S = n[22] : (S = /* @__PURE__ */ g("div", {
693
+ t[21] === i ? S = t[22] : (S = /* @__PURE__ */ _("div", {
693
694
  className: Q,
694
695
  children: [
695
- /* @__PURE__ */ h(Ot, { editor: i }),
696
- /* @__PURE__ */ h(Et, { editor: i }),
697
- /* @__PURE__ */ h(Dt, { editor: i })
696
+ /* @__PURE__ */ g(Ot, { editor: i }),
697
+ /* @__PURE__ */ g(Et, { editor: i }),
698
+ /* @__PURE__ */ g(Dt, { editor: i })
698
699
  ]
699
- }), n[21] = i, n[22] = S);
700
+ }), t[21] = i, t[22] = S);
700
701
  let C;
701
- n[23] === r ? C = n[24] : (C = r && /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h(t, { orientation: "vertical" }), /* @__PURE__ */ h("div", {
702
+ t[23] === r ? C = t[24] : (C = r && /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g(n, { orientation: "vertical" }), /* @__PURE__ */ g("div", {
702
703
  className: "_261ja31",
703
704
  children: r
704
- })] }), n[23] = r, n[24] = C);
705
+ })] }), t[23] = r, t[24] = C);
705
706
  let w;
706
- return n[25] !== a || n[26] !== b || n[27] !== S || n[28] !== C || n[29] !== c || n[30] !== u || n[31] !== p ? (w = /* @__PURE__ */ g("div", {
707
+ 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", {
707
708
  className: $e,
708
709
  children: [
709
710
  a,
@@ -711,15 +712,15 @@ var xt = [
711
712
  c,
712
713
  l,
713
714
  u,
714
- d,
715
- p,
715
+ f,
716
+ m,
716
717
  v,
717
718
  b,
718
719
  x,
719
720
  S,
720
721
  C
721
722
  ]
722
- }), n[25] = a, n[26] = b, n[27] = S, n[28] = C, n[29] = c, n[30] = u, n[31] = p, n[32] = w) : w = n[32], w;
723
+ }), 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;
723
724
  };
724
725
  function At(e) {
725
726
  let { editor: t } = e;
@@ -734,4 +735,4 @@ function Mt(e) {
734
735
  return t.isEditable && ct(t);
735
736
  }
736
737
  //#endregion
737
- export { We as a, X as i, Z as n, Ze as r, kt as t };
738
+ export { Ge as a, X as i, Z as n, Ze as r, kt as t };