@nxgt/material 3.62.0 → 3.63.0

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 (92) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/README.md +1 -1
  3. package/dist/alert-dialog-RHm6WtQj.js +189 -0
  4. package/dist/{async-slice-HJY_VJjD.js → async-slice-DmX59NyA.js} +3 -4
  5. package/dist/{button-7BuUCGRm.js → button-DfS_amfQ.js} +1 -1
  6. package/dist/charts.js +3 -3
  7. package/dist/{chip-kQOrHlDX.js → chip-Cbndukko.js} +2 -2
  8. package/dist/{code-editor-Ckc9TTCM.js → code-editor-B0tN8Ha_.js} +11 -11
  9. package/dist/code-editor.js +5 -5
  10. package/dist/{code-language-items-rCPB0Xee.js → code-language-items-andgHKrM.js} +2 -2
  11. package/dist/components/ui/layout/sidebar/sidebar-tokens.css +13 -1
  12. package/dist/{components-TDDUQ1Y0.js → components-Cm2doOJS.js} +14345 -14224
  13. package/dist/components.js +28 -26
  14. package/dist/dialog-Bd7Hid2L.js +219 -0
  15. package/dist/dnd.js +1 -1
  16. package/dist/{dropdown-menu-CiobN1wi.js → dropdown-menu-_SyVmSuy.js} +1 -1
  17. package/dist/editor.js +707 -706
  18. package/dist/{empty-state-DA517HAb.js → empty-state-D-2ZMXXJ.js} +2 -2
  19. package/dist/escape-owner-DpaP0lm1.js +19 -0
  20. package/dist/{field-blur-DdvY0NQQ.js → field-blur-DyOByjzw.js} +1 -1
  21. package/dist/{field-blur-context-DbJQZkEB.js → field-blur-context-DPe5_Nv5.js} +1 -1
  22. package/dist/hooks-a7_exKWS.js +329 -0
  23. package/dist/hooks.js +3 -3
  24. package/dist/{hover-card-DPs9huSs.js → hover-card-D_0smKBQ.js} +2 -2
  25. package/dist/i18n.js +8 -10
  26. package/dist/{icon-badge-C646JTOI.js → icon-badge-CBCU3ySF.js} +14 -14
  27. package/dist/{icon-button-DvP0Gy3j.js → icon-button-hKHsWTAt.js} +1 -1
  28. package/dist/lib/components/ui/feedback/index.d.ts +1 -0
  29. package/dist/lib/components/ui/feedback/unsaved-dialog/index.d.ts +1 -0
  30. package/dist/lib/components/ui/feedback/unsaved-dialog/unsaved-dialog.d.ts +20 -0
  31. package/dist/lib/components/ui/fields/contacts/placeholders.d.ts +1 -1
  32. package/dist/lib/components/ui/fields/textarea-field/textarea-footer.d.ts +2 -1
  33. package/dist/lib/components/ui/widgets/education/questions/index.d.ts +3 -1
  34. package/dist/lib/components/ui/widgets/education/questions/partials/question-content.d.ts +1 -1
  35. package/dist/lib/components/ui/widgets/education/questions/partials/question-top.d.ts +6 -0
  36. package/dist/lib/components/ui/widgets/education/questions/question-long-text.d.ts +5 -0
  37. package/dist/lib/components/ui/widgets/education/questions/question-media-content.d.ts +24 -0
  38. package/dist/lib/components/ui/widgets/education/questions/question-media-helpers.d.ts +11 -0
  39. package/dist/lib/components/ui/widgets/education/questions/question-media-view.d.ts +18 -0
  40. package/dist/lib/components/ui/widgets/education/questions/question-media-view.types.d.ts +32 -0
  41. package/dist/lib/components/ui/widgets/education/questions/question-options.d.ts +2 -2
  42. package/dist/lib/components/ui/widgets/education/questions/question-text.d.ts +1 -1
  43. package/dist/lib/components/ui/widgets/education/questions/question.d.ts +1 -1
  44. package/dist/lib/components/ui/widgets/education/questions/types.d.ts +38 -1
  45. package/dist/lib/components/ui/widgets/education/questions/use-reload-focus.d.ts +13 -0
  46. package/dist/lib/hooks/index.d.ts +3 -0
  47. package/dist/lib/hooks/unsaved-guard-rules.d.ts +30 -0
  48. package/dist/lib/hooks/use-react-router-block.d.ts +11 -0
  49. package/dist/lib/hooks/use-unsaved-guard/guard-core.d.ts +30 -0
  50. package/dist/lib/hooks/use-unsaved-guard/index.d.ts +3 -0
  51. package/dist/lib/hooks/use-unsaved-guard/types.d.ts +63 -0
  52. package/dist/lib/hooks/use-unsaved-guard/use-discard-guard.d.ts +15 -0
  53. package/dist/lib/hooks/use-unsaved-guard/use-unsaved-guard.d.ts +19 -0
  54. package/dist/lib/i18n/resources/en/en.d.ts +20 -0
  55. package/dist/lib/i18n/resources/en/material.json.d.ts +21 -1
  56. package/dist/lib/i18n/resources/fr/fr.d.ts +20 -0
  57. package/dist/lib/i18n/resources/fr/material.json.d.ts +21 -1
  58. package/dist/lib/i18n/resources/resources.d.ts +40 -0
  59. package/dist/lib/i18n/translator.d.ts +1 -1
  60. package/dist/lib.js +1 -1
  61. package/dist/main.js +42 -43
  62. package/dist/map.js +63 -63
  63. package/dist/material.css +1 -1
  64. package/dist/pdf-reader.js +1 -1
  65. package/dist/print.js +1 -2
  66. package/dist/{public-BYsrhyPW.js → public-D8JGp3PH.js} +823 -822
  67. package/dist/{rich-code-block-WJxDWPPY.js → rich-code-block-0R3bidsM.js} +5 -5
  68. package/dist/{sortable-provider-oPjlhlZo.js → sortable-provider-B75v53sB.js} +2 -2
  69. package/dist/{spinner-C5lObWXT.js → spinner-CAnpF3RK.js} +1 -1
  70. package/dist/theme-picker.js +2 -2
  71. package/dist/{theme-toggle-CPEq5JG-.js → theme-toggle-pQ5F602V.js} +1 -1
  72. package/dist/{toolbar-items-ByvXcMHm.js → toolbar-items-_ezD5B0r.js} +4 -4
  73. package/dist/translate-material-CvZK8_S6.js +96 -0
  74. package/dist/{stored-language-B-tiWZU2.js → translator-Caf-d96e.js} +2497 -8
  75. package/dist/{escape-owner-r57kuPjn.js → typography-CEK19bj8.js} +17 -34
  76. package/dist/{use-chat-composer-CzOVaIed.js → use-chat-composer-Dpvi_-CR.js} +5164 -5338
  77. package/dist/{use-heading-spy-BOtygPFu.js → use-heading-spy-mmcyEGmm.js} +186 -71
  78. package/dist/{use-material-translation-B5j3jZs7.js → use-material-translation-C_1cWRzW.js} +1 -2
  79. package/dist/use-return-focus-1ZIchrBM.js +269 -0
  80. package/docs/components/feedback-and-status.md +23 -0
  81. package/docs/components/navigation-and-layout.md +4 -3
  82. package/docs/components/rich-widgets.md +73 -1
  83. package/docs/guides/helpers.md +63 -0
  84. package/docs/guides/theming.md +13 -3
  85. package/docs/previews/feedback-status-unsaveddialog.webp +0 -0
  86. package/lib/components/ui/layout/sidebar/sidebar-tokens.css +13 -1
  87. package/package.json +1 -1
  88. package/dist/dialog-yfPkLqUQ.js +0 -482
  89. package/dist/hooks-CGnqFngB.js +0 -187
  90. package/dist/i18n-provider-BehR6cU7.js +0 -79
  91. package/dist/translate-material-tUaLZUmT.js +0 -20
  92. package/dist/translator-B9XjUDRu.js +0 -2451
package/dist/editor.js CHANGED
@@ -1,18 +1,19 @@
1
1
  import { t as e } from "./ui.utils-CAnKTCw5.js";
2
2
  import { t } from "./utils-BLfntITJ.js";
3
- import { $ as n, A as r, C as i, Cr as a, D as o, Dn as s, E as c, Fn as l, G as u, Gn as d, In as f, J as p, Ji as m, Jn as h, K as g, Kn as _, Ln as v, M as y, N as b, Nn as x, O as S, On as C, Pn as w, Q as ee, Qn as T, R as E, Rn as D, S as O, Sn as te, T as ne, U as re, W as ie, X as ae, Y as oe, Yi as se, Yn as ce, Z as le, Zn as k, _n as ue, a as de, c as fe, cn as pe, d as me, et as he, g as ge, gr as _e, hr as ve, i as ye, j as be, k as xe, kn as Se, l as Ce, ln as we, m as Te, p as Ee, q as De, qi as Oe, qn as ke, s as Ae, sn as je, t as Me, vn as Ne, w as Pe, wr as Fe, x as Ie, xn as Le, z as Re } from "./use-chat-composer-CzOVaIed.js";
4
- import { f as ze } from "./dialog-yfPkLqUQ.js";
5
- import { c as Be, i as Ve, n as He, o as Ue, r as We, s as Ge, t as Ke, u as A } from "./dropdown-menu-CiobN1wi.js";
6
- import { c as qe, o as Je, s as Ye } from "./toolbar-items-ByvXcMHm.js";
7
- import { n as Xe, t as j } from "./button-7BuUCGRm.js";
8
- import { t as M } from "./use-material-translation-B5j3jZs7.js";
9
- import { t as N } from "./icon-button-DvP0Gy3j.js";
10
- import { r as Ze, t as Qe } from "./field-blur-DdvY0NQQ.js";
11
- import { a as $e, s as P } from "./dist-C3GR7kJd.js";
3
+ import { $ as n, A as r, Bi as i, C as a, D as o, Dn as s, E as c, Fn as l, G as u, Gn as d, In as f, J as p, Jn as m, K as h, Kn as g, Ln as _, M as v, N as y, Nn as b, O as x, On as S, Pn as ee, Q as C, Qn as te, R as w, Ri as ne, Rn as T, S as E, Sn as re, T as D, U as ie, W as ae, X as oe, Y as se, Yn as ce, Z as le, Zn as O, _n as ue, a as de, c as fe, cn as pe, d as me, et as he, g as ge, hr as _e, i as ve, j as ye, k as be, kn as xe, l as Se, ln as Ce, m as we, p as Te, q as Ee, qn as De, s as Oe, sn as ke, t as Ae, vn as je, w as Me, x as Ne, xn as Pe, z as Fe, zi as Ie } from "./use-chat-composer-Dpvi_-CR.js";
4
+ import { l as Le, n as Re, t as ze } from "./alert-dialog-RHm6WtQj.js";
5
+ import { c as Be, i as Ve, n as He, o as Ue, r as We, s as Ge, t as Ke, u as k } from "./dropdown-menu-_SyVmSuy.js";
6
+ import { c as qe, o as Je, s as Ye } from "./toolbar-items-_ezD5B0r.js";
7
+ import { n as Xe, t as A } from "./button-DfS_amfQ.js";
8
+ import { t as j } from "./use-material-translation-C_1cWRzW.js";
9
+ import { t as M } from "./icon-button-hKHsWTAt.js";
10
+ import { r as Ze, t as Qe } from "./field-blur-DyOByjzw.js";
11
+ import { a as $e, s as N } from "./dist-C3GR7kJd.js";
12
12
  import { n as et, t as tt } from "./toggle-group-BkH23Jk4.js";
13
- import { n as nt } from "./icon-badge-C646JTOI.js";
14
- import { t as rt } from "./use-mobile-BDro060N.js";
15
- import { Ft as it, Ht as at, Nt as ot, Ot as st, St as ct, bt as F, ht as I, mt as L, n as R, wt as z, xt as lt, yt as ut } from "./dist-moutbfbd.js";
13
+ import { f as nt } from "./dialog-Bd7Hid2L.js";
14
+ import { n as rt } from "./icon-badge-CBCU3ySF.js";
15
+ import { t as it } from "./use-mobile-BDro060N.js";
16
+ import { Ft as at, Ht as ot, Nt as st, Ot as ct, St as lt, bt as P, ht as F, mt as I, n as L, wt as R, xt as z, yt as ut } from "./dist-moutbfbd.js";
16
17
  import { t as dt } from "./markdown-Dw_uH7j7.js";
17
18
  import { n as ft, r as B, t as pt } from "./create-store-Dqp-PLLn.js";
18
19
  import { W as mt, w as ht } from "./youtube-node-A3NPAPgK.js";
@@ -20,15 +21,15 @@ import { a as gt, i as _t, n as vt, r as yt } from "./convert-7g-F5cNf.js";
20
21
  import { d as bt, n as xt, r as St, u as Ct } from "./headless-extensions-B1NAgmkE.js";
21
22
  import { t as wt } from "./render-json-COvAkihK.js";
22
23
  import { n as Tt, r as Et } from "./collab-colors-CDkjUVoQ.js";
23
- import { Suspense as Dt, lazy as Ot, useCallback as V, useEffect as H, useId as kt, useLayoutEffect as At, useMemo as U, useRef as W, useState as G, useSyncExternalStore as K } from "react";
24
- import { Fragment as q, jsx as J, jsxs as Y } from "react/jsx-runtime";
25
- import { createPortal as jt } from "react-dom";
26
- import { ArrowDown as Mt, ArrowUp as Nt, AtSign as Pt, CaseSensitive as Ft, Check as It, ChevronDown as Lt, ChevronLeft as Rt, ChevronRight as zt, ChevronUp as Bt, Code as Vt, Copy as Ht, CornerDownLeft as Ut, File as Wt, Focus as Gt, GripVertical as Kt, Heading1 as qt, Heading2 as Jt, Heading3 as Yt, Languages as Xt, List as Zt, ListOrdered as Qt, Maximize2 as $t, MessageSquare as en, MessageSquarePlus as tn, Minimize2 as nn, PenLine as rn, Pilcrow as an, Plus as on, Quote as sn, Replace as cn, RotateCcw as ln, Search as un, Smile as dn, Sparkles as fn, SpellCheck as pn, Square as mn, TableOfContents as hn, TextCursorInput as gn, TextQuote as _n, Trash2 as vn, WandSparkles as yn, WholeWord as bn, X as xn } from "lucide-react";
24
+ import { Suspense as Dt, lazy as Ot, useCallback as V, useEffect as H, useId as kt, useLayoutEffect as At, useMemo as U, useRef as W, useState as G, useSyncExternalStore as jt } from "react";
25
+ import { Fragment as K, jsx as q, jsxs as J } from "react/jsx-runtime";
26
+ import { createPortal as Mt } from "react-dom";
27
+ import { ArrowDown as Nt, ArrowUp as Pt, AtSign as Ft, CaseSensitive as It, Check as Lt, ChevronDown as Rt, ChevronLeft as zt, ChevronRight as Bt, ChevronUp as Vt, Code as Ht, Copy as Ut, CornerDownLeft as Wt, File as Gt, Focus as Kt, GripVertical as qt, Heading1 as Jt, Heading2 as Yt, Heading3 as Xt, Languages as Zt, List as Qt, ListOrdered as $t, Maximize2 as en, MessageSquare as tn, MessageSquarePlus as nn, Minimize2 as rn, PenLine as an, Pilcrow as on, Plus as sn, Quote as cn, Replace as ln, RotateCcw as un, Search as dn, Smile as fn, Sparkles as pn, SpellCheck as mn, Square as hn, TableOfContents as gn, TextCursorInput as _n, TextQuote as vn, Trash2 as yn, WandSparkles as bn, WholeWord as xn, X as Sn } from "lucide-react";
27
28
  //#region lib/components/ui/widgets/editor/extensions/assistant/editor-extensions.ts
28
- var Sn = (e) => e.extensionManager.baseExtensions;
29
+ var Cn = (e) => e.extensionManager.baseExtensions;
29
30
  //#endregion
30
31
  //#region lib/components/ui/widgets/editor/extensions/assistant/apply-result.ts
31
- function Cn(e, t, n, r) {
32
+ function wn(e, t, n, r) {
32
33
  let i = r.content ?? [];
33
34
  if (n === "below") {
34
35
  let n = e.resolve(t.to);
@@ -62,108 +63,108 @@ function Cn(e, t, n, r) {
62
63
  content: i.length === 1 && i[0]?.type === "paragraph" && t.from !== t.to && a.parent.isTextblock && a.sameParent(e.resolve(t.to)) ? i[0]?.content ?? [] : i
63
64
  };
64
65
  }
65
- var wn = /* @__PURE__ */ new Set([
66
+ var Tn = /* @__PURE__ */ new Set([
66
67
  "image",
67
68
  "gallery",
68
69
  "youtube"
69
- ]), Tn = /* @__PURE__ */ new Set(["paragraph", "heading"]), En = (e) => {
70
+ ]), En = /* @__PURE__ */ new Set(["paragraph", "heading"]), Dn = (e) => {
70
71
  let t = typeof e.attrs?.alt == "string" ? e.attrs.alt.trim() : "", n = e.type === "youtube" ? "video" : e.type === "gallery" ? "gallery" : "image";
71
72
  return t ? `[${n}: ${t}]` : `[${n}]`;
72
73
  };
73
- function Dn(e, t) {
74
+ function On(e, t) {
74
75
  if (t === "keep" || !e.content) return e;
75
- let n = Tn.has(e.type ?? ""), r = e.content.flatMap((e) => {
76
- if (e.type && wn.has(e.type)) {
76
+ let n = En.has(e.type ?? ""), r = e.content.flatMap((e) => {
77
+ if (e.type && Tn.has(e.type)) {
77
78
  if (t === "drop") return [];
78
79
  let r = {
79
80
  type: "text",
80
- text: En(e)
81
+ text: Dn(e)
81
82
  };
82
83
  return [n ? r : {
83
84
  type: "paragraph",
84
85
  content: [r]
85
86
  }];
86
87
  }
87
- return [Dn(e, t)];
88
+ return [On(e, t)];
88
89
  });
89
90
  return {
90
91
  ...e,
91
92
  content: r
92
93
  };
93
94
  }
94
- async function On(e, t, n = "drop") {
95
- let r = Sn(e);
96
- return Dn(St(await vt(t, { extensions: r }), r), n);
95
+ async function kn(e, t, n = "drop") {
96
+ let r = Cn(e);
97
+ return On(St(await vt(t, { extensions: r }), r), n);
97
98
  }
98
- async function kn(e, t, n, r, i = {}) {
99
- let a = await On(e, t, i.allowMedia ? "keep" : "drop");
99
+ async function An(e, t, n, r, i = {}) {
100
+ let a = await kn(e, t, i.allowMedia ? "keep" : "drop");
100
101
  if (e.isDestroyed || !e.isEditable) return !1;
101
102
  let o = n();
102
103
  if (!o) return !1;
103
104
  let s = e.state.doc.content.size, c = {
104
105
  from: Math.min(o.from, s),
105
106
  to: Math.min(o.to, s)
106
- }, l = Cn(e.state.doc, c, r, a);
107
+ }, l = wn(e.state.doc, c, r, a);
107
108
  return l.content.length ? e.chain().focus().insertContentAt(l.range, l.content).run() : !1;
108
109
  }
109
110
  //#endregion
110
111
  //#region lib/components/ui/widgets/editor/extensions/assistant/assistant-actions.ts
111
- var An = [
112
+ var jn = [
112
113
  "professional",
113
114
  "friendly",
114
115
  "direct"
115
- ], jn = [
116
+ ], Mn = [
116
117
  "en",
117
118
  "fr",
118
119
  "es",
119
120
  "de",
120
121
  "pt"
121
- ], Mn = {
122
+ ], Nn = {
122
123
  en: "English",
123
124
  fr: "French",
124
125
  es: "Spanish",
125
126
  de: "German",
126
127
  pt: "Portuguese"
127
- }, Nn = (e) => `material.editor.assistant.${e}`;
128
- function Pn(e) {
129
- let t = (t, n) => e(Nn(`action.${t}`), n);
128
+ }, Pn = (e) => `material.editor.assistant.${e}`;
129
+ function Fn(e) {
130
+ let t = (t, n) => e(Pn(`action.${t}`), n);
130
131
  return [
131
132
  {
132
133
  id: "improve",
133
134
  label: t("improve", "Improve writing"),
134
- icon: yn,
135
+ icon: bn,
135
136
  prompt: "Improve the writing: clearer, smoother, same meaning and language.",
136
137
  needsSelection: !0
137
138
  },
138
139
  {
139
140
  id: "fix",
140
141
  label: t("fix", "Fix spelling & grammar"),
141
- icon: pn,
142
+ icon: mn,
142
143
  prompt: "Fix the spelling and grammar. Change nothing else.",
143
144
  needsSelection: !0
144
145
  },
145
146
  {
146
147
  id: "shorter",
147
148
  label: t("shorter", "Make shorter"),
148
- icon: nn,
149
+ icon: rn,
149
150
  prompt: "Make it shorter and keep the meaning.",
150
151
  needsSelection: !0
151
152
  },
152
153
  {
153
154
  id: "longer",
154
155
  label: t("longer", "Make longer"),
155
- icon: $t,
156
+ icon: en,
156
157
  prompt: "Make it longer: develop the ideas and keep the meaning.",
157
158
  needsSelection: !0
158
159
  },
159
160
  {
160
161
  id: "tone",
161
162
  label: t("tone", "Change tone"),
162
- icon: dn,
163
+ icon: fn,
163
164
  needsSelection: !0,
164
- actions: An.map((t) => ({
165
+ actions: jn.map((t) => ({
165
166
  id: `tone:${t}`,
166
- label: e(Nn(`tone.${t}`), t[0]?.toUpperCase() + t.slice(1)),
167
+ label: e(Pn(`tone.${t}`), t[0]?.toUpperCase() + t.slice(1)),
167
168
  prompt: `Rewrite it in a ${t} tone.`,
168
169
  needsSelection: !0
169
170
  }))
@@ -171,33 +172,33 @@ function Pn(e) {
171
172
  {
172
173
  id: "summarise",
173
174
  label: t("summarise", "Summarise"),
174
- icon: _n,
175
+ icon: vn,
175
176
  prompt: "Summarise it in a few sentences.",
176
177
  needsSelection: !0
177
178
  },
178
179
  {
179
180
  id: "continue",
180
181
  label: t("continue", "Continue writing"),
181
- icon: rn,
182
+ icon: an,
182
183
  prompt: "Continue the text from where it stops, in the same style.",
183
184
  needsSelection: !1
184
185
  },
185
186
  {
186
187
  id: "translate",
187
188
  label: t("translate", "Translate"),
188
- icon: Xt,
189
+ icon: Zt,
189
190
  needsSelection: !0,
190
- actions: jn.map((t) => ({
191
+ actions: Mn.map((t) => ({
191
192
  id: `translate:${t}`,
192
- label: e(Nn(`lang.${t}`), Mn[t]),
193
- prompt: `Translate it into ${Mn[t]}.`,
193
+ label: e(Pn(`lang.${t}`), Nn[t]),
194
+ prompt: `Translate it into ${Nn[t]}.`,
194
195
  needsSelection: !0
195
196
  }))
196
197
  }
197
198
  ];
198
199
  }
199
- function Fn(e, t) {
200
- let n = Pn(t);
200
+ function In(e, t) {
201
+ let n = Fn(t);
201
202
  for (let t of e ?? []) {
202
203
  let e = n.findIndex((e) => e.id === t.id);
203
204
  e < 0 ? n.push(t) : n[e] = {
@@ -207,15 +208,15 @@ function Fn(e, t) {
207
208
  }
208
209
  return n;
209
210
  }
210
- function In(e, t) {
211
+ function Ln(e, t) {
211
212
  return e.filter((e) => t || !e.needsSelection).map((e) => e.actions ? {
212
213
  ...e,
213
- actions: In(e.actions, t)
214
+ actions: Ln(e.actions, t)
214
215
  } : e);
215
216
  }
216
217
  //#endregion
217
218
  //#region lib/components/ui/widgets/editor/extensions/assistant/assistant-shell.tsx
218
- function Ln(e, t) {
219
+ function Rn(e, t) {
219
220
  return U(() => ({ current: { getBoundingClientRect: () => {
220
221
  let { from: n, to: r } = t.getState().range;
221
222
  try {
@@ -226,19 +227,19 @@ function Ln(e, t) {
226
227
  }
227
228
  } } }), [e, t]);
228
229
  }
229
- function Rn({ editor: e, controller: t, label: n, slot: r = "editor-assistant", locked: i, onDismiss: a, children: o }) {
230
- let s = rt(), c = Ln(e, t);
231
- return s ? jt(/* @__PURE__ */ J("section", {
230
+ function zn({ editor: e, controller: t, label: n, slot: r = "editor-assistant", locked: i, onDismiss: a, children: o }) {
231
+ let s = it(), c = Rn(e, t);
232
+ return s ? Mt(/* @__PURE__ */ q("section", {
232
233
  role: "dialog",
233
234
  "aria-label": n,
234
235
  "data-slot": r,
235
236
  "data-layout": "sheet",
236
237
  className: "fixed inset-x-2 bottom-[max(0.5rem,env(safe-area-inset-bottom))] z-50 max-h-[75svh] overflow-y-auto overscroll-contain rounded-2xl border bg-popover p-3 text-popover-foreground shadow-lg",
237
238
  children: o
238
- }), document.body) : /* @__PURE__ */ Y(Je, {
239
+ }), document.body) : /* @__PURE__ */ J(Je, {
239
240
  open: !0,
240
241
  onOpenChange: (e) => !e && a("outside"),
241
- children: [/* @__PURE__ */ J(Ye, { virtualRef: c }), /* @__PURE__ */ J(qe, {
242
+ children: [/* @__PURE__ */ q(Ye, { virtualRef: c }), /* @__PURE__ */ q(qe, {
242
243
  role: "dialog",
243
244
  "aria-label": n,
244
245
  "data-slot": r,
@@ -257,7 +258,7 @@ function Rn({ editor: e, controller: t, label: n, slot: r = "editor-assistant",
257
258
  }
258
259
  //#endregion
259
260
  //#region lib/components/ui/widgets/editor/extensions/assistant/assistant-menu.tsx
260
- function zn(e) {
261
+ function Bn(e) {
261
262
  if (![
262
263
  "ArrowDown",
263
264
  "ArrowUp",
@@ -267,8 +268,8 @@ function zn(e) {
267
268
  let t = [...e.currentTarget.querySelectorAll("input, [role=menuitem]")], n = t.indexOf(document.activeElement), r = e.key === "ArrowUp" ? -1 : 1, i = e.key === "Home" ? 0 : e.key === "End" ? t.length - 1 : (n + r + t.length) % t.length;
268
269
  e.preventDefault(), t[i]?.focus();
269
270
  }
270
- function Bn({ actions: e, hasSelection: t, onChoose: n }) {
271
- let { t: r } = M(), [i, a] = G(null), o = U(() => In(i?.actions ?? e, t), [
271
+ function Vn({ actions: e, hasSelection: t, onChoose: n }) {
272
+ let { t: r } = j(), [i, a] = G(null), o = U(() => Ln(i?.actions ?? e, t), [
272
273
  i,
273
274
  e,
274
275
  t
@@ -279,23 +280,23 @@ function Bn({ actions: e, hasSelection: t, onChoose: n }) {
279
280
  prompt: e.prompt
280
281
  });
281
282
  };
282
- return /* @__PURE__ */ Y("div", {
283
- onKeyDown: zn,
283
+ return /* @__PURE__ */ J("div", {
284
+ onKeyDown: Bn,
284
285
  className: "grid gap-2",
285
- children: [/* @__PURE__ */ J(Vn, { onAsk: (e) => n({
286
+ children: [/* @__PURE__ */ q(Hn, { onAsk: (e) => n({
286
287
  action: "ask",
287
288
  label: e,
288
289
  prompt: e
289
- }) }), /* @__PURE__ */ Y("div", {
290
+ }) }), /* @__PURE__ */ J("div", {
290
291
  role: "menu",
291
292
  "aria-label": i?.label ?? r("material.editor.assistant.actions", "Actions"),
292
293
  className: "grid gap-0.5",
293
- children: [i && /* @__PURE__ */ J(Hn, {
294
- icon: /* @__PURE__ */ J(Rt, { className: "size-4" }),
294
+ children: [i && /* @__PURE__ */ q(Un, {
295
+ icon: /* @__PURE__ */ q(zt, { className: "size-4" }),
295
296
  label: r("material.editor.assistant.back", "Back"),
296
297
  onClick: () => a(null)
297
- }), o.map((e) => /* @__PURE__ */ J(Hn, {
298
- icon: e.icon && /* @__PURE__ */ J(e.icon, { className: "size-4" }),
298
+ }), o.map((e) => /* @__PURE__ */ q(Un, {
299
+ icon: e.icon && /* @__PURE__ */ q(e.icon, { className: "size-4" }),
299
300
  label: e.label,
300
301
  submenu: !!e.actions,
301
302
  onClick: () => s(e)
@@ -303,16 +304,16 @@ function Bn({ actions: e, hasSelection: t, onChoose: n }) {
303
304
  })]
304
305
  });
305
306
  }
306
- function Vn({ onAsk: e }) {
307
- let { t } = M(), [n, r] = G(""), i = W(null);
307
+ function Hn({ onAsk: e }) {
308
+ let { t } = j(), [n, r] = G(""), i = W(null);
308
309
  H(() => i.current?.focus({ preventScroll: !0 }), []);
309
310
  let a = () => {
310
311
  let t = n.trim();
311
312
  t && e(t);
312
313
  };
313
- return /* @__PURE__ */ Y("div", {
314
+ return /* @__PURE__ */ J("div", {
314
315
  className: "flex items-center gap-1.5",
315
- children: [/* @__PURE__ */ J(ze, {
316
+ children: [/* @__PURE__ */ q(nt, {
316
317
  ref: i,
317
318
  value: n,
318
319
  "aria-label": t("material.editor.assistant.ask-label", "Ask the assistant"),
@@ -322,56 +323,56 @@ function Vn({ onAsk: e }) {
322
323
  e.key !== "Enter" || e.nativeEvent.isComposing || (e.preventDefault(), a());
323
324
  },
324
325
  className: "h-9 min-w-0 flex-1"
325
- }), /* @__PURE__ */ J(N, {
326
+ }), /* @__PURE__ */ q(M, {
326
327
  variant: "filled",
327
328
  "aria-label": t("material.editor.assistant.send", "Send"),
328
329
  disabled: !n.trim(),
329
330
  onClick: a,
330
331
  className: "size-9",
331
- children: /* @__PURE__ */ J(Nt, {})
332
+ children: /* @__PURE__ */ q(Pt, {})
332
333
  })]
333
334
  });
334
335
  }
335
- function Hn({ icon: e, label: n, submenu: r, onClick: i }) {
336
- return /* @__PURE__ */ Y("button", {
336
+ function Un({ icon: e, label: n, submenu: r, onClick: i }) {
337
+ return /* @__PURE__ */ J("button", {
337
338
  type: "button",
338
339
  role: "menuitem",
339
340
  "aria-haspopup": r || void 0,
340
341
  onClick: i,
341
342
  className: t("flex min-h-9 w-full items-center gap-2.5 rounded-lg px-2.5 text-start text-sm", "text-popover-foreground transition-colors duration-(--nxgt-motion-effects-fast-duration) ease-effects-fast motion-reduce:transition-none hover:bg-primary/10", "focus-visible:bg-primary/10 focus-visible:outline-2 focus-visible:outline-primary-indicator focus-visible:-outline-offset-2"),
342
343
  children: [
343
- /* @__PURE__ */ J("span", {
344
+ /* @__PURE__ */ q("span", {
344
345
  className: "grid size-4 shrink-0 place-items-center text-primary-text",
345
346
  children: e
346
347
  }),
347
- /* @__PURE__ */ J("span", {
348
+ /* @__PURE__ */ q("span", {
348
349
  className: "min-w-0 flex-1 truncate",
349
350
  children: n
350
351
  }),
351
- r && /* @__PURE__ */ J(zt, { className: "size-4 text-muted-foreground rtl:rotate-180" })
352
+ r && /* @__PURE__ */ q(Bt, { className: "size-4 text-muted-foreground rtl:rotate-180" })
352
353
  ]
353
354
  });
354
355
  }
355
356
  //#endregion
356
357
  //#region lib/components/ui/widgets/editor/extensions/assistant/assistant-preview.tsx
357
- var Un = 90;
358
- function Wn({ editor: e, markdown: t }) {
358
+ var Wn = 90;
359
+ function Gn({ editor: e, markdown: t }) {
359
360
  let [n, r] = G(null);
360
361
  return H(() => {
361
362
  let n = !0, i = setTimeout(() => {
362
- On(e, t, "inert").then((t) => {
363
- n && r(wt(t, void 0, Sn(e)));
363
+ kn(e, t, "inert").then((t) => {
364
+ n && r(wt(t, void 0, Cn(e)));
364
365
  }).catch(() => {
365
- n && r(/* @__PURE__ */ J("p", { children: t }));
366
+ n && r(/* @__PURE__ */ q("p", { children: t }));
366
367
  });
367
- }, Un);
368
+ }, Wn);
368
369
  return () => {
369
370
  n = !1, clearTimeout(i);
370
371
  };
371
- }, [e, t]), /* @__PURE__ */ J("div", {
372
+ }, [e, t]), /* @__PURE__ */ q("div", {
372
373
  "data-slot": "editor-assistant-preview",
373
374
  className: "nxgt-prose max-h-64 overflow-auto rounded-lg border bg-card/60 px-3 py-2 text-sm max-md:max-h-[34svh]",
374
- children: n ?? /* @__PURE__ */ J("p", {
375
+ children: n ?? /* @__PURE__ */ q("p", {
375
376
  className: "whitespace-pre-wrap",
376
377
  children: t
377
378
  })
@@ -379,88 +380,88 @@ function Wn({ editor: e, markdown: t }) {
379
380
  }
380
381
  //#endregion
381
382
  //#region lib/components/ui/widgets/editor/extensions/assistant/assistant-result.tsx
382
- async function Gn(e) {
383
+ async function Kn(e) {
383
384
  try {
384
385
  return await navigator.clipboard.writeText(e), !0;
385
386
  } catch {
386
387
  return !1;
387
388
  }
388
389
  }
389
- function Kn({ text: e }) {
390
- let { t } = M(), [n, r] = G(!1);
390
+ function qn({ text: e }) {
391
+ let { t } = j(), [n, r] = G(!1);
391
392
  return H(() => {
392
393
  if (!n) return;
393
394
  let e = setTimeout(() => r(!1), 1600);
394
395
  return () => clearTimeout(e);
395
- }, [n]), /* @__PURE__ */ Y(j, {
396
+ }, [n]), /* @__PURE__ */ J(A, {
396
397
  variant: "ghost",
397
398
  size: "sm",
398
- onClick: async () => r(await Gn(e)),
399
- children: [J(n ? It : Ht, {}), n ? t("material.editor.assistant.copied", "Copied") : t("material.editor.assistant.copy", "Copy")]
399
+ onClick: async () => r(await Kn(e)),
400
+ children: [q(n ? Lt : Ut, {}), n ? t("material.editor.assistant.copied", "Copied") : t("material.editor.assistant.copy", "Copy")]
400
401
  });
401
402
  }
402
- function qn({ state: e, on: t }) {
403
- let { t: n } = M(), r = W(null);
404
- return H(() => r.current?.focus({ preventScroll: !0 }), []), /* @__PURE__ */ Y("div", {
403
+ function Jn({ state: e, on: t }) {
404
+ let { t: n } = j(), r = W(null);
405
+ return H(() => r.current?.focus({ preventScroll: !0 }), []), /* @__PURE__ */ J("div", {
405
406
  className: "flex flex-wrap items-center gap-1.5",
406
407
  children: [
407
- e.hasSelection && /* @__PURE__ */ Y(j, {
408
+ e.hasSelection && /* @__PURE__ */ J(A, {
408
409
  ref: r,
409
410
  size: "sm",
410
411
  disabled: e.applying,
411
412
  onClick: () => t.onApply("replace"),
412
- children: [/* @__PURE__ */ J(cn, {}), n("material.editor.assistant.replace", "Replace selection")]
413
+ children: [/* @__PURE__ */ q(ln, {}), n("material.editor.assistant.replace", "Replace selection")]
413
414
  }),
414
- /* @__PURE__ */ Y(j, {
415
+ /* @__PURE__ */ J(A, {
415
416
  ref: e.hasSelection ? void 0 : r,
416
417
  variant: e.hasSelection ? "outlined" : "filled",
417
418
  size: "sm",
418
419
  disabled: e.applying,
419
420
  onClick: () => t.onApply("below"),
420
- children: [/* @__PURE__ */ J(Ut, {}), n("material.editor.assistant.insert-below", "Insert below")]
421
+ children: [/* @__PURE__ */ q(Wt, {}), n("material.editor.assistant.insert-below", "Insert below")]
421
422
  }),
422
- /* @__PURE__ */ J(Kn, { text: e.text }),
423
- /* @__PURE__ */ Y(j, {
423
+ /* @__PURE__ */ q(qn, { text: e.text }),
424
+ /* @__PURE__ */ J(A, {
424
425
  variant: "ghost",
425
426
  size: "sm",
426
427
  disabled: e.applying,
427
428
  onClick: t.onRetry,
428
- children: [/* @__PURE__ */ J(ln, {}), n("material.editor.assistant.retry", "Retry")]
429
+ children: [/* @__PURE__ */ q(un, {}), n("material.editor.assistant.retry", "Retry")]
429
430
  }),
430
- /* @__PURE__ */ Y(j, {
431
+ /* @__PURE__ */ J(A, {
431
432
  variant: "ghost",
432
433
  size: "sm",
433
434
  onClick: t.onDiscard,
434
- children: [/* @__PURE__ */ J(xn, {}), n("material.editor.assistant.discard", "Discard")]
435
+ children: [/* @__PURE__ */ q(Sn, {}), n("material.editor.assistant.discard", "Discard")]
435
436
  })
436
437
  ]
437
438
  });
438
439
  }
439
- function Jn({ state: e, on: t }) {
440
- let { t: n } = M(), r = W(null);
441
- return H(() => r.current?.focus({ preventScroll: !0 }), []), /* @__PURE__ */ Y("div", {
440
+ function Yn({ state: e, on: t }) {
441
+ let { t: n } = j(), r = W(null);
442
+ return H(() => r.current?.focus({ preventScroll: !0 }), []), /* @__PURE__ */ J("div", {
442
443
  className: "grid gap-2",
443
- children: [/* @__PURE__ */ J("p", {
444
+ children: [/* @__PURE__ */ q("p", {
444
445
  role: "alert",
445
446
  "data-slot": "editor-assistant-error",
446
447
  className: "rounded-lg border border-error/40 bg-error/10 px-3 py-2 text-sm",
447
448
  children: e.error ? n("material.editor.assistant.failed", "The assistant could not answer: {message}", { message: e.error }) : n("material.editor.assistant.empty", "The assistant sent nothing.")
448
- }), /* @__PURE__ */ Y("div", {
449
+ }), /* @__PURE__ */ J("div", {
449
450
  className: "flex flex-wrap items-center gap-1.5",
450
451
  children: [
451
- /* @__PURE__ */ Y(j, {
452
+ /* @__PURE__ */ J(A, {
452
453
  ref: r,
453
454
  size: "sm",
454
455
  onClick: t.onRetry,
455
- children: [/* @__PURE__ */ J(ln, {}), n("material.editor.assistant.retry", "Retry")]
456
+ children: [/* @__PURE__ */ q(un, {}), n("material.editor.assistant.retry", "Retry")]
456
457
  }),
457
- /* @__PURE__ */ J(j, {
458
+ /* @__PURE__ */ q(A, {
458
459
  variant: "ghost",
459
460
  size: "sm",
460
461
  onClick: t.onBack,
461
462
  children: n("material.editor.assistant.back", "Back")
462
463
  }),
463
- /* @__PURE__ */ J(j, {
464
+ /* @__PURE__ */ q(A, {
464
465
  variant: "ghost",
465
466
  size: "sm",
466
467
  onClick: t.onDiscard,
@@ -470,25 +471,25 @@ function Jn({ state: e, on: t }) {
470
471
  })]
471
472
  });
472
473
  }
473
- function Yn({ editor: e, state: t, on: n, status: r }) {
474
- let { t: i } = M(), a = W(null), o = t.phase === "streaming";
474
+ function Xn({ editor: e, state: t, on: n, status: r }) {
475
+ let { t: i } = j(), a = W(null), o = t.phase === "streaming";
475
476
  return H(() => {
476
477
  o && a.current?.focus({ preventScroll: !0 });
477
- }, [o]), /* @__PURE__ */ Y("div", {
478
+ }, [o]), /* @__PURE__ */ J("div", {
478
479
  className: "grid gap-2",
479
480
  children: [
480
481
  r,
481
- t.text && /* @__PURE__ */ J(Wn, {
482
+ t.text && /* @__PURE__ */ q(Gn, {
482
483
  editor: e,
483
484
  markdown: t.text
484
485
  }),
485
- o ? /* @__PURE__ */ J("div", { children: /* @__PURE__ */ Y(j, {
486
+ o ? /* @__PURE__ */ q("div", { children: /* @__PURE__ */ J(A, {
486
487
  ref: a,
487
488
  variant: "tonal",
488
489
  size: "sm",
489
490
  onClick: n.onStop,
490
- children: [/* @__PURE__ */ J(mn, {}), i("material.editor.assistant.stop", "Stop")]
491
- }) }) : /* @__PURE__ */ J(qn, {
491
+ children: [/* @__PURE__ */ q(hn, {}), i("material.editor.assistant.stop", "Stop")]
492
+ }) }) : /* @__PURE__ */ q(Jn, {
492
493
  state: t,
493
494
  on: n
494
495
  })
@@ -497,63 +498,63 @@ function Yn({ editor: e, state: t, on: n, status: r }) {
497
498
  }
498
499
  //#endregion
499
500
  //#region lib/components/ui/widgets/editor/extensions/assistant/assistant-stage.tsx
500
- function Xn({ label: e, onDiscard: t }) {
501
- let { t: n } = M();
502
- return /* @__PURE__ */ Y("div", {
501
+ function Zn({ label: e, onDiscard: t }) {
502
+ let { t: n } = j();
503
+ return /* @__PURE__ */ J("div", {
503
504
  className: "flex items-center gap-2",
504
505
  children: [
505
- /* @__PURE__ */ J(fn, {
506
+ /* @__PURE__ */ q(pn, {
506
507
  className: "size-4 text-primary-text",
507
508
  "aria-hidden": !0
508
509
  }),
509
- /* @__PURE__ */ J("span", {
510
+ /* @__PURE__ */ q("span", {
510
511
  className: "min-w-0 flex-1 truncate font-medium text-sm",
511
512
  children: e
512
513
  }),
513
- /* @__PURE__ */ J(N, {
514
+ /* @__PURE__ */ q(M, {
514
515
  variant: "ghost",
515
516
  "aria-label": n("material.editor.assistant.discard", "Discard"),
516
517
  onClick: t,
517
518
  className: "size-7",
518
- children: /* @__PURE__ */ J(xn, {})
519
+ children: /* @__PURE__ */ q(Sn, {})
519
520
  })
520
521
  ]
521
522
  });
522
523
  }
523
- function Zn({ editor: e, state: t, actions: n, onChoose: r, on: i }) {
524
- return t.phase === "menu" ? /* @__PURE__ */ Y(q, { children: [/* @__PURE__ */ J(Qn, { note: t.note }), /* @__PURE__ */ J(Bn, {
524
+ function Qn({ editor: e, state: t, actions: n, onChoose: r, on: i }) {
525
+ return t.phase === "menu" ? /* @__PURE__ */ J(K, { children: [/* @__PURE__ */ q($n, { note: t.note }), /* @__PURE__ */ q(Vn, {
525
526
  actions: n,
526
527
  hasSelection: t.hasSelection,
527
528
  onChoose: r
528
- })] }) : t.phase === "error" ? /* @__PURE__ */ J(Jn, {
529
+ })] }) : t.phase === "error" ? /* @__PURE__ */ q(Yn, {
529
530
  state: t,
530
531
  on: i
531
- }) : t.phase === "streaming" || t.phase === "done" ? /* @__PURE__ */ J(Yn, {
532
+ }) : t.phase === "streaming" || t.phase === "done" ? /* @__PURE__ */ q(Xn, {
532
533
  editor: e,
533
534
  state: t,
534
535
  on: i,
535
- status: /* @__PURE__ */ Y(q, { children: [/* @__PURE__ */ J($n, {
536
+ status: /* @__PURE__ */ J(K, { children: [/* @__PURE__ */ q(er, {
536
537
  phase: t.phase,
537
538
  stopped: t.stopped
538
- }), /* @__PURE__ */ J(Qn, { note: t.note })] })
539
+ }), /* @__PURE__ */ q($n, { note: t.note })] })
539
540
  }) : null;
540
541
  }
541
- function Qn({ note: e }) {
542
- let { t } = M();
543
- return e ? /* @__PURE__ */ J("p", {
542
+ function $n({ note: e }) {
543
+ let { t } = j();
544
+ return e ? /* @__PURE__ */ q("p", {
544
545
  role: "status",
545
546
  "data-slot": "editor-assistant-note",
546
547
  className: "text-muted-foreground text-xs",
547
548
  children: e === "selection-gone" ? t("material.editor.assistant.selection-gone", "The selected text was removed.") : t("material.editor.assistant.read-only", "The document is read-only.")
548
549
  }) : null;
549
550
  }
550
- function $n({ phase: e, stopped: t }) {
551
- let { t: n } = M(), r = n("material.editor.assistant.writing", "Writing…");
552
- return /* @__PURE__ */ J("div", {
551
+ function er({ phase: e, stopped: t }) {
552
+ let { t: n } = j(), r = n("material.editor.assistant.writing", "Writing…");
553
+ return /* @__PURE__ */ q("div", {
553
554
  role: "status",
554
555
  "data-slot": "editor-assistant-status",
555
556
  className: "flex min-h-6 items-center gap-2 text-muted-foreground text-xs",
556
- children: e === "streaming" ? /* @__PURE__ */ Y(q, { children: [/* @__PURE__ */ J(Ee, {
557
+ children: e === "streaming" ? /* @__PURE__ */ J(K, { children: [/* @__PURE__ */ q(Te, {
557
558
  label: r,
558
559
  className: "size-6"
559
560
  }), r] }) : t ? n("material.editor.assistant.stopped", "Stopped") : n("material.editor.assistant.ready", "Answer ready")
@@ -561,13 +562,13 @@ function $n({ phase: e, stopped: t }) {
561
562
  }
562
563
  //#endregion
563
564
  //#region lib/components/ui/widgets/editor/extensions/assistant/assistant-storage.ts
564
- var er = (e) => {
565
+ var tr = (e) => {
565
566
  let t = e.storage.assistant;
566
567
  return t?.controller ? t : void 0;
567
568
  };
568
569
  //#endregion
569
570
  //#region lib/components/ui/widgets/editor/extensions/assistant/assistant-state.ts
570
- function tr(e, t) {
571
+ function nr(e, t) {
571
572
  let { range: n } = e, r = t(n.from, 1), i = Math.max(r, t(n.to, -1));
572
573
  return r === n.from && i === n.to ? null : e.hasSelection && r === i ? {
573
574
  range: {
@@ -581,7 +582,7 @@ function tr(e, t) {
581
582
  to: i
582
583
  } };
583
584
  }
584
- var nr = {
585
+ var Y = {
585
586
  phase: "idle",
586
587
  range: {
587
588
  from: 0,
@@ -594,42 +595,42 @@ var nr = {
594
595
  run: null,
595
596
  applying: !1,
596
597
  note: null
597
- }, rr = () => () => {}, ir = (e) => e ? er(e)?.controller : void 0;
598
+ }, rr = () => () => {}, ir = (e) => e ? tr(e)?.controller : void 0;
598
599
  function ar(e) {
599
600
  let t = ir(e);
600
- return K(t?.subscribe ?? rr, t?.getState ?? (() => nr), () => nr);
601
+ return jt(t?.subscribe ?? rr, t?.getState ?? (() => Y), () => Y);
601
602
  }
602
603
  //#endregion
603
604
  //#region lib/components/ui/widgets/editor/extensions/assistant/assistant-panel.tsx
604
605
  function or(e) {
605
- let { handle: t, chrome: n } = k(), r = t.features.some((e) => e.key === "assistant");
606
- return !t.editor || !r || n.state.panel !== "assistant" ? null : /* @__PURE__ */ J(sr, {});
606
+ let { handle: t, chrome: n } = O(), r = t.features.some((e) => e.key === "assistant");
607
+ return !t.editor || !r || n.state.panel !== "assistant" ? null : /* @__PURE__ */ q(sr, {});
607
608
  }
608
609
  function sr() {
609
- let { t: e, language: t } = M(), { handle: n } = k(), r = n.editor, i = er(r), a = ar(r), o = i?.controller, s = U(() => Fn(i?.actions, e), [i?.actions, e]);
610
+ let { t: e, language: t } = j(), { handle: n } = O(), r = n.editor, i = tr(r), a = ar(r), o = i?.controller, s = U(() => In(i?.actions, e), [i?.actions, e]);
610
611
  if (H(() => (o?.getState().phase === "idle" && o.begin(), () => o?.reset()), [o]), !o || a.phase === "idle") return null;
611
612
  let c = (e) => {
612
613
  o.close(), e !== "outside" && r.commands.focus();
613
614
  }, l = () => c("discard"), u = (e) => void o.run({
614
615
  ...e,
615
616
  locale: t ?? "en"
616
- }), d = (e) => void o.apply(async (t) => await kn(r, a.text, t, e, { allowMedia: i?.allowMedia }) ? "done" : r.isEditable ? "nothing" : "read-only"), f = (e) => {
617
+ }), d = (e) => void o.apply(async (t) => await An(r, a.text, t, e, { allowMedia: i?.allowMedia }) ? "done" : r.isEditable ? "nothing" : "read-only"), f = (e) => {
617
618
  e.key === "Escape" && (e.preventDefault(), e.stopPropagation(), c("escape"));
618
619
  }, p = e("material.editor.assistant.title", "Assistant");
619
- return /* @__PURE__ */ J(Rn, {
620
+ return /* @__PURE__ */ q(zn, {
620
621
  editor: r,
621
622
  controller: o,
622
623
  label: p,
623
624
  locked: a.phase !== "menu",
624
625
  onDismiss: c,
625
- children: /* @__PURE__ */ Y("div", {
626
+ children: /* @__PURE__ */ J("div", {
626
627
  ref: o.setPanel,
627
628
  onKeyDown: f,
628
629
  className: "grid gap-2.5",
629
- children: [/* @__PURE__ */ J(Xn, {
630
+ children: [/* @__PURE__ */ q(Zn, {
630
631
  label: a.run?.label ?? p,
631
632
  onDiscard: l
632
- }), /* @__PURE__ */ J(Zn, {
633
+ }), /* @__PURE__ */ q(Qn, {
633
634
  editor: r,
634
635
  state: a,
635
636
  actions: s,
@@ -649,12 +650,12 @@ function sr() {
649
650
  //#region lib/components/ui/widgets/editor/extensions/collab/use-presence.ts
650
651
  var cr = [], lr = () => () => {};
651
652
  function ur() {
652
- let { editor: e } = k().handle;
653
+ let { editor: e } = O().handle;
653
654
  return dr(e);
654
655
  }
655
656
  function dr(e) {
656
657
  let t = e?.storage.nxgtPresence?.store ?? null;
657
- return K(t ? t.subscribe : lr, t ? t.getSnapshot : () => cr, () => cr);
658
+ return jt(t ? t.subscribe : lr, t ? t.getSnapshot : () => cr, () => cr);
658
659
  }
659
660
  //#endregion
660
661
  //#region lib/components/ui/widgets/editor/extensions/collab/editor-presence.tsx
@@ -676,12 +677,12 @@ var fr = {
676
677
  ]
677
678
  };
678
679
  function pr({ user: e }) {
679
- return /* @__PURE__ */ J("span", {
680
+ return /* @__PURE__ */ q("span", {
680
681
  role: "img",
681
682
  "aria-label": e.name,
682
683
  title: e.name,
683
684
  className: "flex",
684
- children: /* @__PURE__ */ J(ge, { fallback: /* @__PURE__ */ J("span", {
685
+ children: /* @__PURE__ */ q(ge, { fallback: /* @__PURE__ */ q("span", {
685
686
  ref: (t) => {
686
687
  t?.style.setProperty("--nxgt-collab-color", e.color), t?.style.setProperty("--nxgt-collab-fg", Et(e.color));
687
688
  },
@@ -691,25 +692,25 @@ function pr({ user: e }) {
691
692
  });
692
693
  }
693
694
  function mr({ status: e, max: n = 4, className: r }) {
694
- let { t: i } = M(), a = ur();
695
+ let { t: i } = j(), a = ur();
695
696
  if (!e && a.length === 0) return null;
696
697
  let [o, s, c] = e ? fr[e] : [];
697
- return /* @__PURE__ */ Y("div", {
698
+ return /* @__PURE__ */ J("div", {
698
699
  "data-slot": "editor-presence",
699
700
  "data-status": e,
700
701
  className: t("flex items-center gap-3", r),
701
- children: [s && o && /* @__PURE__ */ J(Ie, {
702
+ children: [s && o && /* @__PURE__ */ q(Ne, {
702
703
  tone: o,
703
704
  pulse: e === "connecting",
704
705
  role: "status",
705
706
  className: "text-muted-foreground text-xs",
706
707
  children: i(s, c)
707
- }), a.length > 0 && /* @__PURE__ */ J(Te, {
708
+ }), a.length > 0 && /* @__PURE__ */ q(we, {
708
709
  size: "sm",
709
710
  max: n,
710
711
  role: "group",
711
712
  "aria-label": i("material.editor.collab.people", "{count, plural, one {# person editing} other {# people editing}}", { count: a.length }),
712
- children: a.map((e) => /* @__PURE__ */ J(pr, { user: e }, e.clientId))
713
+ children: a.map((e) => /* @__PURE__ */ q(pr, { user: e }, e.clientId))
713
714
  })]
714
715
  });
715
716
  }
@@ -719,8 +720,8 @@ var hr = "[&_textarea]:min-w-0", gr = (e) => e.key === "Enter" && (e.metaKey ||
719
720
  //#endregion
720
721
  //#region lib/components/ui/widgets/editor/extensions/comments/comment-composer-form.tsx
721
722
  function _r({ composer: e, body: t, onBody: n, onSubmit: r, onDismiss: i }) {
722
- let { t: a } = M(), o = e.error === "invalid-id" ? a("material.editor.comments.invalid-id", "The adapter answered a thread id that is not allowed.") : e.error;
723
- return /* @__PURE__ */ Y("form", {
723
+ let { t: a } = j(), o = e.error === "invalid-id" ? a("material.editor.comments.invalid-id", "The adapter answered a thread id that is not allowed.") : e.error;
724
+ return /* @__PURE__ */ J("form", {
724
725
  className: "grid grid-cols-[minmax(0,1fr)] gap-2.5",
725
726
  onSubmit: (e) => {
726
727
  e.preventDefault(), r();
@@ -729,11 +730,11 @@ function _r({ composer: e, body: t, onBody: n, onSubmit: r, onDismiss: i }) {
729
730
  e.key === "Escape" && (e.preventDefault(), e.stopPropagation(), i());
730
731
  },
731
732
  children: [
732
- /* @__PURE__ */ J("blockquote", {
733
+ /* @__PURE__ */ q("blockquote", {
733
734
  className: "line-clamp-2 border-s-2 ps-2 text-muted-foreground text-xs italic",
734
735
  children: e.quote
735
736
  }),
736
- /* @__PURE__ */ J(D, {
737
+ /* @__PURE__ */ q(T, {
737
738
  className: hr,
738
739
  "aria-label": a("material.editor.comments.body-label", "Comment"),
739
740
  placeholder: a("material.editor.comments.placeholder", "Write a comment…"),
@@ -746,12 +747,12 @@ function _r({ composer: e, body: t, onBody: n, onSubmit: r, onDismiss: i }) {
746
747
  gr(e) && (e.preventDefault(), r());
747
748
  }
748
749
  }),
749
- o && /* @__PURE__ */ J("p", {
750
+ o && /* @__PURE__ */ q("p", {
750
751
  role: "alert",
751
752
  className: "text-error text-xs",
752
753
  children: a("material.editor.comments.failed", "Not saved: {message}", { message: o })
753
754
  }),
754
- /* @__PURE__ */ J(vr, {
755
+ /* @__PURE__ */ q(vr, {
755
756
  pending: e.pending,
756
757
  empty: !t.trim(),
757
758
  onDismiss: i
@@ -760,17 +761,17 @@ function _r({ composer: e, body: t, onBody: n, onSubmit: r, onDismiss: i }) {
760
761
  });
761
762
  }
762
763
  function vr({ pending: e, empty: t, onDismiss: n }) {
763
- let { t: r } = M();
764
- return /* @__PURE__ */ Y("div", {
764
+ let { t: r } = j();
765
+ return /* @__PURE__ */ J("div", {
765
766
  className: "flex justify-end gap-2",
766
- children: [/* @__PURE__ */ J(j, {
767
+ children: [/* @__PURE__ */ q(A, {
767
768
  type: "button",
768
769
  size: "sm",
769
770
  variant: Xe,
770
771
  disabled: e,
771
772
  onClick: n,
772
773
  children: r("material.editor.comments.cancel", "Cancel")
773
- }), /* @__PURE__ */ J(j, {
774
+ }), /* @__PURE__ */ q(A, {
774
775
  type: "submit",
775
776
  size: "sm",
776
777
  loading: e,
@@ -797,7 +798,7 @@ var yr = (e = !1) => ({
797
798
  }, br = () => () => {}, xr = yr(), Sr = (e) => e ? X(e)?.controller : void 0;
798
799
  function Cr(e) {
799
800
  let t = Sr(e);
800
- return K(t?.subscribe ?? br, t?.getState ?? (() => xr), () => xr);
801
+ return jt(t?.subscribe ?? br, t?.getState ?? (() => xr), () => xr);
801
802
  }
802
803
  //#endregion
803
804
  //#region lib/components/ui/widgets/editor/extensions/comments/comments-live.tsx
@@ -809,30 +810,30 @@ var wr = {
809
810
  deleted: ["deleted-notice", "Thread deleted"]
810
811
  };
811
812
  function Tr({ editor: e }) {
812
- let { t } = M(), { notice: n } = Cr(e), r = n ? wr[n.kind] : null;
813
- return /* @__PURE__ */ J("div", {
813
+ let { t } = j(), { notice: n } = Cr(e), r = n ? wr[n.kind] : null;
814
+ return /* @__PURE__ */ q("div", {
814
815
  role: "status",
815
816
  "aria-live": "polite",
816
817
  "data-slot": "editor-comments-status",
817
818
  className: "sr-only",
818
- children: n && r ? /* @__PURE__ */ J("span", { children: t(`material.editor.comments.${r[0]}`, r[1]) }, n.seq) : null
819
+ children: n && r ? /* @__PURE__ */ q("span", { children: t(`material.editor.comments.${r[0]}`, r[1]) }, n.seq) : null
819
820
  });
820
821
  }
821
822
  //#endregion
822
823
  //#region lib/components/ui/widgets/editor/extensions/comments/comment-composer.tsx
823
824
  function Er(e) {
824
- let { handle: t } = k(), { editor: n } = t;
825
- return !n || !X(n) ? null : /* @__PURE__ */ Y(q, { children: [/* @__PURE__ */ J(Dr, { editor: n }), /* @__PURE__ */ J(Tr, { editor: n })] });
825
+ let { handle: t } = O(), { editor: n } = t;
826
+ return !n || !X(n) ? null : /* @__PURE__ */ J(K, { children: [/* @__PURE__ */ q(Dr, { editor: n }), /* @__PURE__ */ q(Tr, { editor: n })] });
826
827
  }
827
828
  function Dr({ editor: e }) {
828
829
  let t = X(e)?.controller;
829
- return Cr(e).composer === null ? null : /* @__PURE__ */ J(Or, {
830
+ return Cr(e).composer === null ? null : /* @__PURE__ */ q(Or, {
830
831
  editor: e,
831
832
  controller: t
832
833
  });
833
834
  }
834
835
  function Or({ editor: e, controller: t }) {
835
- let { t: n } = M(), { chrome: r } = k(), i = Cr(e).composer, { actions: a } = r;
836
+ let { t: n } = j(), { chrome: r } = O(), i = Cr(e).composer, { actions: a } = r;
836
837
  H(() => (a.setBubbleSuppressed(!0), () => {
837
838
  a.setBubbleSuppressed(!1);
838
839
  }), [a]);
@@ -844,14 +845,14 @@ function Or({ editor: e, controller: t }) {
844
845
  let l = (n) => {
845
846
  t.closeComposer(), n && e.commands.focus();
846
847
  };
847
- return /* @__PURE__ */ J(Rn, {
848
+ return /* @__PURE__ */ q(zn, {
848
849
  editor: e,
849
850
  controller: c,
850
851
  label: n("material.editor.comments.composer", "New comment"),
851
852
  slot: "editor-comment-composer",
852
853
  locked: i.pending,
853
854
  onDismiss: (e) => l(e !== "outside"),
854
- children: /* @__PURE__ */ J(_r, {
855
+ children: /* @__PURE__ */ q(_r, {
855
856
  composer: i,
856
857
  body: o,
857
858
  onBody: s,
@@ -867,14 +868,14 @@ function kr(e, t) {
867
868
  return !n || !(t instanceof Element) ? !1 : n.contains(t) ? !0 : n.getAttribute("aria-expanded") === "true" && !!t.closest("[role=\"menu\"]");
868
869
  }
869
870
  function Ar({ id: e, children: t, ...n }) {
870
- let { chrome: r, toolbarRef: i } = k(), a = r.state.panel === e, [o, s] = G();
871
+ let { chrome: r, toolbarRef: i } = O(), a = r.state.panel === e, [o, s] = G();
871
872
  return At(() => {
872
873
  let e = i.current, t = e?.getAttribute("aria-orientation") === "vertical" ? getComputedStyle(e).direction === "rtl" ? "left" : "right" : void 0;
873
874
  t !== o && s(t);
874
- }), /* @__PURE__ */ Y(Je, {
875
+ }), /* @__PURE__ */ J(Je, {
875
876
  open: a,
876
877
  onOpenChange: (t) => t ? r.actions.openPanel(e) : r.actions.closePanel(),
877
- children: [/* @__PURE__ */ J(Ye, { virtualRef: i }), /* @__PURE__ */ J(qe, {
878
+ children: [/* @__PURE__ */ q(Ye, { virtualRef: i }), /* @__PURE__ */ q(qe, {
878
879
  "data-panel": e,
879
880
  side: o,
880
881
  align: "start",
@@ -895,16 +896,16 @@ function Ar({ id: e, children: t, ...n }) {
895
896
  //#endregion
896
897
  //#region lib/components/ui/widgets/editor/extensions/comments/comments-status.tsx
897
898
  function jr({ state: e, controller: t, count: n }) {
898
- let { t: r } = M();
899
- return n === 0 && !e.showResolved ? null : /* @__PURE__ */ J(Fe, {
899
+ let { t: r } = j();
900
+ return n === 0 && !e.showResolved ? null : /* @__PURE__ */ q(_e, {
900
901
  label: r("material.editor.comments.show-resolved", "Show resolved"),
901
902
  checked: e.showResolved,
902
903
  onCheckedChange: t.setShowResolved
903
904
  });
904
905
  }
905
906
  function Mr({ state: e, empty: t }) {
906
- let { t: n } = M(), r = null;
907
- return e.phase === "loading" ? r = n("material.editor.comments.loading", "Loading comments…") : e.phase === "failed" ? r = n("material.editor.comments.load-failed", "Comments could not be loaded: {message}", { message: e.loadError ?? "" }) : t && (r = n("material.editor.comments.empty", "No comments yet")), r ? /* @__PURE__ */ J("p", {
907
+ let { t: n } = j(), r = null;
908
+ return e.phase === "loading" ? r = n("material.editor.comments.loading", "Loading comments…") : e.phase === "failed" ? r = n("material.editor.comments.load-failed", "Comments could not be loaded: {message}", { message: e.loadError ?? "" }) : t && (r = n("material.editor.comments.empty", "No comments yet")), r ? /* @__PURE__ */ q("p", {
908
909
  role: e.phase === "failed" ? "alert" : void 0,
909
910
  className: "px-1 text-muted-foreground text-sm",
910
911
  children: r
@@ -913,10 +914,10 @@ function Mr({ state: e, empty: t }) {
913
914
  //#endregion
914
915
  //#region lib/components/ui/widgets/editor/extensions/comments/comment-edit-form.tsx
915
916
  function Nr({ draft: e, onChange: t, onSave: n, onCancel: r }) {
916
- let { t: i } = M();
917
- return /* @__PURE__ */ Y("div", {
917
+ let { t: i } = j();
918
+ return /* @__PURE__ */ J("div", {
918
919
  className: "grid grid-cols-[minmax(0,1fr)] gap-2",
919
- children: [/* @__PURE__ */ J(D, {
920
+ children: [/* @__PURE__ */ q(T, {
920
921
  className: hr,
921
922
  "aria-label": i("material.editor.comments.body-label", "Comment"),
922
923
  value: e,
@@ -926,14 +927,14 @@ function Nr({ draft: e, onChange: t, onSave: n, onCancel: r }) {
926
927
  onKeyDown: (e) => {
927
928
  e.key === "Escape" ? (e.stopPropagation(), r()) : gr(e) && (e.preventDefault(), n());
928
929
  }
929
- }), /* @__PURE__ */ Y("div", {
930
+ }), /* @__PURE__ */ J("div", {
930
931
  className: "flex gap-2",
931
- children: [/* @__PURE__ */ J(j, {
932
+ children: [/* @__PURE__ */ q(A, {
932
933
  size: "sm",
933
934
  disabled: !e.trim(),
934
935
  onClick: n,
935
936
  children: i("material.editor.comments.save", "Save")
936
- }), /* @__PURE__ */ J(j, {
937
+ }), /* @__PURE__ */ q(A, {
937
938
  size: "sm",
938
939
  variant: Xe,
939
940
  onClick: r,
@@ -1006,26 +1007,26 @@ function Yr(e, t, n) {
1006
1007
  //#region lib/components/ui/widgets/editor/extensions/comments/comment-entry.tsx
1007
1008
  var Xr = (e) => e.split(/\s+/).filter(Boolean).slice(0, 2).map((e) => e[0]?.toUpperCase()).join("");
1008
1009
  function Zr({ comment: e, pending: t, onEdit: n }) {
1009
- let { t: r, language: i } = M();
1010
- return /* @__PURE__ */ Y("div", {
1010
+ let { t: r, language: i } = j();
1011
+ return /* @__PURE__ */ J("div", {
1011
1012
  className: "flex items-center gap-2",
1012
1013
  children: [
1013
- /* @__PURE__ */ J(ge, {
1014
+ /* @__PURE__ */ q(ge, {
1014
1015
  src: mt(e.author.avatarUrl),
1015
1016
  alt: "",
1016
1017
  fallback: Xr(e.author.name),
1017
1018
  className: "size-6 text-[0.625rem]"
1018
1019
  }),
1019
- /* @__PURE__ */ J("b", {
1020
+ /* @__PURE__ */ q("b", {
1020
1021
  className: "min-w-0 truncate font-semibold text-sm",
1021
1022
  children: e.author.name
1022
1023
  }),
1023
- /* @__PURE__ */ J("time", {
1024
+ /* @__PURE__ */ q("time", {
1024
1025
  dateTime: e.createdAt,
1025
1026
  className: "shrink-0 text-muted-foreground text-xs",
1026
1027
  children: t ? r("material.editor.comments.sending", "Sending…") : Yr(e.createdAt, Date.now(), i)
1027
1028
  }),
1028
- n && !t && /* @__PURE__ */ J(j, {
1029
+ n && !t && /* @__PURE__ */ q(A, {
1029
1030
  variant: "ghost",
1030
1031
  size: "xs",
1031
1032
  className: "ms-auto",
@@ -1040,18 +1041,18 @@ function Qr({ comment: e, editable: n, onEdit: r }) {
1040
1041
  let t = i;
1041
1042
  a(null), t !== null && t.trim() !== e.body && await r(t);
1042
1043
  };
1043
- return /* @__PURE__ */ Y("li", {
1044
+ return /* @__PURE__ */ J("li", {
1044
1045
  "data-slot": "comment-entry",
1045
1046
  "aria-busy": o || void 0,
1046
1047
  className: t("grid grid-cols-[minmax(0,1fr)] gap-1.5", o && "opacity-60"),
1047
- children: [/* @__PURE__ */ J(Zr, {
1048
+ children: [/* @__PURE__ */ q(Zr, {
1048
1049
  comment: e,
1049
1050
  pending: o,
1050
1051
  onEdit: n && i === null ? () => a(e.body) : void 0
1051
- }), i === null ? /* @__PURE__ */ J("p", {
1052
+ }), i === null ? /* @__PURE__ */ q("p", {
1052
1053
  className: "whitespace-pre-wrap break-words text-sm leading-relaxed",
1053
1054
  children: e.body
1054
- }) : /* @__PURE__ */ J(Nr, {
1055
+ }) : /* @__PURE__ */ q(Nr, {
1055
1056
  draft: i,
1056
1057
  onChange: a,
1057
1058
  onSave: () => void s(),
@@ -1062,11 +1063,11 @@ function Qr({ comment: e, editable: n, onEdit: r }) {
1062
1063
  //#endregion
1063
1064
  //#region lib/components/ui/widgets/editor/extensions/comments/thread-reply.tsx
1064
1065
  function $r({ thread: e, controller: t, canRemove: n }) {
1065
- let { t: r } = M(), [i, a] = G(""), o = async () => {
1066
+ let { t: r } = j(), [i, a] = G(""), o = async () => {
1066
1067
  let n = i;
1067
1068
  n.trim() && (a(""), await t.reply(e.id, n) || a(n));
1068
1069
  };
1069
- return /* @__PURE__ */ Y(q, { children: [/* @__PURE__ */ J(D, {
1070
+ return /* @__PURE__ */ J(K, { children: [/* @__PURE__ */ q(T, {
1070
1071
  className: hr,
1071
1072
  "aria-label": r("material.editor.comments.reply-label", "Reply to this thread"),
1072
1073
  placeholder: r("material.editor.comments.reply-placeholder", "Reply…"),
@@ -1076,10 +1077,10 @@ function $r({ thread: e, controller: t, canRemove: n }) {
1076
1077
  onKeyDown: (e) => {
1077
1078
  gr(e) && (e.preventDefault(), o());
1078
1079
  }
1079
- }), /* @__PURE__ */ Y("div", {
1080
+ }), /* @__PURE__ */ J("div", {
1080
1081
  className: "flex flex-wrap gap-2",
1081
1082
  children: [
1082
- /* @__PURE__ */ J(j, {
1083
+ /* @__PURE__ */ q(A, {
1083
1084
  size: "sm",
1084
1085
  variant: "outlined",
1085
1086
  color: "default",
@@ -1087,13 +1088,13 @@ function $r({ thread: e, controller: t, canRemove: n }) {
1087
1088
  onClick: () => void o(),
1088
1089
  children: r("material.editor.comments.reply", "Reply")
1089
1090
  }),
1090
- /* @__PURE__ */ J(j, {
1091
+ /* @__PURE__ */ q(A, {
1091
1092
  size: "sm",
1092
1093
  variant: "tonal",
1093
1094
  onClick: () => void t.resolve(e.id, !e.resolved),
1094
1095
  children: e.resolved ? r("material.editor.comments.reopen", "Reopen") : r("material.editor.comments.resolve", "Resolve")
1095
1096
  }),
1096
- n && /* @__PURE__ */ J(j, {
1097
+ n && /* @__PURE__ */ q(A, {
1097
1098
  size: "sm",
1098
1099
  variant: "ghost",
1099
1100
  color: "error",
@@ -1107,8 +1108,8 @@ function $r({ thread: e, controller: t, canRemove: n }) {
1107
1108
  //#endregion
1108
1109
  //#region lib/components/ui/widgets/editor/extensions/comments/thread-card.tsx
1109
1110
  function ei(e) {
1110
- let { thread: n, controller: r, active: i, detached: a, error: o, user: s } = e, { t: c } = M(), l = n.comments[0]?.author.id === s?.id && !!s;
1111
- return /* @__PURE__ */ Y("section", {
1111
+ let { thread: n, controller: r, active: i, detached: a, error: o, user: s } = e, { t: c } = j(), l = n.comments[0]?.author.id === s?.id && !!s;
1112
+ return /* @__PURE__ */ J("section", {
1112
1113
  ref: e.cardRef,
1113
1114
  "data-slot": "comment-thread",
1114
1115
  "data-thread": n.id,
@@ -1120,27 +1121,27 @@ function ei(e) {
1120
1121
  onPointerDownCapture: () => r.setActive(n.id),
1121
1122
  className: t("grid grid-cols-[minmax(0,1fr)] gap-2.5 rounded-2xl border bg-card p-3 text-card-foreground text-sm shadow-xs transition-colors duration-(--nxgt-motion-effects-fast-duration) ease-effects-fast motion-reduce:transition-none", "data-[active]:bg-primary/5 data-[active]:shadow-[inset_3px_0_0_0_var(--primary-indicator)]", "data-[resolved]:opacity-80", e.className),
1122
1123
  children: [
1123
- /* @__PURE__ */ Y("blockquote", {
1124
+ /* @__PURE__ */ J("blockquote", {
1124
1125
  className: "line-clamp-2 border-s-2 ps-2 text-muted-foreground text-xs italic",
1125
- children: [a && /* @__PURE__ */ Y("span", {
1126
+ children: [a && /* @__PURE__ */ J("span", {
1126
1127
  className: "not-italic font-medium",
1127
1128
  children: [c("material.editor.comments.detached-hint", "The commented text was removed."), " "]
1128
1129
  }), n.quote]
1129
1130
  }),
1130
- /* @__PURE__ */ J("ul", {
1131
+ /* @__PURE__ */ q("ul", {
1131
1132
  className: "grid grid-cols-[minmax(0,1fr)] gap-3",
1132
- children: n.comments.map((t) => /* @__PURE__ */ J(Qr, {
1133
+ children: n.comments.map((t) => /* @__PURE__ */ q(Qr, {
1133
1134
  comment: t,
1134
1135
  editable: e.canEdit && t.author.id === s?.id,
1135
1136
  onEdit: (e) => r.edit(n.id, t.id, e)
1136
1137
  }, t.id))
1137
1138
  }),
1138
- o && /* @__PURE__ */ J("p", {
1139
+ o && /* @__PURE__ */ q("p", {
1139
1140
  role: "alert",
1140
1141
  className: "text-error text-xs",
1141
1142
  children: c("material.editor.comments.failed", "Not saved: {message}", { message: o })
1142
1143
  }),
1143
- /* @__PURE__ */ J($r, {
1144
+ /* @__PURE__ */ q($r, {
1144
1145
  thread: n,
1145
1146
  controller: r,
1146
1147
  canRemove: e.canRemove && l
@@ -1151,14 +1152,14 @@ function ei(e) {
1151
1152
  //#endregion
1152
1153
  //#region lib/components/ui/widgets/editor/extensions/comments/detached-threads.tsx
1153
1154
  function ti({ views: e }) {
1154
- let { t } = M(), { controller: n, state: r, detached: i } = e;
1155
- return !n || i.length === 0 ? null : /* @__PURE__ */ Y("section", {
1155
+ let { t } = j(), { controller: n, state: r, detached: i } = e;
1156
+ return !n || i.length === 0 ? null : /* @__PURE__ */ J("section", {
1156
1157
  "data-slot": "comment-detached",
1157
1158
  className: "grid gap-2",
1158
- children: [/* @__PURE__ */ J("h3", {
1159
+ children: [/* @__PURE__ */ q("h3", {
1159
1160
  className: "px-1 font-medium text-muted-foreground text-xs uppercase tracking-wide",
1160
1161
  children: t("material.editor.comments.detached", "Detached")
1161
- }), i.map((t) => /* @__PURE__ */ J(ei, {
1162
+ }), i.map((t) => /* @__PURE__ */ q(ei, {
1162
1163
  ...ni(e, t),
1163
1164
  detached: !0,
1164
1165
  active: r.activeId === t.id
@@ -1466,54 +1467,54 @@ function _i(e) {
1466
1467
  //#endregion
1467
1468
  //#region lib/components/ui/widgets/editor/extensions/comments/comments-panel.tsx
1468
1469
  function vi(e) {
1469
- let { handle: t, chrome: n } = k(), { editor: r } = t;
1470
- return !r || !X(r) ? null : /* @__PURE__ */ J(Ar, {
1470
+ let { handle: t, chrome: n } = O(), { editor: r } = t;
1471
+ return !r || !X(r) ? null : /* @__PURE__ */ q(Ar, {
1471
1472
  id: "comments",
1472
1473
  className: "max-h-[min(36rem,80svh)] w-96 max-w-[92vw] overflow-y-auto p-3",
1473
1474
  onEscapeKeyDown: () => r.commands.focus(),
1474
- children: n.state.panel === "comments" && /* @__PURE__ */ J(yi, { editor: r })
1475
+ children: n.state.panel === "comments" && /* @__PURE__ */ q(yi, { editor: r })
1475
1476
  });
1476
1477
  }
1477
1478
  function yi({ editor: e }) {
1478
- let { t } = M(), n = _i(e), { controller: r, state: i, anchored: a } = n, o = W(null);
1479
+ let { t } = j(), n = _i(e), { controller: r, state: i, anchored: a } = n, o = W(null);
1479
1480
  if (H(() => {
1480
1481
  o.current?.querySelector("[data-active]")?.scrollIntoView({ block: "nearest" });
1481
1482
  }, [i.activeId]), !r) return null;
1482
- let s = (e, t) => /* @__PURE__ */ J(N, {
1483
+ let s = (e, t) => /* @__PURE__ */ q(M, {
1483
1484
  variant: "ghost",
1484
1485
  "aria-label": t,
1485
1486
  tooltip: t,
1486
1487
  onClick: () => r.step(e),
1487
- children: J(e > 0 ? Lt : Bt, {})
1488
+ children: q(e > 0 ? Rt : Vt, {})
1488
1489
  });
1489
- return /* @__PURE__ */ Y("div", {
1490
+ return /* @__PURE__ */ J("div", {
1490
1491
  ref: o,
1491
1492
  className: "grid gap-3",
1492
1493
  children: [
1493
- /* @__PURE__ */ Y("div", {
1494
+ /* @__PURE__ */ J("div", {
1494
1495
  className: "flex items-center justify-between gap-2",
1495
- children: [/* @__PURE__ */ J("h2", {
1496
+ children: [/* @__PURE__ */ q("h2", {
1496
1497
  className: "font-medium text-sm",
1497
1498
  children: t("material.editor.comments.title", "Comments")
1498
- }), /* @__PURE__ */ Y("div", {
1499
+ }), /* @__PURE__ */ J("div", {
1499
1500
  className: "flex",
1500
1501
  children: [s(-1, t("material.editor.comments.previous", "Previous comment")), s(1, t("material.editor.comments.next", "Next comment"))]
1501
1502
  })]
1502
1503
  }),
1503
- /* @__PURE__ */ J(jr, {
1504
+ /* @__PURE__ */ q(jr, {
1504
1505
  state: i,
1505
1506
  controller: r,
1506
1507
  count: n.resolvedCount
1507
1508
  }),
1508
- /* @__PURE__ */ J(Mr, {
1509
+ /* @__PURE__ */ q(Mr, {
1509
1510
  state: i,
1510
1511
  empty: i.threads.length === 0
1511
1512
  }),
1512
- a.map((e) => /* @__PURE__ */ J(ei, {
1513
+ a.map((e) => /* @__PURE__ */ q(ei, {
1513
1514
  ...ni(n, e),
1514
1515
  active: i.activeId === e.id
1515
1516
  }, e.id)),
1516
- /* @__PURE__ */ J(ti, { views: n })
1517
+ /* @__PURE__ */ q(ti, { views: n })
1517
1518
  ]
1518
1519
  });
1519
1520
  }
@@ -1630,33 +1631,33 @@ function Ei(e, t, n, r) {
1630
1631
  //#endregion
1631
1632
  //#region lib/components/ui/widgets/editor/extensions/comments/comments-rail.tsx
1632
1633
  function Di(e) {
1633
- let { handle: t } = k(), { editor: n } = t;
1634
- return !n || !X(n) ? null : /* @__PURE__ */ J(Oi, { editor: n });
1634
+ let { handle: t } = O(), { editor: n } = t;
1635
+ return !n || !X(n) ? null : /* @__PURE__ */ q(Oi, { editor: n });
1635
1636
  }
1636
1637
  function Oi({ editor: e }) {
1637
- let { t } = M(), n = _i(e), { controller: r, state: i, anchored: a } = n, o = W(null), { layout: s, cardRef: c } = Ei(e, o, a.map((e) => ({
1638
+ let { t } = j(), n = _i(e), { controller: r, state: i, anchored: a } = n, o = W(null), { layout: s, cardRef: c } = Ei(e, o, a.map((e) => ({
1638
1639
  id: e.id,
1639
1640
  from: i.anchors[e.id]?.from ?? 0
1640
1641
  })), i.activeId);
1641
- return H(() => (r?.setRail(!0), () => r?.setRail(!1)), [r]), r ? /* @__PURE__ */ Y("section", {
1642
+ return H(() => (r?.setRail(!0), () => r?.setRail(!1)), [r]), r ? /* @__PURE__ */ J("section", {
1642
1643
  "data-slot": "editor-comments-rail",
1643
1644
  "aria-label": t("material.editor.comments.threads", "Comment threads"),
1644
1645
  className: "grid gap-3",
1645
1646
  children: [
1646
- /* @__PURE__ */ J(jr, {
1647
+ /* @__PURE__ */ q(jr, {
1647
1648
  state: i,
1648
1649
  controller: r,
1649
1650
  count: n.resolvedCount
1650
1651
  }),
1651
- /* @__PURE__ */ J(Mr, {
1652
+ /* @__PURE__ */ q(Mr, {
1652
1653
  state: i,
1653
1654
  empty: i.threads.length === 0
1654
1655
  }),
1655
- /* @__PURE__ */ J("div", {
1656
+ /* @__PURE__ */ q("div", {
1656
1657
  ref: o,
1657
1658
  className: "relative",
1658
1659
  style: { height: s.height },
1659
- children: a.map((e) => /* @__PURE__ */ J(ei, {
1660
+ children: a.map((e) => /* @__PURE__ */ q(ei, {
1660
1661
  ...ni(n, e),
1661
1662
  active: i.activeId === e.id,
1662
1663
  cardRef: c(e.id),
@@ -1667,7 +1668,7 @@ function Oi({ editor: e }) {
1667
1668
  }
1668
1669
  }, e.id))
1669
1670
  }),
1670
- /* @__PURE__ */ J(ti, { views: n })
1671
+ /* @__PURE__ */ q(ti, { views: n })
1671
1672
  ]
1672
1673
  }) : null;
1673
1674
  }
@@ -1704,7 +1705,7 @@ var ji = (e) => (t) => t.chain().focus().setHeading({ level: e }).run(), Mi = [
1704
1705
  id: "paragraph",
1705
1706
  label: "Paragraph",
1706
1707
  key: "material.editor.block.paragraph",
1707
- icon: an,
1708
+ icon: on,
1708
1709
  node: "paragraph",
1709
1710
  run: (e) => e.chain().focus().setParagraph().run()
1710
1711
  },
@@ -1712,7 +1713,7 @@ var ji = (e) => (t) => t.chain().focus().setHeading({ level: e }).run(), Mi = [
1712
1713
  id: "h1",
1713
1714
  label: "Heading 1",
1714
1715
  key: "material.editor.block.heading-1",
1715
- icon: qt,
1716
+ icon: Jt,
1716
1717
  node: "heading",
1717
1718
  run: ji(1)
1718
1719
  },
@@ -1720,7 +1721,7 @@ var ji = (e) => (t) => t.chain().focus().setHeading({ level: e }).run(), Mi = [
1720
1721
  id: "h2",
1721
1722
  label: "Heading 2",
1722
1723
  key: "material.editor.block.heading-2",
1723
- icon: Jt,
1724
+ icon: Yt,
1724
1725
  node: "heading",
1725
1726
  run: ji(2)
1726
1727
  },
@@ -1728,7 +1729,7 @@ var ji = (e) => (t) => t.chain().focus().setHeading({ level: e }).run(), Mi = [
1728
1729
  id: "h3",
1729
1730
  label: "Heading 3",
1730
1731
  key: "material.editor.block.heading-3",
1731
- icon: Yt,
1732
+ icon: Xt,
1732
1733
  node: "heading",
1733
1734
  run: ji(3)
1734
1735
  },
@@ -1736,7 +1737,7 @@ var ji = (e) => (t) => t.chain().focus().setHeading({ level: e }).run(), Mi = [
1736
1737
  id: "bullet",
1737
1738
  label: "Bulleted list",
1738
1739
  key: "material.editor.block.bullet-list",
1739
- icon: Zt,
1740
+ icon: Qt,
1740
1741
  node: "bulletList",
1741
1742
  run: (e) => e.chain().focus().toggleBulletList().run()
1742
1743
  },
@@ -1744,7 +1745,7 @@ var ji = (e) => (t) => t.chain().focus().setHeading({ level: e }).run(), Mi = [
1744
1745
  id: "ordered",
1745
1746
  label: "Numbered list",
1746
1747
  key: "material.editor.block.ordered-list",
1747
- icon: Qt,
1748
+ icon: $t,
1748
1749
  node: "orderedList",
1749
1750
  run: (e) => e.chain().focus().toggleOrderedList().run()
1750
1751
  },
@@ -1752,7 +1753,7 @@ var ji = (e) => (t) => t.chain().focus().setHeading({ level: e }).run(), Mi = [
1752
1753
  id: "quote",
1753
1754
  label: "Quote",
1754
1755
  key: "material.editor.block.quote",
1755
- icon: sn,
1756
+ icon: cn,
1756
1757
  node: "blockquote",
1757
1758
  run: (e) => e.chain().focus().toggleBlockquote().run()
1758
1759
  }
@@ -1778,7 +1779,7 @@ function Pi(e, t) {
1778
1779
  }
1779
1780
  var Fi = (e) => Pi(e.doc, e.selection.head);
1780
1781
  function Ii(e, t) {
1781
- let n = t.node.isAtom ? ut.create(e.doc, t.pos) : z.near(e.doc.resolve(t.pos + 1));
1782
+ let n = t.node.isAtom ? ut.create(e.doc, t.pos) : R.near(e.doc.resolve(t.pos + 1));
1782
1783
  return e.setSelection(n);
1783
1784
  }
1784
1785
  function Li(e, t, n = Fi(e)) {
@@ -1788,7 +1789,7 @@ function Li(e, t, n = Fi(e)) {
1788
1789
  let { tr: i } = e, a = e.selection.head, o = e.selection.anchor, s = t === 1 ? n.pos : n.pos - r.nodeSize, c = t === 1 ? n.pos + n.node.nodeSize + r.nodeSize : n.pos + n.node.nodeSize, l = t === 1 ? [r, n.node] : [n.node, r];
1789
1790
  i.replaceWith(s, c, l);
1790
1791
  let u = t === 1 ? r.nodeSize : -r.nodeSize;
1791
- return a >= n.pos && a <= n.pos + n.node.nodeSize && e.selection instanceof z ? i.setSelection(z.create(i.doc, o + u, a + u)) : e.selection instanceof ut && i.setSelection(ut.create(i.doc, n.pos + u)), i.scrollIntoView();
1792
+ return a >= n.pos && a <= n.pos + n.node.nodeSize && e.selection instanceof R ? i.setSelection(R.create(i.doc, o + u, a + u)) : e.selection instanceof ut && i.setSelection(ut.create(i.doc, n.pos + u)), i.scrollIntoView();
1792
1793
  }
1793
1794
  function Ri(e, t = Fi(e)) {
1794
1795
  if (!t) return null;
@@ -1808,7 +1809,7 @@ function zi(e, t = Fi(e)) {
1808
1809
  }
1809
1810
  n.delete(t.pos, r);
1810
1811
  let i = Math.min(t.pos, n.doc.content.size);
1811
- return n.setSelection(z.near(n.doc.resolve(i), -1)).scrollIntoView();
1812
+ return n.setSelection(R.near(n.doc.resolve(i), -1)).scrollIntoView();
1812
1813
  }
1813
1814
  //#endregion
1814
1815
  //#region lib/components/ui/widgets/editor/extensions/block/block-menu.tsx
@@ -1817,45 +1818,45 @@ function Bi(e, t) {
1817
1818
  n && e.view.dispatch(n), e.isDestroyed || e.commands.focus();
1818
1819
  }
1819
1820
  function Vi({ editor: e, block: t }) {
1820
- let { t: n } = M(), { doc: r } = e.state, i = () => ({
1821
+ let { t: n } = j(), { doc: r } = e.state, i = () => ({
1821
1822
  ...t,
1822
1823
  node: r.child(t.index)
1823
1824
  });
1824
- return /* @__PURE__ */ Y(q, { children: [
1825
- /* @__PURE__ */ Y(We, { children: [/* @__PURE__ */ J(Ve, { children: n("material.editor.block.turn-into", "Turn into") }), Ni(e).map((t) => /* @__PURE__ */ Y(A, {
1825
+ return /* @__PURE__ */ J(K, { children: [
1826
+ /* @__PURE__ */ J(We, { children: [/* @__PURE__ */ q(Ve, { children: n("material.editor.block.turn-into", "Turn into") }), Ni(e).map((t) => /* @__PURE__ */ J(k, {
1826
1827
  onSelect: () => t.run(e),
1827
- children: [/* @__PURE__ */ J(t.icon, {}), n(t.key, t.label)]
1828
+ children: [/* @__PURE__ */ q(t.icon, {}), n(t.key, t.label)]
1828
1829
  }, t.id))] }),
1829
- /* @__PURE__ */ J(Ue, {}),
1830
- /* @__PURE__ */ Y(We, { children: [
1831
- /* @__PURE__ */ Y(A, {
1830
+ /* @__PURE__ */ q(Ue, {}),
1831
+ /* @__PURE__ */ J(We, { children: [
1832
+ /* @__PURE__ */ J(k, {
1832
1833
  onSelect: () => Bi(e, () => Ri(e.state, i())),
1833
- children: [/* @__PURE__ */ J(Ht, {}), n("material.editor.block.duplicate", "Duplicate")]
1834
+ children: [/* @__PURE__ */ q(Ut, {}), n("material.editor.block.duplicate", "Duplicate")]
1834
1835
  }),
1835
- /* @__PURE__ */ Y(A, {
1836
+ /* @__PURE__ */ J(k, {
1836
1837
  disabled: t.index === 0,
1837
1838
  onSelect: () => Bi(e, () => Li(e.state, -1, i())),
1838
1839
  children: [
1839
- /* @__PURE__ */ J(Nt, {}),
1840
+ /* @__PURE__ */ q(Pt, {}),
1840
1841
  n("material.editor.block.move-up", "Move up"),
1841
- /* @__PURE__ */ J(Ge, { children: "⌥⇧↑" })
1842
+ /* @__PURE__ */ q(Ge, { children: "⌥⇧↑" })
1842
1843
  ]
1843
1844
  }),
1844
- /* @__PURE__ */ Y(A, {
1845
+ /* @__PURE__ */ J(k, {
1845
1846
  disabled: t.index >= r.childCount - 1,
1846
1847
  onSelect: () => Bi(e, () => Li(e.state, 1, i())),
1847
1848
  children: [
1848
- /* @__PURE__ */ J(Mt, {}),
1849
+ /* @__PURE__ */ q(Nt, {}),
1849
1850
  n("material.editor.block.move-down", "Move down"),
1850
- /* @__PURE__ */ J(Ge, { children: "⌥⇧↓" })
1851
+ /* @__PURE__ */ q(Ge, { children: "⌥⇧↓" })
1851
1852
  ]
1852
1853
  })
1853
1854
  ] }),
1854
- /* @__PURE__ */ J(Ue, {}),
1855
- /* @__PURE__ */ Y(A, {
1855
+ /* @__PURE__ */ q(Ue, {}),
1856
+ /* @__PURE__ */ J(k, {
1856
1857
  variant: "error",
1857
1858
  onSelect: () => Bi(e, () => zi(e.state, i())),
1858
- children: [/* @__PURE__ */ J(vn, {}), n("material.editor.block.delete", "Delete")]
1859
+ children: [/* @__PURE__ */ q(yn, {}), n("material.editor.block.delete", "Delete")]
1859
1860
  })
1860
1861
  ] });
1861
1862
  }
@@ -1914,28 +1915,28 @@ function Hi(e, t, n) {
1914
1915
  //#endregion
1915
1916
  //#region lib/components/ui/widgets/editor/partials/editor-block-handle.tsx
1916
1917
  function Ui({ children: e, className: t }) {
1917
- let { handle: n } = k(), r = n.features.some((e) => e.key === "dragHandle");
1918
- return !n.editor || !r ? /* @__PURE__ */ J("div", {
1918
+ let { handle: n } = O(), r = n.features.some((e) => e.key === "dragHandle");
1919
+ return !n.editor || !r ? /* @__PURE__ */ q("div", {
1919
1920
  className: t,
1920
1921
  children: e
1921
- }) : /* @__PURE__ */ J(Wi, {
1922
+ }) : /* @__PURE__ */ q(Wi, {
1922
1923
  editor: n.editor,
1923
1924
  className: t,
1924
1925
  children: e
1925
1926
  });
1926
1927
  }
1927
1928
  function Wi({ editor: e, children: n, className: r }) {
1928
- let { chrome: i } = k(), a = W(null), o = P({
1929
+ let { chrome: i } = O(), a = W(null), o = N({
1929
1930
  editor: e,
1930
1931
  selector: (e) => e.editor.isEditable
1931
1932
  }), s = i.state.panel === "block" && o, { active: c, hover: l, unhover: u } = Hi(e, a, s);
1932
- return /* @__PURE__ */ Y("div", {
1933
+ return /* @__PURE__ */ J("div", {
1933
1934
  ref: a,
1934
1935
  "data-slot": "editor-block-area",
1935
1936
  onPointerMove: (e) => l(e.clientX, e.clientY),
1936
1937
  onPointerLeave: u,
1937
1938
  className: t("group/blocks relative", r),
1938
- children: [n, o && c && !i.state.focusMode && /* @__PURE__ */ J(Gi, {
1939
+ children: [n, o && c && !i.state.focusMode && /* @__PURE__ */ q(Gi, {
1939
1940
  editor: e,
1940
1941
  active: c,
1941
1942
  open: s
@@ -1943,24 +1944,24 @@ function Wi({ editor: e, children: n, className: r }) {
1943
1944
  });
1944
1945
  }
1945
1946
  function Gi({ editor: e, active: n, open: r }) {
1946
- let { t: i } = M(), { chrome: a } = k();
1947
- return /* @__PURE__ */ Y("div", {
1947
+ let { t: i } = j(), { chrome: a } = O();
1948
+ return /* @__PURE__ */ J("div", {
1948
1949
  "data-slot": "editor-block-handle",
1949
1950
  "data-open": r || void 0,
1950
1951
  style: { top: n.top },
1951
1952
  className: t("absolute end-full me-1.5 flex items-center opacity-0 transition-opacity duration-(--nxgt-motion-effects-fast-duration) ease-effects-fast motion-reduce:transition-none", "group-hover/blocks:opacity-100 group-focus-within/blocks:opacity-100 data-open:opacity-100", "@max-xl:invisible not-pointer-fine:invisible"),
1952
- children: [/* @__PURE__ */ J(N, {
1953
+ children: [/* @__PURE__ */ q(M, {
1953
1954
  variant: "ghost",
1954
1955
  className: "size-6 text-muted-foreground",
1955
1956
  tooltip: i("material.editor.block.add", "Add a block below"),
1956
1957
  onClick: () => ki(e, n),
1957
- children: /* @__PURE__ */ J(on, {})
1958
- }), /* @__PURE__ */ Y(Ke, {
1958
+ children: /* @__PURE__ */ q(sn, {})
1959
+ }), /* @__PURE__ */ J(Ke, {
1959
1960
  open: r,
1960
1961
  onOpenChange: (e) => e ? a.actions.openPanel("block") : a.actions.closePanel(),
1961
- children: [/* @__PURE__ */ J(Be, {
1962
+ children: [/* @__PURE__ */ q(Be, {
1962
1963
  asChild: !0,
1963
- children: /* @__PURE__ */ J(N, {
1964
+ children: /* @__PURE__ */ q(M, {
1964
1965
  variant: "ghost",
1965
1966
  draggable: !0,
1966
1967
  className: "size-6 cursor-grab text-muted-foreground active:cursor-grabbing",
@@ -1972,14 +1973,14 @@ function Gi({ editor: e, active: n, open: r }) {
1972
1973
  Fi(e.state)?.pos !== n.pos && e.view.dispatch(Ii(e.state.tr, n)), a.actions.openPanel("block");
1973
1974
  },
1974
1975
  onDragStart: (t) => Ai(e, n, t.nativeEvent),
1975
- children: /* @__PURE__ */ J(Kt, {})
1976
+ children: /* @__PURE__ */ q(qt, {})
1976
1977
  })
1977
- }), /* @__PURE__ */ J(He, {
1978
+ }), /* @__PURE__ */ q(He, {
1978
1979
  align: "start",
1979
1980
  onCloseAutoFocus: (t) => {
1980
1981
  t.preventDefault(), e.isDestroyed || e.commands.focus();
1981
1982
  },
1982
- children: /* @__PURE__ */ J(Vi, {
1983
+ children: /* @__PURE__ */ q(Vi, {
1983
1984
  editor: e,
1984
1985
  block: n
1985
1986
  })
@@ -1990,11 +1991,11 @@ function Gi({ editor: e, active: n, open: r }) {
1990
1991
  //#endregion
1991
1992
  //#region lib/components/ui/widgets/editor/extensions/find/find-fields.tsx
1992
1993
  function Ki({ find: e }) {
1993
- let { t } = M(), n = "";
1994
+ let { t } = j(), n = "";
1994
1995
  return e.term && (n = e.total === 0 ? t("material.editor.find.none", "No results") : t("material.editor.find.count", "{current} of {total}", {
1995
1996
  current: e.current + 1,
1996
1997
  total: e.total
1997
- })), /* @__PURE__ */ J("output", {
1998
+ })), /* @__PURE__ */ q("output", {
1998
1999
  "data-slot": "editor-find-count",
1999
2000
  "aria-live": "polite",
2000
2001
  className: "min-w-16 text-center text-muted-foreground text-sm tabular-nums",
@@ -2002,45 +2003,45 @@ function Ki({ find: e }) {
2002
2003
  });
2003
2004
  }
2004
2005
  function qi({ find: e }) {
2005
- let { t } = M();
2006
- return /* @__PURE__ */ Y(q, { children: [/* @__PURE__ */ J(me, {
2006
+ let { t } = j();
2007
+ return /* @__PURE__ */ J(K, { children: [/* @__PURE__ */ q(me, {
2007
2008
  size: "sm",
2008
2009
  "aria-label": t("material.editor.find.match-case", "Match case"),
2009
2010
  pressed: e.caseSensitive,
2010
2011
  onPressedChange: e.setCaseSensitive,
2011
- children: /* @__PURE__ */ J(Ft, {})
2012
- }), /* @__PURE__ */ J(me, {
2012
+ children: /* @__PURE__ */ q(It, {})
2013
+ }), /* @__PURE__ */ q(me, {
2013
2014
  size: "sm",
2014
2015
  "aria-label": t("material.editor.find.whole-word", "Whole word"),
2015
2016
  pressed: e.wholeWord,
2016
2017
  onPressedChange: e.setWholeWord,
2017
- children: /* @__PURE__ */ J(bn, {})
2018
+ children: /* @__PURE__ */ q(xn, {})
2018
2019
  })] });
2019
2020
  }
2020
2021
  function Ji({ disabled: e, onStep: t }) {
2021
- let { t: n } = M();
2022
- return /* @__PURE__ */ Y(q, { children: [/* @__PURE__ */ J(N, {
2022
+ let { t: n } = j();
2023
+ return /* @__PURE__ */ J(K, { children: [/* @__PURE__ */ q(M, {
2023
2024
  variant: "ghost",
2024
2025
  className: "size-8",
2025
2026
  tooltip: n("material.editor.find.previous", "Previous match"),
2026
2027
  disabled: e,
2027
2028
  onClick: () => t(-1),
2028
- children: /* @__PURE__ */ J(Bt, {})
2029
- }), /* @__PURE__ */ J(N, {
2029
+ children: /* @__PURE__ */ q(Vt, {})
2030
+ }), /* @__PURE__ */ q(M, {
2030
2031
  variant: "ghost",
2031
2032
  className: "size-8",
2032
2033
  tooltip: n("material.editor.find.next", "Next match"),
2033
2034
  disabled: e,
2034
2035
  onClick: () => t(1),
2035
- children: /* @__PURE__ */ J(Lt, {})
2036
+ children: /* @__PURE__ */ q(Rt, {})
2036
2037
  })] });
2037
2038
  }
2038
2039
  function Yi({ find: e, inputRef: t, onStep: n, onClose: r, onKeyDown: i, replaceOpen: a, canReplace: o = !0, onToggleReplace: s }) {
2039
- let { t: c } = M();
2040
- return /* @__PURE__ */ Y("div", {
2040
+ let { t: c } = j();
2041
+ return /* @__PURE__ */ J("div", {
2041
2042
  className: "flex flex-wrap items-center gap-1.5",
2042
2043
  children: [
2043
- /* @__PURE__ */ J(ze, {
2044
+ /* @__PURE__ */ q(nt, {
2044
2045
  ref: t,
2045
2046
  type: "search",
2046
2047
  "aria-label": c("material.editor.find.find", "Find"),
@@ -2050,26 +2051,26 @@ function Yi({ find: e, inputRef: t, onStep: n, onClose: r, onKeyDown: i, replace
2050
2051
  onKeyDown: i,
2051
2052
  className: "h-8 min-w-0 flex-1 basis-40 sm:max-w-64"
2052
2053
  }),
2053
- /* @__PURE__ */ J(qi, { find: e }),
2054
- o && /* @__PURE__ */ J(N, {
2054
+ /* @__PURE__ */ q(qi, { find: e }),
2055
+ o && /* @__PURE__ */ q(M, {
2055
2056
  variant: "ghost",
2056
2057
  className: "size-8",
2057
2058
  "aria-pressed": a,
2058
2059
  tooltip: c("material.editor.find.show-replace", "Show replace"),
2059
2060
  onClick: s,
2060
- children: /* @__PURE__ */ J(cn, {})
2061
+ children: /* @__PURE__ */ q(ln, {})
2061
2062
  }),
2062
- /* @__PURE__ */ J(Ki, { find: e }),
2063
- /* @__PURE__ */ J(Ji, {
2063
+ /* @__PURE__ */ q(Ki, { find: e }),
2064
+ /* @__PURE__ */ q(Ji, {
2064
2065
  disabled: e.total === 0,
2065
2066
  onStep: n
2066
2067
  }),
2067
- /* @__PURE__ */ J(N, {
2068
+ /* @__PURE__ */ q(M, {
2068
2069
  variant: "ghost",
2069
2070
  className: "ms-auto size-8",
2070
2071
  tooltip: c("material.editor.find.close", "Close"),
2071
2072
  onClick: r,
2072
- children: /* @__PURE__ */ J(xn, {})
2073
+ children: /* @__PURE__ */ q(Sn, {})
2073
2074
  })
2074
2075
  ]
2075
2076
  });
@@ -2109,7 +2110,7 @@ function ra(e, t, n) {
2109
2110
  }
2110
2111
  //#endregion
2111
2112
  //#region lib/components/ui/widgets/editor/extensions/find/find-state.ts
2112
- var Z = new lt("nxgtFind"), ia = "";
2113
+ var Z = new z("nxgtFind"), ia = "";
2113
2114
  function aa(e) {
2114
2115
  let t = [];
2115
2116
  return e.descendants((e, n) => e.isTextblock ? (t.push({
@@ -2118,18 +2119,18 @@ function aa(e) {
2118
2119
  }), !1) : !0), t;
2119
2120
  }
2120
2121
  function oa(e, t) {
2121
- return I.create(e, t.map((e) => L.inline(e.from, e.to, { class: "nxgt-find-match" })));
2122
+ return F.create(e, t.map((e) => I.inline(e.from, e.to, { class: "nxgt-find-match" })));
2122
2123
  }
2123
2124
  function sa(e, t) {
2124
2125
  let n = t.matches[t.current];
2125
- return n ? I.create(e, [L.inline(n.from, n.to, { class: "nxgt-find-current" })]) : I.empty;
2126
+ return n ? F.create(e, [I.inline(n.from, n.to, { class: "nxgt-find-current" })]) : F.empty;
2126
2127
  }
2127
2128
  var ca = () => ({
2128
2129
  ...Xi,
2129
2130
  term: "",
2130
2131
  matches: [],
2131
2132
  current: -1,
2132
- decorations: I.empty
2133
+ decorations: F.empty
2133
2134
  });
2134
2135
  function la(e, t, n) {
2135
2136
  let r = ta(aa(e), t.term, t);
@@ -2191,7 +2192,7 @@ function da(e, t, n) {
2191
2192
  }), !1)), n && (n.blocks += r.length), s.push(...ta(r, t.term, t));
2192
2193
  }
2193
2194
  let c = [...a, ...s].sort((e, t) => e.from - t.from);
2194
- s.length > 0 && (o = o.add(e.doc, s.map((e) => L.inline(e.from, e.to, { class: "nxgt-find-match" }))));
2195
+ s.length > 0 && (o = o.add(e.doc, s.map((e) => I.inline(e.from, e.to, { class: "nxgt-find-match" }))));
2195
2196
  let l = t.current >= 0 && t.matches.length === c.length ? Math.min(t.current, c.length - 1) : na(c, e.selection.from);
2196
2197
  return {
2197
2198
  ...t,
@@ -2210,7 +2211,7 @@ function pa(e) {
2210
2211
  return /\n/.test(i) ? "" : i;
2211
2212
  }
2212
2213
  function ma(e) {
2213
- let [t, n] = G(() => pa(e)), [r, i] = G(!1), [a, o] = G(!1), s = P({
2214
+ let [t, n] = G(() => pa(e)), [r, i] = G(!1), [a, o] = G(!1), s = N({
2214
2215
  editor: e,
2215
2216
  selector: ({ editor: e }) => {
2216
2217
  let { matches: t, current: n } = fa(e.state);
@@ -2247,11 +2248,11 @@ function ma(e) {
2247
2248
  //#endregion
2248
2249
  //#region lib/components/ui/widgets/editor/partials/editor-find-panel.tsx
2249
2250
  function ha({ className: e }) {
2250
- let { handle: t, chrome: n } = k(), { editor: r } = t, i = n.state.panel === "find", a = t.features.some((e) => e.key === "find");
2251
- return !r || !i || !a ? null : /* @__PURE__ */ J(ga, { className: e });
2251
+ let { handle: t, chrome: n } = O(), { editor: r } = t, i = n.state.panel === "find", a = t.features.some((e) => e.key === "find");
2252
+ return !r || !i || !a ? null : /* @__PURE__ */ q(ga, { className: e });
2252
2253
  }
2253
2254
  function ga({ className: e }) {
2254
- let { t } = M(), { handle: n, chrome: r } = k(), i = n.editor, a = ma(i), o = W(null), s = P({
2255
+ let { t } = j(), { handle: n, chrome: r } = O(), i = n.editor, a = ma(i), o = W(null), s = N({
2255
2256
  editor: i,
2256
2257
  selector: (e) => e.editor.isEditable
2257
2258
  }), c = s && r.state.findReplace;
@@ -2261,14 +2262,14 @@ function ga({ className: e }) {
2261
2262
  let l = () => {
2262
2263
  r.actions.closePanel(), i.commands.focus();
2263
2264
  }, u = (e) => i.commands.findStep(e);
2264
- return /* @__PURE__ */ Y("search", {
2265
+ return /* @__PURE__ */ J("search", {
2265
2266
  "aria-label": t("material.editor.find.title", "Find and replace"),
2266
2267
  "data-slot": "editor-find",
2267
2268
  onKeyDown: (e) => {
2268
2269
  e.key === "Escape" && (e.preventDefault(), e.stopPropagation(), l());
2269
2270
  },
2270
2271
  className: e ?? "grid gap-1.5",
2271
- children: [/* @__PURE__ */ J(Yi, {
2272
+ children: [/* @__PURE__ */ q(Yi, {
2272
2273
  find: a,
2273
2274
  inputRef: o,
2274
2275
  onStep: u,
@@ -2279,18 +2280,18 @@ function ga({ className: e }) {
2279
2280
  replaceOpen: c,
2280
2281
  canReplace: s,
2281
2282
  onToggleReplace: () => r.actions.setFindReplace(!c)
2282
- }), c && /* @__PURE__ */ J(_a, {
2283
+ }), c && /* @__PURE__ */ q(_a, {
2283
2284
  editor: i,
2284
2285
  find: a
2285
2286
  })]
2286
2287
  });
2287
2288
  }
2288
2289
  function _a({ editor: e, find: t }) {
2289
- let { t: n } = M(), [r, i] = G("");
2290
- return /* @__PURE__ */ Y("div", {
2290
+ let { t: n } = j(), [r, i] = G("");
2291
+ return /* @__PURE__ */ J("div", {
2291
2292
  className: "flex flex-wrap items-center gap-1.5",
2292
2293
  children: [
2293
- /* @__PURE__ */ J(ze, {
2294
+ /* @__PURE__ */ q(nt, {
2294
2295
  "aria-label": n("material.editor.find.replace", "Replace"),
2295
2296
  placeholder: n("material.editor.find.replace", "Replace"),
2296
2297
  value: r,
@@ -2300,14 +2301,14 @@ function _a({ editor: e, find: t }) {
2300
2301
  },
2301
2302
  className: "h-8 min-w-0 flex-1 basis-40 sm:max-w-64"
2302
2303
  }),
2303
- /* @__PURE__ */ J(j, {
2304
+ /* @__PURE__ */ q(A, {
2304
2305
  variant: "tonal",
2305
2306
  size: "sm",
2306
2307
  disabled: t.total === 0,
2307
2308
  onClick: () => e.commands.replaceCurrent(r),
2308
2309
  children: n("material.editor.find.replace-one", "Replace")
2309
2310
  }),
2310
- /* @__PURE__ */ J(j, {
2311
+ /* @__PURE__ */ q(A, {
2311
2312
  variant: "tonal",
2312
2313
  size: "sm",
2313
2314
  disabled: t.total === 0,
@@ -2320,8 +2321,8 @@ function _a({ editor: e, find: t }) {
2320
2321
  //#endregion
2321
2322
  //#region lib/components/ui/widgets/editor/partials/editor-focus-exit.tsx
2322
2323
  function va({ className: e }) {
2323
- let { t: n } = M(), { chrome: r, handle: i } = k();
2324
- return r.state.focusMode ? /* @__PURE__ */ J(N, {
2324
+ let { t: n } = j(), { chrome: r, handle: i } = O();
2325
+ return r.state.focusMode ? /* @__PURE__ */ q(M, {
2325
2326
  variant: "ghost",
2326
2327
  "data-slot": "editor-focus-exit",
2327
2328
  className: t("size-8 bg-card/80 backdrop-blur", e),
@@ -2329,7 +2330,7 @@ function va({ className: e }) {
2329
2330
  onClick: () => {
2330
2331
  r.actions.setFocusMode(!1), i.focus();
2331
2332
  },
2332
- children: /* @__PURE__ */ J(nn, {})
2333
+ children: /* @__PURE__ */ q(rn, {})
2333
2334
  }) : null;
2334
2335
  }
2335
2336
  //#endregion
@@ -2338,7 +2339,7 @@ var ya = (e) => e.trim() ? e.trim().split(/\s+/).length : 0, ba = (e) => e <= 0
2338
2339
  //#endregion
2339
2340
  //#region lib/components/ui/widgets/editor/core/use-editor-stats.ts
2340
2341
  function xa(e) {
2341
- return P({
2342
+ return N({
2342
2343
  editor: e.editor,
2343
2344
  selector: ({ editor: e }) => {
2344
2345
  let t = e?.storage.characterCount, n = t?.words?.() ?? ya(e?.getText() ?? ""), r = e?.extensionManager.extensions.find((e) => e.name === "characterCount")?.options.limit;
@@ -2359,20 +2360,20 @@ function xa(e) {
2359
2360
  //#endregion
2360
2361
  //#region lib/components/ui/widgets/editor/partials/editor-stats.tsx
2361
2362
  function Sa({ readingTime: e = !0 }) {
2362
- let { t } = M(), { handle: n } = k(), r = xa(n), { words: i } = r;
2363
- return /* @__PURE__ */ Y("p", {
2363
+ let { t } = j(), { handle: n } = O(), r = xa(n), { words: i } = r;
2364
+ return /* @__PURE__ */ J("p", {
2364
2365
  "data-slot": "editor-stats",
2365
2366
  className: "flex flex-wrap gap-x-2",
2366
2367
  children: [
2367
- /* @__PURE__ */ J("span", { children: t("material.editor.footer.words", "{count, plural, one {# word} other {# words}}", { count: i }) }),
2368
- e && /* @__PURE__ */ Y(q, { children: [/* @__PURE__ */ J("span", {
2368
+ /* @__PURE__ */ q("span", { children: t("material.editor.footer.words", "{count, plural, one {# word} other {# words}}", { count: i }) }),
2369
+ e && /* @__PURE__ */ J(K, { children: [/* @__PURE__ */ q("span", {
2369
2370
  "aria-hidden": "true",
2370
2371
  children: "·"
2371
- }), /* @__PURE__ */ J("span", { children: t("material.editor.footer.reading-time", "{minutes, plural, one {# min read} other {# min read}}", { minutes: r.readingMinutes }) })] }),
2372
- r.limit ? /* @__PURE__ */ Y(q, { children: [/* @__PURE__ */ J("span", {
2372
+ }), /* @__PURE__ */ q("span", { children: t("material.editor.footer.reading-time", "{minutes, plural, one {# min read} other {# min read}}", { minutes: r.readingMinutes }) })] }),
2373
+ r.limit ? /* @__PURE__ */ J(K, { children: [/* @__PURE__ */ q("span", {
2373
2374
  "aria-hidden": "true",
2374
2375
  children: "·"
2375
- }), /* @__PURE__ */ J("span", { children: `${r.characters ?? 0}/${r.limit}` })] }) : null
2376
+ }), /* @__PURE__ */ q("span", { children: `${r.characters ?? 0}/${r.limit}` })] }) : null
2376
2377
  ]
2377
2378
  });
2378
2379
  }
@@ -2384,23 +2385,23 @@ var Ca = {
2384
2385
  unsaved: ["material.editor.footer.unsaved", "Unsaved changes"]
2385
2386
  };
2386
2387
  function wa({ className: n, status: r, actions: i, readingTime: a = !0 }) {
2387
- let { t: o } = M(), s = typeof r == "string" && r in Ca, [c, l] = s ? Ca[r] : [];
2388
- return /* @__PURE__ */ Y("div", {
2388
+ let { t: o } = j(), s = typeof r == "string" && r in Ca, [c, l] = s ? Ca[r] : [];
2389
+ return /* @__PURE__ */ J("div", {
2389
2390
  "data-slot": "editor-footer",
2390
2391
  className: t("flex flex-wrap items-center gap-x-3 gap-y-2 text-muted-foreground text-sm", n),
2391
2392
  children: [
2392
- /* @__PURE__ */ J(Sa, { readingTime: a }),
2393
- e(r) ? /* @__PURE__ */ Y(q, { children: [/* @__PURE__ */ J("span", {
2393
+ /* @__PURE__ */ q(Sa, { readingTime: a }),
2394
+ e(r) ? /* @__PURE__ */ J(K, { children: [/* @__PURE__ */ q("span", {
2394
2395
  "aria-hidden": "true",
2395
2396
  children: "·"
2396
- }), /* @__PURE__ */ J("span", {
2397
+ }), /* @__PURE__ */ q("span", {
2397
2398
  "data-slot": "editor-save-status",
2398
2399
  role: "status",
2399
2400
  "aria-live": "polite",
2400
2401
  "data-status": s ? r : void 0,
2401
2402
  children: s && c ? o(c, l) : r
2402
2403
  })] }) : null,
2403
- i && /* @__PURE__ */ J("div", {
2404
+ i && /* @__PURE__ */ q("div", {
2404
2405
  "data-slot": "editor-actions",
2405
2406
  className: "ms-auto flex items-center gap-2",
2406
2407
  children: i
@@ -2433,7 +2434,7 @@ function Ea(e, t) {
2433
2434
  //#region lib/components/ui/widgets/editor/extensions/outline/use-outline.ts
2434
2435
  var Da = 120, Oa = 700, ka = () => window.matchMedia?.("(prefers-reduced-motion: reduce)").matches ?? !1;
2435
2436
  function Aa(e) {
2436
- let t = P({
2437
+ let t = N({
2437
2438
  editor: e,
2438
2439
  selector: ({ editor: e }) => Ta(e.state.doc)
2439
2440
  }), [n, r] = G(0), i = W(0);
@@ -2479,28 +2480,28 @@ var ja = {
2479
2480
  3: "ps-8"
2480
2481
  };
2481
2482
  function Ma({ className: e, onNavigate: t }) {
2482
- let { handle: n } = k();
2483
- return n.editor ? /* @__PURE__ */ J(Na, {
2483
+ let { handle: n } = O();
2484
+ return n.editor ? /* @__PURE__ */ q(Na, {
2484
2485
  editor: n.editor,
2485
2486
  className: e,
2486
2487
  onNavigate: t
2487
2488
  }) : null;
2488
2489
  }
2489
2490
  function Na({ editor: e, className: n, onNavigate: r }) {
2490
- let { t: i } = M(), { items: a, active: o, goTo: s } = Aa(e);
2491
- return /* @__PURE__ */ Y("nav", {
2491
+ let { t: i } = j(), { items: a, active: o, goTo: s } = Aa(e);
2492
+ return /* @__PURE__ */ J("nav", {
2492
2493
  "aria-label": i("material.editor.outline", "Outline"),
2493
2494
  "data-slot": "editor-outline",
2494
2495
  className: t("text-sm", n),
2495
- children: [/* @__PURE__ */ J("p", {
2496
+ children: [/* @__PURE__ */ q("p", {
2496
2497
  className: "mb-2 px-2 font-medium text-muted-foreground text-xs uppercase tracking-wide",
2497
2498
  children: i("material.editor.outline", "Outline")
2498
- }), a.length === 0 ? /* @__PURE__ */ J("p", {
2499
+ }), a.length === 0 ? /* @__PURE__ */ q("p", {
2499
2500
  className: "px-2 text-muted-foreground",
2500
2501
  children: i("material.editor.outline-empty", "No headings yet")
2501
- }) : /* @__PURE__ */ J("ul", {
2502
+ }) : /* @__PURE__ */ q("ul", {
2502
2503
  className: "grid gap-0.5",
2503
- children: a.map((e, n) => /* @__PURE__ */ J("li", { children: /* @__PURE__ */ J("button", {
2504
+ children: a.map((e, n) => /* @__PURE__ */ q("li", { children: /* @__PURE__ */ q("button", {
2504
2505
  type: "button",
2505
2506
  "data-level": e.level,
2506
2507
  "aria-current": n === o ? "location" : void 0,
@@ -2516,18 +2517,18 @@ function Na({ editor: e, className: n, onNavigate: r }) {
2516
2517
  //#endregion
2517
2518
  //#region lib/components/ui/widgets/editor/partials/editor-outline-panel.tsx
2518
2519
  function Pa(e) {
2519
- let { handle: t, chrome: n } = k();
2520
- return t.features.some((e) => e.key === "outline") ? /* @__PURE__ */ J(Ar, {
2520
+ let { handle: t, chrome: n } = O();
2521
+ return t.features.some((e) => e.key === "outline") ? /* @__PURE__ */ q(Ar, {
2521
2522
  id: "outline",
2522
2523
  className: "w-72 max-w-[92vw] p-2",
2523
- children: /* @__PURE__ */ J(Ma, { onNavigate: () => n.actions.closePanel() })
2524
+ children: /* @__PURE__ */ q(Ma, { onNavigate: () => n.actions.closePanel() })
2524
2525
  }) : null;
2525
2526
  }
2526
2527
  //#endregion
2527
2528
  //#region lib/components/ui/widgets/editor/extensions/upload/use-editor-uploads.ts
2528
2529
  var Fa = 0, Ia = 1e6;
2529
2530
  function La(e) {
2530
- let t = v(e.editor)?.queue, n = K(V((e) => t?.subscribe(e) ?? (() => {}), [t]), () => {
2531
+ let t = _(e.editor)?.queue, n = jt(V((e) => t?.subscribe(e) ?? (() => {}), [t]), () => {
2531
2532
  if (!t) return Fa;
2532
2533
  let e = t.list(), n = e.filter((e) => e.status === "error").length;
2533
2534
  return (e.length - n) * Ia + n;
@@ -2571,10 +2572,10 @@ function Va(e) {
2571
2572
  //#endregion
2572
2573
  //#region lib/components/ui/widgets/editor/extensions/assistant/assistant-button.tsx
2573
2574
  function Ha({ editor: e }) {
2574
- let { t } = M(), { chrome: n } = k(), r = ir(e), i = n.state.panel === "assistant";
2575
+ let { t } = j(), { chrome: n } = O(), r = ir(e), i = n.state.panel === "assistant";
2575
2576
  if (!r || !e.isEditable) return null;
2576
2577
  let a = t("material.editor.assistant.title", "Assistant");
2577
- return /* @__PURE__ */ J(d, {
2578
+ return /* @__PURE__ */ q(d, {
2578
2579
  "data-slot": "editor-assistant-button",
2579
2580
  variant: i ? "filled" : "tonal",
2580
2581
  "aria-label": a,
@@ -2583,7 +2584,7 @@ function Ha({ editor: e }) {
2583
2584
  tooltip: a,
2584
2585
  onMouseDown: (e) => e.preventDefault(),
2585
2586
  onClick: () => i ? r.close() : r.open(),
2586
- children: /* @__PURE__ */ J(fn, {})
2587
+ children: /* @__PURE__ */ q(pn, {})
2587
2588
  });
2588
2589
  }
2589
2590
  //#endregion
@@ -2714,7 +2715,7 @@ async function no(e) {
2714
2715
  //#region lib/components/ui/widgets/editor/extensions/assistant/assistant-controller.ts
2715
2716
  var ro = class {
2716
2717
  host;
2717
- store = ft(nr);
2718
+ store = ft(Y);
2718
2719
  abort = null;
2719
2720
  token = 0;
2720
2721
  panel = null;
@@ -2743,7 +2744,7 @@ var ro = class {
2743
2744
  this.cancel();
2744
2745
  let e = this.host.range();
2745
2746
  this.store.replace({
2746
- ...nr,
2747
+ ...Y,
2747
2748
  phase: "menu",
2748
2749
  range: e,
2749
2750
  hasSelection: e.from !== e.to
@@ -2831,14 +2832,14 @@ var ro = class {
2831
2832
  }));
2832
2833
  };
2833
2834
  reset = () => {
2834
- this.cancel(), this.store.replace(nr);
2835
+ this.cancel(), this.store.replace(Y);
2835
2836
  };
2836
2837
  close = () => {
2837
2838
  this.reset(), this.host.closePanel();
2838
2839
  };
2839
2840
  mapRange = (e) => {
2840
2841
  if (this.state.phase === "idle") return;
2841
- let t = tr(this.state, e);
2842
+ let t = nr(this.state, e);
2842
2843
  t && this.set(t);
2843
2844
  };
2844
2845
  }, io = (e) => new ro(e), ao = Xa * 3;
@@ -2846,7 +2847,7 @@ async function oo(e, t, n) {
2846
2847
  if (n <= t) return "";
2847
2848
  let { doc: r } = e.state;
2848
2849
  try {
2849
- return (await gt(r.cut(t, n).toJSON(), { extensions: Sn(e) })).replace(/\s+$/, "");
2850
+ return (await gt(r.cut(t, n).toJSON(), { extensions: Cn(e) })).replace(/\s+$/, "");
2850
2851
  } catch {
2851
2852
  return r.textBetween(t, n, "\n\n");
2852
2853
  }
@@ -2868,7 +2869,7 @@ async function so(e, t) {
2868
2869
  }
2869
2870
  //#endregion
2870
2871
  //#region lib/components/ui/widgets/editor/extensions/assistant/assistant-extension.ts
2871
- var co = R.create({
2872
+ var co = L.create({
2872
2873
  name: "assistant",
2873
2874
  addStorage: () => ({}),
2874
2875
  onBeforeCreate() {
@@ -2890,14 +2891,14 @@ var co = R.create({
2890
2891
  n.follow = qa(e, () => r.getState().phase === "idle" ? null : r.getState().range, r.subscribe);
2891
2892
  },
2892
2893
  addProseMirrorPlugins() {
2893
- let e = new lt("assistantRange"), t = () => this.storage.controller;
2894
- return [new F({
2894
+ let e = new z("assistantRange"), t = () => this.storage.controller;
2895
+ return [new P({
2895
2896
  key: e,
2896
2897
  props: { decorations: (e) => {
2897
2898
  let n = t()?.getState();
2898
2899
  if (!n || n.phase === "idle" || !n.hasSelection) return null;
2899
2900
  let { from: r, to: i } = n.range;
2900
- return r >= i || i > e.doc.content.size ? null : I.create(e.doc, [L.inline(r, i, { class: "nxgt-assistant-range" })]);
2901
+ return r >= i || i > e.doc.content.size ? null : F.create(e.doc, [I.inline(r, i, { class: "nxgt-assistant-range" })]);
2901
2902
  } },
2902
2903
  view: (n) => {
2903
2904
  let r = () => {
@@ -2919,7 +2920,7 @@ var co = R.create({
2919
2920
  this.storage.controller?.reset();
2920
2921
  }
2921
2922
  }), lo = ({ editor: e, chrome: t }) => {
2922
- let n = er(e)?.controller;
2923
+ let n = tr(e)?.controller;
2923
2924
  return n ? t.state.panel === "assistant" ? (n.focusPanel(), !0) : (n.open(), !0) : !1;
2924
2925
  }, uo = {
2925
2926
  id: "assistant",
@@ -2933,8 +2934,8 @@ var co = R.create({
2933
2934
  "continue"
2934
2935
  ],
2935
2936
  group: "Insert",
2936
- icon: fn,
2937
- run: ({ editor: e, range: t }) => (e.chain().focus().deleteRange(t).run(), er(e)?.controller.open(), !0)
2937
+ icon: pn,
2938
+ run: ({ editor: e, range: t }) => (e.chain().focus().deleteRange(t).run(), tr(e)?.controller.open(), !0)
2938
2939
  }, fo = (e = {}) => {
2939
2940
  let { onAssist: t, actions: n, allowMedia: r } = e;
2940
2941
  return B(t ? {
@@ -2984,10 +2985,10 @@ function po(e, t) {
2984
2985
  //#endregion
2985
2986
  //#region lib/components/ui/widgets/editor/extensions/comments/comments-buttons.tsx
2986
2987
  function mo({ editor: e }) {
2987
- let { t } = M(), n = Sr(e);
2988
+ let { t } = j(), n = Sr(e);
2988
2989
  if (!n) return null;
2989
2990
  let r = t("material.editor.comments.comment", "Comment");
2990
- return /* @__PURE__ */ J(d, {
2991
+ return /* @__PURE__ */ q(d, {
2991
2992
  "data-slot": "editor-comment-button",
2992
2993
  variant: "ghost",
2993
2994
  "aria-label": r,
@@ -2995,14 +2996,14 @@ function mo({ editor: e }) {
2995
2996
  tooltip: r,
2996
2997
  onMouseDown: (e) => e.preventDefault(),
2997
2998
  onClick: () => n.startComposer(),
2998
- children: /* @__PURE__ */ J(tn, {})
2999
+ children: /* @__PURE__ */ q(nn, {})
2999
3000
  });
3000
3001
  }
3001
3002
  function ho({ editor: e }) {
3002
- let { t } = M(), { chrome: n } = k(), r = Cr(e);
3003
+ let { t } = j(), { chrome: n } = O(), r = Cr(e);
3003
3004
  if (!X(e)) return null;
3004
3005
  let i = n.state.panel === "comments", a = mi(r).length, o = t("material.editor.comments.count", "Comments ({count})", { count: a });
3005
- return /* @__PURE__ */ J(d, {
3006
+ return /* @__PURE__ */ q(d, {
3006
3007
  "data-slot": "editor-comments-button",
3007
3008
  variant: i ? "filled" : "ghost",
3008
3009
  "aria-label": o,
@@ -3012,7 +3013,7 @@ function ho({ editor: e }) {
3012
3013
  onClick: (t) => {
3013
3014
  n.actions.togglePanel("comments"), i && po(t, e);
3014
3015
  },
3015
- children: /* @__PURE__ */ J(en, {})
3016
+ children: /* @__PURE__ */ q(tn, {})
3016
3017
  });
3017
3018
  }
3018
3019
  function go(e) {
@@ -3048,11 +3049,11 @@ function xo(e, t) {
3048
3049
  let o = a.attrs.threadId, s = n.get(o);
3049
3050
  if (s === void 0 || s && !t.showResolved) continue;
3050
3051
  let c = [yo];
3051
- s && c.push(`${yo}-resolved`), o === t.activeId && c.push(`${yo}-active`), r.push(L.inline(i, i + e.nodeSize, { class: c.join(" ") }));
3052
+ s && c.push(`${yo}-resolved`), o === t.activeId && c.push(`${yo}-active`), r.push(I.inline(i, i + e.nodeSize, { class: c.join(" ") }));
3052
3053
  }
3053
3054
  });
3054
3055
  let i = t.composer?.range;
3055
- return i && i.from < i.to && i.to <= e.content.size && r.push(L.inline(i.from, i.to, { class: `${yo} ${yo}-active` })), I.create(e, r);
3056
+ return i && i.from < i.to && i.to <= e.content.size && r.push(I.inline(i.from, i.to, { class: `${yo} ${yo}-active` })), F.create(e, r);
3056
3057
  }
3057
3058
  //#endregion
3058
3059
  //#region lib/components/ui/widgets/editor/extensions/comments/strip-comment-marks.ts
@@ -3063,15 +3064,15 @@ var So = (e) => {
3063
3064
  let n = e.marks.filter((e) => e.type.name !== "comment");
3064
3065
  t.push(n.length === e.marks.length ? e : e.mark(n));
3065
3066
  } else t.push(e.copy(So(e.content)));
3066
- }), it.fromArray(t);
3067
- }, Co = (e) => new at(So(e.content), e.openStart, e.openEnd), wo = (e) => e?.dragging?.move === !0, To = (e, t) => wo(t) ? e : Co(e), Eo = new lt("comments"), Do = (e, t) => {
3067
+ }), at.fromArray(t);
3068
+ }, Co = (e) => new ot(So(e.content), e.openStart, e.openEnd), wo = (e) => e?.dragging?.move === !0, To = (e, t) => wo(t) ? e : Co(e), Eo = new z("comments"), Do = (e, t) => {
3068
3069
  let n = [];
3069
3070
  for (let r = e; r && r !== t; r = r.parentElement) {
3070
3071
  let e = r.getAttribute?.("data-comment-thread");
3071
3072
  e && n.push(e);
3072
3073
  }
3073
3074
  return n;
3074
- }, Oo = R.create({
3075
+ }, Oo = L.create({
3075
3076
  name: "comments",
3076
3077
  addExtensions: () => [xt],
3077
3078
  addStorage: () => ({}),
@@ -3110,7 +3111,7 @@ var So = (e) => {
3110
3111
  },
3111
3112
  addProseMirrorPlugins() {
3112
3113
  let e = () => this.storage.controller, t = null;
3113
- return [new F({
3114
+ return [new P({
3114
3115
  key: Eo,
3115
3116
  props: {
3116
3117
  transformPasted: To,
@@ -3185,7 +3186,7 @@ var So = (e) => {
3185
3186
  name: "comments",
3186
3187
  extensions: () => [xt],
3187
3188
  markdown: "native"
3188
- }), No = R.create({
3189
+ }), No = L.create({
3189
3190
  name: "nxgtBlockKeys",
3190
3191
  addKeyboardShortcuts() {
3191
3192
  let e = (e) => () => {
@@ -3210,18 +3211,18 @@ var So = (e) => {
3210
3211
  //#endregion
3211
3212
  //#region lib/components/ui/widgets/editor/extensions/find/find-button.tsx
3212
3213
  function Fo({ editor: e }) {
3213
- let { t } = M(), { chrome: n } = k(), r = n.state.panel === "find";
3214
- return /* @__PURE__ */ J(d, {
3214
+ let { t } = j(), { chrome: n } = O(), r = n.state.panel === "find";
3215
+ return /* @__PURE__ */ q(d, {
3215
3216
  variant: r ? "filled" : "ghost",
3216
3217
  "aria-pressed": r,
3217
3218
  tooltip: t("material.editor.find.title", "Find and replace"),
3218
3219
  onClick: () => r ? n.actions.closePanel() : n.actions.openFind({ replace: !1 }),
3219
- children: /* @__PURE__ */ J(un, {})
3220
+ children: /* @__PURE__ */ q(dn, {})
3220
3221
  });
3221
3222
  }
3222
3223
  //#endregion
3223
3224
  //#region lib/components/ui/widgets/editor/extensions/find/find-plugin.ts
3224
- var Io = () => new F({
3225
+ var Io = () => new P({
3225
3226
  key: Z,
3226
3227
  state: {
3227
3228
  init: ca,
@@ -3236,7 +3237,7 @@ var Io = () => new F({
3236
3237
  props: { decorations: (e) => Z.getState(e)?.decorations }
3237
3238
  }), Lo = () => {
3238
3239
  let e;
3239
- return new F({ props: { decorations(t) {
3240
+ return new P({ props: { decorations(t) {
3240
3241
  let n = Z.getState(t);
3241
3242
  if (!n) return;
3242
3243
  if (e?.state === n && e.doc === t.doc) return e.set;
@@ -3247,7 +3248,7 @@ var Io = () => new F({
3247
3248
  set: r
3248
3249
  }, r;
3249
3250
  } } });
3250
- }, Ro = R.create({
3251
+ }, Ro = L.create({
3251
3252
  name: "nxgtFind",
3252
3253
  addProseMirrorPlugins() {
3253
3254
  return [Io(), Lo()];
@@ -3258,7 +3259,7 @@ var Io = () => new F({
3258
3259
  findStep: (e) => ({ state: t, tr: n, dispatch: r }) => {
3259
3260
  let { matches: i, current: a } = fa(t), o = ra(i.length, a, e), s = i[o];
3260
3261
  if (!s) return !1;
3261
- let c = z.create(n.doc, s.from, s.to);
3262
+ let c = R.create(n.doc, s.from, s.to);
3262
3263
  return r?.(n.setSelection(c).scrollIntoView().setMeta(Z, { current: o })), !0;
3263
3264
  },
3264
3265
  replaceCurrent: (e) => ({ editor: t, state: n, tr: r, dispatch: i }) => {
@@ -3267,7 +3268,7 @@ var Io = () => new F({
3267
3268
  if (!s) return !1;
3268
3269
  r.insertText(e, s.from, s.to);
3269
3270
  let c = s.from + e.length;
3270
- return r.setSelection(z.create(r.doc, c)).scrollIntoView(), i?.(r), !0;
3271
+ return r.setSelection(R.create(r.doc, c)).scrollIntoView(), i?.(r), !0;
3271
3272
  },
3272
3273
  replaceAll: (e) => ({ editor: t, state: n, tr: r, dispatch: i }) => {
3273
3274
  if (!t.isEditable) return !1;
@@ -3309,15 +3310,15 @@ var Io = () => new F({
3309
3310
  //#endregion
3310
3311
  //#region lib/components/ui/widgets/editor/extensions/focus-mode/focus-mode-button.tsx
3311
3312
  function Vo({ editor: e }) {
3312
- let { t } = M(), { chrome: n } = k(), r = n.state.focusMode;
3313
- return /* @__PURE__ */ J(d, {
3313
+ let { t } = j(), { chrome: n } = O(), r = n.state.focusMode;
3314
+ return /* @__PURE__ */ q(d, {
3314
3315
  variant: r ? "filled" : "ghost",
3315
3316
  "aria-pressed": r,
3316
3317
  tooltip: t("material.editor.focus-mode", "Focus mode"),
3317
3318
  onClick: () => {
3318
3319
  n.actions.toggleFocusMode(), e.commands.focus();
3319
3320
  },
3320
- children: /* @__PURE__ */ J(Gt, {})
3321
+ children: /* @__PURE__ */ q(Kt, {})
3321
3322
  });
3322
3323
  }
3323
3324
  //#endregion
@@ -3342,20 +3343,20 @@ var Ho = () => B({
3342
3343
  //#endregion
3343
3344
  //#region lib/components/ui/widgets/editor/extensions/marks/inline-code-button.tsx
3344
3345
  function Uo({ editor: e }) {
3345
- let { t } = M(), n = P({
3346
+ let { t } = j(), n = N({
3346
3347
  editor: e,
3347
3348
  selector: (e) => ({
3348
3349
  isCode: e.editor.isActive("code") ?? !1,
3349
3350
  canCode: e.editor.can().chain().toggleCode().run() ?? !1
3350
3351
  })
3351
3352
  });
3352
- return /* @__PURE__ */ J(d, {
3353
+ return /* @__PURE__ */ q(d, {
3353
3354
  variant: n.isCode ? "filled" : "ghost",
3354
3355
  "aria-pressed": n.isCode,
3355
3356
  tooltip: t("material.editor.code", "Inline code"),
3356
3357
  onClick: () => e.chain().focus().toggleCode().run(),
3357
3358
  disabled: !n.canCode,
3358
- children: /* @__PURE__ */ J(Vt, {})
3359
+ children: /* @__PURE__ */ q(Ht, {})
3359
3360
  });
3360
3361
  }
3361
3362
  //#endregion
@@ -3379,12 +3380,12 @@ var Wo = () => B({
3379
3380
  }],
3380
3381
  requires: ["marks"],
3381
3382
  markdown: "native"
3382
- }), Go = R.create({
3383
+ }), Go = L.create({
3383
3384
  name: "markdownPaste",
3384
3385
  addProseMirrorPlugins() {
3385
3386
  let { editor: e } = this, t = !1;
3386
- return [new F({
3387
- key: new lt("markdownPaste"),
3387
+ return [new P({
3388
+ key: new z("markdownPaste"),
3388
3389
  props: {
3389
3390
  handleKeyDown: (e, n) => (t = n.shiftKey && (n.metaKey || n.ctrlKey) && n.key.toLowerCase() === "v", !1),
3390
3391
  handleDOMEvents: { keyup: () => (t = !1, !1) },
@@ -3415,15 +3416,15 @@ var Wo = () => B({
3415
3416
  //#endregion
3416
3417
  //#region lib/components/ui/widgets/editor/extensions/outline/outline-button.tsx
3417
3418
  function Jo({ editor: e }) {
3418
- let { t } = M(), { chrome: n } = k(), r = n.state.panel === "outline";
3419
- return /* @__PURE__ */ J(d, {
3419
+ let { t } = j(), { chrome: n } = O(), r = n.state.panel === "outline";
3420
+ return /* @__PURE__ */ q(d, {
3420
3421
  variant: r ? "filled" : "ghost",
3421
3422
  "aria-pressed": r,
3422
3423
  tooltip: t("material.editor.outline", "Outline"),
3423
3424
  onClick: (t) => {
3424
3425
  n.actions.togglePanel("outline"), r && po(t, e);
3425
3426
  },
3426
- children: /* @__PURE__ */ J(hn, {})
3427
+ children: /* @__PURE__ */ q(gn, {})
3427
3428
  });
3428
3429
  }
3429
3430
  //#endregion
@@ -3443,37 +3444,37 @@ var Yo = () => B({
3443
3444
  //#endregion
3444
3445
  //#region lib/components/ui/widgets/editor/extensions/upload/image-alt-button.tsx
3445
3446
  function Xo({ editor: e }) {
3446
- let { t } = M(), n = P({
3447
+ let { t } = j(), n = N({
3447
3448
  editor: e,
3448
3449
  selector: (e) => e.editor.getAttributes("image").alt ?? ""
3449
- }), [r, i] = G(""), [o, s] = G(!1), { trigger: c, onCloseAutoFocus: l } = le(), u = t("material.editor.upload.alt", "Alt text");
3450
- return /* @__PURE__ */ Y(ve, {
3451
- open: o,
3450
+ }), [r, i] = G(""), [a, o] = G(!1), { trigger: s, onCloseAutoFocus: c } = le(), l = t("material.editor.upload.alt", "Alt text");
3451
+ return /* @__PURE__ */ J(ze, {
3452
+ open: a,
3452
3453
  onOpenChange: (e) => {
3453
- s(e), e && i(n);
3454
+ o(e), e && i(n);
3454
3455
  },
3455
- children: [/* @__PURE__ */ J(a, {
3456
+ children: [/* @__PURE__ */ q(Le, {
3456
3457
  asChild: !0,
3457
- ref: c,
3458
- children: /* @__PURE__ */ J(d, {
3458
+ ref: s,
3459
+ children: /* @__PURE__ */ q(d, {
3459
3460
  variant: "ghost",
3460
- tooltip: u,
3461
- "aria-label": u,
3461
+ tooltip: l,
3462
+ "aria-label": l,
3462
3463
  className: "rounded size-7",
3463
3464
  more: { kind: "dialog" },
3464
- children: /* @__PURE__ */ J(gn, {})
3465
+ children: /* @__PURE__ */ q(_n, {})
3465
3466
  })
3466
- }), /* @__PURE__ */ Y(_e, {
3467
+ }), /* @__PURE__ */ J(Re, {
3467
3468
  className: "flex size-max flex-col gap-2 p-2",
3468
- onCloseAutoFocus: l,
3469
- children: [/* @__PURE__ */ J(nt, {
3469
+ onCloseAutoFocus: c,
3470
+ children: [/* @__PURE__ */ q(rt, {
3470
3471
  value: r,
3471
3472
  label: t("material.editor.upload.alt-label", "Describe the image"),
3472
3473
  onChange: (e) => i(e.target.value)
3473
- }), /* @__PURE__ */ J(j, {
3474
+ }), /* @__PURE__ */ q(A, {
3474
3475
  variant: "tonal",
3475
3476
  onClick: () => {
3476
- e.chain().focus().updateAttributes("image", { alt: r }).run(), s(!1);
3477
+ e.chain().focus().updateAttributes("image", { alt: r }).run(), o(!1);
3477
3478
  },
3478
3479
  children: t("material.editor.upload.alt-apply", "Apply")
3479
3480
  })]
@@ -3516,7 +3517,7 @@ function os() {
3516
3517
  }
3517
3518
  //#endregion
3518
3519
  //#region lib/components/ui/widgets/editor/extensions/upload/upload-widgets.ts
3519
- var ss = /* @__PURE__ */ new WeakMap(), cs = (e, t) => L.widget(e, () => {
3520
+ var ss = /* @__PURE__ */ new WeakMap(), cs = (e, t) => I.widget(e, () => {
3520
3521
  let { element: e, destroy: n } = t.build(t.id);
3521
3522
  return ss.set(e, n), e;
3522
3523
  }, {
@@ -3530,9 +3531,9 @@ var ss = /* @__PURE__ */ new WeakMap(), cs = (e, t) => L.widget(e, () => {
3530
3531
  destroy: (e) => ss.get(e)?.()
3531
3532
  }), ls = {
3532
3533
  cards: [],
3533
- decorations: I.empty,
3534
+ decorations: F.empty,
3534
3535
  orphaned: []
3535
- }, us = (e, t) => t.length ? I.create(e, t.map((e) => cs(e.pos, e))) : I.empty, ds = (e) => e.steps.some((t, n) => t instanceof st && t.from === 0 && t.to === e.docs[n].content.size), fs = (e) => {
3536
+ }, us = (e, t) => t.length ? F.create(e, t.map((e) => cs(e.pos, e))) : F.empty, ds = (e) => e.steps.some((t, n) => t instanceof ct && t.from === 0 && t.to === e.docs[n].content.size), fs = (e) => {
3536
3537
  let t = !1;
3537
3538
  return e.content.descendants((e) => ((e.isText || e.isLeaf) && (t = !0), !t)), t;
3538
3539
  };
@@ -3624,12 +3625,12 @@ function _s(e, t) {
3624
3625
  }
3625
3626
  function vs(e, t) {
3626
3627
  if (e.isDestroyed) return;
3627
- let { doc: n } = e.state, r = n.resolve(Math.max(0, Math.min(t, n.content.size))), i = ct.findFrom(r, 1, !0) ?? ct.findFrom(r, -1, !0) ?? ct.near(r, -1);
3628
+ let { doc: n } = e.state, r = n.resolve(Math.max(0, Math.min(t, n.content.size))), i = lt.findFrom(r, 1, !0) ?? lt.findFrom(r, -1, !0) ?? lt.near(r, -1);
3628
3629
  e.view.dispatch(e.state.tr.setSelection(i)), e.commands.focus();
3629
3630
  }
3630
3631
  //#endregion
3631
3632
  //#region lib/components/ui/widgets/editor/extensions/upload/upload-plugin.ts
3632
- var $ = new lt("upload");
3633
+ var $ = new z("upload");
3633
3634
  function ys(e, t) {
3634
3635
  let n = e.doc.resolve(Math.min(t ?? e.selection.to, e.doc.content.size)), r = n.parent;
3635
3636
  return !r.isTextblock || n.depth === 0 ? {
@@ -3654,7 +3655,7 @@ var bs = (e, t) => {
3654
3655
  end: t
3655
3656
  } });
3656
3657
  function ws({ onFiles: e, onOrphans: t }) {
3657
- return new F({
3658
+ return new P({
3658
3659
  key: $,
3659
3660
  state: {
3660
3661
  init: () => ls,
@@ -3746,7 +3747,7 @@ function Fs(e, t, n, r) {
3746
3747
  if (!a) return;
3747
3748
  let o = _s(e, t), s = a.from;
3748
3749
  try {
3749
- let o = e.schema.nodeFromJSON(Ns(e, n, r)), c = i.doc.nodeAt(a.from), l = a.spec.replaceEmpty && Ps(c), u = l ? a.from : ot(i.doc, a.from, o.type) ?? ms(i.doc, a.from), d = l ? u + (c?.nodeSize ?? 0) : u, f = i.tr.replaceWith(u, d, o);
3750
+ let o = e.schema.nodeFromJSON(Ns(e, n, r)), c = i.doc.nodeAt(a.from), l = a.spec.replaceEmpty && Ps(c), u = l ? a.from : st(i.doc, a.from, o.type) ?? ms(i.doc, a.from), d = l ? u + (c?.nodeSize ?? 0) : u, f = i.tr.replaceWith(u, d, o);
3750
3751
  s = f.mapping.map(d, 1), e.view.dispatch(f.setMeta($, Cs(t, s)));
3751
3752
  } catch {
3752
3753
  e.view.dispatch(i.tr.setMeta($, Ss(t)));
@@ -3771,36 +3772,36 @@ function Ls({ accept: e, multiple: t, label: n }, r) {
3771
3772
  //#endregion
3772
3773
  //#region lib/components/ui/widgets/editor/extensions/upload/upload-actions.tsx
3773
3774
  function Rs({ id: e, name: t, failed: n, retryable: r, storage: i }) {
3774
- let { t: a } = M(), o = n ? a("material.editor.upload.remove", "Remove {name}", { name: t }) : a("material.editor.upload.cancel", "Cancel upload of {name}", { name: t });
3775
- return /* @__PURE__ */ Y("div", {
3775
+ let { t: a } = j(), o = n ? a("material.editor.upload.remove", "Remove {name}", { name: t }) : a("material.editor.upload.cancel", "Cancel upload of {name}", { name: t });
3776
+ return /* @__PURE__ */ J("div", {
3776
3777
  className: "ms-auto flex shrink-0 items-center gap-1",
3777
- children: [n && r && /* @__PURE__ */ Y(j, {
3778
+ children: [n && r && /* @__PURE__ */ J(A, {
3778
3779
  variant: "tonal",
3779
3780
  size: "sm",
3780
3781
  onClick: () => i.retry(e),
3781
- children: [/* @__PURE__ */ J(ln, {}), a("material.editor.upload.retry", "Retry")]
3782
- }), /* @__PURE__ */ J(N, {
3782
+ children: [/* @__PURE__ */ q(un, {}), a("material.editor.upload.retry", "Retry")]
3783
+ }), /* @__PURE__ */ q(M, {
3783
3784
  variant: "ghost",
3784
3785
  tooltip: o,
3785
3786
  "aria-label": o,
3786
3787
  onClick: () => i.cancel(e),
3787
- children: J(n ? vn : xn, {})
3788
+ children: q(n ? yn : Sn, {})
3788
3789
  })]
3789
3790
  });
3790
3791
  }
3791
3792
  //#endregion
3792
3793
  //#region lib/components/ui/widgets/editor/extensions/upload/upload-thumb.tsx
3793
3794
  function zs({ previewUrl: e, busy: n }) {
3794
- return /* @__PURE__ */ Y("div", {
3795
+ return /* @__PURE__ */ J("div", {
3795
3796
  className: "relative grid size-12 shrink-0 place-items-center overflow-hidden rounded-md bg-muted text-muted-foreground",
3796
- children: [e ? /* @__PURE__ */ J("img", {
3797
+ children: [e ? /* @__PURE__ */ q("img", {
3797
3798
  src: e,
3798
3799
  alt: "",
3799
3800
  className: t("size-full object-cover", n && "opacity-50")
3800
- }) : /* @__PURE__ */ J(Wt, {
3801
+ }) : /* @__PURE__ */ q(Gt, {
3801
3802
  "aria-hidden": "true",
3802
3803
  className: "size-5"
3803
- }), n && /* @__PURE__ */ J(Ee, {
3804
+ }), n && /* @__PURE__ */ q(Te, {
3804
3805
  "aria-hidden": "true",
3805
3806
  "aria-label": void 0,
3806
3807
  contained: !0,
@@ -3819,10 +3820,10 @@ function Bs(e, t, n) {
3819
3820
  }
3820
3821
  }
3821
3822
  function Vs({ id: e, storage: n, maxSize: r }) {
3822
- let { t: i } = M(), { queue: a } = n, o = K(a.subscribe, () => a.get(e), () => void 0);
3823
+ let { t: i } = j(), { queue: a } = n, o = jt(a.subscribe, () => a.get(e), () => void 0);
3823
3824
  if (!o) return null;
3824
3825
  let s = o.file.name, c = o.status === "error";
3825
- return /* @__PURE__ */ Y("div", {
3826
+ return /* @__PURE__ */ J("div", {
3826
3827
  "data-slot": "editor-upload",
3827
3828
  "data-upload-id": e,
3828
3829
  "data-status": o.status,
@@ -3831,26 +3832,26 @@ function Vs({ id: e, storage: n, maxSize: r }) {
3831
3832
  contentEditable: !1,
3832
3833
  className: t("not-prose my-3 flex flex-wrap items-center gap-x-3 gap-y-2 rounded-lg border bg-card p-2.5 text-card-foreground shadow-xs", c && "border-error/60 bg-error/5"),
3833
3834
  children: [
3834
- /* @__PURE__ */ J(zs, {
3835
+ /* @__PURE__ */ q(zs, {
3835
3836
  previewUrl: o.previewUrl,
3836
3837
  busy: !c
3837
3838
  }),
3838
- /* @__PURE__ */ Y("div", {
3839
+ /* @__PURE__ */ J("div", {
3839
3840
  className: "min-w-32 flex-1 basis-32",
3840
- children: [/* @__PURE__ */ J("div", {
3841
+ children: [/* @__PURE__ */ q("div", {
3841
3842
  className: "truncate text-sm font-medium",
3842
3843
  children: s
3843
- }), c ? /* @__PURE__ */ J("div", {
3844
+ }), c ? /* @__PURE__ */ q("div", {
3844
3845
  role: "alert",
3845
3846
  className: "text-xs text-error-text",
3846
3847
  children: Bs(i, o.failure, r)
3847
- }) : /* @__PURE__ */ J(T, {
3848
+ }) : /* @__PURE__ */ q(te, {
3848
3849
  value: o.progress === void 0 ? null : o.progress * 100,
3849
3850
  "aria-label": i("material.editor.upload.uploading", "Uploading {name}", { name: s }),
3850
3851
  className: "mt-1.5"
3851
3852
  })]
3852
3853
  }),
3853
- /* @__PURE__ */ J(Rs, {
3854
+ /* @__PURE__ */ q(Rs, {
3854
3855
  id: e,
3855
3856
  name: s,
3856
3857
  failed: c,
@@ -4059,7 +4060,7 @@ function Zs(e) {
4059
4060
  }
4060
4061
  //#endregion
4061
4062
  //#region lib/components/ui/widgets/editor/extensions/upload/upload-extension.ts
4062
- var Qs = /* @__PURE__ */ new WeakMap(), $s = R.create({
4063
+ var Qs = /* @__PURE__ */ new WeakMap(), $s = L.create({
4063
4064
  name: "upload",
4064
4065
  addStorage: () => ({}),
4065
4066
  onBeforeCreate() {
@@ -4118,15 +4119,15 @@ var Qs = /* @__PURE__ */ new WeakMap(), $s = R.create({
4118
4119
  order: 61,
4119
4120
  priority: 30,
4120
4121
  kind: "panel",
4121
- when: (e) => !!v(e)?.ownsImage,
4122
- render: ae
4122
+ when: (e) => !!_(e)?.ownsImage,
4123
+ render: oe
4123
4124
  }],
4124
4125
  bubble: [{
4125
4126
  id: "image-alt",
4126
4127
  order: 35,
4127
4128
  priority: 60,
4128
4129
  kind: "panel",
4129
- when: (e) => !!v(e) && e.isActive("image"),
4130
+ when: (e) => !!_(e) && e.isActive("image"),
4130
4131
  render: Xo
4131
4132
  }],
4132
4133
  slash: f("image"),
@@ -4137,91 +4138,91 @@ var Qs = /* @__PURE__ */ new WeakMap(), $s = R.create({
4137
4138
  markdown: "native"
4138
4139
  });
4139
4140
  }, tc = {
4140
- accordion: x,
4141
- actionCard: Se,
4141
+ accordion: b,
4142
+ actionCard: xe,
4142
4143
  assistant: fo,
4143
- blocks: C,
4144
+ blocks: S,
4144
4145
  callout: s,
4145
- checkboxGroup: te,
4146
- codeBlock: Le,
4147
- color: Ne,
4146
+ checkboxGroup: re,
4147
+ codeBlock: Pe,
4148
+ color: je,
4148
4149
  comments: Mo,
4149
4150
  count: ue,
4150
4151
  dragHandle: Po,
4151
4152
  emoji: pe,
4152
4153
  find: Bo,
4153
4154
  focusMode: Ho,
4154
- fontFamily: je,
4155
+ fontFamily: ke,
4155
4156
  gallery: he,
4156
4157
  headings: n,
4157
- highlight: ee,
4158
- image: oe,
4158
+ highlight: C,
4159
+ image: se,
4159
4160
  inlineCode: Wo,
4160
4161
  link: p,
4161
- lists: De,
4162
+ lists: Ee,
4162
4163
  markdownPaste: qo,
4163
- marks: re,
4164
- mention: Re,
4164
+ marks: ie,
4165
+ mention: Fe,
4165
4166
  outline: Yo,
4166
- placeholder: E,
4167
- radioGroup: b,
4168
- selectCard: y,
4169
- selectChip: be,
4167
+ placeholder: w,
4168
+ radioGroup: y,
4169
+ selectCard: v,
4170
+ selectChip: ye,
4170
4171
  slash: r,
4171
- table: xe,
4172
- textAlign: S,
4172
+ table: be,
4173
+ textAlign: x,
4173
4174
  upload: ec,
4174
4175
  youtube: o
4175
4176
  }, nc = (...e) => (t) => [...t, ...e], rc = (...e) => (t) => t.filter((t) => !e.includes(t.key ?? t.name)), ic = () => [
4176
- Se(),
4177
- be(),
4178
- y(),
4179
- te(),
4180
- b()
4177
+ xe(),
4178
+ ye(),
4179
+ v(),
4180
+ re(),
4181
+ y()
4181
4182
  ], ac = () => [
4182
4183
  s(),
4183
- x(),
4184
+ b(),
4184
4185
  he(),
4185
4186
  r(),
4186
- Ne(),
4187
4187
  je(),
4188
- re(),
4188
+ ke(),
4189
+ ie(),
4189
4190
  n(),
4190
- C(),
4191
- p(),
4192
- ee(),
4193
4191
  S(),
4194
- E(),
4192
+ p(),
4193
+ C(),
4194
+ x(),
4195
+ w(),
4195
4196
  ue(),
4196
4197
  qo(),
4197
- De(),
4198
- oe(),
4198
+ Ee(),
4199
+ se(),
4199
4200
  ec(),
4200
4201
  o(),
4201
4202
  pe({ suggest: !0 }),
4202
- xe(),
4203
- Le(),
4203
+ be(),
4204
+ Pe(),
4204
4205
  Bo(),
4205
4206
  Ho(),
4206
4207
  Po(),
4207
4208
  Mo()
4208
4209
  ], oc = () => [
4209
- re({ compact: !0 }),
4210
+ ie({ compact: !0 }),
4210
4211
  Wo(),
4211
4212
  p(),
4212
- E(),
4213
+ w(),
4213
4214
  ue(),
4214
4215
  qo(),
4215
- De(),
4216
+ Ee(),
4216
4217
  ec()
4217
4218
  ], sc = () => [
4218
- re({ compact: !0 }),
4219
+ ie({ compact: !0 }),
4219
4220
  Wo(),
4220
4221
  p(),
4221
- E(),
4222
+ w(),
4222
4223
  ue(),
4223
4224
  pe({ suggest: !0 }),
4224
- Re()
4225
+ Fe()
4225
4226
  ];
4226
4227
  //#endregion
4227
4228
  //#region lib/components/ui/widgets/editor/extensions/assistant/use-assistant-feature.ts
@@ -4239,7 +4240,7 @@ function cc(e, t) {
4239
4240
  //#endregion
4240
4241
  //#region lib/components/ui/widgets/editor/extensions/upload/upload-signal.tsx
4241
4242
  function lc({ onChange: e }) {
4242
- let { handle: t } = k(), n = La(t).pending > 0, r = W(e), i = W(!1);
4243
+ let { handle: t } = O(), n = La(t).pending > 0, r = W(e), i = W(!1);
4243
4244
  return H(() => {
4244
4245
  r.current = e;
4245
4246
  }, [e]), H(() => {
@@ -4276,22 +4277,22 @@ function dc(e, t) {
4276
4277
  //#endregion
4277
4278
  //#region lib/components/ui/widgets/editor/partials/editor-character-count.tsx
4278
4279
  function fc({ className: e }) {
4279
- let { t: n } = M(), { handle: r } = k(), i = P({
4280
+ let { t: n } = j(), { handle: r } = O(), i = N({
4280
4281
  editor: r.editor,
4281
4282
  selector: ({ editor: e }) => {
4282
4283
  let t = e?.extensionManager.extensions.find((e) => e.name === "characterCount")?.options.limit;
4283
4284
  return t ? dc(e?.storage.characterCount?.characters?.() ?? 0, t) : null;
4284
4285
  }
4285
4286
  });
4286
- return i ? /* @__PURE__ */ Y("span", {
4287
+ return i ? /* @__PURE__ */ J("span", {
4287
4288
  "data-slot": "editor-character-count",
4288
4289
  "data-near": i.near || void 0,
4289
4290
  role: i.near ? "status" : void 0,
4290
4291
  className: t("text-xs tabular-nums", i.near ? "text-error-text" : "text-muted-foreground", e),
4291
- children: [/* @__PURE__ */ J("span", {
4292
+ children: [/* @__PURE__ */ q("span", {
4292
4293
  "aria-hidden": "true",
4293
4294
  children: `${i.characters} / ${i.limit}`
4294
- }), /* @__PURE__ */ J("span", {
4295
+ }), /* @__PURE__ */ q("span", {
4295
4296
  className: "sr-only",
4296
4297
  children: n("material.editor.count", "{characters} of {limit} characters", {
4297
4298
  characters: i.characters,
@@ -4321,13 +4322,13 @@ function pc(e, t) {
4321
4322
  //#endregion
4322
4323
  //#region lib/components/ui/widgets/editor/presets/document-editor-frame-parts.tsx
4323
4324
  function mc({ side: e, children: n }) {
4324
- let { t: r } = M();
4325
- return /* @__PURE__ */ J("aside", {
4325
+ let { t: r } = j();
4326
+ return /* @__PURE__ */ q("aside", {
4326
4327
  "aria-label": r("material.editor.outline-region", "Document outline"),
4327
4328
  "data-slot": "document-editor-rail",
4328
4329
  "data-side": e,
4329
4330
  className: t("hidden w-56 shrink-0 @4xl:block", e === "start" ? "border-e" : "border-s"),
4330
- children: /* @__PURE__ */ J("div", {
4331
+ children: /* @__PURE__ */ q("div", {
4331
4332
  className: "sticky top-16 max-h-[calc(100svh-5rem)] overflow-y-auto p-3",
4332
4333
  children: n
4333
4334
  })
@@ -4337,11 +4338,11 @@ function hc(e, n, r) {
4337
4338
  return t("@container relative overflow-clip border bg-card text-card-foreground shadow-xs", e === "expressive" ? "rounded-(--nxgt-shape-corner-xl)" : "rounded-[20px]", "transition-colors duration-(--nxgt-motion-effects-fast-duration) ease-effects-fast motion-reduce:transition-none focus-within:border-primary/60 dark:focus-within:border-primary-indicator", n && "flex flex-col", r);
4338
4339
  }
4339
4340
  function gc({ presence: e, panels: t, children: n }) {
4340
- return /* @__PURE__ */ Y("div", {
4341
+ return /* @__PURE__ */ J("div", {
4341
4342
  "data-slot": "document-editor-toolbar",
4342
4343
  className: "sticky top-0 z-10 grid gap-2 border-b bg-card/95 px-3 py-2 backdrop-blur empty:hidden",
4343
4344
  children: [
4344
- e && /* @__PURE__ */ J("div", {
4345
+ e && /* @__PURE__ */ q("div", {
4345
4346
  className: "flex justify-end empty:hidden",
4346
4347
  children: e
4347
4348
  }),
@@ -4351,8 +4352,8 @@ function gc({ presence: e, panels: t, children: n }) {
4351
4352
  });
4352
4353
  }
4353
4354
  function _c({ children: e }) {
4354
- let { t } = M();
4355
- return /* @__PURE__ */ J("aside", {
4355
+ let { t } = j();
4356
+ return /* @__PURE__ */ q("aside", {
4356
4357
  "aria-label": t("material.editor.comments.title", "Comments"),
4357
4358
  "data-slot": "document-editor-comments",
4358
4359
  className: "w-72 shrink-0 border-s bg-muted/20 p-3",
@@ -4363,43 +4364,43 @@ function _c({ children: e }) {
4363
4364
  //#region lib/components/ui/widgets/editor/presets/toolbar-looks.ts
4364
4365
  var vc = t("[&_button[aria-pressed=true]]:rounded-full [&_button[data-variant=filled]]:rounded-full", "[&_button[aria-pressed=true]]:bg-(--tb-on) [&_button[data-variant=filled]]:bg-(--tb-on)", "[&_button[aria-pressed=true]]:text-(--tb-on-fg) [&_button[data-variant=filled]]:text-(--tb-on-fg)", "[&_button[aria-pressed=true]_svg]:stroke-(--tb-on-fg) [&_button[data-variant=filled]_svg]:stroke-(--tb-on-fg)", "[&_button[aria-pressed=true]_svg]:text-(--tb-on-fg) [&_button[data-variant=filled]_svg]:text-(--tb-on-fg)", "[&_button[aria-pressed=true]_svg]:stroke-[2.6] [&_button[data-variant=filled]_svg]:stroke-[2.6]"), yc = t("[&_button[data-toolbar-fit][data-variant=filled]:not([aria-pressed])]:bg-(--tb-on)", "[&_button[data-toolbar-fit][data-variant=filled]:not([aria-pressed])]:text-(--tb-on-fg)"), bc = t("gap-x-2 gap-y-1.5", "**:data-group-id:gap-0 **:data-group-id:rounded-xl", "**:data-group-id:bg-muted/60 **:data-group-id:p-0.5", "[&_button[data-variant]]:rounded-md", vc, yc), xc = t("items-center gap-1 **:data-group-id:gap-1", "[--tb-item:2.25rem] [&_button[data-variant]]:rounded-full [&_[data-toolbar-more]]:rounded-full", vc, yc, "**:data-[group=outline]:@6xl:hidden", "**:data-[group=comments]:@5xl:hidden"), Sc = t(bc, "**:data-[group=outline]:@6xl:hidden", "**:data-[group=comments]:@5xl:hidden"), Cc = t(bc, "**:data-[group=outline]:@4xl:hidden", "**:data-[group=comments]:@5xl:hidden"), wc = 56;
4365
4366
  function Tc({ toolbar: e, bar: n, panels: r, footer: i, outline: a, comments: o, presence: s, outlineSide: c = "start", className: l, children: u }) {
4366
- let { chrome: d, handle: f, look: p } = k(), m = f.features.some((e) => e.key === "dragHandle"), h = d.state.focusMode, g = W(null), _ = pc(g, wc), v = a && !h && _, y = pc(g, 64), b = o && !h && y;
4367
- return /* @__PURE__ */ Y("div", {
4367
+ let { chrome: d, handle: f, look: p } = O(), m = f.features.some((e) => e.key === "dragHandle"), h = d.state.focusMode, g = W(null), _ = pc(g, wc), v = a && !h && _, y = pc(g, 64), b = o && !h && y;
4368
+ return /* @__PURE__ */ J("div", {
4368
4369
  ref: g,
4369
4370
  "data-slot": "document-editor",
4370
4371
  "data-look": p,
4371
4372
  "data-layout": "docked",
4372
4373
  className: hc(p, !!n, l),
4373
4374
  children: [
4374
- /* @__PURE__ */ J(gc, {
4375
+ /* @__PURE__ */ q(gc, {
4375
4376
  presence: s,
4376
4377
  panels: r,
4377
4378
  children: !h && e
4378
4379
  }),
4379
- /* @__PURE__ */ J(va, { className: "absolute end-3 top-3 z-20" }),
4380
+ /* @__PURE__ */ q(va, { className: "absolute end-3 top-3 z-20" }),
4380
4381
  !h && n,
4381
- /* @__PURE__ */ Y("div", {
4382
+ /* @__PURE__ */ J("div", {
4382
4383
  className: "flex",
4383
4384
  children: [
4384
- v && c === "start" && /* @__PURE__ */ J(mc, {
4385
+ v && c === "start" && /* @__PURE__ */ q(mc, {
4385
4386
  side: "start",
4386
4387
  children: a
4387
4388
  }),
4388
- /* @__PURE__ */ J("div", {
4389
+ /* @__PURE__ */ q("div", {
4389
4390
  className: t("min-w-0 flex-1 px-5 py-6 @xl:px-10 @xl:py-10", m && "@xl:pointer-fine:ps-16"),
4390
- children: /* @__PURE__ */ J("div", {
4391
+ children: /* @__PURE__ */ q("div", {
4391
4392
  className: "mx-auto w-full max-w-[680px]",
4392
4393
  children: u
4393
4394
  })
4394
4395
  }),
4395
- v && c === "end" && /* @__PURE__ */ J(mc, {
4396
+ v && c === "end" && /* @__PURE__ */ q(mc, {
4396
4397
  side: "end",
4397
4398
  children: a
4398
4399
  }),
4399
- b && /* @__PURE__ */ J(_c, { children: o })
4400
+ b && /* @__PURE__ */ q(_c, { children: o })
4400
4401
  ]
4401
4402
  }),
4402
- i && /* @__PURE__ */ J("div", {
4403
+ i && /* @__PURE__ */ q("div", {
4403
4404
  className: t("border-t px-4 py-2.5 sm:px-6", n && "order-3"),
4404
4405
  children: i
4405
4406
  })
@@ -4430,11 +4431,11 @@ function Fc(e) {
4430
4431
  //#endregion
4431
4432
  //#region lib/components/ui/widgets/editor/presets/compact-editor-parts.tsx
4432
4433
  function Ic({ look: e }) {
4433
- return /* @__PURE__ */ J("div", {
4434
+ return /* @__PURE__ */ q("div", {
4434
4435
  "data-slot": "compact-editor-toolbar",
4435
4436
  "data-look": e,
4436
4437
  className: Fc(e),
4437
- children: /* @__PURE__ */ J(O, {
4438
+ children: /* @__PURE__ */ q(E, {
4438
4439
  dividers: !1,
4439
4440
  density: "compact",
4440
4441
  className: Mc(e, Cc)
@@ -4442,10 +4443,10 @@ function Ic({ look: e }) {
4442
4443
  });
4443
4444
  }
4444
4445
  function Lc({ actions: e }) {
4445
- return /* @__PURE__ */ Y("div", {
4446
+ return /* @__PURE__ */ J("div", {
4446
4447
  "data-slot": "compact-editor-footer",
4447
4448
  className: "flex flex-wrap items-center gap-x-3 gap-y-2 border-t px-3 py-2",
4448
- children: [/* @__PURE__ */ J(fc, {}), e && /* @__PURE__ */ J("div", {
4449
+ children: [/* @__PURE__ */ q(fc, {}), e && /* @__PURE__ */ q("div", {
4449
4450
  "data-slot": "editor-actions",
4450
4451
  className: "ms-auto flex items-center gap-2",
4451
4452
  children: e
@@ -4455,7 +4456,7 @@ function Lc({ actions: e }) {
4455
4456
  //#endregion
4456
4457
  //#region lib/components/ui/widgets/editor/presets/preset-features.ts
4457
4458
  var Rc = (e) => (t) => {
4458
- let { features: n, mentions: r, outline: i, extra: a } = e, o = (typeof n == "function" ? n(t) : n) ?? (r ? [...t, Re()] : t);
4459
+ let { features: n, mentions: r, outline: i, extra: a } = e, o = (typeof n == "function" ? n(t) : n) ?? (r ? [...t, Fe()] : t);
4459
4460
  return [...i && !o.some((e) => e.key === "outline") ? [...o, Yo()] : o, ...a.filter((e) => !!e)];
4460
4461
  }, zc = [
4461
4462
  "min-h-[1lh]",
@@ -4509,58 +4510,58 @@ function Wc(e = 2, t = 8) {
4509
4510
  }
4510
4511
  //#endregion
4511
4512
  //#region lib/components/ui/widgets/editor/presets/compact-editor.tsx
4512
- function Gc({ features: e, minRows: n = 2, maxRows: r = 8, toolbar: a = !0, look: o = "expressive", actions: s, onUpload: l, uploadOptions: u, onUploadingChange: d, onAssist: f, assistOptions: p, label: m, helperText: h, error: g, required: v, className: y, attributes: b, ...x }) {
4513
- let { t: S } = M(), C = U(oc, []), w = uc(l, u), ee = cc(f, p), T = !!s || !!x.characterLimit;
4514
- return /* @__PURE__ */ Y(_, {
4513
+ function Gc({ features: e, minRows: n = 2, maxRows: r = 8, toolbar: i = !0, look: o = "expressive", actions: s, onUpload: l, uploadOptions: u, onUploadingChange: d, onAssist: f, assistOptions: p, label: m, helperText: h, error: _, required: v, className: y, attributes: b, ...x }) {
4514
+ let { t: S } = j(), ee = U(oc, []), C = uc(l, u), te = cc(f, p), w = !!s || !!x.characterLimit;
4515
+ return /* @__PURE__ */ J(g, {
4515
4516
  ...x,
4516
4517
  look: o,
4517
4518
  features: Rc({
4518
4519
  features: e,
4519
4520
  mentions: x.mentions,
4520
- extra: [w, ee]
4521
+ extra: [C, te]
4521
4522
  }),
4522
- defaults: C,
4523
+ defaults: ee,
4523
4524
  attributes: {
4524
4525
  class: t("nxgt-prose text-[0.9375rem] leading-relaxed focus:outline-none", Wc(n, r)),
4525
4526
  "aria-label": S("material.editor.comment", "Comment"),
4526
4527
  ...b
4527
4528
  },
4528
4529
  children: [
4529
- /* @__PURE__ */ J(Pe, {
4530
+ /* @__PURE__ */ q(Me, {
4530
4531
  label: m,
4531
4532
  helperText: h,
4532
- error: g,
4533
+ error: _,
4533
4534
  required: v,
4534
4535
  className: y,
4535
- children: /* @__PURE__ */ Y("div", {
4536
+ children: /* @__PURE__ */ J("div", {
4536
4537
  "data-slot": "compact-editor",
4537
- "data-invalid": g || void 0,
4538
+ "data-invalid": _ || void 0,
4538
4539
  "data-look": o,
4539
- className: t("overflow-clip border bg-card text-card-foreground transition-colors duration-(--nxgt-motion-effects-fast-duration) ease-effects-fast motion-reduce:transition-none", Pc(o, g)),
4540
+ className: t("overflow-clip border bg-card text-card-foreground transition-colors duration-(--nxgt-motion-effects-fast-duration) ease-effects-fast motion-reduce:transition-none", Pc(o, _)),
4540
4541
  children: [
4541
- a && /* @__PURE__ */ J(Ic, { look: o }),
4542
- /* @__PURE__ */ J(ne, { className: "px-3 py-2.5" }),
4543
- T && /* @__PURE__ */ J(Lc, { actions: s })
4542
+ i && /* @__PURE__ */ q(Ic, { look: o }),
4543
+ /* @__PURE__ */ q(D, { className: "px-3 py-2.5" }),
4544
+ w && /* @__PURE__ */ q(Lc, { actions: s })
4544
4545
  ]
4545
4546
  })
4546
4547
  }),
4547
- l && /* @__PURE__ */ J(lc, { onChange: d }),
4548
- /* @__PURE__ */ J(c, {}),
4549
- /* @__PURE__ */ J(i, {}),
4550
- /* @__PURE__ */ J(or, {})
4548
+ l && /* @__PURE__ */ q(lc, { onChange: d }),
4549
+ /* @__PURE__ */ q(c, {}),
4550
+ /* @__PURE__ */ q(a, {}),
4551
+ /* @__PURE__ */ q(or, {})
4551
4552
  ]
4552
4553
  });
4553
4554
  }
4554
4555
  //#endregion
4555
4556
  //#region lib/components/ui/widgets/editor/presets/compact-editor-form-field.tsx
4556
4557
  function Kc({ control: e, name: n, ...r }) {
4557
- return /* @__PURE__ */ J(Ze, {
4558
+ return /* @__PURE__ */ q(Ze, {
4558
4559
  control: e,
4559
4560
  name: n,
4560
- render: ({ field: e, fieldState: n }) => /* @__PURE__ */ J(Qe, {
4561
+ render: ({ field: e, fieldState: n }) => /* @__PURE__ */ q(Qe, {
4561
4562
  onBlur: e.onBlur,
4562
4563
  focusRef: e.ref,
4563
- children: /* @__PURE__ */ J(Gc, {
4564
+ children: /* @__PURE__ */ q(Gc, {
4564
4565
  ...r,
4565
4566
  className: t(r.className, e.disabled && "nxgt-editor-disabled"),
4566
4567
  value: e.value ?? ce(r.format ?? "html"),
@@ -4575,8 +4576,8 @@ function Kc({ control: e, name: n, ...r }) {
4575
4576
  //#endregion
4576
4577
  //#region lib/components/ui/widgets/editor/partials/page-mode-switch.tsx
4577
4578
  function qc({ value: e, onChange: t }) {
4578
- let { t: n } = M();
4579
- return /* @__PURE__ */ Y(tt, {
4579
+ let { t: n } = j();
4580
+ return /* @__PURE__ */ J(tt, {
4580
4581
  type: "single",
4581
4582
  variant: "segmented",
4582
4583
  size: "sm",
@@ -4585,15 +4586,15 @@ function qc({ value: e, onChange: t }) {
4585
4586
  "aria-label": n("material.editor.page.mode", "View"),
4586
4587
  "data-slot": "editor-page-mode",
4587
4588
  children: [
4588
- /* @__PURE__ */ J(et, {
4589
+ /* @__PURE__ */ q(et, {
4589
4590
  value: "write",
4590
4591
  children: n("material.editor.page.write", "Write")
4591
4592
  }),
4592
- /* @__PURE__ */ J(et, {
4593
+ /* @__PURE__ */ q(et, {
4593
4594
  value: "preview",
4594
4595
  children: n("material.editor.page.preview", "Preview")
4595
4596
  }),
4596
- /* @__PURE__ */ J(et, {
4597
+ /* @__PURE__ */ q(et, {
4597
4598
  value: "markdown",
4598
4599
  children: n("material.editor.page.markdown", "Markdown")
4599
4600
  })
@@ -4604,7 +4605,7 @@ function qc({ value: e, onChange: t }) {
4604
4605
  //#region lib/components/ui/widgets/editor/partials/page-mode-views.tsx
4605
4606
  var Jc = Ot(() => import("./rich-text-viewer-CXJp584B.js").then((e) => e.n).then((e) => ({ default: e.RichTextViewer })));
4606
4607
  function Yc() {
4607
- let { handle: e } = k(), { editor: t } = e, n = P({
4608
+ let { handle: e } = O(), { editor: t } = e, n = N({
4608
4609
  editor: t,
4609
4610
  selector: (e) => e.editor?.state.doc ?? null,
4610
4611
  equalityFn: (e, t) => e === t
@@ -4616,26 +4617,26 @@ function Yc() {
4616
4617
  ]);
4617
4618
  }
4618
4619
  function Xc({ children: e }) {
4619
- return /* @__PURE__ */ J("p", {
4620
+ return /* @__PURE__ */ q("p", {
4620
4621
  "data-slot": "editor-page-empty",
4621
4622
  className: "text-muted-foreground text-sm",
4622
4623
  children: e
4623
4624
  });
4624
4625
  }
4625
4626
  function Zc({ json: e, components: t }) {
4626
- let { t: n } = M(), { look: r } = k(), i = n("material.editor.page.empty", "Nothing to show yet.");
4627
- return e ? /* @__PURE__ */ J(Dt, {
4628
- fallback: /* @__PURE__ */ J(Xc, { children: n("material.editor.page.loading", "Loading…") }),
4629
- children: /* @__PURE__ */ J(Jc, {
4627
+ let { t: n } = j(), { look: r } = O(), i = n("material.editor.page.empty", "Nothing to show yet.");
4628
+ return e ? /* @__PURE__ */ q(Dt, {
4629
+ fallback: /* @__PURE__ */ q(Xc, { children: n("material.editor.page.loading", "Loading…") }),
4630
+ children: /* @__PURE__ */ q(Jc, {
4630
4631
  value: e,
4631
4632
  format: "json",
4632
4633
  components: t,
4633
4634
  look: r
4634
4635
  })
4635
- }) : /* @__PURE__ */ J(Xc, { children: i });
4636
+ }) : /* @__PURE__ */ q(Xc, { children: i });
4636
4637
  }
4637
4638
  function Qc({ json: e }) {
4638
- let { t } = M(), { handle: n } = k(), [r, i] = G(null), a = n.editor?.extensionManager.extensions;
4639
+ let { t } = j(), { handle: n } = O(), [r, i] = G(null), a = n.editor?.extensionManager.extensions;
4639
4640
  return H(() => {
4640
4641
  let t = !0;
4641
4642
  if (!e) {
@@ -4645,19 +4646,19 @@ function Qc({ json: e }) {
4645
4646
  return import("./convert-7g-F5cNf.js").then((e) => e.t).then((t) => t.toMarkdown(e, { extensions: a })).then((e) => t && i(e)).catch(() => t && i("")), () => {
4646
4647
  t = !1;
4647
4648
  };
4648
- }, [e, a]), r === null ? /* @__PURE__ */ J(Xc, { children: t("material.editor.page.loading", "Loading…") }) : r.trim() ? /* @__PURE__ */ J("pre", {
4649
+ }, [e, a]), r === null ? /* @__PURE__ */ q(Xc, { children: t("material.editor.page.loading", "Loading…") }) : r.trim() ? /* @__PURE__ */ q("pre", {
4649
4650
  "data-slot": "editor-page-markdown",
4650
4651
  tabIndex: 0,
4651
4652
  className: "m-0 overflow-x-auto whitespace-pre-wrap break-words font-mono text-sm leading-relaxed",
4652
- children: /* @__PURE__ */ J("code", { children: r })
4653
- }) : /* @__PURE__ */ J(Xc, { children: t("material.editor.page.empty", "Nothing to show yet.") });
4653
+ children: /* @__PURE__ */ q("code", { children: r })
4654
+ }) : /* @__PURE__ */ q(Xc, { children: t("material.editor.page.empty", "Nothing to show yet.") });
4654
4655
  }
4655
4656
  function $c({ mode: e, components: t }) {
4656
4657
  let n = Yc();
4657
- return e === "preview" ? /* @__PURE__ */ J(Zc, {
4658
+ return e === "preview" ? /* @__PURE__ */ q(Zc, {
4658
4659
  json: n,
4659
4660
  components: t
4660
- }) : /* @__PURE__ */ J(Qc, { json: n });
4661
+ }) : /* @__PURE__ */ q(Qc, { json: n });
4661
4662
  }
4662
4663
  //#endregion
4663
4664
  //#region lib/components/ui/widgets/editor/presets/page-classes.ts
@@ -4670,13 +4671,13 @@ function tl(e, n) {
4670
4671
  //#endregion
4671
4672
  //#region lib/components/ui/widgets/editor/presets/document-editor-page-parts.tsx
4672
4673
  function nl({ mode: e, onModeChange: t, showSwitch: n, presence: r, panels: i, children: a }) {
4673
- return /* @__PURE__ */ Y("div", {
4674
+ return /* @__PURE__ */ J("div", {
4674
4675
  "data-slot": "document-editor-toolbar",
4675
4676
  className: "sticky top-0 z-10 grid gap-2 bg-(--page-tint)/85 px-2 py-2 backdrop-blur @2xl:px-6",
4676
4677
  children: [
4677
- n && /* @__PURE__ */ Y("div", {
4678
+ n && /* @__PURE__ */ J("div", {
4678
4679
  className: "flex flex-wrap items-center justify-between gap-2",
4679
- children: [/* @__PURE__ */ J(qc, {
4680
+ children: [/* @__PURE__ */ q(qc, {
4680
4681
  value: e,
4681
4682
  onChange: t
4682
4683
  }), r]
@@ -4688,15 +4689,15 @@ function nl({ mode: e, onModeChange: t, showSwitch: n, presence: r, panels: i, c
4688
4689
  }
4689
4690
  function rl({ expressive: e, handleGutter: t, mode: n, previewComponents: r, children: i }) {
4690
4691
  let a = n === "write";
4691
- return /* @__PURE__ */ J("article", {
4692
+ return /* @__PURE__ */ q("article", {
4692
4693
  "data-slot": "document-editor-sheet",
4693
4694
  className: tl(e, t),
4694
- children: /* @__PURE__ */ Y("div", {
4695
+ children: /* @__PURE__ */ J("div", {
4695
4696
  className: "mx-auto w-full max-w-[680px]",
4696
- children: [/* @__PURE__ */ J("div", {
4697
+ children: [/* @__PURE__ */ q("div", {
4697
4698
  hidden: !a,
4698
4699
  children: i
4699
- }), !a && /* @__PURE__ */ J($c, {
4700
+ }), !a && /* @__PURE__ */ q($c, {
4700
4701
  mode: n,
4701
4702
  components: r
4702
4703
  })]
@@ -4704,7 +4705,7 @@ function rl({ expressive: e, handleGutter: t, mode: n, previewComponents: r, chi
4704
4705
  });
4705
4706
  }
4706
4707
  function il({ floating: e, children: n }) {
4707
- return /* @__PURE__ */ J("div", {
4708
+ return /* @__PURE__ */ q("div", {
4708
4709
  className: t("border-t px-4 py-2.5 @2xl:px-8", e && "order-3"),
4709
4710
  children: n
4710
4711
  });
@@ -4712,28 +4713,28 @@ function il({ floating: e, children: n }) {
4712
4713
  //#endregion
4713
4714
  //#region lib/components/ui/widgets/editor/presets/page-rails.tsx
4714
4715
  function al({ children: e, fab: t }) {
4715
- let { t: n } = M();
4716
- return t === void 0 ? /* @__PURE__ */ J("aside", {
4716
+ let { t: n } = j();
4717
+ return t === void 0 ? /* @__PURE__ */ q("aside", {
4717
4718
  "aria-label": n("material.editor.tools", "Tools"),
4718
4719
  "data-slot": "document-editor-tools",
4719
4720
  className: "sticky top-16 w-12 shrink-0 self-start rounded-2xl border bg-card p-1.5 shadow-xs",
4720
- children: /* @__PURE__ */ J("div", {
4721
+ children: /* @__PURE__ */ q("div", {
4721
4722
  className: "max-h-[calc(100svh-7rem)] overflow-y-clip",
4722
4723
  children: e
4723
4724
  })
4724
- }) : /* @__PURE__ */ Y("aside", {
4725
+ }) : /* @__PURE__ */ J("aside", {
4725
4726
  "aria-label": n("material.editor.tools", "Tools"),
4726
4727
  "data-slot": "document-editor-tools",
4727
4728
  className: "sticky top-16 flex w-fit shrink-0 flex-col items-center gap-3 self-start",
4728
- children: [/* @__PURE__ */ J("div", {
4729
+ children: [/* @__PURE__ */ q("div", {
4729
4730
  className: "max-h-[calc(100svh-12rem)] overflow-clip [overflow-clip-margin:24px]",
4730
4731
  children: e
4731
4732
  }), t]
4732
4733
  });
4733
4734
  }
4734
4735
  function ol({ side: e, children: t }) {
4735
- let { t: n } = M();
4736
- return /* @__PURE__ */ J("aside", {
4736
+ let { t: n } = j();
4737
+ return /* @__PURE__ */ q("aside", {
4737
4738
  "aria-label": n("material.editor.outline-region", "Document outline"),
4738
4739
  "data-slot": "document-editor-rail",
4739
4740
  "data-side": e,
@@ -4742,8 +4743,8 @@ function ol({ side: e, children: t }) {
4742
4743
  });
4743
4744
  }
4744
4745
  function sl({ children: e }) {
4745
- let { t } = M();
4746
- return /* @__PURE__ */ J("aside", {
4746
+ let { t } = j();
4747
+ return /* @__PURE__ */ q("aside", {
4747
4748
  "aria-label": t("material.editor.comments.title", "Comments"),
4748
4749
  "data-slot": "document-editor-comments",
4749
4750
  className: "w-64 shrink-0 self-stretch @6xl:w-72",
@@ -4751,39 +4752,39 @@ function sl({ children: e }) {
4751
4752
  });
4752
4753
  }
4753
4754
  function cl({ toolbar: e, bar: n, rail: r, railFab: i, previewComponents: a, panels: o, footer: s, outline: c, comments: l, presence: u, outlineSide: d = "start", className: f, children: p }) {
4754
- let { chrome: m, handle: h, look: g } = k(), _ = g === "expressive", v = h.features.some((e) => e.key === "dragHandle"), y = m.state.focusMode, b = W(null), [x, S] = G("write"), C = x === "write", w = pc(b, 64), ee = pc(b, 72), T = C && !y, E = T && w && r, D = !!(n && T && !E), O = c && T && ee, te = l && T && w;
4755
- return /* @__PURE__ */ Y("div", {
4755
+ let { chrome: m, handle: h, look: g } = O(), _ = g === "expressive", v = h.features.some((e) => e.key === "dragHandle"), y = m.state.focusMode, b = W(null), [x, S] = G("write"), ee = x === "write", C = pc(b, 64), te = pc(b, 72), w = ee && !y, ne = w && C && r, T = !!(n && w && !ne), E = c && w && te, re = l && w && C;
4756
+ return /* @__PURE__ */ J("div", {
4756
4757
  ref: b,
4757
4758
  "data-slot": "document-editor",
4758
4759
  "data-look": g,
4759
4760
  "data-layout": "page",
4760
4761
  "data-mode": x,
4761
- className: t(el(_, D), f),
4762
+ className: t(el(_, T), f),
4762
4763
  children: [
4763
- /* @__PURE__ */ J(nl, {
4764
+ /* @__PURE__ */ q(nl, {
4764
4765
  mode: x,
4765
4766
  onModeChange: S,
4766
4767
  showSwitch: !y,
4767
4768
  presence: u,
4768
- panels: C && o,
4769
- children: T && !E && e
4769
+ panels: ee && o,
4770
+ children: w && !ne && e
4770
4771
  }),
4771
- /* @__PURE__ */ J(va, { className: "absolute end-3 top-3 z-20" }),
4772
- D && n,
4773
- /* @__PURE__ */ Y("div", {
4772
+ /* @__PURE__ */ q(va, { className: "absolute end-3 top-3 z-20" }),
4773
+ T && n,
4774
+ /* @__PURE__ */ J("div", {
4774
4775
  className: "flex items-start gap-4 px-2 pb-6 @2xl:gap-6 @2xl:px-6",
4775
4776
  children: [
4776
- E && /* @__PURE__ */ J(al, {
4777
+ ne && /* @__PURE__ */ q(al, {
4777
4778
  fab: i,
4778
4779
  children: r
4779
4780
  }),
4780
- O && d === "start" && /* @__PURE__ */ J(ol, {
4781
+ E && d === "start" && /* @__PURE__ */ q(ol, {
4781
4782
  side: "start",
4782
4783
  children: c
4783
4784
  }),
4784
- /* @__PURE__ */ J("div", {
4785
+ /* @__PURE__ */ q("div", {
4785
4786
  className: "min-w-0 flex-1",
4786
- children: /* @__PURE__ */ J(rl, {
4787
+ children: /* @__PURE__ */ q(rl, {
4787
4788
  expressive: _,
4788
4789
  handleGutter: v,
4789
4790
  mode: x,
@@ -4791,15 +4792,15 @@ function cl({ toolbar: e, bar: n, rail: r, railFab: i, previewComponents: a, pan
4791
4792
  children: p
4792
4793
  })
4793
4794
  }),
4794
- O && d === "end" && /* @__PURE__ */ J(ol, {
4795
+ E && d === "end" && /* @__PURE__ */ q(ol, {
4795
4796
  side: "end",
4796
4797
  children: c
4797
4798
  }),
4798
- te && /* @__PURE__ */ J(sl, { children: l })
4799
+ re && /* @__PURE__ */ q(sl, { children: l })
4799
4800
  ]
4800
4801
  }),
4801
- s && /* @__PURE__ */ J(il, {
4802
- floating: D,
4802
+ s && /* @__PURE__ */ q(il, {
4803
+ floating: T,
4803
4804
  children: s
4804
4805
  })
4805
4806
  ]
@@ -4829,7 +4830,7 @@ var ll = {
4829
4830
  history: 50
4830
4831
  };
4831
4832
  function dl(e) {
4832
- return e.some((e) => e.name === "slash") ? w(e.flatMap((e) => e.slash ?? [])) : [];
4833
+ return e.some((e) => e.name === "slash") ? ee(e.flatMap((e) => e.slash ?? [])) : [];
4833
4834
  }
4834
4835
  function fl(e, t) {
4835
4836
  let n = new Set(t.map((e) => e.id));
@@ -4839,9 +4840,9 @@ function fl(e, t) {
4839
4840
  });
4840
4841
  }
4841
4842
  function pl(e, t) {
4842
- return fl(e, t).flatMap((e) => e.id === "marks" && e.render === ie ? [{
4843
+ return fl(e, t).flatMap((e) => e.id === "marks" && e.render === ae ? [{
4843
4844
  ...e,
4844
- render: g
4845
+ render: h
4845
4846
  }, {
4846
4847
  ...e,
4847
4848
  id: "marks-extra",
@@ -4855,25 +4856,25 @@ function pl(e, t) {
4855
4856
  //#endregion
4856
4857
  //#region lib/components/ui/widgets/editor/partials/use-toolbar-shown.ts
4857
4858
  function ml() {
4858
- let { handle: e, chrome: t } = k();
4859
- return !!P({
4859
+ let { handle: e, chrome: t } = O();
4860
+ return !!N({
4860
4861
  editor: e.editor,
4861
- selector: (e) => !!(e.editor?.isEditable && ke.selectShowToolbar(t.state))
4862
+ selector: (e) => !!(e.editor?.isEditable && De.selectShowToolbar(t.state))
4862
4863
  });
4863
4864
  }
4864
4865
  //#endregion
4865
4866
  //#region lib/components/ui/widgets/editor/partials/editor-insert-fab.tsx
4866
4867
  function hl() {
4867
- let { t: e } = M(), { handle: t } = k(), { editor: n, features: r } = t, i = W(!1), a = U(() => l(dl(r), "", e), [r, e]), o = ml();
4868
- return !n || !o || a.length === 0 ? null : /* @__PURE__ */ J(se, {
4868
+ let { t: e } = j(), { handle: t } = O(), { editor: n, features: r } = t, a = W(!1), o = U(() => l(dl(r), "", e), [r, e]), s = ml();
4869
+ return !n || !s || o.length === 0 ? null : /* @__PURE__ */ q(i, {
4869
4870
  "data-slot": "editor-insert-fab",
4870
4871
  label: e("material.editor.insert", "Insert"),
4871
- items: a.map((e) => ({
4872
+ items: o.map((e) => ({
4872
4873
  id: e.id,
4873
- icon: /* @__PURE__ */ J(e.icon, {}),
4874
+ icon: /* @__PURE__ */ q(e.icon, {}),
4874
4875
  label: e.title,
4875
4876
  onSelect: () => {
4876
- i.current = !0;
4877
+ a.current = !0;
4877
4878
  let t = n.state.selection.from;
4878
4879
  e.run({
4879
4880
  editor: n,
@@ -4885,30 +4886,30 @@ function hl() {
4885
4886
  }
4886
4887
  })),
4887
4888
  onCloseAutoFocus: (e) => {
4888
- i.current && (i.current = !1, e.preventDefault(), n.isDestroyed || n.commands.focus());
4889
+ a.current && (a.current = !1, e.preventDefault(), n.isDestroyed || n.commands.focus());
4889
4890
  }
4890
4891
  });
4891
4892
  }
4892
4893
  //#endregion
4893
4894
  //#region lib/components/ui/widgets/editor/partials/editor-floating-bar.tsx
4894
4895
  function gl({ className: e }) {
4895
- let { handle: t } = k(), n = U(() => dl(t.features), [t.features]), r = V((e) => pl(e, n), [n]);
4896
- return ml() ? /* @__PURE__ */ J("div", {
4896
+ let { handle: t } = O(), n = U(() => dl(t.features), [t.features]), r = V((e) => pl(e, n), [n]);
4897
+ return ml() ? /* @__PURE__ */ q("div", {
4897
4898
  "data-slot": "editor-floating-bar",
4898
4899
  className: "nxgt-editor-bar",
4899
- children: /* @__PURE__ */ Y(Oe, { children: [/* @__PURE__ */ J(O, {
4900
+ children: /* @__PURE__ */ J(ne, { children: [/* @__PURE__ */ q(E, {
4900
4901
  variant: "floating",
4901
4902
  dividers: !1,
4902
4903
  className: e,
4903
4904
  groupsFor: r
4904
- }), /* @__PURE__ */ J(hl, {})] })
4905
+ }), /* @__PURE__ */ q(hl, {})] })
4905
4906
  }) : null;
4906
4907
  }
4907
4908
  //#endregion
4908
4909
  //#region lib/components/ui/widgets/editor/partials/editor-rail-toolbar.tsx
4909
4910
  function _l({ floating: e, className: t }) {
4910
- let { handle: n } = k(), r = U(() => e ? dl(n.features) : [], [e, n.features]), i = V((e) => fl(e, r), [r]);
4911
- return /* @__PURE__ */ J(O, {
4911
+ let { handle: n } = O(), r = U(() => e ? dl(n.features) : [], [e, n.features]), i = V((e) => fl(e, r), [r]);
4912
+ return /* @__PURE__ */ q(E, {
4912
4913
  orientation: "vertical",
4913
4914
  variant: e ? "floating" : void 0,
4914
4915
  className: t,
@@ -4920,23 +4921,23 @@ function _l({ floating: e, className: t }) {
4920
4921
  function vl({ look: e, layout: t, previewComponents: n, outline: r, comments: i, collaboration: a, collaborationStatus: o, footer: s, status: c, actions: l }) {
4921
4922
  let u = t === "page", d = Nc(e), f = e === "expressive";
4922
4923
  return {
4923
- toolbar: f ? void 0 : /* @__PURE__ */ J(O, {
4924
+ toolbar: f ? void 0 : /* @__PURE__ */ q(E, {
4924
4925
  dividers: !1,
4925
4926
  className: u ? d.docked : Mc(e, Cc)
4926
4927
  }),
4927
- bar: f ? /* @__PURE__ */ J(gl, { className: u ? Ac : kc }) : void 0,
4928
+ bar: f ? /* @__PURE__ */ q(gl, { className: u ? Ac : kc }) : void 0,
4928
4929
  previewComponents: n,
4929
- rail: u ? /* @__PURE__ */ J(_l, {
4930
+ rail: u ? /* @__PURE__ */ q(_l, {
4930
4931
  floating: f,
4931
4932
  className: d.rail
4932
4933
  }) : void 0,
4933
- railFab: u && f ? /* @__PURE__ */ J(hl, {}) : void 0,
4934
- panels: /* @__PURE__ */ Y(q, { children: [/* @__PURE__ */ J(ha, {}), /* @__PURE__ */ J(Pa, {})] }),
4935
- outline: r ? /* @__PURE__ */ J(Ma, {}) : void 0,
4936
- comments: i ? /* @__PURE__ */ J(Di, {}) : void 0,
4937
- presence: a && /* @__PURE__ */ J(mr, { status: o }),
4934
+ railFab: u && f ? /* @__PURE__ */ q(hl, {}) : void 0,
4935
+ panels: /* @__PURE__ */ J(K, { children: [/* @__PURE__ */ q(ha, {}), /* @__PURE__ */ q(Pa, {})] }),
4936
+ outline: r ? /* @__PURE__ */ q(Ma, {}) : void 0,
4937
+ comments: i ? /* @__PURE__ */ q(Di, {}) : void 0,
4938
+ presence: a && /* @__PURE__ */ q(mr, { status: o }),
4938
4939
  outlineSide: r || "start",
4939
- footer: s && /* @__PURE__ */ J(wa, {
4940
+ footer: s && /* @__PURE__ */ q(wa, {
4940
4941
  status: c,
4941
4942
  actions: l
4942
4943
  })
@@ -4945,28 +4946,28 @@ function vl({ look: e, layout: t, previewComponents: n, outline: r, comments: i,
4945
4946
  //#endregion
4946
4947
  //#region lib/components/ui/widgets/editor/presets/document-editor-layout.tsx
4947
4948
  function yl(e) {
4948
- return /* @__PURE__ */ J(e.layout === "page" ? cl : Tc, {
4949
+ return /* @__PURE__ */ q(e.layout === "page" ? cl : Tc, {
4949
4950
  ...vl(e),
4950
- children: /* @__PURE__ */ J(Ui, { children: /* @__PURE__ */ J(ne, {}) })
4951
+ children: /* @__PURE__ */ q(Ui, { children: /* @__PURE__ */ q(D, {}) })
4951
4952
  });
4952
4953
  }
4953
4954
  //#endregion
4954
4955
  //#region lib/components/ui/widgets/editor/extensions/comments/comments-adapter-sync.tsx
4955
4956
  function bl({ adapter: e }) {
4956
- let { handle: t } = k(), n = Sr(t.editor);
4957
+ let { handle: t } = O(), n = Sr(t.editor);
4957
4958
  return H(() => n?.checkAdapter(), [n, e]), null;
4958
4959
  }
4959
4960
  //#endregion
4960
4961
  //#region lib/components/ui/widgets/editor/presets/document-editor-overlays.tsx
4961
4962
  function xl({ onUpload: e, onUploadingChange: t, withComments: n, commentsAdapter: r }) {
4962
- return /* @__PURE__ */ Y(q, { children: [
4963
- e && /* @__PURE__ */ J(lc, { onChange: t }),
4964
- /* @__PURE__ */ J(c, {}),
4965
- /* @__PURE__ */ J(i, {}),
4966
- /* @__PURE__ */ J(or, {}),
4967
- /* @__PURE__ */ J(vi, {}),
4968
- /* @__PURE__ */ J(Er, {}),
4969
- n && /* @__PURE__ */ J(bl, { adapter: r })
4963
+ return /* @__PURE__ */ J(K, { children: [
4964
+ e && /* @__PURE__ */ q(lc, { onChange: t }),
4965
+ /* @__PURE__ */ q(c, {}),
4966
+ /* @__PURE__ */ q(a, {}),
4967
+ /* @__PURE__ */ q(or, {}),
4968
+ /* @__PURE__ */ q(vi, {}),
4969
+ /* @__PURE__ */ q(Er, {}),
4970
+ n && /* @__PURE__ */ q(bl, { adapter: r })
4970
4971
  ] });
4971
4972
  }
4972
4973
  //#endregion
@@ -5016,10 +5017,10 @@ function Cl({ features: e, mentions: t, outline: n, onUpload: r, uploadOptions:
5016
5017
  }
5017
5018
  //#endregion
5018
5019
  //#region lib/components/ui/widgets/editor/presets/document-editor.tsx
5019
- function wl({ features: e, layout: n = "docked", look: r = "expressive", previewComponents: i, status: a, actions: o, footer: s = !0, outline: c = !1, onUpload: l, uploadOptions: u, onUploadingChange: d, onAssist: f, assistOptions: p, comments: m, collaboration: h, collaborationStatus: g, label: v, helperText: y, error: b, required: x, className: S, attributes: C, ...w }) {
5020
- let { defaults: ee, commentsFeature: T, editorFeatures: E } = Cl({
5020
+ function wl({ features: e, layout: n = "docked", look: r = "expressive", previewComponents: i, status: a, actions: o, footer: s = !0, outline: c = !1, onUpload: l, uploadOptions: u, onUploadingChange: d, onAssist: f, assistOptions: p, comments: m, collaboration: h, collaborationStatus: _, label: v, helperText: y, error: b, required: x, className: S, attributes: ee, ...C }) {
5021
+ let { defaults: te, commentsFeature: w, editorFeatures: ne } = Cl({
5021
5022
  features: e,
5022
- mentions: w.mentions,
5023
+ mentions: C.mentions,
5023
5024
  outline: c,
5024
5025
  onUpload: l,
5025
5026
  uploadOptions: u,
@@ -5028,51 +5029,51 @@ function wl({ features: e, layout: n = "docked", look: r = "expressive", preview
5028
5029
  comments: m,
5029
5030
  collaboration: h
5030
5031
  });
5031
- return /* @__PURE__ */ Y(_, {
5032
- ...w,
5032
+ return /* @__PURE__ */ J(g, {
5033
+ ...C,
5033
5034
  look: r,
5034
- features: E,
5035
- defaults: ee,
5035
+ features: ne,
5036
+ defaults: te,
5036
5037
  attributes: {
5037
5038
  class: t("nxgt-prose min-h-64 focus:outline-none"),
5038
- ...C
5039
+ ...ee
5039
5040
  },
5040
- children: [/* @__PURE__ */ J(Pe, {
5041
+ children: [/* @__PURE__ */ q(Me, {
5041
5042
  label: v,
5042
5043
  helperText: y,
5043
5044
  error: b,
5044
5045
  required: x,
5045
5046
  className: S,
5046
- children: /* @__PURE__ */ J(yl, {
5047
+ children: /* @__PURE__ */ q(yl, {
5047
5048
  layout: n,
5048
5049
  look: r,
5049
5050
  previewComponents: i,
5050
5051
  outline: c,
5051
- comments: !!T,
5052
+ comments: !!w,
5052
5053
  collaboration: !!h,
5053
- collaborationStatus: g,
5054
+ collaborationStatus: _,
5054
5055
  footer: s,
5055
5056
  status: a,
5056
5057
  actions: o
5057
5058
  })
5058
- }), /* @__PURE__ */ J(xl, {
5059
+ }), /* @__PURE__ */ q(xl, {
5059
5060
  onUpload: l,
5060
5061
  onUploadingChange: d,
5061
- commentsAdapter: T ? m?.adapter : void 0,
5062
- withComments: !!T
5062
+ commentsAdapter: w ? m?.adapter : void 0,
5063
+ withComments: !!w
5063
5064
  })]
5064
5065
  });
5065
5066
  }
5066
5067
  //#endregion
5067
5068
  //#region lib/components/ui/widgets/editor/presets/document-editor-form-field.tsx
5068
5069
  function Tl({ control: e, name: n, ...r }) {
5069
- return /* @__PURE__ */ J(Ze, {
5070
+ return /* @__PURE__ */ q(Ze, {
5070
5071
  control: e,
5071
5072
  name: n,
5072
- render: ({ field: e, fieldState: n }) => /* @__PURE__ */ J(Qe, {
5073
+ render: ({ field: e, fieldState: n }) => /* @__PURE__ */ q(Qe, {
5073
5074
  onBlur: e.onBlur,
5074
5075
  focusRef: e.ref,
5075
- children: /* @__PURE__ */ J(wl, {
5076
+ children: /* @__PURE__ */ q(wl, {
5076
5077
  ...r,
5077
5078
  className: t(r.className, e.disabled && "nxgt-editor-disabled"),
5078
5079
  value: e.value ?? ce(r.format ?? "html"),
@@ -5092,20 +5093,20 @@ function El({ pill: e, look: n, editable: r, className: i }) {
5092
5093
  //#endregion
5093
5094
  //#region lib/components/ui/widgets/editor/presets/rich-chat-composer/partials/composer-notices.tsx
5094
5095
  function Dl({ error: e, replyTo: t, onCancelReply: n, attachments: r, isDisabled: i, onAttachmentsChange: a }) {
5095
- return /* @__PURE__ */ Y(q, { children: [
5096
- e && /* @__PURE__ */ J("div", {
5096
+ return /* @__PURE__ */ J(K, { children: [
5097
+ e && /* @__PURE__ */ q("div", {
5097
5098
  role: "alert",
5098
5099
  className: "w-full px-1 text-error-text text-xs",
5099
5100
  children: e
5100
5101
  }),
5101
- t && /* @__PURE__ */ J("div", {
5102
+ t && /* @__PURE__ */ q("div", {
5102
5103
  className: "w-full",
5103
- children: /* @__PURE__ */ J(de, {
5104
+ children: /* @__PURE__ */ q(de, {
5104
5105
  replyTo: t,
5105
5106
  onCancel: n
5106
5107
  })
5107
5108
  }),
5108
- /* @__PURE__ */ J(fe, {
5109
+ /* @__PURE__ */ q(fe, {
5109
5110
  attachments: r,
5110
5111
  isDisabled: i,
5111
5112
  onAttachmentsChange: a,
@@ -5116,11 +5117,11 @@ function Dl({ error: e, replyTo: t, onCancelReply: n, attachments: r, isDisabled
5116
5117
  //#endregion
5117
5118
  //#region lib/components/ui/widgets/editor/presets/rich-chat-composer/partials/composer-toolbar.tsx
5118
5119
  function Ol({ id: e, look: t }) {
5119
- return /* @__PURE__ */ J("div", {
5120
+ return /* @__PURE__ */ q("div", {
5120
5121
  id: e,
5121
5122
  "data-slot": "rich-chat-composer-toolbar",
5122
5123
  className: "w-full px-1",
5123
- children: /* @__PURE__ */ J(O, {
5124
+ children: /* @__PURE__ */ q(E, {
5124
5125
  dividers: !1,
5125
5126
  density: "compact",
5126
5127
  className: Mc(t, Cc)
@@ -5130,19 +5131,19 @@ function Ol({ id: e, look: t }) {
5130
5131
  //#endregion
5131
5132
  //#region lib/components/ui/widgets/editor/presets/rich-chat-composer/partials/send-control.tsx
5132
5133
  function kl({ sendLabel: e, stopLabel: t, disabled: n, empty: r, onStop: i, onSchedule: a, squircle: o }) {
5133
- let { t: s } = M();
5134
- return !a || i ? /* @__PURE__ */ J(Ae, {
5134
+ let { t: s } = j();
5135
+ return !a || i ? /* @__PURE__ */ q(Oe, {
5135
5136
  sendLabel: e,
5136
5137
  stopLabel: t,
5137
5138
  isDisabled: n,
5138
5139
  isEmpty: r,
5139
5140
  onStop: i,
5140
5141
  shape: o ? "squircle" : "round"
5141
- }) : /* @__PURE__ */ J(m, {
5142
+ }) : /* @__PURE__ */ q(Ie, {
5142
5143
  type: "submit",
5143
5144
  disabled: n || r,
5144
5145
  menuLabel: s("material.editor.send-options", "Send options"),
5145
- menu: /* @__PURE__ */ J(A, {
5146
+ menu: /* @__PURE__ */ q(k, {
5146
5147
  onSelect: a,
5147
5148
  children: s("material.editor.schedule", "Schedule…")
5148
5149
  }),
@@ -5152,11 +5153,11 @@ function kl({ sendLabel: e, stopLabel: t, disabled: n, empty: r, onStop: i, onSc
5152
5153
  //#endregion
5153
5154
  //#region lib/components/ui/widgets/editor/presets/rich-chat-composer/partials/send-on-enter.tsx
5154
5155
  function Al(e, t) {
5155
- return e.nativeEvent.keyCode !== 229 && Me(e, t);
5156
+ return e.nativeEvent.keyCode !== 229 && Ae(e, t);
5156
5157
  }
5157
5158
  function jl({ onSend: e, sendOnEnter: t, disabled: n, onFocus: r, className: i, children: a }) {
5158
- let { handle: o } = k();
5159
- return /* @__PURE__ */ J("div", {
5159
+ let { handle: o } = O();
5160
+ return /* @__PURE__ */ q("div", {
5160
5161
  "data-slot": "rich-chat-composer-input",
5161
5162
  className: i,
5162
5163
  onFocus: r,
@@ -5169,8 +5170,8 @@ function jl({ onSend: e, sendOnEnter: t, disabled: n, onFocus: r, className: i,
5169
5170
  //#endregion
5170
5171
  //#region lib/components/ui/widgets/editor/presets/rich-chat-composer/partials/format-buttons.tsx
5171
5172
  function Ml({ formatOpen: e, toolbarId: t, onFormatToggle: n, mentionable: r }) {
5172
- let { t: i } = M(), { editor: a } = k().handle, o = i("material.editor.formatting-toggle", "Text formatting"), s = i("material.editor.mention", "Mention someone");
5173
- return /* @__PURE__ */ Y(q, { children: [/* @__PURE__ */ J(N, {
5173
+ let { t: i } = j(), { editor: a } = O().handle, o = i("material.editor.formatting-toggle", "Text formatting"), s = i("material.editor.mention", "Mention someone");
5174
+ return /* @__PURE__ */ J(K, { children: [/* @__PURE__ */ q(M, {
5174
5175
  variant: "ghost",
5175
5176
  color: "default",
5176
5177
  tooltip: o,
@@ -5180,43 +5181,43 @@ function Ml({ formatOpen: e, toolbarId: t, onFormatToggle: n, mentionable: r })
5180
5181
  "aria-controls": e ? t : void 0,
5181
5182
  onClick: n,
5182
5183
  className: "size-8 shrink-0 rounded aria-pressed:bg-primary/10 aria-pressed:text-primary-text",
5183
- children: /* @__PURE__ */ J(Ft, {})
5184
- }), r && /* @__PURE__ */ J(N, {
5184
+ children: /* @__PURE__ */ q(It, {})
5185
+ }), r && /* @__PURE__ */ q(M, {
5185
5186
  variant: "ghost",
5186
5187
  color: "default",
5187
5188
  tooltip: s,
5188
5189
  "aria-label": s,
5189
5190
  onClick: () => a?.chain().focus().insertContent("@").run(),
5190
5191
  className: "size-8 shrink-0 rounded",
5191
- children: /* @__PURE__ */ J(Pt, {})
5192
+ children: /* @__PURE__ */ q(Ft, {})
5192
5193
  })] });
5193
5194
  }
5194
5195
  //#endregion
5195
5196
  //#region lib/components/ui/widgets/editor/presets/rich-chat-composer/partials/tools-row.tsx
5196
5197
  function Nl({ pill: e, formatOpen: n, toolbarId: r, onFormatToggle: i, mentionable: a, attach: o, actions: s }) {
5197
- let { handle: c } = k(), { editor: l } = c;
5198
- return /* @__PURE__ */ Y("div", {
5198
+ let { handle: c } = O(), { editor: l } = c;
5199
+ return /* @__PURE__ */ J("div", {
5199
5200
  "data-slot": "rich-chat-composer-tools",
5200
5201
  className: t("flex min-w-0 items-end gap-1", e ? "order-1" : "flex-1"),
5201
- children: [/* @__PURE__ */ J(Ce, {
5202
+ children: [/* @__PURE__ */ q(Se, {
5202
5203
  ...o,
5203
- actions: /* @__PURE__ */ Y(q, { children: [l?.storage.emoji && /* @__PURE__ */ J(we, { editor: l }), !e && /* @__PURE__ */ Y(q, { children: [/* @__PURE__ */ J(Ml, {
5204
+ actions: /* @__PURE__ */ J(K, { children: [l?.storage.emoji && /* @__PURE__ */ q(Ce, { editor: l }), !e && /* @__PURE__ */ J(K, { children: [/* @__PURE__ */ q(Ml, {
5204
5205
  formatOpen: n,
5205
5206
  toolbarId: r,
5206
5207
  onFormatToggle: i,
5207
5208
  mentionable: a
5208
5209
  }), s] })] })
5209
- }), !e && /* @__PURE__ */ J(fc, { className: "ms-auto self-center px-2" })]
5210
+ }), !e && /* @__PURE__ */ q(fc, { className: "ms-auto self-center px-2" })]
5210
5211
  });
5211
5212
  }
5212
5213
  //#endregion
5213
5214
  //#region lib/components/ui/widgets/editor/presets/rich-chat-composer/use-composer-editor.ts
5214
5215
  function Pl({ features: e, minRows: n = 1, maxRows: r = 8, placeholder: i, attributes: a, ...o }) {
5215
- let { t: s } = M(), c = U(() => sc().map((e) => e.name === "emoji" ? {
5216
+ let { t: s } = j(), c = U(() => sc().map((e) => e.name === "emoji" ? {
5216
5217
  ...e,
5217
5218
  toolbar: void 0
5218
5219
  } : e), []);
5219
- return h({
5220
+ return m({
5220
5221
  ...o,
5221
5222
  features: e ?? c,
5222
5223
  defaults: c,
@@ -5270,7 +5271,7 @@ var Rl = (e, t) => e.trim().length > 0 || t > 0;
5270
5271
  //#endregion
5271
5272
  //#region lib/components/ui/widgets/editor/presets/rich-chat-composer/use-composer-send.ts
5272
5273
  function zl({ handle: e, attachments: t, blocked: n, clear: r, onSend: i, onSchedule: a, onError: o }) {
5273
- let { t: s } = M(), [c, l] = G(!1), u = W(!1), d = () => Ll({
5274
+ let { t: s } = j(), [c, l] = G(!1), u = W(!1), d = () => Ll({
5274
5275
  getValue: () => e.getValue(),
5275
5276
  getJSON: () => e.editor?.getJSON() ?? { type: "doc" },
5276
5277
  getExtensions: () => e.editor?.extensionManager.extensions
@@ -5311,14 +5312,14 @@ function zl({ handle: e, attachments: t, blocked: n, clear: r, onSend: i, onSche
5311
5312
  function Bl({ handle: e, onSend: t, onSchedule: n, onError: r, disabled: i = !1, isLoading: a = !1, accept: o, maxFiles: s, attachments: c, onAttachmentsChange: l }) {
5312
5313
  let [u, d] = G([]), f = c ?? u, p = (e) => {
5313
5314
  c === void 0 && d(e), l?.(e);
5314
- }, m = W(null), h = ye({
5315
+ }, m = W(null), h = ve({
5315
5316
  attachments: f,
5316
5317
  accept: o,
5317
5318
  maxFiles: s,
5318
5319
  disabled: i,
5319
5320
  isLoading: a,
5320
5321
  onAttachmentsChange: p
5321
- }), g = !Rl(P({
5322
+ }), g = !Rl(N({
5322
5323
  editor: e.editor,
5323
5324
  selector: (e) => (e.editor?.getText().trim().length ?? 0) > 0
5324
5325
  }) ?? !1 ? "x" : "", f.length), _ = zl({
@@ -5347,7 +5348,7 @@ function Bl({ handle: e, onSend: t, onSchedule: n, onError: r, disabled: i = !1,
5347
5348
  //#endregion
5348
5349
  //#region lib/components/ui/widgets/editor/presets/rich-chat-composer/use-composer.ts
5349
5350
  function Vl(e) {
5350
- let { t } = M(), { disabled: n = !1, isLoading: r = !1, collapsed: i = "never" } = e, a = !n && !r, o = Pl({
5351
+ let { t } = j(), { disabled: n = !1, isLoading: r = !1, collapsed: i = "never" } = e, a = !n && !r, o = Pl({
5351
5352
  ...e,
5352
5353
  editable: a
5353
5354
  }), s = Bl({
@@ -5378,12 +5379,12 @@ function Vl(e) {
5378
5379
  //#endregion
5379
5380
  //#region lib/components/ui/widgets/editor/presets/rich-chat-composer/rich-chat-composer.tsx
5380
5381
  function Hl(e) {
5381
- let { t: n } = M(), { mentions: r, replyTo: a, onCancelReply: o, actions: s, className: l } = e, { sendOnEnter: u = !0, sendLabel: d, isLoading: f = !1 } = e, { look: p = "expressive" } = e, { handle: m, editable: h, composer: g, ui: v, attach: y } = Vl(e), { files: b, attachments: x } = g, { pill: S } = v;
5382
- return /* @__PURE__ */ J("form", {
5382
+ let { t: n } = j(), { mentions: r, replyTo: i, onCancelReply: o, actions: s, className: l } = e, { sendOnEnter: u = !0, sendLabel: d, isLoading: f = !1 } = e, { look: p = "expressive" } = e, { handle: m, editable: h, composer: _, ui: v, attach: y } = Vl(e), { files: b, attachments: x } = _, { pill: S } = v;
5383
+ return /* @__PURE__ */ q("form", {
5383
5384
  "data-slot": "rich-chat-composer",
5384
5385
  "data-look": p,
5385
5386
  "data-collapsed": S || void 0,
5386
- onSubmit: g.handleSubmit,
5387
+ onSubmit: _.handleSubmit,
5387
5388
  ...v.formEvents,
5388
5389
  className: El({
5389
5390
  pill: S,
@@ -5391,32 +5392,32 @@ function Hl(e) {
5391
5392
  editable: h,
5392
5393
  className: l
5393
5394
  }),
5394
- children: /* @__PURE__ */ Y(_, {
5395
+ children: /* @__PURE__ */ J(g, {
5395
5396
  editor: m,
5396
5397
  className: "contents",
5397
5398
  look: p,
5398
5399
  children: [
5399
- /* @__PURE__ */ J(Dl, {
5400
- error: b.errorMessage ?? g.sendError,
5401
- replyTo: a,
5400
+ /* @__PURE__ */ q(Dl, {
5401
+ error: b.errorMessage ?? _.sendError,
5402
+ replyTo: i,
5402
5403
  onCancelReply: o,
5403
5404
  attachments: x,
5404
5405
  isDisabled: b.isDisabled,
5405
- onAttachmentsChange: g.setAttachments
5406
+ onAttachmentsChange: _.setAttachments
5406
5407
  }),
5407
- /* @__PURE__ */ J(jl, {
5408
+ /* @__PURE__ */ q(jl, {
5408
5409
  className: t("min-w-0 px-2 py-1", S ? "order-2 flex-1" : "w-full"),
5409
5410
  onFocus: v.activate,
5410
- onSend: () => void g.send(),
5411
+ onSend: () => void _.send(),
5411
5412
  sendOnEnter: u,
5412
5413
  disabled: !h,
5413
- children: /* @__PURE__ */ J(ne, {})
5414
+ children: /* @__PURE__ */ q(D, {})
5414
5415
  }),
5415
- v.formatOpen && !S && /* @__PURE__ */ J(Ol, {
5416
+ v.formatOpen && !S && /* @__PURE__ */ q(Ol, {
5416
5417
  id: v.toolbarId,
5417
5418
  look: p
5418
5419
  }),
5419
- /* @__PURE__ */ J(Nl, {
5420
+ /* @__PURE__ */ q(Nl, {
5420
5421
  pill: S,
5421
5422
  formatOpen: v.formatOpen,
5422
5423
  toolbarId: v.toolbarId,
@@ -5425,20 +5426,20 @@ function Hl(e) {
5425
5426
  actions: s,
5426
5427
  attach: y
5427
5428
  }),
5428
- /* @__PURE__ */ J("div", {
5429
+ /* @__PURE__ */ q("div", {
5429
5430
  className: t("shrink-0", S && "order-3"),
5430
- children: /* @__PURE__ */ J(kl, {
5431
+ children: /* @__PURE__ */ q(kl, {
5431
5432
  sendLabel: d ?? n("material.chat.send", "Send"),
5432
5433
  stopLabel: n("material.chat.composer.stop", "Stop generating"),
5433
5434
  disabled: b.isDisabled,
5434
- empty: g.empty,
5435
+ empty: _.empty,
5435
5436
  onStop: f ? e.onStop : void 0,
5436
- onSchedule: g.schedule,
5437
+ onSchedule: _.schedule,
5437
5438
  squircle: p === "expressive"
5438
5439
  })
5439
5440
  }),
5440
- /* @__PURE__ */ J(c, {}),
5441
- /* @__PURE__ */ J(i, {})
5441
+ /* @__PURE__ */ q(c, {}),
5442
+ /* @__PURE__ */ q(a, {})
5442
5443
  ]
5443
5444
  })
5444
5445
  });
@@ -5446,24 +5447,24 @@ function Hl(e) {
5446
5447
  //#endregion
5447
5448
  //#region lib/components/ui/widgets/editor/index.ts
5448
5449
  var Ul = {
5449
- Root: _,
5450
- Content: ne,
5451
- Toolbar: O,
5450
+ Root: g,
5451
+ Content: D,
5452
+ Toolbar: E,
5452
5453
  Panel: Ar,
5453
5454
  AssistantPanel: or,
5454
5455
  BubbleMenu: c,
5455
5456
  CommentsRail: Di,
5456
5457
  CommentsPanel: vi,
5457
5458
  CommentComposer: Er,
5458
- SuggestionList: i,
5459
+ SuggestionList: a,
5459
5460
  Footer: wa,
5460
5461
  Outline: Ma,
5461
5462
  OutlinePanel: Pa,
5462
5463
  FindPanel: ha,
5463
5464
  BlockHandle: Ui,
5464
5465
  FocusExit: va,
5465
- Field: Pe,
5466
+ Field: Me,
5466
5467
  Presence: mr
5467
5468
  };
5468
5469
  //#endregion
5469
- export { Gc as CompactEditor, Kc as CompactEditorFormField, wl as DocumentEditor, Tl as DocumentEditorFormField, Ul as Editor, or as EditorAssistantPanel, Ui as EditorBlockHandle, c as EditorBubbleMenu, Er as EditorCommentComposer, vi as EditorCommentsPanel, Di as EditorCommentsRail, ne as EditorContent, Pe as EditorField, ha as EditorFindPanel, va as EditorFocusExit, wa as EditorFooter, Ma as EditorOutline, Pa as EditorOutlinePanel, Ar as EditorPanel, mr as EditorPresence, _ as EditorRoot, i as EditorSuggestionList, O as EditorToolbar, Hl as RichChatComposer, sc as chatKit, oc as compactKit, B as defineFeature, ac as documentKit, tc as editorFeatures, ic as formNodesKit, vt as fromMarkdown, Va as looksLikeMarkdown, yt as toHtml, _t as toJson, gt as toMarkdown, h as useEditor, k as useEditorContext, ur as useEditorPresence, xa as useEditorStats, La as useEditorUploads, nc as withFeatures, rc as withoutFeatures };
5470
+ export { Gc as CompactEditor, Kc as CompactEditorFormField, wl as DocumentEditor, Tl as DocumentEditorFormField, Ul as Editor, or as EditorAssistantPanel, Ui as EditorBlockHandle, c as EditorBubbleMenu, Er as EditorCommentComposer, vi as EditorCommentsPanel, Di as EditorCommentsRail, D as EditorContent, Me as EditorField, ha as EditorFindPanel, va as EditorFocusExit, wa as EditorFooter, Ma as EditorOutline, Pa as EditorOutlinePanel, Ar as EditorPanel, mr as EditorPresence, g as EditorRoot, a as EditorSuggestionList, E as EditorToolbar, Hl as RichChatComposer, sc as chatKit, oc as compactKit, B as defineFeature, ac as documentKit, tc as editorFeatures, ic as formNodesKit, vt as fromMarkdown, Va as looksLikeMarkdown, yt as toHtml, _t as toJson, gt as toMarkdown, m as useEditor, O as useEditorContext, ur as useEditorPresence, xa as useEditorStats, La as useEditorUploads, nc as withFeatures, rc as withoutFeatures };