@fileverse-dev/ddoc 2.2.8-patch-5 → 2.2.8-patch-6

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.
@@ -1,4 +1,4 @@
1
- import { B as p, g as m, s as w, d as k, i as b, l as L, a as O, c as E, b as x, e as R, H as y, f as M } from "./index-D3_CBeY-.mjs";
1
+ import { B as p, g as m, s as w, d as k, i as b, l as L, a as O, c as E, b as x, e as R, H as y, f as M } from "./index-mMUwBzyq.mjs";
2
2
  class S extends p {
3
3
  constructor({ callbackSelector: r, cause: a, data: n, extraData: i, sender: f, urls: t }) {
4
4
  var o;
@@ -469,7 +469,7 @@ function Noe() {
469
469
  }
470
470
  }
471
471
  var tt = b.ReactCurrentOwner, Be = b.ReactDebugCurrentFrame;
472
- function nt(z) {
472
+ function rt(z) {
473
473
  if (z) {
474
474
  var ye = z._owner, je = J(z.type, z._source, ye ? ye.type : null);
475
475
  Be.setExtraStackFrame(je);
@@ -519,7 +519,7 @@ Check the top-level render call using <` + je + ">.");
519
519
  return;
520
520
  wt[je] = !0;
521
521
  var Ue = "";
522
- z && z._owner && z._owner !== tt.current && (Ue = " It was passed a child from " + W(z._owner.type) + "."), nt(z), k('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', je, Ue), nt(null);
522
+ z && z._owner && z._owner !== tt.current && (Ue = " It was passed a child from " + W(z._owner.type) + "."), rt(z), k('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', je, Ue), rt(null);
523
523
  }
524
524
  }
525
525
  function gt(z, ye) {
@@ -571,11 +571,11 @@ Check the top-level render call using <` + je + ">.");
571
571
  for (var ye = Object.keys(z.props), je = 0; je < ye.length; je++) {
572
572
  var Ue = ye[je];
573
573
  if (Ue !== "children" && Ue !== "key") {
574
- nt(z), k("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", Ue), nt(null);
574
+ rt(z), k("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", Ue), rt(null);
575
575
  break;
576
576
  }
577
577
  }
578
- z.ref !== null && (nt(z), k("Invalid attribute `ref` supplied to `React.Fragment`."), nt(null));
578
+ z.ref !== null && (rt(z), k("Invalid attribute `ref` supplied to `React.Fragment`."), rt(null));
579
579
  }
580
580
  }
581
581
  var Lr = {};
@@ -14227,8 +14227,8 @@ function tce(e, t) {
14227
14227
  if (x.state.isVisible)
14228
14228
  tt.setAttribute(qe, Be ? Be + " " + Ce : Ce);
14229
14229
  else {
14230
- var nt = Be && Be.replace(Ce, "").trim();
14231
- nt ? tt.setAttribute(qe, nt) : tt.removeAttribute(qe);
14230
+ var rt = Be && Be.replace(Ce, "").trim();
14231
+ rt ? tt.setAttribute(qe, rt) : tt.removeAttribute(qe);
14232
14232
  }
14233
14233
  });
14234
14234
  }
@@ -14345,7 +14345,7 @@ function tce(e, t) {
14345
14345
  var qe = we.target, Ce = W().contains(qe) || F.contains(qe);
14346
14346
  if (!(we.type === "mousemove" && Ce)) {
14347
14347
  var Je = N().concat(F).map(function(tt) {
14348
- var Be, nt = tt._tippy, pt = (Be = nt.popperInstance) == null ? void 0 : Be.state;
14348
+ var Be, rt = tt._tippy, pt = (Be = rt.popperInstance) == null ? void 0 : Be.state;
14349
14349
  return pt ? {
14350
14350
  popperRect: tt.getBoundingClientRect(),
14351
14351
  popperState: pt,
@@ -14373,7 +14373,7 @@ function tce(e, t) {
14373
14373
  }
14374
14374
  function ve() {
14375
14375
  V();
14376
- var we = x.props, qe = we.popperOptions, Ce = we.placement, Je = we.offset, tt = we.getReferenceClientRect, Be = we.moveTransition, nt = B() ? U8(F).arrow : null, pt = tt ? {
14376
+ var we = x.props, qe = we.popperOptions, Ce = we.placement, Je = we.offset, tt = we.getReferenceClientRect, Be = we.moveTransition, rt = B() ? U8(F).arrow : null, pt = tt ? {
14377
14377
  getBoundingClientRect: tt,
14378
14378
  contextElement: tt.contextElement || W()
14379
14379
  } : e, dt = {
@@ -14416,10 +14416,10 @@ function tce(e, t) {
14416
14416
  adaptive: !Be
14417
14417
  }
14418
14418
  }, dt];
14419
- B() && nt && Rt.push({
14419
+ B() && rt && Rt.push({
14420
14420
  name: "arrow",
14421
14421
  options: {
14422
- element: nt,
14422
+ element: rt,
14423
14423
  padding: 3
14424
14424
  }
14425
14425
  }), Rt.push.apply(Rt, (qe == null ? void 0 : qe.modifiers) || []), x.popperInstance = Aue(pt, F, Object.assign({}, qe, {
@@ -14497,8 +14497,8 @@ function tce(e, t) {
14497
14497
  var we = x.state.isVisible, qe = x.state.isDestroyed, Ce = !x.state.isEnabled, Je = La.isTouch && !x.props.touch, tt = f5(x.props.duration, 0, Jo.duration);
14498
14498
  if (!(we || qe || Ce || Je) && !W().hasAttribute("disabled") && (G("onShow", [x], !1), x.props.onShow(x) !== !1)) {
14499
14499
  if (x.state.isVisible = !0, B() && (F.style.visibility = "visible"), _(), pe(), x.state.isMounted || (F.style.transition = "none"), B()) {
14500
- var Be = U(), nt = Be.box, pt = Be.content;
14501
- p5([nt, pt], 0);
14500
+ var Be = U(), rt = Be.box, pt = Be.content;
14501
+ p5([rt, pt], 0);
14502
14502
  }
14503
14503
  f = function() {
14504
14504
  var Rt;
@@ -14519,8 +14519,8 @@ function tce(e, t) {
14519
14519
  var we = !x.state.isVisible, qe = x.state.isDestroyed, Ce = !x.state.isEnabled, Je = f5(x.props.duration, 1, Jo.duration);
14520
14520
  if (!(we || qe || Ce) && (G("onHide", [x], !1), x.props.onHide(x) !== !1)) {
14521
14521
  if (x.state.isVisible = !1, x.state.isShown = !1, u = !1, a = !1, B() && (F.style.visibility = "hidden"), K(), X(), _(!0), B()) {
14522
- var tt = U(), Be = tt.box, nt = tt.content;
14523
- x.props.animation && (p5([Be, nt], Je), DD([Be, nt], "hidden"));
14522
+ var tt = U(), Be = tt.box, rt = tt.content;
14523
+ x.props.animation && (p5([Be, rt], Je), DD([Be, rt], "hidden"));
14524
14524
  }
14525
14525
  Z(), Q(), x.props.animation ? B() && de(Je, x.unmount) : x.unmount();
14526
14526
  }
@@ -16042,7 +16042,7 @@ function Ace() {
16042
16042
  }
16043
16043
  }
16044
16044
  var tt = b.ReactCurrentOwner, Be = b.ReactDebugCurrentFrame;
16045
- function nt(z) {
16045
+ function rt(z) {
16046
16046
  if (z) {
16047
16047
  var ye = z._owner, je = J(z.type, z._source, ye ? ye.type : null);
16048
16048
  Be.setExtraStackFrame(je);
@@ -16092,7 +16092,7 @@ Check the top-level render call using <` + je + ">.");
16092
16092
  return;
16093
16093
  wt[je] = !0;
16094
16094
  var Ue = "";
16095
- z && z._owner && z._owner !== tt.current && (Ue = " It was passed a child from " + W(z._owner.type) + "."), nt(z), k('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', je, Ue), nt(null);
16095
+ z && z._owner && z._owner !== tt.current && (Ue = " It was passed a child from " + W(z._owner.type) + "."), rt(z), k('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', je, Ue), rt(null);
16096
16096
  }
16097
16097
  }
16098
16098
  function gt(z, ye) {
@@ -16144,11 +16144,11 @@ Check the top-level render call using <` + je + ">.");
16144
16144
  for (var ye = Object.keys(z.props), je = 0; je < ye.length; je++) {
16145
16145
  var Ue = ye[je];
16146
16146
  if (Ue !== "children" && Ue !== "key") {
16147
- nt(z), k("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", Ue), nt(null);
16147
+ rt(z), k("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", Ue), rt(null);
16148
16148
  break;
16149
16149
  }
16150
16150
  }
16151
- z.ref !== null && (nt(z), k("Invalid attribute `ref` supplied to `React.Fragment`."), nt(null));
16151
+ z.ref !== null && (rt(z), k("Invalid attribute `ref` supplied to `React.Fragment`."), rt(null));
16152
16152
  }
16153
16153
  }
16154
16154
  var Lr = {};
@@ -57052,12 +57052,12 @@ function Wht({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, s
57052
57052
  return (window.innerWidth - I9) / window.innerWidth;
57053
57053
  }
57054
57054
  function be(Be) {
57055
- var nt, pt;
57056
- !c && !i || te.current && !te.current.contains(Be.target) || (J.current = ((nt = te.current) == null ? void 0 : nt.getBoundingClientRect().height) || 0, $.current = ((pt = te.current) == null ? void 0 : pt.getBoundingClientRect().width) || 0, Q(!0), pe.current = /* @__PURE__ */ new Date(), mG() && window.addEventListener("touchend", () => Fe.current = !1, {
57055
+ var rt, pt;
57056
+ !c && !i || te.current && !te.current.contains(Be.target) || (J.current = ((rt = te.current) == null ? void 0 : rt.getBoundingClientRect().height) || 0, $.current = ((pt = te.current) == null ? void 0 : pt.getBoundingClientRect().width) || 0, Q(!0), pe.current = /* @__PURE__ */ new Date(), mG() && window.addEventListener("touchend", () => Fe.current = !1, {
57057
57057
  once: !0
57058
57058
  }), Be.target.setPointerCapture(Be.pointerId), Le.current = lr(x) ? Be.pageY : Be.pageX);
57059
57059
  }
57060
- function Te(Be, nt) {
57060
+ function Te(Be, rt) {
57061
57061
  var pt;
57062
57062
  let dt = Be;
57063
57063
  const Rt = (pt = window.getSelection()) == null ? void 0 : pt.toString(), qt = te.current ? Vg(te.current, x) : null, wt = /* @__PURE__ */ new Date();
@@ -57071,7 +57071,7 @@ function Wht({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, s
57071
57071
  return !0;
57072
57072
  if (Rt && Rt.length > 0)
57073
57073
  return !1;
57074
- if (de.current && wt.getTime() - de.current.getTime() < u && qt === 0 || nt)
57074
+ if (de.current && wt.getTime() - de.current.getTime() < u && qt === 0 || rt)
57075
57075
  return de.current = wt, !1;
57076
57076
  for (; dt; ) {
57077
57077
  if (dt.scrollHeight > dt.clientHeight) {
@@ -57086,7 +57086,7 @@ function Wht({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, s
57086
57086
  }
57087
57087
  function $e(Be) {
57088
57088
  if (te.current && Z) {
57089
- const nt = x === "bottom" || x === "right" ? 1 : -1, pt = (Le.current - (lr(x) ? Be.pageY : Be.pageX)) * nt, dt = pt > 0, Rt = i && !c && !dt;
57089
+ const rt = x === "bottom" || x === "right" ? 1 : -1, pt = (Le.current - (lr(x) ? Be.pageY : Be.pageX)) * rt, dt = pt > 0, Rt = i && !c && !dt;
57090
57090
  if (Rt && E === 0) return;
57091
57091
  const qt = Math.abs(pt), wt = document.querySelector("[data-vaul-drawer-wrapper]"), on = x === "bottom" || x === "top" ? J.current : $.current;
57092
57092
  let vn = qt / on;
@@ -57099,7 +57099,7 @@ function Wht({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, s
57099
57099
  }), i && fe({
57100
57100
  draggedDistance: pt
57101
57101
  }), dt && !i) {
57102
- const Gn = Oht(pt), Lr = Math.min(Gn * -1, 0) * nt;
57102
+ const Gn = Oht(pt), Lr = Math.min(Gn * -1, 0) * rt;
57103
57103
  hr(te.current, {
57104
57104
  transform: lr(x) ? `translate3d(0, ${Lr}px, 0)` : `translate3d(${Lr}px, 0, 0)`
57105
57105
  });
@@ -57118,7 +57118,7 @@ function Wht({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, s
57118
57118
  }, !0);
57119
57119
  }
57120
57120
  if (!i) {
57121
- const Gn = qt * nt;
57121
+ const Gn = qt * rt;
57122
57122
  hr(te.current, {
57123
57123
  transform: lr(x) ? `translate3d(0, ${Gn}px, 0)` : `translate3d(${Gn}px, 0, 0)`
57124
57124
  });
@@ -57131,7 +57131,7 @@ function Wht({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, s
57131
57131
  });
57132
57132
  }, []), ke.useEffect(() => {
57133
57133
  var Be;
57134
- function nt() {
57134
+ function rt() {
57135
57135
  if (!te.current || !D) return;
57136
57136
  const pt = document.activeElement;
57137
57137
  if (N9(pt) || Me.current) {
@@ -57153,9 +57153,9 @@ function Wht({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, s
57153
57153
  i && i.length > 0 && !Me.current ? te.current.style.bottom = "0px" : te.current.style.bottom = `${Math.max(wt, 0)}px`;
57154
57154
  }
57155
57155
  }
57156
- return (Be = window.visualViewport) == null || Be.addEventListener("resize", nt), () => {
57156
+ return (Be = window.visualViewport) == null || Be.addEventListener("resize", rt), () => {
57157
57157
  var pt;
57158
- return (pt = window.visualViewport) == null ? void 0 : pt.removeEventListener("resize", nt);
57158
+ return (pt = window.visualViewport) == null ? void 0 : pt.removeEventListener("resize", rt);
57159
57159
  };
57160
57160
  }, [
57161
57161
  E,
@@ -57169,14 +57169,14 @@ function Wht({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, s
57169
57169
  }
57170
57170
  function Ct() {
57171
57171
  if (!te.current) return;
57172
- const Be = document.querySelector("[data-vaul-drawer-wrapper]"), nt = Vg(te.current, x);
57172
+ const Be = document.querySelector("[data-vaul-drawer-wrapper]"), rt = Vg(te.current, x);
57173
57173
  hr(te.current, {
57174
57174
  transform: "translate3d(0, 0, 0)",
57175
57175
  transition: `transform ${Bn.DURATION}s cubic-bezier(${Bn.EASE.join(",")})`
57176
57176
  }), hr(le.current, {
57177
57177
  transition: `opacity ${Bn.DURATION}s cubic-bezier(${Bn.EASE.join(",")})`,
57178
57178
  opacity: "1"
57179
- }), a && nt && nt > 0 && U && hr(Be, {
57179
+ }), a && rt && rt > 0 && U && hr(Be, {
57180
57180
  borderRadius: `${kG}px`,
57181
57181
  overflow: "hidden",
57182
57182
  ...lr(x) ? {
@@ -57197,8 +57197,8 @@ function Wht({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, s
57197
57197
  function qe(Be) {
57198
57198
  if (!Z || !te.current) return;
57199
57199
  te.current.classList.remove(Q5), Fe.current = !1, Q(!1), X.current = /* @__PURE__ */ new Date();
57200
- const nt = Vg(te.current, x);
57201
- if (!Be || !Te(Be.target, !1) || !nt || Number.isNaN(nt) || pe.current === null) return;
57200
+ const rt = Vg(te.current, x);
57201
+ if (!Be || !Te(Be.target, !1) || !rt || Number.isNaN(rt) || pe.current === null) return;
57202
57202
  const pt = X.current.getTime() - pe.current.getTime(), dt = Le.current - (lr(x) ? Be.pageY : Be.pageX), Rt = Math.abs(dt) / pt;
57203
57203
  if (Rt > 0.05 && (ne(!0), setTimeout(() => {
57204
57204
  ne(!1);
@@ -57223,7 +57223,7 @@ function Wht({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, s
57223
57223
  const wt = Math.min((qt = te.current.getBoundingClientRect().height) != null ? qt : 0, window.innerHeight);
57224
57224
  var on;
57225
57225
  const vn = Math.min((on = te.current.getBoundingClientRect().width) != null ? on : 0, window.innerWidth), gt = x === "left" || x === "right";
57226
- if (Math.abs(nt) >= (gt ? vn : wt) * l) {
57226
+ if (Math.abs(rt) >= (gt ? vn : wt) * l) {
57227
57227
  at(), o == null || o(Be, !1);
57228
57228
  return;
57229
57229
  }
@@ -57237,10 +57237,10 @@ function Wht({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, s
57237
57237
  U
57238
57238
  ]);
57239
57239
  function Ce(Be) {
57240
- const nt = Be ? (window.innerWidth - Ug) / window.innerWidth : 1, pt = Be ? -16 : 0;
57240
+ const rt = Be ? (window.innerWidth - Ug) / window.innerWidth : 1, pt = Be ? -16 : 0;
57241
57241
  Ie.current && window.clearTimeout(Ie.current), hr(te.current, {
57242
57242
  transition: `transform ${Bn.DURATION}s cubic-bezier(${Bn.EASE.join(",")})`,
57243
- transform: lr(x) ? `scale(${nt}) translate3d(0, ${pt}px, 0)` : `scale(${nt}) translate3d(${pt}px, 0, 0)`
57243
+ transform: lr(x) ? `scale(${rt}) translate3d(0, ${pt}px, 0)` : `scale(${rt}) translate3d(${pt}px, 0, 0)`
57244
57244
  }), !Be && te.current && (Ie.current = setTimeout(() => {
57245
57245
  const dt = Vg(te.current, x);
57246
57246
  hr(te.current, {
@@ -57249,17 +57249,17 @@ function Wht({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, s
57249
57249
  });
57250
57250
  }, 500));
57251
57251
  }
57252
- function Je(Be, nt) {
57253
- if (nt < 0) return;
57254
- const pt = (window.innerWidth - Ug) / window.innerWidth, dt = pt + nt * (1 - pt), Rt = -16 + nt * Ug;
57252
+ function Je(Be, rt) {
57253
+ if (rt < 0) return;
57254
+ const pt = (window.innerWidth - Ug) / window.innerWidth, dt = pt + rt * (1 - pt), Rt = -16 + rt * Ug;
57255
57255
  hr(te.current, {
57256
57256
  transform: lr(x) ? `scale(${dt}) translate3d(0, ${Rt}px, 0)` : `scale(${dt}) translate3d(${Rt}px, 0, 0)`,
57257
57257
  transition: "none"
57258
57258
  });
57259
57259
  }
57260
- function tt(Be, nt) {
57261
- const pt = lr(x) ? window.innerHeight : window.innerWidth, dt = nt ? (pt - Ug) / pt : 1, Rt = nt ? -16 : 0;
57262
- nt && hr(te.current, {
57260
+ function tt(Be, rt) {
57261
+ const pt = lr(x) ? window.innerHeight : window.innerWidth, dt = rt ? (pt - Ug) / pt : 1, Rt = rt ? -16 : 0;
57262
+ rt && hr(te.current, {
57263
57263
  transition: `transform ${Bn.DURATION}s cubic-bezier(${Bn.EASE.join(",")})`,
57264
57264
  transform: lr(x) ? `scale(${dt}) translate3d(0, ${Rt}px, 0)` : `scale(${dt}) translate3d(${Rt}px, 0, 0)`
57265
57265
  });
@@ -79432,7 +79432,7 @@ const Jyt = ({
79432
79432
  isActive: t
79433
79433
  };
79434
79434
  };
79435
- var rt = /* @__PURE__ */ ((e) => (e[e.NONE = 0] = "NONE", e[e.HEADING = 1] = "HEADING", e[e.TEXT_COLOR = 2] = "TEXT_COLOR", e[e.HIGHLIGHT = 3] = "HIGHLIGHT", e[e.LINK = 4] = "LINK", e[e.FONT_FAMILY = 5] = "FONT_FAMILY", e[e.ALIGNMENT = 6] = "ALIGNMENT", e[e.LIST = 7] = "LIST", e[e.TEXT_FORMATING = 8] = "TEXT_FORMATING", e[e.TEXT_COLOR_PICKER = 9] = "TEXT_COLOR_PICKER", e[e.LINK_POPUP = 10] = "LINK_POPUP", e[e.SCRIPTS = 11] = "SCRIPTS", e[e.FONT_SIZE = 12] = "FONT_SIZE", e))(rt || {});
79435
+ var nt = /* @__PURE__ */ ((e) => (e[e.NONE = 0] = "NONE", e[e.HEADING = 1] = "HEADING", e[e.TEXT_COLOR = 2] = "TEXT_COLOR", e[e.HIGHLIGHT = 3] = "HIGHLIGHT", e[e.LINK = 4] = "LINK", e[e.FONT_FAMILY = 5] = "FONT_FAMILY", e[e.ALIGNMENT = 6] = "ALIGNMENT", e[e.LIST = 7] = "LIST", e[e.TEXT_FORMATING = 8] = "TEXT_FORMATING", e[e.TEXT_COLOR_PICKER = 9] = "TEXT_COLOR_PICKER", e[e.LINK_POPUP = 10] = "LINK_POPUP", e[e.SCRIPTS = 11] = "SCRIPTS", e[e.FONT_SIZE = 12] = "FONT_SIZE", e))(nt || {});
79436
79436
  function Qyt(e) {
79437
79437
  const [t, n] = Re(e), r = et(null), o = (i) => {
79438
79438
  r && r.current && !r.current.contains(i.target) && n(
@@ -80675,12 +80675,12 @@ function H3t(e, t, n, r, o, i, a) {
80675
80675
  dragHandler: Je,
80676
80676
  animation: tt,
80677
80677
  eventHandler: Be,
80678
- scrollBounds: nt,
80678
+ scrollBounds: rt,
80679
80679
  options: {
80680
80680
  loop: pt
80681
80681
  }
80682
80682
  }, dt) => {
80683
- const Rt = Te.settled(), qt = !nt.shouldConstrain(), wt = pt ? Rt : Rt && qt, on = wt && !Je.pointerDown();
80683
+ const Rt = Te.settled(), qt = !rt.shouldConstrain(), wt = pt ? Rt : Rt && qt, on = wt && !Je.pointerDown();
80684
80684
  on && tt.stop();
80685
80685
  const vn = at.get() * dt + we.get() * (1 - dt);
80686
80686
  Ct.set(vn), pt && (qe.loop(Te.direction()), Ce.loop()), $e.to(Ct.get()), on && Be.emit("settle"), wt || Be.emit("scroll");
@@ -86505,7 +86505,7 @@ async function o6(e, t) {
86505
86505
  });
86506
86506
  return K === "0x" ? { data: void 0 } : { data: K };
86507
86507
  } catch (U) {
86508
- const P = hxt(U), { offchainLookup: _, offchainLookupSignature: G } = await import("./ccip-Cn9vbSdV.mjs");
86508
+ const P = hxt(U), { offchainLookup: _, offchainLookupSignature: G } = await import("./ccip-BGPFRN2C.mjs");
86509
86509
  if (e.ccipRead !== !1 && (P == null ? void 0 : P.slice(0, 10)) === G && k)
86510
86510
  return { data: await _(e, { data: P, to: k }) };
86511
86511
  throw D && (P == null ? void 0 : P.slice(0, 10)) === "0x101bb98d" ? new v5t({ factory: c }) : r$(U, {
@@ -91517,12 +91517,12 @@ const X$ = fn(void 0), F9t = ({
91517
91517
  }
91518
91518
  try {
91519
91519
  Se((pt) => [...pt, Ce]);
91520
- const { name: tt, isEns: Be, resolved: nt } = await J$(
91520
+ const { name: tt, isEns: Be, resolved: rt } = await J$(
91521
91521
  Ce,
91522
91522
  d
91523
91523
  // Add definite assignment assertion if ensResolutionUrl is guaranteed
91524
91524
  );
91525
- nt && Le((pt) => {
91525
+ rt && Le((pt) => {
91526
91526
  const dt = {
91527
91527
  ...pt,
91528
91528
  [Ce]: { name: tt, isEns: Be }
@@ -91544,15 +91544,11 @@ const X$ = fn(void 0), F9t = ({
91544
91544
  [n, a]
91545
91545
  );
91546
91546
  $M([K, ne, le], () => {
91547
- Z && (t.chain().unsetHighlight().run(), Q(!1));
91547
+ Z && Q(!1);
91548
91548
  });
91549
91549
  const J = Ze(() => {
91550
91550
  const { state: Ce } = t, { from: Je, to: tt } = Ce.selection, Be = Ce.doc.textBetween(Je, tt, " ");
91551
91551
  ce ? te && G(te.selectedContent || "") : G(Be), Q(!0), x == null || x();
91552
- const nt = localStorage.getItem("theme") === "dark";
91553
- t.chain().setHighlight({
91554
- color: nt ? "#15521d" : "#DDFBDF"
91555
- }).run();
91556
91552
  }, [t, ce, te, x]), $ = Ze(
91557
91553
  (Ce, Je = "", tt) => ({
91558
91554
  id: `comment-${Ed()}`,
@@ -91567,7 +91563,7 @@ const X$ = fn(void 0), F9t = ({
91567
91563
  ), ie = Ze(
91568
91564
  (Ce, Je) => {
91569
91565
  if (!t) return;
91570
- const { state: tt } = t, { from: Be, to: nt } = tt.selection, pt = tt.doc.textBetween(Be, nt, " "), dt = $(
91566
+ const { state: tt } = t, { from: Be, to: rt } = tt.selection, pt = tt.doc.textBetween(Be, rt, " "), dt = $(
91571
91567
  pt,
91572
91568
  Ce,
91573
91569
  Je || o
@@ -91622,8 +91618,8 @@ const X$ = fn(void 0), F9t = ({
91622
91618
  `[data-comment-id="${Ce}"]`
91623
91619
  );
91624
91620
  if (Be) {
91625
- const nt = t.view.posAtDOM(Be, 0), pt = nt + (((tt = Be.textContent) == null ? void 0 : tt.length) ?? 0);
91626
- t.commands.setTextSelection({ from: nt, to: pt });
91621
+ const rt = t.view.posAtDOM(Be, 0), pt = rt + (((tt = Be.textContent) == null ? void 0 : tt.length) ?? 0);
91622
+ t.commands.setTextSelection({ from: rt, to: pt });
91627
91623
  const Rt = [
91628
91624
  document.querySelector(".ProseMirror"),
91629
91625
  document.getElementById("editor-canvas"),
@@ -91659,7 +91655,7 @@ const X$ = fn(void 0), F9t = ({
91659
91655
  },
91660
91656
  []
91661
91657
  ), he = Ze(() => {
91662
- if (t.chain().unsetHighlight().run(), !I.trim() || !o) return;
91658
+ if (!I.trim() || !o) return;
91663
91659
  const Ce = {
91664
91660
  id: `comment-${Ed()}`,
91665
91661
  username: o,
@@ -91723,8 +91719,8 @@ const X$ = fn(void 0), F9t = ({
91723
91719
  `[data-comment-id="${Je.id}"]`
91724
91720
  );
91725
91721
  if (tt) {
91726
- const Be = t.view.posAtDOM(tt, 0), nt = Be + (((Ce = tt.textContent) == null ? void 0 : Ce.length) ?? 0);
91727
- t.commands.setTextSelection({ from: Be, to: nt }), O(Je.id || "");
91722
+ const Be = t.view.posAtDOM(tt, 0), rt = Be + (((Ce = tt.textContent) == null ? void 0 : Ce.length) ?? 0);
91723
+ t.commands.setTextSelection({ from: Be, to: rt }), O(Je.id || "");
91728
91724
  }
91729
91725
  }
91730
91726
  }, [at, $e, t, O]), we = Ze(() => {
@@ -91734,8 +91730,8 @@ const X$ = fn(void 0), F9t = ({
91734
91730
  `[data-comment-id="${Je.id}"]`
91735
91731
  );
91736
91732
  if (tt) {
91737
- const Be = t.view.posAtDOM(tt, 0), nt = Be + (((Ce = tt.textContent) == null ? void 0 : Ce.length) ?? 0);
91738
- t.commands.setTextSelection({ from: Be, to: nt }), O(Je.id || "");
91733
+ const Be = t.view.posAtDOM(tt, 0), rt = Be + (((Ce = tt.textContent) == null ? void 0 : Ce.length) ?? 0);
91734
+ t.commands.setTextSelection({ from: Be, to: rt }), O(Je.id || "");
91739
91735
  }
91740
91736
  }
91741
91737
  }, [at, $e, t, O]), qe = It(
@@ -95157,7 +95153,7 @@ function DJ() {
95157
95153
  const $e = Jt({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), at = "http://www.w3.org/1998/Math/MathML", Ct = "http://www.w3.org/2000/svg", we = "http://www.w3.org/1999/xhtml";
95158
95154
  let qe = we, Ce = !1, Je = null;
95159
95155
  const tt = Jt({}, [at, Ct, we], Rx);
95160
- let Be = Jt({}, ["mi", "mo", "mn", "ms", "mtext"]), nt = Jt({}, ["annotation-xml"]);
95156
+ let Be = Jt({}, ["mi", "mo", "mn", "ms", "mtext"]), rt = Jt({}, ["annotation-xml"]);
95161
95157
  const pt = Jt({}, ["title", "style", "font", "a", "script"]);
95162
95158
  let dt = null;
95163
95159
  const Rt = ["application/xhtml+xml", "text/html"], qt = "text/html";
@@ -95168,7 +95164,7 @@ function DJ() {
95168
95164
  let oe = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
95169
95165
  if (!(on && on === oe)) {
95170
95166
  if ((!oe || typeof oe != "object") && (oe = {}), oe = su(oe), dt = // eslint-disable-next-line unicorn/prefer-includes
95171
- Rt.indexOf(oe.PARSER_MEDIA_TYPE) === -1 ? qt : oe.PARSER_MEDIA_TYPE, wt = dt === "application/xhtml+xml" ? Rx : l4, K = Gi(oe, "ALLOWED_TAGS") ? Jt({}, oe.ALLOWED_TAGS, wt) : ne, le = Gi(oe, "ALLOWED_ATTR") ? Jt({}, oe.ALLOWED_ATTR, wt) : ce, Je = Gi(oe, "ALLOWED_NAMESPACES") ? Jt({}, oe.ALLOWED_NAMESPACES, Rx) : tt, Te = Gi(oe, "ADD_URI_SAFE_ATTR") ? Jt(su($e), oe.ADD_URI_SAFE_ATTR, wt) : $e, ue = Gi(oe, "ADD_DATA_URI_TAGS") ? Jt(su(be), oe.ADD_DATA_URI_TAGS, wt) : be, me = Gi(oe, "FORBID_CONTENTS") ? Jt({}, oe.FORBID_CONTENTS, wt) : ee, X = Gi(oe, "FORBID_TAGS") ? Jt({}, oe.FORBID_TAGS, wt) : {}, de = Gi(oe, "FORBID_ATTR") ? Jt({}, oe.FORBID_ATTR, wt) : {}, he = Gi(oe, "USE_PROFILES") ? oe.USE_PROFILES : !1, Fe = oe.ALLOW_ARIA_ATTR !== !1, Ie = oe.ALLOW_DATA_ATTR !== !1, Le = oe.ALLOW_UNKNOWN_PROTOCOLS || !1, Me = oe.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Se = oe.SAFE_FOR_TEMPLATES || !1, Ae = oe.SAFE_FOR_XML !== !1, te = oe.WHOLE_DOCUMENT || !1, ie = oe.RETURN_DOM || !1, ve = oe.RETURN_DOM_FRAGMENT || !1, V = oe.RETURN_TRUSTED_TYPE || !1, $ = oe.FORCE_BODY || !1, E = oe.SANITIZE_DOM !== !1, N = oe.SANITIZE_NAMED_PROPS || !1, re = oe.KEEP_CONTENT !== !1, fe = oe.IN_PLACE || !1, Q = oe.ALLOWED_URI_REGEXP || AJ, qe = oe.NAMESPACE || we, Be = oe.MATHML_TEXT_INTEGRATION_POINTS || Be, nt = oe.HTML_INTEGRATION_POINTS || nt, pe = oe.CUSTOM_ELEMENT_HANDLING || {}, oe.CUSTOM_ELEMENT_HANDLING && gt(oe.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (pe.tagNameCheck = oe.CUSTOM_ELEMENT_HANDLING.tagNameCheck), oe.CUSTOM_ELEMENT_HANDLING && gt(oe.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (pe.attributeNameCheck = oe.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), oe.CUSTOM_ELEMENT_HANDLING && typeof oe.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (pe.allowCustomizedBuiltInElements = oe.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), Se && (Ie = !1), ve && (ie = !0), he && (K = Jt({}, BN), le = [], he.html === !0 && (Jt(K, ON), Jt(le, zN)), he.svg === !0 && (Jt(K, Ox), Jt(le, _x), Jt(le, nm)), he.svgFilters === !0 && (Jt(K, Bx), Jt(le, _x), Jt(le, nm)), he.mathMl === !0 && (Jt(K, zx), Jt(le, _N), Jt(le, nm))), oe.ADD_TAGS && (K === ne && (K = su(K)), Jt(K, oe.ADD_TAGS, wt)), oe.ADD_ATTR && (le === ce && (le = su(le)), Jt(le, oe.ADD_ATTR, wt)), oe.ADD_URI_SAFE_ATTR && Jt(Te, oe.ADD_URI_SAFE_ATTR, wt), oe.FORBID_CONTENTS && (me === ee && (me = su(me)), Jt(me, oe.FORBID_CONTENTS, wt)), re && (K["#text"] = !0), te && Jt(K, ["html", "head", "body"]), K.table && (Jt(K, ["tbody"]), delete X.tbody), oe.TRUSTED_TYPES_POLICY) {
95167
+ Rt.indexOf(oe.PARSER_MEDIA_TYPE) === -1 ? qt : oe.PARSER_MEDIA_TYPE, wt = dt === "application/xhtml+xml" ? Rx : l4, K = Gi(oe, "ALLOWED_TAGS") ? Jt({}, oe.ALLOWED_TAGS, wt) : ne, le = Gi(oe, "ALLOWED_ATTR") ? Jt({}, oe.ALLOWED_ATTR, wt) : ce, Je = Gi(oe, "ALLOWED_NAMESPACES") ? Jt({}, oe.ALLOWED_NAMESPACES, Rx) : tt, Te = Gi(oe, "ADD_URI_SAFE_ATTR") ? Jt(su($e), oe.ADD_URI_SAFE_ATTR, wt) : $e, ue = Gi(oe, "ADD_DATA_URI_TAGS") ? Jt(su(be), oe.ADD_DATA_URI_TAGS, wt) : be, me = Gi(oe, "FORBID_CONTENTS") ? Jt({}, oe.FORBID_CONTENTS, wt) : ee, X = Gi(oe, "FORBID_TAGS") ? Jt({}, oe.FORBID_TAGS, wt) : {}, de = Gi(oe, "FORBID_ATTR") ? Jt({}, oe.FORBID_ATTR, wt) : {}, he = Gi(oe, "USE_PROFILES") ? oe.USE_PROFILES : !1, Fe = oe.ALLOW_ARIA_ATTR !== !1, Ie = oe.ALLOW_DATA_ATTR !== !1, Le = oe.ALLOW_UNKNOWN_PROTOCOLS || !1, Me = oe.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Se = oe.SAFE_FOR_TEMPLATES || !1, Ae = oe.SAFE_FOR_XML !== !1, te = oe.WHOLE_DOCUMENT || !1, ie = oe.RETURN_DOM || !1, ve = oe.RETURN_DOM_FRAGMENT || !1, V = oe.RETURN_TRUSTED_TYPE || !1, $ = oe.FORCE_BODY || !1, E = oe.SANITIZE_DOM !== !1, N = oe.SANITIZE_NAMED_PROPS || !1, re = oe.KEEP_CONTENT !== !1, fe = oe.IN_PLACE || !1, Q = oe.ALLOWED_URI_REGEXP || AJ, qe = oe.NAMESPACE || we, Be = oe.MATHML_TEXT_INTEGRATION_POINTS || Be, rt = oe.HTML_INTEGRATION_POINTS || rt, pe = oe.CUSTOM_ELEMENT_HANDLING || {}, oe.CUSTOM_ELEMENT_HANDLING && gt(oe.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (pe.tagNameCheck = oe.CUSTOM_ELEMENT_HANDLING.tagNameCheck), oe.CUSTOM_ELEMENT_HANDLING && gt(oe.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (pe.attributeNameCheck = oe.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), oe.CUSTOM_ELEMENT_HANDLING && typeof oe.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (pe.allowCustomizedBuiltInElements = oe.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), Se && (Ie = !1), ve && (ie = !0), he && (K = Jt({}, BN), le = [], he.html === !0 && (Jt(K, ON), Jt(le, zN)), he.svg === !0 && (Jt(K, Ox), Jt(le, _x), Jt(le, nm)), he.svgFilters === !0 && (Jt(K, Bx), Jt(le, _x), Jt(le, nm)), he.mathMl === !0 && (Jt(K, zx), Jt(le, _N), Jt(le, nm))), oe.ADD_TAGS && (K === ne && (K = su(K)), Jt(K, oe.ADD_TAGS, wt)), oe.ADD_ATTR && (le === ce && (le = su(le)), Jt(le, oe.ADD_ATTR, wt)), oe.ADD_URI_SAFE_ATTR && Jt(Te, oe.ADD_URI_SAFE_ATTR, wt), oe.FORBID_CONTENTS && (me === ee && (me = su(me)), Jt(me, oe.FORBID_CONTENTS, wt)), re && (K["#text"] = !0), te && Jt(K, ["html", "head", "body"]), K.table && (Jt(K, ["tbody"]), delete X.tbody), oe.TRUSTED_TYPES_POLICY) {
95172
95168
  if (typeof oe.TRUSTED_TYPES_POLICY.createHTML != "function")
95173
95169
  throw kf('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
95174
95170
  if (typeof oe.TRUSTED_TYPES_POLICY.createScriptURL != "function")
@@ -95185,7 +95181,7 @@ function DJ() {
95185
95181
  tagName: "template"
95186
95182
  });
95187
95183
  const _e = l4(oe.tagName), zt = l4(De.tagName);
95188
- return Je[oe.namespaceURI] ? oe.namespaceURI === Ct ? De.namespaceURI === we ? _e === "svg" : De.namespaceURI === at ? _e === "svg" && (zt === "annotation-xml" || Be[zt]) : !!Gn[_e] : oe.namespaceURI === at ? De.namespaceURI === we ? _e === "math" : De.namespaceURI === Ct ? _e === "math" && nt[zt] : !!Lr[_e] : oe.namespaceURI === we ? De.namespaceURI === Ct && !nt[zt] || De.namespaceURI === at && !Be[zt] ? !1 : !Lr[_e] && (pt[_e] || !Gn[_e]) : !!(dt === "application/xhtml+xml" && Je[oe.namespaceURI]) : !1;
95184
+ return Je[oe.namespaceURI] ? oe.namespaceURI === Ct ? De.namespaceURI === we ? _e === "svg" : De.namespaceURI === at ? _e === "svg" && (zt === "annotation-xml" || Be[zt]) : !!Gn[_e] : oe.namespaceURI === at ? De.namespaceURI === we ? _e === "math" : De.namespaceURI === Ct ? _e === "math" && rt[zt] : !!Lr[_e] : oe.namespaceURI === we ? De.namespaceURI === Ct && !rt[zt] || De.namespaceURI === at && !Be[zt] ? !1 : !Lr[_e] && (pt[_e] || !Gn[_e]) : !!(dt === "application/xhtml+xml" && Je[oe.namespaceURI]) : !1;
95189
95185
  }, pr = function(oe) {
95190
95186
  xf(t.removed, {
95191
95187
  element: oe
@@ -97006,7 +97002,7 @@ const _k = [
97006
97002
  ref: a,
97007
97003
  toolVisibility: s,
97008
97004
  setToolVisibility: l
97009
- } = Qyt(rt.NONE), [u, c] = Re(!1), [d, f] = Re(!1), { buttonRef: p } = ll();
97005
+ } = Qyt(nt.NONE), [u, c] = Re(!1), [d, f] = Re(!1), { buttonRef: p } = ll();
97010
97006
  Pe(() => {
97011
97007
  if (e)
97012
97008
  return e.setOptions({
@@ -97015,7 +97011,7 @@ const _k = [
97015
97011
  if (x.shiftKey && x.ctrlKey && x.key.toLowerCase() === "s" || x.altKey && x.shiftKey && (x.key === "5" || x.key === "%"))
97016
97012
  return x.preventDefault(), e.chain().focus().toggleStrike().run(), !0;
97017
97013
  if ((x.altKey || x.metaKey) && x.key === "Enter")
97018
- return x.preventDefault(), l(rt.LINK_POPUP), !0;
97014
+ return x.preventDefault(), l(nt.LINK_POPUP), !0;
97019
97015
  if ((navigator.platform.includes("Mac") ? x.shiftKey && x.metaKey : (x.ctrlKey || x.metaKey) && x.altKey) && x.key.toLowerCase() === "m") {
97020
97016
  x.preventDefault();
97021
97017
  const { state: w } = e, { from: F, to: A } = w.selection;
@@ -97058,14 +97054,14 @@ const _k = [
97058
97054
  {
97059
97055
  icon: "Baseline",
97060
97056
  title: "Text Color",
97061
- onClick: () => l(rt.TEXT_COLOR),
97062
- isActive: s === rt.TEXT_COLOR
97057
+ onClick: () => l(nt.TEXT_COLOR),
97058
+ isActive: s === nt.TEXT_COLOR
97063
97059
  },
97064
97060
  {
97065
97061
  icon: "Highlighter",
97066
97062
  title: "Highlight",
97067
- onClick: () => l(rt.HIGHLIGHT),
97068
- isActive: s === rt.HIGHLIGHT
97063
+ onClick: () => l(nt.HIGHLIGHT),
97064
+ isActive: s === nt.HIGHLIGHT
97069
97065
  },
97070
97066
  null,
97071
97067
  {
@@ -97105,7 +97101,7 @@ const _k = [
97105
97101
  const C = e.chain().focus().command(
97106
97102
  (D) => ea({ ...D, state: w, from: v, to: x })
97107
97103
  ).setTextSelection({ from: v, to: x }).focus().run();
97108
- return l(rt.NONE), C;
97104
+ return l(nt.NONE), C;
97109
97105
  }
97110
97106
  const A = e.chain().focus().command(
97111
97107
  (C) => qs({
@@ -97119,7 +97115,7 @@ const _k = [
97119
97115
  }
97120
97116
  })
97121
97117
  ).setTextSelection({ from: v, to: x }).focus().run();
97122
- return l(rt.NONE), A;
97118
+ return l(nt.NONE), A;
97123
97119
  },
97124
97120
  isActive: (e == null ? void 0 : e.isActive("bulletList")) || !1
97125
97121
  },
@@ -97135,7 +97131,7 @@ const _k = [
97135
97131
  const C = e.chain().focus().command(
97136
97132
  (D) => ea({ ...D, state: w, from: v, to: x })
97137
97133
  ).setTextSelection({ from: v, to: x }).focus().run();
97138
- return l(rt.NONE), C;
97134
+ return l(nt.NONE), C;
97139
97135
  }
97140
97136
  const A = e.chain().focus().command(
97141
97137
  (C) => qs({
@@ -97149,7 +97145,7 @@ const _k = [
97149
97145
  }
97150
97146
  })
97151
97147
  ).setTextSelection({ from: v, to: x }).focus().run();
97152
- return l(rt.NONE), A;
97148
+ return l(nt.NONE), A;
97153
97149
  },
97154
97150
  isActive: (e == null ? void 0 : e.isActive("orderedList")) || !1
97155
97151
  },
@@ -97165,7 +97161,7 @@ const _k = [
97165
97161
  const C = e.chain().focus().command(
97166
97162
  (D) => ea({ ...D, state: w, from: v, to: x })
97167
97163
  ).setTextSelection({ from: v, to: x }).focus().run();
97168
- return l(rt.NONE), C;
97164
+ return l(nt.NONE), C;
97169
97165
  }
97170
97166
  const A = e.chain().focus().command(
97171
97167
  (C) => qs({
@@ -97180,15 +97176,15 @@ const _k = [
97180
97176
  }
97181
97177
  })
97182
97178
  ).setTextSelection({ from: v, to: x }).focus().run();
97183
- return l(rt.NONE), A;
97179
+ return l(nt.NONE), A;
97184
97180
  },
97185
97181
  isActive: (e == null ? void 0 : e.isActive("taskList")) || !1
97186
97182
  },
97187
97183
  {
97188
97184
  icon: "AlignLeft",
97189
97185
  title: "Alignment",
97190
- onClick: () => l(rt.ALIGNMENT),
97191
- isActive: s === rt.ALIGNMENT
97186
+ onClick: () => l(nt.ALIGNMENT),
97187
+ isActive: s === nt.ALIGNMENT
97192
97188
  },
97193
97189
  {
97194
97190
  icon: "TextQuote",
@@ -97213,7 +97209,7 @@ const _k = [
97213
97209
  {
97214
97210
  icon: "Link",
97215
97211
  title: "Link",
97216
- onClick: () => l(rt.LINK),
97212
+ onClick: () => l(nt.LINK),
97217
97213
  isActive: (e == null ? void 0 : e.isActive("link")) || !1
97218
97214
  },
97219
97215
  {
@@ -97328,8 +97324,8 @@ const _k = [
97328
97324
  {
97329
97325
  icon: "Type",
97330
97326
  title: "Text formating",
97331
- onClick: () => l(rt.TEXT_FORMATING),
97332
- isActive: s === rt.TEXT_FORMATING
97327
+ onClick: () => l(nt.TEXT_FORMATING),
97328
+ isActive: s === nt.TEXT_FORMATING
97333
97329
  },
97334
97330
  null,
97335
97331
  {
@@ -97351,7 +97347,7 @@ const _k = [
97351
97347
  const C = e.chain().focus().command(
97352
97348
  (D) => ea({ ...D, state: w, from: v, to: x })
97353
97349
  ).setTextSelection({ from: v, to: x }).focus().run();
97354
- return l(rt.NONE), C;
97350
+ return l(nt.NONE), C;
97355
97351
  }
97356
97352
  const A = e.chain().focus().command(
97357
97353
  (C) => qs({
@@ -97366,7 +97362,7 @@ const _k = [
97366
97362
  }
97367
97363
  })
97368
97364
  ).setTextSelection({ from: v, to: x }).focus().run();
97369
- return l(rt.NONE), A;
97365
+ return l(nt.NONE), A;
97370
97366
  },
97371
97367
  isActive: !1
97372
97368
  },
@@ -97425,7 +97421,7 @@ const _k = [
97425
97421
  "div",
97426
97422
  {
97427
97423
  onClick: () => {
97428
- e.chain().focus().toggleHighlight({ color: r.color }).run(), t(rt.NONE);
97424
+ e.chain().focus().toggleHighlight({ color: r.color }).run(), t(nt.NONE);
97429
97425
  },
97430
97426
  className: xt(
97431
97427
  "w-5 rounded-full flex items-center justify-center cursor-pointer ease-in duration-200 hover:scale-[1.05] h-5",
@@ -97451,7 +97447,7 @@ const _k = [
97451
97447
  {
97452
97448
  variant: "ghost",
97453
97449
  onClick: () => {
97454
- e.chain().focus().unsetHighlight().run(), t(rt.NONE);
97450
+ e.chain().focus().unsetHighlight().run(), t(nt.NONE);
97455
97451
  },
97456
97452
  className: "w-full justify-start mt-2 gap-1 !p-1 h-fit",
97457
97453
  children: [
@@ -97478,7 +97474,7 @@ const _k = [
97478
97474
  "button",
97479
97475
  {
97480
97476
  onClick: () => {
97481
- r.command(t), n(rt.NONE);
97477
+ r.command(t), n(nt.NONE);
97482
97478
  },
97483
97479
  style: {
97484
97480
  fontFamily: r.title
@@ -97506,7 +97502,7 @@ const _k = [
97506
97502
  "button",
97507
97503
  {
97508
97504
  onClick: () => {
97509
- t == null || t.chain().focus().setTextAlign("left").run(), n(rt.NONE);
97505
+ t == null || t.chain().focus().setTextAlign("left").run(), n(nt.NONE);
97510
97506
  },
97511
97507
  className: xt(
97512
97508
  "rounded w-8 h-8 p-1 flex justify-center items-center cursor-pointer transition",
@@ -97519,7 +97515,7 @@ const _k = [
97519
97515
  "button",
97520
97516
  {
97521
97517
  onClick: () => {
97522
- t == null || t.chain().focus().setTextAlign("center").run(), n(rt.NONE);
97518
+ t == null || t.chain().focus().setTextAlign("center").run(), n(nt.NONE);
97523
97519
  },
97524
97520
  className: xt(
97525
97521
  "rounded w-8 h-8 p-1 flex justify-center items-center cursor-pointer transition",
@@ -97532,7 +97528,7 @@ const _k = [
97532
97528
  "button",
97533
97529
  {
97534
97530
  onClick: () => {
97535
- t == null || t.chain().focus().setTextAlign("right").run(), n(rt.NONE);
97531
+ t == null || t.chain().focus().setTextAlign("right").run(), n(nt.NONE);
97536
97532
  },
97537
97533
  className: xt(
97538
97534
  "rounded w-8 h-8 p-1 flex justify-center items-center cursor-pointer transition",
@@ -97545,7 +97541,7 @@ const _k = [
97545
97541
  "button",
97546
97542
  {
97547
97543
  onClick: () => {
97548
- t == null || t.chain().focus().setTextAlign("justify").run(), n(rt.NONE);
97544
+ t == null || t.chain().focus().setTextAlign("justify").run(), n(nt.NONE);
97549
97545
  },
97550
97546
  className: xt(
97551
97547
  "rounded w-8 h-8 p-1 flex justify-center items-center cursor-pointer transition",
@@ -97574,7 +97570,7 @@ const _k = [
97574
97570
  return;
97575
97571
  }
97576
97572
  let c = a;
97577
- !a.startsWith("http://") && !a.startsWith("https://") && (c = "https://" + a), t.chain().focus().extendMarkRange("link").setLink({ href: c }).run(), n(rt.NONE), r && o && o(!1);
97573
+ !a.startsWith("http://") && !a.startsWith("https://") && (c = "https://" + a), t.chain().focus().extendMarkRange("link").setLink({ href: c }).run(), n(nt.NONE), r && o && o(!1);
97578
97574
  }, [a, t, r, o, i, n]);
97579
97575
  return /* @__PURE__ */ M.jsxs(
97580
97576
  "div",
@@ -97601,7 +97597,7 @@ const _k = [
97601
97597
  {
97602
97598
  variant: "secondary",
97603
97599
  onClick: () => {
97604
- t.chain().focus().unsetLink().run(), n(rt.NONE);
97600
+ t.chain().focus().unsetLink().run(), n(nt.NONE);
97605
97601
  },
97606
97602
  className: "min-w-fit h-[36px]",
97607
97603
  children: "Unset"
@@ -97670,7 +97666,7 @@ const _k = [
97670
97666
  "div",
97671
97667
  {
97672
97668
  onClick: () => {
97673
- e && (e.chain().focus().setColor(r.color).run(), t(rt.NONE));
97669
+ e && (e.chain().focus().setColor(r.color).run(), t(nt.NONE));
97674
97670
  },
97675
97671
  className: xt(
97676
97672
  "w-5 rounded-full flex justify-center items-center cursor-pointer ease-in duration-200 hover:scale-[1.05] h-5",
@@ -97696,7 +97692,7 @@ const _k = [
97696
97692
  {
97697
97693
  variant: "ghost",
97698
97694
  onClick: () => {
97699
- e && (e.chain().focus().unsetColor().run(), t(rt.NONE));
97695
+ e && (e.chain().focus().unsetColor().run(), t(nt.NONE));
97700
97696
  },
97701
97697
  className: "w-full justify-start mt-2 gap-1 !p-1 h-fit",
97702
97698
  children: [
@@ -97759,7 +97755,7 @@ const _k = [
97759
97755
  "button",
97760
97756
  {
97761
97757
  onClick: () => {
97762
- o.command(e), t(rt.NONE);
97758
+ o.command(e), t(nt.NONE);
97763
97759
  },
97764
97760
  className: xt(
97765
97761
  "flex w-full items-center space-x-2 rounded-md px-2 py-1 text-left text-sm color-text-default transition",
@@ -97803,7 +97799,7 @@ const _k = [
97803
97799
  "button",
97804
97800
  {
97805
97801
  onClick: () => {
97806
- o(a.value), t(rt.NONE);
97802
+ o(a.value), t(nt.NONE);
97807
97803
  },
97808
97804
  className: xt(
97809
97805
  "flex w-full items-center justify-center rounded px-2 py-1 text-center text-sm color-text-default transition",
@@ -97837,10 +97833,10 @@ const _k = [
97837
97833
  const g = u.chain().focus().command(
97838
97834
  (m) => ea({ ...m, state: f, from: c, to: d })
97839
97835
  ).setTextSelection({ from: c, to: d }).focus().run();
97840
- return r(rt.NONE), g;
97836
+ return r(nt.NONE), g;
97841
97837
  }
97842
97838
  const h = u.chain().focus().toggleNode("paragraph", "paragraph").setTextSelection({ from: c, to: d }).focus().run();
97843
- return r(rt.NONE), h;
97839
+ return r(nt.NONE), h;
97844
97840
  },
97845
97841
  isActive: () => (e == null ? void 0 : e.isActive("paragraph")) && !(e != null && e.isActive("bulletList")) && !(e != null && e.isActive("orderedList"))
97846
97842
  },
@@ -97849,7 +97845,7 @@ const _k = [
97849
97845
  description: "Big",
97850
97846
  icon: "Heading1",
97851
97847
  command: (u) => {
97852
- u.chain().toggleHeading({ level: 1 }).run(), r(rt.NONE);
97848
+ u.chain().toggleHeading({ level: 1 }).run(), r(nt.NONE);
97853
97849
  },
97854
97850
  isActive: () => e == null ? void 0 : e.isActive("heading", { level: 1 })
97855
97851
  },
@@ -97858,7 +97854,7 @@ const _k = [
97858
97854
  description: "Medium",
97859
97855
  icon: "Heading2",
97860
97856
  command: (u) => {
97861
- u.chain().toggleHeading({ level: 2 }).run(), r(rt.NONE);
97857
+ u.chain().toggleHeading({ level: 2 }).run(), r(nt.NONE);
97862
97858
  },
97863
97859
  isActive: () => e == null ? void 0 : e.isActive("heading", { level: 2 })
97864
97860
  },
@@ -97867,7 +97863,7 @@ const _k = [
97867
97863
  description: "Small",
97868
97864
  icon: "Heading3",
97869
97865
  command: (u) => {
97870
- u.chain().toggleHeading({ level: 3 }).run(), r(rt.NONE);
97866
+ u.chain().toggleHeading({ level: 3 }).run(), r(nt.NONE);
97871
97867
  },
97872
97868
  isActive: () => e == null ? void 0 : e.isActive("heading", { level: 3 })
97873
97869
  }
@@ -97877,7 +97873,7 @@ const _k = [
97877
97873
  description: "Left",
97878
97874
  icon: "AlignLeft",
97879
97875
  command: (u) => {
97880
- u.chain().setTextAlign("left").focus().run(), r(rt.NONE);
97876
+ u.chain().setTextAlign("left").focus().run(), r(nt.NONE);
97881
97877
  },
97882
97878
  isActive: () => e == null ? void 0 : e.isActive({ textAlign: "left" })
97883
97879
  },
@@ -97886,7 +97882,7 @@ const _k = [
97886
97882
  description: "Center",
97887
97883
  icon: "AlignCenter",
97888
97884
  command: (u) => {
97889
- u.chain().setTextAlign("center").focus().run(), r(rt.NONE);
97885
+ u.chain().setTextAlign("center").focus().run(), r(nt.NONE);
97890
97886
  },
97891
97887
  isActive: () => e == null ? void 0 : e.isActive({ textAlign: "center" })
97892
97888
  },
@@ -97895,7 +97891,7 @@ const _k = [
97895
97891
  description: "Right",
97896
97892
  icon: "AlignRight",
97897
97893
  command: (u) => {
97898
- u.chain().setTextAlign("right").focus().run(), r(rt.NONE);
97894
+ u.chain().setTextAlign("right").focus().run(), r(nt.NONE);
97899
97895
  },
97900
97896
  isActive: () => e == null ? void 0 : e.isActive({ textAlign: "right" })
97901
97897
  }
@@ -97954,7 +97950,7 @@ const _k = [
97954
97950
  title: "Link",
97955
97951
  description: "Link",
97956
97952
  icon: "Link",
97957
- command: () => r(rt.LINK_POPUP),
97953
+ command: () => r(nt.LINK_POPUP),
97958
97954
  isActive: () => !1
97959
97955
  },
97960
97956
  {
@@ -97977,7 +97973,7 @@ const _k = [
97977
97973
  const g = u.chain().focus().command(
97978
97974
  (m) => ea({ ...m, state: f, from: c, to: d })
97979
97975
  ).setTextSelection({ from: c, to: d }).focus().run();
97980
- return r(rt.NONE), g;
97976
+ return r(nt.NONE), g;
97981
97977
  }
97982
97978
  const h = u.chain().focus().command(
97983
97979
  (g) => qs({
@@ -97991,7 +97987,7 @@ const _k = [
97991
97987
  }
97992
97988
  })
97993
97989
  ).setTextSelection({ from: c, to: d }).focus().run();
97994
- return r(rt.NONE), h;
97990
+ return r(nt.NONE), h;
97995
97991
  },
97996
97992
  isActive: () => e == null ? void 0 : e.isActive("bulletList")
97997
97993
  },
@@ -98007,7 +98003,7 @@ const _k = [
98007
98003
  const g = u.chain().focus().command(
98008
98004
  (m) => ea({ ...m, state: f, from: c, to: d })
98009
98005
  ).setTextSelection({ from: c, to: d }).focus().run();
98010
- return r(rt.NONE), g;
98006
+ return r(nt.NONE), g;
98011
98007
  }
98012
98008
  const h = u.chain().focus().command(
98013
98009
  (g) => qs({
@@ -98021,7 +98017,7 @@ const _k = [
98021
98017
  }
98022
98018
  })
98023
98019
  ).setTextSelection({ from: c, to: d }).focus().run();
98024
- return r(rt.NONE), h;
98020
+ return r(nt.NONE), h;
98025
98021
  },
98026
98022
  isActive: () => e == null ? void 0 : e.isActive("orderedList")
98027
98023
  },
@@ -98040,7 +98036,7 @@ const _k = [
98040
98036
  isOpen: t,
98041
98037
  setIsOpen: n,
98042
98038
  onCloseAutoFocus: () => {
98043
- r((u) => u === rt.TEXT_FORMATING ? rt.NONE : u);
98039
+ r((u) => u === nt.TEXT_FORMATING ? nt.NONE : u);
98044
98040
  },
98045
98041
  content: /* @__PURE__ */ M.jsxs("div", { className: "px-4 flex flex-col gap-2 w-full", children: [
98046
98042
  /* @__PURE__ */ M.jsx("div", { className: "flex justify-start sm:justify-center items-center gap-1", children: o.map((u) => /* @__PURE__ */ M.jsx(
@@ -100268,8 +100264,8 @@ const CMt = /* @__PURE__ */ pc(MMt), om = () => {
100268
100264
  },
100269
100265
  {
100270
100266
  name: "Alignment",
100271
- isActive: () => g === rt.ALIGNMENT,
100272
- command: () => h(rt.ALIGNMENT),
100267
+ isActive: () => g === nt.ALIGNMENT,
100268
+ command: () => h(nt.ALIGNMENT),
100273
100269
  icon: "AlignLeft"
100274
100270
  },
100275
100271
  {
@@ -100281,13 +100277,13 @@ const CMt = /* @__PURE__ */ pc(MMt), om = () => {
100281
100277
  {
100282
100278
  name: "Link",
100283
100279
  isActive: () => t.isActive("link"),
100284
- command: () => h(rt.LINK_POPUP),
100280
+ command: () => h(nt.LINK_POPUP),
100285
100281
  icon: "Link"
100286
100282
  },
100287
100283
  {
100288
100284
  name: "Scripts",
100289
- isActive: () => g === rt.SCRIPTS,
100290
- command: () => h(rt.SCRIPTS),
100285
+ isActive: () => g === nt.SCRIPTS,
100286
+ command: () => h(nt.SCRIPTS),
100291
100287
  icon: "Superscript"
100292
100288
  },
100293
100289
  {
@@ -100372,7 +100368,7 @@ const CMt = /* @__PURE__ */ pc(MMt), om = () => {
100372
100368
  shouldShow: AMt,
100373
100369
  className: xe(
100374
100370
  "flex gap-2 overflow-hidden rounded-lg min-w-fit w-full p-1 border color-bg-default items-center shadow-elevation-3",
100375
- b || g === rt.LINK_POPUP ? "!invisible" : "!visible",
100371
+ b || g === nt.LINK_POPUP ? "!invisible" : "!visible",
100376
100372
  f ? "!-translate-y-[120%]" : ""
100377
100373
  ),
100378
100374
  style: {
@@ -100426,7 +100422,7 @@ const CMt = /* @__PURE__ */ pc(MMt), om = () => {
100426
100422
  "button",
100427
100423
  {
100428
100424
  className: "bg-transparent hover:!color-bg-default-hover rounded gap-2 py-2 px-1 flex items-center justify-center w-fit max-w-14 min-w-14",
100429
- onClick: () => h(rt.FONT_SIZE),
100425
+ onClick: () => h(nt.FONT_SIZE),
100430
100426
  children: [
100431
100427
  /* @__PURE__ */ M.jsx("span", { className: "text-body-sm line-clamp-1", children: _J(t, c) }),
100432
100428
  /* @__PURE__ */ M.jsx(He, { name: "ChevronDown", size: "sm" })
@@ -100444,7 +100440,7 @@ const CMt = /* @__PURE__ */ pc(MMt), om = () => {
100444
100440
  }
100445
100441
  )
100446
100442
  },
100447
- rt.FONT_SIZE
100443
+ nt.FONT_SIZE
100448
100444
  ),
100449
100445
  /* @__PURE__ */ M.jsx("div", { className: "w-[1px] h-4 vertical-divider" }),
100450
100446
  A.map((T, I) => T.name === "Bold" || T.name === "Italic" || T.name === "Underline" || T.name === "Strikethrough" || T.name === "Code" ? /* @__PURE__ */ M.jsxs("div", { className: "flex items-center", children: [
@@ -100468,7 +100464,7 @@ const CMt = /* @__PURE__ */ pc(MMt), om = () => {
100468
100464
  {
100469
100465
  icon: "Baseline",
100470
100466
  size: "sm",
100471
- isActive: g === rt.TEXT_COLOR
100467
+ isActive: g === nt.TEXT_COLOR
100472
100468
  }
100473
100469
  ),
100474
100470
  content: /* @__PURE__ */ M.jsx(
@@ -100480,7 +100476,7 @@ const CMt = /* @__PURE__ */ pc(MMt), om = () => {
100480
100476
  }
100481
100477
  )
100482
100478
  },
100483
- rt.TEXT_COLOR
100479
+ nt.TEXT_COLOR
100484
100480
  ),
100485
100481
  /* @__PURE__ */ M.jsx(
100486
100482
  Zr,
@@ -100491,7 +100487,7 @@ const CMt = /* @__PURE__ */ pc(MMt), om = () => {
100491
100487
  {
100492
100488
  icon: "Highlighter",
100493
100489
  size: "sm",
100494
- isActive: g === rt.HIGHLIGHT
100490
+ isActive: g === nt.HIGHLIGHT
100495
100491
  }
100496
100492
  ),
100497
100493
  content: /* @__PURE__ */ M.jsx(
@@ -100503,7 +100499,7 @@ const CMt = /* @__PURE__ */ pc(MMt), om = () => {
100503
100499
  }
100504
100500
  )
100505
100501
  },
100506
- rt.HIGHLIGHT
100502
+ nt.HIGHLIGHT
100507
100503
  ),
100508
100504
  /* @__PURE__ */ M.jsx("div", { className: "w-[1px] h-4 vertical-divider" }),
100509
100505
  /* @__PURE__ */ M.jsx(
@@ -100516,7 +100512,7 @@ const CMt = /* @__PURE__ */ pc(MMt), om = () => {
100516
100512
  icon: T.icon,
100517
100513
  variant: "ghost",
100518
100514
  size: "sm",
100519
- onClick: () => h(rt.ALIGNMENT)
100515
+ onClick: () => h(nt.ALIGNMENT)
100520
100516
  }
100521
100517
  ),
100522
100518
  className: "shadow-elevation-3",
@@ -106021,7 +106017,7 @@ const aDt = (e, t) => aE(e) ? new iDt(t) : new oDt(t, {
106021
106017
  "button",
106022
106018
  {
106023
106019
  className: "bg-transparent hover:!color-bg-default-hover rounded p-2 flex items-center justify-center gap-2 w-24",
106024
- onClick: () => f(rt.FONT_FAMILY),
106020
+ onClick: () => f(nt.FONT_FAMILY),
106025
106021
  children: [
106026
106022
  /* @__PURE__ */ M.jsx(
106027
106023
  "span",
@@ -106061,7 +106057,7 @@ const aDt = (e, t) => aE(e) ? new iDt(t) : new oDt(t, {
106061
106057
  }
106062
106058
  )
106063
106059
  },
106064
- rt.FONT_FAMILY
106060
+ nt.FONT_FAMILY
106065
106061
  ),
106066
106062
  "font-dropdown-transiton"
106067
106063
  ),
@@ -106078,7 +106074,7 @@ const aDt = (e, t) => aE(e) ? new iDt(t) : new oDt(t, {
106078
106074
  "button",
106079
106075
  {
106080
106076
  className: "bg-transparent hover:!color-bg-default-hover rounded gap-2 p-2 flex items-center justify-center w-28",
106081
- onClick: () => f(rt.HEADING),
106077
+ onClick: () => f(nt.HEADING),
106082
106078
  children: [
106083
106079
  /* @__PURE__ */ M.jsx("span", { className: "text-body-sm line-clamp-1", children: e != null && e.isActive("heading", { level: 1 }) ? "Heading 1" : e != null && e.isActive("heading", { level: 2 }) ? "Heading 2" : e != null && e.isActive("heading", { level: 3 }) ? "Heading 3" : "Text" }),
106084
106080
  /* @__PURE__ */ M.jsx(He, { name: "ChevronDown", size: "sm" })
@@ -106094,7 +106090,7 @@ const aDt = (e, t) => aE(e) ? new iDt(t) : new oDt(t, {
106094
106090
  }
106095
106091
  )
106096
106092
  },
106097
- rt.HEADING
106093
+ nt.HEADING
106098
106094
  ),
106099
106095
  "heading-dropdown"
106100
106096
  ),
@@ -106111,7 +106107,7 @@ const aDt = (e, t) => aE(e) ? new iDt(t) : new oDt(t, {
106111
106107
  "button",
106112
106108
  {
106113
106109
  className: "bg-transparent hover:!color-bg-default-hover rounded gap-2 py-2 px-1 flex items-center justify-center w-fit max-w-14 min-w-14",
106114
- onClick: () => f(rt.FONT_SIZE),
106110
+ onClick: () => f(nt.FONT_SIZE),
106115
106111
  children: [
106116
106112
  /* @__PURE__ */ M.jsx("span", { className: "text-body-sm line-clamp-1", children: _J(e, F) }),
106117
106113
  /* @__PURE__ */ M.jsx(He, { name: "ChevronDown", size: "sm" })
@@ -106129,7 +106125,7 @@ const aDt = (e, t) => aE(e) ? new iDt(t) : new oDt(t, {
106129
106125
  }
106130
106126
  )
106131
106127
  },
106132
- rt.FONT_SIZE
106128
+ nt.FONT_SIZE
106133
106129
  ),
106134
106130
  "font-size-dropdown"
106135
106131
  ),
@@ -220447,7 +220443,7 @@ const f8 = ow.getInstance(), qKt = (e) => ({
220447
220443
  ), [c, d] = Re(""), [f, p] = Re(""), [h, g] = Re(!0), [m, b] = Re(!0), k = () => {
220448
220444
  if (!e) return;
220449
220445
  if ((c === null || c === "") && (f === "" || f === null)) {
220450
- l(rt.NONE);
220446
+ l(nt.NONE);
220451
220447
  return;
220452
220448
  }
220453
220449
  let x = c;
@@ -220464,7 +220460,7 @@ const f8 = ow.getInstance(), qKt = (e) => ({
220464
220460
  type: "text",
220465
220461
  text: f,
220466
220462
  marks: x ? [{ type: "link", attrs: { href: x } }] : []
220467
- }).run(), b(!0), g(!0), l(rt.NONE);
220463
+ }).run(), b(!0), g(!0), l(nt.NONE);
220468
220464
  }, v = () => {
220469
220465
  if (!e) return { text: "", url: "" };
220470
220466
  const { from: x, to: w } = e.state.selection, F = e.state.doc.textBetween(x, w), A = e.getAttributes("link");
@@ -220476,15 +220472,15 @@ const f8 = ow.getInstance(), qKt = (e) => ({
220476
220472
  return Pe(() => {
220477
220473
  if (!e) return;
220478
220474
  const x = (w) => {
220479
- w.key === "k" && (w.metaKey || w.ctrlKey) && (w.preventDefault(), s !== rt.LINK_POPUP ? l(rt.LINK_POPUP) : l(rt.NONE));
220475
+ w.key === "k" && (w.metaKey || w.ctrlKey) && (w.preventDefault(), s !== nt.LINK_POPUP ? l(nt.LINK_POPUP) : l(nt.NONE));
220480
220476
  };
220481
220477
  return document.addEventListener("keydown", x), () => {
220482
220478
  document.removeEventListener("keydown", x);
220483
220479
  };
220484
220480
  }, [e, s]), Pe(() => {
220485
- n && l(rt.NONE);
220481
+ n && l(nt.NONE);
220486
220482
  }, [n, l]), Pe(() => {
220487
- if (s === rt.LINK_POPUP) {
220483
+ if (s === nt.LINK_POPUP) {
220488
220484
  const { text: x, url: w } = v();
220489
220485
  p(x), d(w);
220490
220486
  }
@@ -220560,16 +220556,16 @@ const f8 = ow.getInstance(), qKt = (e) => ({
220560
220556
  FFt,
220561
220557
  {
220562
220558
  editor: e,
220563
- isOpen: s === rt.TEXT_FORMATING,
220564
- setIsOpen: (x) => !x && l(rt.NONE),
220559
+ isOpen: s === nt.TEXT_FORMATING,
220560
+ setIsOpen: (x) => !x && l(nt.NONE),
220565
220561
  setToolVisibility: l
220566
220562
  }
220567
220563
  ),
220568
220564
  /* @__PURE__ */ M.jsx(
220569
220565
  IG,
220570
220566
  {
220571
- open: s === rt.LINK_POPUP,
220572
- onOpenChange: (x) => !x && l(rt.NONE),
220567
+ open: s === nt.LINK_POPUP,
220568
+ onOpenChange: (x) => !x && l(nt.NONE),
220573
220569
  title: "Link",
220574
220570
  content: /* @__PURE__ */ M.jsxs("div", { className: "flex flex-col gap-4 w-full h-full text-base", children: [
220575
220571
  /* @__PURE__ */ M.jsx(
@@ -220610,7 +220606,7 @@ const f8 = ow.getInstance(), qKt = (e) => ({
220610
220606
  secondaryAction: {
220611
220607
  label: "Cancel",
220612
220608
  variant: "secondary",
220613
- onClick: () => l(rt.NONE),
220609
+ onClick: () => l(nt.NONE),
220614
220610
  className: "w-full md:w-auto min-w-[80px]"
220615
220611
  }
220616
220612
  }
@@ -222326,7 +222322,7 @@ const kz = ke.memo(Aoe), gYt = ({
222326
222322
  onCopyHeadingLink: $e,
222327
222323
  footerHeight: at
222328
222324
  }, Ct) => {
222329
- const [we, qe] = Re(!1), [Ce, Je] = Re(!1), tt = et(null), Be = Xo("(min-width: 1500px)"), nt = Xo("(min-width: 3000px)"), { isNativeMobile: pt, isIOS: dt } = xl(), [Rt, qt] = Re(!1), wt = et(null), on = (w == null ? void 0 : w.slice(0, 4)) || [], vn = w ? Math.max(0, w.length - 4) : 0;
222325
+ const [we, qe] = Re(!1), [Ce, Je] = Re(!1), tt = et(null), Be = Xo("(min-width: 1500px)"), rt = Xo("(min-width: 3000px)"), { isNativeMobile: pt, isIOS: dt } = xl(), [Rt, qt] = Re(!1), wt = et(null), on = (w == null ? void 0 : w.slice(0, 4)) || [], vn = w ? Math.max(0, w.length - 4) : 0;
222330
222326
  $M(wt, () => {
222331
222327
  qt(!1);
222332
222328
  }), Pe(() => {
@@ -222526,7 +222522,7 @@ const kz = ke.memo(Aoe), gYt = ({
222526
222522
  "!mx-auto": !A || W === "0.5" || W === "0.75" || W === "1.4" || W === "1.5"
222527
222523
  },
222528
222524
  {
222529
- "!ml-0": W === "2" && Be && !nt
222525
+ "!ml-0": W === "2" && Be && !rt
222530
222526
  },
222531
222527
  {
222532
222528
  "w-[700px] md:max-w-[700px] min-h-[150%]": W === "0.5"
@@ -222544,7 +222540,7 @@ const kz = ke.memo(Aoe), gYt = ({
222544
222540
  { "w-[1548px] md:max-w-[1548px]": W === "2" }
222545
222541
  ),
222546
222542
  style: {
222547
- transformOrigin: W === "2" && !nt ? "left center" : "top center",
222543
+ transformOrigin: W === "2" && !rt ? "left center" : "top center",
222548
222544
  transform: `scaleX(${W})`
222549
222545
  },
222550
222546
  children: /* @__PURE__ */ M.jsxs(
package/dist/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { D as d, P as r, h as s, u as t } from "./index-D3_CBeY-.mjs";
1
+ import { D as d, P as r, h as s, u as t } from "./index-mMUwBzyq.mjs";
2
2
  export {
3
3
  d as DdocEditor,
4
4
  r as PreviewDdocEditor,
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@fileverse-dev/ddoc",
3
3
  "private": false,
4
4
  "description": "DDoc",
5
- "version": "2.2.8-patch-5",
5
+ "version": "2.2.8-patch-6",
6
6
  "main": "dist/index.es.js",
7
7
  "module": "dist/index.es.js",
8
8
  "exports": {