@fileverse-dev/ddoc 3.0.78 → 3.0.79-patch-1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -4,7 +4,7 @@ var lt = (e, t, n) => gJ(e, typeof t != "symbol" ? t + "" : t, n);
4
4
  import * as Cn from "react";
5
5
  import Et, { createRef as mJ, memo as dh, createContext as yd, createElement as x2, useContext as xd, version as q7, useRef as Ve, useState as Be, useDebugValue as MD, useEffect as Re, forwardRef as sr, useLayoutEffect as ph, useCallback as Se, useMemo as Ft, Fragment as bJ, useReducer as yJ, cloneElement as IO, useImperativeHandle as LO } from "react";
6
6
  import UO, { flushSync as xJ, createPortal as C1 } from "react-dom";
7
- import { Drawer as PO, DrawerContent as vJ, DrawerHeader as FJ, DrawerTitle as wJ, DrawerClose as DJ, LucideIcon as Ue, useTheme as kJ, Button as qt, TextField as ea, DynamicDropdown as Zn, Tooltip as ln, IconButton as vn, Avatar as OD, cn as Ge, ButtonGroup as RD, Skeleton as rn, TextAreaFieldV2 as v2, DatePicker as EJ, TimePicker as CJ, Divider as uf, BottomDrawer as zO, DynamicModal as ID, Select as cf, SelectTrigger as df, SelectValue as F2, SelectContent as pf, SelectItem as hf, DynamicDropdownV2 as LD, Popover as ff, PopoverTrigger as gf, PopoverContent as mf, toast as UD, UltimateIcons as _J, PopoverClose as $O, SelectGroup as HO, SelectLabel as AJ, Checkbox as SJ, DrawerTrigger as V7, AnimatedLoader as TJ, Label as jJ, DynamicDrawer as BJ, DynamicDrawerV2 as NJ, Tag as w2, TagInput as WO } from "@fileverse/ui";
7
+ import { Drawer as PO, DrawerContent as vJ, DrawerHeader as FJ, DrawerTitle as wJ, DrawerClose as DJ, LucideIcon as Ue, useTheme as kJ, Button as qt, TextField as ea, DynamicDropdown as Zn, Tooltip as on, IconButton as vn, Avatar as OD, cn as Ge, ButtonGroup as RD, Skeleton as rn, TextAreaFieldV2 as v2, DatePicker as EJ, TimePicker as CJ, Divider as uf, BottomDrawer as zO, DynamicModal as ID, Select as cf, SelectTrigger as df, SelectValue as F2, SelectContent as pf, SelectItem as hf, DynamicDropdownV2 as LD, Popover as ff, PopoverTrigger as gf, PopoverContent as mf, toast as UD, UltimateIcons as _J, PopoverClose as $O, SelectGroup as HO, SelectLabel as AJ, Checkbox as SJ, DrawerTrigger as V7, AnimatedLoader as TJ, Label as jJ, DynamicDrawer as BJ, DynamicDrawerV2 as NJ, Tag as w2, TagInput as WO } from "@fileverse/ui";
8
8
  import { isAddress as MJ, createPublicClient as OJ, http as RJ } from "viem";
9
9
  import { mainnet as IJ } from "viem/chains";
10
10
  import { motion as hh, AnimatePresence as fh } from "framer-motion";
@@ -37624,7 +37624,7 @@ const $0 = (e) => {
37624
37624
  const u = (c) => {
37625
37625
  c.preventDefault();
37626
37626
  };
37627
- return r ? /* @__PURE__ */ F.jsx(ln, { text: r, children: /* @__PURE__ */ F.jsx(
37627
+ return r ? /* @__PURE__ */ F.jsx(on, { text: r, children: /* @__PURE__ */ F.jsx(
37628
37628
  vn,
37629
37629
  {
37630
37630
  ref: l,
@@ -37836,14 +37836,14 @@ const $0 = (e) => {
37836
37836
  /* @__PURE__ */ F.jsxs("div", { className: "flex justify-between items-center", children: [
37837
37837
  /* @__PURE__ */ F.jsx(vz, { username: e, createdAt: r }),
37838
37838
  f === "2" ? /* @__PURE__ */ F.jsx(
37839
- ln,
37839
+ on,
37840
37840
  {
37841
37841
  text: p ? "Available in a moment" : "",
37842
37842
  sideOffset: 0,
37843
37843
  position: "top",
37844
37844
  children: /* @__PURE__ */ F.jsxs(RD, { className: "!space-x-0", children: [
37845
37845
  !u && o && o.length === 0 && /* @__PURE__ */ F.jsx(
37846
- ln,
37846
+ on,
37847
37847
  {
37848
37848
  text: p ? "" : "Add reply",
37849
37849
  sideOffset: 0,
@@ -37862,7 +37862,7 @@ const $0 = (e) => {
37862
37862
  }
37863
37863
  ),
37864
37864
  /* @__PURE__ */ F.jsx(
37865
- ln,
37865
+ on,
37866
37866
  {
37867
37867
  text: p ? "" : "Coming soon",
37868
37868
  sideOffset: 0,
@@ -37934,7 +37934,7 @@ const $0 = (e) => {
37934
37934
  )
37935
37935
  ] })
37936
37936
  }
37937
- ) : /* @__PURE__ */ F.jsx(ln, { text: "Actions are not supported for old comments", children: /* @__PURE__ */ F.jsx(
37937
+ ) : /* @__PURE__ */ F.jsx(on, { text: "Actions are not supported for old comments", children: /* @__PURE__ */ F.jsx(
37938
37938
  vn,
37939
37939
  {
37940
37940
  icon: "Info",
@@ -38104,7 +38104,7 @@ const $0 = (e) => {
38104
38104
  ")"
38105
38105
  ] }),
38106
38106
  /* @__PURE__ */ F.jsx("div", { className: "relative flex items-center gap-1", children: (S || i) && !oe && /* @__PURE__ */ F.jsxs(
38107
- ln,
38107
+ on,
38108
38108
  {
38109
38109
  text: o ? "Available in a moment" : "",
38110
38110
  sideOffset: 0,
@@ -38151,7 +38151,7 @@ const $0 = (e) => {
38151
38151
  "more-actions"
38152
38152
  ),
38153
38153
  /* @__PURE__ */ F.jsx(
38154
- ln,
38154
+ on,
38155
38155
  {
38156
38156
  text: o ? "" : D != null && D.resolved ? "Unresolve" : "Resolve",
38157
38157
  sideOffset: 5,
@@ -40432,7 +40432,7 @@ ${O.getHTML()}`
40432
40432
  onClose: () => {
40433
40433
  t(!1), p(!1), c(!1);
40434
40434
  },
40435
- anchorTrigger: /* @__PURE__ */ F.jsx(ln, { text: "Export/Import", children: /* @__PURE__ */ F.jsx(
40435
+ anchorTrigger: /* @__PURE__ */ F.jsx(on, { text: "Export/Import", children: /* @__PURE__ */ F.jsx(
40436
40436
  vn,
40437
40437
  {
40438
40438
  icon: "File",
@@ -40611,7 +40611,7 @@ ${O.getHTML()}`
40611
40611
  Zn,
40612
40612
  {
40613
40613
  sideOffset: 8,
40614
- anchorTrigger: /* @__PURE__ */ F.jsx(ln, { text: e.title, children: /* @__PURE__ */ F.jsx(vn, { icon: e.icon, variant: "ghost", size: "md" }) }),
40614
+ anchorTrigger: /* @__PURE__ */ F.jsx(on, { text: e.title, children: /* @__PURE__ */ F.jsx(vn, { icon: e.icon, variant: "ghost", size: "md" }) }),
40615
40615
  content: n(e)
40616
40616
  },
40617
40617
  e.title
@@ -40755,7 +40755,7 @@ ${O.getHTML()}`
40755
40755
  "markdown-dropdown-transition"
40756
40756
  ),
40757
40757
  /* @__PURE__ */ F.jsx("div", { className: "w-[1px] h-4 vertical-divider mx-1" }),
40758
- /* @__PURE__ */ F.jsx("div", { className: "flex gap-1 justify-center items-center", children: D.map((B, Y) => B ? /* @__PURE__ */ F.jsx(ln, { text: B.title, children: h ? Fo(
40758
+ /* @__PURE__ */ F.jsx("div", { className: "flex gap-1 justify-center items-center", children: D.map((B, Y) => B ? /* @__PURE__ */ F.jsx(on, { text: B.title, children: h ? Fo(
40759
40759
  /* @__PURE__ */ F.jsx(
40760
40760
  rn,
40761
40761
  {
@@ -40981,7 +40981,7 @@ ${O.getHTML()}`
40981
40981
  {
40982
40982
  align: "end",
40983
40983
  sideOffset: 8,
40984
- anchorTrigger: /* @__PURE__ */ F.jsx(ln, { text: "More", children: /* @__PURE__ */ F.jsx(
40984
+ anchorTrigger: /* @__PURE__ */ F.jsx(on, { text: "More", children: /* @__PURE__ */ F.jsx(
40985
40985
  vn,
40986
40986
  {
40987
40987
  id: "more-dropdown",
@@ -41029,7 +41029,7 @@ ${O.getHTML()}`
41029
41029
  /* @__PURE__ */ F.jsx(rn, { className: "w-[36px] h-[36px] rounded-sm" }),
41030
41030
  B.title + "skeleton"
41031
41031
  ) : Po(
41032
- /* @__PURE__ */ F.jsx(ln, { text: B.title, children: /* @__PURE__ */ F.jsx(
41032
+ /* @__PURE__ */ F.jsx(on, { text: B.title, children: /* @__PURE__ */ F.jsx(
41033
41033
  tr,
41034
41034
  {
41035
41035
  icon: B.icon,
@@ -51621,7 +51621,7 @@ const Hxe = Et.memo(
51621
51621
  text: e,
51622
51622
  position: t = "bottom",
51623
51623
  children: n
51624
- }) => /* @__PURE__ */ F.jsx(ln, { text: e, position: t, children: n })
51624
+ }) => /* @__PURE__ */ F.jsx(on, { text: e, position: t, children: n })
51625
51625
  ), Gxe = Et.memo(
51626
51626
  ({ children: e }) => /* @__PURE__ */ F.jsx(
51627
51627
  xx,
@@ -83320,7 +83320,7 @@ var fy = function(t) {
83320
83320
  }, Dr = function(t, n, r, o) {
83321
83321
  o === void 0 && (o = [null, null]);
83322
83322
  for (var i = [], s = 0; s < t.length; s++) {
83323
- var a = on(t[s], n);
83323
+ var a = sn(t[s], n);
83324
83324
  if (a instanceof fg) {
83325
83325
  var l = a.children;
83326
83326
  i.push(...l);
@@ -83384,7 +83384,7 @@ var fy = function(t) {
83384
83384
  }, F1 = function(t, n) {
83385
83385
  var r = ["nulldelimiter"].concat(t.baseSizingClasses());
83386
83386
  return vl(n.concat(r));
83387
- }, on = function(t, n, r) {
83387
+ }, sn = function(t, n, r) {
83388
83388
  if (!t)
83389
83389
  return vl();
83390
83390
  if (py[t.type]) {
@@ -83884,10 +83884,10 @@ function _3(e) {
83884
83884
  }
83885
83885
  var ZE = (e, t) => {
83886
83886
  var n, r, o;
83887
- e && e.type === "supsub" ? (r = Ut(e.base, "accent"), n = r.base, e.base = n, o = wTe(on(e, t)), e.base = r) : (r = Ut(e, "accent"), n = r.base);
83888
- var i = on(n, t.havingCrampedStyle()), s = r.isShifty && un.isCharacterBox(n), a = 0;
83887
+ e && e.type === "supsub" ? (r = Ut(e.base, "accent"), n = r.base, e.base = n, o = wTe(sn(e, t)), e.base = r) : (r = Ut(e, "accent"), n = r.base);
83888
+ var i = sn(n, t.havingCrampedStyle()), s = r.isShifty && un.isCharacterBox(n), a = 0;
83889
83889
  if (s) {
83890
- var l = un.getBaseElem(n), u = on(l, t.havingCrampedStyle());
83890
+ var l = un.getBaseElem(n), u = sn(l, t.havingCrampedStyle());
83891
83891
  a = PN(u).skew;
83892
83892
  }
83893
83893
  var c = r.label === "\\c", d = c ? i.height + i.depth : Math.min(i.height, t.fontMetrics().xHeight), p;
@@ -83999,7 +83999,7 @@ it({
83999
83999
  };
84000
84000
  },
84001
84001
  htmlBuilder: (e, t) => {
84002
- var n = on(e.base, t), r = Fl.svgSpan(e, t), o = e.label === "\\utilde" ? 0.12 : 0, i = _e.makeVList({
84002
+ var n = sn(e.base, t), r = Fl.svgSpan(e, t), o = e.label === "\\utilde" ? 0.12 : 0, i = _e.makeVList({
84003
84003
  positionType: "top",
84004
84004
  positionData: n.height,
84005
84005
  children: [{
@@ -84077,10 +84077,10 @@ it({
84077
84077
  // Flow is unable to correctly infer the type of `group`, even though it's
84078
84078
  // unambiguously determined from the passed-in `type` above.
84079
84079
  htmlBuilder(e, t) {
84080
- var n = t.style, r = t.havingStyle(n.sup()), o = _e.wrapFragment(on(e.body, r, t), t), i = e.label.slice(0, 2) === "\\x" ? "x" : "cd";
84080
+ var n = t.style, r = t.havingStyle(n.sup()), o = _e.wrapFragment(sn(e.body, r, t), t), i = e.label.slice(0, 2) === "\\x" ? "x" : "cd";
84081
84081
  o.classes.push(i + "-arrow-pad");
84082
84082
  var s;
84083
- e.below && (r = t.havingStyle(n.sub()), s = _e.wrapFragment(on(e.below, r, t), t), s.classes.push(i + "-arrow-pad"));
84083
+ e.below && (r = t.havingStyle(n.sub()), s = _e.wrapFragment(sn(e.below, r, t), t), s.classes.push(i + "-arrow-pad"));
84084
84084
  var a = Fl.svgSpan(e, t), l = -t.fontMetrics().axisHeight + 0.5 * a.height, u = -t.fontMetrics().axisHeight - 0.5 * a.height - 0.111;
84085
84085
  (o.depth > 0.25 || e.label === "\\xleftequilibrium") && (u -= o.depth);
84086
84086
  var c;
@@ -84405,7 +84405,7 @@ it({
84405
84405
  };
84406
84406
  },
84407
84407
  htmlBuilder(e, t) {
84408
- var n = t.havingStyle(t.style.sup()), r = _e.wrapFragment(on(e.label, n, t), t);
84408
+ var n = t.havingStyle(t.style.sup()), r = _e.wrapFragment(sn(e.label, n, t), t);
84409
84409
  return r.classes.push("cd-label-" + e.side), r.style.bottom = Xe(0.8 - r.depth), r.height = 0, r.depth = 0, r;
84410
84410
  },
84411
84411
  mathmlBuilder(e, t) {
@@ -84430,7 +84430,7 @@ it({
84430
84430
  };
84431
84431
  },
84432
84432
  htmlBuilder(e, t) {
84433
- var n = _e.wrapFragment(on(e.fragment, t), t);
84433
+ var n = _e.wrapFragment(sn(e.fragment, t), t);
84434
84434
  return n.classes.push("cd-vert-arrow"), n;
84435
84435
  },
84436
84436
  mathmlBuilder(e, t) {
@@ -85115,7 +85115,7 @@ it({
85115
85115
  }
85116
85116
  });
85117
85117
  var QE = (e, t) => {
85118
- var n = _e.wrapFragment(on(e.body, t), t), r = e.label.slice(1), o = t.sizeMultiplier, i, s = 0, a = un.isCharacterBox(e.body);
85118
+ var n = _e.wrapFragment(sn(e.body, t), t), r = e.label.slice(1), o = t.sizeMultiplier, i, s = 0, a = un.isCharacterBox(e.body);
85119
85119
  if (r === "sout")
85120
85120
  i = _e.makeSpan(["stretchy", "sout"]), i.height = t.fontMetrics().defaultRuleThickness / o, s = -0.5 * t.fontMetrics().xHeight;
85121
85121
  else if (r === "phase") {
@@ -85477,7 +85477,7 @@ var Sa = function(t, n) {
85477
85477
  a < k.length && (a = k.length);
85478
85478
  var C = new Array(k.length);
85479
85479
  for (o = 0; o < k.length; ++o) {
85480
- var A = on(k[o], n);
85480
+ var A = sn(k[o], n);
85481
85481
  D < A.depth && (D = A.depth), w < A.height && (w = A.height), C[o] = A;
85482
85482
  }
85483
85483
  var M = t.rowGaps[r], j = 0;
@@ -85940,7 +85940,7 @@ it({
85940
85940
  });
85941
85941
  var sY = (e, t) => {
85942
85942
  var n = e.font, r = t.withFont(n);
85943
- return on(e.body, r);
85943
+ return sn(e.body, r);
85944
85944
  }, aY = (e, t) => {
85945
85945
  var n = e.font, r = t.withFont(n);
85946
85946
  return An(e.body, r);
@@ -86049,13 +86049,13 @@ var lY = (e, t) => {
86049
86049
  }, r7 = (e, t) => {
86050
86050
  var n = lY(e.size, t.style), r = n.fracNum(), o = n.fracDen(), i;
86051
86051
  i = t.havingStyle(r);
86052
- var s = on(e.numer, i, t);
86052
+ var s = sn(e.numer, i, t);
86053
86053
  if (e.continued) {
86054
86054
  var a = 8.5 / t.fontMetrics().ptPerEm, l = 3.5 / t.fontMetrics().ptPerEm;
86055
86055
  s.height = s.height < a ? a : s.height, s.depth = s.depth < l ? l : s.depth;
86056
86056
  }
86057
86057
  i = t.havingStyle(o);
86058
- var u = on(e.denom, i, t), c, d, p;
86058
+ var u = sn(e.denom, i, t), c, d, p;
86059
86059
  e.hasBarLine ? (e.barSize ? (d = qn(e.barSize, t), c = _e.makeLineSpan("frac-line", t, d)) : c = _e.makeLineSpan("frac-line", t), d = c.height, p = c.height) : (c = null, d = 0, p = t.fontMetrics().defaultRuleThickness);
86060
86060
  var h, f, g;
86061
86061
  n.size === bt.DISPLAY.size || e.size === "display" ? (h = t.fontMetrics().num1, d > 0 ? f = 3 * p : f = 7 * p, g = t.fontMetrics().denom1) : (d > 0 ? (h = t.fontMetrics().num2, f = p) : (h = t.fontMetrics().num3, f = 3 * p), g = t.fontMetrics().denom2);
@@ -86360,8 +86360,8 @@ it({
86360
86360
  });
86361
86361
  var uY = (e, t) => {
86362
86362
  var n = t.style, r, o;
86363
- e.type === "supsub" ? (r = e.sup ? on(e.sup, t.havingStyle(n.sup()), t) : on(e.sub, t.havingStyle(n.sub()), t), o = Ut(e.base, "horizBrace")) : o = Ut(e, "horizBrace");
86364
- var i = on(o.base, t.havingBaseStyle(bt.DISPLAY)), s = Fl.svgSpan(o, t), a;
86363
+ e.type === "supsub" ? (r = e.sup ? sn(e.sup, t.havingStyle(n.sup()), t) : sn(e.sub, t.havingStyle(n.sub()), t), o = Ut(e.base, "horizBrace")) : o = Ut(e, "horizBrace");
86364
+ var i = sn(o.base, t.havingBaseStyle(bt.DISPLAY)), s = Fl.svgSpan(o, t), a;
86365
86365
  if (o.isOver ? (a = _e.makeVList({
86366
86366
  positionType: "firstBaseline",
86367
86367
  children: [{
@@ -86785,7 +86785,7 @@ it({
86785
86785
  },
86786
86786
  htmlBuilder: (e, t) => {
86787
86787
  var n;
86788
- e.alignment === "clap" ? (n = _e.makeSpan([], [on(e.body, t)]), n = _e.makeSpan(["inner"], [n], t)) : n = _e.makeSpan(["inner"], [on(e.body, t)]);
86788
+ e.alignment === "clap" ? (n = _e.makeSpan([], [sn(e.body, t)]), n = _e.makeSpan(["inner"], [n], t)) : n = _e.makeSpan(["inner"], [sn(e.body, t)]);
86789
86789
  var r = _e.makeSpan(["fix"], []), o = _e.makeSpan([e.alignment], [n, r], t), i = _e.makeSpan(["strut"]);
86790
86790
  return i.style.height = Xe(o.height + o.depth), o.depth && (i.style.verticalAlign = Xe(-o.depth)), o.children.unshift(i), o = _e.makeSpan(["thinbox"], [o], t), _e.makeSpan(["mord", "vbox"], [o], t);
86791
86791
  },
@@ -86881,14 +86881,14 @@ var cY = (e, t, n, r, o, i, s) => {
86881
86881
  e = _e.makeSpan([], [e]);
86882
86882
  var a = n && un.isCharacterBox(n), l, u;
86883
86883
  if (t) {
86884
- var c = on(t, r.havingStyle(o.sup()), r);
86884
+ var c = sn(t, r.havingStyle(o.sup()), r);
86885
86885
  u = {
86886
86886
  elem: c,
86887
86887
  kern: Math.max(r.fontMetrics().bigOpSpacing1, r.fontMetrics().bigOpSpacing3 - c.depth)
86888
86888
  };
86889
86889
  }
86890
86890
  if (n) {
86891
- var d = on(n, r.havingStyle(o.sub()), r);
86891
+ var d = sn(n, r.havingStyle(o.sub()), r);
86892
86892
  l = {
86893
86893
  elem: d,
86894
86894
  kern: Math.max(r.fontMetrics().bigOpSpacing2, r.fontMetrics().bigOpSpacing4 - d.height)
@@ -87256,7 +87256,7 @@ it({
87256
87256
  };
87257
87257
  },
87258
87258
  htmlBuilder(e, t) {
87259
- var n = on(e.body, t.havingCrampedStyle()), r = _e.makeLineSpan("overline-line", t), o = t.fontMetrics().defaultRuleThickness, i = _e.makeVList({
87259
+ var n = sn(e.body, t.havingCrampedStyle()), r = _e.makeLineSpan("overline-line", t), o = t.fontMetrics().defaultRuleThickness, i = _e.makeVList({
87260
87260
  positionType: "firstBaseline",
87261
87261
  children: [{
87262
87262
  type: "elem",
@@ -87325,7 +87325,7 @@ it({
87325
87325
  };
87326
87326
  },
87327
87327
  htmlBuilder: (e, t) => {
87328
- var n = _e.makeSpan([], [on(e.body, t.withPhantom())]);
87328
+ var n = _e.makeSpan([], [sn(e.body, t.withPhantom())]);
87329
87329
  if (n.height = 0, n.depth = 0, n.children)
87330
87330
  for (var r = 0; r < n.children.length; r++)
87331
87331
  n.children[r].height = 0, n.children[r].depth = 0;
@@ -87360,7 +87360,7 @@ it({
87360
87360
  };
87361
87361
  },
87362
87362
  htmlBuilder: (e, t) => {
87363
- var n = _e.makeSpan(["inner"], [on(e.body, t.withPhantom())]), r = _e.makeSpan(["fix"], []);
87363
+ var n = _e.makeSpan(["inner"], [sn(e.body, t.withPhantom())]), r = _e.makeSpan(["fix"], []);
87364
87364
  return _e.makeSpan(["mord", "rlap"], [n, r], t);
87365
87365
  },
87366
87366
  mathmlBuilder: (e, t) => {
@@ -87388,7 +87388,7 @@ it({
87388
87388
  };
87389
87389
  },
87390
87390
  htmlBuilder(e, t) {
87391
- var n = on(e.body, t), r = qn(e.dy, t);
87391
+ var n = sn(e.body, t), r = qn(e.dy, t);
87392
87392
  return _e.makeVList({
87393
87393
  positionType: "shift",
87394
87394
  positionData: -r,
@@ -87528,7 +87528,7 @@ it({
87528
87528
  };
87529
87529
  },
87530
87530
  htmlBuilder: (e, t) => {
87531
- var n = _e.makeSpan([], [on(e.body, t)]);
87531
+ var n = _e.makeSpan([], [sn(e.body, t)]);
87532
87532
  if (!e.smashHeight && !e.smashDepth)
87533
87533
  return n;
87534
87534
  if (e.smashHeight && (n.height = 0, n.children))
@@ -87570,7 +87570,7 @@ it({
87570
87570
  };
87571
87571
  },
87572
87572
  htmlBuilder(e, t) {
87573
- var n = on(e.body, t.havingCrampedStyle());
87573
+ var n = sn(e.body, t.havingCrampedStyle());
87574
87574
  n.height === 0 && (n.height = t.fontMetrics().xHeight), n = _e.wrapFragment(n, t);
87575
87575
  var r = t.fontMetrics(), o = r.defaultRuleThickness, i = o;
87576
87576
  t.style.id < bt.TEXT.id && (i = t.fontMetrics().xHeight);
@@ -87600,7 +87600,7 @@ it({
87600
87600
  }]
87601
87601
  }, t);
87602
87602
  if (e.index) {
87603
- var f = t.havingStyle(bt.SCRIPTSCRIPT), g = on(e.index, f, t), m = 0.6 * (h.height - h.depth), b = _e.makeVList({
87603
+ var f = t.havingStyle(bt.SCRIPTSCRIPT), g = sn(e.index, f, t), m = 0.6 * (h.height - h.depth), b = _e.makeVList({
87604
87604
  positionType: "shift",
87605
87605
  positionData: -m,
87606
87606
  children: [{
@@ -87693,14 +87693,14 @@ Ad({
87693
87693
  base: r,
87694
87694
  sup: o,
87695
87695
  sub: i
87696
- } = e, s = on(r, t), a, l, u = t.fontMetrics(), c = 0, d = 0, p = r && un.isCharacterBox(r);
87696
+ } = e, s = sn(r, t), a, l, u = t.fontMetrics(), c = 0, d = 0, p = r && un.isCharacterBox(r);
87697
87697
  if (o) {
87698
87698
  var h = t.havingStyle(t.style.sup());
87699
- a = on(o, h, t), p || (c = s.height - h.fontMetrics().supDrop * h.sizeMultiplier / t.sizeMultiplier);
87699
+ a = sn(o, h, t), p || (c = s.height - h.fontMetrics().supDrop * h.sizeMultiplier / t.sizeMultiplier);
87700
87700
  }
87701
87701
  if (i) {
87702
87702
  var f = t.havingStyle(t.style.sub());
87703
- l = on(i, f, t), p || (d = s.depth + f.fontMetrics().subDrop * f.sizeMultiplier / t.sizeMultiplier);
87703
+ l = sn(i, f, t), p || (d = s.depth + f.fontMetrics().subDrop * f.sizeMultiplier / t.sizeMultiplier);
87704
87704
  }
87705
87705
  var g;
87706
87706
  t.style === bt.DISPLAY ? g = u.sup1 : t.style.cramped ? g = u.sup3 : g = u.sup2;
@@ -87963,7 +87963,7 @@ it({
87963
87963
  };
87964
87964
  },
87965
87965
  htmlBuilder(e, t) {
87966
- var n = on(e.body, t), r = _e.makeLineSpan("underline-line", t), o = t.fontMetrics().defaultRuleThickness, i = _e.makeVList({
87966
+ var n = sn(e.body, t), r = _e.makeLineSpan("underline-line", t), o = t.fontMetrics().defaultRuleThickness, i = _e.makeVList({
87967
87967
  positionType: "top",
87968
87968
  positionData: n.height,
87969
87969
  children: [{
@@ -88009,7 +88009,7 @@ it({
88009
88009
  };
88010
88010
  },
88011
88011
  htmlBuilder(e, t) {
88012
- var n = on(e.body, t), r = t.fontMetrics().axisHeight, o = 0.5 * (n.height - r - (n.depth + r));
88012
+ var n = sn(e.body, t), r = t.fontMetrics().axisHeight, o = 0.5 * (n.height - r - (n.depth + r));
88013
88013
  return _e.makeVList({
88014
88014
  positionType: "shift",
88015
88015
  positionData: o,
@@ -93330,7 +93330,7 @@ function nMe({
93330
93330
  value: a,
93331
93331
  onValueChange: (y) => t({ language: y }),
93332
93332
  children: [
93333
- /* @__PURE__ */ F.jsx(df, { className: "!min-w-24 text-helper-text-sm h-7 px-2 py-1 color-bg-secondary border-none", children: /* @__PURE__ */ F.jsxs(ln, { text: "Select language", children: [
93333
+ /* @__PURE__ */ F.jsx(df, { className: "!min-w-24 text-helper-text-sm h-7 px-2 py-1 color-bg-secondary border-none", children: /* @__PURE__ */ F.jsxs(on, { text: "Select language", children: [
93334
93334
  /* @__PURE__ */ F.jsx(F2, { placeholder: "Select language" }),
93335
93335
  /* @__PURE__ */ F.jsx("span", { className: "w-1" })
93336
93336
  ] }) }),
@@ -93357,7 +93357,7 @@ function nMe({
93357
93357
  }
93358
93358
  ),
93359
93359
  /* @__PURE__ */ F.jsx("div", { className: "w-[1px] h-4 vertical-divider mx-1" }),
93360
- /* @__PURE__ */ F.jsx(ln, { text: "Copy code", children: /* @__PURE__ */ F.jsx(
93360
+ /* @__PURE__ */ F.jsx(on, { text: "Copy code", children: /* @__PURE__ */ F.jsx(
93361
93361
  qt,
93362
93362
  {
93363
93363
  variant: "ghost",
@@ -93391,7 +93391,7 @@ function nMe({
93391
93391
  }
93392
93392
  ) }),
93393
93393
  /* @__PURE__ */ F.jsx("div", { className: "w-[1px] h-4 vertical-divider mx-1" }),
93394
- /* @__PURE__ */ F.jsx(ln, { text: "Line numbers", children: /* @__PURE__ */ F.jsx(
93394
+ /* @__PURE__ */ F.jsx(on, { text: "Line numbers", children: /* @__PURE__ */ F.jsx(
93395
93395
  qt,
93396
93396
  {
93397
93397
  variant: "ghost",
@@ -93405,7 +93405,7 @@ function nMe({
93405
93405
  }
93406
93406
  ) }),
93407
93407
  /* @__PURE__ */ F.jsx("div", { className: "w-[1px] h-4 vertical-divider mx-1" }),
93408
- /* @__PURE__ */ F.jsx(ln, { text: "Word wrap", children: /* @__PURE__ */ F.jsx(
93408
+ /* @__PURE__ */ F.jsx(on, { text: "Word wrap", children: /* @__PURE__ */ F.jsx(
93409
93409
  qt,
93410
93410
  {
93411
93411
  variant: "ghost",
@@ -93425,7 +93425,7 @@ function nMe({
93425
93425
  value: String(d),
93426
93426
  onValueChange: (y) => t({ tabSize: Number(y) }),
93427
93427
  children: [
93428
- /* @__PURE__ */ F.jsx(df, { className: "w-full text-helper-text-sm h-7 px-2 py-1 color-bg-secondary border-none", children: /* @__PURE__ */ F.jsxs(ln, { text: "Tab size", children: [
93428
+ /* @__PURE__ */ F.jsx(df, { className: "w-full text-helper-text-sm h-7 px-2 py-1 color-bg-secondary border-none", children: /* @__PURE__ */ F.jsxs(on, { text: "Tab size", children: [
93429
93429
  /* @__PURE__ */ F.jsxs("span", { className: "!hidden sm:!block", children: [
93430
93430
  "Tab: ",
93431
93431
  d
@@ -93452,7 +93452,7 @@ function nMe({
93452
93452
  }
93453
93453
  )
93454
93454
  ] }),
93455
- /* @__PURE__ */ F.jsx(ln, { text: "Delete code block", children: /* @__PURE__ */ F.jsx(
93455
+ /* @__PURE__ */ F.jsx(on, { text: "Delete code block", children: /* @__PURE__ */ F.jsx(
93456
93456
  Ue,
93457
93457
  {
93458
93458
  name: "Trash2",
@@ -93471,7 +93471,7 @@ function nMe({
93471
93471
  "absolute top-3 right-3 hidden z-10 color-bg-default",
93472
93472
  l && "flex"
93473
93473
  ),
93474
- children: /* @__PURE__ */ F.jsx(ln, { text: "Copy code", children: /* @__PURE__ */ F.jsxs("div", { className: "relative w-4 h-4", onClick: b, children: [
93474
+ children: /* @__PURE__ */ F.jsx(on, { text: "Copy code", children: /* @__PURE__ */ F.jsxs("div", { className: "relative w-4 h-4", onClick: b, children: [
93475
93475
  /* @__PURE__ */ F.jsx(
93476
93476
  Ue,
93477
93477
  {
@@ -167874,7 +167874,7 @@ const qOe = ({
167874
167874
  }
167875
167875
  }
167876
167876
  ) }),
167877
- /* @__PURE__ */ F.jsx(ln, { sideOffset: 5, position: "bottom", text: "Remove page breaker", children: /* @__PURE__ */ F.jsx(
167877
+ /* @__PURE__ */ F.jsx(on, { sideOffset: 5, position: "bottom", text: "Remove page breaker", children: /* @__PURE__ */ F.jsx(
167878
167878
  Ue,
167879
167879
  {
167880
167880
  name: "PageBreakRemove",
@@ -169654,31 +169654,31 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
169654
169654
  initialContent: i,
169655
169655
  collaboration: s,
169656
169656
  isReady: a,
169657
- awareness: l,
169658
- disableInlineComment: u,
169659
- onCommentInteraction: c,
169660
- onError: d,
169661
- ipfsImageUploadFn: p,
169662
- metadataProxyUrl: h,
169663
- onCopyHeadingLink: f,
169664
- ipfsImageFetchFn: g,
169665
- fetchV1ImageFn: m,
169666
- isConnected: b,
169667
- activeModel: y,
169668
- maxTokens: x,
169669
- isAIAgentEnabled: v,
169670
- setCharacterCount: k,
169671
- setWordCount: w,
169672
- setIsContentLoading: D,
169673
- setIsCollabContentLoading: C,
169674
- unFocused: A,
169675
- zoomLevel: M,
169676
- isPresentationMode: j,
169677
- onInvalidContentError: _,
169678
- ignoreCorruptedData: O,
169679
- onCollaboratorChange: E,
169680
- onConnect: T,
169681
- hasCollabContentInitialised: S,
169657
+ isSyncing: l,
169658
+ awareness: u,
169659
+ disableInlineComment: c,
169660
+ onCommentInteraction: d,
169661
+ onError: p,
169662
+ ipfsImageUploadFn: h,
169663
+ metadataProxyUrl: f,
169664
+ onCopyHeadingLink: g,
169665
+ ipfsImageFetchFn: m,
169666
+ fetchV1ImageFn: b,
169667
+ isConnected: y,
169668
+ activeModel: x,
169669
+ maxTokens: v,
169670
+ isAIAgentEnabled: k,
169671
+ setCharacterCount: w,
169672
+ setWordCount: D,
169673
+ setIsContentLoading: C,
169674
+ setIsCollabContentLoading: A,
169675
+ unFocused: M,
169676
+ zoomLevel: j,
169677
+ isPresentationMode: _,
169678
+ onInvalidContentError: O,
169679
+ ignoreCorruptedData: E,
169680
+ onCollaboratorChange: T,
169681
+ onConnect: S,
169682
169682
  initialiseYjsIndexedDbProvider: L,
169683
169683
  externalExtensions: P,
169684
169684
  isContentLoading: $,
@@ -169686,20 +169686,20 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
169686
169686
  theme: z,
169687
169687
  editorRef: U
169688
169688
  }) => {
169689
- const X = (s == null ? void 0 : s.enabled) === !0, oe = X ? s.connection : null, { activeCommentId: ee, setActiveCommentId: K, focusCommentWithActiveId: re } = NRe(), J = !!(y && v), { tocItems: ae, setTocItems: B, handleTocUpdate: Y } = MRe(q), { extensions: Q } = ORe({
169689
+ const X = (s == null ? void 0 : s.enabled) === !0, oe = X ? s.connection : null, { activeCommentId: ee, setActiveCommentId: K, focusCommentWithActiveId: re } = NRe(), J = !!(x && k), { tocItems: ae, setTocItems: B, handleTocUpdate: Y } = MRe(q), { extensions: Q } = ORe({
169690
169690
  ydoc: e,
169691
- onError: d,
169692
- ipfsImageUploadFn: p,
169693
- metadataProxyUrl: h,
169694
- onCopyHeadingLink: f,
169695
- ipfsImageFetchFn: g,
169696
- fetchV1ImageFn: m,
169691
+ onError: p,
169692
+ ipfsImageUploadFn: h,
169693
+ metadataProxyUrl: f,
169694
+ onCopyHeadingLink: g,
169695
+ ipfsImageFetchFn: m,
169696
+ fetchV1ImageFn: b,
169697
169697
  enableCollaboration: X,
169698
- disableInlineComment: u,
169699
- isConnected: b,
169700
- activeModel: y,
169701
- maxTokens: x,
169702
- isAIAgentEnabled: v,
169698
+ disableInlineComment: c,
169699
+ isConnected: y,
169700
+ activeModel: x,
169701
+ maxTokens: v,
169702
+ isAIAgentEnabled: k,
169703
169703
  hasAvailableModels: J,
169704
169704
  onCommentActivated: (Te) => {
169705
169705
  K(Te), Te && setTimeout(() => re(Te));
@@ -169708,7 +169708,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
169708
169708
  externalExtensions: P,
169709
169709
  activeTabId: q
169710
169710
  }), { handleCommentInteraction: ce, handleCommentClick: N } = RRe({
169711
- onCommentInteraction: c
169711
+ onCommentInteraction: d
169712
169712
  }), te = Ve(!0), [le, G] = Be([]), V = Ft(() => Q, [Q]);
169713
169713
  Re(() => {
169714
169714
  q && K(null);
@@ -169768,11 +169768,11 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
169768
169768
  spellCheck: "true"
169769
169769
  }
169770
169770
  },
169771
- autofocus: A || !te.current ? !1 : "start",
169771
+ autofocus: M || !te.current ? !1 : "start",
169772
169772
  immediatelyRender: !1,
169773
169773
  shouldRerenderOnTransaction: !1
169774
169774
  },
169775
- [V, j, o]
169775
+ [V, _, o]
169776
169776
  );
169777
169777
  Re(() => {
169778
169778
  U && (U.current = he ?? null);
@@ -169793,16 +169793,11 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
169793
169793
  he.off("update", Te), be.current && clearTimeout(be.current);
169794
169794
  };
169795
169795
  }, [he]);
169796
- const de = Ft(() => De ? !!(S && a) : !o, [
169797
- De,
169798
- S,
169799
- o,
169800
- a
169801
- ]);
169796
+ const de = Ft(() => o ? !1 : De ? !l : !0, [o, De, l]);
169802
169797
  Re(() => {
169803
169798
  he == null || he.setEditable(de);
169804
169799
  }, [he, de]), Re(() => {
169805
- De && C(!a);
169800
+ De && A(!a);
169806
169801
  }, [De, a]);
169807
169802
  const ue = Ve(!1), ge = Ve(null), R = Se(
169808
169803
  (Te) => {
@@ -169818,39 +169813,39 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
169818
169813
  if (!he || !e)
169819
169814
  return;
169820
169815
  if (X) {
169821
- D(!1);
169816
+ C(!1);
169822
169817
  return;
169823
169818
  }
169824
169819
  if (i === null) {
169825
- D(!0);
169820
+ C(!0);
169826
169821
  return;
169827
169822
  }
169828
169823
  if (t && n && !q) {
169829
- D(!0);
169824
+ C(!0);
169830
169825
  return;
169831
169826
  }
169832
169827
  const Ne = `${r || "no-version-id"}:${q || "default"}`;
169833
169828
  if (!t && ue.current) {
169834
- D(!1);
169829
+ C(!1);
169835
169830
  return;
169836
169831
  }
169837
169832
  if (t && ge.current === Ne) {
169838
- D(!1);
169833
+ C(!1);
169839
169834
  return;
169840
169835
  }
169841
- D(!0), queueMicrotask(() => {
169836
+ C(!0), queueMicrotask(() => {
169842
169837
  if (i !== "" && i !== void 0 && (W(i) ? Array.isArray(i) ? R(i) : na(e, io(i), "self") : he.commands.setContent(
169843
169838
  fX({
169844
169839
  data: i,
169845
- ignoreCorruptedData: O,
169846
- onInvalidContentError: _
169840
+ ignoreCorruptedData: E,
169841
+ onInvalidContentError: O
169847
169842
  })
169848
- )), M && b6.setZoom(M), t) {
169849
- ge.current = Ne, D(!1);
169843
+ )), j && b6.setZoom(j), t) {
169844
+ ge.current = Ne, C(!1);
169850
169845
  return;
169851
169846
  }
169852
169847
  L().finally(() => {
169853
- D(!1);
169848
+ C(!1);
169854
169849
  });
169855
169850
  }), ue.current = !0;
169856
169851
  }, [
@@ -169858,14 +169853,14 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
169858
169853
  X,
169859
169854
  he,
169860
169855
  e,
169861
- M,
169856
+ j,
169862
169857
  t,
169863
169858
  n,
169864
169859
  q,
169865
169860
  r,
169866
- D,
169861
+ C,
169862
+ E,
169867
169863
  O,
169868
- _,
169869
169864
  R,
169870
169865
  W,
169871
169866
  L
@@ -169875,18 +169870,18 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
169875
169870
  IRe({
169876
169871
  editor: he,
169877
169872
  isReady: a,
169878
- awareness: l,
169873
+ awareness: u,
169879
169874
  collaboration: s,
169880
169875
  collaborationCleanupRef: ne,
169881
- onCollaboratorChange: E
169876
+ onCollaboratorChange: T
169882
169877
  }), Re(() => {
169883
- if (!M) return;
169884
- b6.setZoom(M);
169878
+ if (!j) return;
169879
+ b6.setZoom(j);
169885
169880
  const Te = window.setTimeout(() => {
169886
- b6.setZoom(M);
169881
+ b6.setZoom(j);
169887
169882
  }, 100);
169888
169883
  return () => clearTimeout(Te);
169889
- }, [M, $, i, he == null ? void 0 : he.isEmpty]), Re(() => {
169884
+ }, [j, $, i, he == null ? void 0 : he.isEmpty]), Re(() => {
169890
169885
  if (!he) return;
169891
169886
  const Te = ({ editor: Ne }) => {
169892
169887
  const Je = Ne.state.selection.from;
@@ -169921,7 +169916,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
169921
169916
  if (!he) return;
169922
169917
  const Te = () => {
169923
169918
  ye.current && clearTimeout(ye.current), ye.current = setTimeout(() => {
169924
- ye.current = null, he && !he.isDestroyed && (k == null || k(he.storage.characterCount.characters() ?? 0), w == null || w(he.storage.characterCount.words() ?? 0));
169919
+ ye.current = null, he && !he.isDestroyed && (w == null || w(he.storage.characterCount.characters() ?? 0), D == null || D(he.storage.characterCount.words() ?? 0));
169925
169920
  }, 500);
169926
169921
  };
169927
169922
  return Te(), he.on("update", Te), () => {
@@ -169929,12 +169924,12 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
169929
169924
  };
169930
169925
  }, [he]), Re(() => {
169931
169926
  const Te = (Ne) => {
169932
- (Ne.ctrlKey || Ne.metaKey) && Ne.key === "p" && (Ne.preventDefault(), he && (j ? QL(le) : tx(he.getHTML())));
169927
+ (Ne.ctrlKey || Ne.metaKey) && Ne.key === "p" && (Ne.preventDefault(), he && (_ ? QL(le) : tx(he.getHTML())));
169933
169928
  };
169934
169929
  return window.addEventListener("keydown", Te), () => {
169935
169930
  window.removeEventListener("keydown", Te);
169936
169931
  };
169937
- }, [he, j, le]), Re(() => (X && oe && T(oe), () => {
169932
+ }, [he, _, le]), Re(() => (X && oe && S(oe), () => {
169938
169933
  ne.current();
169939
169934
  }), [
169940
169935
  X,
@@ -179764,47 +179759,48 @@ const l$e = { status: "idle" }, u$e = (e) => {
179764
179759
  r.current || (r.current = new a$e(e, n));
179765
179760
  const o = r.current;
179766
179761
  o.updateRefs(e.services, e.callbacks, e.onLocalUpdate);
179767
- const i = o.isReady, s = o.isConnected, a = o.awareness, l = Ve(!1);
179768
- i && a && (l.current = !0), Re(() => {
179769
- if (!s || !e.ydoc) return;
179770
- const f = (g, m) => {
179771
- m === "self" || !o.isConnected || o.enqueueLocalUpdate(g);
179762
+ const i = o.isConnected, s = o.awareness;
179763
+ Re(() => {
179764
+ if (!i || !e.ydoc) return;
179765
+ const h = (f, g) => {
179766
+ g === "self" || !o.isConnected || o.enqueueLocalUpdate(f);
179772
179767
  };
179773
- return e.ydoc.on("update", f), () => {
179774
- e.ydoc.off("update", f);
179768
+ return e.ydoc.on("update", h), () => {
179769
+ e.ydoc.off("update", h);
179775
179770
  };
179776
- }, [e.ydoc, s]), Re(() => {
179777
- if (!a) return;
179778
- const f = () => {
179779
- Wc(a, [e.ydoc.clientID], "window unload");
179771
+ }, [e.ydoc, i]), Re(() => {
179772
+ if (!s) return;
179773
+ const h = () => {
179774
+ Wc(s, [e.ydoc.clientID], "window unload");
179780
179775
  };
179781
- return typeof window < "u" && typeof window.addEventListener == "function" && window.addEventListener("beforeunload", f), () => {
179782
- Wc(a, [e.ydoc.clientID], "hook unmount"), typeof window < "u" && typeof window.removeEventListener == "function" && window.removeEventListener("beforeunload", f);
179776
+ return typeof window < "u" && typeof window.addEventListener == "function" && window.addEventListener("beforeunload", h), () => {
179777
+ Wc(s, [e.ydoc.clientID], "hook unmount"), typeof window < "u" && typeof window.removeEventListener == "function" && window.removeEventListener("beforeunload", h);
179783
179778
  };
179784
- }, [a !== void 0]), Re(() => () => {
179785
- var f;
179786
- (f = r.current) == null || f.forceCleanup();
179779
+ }, [s !== void 0]), Re(() => () => {
179780
+ var h;
179781
+ (h = r.current) == null || h.forceCleanup();
179787
179782
  }, []);
179788
- const u = Se(
179789
- (f) => {
179790
- o.connect(f).catch((g) => {
179791
- console.error("useSyncManager: connect failed", g);
179783
+ const a = Se(
179784
+ (h) => {
179785
+ o.connect(h).catch((f) => {
179786
+ console.error("useSyncManager: connect failed", f);
179792
179787
  });
179793
179788
  },
179794
179789
  // eslint-disable-next-line react-hooks/exhaustive-deps
179795
179790
  [e.ydoc]
179796
- ), c = Se(() => {
179791
+ ), l = Se(() => {
179797
179792
  o.disconnect();
179798
- }, [o]), d = Se(() => {
179793
+ }, [o]), u = Se(() => {
179799
179794
  o.terminateSession();
179800
- }, [o]), p = l.current || t.status === "ready" || t.status === "reconnecting", h = l.current && !!a || t.status === "ready" && !!a;
179795
+ }, [o]), c = t.status === "syncing", d = t.status === "ready" && !!s, p = t.status === "ready" || t.status === "reconnecting";
179801
179796
  return {
179802
179797
  state: t,
179803
- connect: u,
179804
- disconnect: c,
179805
- terminateSession: d,
179806
- isReady: h,
179807
- awareness: a,
179798
+ connect: a,
179799
+ disconnect: l,
179800
+ terminateSession: u,
179801
+ isReady: d,
179802
+ isSyncing: c,
179803
+ awareness: s,
179808
179804
  hasCollabContentInitialised: p
179809
179805
  };
179810
179806
  }, c$e = ({
@@ -179817,53 +179813,55 @@ const l$e = { status: "idle" }, u$e = (e) => {
179817
179813
  const [i] = Be(new Cl()), s = (r == null ? void 0 : r.enabled) === !0, a = s ? r.services : void 0, l = s ? r.on : void 0, {
179818
179814
  connect: u,
179819
179815
  isReady: c,
179820
- terminateSession: d,
179821
- awareness: p,
179822
- hasCollabContentInitialised: h,
179823
- state: f
179816
+ isSyncing: d,
179817
+ terminateSession: p,
179818
+ awareness: h,
179819
+ hasCollabContentInitialised: f,
179820
+ state: g
179824
179821
  } = u$e({
179825
179822
  ydoc: i,
179826
179823
  services: a,
179827
179824
  callbacks: l,
179828
179825
  onLocalUpdate: e
179829
- }), g = Ve(null), m = Se(async () => {
179830
- const x = g.current;
179831
- if (x && await x.destroy(), t && n)
179826
+ }), m = Ve(null), b = Se(async () => {
179827
+ const v = m.current;
179828
+ if (v && await v.destroy(), t && n)
179832
179829
  try {
179833
- const v = new tIe(n, i);
179834
- await v.whenSynced, g.current = v;
179835
- } catch (v) {
179836
- console.error("IndexedDB initialization failed:", v), o == null || o(
179837
- v instanceof Error ? v : new Error(String(v))
179830
+ const k = new tIe(n, i);
179831
+ await k.whenSynced, m.current = k;
179832
+ } catch (k) {
179833
+ console.error("IndexedDB initialization failed:", k), o == null || o(
179834
+ k instanceof Error ? k : new Error(String(k))
179838
179835
  );
179839
179836
  }
179840
- }, [t, n, i, o]), b = Ve(
179837
+ }, [t, n, i, o]), y = Ve(
179841
179838
  null
179842
- ), y = Se(() => {
179843
- b.current && (clearTimeout(b.current), b.current = null), e == null || e(Vr(Wo(i)), "");
179839
+ ), x = Se(() => {
179840
+ y.current && (clearTimeout(y.current), y.current = null), e == null || e(Vr(Wo(i)), "");
179844
179841
  }, [i, e]);
179845
179842
  return Re(() => {
179846
- const x = (v, k) => {
179847
- if (k === "self") return;
179848
- const w = Vr(v);
179849
- b.current && clearTimeout(b.current), b.current = setTimeout(() => {
179850
- b.current = null, e == null || e(Vr(Wo(i)), w);
179843
+ const v = (k, w) => {
179844
+ if (w === "self") return;
179845
+ const D = Vr(k);
179846
+ y.current && clearTimeout(y.current), y.current = setTimeout(() => {
179847
+ y.current = null, e == null || e(Vr(Wo(i)), D);
179851
179848
  }, 300);
179852
179849
  };
179853
- return i && i.on("update", x), () => {
179854
- i == null || i.off("update", x), b.current && clearTimeout(b.current);
179850
+ return i && i.on("update", v), () => {
179851
+ i == null || i.off("update", v), y.current && clearTimeout(y.current);
179855
179852
  };
179856
179853
  }, [i]), {
179857
179854
  ydoc: i,
179858
179855
  onConnect: u,
179859
179856
  isReady: c,
179860
- terminateSession: d,
179861
- awareness: p,
179862
- hasCollabContentInitialised: h,
179863
- initialiseYjsIndexedDbProvider: m,
179864
- refreshYjsIndexedDbProvider: m,
179865
- flushPendingUpdate: y,
179866
- collabState: f
179857
+ isSyncing: d,
179858
+ terminateSession: p,
179859
+ awareness: h,
179860
+ hasCollabContentInitialised: f,
179861
+ initialiseYjsIndexedDbProvider: b,
179862
+ refreshYjsIndexedDbProvider: b,
179863
+ flushPendingUpdate: x,
179864
+ collabState: g
179867
179865
  };
179868
179866
  }, qZ = ({
179869
179867
  isPreviewMode: e,
@@ -179923,6 +179921,7 @@ const l$e = { status: "idle" }, u$e = (e) => {
179923
179921
  collaboration: r,
179924
179922
  versionId: n == null ? void 0 : n.versionId,
179925
179923
  isReady: X.isReady,
179924
+ isSyncing: X.isSyncing,
179926
179925
  awareness: X.awareness,
179927
179926
  disableInlineComment: O,
179928
179927
  onCommentInteraction: s,
@@ -179948,7 +179947,6 @@ const l$e = { status: "idle" }, u$e = (e) => {
179948
179947
  ignoreCorruptedData: b,
179949
179948
  onCollaboratorChange: i,
179950
179949
  onConnect: X.onConnect,
179951
- hasCollabContentInitialised: X.hasCollabContentInitialised,
179952
179950
  initialiseYjsIndexedDbProvider: X.initialiseYjsIndexedDbProvider,
179953
179951
  externalExtensions: v,
179954
179952
  activeTabId: oe.activeTabId,
@@ -180960,7 +180958,7 @@ const C$e = ({
180960
180958
  ] }),
180961
180959
  /* @__PURE__ */ F.jsxs("div", { className: "flex justify-center items-center gap-2", children: [
180962
180960
  p == null ? void 0 : p(),
180963
- !a && /* @__PURE__ */ F.jsx(ln, { text: "Download", sideOffset: 10, children: /* @__PURE__ */ F.jsx(
180961
+ !a && /* @__PURE__ */ F.jsx(on, { text: "Download", sideOffset: 10, children: /* @__PURE__ */ F.jsx(
180964
180962
  vn,
180965
180963
  {
180966
180964
  variant: "ghost",
@@ -180969,7 +180967,7 @@ const C$e = ({
180969
180967
  size: "md"
180970
180968
  }
180971
180969
  ) }),
180972
- /* @__PURE__ */ F.jsx(ln, { text: "Comments", sideOffset: 10, children: /* @__PURE__ */ F.jsx(
180970
+ /* @__PURE__ */ F.jsx(on, { text: "Comments", sideOffset: 10, children: /* @__PURE__ */ F.jsx(
180973
180971
  vn,
180974
180972
  {
180975
180973
  variant: "ghost",
@@ -180979,7 +180977,7 @@ const C$e = ({
180979
180977
  }
180980
180978
  ) }),
180981
180979
  !a && /* @__PURE__ */ F.jsxs(
180982
- ln,
180980
+ on,
180983
180981
  {
180984
180982
  text: s ? "Copy to Share" : "Link is preparing...",
180985
180983
  sideOffset: 10,
@@ -181010,7 +181008,7 @@ const C$e = ({
181010
181008
  ]
181011
181009
  }
181012
181010
  ),
181013
- /* @__PURE__ */ F.jsx(ln, { text: "Press F to toggle fullscreen", sideOffset: 10, children: /* @__PURE__ */ F.jsx(
181011
+ /* @__PURE__ */ F.jsx(on, { text: "Press F to toggle fullscreen", sideOffset: 10, children: /* @__PURE__ */ F.jsx(
181014
181012
  vn,
181015
181013
  {
181016
181014
  variant: "ghost",
@@ -181511,7 +181509,7 @@ const C$e = ({
181511
181509
  /* @__PURE__ */ F.jsxs("div", { className: "flex p-4 border-b flex-row gap-4 items-center color-bg-default", children: [
181512
181510
  /* @__PURE__ */ F.jsx("p", { className: "text-heading-sm", children: "Comments" }),
181513
181511
  /* @__PURE__ */ F.jsx("div", { className: "absolute top-[2px] right-10 p-2", children: /* @__PURE__ */ F.jsx(
181514
- ln,
181512
+ on,
181515
181513
  {
181516
181514
  text: a ? "Hide resolved" : "Show resolved",
181517
181515
  sideOffset: 0,
@@ -181551,7 +181549,7 @@ const C$e = ({
181551
181549
  title: "Comments",
181552
181550
  content: /* @__PURE__ */ F.jsxs(Et.Fragment, { children: [
181553
181551
  /* @__PURE__ */ F.jsx("div", { className: "absolute -top-[2px] right-10 p-3", children: /* @__PURE__ */ F.jsx(
181554
- ln,
181552
+ on,
181555
181553
  {
181556
181554
  text: a ? "Hide resolved" : "Show resolved",
181557
181555
  sideOffset: 0,
@@ -182053,7 +182051,7 @@ const U$e = [
182053
182051
  ref: (g) => {
182054
182052
  l.current = g;
182055
182053
  },
182056
- children: /* @__PURE__ */ F.jsx(ln, { position: "top", text: "Choose emoji", children: /* @__PURE__ */ F.jsx(
182054
+ children: /* @__PURE__ */ F.jsx(on, { position: "top", text: "Choose emoji", children: /* @__PURE__ */ F.jsx(
182057
182055
  Ue,
182058
182056
  {
182059
182057
  onClick: () => {
@@ -182449,14 +182447,14 @@ const K$e = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
182449
182447
  },
182450
182448
  className: "h-[24px] px-[6px] py-0 rounded-[6px] text-heading-xsm border-transparent focus-visible:ring-2 focus-visible:ring-[hsl(var(--color-border-focused))]"
182451
182449
  }
182452
- ) : /* @__PURE__ */ F.jsx(
182450
+ ) : /* @__PURE__ */ F.jsx("div", { className: "flex-1 flex items-center min-w-0 [&>*]:w-full", children: /* @__PURE__ */ F.jsx(on, { text: _, position: "bottom", children: /* @__PURE__ */ F.jsx(
182453
182451
  "span",
182454
182452
  {
182455
182453
  "data-testid": `tab-name-${e}`,
182456
- className: "text-heading-xsm color-text-default flex-1 truncate select-none",
182454
+ className: "block w-full truncate select-none text-heading-xsm color-text-default",
182457
182455
  children: _
182458
182456
  }
182459
- )
182457
+ ) }) })
182460
182458
  ] }),
182461
182459
  !y && /* @__PURE__ */ F.jsxs("div", { className: "flex gap-[8px] items-center", children: [
182462
182460
  r > 0 && /* @__PURE__ */ F.jsx("span", { className: "h-[18px] color-text-default text-[12px] text-helper-text-bold rounded-full min-w-[18px] text-center color-bg-tertiary", children: r }),
@@ -182519,7 +182517,7 @@ const K$e = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
182519
182517
  onMouseEnter: () => n(!0),
182520
182518
  onMouseLeave: () => n(!1),
182521
182519
  className: "[&_[data-testid='tooltip-trigger']]:w-full [&_[data-testid='tooltip-trigger']]:block",
182522
- children: /* @__PURE__ */ F.jsx(ln, { text: e.tooltipText, position: "top", open: t, children: o })
182520
+ children: /* @__PURE__ */ F.jsx(on, { text: e.tooltipText, position: "top", open: t, children: o })
182523
182521
  }
182524
182522
  ) : o;
182525
182523
  }, QZ = ({
@@ -182725,7 +182723,7 @@ const K$e = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
182725
182723
  ),
182726
182724
  children: [
182727
182725
  /* @__PURE__ */ F.jsx(
182728
- ln,
182726
+ on,
182729
182727
  {
182730
182728
  text: r ? "Hide tabs and outlines" : "Show tabs and outlines",
182731
182729
  position: "right",
@@ -183352,7 +183350,7 @@ const K$e = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
183352
183350
  ),
183353
183351
  children: [
183354
183352
  /* @__PURE__ */ F.jsx(
183355
- ln,
183353
+ on,
183356
183354
  {
183357
183355
  text: o ? "Hide document outline" : "Show document outline",
183358
183356
  position: "right",
@@ -183750,25 +183748,25 @@ const K$e = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
183750
183748
  return { canvas: void 0, background: void 0 };
183751
183749
  const At = {}, Dt = {}, St = De ?? "light";
183752
183750
  if (Ae.canvasBackground) {
183753
- const sn = md(
183751
+ const an = md(
183754
183752
  Ae.canvasBackground,
183755
183753
  St
183756
183754
  );
183757
- At.backgroundColor = sn;
183755
+ At.backgroundColor = an;
183758
183756
  }
183759
183757
  if (Ae.textColor) {
183760
- const sn = x7(
183758
+ const an = x7(
183761
183759
  Ae.textColor,
183762
183760
  St
183763
183761
  );
183764
- sn && (At.color = sn);
183762
+ an && (At.color = an);
183765
183763
  }
183766
183764
  if (Ae.fontFamily && (At.fontFamily = Ae.fontFamily), Ae.background) {
183767
- const sn = md(
183765
+ const an = md(
183768
183766
  Ae.background,
183769
183767
  St
183770
183768
  );
183771
- Dt.background = sn;
183769
+ Dt.background = an;
183772
183770
  }
183773
183771
  return {
183774
183772
  canvas: Object.keys(At).length > 0 ? At : void 0,
@@ -183781,8 +183779,8 @@ const K$e = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
183781
183779
  };
183782
183780
  const At = (Ae == null ? void 0 : Ae.orientation) === "landscape" ? "landscape" : "portrait", Dt = rHe[At][_];
183783
183781
  if (!Dt) return {};
183784
- const St = {}, sn = nHe[At];
183785
- return typeof Dt.width == "number" ? (St.width = `${Dt.width}px`, St.maxWidth = `${Dt.width}px`) : (St.width = sn.zoomFitWidth, St.maxWidth = `${sn.zoomFitMaxWidth}px`), Dt.minHeight && (St.minHeight = Dt.minHeight), St;
183782
+ const St = {}, an = nHe[At];
183783
+ return typeof Dt.width == "number" ? (St.width = `${Dt.width}px`, St.maxWidth = `${Dt.width}px`) : (St.width = an.zoomFitWidth, St.maxWidth = `${an.zoomFitMaxWidth}px`), Dt.minHeight && (St.minHeight = Dt.minHeight), St;
183786
183784
  }, wn = Ve(null), $n = Rn("(min-width: 1500px)"), Fe = Rn("(min-width: 3000px)"), Ie = Rn("(min-width: 1600px)"), rt = Rn("(min-width: 1360px)"), { isNativeMobile: dt, isIOS: Qt } = _l(), [tn, Rt] = Be(!1), Ot = Ve(null), br = (v == null ? void 0 : v.slice(0, 4)) || [], Qe = v ? Math.max(0, v.length - 4) : 0;
183787
183785
  O1(Ot, () => {
183788
183786
  Rt(!1);
@@ -183874,8 +183872,8 @@ const K$e = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
183874
183872
  if (fe) {
183875
183873
  const Dt = await fe.commands.exportMarkdownFile();
183876
183874
  if (Dt) {
183877
- const St = Dt, sn = document.createElement("a");
183878
- sn.href = St, sn.download = At, document.body.appendChild(sn), sn.click(), document.body.removeChild(sn), URL.revokeObjectURL(St);
183875
+ const St = Dt, an = document.createElement("a");
183876
+ an.href = St, an.download = At, document.body.appendChild(an), an.click(), document.body.removeChild(an), URL.revokeObjectURL(St);
183879
183877
  }
183880
183878
  }
183881
183879
  },
@@ -183884,10 +183882,10 @@ const K$e = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
183884
183882
  status: Dt
183885
183883
  }) => {
183886
183884
  if (!fe) throw new Error("cannot update node without editor");
183887
- fe.commands.command(({ tr: St, state: sn, dispatch: Rs }) => {
183888
- const { doc: an } = sn;
183885
+ fe.commands.command(({ tr: St, state: an, dispatch: Rs }) => {
183886
+ const { doc: ln } = an;
183889
183887
  let ic = !1;
183890
- return an.descendants((sc, V3) => {
183888
+ return ln.descendants((sc, V3) => {
183891
183889
  if (sc.type.name === "reminderBlock" && sc.attrs.reminder.id === At)
183892
183890
  return Dt === "cancelled" ? St.delete(V3, V3 + sc.nodeSize) : St.setNodeMarkup(V3, void 0, {
183893
183891
  ...sc.attrs,
@@ -183904,12 +183902,12 @@ const K$e = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
183904
183902
  console.debug("collab: cannot find editor or awareness");
183905
183903
  return;
183906
183904
  }
183907
- const Dt = Zt.getLocalState(), St = Dt == null ? void 0 : Dt.user, sn = {
183905
+ const Dt = Zt.getLocalState(), St = Dt == null ? void 0 : Dt.user, an = {
183908
183906
  name: At,
183909
183907
  color: St == null ? void 0 : St.color,
183910
183908
  isEns: St == null ? void 0 : St.isEns
183911
183909
  };
183912
- Zt.setLocalStateField("user", sn), fe.setEditable(!0);
183910
+ Zt.setLocalStateField("user", an), fe.setEditable(!0);
183913
183911
  },
183914
183912
  exportCurrentTabOrOpenExportModal: (At = "pdf", Dt) => {
183915
183913
  var St;
@@ -183925,16 +183923,16 @@ const K$e = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
183925
183923
  if (Dt.length >= 6)
183926
183924
  return Dt;
183927
183925
  const St = At.name.split(",").map((Rs) => {
183928
- const an = Rs.trim();
183926
+ const ln = Rs.trim();
183929
183927
  return (x == null ? void 0 : x.find(
183930
- (sc) => sc.name.toLowerCase() === an.toLowerCase()
183931
- )) || { name: an, color: At.color };
183932
- }), sn = [...Dt];
183928
+ (sc) => sc.name.toLowerCase() === ln.toLowerCase()
183929
+ )) || { name: ln, color: At.color };
183930
+ }), an = [...Dt];
183933
183931
  return St.forEach((Rs) => {
183934
- sn.some(
183935
- (an) => an.name.toLowerCase() === Rs.name.toLowerCase()
183936
- ) || sn.push(Rs);
183937
- }), sn.slice(0, 6);
183932
+ an.some(
183933
+ (ln) => ln.name.toLowerCase() === Rs.name.toLowerCase()
183934
+ ) || an.push(Rs);
183935
+ }), an.slice(0, 6);
183938
183936
  });
183939
183937
  }, $7 = (At) => {
183940
183938
  k == null || k(
@@ -183942,18 +183940,18 @@ const K$e = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
183942
183940
  );
183943
183941
  }, pJ = () => {
183944
183942
  T == null || T(!1);
183945
- const At = new URL(window.location.href), Dt = At.hash, [St, sn] = Dt.split("&");
183946
- sn && sn.startsWith("slides=") && (At.hash = St, window.history.replaceState({}, "", At.toString()));
183943
+ const At = new URL(window.location.href), Dt = At.hash, [St, an] = Dt.split("&");
183944
+ an && an.startsWith("slides=") && (At.hash = St, window.history.replaceState({}, "", At.toString()));
183947
183945
  };
183948
183946
  Re(() => {
183949
183947
  if (fe && dt) {
183950
183948
  const { selection: At } = fe.state, Dt = Ly(At), St = () => {
183951
183949
  Ke(!0);
183952
- }, sn = () => {
183950
+ }, an = () => {
183953
183951
  Ke(!1);
183954
183952
  };
183955
- return !Dt && fe.on("focus", St), Dt && fe.on("blur", sn), () => {
183956
- fe.off("focus", St), fe.off("blur", sn);
183953
+ return !Dt && fe.on("focus", St), Dt && fe.on("blur", an), () => {
183954
+ fe.off("focus", St), fe.off("blur", an);
183957
183955
  };
183958
183956
  }
183959
183957
  }, [dt, fe]), Re(() => {
@@ -183993,7 +183991,7 @@ const K$e = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
183993
183991
  },
183994
183992
  {}
183995
183993
  ), [ce]), W7 = () => {
183996
- var St, sn, Rs;
183994
+ var St, an, Rs;
183997
183995
  const At = Dg.length > 0 || Hh.length > 0 && !((St = Pe.versionHistoryState) != null && St.enabled), Dt = be && !dt && _ === "1" && (Ae == null ? void 0 : Ae.orientation) === "landscape" && rt && !Ie;
183998
183996
  return /* @__PURE__ */ F.jsx(fh, { children: /* @__PURE__ */ F.jsxs(F.Fragment, { children: [
183999
183997
  !e && /* @__PURE__ */ F.jsx(
@@ -184029,8 +184027,8 @@ const K$e = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
184029
184027
  isConnected: ue,
184030
184028
  tabs: Dg,
184031
184029
  ydoc: $t,
184032
- onRegisterExportTrigger: (an) => {
184033
- Gt.current = an;
184030
+ onRegisterExportTrigger: (ln) => {
184031
+ Gt.current = ln;
184034
184032
  }
184035
184033
  }
184036
184034
  ) })
@@ -184042,8 +184040,8 @@ const K$e = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
184042
184040
  editor: fe,
184043
184041
  ydoc: $t,
184044
184042
  tabs: Dg,
184045
- onRegisterExportTrigger: (an) => {
184046
- Gt.current = an;
184043
+ onRegisterExportTrigger: (ln) => {
184044
+ Gt.current = ln;
184047
184045
  },
184048
184046
  onError: m,
184049
184047
  ipfsImageUploadFn: f,
@@ -184180,9 +184178,9 @@ const K$e = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
184180
184178
  ipfsImageFetchFn: Te,
184181
184179
  fetchV1ImageFn: Ne,
184182
184180
  ipfsImageUploadFn: f,
184183
- onReminderCreate: (Rs = (sn = Ce == null ? void 0 : Ce.find(
184184
- (an) => an.name === "reminderBlock"
184185
- )) == null ? void 0 : sn.options) == null ? void 0 : Rs.onReminderCreate,
184181
+ onReminderCreate: (Rs = (an = Ce == null ? void 0 : Ce.find(
184182
+ (ln) => ln.name === "reminderBlock"
184183
+ )) == null ? void 0 : an.options) == null ? void 0 : Rs.onReminderCreate,
184186
184184
  isConnected: ue,
184187
184185
  isCollabDocOwner: n != null && n.enabled ? n.connection.isOwner : !0,
184188
184186
  enableCollaboration: n == null ? void 0 : n.enabled
@@ -184222,14 +184220,14 @@ const K$e = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
184222
184220
  style: bn()
184223
184221
  },
184224
184222
  children: [
184225
- br.map((an, ic) => /* @__PURE__ */ F.jsx(
184223
+ br.map((ln, ic) => /* @__PURE__ */ F.jsx(
184226
184224
  w2,
184227
184225
  {
184228
- style: { backgroundColor: an == null ? void 0 : an.color },
184229
- onRemove: () => $7(an == null ? void 0 : an.name),
184226
+ style: { backgroundColor: ln == null ? void 0 : ln.color },
184227
+ onRemove: () => $7(ln == null ? void 0 : ln.name),
184230
184228
  isRemovable: !e,
184231
184229
  className: "!h-6 rounded",
184232
- children: an == null ? void 0 : an.name
184230
+ children: ln == null ? void 0 : ln.name
184233
184231
  },
184234
184232
  ic
184235
184233
  )),
@@ -184253,14 +184251,14 @@ const K$e = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
184253
184251
  exit: { opacity: 0, height: 0 },
184254
184252
  transition: { duration: 0.3 },
184255
184253
  className: "flex flex-wrap items-center gap-1",
184256
- children: v == null ? void 0 : v.slice(4).map((an, ic) => /* @__PURE__ */ F.jsx(
184254
+ children: v == null ? void 0 : v.slice(4).map((ln, ic) => /* @__PURE__ */ F.jsx(
184257
184255
  w2,
184258
184256
  {
184259
- style: { backgroundColor: an == null ? void 0 : an.color },
184260
- onRemove: () => $7(an == null ? void 0 : an.name),
184257
+ style: { backgroundColor: ln == null ? void 0 : ln.color },
184258
+ onRemove: () => $7(ln == null ? void 0 : ln.name),
184261
184259
  isRemovable: !e,
184262
184260
  className: "!h-6 rounded",
184263
- children: an == null ? void 0 : an.name
184261
+ children: ln == null ? void 0 : ln.name
184264
184262
  },
184265
184263
  ic + 4
184266
184264
  ))
@@ -185107,7 +185105,7 @@ const K$e = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
185107
185105
  children: [
185108
185106
  /* @__PURE__ */ F.jsxs("div", { className: "flex-1 flex items-center gap-1 max-w-[200px] min-w-max", children: [
185109
185107
  r.status === "pending" ? /* @__PURE__ */ F.jsx(
185110
- ln,
185108
+ on,
185111
185109
  {
185112
185110
  text: /* @__PURE__ */ F.jsxs("div", { className: "flex flex-col items-center gap-1", children: [
185113
185111
  /* @__PURE__ */ F.jsx("p", { className: "text-body-sm", children: "Uploading on-chain" }),