@fileverse-dev/ddoc 3.0.66 → 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 +164 -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");
|
|
@@ -36417,7 +36417,7 @@ const L2 = (e) => {
|
|
|
36417
36417
|
onClick: () => {
|
|
36418
36418
|
e.chain().focus().toggleHighlight({ color: r.color }).run(), t(Ye.NONE);
|
|
36419
36419
|
},
|
|
36420
|
-
className:
|
|
36420
|
+
className: ot(
|
|
36421
36421
|
"w-5 rounded-full flex items-center justify-center cursor-pointer ease-in duration-200 hover:scale-[1.05] h-5",
|
|
36422
36422
|
r.code
|
|
36423
36423
|
),
|
|
@@ -36425,7 +36425,7 @@ const L2 = (e) => {
|
|
|
36425
36425
|
Ue,
|
|
36426
36426
|
{
|
|
36427
36427
|
name: "Check",
|
|
36428
|
-
className:
|
|
36428
|
+
className: ot(
|
|
36429
36429
|
"w-[14px] aspect-square",
|
|
36430
36430
|
e.isActive("highlight", {
|
|
36431
36431
|
color: r.color
|
|
@@ -36463,7 +36463,7 @@ const L2 = (e) => {
|
|
|
36463
36463
|
"div",
|
|
36464
36464
|
{
|
|
36465
36465
|
ref: e,
|
|
36466
|
-
className:
|
|
36466
|
+
className: ot(
|
|
36467
36467
|
"z-50 h-auto w-48 color-bg-default px-1 py-2 shadow-elevation-1 transition-all rounded",
|
|
36468
36468
|
"max-h-[80vh] overflow-y-auto"
|
|
36469
36469
|
),
|
|
@@ -36477,7 +36477,7 @@ const L2 = (e) => {
|
|
|
36477
36477
|
style: {
|
|
36478
36478
|
fontFamily: r.title
|
|
36479
36479
|
},
|
|
36480
|
-
className:
|
|
36480
|
+
className: ot(
|
|
36481
36481
|
"flex w-full items-center space-x-2 rounded px-2 py-1 text-left text-sm color-text-default transition",
|
|
36482
36482
|
t.isActive("textStyle", { fontFamily: r.value }) ? "color-bg-brand xl:hover:brightness-90 dark:text-[#363B3F]" : "hover:color-bg-default-hover"
|
|
36483
36483
|
),
|
|
@@ -36503,7 +36503,7 @@ const L2 = (e) => {
|
|
|
36503
36503
|
onClick: () => {
|
|
36504
36504
|
t == null || t.chain().focus().setTextAlign("left").run(), n(Ye.NONE);
|
|
36505
36505
|
},
|
|
36506
|
-
className:
|
|
36506
|
+
className: ot(
|
|
36507
36507
|
"rounded w-8 h-8 p-1 flex justify-center items-center cursor-pointer transition",
|
|
36508
36508
|
t.isActive({ textAlign: "left" }) ? "color-bg-brand xl:hover:brightness-90 dark:text-[#363B3F]" : "hover:color-bg-default-hover"
|
|
36509
36509
|
),
|
|
@@ -36517,7 +36517,7 @@ const L2 = (e) => {
|
|
|
36517
36517
|
onClick: () => {
|
|
36518
36518
|
t == null || t.chain().focus().setTextAlign("center").run(), n(Ye.NONE);
|
|
36519
36519
|
},
|
|
36520
|
-
className:
|
|
36520
|
+
className: ot(
|
|
36521
36521
|
"rounded w-8 h-8 p-1 flex justify-center items-center cursor-pointer transition",
|
|
36522
36522
|
t.isActive({ textAlign: "center" }) ? "color-bg-brand xl:hover:brightness-90 dark:text-[#363B3F]" : "hover:color-bg-default-hover"
|
|
36523
36523
|
),
|
|
@@ -36531,7 +36531,7 @@ const L2 = (e) => {
|
|
|
36531
36531
|
onClick: () => {
|
|
36532
36532
|
t == null || t.chain().focus().setTextAlign("right").run(), n(Ye.NONE);
|
|
36533
36533
|
},
|
|
36534
|
-
className:
|
|
36534
|
+
className: ot(
|
|
36535
36535
|
"rounded w-8 h-8 p-1 flex justify-center items-center cursor-pointer transition",
|
|
36536
36536
|
t.isActive({ textAlign: "right" }) ? "color-bg-brand xl:hover:brightness-90 dark:text-[#363B3F]" : "hover:color-bg-default-hover"
|
|
36537
36537
|
),
|
|
@@ -36545,7 +36545,7 @@ const L2 = (e) => {
|
|
|
36545
36545
|
onClick: () => {
|
|
36546
36546
|
t == null || t.chain().focus().setTextAlign("justify").run(), n(Ye.NONE);
|
|
36547
36547
|
},
|
|
36548
|
-
className:
|
|
36548
|
+
className: ot(
|
|
36549
36549
|
"rounded w-8 h-8 p-1 flex justify-center items-center cursor-pointer transition",
|
|
36550
36550
|
t.isActive({ textAlign: "justify" }) ? "color-bg-brand xl:hover:brightness-90 dark:text-[#363B3F]" : "hover:color-bg-default-hover"
|
|
36551
36551
|
),
|
|
@@ -36641,7 +36641,7 @@ const L2 = (e) => {
|
|
|
36641
36641
|
onClick: () => {
|
|
36642
36642
|
r.command();
|
|
36643
36643
|
},
|
|
36644
|
-
className:
|
|
36644
|
+
className: ot(
|
|
36645
36645
|
"flex items-center justify-between w-full px-2 py-1 text-body-sm",
|
|
36646
36646
|
r.isActive() && "color-bg-brand hover:!bg-[#B6A02E] dark:text-[#363B3F]"
|
|
36647
36647
|
),
|
|
@@ -36678,7 +36678,7 @@ const L2 = (e) => {
|
|
|
36678
36678
|
onClick: () => {
|
|
36679
36679
|
e && (e.chain().focus().setColor(a).run(), t(Ye.NONE));
|
|
36680
36680
|
},
|
|
36681
|
-
className:
|
|
36681
|
+
className: ot(
|
|
36682
36682
|
"w-5 rounded-full flex justify-center items-center cursor-pointer ease-in duration-200 hover:scale-[1.05] h-5"
|
|
36683
36683
|
),
|
|
36684
36684
|
style: { backgroundColor: a },
|
|
@@ -36686,7 +36686,7 @@ const L2 = (e) => {
|
|
|
36686
36686
|
Ue,
|
|
36687
36687
|
{
|
|
36688
36688
|
name: "Check",
|
|
36689
|
-
className:
|
|
36689
|
+
className: ot(
|
|
36690
36690
|
"w-[14px] aspect-square",
|
|
36691
36691
|
e != null && e.isActive("textStyle", {
|
|
36692
36692
|
color: a
|
|
@@ -36762,7 +36762,7 @@ const L2 = (e) => {
|
|
|
36762
36762
|
"div",
|
|
36763
36763
|
{
|
|
36764
36764
|
ref: n,
|
|
36765
|
-
className:
|
|
36765
|
+
className: ot(
|
|
36766
36766
|
"z-50 flex w-48 flex-col overflow-hidden rounded color-bg-default p-1 shadow-elevation-1"
|
|
36767
36767
|
),
|
|
36768
36768
|
children: r.map((o) => /* @__PURE__ */ F.jsxs(
|
|
@@ -36772,7 +36772,7 @@ const L2 = (e) => {
|
|
|
36772
36772
|
onClick: () => {
|
|
36773
36773
|
o.command(e), t(Ye.NONE);
|
|
36774
36774
|
},
|
|
36775
|
-
className:
|
|
36775
|
+
className: ot(
|
|
36776
36776
|
"flex w-full items-center space-x-2 rounded-md px-2 py-1 text-left text-sm color-text-default transition",
|
|
36777
36777
|
{
|
|
36778
36778
|
"color-bg-brand xl:hover:brightness-90 dark:text-[#363B3F]": o.isActive(),
|
|
@@ -36807,7 +36807,7 @@ const L2 = (e) => {
|
|
|
36807
36807
|
"div",
|
|
36808
36808
|
{
|
|
36809
36809
|
ref: n,
|
|
36810
|
-
className:
|
|
36810
|
+
className: ot(
|
|
36811
36811
|
"z-50 flex flex-col justify-center items-center overflow-hidden rounded color-bg-default p-2 gap-1 shadow-elevation-1"
|
|
36812
36812
|
),
|
|
36813
36813
|
children: i.map((s) => /* @__PURE__ */ F.jsx(
|
|
@@ -36817,7 +36817,7 @@ const L2 = (e) => {
|
|
|
36817
36817
|
onClick: () => {
|
|
36818
36818
|
o(s.value), t(Ye.NONE);
|
|
36819
36819
|
},
|
|
36820
|
-
className:
|
|
36820
|
+
className: ot(
|
|
36821
36821
|
"flex w-full items-center justify-center rounded px-2 py-1 text-center text-sm color-text-default transition",
|
|
36822
36822
|
{
|
|
36823
36823
|
"color-bg-brand xl:hover:brightness-90 dark:text-[#363B3F]": r === s.value,
|
|
@@ -36841,7 +36841,7 @@ const L2 = (e) => {
|
|
|
36841
36841
|
"div",
|
|
36842
36842
|
{
|
|
36843
36843
|
ref: t,
|
|
36844
|
-
className:
|
|
36844
|
+
className: ot(
|
|
36845
36845
|
"z-50 flex flex-col justify-center items-center overflow-hidden rounded color-bg-default p-2 gap-1 shadow-elevation-1"
|
|
36846
36846
|
),
|
|
36847
36847
|
children: o.map((i) => /* @__PURE__ */ F.jsxs(
|
|
@@ -36851,7 +36851,7 @@ const L2 = (e) => {
|
|
|
36851
36851
|
onClick: () => {
|
|
36852
36852
|
r(i.value), e(Ye.NONE);
|
|
36853
36853
|
},
|
|
36854
|
-
className:
|
|
36854
|
+
className: ot(
|
|
36855
36855
|
"flex w-full items-center gap-2 rounded px-2 py-1 text-sm color-text-default transition min-w-[120px]",
|
|
36856
36856
|
{
|
|
36857
36857
|
"color-bg-default-hover": n === i.value,
|
|
@@ -37097,7 +37097,7 @@ const L2 = (e) => {
|
|
|
37097
37097
|
"button",
|
|
37098
37098
|
{
|
|
37099
37099
|
onClick: () => e && u.command(e),
|
|
37100
|
-
className:
|
|
37100
|
+
className: ot(
|
|
37101
37101
|
"flex w-fit items-center font-medium space-x-2 rounded p-2 text-center text-sm color-text-default transition",
|
|
37102
37102
|
{
|
|
37103
37103
|
"color-bg-brand xl:hover:brightness-90 dark:text-[#363B3F]": u.isActive(),
|
|
@@ -37113,7 +37113,7 @@ const L2 = (e) => {
|
|
|
37113
37113
|
"button",
|
|
37114
37114
|
{
|
|
37115
37115
|
onClick: () => e && u.command(e),
|
|
37116
|
-
className:
|
|
37116
|
+
className: ot(
|
|
37117
37117
|
"flex items-center space-x-2 rounded px-4 py-1 color-text-default transition h-9",
|
|
37118
37118
|
{
|
|
37119
37119
|
"color-bg-brand xl:hover:brightness-90 dark:text-[#363B3F]": u.isActive(),
|
|
@@ -37128,7 +37128,7 @@ const L2 = (e) => {
|
|
|
37128
37128
|
"button",
|
|
37129
37129
|
{
|
|
37130
37130
|
onClick: () => e && u.command(e),
|
|
37131
|
-
className:
|
|
37131
|
+
className: ot(
|
|
37132
37132
|
"flex items-center space-x-2 rounded px-4 py-1 color-text-default transition h-9",
|
|
37133
37133
|
{
|
|
37134
37134
|
"color-bg-brand xl:hover:brightness-90 dark:text-[#363B3F]": u.isActive(),
|
|
@@ -37145,7 +37145,7 @@ const L2 = (e) => {
|
|
|
37145
37145
|
"button",
|
|
37146
37146
|
{
|
|
37147
37147
|
onClick: () => e && u.command(e),
|
|
37148
|
-
className:
|
|
37148
|
+
className: ot(
|
|
37149
37149
|
"flex items-center space-x-2 rounded px-4 py-1 color-text-default transition h-9",
|
|
37150
37150
|
{
|
|
37151
37151
|
"color-bg-brand xl:hover:brightness-90 dark:text-[#363B3F]": u.isActive(),
|
|
@@ -37160,7 +37160,7 @@ const L2 = (e) => {
|
|
|
37160
37160
|
"button",
|
|
37161
37161
|
{
|
|
37162
37162
|
onClick: () => e && u.command(e),
|
|
37163
|
-
className:
|
|
37163
|
+
className: ot(
|
|
37164
37164
|
"flex items-center space-x-2 rounded px-4 py-1 color-text-default transition h-9",
|
|
37165
37165
|
{
|
|
37166
37166
|
"color-bg-brand xl:hover:brightness-90 dark:text-[#363B3F]": u.isActive(),
|
|
@@ -37176,7 +37176,7 @@ const L2 = (e) => {
|
|
|
37176
37176
|
"button",
|
|
37177
37177
|
{
|
|
37178
37178
|
onClick: () => e && u.command(e),
|
|
37179
|
-
className:
|
|
37179
|
+
className: ot(
|
|
37180
37180
|
"flex items-center space-x-2 rounded px-4 py-1 color-text-default transition h-9",
|
|
37181
37181
|
{
|
|
37182
37182
|
"color-bg-brand xl:hover:brightness-90 dark:text-[#363B3F]": u.isActive(),
|
|
@@ -37230,7 +37230,7 @@ const L2 = (e) => {
|
|
|
37230
37230
|
onClick: () => {
|
|
37231
37231
|
e && e.chain().setColor(u.color).run();
|
|
37232
37232
|
},
|
|
37233
|
-
className:
|
|
37233
|
+
className: ot(
|
|
37234
37234
|
"w-6 h-6 mb-1 drop-shadow rounded-full flex justify-center items-center cursor-pointer transition",
|
|
37235
37235
|
u.code
|
|
37236
37236
|
),
|
|
@@ -37238,7 +37238,7 @@ const L2 = (e) => {
|
|
|
37238
37238
|
Ue,
|
|
37239
37239
|
{
|
|
37240
37240
|
name: "Check",
|
|
37241
|
-
className:
|
|
37241
|
+
className: ot(
|
|
37242
37242
|
"w-[14px] aspect-square",
|
|
37243
37243
|
e != null && e.isActive("textStyle", {
|
|
37244
37244
|
color: u.color
|
|
@@ -37603,7 +37603,7 @@ const L2 = (e) => {
|
|
|
37603
37603
|
onClick: () => {
|
|
37604
37604
|
o.command();
|
|
37605
37605
|
},
|
|
37606
|
-
className:
|
|
37606
|
+
className: ot(
|
|
37607
37607
|
"flex items-center justify-between rounded-sm px-2 py-1 text-body-sm hover:color-bg-default-hover transition-all",
|
|
37608
37608
|
{
|
|
37609
37609
|
"color-bg-brand hover:color-bg-brand-hover dark:text-[#363B3F]": o.isActive()
|
|
@@ -39653,7 +39653,7 @@ const H$ = yr(
|
|
|
39653
39653
|
className: r,
|
|
39654
39654
|
...o
|
|
39655
39655
|
}, i) => {
|
|
39656
|
-
const s =
|
|
39656
|
+
const s = ot(
|
|
39657
39657
|
"color-text-default inline-flex h-full leading-none gap-0.5",
|
|
39658
39658
|
n ? "flex-col p-2" : "flex-row p-1 items-center",
|
|
39659
39659
|
r
|
|
@@ -39664,7 +39664,7 @@ const H$ = yr(
|
|
|
39664
39664
|
H$.displayName = "Toolbar";
|
|
39665
39665
|
const sme = yr(
|
|
39666
39666
|
({ horizontal: e, className: t, ...n }, r) => {
|
|
39667
|
-
const o =
|
|
39667
|
+
const o = ot(
|
|
39668
39668
|
"bg-neutral-200",
|
|
39669
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",
|
|
39670
39670
|
t
|
|
@@ -46435,7 +46435,7 @@ const MH = (e, t) => ({ node: n, updateAttributes: r, deleteNode: o }) => {
|
|
|
46435
46435
|
Ca,
|
|
46436
46436
|
{
|
|
46437
46437
|
as: "article",
|
|
46438
|
-
className:
|
|
46438
|
+
className: ot(
|
|
46439
46439
|
"media-node-view not-prose transition-all ease-in-out w-full",
|
|
46440
46440
|
S && `f-${n.attrs.dataFloat}`,
|
|
46441
46441
|
L && `justify-${n.attrs.dataAlign}`
|
|
@@ -46445,7 +46445,7 @@ const MH = (e, t) => ({ node: n, updateAttributes: r, deleteNode: o }) => {
|
|
|
46445
46445
|
{
|
|
46446
46446
|
draggable: b,
|
|
46447
46447
|
"data-drag-handle": b,
|
|
46448
|
-
className:
|
|
46448
|
+
className: ot(
|
|
46449
46449
|
"w-fit flex flex-col relative group transition-all ease-in-out",
|
|
46450
46450
|
b && "opacity-50"
|
|
46451
46451
|
),
|
|
@@ -46457,7 +46457,7 @@ const MH = (e, t) => ({ node: n, updateAttributes: r, deleteNode: o }) => {
|
|
|
46457
46457
|
/* @__PURE__ */ F.jsxs(
|
|
46458
46458
|
"div",
|
|
46459
46459
|
{
|
|
46460
|
-
className:
|
|
46460
|
+
className: ot(
|
|
46461
46461
|
"relative",
|
|
46462
46462
|
n.attrs.dataAlign === "start" && "self-start",
|
|
46463
46463
|
n.attrs.dataAlign === "center" && "self-center",
|
|
@@ -46522,7 +46522,7 @@ const MH = (e, t) => ({ node: n, updateAttributes: r, deleteNode: o }) => {
|
|
|
46522
46522
|
"iframe",
|
|
46523
46523
|
{
|
|
46524
46524
|
ref: f,
|
|
46525
|
-
className:
|
|
46525
|
+
className: ot(
|
|
46526
46526
|
"rounded-lg max-w-full",
|
|
46527
46527
|
g && "pointer-events-none"
|
|
46528
46528
|
),
|
|
@@ -46576,7 +46576,7 @@ const MH = (e, t) => ({ node: n, updateAttributes: r, deleteNode: o }) => {
|
|
|
46576
46576
|
Y.style.fontSize = "16px";
|
|
46577
46577
|
},
|
|
46578
46578
|
autoFocus: !0,
|
|
46579
|
-
className:
|
|
46579
|
+
className: ot(
|
|
46580
46580
|
"bg-transparent color-text-secondary dark:!text-[#888888] resize-none !mt-2",
|
|
46581
46581
|
"placeholder-disabled",
|
|
46582
46582
|
{
|
|
@@ -46589,23 +46589,32 @@ const MH = (e, t) => ({ node: n, updateAttributes: r, deleteNode: o }) => {
|
|
|
46589
46589
|
}
|
|
46590
46590
|
) }),
|
|
46591
46591
|
n.attrs.caption && !n.attrs.showCaptionInput && /* @__PURE__ */ F.jsx("div", { className: "caption", children: n.attrs.caption }),
|
|
46592
|
-
!i && /* @__PURE__ */ F.jsx(
|
|
46593
|
-
|
|
46594
|
-
).map((P, Y) => /* @__PURE__ */ F.jsx(
|
|
46595
|
-
pr,
|
|
46592
|
+
!i && /* @__PURE__ */ F.jsx(
|
|
46593
|
+
"span",
|
|
46596
46594
|
{
|
|
46597
|
-
|
|
46598
|
-
|
|
46599
|
-
|
|
46600
|
-
|
|
46601
|
-
|
|
46602
|
-
|
|
46603
|
-
|
|
46604
|
-
|
|
46605
|
-
|
|
46606
|
-
|
|
46607
|
-
|
|
46608
|
-
|
|
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
|
+
)
|
|
46609
46618
|
]
|
|
46610
46619
|
}
|
|
46611
46620
|
)
|
|
@@ -55012,7 +55021,7 @@ const MFe = [
|
|
|
55012
55021
|
{
|
|
55013
55022
|
ref: s,
|
|
55014
55023
|
tabIndex: 0,
|
|
55015
|
-
className:
|
|
55024
|
+
className: ot("trigger-button", { hidden: i }),
|
|
55016
55025
|
contentEditable: !1,
|
|
55017
55026
|
onClick: c,
|
|
55018
55027
|
onMouseDown: (p) => {
|
|
@@ -167837,7 +167846,7 @@ const mIe = ({
|
|
|
167837
167846
|
return /* @__PURE__ */ F.jsxs(
|
|
167838
167847
|
Ca,
|
|
167839
167848
|
{
|
|
167840
|
-
className:
|
|
167849
|
+
className: ot("flex relative w-full h-full justify-center items-center"),
|
|
167841
167850
|
style: a,
|
|
167842
167851
|
children: [
|
|
167843
167852
|
/* @__PURE__ */ F.jsx(
|
|
@@ -183117,7 +183126,7 @@ const Dqe = ({
|
|
|
183117
183126
|
onOpenChange: t,
|
|
183118
183127
|
noOverlay: !0,
|
|
183119
183128
|
side: "right",
|
|
183120
|
-
className:
|
|
183129
|
+
className: ot(
|
|
183121
183130
|
"p-0 !w-screen md:!w-[384px] !z-50 !color-bg-default",
|
|
183122
183131
|
!l && "!h-screen"
|
|
183123
183132
|
),
|
|
@@ -183154,7 +183163,7 @@ const Dqe = ({
|
|
|
183154
183163
|
side: "right",
|
|
183155
183164
|
rounded: !0,
|
|
183156
183165
|
dismissible: !0,
|
|
183157
|
-
className:
|
|
183166
|
+
className: ot(
|
|
183158
183167
|
"w-[calc(100vw-24px)] !z-40 md:w-[384px] right-0 shadow-elevation-4 rounded-lg border color-border-default",
|
|
183159
183168
|
e && "right-2 md:!right-4",
|
|
183160
183169
|
n ? `h-[calc(98vh-140px)] ${i ? "top-[4rem]" : "top-[7.25rem] "}` : "top-[4rem] h-[calc(100vh-90px)] xl:h-[calc(99vh-90px)]",
|
|
@@ -183872,7 +183881,7 @@ const qqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
183872
183881
|
transform: xee.Transform.toString(o),
|
|
183873
183882
|
transition: i
|
|
183874
183883
|
},
|
|
183875
|
-
className:
|
|
183884
|
+
className: ot(s && "opacity-0", "w-full"),
|
|
183876
183885
|
children: /* @__PURE__ */ F.jsx(
|
|
183877
183886
|
yQ,
|
|
183878
183887
|
{
|
|
@@ -184018,7 +184027,7 @@ const qqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
184018
184027
|
},
|
|
184019
184028
|
onClick: s,
|
|
184020
184029
|
...u,
|
|
184021
|
-
className:
|
|
184030
|
+
className: ot(
|
|
184022
184031
|
"flex items-center active:cursor-grabbing relative justify-between h-[40px] px-[12px] py-[8px] rounded-full",
|
|
184023
184032
|
a && "color-bg-default-hover"
|
|
184024
184033
|
),
|
|
@@ -184100,7 +184109,7 @@ const qqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
184100
184109
|
"div",
|
|
184101
184110
|
{
|
|
184102
184111
|
"data-testid": `tab-menu-${e.id}`,
|
|
184103
|
-
className:
|
|
184112
|
+
className: ot(qqe, e.disabled && "!cursor-not-allowed"),
|
|
184104
184113
|
onClick: (i) => {
|
|
184105
184114
|
var s;
|
|
184106
184115
|
i.stopPropagation(), !e.disabled && ((s = e.onSelect) == null || s.call(e));
|
|
@@ -184111,13 +184120,13 @@ const qqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
184111
184120
|
{
|
|
184112
184121
|
name: e.icon,
|
|
184113
184122
|
stroke: e.iconStroke,
|
|
184114
|
-
className:
|
|
184123
|
+
className: ot("w-[16px] h-[16px]")
|
|
184115
184124
|
}
|
|
184116
184125
|
),
|
|
184117
184126
|
/* @__PURE__ */ F.jsx(
|
|
184118
184127
|
"p",
|
|
184119
184128
|
{
|
|
184120
|
-
className:
|
|
184129
|
+
className: ot(
|
|
184121
184130
|
"text-heading-xsm color-text-default",
|
|
184122
184131
|
e.textClassName
|
|
184123
184132
|
),
|
|
@@ -184159,7 +184168,7 @@ const qqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
184159
184168
|
elevation: 2,
|
|
184160
184169
|
side: t,
|
|
184161
184170
|
sideOffset: 4,
|
|
184162
|
-
className:
|
|
184171
|
+
className: ot("w-[160px] space-xsm", n),
|
|
184163
184172
|
children: r.map((o, i) => /* @__PURE__ */ F.jsxs("div", { children: [
|
|
184164
184173
|
i > 0 && /* @__PURE__ */ F.jsx("hr", { className: "border-t space-x-xsm color-border-default my-[4px] w-full" }),
|
|
184165
184174
|
o.map((s) => /* @__PURE__ */ F.jsx(Kqe, { item: s }, s.id))
|
|
@@ -184328,7 +184337,7 @@ const qqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
184328
184337
|
"div",
|
|
184329
184338
|
{
|
|
184330
184339
|
"data-testid": "tab-sidebar",
|
|
184331
|
-
className:
|
|
184340
|
+
className: ot(
|
|
184332
184341
|
"flex flex-col items-start w-full h-full overflow-y-auto justify-start left-0 px-4",
|
|
184333
184342
|
// Keep landscape TOC responsive: it can shrink to 182px on tighter widths
|
|
184334
184343
|
// and grow up to the original 263px when space allows.
|
|
@@ -184351,7 +184360,7 @@ const qqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
184351
184360
|
onMouseEnter: () => !r && E(!0),
|
|
184352
184361
|
onMouseLeave: () => E(!1),
|
|
184353
184362
|
onClick: () => o == null ? void 0 : o((U) => !U),
|
|
184354
|
-
className:
|
|
184363
|
+
className: ot(
|
|
184355
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",
|
|
184356
184365
|
!r && "hover:min-w-[156px] gap-[8px]",
|
|
184357
184366
|
e.length > 0 && !r && "color-bg-secondary-hover"
|
|
@@ -184367,7 +184376,7 @@ const qqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
184367
184376
|
/* @__PURE__ */ F.jsx(
|
|
184368
184377
|
"span",
|
|
184369
184378
|
{
|
|
184370
|
-
className:
|
|
184379
|
+
className: ot(
|
|
184371
184380
|
"whitespace-nowrap text-heading-xsm color-text-default max-w-[110px] truncate transition-opacity duration-150",
|
|
184372
184381
|
e.length === 1 && !q && !r && "hidden"
|
|
184373
184382
|
),
|
|
@@ -184529,7 +184538,7 @@ const qqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
184529
184538
|
/* @__PURE__ */ F.jsx(
|
|
184530
184539
|
"div",
|
|
184531
184540
|
{
|
|
184532
|
-
className:
|
|
184541
|
+
className: ot(
|
|
184533
184542
|
"table-of-contents animate-in fade-in slide-in-from-left-5",
|
|
184534
184543
|
x && !m ? "block" : "hidden"
|
|
184535
184544
|
),
|
|
@@ -184659,7 +184668,7 @@ const qqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
184659
184668
|
"div",
|
|
184660
184669
|
{
|
|
184661
184670
|
"data-testid": "mobile-tab-panel",
|
|
184662
|
-
className:
|
|
184671
|
+
className: ot("fixed w-full flex flex-col z-[9]"),
|
|
184663
184672
|
style: {
|
|
184664
184673
|
bottom: ne || p && !f ? "0px" : f ? "var(--version-sheet-bottom, 24px)" : "24px"
|
|
184665
184674
|
},
|
|
@@ -184667,7 +184676,7 @@ const qqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
184667
184676
|
/* @__PURE__ */ F.jsx(
|
|
184668
184677
|
"div",
|
|
184669
184678
|
{
|
|
184670
|
-
className:
|
|
184679
|
+
className: ot(
|
|
184671
184680
|
"rounded-t-[12px] color-bg-default flex flex-col w-full gap-[8px] overflow-hidden",
|
|
184672
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"
|
|
184673
184682
|
),
|
|
@@ -184676,7 +184685,7 @@ const qqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
184676
184685
|
/* @__PURE__ */ F.jsxs(
|
|
184677
184686
|
"div",
|
|
184678
184687
|
{
|
|
184679
|
-
className:
|
|
184688
|
+
className: ot("gap-xsm flex items-center justify-between w-full"),
|
|
184680
184689
|
children: [
|
|
184681
184690
|
/* @__PURE__ */ F.jsx("h2", { className: "text-heading-xsm color-text-default", children: "Document tabs" }),
|
|
184682
184691
|
/* @__PURE__ */ F.jsx(
|
|
@@ -184694,7 +184703,7 @@ const qqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
184694
184703
|
/* @__PURE__ */ F.jsx(
|
|
184695
184704
|
"div",
|
|
184696
184705
|
{
|
|
184697
|
-
className:
|
|
184706
|
+
className: ot(
|
|
184698
184707
|
"w-full no-scrollbar overflow-y-auto flex-1",
|
|
184699
184708
|
"min-h-0",
|
|
184700
184709
|
"transition-opacity duration-300"
|
|
@@ -184728,7 +184737,7 @@ const qqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
184728
184737
|
/* @__PURE__ */ F.jsx(
|
|
184729
184738
|
"div",
|
|
184730
184739
|
{
|
|
184731
|
-
className:
|
|
184740
|
+
className: ot(
|
|
184732
184741
|
"table-of-contents transition-all duration-300 ease-[cubic-bezier(0.22,1,0.36,1)]",
|
|
184733
184742
|
oe.id === t ? "opacity-100 translate-x-0" : "opacity-0 -translate-x-2 h-0 overflow-hidden"
|
|
184734
184743
|
),
|
|
@@ -184753,7 +184762,7 @@ const qqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
184753
184762
|
"div",
|
|
184754
184763
|
{
|
|
184755
184764
|
id: "tab-nav",
|
|
184756
|
-
className:
|
|
184765
|
+
className: ot(
|
|
184757
184766
|
"flex justify-between items-center w-full",
|
|
184758
184767
|
"transition-all duration-300 animate-in fade-in slide-in-from-bottom-1"
|
|
184759
184768
|
),
|
|
@@ -184765,7 +184774,7 @@ const qqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
184765
184774
|
onClick: z,
|
|
184766
184775
|
disabled: !E,
|
|
184767
184776
|
"aria-label": "Go to previous tab",
|
|
184768
|
-
className:
|
|
184777
|
+
className: ot(
|
|
184769
184778
|
"h-[36px] w-[36px] flex items-center justify-center transition-opacity duration-200",
|
|
184770
184779
|
E ? "cursor-pointer" : "opacity-40 cursor-not-allowed"
|
|
184771
184780
|
),
|
|
@@ -184815,7 +184824,7 @@ const qqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
184815
184824
|
onClick: $,
|
|
184816
184825
|
disabled: !S,
|
|
184817
184826
|
"aria-label": "Go to next tab",
|
|
184818
|
-
className:
|
|
184827
|
+
className: ot(
|
|
184819
184828
|
"h-[36px] w-[36px] flex items-center justify-center transition-opacity duration-200",
|
|
184820
184829
|
S ? "cursor-pointer" : "opacity-40 cursor-not-allowed"
|
|
184821
184830
|
),
|
|
@@ -184827,7 +184836,7 @@ const qqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
184827
184836
|
) : /* @__PURE__ */ F.jsxs(
|
|
184828
184837
|
"div",
|
|
184829
184838
|
{
|
|
184830
|
-
className:
|
|
184839
|
+
className: ot(
|
|
184831
184840
|
"flex justify-between items-center w-full",
|
|
184832
184841
|
"transition-all duration-300 animate-in fade-in slide-in-from-bottom-1"
|
|
184833
184842
|
),
|
|
@@ -185401,7 +185410,7 @@ const qqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
185401
185410
|
if (!Et) return {};
|
|
185402
185411
|
const _t = {}, nn = Qqe[Tt];
|
|
185403
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;
|
|
185404
|
-
},
|
|
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;
|
|
185405
185414
|
dg(Pe, () => {
|
|
185406
185415
|
we(!1);
|
|
185407
185416
|
}), Oe(() => {
|
|
@@ -185622,7 +185631,7 @@ const qqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
185622
185631
|
"div",
|
|
185623
185632
|
{
|
|
185624
185633
|
id: "toolbar",
|
|
185625
|
-
className:
|
|
185634
|
+
className: ot(
|
|
185626
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]",
|
|
185627
185636
|
{
|
|
185628
185637
|
"translate-y-0": L,
|
|
@@ -185733,7 +185742,7 @@ const qqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
185733
185742
|
"div",
|
|
185734
185743
|
{
|
|
185735
185744
|
id: "editor-wrapper",
|
|
185736
|
-
className:
|
|
185745
|
+
className: ot(
|
|
185737
185746
|
"w-full mx-auto rounded transition-all duration-300 ease-in-out",
|
|
185738
185747
|
!(Le != null && Le.canvasBackground) && "color-bg-default",
|
|
185739
185748
|
!e && (L ? "-mt-[1.5rem] md:!mt-[0.8rem] pt-0 md:pt-[5rem]" : "pt-0 md:pt-[1.5rem]"),
|
|
@@ -185769,7 +185778,7 @@ const qqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
185769
185778
|
"div",
|
|
185770
185779
|
{
|
|
185771
185780
|
ref: mn,
|
|
185772
|
-
className:
|
|
185781
|
+
className: ot(
|
|
185773
185782
|
"w-full h-full pt-8 md:pt-0",
|
|
185774
185783
|
{ "custom-ios-padding": _r },
|
|
185775
185784
|
{
|
|
@@ -185836,7 +185845,7 @@ const qqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
185836
185845
|
"div",
|
|
185837
185846
|
{
|
|
185838
185847
|
ref: Pe,
|
|
185839
|
-
className:
|
|
185848
|
+
className: ot(
|
|
185840
185849
|
"flex flex-wrap px-4 md:px-8 lg:px-[80px] mb-8 items-center gap-1 mt-4 lg:!mt-0",
|
|
185841
185850
|
{ "pt-12": e }
|
|
185842
185851
|
),
|
|
@@ -185905,7 +185914,7 @@ const qqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
185905
185914
|
{
|
|
185906
185915
|
editor: et,
|
|
185907
185916
|
id: "editor",
|
|
185908
|
-
className:
|
|
185917
|
+
className: ot(
|
|
185909
185918
|
"w-full h-auto",
|
|
185910
185919
|
e && "preview-mode",
|
|
185911
185920
|
dt !== void 0 && Me && "has-available-models",
|
|
@@ -185926,12 +185935,12 @@ const qqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
185926
185935
|
h && !kt && /* @__PURE__ */ F.jsx(
|
|
185927
185936
|
qt,
|
|
185928
185937
|
{
|
|
185929
|
-
ref:
|
|
185938
|
+
ref: it,
|
|
185930
185939
|
onClick: () => {
|
|
185931
185940
|
et && (p == null || p(et));
|
|
185932
185941
|
},
|
|
185933
185942
|
variant: "ghost",
|
|
185934
|
-
className:
|
|
185943
|
+
className: ot(
|
|
185935
185944
|
"absolute w-12 h-12 color-bg-default rounded-full shadow-xl top-[70px] right-[-23px]"
|
|
185936
185945
|
),
|
|
185937
185946
|
children: /* @__PURE__ */ F.jsx(Ue, { name: "MessageSquareText", size: "sm" })
|
|
@@ -185940,7 +185949,7 @@ const qqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
185940
185949
|
!e && !m && /* @__PURE__ */ F.jsx(
|
|
185941
185950
|
"div",
|
|
185942
185951
|
{
|
|
185943
|
-
className:
|
|
185952
|
+
className: ot(
|
|
185944
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",
|
|
185945
185954
|
tn && "hidden",
|
|
185946
185955
|
{ "top-14": L, "top-0": !L }
|
|
@@ -185992,7 +186001,7 @@ const qqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
185992
186001
|
children: /* @__PURE__ */ F.jsx(
|
|
185993
186002
|
"div",
|
|
185994
186003
|
{
|
|
185995
|
-
className:
|
|
186004
|
+
className: ot(
|
|
185996
186005
|
"w-full",
|
|
185997
186006
|
S ? "color-bg-default" : "color-bg-secondary"
|
|
185998
186007
|
),
|
|
@@ -186003,7 +186012,7 @@ const qqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
186003
186012
|
"div",
|
|
186004
186013
|
{
|
|
186005
186014
|
id: "editor-canvas",
|
|
186006
|
-
className:
|
|
186015
|
+
className: ot(
|
|
186007
186016
|
"h-[100%] w-full custom-scrollbar relative",
|
|
186008
186017
|
!e && (L ? "mt-[6.7rem]" : "mt-[3.3rem]"),
|
|
186009
186018
|
e && "mt-[3.5rem]",
|
|
@@ -186020,7 +186029,7 @@ const qqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
186020
186029
|
"nav",
|
|
186021
186030
|
{
|
|
186022
186031
|
id: "Navbar",
|
|
186023
|
-
className:
|
|
186032
|
+
className: ot(
|
|
186024
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",
|
|
186025
186034
|
{
|
|
186026
186035
|
"translate-y-0": L,
|