@fileverse-dev/ddoc 2.2.8-tec-374-2 → 2.2.8-testInfra-patch-1
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.
@@ -86505,7 +86505,7 @@ async function o6(e, t) {
|
|
86505
86505
|
});
|
86506
86506
|
return K === "0x" ? { data: void 0 } : { data: K };
|
86507
86507
|
} catch (U) {
|
86508
|
-
const P = hxt(U), { offchainLookup: _, offchainLookupSignature: G } = await import("./ccip-
|
86508
|
+
const P = hxt(U), { offchainLookup: _, offchainLookupSignature: G } = await import("./ccip-Dpwr6AiM.mjs");
|
86509
86509
|
if (e.ccipRead !== !1 && (P == null ? void 0 : P.slice(0, 10)) === G && k)
|
86510
86510
|
return { data: await _(e, { data: P, to: k }) };
|
86511
86511
|
throw D && (P == null ? void 0 : P.slice(0, 10)) === "0x101bb98d" ? new v5t({ factory: c }) : r$(U, {
|
@@ -115502,7 +115502,7 @@ class xLt extends TE {
|
|
115502
115502
|
const vLt = {
|
115503
115503
|
attributes: {
|
115504
115504
|
class: "prose-lg prose-headings:font-display prose prose-p:my-2 prose-h1:my-2 prose-h2:my-2 prose-h3:my-2 prose-ul:my-2 prose-ol:my-2 max-w-none focus:outline-none w-full",
|
115505
|
-
spellcheck: "
|
115505
|
+
spellcheck: "true",
|
115506
115506
|
suppressContentEditableWarning: "true"
|
115507
115507
|
}
|
115508
115508
|
}, kLt = /[\uD800-\uDBFF]/, wLt = /[\uDC00-\uDFFF]/, FLt = (e, t) => {
|
@@ -124688,33 +124688,39 @@ const IBt = (e) => {
|
|
124688
124688
|
{
|
124689
124689
|
id: "meeting-notes",
|
124690
124690
|
label: "Meeting notes",
|
124691
|
-
icon: "NotepadText"
|
124691
|
+
icon: "NotepadText",
|
124692
|
+
dataTestId: "meeting-notes-template-btn"
|
124692
124693
|
},
|
124693
124694
|
{
|
124694
124695
|
id: "resume",
|
124695
124696
|
label: "Resume",
|
124696
|
-
icon: "📄"
|
124697
|
+
icon: "📄",
|
124698
|
+
dataTestId: "resume-template-btn"
|
124697
124699
|
},
|
124698
124700
|
{
|
124699
124701
|
id: "brainstorm",
|
124700
124702
|
label: "Brainstorm",
|
124701
|
-
icon: "Lightbulb"
|
124703
|
+
icon: "Lightbulb",
|
124704
|
+
dataTestId: "brainstorm-template-btn"
|
124702
124705
|
},
|
124703
124706
|
{
|
124704
124707
|
id: "pretend-to-work",
|
124705
124708
|
label: "Pretend to work",
|
124706
|
-
icon: "🏄🏻♂️"
|
124709
|
+
icon: "🏄🏻♂️",
|
124710
|
+
dataTestId: "pretend-to-work-template-btn"
|
124707
124711
|
}
|
124708
124712
|
], OBt = [
|
124709
124713
|
{
|
124710
124714
|
id: "todo-list",
|
124711
124715
|
label: "To-do",
|
124712
|
-
icon: "ListChecks"
|
124716
|
+
icon: "ListChecks",
|
124717
|
+
dataTestId: "todo-list-template-btn"
|
124713
124718
|
},
|
124714
124719
|
{
|
124715
124720
|
id: "breathe",
|
124716
124721
|
label: "Breathe!",
|
124717
|
-
icon: "🧘♂️"
|
124722
|
+
icon: "🧘♂️",
|
124723
|
+
dataTestId: "breathe-template-btn"
|
124718
124724
|
}
|
124719
124725
|
], Vte = (e, t) => {
|
124720
124726
|
const n = IBt(e.id);
|
@@ -124724,7 +124730,8 @@ const IBt = (e) => {
|
|
124724
124730
|
onClick: () => {
|
124725
124731
|
n && t(n);
|
124726
124732
|
},
|
124727
|
-
content: n
|
124733
|
+
content: n,
|
124734
|
+
dataTestId: e.dataTestId
|
124728
124735
|
};
|
124729
124736
|
}, BBt = (e) => RBt.map((t) => Vte(t, e)), zBt = (e) => OBt.map((t) => Vte(t, e)), CO = (e, t) => typeof e == "string" && $P[e] ? /* @__PURE__ */ M.jsx(
|
124730
124737
|
He,
|
@@ -124739,6 +124746,7 @@ const IBt = (e) => {
|
|
124739
124746
|
onClick: i.onClick,
|
124740
124747
|
variant: "ghost",
|
124741
124748
|
className: "gap-2 color-bg-default-hover text-body-sm color-text-default rounded-lg hover:brightness-95 transition-all min-w-fit",
|
124749
|
+
"data-testid": i.dataTestId,
|
124742
124750
|
children: [
|
124743
124751
|
CO(i.icon),
|
124744
124752
|
/* @__PURE__ */ M.jsx("span", { children: i.label })
|
@@ -127959,9 +127967,21 @@ const M_t = Xt.create({
|
|
127959
127967
|
new tn({
|
127960
127968
|
key: e,
|
127961
127969
|
appendTransaction: (n, r, o) => {
|
127962
|
-
const { doc: i, tr: a, schema: s } = o
|
127963
|
-
if (
|
127964
|
-
|
127970
|
+
const { doc: i, tr: a, schema: s } = o;
|
127971
|
+
if (!e.getState(o)) return;
|
127972
|
+
const u = i.content.size, c = s.nodes[this.options.node], d = {
|
127973
|
+
class: "trailing-node"
|
127974
|
+
};
|
127975
|
+
let f = s.text(" ");
|
127976
|
+
const p = this.editor.getAttributes("textStyle");
|
127977
|
+
if (s.marks.textStyle) {
|
127978
|
+
const g = s.marks.textStyle.create({
|
127979
|
+
...p
|
127980
|
+
});
|
127981
|
+
f = s.text(" ", [g]);
|
127982
|
+
}
|
127983
|
+
const h = c.create(d, f);
|
127984
|
+
return a.insert(u, h);
|
127965
127985
|
},
|
127966
127986
|
state: {
|
127967
127987
|
init: (n, r) => {
|
@@ -218825,7 +218845,7 @@ const rKt = 200, oKt = new sn("emoji"), iKt = Bt.create({
|
|
218825
218845
|
delimiters: "dollar",
|
218826
218846
|
katexOptions: {
|
218827
218847
|
throwOnError: !1,
|
218828
|
-
strict: !
|
218848
|
+
strict: !1
|
218829
218849
|
}
|
218830
218850
|
}),
|
218831
218851
|
xUt,
|
@@ -220147,7 +220167,10 @@ const f8 = ow.getInstance(), qKt = (e) => ({
|
|
220147
220167
|
de == null || de.commands.unsetCommentActive();
|
220148
220168
|
}
|
220149
220169
|
},
|
220150
|
-
handleClick: ce
|
220170
|
+
handleClick: ce,
|
220171
|
+
attributes: {
|
220172
|
+
spellCheck: "true"
|
220173
|
+
}
|
220151
220174
|
},
|
220152
220175
|
autofocus: m ? !1 : "start",
|
220153
220176
|
immediatelyRender: !1,
|
@@ -220701,6 +220724,7 @@ const ZKt = async (e) => {
|
|
220701
220724
|
a ? "flex-row overflow-x-auto border-t min-h-[12rem] order-2 w-full pt-10 xl:pt-0" : "w-[251px] h-full overflow-y-auto overflow-x-hidden flex-col py-16 border-r",
|
220702
220725
|
i && "min-h-[20rem]"
|
220703
220726
|
),
|
220727
|
+
"data-testid": "slides-preview-panel",
|
220704
220728
|
children: [
|
220705
220729
|
a && /* @__PURE__ */ M.jsxs("div", { className: "w-full text-helper-text-sm color-text-secondary absolute top-0 left-0 my-2.5 mx-5 z-20", children: [
|
220706
220730
|
"Slides: ",
|
@@ -221148,7 +221172,8 @@ const aYt = ({
|
|
221148
221172
|
}),
|
221149
221173
|
onTouchStart: n,
|
221150
221174
|
onTouchMove: r,
|
221151
|
-
onTouchEnd: o
|
221175
|
+
onTouchEnd: o,
|
221176
|
+
"data-testid": "slide-content"
|
221152
221177
|
}
|
221153
221178
|
);
|
221154
221179
|
}, sYt = ({
|
@@ -221265,6 +221290,7 @@ const aYt = ({
|
|
221265
221290
|
x ? "flex-col" : "flex-col xl:flex-row",
|
221266
221291
|
"items-center justify-center w-screen h-screen"
|
221267
221292
|
),
|
221293
|
+
"data-testid": "slides-canvas",
|
221268
221294
|
children: [
|
221269
221295
|
!n && /* @__PURE__ */ M.jsx(
|
221270
221296
|
KKt,
|
@@ -221284,82 +221310,91 @@ const aYt = ({
|
|
221284
221310
|
}
|
221285
221311
|
),
|
221286
221312
|
children: [
|
221287
|
-
!n && /* @__PURE__ */ M.jsxs(
|
221288
|
-
|
221289
|
-
|
221290
|
-
|
221291
|
-
|
221292
|
-
|
221293
|
-
|
221294
|
-
|
221295
|
-
|
221296
|
-
|
221297
|
-
|
221298
|
-
|
221299
|
-
|
221300
|
-
|
221301
|
-
|
221302
|
-
|
221303
|
-
|
221304
|
-
|
221305
|
-
|
221306
|
-
|
221307
|
-
|
221308
|
-
|
221309
|
-
|
221310
|
-
|
221311
|
-
|
221312
|
-
|
221313
|
-
|
221314
|
-
|
221315
|
-
|
221316
|
-
|
221317
|
-
|
221318
|
-
|
221319
|
-
|
221320
|
-
|
221321
|
-
|
221322
|
-
|
221323
|
-
|
221324
|
-
|
221325
|
-
|
221326
|
-
|
221327
|
-
|
221328
|
-
|
221329
|
-
|
221330
|
-
|
221331
|
-
|
221332
|
-
|
221333
|
-
|
221334
|
-
|
221335
|
-
|
221336
|
-
|
221337
|
-
|
221338
|
-
|
221339
|
-
|
221340
|
-
|
221341
|
-
|
221342
|
-
|
221343
|
-
|
221344
|
-
|
221345
|
-
|
221346
|
-
|
221347
|
-
|
221348
|
-
|
221349
|
-
|
221350
|
-
|
221351
|
-
|
221352
|
-
|
221353
|
-
|
221354
|
-
|
221355
|
-
|
221356
|
-
|
221357
|
-
|
221358
|
-
|
221359
|
-
|
221360
|
-
|
221361
|
-
|
221362
|
-
|
221313
|
+
!n && /* @__PURE__ */ M.jsxs(
|
221314
|
+
"div",
|
221315
|
+
{
|
221316
|
+
"data-testid": "slides-navbar",
|
221317
|
+
className: "absolute top-0 px-4 py-2 border-b color-border-default right-0 flex gap-2 color-bg-default w-full justify-between z-50",
|
221318
|
+
children: [
|
221319
|
+
s ? /* @__PURE__ */ M.jsx("div", { className: "flex items-center", children: /* @__PURE__ */ M.jsx("p", { className: "max-w-[300px] truncate md:max-w-full w-full", children: l }) }) : /* @__PURE__ */ M.jsxs("div", { className: "flex items-center gap-2", children: [
|
221320
|
+
/* @__PURE__ */ M.jsx(
|
221321
|
+
bn,
|
221322
|
+
{
|
221323
|
+
variant: "ghost",
|
221324
|
+
onClick: t,
|
221325
|
+
icon: "ChevronLeft",
|
221326
|
+
size: "md"
|
221327
|
+
}
|
221328
|
+
),
|
221329
|
+
/* @__PURE__ */ M.jsx(gc, { className: "hidden xl:block text-body-sm-bold color-text-default", children: "Back to Editor" })
|
221330
|
+
] }),
|
221331
|
+
/* @__PURE__ */ M.jsxs("div", { className: "flex justify-center items-center gap-2", children: [
|
221332
|
+
f == null ? void 0 : f(),
|
221333
|
+
!s && /* @__PURE__ */ M.jsx(pn, { text: "Download", sideOffset: 10, children: /* @__PURE__ */ M.jsx(
|
221334
|
+
bn,
|
221335
|
+
{
|
221336
|
+
variant: "ghost",
|
221337
|
+
onClick: () => _K(c),
|
221338
|
+
icon: "FilePdf",
|
221339
|
+
size: "md"
|
221340
|
+
}
|
221341
|
+
) }),
|
221342
|
+
/* @__PURE__ */ M.jsx(pn, { text: "Comments", sideOffset: 10, children: /* @__PURE__ */ M.jsx(
|
221343
|
+
bn,
|
221344
|
+
{
|
221345
|
+
variant: "ghost",
|
221346
|
+
icon: "MessageSquareText",
|
221347
|
+
size: "md",
|
221348
|
+
onClick: () => i == null ? void 0 : i((Q) => !Q)
|
221349
|
+
}
|
221350
|
+
) }),
|
221351
|
+
!s && /* @__PURE__ */ M.jsxs(
|
221352
|
+
pn,
|
221353
|
+
{
|
221354
|
+
text: a ? "Copy to Share" : "Link is preparing...",
|
221355
|
+
sideOffset: 10,
|
221356
|
+
children: [
|
221357
|
+
/* @__PURE__ */ M.jsx(
|
221358
|
+
bn,
|
221359
|
+
{
|
221360
|
+
variant: "ghost",
|
221361
|
+
icon: "Link",
|
221362
|
+
disabled: !a,
|
221363
|
+
className: "disabled:!bg-transparent disabled:pointer-events-none",
|
221364
|
+
size: "md",
|
221365
|
+
onClick: Z,
|
221366
|
+
"data-testid": "slides-copy-link-btn"
|
221367
|
+
}
|
221368
|
+
),
|
221369
|
+
h && /* @__PURE__ */ M.jsx(
|
221370
|
+
R9,
|
221371
|
+
{
|
221372
|
+
align: "center",
|
221373
|
+
sideOffset: 15,
|
221374
|
+
controlled: !0,
|
221375
|
+
isOpen: h,
|
221376
|
+
onClose: () => g == null ? void 0 : g(!1),
|
221377
|
+
content: /* @__PURE__ */ M.jsx("div", { className: "flex items-start gap-3 bg-black color-text-inverse rounded shadow-elevation-3 p-2 text-helper-text-sm", children: "Link copied" })
|
221378
|
+
},
|
221379
|
+
"link-copied"
|
221380
|
+
)
|
221381
|
+
]
|
221382
|
+
}
|
221383
|
+
),
|
221384
|
+
/* @__PURE__ */ M.jsx(pn, { text: "Press F to toggle fullscreen", sideOffset: 10, children: /* @__PURE__ */ M.jsx(
|
221385
|
+
bn,
|
221386
|
+
{
|
221387
|
+
variant: "ghost",
|
221388
|
+
onClick: q,
|
221389
|
+
icon: n ? "Minimize2" : "Play",
|
221390
|
+
size: "md",
|
221391
|
+
"data-testid": "slides-fullscreen-btn"
|
221392
|
+
}
|
221393
|
+
) })
|
221394
|
+
] })
|
221395
|
+
]
|
221396
|
+
}
|
221397
|
+
),
|
221363
221398
|
/* @__PURE__ */ M.jsx(
|
221364
221399
|
"div",
|
221365
221400
|
{
|
@@ -222011,6 +222046,7 @@ const aYt = ({
|
|
222011
222046
|
paddingLeft: `${(e.level - 1) * 8}px`
|
222012
222047
|
},
|
222013
222048
|
className: o,
|
222049
|
+
"data-testid": "toc-item",
|
222014
222050
|
children: /* @__PURE__ */ M.jsx(
|
222015
222051
|
"a",
|
222016
222052
|
{
|
@@ -222119,16 +222155,23 @@ const Aoe = f2(({ items: e = [], editor: t, setItems: n }) => {
|
|
222119
222155
|
},
|
222120
222156
|
[r, h, n]
|
222121
222157
|
);
|
222122
|
-
return e.length === 0 ? /* @__PURE__ */ M.jsx(Eoe, {}) : /* @__PURE__ */ M.jsx(
|
222123
|
-
|
222158
|
+
return e.length === 0 ? /* @__PURE__ */ M.jsx(Eoe, {}) : /* @__PURE__ */ M.jsx(
|
222159
|
+
"div",
|
222124
222160
|
{
|
222125
|
-
|
222126
|
-
|
222127
|
-
|
222128
|
-
|
222129
|
-
|
222130
|
-
|
222131
|
-
|
222161
|
+
className: "flex flex-col max-[1280px]:gap-2 gap-4 overflow-auto no-scrollbar max-[1280px]:max-h-[168px] max-h-[calc(80vh-40px)] mb-3",
|
222162
|
+
"data-testid": "toc-container",
|
222163
|
+
children: d.map((m, b) => /* @__PURE__ */ M.jsx(
|
222164
|
+
Coe,
|
222165
|
+
{
|
222166
|
+
onItemClick: h,
|
222167
|
+
onItemRemove: g,
|
222168
|
+
item: m,
|
222169
|
+
index: b + 1
|
222170
|
+
},
|
222171
|
+
m.id
|
222172
|
+
))
|
222173
|
+
}
|
222174
|
+
);
|
222132
222175
|
});
|
222133
222176
|
Aoe.displayName = "ToC";
|
222134
222177
|
const kz = ke.memo(Aoe), gYt = ({
|
@@ -222178,7 +222221,8 @@ const kz = ke.memo(Aoe), gYt = ({
|
|
222178
222221
|
variant: "ghost",
|
222179
222222
|
size: "lg",
|
222180
222223
|
onClick: () => i == null ? void 0 : i((d) => !d),
|
222181
|
-
className: "color-text-default min-w-9 h-9"
|
222224
|
+
className: "color-text-default min-w-9 h-9",
|
222225
|
+
"data-testid": "desktop-toc-btn"
|
222182
222226
|
}
|
222183
222227
|
)
|
222184
222228
|
}
|
@@ -222465,7 +222509,7 @@ const kz = ke.memo(Aoe), gYt = ({
|
|
222465
222509
|
isPreviewMode: e || !_
|
222466
222510
|
}
|
222467
222511
|
),
|
222468
|
-
/* @__PURE__ */ M.
|
222512
|
+
/* @__PURE__ */ M.jsx(
|
222469
222513
|
"div",
|
222470
222514
|
{
|
222471
222515
|
className: xt(
|
@@ -222504,152 +222548,150 @@ const kz = ke.memo(Aoe), gYt = ({
|
|
222504
222548
|
transformOrigin: W === "2" && !nt ? "left center" : "top center",
|
222505
222549
|
transform: `scaleX(${W})`
|
222506
222550
|
},
|
222507
|
-
children:
|
222508
|
-
|
222509
|
-
|
222510
|
-
|
222511
|
-
|
222512
|
-
|
222513
|
-
|
222514
|
-
|
222515
|
-
|
222516
|
-
|
222517
|
-
|
222518
|
-
|
222519
|
-
|
222520
|
-
|
222521
|
-
children: [
|
222522
|
-
/* @__PURE__ */ M.
|
222523
|
-
|
222524
|
-
|
222551
|
+
children: /* @__PURE__ */ M.jsxs(
|
222552
|
+
"div",
|
222553
|
+
{
|
222554
|
+
ref: kn,
|
222555
|
+
className: xt(
|
222556
|
+
"w-full h-full pt-8 md:pt-0",
|
222557
|
+
{ "custom-ios-padding": dt },
|
222558
|
+
{ "color-bg-default": W === "1.4" || "1.5" }
|
222559
|
+
),
|
222560
|
+
style: {
|
222561
|
+
transformOrigin: "top center",
|
222562
|
+
transform: `scaleY(${W})`
|
222563
|
+
},
|
222564
|
+
children: [
|
222565
|
+
/* @__PURE__ */ M.jsxs("div", { children: [
|
222566
|
+
gt && /* @__PURE__ */ M.jsx(
|
222567
|
+
DMt,
|
222568
|
+
{
|
222569
|
+
editor: gt,
|
222570
|
+
onError: b,
|
222571
|
+
zoomLevel: W,
|
222572
|
+
disableInlineComment: ue || !1,
|
222573
|
+
setIsCommentSectionOpen: C,
|
222574
|
+
inlineCommentData: T,
|
222575
|
+
setInlineCommentData: D,
|
222576
|
+
isPreviewMode: e,
|
222577
|
+
username: o,
|
222578
|
+
walletAddress: s,
|
222579
|
+
onInlineComment: Q,
|
222580
|
+
activeCommentId: pr,
|
222581
|
+
isCollabDocumentPublished: ee
|
222582
|
+
}
|
222583
|
+
),
|
222584
|
+
gt && /* @__PURE__ */ M.jsx(RMt, { editor: gt, appendTo: kn })
|
222585
|
+
] }),
|
222586
|
+
!gt || Gn ? Mo(
|
222587
|
+
/* @__PURE__ */ M.jsxs("div", { className: `${it ? "mx-10 mt-10" : "mx-20"}`, children: [
|
222588
|
+
/* @__PURE__ */ M.jsx(
|
222589
|
+
ln,
|
222525
222590
|
{
|
222526
|
-
|
222527
|
-
onError: b,
|
222528
|
-
zoomLevel: W,
|
222529
|
-
disableInlineComment: ue || !1,
|
222530
|
-
setIsCommentSectionOpen: C,
|
222531
|
-
inlineCommentData: T,
|
222532
|
-
setInlineCommentData: D,
|
222533
|
-
isPreviewMode: e,
|
222534
|
-
username: o,
|
222535
|
-
walletAddress: s,
|
222536
|
-
onInlineComment: Q,
|
222537
|
-
activeCommentId: pr,
|
222538
|
-
isCollabDocumentPublished: ee
|
222591
|
+
className: `${e || it ? "w-full" : "w-[400px]"} h-[32px] rounded-sm mb-4`
|
222539
222592
|
}
|
222540
222593
|
),
|
222541
|
-
|
222594
|
+
e && /* @__PURE__ */ M.jsx(mYt, {})
|
222542
222595
|
] }),
|
222543
|
-
|
222544
|
-
|
222545
|
-
|
222546
|
-
|
222547
|
-
|
222548
|
-
|
222549
|
-
|
222550
|
-
|
222551
|
-
|
222552
|
-
|
222553
|
-
|
222554
|
-
|
222555
|
-
|
222556
|
-
|
222557
|
-
|
222558
|
-
|
222559
|
-
|
222560
|
-
|
222561
|
-
|
222562
|
-
|
222596
|
+
"content-transition"
|
222597
|
+
) : Co(
|
222598
|
+
/* @__PURE__ */ M.jsxs($C, { isPreviewMode: e, children: [
|
222599
|
+
x && x.length > 0 && /* @__PURE__ */ M.jsxs(
|
222600
|
+
"div",
|
222601
|
+
{
|
222602
|
+
ref: wt,
|
222603
|
+
className: xt(
|
222604
|
+
"flex flex-wrap px-4 md:px-8 lg:px-[80px] items-center gap-1 mb-4 mt-4 lg:!mt-0",
|
222605
|
+
{ "pt-12": e }
|
222606
|
+
),
|
222607
|
+
children: [
|
222608
|
+
rn.map((Ne, oe) => /* @__PURE__ */ M.jsx(
|
222609
|
+
Gp,
|
222610
|
+
{
|
222611
|
+
style: { backgroundColor: Ne == null ? void 0 : Ne.color },
|
222612
|
+
onRemove: () => ct(Ne == null ? void 0 : Ne.name),
|
222613
|
+
isRemovable: !e,
|
222614
|
+
className: "!h-6 rounded",
|
222615
|
+
children: Ne == null ? void 0 : Ne.name
|
222616
|
+
},
|
222617
|
+
oe
|
222618
|
+
)),
|
222619
|
+
vn > 0 && !Rt && /* @__PURE__ */ M.jsxs(
|
222620
|
+
Kt,
|
222621
|
+
{
|
222622
|
+
variant: "ghost",
|
222623
|
+
className: "!h-6 rounded min-w-fit !px-2 color-bg-secondary text-helper-text-sm",
|
222624
|
+
onClick: () => qt(!0),
|
222625
|
+
children: [
|
222626
|
+
"+",
|
222627
|
+
vn
|
222628
|
+
]
|
222629
|
+
}
|
222563
222630
|
),
|
222564
|
-
|
222565
|
-
|
222566
|
-
|
222567
|
-
{
|
222568
|
-
|
222569
|
-
|
222570
|
-
|
222571
|
-
|
222572
|
-
|
222573
|
-
|
222574
|
-
|
222575
|
-
|
222576
|
-
|
222577
|
-
|
222578
|
-
|
222579
|
-
|
222580
|
-
|
222581
|
-
|
222582
|
-
|
222583
|
-
|
222584
|
-
|
222585
|
-
|
222586
|
-
|
222587
|
-
|
222588
|
-
|
222589
|
-
|
222590
|
-
|
222591
|
-
|
222592
|
-
|
222593
|
-
|
222594
|
-
|
222595
|
-
|
222596
|
-
|
222597
|
-
|
222598
|
-
|
222599
|
-
|
222600
|
-
|
222601
|
-
|
222602
|
-
|
222603
|
-
|
222604
|
-
|
222605
|
-
|
222606
|
-
|
222607
|
-
|
222608
|
-
|
222609
|
-
|
222610
|
-
|
222611
|
-
|
222612
|
-
|
222613
|
-
|
222614
|
-
|
222615
|
-
|
222616
|
-
|
222617
|
-
|
222618
|
-
|
222619
|
-
|
222620
|
-
|
222621
|
-
|
222622
|
-
|
222623
|
-
|
222624
|
-
|
222625
|
-
|
222626
|
-
|
222627
|
-
|
222628
|
-
e && "preview-mode"
|
222629
|
-
)
|
222630
|
-
}
|
222631
|
-
)
|
222632
|
-
] }),
|
222633
|
-
"editor-transition"
|
222634
|
-
)
|
222635
|
-
]
|
222636
|
-
}
|
222637
|
-
),
|
222638
|
-
p && !pt && /* @__PURE__ */ M.jsx(
|
222639
|
-
Kt,
|
222640
|
-
{
|
222641
|
-
ref: tt,
|
222642
|
-
onClick: () => {
|
222643
|
-
gt && (f == null || f(gt));
|
222644
|
-
},
|
222645
|
-
variant: "ghost",
|
222646
|
-
className: xt(
|
222647
|
-
"absolute w-12 h-12 color-bg-default rounded-full shadow-xl top-[70px] right-[-23px]"
|
222648
|
-
),
|
222649
|
-
children: /* @__PURE__ */ M.jsx(He, { name: "MessageSquareText", size: "sm" })
|
222650
|
-
}
|
222651
|
-
)
|
222652
|
-
]
|
222631
|
+
Rt && /* @__PURE__ */ M.jsx(
|
222632
|
+
ug.div,
|
222633
|
+
{
|
222634
|
+
initial: { opacity: 0, height: 0 },
|
222635
|
+
animate: { opacity: 1, height: "auto" },
|
222636
|
+
exit: { opacity: 0, height: 0 },
|
222637
|
+
transition: { duration: 0.3 },
|
222638
|
+
className: "flex flex-wrap items-center gap-1",
|
222639
|
+
children: w == null ? void 0 : w.slice(4).map((Ne, oe) => /* @__PURE__ */ M.jsx(
|
222640
|
+
Gp,
|
222641
|
+
{
|
222642
|
+
style: { backgroundColor: Ne == null ? void 0 : Ne.color },
|
222643
|
+
onRemove: () => ct(Ne == null ? void 0 : Ne.name),
|
222644
|
+
isRemovable: !e,
|
222645
|
+
className: "!h-6 rounded",
|
222646
|
+
children: Ne == null ? void 0 : Ne.name
|
222647
|
+
},
|
222648
|
+
oe + 4
|
222649
|
+
))
|
222650
|
+
}
|
222651
|
+
),
|
222652
|
+
w && (w == null ? void 0 : w.length) < 6 ? /* @__PURE__ */ M.jsx(
|
222653
|
+
gV,
|
222654
|
+
{
|
222655
|
+
tags: x || [],
|
222656
|
+
selectedTags: w,
|
222657
|
+
onAddTag: Ue,
|
222658
|
+
isPreviewMode: e
|
222659
|
+
}
|
222660
|
+
) : null
|
222661
|
+
]
|
222662
|
+
}
|
222663
|
+
),
|
222664
|
+
/* @__PURE__ */ M.jsx("div", { className: "grammarly-wrapper", children: /* @__PURE__ */ M.jsx(
|
222665
|
+
Ww,
|
222666
|
+
{
|
222667
|
+
editor: gt,
|
222668
|
+
id: "editor",
|
222669
|
+
className: xt(
|
222670
|
+
"w-full h-auto py-4 color-bg-default",
|
222671
|
+
e && "preview-mode"
|
222672
|
+
)
|
222673
|
+
}
|
222674
|
+
) })
|
222675
|
+
] }),
|
222676
|
+
"editor-transition"
|
222677
|
+
)
|
222678
|
+
]
|
222679
|
+
}
|
222680
|
+
)
|
222681
|
+
}
|
222682
|
+
),
|
222683
|
+
p && !pt && /* @__PURE__ */ M.jsx(
|
222684
|
+
Kt,
|
222685
|
+
{
|
222686
|
+
ref: tt,
|
222687
|
+
onClick: () => {
|
222688
|
+
gt && (f == null || f(gt));
|
222689
|
+
},
|
222690
|
+
variant: "ghost",
|
222691
|
+
className: xt(
|
222692
|
+
"absolute w-12 h-12 color-bg-default rounded-full shadow-xl top-[70px] right-[-23px]"
|
222693
|
+
),
|
222694
|
+
children: /* @__PURE__ */ M.jsx(He, { name: "MessageSquareText", size: "sm" })
|
222653
222695
|
}
|
222654
222696
|
),
|
222655
222697
|
!e && !m && /* @__PURE__ */ M.jsx(
|