@fileverse-dev/ddoc 3.0.45-patch-41 → 3.0.45-patch-43
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.
|
@@ -2,7 +2,7 @@ var nEe = Object.defineProperty;
|
|
|
2
2
|
var rEe = (e, t, n) => t in e ? nEe(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var ct = (e, t, n) => rEe(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
4
|
import * as W from "react";
|
|
5
|
-
import Ne, { createRef as bu, memo as $i, createContext as Mn, createElement as rt, useContext as Ft, version as QW, useRef as Ue, useState as
|
|
5
|
+
import Ne, { createRef as bu, memo as $i, createContext as Mn, createElement as rt, useContext as Ft, version as QW, useRef as Ue, useState as _e, useDebugValue as Ok, useEffect as Be, forwardRef as dn, useLayoutEffect as Gi, useCallback as Ie, useMemo as ot, useId as ym, Children as jse, isValidElement as Lse, useInsertionEffect as Rk, Fragment as G1, Suspense as oEe, Component as aO, useReducer as Nse, cloneElement as sO, useImperativeHandle as bm, useDeferredValue as iEe } from "react";
|
|
6
6
|
import * as V6 from "react-dom";
|
|
7
7
|
import lO, { flushSync as aEe, createPortal as vm, unstable_batchedUpdates as Iv } from "react-dom";
|
|
8
8
|
var tn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
@@ -14163,7 +14163,7 @@ var gLe = class extends Ne.Component {
|
|
|
14163
14163
|
};
|
|
14164
14164
|
function Pue(e) {
|
|
14165
14165
|
var t;
|
|
14166
|
-
const [n] =
|
|
14166
|
+
const [n] = _e(() => new bLe(e.editor)), r = UO.useSyncExternalStoreWithSelector(
|
|
14167
14167
|
n.subscribe,
|
|
14168
14168
|
n.getSnapshot,
|
|
14169
14169
|
n.getServerSnapshot,
|
|
@@ -14338,7 +14338,7 @@ var hG = process.env.NODE_ENV !== "production", WL = typeof window > "u", vLe =
|
|
|
14338
14338
|
function Uue(e = {}, t = []) {
|
|
14339
14339
|
const n = Ue(e);
|
|
14340
14340
|
n.current = e;
|
|
14341
|
-
const [r] =
|
|
14341
|
+
const [r] = _e(() => new xLe(n)), o = W6.useSyncExternalStore(
|
|
14342
14342
|
r.subscribe,
|
|
14343
14343
|
r.getEditor,
|
|
14344
14344
|
r.getServerSnapshot
|
|
@@ -49664,7 +49664,7 @@ function JTt({ children: e, isPresent: t }) {
|
|
|
49664
49664
|
}, [t]), A.jsx(XTt, { isPresent: t, childRef: r, sizeRef: o, children: W.cloneElement(e, { ref: r }) });
|
|
49665
49665
|
}
|
|
49666
49666
|
const QTt = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: o, presenceAffectsLayout: i, mode: a }) => {
|
|
49667
|
-
const s = cR(ejt), l = ym(), u =
|
|
49667
|
+
const s = cR(ejt), l = ym(), u = Ie((d) => {
|
|
49668
49668
|
s.set(d, !0);
|
|
49669
49669
|
for (const f of s.values())
|
|
49670
49670
|
if (!f)
|
|
@@ -49703,7 +49703,7 @@ function C1e(e = !0) {
|
|
|
49703
49703
|
Be(() => {
|
|
49704
49704
|
e && o(i);
|
|
49705
49705
|
}, [e]);
|
|
49706
|
-
const a =
|
|
49706
|
+
const a = Ie(() => e && r && r(i), [i, r, e]);
|
|
49707
49707
|
return !n && r ? [!1, a] : [!0];
|
|
49708
49708
|
}
|
|
49709
49709
|
const Yv = (e) => e.key || "";
|
|
@@ -49714,7 +49714,7 @@ function aZ(e) {
|
|
|
49714
49714
|
}), t;
|
|
49715
49715
|
}
|
|
49716
49716
|
const fR = typeof window < "u", D1e = fR ? Gi : Be, tjt = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presenceAffectsLayout: o = !0, mode: i = "sync", propagate: a = !1 }) => {
|
|
49717
|
-
const [s, l] = C1e(a), u = ot(() => aZ(e), [e]), c = a && !s ? [] : u.map(Yv), d = Ue(!0), f = Ue(u), h = cR(() => /* @__PURE__ */ new Map()), [p, g] =
|
|
49717
|
+
const [s, l] = C1e(a), u = ot(() => aZ(e), [e]), c = a && !s ? [] : u.map(Yv), d = Ue(!0), f = Ue(u), h = cR(() => /* @__PURE__ */ new Map()), [p, g] = _e(u), [m, y] = _e(u);
|
|
49718
49718
|
D1e(() => {
|
|
49719
49719
|
d.current = !1, f.current = u;
|
|
49720
49720
|
for (let x = 0; x < m.length; x++) {
|
|
@@ -49980,7 +49980,7 @@ function F2(e) {
|
|
|
49980
49980
|
return e && typeof e == "object" && Object.prototype.hasOwnProperty.call(e, "current");
|
|
49981
49981
|
}
|
|
49982
49982
|
function hjt(e, t, n) {
|
|
49983
|
-
return
|
|
49983
|
+
return Ie(
|
|
49984
49984
|
(r) => {
|
|
49985
49985
|
r && e.onMount && e.onMount(r), t && (r ? t.mount(r) : t.unmount()), n && (typeof n == "function" ? n(r) : F2(n) && (n.current = r));
|
|
49986
49986
|
},
|
|
@@ -54903,7 +54903,7 @@ const i0e = ({
|
|
|
54903
54903
|
onAddTag: n,
|
|
54904
54904
|
isPreviewMode: r
|
|
54905
54905
|
}) => {
|
|
54906
|
-
const [o, i] =
|
|
54906
|
+
const [o, i] = _e(""), [a, s] = _e(!1), l = Ue(null), u = (h) => {
|
|
54907
54907
|
i(h), s(!0);
|
|
54908
54908
|
}, c = (h) => {
|
|
54909
54909
|
const p = e.find(
|
|
@@ -56744,7 +56744,7 @@ const jF = Ne.forwardRef(
|
|
|
56744
56744
|
contentType: a = "icon",
|
|
56745
56745
|
...s
|
|
56746
56746
|
}, l) => {
|
|
56747
|
-
const [u, c] =
|
|
56747
|
+
const [u, c] = _e(r), d = (f) => {
|
|
56748
56748
|
!i && c(f), !i && n(f);
|
|
56749
56749
|
};
|
|
56750
56750
|
return /* @__PURE__ */ A.jsx(
|
|
@@ -57265,7 +57265,7 @@ function _E(e, t) {
|
|
|
57265
57265
|
return typeof e == "function" ? e(t) : e && (e.current = t), e;
|
|
57266
57266
|
}
|
|
57267
57267
|
function PBt(e, t) {
|
|
57268
|
-
var n =
|
|
57268
|
+
var n = _e(function() {
|
|
57269
57269
|
return {
|
|
57270
57270
|
// value
|
|
57271
57271
|
value: e,
|
|
@@ -60015,7 +60015,7 @@ const ix = {
|
|
|
60015
60015
|
isAnimated: i = !1,
|
|
60016
60016
|
...a
|
|
60017
60017
|
}, s) => {
|
|
60018
|
-
const [l, u] =
|
|
60018
|
+
const [l, u] = _e(e), [c, d] = _e(
|
|
60019
60019
|
Object.keys(ix).findIndex(
|
|
60020
60020
|
(h) => ix[h] === e
|
|
60021
60021
|
)
|
|
@@ -61552,7 +61552,7 @@ function bzt(e, {
|
|
|
61552
61552
|
defaultValue: t = !1,
|
|
61553
61553
|
initializeWithValue: n = !0
|
|
61554
61554
|
} = {}) {
|
|
61555
|
-
const r = (s) => yzt ? t : window.matchMedia(s).matches, [o, i] =
|
|
61555
|
+
const r = (s) => yzt ? t : window.matchMedia(s).matches, [o, i] = _e(() => n ? r(e) : t);
|
|
61556
61556
|
function a() {
|
|
61557
61557
|
i(r(e));
|
|
61558
61558
|
}
|
|
@@ -61901,7 +61901,7 @@ dn(
|
|
|
61901
61901
|
)
|
|
61902
61902
|
);
|
|
61903
61903
|
const Dzt = ({ content: e }) => {
|
|
61904
|
-
const [t, n] =
|
|
61904
|
+
const [t, n] = _e(0), r = Ue(null);
|
|
61905
61905
|
return Be(() => {
|
|
61906
61906
|
e && r.current ? n(r.current.scrollHeight) : n(0);
|
|
61907
61907
|
}, [e]), /* @__PURE__ */ A.jsx(
|
|
@@ -62309,12 +62309,12 @@ const Ur = ({
|
|
|
62309
62309
|
onClose: o,
|
|
62310
62310
|
...i
|
|
62311
62311
|
}) => {
|
|
62312
|
-
const [a, s] =
|
|
62312
|
+
const [a, s] = _e(!1), l = Ie(
|
|
62313
62313
|
(d) => {
|
|
62314
62314
|
n || (s((f) => !f), Ne.isValidElement(t) && t.props.onClick && t.props.onClick(d));
|
|
62315
62315
|
},
|
|
62316
62316
|
[n, t]
|
|
62317
|
-
), u =
|
|
62317
|
+
), u = Ie(
|
|
62318
62318
|
(d) => {
|
|
62319
62319
|
const f = d.target;
|
|
62320
62320
|
!f.closest(".popover-trigger") && !f.closest(".popover-content") && (n || s(!1), o == null || o());
|
|
@@ -62889,7 +62889,7 @@ function Kpe(e) {
|
|
|
62889
62889
|
}
|
|
62890
62890
|
function WK(e, t) {
|
|
62891
62891
|
t === void 0 && (t = 0);
|
|
62892
|
-
var n =
|
|
62892
|
+
var n = _e(e), r = n[0], o = n[1], i = Ue(null);
|
|
62893
62893
|
function a(s) {
|
|
62894
62894
|
return new Promise(function(l) {
|
|
62895
62895
|
var u;
|
|
@@ -62955,7 +62955,7 @@ var Ng;
|
|
|
62955
62955
|
e.SEARCH = "SEARCH", e.PREVIEW = "PREVIEW";
|
|
62956
62956
|
})(Ng || (Ng = {}));
|
|
62957
62957
|
function rUt(e) {
|
|
62958
|
-
var t = e.children, n = Ype(), r = UUt(), o = JUt(), i = Ue(Xy), a = Ue(!1), s = Ue(!1), l = Ue(n), u = WK(Date.now(), 200), c = WK("", 100), d =
|
|
62958
|
+
var t = e.children, n = Ype(), r = UUt(), o = JUt(), i = Ue(Xy), a = Ue(!1), s = Ue(!1), l = Ue(n), u = WK(Date.now(), 200), c = WK("", 100), d = _e(!1), f = _e(r), h = _e(null), p = _e(/* @__PURE__ */ new Set()), g = _e(null), m = _e(o), y = _e(!1), b = y[0], v = y[1], x = _e([]);
|
|
62959
62959
|
return nUt(v), rt(ll.Provider, {
|
|
62960
62960
|
value: {
|
|
62961
62961
|
activeCategoryState: h,
|
|
@@ -80110,7 +80110,7 @@ function OUt(e) {
|
|
|
80110
80110
|
}, t);
|
|
80111
80111
|
}
|
|
80112
80112
|
function RUt(e) {
|
|
80113
|
-
var t, n =
|
|
80113
|
+
var t, n = _e(function() {
|
|
80114
80114
|
return GK(e);
|
|
80115
80115
|
}), r = n[0], o = n[1];
|
|
80116
80116
|
return Be(function() {
|
|
@@ -80379,7 +80379,7 @@ function aHt(e, t) {
|
|
|
80379
80379
|
}
|
|
80380
80380
|
function sHt() {
|
|
80381
80381
|
var e = ps();
|
|
80382
|
-
return
|
|
80382
|
+
return Ie(function(t) {
|
|
80383
80383
|
requestAnimationFrame(function() {
|
|
80384
80384
|
e.current && (e.current.scrollTop = t);
|
|
80385
80385
|
});
|
|
@@ -80468,7 +80468,7 @@ function gHt(e) {
|
|
|
80468
80468
|
return f[c] ? f[c] : (t = f.at(0)) != null ? t : null;
|
|
80469
80469
|
}
|
|
80470
80470
|
function gp() {
|
|
80471
|
-
var e = Nm(), t = e[0], n = e[1], r = h5(), o = r[0], i = r[1], a =
|
|
80471
|
+
var e = Nm(), t = e[0], n = e[1], r = h5(), o = r[0], i = r[1], a = Ie(function() {
|
|
80472
80472
|
t && n(null), o && i(!1);
|
|
80473
80473
|
}, [t, o, n, i]);
|
|
80474
80474
|
return a;
|
|
@@ -80514,19 +80514,19 @@ function yHt() {
|
|
|
80514
80514
|
}
|
|
80515
80515
|
function mp() {
|
|
80516
80516
|
var e = K0();
|
|
80517
|
-
return
|
|
80517
|
+
return Ie(function() {
|
|
80518
80518
|
hs(e.current);
|
|
80519
80519
|
}, [e]);
|
|
80520
80520
|
}
|
|
80521
80521
|
function bHt() {
|
|
80522
80522
|
var e = CP();
|
|
80523
|
-
return
|
|
80523
|
+
return Ie(function() {
|
|
80524
80524
|
e.current && b2e(e.current);
|
|
80525
80525
|
}, [e]);
|
|
80526
80526
|
}
|
|
80527
80527
|
function M2e() {
|
|
80528
80528
|
var e = DP();
|
|
80529
|
-
return
|
|
80529
|
+
return Ie(function() {
|
|
80530
80530
|
e.current && b2e(e.current);
|
|
80531
80531
|
}, [e]);
|
|
80532
80532
|
}
|
|
@@ -80827,13 +80827,13 @@ function NHt() {
|
|
|
80827
80827
|
}
|
|
80828
80828
|
function T2e() {
|
|
80829
80829
|
var e = M2e(), t = tC(), n = ps();
|
|
80830
|
-
return
|
|
80830
|
+
return Ie(function() {
|
|
80831
80831
|
return t ? oC(n.current) : e();
|
|
80832
80832
|
}, [n, e, t]);
|
|
80833
80833
|
}
|
|
80834
80834
|
function _Ht() {
|
|
80835
80835
|
var e = mp(), t = M2e(), n = tC();
|
|
80836
|
-
return
|
|
80836
|
+
return Ie(function() {
|
|
80837
80837
|
return n ? e() : t();
|
|
80838
80838
|
}, [e, n, t]);
|
|
80839
80839
|
}
|
|
@@ -81229,7 +81229,7 @@ function W2e(e) {
|
|
|
81229
81229
|
return e.imgUrl !== void 0;
|
|
81230
81230
|
}
|
|
81231
81231
|
function $2e(e, t) {
|
|
81232
|
-
var n = Ue(), r = A2e(), o = oUt(), i = Nm(), a = i[1], s = gp(), l = xP(), u = l[0], c = WUt(t), d = Jpe(), f = d[1], h = Bm(), p = Im(), g =
|
|
81232
|
+
var n = Ue(), r = A2e(), o = oUt(), i = Nm(), a = i[1], s = gp(), l = xP(), u = l[0], c = WUt(t), d = Jpe(), f = d[1], h = Bm(), p = Im(), g = Ie(function(b) {
|
|
81233
81233
|
if (!o.current) {
|
|
81234
81234
|
s();
|
|
81235
81235
|
var v = nY(b), x = v[0], w = v[1];
|
|
@@ -81238,14 +81238,14 @@ function $2e(e, t) {
|
|
|
81238
81238
|
f(), CUt(x, F), c(XHt(x, F, p, h), b);
|
|
81239
81239
|
}
|
|
81240
81240
|
}
|
|
81241
|
-
}, [u, s, o, c, f, h, p]), m =
|
|
81241
|
+
}, [u, s, o, c, f, h, p]), m = Ie(function(b) {
|
|
81242
81242
|
var v;
|
|
81243
81243
|
n.current && clearTimeout(n.current);
|
|
81244
81244
|
var x = nY(b), w = x[0];
|
|
81245
81245
|
!w || !_m(w) || (n.current = (v = window) == null ? void 0 : v.setTimeout(function() {
|
|
81246
81246
|
o.current = !0, n.current = void 0, s(), r(b.target), a(w);
|
|
81247
81247
|
}, 500));
|
|
81248
|
-
}, [o, s, r, a]), y =
|
|
81248
|
+
}, [o, s, r, a]), y = Ie(function() {
|
|
81249
81249
|
n.current ? (clearTimeout(n.current), n.current = void 0) : o.current && requestAnimationFrame(function() {
|
|
81250
81250
|
o.current = !1;
|
|
81251
81251
|
});
|
|
@@ -81598,7 +81598,7 @@ var oY = /* @__PURE__ */ Fr.create({
|
|
|
81598
81598
|
}
|
|
81599
81599
|
});
|
|
81600
81600
|
function lqt(e) {
|
|
81601
|
-
var t = gp(), n =
|
|
81601
|
+
var t = gp(), n = _e(0), r = n[0], o = n[1];
|
|
81602
81602
|
return Be(function() {
|
|
81603
81603
|
var i = e.current;
|
|
81604
81604
|
if (!i)
|
|
@@ -81630,7 +81630,7 @@ function cqt(e, t) {
|
|
|
81630
81630
|
}
|
|
81631
81631
|
var dqt = 32;
|
|
81632
81632
|
function fqt(e) {
|
|
81633
|
-
var t = x2e(), n = pp(), r = n[0], o = Om(), i = Ue(), a = wP(), s = a[0], l =
|
|
81633
|
+
var t = x2e(), n = pp(), r = n[0], o = Om(), i = Ue(), a = wP(), s = a[0], l = _e(), u = l[0], c = l[1], d = Ie(function() {
|
|
81634
81634
|
var f, h = t.current;
|
|
81635
81635
|
if (h) {
|
|
81636
81636
|
var p = h.querySelector(ob), g = p == null ? void 0 : p.clientHeight, m = (f = g ?? i.current) != null ? f : dqt;
|
|
@@ -81767,7 +81767,7 @@ var ZE = /* @__PURE__ */ Fr.create({
|
|
|
81767
81767
|
}
|
|
81768
81768
|
});
|
|
81769
81769
|
function mqt(e) {
|
|
81770
|
-
var t = e.scrollTop, n = f2e(), r =
|
|
81770
|
+
var t = e.scrollTop, n = f2e(), r = _e({}), o = r[0], i = r[1], a = x2e(), s = MUt(), l = N2e(a.current), u = 0;
|
|
81771
81771
|
return rt("ul", {
|
|
81772
81772
|
className: Cn(bqt.emojiList),
|
|
81773
81773
|
ref: a
|
|
@@ -82218,7 +82218,7 @@ function Lqt() {
|
|
|
82218
82218
|
}, rt(Nqt, null), rt(Aqt, null), t ? rt(jqt, null) : null) : null;
|
|
82219
82219
|
}
|
|
82220
82220
|
function Nqt() {
|
|
82221
|
-
var e, t = h2e(), n =
|
|
82221
|
+
var e, t = h2e(), n = _e(null), r = n[0], o = n[1], i = Im(), a = Nm(), s = a[0], l = Bm();
|
|
82222
82222
|
Mqt(t.showPreview, o);
|
|
82223
82223
|
var u = _g((e = r == null ? void 0 : r.unified) != null ? e : r == null ? void 0 : r.originalUnified), c = u != null && r != null;
|
|
82224
82224
|
return rt(d, null);
|
|
@@ -82408,7 +82408,7 @@ var aY = {
|
|
|
82408
82408
|
".epr-auto-theme": /* @__PURE__ */ vr({}, sY)
|
|
82409
82409
|
}));
|
|
82410
82410
|
function Hqt() {
|
|
82411
|
-
var e =
|
|
82411
|
+
var e = _e(null), t = e[0], n = e[1], r = wP(), o = r[1], i = Bqt();
|
|
82412
82412
|
Iqt({
|
|
82413
82413
|
setActiveCategory: n,
|
|
82414
82414
|
setVisibleCategories: o
|
|
@@ -82662,7 +82662,7 @@ function Jqt(e) {
|
|
|
82662
82662
|
return rt(rHt, null, rt(Xzt, null), rt(OUt, Object.assign({}, e), rt(Qqt, null)));
|
|
82663
82663
|
}
|
|
82664
82664
|
function Qqt() {
|
|
82665
|
-
var e = pp(), t = e[0], n = c2e(), r =
|
|
82665
|
+
var e = pp(), t = e[0], n = c2e(), r = _e(!t), o = r[0], i = r[1], a = VUt();
|
|
82666
82666
|
return Be(function() {
|
|
82667
82667
|
t && !n || o || i(!0);
|
|
82668
82668
|
}, [o, n, t]), a ? rt(zHt, null, rt(sqt, null), rt(eVt, {
|
|
@@ -82705,7 +82705,7 @@ function rVt(e) {
|
|
|
82705
82705
|
}
|
|
82706
82706
|
dn(
|
|
82707
82707
|
({ handleEmojiClick: e, handleAvatarInput: t, onRemove: n, className: r, ...o }, i) => {
|
|
82708
|
-
const [a, s] =
|
|
82708
|
+
const [a, s] = _e("emojiPicker"), l = Ue(null), u = () => {
|
|
82709
82709
|
l.current && l.current.click();
|
|
82710
82710
|
};
|
|
82711
82711
|
return /* @__PURE__ */ A.jsx("div", { ref: i, className: r, ...o, children: /* @__PURE__ */ A.jsxs(
|
|
@@ -85103,7 +85103,7 @@ function v$t(e) {
|
|
|
85103
85103
|
}) });
|
|
85104
85104
|
}
|
|
85105
85105
|
function x$t(e, t) {
|
|
85106
|
-
var n =
|
|
85106
|
+
var n = _e(e), r = n[0], o = n[1], i = t === void 0 ? r : t;
|
|
85107
85107
|
return [i, o];
|
|
85108
85108
|
}
|
|
85109
85109
|
function w$t(e) {
|
|
@@ -85505,7 +85505,7 @@ function Mge(e, t) {
|
|
|
85505
85505
|
}
|
|
85506
85506
|
var Ege = Mn(void 0);
|
|
85507
85507
|
function iGt(e) {
|
|
85508
|
-
var t = w5(), n = Dge(), r =
|
|
85508
|
+
var t = w5(), n = Dge(), r = _e(), o = r[0], i = r[1], a = _e(), s = a[0], l = a[1], u = rGt(t.displayMonths, n), c = o ?? (s && t.isDateDisplayed(s)) ? s : u, d = function() {
|
|
85509
85509
|
l(o), i(void 0);
|
|
85510
85510
|
}, f = function(m) {
|
|
85511
85511
|
i(m);
|
|
@@ -85797,7 +85797,7 @@ function wY() {
|
|
|
85797
85797
|
return "react-day-picker-".concat(++kGt);
|
|
85798
85798
|
}
|
|
85799
85799
|
function FGt(e) {
|
|
85800
|
-
var t, n = e ?? (aA ? wY() : null), r =
|
|
85800
|
+
var t, n = e ?? (aA ? wY() : null), r = _e(n), o = r[0], i = r[1];
|
|
85801
85801
|
return wGt(function() {
|
|
85802
85802
|
o === null && i(wY());
|
|
85803
85803
|
}, []), Be(function() {
|
|
@@ -85815,7 +85815,7 @@ function DGt(e) {
|
|
|
85815
85815
|
return A.jsx("div", { className: n.months, style: r.months, children: e.children });
|
|
85816
85816
|
}
|
|
85817
85817
|
function MGt(e) {
|
|
85818
|
-
var t, n, r = e.initialProps, o = fr(), i = GP(), a = w5(), s =
|
|
85818
|
+
var t, n, r = e.initialProps, o = fr(), i = GP(), a = w5(), s = _e(!1), l = s[0], u = s[1];
|
|
85819
85819
|
Be(function() {
|
|
85820
85820
|
o.initialFocus && i.focusTarget && (l || (i.focus(i.focusTarget), u(!0)));
|
|
85821
85821
|
}, [
|
|
@@ -86202,13 +86202,13 @@ _ge.displayName = "TimePicker";
|
|
|
86202
86202
|
const UGt = ({
|
|
86203
86203
|
delay: e = 2e3
|
|
86204
86204
|
}) => {
|
|
86205
|
-
const [t, n] =
|
|
86205
|
+
const [t, n] = _e(!1), [r, o] = _e(!1), i = Ue(null), a = Ie(() => {
|
|
86206
86206
|
i.current && clearTimeout(i.current), i.current = setTimeout(() => {
|
|
86207
86207
|
n(!0), o(!0);
|
|
86208
86208
|
}, e);
|
|
86209
|
-
}, [e]), s =
|
|
86209
|
+
}, [e]), s = Ie(() => {
|
|
86210
86210
|
r || n(!1), i.current && clearTimeout(i.current), o(!1);
|
|
86211
|
-
}, [r]), l =
|
|
86211
|
+
}, [r]), l = Ie(() => n(!0), []), u = Ie(() => n(!1), []), c = Ie(() => a(), [a]), d = Ie(() => s(), [s]);
|
|
86212
86212
|
return {
|
|
86213
86213
|
onMouseEnter: l,
|
|
86214
86214
|
onMouseLeave: u,
|
|
@@ -86219,7 +86219,7 @@ const UGt = ({
|
|
|
86219
86219
|
};
|
|
86220
86220
|
var ut = /* @__PURE__ */ ((e) => (e[e.NONE = 0] = "NONE", e[e.HEADING = 1] = "HEADING", e[e.TEXT_COLOR = 2] = "TEXT_COLOR", e[e.HIGHLIGHT = 3] = "HIGHLIGHT", e[e.LINK = 4] = "LINK", e[e.FONT_FAMILY = 5] = "FONT_FAMILY", e[e.ALIGNMENT = 6] = "ALIGNMENT", e[e.LIST = 7] = "LIST", e[e.TEXT_FORMATING = 8] = "TEXT_FORMATING", e[e.TEXT_COLOR_PICKER = 9] = "TEXT_COLOR_PICKER", e[e.LINK_POPUP = 10] = "LINK_POPUP", e[e.SCRIPTS = 11] = "SCRIPTS", e[e.FONT_SIZE = 12] = "FONT_SIZE", e[e.LINE_HEIGHT = 13] = "LINE_HEIGHT", e))(ut || {});
|
|
86221
86221
|
function HGt(e) {
|
|
86222
|
-
const [t, n] =
|
|
86222
|
+
const [t, n] = _e(e), r = Ue(null), o = (i) => {
|
|
86223
86223
|
r && r.current && !r.current.contains(i.target) && n(
|
|
86224
86224
|
0
|
|
86225
86225
|
/* NONE */
|
|
@@ -87672,7 +87672,7 @@ function vw(e, t, n) {
|
|
|
87672
87672
|
}
|
|
87673
87673
|
vw.globalOptions = void 0;
|
|
87674
87674
|
function tz(e = {}, t = []) {
|
|
87675
|
-
const n = Ue(e), r = Ue(t), [o, i] =
|
|
87675
|
+
const n = Ue(e), r = Ue(t), [o, i] = _e(), [a, s] = _e(), l = Ie(() => {
|
|
87676
87676
|
o && o.reInit(n.current, r.current);
|
|
87677
87677
|
}, [o]);
|
|
87678
87678
|
return Be(() => {
|
|
@@ -87712,13 +87712,13 @@ const Hge = dn(
|
|
|
87712
87712
|
axis: e === "horizontal" ? "x" : "y"
|
|
87713
87713
|
},
|
|
87714
87714
|
r
|
|
87715
|
-
), [c, d] =
|
|
87715
|
+
), [c, d] = _e(!1), [f, h] = _e(!1), p = Ie((b) => {
|
|
87716
87716
|
b && (d(b.canScrollPrev()), h(b.canScrollNext()));
|
|
87717
|
-
}, []), g =
|
|
87717
|
+
}, []), g = Ie(() => {
|
|
87718
87718
|
u == null || u.scrollPrev();
|
|
87719
|
-
}, [u]), m =
|
|
87719
|
+
}, [u]), m = Ie(() => {
|
|
87720
87720
|
u == null || u.scrollNext();
|
|
87721
|
-
}, [u]), y =
|
|
87721
|
+
}, [u]), y = Ie(
|
|
87722
87722
|
(b) => {
|
|
87723
87723
|
b.key === "ArrowLeft" ? (b.preventDefault(), g()) : b.key === "ArrowRight" && (b.preventDefault(), m());
|
|
87724
87724
|
},
|
|
@@ -87798,14 +87798,14 @@ const e_ = dn(
|
|
|
87798
87798
|
);
|
|
87799
87799
|
e_.displayName = "CarouselItem";
|
|
87800
87800
|
const Vge = dn(({ index: e, className: t, ...n }, r) => {
|
|
87801
|
-
const { api: o } = F5(), [i, a] =
|
|
87801
|
+
const { api: o } = F5(), [i, a] = _e(0), [, s] = _e([]), l = Ie(
|
|
87802
87802
|
(f) => {
|
|
87803
87803
|
o && o.scrollTo(f);
|
|
87804
87804
|
},
|
|
87805
87805
|
[o]
|
|
87806
|
-
), u =
|
|
87806
|
+
), u = Ie((f) => {
|
|
87807
87807
|
f && s(f.scrollSnapList());
|
|
87808
|
-
}, []), c =
|
|
87808
|
+
}, []), c = Ie((f) => {
|
|
87809
87809
|
f && a(f.selectedScrollSnap());
|
|
87810
87810
|
}, []);
|
|
87811
87811
|
Be(() => {
|
|
@@ -87887,7 +87887,7 @@ function Br(e, {
|
|
|
87887
87887
|
defaultValue: t = !1,
|
|
87888
87888
|
initializeWithValue: n = !0
|
|
87889
87889
|
} = {}) {
|
|
87890
|
-
const r = (s) => UZt ? t : window.matchMedia(s).matches, [o, i] =
|
|
87890
|
+
const r = (s) => UZt ? t : window.matchMedia(s).matches, [o, i] = _e(() => n ? r(e) : t);
|
|
87891
87891
|
function a() {
|
|
87892
87892
|
i(r(e));
|
|
87893
87893
|
}
|
|
@@ -94001,7 +94001,7 @@ async function SC(e, t) {
|
|
|
94001
94001
|
});
|
|
94002
94002
|
return oe === "0x" ? { data: void 0 } : { data: oe };
|
|
94003
94003
|
} catch (I) {
|
|
94004
|
-
const B = LJt(I), { offchainLookup: U, offchainLookupSignature: $ } = await import("./ccip-
|
|
94004
|
+
const B = LJt(I), { offchainLookup: U, offchainLookupSignature: $ } = await import("./ccip-CPG39HL4.mjs");
|
|
94005
94005
|
if (e.ccipRead !== !1 && (B == null ? void 0 : B.slice(0, 10)) === $ && x)
|
|
94006
94006
|
return { data: await U(e, { data: B, to: x }) };
|
|
94007
94007
|
throw _ && (B == null ? void 0 : B.slice(0, 10)) === "0x101bb98d" ? new dXt({ factory: f }) : w3e(I, {
|
|
@@ -105502,12 +105502,12 @@ const w4e = Mn(void 0), Zon = ({
|
|
|
105502
105502
|
onComment: F,
|
|
105503
105503
|
setCommentDrawerOpen: C
|
|
105504
105504
|
}) => {
|
|
105505
|
-
const [D, T] =
|
|
105505
|
+
const [D, T] = _e(!0), [R, _] = _e(""), [S, L] = _e(""), [E, j] = _e(null), N = Ue(null), I = Ue(null), [B, U] = _e(""), [$, q] = _e(!1), [z, Y] = _e(!1), se = Ue(null), oe = Ue(null), X = Ue(null), ie = t.isActive("comment"), ne = t.getAttributes("comment").resolved, [te, P] = _e({
|
|
105506
105506
|
inlineCommentText: "",
|
|
105507
105507
|
handleClick: !1
|
|
105508
|
-
}), ee = localStorage.getItem("ensCache"), [re, fe] =
|
|
105508
|
+
}), ee = localStorage.getItem("ensCache"), [re, fe] = _e(
|
|
105509
105509
|
ee ? JSON.parse(ee) : {}
|
|
105510
|
-
), [O, ue] =
|
|
105510
|
+
), [O, ue] = _e([]), ce = Ie(
|
|
105511
105511
|
async (Oe, Xe) => {
|
|
105512
105512
|
if (O.includes(Oe)) {
|
|
105513
105513
|
Xe({
|
|
@@ -105565,10 +105565,10 @@ const w4e = Mn(void 0), Zon = ({
|
|
|
105565
105565
|
C5([se, oe, X], () => {
|
|
105566
105566
|
$ && (Y(!0), q(!1));
|
|
105567
105567
|
});
|
|
105568
|
-
const de =
|
|
105568
|
+
const de = Ie(() => {
|
|
105569
105569
|
const { state: Oe } = t, { from: Xe, to: Ge } = Oe.selection, Ve = Oe.doc.textBetween(Xe, Ge, " ");
|
|
105570
105570
|
ie ? G && U(G.selectedContent || "") : U(Ve), q(!0), w == null || w();
|
|
105571
|
-
}, [t, ie, G, w]), ke =
|
|
105571
|
+
}, [t, ie, G, w]), ke = Ie(
|
|
105572
105572
|
(Oe, Xe = "", Ge) => ({
|
|
105573
105573
|
id: `comment-${r0()}`,
|
|
105574
105574
|
tabId: l,
|
|
@@ -105580,7 +105580,7 @@ const w4e = Mn(void 0), Zon = ({
|
|
|
105580
105580
|
createdAt: /* @__PURE__ */ new Date()
|
|
105581
105581
|
}),
|
|
105582
105582
|
[l]
|
|
105583
|
-
), Me =
|
|
105583
|
+
), Me = Ie(
|
|
105584
105584
|
(Oe, Xe) => {
|
|
105585
105585
|
if (!t) return;
|
|
105586
105586
|
const { state: Ge } = t, { from: Ve, to: Ke } = Ge.selection, yt = Ge.doc.textBetween(Ve, Ke, " "), lt = ke(
|
|
@@ -105598,22 +105598,22 @@ const w4e = Mn(void 0), Zon = ({
|
|
|
105598
105598
|
u,
|
|
105599
105599
|
c
|
|
105600
105600
|
]
|
|
105601
|
-
), xe =
|
|
105601
|
+
), xe = Ie(
|
|
105602
105602
|
(Oe) => {
|
|
105603
105603
|
t.commands.resolveComment(Oe), h == null || h(Oe);
|
|
105604
105604
|
},
|
|
105605
105605
|
[t, h]
|
|
105606
|
-
), pe =
|
|
105606
|
+
), pe = Ie(
|
|
105607
105607
|
(Oe) => {
|
|
105608
105608
|
t.commands.unresolveComment(Oe), p == null || p(Oe);
|
|
105609
105609
|
},
|
|
105610
105610
|
[t, p]
|
|
105611
|
-
), ge =
|
|
105611
|
+
), ge = Ie(
|
|
105612
105612
|
(Oe) => {
|
|
105613
105613
|
t.commands.unsetComment(Oe), g == null || g(Oe);
|
|
105614
105614
|
},
|
|
105615
105615
|
[t, g]
|
|
105616
|
-
), be =
|
|
105616
|
+
), be = Ie(
|
|
105617
105617
|
(Oe, Xe, Ge) => {
|
|
105618
105618
|
if (!Xe.trim()) return;
|
|
105619
105619
|
const Ve = {
|
|
@@ -105628,7 +105628,7 @@ const w4e = Mn(void 0), Zon = ({
|
|
|
105628
105628
|
Ge == null || Ge(Oe, Ve);
|
|
105629
105629
|
},
|
|
105630
105630
|
[l, o]
|
|
105631
|
-
), H =
|
|
105631
|
+
), H = Ie(
|
|
105632
105632
|
(Oe) => {
|
|
105633
105633
|
var Ge, Ve;
|
|
105634
105634
|
if (!t || !((Ge = t.view) != null && Ge.dom) || !J.length) return;
|
|
@@ -105663,19 +105663,19 @@ const w4e = Mn(void 0), Zon = ({
|
|
|
105663
105663
|
}
|
|
105664
105664
|
},
|
|
105665
105665
|
[t, J, s]
|
|
105666
|
-
), K =
|
|
105666
|
+
), K = Ie(
|
|
105667
105667
|
(Oe) => {
|
|
105668
105668
|
const Xe = Oe.target.value;
|
|
105669
105669
|
_(Xe), Xe || (Oe.target.style.height = "40px");
|
|
105670
105670
|
},
|
|
105671
105671
|
[]
|
|
105672
|
-
), le =
|
|
105672
|
+
), le = Ie(
|
|
105673
105673
|
(Oe) => {
|
|
105674
105674
|
const Xe = Oe.target.value;
|
|
105675
105675
|
L(Xe), Xe || (Oe.target.style.height = "40px");
|
|
105676
105676
|
},
|
|
105677
105677
|
[]
|
|
105678
|
-
), me =
|
|
105678
|
+
), me = Ie(() => {
|
|
105679
105679
|
if (!S.trim() || !o) return;
|
|
105680
105680
|
const Oe = {
|
|
105681
105681
|
id: `comment-${r0()}`,
|
|
@@ -105701,21 +105701,21 @@ const w4e = Mn(void 0), Zon = ({
|
|
|
105701
105701
|
s,
|
|
105702
105702
|
F,
|
|
105703
105703
|
N
|
|
105704
|
-
]), we =
|
|
105704
|
+
]), we = Ie(
|
|
105705
105705
|
(Oe) => {
|
|
105706
105706
|
Oe.key === "Enter" && !Oe.shiftKey && (Oe.preventDefault(), me());
|
|
105707
105707
|
},
|
|
105708
105708
|
[me]
|
|
105709
|
-
), ve =
|
|
105709
|
+
), ve = Ie(() => {
|
|
105710
105710
|
!a || !R.trim() || (be(a, R, d), _(""));
|
|
105711
|
-
}, [a, R, be, d]), Se =
|
|
105711
|
+
}, [a, R, be, d]), Se = Ie(
|
|
105712
105712
|
(Oe) => {
|
|
105713
105713
|
Oe.key === "Enter" && !Oe.shiftKey && (Oe.preventDefault(), ve());
|
|
105714
105714
|
},
|
|
105715
105715
|
[ve]
|
|
105716
|
-
), Le =
|
|
105716
|
+
), Le = Ie(() => {
|
|
105717
105717
|
T((Oe) => !Oe);
|
|
105718
|
-
}, []), ye =
|
|
105718
|
+
}, []), ye = Ie(
|
|
105719
105719
|
(Oe, Xe) => {
|
|
105720
105720
|
Oe.currentTarget.style.height = "auto";
|
|
105721
105721
|
const Ge = Math.min(
|
|
@@ -105734,7 +105734,7 @@ const w4e = Mn(void 0), Zon = ({
|
|
|
105734
105734
|
), Pe = ot(
|
|
105735
105735
|
() => je.findIndex((Oe) => Oe.id === a),
|
|
105736
105736
|
[je, a]
|
|
105737
|
-
), We =
|
|
105737
|
+
), We = Ie(() => {
|
|
105738
105738
|
var Oe, Xe;
|
|
105739
105739
|
if ((Oe = t.view) != null && Oe.dom && Pe > 0) {
|
|
105740
105740
|
const Ge = je[Pe - 1], Ve = t.view.dom.querySelector(
|
|
@@ -105745,7 +105745,7 @@ const w4e = Mn(void 0), Zon = ({
|
|
|
105745
105745
|
t.commands.setTextSelection({ from: Ke, to: yt }), H(Ge.id || "");
|
|
105746
105746
|
}
|
|
105747
105747
|
}
|
|
105748
|
-
}, [Pe, je, t, H]), Ye =
|
|
105748
|
+
}, [Pe, je, t, H]), Ye = Ie(() => {
|
|
105749
105749
|
var Oe, Xe;
|
|
105750
105750
|
if ((Oe = t.view) != null && Oe.dom && Pe < je.length - 1) {
|
|
105751
105751
|
const Ge = je[Pe + 1], Ve = t.view.dom.querySelector(
|
|
@@ -113307,7 +113307,7 @@ const c9 = (e) => {
|
|
|
113307
113307
|
ref: f,
|
|
113308
113308
|
toolVisibility: h,
|
|
113309
113309
|
setToolVisibility: p
|
|
113310
|
-
} = HGt(ut.NONE), [g, m] =
|
|
113310
|
+
} = HGt(ut.NONE), [g, m] = _e(!1), [y, b] = _e(!1), [v, x] = _e(
|
|
113311
113311
|
Ocn
|
|
113312
113312
|
), { buttonRef: w } = _1();
|
|
113313
113313
|
Be(() => {
|
|
@@ -114023,7 +114023,7 @@ const c9 = (e) => {
|
|
|
114023
114023
|
setIsLinkPopupOpen: o,
|
|
114024
114024
|
onError: i
|
|
114025
114025
|
}) => {
|
|
114026
|
-
const [a, s] =
|
|
114026
|
+
const [a, s] = _e(t.getAttributes("link").href), l = Ie(() => {
|
|
114027
114027
|
if (a === "" || a === void 0) {
|
|
114028
114028
|
t.chain().focus().extendMarkRange("link").unsetLink().run();
|
|
114029
114029
|
return;
|
|
@@ -115123,7 +115123,7 @@ const c9 = (e) => {
|
|
|
115123
115123
|
stroke: "currentColor"
|
|
115124
115124
|
}
|
|
115125
115125
|
) }), Lbe = ({ username: e, createdAt: t }) => {
|
|
115126
|
-
const { getEnsStatus: n, ensCache: r } = _1(), [o, i] =
|
|
115126
|
+
const { getEnsStatus: n, ensCache: r } = _1(), [o, i] = _e({
|
|
115127
115127
|
name: e,
|
|
115128
115128
|
isEns: !1
|
|
115129
115129
|
});
|
|
@@ -115183,7 +115183,7 @@ const c9 = (e) => {
|
|
|
115183
115183
|
version: p,
|
|
115184
115184
|
emptyComment: g
|
|
115185
115185
|
}) => {
|
|
115186
|
-
const m = Ue(null), [y, b] =
|
|
115186
|
+
const m = Ue(null), [y, b] = _e(!1), [v, x] = _e(!1), w = Ue(null), { setOpenReplyId: F } = _1(), { getEnsStatus: C, ensCache: D } = _1(), [T, R] = _e({
|
|
115187
115187
|
name: e,
|
|
115188
115188
|
isEns: !1
|
|
115189
115189
|
});
|
|
@@ -115213,7 +115213,7 @@ const c9 = (e) => {
|
|
|
115213
115213
|
const N = m.current.closest('[role="dialog"]');
|
|
115214
115214
|
N && N.remove();
|
|
115215
115215
|
}
|
|
115216
|
-
}, E =
|
|
115216
|
+
}, E = Ie(() => {
|
|
115217
115217
|
if (!(o != null && o.length)) return null;
|
|
115218
115218
|
let j = o.sort(
|
|
115219
115219
|
(N, I) => new Date(N.createdAt || /* @__PURE__ */ new Date()).getTime() - new Date(I.createdAt || /* @__PURE__ */ new Date()).getTime()
|
|
@@ -115449,7 +115449,7 @@ const c9 = (e) => {
|
|
|
115449
115449
|
isDisabled: o,
|
|
115450
115450
|
isCommentOwner: i
|
|
115451
115451
|
}) => {
|
|
115452
|
-
const [a, s] =
|
|
115452
|
+
const [a, s] = _e(t), [l, u] = _e(""), [c, d] = _e(!0), [f, h] = _e(!!e), p = Ue(null), [g, m] = _e(!1), {
|
|
115453
115453
|
inlineCommentData: y,
|
|
115454
115454
|
setInlineCommentData: b,
|
|
115455
115455
|
addComment: v,
|
|
@@ -116073,12 +116073,12 @@ const Kcn = /* @__PURE__ */ U0(Zcn), Z3 = () => {
|
|
|
116073
116073
|
});
|
|
116074
116074
|
}), !h;
|
|
116075
116075
|
}, Ibe = (e) => {
|
|
116076
|
-
const t =
|
|
116076
|
+
const t = Ie(
|
|
116077
116077
|
(o) => {
|
|
116078
116078
|
e && e.chain().focus().setFontSize(o).run();
|
|
116079
116079
|
},
|
|
116080
116080
|
[e]
|
|
116081
|
-
), n =
|
|
116081
|
+
), n = Ie(
|
|
116082
116082
|
(o) => {
|
|
116083
116083
|
if (!e) return;
|
|
116084
116084
|
const { from: i, to: a } = e.state.selection;
|
|
@@ -116155,9 +116155,9 @@ const Kcn = /* @__PURE__ */ U0(Zcn), Z3 = () => {
|
|
|
116155
116155
|
setInitialReminderTitle: o,
|
|
116156
116156
|
type: i
|
|
116157
116157
|
}, a) => {
|
|
116158
|
-
const [s, l] =
|
|
116158
|
+
const [s, l] = _e(r || ""), [u, c] = _e(
|
|
116159
116159
|
new Date(Date.now() + 6 * 60 * 1e3)
|
|
116160
|
-
), [d, f] =
|
|
116160
|
+
), [d, f] = _e(""), h = Br("(max-width: 768px)"), [p, g] = _e(!0), [m, y] = _e(e), b = () => {
|
|
116161
116161
|
y(!1), t();
|
|
116162
116162
|
};
|
|
116163
116163
|
Be(() => {
|
|
@@ -116356,7 +116356,7 @@ const Kcn = /* @__PURE__ */ U0(Zcn), Z3 = () => {
|
|
|
116356
116356
|
onReminderCreate: t,
|
|
116357
116357
|
onError: n
|
|
116358
116358
|
}) => {
|
|
116359
|
-
const [r, o] =
|
|
116359
|
+
const [r, o] = _e(""), i = Ue(null);
|
|
116360
116360
|
return {
|
|
116361
116361
|
reminderRef: i,
|
|
116362
116362
|
handleReminderOnClose: () => {
|
|
@@ -116397,7 +116397,7 @@ const Kcn = /* @__PURE__ */ U0(Zcn), Z3 = () => {
|
|
|
116397
116397
|
isCollabDocOwner: h,
|
|
116398
116398
|
enableCollaboration: p,
|
|
116399
116399
|
fetchV1ImageFn: g
|
|
116400
|
-
} = e, [m, y] =
|
|
116400
|
+
} = e, [m, y] = _e(!1), b = Ibe(t), v = t ? b.currentSize : void 0, x = t ? b.currentLineHeight : void 0, w = t ? b.onSetFontSize : () => {
|
|
116401
116401
|
}, F = t ? b.onSetLineHeight : () => {
|
|
116402
116402
|
}, { isNativeMobile: C } = ed(), { toolRef: D, setToolVisibility: T, toolVisibility: R } = kU({
|
|
116403
116403
|
editor: t ?? null,
|
|
@@ -117124,16 +117124,16 @@ a1n.displayName = "Toolbar.Divider";
|
|
|
117124
117124
|
const s1n = {
|
|
117125
117125
|
Wrapper: Ube
|
|
117126
117126
|
}, l1n = ({ editor: e, appendTo: t }) => {
|
|
117127
|
-
const n =
|
|
117127
|
+
const n = Ie(() => i1n(e, "columns"), [e]), r = Ie(() => {
|
|
117128
117128
|
const l = !e.isEditable;
|
|
117129
117129
|
return e.isActive("columns") && !l;
|
|
117130
|
-
}, [e]), o =
|
|
117130
|
+
}, [e]), o = Ie(() => {
|
|
117131
117131
|
e.chain().focus().setLayout(Tf.AlignLeft).run();
|
|
117132
|
-
}, [e]), i =
|
|
117132
|
+
}, [e]), i = Ie(() => {
|
|
117133
117133
|
e.chain().focus().setLayout(Tf.AlignRight).run();
|
|
117134
|
-
}, [e]), a =
|
|
117134
|
+
}, [e]), a = Ie(() => {
|
|
117135
117135
|
e.chain().focus().setLayout(Tf.AlignCenter).run();
|
|
117136
|
-
}, [e]), s =
|
|
117136
|
+
}, [e]), s = Ie(() => {
|
|
117137
117137
|
e.chain().focus().deleteNode("columns").run();
|
|
117138
117138
|
}, [e]);
|
|
117139
117139
|
return /* @__PURE__ */ M.jsx(
|
|
@@ -117283,7 +117283,7 @@ function c1n({ children: e, isPresent: t }) {
|
|
|
117283
117283
|
}, [t]), M.jsx(u1n, { isPresent: t, childRef: r, sizeRef: o, children: W.cloneElement(e, { ref: r }) });
|
|
117284
117284
|
}
|
|
117285
117285
|
const d1n = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: o, presenceAffectsLayout: i, mode: a }) => {
|
|
117286
|
-
const s = EU(f1n), l = ym(), u =
|
|
117286
|
+
const s = EU(f1n), l = ym(), u = Ie((d) => {
|
|
117287
117287
|
s.set(d, !0);
|
|
117288
117288
|
for (const f of s.values())
|
|
117289
117289
|
if (!f)
|
|
@@ -117322,7 +117322,7 @@ function qbe(e = !0) {
|
|
|
117322
117322
|
Be(() => {
|
|
117323
117323
|
e && o(i);
|
|
117324
117324
|
}, [e]);
|
|
117325
|
-
const a =
|
|
117325
|
+
const a = Ie(() => e && r && r(i), [i, r, e]);
|
|
117326
117326
|
return !n && r ? [!1, a] : [!0];
|
|
117327
117327
|
}
|
|
117328
117328
|
const Mx = (e) => e.key || "";
|
|
@@ -117333,7 +117333,7 @@ function VJ(e) {
|
|
|
117333
117333
|
}), t;
|
|
117334
117334
|
}
|
|
117335
117335
|
const SU = typeof window < "u", Vbe = SU ? Gi : Be, Ym = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presenceAffectsLayout: o = !0, mode: i = "sync", propagate: a = !1 }) => {
|
|
117336
|
-
const [s, l] = qbe(a), u = ot(() => VJ(e), [e]), c = a && !s ? [] : u.map(Mx), d = Ue(!0), f = Ue(u), h = EU(() => /* @__PURE__ */ new Map()), [p, g] =
|
|
117336
|
+
const [s, l] = qbe(a), u = ot(() => VJ(e), [e]), c = a && !s ? [] : u.map(Mx), d = Ue(!0), f = Ue(u), h = EU(() => /* @__PURE__ */ new Map()), [p, g] = _e(u), [m, y] = _e(u);
|
|
117337
117337
|
Vbe(() => {
|
|
117338
117338
|
d.current = !1, f.current = u;
|
|
117339
117339
|
for (let x = 0; x < m.length; x++) {
|
|
@@ -117599,7 +117599,7 @@ function N2(e) {
|
|
|
117599
117599
|
return e && typeof e == "object" && Object.prototype.hasOwnProperty.call(e, "current");
|
|
117600
117600
|
}
|
|
117601
117601
|
function C1n(e, t, n) {
|
|
117602
|
-
return
|
|
117602
|
+
return Ie(
|
|
117603
117603
|
(r) => {
|
|
117604
117604
|
r && e.onMount && e.onMount(r), t && (r ? t.mount(r) : t.unmount()), n && (typeof n == "function" ? n(r) : N2(n) && (n.current = r));
|
|
117605
117605
|
},
|
|
@@ -122083,7 +122083,7 @@ const Nhn = (e, t) => IU(e) ? new Lhn(t) : new jhn(t, {
|
|
|
122083
122083
|
initialFormat: i,
|
|
122084
122084
|
initialTab: a
|
|
122085
122085
|
}) => {
|
|
122086
|
-
const [s, l] =
|
|
122086
|
+
const [s, l] = _e(i || "pdf"), [u, c] = _e(a || "all");
|
|
122087
122087
|
Be(() => {
|
|
122088
122088
|
e && (i ? l(i) : r.length > 0 && l(r[0].id), a ? c(a) : o.length > 0 && c(o[0].id));
|
|
122089
122089
|
}, [e, i, a, r, o]);
|
|
@@ -122424,7 +122424,7 @@ const rpn = ({
|
|
|
122424
122424
|
ydoc: n,
|
|
122425
122425
|
exportOptions: r
|
|
122426
122426
|
}) => {
|
|
122427
|
-
const o =
|
|
122427
|
+
const o = Ie((g) => g.includes("(.pdf)") ? "pdf" : g.includes("(.md)") ? "md" : g.includes("(.html)") ? "html" : g.includes("(.txt)") ? "txt" : "", []), i = ot(
|
|
122428
122428
|
() => r.filter((g) => g !== null).reduce((g, m) => {
|
|
122429
122429
|
const y = o(m.title);
|
|
122430
122430
|
return y && (g[y] = m), g;
|
|
@@ -122436,26 +122436,26 @@ const rpn = ({
|
|
|
122436
122436
|
label: m.title
|
|
122437
122437
|
})),
|
|
122438
122438
|
[i]
|
|
122439
|
-
), s =
|
|
122439
|
+
), s = Ie(() => {
|
|
122440
122440
|
if (!e) return "Untitled";
|
|
122441
122441
|
const g = e.getJSON();
|
|
122442
122442
|
return c9(
|
|
122443
122443
|
g
|
|
122444
122444
|
) || "Untitled";
|
|
122445
|
-
}, [e]), l =
|
|
122445
|
+
}, [e]), l = Ie(
|
|
122446
122446
|
async (g) => {
|
|
122447
122447
|
const m = i[g];
|
|
122448
122448
|
!m || m.disabled || m.onClick();
|
|
122449
122449
|
},
|
|
122450
122450
|
[i]
|
|
122451
|
-
), u =
|
|
122451
|
+
), u = Ie(
|
|
122452
122452
|
(g) => {
|
|
122453
122453
|
if (!e || !n) return null;
|
|
122454
122454
|
const m = n.getXmlFragment(g), y = npn(m);
|
|
122455
122455
|
return $5(e, y);
|
|
122456
122456
|
},
|
|
122457
122457
|
[e, n]
|
|
122458
|
-
), c =
|
|
122458
|
+
), c = Ie(async () => {
|
|
122459
122459
|
if (!e || !n || t.length === 0) return;
|
|
122460
122460
|
const g = [];
|
|
122461
122461
|
try {
|
|
@@ -122473,7 +122473,7 @@ const rpn = ({
|
|
|
122473
122473
|
} finally {
|
|
122474
122474
|
g.forEach((m) => m.destroy());
|
|
122475
122475
|
}
|
|
122476
|
-
}, [u, e, t, n]), d =
|
|
122476
|
+
}, [u, e, t, n]), d = Ie(async () => {
|
|
122477
122477
|
if (!e || !n || t.length === 0) return;
|
|
122478
122478
|
const g = s(), m = [];
|
|
122479
122479
|
try {
|
|
@@ -122499,7 +122499,7 @@ const rpn = ({
|
|
|
122499
122499
|
} finally {
|
|
122500
122500
|
m.forEach((y) => y.destroy());
|
|
122501
122501
|
}
|
|
122502
|
-
}, [u, e, s, t, n]), f =
|
|
122502
|
+
}, [u, e, s, t, n]), f = Ie(async () => {
|
|
122503
122503
|
if (!e || !n || t.length === 0) return;
|
|
122504
122504
|
const g = s(), m = [];
|
|
122505
122505
|
try {
|
|
@@ -122519,7 +122519,7 @@ const rpn = ({
|
|
|
122519
122519
|
} finally {
|
|
122520
122520
|
m.forEach((y) => y.destroy());
|
|
122521
122521
|
}
|
|
122522
|
-
}, [u, e, s, t, n]), h =
|
|
122522
|
+
}, [u, e, s, t, n]), h = Ie(async () => {
|
|
122523
122523
|
if (!e || !n || t.length === 0) return;
|
|
122524
122524
|
const g = s(), m = [];
|
|
122525
122525
|
try {
|
|
@@ -122544,7 +122544,7 @@ const rpn = ({
|
|
|
122544
122544
|
} finally {
|
|
122545
122545
|
m.forEach((y) => y.destroy());
|
|
122546
122546
|
}
|
|
122547
|
-
}, [u, e, s, t, n]), p =
|
|
122547
|
+
}, [u, e, s, t, n]), p = Ie(
|
|
122548
122548
|
({ format: g, tab: m }) => {
|
|
122549
122549
|
(async () => {
|
|
122550
122550
|
if (!e) return;
|
|
@@ -122594,9 +122594,9 @@ const rpn = ({
|
|
|
122594
122594
|
tabs: a,
|
|
122595
122595
|
ydoc: s
|
|
122596
122596
|
}) => {
|
|
122597
|
-
const [l, u] =
|
|
122597
|
+
const [l, u] = _e(!1), [c, d] = _e(!1);
|
|
122598
122598
|
let f, h;
|
|
122599
|
-
const [p, g] =
|
|
122599
|
+
const [p, g] = _e(!1), [m, y] = _e("pdf"), { getOptionFormat: b, formatSelectOptions: v, handleExport: x } = rpn({
|
|
122600
122600
|
editor: i,
|
|
122601
122601
|
tabs: a,
|
|
122602
122602
|
ydoc: s,
|
|
@@ -122848,7 +122848,7 @@ const rpn = ({
|
|
|
122848
122848
|
{ title: "100%", value: "1" },
|
|
122849
122849
|
{ title: "150%", value: "1.5" },
|
|
122850
122850
|
{ title: "200%", value: "2" }
|
|
122851
|
-
], [z, Y] =
|
|
122851
|
+
], [z, Y] = _e(!1), [se, oe] = _e("Default"), X = kbe.find((te) => te.value === se);
|
|
122852
122852
|
Be(() => {
|
|
122853
122853
|
if (!e) return;
|
|
122854
122854
|
const te = () => oe(ipn(e));
|
|
@@ -128492,7 +128492,7 @@ const Ign = n2n.extend({
|
|
|
128492
128492
|
height: s,
|
|
128493
128493
|
fetchV1ImageFn: l
|
|
128494
128494
|
}, u) => {
|
|
128495
|
-
const [c, d] =
|
|
128495
|
+
const [c, d] = _e("");
|
|
128496
128496
|
return Be(() => {
|
|
128497
128497
|
const f = e && t && n && r;
|
|
128498
128498
|
let h = !0, p = null;
|
|
@@ -128543,7 +128543,7 @@ const Ign = n2n.extend({
|
|
|
128543
128543
|
mimeType: u,
|
|
128544
128544
|
authTag: c
|
|
128545
128545
|
}, d) => {
|
|
128546
|
-
const [f, h] =
|
|
128546
|
+
const [f, h] = _e("");
|
|
128547
128547
|
return Be(() => {
|
|
128548
128548
|
const p = e && t && n && c;
|
|
128549
128549
|
let g = !0, m = null;
|
|
@@ -128578,7 +128578,7 @@ const Ign = n2n.extend({
|
|
|
128578
128578
|
);
|
|
128579
128579
|
let qp;
|
|
128580
128580
|
const ave = (e, t) => ({ node: n, updateAttributes: r, deleteNode: o }) => {
|
|
128581
|
-
const { isPreviewMode: i } = Z5(), [a, s] =
|
|
128581
|
+
const { isPreviewMode: i } = Z5(), [a, s] = _e(), [l, u] = _e(0), [c, d] = _e(0), [f, h] = _e({}), p = Ue(null), [g, m] = _e(!1), [y, b] = _e(!1), [v, x] = _e(null), w = Ue(null), F = () => {
|
|
128582
128582
|
const z = {};
|
|
128583
128583
|
Tee.forEach(({ tooltip: Y, isActive: se }) => {
|
|
128584
128584
|
z[Y] = !!(se != null && se(n.attrs));
|
|
@@ -128650,7 +128650,7 @@ const ave = (e, t) => ({ node: n, updateAttributes: r, deleteNode: o }) => {
|
|
|
128650
128650
|
setTimeout(() => {
|
|
128651
128651
|
L(se, Math.abs(Y)), qp = z;
|
|
128652
128652
|
});
|
|
128653
|
-
}, [j, N] =
|
|
128653
|
+
}, [j, N] = _e(), [I, B] = _e();
|
|
128654
128654
|
Be(() => {
|
|
128655
128655
|
s(n.attrs["media-type"]), F(), N(n.attrs.dataFloat), B(n.attrs.dataAlign);
|
|
128656
128656
|
}, [n.attrs]);
|
|
@@ -129368,7 +129368,7 @@ const Lmn = (e) => ({
|
|
|
129368
129368
|
watchOnTwitter: $mn,
|
|
129369
129369
|
viewReplies: Gmn
|
|
129370
129370
|
}, Zmn = ({ tweet: e, media: t }) => {
|
|
129371
|
-
const [n, r] =
|
|
129371
|
+
const [n, r] = _e(!0), [o, i] = _e(!1), [a, s] = _e(!1), l = Tmn(t);
|
|
129372
129372
|
let u = 0;
|
|
129373
129373
|
return /* @__PURE__ */ M.jsxs(M.Fragment, {
|
|
129374
129374
|
children: [
|
|
@@ -129562,7 +129562,7 @@ const Lmn = (e) => ({
|
|
|
129562
129562
|
replyText: b3n,
|
|
129563
129563
|
copyText: v3n
|
|
129564
129564
|
}, x3n = ({ tweet: e }) => {
|
|
129565
|
-
const [t, n] =
|
|
129565
|
+
const [t, n] = _e(!1), r = () => {
|
|
129566
129566
|
navigator.clipboard.writeText(e.url), n(!0);
|
|
129567
129567
|
};
|
|
129568
129568
|
return Be(() => {
|
|
@@ -130231,7 +130231,7 @@ const US = Ne.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
130231
130231
|
}, [
|
|
130232
130232
|
r,
|
|
130233
130233
|
y
|
|
130234
|
-
]), B = W6.useSyncExternalStore(
|
|
130234
|
+
]), B = W6.useSyncExternalStore(Ie(
|
|
130235
130235
|
(fe) => S(y, (O, ue) => {
|
|
130236
130236
|
N(ue, O) || fe();
|
|
130237
130237
|
}),
|
|
@@ -130240,7 +130240,7 @@ const US = Ne.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
130240
130240
|
r,
|
|
130241
130241
|
y
|
|
130242
130242
|
]
|
|
130243
|
-
), I[0], I[1]), U = !v.current, $ = h[y] && h[y].length > 0, q = B.data, z = jn(q) ? j && yve(j) ? US(j) : j : q, Y = B.error, se = Ue(z), oe = f ? jn(q) ? jn(se.current) ? z : se.current : q : z, X = $ && !jn(Y) ? !1 : U && !jn(s) ? s : D().isPaused() ? !1 : i ? jn(z) ? !1 : l : jn(z) || l, ie = !!(y && t && U && X), ne = jn(B.isValidating) ? ie : B.isValidating, te = jn(B.isLoading) ? ie : B.isLoading, P =
|
|
130243
|
+
), I[0], I[1]), U = !v.current, $ = h[y] && h[y].length > 0, q = B.data, z = jn(q) ? j && yve(j) ? US(j) : j : q, Y = B.error, se = Ue(z), oe = f ? jn(q) ? jn(se.current) ? z : se.current : q : z, X = $ && !jn(Y) ? !1 : U && !jn(s) ? s : D().isPaused() ? !1 : i ? jn(z) ? !1 : l : jn(z) || l, ie = !!(y && t && U && X), ne = jn(B.isValidating) ? ie : B.isValidating, te = jn(B.isLoading) ? ie : B.isLoading, P = Ie(
|
|
130244
130244
|
async (fe) => {
|
|
130245
130245
|
const O = F.current;
|
|
130246
130246
|
if (!y || !O || x.current || D().isPaused())
|
|
@@ -130303,7 +130303,7 @@ const US = Ne.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
130303
130303
|
y,
|
|
130304
130304
|
r
|
|
130305
130305
|
]
|
|
130306
|
-
), ee =
|
|
130306
|
+
), ee = Ie(
|
|
130307
130307
|
// Use callback to make sure `keyRef.current` returns latest result every time
|
|
130308
130308
|
(...fe) => vve(r, w.current, ...fe),
|
|
130309
130309
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
@@ -130425,7 +130425,7 @@ const Eyn = (e, t, n) => {
|
|
|
130425
130425
|
components: r
|
|
130426
130426
|
});
|
|
130427
130427
|
}, Syn = ({ node: e, editor: t }) => {
|
|
130428
|
-
const [n, r] =
|
|
130428
|
+
const [n, r] = _e(null), [o, i] = _e(!1);
|
|
130429
130429
|
Be(() => {
|
|
130430
130430
|
t == null || t.chain().focus(), (async () => {
|
|
130431
130431
|
try {
|
|
@@ -130532,7 +130532,7 @@ const jyn = ({
|
|
|
130532
130532
|
n.off("update", b), l.current && (cancelAnimationFrame(l.current), l.current = null);
|
|
130533
130533
|
};
|
|
130534
130534
|
}, [n]);
|
|
130535
|
-
const u =
|
|
130535
|
+
const u = Ie(() => {
|
|
130536
130536
|
const { doc: b } = n.state, v = b.content.content.filter(
|
|
130537
130537
|
(D) => {
|
|
130538
130538
|
var T, R, _;
|
|
@@ -130551,7 +130551,7 @@ const jyn = ({
|
|
|
130551
130551
|
headingCount: v
|
|
130552
130552
|
};
|
|
130553
130553
|
return o.current = C, i.current = x, Wp = C, qee = w, C;
|
|
130554
|
-
}, [n]), c =
|
|
130554
|
+
}, [n]), c = Ie((b) => {
|
|
130555
130555
|
var C;
|
|
130556
130556
|
const { doc: v } = b.state, x = /* @__PURE__ */ new Map(), w = [];
|
|
130557
130557
|
let F = 0;
|
|
@@ -130646,7 +130646,7 @@ const jyn = ({
|
|
|
130646
130646
|
u,
|
|
130647
130647
|
e.content,
|
|
130648
130648
|
a
|
|
130649
|
-
]), m =
|
|
130649
|
+
]), m = Ie(() => {
|
|
130650
130650
|
var D;
|
|
130651
130651
|
if (!h) return;
|
|
130652
130652
|
const b = t(), { headingMap: v } = u(), x = v.get(h);
|
|
@@ -130674,7 +130674,7 @@ const jyn = ({
|
|
|
130674
130674
|
const T = t() + e.nodeSize;
|
|
130675
130675
|
n.chain().focus(T - 1).run();
|
|
130676
130676
|
});
|
|
130677
|
-
}, [n, h, u, t, e]), y =
|
|
130677
|
+
}, [n, h, u, t, e]), y = Ie(() => {
|
|
130678
130678
|
var D, T;
|
|
130679
130679
|
if (!h) return t() + e.nodeSize;
|
|
130680
130680
|
const { headingMap: b } = u(), v = b.get(h);
|
|
@@ -130808,7 +130808,7 @@ const jyn = ({
|
|
|
130808
130808
|
}
|
|
130809
130809
|
};
|
|
130810
130810
|
function Nyn(e) {
|
|
130811
|
-
const t = Ue(!1), n = Ue(e), r =
|
|
130811
|
+
const t = Ue(!1), n = Ue(e), r = Ie(() => {
|
|
130812
130812
|
if (!n.current) {
|
|
130813
130813
|
t.current = !1;
|
|
130814
130814
|
return;
|
|
@@ -130837,10 +130837,10 @@ function Nyn(e) {
|
|
|
130837
130837
|
);
|
|
130838
130838
|
}
|
|
130839
130839
|
const _yn = (e, t, n) => {
|
|
130840
|
-
const r = Nyn(e), o =
|
|
130840
|
+
const r = Nyn(e), o = Ie(() => {
|
|
130841
130841
|
const l = e.chain();
|
|
130842
130842
|
l.setNodeSelection(n).unsetAllMarks(), (t == null ? void 0 : t.type.name) !== "paragraph" && l.setParagraph(), l.run();
|
|
130843
|
-
}, [e, n, t == null ? void 0 : t.type.name]), i =
|
|
130843
|
+
}, [e, n, t == null ? void 0 : t.type.name]), i = Ie(() => {
|
|
130844
130844
|
if (r)
|
|
130845
130845
|
return;
|
|
130846
130846
|
e.commands.setNodeSelection(n);
|
|
@@ -130849,13 +130849,13 @@ const _yn = (e, t, n) => {
|
|
|
130849
130849
|
n + ((t == null ? void 0 : t.nodeSize) || 0),
|
|
130850
130850
|
u.toJSON()
|
|
130851
130851
|
).run();
|
|
130852
|
-
}, [e, n, t == null ? void 0 : t.nodeSize]), a =
|
|
130852
|
+
}, [e, n, t == null ? void 0 : t.nodeSize]), a = Ie(() => {
|
|
130853
130853
|
e.chain().setMeta("hideDragHandle", !0).setNodeSelection(n).run(), document.execCommand("copy"), Xc({
|
|
130854
130854
|
title: "Copied to clipboard",
|
|
130855
130855
|
toastType: "mini",
|
|
130856
130856
|
variant: "success"
|
|
130857
130857
|
});
|
|
130858
|
-
}, [e, n]), s =
|
|
130858
|
+
}, [e, n]), s = Ie(() => {
|
|
130859
130859
|
Lyn(e, n), e.chain().setMeta("hideDragHandle", !0).setNodeSelection(n).deleteSelection().run();
|
|
130860
130860
|
}, [e, n]);
|
|
130861
130861
|
return {
|
|
@@ -134172,7 +134172,7 @@ const f4n = Ne.memo(
|
|
|
134172
134172
|
), Ave = Ne.memo(
|
|
134173
134173
|
({ node: e, getPos: t, editor: n, deleteNode: r, ...o }) => {
|
|
134174
134174
|
var X, ie, ne, te;
|
|
134175
|
-
const i = (ie = (X = o.extension) == null ? void 0 : X.options) == null ? void 0 : ie.onCopyHeadingLink, a = Br("(max-width: 1024px)"), [s, l] =
|
|
134175
|
+
const i = (ie = (X = o.extension) == null ? void 0 : X.options) == null ? void 0 : ie.onCopyHeadingLink, a = Br("(max-width: 1024px)"), [s, l] = _e(!1), [u, c] = _e(!1), [d, f] = _e(2), h = _yn(n, e, t()), {
|
|
134176
134176
|
isPreviewMode: p,
|
|
134177
134177
|
isPresentationMode: g,
|
|
134178
134178
|
isCollaboratorsDoc: m,
|
|
@@ -134187,7 +134187,7 @@ const f4n = Ne.memo(
|
|
|
134187
134187
|
node: e,
|
|
134188
134188
|
getPos: t,
|
|
134189
134189
|
editor: n
|
|
134190
|
-
}), C =
|
|
134190
|
+
}), C = Ie(() => {
|
|
134191
134191
|
const { content: P } = e.content, ee = P[0].attrs.id, re = P[0].content.content[0].text, fe = MH(re), O = ee.replace(/-/g, "").substring(0, 8), ue = `heading=${fe}-${O}`;
|
|
134192
134192
|
i == null || i(ue);
|
|
134193
134193
|
}, [e.content, i]), D = ot(() => {
|
|
@@ -134253,31 +134253,31 @@ const f4n = Ne.memo(
|
|
|
134253
134253
|
}, L = (P, ee) => {
|
|
134254
134254
|
const re = t(), fe = re + e.nodeSize;
|
|
134255
134255
|
P === "img" ? n == null || n.chain().focus(re).deleteRange({ from: re === 0 ? re : re + 1, to: fe }).setMedia({ src: ee, "media-type": "img" }).run() : P !== "secure-img" && (n == null || n.chain().focus(re).deleteRange({ from: re === 0 ? re : re + 1, to: fe }).setIframe({ src: ee, width: 640, height: 360 }).run());
|
|
134256
|
-
}, E =
|
|
134256
|
+
}, E = Ie((P) => {
|
|
134257
134257
|
P.altKey ? N() : j();
|
|
134258
|
-
}, []), j =
|
|
134258
|
+
}, []), j = Ie(() => {
|
|
134259
134259
|
const P = t() + e.nodeSize;
|
|
134260
134260
|
n.commands.insertContentAt(P, {
|
|
134261
134261
|
type: "dBlock",
|
|
134262
134262
|
content: [{ type: "paragraph" }]
|
|
134263
134263
|
});
|
|
134264
|
-
}, [t, n, e.nodeSize]), N =
|
|
134264
|
+
}, [t, n, e.nodeSize]), N = Ie(() => {
|
|
134265
134265
|
const P = t();
|
|
134266
134266
|
n.commands.insertContentAt(P, {
|
|
134267
134267
|
type: "dBlock",
|
|
134268
134268
|
content: [{ type: "paragraph" }]
|
|
134269
134269
|
});
|
|
134270
|
-
}, [t, n]), I =
|
|
134270
|
+
}, [t, n]), I = Ie(
|
|
134271
134271
|
(P) => {
|
|
134272
134272
|
P.altKey ? r() : l((ee) => !ee);
|
|
134273
134273
|
},
|
|
134274
134274
|
[r]
|
|
134275
|
-
), B =
|
|
134275
|
+
), B = Ie(() => {
|
|
134276
134276
|
S();
|
|
134277
134277
|
}, [T, _]), U = ot(
|
|
134278
134278
|
() => DH(B, 1e3),
|
|
134279
134279
|
[B]
|
|
134280
|
-
), $ =
|
|
134280
|
+
), $ = Ie(
|
|
134281
134281
|
(P) => {
|
|
134282
134282
|
const ee = t() + e.nodeSize;
|
|
134283
134283
|
n.commands.insertContentAt(ee - 4, P);
|
|
@@ -134289,7 +134289,7 @@ const f4n = Ne.memo(
|
|
|
134289
134289
|
), z = ot(
|
|
134290
134290
|
() => Ryn($),
|
|
134291
134291
|
[$]
|
|
134292
|
-
), Y =
|
|
134292
|
+
), Y = Ie(() => {
|
|
134293
134293
|
c(!u), f(u ? 2 : z.length);
|
|
134294
134294
|
}, [u, z.length]), se = ot(() => {
|
|
134295
134295
|
switch (F) {
|
|
@@ -136917,7 +136917,7 @@ function r6n(e) {
|
|
|
136917
136917
|
function t(n) {
|
|
136918
136918
|
var r = n.children, o = n.content, i = n.visible, a = n.singleton, s = n.render, l = n.reference, u = n.disabled, c = u === void 0 ? !1 : u, d = n.ignoreAttributes, f = d === void 0 ? !0 : d;
|
|
136919
136919
|
n.__source, n.__self;
|
|
136920
|
-
var h = Xve(n, ["children", "content", "visible", "singleton", "render", "reference", "disabled", "ignoreAttributes", "__source", "__self"]), p = i !== void 0, g = a !== void 0, m =
|
|
136920
|
+
var h = Xve(n, ["children", "content", "visible", "singleton", "render", "reference", "disabled", "ignoreAttributes", "__source", "__self"]), p = i !== void 0, g = a !== void 0, m = _e(!1), y = m[0], b = m[1], v = _e({}), x = v[0], w = v[1], F = _e(), C = F[0], D = F[1], T = t6n(function() {
|
|
136921
136921
|
return {
|
|
136922
136922
|
container: vte(),
|
|
136923
136923
|
renders: 1
|
|
@@ -137105,7 +137105,7 @@ const a6n = [
|
|
|
137105
137105
|
selected: t,
|
|
137106
137106
|
getPos: n
|
|
137107
137107
|
}) => {
|
|
137108
|
-
const [r, o] =
|
|
137108
|
+
const [r, o] = _e(!1), { isPreviewMode: i } = Z5(), a = Ue(null), s = Ue(), l = () => {
|
|
137109
137109
|
s.current && clearTimeout(s.current), o(!0);
|
|
137110
137110
|
}, u = () => {
|
|
137111
137111
|
s.current = setTimeout(() => {
|
|
@@ -137475,7 +137475,7 @@ const f6n = zt.create({
|
|
|
137475
137475
|
getPos: n,
|
|
137476
137476
|
deleteNode: r
|
|
137477
137477
|
}) => {
|
|
137478
|
-
const [o, i] =
|
|
137478
|
+
const [o, i] = _e(""), { isPreviewMode: a } = Z5(), s = ["https://twitter.com", "https://x.com"], l = () => {
|
|
137479
137479
|
switch (e.attrs.data) {
|
|
137480
137480
|
case "twitter":
|
|
137481
137481
|
return /* @__PURE__ */ M.jsx(qe, { name: "XSocial", size: "md" });
|
|
@@ -173739,7 +173739,7 @@ const $jn = ({
|
|
|
173739
173739
|
metadataProxyUrl: t,
|
|
173740
173740
|
hoverEvent: n
|
|
173741
173741
|
}) => {
|
|
173742
|
-
const r = Br("(max-width:768px)"), [o, i] =
|
|
173742
|
+
const r = Br("(max-width:768px)"), [o, i] = _e(null), [a, s] = _e(!1), l = Ue(/* @__PURE__ */ new Map()), u = async (c) => {
|
|
173743
173743
|
if (c) {
|
|
173744
173744
|
if (l.current.has(c)) {
|
|
173745
173745
|
i(l.current.get(c)), s(!1);
|
|
@@ -175219,7 +175219,7 @@ function YLn({
|
|
|
175219
175219
|
editor: n,
|
|
175220
175220
|
deleteNode: r
|
|
175221
175221
|
}) {
|
|
175222
|
-
const o = Ue(null), [i, a] =
|
|
175222
|
+
const o = Ue(null), [i, a] = _e("Copy"), s = e.attrs.language || "plaintext", l = !n.isEditable, u = e.attrs.lineNumbers && !l, c = e.attrs.wordWrap && !l, d = e.attrs.tabSize ?? 2, f = e.attrs.shouldFocus, { isMobile: h } = ed(), p = e.attrs.code || e.textContent || "", g = ot(() => {
|
|
175223
175223
|
const b = p.split(`
|
|
175224
175224
|
`), v = [];
|
|
175225
175225
|
let x = 0;
|
|
@@ -188669,19 +188669,19 @@ function D_n({
|
|
|
188669
188669
|
var VFe = D_n;
|
|
188670
188670
|
const WFe = dn(
|
|
188671
188671
|
(e, t) => {
|
|
188672
|
-
const [n, r] =
|
|
188672
|
+
const [n, r] = _e(0), o = Ie(
|
|
188673
188673
|
(l) => {
|
|
188674
188674
|
const u = e.items[l];
|
|
188675
188675
|
u && e.command(u);
|
|
188676
188676
|
},
|
|
188677
188677
|
[e]
|
|
188678
|
-
), i =
|
|
188678
|
+
), i = Ie(() => {
|
|
188679
188679
|
r(
|
|
188680
188680
|
(l) => (l + e.items.length - 1) % e.items.length
|
|
188681
188681
|
);
|
|
188682
|
-
}, [e.items.length]), a =
|
|
188682
|
+
}, [e.items.length]), a = Ie(() => {
|
|
188683
188683
|
r((l) => (l + 1) % e.items.length);
|
|
188684
|
-
}, [e.items.length]), s =
|
|
188684
|
+
}, [e.items.length]), s = Ie(() => {
|
|
188685
188685
|
o(n);
|
|
188686
188686
|
}, [o, n]);
|
|
188687
188687
|
return Be(() => {
|
|
@@ -249291,7 +249291,7 @@ const R_n = ({
|
|
|
249291
249291
|
command: t,
|
|
249292
249292
|
editor: n
|
|
249293
249293
|
}) => {
|
|
249294
|
-
const [r, o] =
|
|
249294
|
+
const [r, o] = _e(0), [i, a] = _e(e), s = Br("(max-width: 640px)"), l = k8(n, "callout"), u = k8(n, "codeBlock"), c = k8(n, "column"), d = k8(n, "table"), f = Ie(
|
|
249295
249295
|
(p) => {
|
|
249296
249296
|
const g = i[p];
|
|
249297
249297
|
g && (g.title === "Continue writing" || t(g));
|
|
@@ -250915,9 +250915,9 @@ const Gie = () => {
|
|
|
250915
250915
|
deleteNode: o
|
|
250916
250916
|
}) => {
|
|
250917
250917
|
var J;
|
|
250918
|
-
const [i, a] =
|
|
250918
|
+
const [i, a] = _e(!1), [s, l] = _e(!1), [u, c] = _e(e.attrs.prompt), [d, f] = _e(!!e.attrs.content), [h, p] = _e(""), [g, m] = _e(!1), [y, b] = _e(!1), [v, x] = _e([]), [w, F] = _e(
|
|
250919
250919
|
!!localStorage.getItem("include-ddoc-context")
|
|
250920
|
-
), [C, D] =
|
|
250920
|
+
), [C, D] = _e(!0), { prompt: T, content: R } = e.attrs, _ = Ue(null), S = Ue(null), L = Ue(null), E = !t.isEditable, { isWindows: j } = ed(), N = j ? "Ctrl" : "Cmd", I = window.__MODEL_CONTEXT__, B = Ue(null), [U, $] = _e(
|
|
250921
250921
|
Gie()
|
|
250922
250922
|
), q = Uue({
|
|
250923
250923
|
extensions: [J5e, ...nxe],
|
|
@@ -250968,7 +250968,7 @@ const Gie = () => {
|
|
|
250968
250968
|
}, [u]), Be(() => {
|
|
250969
250969
|
c(T), f(!!R);
|
|
250970
250970
|
}, [T, R]);
|
|
250971
|
-
const z =
|
|
250971
|
+
const z = Ie(() => {
|
|
250972
250972
|
var me, we;
|
|
250973
250973
|
if (!w) return "";
|
|
250974
250974
|
const G = t.getJSON();
|
|
@@ -251000,7 +251000,7 @@ const Gie = () => {
|
|
|
251000
251000
|
}
|
|
251001
251001
|
return Me = (pe + H).trim(), Me && (Me = `Document context (${ge} chars before, ${K} chars after):
|
|
251002
251002
|
${Me}`), Me;
|
|
251003
|
-
}, [t, n, w]), Y =
|
|
251003
|
+
}, [t, n, w]), Y = Ie(async () => {
|
|
251004
251004
|
var G;
|
|
251005
251005
|
if (u.trim())
|
|
251006
251006
|
try {
|
|
@@ -251057,7 +251057,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
|
|
|
251057
251057
|
z,
|
|
251058
251058
|
w,
|
|
251059
251059
|
r
|
|
251060
|
-
]), se =
|
|
251060
|
+
]), se = Ie(() => {
|
|
251061
251061
|
if (B.current) {
|
|
251062
251062
|
B.current.abort(), l(!1), a(!1);
|
|
251063
251063
|
const G = setTimeout(() => {
|
|
@@ -251069,7 +251069,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
|
|
|
251069
251069
|
}, 0);
|
|
251070
251070
|
return () => clearTimeout(G);
|
|
251071
251071
|
}
|
|
251072
|
-
}, []), oe =
|
|
251072
|
+
}, []), oe = Ie(() => {
|
|
251073
251073
|
if (typeof n == "function") {
|
|
251074
251074
|
m(!0);
|
|
251075
251075
|
const G = setTimeout(() => {
|
|
@@ -251088,7 +251088,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
|
|
|
251088
251088
|
}, 150);
|
|
251089
251089
|
return () => clearTimeout(G);
|
|
251090
251090
|
}
|
|
251091
|
-
}, [n, t, e.nodeSize, R, o]), X =
|
|
251091
|
+
}, [n, t, e.nodeSize, R, o]), X = Ie(() => {
|
|
251092
251092
|
if (typeof n == "function") {
|
|
251093
251093
|
m(!0);
|
|
251094
251094
|
const G = setTimeout(() => {
|
|
@@ -251107,14 +251107,14 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
|
|
|
251107
251107
|
}, 150);
|
|
251108
251108
|
return () => clearTimeout(G);
|
|
251109
251109
|
}
|
|
251110
|
-
}, [n, t, e.nodeSize, o]), ie =
|
|
251110
|
+
}, [n, t, e.nodeSize, o]), ie = Ie(
|
|
251111
251111
|
(G) => {
|
|
251112
251112
|
c(G.target.value);
|
|
251113
251113
|
},
|
|
251114
251114
|
[]
|
|
251115
|
-
), ne =
|
|
251115
|
+
), ne = Ie(() => {
|
|
251116
251116
|
r && u !== T && r({ prompt: u });
|
|
251117
|
-
}, [r, u, T]), te =
|
|
251117
|
+
}, [r, u, T]), te = Ie(
|
|
251118
251118
|
(G) => {
|
|
251119
251119
|
r == null || r({ model: G });
|
|
251120
251120
|
const de = I == null ? void 0 : I.defaultModels.find(
|
|
@@ -251123,22 +251123,22 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
|
|
|
251123
251123
|
de && (I != null && I.setActiveModel) && I.setActiveModel(de);
|
|
251124
251124
|
},
|
|
251125
251125
|
[r, I]
|
|
251126
|
-
), P =
|
|
251126
|
+
), P = Ie(() => {
|
|
251127
251127
|
var de, ke;
|
|
251128
251128
|
if (r == null || r({ content: "" }), f(!1), p(""), !_.current) return;
|
|
251129
251129
|
(de = _.current) == null || de.focus();
|
|
251130
251130
|
const G = _.current.value.length;
|
|
251131
251131
|
(ke = _.current) == null || ke.setSelectionRange(G, G), _.current.scrollTop = _.current.scrollHeight;
|
|
251132
|
-
}, [r]), ee =
|
|
251132
|
+
}, [r]), ee = Ie(() => {
|
|
251133
251133
|
b(!0);
|
|
251134
|
-
}, []), re =
|
|
251134
|
+
}, []), re = Ie(() => {
|
|
251135
251135
|
if (q) {
|
|
251136
251136
|
const G = q.getHTML();
|
|
251137
251137
|
b(!1), r == null || r({ content: G }), p(G);
|
|
251138
251138
|
}
|
|
251139
|
-
}, [q, r]), fe =
|
|
251139
|
+
}, [q, r]), fe = Ie(() => {
|
|
251140
251140
|
b(!1), q && q.commands.setContent(h || R || "");
|
|
251141
|
-
}, [q, h, R]), O =
|
|
251141
|
+
}, [q, h, R]), O = Ie(
|
|
251142
251142
|
(G) => {
|
|
251143
251143
|
G.key === "Enter" && (G.ctrlKey || G.metaKey) && !G.shiftKey ? (G.preventDefault(), d && oe()) : G.key === "Enter" && !G.shiftKey && !y ? (G.preventDefault(), u.trim() && Y()) : G.key === "Escape" ? (G.preventDefault(), s ? se() : X()) : G.key === " " && !u.trim() ? (G.preventDefault(), X()) : G.key === "r" && (G.ctrlKey || G.metaKey) ? (G.preventDefault(), P()) : G.key === "e" && (G.ctrlKey || G.metaKey) && (G.preventDefault(), ee());
|
|
251144
251144
|
},
|
|
@@ -251154,7 +251154,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
|
|
|
251154
251154
|
s,
|
|
251155
251155
|
se
|
|
251156
251156
|
]
|
|
251157
|
-
), ue =
|
|
251157
|
+
), ue = Ie((G) => {
|
|
251158
251158
|
G ? localStorage.setItem("include-ddoc-context", "true") : localStorage.removeItem("include-ddoc-context");
|
|
251159
251159
|
}, []);
|
|
251160
251160
|
Be(() => {
|
|
@@ -251188,7 +251188,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
|
|
|
251188
251188
|
return () => clearInterval(G);
|
|
251189
251189
|
}
|
|
251190
251190
|
}, [i]);
|
|
251191
|
-
const ce =
|
|
251191
|
+
const ce = Ie(
|
|
251192
251192
|
() => /* @__PURE__ */ M.jsx("span", { className: "text-body-sm color-text-secondary pt-1 flex items-center gap-1", children: /* @__PURE__ */ M.jsx(Ym, { mode: "wait", children: /* @__PURE__ */ M.jsxs(
|
|
251193
251193
|
"span",
|
|
251194
251194
|
{
|
|
@@ -251559,7 +251559,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
|
|
|
251559
251559
|
activeTabId: q
|
|
251560
251560
|
}), { handleCommentInteraction: ee, handleCommentClick: re } = SIn({
|
|
251561
251561
|
onCommentInteraction: d
|
|
251562
|
-
}), fe = Ue(!0), [O, ue] =
|
|
251562
|
+
}), fe = Ue(!0), [O, ue] = _e([]), ce = ot(() => te, [te]);
|
|
251563
251563
|
Be(() => {
|
|
251564
251564
|
q && Y(null);
|
|
251565
251565
|
}, [q, Y]);
|
|
@@ -251629,13 +251629,13 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
|
|
|
251629
251629
|
}, [G, de]), Be(() => {
|
|
251630
251630
|
a && T(!l);
|
|
251631
251631
|
}, [a, l, T]);
|
|
251632
|
-
const ke = Ue(!1), Me = Ue(null), xe =
|
|
251632
|
+
const ke = Ue(!1), Me = Ue(null), xe = Ie(
|
|
251633
251633
|
(ye) => {
|
|
251634
251634
|
const je = ye.map((Pe) => ir(Pe));
|
|
251635
251635
|
hc(e, Nu(je), "self");
|
|
251636
251636
|
},
|
|
251637
251637
|
[e]
|
|
251638
|
-
), pe =
|
|
251638
|
+
), pe = Ie(
|
|
251639
251639
|
(ye) => Array.isArray(ye) || typeof ye == "string" && !XFe(ye),
|
|
251640
251640
|
[]
|
|
251641
251641
|
);
|
|
@@ -251778,7 +251778,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
|
|
|
251778
251778
|
);
|
|
251779
251779
|
j == null || j(ye);
|
|
251780
251780
|
}, [(Le = (Se = G == null ? void 0 : G.storage) == null ? void 0 : Se.collaborationCaret) == null ? void 0 : Le.users]);
|
|
251781
|
-
const H = window.location.hash.startsWith("#") ? window.location.hash.substring(1) : window.location.hash, { isNativeMobile: K } = ed(), le = new URLSearchParams(H), me = le.get("heading"), we = me == null ? void 0 : me.split("-").pop(), ve =
|
|
251781
|
+
const H = window.location.hash.startsWith("#") ? window.location.hash.substring(1) : window.location.hash, { isNativeMobile: K } = ed(), le = new URLSearchParams(H), me = le.get("heading"), we = me == null ? void 0 : me.split("-").pop(), ve = Ie(
|
|
251782
251782
|
(ye) => {
|
|
251783
251783
|
if (G)
|
|
251784
251784
|
try {
|
|
@@ -251843,7 +251843,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
|
|
|
251843
251843
|
isContentLoading: $
|
|
251844
251844
|
};
|
|
251845
251845
|
}, MIn = () => {
|
|
251846
|
-
const [e, t] =
|
|
251846
|
+
const [e, t] = _e(null), n = Ue(null), r = Ie((o) => {
|
|
251847
251847
|
if (!n.current) return;
|
|
251848
251848
|
const i = n.current.querySelector(`input#${o}`);
|
|
251849
251849
|
i && i.scrollIntoView({
|
|
@@ -251860,13 +251860,13 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
|
|
|
251860
251860
|
focusCommentWithActiveId: r
|
|
251861
251861
|
};
|
|
251862
251862
|
}, EIn = (e) => {
|
|
251863
|
-
const [t, n] =
|
|
251863
|
+
const [t, n] = _e([]), r = Ue(null), o = Ue({}), i = Ue(e);
|
|
251864
251864
|
Be(() => {
|
|
251865
251865
|
i.current = e;
|
|
251866
251866
|
const s = o.current[e];
|
|
251867
251867
|
s && n(s);
|
|
251868
251868
|
}, [e]);
|
|
251869
|
-
const a =
|
|
251869
|
+
const a = Ie(
|
|
251870
251870
|
(s, l) => {
|
|
251871
251871
|
const u = e, c = () => {
|
|
251872
251872
|
o.current = {
|
|
@@ -251911,7 +251911,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
|
|
|
251911
251911
|
externalExtensions: m,
|
|
251912
251912
|
activeTabId: y
|
|
251913
251913
|
}) => {
|
|
251914
|
-
const b =
|
|
251914
|
+
const b = Ie(
|
|
251915
251915
|
() => W_n(
|
|
251916
251916
|
(C) => t == null ? void 0 : t(C),
|
|
251917
251917
|
n,
|
|
@@ -251928,7 +251928,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
|
|
|
251928
251928
|
onCommentActivated: p
|
|
251929
251929
|
}),
|
|
251930
251930
|
[p]
|
|
251931
|
-
), x =
|
|
251931
|
+
), x = Ie(() => [
|
|
251932
251932
|
...$Fe({
|
|
251933
251933
|
onError: (D) => t == null ? void 0 : t(D),
|
|
251934
251934
|
ipfsImageUploadFn: n,
|
|
@@ -251960,7 +251960,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
|
|
|
251960
251960
|
e,
|
|
251961
251961
|
m,
|
|
251962
251962
|
y
|
|
251963
|
-
]), [w, F] =
|
|
251963
|
+
]), [w, F] = _e(x());
|
|
251964
251964
|
return Be(() => {
|
|
251965
251965
|
y && F(x());
|
|
251966
251966
|
}, [y]), Be(() => {
|
|
@@ -251990,7 +251990,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
|
|
|
251990
251990
|
}, SIn = ({
|
|
251991
251991
|
onCommentInteraction: e
|
|
251992
251992
|
}) => {
|
|
251993
|
-
const t =
|
|
251993
|
+
const t = Ie(
|
|
251994
251994
|
(o, i, a) => {
|
|
251995
251995
|
let s = !1;
|
|
251996
251996
|
return o.doc.nodesBetween(i, a, (l) => {
|
|
@@ -252000,7 +252000,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
|
|
|
252000
252000
|
}), s;
|
|
252001
252001
|
},
|
|
252002
252002
|
[]
|
|
252003
|
-
), n =
|
|
252003
|
+
), n = Ie(
|
|
252004
252004
|
(o, i) => {
|
|
252005
252005
|
const a = i.target;
|
|
252006
252006
|
if (!a || a.nodeName !== "MARK" || a.dataset.color !== "yellow")
|
|
@@ -252023,7 +252023,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
|
|
|
252023
252023
|
e == null || e(f);
|
|
252024
252024
|
},
|
|
252025
252025
|
[t, e]
|
|
252026
|
-
), r =
|
|
252026
|
+
), r = Ie(
|
|
252027
252027
|
(o, i, a) => n(o, a),
|
|
252028
252028
|
[n]
|
|
252029
252029
|
);
|
|
@@ -252110,11 +252110,13 @@ const yk = (e = 32, t) => {
|
|
|
252110
252110
|
isDDocOwner: r,
|
|
252111
252111
|
isVersionMode: o
|
|
252112
252112
|
}) => {
|
|
252113
|
-
const [i, a] =
|
|
252113
|
+
const [i, a] = _e(""), [s, l] = _e([]), u = ot(() => s.length > 0, [s]), c = Ie(
|
|
252114
252114
|
(m) => {
|
|
252115
252115
|
if (!e || m === i) return;
|
|
252116
252116
|
const { activeTab: y } = zf(e);
|
|
252117
|
-
|
|
252117
|
+
e.transact(() => {
|
|
252118
|
+
y.delete(0, y.length), y.insert(0, m);
|
|
252119
|
+
}, "self"), a(m);
|
|
252118
252120
|
},
|
|
252119
252121
|
[i, e]
|
|
252120
252122
|
);
|
|
@@ -252128,7 +252130,7 @@ const yk = (e = 32, t) => {
|
|
|
252128
252130
|
createDefaultTabIfMissing: !o
|
|
252129
252131
|
}
|
|
252130
252132
|
);
|
|
252131
|
-
a(b), l(y);
|
|
252133
|
+
a(r ? b : y[0].id), l(y);
|
|
252132
252134
|
return;
|
|
252133
252135
|
}
|
|
252134
252136
|
}, [e, t, r, n, o]), Be(() => {
|
|
@@ -252159,7 +252161,7 @@ const yk = (e = 32, t) => {
|
|
|
252159
252161
|
y == null || y.unobserve(b), m.unobserve(x);
|
|
252160
252162
|
};
|
|
252161
252163
|
}, [e]);
|
|
252162
|
-
const d =
|
|
252164
|
+
const d = Ie(() => {
|
|
252163
252165
|
const m = e.getMap("ddocTabs"), y = m.get("order"), b = m.get("tabs"), v = m.get("activeTabId");
|
|
252164
252166
|
if (!(y instanceof y1))
|
|
252165
252167
|
throw new Error("Invalid ddocTabs.order");
|
|
@@ -252175,7 +252177,7 @@ const yk = (e = 32, t) => {
|
|
|
252175
252177
|
const F = new Ni();
|
|
252176
252178
|
F.set("name", w.name), F.set("showOutline", w.showOutline), F.set("emoji", w.emoji), b.set(w.id, F), e.getXmlFragment(w.id), !n && v instanceof el && (v.delete(0, v.length), v.insert(0, x)), y.push([w.id]);
|
|
252177
252179
|
}), x;
|
|
252178
|
-
}, [n, e]), f =
|
|
252180
|
+
}, [n, e]), f = Ie(
|
|
252179
252181
|
(m) => {
|
|
252180
252182
|
const { order: y, tabs: b, activeTab: v } = zf(e);
|
|
252181
252183
|
if (y.length <= 1)
|
|
@@ -252194,7 +252196,7 @@ const yk = (e = 32, t) => {
|
|
|
252194
252196
|
});
|
|
252195
252197
|
},
|
|
252196
252198
|
[e]
|
|
252197
|
-
), h =
|
|
252199
|
+
), h = Ie(
|
|
252198
252200
|
(m, { newName: y, emoji: b }) => {
|
|
252199
252201
|
const { tabs: v } = zf(e), x = v.get(m);
|
|
252200
252202
|
if (!(x instanceof Ni)) {
|
|
@@ -252209,7 +252211,7 @@ const yk = (e = 32, t) => {
|
|
|
252209
252211
|
});
|
|
252210
252212
|
},
|
|
252211
252213
|
[e]
|
|
252212
|
-
), p =
|
|
252214
|
+
), p = Ie(
|
|
252213
252215
|
(m) => {
|
|
252214
252216
|
const { tabs: y, order: b, activeTab: v } = zf(e), x = y.get(m);
|
|
252215
252217
|
if (!x || !(x instanceof Ni)) {
|
|
@@ -252229,7 +252231,7 @@ const yk = (e = 32, t) => {
|
|
|
252229
252231
|
}), w;
|
|
252230
252232
|
},
|
|
252231
252233
|
[e]
|
|
252232
|
-
), g =
|
|
252234
|
+
), g = Ie(
|
|
252233
252235
|
(m, y) => {
|
|
252234
252236
|
const { order: b } = zf(e), v = b.toArray(), x = v.indexOf(y), w = v.indexOf(m);
|
|
252235
252237
|
x === -1 || w === -1 || e.transact(() => {
|
|
@@ -262531,7 +262533,7 @@ function JUn(e, t) {
|
|
|
262531
262533
|
return typeof e == "function" ? e() : e;
|
|
262532
262534
|
});
|
|
262533
262535
|
if (process.env.NODE_ENV !== "production" && typeof e != "function") {
|
|
262534
|
-
var r = XUn(
|
|
262536
|
+
var r = XUn(_e(n), 1), o = r[0];
|
|
262535
262537
|
e !== o && console.warn("Machine given to `useMachine` has changed between renders. This is not supported and might lead to unexpected results.\nPlease make sure that you pass the same Machine as argument each time.");
|
|
262536
262538
|
}
|
|
262537
262539
|
var i = t.context, a = t.guards, s = t.actions, l = t.activities, u = t.services, c = t.delays;
|
|
@@ -262588,11 +262590,11 @@ function rHn(e) {
|
|
|
262588
262590
|
function oHn(e) {
|
|
262589
262591
|
for (var t = [], n = 1; n < arguments.length; n++)
|
|
262590
262592
|
t[n - 1] = arguments[n];
|
|
262591
|
-
var r = nHn(t, 1), o = r[0], i = o === void 0 ? {} : o, a = JUn(e, i), s =
|
|
262593
|
+
var r = nHn(t, 1), o = r[0], i = o === void 0 ? {} : o, a = JUn(e, i), s = Ie(function() {
|
|
262592
262594
|
return a.status === Ar.NotStarted ? i.state ? Ua.create(i.state) : a.machine.initialState : a.getSnapshot();
|
|
262593
|
-
}, [a]), l =
|
|
262595
|
+
}, [a]), l = Ie(function(d, f) {
|
|
262594
262596
|
return tHn(a, d, f);
|
|
262595
|
-
}, [a]), u =
|
|
262597
|
+
}, [a]), u = Ie(function(d) {
|
|
262596
262598
|
var f = a.subscribe(d).unsubscribe;
|
|
262597
262599
|
return f;
|
|
262598
262600
|
}, [a]), c = UO.useSyncExternalStoreWithSelector(u, s, s, rHn, l);
|
|
@@ -262619,10 +262621,10 @@ var aHn = function(e, t) {
|
|
|
262619
262621
|
};
|
|
262620
262622
|
function hy(e, t, n, r) {
|
|
262621
262623
|
n === void 0 && (n = aHn);
|
|
262622
|
-
var o = Ue(null), i =
|
|
262624
|
+
var o = Ue(null), i = Ie(function(l) {
|
|
262623
262625
|
var u = e.subscribe(l).unsubscribe;
|
|
262624
262626
|
return u;
|
|
262625
|
-
}, [e]), a =
|
|
262627
|
+
}, [e]), a = Ie(function() {
|
|
262626
262628
|
return sHn(e, o);
|
|
262627
262629
|
}, [e, r]), s = UO.useSyncExternalStoreWithSelector(i, a, a, t, n);
|
|
262628
262630
|
return s;
|
|
@@ -263110,7 +263112,7 @@ const RHn = (e) => e.context.awareness, PHn = (e) => !!(e.context.isReady && e.c
|
|
|
263110
263112
|
}), o = hy(r, RHn), i = hy(r, PHn), a = hy(r, zHn), s = hy(r, UHn), l = hy(
|
|
263111
263113
|
r,
|
|
263112
263114
|
HHn
|
|
263113
|
-
), u =
|
|
263115
|
+
), u = Ie(
|
|
263114
263116
|
(f) => {
|
|
263115
263117
|
n({
|
|
263116
263118
|
type: "CONNECT",
|
|
@@ -263122,12 +263124,12 @@ const RHn = (e) => e.context.awareness, PHn = (e) => !!(e.context.isReady && e.c
|
|
|
263122
263124
|
},
|
|
263123
263125
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
263124
263126
|
[e.ydoc]
|
|
263125
|
-
), c =
|
|
263127
|
+
), c = Ie(() => {
|
|
263126
263128
|
n({
|
|
263127
263129
|
type: "DISCONNECT",
|
|
263128
263130
|
data: {}
|
|
263129
263131
|
});
|
|
263130
|
-
}, [n]), d =
|
|
263132
|
+
}, [n]), d = Ie(() => {
|
|
263131
263133
|
n({
|
|
263132
263134
|
type: "TERMINATE_SESSION",
|
|
263133
263135
|
data: {}
|
|
@@ -263201,7 +263203,7 @@ const RHn = (e) => e.context.awareness, PHn = (e) => !!(e.context.isReady && e.c
|
|
|
263201
263203
|
onCollabSessionTermination: u,
|
|
263202
263204
|
onUnMergedUpdates: c
|
|
263203
263205
|
}) => {
|
|
263204
|
-
const [d] =
|
|
263206
|
+
const [d] = _e(new xc()), {
|
|
263205
263207
|
connect: f,
|
|
263206
263208
|
isReady: h,
|
|
263207
263209
|
terminateSession: p,
|
|
@@ -263219,7 +263221,7 @@ const RHn = (e) => e.context.awareness, PHn = (e) => !!(e.context.isReady && e.c
|
|
|
263219
263221
|
onLocalUpdate: e
|
|
263220
263222
|
});
|
|
263221
263223
|
VHn(y, r);
|
|
263222
|
-
const b = Ue(null), v =
|
|
263224
|
+
const b = Ue(null), v = Ie(async () => {
|
|
263223
263225
|
const x = b.current;
|
|
263224
263226
|
if (x && await x.destroy(), t && n)
|
|
263225
263227
|
try {
|
|
@@ -263284,7 +263286,7 @@ const RHn = (e) => e.context.awareness, PHn = (e) => !!(e.context.isReady && e.c
|
|
|
263284
263286
|
disableInlineComment: L,
|
|
263285
263287
|
...E
|
|
263286
263288
|
}) => {
|
|
263287
|
-
const [j, N] =
|
|
263289
|
+
const [j, N] = _e(!0), [I, B] = _e(!0), U = !!(n != null && n.enabled), $ = (n == null ? void 0 : n.content) ?? t, q = WHn({
|
|
263288
263290
|
onChange: o,
|
|
263289
263291
|
enableIndexeddbSync: f,
|
|
263290
263292
|
ddocId: d,
|
|
@@ -263379,7 +263381,7 @@ const RHn = (e) => e.context.awareness, PHn = (e) => !!(e.context.isReady && e.c
|
|
|
263379
263381
|
ipfsImageFetchFn: s,
|
|
263380
263382
|
fetchV1ImageFn: l
|
|
263381
263383
|
}
|
|
263382
|
-
), [f, h] =
|
|
263384
|
+
), [f, h] = _e(""), [p, g] = _e(""), [m, y] = _e(!0), [b, v] = _e(!0), x = () => {
|
|
263383
263385
|
if (!e) return;
|
|
263384
263386
|
if ((f === null || f === "") && (p === "" || p === null)) {
|
|
263385
263387
|
c(ut.NONE);
|
|
@@ -264185,7 +264187,7 @@ const sqn = ({
|
|
|
264185
264187
|
documentStyling: g,
|
|
264186
264188
|
fetchV1ImageFn: m
|
|
264187
264189
|
}) => {
|
|
264188
|
-
const [y, b] =
|
|
264190
|
+
const [y, b] = _e(!1), [v, x] = _e(0), [w, F] = _e(!0), { isNativeMobile: C } = ed(), [D, T] = _e(null), [R, _] = _e(null), S = 50, [L, E] = _e(
|
|
264189
264191
|
"forward"
|
|
264190
264192
|
), j = ot(() => new tF({
|
|
264191
264193
|
extensions: e.extensionManager.extensions.filter(
|
|
@@ -264196,7 +264198,7 @@ const sqn = ({
|
|
|
264196
264198
|
].includes(Y.name)
|
|
264197
264199
|
),
|
|
264198
264200
|
editable: !s
|
|
264199
|
-
}), [s]), N =
|
|
264201
|
+
}), [s]), N = Ie(async () => {
|
|
264200
264202
|
var ne;
|
|
264201
264203
|
if (!e || !((ne = e.view) != null && ne.dom)) return;
|
|
264202
264204
|
if (!s && e.view.dom.querySelector(".is-editor-empty")) {
|
|
@@ -264239,13 +264241,13 @@ const sqn = ({
|
|
|
264239
264241
|
Be(() => {
|
|
264240
264242
|
N();
|
|
264241
264243
|
}, [e.state.doc]);
|
|
264242
|
-
const I =
|
|
264244
|
+
const I = Ie(() => {
|
|
264243
264245
|
C ? r((Y) => !Y) : document.fullscreenElement ? document.exitFullscreen ? document.exitFullscreen().then(() => r(!1)).catch(() => {
|
|
264244
264246
|
r(!1);
|
|
264245
264247
|
}) : r(!1) : document.documentElement.requestFullscreen ? document.documentElement.requestFullscreen().then(() => r(!0)).catch(() => {
|
|
264246
264248
|
r(!0);
|
|
264247
264249
|
}) : r(!0);
|
|
264248
|
-
}, [C]), B =
|
|
264250
|
+
}, [C]), B = Ie(
|
|
264249
264251
|
(Y) => {
|
|
264250
264252
|
Y.key === "ArrowRight" || Y.key === "ArrowDown" || Y.code === "Space" ? (Y.preventDefault(), Y.stopPropagation(), E("forward"), x((se) => Math.min(se + 1, c.length - 1))) : Y.key === "ArrowLeft" || Y.key === "ArrowUp" ? (E("backward"), x((se) => Math.max(se - 1, 0))) : Y.key === "Escape" ? !s && t() : (Y.key === "f" || Y.key === "F") && I();
|
|
264251
264253
|
},
|
|
@@ -264263,7 +264265,7 @@ const sqn = ({
|
|
|
264263
264265
|
_(null), T(Y.targetTouches[0].clientX);
|
|
264264
264266
|
}, $ = (Y) => {
|
|
264265
264267
|
_(Y.targetTouches[0].clientX);
|
|
264266
|
-
}, q =
|
|
264268
|
+
}, q = Ie(() => {
|
|
264267
264269
|
if (!D || !R) return;
|
|
264268
264270
|
const Y = D - R, se = Y > S, oe = Y < -S;
|
|
264269
264271
|
se && (E("forward"), x((X) => Math.min(X + 1, c.length - 1))), oe && (E("backward"), x((X) => Math.max(X - 1, 0)));
|
|
@@ -264575,7 +264577,7 @@ const sqn = ({
|
|
|
264575
264577
|
)
|
|
264576
264578
|
}
|
|
264577
264579
|
), cqn = "data:image/svg+xml,%3csvg%20width='192'%20height='160'%20viewBox='0%200%20192%20160'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10%200.5H182C186.142%200.5%20189.5%203.85786%20189.5%208V40C189.5%2044.1421%20186.142%2047.5%20182%2047.5H10C5.85786%2047.5%202.5%2044.1421%202.5%2040V8C2.5%203.85787%205.85786%200.5%2010%200.5Z'%20fill='white'/%3e%3cpath%20d='M10%200.5H182C186.142%200.5%20189.5%203.85786%20189.5%208V40C189.5%2044.1421%20186.142%2047.5%20182%2047.5H10C5.85786%2047.5%202.5%2044.1421%202.5%2040V8C2.5%203.85787%205.85786%200.5%2010%200.5Z'%20stroke='%23E8EBEC'/%3e%3cpath%20d='M14%2024C14%2015.1634%2021.1634%208%2030%208V8C38.8366%208%2046%2015.1634%2046%2024V24C46%2032.8366%2038.8366%2040%2030%2040V40C21.1634%2040%2014%2032.8366%2014%2024V24Z'%20fill='%23E8EBEC'/%3e%3cpath%20d='M56%2015C56%2012.7909%2057.7909%2011%2060%2011H174C176.209%2011%20178%2012.7909%20178%2015V18C178%2020.2091%20176.209%2022%20174%2022H60C57.7909%2022%2056%2020.2091%2056%2018V15Z'%20fill='%23E8EBEC'/%3e%3cpath%20d='M56%2030C56%2027.7909%2057.7909%2026%2060%2026H112C114.209%2026%20116%2027.7909%20116%2030V33C116%2035.2091%20114.209%2037%20112%2037H60C57.7909%2037%2056%2035.2091%2056%2033V30Z'%20fill='%23E8EBEC'/%3e%3cg%20filter='url(%23filter0_d_4765_56257)'%3e%3cpath%20d='M2%2064C2%2059.5817%205.58172%2056%2010%2056H182C186.418%2056%20190%2059.5817%20190%2064V96C190%20100.418%20186.418%20104%20182%20104H10C5.58172%20104%202%20100.418%202%2096V64Z'%20fill='white'/%3e%3cpath%20d='M10%2056.5H182C186.142%2056.5%20189.5%2059.8579%20189.5%2064V96C189.5%20100.142%20186.142%20103.5%20182%20103.5H10C5.85786%20103.5%202.5%20100.142%202.5%2096V64C2.5%2059.8579%205.85786%2056.5%2010%2056.5Z'%20stroke='%23EFC703'/%3e%3cpath%20d='M14%2080C14%2071.1634%2021.1634%2064%2030%2064V64C38.8366%2064%2046%2071.1634%2046%2080V80C46%2088.8366%2038.8366%2096%2030%2096V96C21.1634%2096%2014%2088.8366%2014%2080V80Z'%20fill='%23E8EBEC'/%3e%3cpath%20d='M56%2071C56%2068.7909%2057.7909%2067%2060%2067H174C176.209%2067%20178%2068.7909%20178%2071V74C178%2076.2091%20176.209%2078%20174%2078H60C57.7909%2078%2056%2076.2091%2056%2074V71Z'%20fill='%23E8EBEC'/%3e%3cpath%20d='M56%2086C56%2083.7909%2057.7909%2082%2060%2082H112C114.209%2082%20116%2083.7909%20116%2086V89C116%2091.2091%20114.209%2093%20112%2093H60C57.7909%2093%2056%2091.2091%2056%2089V86Z'%20fill='%23E8EBEC'/%3e%3c/g%3e%3cpath%20d='M10%20112.5H182C186.142%20112.5%20189.5%20115.858%20189.5%20120V152C189.5%20156.142%20186.142%20159.5%20182%20159.5H10C5.85786%20159.5%202.5%20156.142%202.5%20152V120C2.5%20115.858%205.85786%20112.5%2010%20112.5Z'%20fill='white'/%3e%3cpath%20d='M10%20112.5H182C186.142%20112.5%20189.5%20115.858%20189.5%20120V152C189.5%20156.142%20186.142%20159.5%20182%20159.5H10C5.85786%20159.5%202.5%20156.142%202.5%20152V120C2.5%20115.858%205.85786%20112.5%2010%20112.5Z'%20stroke='%23E8EBEC'/%3e%3cpath%20d='M14%20136C14%20127.163%2021.1634%20120%2030%20120V120C38.8366%20120%2046%20127.163%2046%20136V136C46%20144.837%2038.8366%20152%2030%20152V152C21.1634%20152%2014%20144.837%2014%20136V136Z'%20fill='%23E8EBEC'/%3e%3cpath%20d='M56%20127C56%20124.791%2057.7909%20123%2060%20123H174C176.209%20123%20178%20124.791%20178%20127V130C178%20132.209%20176.209%20134%20174%20134H60C57.7909%20134%2056%20132.209%2056%20130V127Z'%20fill='%23E8EBEC'/%3e%3cpath%20d='M56%20142C56%20139.791%2057.7909%20138%2060%20138H112C114.209%20138%20116%20139.791%20116%20142V145C116%20147.209%20114.209%20149%20112%20149H60C57.7909%20149%2056%20147.209%2056%20145V142Z'%20fill='%23E8EBEC'/%3e%3crect%20x='2'%20width='188'%20height='56'%20fill='url(%23paint0_linear_4765_56257)'/%3e%3crect%20x='2'%20y='104'%20width='188'%20height='56'%20fill='url(%23paint1_linear_4765_56257)'/%3e%3cdefs%3e%3cfilter%20id='filter0_d_4765_56257'%20x='0'%20y='55'%20width='192'%20height='52'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dy='1'/%3e%3cfeGaussianBlur%20stdDeviation='1'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200.937255%200%200%200%200%200.780392%200%200%200%200%200.0117647%200%200%200%200.32%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow_4765_56257'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow_4765_56257'%20result='shape'/%3e%3c/filter%3e%3clinearGradient%20id='paint0_linear_4765_56257'%20x1='96'%20y1='0'%20x2='96'%20y2='56'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='white'/%3e%3cstop%20offset='1'%20stop-color='white'%20stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint1_linear_4765_56257'%20x1='96'%20y1='160'%20x2='96'%20y2='104'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='white'/%3e%3cstop%20offset='1'%20stop-color='white'%20stop-opacity='0'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e", dqn = "data:image/svg+xml,%3csvg%20width='192'%20height='160'%20viewBox='0%200%20192%20160'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.5%208C2.5%203.85787%205.85786%200.5%2010%200.5H182C186.142%200.5%20189.5%203.85786%20189.5%208V40C189.5%2044.1421%20186.142%2047.5%20182%2047.5H10C5.85786%2047.5%202.5%2044.1421%202.5%2040V8Z'%20fill='%232E2E2E'/%3e%3cpath%20d='M2.5%208C2.5%203.85787%205.85786%200.5%2010%200.5H182C186.142%200.5%20189.5%203.85786%20189.5%208V40C189.5%2044.1421%20186.142%2047.5%20182%2047.5H10C5.85786%2047.5%202.5%2044.1421%202.5%2040V8Z'%20stroke='%23404040'/%3e%3cpath%20d='M14%2024C14%2015.1634%2021.1634%208%2030%208C38.8366%208%2046%2015.1634%2046%2024C46%2032.8366%2038.8366%2040%2030%2040C21.1634%2040%2014%2032.8366%2014%2024Z'%20fill='%23404040'/%3e%3cpath%20d='M56%2015C56%2012.7909%2057.7909%2011%2060%2011H174C176.209%2011%20178%2012.7909%20178%2015V18C178%2020.2091%20176.209%2022%20174%2022H60C57.7909%2022%2056%2020.2091%2056%2018V15Z'%20fill='%23404040'/%3e%3cpath%20d='M56%2030C56%2027.7909%2057.7909%2026%2060%2026H112C114.209%2026%20116%2027.7909%20116%2030V33C116%2035.2091%20114.209%2037%20112%2037H60C57.7909%2037%2056%2035.2091%2056%2033V30Z'%20fill='%23404040'/%3e%3cg%20filter='url(%23filter0_d_5573_80525)'%3e%3cpath%20d='M2%2064C2%2059.5817%205.58172%2056%2010%2056H182C186.418%2056%20190%2059.5817%20190%2064V96C190%20100.418%20186.418%20104%20182%20104H10C5.58172%20104%202%20100.418%202%2096V64Z'%20fill='%232E2E2E'/%3e%3cpath%20d='M2.5%2064C2.5%2059.8579%205.85786%2056.5%2010%2056.5H182C186.142%2056.5%20189.5%2059.8579%20189.5%2064V96C189.5%20100.142%20186.142%20103.5%20182%20103.5H10C5.85786%20103.5%202.5%20100.142%202.5%2096V64Z'%20stroke='%23EFC703'/%3e%3cpath%20d='M14%2080C14%2071.1634%2021.1634%2064%2030%2064C38.8366%2064%2046%2071.1634%2046%2080C46%2088.8366%2038.8366%2096%2030%2096C21.1634%2096%2014%2088.8366%2014%2080Z'%20fill='%23404040'/%3e%3cpath%20d='M56%2071C56%2068.7909%2057.7909%2067%2060%2067H174C176.209%2067%20178%2068.7909%20178%2071V74C178%2076.2091%20176.209%2078%20174%2078H60C57.7909%2078%2056%2076.2091%2056%2074V71Z'%20fill='%23404040'/%3e%3cpath%20d='M56%2086C56%2083.7909%2057.7909%2082%2060%2082H112C114.209%2082%20116%2083.7909%20116%2086V89C116%2091.2091%20114.209%2093%20112%2093H60C57.7909%2093%2056%2091.2091%2056%2089V86Z'%20fill='%23404040'/%3e%3c/g%3e%3cpath%20d='M2.5%20120C2.5%20115.858%205.85786%20112.5%2010%20112.5H182C186.142%20112.5%20189.5%20115.858%20189.5%20120V152C189.5%20156.142%20186.142%20159.5%20182%20159.5H10C5.85786%20159.5%202.5%20156.142%202.5%20152V120Z'%20fill='%232E2E2E'/%3e%3cpath%20d='M2.5%20120C2.5%20115.858%205.85786%20112.5%2010%20112.5H182C186.142%20112.5%20189.5%20115.858%20189.5%20120V152C189.5%20156.142%20186.142%20159.5%20182%20159.5H10C5.85786%20159.5%202.5%20156.142%202.5%20152V120Z'%20stroke='%23404040'/%3e%3cpath%20d='M14%20136C14%20127.163%2021.1634%20120%2030%20120C38.8366%20120%2046%20127.163%2046%20136C46%20144.837%2038.8366%20152%2030%20152C21.1634%20152%2014%20144.837%2014%20136Z'%20fill='%23404040'/%3e%3cpath%20d='M56%20127C56%20124.791%2057.7909%20123%2060%20123H174C176.209%20123%20178%20124.791%20178%20127V130C178%20132.209%20176.209%20134%20174%20134H60C57.7909%20134%2056%20132.209%2056%20130V127Z'%20fill='%23404040'/%3e%3cpath%20d='M56%20142C56%20139.791%2057.7909%20138%2060%20138H112C114.209%20138%20116%20139.791%20116%20142V145C116%20147.209%20114.209%20149%20112%20149H60C57.7909%20149%2056%20147.209%2056%20145V142Z'%20fill='%23404040'/%3e%3crect%20x='2'%20width='188'%20height='56'%20fill='url(%23paint0_linear_5573_80525)'/%3e%3crect%20x='2'%20y='104'%20width='188'%20height='56'%20fill='url(%23paint1_linear_5573_80525)'/%3e%3cdefs%3e%3cfilter%20id='filter0_d_5573_80525'%20x='0'%20y='55'%20width='192'%20height='52'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dy='1'/%3e%3cfeGaussianBlur%20stdDeviation='1'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200.937255%200%200%200%200%200.780392%200%200%200%200%200.0117647%200%200%200%200.32%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow_5573_80525'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow_5573_80525'%20result='shape'/%3e%3c/filter%3e%3clinearGradient%20id='paint0_linear_5573_80525'%20x1='96'%20y1='0'%20x2='96'%20y2='56'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%232E2E2E'/%3e%3cstop%20offset='1'%20stop-color='%232E2E2E'%20stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint1_linear_5573_80525'%20x1='96'%20y1='160'%20x2='96'%20y2='104'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%232E2E2E'/%3e%3cstop%20offset='1'%20stop-color='%232E2E2E'%20stop-opacity='0'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e", fqn = () => {
|
|
264578
|
-
const [e, t] =
|
|
264580
|
+
const [e, t] = _e("light"), n = () => {
|
|
264579
264581
|
const r = localStorage.getItem("theme");
|
|
264580
264582
|
return r || "light";
|
|
264581
264583
|
};
|
|
@@ -264645,7 +264647,7 @@ const sqn = ({
|
|
|
264645
264647
|
(q, z) => new Date(z.createdAt).getTime() - new Date(q.createdAt).getTime()
|
|
264646
264648
|
), B = (q) => {
|
|
264647
264649
|
a(q), h && h !== q && d(null);
|
|
264648
|
-
}, [U, $] =
|
|
264650
|
+
}, [U, $] = _e({
|
|
264649
264651
|
name: o,
|
|
264650
264652
|
isEns: !1
|
|
264651
264653
|
});
|
|
@@ -264949,7 +264951,7 @@ const sqn = ({
|
|
|
264949
264951
|
isCollabDocumentPublished: r,
|
|
264950
264952
|
disableInlineComment: o
|
|
264951
264953
|
}) => {
|
|
264952
|
-
const { comments: i, username: a, dropdownRef: s, setIsBubbleMenuSuppressed: l } = _1(), u = Ue(o || !1), [c, d] =
|
|
264954
|
+
const { comments: i, username: a, dropdownRef: s, setIsBubbleMenuSuppressed: l } = _1(), u = Ue(o || !1), [c, d] = _e(!1);
|
|
264953
264955
|
Be(() => {
|
|
264954
264956
|
u.current = o || !1;
|
|
264955
264957
|
}, [o]), C5(s, (p) => {
|
|
@@ -265069,16 +265071,16 @@ function OM(e) {
|
|
|
265069
265071
|
const t = Ue(e);
|
|
265070
265072
|
return Xl(() => {
|
|
265071
265073
|
t.current = e;
|
|
265072
|
-
}),
|
|
265074
|
+
}), Ie(function() {
|
|
265073
265075
|
for (var n = arguments.length, r = new Array(n), o = 0; o < n; o++)
|
|
265074
265076
|
r[o] = arguments[o];
|
|
265075
265077
|
return t.current == null ? void 0 : t.current(...r);
|
|
265076
265078
|
}, []);
|
|
265077
265079
|
}
|
|
265078
265080
|
function mqn() {
|
|
265079
|
-
const e = Ue(null), t =
|
|
265081
|
+
const e = Ue(null), t = Ie((r, o) => {
|
|
265080
265082
|
e.current = setInterval(r, o);
|
|
265081
|
-
}, []), n =
|
|
265083
|
+
}, []), n = Ie(() => {
|
|
265082
265084
|
e.current !== null && (clearInterval(e.current), e.current = null);
|
|
265083
265085
|
}, []);
|
|
265084
265086
|
return [t, n];
|
|
@@ -265102,7 +265104,7 @@ function Tv(e, t) {
|
|
|
265102
265104
|
);
|
|
265103
265105
|
}
|
|
265104
265106
|
function jk(e) {
|
|
265105
|
-
const t = OM(e), n = Ue(null), r =
|
|
265107
|
+
const t = OM(e), n = Ue(null), r = Ie(
|
|
265106
265108
|
(o) => {
|
|
265107
265109
|
o !== n.current && (t == null || t(o, n.current)), n.current = o;
|
|
265108
265110
|
},
|
|
@@ -265274,9 +265276,9 @@ function kqn(e) {
|
|
|
265274
265276
|
}, n);
|
|
265275
265277
|
}
|
|
265276
265278
|
function Fqn() {
|
|
265277
|
-
const [e, t] =
|
|
265279
|
+
const [e, t] = _e("");
|
|
265278
265280
|
return {
|
|
265279
|
-
announce:
|
|
265281
|
+
announce: Ie((r) => {
|
|
265280
265282
|
r != null && t(r);
|
|
265281
265283
|
}, []),
|
|
265282
265284
|
announcement: e
|
|
@@ -265292,8 +265294,8 @@ function Cqn(e) {
|
|
|
265292
265294
|
}, [e, t]);
|
|
265293
265295
|
}
|
|
265294
265296
|
function Dqn() {
|
|
265295
|
-
const [e] =
|
|
265296
|
-
return [
|
|
265297
|
+
const [e] = _e(() => /* @__PURE__ */ new Set()), t = Ie((r) => (e.add(r), () => e.delete(r)), [e]);
|
|
265298
|
+
return [Ie((r) => {
|
|
265297
265299
|
let {
|
|
265298
265300
|
type: o,
|
|
265299
265301
|
event: i
|
|
@@ -265348,7 +265350,7 @@ function Aqn(e) {
|
|
|
265348
265350
|
const {
|
|
265349
265351
|
announce: i,
|
|
265350
265352
|
announcement: a
|
|
265351
|
-
} = Fqn(), s = jv("DndLiveRegion"), [l, u] =
|
|
265353
|
+
} = Fqn(), s = jv("DndLiveRegion"), [l, u] = _e(!1);
|
|
265352
265354
|
if (Be(() => {
|
|
265353
265355
|
u(!0);
|
|
265354
265356
|
}, []), Cqn(ot(() => ({
|
|
@@ -266324,7 +266326,7 @@ function aVn(e) {
|
|
|
266324
266326
|
case T4.DraggableRect:
|
|
266325
266327
|
return o;
|
|
266326
266328
|
}
|
|
266327
|
-
}, [n, o, l]), v = Ue(null), x =
|
|
266329
|
+
}, [n, o, l]), v = Ue(null), x = Ie(() => {
|
|
266328
266330
|
const F = v.current;
|
|
266329
266331
|
if (!F)
|
|
266330
266332
|
return;
|
|
@@ -266451,11 +266453,11 @@ function dVn(e, t) {
|
|
|
266451
266453
|
dependencies: r,
|
|
266452
266454
|
config: o
|
|
266453
266455
|
} = t;
|
|
266454
|
-
const [i, a] =
|
|
266456
|
+
const [i, a] = _e(null), {
|
|
266455
266457
|
frequency: s,
|
|
266456
266458
|
measure: l,
|
|
266457
266459
|
strategy: u
|
|
266458
|
-
} = o, c = Ue(e), d = m(), f = H6(d), h =
|
|
266460
|
+
} = o, c = Ue(e), d = m(), f = H6(d), h = Ie(function(y) {
|
|
266459
266461
|
y === void 0 && (y = []), !f.current && a((b) => b === null ? y : b.concat(y.filter((v) => !b.includes(v))));
|
|
266460
266462
|
}, [f]), p = Ue(null), g = Tv((y) => {
|
|
266461
266463
|
if (d && !n)
|
|
@@ -266559,7 +266561,7 @@ function pVn(e) {
|
|
|
266559
266561
|
}
|
|
266560
266562
|
function lse(e, t, n) {
|
|
266561
266563
|
t === void 0 && (t = pVn);
|
|
266562
|
-
const [r, o] =
|
|
266564
|
+
const [r, o] = _e(null);
|
|
266563
266565
|
function i() {
|
|
266564
266566
|
o((l) => {
|
|
266565
266567
|
if (!e)
|
|
@@ -266608,7 +266610,7 @@ function mVn(e) {
|
|
|
266608
266610
|
}, [e]), n;
|
|
266609
266611
|
}
|
|
266610
266612
|
function yVn(e) {
|
|
266611
|
-
const [t, n] =
|
|
266613
|
+
const [t, n] = _e(null), r = Ue(e), o = Ie((i) => {
|
|
266612
266614
|
const a = fL(i.target);
|
|
266613
266615
|
a && n((s) => s ? (s.set(a, rO(a)), new Map(s)) : null);
|
|
266614
266616
|
}, []);
|
|
@@ -266692,7 +266694,7 @@ function rMe(e) {
|
|
|
266692
266694
|
const dse = [];
|
|
266693
266695
|
function xVn(e, t) {
|
|
266694
266696
|
t === void 0 && (t = x3);
|
|
266695
|
-
const [n] = e, r = rMe(n ? Yi(n) : null), [o, i] =
|
|
266697
|
+
const [n] = e, r = rMe(n ? Yi(n) : null), [o, i] = _e(dse);
|
|
266696
266698
|
function a() {
|
|
266697
266699
|
i(() => e.length ? e.map((l) => XDe(l) ? r : new UW(t(l), l)) : dse);
|
|
266698
266700
|
}
|
|
@@ -266715,7 +266717,7 @@ function wVn(e) {
|
|
|
266715
266717
|
let {
|
|
266716
266718
|
measure: t
|
|
266717
266719
|
} = e;
|
|
266718
|
-
const [n, r] =
|
|
266720
|
+
const [n, r] = _e(null), o = Ie((u) => {
|
|
266719
266721
|
for (const {
|
|
266720
266722
|
target: c
|
|
266721
266723
|
} of u)
|
|
@@ -266732,7 +266734,7 @@ function wVn(e) {
|
|
|
266732
266734
|
}
|
|
266733
266735
|
}, [t]), i = PM({
|
|
266734
266736
|
callback: o
|
|
266735
|
-
}), a =
|
|
266737
|
+
}), a = Ie((u) => {
|
|
266736
266738
|
const c = oMe(u);
|
|
266737
266739
|
i == null || i.disconnect(), c && (i == null || i.observe(c)), r(c ? t(c) : null);
|
|
266738
266740
|
}, [t, i]), [s, l] = jk(a);
|
|
@@ -267055,7 +267057,7 @@ const TVn = /* @__PURE__ */ $i(function(t) {
|
|
|
267055
267057
|
modifiers: h,
|
|
267056
267058
|
...p
|
|
267057
267059
|
} = t;
|
|
267058
|
-
const g = Nse(MVn, void 0, DVn), [m, y] = g, [b, v] = Dqn(), [x, w] =
|
|
267060
|
+
const g = Nse(MVn, void 0, DVn), [m, y] = g, [b, v] = Dqn(), [x, w] = _e(Id.Uninitialized), F = x === Id.Initialized, {
|
|
267059
267061
|
draggable: {
|
|
267060
267062
|
active: C,
|
|
267061
267063
|
nodes: D,
|
|
@@ -267075,7 +267077,7 @@ const TVn = /* @__PURE__ */ $i(function(t) {
|
|
|
267075
267077
|
data: (Ge = _ == null ? void 0 : _.data) != null ? Ge : FVn,
|
|
267076
267078
|
rect: S
|
|
267077
267079
|
} : null;
|
|
267078
|
-
}, [C, _]), E = Ue(null), [j, N] =
|
|
267080
|
+
}, [C, _]), E = Ue(null), [j, N] = _e(null), [I, B] = _e(null), U = H6(p, Object.values(p)), $ = jv("DndDescribedBy", a), q = ot(() => R.getEnabled(), [R]), z = AVn(f), {
|
|
267079
267081
|
droppableRects: Y,
|
|
267080
267082
|
measureDroppableContainers: se,
|
|
267081
267083
|
measuringScheduled: oe
|
|
@@ -267129,7 +267131,7 @@ const TVn = /* @__PURE__ */ $i(function(t) {
|
|
|
267129
267131
|
droppableRects: Y,
|
|
267130
267132
|
droppableContainers: q,
|
|
267131
267133
|
pointerCoordinates: pe
|
|
267132
|
-
}) : null, we = Iqn(me, "id"), [ve, Se] =
|
|
267134
|
+
}) : null, we = Iqn(me, "id"), [ve, Se] = _e(null), Le = J ? xe : mg(xe, H), ye = Pqn(Le, (i = ve == null ? void 0 : ve.rect) != null ? i : null, P), je = Ue(null), Pe = Ie(
|
|
267133
267135
|
(Ge, Ve) => {
|
|
267134
267136
|
let {
|
|
267135
267137
|
sensor: Ke,
|
|
@@ -267254,7 +267256,7 @@ const TVn = /* @__PURE__ */ $i(function(t) {
|
|
|
267254
267256
|
},
|
|
267255
267257
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
267256
267258
|
[D]
|
|
267257
|
-
), We =
|
|
267259
|
+
), We = Ie((Ge, Ve) => (Ke, yt) => {
|
|
267258
267260
|
const lt = Ke.nativeEvent, Dt = D.get(yt);
|
|
267259
267261
|
if (
|
|
267260
267262
|
// Another sensor is already instantiating
|
|
@@ -267505,7 +267507,7 @@ function BVn(e) {
|
|
|
267505
267507
|
} = {
|
|
267506
267508
|
...IVn,
|
|
267507
267509
|
...o
|
|
267508
|
-
}, y = H6(g ?? r), b =
|
|
267510
|
+
}, y = H6(g ?? r), b = Ie(
|
|
267509
267511
|
() => {
|
|
267510
267512
|
if (!d.current) {
|
|
267511
267513
|
d.current = !0;
|
|
@@ -267520,7 +267522,7 @@ function BVn(e) {
|
|
|
267520
267522
|
), v = PM({
|
|
267521
267523
|
callback: b,
|
|
267522
267524
|
disabled: p || !a
|
|
267523
|
-
}), x =
|
|
267525
|
+
}), x = Ie((D, T) => {
|
|
267524
267526
|
v && (T && (v.unobserve(T), d.current = !1), D && v.observe(D));
|
|
267525
267527
|
}, [v]), [w, F] = jk(x), C = H6(t);
|
|
267526
267528
|
return Be(() => {
|
|
@@ -267564,7 +267566,7 @@ function OVn(e) {
|
|
|
267564
267566
|
animation: t,
|
|
267565
267567
|
children: n
|
|
267566
267568
|
} = e;
|
|
267567
|
-
const [r, o] =
|
|
267569
|
+
const [r, o] = _e(null), [i, a] = _e(null), s = Lk(n);
|
|
267568
267570
|
return !n && !r && s && o(s), Xl(() => {
|
|
267569
267571
|
if (!i)
|
|
267570
267572
|
return;
|
|
@@ -268021,7 +268023,7 @@ function sWn(e) {
|
|
|
268021
268023
|
node: r,
|
|
268022
268024
|
rect: o
|
|
268023
268025
|
} = e;
|
|
268024
|
-
const [i, a] =
|
|
268026
|
+
const [i, a] = _e(null), s = Ue(n);
|
|
268025
268027
|
return Xl(() => {
|
|
268026
268028
|
if (!t && n !== s.current && r.current) {
|
|
268027
268029
|
const l = o.current;
|
|
@@ -268208,7 +268210,7 @@ const pMe = $i(
|
|
|
268208
268210
|
orientation: r
|
|
268209
268211
|
// onItemRemove,
|
|
268210
268212
|
}) => {
|
|
268211
|
-
const o =
|
|
268213
|
+
const o = Ie(
|
|
268212
268214
|
(s) => {
|
|
268213
268215
|
s.preventDefault(), s.stopPropagation(), t(s, e.id);
|
|
268214
268216
|
},
|
|
@@ -268247,10 +268249,10 @@ const gMe = $i(() => /* @__PURE__ */ M.jsx("p", { className: "text-helper-text-s
|
|
|
268247
268249
|
gMe.displayName = "ToCEmptyState";
|
|
268248
268250
|
const mMe = $i(
|
|
268249
268251
|
({ items: e = [], editor: t, setItems: n, orientation: r }) => {
|
|
268250
|
-
const [o, i] =
|
|
268252
|
+
const [o, i] = _e(null), a = Br("(max-width: 1280px)"), s = Ue(null), l = Ue(0), u = Ue(null), c = ot(() => e.map((m) => ({
|
|
268251
268253
|
...m,
|
|
268252
268254
|
isActive: m.id === o
|
|
268253
|
-
})), [e, o]), d =
|
|
268255
|
+
})), [e, o]), d = Ie(() => {
|
|
268254
268256
|
var m;
|
|
268255
268257
|
if (t && ((m = t.view) != null && m.dom) && (!s.current || Date.now() - l.current > 250)) {
|
|
268256
268258
|
const y = /* @__PURE__ */ new Map();
|
|
@@ -268272,7 +268274,7 @@ const mMe = $i(
|
|
|
268272
268274
|
t.off("update", m), t.off("selectionUpdate", m), u.current && cancelAnimationFrame(u.current);
|
|
268273
268275
|
};
|
|
268274
268276
|
}, [t, d]);
|
|
268275
|
-
const f =
|
|
268277
|
+
const f = Ie(
|
|
268276
268278
|
(m) => {
|
|
268277
268279
|
if (!t) return;
|
|
268278
268280
|
const { doc: y } = t.state;
|
|
@@ -268287,7 +268289,7 @@ const mMe = $i(
|
|
|
268287
268289
|
}), b !== -1 && t.chain().setNodeSelection(b).updateAttributes("heading", { isCollapsed: !1 }).run();
|
|
268288
268290
|
},
|
|
268289
268291
|
[t]
|
|
268290
|
-
), h =
|
|
268292
|
+
), h = Ie(
|
|
268291
268293
|
(m) => {
|
|
268292
268294
|
if (!t) return;
|
|
268293
268295
|
f(m);
|
|
@@ -268315,7 +268317,7 @@ const mMe = $i(
|
|
|
268315
268317
|
}
|
|
268316
268318
|
},
|
|
268317
268319
|
[e, t, f]
|
|
268318
|
-
), p =
|
|
268320
|
+
), p = Ie(
|
|
268319
268321
|
(m, y) => {
|
|
268320
268322
|
var b;
|
|
268321
268323
|
if (m.preventDefault(), m.stopPropagation(), i(y), t && ((b = t.view) != null && b.dom)) {
|
|
@@ -268350,7 +268352,7 @@ const mMe = $i(
|
|
|
268350
268352
|
}
|
|
268351
268353
|
},
|
|
268352
268354
|
[t, h, d, a]
|
|
268353
|
-
), g =
|
|
268355
|
+
), g = Ie(
|
|
268354
268356
|
(m, y) => {
|
|
268355
268357
|
m.preventDefault(), m.stopPropagation(), n((b) => {
|
|
268356
268358
|
var w;
|
|
@@ -268548,7 +268550,7 @@ function FWn(e) {
|
|
|
268548
268550
|
return t = e(s, a), { get: a, set: s, subscribe: l };
|
|
268549
268551
|
}
|
|
268550
268552
|
function CWn(e) {
|
|
268551
|
-
let [t] =
|
|
268553
|
+
let [t] = _e(e);
|
|
268552
268554
|
return t;
|
|
268553
268555
|
}
|
|
268554
268556
|
function DWn(e) {
|
|
@@ -268560,14 +268562,14 @@ function DWn(e) {
|
|
|
268560
268562
|
}, Provider: ({ store: n, children: r }) => M.jsx(t.Provider, { value: n, children: r }) };
|
|
268561
268563
|
}
|
|
268562
268564
|
function ds(e, t, n = Object.is) {
|
|
268563
|
-
let [r, o] =
|
|
268565
|
+
let [r, o] = _e(() => t(e.get()));
|
|
268564
268566
|
return Be(() => e.subscribe(() => {
|
|
268565
268567
|
let i = t(e.get());
|
|
268566
268568
|
o((a) => n(a, i) ? a : i);
|
|
268567
268569
|
}), [e, t, n]), Ok(r), r;
|
|
268568
268570
|
}
|
|
268569
268571
|
function zu(e, t, n) {
|
|
268570
|
-
let r =
|
|
268572
|
+
let r = Ie((o) => o[t], [t]);
|
|
268571
268573
|
return ds(e, r, n);
|
|
268572
268574
|
}
|
|
268573
268575
|
var Cse = 2;
|
|
@@ -268664,7 +268666,7 @@ function MMe() {
|
|
|
268664
268666
|
return iEe(t);
|
|
268665
268667
|
}
|
|
268666
268668
|
function EMe(e = "✋") {
|
|
268667
|
-
let t = Ia(), n = zu(t, "skinTone"), r = ot(() => PWn(e), [e]), o =
|
|
268669
|
+
let t = Ia(), n = zu(t, "skinTone"), r = ot(() => PWn(e), [e]), o = Ie((i) => {
|
|
268668
268670
|
t.set({ skinTone: i });
|
|
268669
268671
|
}, []);
|
|
268670
268672
|
return [n, o, r];
|
|
@@ -268695,10 +268697,10 @@ function HWn(e) {
|
|
|
268695
268697
|
let t = Ue(e);
|
|
268696
268698
|
return xl(() => {
|
|
268697
268699
|
t.current = e;
|
|
268698
|
-
}),
|
|
268700
|
+
}), Ie((...n) => t.current(...n), []);
|
|
268699
268701
|
}
|
|
268700
268702
|
function qWn({ emojiVersion: e, emojibaseUrl: t }) {
|
|
268701
|
-
let [n, r] =
|
|
268703
|
+
let [n, r] = _e(void 0), o = Ia(), i = zu(o, "locale"), a = zu(o, "columns"), s = zu(o, "skinTone"), l = zu(o, "search");
|
|
268702
268704
|
return Be(() => {
|
|
268703
268705
|
let u = new AbortController(), c = u.signal;
|
|
268704
268706
|
return vWn({ locale: i, emojiVersion: e, emojibaseUrl: t, signal: c }).then((d) => {
|
|
@@ -268715,7 +268717,7 @@ function qWn({ emojiVersion: e, emojibaseUrl: t }) {
|
|
|
268715
268717
|
}, [n, a, s, l]), null;
|
|
268716
268718
|
}
|
|
268717
268719
|
var AMe = dn(({ locale: e = "en", columns: t = 9, skinTone: n = "none", onEmojiSelect: r = zWn, emojiVersion: o, emojibaseUrl: i, onFocusCapture: a, onBlurCapture: s, children: l, style: u, sticky: c = !0, ...d }, f) => {
|
|
268718
|
-
let h = HWn(r), p = CWn(() => MWn(h, kse(e), t, c, Fse(n))), [g, m] =
|
|
268720
|
+
let h = HWn(r), p = CWn(() => MWn(h, kse(e), t, c, Fse(n))), [g, m] = _e(!1), y = Ue(null), b = Ie((w) => {
|
|
268719
268721
|
w && (y.current = w, p.set({ rootRef: y }));
|
|
268720
268722
|
}, []);
|
|
268721
268723
|
xl(() => {
|
|
@@ -268727,11 +268729,11 @@ var AMe = dn(({ locale: e = "en", columns: t = 9, skinTone: n = "none", onEmojiS
|
|
|
268727
268729
|
}, [c]), xl(() => {
|
|
268728
268730
|
p.set({ skinTone: Fse(n) });
|
|
268729
268731
|
}, [n]);
|
|
268730
|
-
let v =
|
|
268732
|
+
let v = Ie((w) => {
|
|
268731
268733
|
a == null || a(w);
|
|
268732
268734
|
let { searchRef: F, viewportRef: C } = p.get(), D = w.target === (F == null ? void 0 : F.current) || w.target.hasAttribute("frimousse-search"), T = w.target === (C == null ? void 0 : C.current) || w.target.hasAttribute("frimousse-viewport");
|
|
268733
268735
|
w.isDefaultPrevented() || (m(D || T), w.isDefaultPrevented() || (m(D || T), T ? p.get().onActiveEmojiChange("keyboard", 0, 0) : D && p.get().search === "" && p.set({ interaction: "none" })));
|
|
268734
|
-
}, [a]), x =
|
|
268736
|
+
}, [a]), x = Ie((w) => {
|
|
268735
268737
|
s == null || s(w), !w.isDefaultPrevented() && !w.currentTarget.contains(w.relatedTarget) && m(!1);
|
|
268736
268738
|
}, [s]);
|
|
268737
268739
|
return xl(() => {
|
|
@@ -268788,7 +268790,7 @@ var AMe = dn(({ locale: e = "en", columns: t = 9, skinTone: n = "none", onEmojiS
|
|
|
268788
268790
|
return R && y.current.style.setProperty("--frimousse-viewport-width", `${R}px`), _ && y.current.style.setProperty("--frimousse-viewport-height", `${_}px`), S && y.current.style.setProperty("--frimousse-row-height", `${S}px`), L && y.current.style.setProperty("--frimousse-category-header-height", `${L}px`), T;
|
|
268789
268791
|
}, []), M.jsx("div", { "data-focused": g ? "" : void 0, "frimousse-root": "", onBlurCapture: x, onFocusCapture: v, ...d, ref: b, style: { "--frimousse-emoji-font": bMe, ...u }, children: M.jsxs(EWn, { store: p, children: [M.jsx(qWn, { emojiVersion: o, emojibaseUrl: i }), l] }) });
|
|
268790
268792
|
}), SMe = dn(({ value: e, defaultValue: t, onChange: n, ...r }, o) => {
|
|
268791
|
-
let i = Ia(), a = Ue(null), s =
|
|
268793
|
+
let i = Ia(), a = Ue(null), s = Ie((d) => {
|
|
268792
268794
|
d && (a.current = d, i.set({ searchRef: a }));
|
|
268793
268795
|
}, []), l = typeof e == "string", u = Ue(l);
|
|
268794
268796
|
Be(() => {
|
|
@@ -268798,7 +268800,7 @@ var AMe = dn(({ locale: e = "en", columns: t = 9, skinTone: n = "none", onEmojiS
|
|
|
268798
268800
|
}, []), xl(() => {
|
|
268799
268801
|
typeof e == "string" && i.get().onSearchChange(e);
|
|
268800
268802
|
}, [e]);
|
|
268801
|
-
let c =
|
|
268803
|
+
let c = Ie((d) => {
|
|
268802
268804
|
n == null || n(d), d.isDefaultPrevented() || i.get().onSearchChange(d.target.value);
|
|
268803
268805
|
}, [n]);
|
|
268804
268806
|
return bm(o, () => a.current), M.jsx("input", { autoCapitalize: "off", autoComplete: "off", autoCorrect: "off", enterKeyHint: "done", "frimousse-search": "", placeholder: "Search…", spellCheck: !1, type: "search", ...r, defaultValue: t, onChange: c, ref: s, value: e });
|
|
@@ -268806,9 +268808,9 @@ var AMe = dn(({ locale: e = "en", columns: t = 9, skinTone: n = "none", onEmojiS
|
|
|
268806
268808
|
let e = MMe();
|
|
268807
268809
|
return e ? M.jsx("div", { "aria-live": "polite", style: { border: 0, clip: "rect(0, 0, 0, 0)", height: 1, margin: -1, overflow: "hidden", padding: 0, position: "absolute", whiteSpace: "nowrap", width: 1, wordWrap: "normal" }, children: e.label }) : null;
|
|
268808
268810
|
}), TMe = dn(({ children: e, onScroll: t, onKeyDown: n, style: r, ...o }, i) => {
|
|
268809
|
-
let a = Ia(), s = Ue(null), l =
|
|
268811
|
+
let a = Ia(), s = Ue(null), l = Ie((f) => {
|
|
268810
268812
|
f && (s.current = f, a.set({ viewportRef: s }));
|
|
268811
|
-
}, []), u = ds(a, CMe), c = ds(a, jWn), d =
|
|
268813
|
+
}, []), u = ds(a, CMe), c = ds(a, jWn), d = Ie((f) => {
|
|
268812
268814
|
t == null || t(f), a.get().onViewportScroll(f.currentTarget.scrollTop);
|
|
268813
268815
|
}, [t]);
|
|
268814
268816
|
return xl(() => {
|
|
@@ -268848,11 +268850,11 @@ var $Wn = $i(({ Emoji: e, emoji: t, columnIndex: n, rowIndex: r }) => {
|
|
|
268848
268850
|
let o = Ia(), i = ds(o, (u) => {
|
|
268849
268851
|
var c;
|
|
268850
268852
|
return ((c = $W(u)) == null ? void 0 : c.emoji) === t.emoji;
|
|
268851
|
-
}), a =
|
|
268853
|
+
}), a = Ie(() => {
|
|
268852
268854
|
o.get().onEmojiSelect(t);
|
|
268853
|
-
}, [t]), s =
|
|
268855
|
+
}, [t]), s = Ie(() => {
|
|
268854
268856
|
o.get().onActiveEmojiChange("pointer", n, r);
|
|
268855
|
-
}, [n, r]), l =
|
|
268857
|
+
}, [n, r]), l = Ie(() => {
|
|
268856
268858
|
o.get().onActiveEmojiReset();
|
|
268857
268859
|
}, []);
|
|
268858
268860
|
return M.jsx(e, { ...jMe(t, n, i), onClick: a, onPointerDown: WWn, onPointerEnter: s, onPointerLeave: l });
|
|
@@ -268897,7 +268899,7 @@ function XWn({ ...e }) {
|
|
|
268897
268899
|
return M.jsx("div", { ...e });
|
|
268898
268900
|
}
|
|
268899
268901
|
var IMe = dn(({ style: e, components: t, ...n }, r) => {
|
|
268900
|
-
let o = Ia(), i = Ue(null), a =
|
|
268902
|
+
let o = Ia(), i = Ue(null), a = Ie((y) => {
|
|
268901
268903
|
y && (i.current = y, o.set({ listRef: i }));
|
|
268902
268904
|
}, []), s = (t == null ? void 0 : t.CategoryHeader) ?? KWn, l = (t == null ? void 0 : t.Emoji) ?? YWn, u = (t == null ? void 0 : t.Row) ?? XWn, c = zu(o, "columns"), d = zu(o, "viewportStartRowIndex"), f = zu(o, "viewportEndRowIndex"), h = ds(o, CMe), p = ds(o, LWn, GW), g = ot(() => (p == null ? void 0 : p.filter((y) => y < d).length) ?? 0, [p, d]), m = (p == null ? void 0 : p.length) ?? 0;
|
|
268903
268905
|
return bm(r, () => i.current), !h || !p || m === 0 ? M.jsx("div", { ...Ese(c, 0, e), ...n, children: M.jsx("div", { ...Mse(0, 0, 0, 0), children: M.jsx(Ase, { CategoryHeader: s, Emoji: l, Row: u }) }) }) : M.jsx("div", { ...Ese(c, h, e), ...n, ref: a, children: M.jsxs("div", { ...Mse(h, m, d, g), children: [M.jsx(Ase, { CategoryHeader: s, Emoji: l, Row: u }), Array.from({ length: f - d + 1 }, (y, b) => {
|
|
@@ -268905,7 +268907,7 @@ var IMe = dn(({ style: e, components: t, ...n }, r) => {
|
|
|
268905
268907
|
return M.jsxs(G1, { children: [x >= 0 && M.jsx("div", { style: { height: "var(--frimousse-category-header-height)" } }), M.jsx(GWn, { Emoji: l, Row: u, rowIndex: v })] }, v);
|
|
268906
268908
|
}), Array.from({ length: m }, (y, b) => M.jsx(ZWn, { CategoryHeader: s, categoryIndex: b }, b))] }) });
|
|
268907
268909
|
}), BMe = dn(({ emoji: e, onClick: t, "aria-label": n = "Change skin tone", ...r }, o) => {
|
|
268908
|
-
let i = Ia(), a = ds(i, NWn, GW), [s, l, u] = EMe(e), c = ot(() => Math.max(0, u.findIndex((m) => m.skinTone === s)), [s, u]), d = u[c], f = u[(c + 1) % u.length].skinTone, h = s === "none" || a == null ? void 0 : a[s], p = f === "none" || a == null ? void 0 : a[f], g =
|
|
268910
|
+
let i = Ia(), a = ds(i, NWn, GW), [s, l, u] = EMe(e), c = ot(() => Math.max(0, u.findIndex((m) => m.skinTone === s)), [s, u]), d = u[c], f = u[(c + 1) % u.length].skinTone, h = s === "none" || a == null ? void 0 : a[s], p = f === "none" || a == null ? void 0 : a[f], g = Ie((m) => {
|
|
268909
268911
|
t == null || t(m), m.isDefaultPrevented() || l(f);
|
|
268910
268912
|
}, [t, l, f]);
|
|
268911
268913
|
return M.jsx("button", { type: "button", ...r, "aria-label": n + (p ? ` (${p})` : ""), "aria-live": "polite", "aria-valuetext": h, "frimousse-skin-tone-selector": "", onClick: g, ref: o, children: d.emoji });
|
|
@@ -269043,29 +269045,31 @@ const o$n = [
|
|
|
269043
269045
|
emoji: e,
|
|
269044
269046
|
setEmoji: t,
|
|
269045
269047
|
isEditing: n,
|
|
269046
|
-
openPickerTrigger: r = 0
|
|
269048
|
+
openPickerTrigger: r = 0,
|
|
269049
|
+
disableEmoji: o
|
|
269047
269050
|
}) => {
|
|
269048
|
-
const [
|
|
269049
|
-
return C5([
|
|
269050
|
-
|
|
269051
|
+
const [i, a] = _e(!1), s = Ue(null), l = Ue(null), [u, c] = _e(!1), d = Br("(max-width: 1000px)", { defaultValue: !0 });
|
|
269052
|
+
return C5([s, l], (f) => {
|
|
269053
|
+
s.current && // eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
269051
269054
|
// @ts-ignore
|
|
269052
|
-
!
|
|
269055
|
+
!s.current.contains(f.target) && a(!1);
|
|
269053
269056
|
}), Be(() => {
|
|
269054
|
-
r <= 0 || (
|
|
269057
|
+
r <= 0 || (c(!1), a(!0));
|
|
269055
269058
|
}, [r]), /* @__PURE__ */ M.jsxs(M.Fragment, { children: [
|
|
269056
269059
|
e ? /* @__PURE__ */ M.jsxs(
|
|
269057
269060
|
E1,
|
|
269058
269061
|
{
|
|
269059
|
-
onOpenChange: (
|
|
269060
|
-
|
|
269062
|
+
onOpenChange: (f) => {
|
|
269063
|
+
f || c(!1);
|
|
269061
269064
|
},
|
|
269062
|
-
open:
|
|
269065
|
+
open: u,
|
|
269063
269066
|
children: [
|
|
269064
269067
|
/* @__PURE__ */ M.jsx(
|
|
269065
269068
|
A1,
|
|
269066
269069
|
{
|
|
269067
269070
|
"data-emoji-picker": !0,
|
|
269068
|
-
onClick: (
|
|
269071
|
+
onClick: (f) => f.stopPropagation(),
|
|
269072
|
+
disabled: o,
|
|
269069
269073
|
children: /* @__PURE__ */ M.jsx(
|
|
269070
269074
|
Vt,
|
|
269071
269075
|
{
|
|
@@ -269073,8 +269077,8 @@ const o$n = [
|
|
|
269073
269077
|
className: Ae(
|
|
269074
269078
|
"!min-w-[16px] !min-h-[16px] !w-[16px] !h-[16px] !p-0 flex items-center justify-center !hover:bg-transparent"
|
|
269075
269079
|
),
|
|
269076
|
-
onClick: (
|
|
269077
|
-
|
|
269080
|
+
onClick: (f) => {
|
|
269081
|
+
f.preventDefault(), i && a(!1), c(!u);
|
|
269078
269082
|
},
|
|
269079
269083
|
children: /* @__PURE__ */ M.jsx("span", { className: " text-[16px] leading-[16px] w-[16px] flex items-center justify-center", children: e })
|
|
269080
269084
|
}
|
|
@@ -269095,7 +269099,7 @@ const o$n = [
|
|
|
269095
269099
|
"div",
|
|
269096
269100
|
{
|
|
269097
269101
|
onClick: () => {
|
|
269098
|
-
|
|
269102
|
+
a(!0), c(!1);
|
|
269099
269103
|
},
|
|
269100
269104
|
className: "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30px] border-radius-sm flex items-center",
|
|
269101
269105
|
children: [
|
|
@@ -269108,7 +269112,7 @@ const o$n = [
|
|
|
269108
269112
|
"div",
|
|
269109
269113
|
{
|
|
269110
269114
|
onClick: () => {
|
|
269111
|
-
t(""),
|
|
269115
|
+
t(""), c(!1);
|
|
269112
269116
|
},
|
|
269113
269117
|
className: Ae(
|
|
269114
269118
|
"space-xsm cursor-pointer min-w-[144px] gap-xsm hover:color-bg-default-hover border-radius-sm h-[30px] color-border-default flex items-center"
|
|
@@ -269127,32 +269131,32 @@ const o$n = [
|
|
|
269127
269131
|
) : /* @__PURE__ */ M.jsx("div", { className: "flex items-center", "data-emoji-picker": !0, children: /* @__PURE__ */ M.jsx(Nn, { position: "top", text: "Choose emoji", children: /* @__PURE__ */ M.jsx(
|
|
269128
269132
|
qe,
|
|
269129
269133
|
{
|
|
269130
|
-
ref:
|
|
269134
|
+
ref: l,
|
|
269131
269135
|
onClick: () => {
|
|
269132
|
-
|
|
269136
|
+
o || a(!i);
|
|
269133
269137
|
},
|
|
269134
269138
|
name: n ? "SmilePlus" : "FileText",
|
|
269135
269139
|
className: "w-[16px] shrink-0"
|
|
269136
269140
|
}
|
|
269137
269141
|
) }) }),
|
|
269138
|
-
|
|
269142
|
+
i && /* @__PURE__ */ M.jsx(
|
|
269139
269143
|
"div",
|
|
269140
269144
|
{
|
|
269141
269145
|
"data-emoji-picker": !0,
|
|
269142
|
-
ref:
|
|
269146
|
+
ref: s,
|
|
269143
269147
|
className: Ae(
|
|
269144
269148
|
"absolute top-[35px] z-10 ",
|
|
269145
|
-
|
|
269149
|
+
d ? "left-[42px]" : "left-[9px]"
|
|
269146
269150
|
),
|
|
269147
269151
|
children: /* @__PURE__ */ M.jsxs(
|
|
269148
269152
|
s$n,
|
|
269149
269153
|
{
|
|
269150
269154
|
className: Ae(
|
|
269151
269155
|
"color-bg-default rounded-lg border shadow-md",
|
|
269152
|
-
|
|
269156
|
+
d ? "h-[287px]" : "h-[340px]"
|
|
269153
269157
|
),
|
|
269154
|
-
onEmojiSelect: ({ emoji:
|
|
269155
|
-
t(
|
|
269158
|
+
onEmojiSelect: ({ emoji: f }) => {
|
|
269159
|
+
t(f), a(!1);
|
|
269156
269160
|
},
|
|
269157
269161
|
children: [
|
|
269158
269162
|
/* @__PURE__ */ M.jsx(l$n, {}),
|
|
@@ -269356,7 +269360,7 @@ const p$n = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
269356
269360
|
isPreviewMode: y,
|
|
269357
269361
|
isVersionHistoryMode: b
|
|
269358
269362
|
}) => {
|
|
269359
|
-
const [v, x] =
|
|
269363
|
+
const [v, x] = _e(!1), [w, F] = _e(0), [C, D] = _e(t), T = Ue(C);
|
|
269360
269364
|
Be(() => {
|
|
269361
269365
|
v || D(t);
|
|
269362
269366
|
}, [t, v]);
|
|
@@ -269367,7 +269371,21 @@ const p$n = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
269367
269371
|
D(N), o(N), x(!1);
|
|
269368
269372
|
}, S = () => {
|
|
269369
269373
|
D(T.current), x(!1);
|
|
269370
|
-
},
|
|
269374
|
+
}, j = y ? [
|
|
269375
|
+
[
|
|
269376
|
+
{
|
|
269377
|
+
id: "copy-link",
|
|
269378
|
+
label: "Copy link",
|
|
269379
|
+
icon: "Share2"
|
|
269380
|
+
},
|
|
269381
|
+
{
|
|
269382
|
+
id: "toggle-outline",
|
|
269383
|
+
label: d ? "Hide outline" : "Show outline",
|
|
269384
|
+
icon: "List",
|
|
269385
|
+
onSelect: () => f == null ? void 0 : f(!d)
|
|
269386
|
+
}
|
|
269387
|
+
]
|
|
269388
|
+
] : [
|
|
269371
269389
|
[
|
|
269372
269390
|
{
|
|
269373
269391
|
id: "rename",
|
|
@@ -269417,21 +269435,7 @@ const p$n = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
269417
269435
|
visible: h
|
|
269418
269436
|
}
|
|
269419
269437
|
]
|
|
269420
|
-
]
|
|
269421
|
-
[
|
|
269422
|
-
{
|
|
269423
|
-
id: "copy-link",
|
|
269424
|
-
label: "Copy link",
|
|
269425
|
-
icon: "Share2"
|
|
269426
|
-
},
|
|
269427
|
-
{
|
|
269428
|
-
id: "toggle-outline",
|
|
269429
|
-
label: d ? "Hide outline" : "Show outline",
|
|
269430
|
-
icon: "List",
|
|
269431
|
-
onSelect: () => f == null ? void 0 : f(!d)
|
|
269432
|
-
}
|
|
269433
|
-
]
|
|
269434
|
-
], j = ot(() => y ? E : L, [y]);
|
|
269438
|
+
];
|
|
269435
269439
|
return /* @__PURE__ */ M.jsxs(
|
|
269436
269440
|
"div",
|
|
269437
269441
|
{
|
|
@@ -269451,6 +269455,7 @@ const p$n = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
269451
269455
|
setEmoji: (N) => {
|
|
269452
269456
|
x(!1), i(N);
|
|
269453
269457
|
},
|
|
269458
|
+
disableEmoji: !!(y || b),
|
|
269454
269459
|
isEditing: v,
|
|
269455
269460
|
openPickerTrigger: w
|
|
269456
269461
|
}
|
|
@@ -269473,7 +269478,7 @@ const p$n = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
269473
269478
|
) : /* @__PURE__ */ M.jsx("span", { className: "text-heading-xsm color-text-default flex-1 truncate select-none", children: C })
|
|
269474
269479
|
] }),
|
|
269475
269480
|
!b && /* @__PURE__ */ M.jsxs("div", { className: "flex gap-[8px] items-center", children: [
|
|
269476
|
-
/* @__PURE__ */ M.jsx("span", { className: "h-[18px] color-text-default text-[12px] text-helper-text-bold rounded-full min-w-[18px] text-center color-bg-tertiary", children: r }),
|
|
269481
|
+
r > 0 && /* @__PURE__ */ M.jsx("span", { className: "h-[18px] color-text-default text-[12px] text-helper-text-bold rounded-full min-w-[18px] text-center color-bg-tertiary", children: r }),
|
|
269477
269482
|
!c && /* @__PURE__ */ M.jsx(b$n, { sections: j })
|
|
269478
269483
|
] })
|
|
269479
269484
|
]
|
|
@@ -269553,30 +269558,30 @@ const p$n = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
269553
269558
|
tabCommentCounts: m,
|
|
269554
269559
|
isVersionHistoryMode: y
|
|
269555
269560
|
}) => {
|
|
269556
|
-
const b = (
|
|
269557
|
-
f(
|
|
269558
|
-
}, v = (
|
|
269559
|
-
f(
|
|
269561
|
+
const b = (S, L) => {
|
|
269562
|
+
f(S, { newName: L });
|
|
269563
|
+
}, v = (S, L) => {
|
|
269564
|
+
f(S, { emoji: L });
|
|
269560
269565
|
}, x = Tqn(
|
|
269561
269566
|
Sqn(qW, { activationConstraint: { distance: 5 } })
|
|
269562
|
-
), [w, F] =
|
|
269563
|
-
() => e.find((
|
|
269567
|
+
), [w, F] = _e(null), C = ot(
|
|
269568
|
+
() => e.find((S) => S.id === t),
|
|
269564
269569
|
[e, t]
|
|
269565
269570
|
), D = ot(
|
|
269566
|
-
() => e.find((
|
|
269571
|
+
() => e.find((S) => S.id === w),
|
|
269567
269572
|
[e, w]
|
|
269568
|
-
);
|
|
269573
|
+
), [T, R] = _e(!1), _ = !r && T;
|
|
269569
269574
|
return /* @__PURE__ */ M.jsxs(
|
|
269570
269575
|
TVn,
|
|
269571
269576
|
{
|
|
269572
269577
|
sensors: x,
|
|
269573
269578
|
collisionDetection: Bqn,
|
|
269574
|
-
onDragStart: (
|
|
269575
|
-
onDragEnd: (
|
|
269576
|
-
const { active:
|
|
269577
|
-
if (F(null),
|
|
269578
|
-
const
|
|
269579
|
-
p(
|
|
269579
|
+
onDragStart: (S) => F(S.active.id),
|
|
269580
|
+
onDragEnd: (S) => {
|
|
269581
|
+
const { active: L, over: E } = S;
|
|
269582
|
+
if (F(null), E && L.id !== E.id) {
|
|
269583
|
+
const j = L.id, N = E.id;
|
|
269584
|
+
p(N, j);
|
|
269580
269585
|
}
|
|
269581
269586
|
},
|
|
269582
269587
|
children: [
|
|
@@ -269584,7 +269589,7 @@ const p$n = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
269584
269589
|
tWn,
|
|
269585
269590
|
{
|
|
269586
269591
|
disabled: a || y,
|
|
269587
|
-
items: e.map((
|
|
269592
|
+
items: e.map((S) => S.id),
|
|
269588
269593
|
strategy: QVn,
|
|
269589
269594
|
children: /* @__PURE__ */ M.jsxs(
|
|
269590
269595
|
"div",
|
|
@@ -269604,10 +269609,13 @@ const p$n = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
269604
269609
|
"button",
|
|
269605
269610
|
{
|
|
269606
269611
|
type: "button",
|
|
269607
|
-
|
|
269612
|
+
onMouseEnter: () => !r && R(!0),
|
|
269613
|
+
onMouseLeave: () => R(!1),
|
|
269614
|
+
onClick: () => o == null ? void 0 : o((S) => !S),
|
|
269608
269615
|
className: dt(
|
|
269609
|
-
"group flex items-center h-[30px]
|
|
269610
|
-
!r && "hover:min-w-[156px]"
|
|
269616
|
+
"group flex items-center h-[30px] !min-w-[30px] min-h-[30px] p-[8px] rounded-full hover:color-bg-secondary-hover transition-[width,background-color] duration-200 ease-out overflow-hidden",
|
|
269617
|
+
!r && "hover:min-w-[156px] gap-[8px]",
|
|
269618
|
+
e.length > 0 && !r && "color-bg-secondary-hover"
|
|
269611
269619
|
),
|
|
269612
269620
|
children: [
|
|
269613
269621
|
/* @__PURE__ */ M.jsx(
|
|
@@ -269620,8 +269628,8 @@ const p$n = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
269620
269628
|
/* @__PURE__ */ M.jsx(
|
|
269621
269629
|
"span",
|
|
269622
269630
|
{
|
|
269623
|
-
className:
|
|
269624
|
-
children:
|
|
269631
|
+
className: "whitespace-nowrap text-heading-xsm color-text-default max-w-[110px] truncate transition-opacity duration-150",
|
|
269632
|
+
children: _ ? C == null ? void 0 : C.name : r ? null : e.length
|
|
269625
269633
|
}
|
|
269626
269634
|
)
|
|
269627
269635
|
]
|
|
@@ -269643,15 +269651,15 @@ const p$n = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
269643
269651
|
}
|
|
269644
269652
|
)
|
|
269645
269653
|
] }) }),
|
|
269646
|
-
e.map((
|
|
269654
|
+
e.map((S, L) => /* @__PURE__ */ M.jsx(
|
|
269647
269655
|
x$n,
|
|
269648
269656
|
{
|
|
269649
|
-
tab:
|
|
269650
|
-
tabIndex:
|
|
269657
|
+
tab: S,
|
|
269658
|
+
tabIndex: L,
|
|
269651
269659
|
tabCount: e.length,
|
|
269652
269660
|
handleEmojiChange: v,
|
|
269653
269661
|
handleNameChange: b,
|
|
269654
|
-
onClick: () => n(
|
|
269662
|
+
onClick: () => n(S.id),
|
|
269655
269663
|
editor: s,
|
|
269656
269664
|
tocItem: l,
|
|
269657
269665
|
setTocItems: u,
|
|
@@ -269662,15 +269670,15 @@ const p$n = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
269662
269670
|
isPreviewMode: a,
|
|
269663
269671
|
ydoc: g,
|
|
269664
269672
|
isVersionHistoryMode: y,
|
|
269665
|
-
commentCount: m[
|
|
269673
|
+
commentCount: m[S.id] || 0,
|
|
269666
269674
|
moveTabUp: () => {
|
|
269667
|
-
|
|
269675
|
+
L <= 0 || p(e[L - 1].id, S.id);
|
|
269668
269676
|
},
|
|
269669
269677
|
moveTabDown: () => {
|
|
269670
|
-
|
|
269678
|
+
L >= e.length - 1 || p(e[L + 1].id, S.id);
|
|
269671
269679
|
}
|
|
269672
269680
|
},
|
|
269673
|
-
|
|
269681
|
+
S.id
|
|
269674
269682
|
))
|
|
269675
269683
|
] })
|
|
269676
269684
|
]
|
|
@@ -269709,7 +269717,7 @@ const p$n = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
269709
269717
|
isPreviewMode: y,
|
|
269710
269718
|
isVersionHistoryMode: b
|
|
269711
269719
|
}) => {
|
|
269712
|
-
const [v, x] =
|
|
269720
|
+
const [v, x] = _e({
|
|
269713
269721
|
title: e.name,
|
|
269714
269722
|
showToc: e.showOutline,
|
|
269715
269723
|
emoji: e.emoji
|
|
@@ -269786,7 +269794,7 @@ const p$n = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
269786
269794
|
isPreviewMode: c
|
|
269787
269795
|
}) => {
|
|
269788
269796
|
var g;
|
|
269789
|
-
const [d, f] =
|
|
269797
|
+
const [d, f] = _e(!0), h = (m, y) => {
|
|
269790
269798
|
s(m, { newName: y });
|
|
269791
269799
|
}, p = (m, y) => {
|
|
269792
269800
|
s(m, { emoji: y });
|
|
@@ -270145,15 +270153,15 @@ const p$n = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
270145
270153
|
)) return !1;
|
|
270146
270154
|
const { state: f } = u, { selection: h } = f, p = Zk(h.$from, u.schema.marks.link);
|
|
270147
270155
|
return p ? f.doc.textBetween(p.from, p.to) === c : !1;
|
|
270148
|
-
}, i =
|
|
270156
|
+
}, i = Ie(() => {
|
|
270149
270157
|
const u = e.state.selection.to, c = e.getAttributes("link").href;
|
|
270150
270158
|
e.commands.extendMarkRange("link", { href: c }), e.chain().focus().setTextSelection(u).unsetMark("link").insertContent(" ").run();
|
|
270151
|
-
}, [e]), a =
|
|
270159
|
+
}, [e]), a = Ie(
|
|
270152
270160
|
(u) => {
|
|
270153
270161
|
r.current && r.current.contains(u.target) || i();
|
|
270154
270162
|
},
|
|
270155
270163
|
[i]
|
|
270156
|
-
), s =
|
|
270164
|
+
), s = Ie(
|
|
270157
270165
|
(u) => {
|
|
270158
270166
|
var p, g;
|
|
270159
270167
|
const { key: c } = u, d = document.activeElement;
|
|
@@ -270314,7 +270322,7 @@ const p$n = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
270314
270322
|
documentStyling: Ke,
|
|
270315
270323
|
...yt
|
|
270316
270324
|
}, lt) => {
|
|
270317
|
-
const [Dt, Nt] =
|
|
270325
|
+
const [Dt, Nt] = _e(!1), [Tt, St] = _e(!1), an = (() => {
|
|
270318
270326
|
if (!Ke)
|
|
270319
270327
|
return { canvas: void 0, background: void 0 };
|
|
270320
270328
|
const Xt = {}, Kt = {};
|
|
@@ -270331,7 +270339,7 @@ const p$n = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
270331
270339
|
if (!Kt) return {};
|
|
270332
270340
|
const Lt = {}, or = k$n[Xt];
|
|
270333
270341
|
return typeof Kt.width == "number" ? (Lt.width = `${Kt.width}px`, Lt.maxWidth = `${Kt.width}px`) : (Lt.width = or.zoomFitWidth, Lt.maxWidth = `${or.zoomFitMaxWidth}px`), Kt.minHeight && (Lt.minHeight = Kt.minHeight), Lt;
|
|
270334
|
-
}, Sn = Ue(null), Q = Br("(min-width: 1500px)"), Ee = Br("(min-width: 3000px)"), He = Br("(min-width: 1600px)"), Je = Br("(min-width: 1360px)"), { isNativeMobile: vt, isIOS: At } = ed(), [bt, gt] =
|
|
270342
|
+
}, Sn = Ue(null), Q = Br("(min-width: 1500px)"), Ee = Br("(min-width: 3000px)"), He = Br("(min-width: 1600px)"), Je = Br("(min-width: 1360px)"), { isNativeMobile: vt, isIOS: At } = ed(), [bt, gt] = _e(!1), kn = Ue(null), tt = (w == null ? void 0 : w.slice(0, 4)) || [], Ce = w ? Math.max(0, w.length - 4) : 0;
|
|
270335
270343
|
C5(kn, () => {
|
|
270336
270344
|
gt(!1);
|
|
270337
270345
|
}), Be(() => {
|
|
@@ -270987,7 +270995,7 @@ const p$n = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
270987
270995
|
setShowTOC: R,
|
|
270988
270996
|
tabSectionContainer: _
|
|
270989
270997
|
}, S) => {
|
|
270990
|
-
const [L, E] =
|
|
270998
|
+
const [L, E] = _e(!1), j = Ue(null), N = (m == null ? void 0 : m.slice(0, 4)) || [], I = m ? Math.max(0, m.length - 4) : 0;
|
|
270991
270999
|
C5(j, () => {
|
|
270992
271000
|
E(!1);
|
|
270993
271001
|
}), Be(() => {
|
|
@@ -271058,7 +271066,7 @@ const p$n = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
271058
271066
|
);
|
|
271059
271067
|
}, oe = Br("(max-width: 768px)");
|
|
271060
271068
|
return /* @__PURE__ */ M.jsxs(M.Fragment, { children: [
|
|
271061
|
-
B && /* @__PURE__ */ M.jsx(
|
|
271069
|
+
B && z.tabs.length > 0 && /* @__PURE__ */ M.jsx(
|
|
271062
271070
|
VMe,
|
|
271063
271071
|
{
|
|
271064
271072
|
editor: B,
|
|
@@ -271337,9 +271345,9 @@ const p$n = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
271337
271345
|
})}, ${t.toLocaleTimeString([], { hour: "2-digit", minute: "2-digit" })}`;
|
|
271338
271346
|
}, M$n = $i(
|
|
271339
271347
|
({ node: e, editor: t, deleteNode: n }) => {
|
|
271340
|
-
const r = e.attrs.reminder, [o, i] =
|
|
271348
|
+
const r = e.attrs.reminder, [o, i] = _e(
|
|
271341
271349
|
r != null && r.timestamp ? new Date(r.timestamp).getTime() < Date.now() : !1
|
|
271342
|
-
), a = t.isEditable === !1, s =
|
|
271350
|
+
), a = t.isEditable === !1, s = Ie(() => {
|
|
271343
271351
|
const c = [];
|
|
271344
271352
|
return t.state.doc.descendants((d) => {
|
|
271345
271353
|
d.type.name === "reminderBlock" && c.push({
|
|
@@ -271349,7 +271357,7 @@ const p$n = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
271349
271357
|
}), c.sort(
|
|
271350
271358
|
(d, f) => new Date(d.timestamp).getTime() - new Date(f.timestamp).getTime()
|
|
271351
271359
|
);
|
|
271352
|
-
}, [t]), l =
|
|
271360
|
+
}, [t]), l = Ie(
|
|
271353
271361
|
(c) => {
|
|
271354
271362
|
const d = s(), f = d.findIndex((g) => g.id === r.id);
|
|
271355
271363
|
if (f === -1) return;
|
|
@@ -271382,7 +271390,7 @@ const p$n = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
271382
271390
|
return () => clearTimeout(h);
|
|
271383
271391
|
}
|
|
271384
271392
|
}, [o, r.timestamp]);
|
|
271385
|
-
const u =
|
|
271393
|
+
const u = Ie(() => {
|
|
271386
271394
|
var d;
|
|
271387
271395
|
const c = (d = t.extensionManager.extensions.find(
|
|
271388
271396
|
(f) => f.name === "reminderBlock"
|