@fileverse-dev/ddoc 3.0.80-tab-arch-v4 → 3.0.81

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) => MJ(e, typeof t != "symbol" ? t + "" : t, n);
4
4
  import * as Cn from "react";
5
5
  import Et, { createRef as OJ, memo as dh, createContext as bd, createElement as w2, useContext as yd, version as iC, useRef as Ve, useState as Be, useDebugValue as HD, useEffect as Re, forwardRef as sr, useLayoutEffect as ph, useCallback as Se, useMemo as vt, Fragment as RJ, useReducer as IJ, cloneElement as JO, useImperativeHandle as QO } from "react";
6
6
  import eR, { flushSync as LJ, createPortal as _1 } from "react-dom";
7
- import { Drawer as tR, DrawerContent as UJ, DrawerHeader as PJ, DrawerTitle as zJ, DrawerClose as $J, LucideIcon as Ue, useTheme as HJ, Button as qt, TextField as na, DynamicDropdown as Zn, Tooltip as ln, IconButton as vn, Avatar as WD, cn as Ge, ButtonGroup as qD, Skeleton as rn, TextAreaFieldV2 as D2, DatePicker as WJ, TimePicker as qJ, Divider as uf, BottomDrawer as nR, DynamicModal as VD, Select as cf, SelectTrigger as df, SelectValue as k2, SelectContent as pf, SelectItem as hf, DynamicDropdownV2 as GD, Popover as ff, PopoverTrigger as gf, PopoverContent as mf, toast as KD, UltimateIcons as VJ, PopoverClose as rR, SelectGroup as oR, SelectLabel as GJ, Checkbox as KJ, DrawerTrigger as sC, AnimatedLoader as YJ, Label as XJ, DynamicDrawer as ZJ, DynamicDrawerV2 as JJ, Tag as E2, TagInput as iR } from "@fileverse/ui";
7
+ import { Drawer as tR, DrawerContent as UJ, DrawerHeader as PJ, DrawerTitle as zJ, DrawerClose as $J, LucideIcon as Ue, useTheme as HJ, Button as qt, TextField as na, DynamicDropdown as Zn, Tooltip as on, IconButton as vn, Avatar as WD, cn as Ge, ButtonGroup as qD, Skeleton as rn, TextAreaFieldV2 as D2, DatePicker as WJ, TimePicker as qJ, Divider as uf, BottomDrawer as nR, DynamicModal as VD, Select as cf, SelectTrigger as df, SelectValue as k2, SelectContent as pf, SelectItem as hf, DynamicDropdownV2 as GD, Popover as ff, PopoverTrigger as gf, PopoverContent as mf, toast as KD, UltimateIcons as VJ, PopoverClose as rR, SelectGroup as oR, SelectLabel as GJ, Checkbox as KJ, DrawerTrigger as sC, AnimatedLoader as YJ, Label as XJ, DynamicDrawer as ZJ, DynamicDrawerV2 as JJ, Tag as E2, TagInput as iR } from "@fileverse/ui";
8
8
  import { isAddress as QJ, createPublicClient as eQ, http as tQ } from "viem";
9
9
  import { mainnet as nQ } from "viem/chains";
10
10
  import { motion as hh, AnimatePresence as fh } from "framer-motion";
@@ -37839,7 +37839,7 @@ const $0 = (e) => {
37839
37839
  const u = (c) => {
37840
37840
  c.preventDefault();
37841
37841
  };
37842
- return r ? /* @__PURE__ */ F.jsx(ln, { text: r, children: /* @__PURE__ */ F.jsx(
37842
+ return r ? /* @__PURE__ */ F.jsx(on, { text: r, children: /* @__PURE__ */ F.jsx(
37843
37843
  vn,
37844
37844
  {
37845
37845
  ref: l,
@@ -38051,14 +38051,14 @@ const $0 = (e) => {
38051
38051
  /* @__PURE__ */ F.jsxs("div", { className: "flex justify-between items-center", children: [
38052
38052
  /* @__PURE__ */ F.jsx(Pz, { username: e, createdAt: r }),
38053
38053
  f === "2" ? /* @__PURE__ */ F.jsx(
38054
- ln,
38054
+ on,
38055
38055
  {
38056
38056
  text: p ? "Available in a moment" : "",
38057
38057
  sideOffset: 0,
38058
38058
  position: "top",
38059
38059
  children: /* @__PURE__ */ F.jsxs(qD, { className: "!space-x-0", children: [
38060
38060
  !u && o && o.length === 0 && /* @__PURE__ */ F.jsx(
38061
- ln,
38061
+ on,
38062
38062
  {
38063
38063
  text: p ? "" : "Add reply",
38064
38064
  sideOffset: 0,
@@ -38077,7 +38077,7 @@ const $0 = (e) => {
38077
38077
  }
38078
38078
  ),
38079
38079
  /* @__PURE__ */ F.jsx(
38080
- ln,
38080
+ on,
38081
38081
  {
38082
38082
  text: p ? "" : "Coming soon",
38083
38083
  sideOffset: 0,
@@ -38149,7 +38149,7 @@ const $0 = (e) => {
38149
38149
  )
38150
38150
  ] })
38151
38151
  }
38152
- ) : /* @__PURE__ */ F.jsx(ln, { text: "Actions are not supported for old comments", children: /* @__PURE__ */ F.jsx(
38152
+ ) : /* @__PURE__ */ F.jsx(on, { text: "Actions are not supported for old comments", children: /* @__PURE__ */ F.jsx(
38153
38153
  vn,
38154
38154
  {
38155
38155
  icon: "Info",
@@ -38319,7 +38319,7 @@ const $0 = (e) => {
38319
38319
  ")"
38320
38320
  ] }),
38321
38321
  /* @__PURE__ */ F.jsx("div", { className: "relative flex items-center gap-1", children: (S || i) && !le && /* @__PURE__ */ F.jsxs(
38322
- ln,
38322
+ on,
38323
38323
  {
38324
38324
  text: o ? "Available in a moment" : "",
38325
38325
  sideOffset: 0,
@@ -38366,7 +38366,7 @@ const $0 = (e) => {
38366
38366
  "more-actions"
38367
38367
  ),
38368
38368
  /* @__PURE__ */ F.jsx(
38369
- ln,
38369
+ on,
38370
38370
  {
38371
38371
  text: o ? "" : D != null && D.resolved ? "Unresolve" : "Resolve",
38372
38372
  sideOffset: 5,
@@ -40650,7 +40650,7 @@ ${O.getHTML()}`
40650
40650
  onClose: () => {
40651
40651
  t(!1), p(!1), c(!1);
40652
40652
  },
40653
- anchorTrigger: /* @__PURE__ */ F.jsx(ln, { text: "Export/Import", children: /* @__PURE__ */ F.jsx(
40653
+ anchorTrigger: /* @__PURE__ */ F.jsx(on, { text: "Export/Import", children: /* @__PURE__ */ F.jsx(
40654
40654
  vn,
40655
40655
  {
40656
40656
  icon: "File",
@@ -40829,7 +40829,7 @@ ${O.getHTML()}`
40829
40829
  Zn,
40830
40830
  {
40831
40831
  sideOffset: 8,
40832
- anchorTrigger: /* @__PURE__ */ F.jsx(ln, { text: e.title, children: /* @__PURE__ */ F.jsx(vn, { icon: e.icon, variant: "ghost", size: "md" }) }),
40832
+ anchorTrigger: /* @__PURE__ */ F.jsx(on, { text: e.title, children: /* @__PURE__ */ F.jsx(vn, { icon: e.icon, variant: "ghost", size: "md" }) }),
40833
40833
  content: n(e)
40834
40834
  },
40835
40835
  e.title
@@ -40973,7 +40973,7 @@ ${O.getHTML()}`
40973
40973
  "markdown-dropdown-transition"
40974
40974
  ),
40975
40975
  /* @__PURE__ */ F.jsx("div", { className: "w-[1px] h-4 vertical-divider mx-1" }),
40976
- /* @__PURE__ */ F.jsx("div", { className: "flex gap-1 justify-center items-center", children: D.map((j, Y) => j ? /* @__PURE__ */ F.jsx(ln, { text: j.title, children: h ? Fo(
40976
+ /* @__PURE__ */ F.jsx("div", { className: "flex gap-1 justify-center items-center", children: D.map((j, Y) => j ? /* @__PURE__ */ F.jsx(on, { text: j.title, children: h ? Fo(
40977
40977
  /* @__PURE__ */ F.jsx(
40978
40978
  rn,
40979
40979
  {
@@ -41199,7 +41199,7 @@ ${O.getHTML()}`
41199
41199
  {
41200
41200
  align: "end",
41201
41201
  sideOffset: 8,
41202
- anchorTrigger: /* @__PURE__ */ F.jsx(ln, { text: "More", children: /* @__PURE__ */ F.jsx(
41202
+ anchorTrigger: /* @__PURE__ */ F.jsx(on, { text: "More", children: /* @__PURE__ */ F.jsx(
41203
41203
  vn,
41204
41204
  {
41205
41205
  id: "more-dropdown",
@@ -41247,7 +41247,7 @@ ${O.getHTML()}`
41247
41247
  /* @__PURE__ */ F.jsx(rn, { className: "w-[36px] h-[36px] rounded-sm" }),
41248
41248
  j.title + "skeleton"
41249
41249
  ) : zo(
41250
- /* @__PURE__ */ F.jsx(ln, { text: j.title, children: /* @__PURE__ */ F.jsx(
41250
+ /* @__PURE__ */ F.jsx(on, { text: j.title, children: /* @__PURE__ */ F.jsx(
41251
41251
  tr,
41252
41252
  {
41253
41253
  icon: j.icon,
@@ -51839,7 +51839,7 @@ const F3e = Et.memo(
51839
51839
  text: e,
51840
51840
  position: t = "bottom",
51841
51841
  children: n
51842
- }) => /* @__PURE__ */ F.jsx(ln, { text: e, position: t, children: n })
51842
+ }) => /* @__PURE__ */ F.jsx(on, { text: e, position: t, children: n })
51843
51843
  ), E3e = Et.memo(
51844
51844
  ({ children: e }) => /* @__PURE__ */ F.jsx(
51845
51845
  Dx,
@@ -83540,7 +83540,7 @@ var by = function(t) {
83540
83540
  }, Dr = function(t, n, r, o) {
83541
83541
  o === void 0 && (o = [null, null]);
83542
83542
  for (var i = [], s = 0; s < t.length; s++) {
83543
- var a = on(t[s], n);
83543
+ var a = sn(t[s], n);
83544
83544
  if (a instanceof mg) {
83545
83545
  var l = a.children;
83546
83546
  i.push(...l);
@@ -83604,7 +83604,7 @@ var by = function(t) {
83604
83604
  }, w1 = function(t, n) {
83605
83605
  var r = ["nulldelimiter"].concat(t.baseSizingClasses());
83606
83606
  return Fl(n.concat(r));
83607
- }, on = function(t, n, r) {
83607
+ }, sn = function(t, n, r) {
83608
83608
  if (!t)
83609
83609
  return Fl();
83610
83610
  if (gy[t.type]) {
@@ -84104,10 +84104,10 @@ function j3(e) {
84104
84104
  }
84105
84105
  var c7 = (e, t) => {
84106
84106
  var n, r, o;
84107
- e && e.type === "supsub" ? (r = Ut(e.base, "accent"), n = r.base, e.base = n, o = eje(on(e, t)), e.base = r) : (r = Ut(e, "accent"), n = r.base);
84108
- var i = on(n, t.havingCrampedStyle()), s = r.isShifty && un.isCharacterBox(n), a = 0;
84107
+ e && e.type === "supsub" ? (r = Ut(e.base, "accent"), n = r.base, e.base = n, o = eje(sn(e, t)), e.base = r) : (r = Ut(e, "accent"), n = r.base);
84108
+ var i = sn(n, t.havingCrampedStyle()), s = r.isShifty && un.isCharacterBox(n), a = 0;
84109
84109
  if (s) {
84110
- var l = un.getBaseElem(n), u = on(l, t.havingCrampedStyle());
84110
+ var l = un.getBaseElem(n), u = sn(l, t.havingCrampedStyle());
84111
84111
  a = tM(u).skew;
84112
84112
  }
84113
84113
  var c = r.label === "\\c", d = c ? i.height + i.depth : Math.min(i.height, t.fontMetrics().xHeight), p;
@@ -84219,7 +84219,7 @@ it({
84219
84219
  };
84220
84220
  },
84221
84221
  htmlBuilder: (e, t) => {
84222
- var n = on(e.base, t), r = wl.svgSpan(e, t), o = e.label === "\\utilde" ? 0.12 : 0, i = _e.makeVList({
84222
+ var n = sn(e.base, t), r = wl.svgSpan(e, t), o = e.label === "\\utilde" ? 0.12 : 0, i = _e.makeVList({
84223
84223
  positionType: "top",
84224
84224
  positionData: n.height,
84225
84225
  children: [{
@@ -84297,10 +84297,10 @@ it({
84297
84297
  // Flow is unable to correctly infer the type of `group`, even though it's
84298
84298
  // unambiguously determined from the passed-in `type` above.
84299
84299
  htmlBuilder(e, t) {
84300
- 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";
84300
+ 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";
84301
84301
  o.classes.push(i + "-arrow-pad");
84302
84302
  var s;
84303
- e.below && (r = t.havingStyle(n.sub()), s = _e.wrapFragment(on(e.below, r, t), t), s.classes.push(i + "-arrow-pad"));
84303
+ e.below && (r = t.havingStyle(n.sub()), s = _e.wrapFragment(sn(e.below, r, t), t), s.classes.push(i + "-arrow-pad"));
84304
84304
  var a = wl.svgSpan(e, t), l = -t.fontMetrics().axisHeight + 0.5 * a.height, u = -t.fontMetrics().axisHeight - 0.5 * a.height - 0.111;
84305
84305
  (o.depth > 0.25 || e.label === "\\xleftequilibrium") && (u -= o.depth);
84306
84306
  var c;
@@ -84625,7 +84625,7 @@ it({
84625
84625
  };
84626
84626
  },
84627
84627
  htmlBuilder(e, t) {
84628
- var n = t.havingStyle(t.style.sup()), r = _e.wrapFragment(on(e.label, n, t), t);
84628
+ var n = t.havingStyle(t.style.sup()), r = _e.wrapFragment(sn(e.label, n, t), t);
84629
84629
  return r.classes.push("cd-label-" + e.side), r.style.bottom = Xe(0.8 - r.depth), r.height = 0, r.depth = 0, r;
84630
84630
  },
84631
84631
  mathmlBuilder(e, t) {
@@ -84650,7 +84650,7 @@ it({
84650
84650
  };
84651
84651
  },
84652
84652
  htmlBuilder(e, t) {
84653
- var n = _e.wrapFragment(on(e.fragment, t), t);
84653
+ var n = _e.wrapFragment(sn(e.fragment, t), t);
84654
84654
  return n.classes.push("cd-vert-arrow"), n;
84655
84655
  },
84656
84656
  mathmlBuilder(e, t) {
@@ -85335,7 +85335,7 @@ it({
85335
85335
  }
85336
85336
  });
85337
85337
  var p7 = (e, t) => {
85338
- 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);
85338
+ 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);
85339
85339
  if (r === "sout")
85340
85340
  i = _e.makeSpan(["stretchy", "sout"]), i.height = t.fontMetrics().defaultRuleThickness / o, s = -0.5 * t.fontMetrics().xHeight;
85341
85341
  else if (r === "phase") {
@@ -85697,7 +85697,7 @@ var ja = function(t, n) {
85697
85697
  a < k.length && (a = k.length);
85698
85698
  var C = new Array(k.length);
85699
85699
  for (o = 0; o < k.length; ++o) {
85700
- var A = on(k[o], n);
85700
+ var A = sn(k[o], n);
85701
85701
  D < A.depth && (D = A.depth), w < A.height && (w = A.height), C[o] = A;
85702
85702
  }
85703
85703
  var M = t.rowGaps[r], T = 0;
@@ -86160,7 +86160,7 @@ it({
86160
86160
  });
86161
86161
  var EY = (e, t) => {
86162
86162
  var n = e.font, r = t.withFont(n);
86163
- return on(e.body, r);
86163
+ return sn(e.body, r);
86164
86164
  }, CY = (e, t) => {
86165
86165
  var n = e.font, r = t.withFont(n);
86166
86166
  return An(e.body, r);
@@ -86269,13 +86269,13 @@ var _Y = (e, t) => {
86269
86269
  }, m7 = (e, t) => {
86270
86270
  var n = _Y(e.size, t.style), r = n.fracNum(), o = n.fracDen(), i;
86271
86271
  i = t.havingStyle(r);
86272
- var s = on(e.numer, i, t);
86272
+ var s = sn(e.numer, i, t);
86273
86273
  if (e.continued) {
86274
86274
  var a = 8.5 / t.fontMetrics().ptPerEm, l = 3.5 / t.fontMetrics().ptPerEm;
86275
86275
  s.height = s.height < a ? a : s.height, s.depth = s.depth < l ? l : s.depth;
86276
86276
  }
86277
86277
  i = t.havingStyle(o);
86278
- var u = on(e.denom, i, t), c, d, p;
86278
+ var u = sn(e.denom, i, t), c, d, p;
86279
86279
  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);
86280
86280
  var h, f, g;
86281
86281
  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);
@@ -86580,8 +86580,8 @@ it({
86580
86580
  });
86581
86581
  var AY = (e, t) => {
86582
86582
  var n = t.style, r, o;
86583
- 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");
86584
- var i = on(o.base, t.havingBaseStyle(bt.DISPLAY)), s = wl.svgSpan(o, t), a;
86583
+ 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");
86584
+ var i = sn(o.base, t.havingBaseStyle(bt.DISPLAY)), s = wl.svgSpan(o, t), a;
86585
86585
  if (o.isOver ? (a = _e.makeVList({
86586
86586
  positionType: "firstBaseline",
86587
86587
  children: [{
@@ -87005,7 +87005,7 @@ it({
87005
87005
  },
87006
87006
  htmlBuilder: (e, t) => {
87007
87007
  var n;
87008
- e.alignment === "clap" ? (n = _e.makeSpan([], [on(e.body, t)]), n = _e.makeSpan(["inner"], [n], t)) : n = _e.makeSpan(["inner"], [on(e.body, t)]);
87008
+ e.alignment === "clap" ? (n = _e.makeSpan([], [sn(e.body, t)]), n = _e.makeSpan(["inner"], [n], t)) : n = _e.makeSpan(["inner"], [sn(e.body, t)]);
87009
87009
  var r = _e.makeSpan(["fix"], []), o = _e.makeSpan([e.alignment], [n, r], t), i = _e.makeSpan(["strut"]);
87010
87010
  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);
87011
87011
  },
@@ -87101,14 +87101,14 @@ var SY = (e, t, n, r, o, i, s) => {
87101
87101
  e = _e.makeSpan([], [e]);
87102
87102
  var a = n && un.isCharacterBox(n), l, u;
87103
87103
  if (t) {
87104
- var c = on(t, r.havingStyle(o.sup()), r);
87104
+ var c = sn(t, r.havingStyle(o.sup()), r);
87105
87105
  u = {
87106
87106
  elem: c,
87107
87107
  kern: Math.max(r.fontMetrics().bigOpSpacing1, r.fontMetrics().bigOpSpacing3 - c.depth)
87108
87108
  };
87109
87109
  }
87110
87110
  if (n) {
87111
- var d = on(n, r.havingStyle(o.sub()), r);
87111
+ var d = sn(n, r.havingStyle(o.sub()), r);
87112
87112
  l = {
87113
87113
  elem: d,
87114
87114
  kern: Math.max(r.fontMetrics().bigOpSpacing2, r.fontMetrics().bigOpSpacing4 - d.height)
@@ -87476,7 +87476,7 @@ it({
87476
87476
  };
87477
87477
  },
87478
87478
  htmlBuilder(e, t) {
87479
- var n = on(e.body, t.havingCrampedStyle()), r = _e.makeLineSpan("overline-line", t), o = t.fontMetrics().defaultRuleThickness, i = _e.makeVList({
87479
+ var n = sn(e.body, t.havingCrampedStyle()), r = _e.makeLineSpan("overline-line", t), o = t.fontMetrics().defaultRuleThickness, i = _e.makeVList({
87480
87480
  positionType: "firstBaseline",
87481
87481
  children: [{
87482
87482
  type: "elem",
@@ -87545,7 +87545,7 @@ it({
87545
87545
  };
87546
87546
  },
87547
87547
  htmlBuilder: (e, t) => {
87548
- var n = _e.makeSpan([], [on(e.body, t.withPhantom())]);
87548
+ var n = _e.makeSpan([], [sn(e.body, t.withPhantom())]);
87549
87549
  if (n.height = 0, n.depth = 0, n.children)
87550
87550
  for (var r = 0; r < n.children.length; r++)
87551
87551
  n.children[r].height = 0, n.children[r].depth = 0;
@@ -87580,7 +87580,7 @@ it({
87580
87580
  };
87581
87581
  },
87582
87582
  htmlBuilder: (e, t) => {
87583
- var n = _e.makeSpan(["inner"], [on(e.body, t.withPhantom())]), r = _e.makeSpan(["fix"], []);
87583
+ var n = _e.makeSpan(["inner"], [sn(e.body, t.withPhantom())]), r = _e.makeSpan(["fix"], []);
87584
87584
  return _e.makeSpan(["mord", "rlap"], [n, r], t);
87585
87585
  },
87586
87586
  mathmlBuilder: (e, t) => {
@@ -87608,7 +87608,7 @@ it({
87608
87608
  };
87609
87609
  },
87610
87610
  htmlBuilder(e, t) {
87611
- var n = on(e.body, t), r = qn(e.dy, t);
87611
+ var n = sn(e.body, t), r = qn(e.dy, t);
87612
87612
  return _e.makeVList({
87613
87613
  positionType: "shift",
87614
87614
  positionData: -r,
@@ -87748,7 +87748,7 @@ it({
87748
87748
  };
87749
87749
  },
87750
87750
  htmlBuilder: (e, t) => {
87751
- var n = _e.makeSpan([], [on(e.body, t)]);
87751
+ var n = _e.makeSpan([], [sn(e.body, t)]);
87752
87752
  if (!e.smashHeight && !e.smashDepth)
87753
87753
  return n;
87754
87754
  if (e.smashHeight && (n.height = 0, n.children))
@@ -87790,7 +87790,7 @@ it({
87790
87790
  };
87791
87791
  },
87792
87792
  htmlBuilder(e, t) {
87793
- var n = on(e.body, t.havingCrampedStyle());
87793
+ var n = sn(e.body, t.havingCrampedStyle());
87794
87794
  n.height === 0 && (n.height = t.fontMetrics().xHeight), n = _e.wrapFragment(n, t);
87795
87795
  var r = t.fontMetrics(), o = r.defaultRuleThickness, i = o;
87796
87796
  t.style.id < bt.TEXT.id && (i = t.fontMetrics().xHeight);
@@ -87820,7 +87820,7 @@ it({
87820
87820
  }]
87821
87821
  }, t);
87822
87822
  if (e.index) {
87823
- var f = t.havingStyle(bt.SCRIPTSCRIPT), g = on(e.index, f, t), m = 0.6 * (h.height - h.depth), b = _e.makeVList({
87823
+ var f = t.havingStyle(bt.SCRIPTSCRIPT), g = sn(e.index, f, t), m = 0.6 * (h.height - h.depth), b = _e.makeVList({
87824
87824
  positionType: "shift",
87825
87825
  positionData: -m,
87826
87826
  children: [{
@@ -87913,14 +87913,14 @@ _d({
87913
87913
  base: r,
87914
87914
  sup: o,
87915
87915
  sub: i
87916
- } = e, s = on(r, t), a, l, u = t.fontMetrics(), c = 0, d = 0, p = r && un.isCharacterBox(r);
87916
+ } = e, s = sn(r, t), a, l, u = t.fontMetrics(), c = 0, d = 0, p = r && un.isCharacterBox(r);
87917
87917
  if (o) {
87918
87918
  var h = t.havingStyle(t.style.sup());
87919
- a = on(o, h, t), p || (c = s.height - h.fontMetrics().supDrop * h.sizeMultiplier / t.sizeMultiplier);
87919
+ a = sn(o, h, t), p || (c = s.height - h.fontMetrics().supDrop * h.sizeMultiplier / t.sizeMultiplier);
87920
87920
  }
87921
87921
  if (i) {
87922
87922
  var f = t.havingStyle(t.style.sub());
87923
- l = on(i, f, t), p || (d = s.depth + f.fontMetrics().subDrop * f.sizeMultiplier / t.sizeMultiplier);
87923
+ l = sn(i, f, t), p || (d = s.depth + f.fontMetrics().subDrop * f.sizeMultiplier / t.sizeMultiplier);
87924
87924
  }
87925
87925
  var g;
87926
87926
  t.style === bt.DISPLAY ? g = u.sup1 : t.style.cramped ? g = u.sup3 : g = u.sup2;
@@ -88183,7 +88183,7 @@ it({
88183
88183
  };
88184
88184
  },
88185
88185
  htmlBuilder(e, t) {
88186
- var n = on(e.body, t), r = _e.makeLineSpan("underline-line", t), o = t.fontMetrics().defaultRuleThickness, i = _e.makeVList({
88186
+ var n = sn(e.body, t), r = _e.makeLineSpan("underline-line", t), o = t.fontMetrics().defaultRuleThickness, i = _e.makeVList({
88187
88187
  positionType: "top",
88188
88188
  positionData: n.height,
88189
88189
  children: [{
@@ -88229,7 +88229,7 @@ it({
88229
88229
  };
88230
88230
  },
88231
88231
  htmlBuilder(e, t) {
88232
- var n = on(e.body, t), r = t.fontMetrics().axisHeight, o = 0.5 * (n.height - r - (n.depth + r));
88232
+ var n = sn(e.body, t), r = t.fontMetrics().axisHeight, o = 0.5 * (n.height - r - (n.depth + r));
88233
88233
  return _e.makeVList({
88234
88234
  positionType: "shift",
88235
88235
  positionData: o,
@@ -93536,7 +93536,7 @@ function MMe({
93536
93536
  value: a,
93537
93537
  onValueChange: (y) => t({ language: y }),
93538
93538
  children: [
93539
- /* @__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: [
93539
+ /* @__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: [
93540
93540
  /* @__PURE__ */ F.jsx(k2, { placeholder: "Select language" }),
93541
93541
  /* @__PURE__ */ F.jsx("span", { className: "w-1" })
93542
93542
  ] }) }),
@@ -93563,7 +93563,7 @@ function MMe({
93563
93563
  }
93564
93564
  ),
93565
93565
  /* @__PURE__ */ F.jsx("div", { className: "w-[1px] h-4 vertical-divider mx-1" }),
93566
- /* @__PURE__ */ F.jsx(ln, { text: "Copy code", children: /* @__PURE__ */ F.jsx(
93566
+ /* @__PURE__ */ F.jsx(on, { text: "Copy code", children: /* @__PURE__ */ F.jsx(
93567
93567
  qt,
93568
93568
  {
93569
93569
  variant: "ghost",
@@ -93597,7 +93597,7 @@ function MMe({
93597
93597
  }
93598
93598
  ) }),
93599
93599
  /* @__PURE__ */ F.jsx("div", { className: "w-[1px] h-4 vertical-divider mx-1" }),
93600
- /* @__PURE__ */ F.jsx(ln, { text: "Line numbers", children: /* @__PURE__ */ F.jsx(
93600
+ /* @__PURE__ */ F.jsx(on, { text: "Line numbers", children: /* @__PURE__ */ F.jsx(
93601
93601
  qt,
93602
93602
  {
93603
93603
  variant: "ghost",
@@ -93611,7 +93611,7 @@ function MMe({
93611
93611
  }
93612
93612
  ) }),
93613
93613
  /* @__PURE__ */ F.jsx("div", { className: "w-[1px] h-4 vertical-divider mx-1" }),
93614
- /* @__PURE__ */ F.jsx(ln, { text: "Word wrap", children: /* @__PURE__ */ F.jsx(
93614
+ /* @__PURE__ */ F.jsx(on, { text: "Word wrap", children: /* @__PURE__ */ F.jsx(
93615
93615
  qt,
93616
93616
  {
93617
93617
  variant: "ghost",
@@ -93631,7 +93631,7 @@ function MMe({
93631
93631
  value: String(d),
93632
93632
  onValueChange: (y) => t({ tabSize: Number(y) }),
93633
93633
  children: [
93634
- /* @__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: [
93634
+ /* @__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: [
93635
93635
  /* @__PURE__ */ F.jsxs("span", { className: "!hidden sm:!block", children: [
93636
93636
  "Tab: ",
93637
93637
  d
@@ -93658,7 +93658,7 @@ function MMe({
93658
93658
  }
93659
93659
  )
93660
93660
  ] }),
93661
- /* @__PURE__ */ F.jsx(ln, { text: "Delete code block", children: /* @__PURE__ */ F.jsx(
93661
+ /* @__PURE__ */ F.jsx(on, { text: "Delete code block", children: /* @__PURE__ */ F.jsx(
93662
93662
  Ue,
93663
93663
  {
93664
93664
  name: "Trash2",
@@ -93677,7 +93677,7 @@ function MMe({
93677
93677
  "absolute top-3 right-3 hidden z-10 color-bg-default",
93678
93678
  l && "flex"
93679
93679
  ),
93680
- children: /* @__PURE__ */ F.jsx(ln, { text: "Copy code", children: /* @__PURE__ */ F.jsxs("div", { className: "relative w-4 h-4", onClick: b, children: [
93680
+ children: /* @__PURE__ */ F.jsx(on, { text: "Copy code", children: /* @__PURE__ */ F.jsxs("div", { className: "relative w-4 h-4", onClick: b, children: [
93681
93681
  /* @__PURE__ */ F.jsx(
93682
93682
  Ue,
93683
93683
  {
@@ -168080,7 +168080,7 @@ const DRe = ({
168080
168080
  }
168081
168081
  }
168082
168082
  ) }),
168083
- /* @__PURE__ */ F.jsx(ln, { sideOffset: 5, position: "bottom", text: "Remove page breaker", children: /* @__PURE__ */ F.jsx(
168083
+ /* @__PURE__ */ F.jsx(on, { sideOffset: 5, position: "bottom", text: "Remove page breaker", children: /* @__PURE__ */ F.jsx(
168084
168084
  Ue,
168085
168085
  {
168086
168086
  name: "PageBreakRemove",
@@ -181191,7 +181191,7 @@ const oHe = ({
181191
181191
  ] }),
181192
181192
  /* @__PURE__ */ F.jsxs("div", { className: "flex justify-center items-center gap-2", children: [
181193
181193
  p == null ? void 0 : p(),
181194
- !a && /* @__PURE__ */ F.jsx(ln, { text: "Download", sideOffset: 10, children: /* @__PURE__ */ F.jsx(
181194
+ !a && /* @__PURE__ */ F.jsx(on, { text: "Download", sideOffset: 10, children: /* @__PURE__ */ F.jsx(
181195
181195
  vn,
181196
181196
  {
181197
181197
  variant: "ghost",
@@ -181200,7 +181200,7 @@ const oHe = ({
181200
181200
  size: "md"
181201
181201
  }
181202
181202
  ) }),
181203
- /* @__PURE__ */ F.jsx(ln, { text: "Comments", sideOffset: 10, children: /* @__PURE__ */ F.jsx(
181203
+ /* @__PURE__ */ F.jsx(on, { text: "Comments", sideOffset: 10, children: /* @__PURE__ */ F.jsx(
181204
181204
  vn,
181205
181205
  {
181206
181206
  variant: "ghost",
@@ -181210,7 +181210,7 @@ const oHe = ({
181210
181210
  }
181211
181211
  ) }),
181212
181212
  !a && /* @__PURE__ */ F.jsxs(
181213
- ln,
181213
+ on,
181214
181214
  {
181215
181215
  text: s ? "Copy to Share" : "Link is preparing...",
181216
181216
  sideOffset: 10,
@@ -181241,7 +181241,7 @@ const oHe = ({
181241
181241
  ]
181242
181242
  }
181243
181243
  ),
181244
- /* @__PURE__ */ F.jsx(ln, { text: "Press F to toggle fullscreen", sideOffset: 10, children: /* @__PURE__ */ F.jsx(
181244
+ /* @__PURE__ */ F.jsx(on, { text: "Press F to toggle fullscreen", sideOffset: 10, children: /* @__PURE__ */ F.jsx(
181245
181245
  vn,
181246
181246
  {
181247
181247
  variant: "ghost",
@@ -181742,7 +181742,7 @@ const oHe = ({
181742
181742
  /* @__PURE__ */ F.jsxs("div", { className: "flex p-4 border-b flex-row gap-4 items-center color-bg-default", children: [
181743
181743
  /* @__PURE__ */ F.jsx("p", { className: "text-heading-sm", children: "Comments" }),
181744
181744
  /* @__PURE__ */ F.jsx("div", { className: "absolute top-[2px] right-10 p-2", children: /* @__PURE__ */ F.jsx(
181745
- ln,
181745
+ on,
181746
181746
  {
181747
181747
  text: a ? "Hide resolved" : "Show resolved",
181748
181748
  sideOffset: 0,
@@ -181782,7 +181782,7 @@ const oHe = ({
181782
181782
  title: "Comments",
181783
181783
  content: /* @__PURE__ */ F.jsxs(Et.Fragment, { children: [
181784
181784
  /* @__PURE__ */ F.jsx("div", { className: "absolute -top-[2px] right-10 p-3", children: /* @__PURE__ */ F.jsx(
181785
- ln,
181785
+ on,
181786
181786
  {
181787
181787
  text: a ? "Hide resolved" : "Show resolved",
181788
181788
  sideOffset: 0,
@@ -182284,7 +182284,7 @@ const bHe = [
182284
182284
  ref: (g) => {
182285
182285
  l.current = g;
182286
182286
  },
182287
- children: /* @__PURE__ */ F.jsx(ln, { position: "top", text: "Choose emoji", children: /* @__PURE__ */ F.jsx(
182287
+ children: /* @__PURE__ */ F.jsx(on, { position: "top", text: "Choose emoji", children: /* @__PURE__ */ F.jsx(
182288
182288
  Ue,
182289
182289
  {
182290
182290
  onClick: () => {
@@ -182680,14 +182680,14 @@ const CHe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
182680
182680
  },
182681
182681
  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))]"
182682
182682
  }
182683
- ) : /* @__PURE__ */ F.jsx(
182683
+ ) : /* @__PURE__ */ F.jsx("div", { className: "min-w-0 flex [&>*]:w-full", children: /* @__PURE__ */ F.jsx(on, { text: _, position: "bottom", children: /* @__PURE__ */ F.jsx(
182684
182684
  "span",
182685
182685
  {
182686
182686
  "data-testid": `tab-name-${e}`,
182687
- className: "text-heading-xsm color-text-default flex-1 truncate select-none",
182687
+ className: "block w-full truncate select-none text-heading-xsm color-text-default",
182688
182688
  children: _
182689
182689
  }
182690
- )
182690
+ ) }) })
182691
182691
  ] }),
182692
182692
  !y && /* @__PURE__ */ F.jsxs("div", { className: "flex gap-[8px] items-center", children: [
182693
182693
  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 }),
@@ -182750,7 +182750,7 @@ const CHe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
182750
182750
  onMouseEnter: () => n(!0),
182751
182751
  onMouseLeave: () => n(!1),
182752
182752
  className: "[&_[data-testid='tooltip-trigger']]:w-full [&_[data-testid='tooltip-trigger']]:block",
182753
- children: /* @__PURE__ */ F.jsx(ln, { text: e.tooltipText, position: "top", open: t, children: o })
182753
+ children: /* @__PURE__ */ F.jsx(on, { text: e.tooltipText, position: "top", open: t, children: o })
182754
182754
  }
182755
182755
  ) : o;
182756
182756
  }, yJ = ({
@@ -182956,7 +182956,7 @@ const CHe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
182956
182956
  ),
182957
182957
  children: [
182958
182958
  /* @__PURE__ */ F.jsx(
182959
- ln,
182959
+ on,
182960
182960
  {
182961
182961
  text: r ? "Hide tabs and outlines" : "Show tabs and outlines",
182962
182962
  position: "right",
@@ -183583,7 +183583,7 @@ const CHe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
183583
183583
  ),
183584
183584
  children: [
183585
183585
  /* @__PURE__ */ F.jsx(
183586
- ln,
183586
+ on,
183587
183587
  {
183588
183588
  text: o ? "Hide document outline" : "Show document outline",
183589
183589
  position: "right",
@@ -183981,25 +183981,25 @@ const CHe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
183981
183981
  return { canvas: void 0, background: void 0 };
183982
183982
  const At = {}, Dt = {}, jt = De ?? "light";
183983
183983
  if (Ae.canvasBackground) {
183984
- const sn = gd(
183984
+ const an = gd(
183985
183985
  Ae.canvasBackground,
183986
183986
  jt
183987
183987
  );
183988
- At.backgroundColor = sn;
183988
+ At.backgroundColor = an;
183989
183989
  }
183990
183990
  if (Ae.textColor) {
183991
- const sn = B7(
183991
+ const an = B7(
183992
183992
  Ae.textColor,
183993
183993
  jt
183994
183994
  );
183995
- sn && (At.color = sn);
183995
+ an && (At.color = an);
183996
183996
  }
183997
183997
  if (Ae.fontFamily && (At.fontFamily = Ae.fontFamily), Ae.background) {
183998
- const sn = gd(
183998
+ const an = gd(
183999
183999
  Ae.background,
184000
184000
  jt
184001
184001
  );
184002
- Dt.background = sn;
184002
+ Dt.background = an;
184003
184003
  }
184004
184004
  return {
184005
184005
  canvas: Object.keys(At).length > 0 ? At : void 0,
@@ -184012,8 +184012,8 @@ const CHe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
184012
184012
  };
184013
184013
  const At = (Ae == null ? void 0 : Ae.orientation) === "landscape" ? "landscape" : "portrait", Dt = OHe[At][_];
184014
184014
  if (!Dt) return {};
184015
- const jt = {}, sn = MHe[At];
184016
- return typeof Dt.width == "number" ? (jt.width = `${Dt.width}px`, jt.maxWidth = `${Dt.width}px`) : (jt.width = sn.zoomFitWidth, jt.maxWidth = `${sn.zoomFitMaxWidth}px`), Dt.minHeight && (jt.minHeight = Dt.minHeight), jt;
184015
+ const jt = {}, an = MHe[At];
184016
+ return typeof Dt.width == "number" ? (jt.width = `${Dt.width}px`, jt.maxWidth = `${Dt.width}px`) : (jt.width = an.zoomFitWidth, jt.maxWidth = `${an.zoomFitMaxWidth}px`), Dt.minHeight && (jt.minHeight = Dt.minHeight), jt;
184017
184017
  }, 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;
184018
184018
  R1(Ot, () => {
184019
184019
  Rt(!1);
@@ -184107,8 +184107,8 @@ const CHe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
184107
184107
  if (fe) {
184108
184108
  const Dt = await fe.commands.exportMarkdownFile();
184109
184109
  if (Dt) {
184110
- const jt = Dt, sn = document.createElement("a");
184111
- sn.href = jt, sn.download = At, document.body.appendChild(sn), sn.click(), document.body.removeChild(sn), URL.revokeObjectURL(jt);
184110
+ const jt = Dt, an = document.createElement("a");
184111
+ an.href = jt, an.download = At, document.body.appendChild(an), an.click(), document.body.removeChild(an), URL.revokeObjectURL(jt);
184112
184112
  }
184113
184113
  }
184114
184114
  },
@@ -184117,10 +184117,10 @@ const CHe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
184117
184117
  status: Dt
184118
184118
  }) => {
184119
184119
  if (!fe) throw new Error("cannot update node without editor");
184120
- fe.commands.command(({ tr: jt, state: sn, dispatch: Is }) => {
184121
- const { doc: an } = sn;
184120
+ fe.commands.command(({ tr: jt, state: an, dispatch: Is }) => {
184121
+ const { doc: ln } = an;
184122
184122
  let oc = !1;
184123
- return an.descendants((ic, X3) => {
184123
+ return ln.descendants((ic, X3) => {
184124
184124
  if (ic.type.name === "reminderBlock" && ic.attrs.reminder.id === At)
184125
184125
  return Dt === "cancelled" ? jt.delete(X3, X3 + ic.nodeSize) : jt.setNodeMarkup(X3, void 0, {
184126
184126
  ...ic.attrs,
@@ -184137,12 +184137,12 @@ const CHe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
184137
184137
  console.debug("collab: cannot find editor or awareness");
184138
184138
  return;
184139
184139
  }
184140
- const Dt = Zt.getLocalState(), jt = Dt == null ? void 0 : Dt.user, sn = {
184140
+ const Dt = Zt.getLocalState(), jt = Dt == null ? void 0 : Dt.user, an = {
184141
184141
  name: At,
184142
184142
  color: jt == null ? void 0 : jt.color,
184143
184143
  isEns: jt == null ? void 0 : jt.isEns
184144
184144
  };
184145
- Zt.setLocalStateField("user", sn), fe.setEditable(!0);
184145
+ Zt.setLocalStateField("user", an), fe.setEditable(!0);
184146
184146
  },
184147
184147
  exportCurrentTabOrOpenExportModal: (At = "pdf", Dt) => {
184148
184148
  var jt;
@@ -184158,16 +184158,16 @@ const CHe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
184158
184158
  if (Dt.length >= 6)
184159
184159
  return Dt;
184160
184160
  const jt = At.name.split(",").map((Is) => {
184161
- const an = Is.trim();
184161
+ const ln = Is.trim();
184162
184162
  return (x == null ? void 0 : x.find(
184163
- (ic) => ic.name.toLowerCase() === an.toLowerCase()
184164
- )) || { name: an, color: At.color };
184165
- }), sn = [...Dt];
184163
+ (ic) => ic.name.toLowerCase() === ln.toLowerCase()
184164
+ )) || { name: ln, color: At.color };
184165
+ }), an = [...Dt];
184166
184166
  return jt.forEach((Is) => {
184167
- sn.some(
184168
- (an) => an.name.toLowerCase() === Is.name.toLowerCase()
184169
- ) || sn.push(Is);
184170
- }), sn.slice(0, 6);
184167
+ an.some(
184168
+ (ln) => ln.name.toLowerCase() === Is.name.toLowerCase()
184169
+ ) || an.push(Is);
184170
+ }), an.slice(0, 6);
184171
184171
  });
184172
184172
  }, nC = (At) => {
184173
184173
  k == null || k(
@@ -184175,18 +184175,18 @@ const CHe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
184175
184175
  );
184176
184176
  }, jJ = () => {
184177
184177
  N == null || N(!1);
184178
- const At = new URL(window.location.href), Dt = At.hash, [jt, sn] = Dt.split("&");
184179
- sn && sn.startsWith("slides=") && (At.hash = jt, window.history.replaceState({}, "", At.toString()));
184178
+ const At = new URL(window.location.href), Dt = At.hash, [jt, an] = Dt.split("&");
184179
+ an && an.startsWith("slides=") && (At.hash = jt, window.history.replaceState({}, "", At.toString()));
184180
184180
  };
184181
184181
  Re(() => {
184182
184182
  if (fe && dt) {
184183
184183
  const { selection: At } = fe.state, Dt = zy(At), jt = () => {
184184
184184
  Ke(!0);
184185
- }, sn = () => {
184185
+ }, an = () => {
184186
184186
  Ke(!1);
184187
184187
  };
184188
- return !Dt && fe.on("focus", jt), Dt && fe.on("blur", sn), () => {
184189
- fe.off("focus", jt), fe.off("blur", sn);
184188
+ return !Dt && fe.on("focus", jt), Dt && fe.on("blur", an), () => {
184189
+ fe.off("focus", jt), fe.off("blur", an);
184190
184190
  };
184191
184191
  }
184192
184192
  }, [dt, fe]), Re(() => {
@@ -184226,7 +184226,7 @@ const CHe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
184226
184226
  },
184227
184227
  {}
184228
184228
  ), [ce]), oC = () => {
184229
- var jt, sn, Is;
184229
+ var jt, an, Is;
184230
184230
  const At = Eg.length > 0 || Hh.length > 0 && !((jt = Pe.versionHistoryState) != null && jt.enabled), Dt = be && !dt && _ === "1" && (Ae == null ? void 0 : Ae.orientation) === "landscape" && rt && !Ie;
184231
184231
  return /* @__PURE__ */ F.jsx(fh, { children: /* @__PURE__ */ F.jsxs(F.Fragment, { children: [
184232
184232
  !e && /* @__PURE__ */ F.jsx(
@@ -184262,8 +184262,8 @@ const CHe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
184262
184262
  isConnected: ue,
184263
184263
  tabs: Eg,
184264
184264
  ydoc: $t,
184265
- onRegisterExportTrigger: (an) => {
184266
- Gt.current = an;
184265
+ onRegisterExportTrigger: (ln) => {
184266
+ Gt.current = ln;
184267
184267
  }
184268
184268
  }
184269
184269
  ) })
@@ -184275,8 +184275,8 @@ const CHe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
184275
184275
  editor: fe,
184276
184276
  ydoc: $t,
184277
184277
  tabs: Eg,
184278
- onRegisterExportTrigger: (an) => {
184279
- Gt.current = an;
184278
+ onRegisterExportTrigger: (ln) => {
184279
+ Gt.current = ln;
184280
184280
  },
184281
184281
  onError: m,
184282
184282
  ipfsImageUploadFn: f,
@@ -184413,9 +184413,9 @@ const CHe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
184413
184413
  ipfsImageFetchFn: Te,
184414
184414
  fetchV1ImageFn: Ne,
184415
184415
  ipfsImageUploadFn: f,
184416
- onReminderCreate: (Is = (sn = Ce == null ? void 0 : Ce.find(
184417
- (an) => an.name === "reminderBlock"
184418
- )) == null ? void 0 : sn.options) == null ? void 0 : Is.onReminderCreate,
184416
+ onReminderCreate: (Is = (an = Ce == null ? void 0 : Ce.find(
184417
+ (ln) => ln.name === "reminderBlock"
184418
+ )) == null ? void 0 : an.options) == null ? void 0 : Is.onReminderCreate,
184419
184419
  isConnected: ue,
184420
184420
  isCollabDocOwner: n != null && n.enabled ? n.connection.isOwner : !0,
184421
184421
  enableCollaboration: n == null ? void 0 : n.enabled
@@ -184455,14 +184455,14 @@ const CHe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
184455
184455
  style: bn()
184456
184456
  },
184457
184457
  children: [
184458
- br.map((an, oc) => /* @__PURE__ */ F.jsx(
184458
+ br.map((ln, oc) => /* @__PURE__ */ F.jsx(
184459
184459
  E2,
184460
184460
  {
184461
- style: { backgroundColor: an == null ? void 0 : an.color },
184462
- onRemove: () => nC(an == null ? void 0 : an.name),
184461
+ style: { backgroundColor: ln == null ? void 0 : ln.color },
184462
+ onRemove: () => nC(ln == null ? void 0 : ln.name),
184463
184463
  isRemovable: !e,
184464
184464
  className: "!h-6 rounded",
184465
- children: an == null ? void 0 : an.name
184465
+ children: ln == null ? void 0 : ln.name
184466
184466
  },
184467
184467
  oc
184468
184468
  )),
@@ -184486,14 +184486,14 @@ const CHe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
184486
184486
  exit: { opacity: 0, height: 0 },
184487
184487
  transition: { duration: 0.3 },
184488
184488
  className: "flex flex-wrap items-center gap-1",
184489
- children: v == null ? void 0 : v.slice(4).map((an, oc) => /* @__PURE__ */ F.jsx(
184489
+ children: v == null ? void 0 : v.slice(4).map((ln, oc) => /* @__PURE__ */ F.jsx(
184490
184490
  E2,
184491
184491
  {
184492
- style: { backgroundColor: an == null ? void 0 : an.color },
184493
- onRemove: () => nC(an == null ? void 0 : an.name),
184492
+ style: { backgroundColor: ln == null ? void 0 : ln.color },
184493
+ onRemove: () => nC(ln == null ? void 0 : ln.name),
184494
184494
  isRemovable: !e,
184495
184495
  className: "!h-6 rounded",
184496
- children: an == null ? void 0 : an.name
184496
+ children: ln == null ? void 0 : ln.name
184497
184497
  },
184498
184498
  oc + 4
184499
184499
  ))
@@ -185391,7 +185391,7 @@ const ZO = (e) => {
185391
185391
  children: [
185392
185392
  /* @__PURE__ */ F.jsxs("div", { className: "flex-1 flex items-center gap-1 max-w-[200px] min-w-max", children: [
185393
185393
  r.status === "pending" ? /* @__PURE__ */ F.jsx(
185394
- ln,
185394
+ on,
185395
185395
  {
185396
185396
  text: /* @__PURE__ */ F.jsxs("div", { className: "flex flex-col items-center gap-1", children: [
185397
185397
  /* @__PURE__ */ F.jsx("p", { className: "text-body-sm", children: "Uploading on-chain" }),