@fileverse-dev/ddoc 3.0.65 → 3.0.67
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +166 -155
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -84,16 +84,16 @@ function Fee() {
|
|
|
84
84
|
var b = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
85
85
|
function y(xe) {
|
|
86
86
|
{
|
|
87
|
-
for (var Ie = arguments.length,
|
|
88
|
-
|
|
89
|
-
x("error", xe,
|
|
87
|
+
for (var Ie = arguments.length, it = new Array(Ie > 1 ? Ie - 1 : 0), ft = 1; ft < Ie; ft++)
|
|
88
|
+
it[ft - 1] = arguments[ft];
|
|
89
|
+
x("error", xe, it);
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
|
-
function x(xe, Ie,
|
|
92
|
+
function x(xe, Ie, it) {
|
|
93
93
|
{
|
|
94
94
|
var ft = b.ReactDebugCurrentFrame, Yt = ft.getStackAddendum();
|
|
95
|
-
Yt !== "" && (Ie += "%s",
|
|
96
|
-
var an =
|
|
95
|
+
Yt !== "" && (Ie += "%s", it = it.concat([Yt]));
|
|
96
|
+
var an = it.map(function($t) {
|
|
97
97
|
return String($t);
|
|
98
98
|
});
|
|
99
99
|
an.unshift("Warning: " + Ie), Function.prototype.apply.call(console[xe], console, an);
|
|
@@ -108,12 +108,12 @@ function Fee() {
|
|
|
108
108
|
// with.
|
|
109
109
|
xe.$$typeof === A || xe.getModuleId !== void 0));
|
|
110
110
|
}
|
|
111
|
-
function M(xe, Ie,
|
|
111
|
+
function M(xe, Ie, it) {
|
|
112
112
|
var ft = xe.displayName;
|
|
113
113
|
if (ft)
|
|
114
114
|
return ft;
|
|
115
115
|
var Yt = Ie.displayName || Ie.name || "";
|
|
116
|
-
return Yt !== "" ?
|
|
116
|
+
return Yt !== "" ? it + "(" + Yt + ")" : it;
|
|
117
117
|
}
|
|
118
118
|
function _(xe) {
|
|
119
119
|
return xe.displayName || "Context";
|
|
@@ -145,8 +145,8 @@ function Fee() {
|
|
|
145
145
|
var Ie = xe;
|
|
146
146
|
return _(Ie) + ".Consumer";
|
|
147
147
|
case s:
|
|
148
|
-
var
|
|
149
|
-
return _(
|
|
148
|
+
var it = xe;
|
|
149
|
+
return _(it._context) + ".Provider";
|
|
150
150
|
case l:
|
|
151
151
|
return M(xe, xe.render, "ForwardRef");
|
|
152
152
|
case d:
|
|
@@ -226,7 +226,7 @@ function Fee() {
|
|
|
226
226
|
}
|
|
227
227
|
}
|
|
228
228
|
var X = b.ReactCurrentDispatcher, oe;
|
|
229
|
-
function Z(xe, Ie,
|
|
229
|
+
function Z(xe, Ie, it) {
|
|
230
230
|
{
|
|
231
231
|
if (oe === void 0)
|
|
232
232
|
try {
|
|
@@ -248,9 +248,9 @@ function Fee() {
|
|
|
248
248
|
if (!xe || ae)
|
|
249
249
|
return "";
|
|
250
250
|
{
|
|
251
|
-
var
|
|
252
|
-
if (
|
|
253
|
-
return
|
|
251
|
+
var it = j.get(xe);
|
|
252
|
+
if (it !== void 0)
|
|
253
|
+
return it;
|
|
254
254
|
}
|
|
255
255
|
var ft;
|
|
256
256
|
ae = !0;
|
|
@@ -315,14 +315,14 @@ function Fee() {
|
|
|
315
315
|
var lt = xe ? xe.displayName || xe.name : "", Jt = lt ? Z(lt) : "";
|
|
316
316
|
return typeof xe == "function" && j.set(xe, Jt), Jt;
|
|
317
317
|
}
|
|
318
|
-
function ue(xe, Ie,
|
|
318
|
+
function ue(xe, Ie, it) {
|
|
319
319
|
return ee(xe, !1);
|
|
320
320
|
}
|
|
321
321
|
function N(xe) {
|
|
322
322
|
var Ie = xe.prototype;
|
|
323
323
|
return !!(Ie && Ie.isReactComponent);
|
|
324
324
|
}
|
|
325
|
-
function te(xe, Ie,
|
|
325
|
+
function te(xe, Ie, it) {
|
|
326
326
|
if (xe == null)
|
|
327
327
|
return "";
|
|
328
328
|
if (typeof xe == "function")
|
|
@@ -340,11 +340,11 @@ function Fee() {
|
|
|
340
340
|
case l:
|
|
341
341
|
return ue(xe.render);
|
|
342
342
|
case d:
|
|
343
|
-
return te(xe.type, Ie,
|
|
343
|
+
return te(xe.type, Ie, it);
|
|
344
344
|
case p: {
|
|
345
345
|
var ft = xe, Yt = ft._payload, an = ft._init;
|
|
346
346
|
try {
|
|
347
|
-
return te(an(Yt), Ie,
|
|
347
|
+
return te(an(Yt), Ie, it);
|
|
348
348
|
} catch {
|
|
349
349
|
}
|
|
350
350
|
}
|
|
@@ -354,12 +354,12 @@ function Fee() {
|
|
|
354
354
|
var le = Object.prototype.hasOwnProperty, G = {}, V = b.ReactDebugCurrentFrame;
|
|
355
355
|
function Q(xe) {
|
|
356
356
|
if (xe) {
|
|
357
|
-
var Ie = xe._owner,
|
|
358
|
-
V.setExtraStackFrame(
|
|
357
|
+
var Ie = xe._owner, it = te(xe.type, xe._source, Ie ? Ie.type : null);
|
|
358
|
+
V.setExtraStackFrame(it);
|
|
359
359
|
} else
|
|
360
360
|
V.setExtraStackFrame(null);
|
|
361
361
|
}
|
|
362
|
-
function Fe(xe, Ie,
|
|
362
|
+
function Fe(xe, Ie, it, ft, Yt) {
|
|
363
363
|
{
|
|
364
364
|
var an = Function.call.bind(le);
|
|
365
365
|
for (var $t in xe)
|
|
@@ -367,14 +367,14 @@ function Fee() {
|
|
|
367
367
|
var kt = void 0;
|
|
368
368
|
try {
|
|
369
369
|
if (typeof xe[$t] != "function") {
|
|
370
|
-
var _r = Error((ft || "React class") + ": " +
|
|
370
|
+
var _r = Error((ft || "React class") + ": " + it + " type `" + $t + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof xe[$t] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
371
371
|
throw _r.name = "Invariant Violation", _r;
|
|
372
372
|
}
|
|
373
|
-
kt = xe[$t](Ie, $t, ft,
|
|
373
|
+
kt = xe[$t](Ie, $t, ft, it, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
374
374
|
} catch (Qe) {
|
|
375
375
|
kt = Qe;
|
|
376
376
|
}
|
|
377
|
-
kt && !(kt instanceof Error) && (Q(Yt), y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", ft || "React class",
|
|
377
|
+
kt && !(kt instanceof Error) && (Q(Yt), y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", ft || "React class", it, $t, typeof kt), Q(null)), kt instanceof Error && !(kt.message in G) && (G[kt.message] = !0, Q(Yt), y("Failed %s type: %s", it, kt.message), Q(null));
|
|
378
378
|
}
|
|
379
379
|
}
|
|
380
380
|
}
|
|
@@ -384,8 +384,8 @@ function Fee() {
|
|
|
384
384
|
}
|
|
385
385
|
function ce(xe) {
|
|
386
386
|
{
|
|
387
|
-
var Ie = typeof Symbol == "function" && Symbol.toStringTag,
|
|
388
|
-
return
|
|
387
|
+
var Ie = typeof Symbol == "function" && Symbol.toStringTag, it = Ie && xe[Symbol.toStringTag] || xe.constructor.name || "Object";
|
|
388
|
+
return it;
|
|
389
389
|
}
|
|
390
390
|
}
|
|
391
391
|
function de(xe) {
|
|
@@ -429,34 +429,34 @@ function Fee() {
|
|
|
429
429
|
}
|
|
430
430
|
function fe(xe, Ie) {
|
|
431
431
|
{
|
|
432
|
-
var
|
|
432
|
+
var it = function() {
|
|
433
433
|
pe || (pe = !0, y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", Ie));
|
|
434
434
|
};
|
|
435
|
-
|
|
436
|
-
get:
|
|
435
|
+
it.isReactWarning = !0, Object.defineProperty(xe, "key", {
|
|
436
|
+
get: it,
|
|
437
437
|
configurable: !0
|
|
438
438
|
});
|
|
439
439
|
}
|
|
440
440
|
}
|
|
441
441
|
function Se(xe, Ie) {
|
|
442
442
|
{
|
|
443
|
-
var
|
|
443
|
+
var it = function() {
|
|
444
444
|
ye || (ye = !0, y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", Ie));
|
|
445
445
|
};
|
|
446
|
-
|
|
447
|
-
get:
|
|
446
|
+
it.isReactWarning = !0, Object.defineProperty(xe, "ref", {
|
|
447
|
+
get: it,
|
|
448
448
|
configurable: !0
|
|
449
449
|
});
|
|
450
450
|
}
|
|
451
451
|
}
|
|
452
|
-
var _e = function(xe, Ie,
|
|
452
|
+
var _e = function(xe, Ie, it, ft, Yt, an, $t) {
|
|
453
453
|
var kt = {
|
|
454
454
|
// This tag allows us to uniquely identify this as a React Element
|
|
455
455
|
$$typeof: t,
|
|
456
456
|
// Built-in properties that belong on the element
|
|
457
457
|
type: xe,
|
|
458
458
|
key: Ie,
|
|
459
|
-
ref:
|
|
459
|
+
ref: it,
|
|
460
460
|
props: $t,
|
|
461
461
|
// Record the component responsible for creating this element.
|
|
462
462
|
_owner: an
|
|
@@ -478,10 +478,10 @@ function Fee() {
|
|
|
478
478
|
value: Yt
|
|
479
479
|
}), Object.freeze && (Object.freeze(kt.props), Object.freeze(kt)), kt;
|
|
480
480
|
};
|
|
481
|
-
function Te(xe, Ie,
|
|
481
|
+
function Te(xe, Ie, it, ft, Yt) {
|
|
482
482
|
{
|
|
483
483
|
var an, $t = {}, kt = null, _r = null;
|
|
484
|
-
|
|
484
|
+
it !== void 0 && (R(it), kt = "" + it), Ee(Ie) && (R(Ie.key), kt = "" + Ie.key), me(Ie) && (_r = Ie.ref, Ce(Ie, Yt));
|
|
485
485
|
for (an in Ie)
|
|
486
486
|
le.call(Ie, an) && !re.hasOwnProperty(an) && ($t[an] = Ie[an]);
|
|
487
487
|
if (xe && xe.defaultProps) {
|
|
@@ -499,8 +499,8 @@ function Fee() {
|
|
|
499
499
|
var Be = b.ReactCurrentOwner, at = b.ReactDebugCurrentFrame;
|
|
500
500
|
function dt(xe) {
|
|
501
501
|
if (xe) {
|
|
502
|
-
var Ie = xe._owner,
|
|
503
|
-
at.setExtraStackFrame(
|
|
502
|
+
var Ie = xe._owner, it = te(xe.type, xe._source, Ie ? Ie.type : null);
|
|
503
|
+
at.setExtraStackFrame(it);
|
|
504
504
|
} else
|
|
505
505
|
at.setExtraStackFrame(null);
|
|
506
506
|
}
|
|
@@ -529,10 +529,10 @@ Check the render method of \`` + xe + "`.";
|
|
|
529
529
|
{
|
|
530
530
|
var Ie = He();
|
|
531
531
|
if (!Ie) {
|
|
532
|
-
var
|
|
533
|
-
|
|
532
|
+
var it = typeof xe == "string" ? xe : xe.displayName || xe.name;
|
|
533
|
+
it && (Ie = `
|
|
534
534
|
|
|
535
|
-
Check the top-level render call using <` +
|
|
535
|
+
Check the top-level render call using <` + it + ">.");
|
|
536
536
|
}
|
|
537
537
|
return Ie;
|
|
538
538
|
}
|
|
@@ -542,12 +542,12 @@ Check the top-level render call using <` + ot + ">.");
|
|
|
542
542
|
if (!xe._store || xe._store.validated || xe.key != null)
|
|
543
543
|
return;
|
|
544
544
|
xe._store.validated = !0;
|
|
545
|
-
var
|
|
546
|
-
if (nt[
|
|
545
|
+
var it = Le(Ie);
|
|
546
|
+
if (nt[it])
|
|
547
547
|
return;
|
|
548
|
-
nt[
|
|
548
|
+
nt[it] = !0;
|
|
549
549
|
var ft = "";
|
|
550
|
-
xe && xe._owner && xe._owner !== Be.current && (ft = " It was passed a child from " + O(xe._owner.type) + "."), dt(xe), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',
|
|
550
|
+
xe && xe._owner && xe._owner !== Be.current && (ft = " It was passed a child from " + O(xe._owner.type) + "."), dt(xe), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', it, ft), dt(null);
|
|
551
551
|
}
|
|
552
552
|
}
|
|
553
553
|
function Lt(xe, Ie) {
|
|
@@ -555,8 +555,8 @@ Check the top-level render call using <` + ot + ">.");
|
|
|
555
555
|
if (typeof xe != "object")
|
|
556
556
|
return;
|
|
557
557
|
if (ge(xe))
|
|
558
|
-
for (var
|
|
559
|
-
var ft = xe[
|
|
558
|
+
for (var it = 0; it < xe.length; it++) {
|
|
559
|
+
var ft = xe[it];
|
|
560
560
|
Me(ft) && bt(ft, Ie);
|
|
561
561
|
}
|
|
562
562
|
else if (Me(xe))
|
|
@@ -574,18 +574,18 @@ Check the top-level render call using <` + ot + ">.");
|
|
|
574
574
|
var Ie = xe.type;
|
|
575
575
|
if (Ie == null || typeof Ie == "string")
|
|
576
576
|
return;
|
|
577
|
-
var
|
|
577
|
+
var it;
|
|
578
578
|
if (typeof Ie == "function")
|
|
579
|
-
|
|
579
|
+
it = Ie.propTypes;
|
|
580
580
|
else if (typeof Ie == "object" && (Ie.$$typeof === l || // Note: Memo only checks outer props here.
|
|
581
581
|
// Inner props are checked in the reconciler.
|
|
582
582
|
Ie.$$typeof === d))
|
|
583
|
-
|
|
583
|
+
it = Ie.propTypes;
|
|
584
584
|
else
|
|
585
585
|
return;
|
|
586
|
-
if (
|
|
586
|
+
if (it) {
|
|
587
587
|
var ft = O(Ie);
|
|
588
|
-
Fe(
|
|
588
|
+
Fe(it, xe.props, "prop", ft, xe);
|
|
589
589
|
} else if (Ie.PropTypes !== void 0 && !mt) {
|
|
590
590
|
mt = !0;
|
|
591
591
|
var Yt = O(Ie);
|
|
@@ -596,8 +596,8 @@ Check the top-level render call using <` + ot + ">.");
|
|
|
596
596
|
}
|
|
597
597
|
function wn(xe) {
|
|
598
598
|
{
|
|
599
|
-
for (var Ie = Object.keys(xe.props),
|
|
600
|
-
var ft = Ie[
|
|
599
|
+
for (var Ie = Object.keys(xe.props), it = 0; it < Ie.length; it++) {
|
|
600
|
+
var ft = Ie[it];
|
|
601
601
|
if (ft !== "children" && ft !== "key") {
|
|
602
602
|
dt(xe), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", ft), dt(null);
|
|
603
603
|
break;
|
|
@@ -607,7 +607,7 @@ Check the top-level render call using <` + ot + ">.");
|
|
|
607
607
|
}
|
|
608
608
|
}
|
|
609
609
|
var Zt = {};
|
|
610
|
-
function Mn(xe, Ie,
|
|
610
|
+
function Mn(xe, Ie, it, ft, Yt, an) {
|
|
611
611
|
{
|
|
612
612
|
var $t = B(xe);
|
|
613
613
|
if (!$t) {
|
|
@@ -618,7 +618,7 @@ Check the top-level render call using <` + ot + ">.");
|
|
|
618
618
|
var Qe;
|
|
619
619
|
xe === null ? Qe = "null" : ge(xe) ? Qe = "array" : xe !== void 0 && xe.$$typeof === t ? (Qe = "<" + (O(xe.type) || "Unknown") + " />", kt = " Did you accidentally export a JSX literal instead of a component?") : Qe = typeof xe, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Qe, kt);
|
|
620
620
|
}
|
|
621
|
-
var we = Te(xe, Ie,
|
|
621
|
+
var we = Te(xe, Ie, it, Yt, an);
|
|
622
622
|
if (we == null)
|
|
623
623
|
return we;
|
|
624
624
|
if ($t) {
|
|
@@ -651,11 +651,11 @@ React keys must be passed directly to JSX without using spread:
|
|
|
651
651
|
return xe === r ? wn(we) : tn(we), we;
|
|
652
652
|
}
|
|
653
653
|
}
|
|
654
|
-
function An(xe, Ie,
|
|
655
|
-
return Mn(xe, Ie,
|
|
654
|
+
function An(xe, Ie, it) {
|
|
655
|
+
return Mn(xe, Ie, it, !0);
|
|
656
656
|
}
|
|
657
|
-
function gn(xe, Ie,
|
|
658
|
-
return Mn(xe, Ie,
|
|
657
|
+
function gn(xe, Ie, it) {
|
|
658
|
+
return Mn(xe, Ie, it, !1);
|
|
659
659
|
}
|
|
660
660
|
var Dn = gn, $n = An;
|
|
661
661
|
p0.Fragment = r, p0.jsx = Dn, p0.jsxs = $n;
|
|
@@ -17913,7 +17913,7 @@ var QU = { exports: {} };
|
|
|
17913
17913
|
})();
|
|
17914
17914
|
})(QU);
|
|
17915
17915
|
var Tae = QU.exports;
|
|
17916
|
-
const
|
|
17916
|
+
const ot = /* @__PURE__ */ ic(Tae);
|
|
17917
17917
|
var Ye = /* @__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))(Ye || {});
|
|
17918
17918
|
function jae(e) {
|
|
17919
17919
|
const [t, n] = Ne(e), r = Ge(null), o = (i) => {
|
|
@@ -18128,7 +18128,7 @@ const Wae = ({
|
|
|
18128
18128
|
/* @__PURE__ */ F.jsx(
|
|
18129
18129
|
"div",
|
|
18130
18130
|
{
|
|
18131
|
-
className:
|
|
18131
|
+
className: ot(
|
|
18132
18132
|
"flex flex-col gap-4 w-full h-full pb-4 text-base color-text-default",
|
|
18133
18133
|
o
|
|
18134
18134
|
),
|
|
@@ -19446,7 +19446,7 @@ const aP = yr(
|
|
|
19446
19446
|
{
|
|
19447
19447
|
ref: a,
|
|
19448
19448
|
onKeyDownCapture: b,
|
|
19449
|
-
className:
|
|
19449
|
+
className: ot("relative", o),
|
|
19450
19450
|
role: "region",
|
|
19451
19451
|
"aria-roledescription": "carousel",
|
|
19452
19452
|
...s,
|
|
@@ -19464,7 +19464,7 @@ const lP = yr(({ className: e, ...t }, n) => {
|
|
|
19464
19464
|
"div",
|
|
19465
19465
|
{
|
|
19466
19466
|
ref: n,
|
|
19467
|
-
className:
|
|
19467
|
+
className: ot(
|
|
19468
19468
|
"flex",
|
|
19469
19469
|
o === "horizontal" ? "-ml-4" : "-mt-4 flex-col",
|
|
19470
19470
|
e
|
|
@@ -19483,7 +19483,7 @@ const mw = yr(
|
|
|
19483
19483
|
ref: n,
|
|
19484
19484
|
role: "group",
|
|
19485
19485
|
"aria-roledescription": "slide",
|
|
19486
|
-
className:
|
|
19486
|
+
className: ot(
|
|
19487
19487
|
"min-w-0 shrink-0 grow-0 basis-full",
|
|
19488
19488
|
r === "horizontal" ? "pl-4" : "pt-4",
|
|
19489
19489
|
e
|
|
@@ -19513,7 +19513,7 @@ const uP = yr(({ index: e, className: t, ...n }, r) => {
|
|
|
19513
19513
|
"button",
|
|
19514
19514
|
{
|
|
19515
19515
|
ref: r,
|
|
19516
|
-
className:
|
|
19516
|
+
className: ot(
|
|
19517
19517
|
"w-2 h-2 transition-colors duration-200 rounded-full",
|
|
19518
19518
|
d ? "bg-black" : "bg-[#E8EBEC] hover:bg-black/50",
|
|
19519
19519
|
t
|
|
@@ -19530,7 +19530,7 @@ const Ele = At.forwardRef(({ className: e, ...t }, n) => {
|
|
|
19530
19530
|
"button",
|
|
19531
19531
|
{
|
|
19532
19532
|
ref: n,
|
|
19533
|
-
className:
|
|
19533
|
+
className: ot(
|
|
19534
19534
|
"btn color-bg-default hover:color-bg-default-hover transition color-text-default flex items-center border-2 rounded h-9 px-4 py-2 text-sm font-medium disabled:bg-[#E8EBEC] disabled:text-[#A1AAB1]",
|
|
19535
19535
|
e
|
|
19536
19536
|
),
|
|
@@ -19548,7 +19548,7 @@ const Cle = At.forwardRef(({ className: e, ...t }, n) => {
|
|
|
19548
19548
|
"button",
|
|
19549
19549
|
{
|
|
19550
19550
|
ref: n,
|
|
19551
|
-
className:
|
|
19551
|
+
className: ot(
|
|
19552
19552
|
"btn bg-black hover:bg-black color-text-default flex items-center border-2 rounded h-9 px-4 py-2 text-sm font-medium disabled:bg-[#E8EBEC] disabled:text-[#A1AAB1]",
|
|
19553
19553
|
e
|
|
19554
19554
|
),
|
|
@@ -31931,7 +31931,7 @@ function Zz() {
|
|
|
31931
31931
|
);
|
|
31932
31932
|
}, Ie = function(we) {
|
|
31933
31933
|
return we instanceof d && (typeof we.nodeName != "string" || typeof we.textContent != "string" || typeof we.removeChild != "function" || !(we.attributes instanceof c) || typeof we.removeAttribute != "function" || typeof we.setAttribute != "function" || typeof we.namespaceURI != "string" || typeof we.insertBefore != "function" || typeof we.hasChildNodes != "function");
|
|
31934
|
-
},
|
|
31934
|
+
}, it = function(we) {
|
|
31935
31935
|
return typeof a == "function" && we instanceof a;
|
|
31936
31936
|
};
|
|
31937
31937
|
function ft(Qe, we, Pe) {
|
|
@@ -31947,7 +31947,7 @@ function Zz() {
|
|
|
31947
31947
|
if (ft(M.uponSanitizeElement, we, {
|
|
31948
31948
|
tagName: lt,
|
|
31949
31949
|
allowedTags: U
|
|
31950
|
-
}), N && we.hasChildNodes() && !
|
|
31950
|
+
}), N && we.hasChildNodes() && !it(we.firstElementChild) && Ao(/<[/\w!]/g, we.innerHTML) && Ao(/<[/\w!]/g, we.textContent) || we.nodeType === y0.progressingInstruction || N && we.nodeType === y0.comment && Ao(/<[/\w]/g, we.data))
|
|
31951
31951
|
return gn(we), !0;
|
|
31952
31952
|
if (!(Z.tagCheck instanceof Function && Z.tagCheck(lt)) && (!U[lt] || X[lt])) {
|
|
31953
31953
|
if (!X[lt] && $t(lt) && (ne.tagNameCheck instanceof RegExp && Ao(ne.tagNameCheck, lt) || ne.tagNameCheck instanceof Function && ne.tagNameCheck(lt)))
|
|
@@ -32076,7 +32076,7 @@ function Zz() {
|
|
|
32076
32076
|
};
|
|
32077
32077
|
return t.sanitize = function(Qe) {
|
|
32078
32078
|
let we = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, Pe = null, lt = null, Jt = null, et = null;
|
|
32079
|
-
if (Te = !Qe, Te && (Qe = "<!-->"), typeof Qe != "string" && !
|
|
32079
|
+
if (Te = !Qe, Te && (Qe = "<!-->"), typeof Qe != "string" && !it(Qe))
|
|
32080
32080
|
if (typeof Qe.toString == "function") {
|
|
32081
32081
|
if (Qe = Qe.toString(), typeof Qe != "string")
|
|
32082
32082
|
throw m0("dirty is not a string, aborting");
|
|
@@ -35748,6 +35748,8 @@ const L2 = (e) => {
|
|
|
35748
35748
|
"Comic Sans MS": "Comic Sans MS, Comic Sans",
|
|
35749
35749
|
Cursive: "Cursive",
|
|
35750
35750
|
Georgia: "Georgia, serif",
|
|
35751
|
+
"IBM Plex Sans": "IBM Plex Sans, sans-serif",
|
|
35752
|
+
"IBM Plex Serif": "IBM Plex Serif, serif",
|
|
35751
35753
|
"IBM Plex Mono": "IBM Plex Mono, monospace",
|
|
35752
35754
|
Impact: "Impact, Charcoal, sans-serif",
|
|
35753
35755
|
"Inclusive Sans": "Inclusive Sans, sans-serif",
|
|
@@ -36415,7 +36417,7 @@ const L2 = (e) => {
|
|
|
36415
36417
|
onClick: () => {
|
|
36416
36418
|
e.chain().focus().toggleHighlight({ color: r.color }).run(), t(Ye.NONE);
|
|
36417
36419
|
},
|
|
36418
|
-
className:
|
|
36420
|
+
className: ot(
|
|
36419
36421
|
"w-5 rounded-full flex items-center justify-center cursor-pointer ease-in duration-200 hover:scale-[1.05] h-5",
|
|
36420
36422
|
r.code
|
|
36421
36423
|
),
|
|
@@ -36423,7 +36425,7 @@ const L2 = (e) => {
|
|
|
36423
36425
|
Ue,
|
|
36424
36426
|
{
|
|
36425
36427
|
name: "Check",
|
|
36426
|
-
className:
|
|
36428
|
+
className: ot(
|
|
36427
36429
|
"w-[14px] aspect-square",
|
|
36428
36430
|
e.isActive("highlight", {
|
|
36429
36431
|
color: r.color
|
|
@@ -36461,7 +36463,7 @@ const L2 = (e) => {
|
|
|
36461
36463
|
"div",
|
|
36462
36464
|
{
|
|
36463
36465
|
ref: e,
|
|
36464
|
-
className:
|
|
36466
|
+
className: ot(
|
|
36465
36467
|
"z-50 h-auto w-48 color-bg-default px-1 py-2 shadow-elevation-1 transition-all rounded",
|
|
36466
36468
|
"max-h-[80vh] overflow-y-auto"
|
|
36467
36469
|
),
|
|
@@ -36475,7 +36477,7 @@ const L2 = (e) => {
|
|
|
36475
36477
|
style: {
|
|
36476
36478
|
fontFamily: r.title
|
|
36477
36479
|
},
|
|
36478
|
-
className:
|
|
36480
|
+
className: ot(
|
|
36479
36481
|
"flex w-full items-center space-x-2 rounded px-2 py-1 text-left text-sm color-text-default transition",
|
|
36480
36482
|
t.isActive("textStyle", { fontFamily: r.value }) ? "color-bg-brand xl:hover:brightness-90 dark:text-[#363B3F]" : "hover:color-bg-default-hover"
|
|
36481
36483
|
),
|
|
@@ -36501,7 +36503,7 @@ const L2 = (e) => {
|
|
|
36501
36503
|
onClick: () => {
|
|
36502
36504
|
t == null || t.chain().focus().setTextAlign("left").run(), n(Ye.NONE);
|
|
36503
36505
|
},
|
|
36504
|
-
className:
|
|
36506
|
+
className: ot(
|
|
36505
36507
|
"rounded w-8 h-8 p-1 flex justify-center items-center cursor-pointer transition",
|
|
36506
36508
|
t.isActive({ textAlign: "left" }) ? "color-bg-brand xl:hover:brightness-90 dark:text-[#363B3F]" : "hover:color-bg-default-hover"
|
|
36507
36509
|
),
|
|
@@ -36515,7 +36517,7 @@ const L2 = (e) => {
|
|
|
36515
36517
|
onClick: () => {
|
|
36516
36518
|
t == null || t.chain().focus().setTextAlign("center").run(), n(Ye.NONE);
|
|
36517
36519
|
},
|
|
36518
|
-
className:
|
|
36520
|
+
className: ot(
|
|
36519
36521
|
"rounded w-8 h-8 p-1 flex justify-center items-center cursor-pointer transition",
|
|
36520
36522
|
t.isActive({ textAlign: "center" }) ? "color-bg-brand xl:hover:brightness-90 dark:text-[#363B3F]" : "hover:color-bg-default-hover"
|
|
36521
36523
|
),
|
|
@@ -36529,7 +36531,7 @@ const L2 = (e) => {
|
|
|
36529
36531
|
onClick: () => {
|
|
36530
36532
|
t == null || t.chain().focus().setTextAlign("right").run(), n(Ye.NONE);
|
|
36531
36533
|
},
|
|
36532
|
-
className:
|
|
36534
|
+
className: ot(
|
|
36533
36535
|
"rounded w-8 h-8 p-1 flex justify-center items-center cursor-pointer transition",
|
|
36534
36536
|
t.isActive({ textAlign: "right" }) ? "color-bg-brand xl:hover:brightness-90 dark:text-[#363B3F]" : "hover:color-bg-default-hover"
|
|
36535
36537
|
),
|
|
@@ -36543,7 +36545,7 @@ const L2 = (e) => {
|
|
|
36543
36545
|
onClick: () => {
|
|
36544
36546
|
t == null || t.chain().focus().setTextAlign("justify").run(), n(Ye.NONE);
|
|
36545
36547
|
},
|
|
36546
|
-
className:
|
|
36548
|
+
className: ot(
|
|
36547
36549
|
"rounded w-8 h-8 p-1 flex justify-center items-center cursor-pointer transition",
|
|
36548
36550
|
t.isActive({ textAlign: "justify" }) ? "color-bg-brand xl:hover:brightness-90 dark:text-[#363B3F]" : "hover:color-bg-default-hover"
|
|
36549
36551
|
),
|
|
@@ -36639,7 +36641,7 @@ const L2 = (e) => {
|
|
|
36639
36641
|
onClick: () => {
|
|
36640
36642
|
r.command();
|
|
36641
36643
|
},
|
|
36642
|
-
className:
|
|
36644
|
+
className: ot(
|
|
36643
36645
|
"flex items-center justify-between w-full px-2 py-1 text-body-sm",
|
|
36644
36646
|
r.isActive() && "color-bg-brand hover:!bg-[#B6A02E] dark:text-[#363B3F]"
|
|
36645
36647
|
),
|
|
@@ -36676,7 +36678,7 @@ const L2 = (e) => {
|
|
|
36676
36678
|
onClick: () => {
|
|
36677
36679
|
e && (e.chain().focus().setColor(a).run(), t(Ye.NONE));
|
|
36678
36680
|
},
|
|
36679
|
-
className:
|
|
36681
|
+
className: ot(
|
|
36680
36682
|
"w-5 rounded-full flex justify-center items-center cursor-pointer ease-in duration-200 hover:scale-[1.05] h-5"
|
|
36681
36683
|
),
|
|
36682
36684
|
style: { backgroundColor: a },
|
|
@@ -36684,7 +36686,7 @@ const L2 = (e) => {
|
|
|
36684
36686
|
Ue,
|
|
36685
36687
|
{
|
|
36686
36688
|
name: "Check",
|
|
36687
|
-
className:
|
|
36689
|
+
className: ot(
|
|
36688
36690
|
"w-[14px] aspect-square",
|
|
36689
36691
|
e != null && e.isActive("textStyle", {
|
|
36690
36692
|
color: a
|
|
@@ -36760,7 +36762,7 @@ const L2 = (e) => {
|
|
|
36760
36762
|
"div",
|
|
36761
36763
|
{
|
|
36762
36764
|
ref: n,
|
|
36763
|
-
className:
|
|
36765
|
+
className: ot(
|
|
36764
36766
|
"z-50 flex w-48 flex-col overflow-hidden rounded color-bg-default p-1 shadow-elevation-1"
|
|
36765
36767
|
),
|
|
36766
36768
|
children: r.map((o) => /* @__PURE__ */ F.jsxs(
|
|
@@ -36770,7 +36772,7 @@ const L2 = (e) => {
|
|
|
36770
36772
|
onClick: () => {
|
|
36771
36773
|
o.command(e), t(Ye.NONE);
|
|
36772
36774
|
},
|
|
36773
|
-
className:
|
|
36775
|
+
className: ot(
|
|
36774
36776
|
"flex w-full items-center space-x-2 rounded-md px-2 py-1 text-left text-sm color-text-default transition",
|
|
36775
36777
|
{
|
|
36776
36778
|
"color-bg-brand xl:hover:brightness-90 dark:text-[#363B3F]": o.isActive(),
|
|
@@ -36805,7 +36807,7 @@ const L2 = (e) => {
|
|
|
36805
36807
|
"div",
|
|
36806
36808
|
{
|
|
36807
36809
|
ref: n,
|
|
36808
|
-
className:
|
|
36810
|
+
className: ot(
|
|
36809
36811
|
"z-50 flex flex-col justify-center items-center overflow-hidden rounded color-bg-default p-2 gap-1 shadow-elevation-1"
|
|
36810
36812
|
),
|
|
36811
36813
|
children: i.map((s) => /* @__PURE__ */ F.jsx(
|
|
@@ -36815,7 +36817,7 @@ const L2 = (e) => {
|
|
|
36815
36817
|
onClick: () => {
|
|
36816
36818
|
o(s.value), t(Ye.NONE);
|
|
36817
36819
|
},
|
|
36818
|
-
className:
|
|
36820
|
+
className: ot(
|
|
36819
36821
|
"flex w-full items-center justify-center rounded px-2 py-1 text-center text-sm color-text-default transition",
|
|
36820
36822
|
{
|
|
36821
36823
|
"color-bg-brand xl:hover:brightness-90 dark:text-[#363B3F]": r === s.value,
|
|
@@ -36839,7 +36841,7 @@ const L2 = (e) => {
|
|
|
36839
36841
|
"div",
|
|
36840
36842
|
{
|
|
36841
36843
|
ref: t,
|
|
36842
|
-
className:
|
|
36844
|
+
className: ot(
|
|
36843
36845
|
"z-50 flex flex-col justify-center items-center overflow-hidden rounded color-bg-default p-2 gap-1 shadow-elevation-1"
|
|
36844
36846
|
),
|
|
36845
36847
|
children: o.map((i) => /* @__PURE__ */ F.jsxs(
|
|
@@ -36849,7 +36851,7 @@ const L2 = (e) => {
|
|
|
36849
36851
|
onClick: () => {
|
|
36850
36852
|
r(i.value), e(Ye.NONE);
|
|
36851
36853
|
},
|
|
36852
|
-
className:
|
|
36854
|
+
className: ot(
|
|
36853
36855
|
"flex w-full items-center gap-2 rounded px-2 py-1 text-sm color-text-default transition min-w-[120px]",
|
|
36854
36856
|
{
|
|
36855
36857
|
"color-bg-default-hover": n === i.value,
|
|
@@ -37095,7 +37097,7 @@ const L2 = (e) => {
|
|
|
37095
37097
|
"button",
|
|
37096
37098
|
{
|
|
37097
37099
|
onClick: () => e && u.command(e),
|
|
37098
|
-
className:
|
|
37100
|
+
className: ot(
|
|
37099
37101
|
"flex w-fit items-center font-medium space-x-2 rounded p-2 text-center text-sm color-text-default transition",
|
|
37100
37102
|
{
|
|
37101
37103
|
"color-bg-brand xl:hover:brightness-90 dark:text-[#363B3F]": u.isActive(),
|
|
@@ -37111,7 +37113,7 @@ const L2 = (e) => {
|
|
|
37111
37113
|
"button",
|
|
37112
37114
|
{
|
|
37113
37115
|
onClick: () => e && u.command(e),
|
|
37114
|
-
className:
|
|
37116
|
+
className: ot(
|
|
37115
37117
|
"flex items-center space-x-2 rounded px-4 py-1 color-text-default transition h-9",
|
|
37116
37118
|
{
|
|
37117
37119
|
"color-bg-brand xl:hover:brightness-90 dark:text-[#363B3F]": u.isActive(),
|
|
@@ -37126,7 +37128,7 @@ const L2 = (e) => {
|
|
|
37126
37128
|
"button",
|
|
37127
37129
|
{
|
|
37128
37130
|
onClick: () => e && u.command(e),
|
|
37129
|
-
className:
|
|
37131
|
+
className: ot(
|
|
37130
37132
|
"flex items-center space-x-2 rounded px-4 py-1 color-text-default transition h-9",
|
|
37131
37133
|
{
|
|
37132
37134
|
"color-bg-brand xl:hover:brightness-90 dark:text-[#363B3F]": u.isActive(),
|
|
@@ -37143,7 +37145,7 @@ const L2 = (e) => {
|
|
|
37143
37145
|
"button",
|
|
37144
37146
|
{
|
|
37145
37147
|
onClick: () => e && u.command(e),
|
|
37146
|
-
className:
|
|
37148
|
+
className: ot(
|
|
37147
37149
|
"flex items-center space-x-2 rounded px-4 py-1 color-text-default transition h-9",
|
|
37148
37150
|
{
|
|
37149
37151
|
"color-bg-brand xl:hover:brightness-90 dark:text-[#363B3F]": u.isActive(),
|
|
@@ -37158,7 +37160,7 @@ const L2 = (e) => {
|
|
|
37158
37160
|
"button",
|
|
37159
37161
|
{
|
|
37160
37162
|
onClick: () => e && u.command(e),
|
|
37161
|
-
className:
|
|
37163
|
+
className: ot(
|
|
37162
37164
|
"flex items-center space-x-2 rounded px-4 py-1 color-text-default transition h-9",
|
|
37163
37165
|
{
|
|
37164
37166
|
"color-bg-brand xl:hover:brightness-90 dark:text-[#363B3F]": u.isActive(),
|
|
@@ -37174,7 +37176,7 @@ const L2 = (e) => {
|
|
|
37174
37176
|
"button",
|
|
37175
37177
|
{
|
|
37176
37178
|
onClick: () => e && u.command(e),
|
|
37177
|
-
className:
|
|
37179
|
+
className: ot(
|
|
37178
37180
|
"flex items-center space-x-2 rounded px-4 py-1 color-text-default transition h-9",
|
|
37179
37181
|
{
|
|
37180
37182
|
"color-bg-brand xl:hover:brightness-90 dark:text-[#363B3F]": u.isActive(),
|
|
@@ -37228,7 +37230,7 @@ const L2 = (e) => {
|
|
|
37228
37230
|
onClick: () => {
|
|
37229
37231
|
e && e.chain().setColor(u.color).run();
|
|
37230
37232
|
},
|
|
37231
|
-
className:
|
|
37233
|
+
className: ot(
|
|
37232
37234
|
"w-6 h-6 mb-1 drop-shadow rounded-full flex justify-center items-center cursor-pointer transition",
|
|
37233
37235
|
u.code
|
|
37234
37236
|
),
|
|
@@ -37236,7 +37238,7 @@ const L2 = (e) => {
|
|
|
37236
37238
|
Ue,
|
|
37237
37239
|
{
|
|
37238
37240
|
name: "Check",
|
|
37239
|
-
className:
|
|
37241
|
+
className: ot(
|
|
37240
37242
|
"w-[14px] aspect-square",
|
|
37241
37243
|
e != null && e.isActive("textStyle", {
|
|
37242
37244
|
color: u.color
|
|
@@ -37601,7 +37603,7 @@ const L2 = (e) => {
|
|
|
37601
37603
|
onClick: () => {
|
|
37602
37604
|
o.command();
|
|
37603
37605
|
},
|
|
37604
|
-
className:
|
|
37606
|
+
className: ot(
|
|
37605
37607
|
"flex items-center justify-between rounded-sm px-2 py-1 text-body-sm hover:color-bg-default-hover transition-all",
|
|
37606
37608
|
{
|
|
37607
37609
|
"color-bg-brand hover:color-bg-brand-hover dark:text-[#363B3F]": o.isActive()
|
|
@@ -39651,7 +39653,7 @@ const H$ = yr(
|
|
|
39651
39653
|
className: r,
|
|
39652
39654
|
...o
|
|
39653
39655
|
}, i) => {
|
|
39654
|
-
const s =
|
|
39656
|
+
const s = ot(
|
|
39655
39657
|
"color-text-default inline-flex h-full leading-none gap-0.5",
|
|
39656
39658
|
n ? "flex-col p-2" : "flex-row p-1 items-center",
|
|
39657
39659
|
r
|
|
@@ -39662,7 +39664,7 @@ const H$ = yr(
|
|
|
39662
39664
|
H$.displayName = "Toolbar";
|
|
39663
39665
|
const sme = yr(
|
|
39664
39666
|
({ horizontal: e, className: t, ...n }, r) => {
|
|
39665
|
-
const o =
|
|
39667
|
+
const o = ot(
|
|
39666
39668
|
"bg-neutral-200",
|
|
39667
39669
|
e ? "w-full min-w-[1.5rem] h-[1px] my-1 first:mt-0 last:mt-0" : "h-full min-h-[1.5rem] w-[1px] mx-1 first:ml-0 last:mr-0",
|
|
39668
39670
|
t
|
|
@@ -46433,7 +46435,7 @@ const MH = (e, t) => ({ node: n, updateAttributes: r, deleteNode: o }) => {
|
|
|
46433
46435
|
Ca,
|
|
46434
46436
|
{
|
|
46435
46437
|
as: "article",
|
|
46436
|
-
className:
|
|
46438
|
+
className: ot(
|
|
46437
46439
|
"media-node-view not-prose transition-all ease-in-out w-full",
|
|
46438
46440
|
S && `f-${n.attrs.dataFloat}`,
|
|
46439
46441
|
L && `justify-${n.attrs.dataAlign}`
|
|
@@ -46443,7 +46445,7 @@ const MH = (e, t) => ({ node: n, updateAttributes: r, deleteNode: o }) => {
|
|
|
46443
46445
|
{
|
|
46444
46446
|
draggable: b,
|
|
46445
46447
|
"data-drag-handle": b,
|
|
46446
|
-
className:
|
|
46448
|
+
className: ot(
|
|
46447
46449
|
"w-fit flex flex-col relative group transition-all ease-in-out",
|
|
46448
46450
|
b && "opacity-50"
|
|
46449
46451
|
),
|
|
@@ -46455,7 +46457,7 @@ const MH = (e, t) => ({ node: n, updateAttributes: r, deleteNode: o }) => {
|
|
|
46455
46457
|
/* @__PURE__ */ F.jsxs(
|
|
46456
46458
|
"div",
|
|
46457
46459
|
{
|
|
46458
|
-
className:
|
|
46460
|
+
className: ot(
|
|
46459
46461
|
"relative",
|
|
46460
46462
|
n.attrs.dataAlign === "start" && "self-start",
|
|
46461
46463
|
n.attrs.dataAlign === "center" && "self-center",
|
|
@@ -46520,7 +46522,7 @@ const MH = (e, t) => ({ node: n, updateAttributes: r, deleteNode: o }) => {
|
|
|
46520
46522
|
"iframe",
|
|
46521
46523
|
{
|
|
46522
46524
|
ref: f,
|
|
46523
|
-
className:
|
|
46525
|
+
className: ot(
|
|
46524
46526
|
"rounded-lg max-w-full",
|
|
46525
46527
|
g && "pointer-events-none"
|
|
46526
46528
|
),
|
|
@@ -46574,7 +46576,7 @@ const MH = (e, t) => ({ node: n, updateAttributes: r, deleteNode: o }) => {
|
|
|
46574
46576
|
Y.style.fontSize = "16px";
|
|
46575
46577
|
},
|
|
46576
46578
|
autoFocus: !0,
|
|
46577
|
-
className:
|
|
46579
|
+
className: ot(
|
|
46578
46580
|
"bg-transparent color-text-secondary dark:!text-[#888888] resize-none !mt-2",
|
|
46579
46581
|
"placeholder-disabled",
|
|
46580
46582
|
{
|
|
@@ -46587,23 +46589,32 @@ const MH = (e, t) => ({ node: n, updateAttributes: r, deleteNode: o }) => {
|
|
|
46587
46589
|
}
|
|
46588
46590
|
) }),
|
|
46589
46591
|
n.attrs.caption && !n.attrs.showCaptionInput && /* @__PURE__ */ F.jsx("div", { className: "caption", children: n.attrs.caption }),
|
|
46590
|
-
!i && /* @__PURE__ */ F.jsx(
|
|
46591
|
-
|
|
46592
|
-
).map((P, Y) => /* @__PURE__ */ F.jsx(
|
|
46593
|
-
pr,
|
|
46592
|
+
!i && /* @__PURE__ */ F.jsx(
|
|
46593
|
+
"span",
|
|
46594
46594
|
{
|
|
46595
|
-
|
|
46596
|
-
|
|
46597
|
-
|
|
46598
|
-
|
|
46599
|
-
|
|
46600
|
-
|
|
46601
|
-
|
|
46602
|
-
|
|
46603
|
-
|
|
46604
|
-
|
|
46605
|
-
|
|
46606
|
-
|
|
46595
|
+
className: ot(
|
|
46596
|
+
"absolute transition-all rounded-md overflow-hidden box-border border color-border-default color-bg-default shadow-elevation-3 opacity-0 group-hover:opacity-100 flex gap-1 p-1",
|
|
46597
|
+
a ? "bottom-2 left-2" : "top-2 right-2"
|
|
46598
|
+
),
|
|
46599
|
+
children: ET.filter(
|
|
46600
|
+
(P) => s !== "iframe" || P.tooltip !== "Add Caption"
|
|
46601
|
+
).map((P, Y) => /* @__PURE__ */ F.jsx(
|
|
46602
|
+
pr,
|
|
46603
|
+
{
|
|
46604
|
+
tooltip: P.tooltip,
|
|
46605
|
+
isActive: p[P.tooltip],
|
|
46606
|
+
onClick: () => {
|
|
46607
|
+
var ie;
|
|
46608
|
+
return P.tooltip === "Delete" ? o() : (ie = P.action) == null ? void 0 : ie.call(P, r);
|
|
46609
|
+
},
|
|
46610
|
+
icon: P.icon,
|
|
46611
|
+
classNames: "min-w-6 aspect-square",
|
|
46612
|
+
size: "sm"
|
|
46613
|
+
},
|
|
46614
|
+
Y
|
|
46615
|
+
))
|
|
46616
|
+
}
|
|
46617
|
+
)
|
|
46607
46618
|
]
|
|
46608
46619
|
}
|
|
46609
46620
|
)
|
|
@@ -55010,7 +55021,7 @@ const MFe = [
|
|
|
55010
55021
|
{
|
|
55011
55022
|
ref: s,
|
|
55012
55023
|
tabIndex: 0,
|
|
55013
|
-
className:
|
|
55024
|
+
className: ot("trigger-button", { hidden: i }),
|
|
55014
55025
|
contentEditable: !1,
|
|
55015
55026
|
onClick: c,
|
|
55016
55027
|
onMouseDown: (p) => {
|
|
@@ -167835,7 +167846,7 @@ const mIe = ({
|
|
|
167835
167846
|
return /* @__PURE__ */ F.jsxs(
|
|
167836
167847
|
Ca,
|
|
167837
167848
|
{
|
|
167838
|
-
className:
|
|
167849
|
+
className: ot("flex relative w-full h-full justify-center items-center"),
|
|
167839
167850
|
style: a,
|
|
167840
167851
|
children: [
|
|
167841
167852
|
/* @__PURE__ */ F.jsx(
|
|
@@ -183115,7 +183126,7 @@ const Dqe = ({
|
|
|
183115
183126
|
onOpenChange: t,
|
|
183116
183127
|
noOverlay: !0,
|
|
183117
183128
|
side: "right",
|
|
183118
|
-
className:
|
|
183129
|
+
className: ot(
|
|
183119
183130
|
"p-0 !w-screen md:!w-[384px] !z-50 !color-bg-default",
|
|
183120
183131
|
!l && "!h-screen"
|
|
183121
183132
|
),
|
|
@@ -183152,7 +183163,7 @@ const Dqe = ({
|
|
|
183152
183163
|
side: "right",
|
|
183153
183164
|
rounded: !0,
|
|
183154
183165
|
dismissible: !0,
|
|
183155
|
-
className:
|
|
183166
|
+
className: ot(
|
|
183156
183167
|
"w-[calc(100vw-24px)] !z-40 md:w-[384px] right-0 shadow-elevation-4 rounded-lg border color-border-default",
|
|
183157
183168
|
e && "right-2 md:!right-4",
|
|
183158
183169
|
n ? `h-[calc(98vh-140px)] ${i ? "top-[4rem]" : "top-[7.25rem] "}` : "top-[4rem] h-[calc(100vh-90px)] xl:h-[calc(99vh-90px)]",
|
|
@@ -183870,7 +183881,7 @@ const qqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
183870
183881
|
transform: xee.Transform.toString(o),
|
|
183871
183882
|
transition: i
|
|
183872
183883
|
},
|
|
183873
|
-
className:
|
|
183884
|
+
className: ot(s && "opacity-0", "w-full"),
|
|
183874
183885
|
children: /* @__PURE__ */ F.jsx(
|
|
183875
183886
|
yQ,
|
|
183876
183887
|
{
|
|
@@ -184016,7 +184027,7 @@ const qqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
184016
184027
|
},
|
|
184017
184028
|
onClick: s,
|
|
184018
184029
|
...u,
|
|
184019
|
-
className:
|
|
184030
|
+
className: ot(
|
|
184020
184031
|
"flex items-center active:cursor-grabbing relative justify-between h-[40px] px-[12px] py-[8px] rounded-full",
|
|
184021
184032
|
a && "color-bg-default-hover"
|
|
184022
184033
|
),
|
|
@@ -184098,7 +184109,7 @@ const qqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
184098
184109
|
"div",
|
|
184099
184110
|
{
|
|
184100
184111
|
"data-testid": `tab-menu-${e.id}`,
|
|
184101
|
-
className:
|
|
184112
|
+
className: ot(qqe, e.disabled && "!cursor-not-allowed"),
|
|
184102
184113
|
onClick: (i) => {
|
|
184103
184114
|
var s;
|
|
184104
184115
|
i.stopPropagation(), !e.disabled && ((s = e.onSelect) == null || s.call(e));
|
|
@@ -184109,13 +184120,13 @@ const qqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
184109
184120
|
{
|
|
184110
184121
|
name: e.icon,
|
|
184111
184122
|
stroke: e.iconStroke,
|
|
184112
|
-
className:
|
|
184123
|
+
className: ot("w-[16px] h-[16px]")
|
|
184113
184124
|
}
|
|
184114
184125
|
),
|
|
184115
184126
|
/* @__PURE__ */ F.jsx(
|
|
184116
184127
|
"p",
|
|
184117
184128
|
{
|
|
184118
|
-
className:
|
|
184129
|
+
className: ot(
|
|
184119
184130
|
"text-heading-xsm color-text-default",
|
|
184120
184131
|
e.textClassName
|
|
184121
184132
|
),
|
|
@@ -184157,7 +184168,7 @@ const qqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
184157
184168
|
elevation: 2,
|
|
184158
184169
|
side: t,
|
|
184159
184170
|
sideOffset: 4,
|
|
184160
|
-
className:
|
|
184171
|
+
className: ot("w-[160px] space-xsm", n),
|
|
184161
184172
|
children: r.map((o, i) => /* @__PURE__ */ F.jsxs("div", { children: [
|
|
184162
184173
|
i > 0 && /* @__PURE__ */ F.jsx("hr", { className: "border-t space-x-xsm color-border-default my-[4px] w-full" }),
|
|
184163
184174
|
o.map((s) => /* @__PURE__ */ F.jsx(Kqe, { item: s }, s.id))
|
|
@@ -184326,7 +184337,7 @@ const qqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
184326
184337
|
"div",
|
|
184327
184338
|
{
|
|
184328
184339
|
"data-testid": "tab-sidebar",
|
|
184329
|
-
className:
|
|
184340
|
+
className: ot(
|
|
184330
184341
|
"flex flex-col items-start w-full h-full overflow-y-auto justify-start left-0 px-4",
|
|
184331
184342
|
// Keep landscape TOC responsive: it can shrink to 182px on tighter widths
|
|
184332
184343
|
// and grow up to the original 263px when space allows.
|
|
@@ -184349,7 +184360,7 @@ const qqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
184349
184360
|
onMouseEnter: () => !r && E(!0),
|
|
184350
184361
|
onMouseLeave: () => E(!1),
|
|
184351
184362
|
onClick: () => o == null ? void 0 : o((U) => !U),
|
|
184352
|
-
className:
|
|
184363
|
+
className: ot(
|
|
184353
184364
|
"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",
|
|
184354
184365
|
!r && "hover:min-w-[156px] gap-[8px]",
|
|
184355
184366
|
e.length > 0 && !r && "color-bg-secondary-hover"
|
|
@@ -184365,7 +184376,7 @@ const qqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
184365
184376
|
/* @__PURE__ */ F.jsx(
|
|
184366
184377
|
"span",
|
|
184367
184378
|
{
|
|
184368
|
-
className:
|
|
184379
|
+
className: ot(
|
|
184369
184380
|
"whitespace-nowrap text-heading-xsm color-text-default max-w-[110px] truncate transition-opacity duration-150",
|
|
184370
184381
|
e.length === 1 && !q && !r && "hidden"
|
|
184371
184382
|
),
|
|
@@ -184527,7 +184538,7 @@ const qqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
184527
184538
|
/* @__PURE__ */ F.jsx(
|
|
184528
184539
|
"div",
|
|
184529
184540
|
{
|
|
184530
|
-
className:
|
|
184541
|
+
className: ot(
|
|
184531
184542
|
"table-of-contents animate-in fade-in slide-in-from-left-5",
|
|
184532
184543
|
x && !m ? "block" : "hidden"
|
|
184533
184544
|
),
|
|
@@ -184657,7 +184668,7 @@ const qqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
184657
184668
|
"div",
|
|
184658
184669
|
{
|
|
184659
184670
|
"data-testid": "mobile-tab-panel",
|
|
184660
|
-
className:
|
|
184671
|
+
className: ot("fixed w-full flex flex-col z-[9]"),
|
|
184661
184672
|
style: {
|
|
184662
184673
|
bottom: ne || p && !f ? "0px" : f ? "var(--version-sheet-bottom, 24px)" : "24px"
|
|
184663
184674
|
},
|
|
@@ -184665,7 +184676,7 @@ const qqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
184665
184676
|
/* @__PURE__ */ F.jsx(
|
|
184666
184677
|
"div",
|
|
184667
184678
|
{
|
|
184668
|
-
className:
|
|
184679
|
+
className: ot(
|
|
184669
184680
|
"rounded-t-[12px] color-bg-default flex flex-col w-full gap-[8px] overflow-hidden",
|
|
184670
184681
|
ne ? "h-[300px] space-md shadow-[0_-12px_32px_rgba(0,0,0,0.18)]" : " px-[8px] py-[2px] border color-bg-secondary shadow-none"
|
|
184671
184682
|
),
|
|
@@ -184674,7 +184685,7 @@ const qqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
184674
184685
|
/* @__PURE__ */ F.jsxs(
|
|
184675
184686
|
"div",
|
|
184676
184687
|
{
|
|
184677
|
-
className:
|
|
184688
|
+
className: ot("gap-xsm flex items-center justify-between w-full"),
|
|
184678
184689
|
children: [
|
|
184679
184690
|
/* @__PURE__ */ F.jsx("h2", { className: "text-heading-xsm color-text-default", children: "Document tabs" }),
|
|
184680
184691
|
/* @__PURE__ */ F.jsx(
|
|
@@ -184692,7 +184703,7 @@ const qqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
184692
184703
|
/* @__PURE__ */ F.jsx(
|
|
184693
184704
|
"div",
|
|
184694
184705
|
{
|
|
184695
|
-
className:
|
|
184706
|
+
className: ot(
|
|
184696
184707
|
"w-full no-scrollbar overflow-y-auto flex-1",
|
|
184697
184708
|
"min-h-0",
|
|
184698
184709
|
"transition-opacity duration-300"
|
|
@@ -184726,7 +184737,7 @@ const qqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
184726
184737
|
/* @__PURE__ */ F.jsx(
|
|
184727
184738
|
"div",
|
|
184728
184739
|
{
|
|
184729
|
-
className:
|
|
184740
|
+
className: ot(
|
|
184730
184741
|
"table-of-contents transition-all duration-300 ease-[cubic-bezier(0.22,1,0.36,1)]",
|
|
184731
184742
|
oe.id === t ? "opacity-100 translate-x-0" : "opacity-0 -translate-x-2 h-0 overflow-hidden"
|
|
184732
184743
|
),
|
|
@@ -184751,7 +184762,7 @@ const qqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
184751
184762
|
"div",
|
|
184752
184763
|
{
|
|
184753
184764
|
id: "tab-nav",
|
|
184754
|
-
className:
|
|
184765
|
+
className: ot(
|
|
184755
184766
|
"flex justify-between items-center w-full",
|
|
184756
184767
|
"transition-all duration-300 animate-in fade-in slide-in-from-bottom-1"
|
|
184757
184768
|
),
|
|
@@ -184763,7 +184774,7 @@ const qqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
184763
184774
|
onClick: z,
|
|
184764
184775
|
disabled: !E,
|
|
184765
184776
|
"aria-label": "Go to previous tab",
|
|
184766
|
-
className:
|
|
184777
|
+
className: ot(
|
|
184767
184778
|
"h-[36px] w-[36px] flex items-center justify-center transition-opacity duration-200",
|
|
184768
184779
|
E ? "cursor-pointer" : "opacity-40 cursor-not-allowed"
|
|
184769
184780
|
),
|
|
@@ -184813,7 +184824,7 @@ const qqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
184813
184824
|
onClick: $,
|
|
184814
184825
|
disabled: !S,
|
|
184815
184826
|
"aria-label": "Go to next tab",
|
|
184816
|
-
className:
|
|
184827
|
+
className: ot(
|
|
184817
184828
|
"h-[36px] w-[36px] flex items-center justify-center transition-opacity duration-200",
|
|
184818
184829
|
S ? "cursor-pointer" : "opacity-40 cursor-not-allowed"
|
|
184819
184830
|
),
|
|
@@ -184825,7 +184836,7 @@ const qqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
184825
184836
|
) : /* @__PURE__ */ F.jsxs(
|
|
184826
184837
|
"div",
|
|
184827
184838
|
{
|
|
184828
|
-
className:
|
|
184839
|
+
className: ot(
|
|
184829
184840
|
"flex justify-between items-center w-full",
|
|
184830
184841
|
"transition-all duration-300 animate-in fade-in slide-in-from-bottom-1"
|
|
184831
184842
|
),
|
|
@@ -185399,7 +185410,7 @@ const qqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
185399
185410
|
if (!Et) return {};
|
|
185400
185411
|
const _t = {}, nn = Qqe[Tt];
|
|
185401
185412
|
return typeof Et.width == "number" ? (_t.width = `${Et.width}px`, _t.maxWidth = `${Et.width}px`) : (_t.width = nn.zoomFitWidth, _t.maxWidth = `${nn.zoomFitMaxWidth}px`), Et.minHeight && (_t.minHeight = Et.minHeight), _t;
|
|
185402
|
-
},
|
|
185413
|
+
}, it = Ge(null), ft = Vn("(min-width: 1500px)"), Yt = Vn("(min-width: 3000px)"), an = Vn("(min-width: 1600px)"), $t = Vn("(min-width: 1360px)"), { isNativeMobile: kt, isIOS: _r } = Hl(), [Qe, we] = Ne(!1), Pe = Ge(null), lt = (k == null ? void 0 : k.slice(0, 4)) || [], Jt = k ? Math.max(0, k.length - 4) : 0;
|
|
185403
185414
|
dg(Pe, () => {
|
|
185404
185415
|
we(!1);
|
|
185405
185416
|
}), Oe(() => {
|
|
@@ -185620,7 +185631,7 @@ const qqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
185620
185631
|
"div",
|
|
185621
185632
|
{
|
|
185622
185633
|
id: "toolbar",
|
|
185623
|
-
className:
|
|
185634
|
+
className: ot(
|
|
185624
185635
|
"z-[45] hidden mobile:flex items-center justify-center w-full h-[52px] fixed left-0 color-bg-default border-b color-border-default transition-transform duration-300 top-[3.5rem]",
|
|
185625
185636
|
{
|
|
185626
185637
|
"translate-y-0": L,
|
|
@@ -185731,7 +185742,7 @@ const qqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
185731
185742
|
"div",
|
|
185732
185743
|
{
|
|
185733
185744
|
id: "editor-wrapper",
|
|
185734
|
-
className:
|
|
185745
|
+
className: ot(
|
|
185735
185746
|
"w-full mx-auto rounded transition-all duration-300 ease-in-out",
|
|
185736
185747
|
!(Le != null && Le.canvasBackground) && "color-bg-default",
|
|
185737
185748
|
!e && (L ? "-mt-[1.5rem] md:!mt-[0.8rem] pt-0 md:pt-[5rem]" : "pt-0 md:pt-[1.5rem]"),
|
|
@@ -185767,7 +185778,7 @@ const qqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
185767
185778
|
"div",
|
|
185768
185779
|
{
|
|
185769
185780
|
ref: mn,
|
|
185770
|
-
className:
|
|
185781
|
+
className: ot(
|
|
185771
185782
|
"w-full h-full pt-8 md:pt-0",
|
|
185772
185783
|
{ "custom-ios-padding": _r },
|
|
185773
185784
|
{
|
|
@@ -185834,7 +185845,7 @@ const qqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
185834
185845
|
"div",
|
|
185835
185846
|
{
|
|
185836
185847
|
ref: Pe,
|
|
185837
|
-
className:
|
|
185848
|
+
className: ot(
|
|
185838
185849
|
"flex flex-wrap px-4 md:px-8 lg:px-[80px] mb-8 items-center gap-1 mt-4 lg:!mt-0",
|
|
185839
185850
|
{ "pt-12": e }
|
|
185840
185851
|
),
|
|
@@ -185903,7 +185914,7 @@ const qqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
185903
185914
|
{
|
|
185904
185915
|
editor: et,
|
|
185905
185916
|
id: "editor",
|
|
185906
|
-
className:
|
|
185917
|
+
className: ot(
|
|
185907
185918
|
"w-full h-auto",
|
|
185908
185919
|
e && "preview-mode",
|
|
185909
185920
|
dt !== void 0 && Me && "has-available-models",
|
|
@@ -185924,12 +185935,12 @@ const qqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
185924
185935
|
h && !kt && /* @__PURE__ */ F.jsx(
|
|
185925
185936
|
qt,
|
|
185926
185937
|
{
|
|
185927
|
-
ref:
|
|
185938
|
+
ref: it,
|
|
185928
185939
|
onClick: () => {
|
|
185929
185940
|
et && (p == null || p(et));
|
|
185930
185941
|
},
|
|
185931
185942
|
variant: "ghost",
|
|
185932
|
-
className:
|
|
185943
|
+
className: ot(
|
|
185933
185944
|
"absolute w-12 h-12 color-bg-default rounded-full shadow-xl top-[70px] right-[-23px]"
|
|
185934
185945
|
),
|
|
185935
185946
|
children: /* @__PURE__ */ F.jsx(Ue, { name: "MessageSquareText", size: "sm" })
|
|
@@ -185938,7 +185949,7 @@ const qqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
185938
185949
|
!e && !m && /* @__PURE__ */ F.jsx(
|
|
185939
185950
|
"div",
|
|
185940
185951
|
{
|
|
185941
|
-
className:
|
|
185952
|
+
className: ot(
|
|
185942
185953
|
"flex mobile:hidden items-center w-full h-[52px] fixed left-0 z-10 px-4 color-bg-default transition-all duration-300 ease-in-out border-b border-color-default",
|
|
185943
185954
|
tn && "hidden",
|
|
185944
185955
|
{ "top-14": L, "top-0": !L }
|
|
@@ -185990,7 +186001,7 @@ const qqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
185990
186001
|
children: /* @__PURE__ */ F.jsx(
|
|
185991
186002
|
"div",
|
|
185992
186003
|
{
|
|
185993
|
-
className:
|
|
186004
|
+
className: ot(
|
|
185994
186005
|
"w-full",
|
|
185995
186006
|
S ? "color-bg-default" : "color-bg-secondary"
|
|
185996
186007
|
),
|
|
@@ -186001,7 +186012,7 @@ const qqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
186001
186012
|
"div",
|
|
186002
186013
|
{
|
|
186003
186014
|
id: "editor-canvas",
|
|
186004
|
-
className:
|
|
186015
|
+
className: ot(
|
|
186005
186016
|
"h-[100%] w-full custom-scrollbar relative",
|
|
186006
186017
|
!e && (L ? "mt-[6.7rem]" : "mt-[3.3rem]"),
|
|
186007
186018
|
e && "mt-[3.5rem]",
|
|
@@ -186018,7 +186029,7 @@ const qqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
186018
186029
|
"nav",
|
|
186019
186030
|
{
|
|
186020
186031
|
id: "Navbar",
|
|
186021
|
-
className:
|
|
186032
|
+
className: ot(
|
|
186022
186033
|
"h-14 color-bg-default py-2 px-0 md:px-4 flex gap-2 items-center justify-between w-screen fixed left-0 top-0 border-b color-border-default z-[45] transition-transform duration-300",
|
|
186023
186034
|
{
|
|
186024
186035
|
"translate-y-0": L,
|