@fileverse-dev/ddoc 2.2.8-tec-374-3 → 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 })
|
@@ -218837,7 +218845,7 @@ const rKt = 200, oKt = new sn("emoji"), iKt = Bt.create({
|
|
218837
218845
|
delimiters: "dollar",
|
218838
218846
|
katexOptions: {
|
218839
218847
|
throwOnError: !1,
|
218840
|
-
strict: !
|
218848
|
+
strict: !1
|
218841
218849
|
}
|
218842
218850
|
}),
|
218843
218851
|
xUt,
|
@@ -220159,7 +220167,10 @@ const f8 = ow.getInstance(), qKt = (e) => ({
|
|
220159
220167
|
de == null || de.commands.unsetCommentActive();
|
220160
220168
|
}
|
220161
220169
|
},
|
220162
|
-
handleClick: ce
|
220170
|
+
handleClick: ce,
|
220171
|
+
attributes: {
|
220172
|
+
spellCheck: "true"
|
220173
|
+
}
|
220163
220174
|
},
|
220164
220175
|
autofocus: m ? !1 : "start",
|
220165
220176
|
immediatelyRender: !1,
|
@@ -220713,6 +220724,7 @@ const ZKt = async (e) => {
|
|
220713
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",
|
220714
220725
|
i && "min-h-[20rem]"
|
220715
220726
|
),
|
220727
|
+
"data-testid": "slides-preview-panel",
|
220716
220728
|
children: [
|
220717
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: [
|
220718
220730
|
"Slides: ",
|
@@ -221160,7 +221172,8 @@ const aYt = ({
|
|
221160
221172
|
}),
|
221161
221173
|
onTouchStart: n,
|
221162
221174
|
onTouchMove: r,
|
221163
|
-
onTouchEnd: o
|
221175
|
+
onTouchEnd: o,
|
221176
|
+
"data-testid": "slide-content"
|
221164
221177
|
}
|
221165
221178
|
);
|
221166
221179
|
}, sYt = ({
|
@@ -221277,6 +221290,7 @@ const aYt = ({
|
|
221277
221290
|
x ? "flex-col" : "flex-col xl:flex-row",
|
221278
221291
|
"items-center justify-center w-screen h-screen"
|
221279
221292
|
),
|
221293
|
+
"data-testid": "slides-canvas",
|
221280
221294
|
children: [
|
221281
221295
|
!n && /* @__PURE__ */ M.jsx(
|
221282
221296
|
KKt,
|
@@ -221296,82 +221310,91 @@ const aYt = ({
|
|
221296
221310
|
}
|
221297
221311
|
),
|
221298
221312
|
children: [
|
221299
|
-
!n && /* @__PURE__ */ M.jsxs(
|
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
|
-
|
221363
|
-
|
221364
|
-
|
221365
|
-
|
221366
|
-
|
221367
|
-
|
221368
|
-
|
221369
|
-
|
221370
|
-
|
221371
|
-
|
221372
|
-
|
221373
|
-
|
221374
|
-
|
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
|
+
),
|
221375
221398
|
/* @__PURE__ */ M.jsx(
|
221376
221399
|
"div",
|
221377
221400
|
{
|
@@ -222023,6 +222046,7 @@ const aYt = ({
|
|
222023
222046
|
paddingLeft: `${(e.level - 1) * 8}px`
|
222024
222047
|
},
|
222025
222048
|
className: o,
|
222049
|
+
"data-testid": "toc-item",
|
222026
222050
|
children: /* @__PURE__ */ M.jsx(
|
222027
222051
|
"a",
|
222028
222052
|
{
|
@@ -222131,16 +222155,23 @@ const Aoe = f2(({ items: e = [], editor: t, setItems: n }) => {
|
|
222131
222155
|
},
|
222132
222156
|
[r, h, n]
|
222133
222157
|
);
|
222134
|
-
return e.length === 0 ? /* @__PURE__ */ M.jsx(Eoe, {}) : /* @__PURE__ */ M.jsx(
|
222135
|
-
|
222158
|
+
return e.length === 0 ? /* @__PURE__ */ M.jsx(Eoe, {}) : /* @__PURE__ */ M.jsx(
|
222159
|
+
"div",
|
222136
222160
|
{
|
222137
|
-
|
222138
|
-
|
222139
|
-
|
222140
|
-
|
222141
|
-
|
222142
|
-
|
222143
|
-
|
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
|
+
);
|
222144
222175
|
});
|
222145
222176
|
Aoe.displayName = "ToC";
|
222146
222177
|
const kz = ke.memo(Aoe), gYt = ({
|
@@ -222190,7 +222221,8 @@ const kz = ke.memo(Aoe), gYt = ({
|
|
222190
222221
|
variant: "ghost",
|
222191
222222
|
size: "lg",
|
222192
222223
|
onClick: () => i == null ? void 0 : i((d) => !d),
|
222193
|
-
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"
|
222194
222226
|
}
|
222195
222227
|
)
|
222196
222228
|
}
|
@@ -222477,7 +222509,7 @@ const kz = ke.memo(Aoe), gYt = ({
|
|
222477
222509
|
isPreviewMode: e || !_
|
222478
222510
|
}
|
222479
222511
|
),
|
222480
|
-
/* @__PURE__ */ M.
|
222512
|
+
/* @__PURE__ */ M.jsx(
|
222481
222513
|
"div",
|
222482
222514
|
{
|
222483
222515
|
className: xt(
|
@@ -222516,152 +222548,150 @@ const kz = ke.memo(Aoe), gYt = ({
|
|
222516
222548
|
transformOrigin: W === "2" && !nt ? "left center" : "top center",
|
222517
222549
|
transform: `scaleX(${W})`
|
222518
222550
|
},
|
222519
|
-
children:
|
222520
|
-
|
222521
|
-
|
222522
|
-
|
222523
|
-
|
222524
|
-
|
222525
|
-
|
222526
|
-
|
222527
|
-
|
222528
|
-
|
222529
|
-
|
222530
|
-
|
222531
|
-
|
222532
|
-
|
222533
|
-
children: [
|
222534
|
-
/* @__PURE__ */ M.
|
222535
|
-
|
222536
|
-
|
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,
|
222537
222590
|
{
|
222538
|
-
|
222539
|
-
onError: b,
|
222540
|
-
zoomLevel: W,
|
222541
|
-
disableInlineComment: ue || !1,
|
222542
|
-
setIsCommentSectionOpen: C,
|
222543
|
-
inlineCommentData: T,
|
222544
|
-
setInlineCommentData: D,
|
222545
|
-
isPreviewMode: e,
|
222546
|
-
username: o,
|
222547
|
-
walletAddress: s,
|
222548
|
-
onInlineComment: Q,
|
222549
|
-
activeCommentId: pr,
|
222550
|
-
isCollabDocumentPublished: ee
|
222591
|
+
className: `${e || it ? "w-full" : "w-[400px]"} h-[32px] rounded-sm mb-4`
|
222551
222592
|
}
|
222552
222593
|
),
|
222553
|
-
|
222594
|
+
e && /* @__PURE__ */ M.jsx(mYt, {})
|
222554
222595
|
] }),
|
222555
|
-
|
222556
|
-
|
222557
|
-
|
222558
|
-
|
222559
|
-
|
222560
|
-
|
222561
|
-
|
222562
|
-
|
222563
|
-
|
222564
|
-
|
222565
|
-
|
222566
|
-
|
222567
|
-
|
222568
|
-
|
222569
|
-
|
222570
|
-
|
222571
|
-
|
222572
|
-
|
222573
|
-
|
222574
|
-
|
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
|
+
}
|
222575
222630
|
),
|
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
|
-
|
222629
|
-
|
222630
|
-
|
222631
|
-
|
222632
|
-
|
222633
|
-
|
222634
|
-
|
222635
|
-
|
222636
|
-
|
222637
|
-
|
222638
|
-
|
222639
|
-
|
222640
|
-
e && "preview-mode"
|
222641
|
-
)
|
222642
|
-
}
|
222643
|
-
)
|
222644
|
-
] }),
|
222645
|
-
"editor-transition"
|
222646
|
-
)
|
222647
|
-
]
|
222648
|
-
}
|
222649
|
-
),
|
222650
|
-
p && !pt && /* @__PURE__ */ M.jsx(
|
222651
|
-
Kt,
|
222652
|
-
{
|
222653
|
-
ref: tt,
|
222654
|
-
onClick: () => {
|
222655
|
-
gt && (f == null || f(gt));
|
222656
|
-
},
|
222657
|
-
variant: "ghost",
|
222658
|
-
className: xt(
|
222659
|
-
"absolute w-12 h-12 color-bg-default rounded-full shadow-xl top-[70px] right-[-23px]"
|
222660
|
-
),
|
222661
|
-
children: /* @__PURE__ */ M.jsx(He, { name: "MessageSquareText", size: "sm" })
|
222662
|
-
}
|
222663
|
-
)
|
222664
|
-
]
|
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" })
|
222665
222695
|
}
|
222666
222696
|
),
|
222667
222697
|
!e && !m && /* @__PURE__ */ M.jsx(
|