@fileverse-dev/ddoc 3.2.9-sg-2 → 3.2.9-sg-3

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
@@ -186556,7 +186556,7 @@ const lte = ({
186556
186556
  className: Ke(
186557
186557
  "relative flex cursor-pointer flex-col w-full mt-[8px] pb-[12px] box-border transition-all color-border-default rounded-[12px]",
186558
186558
  r && a !== e.id && "hidden",
186559
- e.id === n && (r || !b) ? "color-bg-default border" : "hover:color-bg-default-hover bg-[#00000005] ",
186559
+ e.id === n && (r || !b) ? "color-bg-default border" : "hover:color-bg-default-hover color-bg-transparent ",
186560
186560
  ((v = e.replies) == null ? void 0 : v.length) > 0 && "gap-0",
186561
186561
  o && e.resolved ? "color-bg-default color-border-default" : r && e.resolved && "color-bg-default-hover",
186562
186562
  r && e.resolved && "border"
@@ -187686,9 +187686,9 @@ const lte = ({
187686
187686
  )
187687
187687
  }
187688
187688
  );
187689
- }, ute = 8, OGe = 48;
187689
+ }, ute = 8, OGe = 48, IGe = 48;
187690
187690
  var vr = /* @__PURE__ */ ((e) => (e[e.None = 0] = "None", e[e.Anchor = 1] = "Anchor", e[e.Viewport = 2] = "Viewport", e[e.Height = 4] = "Height", e[e.Visibility = 8] = "Visibility", e))(vr || {});
187691
- const IGe = Number.POSITIVE_INFINITY, db = (e) => e.isVisible && e.isMeasured && e.anchorTop !== null && e.height > 0, t8 = (e) => e === null ? null : Math.round(e), k_ = (e) => e.lastCommittedTranslateY ?? e.anchorTop ?? null, n8 = (e) => e.invalidationFlags !== 0, r8 = (e, t) => t8(t) !== e.lastCommittedTranslateY, o8 = (e, t) => {
187691
+ const RGe = Number.POSITIVE_INFINITY, db = (e) => e.isVisible && e.isMeasured && e.anchorTop !== null && e.height > 0, t8 = (e) => e === null ? null : Math.round(e), k_ = (e) => e.lastCommittedTranslateY ?? e.anchorTop ?? null, n8 = (e) => e.invalidationFlags !== 0, r8 = (e, t) => t8(t) !== e.lastCommittedTranslateY, o8 = (e, t) => {
187692
187692
  e.set(t.floatingCardId, {
187693
187693
  translateY: k_(t),
187694
187694
  isVisible: !1
@@ -187704,7 +187704,7 @@ const IGe = Number.POSITIVE_INFINITY, db = (e) => e.isVisible && e.isMeasured &&
187704
187704
  }, dte = (e, t) => {
187705
187705
  const n = cte(t);
187706
187706
  return n ? e === null ? n.bottom : Math.max(e, n.bottom) : e;
187707
- }, RGe = ({
187707
+ }, LGe = ({
187708
187708
  floatingCards: e,
187709
187709
  focusedFloatingCardId: t,
187710
187710
  firstInvalidatedIndex: n,
@@ -187759,16 +187759,16 @@ const IGe = Number.POSITIVE_INFINITY, db = (e) => e.isVisible && e.isMeasured &&
187759
187759
  stopIndex: d,
187760
187760
  usedFocusedLayout: !0
187761
187761
  };
187762
- }, LGe = ({
187762
+ }, UGe = ({
187763
187763
  floatingCards: e,
187764
187764
  recomputeStartIndex: t,
187765
- firstInvalidatedIndex: n = IGe,
187765
+ firstInvalidatedIndex: n = RGe,
187766
187766
  lastInvalidatedIndex: r,
187767
187767
  gap: o = ute,
187768
187768
  focusedFloatingCardId: i
187769
187769
  }) => {
187770
187770
  if (i) {
187771
- const l = RGe({
187771
+ const l = LGe({
187772
187772
  floatingCards: e,
187773
187773
  focusedFloatingCardId: i,
187774
187774
  firstInvalidatedIndex: n,
@@ -187815,7 +187815,7 @@ const IGe = Number.POSITIVE_INFINITY, db = (e) => e.isVisible && e.isMeasured &&
187815
187815
  stopIndex: e.length - 1,
187816
187816
  usedFocusedLayout: !1
187817
187817
  };
187818
- }, UGe = 1, yx = (e) => e.type === "draft" ? {
187818
+ }, PGe = 1, yx = (e) => e.type === "draft" ? {
187819
187819
  anchorId: e.draftId,
187820
187820
  anchorType: "draft"
187821
187821
  } : e.type === "suggestion-draft" ? {
@@ -187824,21 +187824,21 @@ const IGe = Number.POSITIVE_INFINITY, db = (e) => e.isVisible && e.isMeasured &&
187824
187824
  } : {
187825
187825
  anchorId: e.commentId,
187826
187826
  anchorType: "thread"
187827
- }, PGe = (e) => typeof CSS < "u" && typeof CSS.escape == "function" ? CSS.escape(e) : e.replace(/"/g, '\\"'), zGe = ({
187827
+ }, zGe = (e) => typeof CSS < "u" && typeof CSS.escape == "function" ? CSS.escape(e) : e.replace(/"/g, '\\"'), $Ge = ({
187828
187828
  anchorId: e,
187829
187829
  anchorType: t
187830
187830
  }) => {
187831
187831
  let n = "data-comment-id";
187832
- return t === "draft" && (n = "data-draft-comment-id"), t === "suggestion-draft" && (n = "data-suggestion-id"), `[${n}="${PGe(e)}"]`;
187833
- }, $Ge = ({
187832
+ return t === "draft" && (n = "data-draft-comment-id"), t === "suggestion-draft" && (n = "data-suggestion-id"), `[${n}="${zGe(e)}"]`;
187833
+ }, HGe = ({
187834
187834
  editorRoot: e,
187835
187835
  anchorId: t,
187836
187836
  anchorType: n
187837
187837
  }) => Array.from(
187838
187838
  e.querySelectorAll(
187839
- zGe({ anchorId: t, anchorType: n })
187839
+ $Ge({ anchorId: t, anchorType: n })
187840
187840
  )
187841
- ), HGe = (e, t) => {
187841
+ ), WGe = (e, t) => {
187842
187842
  let n = null;
187843
187843
  return t.forEach((r) => {
187844
187844
  try {
@@ -187853,18 +187853,18 @@ const IGe = Number.POSITIVE_INFINITY, db = (e) => e.isVisible && e.isMeasured &&
187853
187853
  } catch {
187854
187854
  return null;
187855
187855
  }
187856
- }, WGe = (e, t) => e.length !== t.length ? !1 : e.every(
187856
+ }, qGe = (e, t) => e.length !== t.length ? !1 : e.every(
187857
187857
  (n, r) => n === t[r]
187858
187858
  ), rL = (e, t) => e.lastSeenEditorRoot === t && e.elements.length > 0 && e.elements.every(
187859
187859
  (n) => n.isConnected && t.contains(n)
187860
- ), qGe = ({
187860
+ ), VGe = ({
187861
187861
  cachedRect: e,
187862
187862
  scrollTop: t,
187863
187863
  containerTop: n
187864
187864
  }) => ({
187865
187865
  top: e.top - (t - e.scrollTop) + (e.containerTop - n),
187866
187866
  height: e.height
187867
- }), VGe = ({
187867
+ }), KGe = ({
187868
187868
  elements: e,
187869
187869
  viewportTop: t,
187870
187870
  viewportBottom: n
@@ -187882,7 +187882,7 @@ const IGe = Number.POSITIVE_INFINITY, db = (e) => e.isVisible && e.isMeasured &&
187882
187882
  height: Math.max(1, s - i),
187883
187883
  intersectsViewport: o
187884
187884
  };
187885
- }, KGe = (e, t) => e === t ? 0 : e === null ? 1 : t === null ? -1 : e - t, GGe = ({
187885
+ }, GGe = (e, t) => e === t ? 0 : e === null ? 1 : t === null ? -1 : e - t, XGe = ({
187886
187886
  previousOrderedFloatingCardIds: e,
187887
187887
  nextFloatingCards: t,
187888
187888
  getPos: n
@@ -187893,7 +187893,7 @@ const IGe = Number.POSITIVE_INFINITY, db = (e) => e.isVisible && e.isMeasured &&
187893
187893
  l
187894
187894
  ])
187895
187895
  ), o = t.map((a) => a.floatingCardId).sort((a, l) => {
187896
- const u = KGe(n(a), n(l));
187896
+ const u = GGe(n(a), n(l));
187897
187897
  if (u !== 0)
187898
187898
  return u;
187899
187899
  const c = (r.get(a) ?? Number.POSITIVE_INFINITY) - (r.get(l) ?? Number.POSITIVE_INFINITY);
@@ -187913,7 +187913,7 @@ const IGe = Number.POSITIVE_INFINITY, db = (e) => e.isVisible && e.isMeasured &&
187913
187913
  orderedFloatingCardIds: o,
187914
187914
  firstChangedIndex: i
187915
187915
  };
187916
- }, oL = (e, t) => e.length !== t.length ? !1 : e.every((n, r) => n === t[r]), XGe = (e) => ({
187916
+ }, oL = (e, t) => e.length !== t.length ? !1 : e.every((n, r) => n === t[r]), YGe = (e) => ({
187917
187917
  floatingCardId: e.floatingCardId,
187918
187918
  anchorTop: e.anchorTop,
187919
187919
  height: e.height,
@@ -187921,7 +187921,7 @@ const IGe = Number.POSITIVE_INFINITY, db = (e) => e.isVisible && e.isMeasured &&
187921
187921
  isMeasured: e.isMeasured,
187922
187922
  lastCommittedTranslateY: e.lastCommittedTranslateY,
187923
187923
  invalidationFlags: e.invalidationFlags
187924
- }), YGe = () => {
187924
+ }), ZGe = () => {
187925
187925
  const e = je(/* @__PURE__ */ new Map()), t = je(/* @__PURE__ */ new Set()), n = je(null), r = je(null), o = Ae((l) => {
187926
187926
  t.current.add(l);
187927
187927
  }, []), i = Ae(
@@ -187969,7 +187969,7 @@ const IGe = Number.POSITIVE_INFINITY, db = (e) => e.isVisible && e.isMeasured &&
187969
187969
  M.anchorPosition = (B == null ? void 0 : B.pmPos) ?? M.anchorPosition;
187970
187970
  return;
187971
187971
  }
187972
- const R = $Ge({
187972
+ const R = HGe({
187973
187973
  editorRoot: d,
187974
187974
  anchorId: C,
187975
187975
  anchorType: N
@@ -187994,7 +187994,7 @@ const IGe = Number.POSITIVE_INFINITY, db = (e) => e.isVisible && e.isMeasured &&
187994
187994
  }), F = !0, M.anchorPosition = (B == null ? void 0 : B.pmPos) ?? M.anchorPosition;
187995
187995
  return;
187996
187996
  }
187997
- const P = HGe(c, R), H = !B || B.anchorType !== N || B.pmPos !== P || B.lastSeenEditorRoot !== d || !WGe(B.elements, R), $ = {
187997
+ const P = WGe(c, R), H = !B || B.anchorType !== N || B.pmPos !== P || B.lastSeenEditorRoot !== d || !qGe(B.elements, R), $ = {
187998
187998
  floatingCardId: A.floatingCardId,
187999
187999
  anchorId: C,
188000
188000
  anchorType: N,
@@ -188047,7 +188047,7 @@ const IGe = Number.POSITIVE_INFINITY, db = (e) => e.isVisible && e.isMeasured &&
188047
188047
  resetAnchorRegistry: s,
188048
188048
  syncAnchors: a
188049
188049
  };
188050
- }, ZGe = () => {
188050
+ }, JGe = () => {
188051
188051
  const e = je(
188052
188052
  /* @__PURE__ */ new Map()
188053
188053
  ), t = je([]), n = je(/* @__PURE__ */ new Map()), r = je(!0), o = je(/* @__PURE__ */ new Set()), i = je({
@@ -188099,7 +188099,7 @@ const IGe = Number.POSITIVE_INFINITY, db = (e) => e.isVisible && e.isMeasured &&
188099
188099
  orderedFloatingCardIds: t.current,
188100
188100
  firstChangedIndex: null
188101
188101
  };
188102
- const w = GGe({
188102
+ const w = XGe({
188103
188103
  previousOrderedFloatingCardIds: t.current,
188104
188104
  nextFloatingCards: v,
188105
188105
  getPos: (k) => u(k).anchorPosition
@@ -188149,7 +188149,7 @@ const IGe = Number.POSITIVE_INFINITY, db = (e) => e.isVisible && e.isMeasured &&
188149
188149
  []
188150
188150
  ), y = Ae(
188151
188151
  () => t.current.map(
188152
- (v) => XGe(u(v))
188152
+ (v) => YGe(u(v))
188153
188153
  ),
188154
188154
  [u]
188155
188155
  ), F = Ae(() => {
@@ -188175,23 +188175,23 @@ const IGe = Number.POSITIVE_INFINITY, db = (e) => e.isVisible && e.isMeasured &&
188175
188175
  getFloatingCardLayoutInputs: y,
188176
188176
  resetFloatingCardState: F
188177
188177
  };
188178
- }, JGe = (e) => e instanceof Element ? !!e.closest(
188178
+ }, QGe = (e) => e instanceof Element ? !!e.closest(
188179
188179
  '[data-inline-comment-actions-menu], [data-radix-popper-content-wrapper], [data-floating-ui-portal], [role="dialog"]'
188180
- ) : !1, QGe = "--floating-comment-container-min-height", Ww = ({
188180
+ ) : !1, eXe = "--floating-comment-container-min-height", Ww = ({
188181
188181
  top: e,
188182
188182
  bottom: t,
188183
188183
  viewportTop: n,
188184
188184
  viewportBottom: r,
188185
188185
  viewportHeight: o
188186
188186
  }) => {
188187
- const i = o * UGe;
188187
+ const i = o * PGe;
188188
188188
  return t >= n - i && e <= r + i;
188189
- }, eXe = (e) => e instanceof Node ? e.nodeType === Node.TEXT_NODE ? e.parentElement : e instanceof Element ? e : null : null, tXe = (e, t) => {
188190
- const n = eXe(e);
188189
+ }, tXe = (e) => e instanceof Node ? e.nodeType === Node.TEXT_NODE ? e.parentElement : e instanceof Element ? e : null : null, nXe = (e, t) => {
188190
+ const n = tXe(e);
188191
188191
  return !n || !t ? !1 : !!(t.contains(n) && n.closest(
188192
188192
  '[data-comment-id], [data-draft-comment-id], .inline-comment, mark[data-color="yellow"]'
188193
188193
  ));
188194
- }, nXe = ({
188194
+ }, rXe = ({
188195
188195
  blurFloatingCard: e,
188196
188196
  closeFloatingCard: t,
188197
188197
  editor: n,
@@ -188314,7 +188314,7 @@ const IGe = Number.POSITIVE_INFINITY, db = (e) => e.isVisible && e.isMeasured &&
188314
188314
  ), O(Qe)), Ie.anchorTop = null, Ie.anchorHeight = 0;
188315
188315
  return;
188316
188316
  }
188317
- let ut = Ze.cachedRect ? qGe({
188317
+ let ut = Ze.cachedRect ? VGe({
188318
188318
  cachedRect: Ze.cachedRect,
188319
188319
  scrollTop: se.scrollTop,
188320
188320
  containerTop: le.top
@@ -188328,7 +188328,7 @@ const IGe = Number.POSITIVE_INFINITY, db = (e) => e.isVisible && e.isMeasured &&
188328
188328
  viewportHeight: ke
188329
188329
  }), me = Ie.anchorVersion !== Ze.anchorVersion;
188330
188330
  if ((!Ze.cachedRect || Ie.isInViewport || wt || me || !Ie.isMeasured || Oe && wt || Te && Ie.isInViewport) && rL(Ze, re)) {
188331
- const vt = VGe({
188331
+ const vt = KGe({
188332
188332
  elements: Ze.elements,
188333
188333
  viewportTop: te.top,
188334
188334
  viewportBottom: te.bottom
@@ -188402,7 +188402,7 @@ const IGe = Number.POSITIVE_INFINITY, db = (e) => e.isVisible && e.isMeasured &&
188402
188402
  ), nn = Math.min(
188403
188403
  k.current.recomputeFromIndex,
188404
188404
  Math.max(A.current.length - 1, 0)
188405
- ), xt = !!$.current && ee.current && A.current.length > 0, Ct = LGe({
188405
+ ), xt = !!$.current && ee.current && A.current.length > 0, Ct = UGe({
188406
188406
  floatingCards: F(),
188407
188407
  recomputeStartIndex: nn,
188408
188408
  firstInvalidatedIndex: xt ? 0 : pt,
@@ -188439,7 +188439,7 @@ const IGe = Number.POSITIVE_INFINITY, db = (e) => e.isVisible && e.isMeasured &&
188439
188439
  Math.max(xe, Je)
188440
188440
  );
188441
188441
  Z.current !== Rt && (G.style.setProperty(
188442
- QGe,
188442
+ eXe,
188443
188443
  `${Rt}px`
188444
188444
  ), Z.current = Rt), b(Ct.stopIndex), k.current.recomputeFromIndex = A.current.length, de.size > 0 && de.forEach((bt) => {
188445
188445
  t(bt);
@@ -188536,10 +188536,10 @@ const IGe = Number.POSITIVE_INFINITY, db = (e) => e.isVisible && e.isMeasured &&
188536
188536
  ]), ef(
188537
188537
  V,
188538
188538
  (T) => {
188539
- if (!a || !s || JGe(T.target))
188539
+ if (!a || !s || QGe(T.target))
188540
188540
  return;
188541
188541
  const re = Hw(n);
188542
- tXe(T.target, re) || e(s);
188542
+ nXe(T.target, re) || e(s);
188543
188543
  },
188544
188544
  "mousedown",
188545
188545
  { capture: !0 }
@@ -188685,7 +188685,7 @@ const IGe = Number.POSITIVE_INFINITY, db = (e) => e.isVisible && e.isMeasured &&
188685
188685
  floatingCardListContainerRef: R,
188686
188686
  registerCardNode: ue
188687
188687
  };
188688
- }, rXe = ({
188688
+ }, oXe = ({
188689
188689
  blurFloatingCard: e,
188690
188690
  closeFloatingCard: t,
188691
188691
  editor: n,
@@ -188697,7 +188697,7 @@ const IGe = Number.POSITIVE_INFINITY, db = (e) => e.isVisible && e.isMeasured &&
188697
188697
  isHidden: l,
188698
188698
  scrollContainerRef: u
188699
188699
  }) => {
188700
- const c = YGe(), d = ZGe(), { floatingCardListContainerRef: p, registerCardNode: h } = nXe({
188700
+ const c = ZGe(), d = JGe(), { floatingCardListContainerRef: p, registerCardNode: h } = rXe({
188701
188701
  blurFloatingCard: e,
188702
188702
  closeFloatingCard: t,
188703
188703
  editor: n,
@@ -188716,7 +188716,7 @@ const IGe = Number.POSITIVE_INFINITY, db = (e) => e.isVisible && e.isMeasured &&
188716
188716
  mountedFloatingCardIds: d.mountedFloatingCardIds,
188717
188717
  registerCardNode: h
188718
188718
  };
188719
- }, oXe = () => {
188719
+ }, iXe = () => {
188720
188720
  const e = Ne((a) => a.blurFloatingCard), t = Ne((a) => a.closeFloatingCard), n = Ne((a) => a.floatingCards), r = Ne(
188721
188721
  (a) => a.isDesktopFloatingEnabled
188722
188722
  ), o = Et(
@@ -188746,7 +188746,7 @@ const IGe = Number.POSITIVE_INFINITY, db = (e) => e.isVisible && e.isMeasured &&
188746
188746
  focusedFloatingCardId: s,
188747
188747
  isDesktopFloatingEnabled: r
188748
188748
  };
188749
- }, iXe = ({
188749
+ }, sXe = ({
188750
188750
  editor: e,
188751
188751
  editorWrapperRef: t,
188752
188752
  scrollContainerRef: n,
@@ -188760,11 +188760,11 @@ const IGe = Number.POSITIVE_INFINITY, db = (e) => e.isVisible && e.isMeasured &&
188760
188760
  floatingCards: l,
188761
188761
  focusedFloatingCardId: u,
188762
188762
  isDesktopFloatingEnabled: c
188763
- } = oXe(), {
188763
+ } = iXe(), {
188764
188764
  floatingCardListContainerRef: d,
188765
188765
  mountedFloatingCardIds: p,
188766
188766
  registerCardNode: h
188767
- } = rXe({
188767
+ } = oXe({
188768
188768
  blurFloatingCard: o,
188769
188769
  closeFloatingCard: i,
188770
188770
  editor: e,
@@ -188787,7 +188787,7 @@ const IGe = Number.POSITIVE_INFINITY, db = (e) => e.isVisible && e.isMeasured &&
188787
188787
  registerCardNode: h,
188788
188788
  shouldRender: g
188789
188789
  };
188790
- }, pte = 300, sXe = (e) => e instanceof Element ? !!e.closest(
188790
+ }, pte = 300, aXe = (e) => e instanceof Element ? !!e.closest(
188791
188791
  'button, [role="button"], a, [data-inline-comment-actions-menu], [data-radix-popper-content-wrapper]'
188792
188792
  ) : !1, lm = lr(({ floatingCardId: e, isHidden: t, isFocused: n, onFocus: r, children: o }, i) => /* @__PURE__ */ x.jsx(
188793
188793
  "div",
@@ -188805,13 +188805,13 @@ const IGe = Number.POSITIVE_INFINITY, db = (e) => e.isVisible && e.isMeasured &&
188805
188805
  opacity: t ? 0 : 1
188806
188806
  },
188807
188807
  onMouseDown: (s) => {
188808
- sXe(s.target) || r();
188808
+ aXe(s.target) || r();
188809
188809
  },
188810
188810
  children: o
188811
188811
  }
188812
188812
  ));
188813
188813
  lm.displayName = "FloatingCardShell";
188814
- const aXe = ({
188814
+ const lXe = ({
188815
188815
  draft: e,
188816
188816
  isHidden: t,
188817
188817
  registerCardNode: n
@@ -188865,11 +188865,11 @@ const aXe = ({
188865
188865
  )
188866
188866
  ] })
188867
188867
  ] }),
188868
- /* @__PURE__ */ x.jsx(lXe, { draftState: o, draft: e })
188868
+ /* @__PURE__ */ x.jsx(uXe, { draftState: o, draft: e })
188869
188869
  ] }) : /* @__PURE__ */ x.jsx(am, { isDraft: !0 })
188870
188870
  }
188871
188871
  ) : null;
188872
- }, lXe = ({
188872
+ }, uXe = ({
188873
188873
  draftState: e,
188874
188874
  draft: t
188875
188875
  }) => {
@@ -188914,7 +188914,7 @@ const aXe = ({
188914
188914
  )
188915
188915
  ] })
188916
188916
  ] });
188917
- }, uXe = ({
188917
+ }, cXe = ({
188918
188918
  card: e,
188919
188919
  isHidden: t,
188920
188920
  registerCardNode: n
@@ -189028,7 +189028,7 @@ const aXe = ({
189028
189028
  ] }) : /* @__PURE__ */ x.jsx(am, { isDraft: !0 })
189029
189029
  }
189030
189030
  );
189031
- }, cXe = ({
189031
+ }, dXe = ({
189032
189032
  thread: e,
189033
189033
  comment: t,
189034
189034
  isHidden: n,
@@ -189059,7 +189059,7 @@ const aXe = ({
189059
189059
  onFocus: p,
189060
189060
  children: /* @__PURE__ */ x.jsxs("div", { className: "flex group flex-col gap-2 p-3 pb-0", children: [
189061
189061
  /* @__PURE__ */ x.jsx(
189062
- dXe,
189062
+ pXe,
189063
189063
  {
189064
189064
  username: t.username,
189065
189065
  createdAt: t.createdAt,
@@ -189069,9 +189069,9 @@ const aXe = ({
189069
189069
  onReject: b
189070
189070
  }
189071
189071
  ),
189072
- /* @__PURE__ */ x.jsx("div", { className: "ml-[32px]", children: /* @__PURE__ */ x.jsx(pXe, { comment: t }) }),
189072
+ /* @__PURE__ */ x.jsx("div", { className: "ml-[32px]", children: /* @__PURE__ */ x.jsx(hXe, { comment: t }) }),
189073
189073
  /* @__PURE__ */ x.jsx(
189074
- hXe,
189074
+ fXe,
189075
189075
  {
189076
189076
  thread: e,
189077
189077
  comment: t,
@@ -189079,7 +189079,7 @@ const aXe = ({
189079
189079
  }
189080
189080
  ),
189081
189081
  /* @__PURE__ */ x.jsx(
189082
- fXe,
189082
+ gXe,
189083
189083
  {
189084
189084
  thread: e,
189085
189085
  comment: t,
@@ -189089,7 +189089,7 @@ const aXe = ({
189089
189089
  ] })
189090
189090
  }
189091
189091
  );
189092
- }, dXe = ({
189092
+ }, pXe = ({
189093
189093
  username: e,
189094
189094
  createdAt: t,
189095
189095
  canAcceptReject: n,
@@ -189149,7 +189149,7 @@ const aXe = ({
189149
189149
  )
189150
189150
  ] })
189151
189151
  ] });
189152
- }, pXe = ({
189152
+ }, hXe = ({
189153
189153
  comment: e
189154
189154
  }) => {
189155
189155
  const {
@@ -189198,7 +189198,7 @@ const aXe = ({
189198
189198
  '"'
189199
189199
  ] })
189200
189200
  ] }) : null;
189201
- }, hXe = ({
189201
+ }, fXe = ({
189202
189202
  thread: e,
189203
189203
  comment: t,
189204
189204
  onFocusRequest: n
@@ -189240,7 +189240,7 @@ const aXe = ({
189240
189240
  visibleReplies: p
189241
189241
  }
189242
189242
  ) });
189243
- }, fXe = ({
189243
+ }, gXe = ({
189244
189244
  thread: e,
189245
189245
  comment: t,
189246
189246
  isCollaborationEnabled: n
@@ -189330,7 +189330,7 @@ const aXe = ({
189330
189330
  }
189331
189331
  )
189332
189332
  ] }) : null : null;
189333
- }, gXe = ({
189333
+ }, mXe = ({
189334
189334
  thread: e,
189335
189335
  comment: t,
189336
189336
  tabName: n,
@@ -189388,7 +189388,7 @@ const aXe = ({
189388
189388
  ),
189389
189389
  e.isFocused && !l && !i && /* @__PURE__ */ x.jsx(am, {}),
189390
189390
  /* @__PURE__ */ x.jsx("div", { className: "px-3", children: /* @__PURE__ */ x.jsx(
189391
- mXe,
189391
+ bXe,
189392
189392
  {
189393
189393
  comment: t,
189394
189394
  thread: e,
@@ -189407,7 +189407,7 @@ const aXe = ({
189407
189407
  ] })
189408
189408
  }
189409
189409
  );
189410
- }, mXe = ({
189410
+ }, bXe = ({
189411
189411
  comment: e,
189412
189412
  thread: t,
189413
189413
  isCollaborationEnabled: n
@@ -189514,7 +189514,7 @@ const aXe = ({
189514
189514
  }
189515
189515
  )
189516
189516
  ] });
189517
- }, bXe = ({
189517
+ }, yXe = ({
189518
189518
  editor: e,
189519
189519
  editorWrapperRef: t,
189520
189520
  scrollContainerRef: n,
@@ -189527,7 +189527,7 @@ const aXe = ({
189527
189527
  mountedFloatingCards: l,
189528
189528
  registerCardNode: u,
189529
189529
  shouldRender: c
189530
- } = iXe({
189530
+ } = sXe({
189531
189531
  editor: e,
189532
189532
  editorWrapperRef: t,
189533
189533
  scrollContainerRef: n,
@@ -189544,12 +189544,14 @@ const aXe = ({
189544
189544
  "data-floating-comment-hidden": o ? "true" : "false",
189545
189545
  style: {
189546
189546
  width: pte,
189547
- minHeight: "var(--floating-comment-container-min-height, 100%)"
189547
+ boxSizing: "content-box",
189548
+ minHeight: "var(--floating-comment-container-min-height, 100%)",
189549
+ paddingRight: o ? 0 : IGe
189548
189550
  },
189549
189551
  children: l.map((d) => {
189550
189552
  if (d.type === "draft")
189551
189553
  return /* @__PURE__ */ x.jsx(
189552
- aXe,
189554
+ lXe,
189553
189555
  {
189554
189556
  draft: d,
189555
189557
  isHidden: o,
@@ -189559,7 +189561,7 @@ const aXe = ({
189559
189561
  );
189560
189562
  if (d.type === "suggestion-draft")
189561
189563
  return /* @__PURE__ */ x.jsx(
189562
- uXe,
189564
+ cXe,
189563
189565
  {
189564
189566
  card: d,
189565
189567
  isHidden: o,
@@ -189571,7 +189573,7 @@ const aXe = ({
189571
189573
  (h) => h.id === d.commentId
189572
189574
  );
189573
189575
  return p != null && p.isSuggestion ? /* @__PURE__ */ x.jsx(
189574
- cXe,
189576
+ dXe,
189575
189577
  {
189576
189578
  thread: d,
189577
189579
  comment: p,
@@ -189582,7 +189584,7 @@ const aXe = ({
189582
189584
  },
189583
189585
  d.floatingCardId
189584
189586
  ) : /* @__PURE__ */ x.jsx(
189585
- gXe,
189587
+ mXe,
189586
189588
  {
189587
189589
  thread: d,
189588
189590
  comment: p,
@@ -189804,14 +189806,14 @@ const xx = Tt.memo(gte);
189804
189806
  * This source code is licensed under the ISC license.
189805
189807
  * See the LICENSE file in the root directory of this source tree.
189806
189808
  */
189807
- const yXe = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), mte = (...e) => e.filter((t, n, r) => !!t && t.trim() !== "" && r.indexOf(t) === n).join(" ").trim();
189809
+ const xXe = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), mte = (...e) => e.filter((t, n, r) => !!t && t.trim() !== "" && r.indexOf(t) === n).join(" ").trim();
189808
189810
  /**
189809
189811
  * @license lucide-react v0.475.0 - ISC
189810
189812
  *
189811
189813
  * This source code is licensed under the ISC license.
189812
189814
  * See the LICENSE file in the root directory of this source tree.
189813
189815
  */
189814
- var xXe = {
189816
+ var vXe = {
189815
189817
  xmlns: "http://www.w3.org/2000/svg",
189816
189818
  width: 24,
189817
189819
  height: 24,
@@ -189828,7 +189830,7 @@ var xXe = {
189828
189830
  * This source code is licensed under the ISC license.
189829
189831
  * See the LICENSE file in the root directory of this source tree.
189830
189832
  */
189831
- const vXe = lr(
189833
+ const FXe = lr(
189832
189834
  ({
189833
189835
  color: e = "currentColor",
189834
189836
  size: t = 24,
@@ -189842,7 +189844,7 @@ const vXe = lr(
189842
189844
  "svg",
189843
189845
  {
189844
189846
  ref: l,
189845
- ...xXe,
189847
+ ...vXe,
189846
189848
  width: t,
189847
189849
  height: t,
189848
189850
  stroke: e,
@@ -189864,10 +189866,10 @@ const vXe = lr(
189864
189866
  */
189865
189867
  const bte = (e, t) => {
189866
189868
  const n = lr(
189867
- ({ className: r, ...o }, i) => pb(vXe, {
189869
+ ({ className: r, ...o }, i) => pb(FXe, {
189868
189870
  ref: i,
189869
189871
  iconNode: t,
189870
- className: mte(`lucide-${yXe(e)}`, r),
189872
+ className: mte(`lucide-${xXe(e)}`, r),
189871
189873
  ...o
189872
189874
  })
189873
189875
  );
@@ -189879,7 +189881,7 @@ const bte = (e, t) => {
189879
189881
  * This source code is licensed under the ISC license.
189880
189882
  * See the LICENSE file in the root directory of this source tree.
189881
189883
  */
189882
- const FXe = [
189884
+ const wXe = [
189883
189885
  ["path", { d: "M12 2v4", key: "3427ic" }],
189884
189886
  ["path", { d: "m16.2 7.8 2.9-2.9", key: "r700ao" }],
189885
189887
  ["path", { d: "M18 12h4", key: "wj9ykh" }],
@@ -189888,17 +189890,17 @@ const FXe = [
189888
189890
  ["path", { d: "m4.9 19.1 2.9-2.9", key: "bwix9q" }],
189889
189891
  ["path", { d: "M2 12h4", key: "j09sii" }],
189890
189892
  ["path", { d: "m4.9 4.9 2.9 2.9", key: "giyufr" }]
189891
- ], wXe = bte("Loader", FXe);
189893
+ ], DXe = bte("Loader", wXe);
189892
189894
  /**
189893
189895
  * @license lucide-react v0.475.0 - ISC
189894
189896
  *
189895
189897
  * This source code is licensed under the ISC license.
189896
189898
  * See the LICENSE file in the root directory of this source tree.
189897
189899
  */
189898
- const DXe = [
189900
+ const kXe = [
189899
189901
  ["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
189900
189902
  ["path", { d: "m21 21-4.3-4.3", key: "1qie3q" }]
189901
- ], kXe = bte("Search", DXe), i8 = ({
189903
+ ], EXe = bte("Search", kXe), i8 = ({
189902
189904
  emoji: e,
189903
189905
  setEmoji: t,
189904
189906
  isEditing: n,
@@ -190043,7 +190045,7 @@ const DXe = [
190043
190045
  className: Ke("fixed z-50"),
190044
190046
  style: { top: d.top, left: d.left },
190045
190047
  children: /* @__PURE__ */ x.jsxs(
190046
- EXe,
190048
+ CXe,
190047
190049
  {
190048
190050
  className: Ke(
190049
190051
  "color-bg-default rounded-lg border shadow-md",
@@ -190053,9 +190055,9 @@ const DXe = [
190053
190055
  t(g), s(!1);
190054
190056
  },
190055
190057
  children: [
190056
- /* @__PURE__ */ x.jsx(CXe, {}),
190057
- /* @__PURE__ */ x.jsx(TXe, {}),
190058
- /* @__PURE__ */ x.jsx(jXe, {})
190058
+ /* @__PURE__ */ x.jsx(_Xe, {}),
190059
+ /* @__PURE__ */ x.jsx(jXe, {}),
190060
+ /* @__PURE__ */ x.jsx(BXe, {})
190059
190061
  ]
190060
190062
  }
190061
190063
  )
@@ -190063,7 +190065,7 @@ const DXe = [
190063
190065
  )
190064
190066
  ] });
190065
190067
  };
190066
- function EXe({
190068
+ function CXe({
190067
190069
  className: e,
190068
190070
  ...t
190069
190071
  }) {
@@ -190079,7 +190081,7 @@ function EXe({
190079
190081
  }
190080
190082
  );
190081
190083
  }
190082
- function CXe({
190084
+ function _Xe({
190083
190085
  className: e,
190084
190086
  ...t
190085
190087
  }) {
@@ -190089,7 +190091,7 @@ function CXe({
190089
190091
  className: Ke("flex h-9 items-center gap-2 border-b px-3", e),
190090
190092
  "data-slot": "emoji-picker-search-wrapper",
190091
190093
  children: [
190092
- /* @__PURE__ */ x.jsx(kXe, { className: "size-4 shrink-0 opacity-50" }),
190094
+ /* @__PURE__ */ x.jsx(EXe, { className: "size-4 shrink-0 opacity-50" }),
190093
190095
  /* @__PURE__ */ x.jsx(
190094
190096
  Xc.Search,
190095
190097
  {
@@ -190102,13 +190104,13 @@ function CXe({
190102
190104
  }
190103
190105
  );
190104
190106
  }
190105
- function _Xe({
190107
+ function AXe({
190106
190108
  children: e,
190107
190109
  ...t
190108
190110
  }) {
190109
190111
  return /* @__PURE__ */ x.jsx("div", { ...t, className: "scroll-my-1 px-1", "data-slot": "emoji-picker-row", children: e });
190110
190112
  }
190111
- function AXe({
190113
+ function SXe({
190112
190114
  emoji: e,
190113
190115
  className: t,
190114
190116
  ...n
@@ -190126,7 +190128,7 @@ function AXe({
190126
190128
  }
190127
190129
  );
190128
190130
  }
190129
- function SXe({
190131
+ function TXe({
190130
190132
  category: e,
190131
190133
  ...t
190132
190134
  }) {
@@ -190140,7 +190142,7 @@ function SXe({
190140
190142
  }
190141
190143
  );
190142
190144
  }
190143
- function TXe({
190145
+ function jXe({
190144
190146
  className: e,
190145
190147
  ...t
190146
190148
  }) {
@@ -190156,7 +190158,7 @@ function TXe({
190156
190158
  {
190157
190159
  className: "absolute inset-0 flex items-center justify-center text-muted-foreground",
190158
190160
  "data-slot": "emoji-picker-loading",
190159
- children: /* @__PURE__ */ x.jsx(wXe, { className: "size-4 animate-spin" })
190161
+ children: /* @__PURE__ */ x.jsx(DXe, { className: "size-4 animate-spin" })
190160
190162
  }
190161
190163
  ),
190162
190164
  /* @__PURE__ */ x.jsx(
@@ -190172,9 +190174,9 @@ function TXe({
190172
190174
  {
190173
190175
  className: "select-none pb-1",
190174
190176
  components: {
190175
- Row: _Xe,
190176
- Emoji: AXe,
190177
- CategoryHeader: SXe
190177
+ Row: AXe,
190178
+ Emoji: SXe,
190179
+ CategoryHeader: TXe
190178
190180
  },
190179
190181
  "data-slot": "emoji-picker-list"
190180
190182
  }
@@ -190183,7 +190185,7 @@ function TXe({
190183
190185
  }
190184
190186
  );
190185
190187
  }
190186
- function jXe({
190188
+ function BXe({
190187
190189
  className: e,
190188
190190
  ...t
190189
190191
  }) {
@@ -190203,7 +190205,7 @@ function jXe({
190203
190205
  }
190204
190206
  );
190205
190207
  }
190206
- const BXe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30px] border-radius-sm flex items-center w-full", NXe = (e) => {
190208
+ const NXe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30px] border-radius-sm flex items-center w-full", MXe = (e) => {
190207
190209
  const {
190208
190210
  attributes: t,
190209
190211
  listeners: n,
@@ -190427,7 +190429,7 @@ const BXe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
190427
190429
  ]
190428
190430
  }
190429
190431
  );
190430
- }, MXe = ({
190432
+ }, OXe = ({
190431
190433
  name: e,
190432
190434
  emoji: t
190433
190435
  }) => /* @__PURE__ */ x.jsxs(
@@ -190441,14 +190443,14 @@ const BXe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
190441
190443
  /* @__PURE__ */ x.jsx("span", { className: "text-heading-xsm color-text-default truncate", children: e })
190442
190444
  ]
190443
190445
  }
190444
- ), OXe = ({
190446
+ ), IXe = ({
190445
190447
  item: e
190446
190448
  }) => {
190447
190449
  const [t, n] = Me(!1), r = /* @__PURE__ */ x.jsxs(
190448
190450
  "div",
190449
190451
  {
190450
190452
  "data-testid": `tab-menu-${e.id}`,
190451
- className: rt(BXe, e.disabled && "!cursor-not-allowed"),
190453
+ className: rt(NXe, e.disabled && "!cursor-not-allowed"),
190452
190454
  onClick: (i) => {
190453
190455
  var s;
190454
190456
  i.stopPropagation(), !e.disabled && ((s = e.onSelect) == null || s.call(e));
@@ -190510,7 +190512,7 @@ const BXe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
190510
190512
  className: rt("w-[160px] space-xsm", n),
190511
190513
  children: r.map((o, i) => /* @__PURE__ */ x.jsxs("div", { children: [
190512
190514
  i > 0 && /* @__PURE__ */ x.jsx("hr", { className: "border-t space-x-xsm color-border-default my-[4px] w-full" }),
190513
- o.map((s) => /* @__PURE__ */ x.jsx(OXe, { item: s }, s.id))
190515
+ o.map((s) => /* @__PURE__ */ x.jsx(IXe, { item: s }, s.id))
190514
190516
  ] }, `section-${i}`))
190515
190517
  }
190516
190518
  )
@@ -190575,7 +190577,7 @@ const BXe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
190575
190577
  ] })
190576
190578
  }
190577
190579
  ) });
190578
- }, IXe = ({
190580
+ }, RXe = ({
190579
190581
  tabSectionContainer: e,
190580
190582
  ...t
190581
190583
  }) => !e && t.isVersionHistoryMode ? null : e ? vx(/* @__PURE__ */ x.jsx(iL, { ...t }), e) : /* @__PURE__ */ x.jsx(iL, { ...t }), iL = ({
@@ -190750,7 +190752,7 @@ const BXe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
190750
190752
  )
190751
190753
  ] }) }),
190752
190754
  /* @__PURE__ */ x.jsx("div", { className: "w-full overflow-y-auto no-scrollbar space-y-1", children: e.map((U, V) => /* @__PURE__ */ x.jsx(
190753
- RXe,
190755
+ LXe,
190754
190756
  {
190755
190757
  tab: U,
190756
190758
  tabIndex: V,
@@ -190788,7 +190790,7 @@ const BXe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
190788
190790
  }
190789
190791
  ),
190790
190792
  /* @__PURE__ */ x.jsx(Mne, { children: E ? /* @__PURE__ */ x.jsx(
190791
- MXe,
190793
+ OXe,
190792
190794
  {
190793
190795
  emoji: (j == null ? void 0 : j.emoji) ?? "",
190794
190796
  name: (j == null ? void 0 : j.name) ?? ""
@@ -190818,7 +190820,7 @@ const BXe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
190818
190820
  }
190819
190821
  )
190820
190822
  ] });
190821
- }, RXe = ({
190823
+ }, LXe = ({
190822
190824
  tab: e,
190823
190825
  tabIndex: t,
190824
190826
  tabCount: n,
@@ -190845,7 +190847,7 @@ const BXe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
190845
190847
  const w = n > 1;
190846
190848
  return /* @__PURE__ */ x.jsxs("div", { className: "w-full flex flex-col gap-2", children: [
190847
190849
  /* @__PURE__ */ x.jsx(
190848
- NXe,
190850
+ MXe,
190849
190851
  {
190850
190852
  id: e.id,
190851
190853
  tabId: e.id,
@@ -190893,7 +190895,7 @@ const BXe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
190893
190895
  }
190894
190896
  )
190895
190897
  ] });
190896
- }, LXe = ({
190898
+ }, UXe = ({
190897
190899
  tabs: e,
190898
190900
  activeTabId: t,
190899
190901
  setActiveTabId: n,
@@ -191270,7 +191272,7 @@ const BXe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
191270
191272
  ]
191271
191273
  }
191272
191274
  );
191273
- }, UXe = ({
191275
+ }, PXe = ({
191274
191276
  editor: e,
191275
191277
  hasToC: t,
191276
191278
  items: n,
@@ -191378,7 +191380,7 @@ const BXe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
191378
191380
  }) => {
191379
191381
  const E = or("(max-width:1280px)");
191380
191382
  return l.length ? E ? /* @__PURE__ */ x.jsx(
191381
- LXe,
191383
+ UXe,
191382
191384
  {
191383
191385
  tabs: l,
191384
191386
  setTabs: u,
@@ -191400,7 +191402,7 @@ const BXe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
191400
191402
  isFocusMode: k
191401
191403
  }
191402
191404
  ) : /* @__PURE__ */ x.jsx(
191403
- IXe,
191405
+ RXe,
191404
191406
  {
191405
191407
  tabs: l,
191406
191408
  setTabs: u,
@@ -191428,7 +191430,7 @@ const BXe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
191428
191430
  isFocusMode: k
191429
191431
  }
191430
191432
  ) : /* @__PURE__ */ x.jsx(
191431
- UXe,
191433
+ PXe,
191432
191434
  {
191433
191435
  editor: e,
191434
191436
  hasToC: t,
@@ -191440,7 +191442,7 @@ const BXe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
191440
191442
  orientation: a
191441
191443
  }
191442
191444
  );
191443
- }, PXe = "h-6 bg-gradient-to-r [--from:210,_17%,_98%,_1] [--to:0,_0%,_93%,_1] dark:[--from:0,0%,16%,1] dark:[--to:0,0%,12%,1] from-[hsl(var(--from))] to-[hsl(var(--to))]", Vi = ({ className: e }) => /* @__PURE__ */ x.jsx("div", { className: Ke(PXe, e) }), wte = () => /* @__PURE__ */ x.jsx("div", { className: "flex flex-col gap-8", children: /* @__PURE__ */ x.jsxs(
191445
+ }, zXe = "h-6 bg-gradient-to-r [--from:210,_17%,_98%,_1] [--to:0,_0%,_93%,_1] dark:[--from:0,0%,16%,1] dark:[--to:0,0%,12%,1] from-[hsl(var(--from))] to-[hsl(var(--to))]", Vi = ({ className: e }) => /* @__PURE__ */ x.jsx("div", { className: Ke(zXe, e) }), wte = () => /* @__PURE__ */ x.jsx("div", { className: "flex flex-col gap-8", children: /* @__PURE__ */ x.jsxs(
191444
191446
  Ene,
191445
191447
  {
191446
191448
  transition: {
@@ -191496,7 +191498,7 @@ const BXe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
191496
191498
  )
191497
191499
  ]
191498
191500
  }
191499
- ) }), zXe = ({ editor: e }) => {
191501
+ ) }), $Xe = ({ editor: e }) => {
191500
191502
  const t = je(!0), n = je([]), r = je(null), o = ({ editor: u }) => {
191501
191503
  if (!t.current || !u.isActive("link")) return !1;
191502
191504
  const c = u.getAttributes("link").href;
@@ -191588,7 +191590,7 @@ const BXe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
191588
191590
  ] })
191589
191591
  }
191590
191592
  );
191591
- }, $Xe = ({
191593
+ }, HXe = ({
191592
191594
  editor: e,
191593
191595
  ydoc: t,
191594
191596
  tabs: n,
@@ -191634,7 +191636,7 @@ const BXe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
191634
191636
  onRegisterExportTrigger: r
191635
191637
  }
191636
191638
  ) });
191637
- }, HXe = ({ onFocusMode: e } = {}) => {
191639
+ }, WXe = ({ onFocusMode: e } = {}) => {
191638
191640
  const [t, n] = Me(!1), r = or("(max-width: 1024px)");
191639
191641
  _e(() => {
191640
191642
  const i = (s) => {
@@ -191648,7 +191650,7 @@ const BXe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
191648
191650
  n((i) => (e == null || e(!i), !i));
191649
191651
  };
191650
191652
  return { isFocusMode: t, toggleFocusMode: o };
191651
- }, WXe = ({
191653
+ }, qXe = ({
191652
191654
  dropdownOpen: e,
191653
191655
  setDropdownOpen: t,
191654
191656
  zoomLevel: n,
@@ -191724,7 +191726,7 @@ const BXe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
191724
191726
  }
191725
191727
  ) })
191726
191728
  ] });
191727
- }, $Ye = lr(
191729
+ }, HYe = lr(
191728
191730
  ({
191729
191731
  isPreviewMode: e = !1,
191730
191732
  viewerMode: t,
@@ -191817,7 +191819,7 @@ const BXe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
191817
191819
  ...Lt
191818
191820
  }, Ie) => {
191819
191821
  var M_;
191820
- const { isFocusMode: $e, toggleFocusMode: Ze } = HXe({
191822
+ const { isFocusMode: $e, toggleFocusMode: Ze } = WXe({
191821
191823
  onFocusMode: (ft) => {
191822
191824
  re && (se == null || se(!1)), U == null || U(ft);
191823
191825
  }
@@ -192068,7 +192070,7 @@ const BXe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
192068
192070
  ) || (ft.preventDefault(), yt.commands.focus("end", { scrollIntoView: !1 }));
192069
192071
  }, Kte = () => /* @__PURE__ */ x.jsx(Yh, { children: /* @__PURE__ */ x.jsxs(x.Fragment, { children: [
192070
192072
  $e && /* @__PURE__ */ x.jsx(
192071
- WXe,
192073
+ qXe,
192072
192074
  {
192073
192075
  dropdownOpen: eu,
192074
192076
  setDropdownOpen: _f,
@@ -192126,7 +192128,7 @@ const BXe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
192126
192128
  }
192127
192129
  ),
192128
192130
  e && yt && /* @__PURE__ */ x.jsx(
192129
- $Xe,
192131
+ HXe,
192130
192132
  {
192131
192133
  editor: yt,
192132
192134
  ydoc: pp,
@@ -192337,7 +192339,7 @@ const BXe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
192337
192339
  isCollabDocOwner: r != null && r.enabled ? r.connection.isOwner : !0
192338
192340
  }
192339
192341
  ),
192340
- /* @__PURE__ */ x.jsx(zXe, { editor: yt })
192342
+ /* @__PURE__ */ x.jsx($Xe, { editor: yt })
192341
192343
  ] }),
192342
192344
  yt && /* @__PURE__ */ x.jsx(
192343
192345
  _3e,
@@ -192470,7 +192472,7 @@ const BXe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
192470
192472
  }
192471
192473
  ),
192472
192474
  yt && !$e && /* @__PURE__ */ x.jsx("div", { className: "comment-floating-slot absolute left-full top-0 ml-[12px] overflow-visible", children: /* @__PURE__ */ x.jsx(
192473
- bXe,
192475
+ yXe,
192474
192476
  {
192475
192477
  editor: yt,
192476
192478
  editorWrapperRef: nt,
@@ -192661,7 +192663,7 @@ const BXe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
192661
192663
  }
192662
192664
  );
192663
192665
  }
192664
- ), qXe = lr(
192666
+ ), VXe = lr(
192665
192667
  ({
192666
192668
  isPreviewMode: e = !1,
192667
192669
  initialContent: t,
@@ -192897,13 +192899,13 @@ const BXe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
192897
192899
  )
192898
192900
  ] });
192899
192901
  }
192900
- ), HYe = lr(
192902
+ ), WYe = lr(
192901
192903
  (e, t) => {
192902
192904
  var i, s;
192903
192905
  const n = !!((i = e.versionHistoryState) != null && i.enabled), r = ((s = e.versionHistoryState) == null ? void 0 : s.versionId) || "default", o = n ? r : "default";
192904
- return /* @__PURE__ */ x.jsx(qXe, { ...e, ref: t }, o);
192906
+ return /* @__PURE__ */ x.jsx(VXe, { ...e, ref: t }, o);
192905
192907
  }
192906
- ), VXe = (e) => {
192908
+ ), KXe = (e) => {
192907
192909
  const t = () => {
192908
192910
  const p = new hs(), h = () => {
192909
192911
  var b;
@@ -193041,14 +193043,14 @@ const BXe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
193041
193043
  getYjsContentFromMarkdown: c,
193042
193044
  getYjsContentFromDocx: d
193043
193045
  };
193044
- }, KXe = [
193046
+ }, GXe = [
193045
193047
  "pdf",
193046
193048
  "md",
193047
193049
  "html",
193048
193050
  "txt",
193049
193051
  "odt"
193050
- ], GXe = (e) => e !== void 0 && KXe.includes(e), WYe = (e) => {
193051
- const t = je(null), n = je(!1), [r, o] = Me(null), [i, s] = Me(!1), a = VXe(e), { getEditor: l, setContent: u } = a, c = Ae(
193052
+ ], XXe = (e) => e !== void 0 && GXe.includes(e), qYe = (e) => {
193053
+ const t = je(null), n = je(!1), [r, o] = Me(null), [i, s] = Me(!1), a = KXe(e), { getEditor: l, setContent: u } = a, c = Ae(
193052
193054
  (_, O) => {
193053
193055
  _ && !_.isDestroyed && _.destroy(), O && !O.isDestroyed && O.destroy();
193054
193056
  },
@@ -193207,7 +193209,7 @@ const BXe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
193207
193209
  tabs: M,
193208
193210
  activeTabId: N,
193209
193211
  exportName: B,
193210
- initialFormat: GXe(_.initialFormat) ? _.initialFormat : "pdf"
193212
+ initialFormat: XXe(_.initialFormat) ? _.initialFormat : "pdf"
193211
193213
  };
193212
193214
  d(L), s(!0);
193213
193215
  } catch (M) {
@@ -193260,18 +193262,18 @@ const BXe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
193260
193262
  exportModalProps: E
193261
193263
  };
193262
193264
  }, E_ = { type: "doc", content: [] };
193263
- function XXe(e) {
193265
+ function YXe(e) {
193264
193266
  return e && typeof e == "object" && e.type === "doc" && Array.isArray(e.content) ? e : E_;
193265
193267
  }
193266
193268
  function qw(e, t) {
193267
193269
  try {
193268
193270
  const n = N3e(e, t);
193269
- return XXe(n);
193271
+ return YXe(n);
193270
193272
  } catch {
193271
193273
  return E_;
193272
193274
  }
193273
193275
  }
193274
- function qYe(e) {
193276
+ function VYe(e) {
193275
193277
  var n;
193276
193278
  const t = new hs();
193277
193279
  try {
@@ -193315,13 +193317,13 @@ function qYe(e) {
193315
193317
  }
193316
193318
  }
193317
193319
  export {
193318
- $Ye as DdocEditor,
193320
+ HYe as DdocEditor,
193319
193321
  T3e as DdocExportModal,
193320
193322
  Lx as Editor,
193321
- HYe as PreviewDdocEditor,
193322
- qYe as buildVersionDiffSnapshot,
193323
+ WYe as PreviewDdocEditor,
193324
+ VYe as buildVersionDiffSnapshot,
193323
193325
  e3 as handleContentPrint,
193324
193326
  pD as mergeTabAwareYjsUpdates,
193325
- WYe as useExportHeadlessEditorContent,
193326
- VXe as useHeadlessEditor
193327
+ qYe as useExportHeadlessEditorContent,
193328
+ KXe as useHeadlessEditor
193327
193329
  };