@fileverse-dev/ddoc 3.2.9-sg-1 → 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
|
@@ -53301,7 +53301,7 @@ const Vp = (e) => {
|
|
|
53301
53301
|
"data-testid": a ? `comment-card-${a}` : "comment-card",
|
|
53302
53302
|
onClick: k,
|
|
53303
53303
|
className: Ke(
|
|
53304
|
-
"flex flex-col gap-[4px] group comment-card",
|
|
53304
|
+
"flex flex-col gap-[4px] group/card comment-card",
|
|
53305
53305
|
o && "opacity-70",
|
|
53306
53306
|
d ? "p-3 pb-0" : "px-3"
|
|
53307
53307
|
),
|
|
@@ -53319,7 +53319,7 @@ const Vp = (e) => {
|
|
|
53319
53319
|
"div",
|
|
53320
53320
|
{
|
|
53321
53321
|
className: Ke(
|
|
53322
|
-
!M && "opacity-0 group-hover:opacity-100",
|
|
53322
|
+
!M && "opacity-0 group-hover/card:opacity-100",
|
|
53323
53323
|
"flex gap-[4px]"
|
|
53324
53324
|
),
|
|
53325
53325
|
children: [
|
|
@@ -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-
|
|
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
|
|
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
|
-
},
|
|
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
|
-
},
|
|
187762
|
+
}, UGe = ({
|
|
187763
187763
|
floatingCards: e,
|
|
187764
187764
|
recomputeStartIndex: t,
|
|
187765
|
-
firstInvalidatedIndex: n =
|
|
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 =
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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}="${
|
|
187833
|
-
},
|
|
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
|
-
|
|
187839
|
+
$Ge({ anchorId: t, anchorType: n })
|
|
187840
187840
|
)
|
|
187841
|
-
),
|
|
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
|
-
},
|
|
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
|
-
),
|
|
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
|
-
}),
|
|
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
|
-
},
|
|
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 =
|
|
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]),
|
|
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
|
-
}),
|
|
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 =
|
|
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 =
|
|
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
|
-
},
|
|
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 =
|
|
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) =>
|
|
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
|
-
},
|
|
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,
|
|
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 *
|
|
188187
|
+
const i = o * PGe;
|
|
188188
188188
|
return t >= n - i && e <= r + i;
|
|
188189
|
-
},
|
|
188190
|
-
const n =
|
|
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
|
-
},
|
|
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 ?
|
|
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 =
|
|
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 =
|
|
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
|
-
|
|
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 ||
|
|
188539
|
+
if (!a || !s || QGe(T.target))
|
|
188540
188540
|
return;
|
|
188541
188541
|
const re = Hw(n);
|
|
188542
|
-
|
|
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
|
-
},
|
|
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 =
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
} =
|
|
188763
|
+
} = iXe(), {
|
|
188764
188764
|
floatingCardListContainerRef: d,
|
|
188765
188765
|
mountedFloatingCardIds: p,
|
|
188766
188766
|
registerCardNode: h
|
|
188767
|
-
} =
|
|
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,
|
|
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
|
-
|
|
188808
|
+
aXe(s.target) || r();
|
|
188809
188809
|
},
|
|
188810
188810
|
children: o
|
|
188811
188811
|
}
|
|
188812
188812
|
));
|
|
188813
188813
|
lm.displayName = "FloatingCardShell";
|
|
188814
|
-
const
|
|
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(
|
|
188868
|
+
/* @__PURE__ */ x.jsx(uXe, { draftState: o, draft: e })
|
|
188869
188869
|
] }) : /* @__PURE__ */ x.jsx(am, { isDraft: !0 })
|
|
188870
188870
|
}
|
|
188871
188871
|
) : null;
|
|
188872
|
-
},
|
|
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
|
-
},
|
|
188917
|
+
}, cXe = ({
|
|
188918
188918
|
card: e,
|
|
188919
188919
|
isHidden: t,
|
|
188920
188920
|
registerCardNode: n
|
|
@@ -189028,60 +189028,68 @@ const aXe = ({
|
|
|
189028
189028
|
] }) : /* @__PURE__ */ x.jsx(am, { isDraft: !0 })
|
|
189029
189029
|
}
|
|
189030
189030
|
);
|
|
189031
|
-
},
|
|
189031
|
+
}, dXe = ({
|
|
189032
189032
|
thread: e,
|
|
189033
189033
|
comment: t,
|
|
189034
189034
|
isHidden: n,
|
|
189035
|
-
registerCardNode: r
|
|
189035
|
+
registerCardNode: r,
|
|
189036
|
+
isCollaborationEnabled: o
|
|
189036
189037
|
}) => {
|
|
189037
|
-
const
|
|
189038
|
-
(
|
|
189039
|
-
r(e.floatingCardId,
|
|
189038
|
+
const i = Ne((y) => y.focusFloatingCard), s = Ne((y) => y.focusCommentInEditor), a = Ne((y) => y.isDDocOwner), l = Ne((y) => y.username), u = Ne((y) => y.acceptSuggestion), c = Ne((y) => y.deleteComment), d = Ae(
|
|
189039
|
+
(y) => {
|
|
189040
|
+
r(e.floatingCardId, y);
|
|
189040
189041
|
},
|
|
189041
189042
|
[r, e.floatingCardId]
|
|
189042
189043
|
);
|
|
189043
189044
|
if (!t) return null;
|
|
189044
|
-
const
|
|
189045
|
-
|
|
189046
|
-
},
|
|
189047
|
-
e.commentId && l(e.commentId);
|
|
189048
|
-
}, m = () => {
|
|
189045
|
+
const p = () => {
|
|
189046
|
+
i(e.floatingCardId), !e.isFocused && e.commentId && s(e.commentId);
|
|
189047
|
+
}, h = !!(l && t.username && t.username === l), f = a, g = !a && h, m = () => {
|
|
189049
189048
|
e.commentId && u(e.commentId);
|
|
189049
|
+
}, b = () => {
|
|
189050
|
+
e.commentId && c(e.commentId);
|
|
189050
189051
|
};
|
|
189051
189052
|
return /* @__PURE__ */ x.jsx(
|
|
189052
189053
|
lm,
|
|
189053
189054
|
{
|
|
189054
|
-
ref:
|
|
189055
|
+
ref: d,
|
|
189055
189056
|
floatingCardId: e.floatingCardId,
|
|
189056
189057
|
isHidden: n,
|
|
189057
189058
|
isFocused: e.isFocused,
|
|
189058
|
-
onFocus:
|
|
189059
|
+
onFocus: p,
|
|
189059
189060
|
children: /* @__PURE__ */ x.jsxs("div", { className: "flex group flex-col gap-2 p-3 pb-0", children: [
|
|
189060
189061
|
/* @__PURE__ */ x.jsx(
|
|
189061
|
-
|
|
189062
|
+
pXe,
|
|
189062
189063
|
{
|
|
189063
189064
|
username: t.username,
|
|
189064
189065
|
createdAt: t.createdAt,
|
|
189065
|
-
canAcceptReject:
|
|
189066
|
-
canWithdraw:
|
|
189067
|
-
onAccept:
|
|
189068
|
-
onReject:
|
|
189066
|
+
canAcceptReject: f,
|
|
189067
|
+
canWithdraw: g,
|
|
189068
|
+
onAccept: m,
|
|
189069
|
+
onReject: b
|
|
189069
189070
|
}
|
|
189070
189071
|
),
|
|
189071
|
-
/* @__PURE__ */ x.jsx("div", { className: "ml-[32px]", children: /* @__PURE__ */ x.jsx(
|
|
189072
|
+
/* @__PURE__ */ x.jsx("div", { className: "ml-[32px]", children: /* @__PURE__ */ x.jsx(hXe, { comment: t }) }),
|
|
189072
189073
|
/* @__PURE__ */ x.jsx(
|
|
189073
|
-
|
|
189074
|
+
fXe,
|
|
189074
189075
|
{
|
|
189075
189076
|
thread: e,
|
|
189076
189077
|
comment: t,
|
|
189077
|
-
onFocusRequest:
|
|
189078
|
+
onFocusRequest: p
|
|
189078
189079
|
}
|
|
189079
189080
|
),
|
|
189080
|
-
/* @__PURE__ */ x.jsx(
|
|
189081
|
+
/* @__PURE__ */ x.jsx(
|
|
189082
|
+
gXe,
|
|
189083
|
+
{
|
|
189084
|
+
thread: e,
|
|
189085
|
+
comment: t,
|
|
189086
|
+
isCollaborationEnabled: o
|
|
189087
|
+
}
|
|
189088
|
+
)
|
|
189081
189089
|
] })
|
|
189082
189090
|
}
|
|
189083
189091
|
);
|
|
189084
|
-
},
|
|
189092
|
+
}, pXe = ({
|
|
189085
189093
|
username: e,
|
|
189086
189094
|
createdAt: t,
|
|
189087
189095
|
canAcceptReject: n,
|
|
@@ -189102,7 +189110,7 @@ const aXe = ({
|
|
|
189102
189110
|
}
|
|
189103
189111
|
),
|
|
189104
189112
|
/* @__PURE__ */ x.jsxs("span", { className: "text-body-sm-bold inline-flex items-center gap-1 whitespace-nowrap", children: [
|
|
189105
|
-
/* @__PURE__ */ x.jsx("p", { className: "truncate max-w-[
|
|
189113
|
+
/* @__PURE__ */ x.jsx("p", { className: "truncate max-w-[86px]", children: cf(s.name) }),
|
|
189106
189114
|
s.isEns && /* @__PURE__ */ x.jsx("img", { src: df, alt: "verified", className: "w-3.5 h-3.5" })
|
|
189107
189115
|
] }),
|
|
189108
189116
|
/* @__PURE__ */ x.jsx("span", { className: "text-helper-text-sm color-text-secondary whitespace-nowrap", children: t && m3(t) }),
|
|
@@ -189141,7 +189149,7 @@ const aXe = ({
|
|
|
189141
189149
|
)
|
|
189142
189150
|
] })
|
|
189143
189151
|
] });
|
|
189144
|
-
},
|
|
189152
|
+
}, hXe = ({
|
|
189145
189153
|
comment: e
|
|
189146
189154
|
}) => {
|
|
189147
189155
|
const {
|
|
@@ -189190,7 +189198,7 @@ const aXe = ({
|
|
|
189190
189198
|
'"'
|
|
189191
189199
|
] })
|
|
189192
189200
|
] }) : null;
|
|
189193
|
-
},
|
|
189201
|
+
}, fXe = ({
|
|
189194
189202
|
thread: e,
|
|
189195
189203
|
comment: t,
|
|
189196
189204
|
onFocusRequest: n
|
|
@@ -189232,60 +189240,70 @@ const aXe = ({
|
|
|
189232
189240
|
visibleReplies: p
|
|
189233
189241
|
}
|
|
189234
189242
|
) });
|
|
189235
|
-
},
|
|
189243
|
+
}, gXe = ({
|
|
189236
189244
|
thread: e,
|
|
189237
|
-
comment: t
|
|
189245
|
+
comment: t,
|
|
189246
|
+
isCollaborationEnabled: n
|
|
189238
189247
|
}) => {
|
|
189239
|
-
const
|
|
189248
|
+
const r = Ne((b) => b.username), o = Ne((b) => b.isConnected), i = Ne((b) => b.handleAddReply), s = Ne((b) => b.setCommentDrawerOpen), [a, l] = Me(""), [u, c] = Me(!1), d = je(null), p = !t.resolved && !t.deleted, h = !!a.trim(), f = n ? e.isFocused : o && (e.isFocused || h), g = Ys(r);
|
|
189240
189249
|
_e(() => {
|
|
189241
|
-
|
|
189242
|
-
}, [
|
|
189243
|
-
const
|
|
189244
|
-
if (!(!e.commentId || !
|
|
189245
|
-
if (!
|
|
189246
|
-
|
|
189250
|
+
d.current && Qr(d.current);
|
|
189251
|
+
}, [a]);
|
|
189252
|
+
const m = () => {
|
|
189253
|
+
if (!n && !(!e.commentId || !a.trim())) {
|
|
189254
|
+
if (!o) {
|
|
189255
|
+
s == null || s(!0);
|
|
189247
189256
|
return;
|
|
189248
189257
|
}
|
|
189249
|
-
|
|
189258
|
+
i(e.commentId, a), l(""), c(!1);
|
|
189250
189259
|
}
|
|
189251
189260
|
};
|
|
189252
|
-
return
|
|
189253
|
-
/* @__PURE__ */ x.jsxs(
|
|
189254
|
-
|
|
189255
|
-
|
|
189256
|
-
|
|
189257
|
-
|
|
189258
|
-
|
|
189259
|
-
|
|
189260
|
-
|
|
189261
|
-
|
|
189262
|
-
|
|
189263
|
-
|
|
189264
|
-
|
|
189265
|
-
|
|
189266
|
-
|
|
189267
|
-
|
|
189268
|
-
|
|
189269
|
-
|
|
189270
|
-
|
|
189271
|
-
|
|
189272
|
-
|
|
189273
|
-
|
|
189274
|
-
|
|
189275
|
-
|
|
189276
|
-
|
|
189277
|
-
|
|
189278
|
-
|
|
189279
|
-
|
|
189280
|
-
|
|
189281
|
-
|
|
189282
|
-
|
|
189261
|
+
return p ? e.isFocused && !o && !n ? /* @__PURE__ */ x.jsx(am, {}) : f ? /* @__PURE__ */ x.jsxs("div", { className: "group", children: [
|
|
189262
|
+
/* @__PURE__ */ x.jsxs(
|
|
189263
|
+
"div",
|
|
189264
|
+
{
|
|
189265
|
+
className: Ke(
|
|
189266
|
+
"border flex px-[12px] py-[8px] gap-[8px] rounded-[4px]",
|
|
189267
|
+
n ? "color-bg-disabled" : "color-bg-default"
|
|
189268
|
+
),
|
|
189269
|
+
children: [
|
|
189270
|
+
/* @__PURE__ */ x.jsx(
|
|
189271
|
+
qs,
|
|
189272
|
+
{
|
|
189273
|
+
src: g.isEns ? Pi : `https://api.dicebear.com/9.x/identicon/svg?seed=${encodeURIComponent(
|
|
189274
|
+
g.name || ""
|
|
189275
|
+
)}`,
|
|
189276
|
+
className: "w-[16px] h-[16px]"
|
|
189277
|
+
}
|
|
189278
|
+
),
|
|
189279
|
+
/* @__PURE__ */ x.jsx(
|
|
189280
|
+
Gu,
|
|
189281
|
+
{
|
|
189282
|
+
ref: d,
|
|
189283
|
+
value: a,
|
|
189284
|
+
onChange: (b) => {
|
|
189285
|
+
l(b.target.value), Qr(b.currentTarget);
|
|
189286
|
+
},
|
|
189287
|
+
onFocus: () => c(!0),
|
|
189288
|
+
onBlur: () => c(!1),
|
|
189289
|
+
onInput: (b) => Qr(b.currentTarget),
|
|
189290
|
+
onKeyDown: (b) => {
|
|
189291
|
+
b.key === "Enter" && (!b.shiftKey || b.metaKey) && (b.preventDefault(), m());
|
|
189292
|
+
},
|
|
189293
|
+
className: "color-bg-default w-full text-body-sm color-text-default !p-0 !border-none h-[20px] max-h-[296px] overflow-y-auto no-scrollbar whitespace-pre-wrap",
|
|
189294
|
+
placeholder: n ? "Cannot send reply in collaboration mode" : p ? "Add a reply" : "Thread resolved",
|
|
189295
|
+
disabled: !p || n
|
|
189296
|
+
}
|
|
189297
|
+
)
|
|
189298
|
+
]
|
|
189299
|
+
}
|
|
189300
|
+
),
|
|
189283
189301
|
/* @__PURE__ */ x.jsxs(
|
|
189284
189302
|
"div",
|
|
189285
189303
|
{
|
|
189286
189304
|
className: Ke(
|
|
189287
189305
|
"items-center justify-end gap-2 pt-2",
|
|
189288
|
-
|
|
189306
|
+
h || u ? "flex" : "hidden"
|
|
189289
189307
|
),
|
|
189290
189308
|
children: [
|
|
189291
189309
|
/* @__PURE__ */ x.jsx(
|
|
@@ -189293,8 +189311,8 @@ const aXe = ({
|
|
|
189293
189311
|
{
|
|
189294
189312
|
variant: "ghost",
|
|
189295
189313
|
className: "w-20 min-w-20",
|
|
189296
|
-
onClick: (
|
|
189297
|
-
|
|
189314
|
+
onClick: (b) => {
|
|
189315
|
+
b.stopPropagation(), l(""), c(!1);
|
|
189298
189316
|
},
|
|
189299
189317
|
children: /* @__PURE__ */ x.jsx("p", { className: "text-body-sm-bold", children: "Cancel" })
|
|
189300
189318
|
}
|
|
@@ -189303,8 +189321,8 @@ const aXe = ({
|
|
|
189303
189321
|
Ot,
|
|
189304
189322
|
{
|
|
189305
189323
|
className: "w-20 min-w-20",
|
|
189306
|
-
disabled: !
|
|
189307
|
-
onClick:
|
|
189324
|
+
disabled: !a.trim() || n,
|
|
189325
|
+
onClick: m,
|
|
189308
189326
|
children: "Send"
|
|
189309
189327
|
}
|
|
189310
189328
|
)
|
|
@@ -189312,7 +189330,7 @@ const aXe = ({
|
|
|
189312
189330
|
}
|
|
189313
189331
|
)
|
|
189314
189332
|
] }) : null : null;
|
|
189315
|
-
},
|
|
189333
|
+
}, mXe = ({
|
|
189316
189334
|
thread: e,
|
|
189317
189335
|
comment: t,
|
|
189318
189336
|
tabName: n,
|
|
@@ -189370,7 +189388,7 @@ const aXe = ({
|
|
|
189370
189388
|
),
|
|
189371
189389
|
e.isFocused && !l && !i && /* @__PURE__ */ x.jsx(am, {}),
|
|
189372
189390
|
/* @__PURE__ */ x.jsx("div", { className: "px-3", children: /* @__PURE__ */ x.jsx(
|
|
189373
|
-
|
|
189391
|
+
bXe,
|
|
189374
189392
|
{
|
|
189375
189393
|
comment: t,
|
|
189376
189394
|
thread: e,
|
|
@@ -189389,7 +189407,7 @@ const aXe = ({
|
|
|
189389
189407
|
] })
|
|
189390
189408
|
}
|
|
189391
189409
|
);
|
|
189392
|
-
},
|
|
189410
|
+
}, bXe = ({
|
|
189393
189411
|
comment: e,
|
|
189394
189412
|
thread: t,
|
|
189395
189413
|
isCollaborationEnabled: n
|
|
@@ -189496,7 +189514,7 @@ const aXe = ({
|
|
|
189496
189514
|
}
|
|
189497
189515
|
)
|
|
189498
189516
|
] });
|
|
189499
|
-
},
|
|
189517
|
+
}, yXe = ({
|
|
189500
189518
|
editor: e,
|
|
189501
189519
|
editorWrapperRef: t,
|
|
189502
189520
|
scrollContainerRef: n,
|
|
@@ -189509,7 +189527,7 @@ const aXe = ({
|
|
|
189509
189527
|
mountedFloatingCards: l,
|
|
189510
189528
|
registerCardNode: u,
|
|
189511
189529
|
shouldRender: c
|
|
189512
|
-
} =
|
|
189530
|
+
} = sXe({
|
|
189513
189531
|
editor: e,
|
|
189514
189532
|
editorWrapperRef: t,
|
|
189515
189533
|
scrollContainerRef: n,
|
|
@@ -189526,12 +189544,14 @@ const aXe = ({
|
|
|
189526
189544
|
"data-floating-comment-hidden": o ? "true" : "false",
|
|
189527
189545
|
style: {
|
|
189528
189546
|
width: pte,
|
|
189529
|
-
|
|
189547
|
+
boxSizing: "content-box",
|
|
189548
|
+
minHeight: "var(--floating-comment-container-min-height, 100%)",
|
|
189549
|
+
paddingRight: o ? 0 : IGe
|
|
189530
189550
|
},
|
|
189531
189551
|
children: l.map((d) => {
|
|
189532
189552
|
if (d.type === "draft")
|
|
189533
189553
|
return /* @__PURE__ */ x.jsx(
|
|
189534
|
-
|
|
189554
|
+
lXe,
|
|
189535
189555
|
{
|
|
189536
189556
|
draft: d,
|
|
189537
189557
|
isHidden: o,
|
|
@@ -189541,7 +189561,7 @@ const aXe = ({
|
|
|
189541
189561
|
);
|
|
189542
189562
|
if (d.type === "suggestion-draft")
|
|
189543
189563
|
return /* @__PURE__ */ x.jsx(
|
|
189544
|
-
|
|
189564
|
+
cXe,
|
|
189545
189565
|
{
|
|
189546
189566
|
card: d,
|
|
189547
189567
|
isHidden: o,
|
|
@@ -189553,17 +189573,18 @@ const aXe = ({
|
|
|
189553
189573
|
(h) => h.id === d.commentId
|
|
189554
189574
|
);
|
|
189555
189575
|
return p != null && p.isSuggestion ? /* @__PURE__ */ x.jsx(
|
|
189556
|
-
|
|
189576
|
+
dXe,
|
|
189557
189577
|
{
|
|
189558
189578
|
thread: d,
|
|
189559
189579
|
comment: p,
|
|
189560
189580
|
tabName: r,
|
|
189561
189581
|
isHidden: o,
|
|
189562
|
-
registerCardNode: u
|
|
189582
|
+
registerCardNode: u,
|
|
189583
|
+
isCollaborationEnabled: i
|
|
189563
189584
|
},
|
|
189564
189585
|
d.floatingCardId
|
|
189565
189586
|
) : /* @__PURE__ */ x.jsx(
|
|
189566
|
-
|
|
189587
|
+
mXe,
|
|
189567
189588
|
{
|
|
189568
189589
|
thread: d,
|
|
189569
189590
|
comment: p,
|
|
@@ -189785,14 +189806,14 @@ const xx = Tt.memo(gte);
|
|
|
189785
189806
|
* This source code is licensed under the ISC license.
|
|
189786
189807
|
* See the LICENSE file in the root directory of this source tree.
|
|
189787
189808
|
*/
|
|
189788
|
-
const
|
|
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();
|
|
189789
189810
|
/**
|
|
189790
189811
|
* @license lucide-react v0.475.0 - ISC
|
|
189791
189812
|
*
|
|
189792
189813
|
* This source code is licensed under the ISC license.
|
|
189793
189814
|
* See the LICENSE file in the root directory of this source tree.
|
|
189794
189815
|
*/
|
|
189795
|
-
var
|
|
189816
|
+
var vXe = {
|
|
189796
189817
|
xmlns: "http://www.w3.org/2000/svg",
|
|
189797
189818
|
width: 24,
|
|
189798
189819
|
height: 24,
|
|
@@ -189809,7 +189830,7 @@ var xXe = {
|
|
|
189809
189830
|
* This source code is licensed under the ISC license.
|
|
189810
189831
|
* See the LICENSE file in the root directory of this source tree.
|
|
189811
189832
|
*/
|
|
189812
|
-
const
|
|
189833
|
+
const FXe = lr(
|
|
189813
189834
|
({
|
|
189814
189835
|
color: e = "currentColor",
|
|
189815
189836
|
size: t = 24,
|
|
@@ -189823,7 +189844,7 @@ const vXe = lr(
|
|
|
189823
189844
|
"svg",
|
|
189824
189845
|
{
|
|
189825
189846
|
ref: l,
|
|
189826
|
-
...
|
|
189847
|
+
...vXe,
|
|
189827
189848
|
width: t,
|
|
189828
189849
|
height: t,
|
|
189829
189850
|
stroke: e,
|
|
@@ -189845,10 +189866,10 @@ const vXe = lr(
|
|
|
189845
189866
|
*/
|
|
189846
189867
|
const bte = (e, t) => {
|
|
189847
189868
|
const n = lr(
|
|
189848
|
-
({ className: r, ...o }, i) => pb(
|
|
189869
|
+
({ className: r, ...o }, i) => pb(FXe, {
|
|
189849
189870
|
ref: i,
|
|
189850
189871
|
iconNode: t,
|
|
189851
|
-
className: mte(`lucide-${
|
|
189872
|
+
className: mte(`lucide-${xXe(e)}`, r),
|
|
189852
189873
|
...o
|
|
189853
189874
|
})
|
|
189854
189875
|
);
|
|
@@ -189860,7 +189881,7 @@ const bte = (e, t) => {
|
|
|
189860
189881
|
* This source code is licensed under the ISC license.
|
|
189861
189882
|
* See the LICENSE file in the root directory of this source tree.
|
|
189862
189883
|
*/
|
|
189863
|
-
const
|
|
189884
|
+
const wXe = [
|
|
189864
189885
|
["path", { d: "M12 2v4", key: "3427ic" }],
|
|
189865
189886
|
["path", { d: "m16.2 7.8 2.9-2.9", key: "r700ao" }],
|
|
189866
189887
|
["path", { d: "M18 12h4", key: "wj9ykh" }],
|
|
@@ -189869,17 +189890,17 @@ const FXe = [
|
|
|
189869
189890
|
["path", { d: "m4.9 19.1 2.9-2.9", key: "bwix9q" }],
|
|
189870
189891
|
["path", { d: "M2 12h4", key: "j09sii" }],
|
|
189871
189892
|
["path", { d: "m4.9 4.9 2.9 2.9", key: "giyufr" }]
|
|
189872
|
-
],
|
|
189893
|
+
], DXe = bte("Loader", wXe);
|
|
189873
189894
|
/**
|
|
189874
189895
|
* @license lucide-react v0.475.0 - ISC
|
|
189875
189896
|
*
|
|
189876
189897
|
* This source code is licensed under the ISC license.
|
|
189877
189898
|
* See the LICENSE file in the root directory of this source tree.
|
|
189878
189899
|
*/
|
|
189879
|
-
const
|
|
189900
|
+
const kXe = [
|
|
189880
189901
|
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
|
|
189881
189902
|
["path", { d: "m21 21-4.3-4.3", key: "1qie3q" }]
|
|
189882
|
-
],
|
|
189903
|
+
], EXe = bte("Search", kXe), i8 = ({
|
|
189883
189904
|
emoji: e,
|
|
189884
189905
|
setEmoji: t,
|
|
189885
189906
|
isEditing: n,
|
|
@@ -190024,7 +190045,7 @@ const DXe = [
|
|
|
190024
190045
|
className: Ke("fixed z-50"),
|
|
190025
190046
|
style: { top: d.top, left: d.left },
|
|
190026
190047
|
children: /* @__PURE__ */ x.jsxs(
|
|
190027
|
-
|
|
190048
|
+
CXe,
|
|
190028
190049
|
{
|
|
190029
190050
|
className: Ke(
|
|
190030
190051
|
"color-bg-default rounded-lg border shadow-md",
|
|
@@ -190034,9 +190055,9 @@ const DXe = [
|
|
|
190034
190055
|
t(g), s(!1);
|
|
190035
190056
|
},
|
|
190036
190057
|
children: [
|
|
190037
|
-
/* @__PURE__ */ x.jsx(
|
|
190038
|
-
/* @__PURE__ */ x.jsx(
|
|
190039
|
-
/* @__PURE__ */ x.jsx(
|
|
190058
|
+
/* @__PURE__ */ x.jsx(_Xe, {}),
|
|
190059
|
+
/* @__PURE__ */ x.jsx(jXe, {}),
|
|
190060
|
+
/* @__PURE__ */ x.jsx(BXe, {})
|
|
190040
190061
|
]
|
|
190041
190062
|
}
|
|
190042
190063
|
)
|
|
@@ -190044,7 +190065,7 @@ const DXe = [
|
|
|
190044
190065
|
)
|
|
190045
190066
|
] });
|
|
190046
190067
|
};
|
|
190047
|
-
function
|
|
190068
|
+
function CXe({
|
|
190048
190069
|
className: e,
|
|
190049
190070
|
...t
|
|
190050
190071
|
}) {
|
|
@@ -190060,7 +190081,7 @@ function EXe({
|
|
|
190060
190081
|
}
|
|
190061
190082
|
);
|
|
190062
190083
|
}
|
|
190063
|
-
function
|
|
190084
|
+
function _Xe({
|
|
190064
190085
|
className: e,
|
|
190065
190086
|
...t
|
|
190066
190087
|
}) {
|
|
@@ -190070,7 +190091,7 @@ function CXe({
|
|
|
190070
190091
|
className: Ke("flex h-9 items-center gap-2 border-b px-3", e),
|
|
190071
190092
|
"data-slot": "emoji-picker-search-wrapper",
|
|
190072
190093
|
children: [
|
|
190073
|
-
/* @__PURE__ */ x.jsx(
|
|
190094
|
+
/* @__PURE__ */ x.jsx(EXe, { className: "size-4 shrink-0 opacity-50" }),
|
|
190074
190095
|
/* @__PURE__ */ x.jsx(
|
|
190075
190096
|
Xc.Search,
|
|
190076
190097
|
{
|
|
@@ -190083,13 +190104,13 @@ function CXe({
|
|
|
190083
190104
|
}
|
|
190084
190105
|
);
|
|
190085
190106
|
}
|
|
190086
|
-
function
|
|
190107
|
+
function AXe({
|
|
190087
190108
|
children: e,
|
|
190088
190109
|
...t
|
|
190089
190110
|
}) {
|
|
190090
190111
|
return /* @__PURE__ */ x.jsx("div", { ...t, className: "scroll-my-1 px-1", "data-slot": "emoji-picker-row", children: e });
|
|
190091
190112
|
}
|
|
190092
|
-
function
|
|
190113
|
+
function SXe({
|
|
190093
190114
|
emoji: e,
|
|
190094
190115
|
className: t,
|
|
190095
190116
|
...n
|
|
@@ -190107,7 +190128,7 @@ function AXe({
|
|
|
190107
190128
|
}
|
|
190108
190129
|
);
|
|
190109
190130
|
}
|
|
190110
|
-
function
|
|
190131
|
+
function TXe({
|
|
190111
190132
|
category: e,
|
|
190112
190133
|
...t
|
|
190113
190134
|
}) {
|
|
@@ -190121,7 +190142,7 @@ function SXe({
|
|
|
190121
190142
|
}
|
|
190122
190143
|
);
|
|
190123
190144
|
}
|
|
190124
|
-
function
|
|
190145
|
+
function jXe({
|
|
190125
190146
|
className: e,
|
|
190126
190147
|
...t
|
|
190127
190148
|
}) {
|
|
@@ -190137,7 +190158,7 @@ function TXe({
|
|
|
190137
190158
|
{
|
|
190138
190159
|
className: "absolute inset-0 flex items-center justify-center text-muted-foreground",
|
|
190139
190160
|
"data-slot": "emoji-picker-loading",
|
|
190140
|
-
children: /* @__PURE__ */ x.jsx(
|
|
190161
|
+
children: /* @__PURE__ */ x.jsx(DXe, { className: "size-4 animate-spin" })
|
|
190141
190162
|
}
|
|
190142
190163
|
),
|
|
190143
190164
|
/* @__PURE__ */ x.jsx(
|
|
@@ -190153,9 +190174,9 @@ function TXe({
|
|
|
190153
190174
|
{
|
|
190154
190175
|
className: "select-none pb-1",
|
|
190155
190176
|
components: {
|
|
190156
|
-
Row:
|
|
190157
|
-
Emoji:
|
|
190158
|
-
CategoryHeader:
|
|
190177
|
+
Row: AXe,
|
|
190178
|
+
Emoji: SXe,
|
|
190179
|
+
CategoryHeader: TXe
|
|
190159
190180
|
},
|
|
190160
190181
|
"data-slot": "emoji-picker-list"
|
|
190161
190182
|
}
|
|
@@ -190164,7 +190185,7 @@ function TXe({
|
|
|
190164
190185
|
}
|
|
190165
190186
|
);
|
|
190166
190187
|
}
|
|
190167
|
-
function
|
|
190188
|
+
function BXe({
|
|
190168
190189
|
className: e,
|
|
190169
190190
|
...t
|
|
190170
190191
|
}) {
|
|
@@ -190184,7 +190205,7 @@ function jXe({
|
|
|
190184
190205
|
}
|
|
190185
190206
|
);
|
|
190186
190207
|
}
|
|
190187
|
-
const
|
|
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) => {
|
|
190188
190209
|
const {
|
|
190189
190210
|
attributes: t,
|
|
190190
190211
|
listeners: n,
|
|
@@ -190408,7 +190429,7 @@ const BXe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
190408
190429
|
]
|
|
190409
190430
|
}
|
|
190410
190431
|
);
|
|
190411
|
-
},
|
|
190432
|
+
}, OXe = ({
|
|
190412
190433
|
name: e,
|
|
190413
190434
|
emoji: t
|
|
190414
190435
|
}) => /* @__PURE__ */ x.jsxs(
|
|
@@ -190422,14 +190443,14 @@ const BXe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
190422
190443
|
/* @__PURE__ */ x.jsx("span", { className: "text-heading-xsm color-text-default truncate", children: e })
|
|
190423
190444
|
]
|
|
190424
190445
|
}
|
|
190425
|
-
),
|
|
190446
|
+
), IXe = ({
|
|
190426
190447
|
item: e
|
|
190427
190448
|
}) => {
|
|
190428
190449
|
const [t, n] = Me(!1), r = /* @__PURE__ */ x.jsxs(
|
|
190429
190450
|
"div",
|
|
190430
190451
|
{
|
|
190431
190452
|
"data-testid": `tab-menu-${e.id}`,
|
|
190432
|
-
className: rt(
|
|
190453
|
+
className: rt(NXe, e.disabled && "!cursor-not-allowed"),
|
|
190433
190454
|
onClick: (i) => {
|
|
190434
190455
|
var s;
|
|
190435
190456
|
i.stopPropagation(), !e.disabled && ((s = e.onSelect) == null || s.call(e));
|
|
@@ -190491,7 +190512,7 @@ const BXe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
190491
190512
|
className: rt("w-[160px] space-xsm", n),
|
|
190492
190513
|
children: r.map((o, i) => /* @__PURE__ */ x.jsxs("div", { children: [
|
|
190493
190514
|
i > 0 && /* @__PURE__ */ x.jsx("hr", { className: "border-t space-x-xsm color-border-default my-[4px] w-full" }),
|
|
190494
|
-
o.map((s) => /* @__PURE__ */ x.jsx(
|
|
190515
|
+
o.map((s) => /* @__PURE__ */ x.jsx(IXe, { item: s }, s.id))
|
|
190495
190516
|
] }, `section-${i}`))
|
|
190496
190517
|
}
|
|
190497
190518
|
)
|
|
@@ -190556,7 +190577,7 @@ const BXe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
190556
190577
|
] })
|
|
190557
190578
|
}
|
|
190558
190579
|
) });
|
|
190559
|
-
},
|
|
190580
|
+
}, RXe = ({
|
|
190560
190581
|
tabSectionContainer: e,
|
|
190561
190582
|
...t
|
|
190562
190583
|
}) => !e && t.isVersionHistoryMode ? null : e ? vx(/* @__PURE__ */ x.jsx(iL, { ...t }), e) : /* @__PURE__ */ x.jsx(iL, { ...t }), iL = ({
|
|
@@ -190731,7 +190752,7 @@ const BXe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
190731
190752
|
)
|
|
190732
190753
|
] }) }),
|
|
190733
190754
|
/* @__PURE__ */ x.jsx("div", { className: "w-full overflow-y-auto no-scrollbar space-y-1", children: e.map((U, V) => /* @__PURE__ */ x.jsx(
|
|
190734
|
-
|
|
190755
|
+
LXe,
|
|
190735
190756
|
{
|
|
190736
190757
|
tab: U,
|
|
190737
190758
|
tabIndex: V,
|
|
@@ -190769,7 +190790,7 @@ const BXe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
190769
190790
|
}
|
|
190770
190791
|
),
|
|
190771
190792
|
/* @__PURE__ */ x.jsx(Mne, { children: E ? /* @__PURE__ */ x.jsx(
|
|
190772
|
-
|
|
190793
|
+
OXe,
|
|
190773
190794
|
{
|
|
190774
190795
|
emoji: (j == null ? void 0 : j.emoji) ?? "",
|
|
190775
190796
|
name: (j == null ? void 0 : j.name) ?? ""
|
|
@@ -190799,7 +190820,7 @@ const BXe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
190799
190820
|
}
|
|
190800
190821
|
)
|
|
190801
190822
|
] });
|
|
190802
|
-
},
|
|
190823
|
+
}, LXe = ({
|
|
190803
190824
|
tab: e,
|
|
190804
190825
|
tabIndex: t,
|
|
190805
190826
|
tabCount: n,
|
|
@@ -190826,7 +190847,7 @@ const BXe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
190826
190847
|
const w = n > 1;
|
|
190827
190848
|
return /* @__PURE__ */ x.jsxs("div", { className: "w-full flex flex-col gap-2", children: [
|
|
190828
190849
|
/* @__PURE__ */ x.jsx(
|
|
190829
|
-
|
|
190850
|
+
MXe,
|
|
190830
190851
|
{
|
|
190831
190852
|
id: e.id,
|
|
190832
190853
|
tabId: e.id,
|
|
@@ -190874,7 +190895,7 @@ const BXe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
190874
190895
|
}
|
|
190875
190896
|
)
|
|
190876
190897
|
] });
|
|
190877
|
-
},
|
|
190898
|
+
}, UXe = ({
|
|
190878
190899
|
tabs: e,
|
|
190879
190900
|
activeTabId: t,
|
|
190880
190901
|
setActiveTabId: n,
|
|
@@ -191251,7 +191272,7 @@ const BXe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
191251
191272
|
]
|
|
191252
191273
|
}
|
|
191253
191274
|
);
|
|
191254
|
-
},
|
|
191275
|
+
}, PXe = ({
|
|
191255
191276
|
editor: e,
|
|
191256
191277
|
hasToC: t,
|
|
191257
191278
|
items: n,
|
|
@@ -191359,7 +191380,7 @@ const BXe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
191359
191380
|
}) => {
|
|
191360
191381
|
const E = or("(max-width:1280px)");
|
|
191361
191382
|
return l.length ? E ? /* @__PURE__ */ x.jsx(
|
|
191362
|
-
|
|
191383
|
+
UXe,
|
|
191363
191384
|
{
|
|
191364
191385
|
tabs: l,
|
|
191365
191386
|
setTabs: u,
|
|
@@ -191381,7 +191402,7 @@ const BXe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
191381
191402
|
isFocusMode: k
|
|
191382
191403
|
}
|
|
191383
191404
|
) : /* @__PURE__ */ x.jsx(
|
|
191384
|
-
|
|
191405
|
+
RXe,
|
|
191385
191406
|
{
|
|
191386
191407
|
tabs: l,
|
|
191387
191408
|
setTabs: u,
|
|
@@ -191409,7 +191430,7 @@ const BXe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
191409
191430
|
isFocusMode: k
|
|
191410
191431
|
}
|
|
191411
191432
|
) : /* @__PURE__ */ x.jsx(
|
|
191412
|
-
|
|
191433
|
+
PXe,
|
|
191413
191434
|
{
|
|
191414
191435
|
editor: e,
|
|
191415
191436
|
hasToC: t,
|
|
@@ -191421,7 +191442,7 @@ const BXe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
191421
191442
|
orientation: a
|
|
191422
191443
|
}
|
|
191423
191444
|
);
|
|
191424
|
-
},
|
|
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(
|
|
191425
191446
|
Ene,
|
|
191426
191447
|
{
|
|
191427
191448
|
transition: {
|
|
@@ -191477,7 +191498,7 @@ const BXe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
191477
191498
|
)
|
|
191478
191499
|
]
|
|
191479
191500
|
}
|
|
191480
|
-
) }),
|
|
191501
|
+
) }), $Xe = ({ editor: e }) => {
|
|
191481
191502
|
const t = je(!0), n = je([]), r = je(null), o = ({ editor: u }) => {
|
|
191482
191503
|
if (!t.current || !u.isActive("link")) return !1;
|
|
191483
191504
|
const c = u.getAttributes("link").href;
|
|
@@ -191569,7 +191590,7 @@ const BXe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
191569
191590
|
] })
|
|
191570
191591
|
}
|
|
191571
191592
|
);
|
|
191572
|
-
},
|
|
191593
|
+
}, HXe = ({
|
|
191573
191594
|
editor: e,
|
|
191574
191595
|
ydoc: t,
|
|
191575
191596
|
tabs: n,
|
|
@@ -191615,7 +191636,7 @@ const BXe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
191615
191636
|
onRegisterExportTrigger: r
|
|
191616
191637
|
}
|
|
191617
191638
|
) });
|
|
191618
|
-
},
|
|
191639
|
+
}, WXe = ({ onFocusMode: e } = {}) => {
|
|
191619
191640
|
const [t, n] = Me(!1), r = or("(max-width: 1024px)");
|
|
191620
191641
|
_e(() => {
|
|
191621
191642
|
const i = (s) => {
|
|
@@ -191629,7 +191650,7 @@ const BXe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
191629
191650
|
n((i) => (e == null || e(!i), !i));
|
|
191630
191651
|
};
|
|
191631
191652
|
return { isFocusMode: t, toggleFocusMode: o };
|
|
191632
|
-
},
|
|
191653
|
+
}, qXe = ({
|
|
191633
191654
|
dropdownOpen: e,
|
|
191634
191655
|
setDropdownOpen: t,
|
|
191635
191656
|
zoomLevel: n,
|
|
@@ -191705,7 +191726,7 @@ const BXe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
191705
191726
|
}
|
|
191706
191727
|
) })
|
|
191707
191728
|
] });
|
|
191708
|
-
},
|
|
191729
|
+
}, HYe = lr(
|
|
191709
191730
|
({
|
|
191710
191731
|
isPreviewMode: e = !1,
|
|
191711
191732
|
viewerMode: t,
|
|
@@ -191798,7 +191819,7 @@ const BXe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
191798
191819
|
...Lt
|
|
191799
191820
|
}, Ie) => {
|
|
191800
191821
|
var M_;
|
|
191801
|
-
const { isFocusMode: $e, toggleFocusMode: Ze } =
|
|
191822
|
+
const { isFocusMode: $e, toggleFocusMode: Ze } = WXe({
|
|
191802
191823
|
onFocusMode: (ft) => {
|
|
191803
191824
|
re && (se == null || se(!1)), U == null || U(ft);
|
|
191804
191825
|
}
|
|
@@ -192049,7 +192070,7 @@ const BXe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
192049
192070
|
) || (ft.preventDefault(), yt.commands.focus("end", { scrollIntoView: !1 }));
|
|
192050
192071
|
}, Kte = () => /* @__PURE__ */ x.jsx(Yh, { children: /* @__PURE__ */ x.jsxs(x.Fragment, { children: [
|
|
192051
192072
|
$e && /* @__PURE__ */ x.jsx(
|
|
192052
|
-
|
|
192073
|
+
qXe,
|
|
192053
192074
|
{
|
|
192054
192075
|
dropdownOpen: eu,
|
|
192055
192076
|
setDropdownOpen: _f,
|
|
@@ -192107,7 +192128,7 @@ const BXe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
192107
192128
|
}
|
|
192108
192129
|
),
|
|
192109
192130
|
e && yt && /* @__PURE__ */ x.jsx(
|
|
192110
|
-
|
|
192131
|
+
HXe,
|
|
192111
192132
|
{
|
|
192112
192133
|
editor: yt,
|
|
192113
192134
|
ydoc: pp,
|
|
@@ -192318,7 +192339,7 @@ const BXe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
192318
192339
|
isCollabDocOwner: r != null && r.enabled ? r.connection.isOwner : !0
|
|
192319
192340
|
}
|
|
192320
192341
|
),
|
|
192321
|
-
/* @__PURE__ */ x.jsx(
|
|
192342
|
+
/* @__PURE__ */ x.jsx($Xe, { editor: yt })
|
|
192322
192343
|
] }),
|
|
192323
192344
|
yt && /* @__PURE__ */ x.jsx(
|
|
192324
192345
|
_3e,
|
|
@@ -192451,7 +192472,7 @@ const BXe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
192451
192472
|
}
|
|
192452
192473
|
),
|
|
192453
192474
|
yt && !$e && /* @__PURE__ */ x.jsx("div", { className: "comment-floating-slot absolute left-full top-0 ml-[12px] overflow-visible", children: /* @__PURE__ */ x.jsx(
|
|
192454
|
-
|
|
192475
|
+
yXe,
|
|
192455
192476
|
{
|
|
192456
192477
|
editor: yt,
|
|
192457
192478
|
editorWrapperRef: nt,
|
|
@@ -192642,7 +192663,7 @@ const BXe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
192642
192663
|
}
|
|
192643
192664
|
);
|
|
192644
192665
|
}
|
|
192645
|
-
),
|
|
192666
|
+
), VXe = lr(
|
|
192646
192667
|
({
|
|
192647
192668
|
isPreviewMode: e = !1,
|
|
192648
192669
|
initialContent: t,
|
|
@@ -192878,13 +192899,13 @@ const BXe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
192878
192899
|
)
|
|
192879
192900
|
] });
|
|
192880
192901
|
}
|
|
192881
|
-
),
|
|
192902
|
+
), WYe = lr(
|
|
192882
192903
|
(e, t) => {
|
|
192883
192904
|
var i, s;
|
|
192884
192905
|
const n = !!((i = e.versionHistoryState) != null && i.enabled), r = ((s = e.versionHistoryState) == null ? void 0 : s.versionId) || "default", o = n ? r : "default";
|
|
192885
|
-
return /* @__PURE__ */ x.jsx(
|
|
192906
|
+
return /* @__PURE__ */ x.jsx(VXe, { ...e, ref: t }, o);
|
|
192886
192907
|
}
|
|
192887
|
-
),
|
|
192908
|
+
), KXe = (e) => {
|
|
192888
192909
|
const t = () => {
|
|
192889
192910
|
const p = new hs(), h = () => {
|
|
192890
192911
|
var b;
|
|
@@ -193022,14 +193043,14 @@ const BXe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
193022
193043
|
getYjsContentFromMarkdown: c,
|
|
193023
193044
|
getYjsContentFromDocx: d
|
|
193024
193045
|
};
|
|
193025
|
-
},
|
|
193046
|
+
}, GXe = [
|
|
193026
193047
|
"pdf",
|
|
193027
193048
|
"md",
|
|
193028
193049
|
"html",
|
|
193029
193050
|
"txt",
|
|
193030
193051
|
"odt"
|
|
193031
|
-
],
|
|
193032
|
-
const t = je(null), n = je(!1), [r, o] = Me(null), [i, s] = Me(!1), a =
|
|
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(
|
|
193033
193054
|
(_, O) => {
|
|
193034
193055
|
_ && !_.isDestroyed && _.destroy(), O && !O.isDestroyed && O.destroy();
|
|
193035
193056
|
},
|
|
@@ -193188,7 +193209,7 @@ const BXe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
193188
193209
|
tabs: M,
|
|
193189
193210
|
activeTabId: N,
|
|
193190
193211
|
exportName: B,
|
|
193191
|
-
initialFormat:
|
|
193212
|
+
initialFormat: XXe(_.initialFormat) ? _.initialFormat : "pdf"
|
|
193192
193213
|
};
|
|
193193
193214
|
d(L), s(!0);
|
|
193194
193215
|
} catch (M) {
|
|
@@ -193241,18 +193262,18 @@ const BXe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
193241
193262
|
exportModalProps: E
|
|
193242
193263
|
};
|
|
193243
193264
|
}, E_ = { type: "doc", content: [] };
|
|
193244
|
-
function
|
|
193265
|
+
function YXe(e) {
|
|
193245
193266
|
return e && typeof e == "object" && e.type === "doc" && Array.isArray(e.content) ? e : E_;
|
|
193246
193267
|
}
|
|
193247
193268
|
function qw(e, t) {
|
|
193248
193269
|
try {
|
|
193249
193270
|
const n = N3e(e, t);
|
|
193250
|
-
return
|
|
193271
|
+
return YXe(n);
|
|
193251
193272
|
} catch {
|
|
193252
193273
|
return E_;
|
|
193253
193274
|
}
|
|
193254
193275
|
}
|
|
193255
|
-
function
|
|
193276
|
+
function VYe(e) {
|
|
193256
193277
|
var n;
|
|
193257
193278
|
const t = new hs();
|
|
193258
193279
|
try {
|
|
@@ -193296,13 +193317,13 @@ function qYe(e) {
|
|
|
193296
193317
|
}
|
|
193297
193318
|
}
|
|
193298
193319
|
export {
|
|
193299
|
-
|
|
193320
|
+
HYe as DdocEditor,
|
|
193300
193321
|
T3e as DdocExportModal,
|
|
193301
193322
|
Lx as Editor,
|
|
193302
|
-
|
|
193303
|
-
|
|
193323
|
+
WYe as PreviewDdocEditor,
|
|
193324
|
+
VYe as buildVersionDiffSnapshot,
|
|
193304
193325
|
e3 as handleContentPrint,
|
|
193305
193326
|
pD as mergeTabAwareYjsUpdates,
|
|
193306
|
-
|
|
193307
|
-
|
|
193327
|
+
qYe as useExportHeadlessEditorContent,
|
|
193328
|
+
KXe as useHeadlessEditor
|
|
193308
193329
|
};
|