eddyter 1.3.79 → 1.3.80
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/assets/style.css +1 -1
- package/dist/{generateDocxThumbnail-CXNsp_vq.js → generateDocxThumbnail-CuC4oE4q.js} +1 -1
- package/dist/{generatePdfThumbnail-3Hb1S2pI.js → generatePdfThumbnail-Be9_gTd2.js} +1 -1
- package/dist/{generateXlsxThumbnail-ClWnaOWl.js → generateXlsxThumbnail-BHmQkbG6.js} +1 -1
- package/dist/{html2pdf.bundle.min-C7tWgf-a.js → html2pdf.bundle.min-__2qz-Dv.js} +1 -1
- package/dist/{index-mc4JCPoi.js → index-0dB2NNlO.js} +1 -1
- package/dist/{index-BNUSWrnu.js → index-BTnX5edL.js} +4 -4
- package/dist/{index-D8wkKyID.js → index-BiGNE0nG.js} +295 -290
- package/dist/{index-M7WgxScr.js → index-BjjpBGeH.js} +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as i, jsxs as y, Fragment as we } from "react/jsx-runtime";
|
|
2
2
|
import * as C from "react";
|
|
3
|
-
import et, { createContext as fc, useContext as xs, useState as A, useRef as X, useEffect as j, useCallback as W, Suspense as Eu, forwardRef as mc, createElement as cp, useImperativeHandle as Dm, useMemo as
|
|
3
|
+
import et, { createContext as fc, useContext as xs, useState as A, useRef as X, useEffect as j, useCallback as W, Suspense as Eu, forwardRef as mc, createElement as cp, useImperativeHandle as Dm, useMemo as Vt, useLayoutEffect as Om, Component as xv } from "react";
|
|
4
4
|
import qi, { AxiosError as Fm } from "axios";
|
|
5
5
|
import * as ci from "react-dom";
|
|
6
|
-
import vv, { createPortal as
|
|
6
|
+
import vv, { createPortal as qt } from "react-dom";
|
|
7
7
|
import { $generateNodesFromDOM as gc, $generateHtmlFromNodes as es } from "@lexical/html";
|
|
8
8
|
import { CheckListPlugin as wv } from "@lexical/react/LexicalCheckListPlugin";
|
|
9
9
|
import { LexicalComposer as Cv } from "@lexical/react/LexicalComposer";
|
|
@@ -16,11 +16,11 @@ import { ListPlugin as Sv } from "@lexical/react/LexicalListPlugin";
|
|
|
16
16
|
import { OnChangePlugin as Tv } from "@lexical/react/LexicalOnChangePlugin";
|
|
17
17
|
import { RichTextPlugin as Av } from "@lexical/react/LexicalRichTextPlugin";
|
|
18
18
|
import { TablePlugin as Pv } from "@lexical/react/LexicalTablePlugin";
|
|
19
|
-
import { $isTableCellNode as Ye, $createTableRowNode as Lv, $createTableNode as Rv, TableCellHeaderStates as mt, $createTableCellNode as Iv, TableNode as yc, TableCellNode as $m, TableRowNode as Mv, $createTableNodeWithDimensions as Dv, $isTableRowNode as
|
|
19
|
+
import { $isTableCellNode as Ye, $createTableRowNode as Lv, $createTableNode as Rv, TableCellHeaderStates as mt, $createTableCellNode as Iv, TableNode as yc, TableCellNode as $m, TableRowNode as Mv, $createTableNodeWithDimensions as Dv, $isTableRowNode as Dt, $isTableNode as dr, $isTableSelection as Tr, $getTableCellNodeFromLexicalNode as Aa, $getTableNodeFromLexicalNodeOrThrow as Ct, getTableElement as qn, getTableObserverFromTableElement as Pa, $getTableRowIndexFromTableCellNode as on, $getNodeTriplet as La, $insertTableRow__EXPERIMENTAL as Hm, $getTableColumnIndexFromTableCellNode as yd, $insertTableColumn__EXPERIMENTAL as zm, $deleteTableRow__EXPERIMENTAL as Ov, $deleteTableColumn__EXPERIMENTAL as Fv, $unmergeCell as $v, $computeTableMapSkipCellCheck as lp, getDOMCellFromTarget as Hv, $getTableAndElementByKey as El } from "@lexical/table";
|
|
20
20
|
import { mergeRegister as vr, $wrapNodeInElement as ts, $findMatchingParent as Tt, $getNearestNodeOfType as Su, $getNearestBlockElementAncestorOrThrow as zv, $insertNodeToNearestRoot as dp, $isEditorIsNestedEditor as Bv, mediaFileReader as Wv, isMimeType as up, calculateZoomLevel as bd, CAN_USE_DOM as jv } from "@lexical/utils";
|
|
21
|
-
import { createCommand as Et, DecoratorNode as wr, createEditor as Tu, $applyNodeReplacement as yn, $insertNodes as Yr, $isRootOrShadowRoot as Po, $createParagraphNode as ze, COMMAND_PRIORITY_EDITOR as Bo, $isRangeSelection as le, $setSelection as yo, $createRangeSelection as Au, $getSelection as ne, $getRoot as ut, COMMAND_PRIORITY_LOW as kt, $getNearestNodeFromDOMNode as Ur, isHTMLElement as Pu, TextNode as Bm, $createTextNode as rt, PASTE_COMMAND as Wm, ParagraphNode as Ki, COMMAND_PRIORITY_HIGH as Ar, $isTextNode as dt, $createLineBreakNode as xd, $getNodeByKey as it, $isNodeSelection as Lu, CLICK_COMMAND as jm, KEY_DELETE_COMMAND as Uv, KEY_BACKSPACE_COMMAND as Um, $isParagraphNode as bn, $isElementNode as Xt, FORMAT_TEXT_COMMAND as
|
|
21
|
+
import { createCommand as Et, DecoratorNode as wr, createEditor as Tu, $applyNodeReplacement as yn, $insertNodes as Yr, $isRootOrShadowRoot as Po, $createParagraphNode as ze, COMMAND_PRIORITY_EDITOR as Bo, $isRangeSelection as le, $setSelection as yo, $createRangeSelection as Au, $getSelection as ne, $getRoot as ut, COMMAND_PRIORITY_LOW as kt, $getNearestNodeFromDOMNode as Ur, isHTMLElement as Pu, TextNode as Bm, $createTextNode as rt, PASTE_COMMAND as Wm, ParagraphNode as Ki, COMMAND_PRIORITY_HIGH as Ar, $isTextNode as dt, $createLineBreakNode as xd, $getNodeByKey as it, $isNodeSelection as Lu, CLICK_COMMAND as jm, KEY_DELETE_COMMAND as Uv, KEY_BACKSPACE_COMMAND as Um, $isParagraphNode as bn, $isElementNode as Xt, FORMAT_TEXT_COMMAND as Ot, FORMAT_ELEMENT_COMMAND as rs, KEY_DOWN_COMMAND as Ru, COMMAND_PRIORITY_CRITICAL as Wo, CAN_UNDO_COMMAND as Vv, CAN_REDO_COMMAND as qv, SELECTION_CHANGE_COMMAND as li, UNDO_COMMAND as Ra, REDO_COMMAND as vd, KEY_SPACE_COMMAND as Kv, $isLineBreakNode as pa, KEY_ARROW_DOWN_COMMAND as Vm, KEY_ARROW_UP_COMMAND as qm, KEY_ESCAPE_COMMAND as bc, KEY_TAB_COMMAND as Km, KEY_ENTER_COMMAND as Iu, $createNodeSelection as wd, getDOMSelection as xc, isDOMNode as Gv, KEY_ARROW_LEFT_COMMAND as Zv, KEY_ARROW_RIGHT_COMMAND as Yv, $isDecoratorNode as Xv } from "lexical";
|
|
22
22
|
import { $isCodeNode as or, CodeNode as Mu, normalizeCodeLang as Jv, getLanguageFriendlyName as Qv, $createCodeNode as tr, CodeHighlightNode as ew, CODE_LANGUAGE_MAP as Gm, registerCodeHighlighting as tw, $isCodeHighlightNode as rw } from "@lexical/code";
|
|
23
|
-
import { $createLinkNode as fa, LinkNode as ow, $isLinkNode as
|
|
23
|
+
import { $createLinkNode as fa, LinkNode as ow, $isLinkNode as Ft, TOGGLE_LINK_COMMAND as Rr, $isAutoLinkNode as Cd } from "@lexical/link";
|
|
24
24
|
import { $createListNode as ho, $createListItemNode as Lo, $isListNode as vc, $isListItemNode as Ia, ListNode as wc, ListItemNode as nw, INSERT_ORDERED_LIST_COMMAND as Cc, REMOVE_LIST_COMMAND as po, INSERT_CHECK_LIST_COMMAND as vs, INSERT_UNORDERED_LIST_COMMAND as kc } from "@lexical/list";
|
|
25
25
|
import { $createQuoteNode as xn, $createHeadingNode as ws, HeadingNode as iw, QuoteNode as sw, $isHeadingNode as Zm, DRAG_DROP_PASTE as aw } from "@lexical/rich-text";
|
|
26
26
|
import { $isAtNodeEnd as hp, $selectAll as cw, $patchStyleText as Mr, $setBlocksType as fo, $getSelectionStyleValueForProperty as qr, $isParentElementRTL as lw } from "@lexical/selection";
|
|
@@ -226,7 +226,7 @@ function og({
|
|
|
226
226
|
};
|
|
227
227
|
}, [d, o, n, s]), e ? /* @__PURE__ */ y(we, { children: [
|
|
228
228
|
/* @__PURE__ */ i("div", { ref: a, children: e }),
|
|
229
|
-
c &&
|
|
229
|
+
c && qt(
|
|
230
230
|
/* @__PURE__ */ i(
|
|
231
231
|
pp,
|
|
232
232
|
{
|
|
@@ -238,7 +238,7 @@ function og({
|
|
|
238
238
|
),
|
|
239
239
|
document.body
|
|
240
240
|
)
|
|
241
|
-
] }) : /* @__PURE__ */ i(we, { children: c &&
|
|
241
|
+
] }) : /* @__PURE__ */ i(we, { children: c && qt(
|
|
242
242
|
/* @__PURE__ */ i(
|
|
243
243
|
pp,
|
|
244
244
|
{
|
|
@@ -643,7 +643,7 @@ const fp = (t) => {
|
|
|
643
643
|
colors: r?.colors ?? r?.highlight ?? !1
|
|
644
644
|
}
|
|
645
645
|
};
|
|
646
|
-
}, Du = fc(void 0),
|
|
646
|
+
}, Du = fc(void 0), Gt = () => {
|
|
647
647
|
const t = xs(Du);
|
|
648
648
|
if (!t)
|
|
649
649
|
throw new Error("useEditor must be used within an EditorProvider");
|
|
@@ -1003,7 +1003,7 @@ const Fw = async ({ content: t, apiKey: e, userTextLength: r }) => {
|
|
|
1003
1003
|
}
|
|
1004
1004
|
}, Yt = Et(
|
|
1005
1005
|
"AI_ACTION_COMMAND"
|
|
1006
|
-
), ig = Et(), zw = et.lazy(() => import("./index-
|
|
1006
|
+
), ig = Et(), zw = et.lazy(() => import("./index-BjjpBGeH.js"));
|
|
1007
1007
|
function Bw(t) {
|
|
1008
1008
|
return t.parentElement != null && t.parentElement.tagName === "LI" && t.previousSibling === null && t.getAttribute("aria-roledescription") === "checkbox";
|
|
1009
1009
|
}
|
|
@@ -5900,13 +5900,13 @@ const Qk = Te("XCircle", [
|
|
|
5900
5900
|
["path", { d: "m15 9-6 6", key: "1uzhvr" }],
|
|
5901
5901
|
["path", { d: "m9 9 6 6", key: "z0biqf" }]
|
|
5902
5902
|
]);
|
|
5903
|
-
const
|
|
5903
|
+
const Kt = Te("X", [
|
|
5904
5904
|
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
5905
5905
|
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
5906
5906
|
]), l0 = C.createContext({
|
|
5907
5907
|
container: null
|
|
5908
|
-
}), Uo = () => C.useContext(l0).container, e5 = l0.Provider,
|
|
5909
|
-
modal: t = !
|
|
5908
|
+
}), Uo = () => C.useContext(l0).container, e5 = l0.Provider, $t = ({
|
|
5909
|
+
modal: t = !0,
|
|
5910
5910
|
...e
|
|
5911
5911
|
}) => /* @__PURE__ */ i(Zg, { modal: t, ...e }), t5 = Yg, d0 = C.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ i(
|
|
5912
5912
|
Lc,
|
|
@@ -5941,7 +5941,7 @@ const Lt = C.forwardRef(({ className: t, children: e, ...r }, o) => {
|
|
|
5941
5941
|
className: `closeDialog cteditor-absolute cteditor-right-4 cteditor-top-4 cteditor-rounded-full cteditor-bg-secondary cteditor-p-1 cteditor-opacity-70 cteditor-transition-opacity focus:cteditor-outline-none cteditor-disabled:pointer-events-none data-[state=open]:cteditor-bg-accent data-[state=open]:cteditor-text-muted-foreground hover:cteditor-opacity-100\r
|
|
5942
5942
|
`,
|
|
5943
5943
|
children: [
|
|
5944
|
-
/* @__PURE__ */ i(
|
|
5944
|
+
/* @__PURE__ */ i(Kt, { className: "cteditor-h-4 cteditor-w-4" }),
|
|
5945
5945
|
/* @__PURE__ */ i("span", { className: "!cteditor-sr-only", children: "Close" })
|
|
5946
5946
|
]
|
|
5947
5947
|
}
|
|
@@ -5952,7 +5952,7 @@ const Lt = C.forwardRef(({ className: t, children: e, ...r }, o) => {
|
|
|
5952
5952
|
] });
|
|
5953
5953
|
});
|
|
5954
5954
|
Lt.displayName = Rc.displayName;
|
|
5955
|
-
const
|
|
5955
|
+
const Ht = ({
|
|
5956
5956
|
className: t,
|
|
5957
5957
|
...e
|
|
5958
5958
|
}) => /* @__PURE__ */ i(
|
|
@@ -5965,7 +5965,7 @@ const Kt = ({
|
|
|
5965
5965
|
...e
|
|
5966
5966
|
}
|
|
5967
5967
|
);
|
|
5968
|
-
|
|
5968
|
+
Ht.displayName = "DialogHeader";
|
|
5969
5969
|
const nr = ({
|
|
5970
5970
|
className: t,
|
|
5971
5971
|
...e
|
|
@@ -5980,7 +5980,7 @@ const nr = ({
|
|
|
5980
5980
|
}
|
|
5981
5981
|
);
|
|
5982
5982
|
nr.displayName = "DialogFooter";
|
|
5983
|
-
const
|
|
5983
|
+
const Rt = C.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ i(
|
|
5984
5984
|
Ic,
|
|
5985
5985
|
{
|
|
5986
5986
|
ref: r,
|
|
@@ -5991,7 +5991,7 @@ const Gt = C.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ i(
|
|
|
5991
5991
|
...e
|
|
5992
5992
|
}
|
|
5993
5993
|
));
|
|
5994
|
-
|
|
5994
|
+
Rt.displayName = Ic.displayName;
|
|
5995
5995
|
const kr = C.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ i(
|
|
5996
5996
|
Mc,
|
|
5997
5997
|
{
|
|
@@ -6001,7 +6001,7 @@ const kr = C.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ i(
|
|
|
6001
6001
|
}
|
|
6002
6002
|
));
|
|
6003
6003
|
kr.displayName = Mc.displayName;
|
|
6004
|
-
const
|
|
6004
|
+
const jt = C.forwardRef(
|
|
6005
6005
|
({ className: t, type: e, ...r }, o) => /* @__PURE__ */ i(
|
|
6006
6006
|
"input",
|
|
6007
6007
|
{
|
|
@@ -6015,7 +6015,7 @@ const Bt = C.forwardRef(
|
|
|
6015
6015
|
}
|
|
6016
6016
|
)
|
|
6017
6017
|
);
|
|
6018
|
-
|
|
6018
|
+
jt.displayName = "Input";
|
|
6019
6019
|
var r5 = Symbol.for("react.lazy"), za = C[" use ".trim().toString()];
|
|
6020
6020
|
function o5(t) {
|
|
6021
6021
|
return typeof t == "object" && t !== null && "then" in t;
|
|
@@ -6154,9 +6154,9 @@ const f5 = ({
|
|
|
6154
6154
|
}, d = () => {
|
|
6155
6155
|
n || (c(""), e(!1));
|
|
6156
6156
|
};
|
|
6157
|
-
return /* @__PURE__ */ i(
|
|
6158
|
-
/* @__PURE__ */ y(
|
|
6159
|
-
/* @__PURE__ */ y(
|
|
6157
|
+
return /* @__PURE__ */ i($t, { open: t, onOpenChange: d, children: /* @__PURE__ */ y(Lt, { className: "sm:cteditor-max-w-[500px] cteditor-max-h-[90vh] cteditor-overflow-y-auto", children: [
|
|
6158
|
+
/* @__PURE__ */ y(Ht, { children: [
|
|
6159
|
+
/* @__PURE__ */ y(Rt, { className: "cteditor-flex cteditor-items-center cteditor-gap-2 cteditor-text-xl", children: [
|
|
6160
6160
|
/* @__PURE__ */ i(sn, {}),
|
|
6161
6161
|
"Generate Image with AI"
|
|
6162
6162
|
] }),
|
|
@@ -6166,7 +6166,7 @@ const f5 = ({
|
|
|
6166
6166
|
/* @__PURE__ */ y("div", { className: "cteditor-flex cteditor-gap-2 cteditor-flex-col", children: [
|
|
6167
6167
|
/* @__PURE__ */ i(xt, { htmlFor: "image-prompt", children: "What do you want to see?" }),
|
|
6168
6168
|
/* @__PURE__ */ i(
|
|
6169
|
-
|
|
6169
|
+
jt,
|
|
6170
6170
|
{
|
|
6171
6171
|
id: "image-prompt",
|
|
6172
6172
|
placeholder: "Mountains and rivers with birds flying in the sky",
|
|
@@ -6301,9 +6301,9 @@ const $p = [
|
|
|
6301
6301
|
}, d = () => {
|
|
6302
6302
|
e(!1), n(""), a("");
|
|
6303
6303
|
};
|
|
6304
|
-
return /* @__PURE__ */ i(
|
|
6305
|
-
/* @__PURE__ */ y(
|
|
6306
|
-
/* @__PURE__ */ y(
|
|
6304
|
+
return /* @__PURE__ */ i($t, { open: t, onOpenChange: d, children: /* @__PURE__ */ y(Lt, { className: "sm:cteditor-max-w-[500px] cteditor-max-h-[600px] cteditor-max-w-[calc(100%-2rem)] cteditor-rounded-lg", children: [
|
|
6305
|
+
/* @__PURE__ */ y(Ht, { children: [
|
|
6306
|
+
/* @__PURE__ */ y(Rt, { className: "cteditor-flex cteditor-items-center cteditor-gap-2", children: [
|
|
6307
6307
|
/* @__PURE__ */ i(Op, { className: "cteditor-size-5" }),
|
|
6308
6308
|
"Select Target Language"
|
|
6309
6309
|
] }),
|
|
@@ -6440,9 +6440,9 @@ const $p = [
|
|
|
6440
6440
|
}, a = () => {
|
|
6441
6441
|
e(!1), n("");
|
|
6442
6442
|
};
|
|
6443
|
-
return /* @__PURE__ */ i(
|
|
6444
|
-
/* @__PURE__ */ y(
|
|
6445
|
-
/* @__PURE__ */ y(
|
|
6443
|
+
return /* @__PURE__ */ i($t, { open: t, onOpenChange: a, children: /* @__PURE__ */ y(Lt, { className: "sm:max-w-[600px] cteditor-max-h-[650px]", children: [
|
|
6444
|
+
/* @__PURE__ */ y(Ht, { children: [
|
|
6445
|
+
/* @__PURE__ */ y(Rt, { className: "cteditor-flex cteditor-items-center cteditor-gap-2", children: [
|
|
6446
6446
|
/* @__PURE__ */ i(Fp, { className: "cteditor-size-5" }),
|
|
6447
6447
|
"Adjust Tone"
|
|
6448
6448
|
] }),
|
|
@@ -8197,7 +8197,7 @@ const Ua = Et(
|
|
|
8197
8197
|
), Qu = Et(
|
|
8198
8198
|
"AI_ADJUST_TONE_COMMAND"
|
|
8199
8199
|
), l_ = () => {
|
|
8200
|
-
const [t] = Se(), e = X(null), { apiKey: r } =
|
|
8200
|
+
const [t] = Se(), e = X(null), { apiKey: r } = Gt(), [o, n] = A(!1), [s, a] = A(!1), [c, l] = A(""), [d, u] = A(""), h = X(null), p = X(null), f = X(void 0), b = async (_) => {
|
|
8201
8201
|
let k, N = "";
|
|
8202
8202
|
if (t.getEditorState().read(() => {
|
|
8203
8203
|
k = ne(), le(k) && (N = k.getTextContent().trim());
|
|
@@ -8584,7 +8584,7 @@ function A0(t, e, r) {
|
|
|
8584
8584
|
}
|
|
8585
8585
|
function P0(t, e, r) {
|
|
8586
8586
|
const o = X(null);
|
|
8587
|
-
return o.current = t,
|
|
8587
|
+
return o.current = t, Vt(
|
|
8588
8588
|
() => A0(
|
|
8589
8589
|
(...n) => {
|
|
8590
8590
|
o.current && o.current(...n);
|
|
@@ -8814,7 +8814,7 @@ function j_(t) {
|
|
|
8814
8814
|
function U_({
|
|
8815
8815
|
anchorElem: t = document.body
|
|
8816
8816
|
}) {
|
|
8817
|
-
return
|
|
8817
|
+
return qt(
|
|
8818
8818
|
/* @__PURE__ */ i(W_, { anchorElem: t }),
|
|
8819
8819
|
t
|
|
8820
8820
|
);
|
|
@@ -9506,7 +9506,7 @@ const R4 = Ec(
|
|
|
9506
9506
|
...o,
|
|
9507
9507
|
children: [
|
|
9508
9508
|
/* @__PURE__ */ y(Xg, { className: "cteditor-absolute cteditor-right-4 cteditor-top-4 cteditor-rounded-sm cteditor-opacity-70 cteditor-ring-offset-background cteditor-transition-opacity hover:cteditor-opacity-100 focus:cteditor-outline-none focus:cteditor-ring-2 focus:cteditor-ring-ring focus:cteditor-ring-offset-2 disabled:cteditor-pointer-events-none data-[state=open]:cteditor-bg-secondary cteditor-text-foreground", children: [
|
|
9509
|
-
/* @__PURE__ */ i(
|
|
9509
|
+
/* @__PURE__ */ i(Kt, { className: "cteditor-h-4 cteditor-w-4" }),
|
|
9510
9510
|
/* @__PURE__ */ i("span", { className: "!cteditor-sr-only", children: "Close" })
|
|
9511
9511
|
] }),
|
|
9512
9512
|
r
|
|
@@ -14284,7 +14284,8 @@ const _E = ({
|
|
|
14284
14284
|
]
|
|
14285
14285
|
}
|
|
14286
14286
|
);
|
|
14287
|
-
return /* @__PURE__ */ i(
|
|
14287
|
+
return /* @__PURE__ */ i($t, { open: t, modal: !0, onOpenChange: x, children: /* @__PURE__ */ y(Lt, { className: "!cteditor-max-w-[1320px] cteditor-w-full cteditor-h-[90vh] !cteditor-flex !cteditor-flex-col cteditor-p-0 cteditor-overflow-hidden", "aria-describedby": void 0, children: [
|
|
14288
|
+
/* @__PURE__ */ i(Rt, { className: "cteditor-sr-only", children: "HTML View" }),
|
|
14288
14289
|
/* @__PURE__ */ y("div", { className: "cteditor-flex cteditor-items-center cteditor-gap-2", children: [
|
|
14289
14290
|
/* @__PURE__ */ i(e0, {}),
|
|
14290
14291
|
/* @__PURE__ */ i("span", { className: "cteditor-text-base cteditor-font-semibold cteditor-text-foreground", children: "HTML View" })
|
|
@@ -14775,7 +14776,7 @@ function FE() {
|
|
|
14775
14776
|
return () => {
|
|
14776
14777
|
d(), a.current.forEach((u) => clearTimeout(u)), a.current.clear();
|
|
14777
14778
|
};
|
|
14778
|
-
}, [c, l]), n ?
|
|
14779
|
+
}, [c, l]), n ? qt(
|
|
14779
14780
|
/* @__PURE__ */ y(we, { children: [
|
|
14780
14781
|
/* @__PURE__ */ i("style", { children: SE }),
|
|
14781
14782
|
/* @__PURE__ */ i(
|
|
@@ -15835,7 +15836,7 @@ const ca = (t) => {
|
|
|
15835
15836
|
)
|
|
15836
15837
|
}
|
|
15837
15838
|
);
|
|
15838
|
-
}, WE = C.lazy(() => import("./index-
|
|
15839
|
+
}, WE = C.lazy(() => import("./index-BTnX5edL.js"));
|
|
15839
15840
|
function jE(t) {
|
|
15840
15841
|
if (t instanceof HTMLDivElement) {
|
|
15841
15842
|
const e = t.getAttribute("data-lexical-file-src"), r = t.getAttribute("data-lexical-file-name");
|
|
@@ -16593,7 +16594,7 @@ const GE = {
|
|
|
16593
16594
|
a.iconClass
|
|
16594
16595
|
),
|
|
16595
16596
|
title: "Remove panel",
|
|
16596
|
-
children: /* @__PURE__ */ i(
|
|
16597
|
+
children: /* @__PURE__ */ i(Kt, { className: "!cteditor-size-4" })
|
|
16597
16598
|
}
|
|
16598
16599
|
),
|
|
16599
16600
|
/* @__PURE__ */ y("div", { className: "cteditor-flex cteditor-items-start cteditor-gap-3 cteditor-pr-8", children: [
|
|
@@ -17713,9 +17714,9 @@ function SS({
|
|
|
17713
17714
|
}, h = () => {
|
|
17714
17715
|
o(n), e(!1);
|
|
17715
17716
|
};
|
|
17716
|
-
return /* @__PURE__ */ i(
|
|
17717
|
-
/* @__PURE__ */ y(
|
|
17718
|
-
/* @__PURE__ */ y(
|
|
17717
|
+
return /* @__PURE__ */ i($t, { open: t, onOpenChange: e, children: /* @__PURE__ */ y(Lt, { className: "sm:max-w-[600px] max-h-[80vh] overflow-y-auto", children: [
|
|
17718
|
+
/* @__PURE__ */ y(Ht, { children: [
|
|
17719
|
+
/* @__PURE__ */ y(Rt, { className: "cteditor-flex cteditor-items-center cteditor-gap-2", children: [
|
|
17719
17720
|
/* @__PURE__ */ i(Ud, {}),
|
|
17720
17721
|
"Edit Chart"
|
|
17721
17722
|
] }),
|
|
@@ -17742,7 +17743,7 @@ function SS({
|
|
|
17742
17743
|
/* @__PURE__ */ y("div", { className: "cteditor-space-y-2", children: [
|
|
17743
17744
|
/* @__PURE__ */ i(xt, { htmlFor: "chart-title", children: "Chart Title (Optional)" }),
|
|
17744
17745
|
/* @__PURE__ */ i(
|
|
17745
|
-
|
|
17746
|
+
jt,
|
|
17746
17747
|
{
|
|
17747
17748
|
id: "chart-title",
|
|
17748
17749
|
placeholder: "Enter chart title...",
|
|
@@ -17773,7 +17774,7 @@ function SS({
|
|
|
17773
17774
|
/* @__PURE__ */ y("div", { className: "cteditor-relative", children: [
|
|
17774
17775
|
/* @__PURE__ */ i(xt, { className: "cteditor-text-xs cteditor-text-gray-500 cteditor-absolute cteditor-top-0 -cteditor-translate-y-1/2 cteditor-pl-2 cteditor-pr-2 cteditor-bg-background", children: "Label" }),
|
|
17775
17776
|
/* @__PURE__ */ i(
|
|
17776
|
-
|
|
17777
|
+
jt,
|
|
17777
17778
|
{
|
|
17778
17779
|
placeholder: "Label",
|
|
17779
17780
|
value: n.labels?.[f] || "",
|
|
@@ -17785,7 +17786,7 @@ function SS({
|
|
|
17785
17786
|
/* @__PURE__ */ y("div", { className: "cteditor-relative", children: [
|
|
17786
17787
|
/* @__PURE__ */ i(xt, { className: "cteditor-text-xs cteditor-text-gray-500 cteditor-absolute cteditor-top-0 -cteditor-translate-y-1/2 cteditor-pl-2 cteditor-pr-2 cteditor-bg-background", children: "Value" }),
|
|
17787
17788
|
/* @__PURE__ */ i(
|
|
17788
|
-
|
|
17789
|
+
jt,
|
|
17789
17790
|
{
|
|
17790
17791
|
type: "number",
|
|
17791
17792
|
placeholder: "Value",
|
|
@@ -18222,8 +18223,8 @@ const LS = () => {
|
|
|
18222
18223
|
});
|
|
18223
18224
|
});
|
|
18224
18225
|
};
|
|
18225
|
-
return /* @__PURE__ */ i(
|
|
18226
|
-
/* @__PURE__ */ i(
|
|
18226
|
+
return /* @__PURE__ */ i($t, { open: !0, modal: !0, onOpenChange: e, children: /* @__PURE__ */ y(Lt, { className: "sm:cteditor-max-w-md", children: [
|
|
18227
|
+
/* @__PURE__ */ i(Ht, { children: /* @__PURE__ */ i(Rt, { children: "Customize Horizontal Rule" }) }),
|
|
18227
18228
|
/* @__PURE__ */ y("div", { className: "cteditor-space-y-5", children: [
|
|
18228
18229
|
/* @__PURE__ */ y("div", { className: "cteditor-space-y-2", children: [
|
|
18229
18230
|
/* @__PURE__ */ i(
|
|
@@ -18247,7 +18248,7 @@ const LS = () => {
|
|
|
18247
18248
|
)) }),
|
|
18248
18249
|
/* @__PURE__ */ y("div", { className: "cteditor-flex cteditor-items-center cteditor-space-x-2 cteditor-pt-2", children: [
|
|
18249
18250
|
/* @__PURE__ */ i("div", { className: "cteditor-size-11 cteditor-p-1 cteditor-border cteditor-rounded", style: { backgroundColor: o }, children: /* @__PURE__ */ i(
|
|
18250
|
-
|
|
18251
|
+
jt,
|
|
18251
18252
|
{
|
|
18252
18253
|
id: "color-picker",
|
|
18253
18254
|
type: "color",
|
|
@@ -18257,7 +18258,7 @@ const LS = () => {
|
|
|
18257
18258
|
}
|
|
18258
18259
|
) }),
|
|
18259
18260
|
/* @__PURE__ */ i(
|
|
18260
|
-
|
|
18261
|
+
jt,
|
|
18261
18262
|
{
|
|
18262
18263
|
type: "text",
|
|
18263
18264
|
value: o,
|
|
@@ -18292,7 +18293,7 @@ const LS = () => {
|
|
|
18292
18293
|
h
|
|
18293
18294
|
)) }),
|
|
18294
18295
|
/* @__PURE__ */ i(
|
|
18295
|
-
|
|
18296
|
+
jt,
|
|
18296
18297
|
{
|
|
18297
18298
|
id: "stroke-width",
|
|
18298
18299
|
type: "number",
|
|
@@ -18486,7 +18487,7 @@ function MS({
|
|
|
18486
18487
|
},
|
|
18487
18488
|
className: "cteditor-absolute cteditor-top-2 cteditor-right-2 cteditor-p-1 cteditor-rounded-full cteditor-bg-black/60 hover:cteditor-bg-black/80 cteditor-text-white cteditor-transition-colors",
|
|
18488
18489
|
title: "Cancel upload",
|
|
18489
|
-
children: /* @__PURE__ */ i(
|
|
18490
|
+
children: /* @__PURE__ */ i(Kt, { className: "cteditor-w-4 cteditor-h-4" })
|
|
18490
18491
|
}
|
|
18491
18492
|
)
|
|
18492
18493
|
] })
|
|
@@ -18631,7 +18632,7 @@ function $S({
|
|
|
18631
18632
|
},
|
|
18632
18633
|
className: "cteditor-flex-shrink-0 cteditor-p-1 cteditor-rounded-full cteditor-text-muted-foreground hover:cteditor-text-foreground hover:cteditor-bg-foreground/10 cteditor-transition-colors",
|
|
18633
18634
|
title: "Cancel upload",
|
|
18634
|
-
children: /* @__PURE__ */ i(
|
|
18635
|
+
children: /* @__PURE__ */ i(Kt, { className: "cteditor-w-3.5 cteditor-h-3.5" })
|
|
18635
18636
|
}
|
|
18636
18637
|
)
|
|
18637
18638
|
]
|
|
@@ -18723,7 +18724,7 @@ function HS({
|
|
|
18723
18724
|
function Xl(t) {
|
|
18724
18725
|
return t instanceof Jn;
|
|
18725
18726
|
}
|
|
18726
|
-
const zS = et.lazy(() => import("./index-
|
|
18727
|
+
const zS = et.lazy(() => import("./index-0dB2NNlO.js"));
|
|
18727
18728
|
function BS(t) {
|
|
18728
18729
|
const e = t;
|
|
18729
18730
|
if (e.src.startsWith("file:///"))
|
|
@@ -18967,7 +18968,7 @@ function jS({
|
|
|
18967
18968
|
},
|
|
18968
18969
|
className: "cteditor-absolute cteditor-top-2 cteditor-right-2 cteditor-p-1 cteditor-rounded-full cteditor-bg-foreground/10 hover:cteditor-bg-foreground/20 cteditor-text-foreground/60 cteditor-transition-colors",
|
|
18969
18970
|
title: "Cancel upload",
|
|
18970
|
-
children: /* @__PURE__ */ i(
|
|
18971
|
+
children: /* @__PURE__ */ i(Kt, { className: "cteditor-w-4 cteditor-h-4" })
|
|
18971
18972
|
}
|
|
18972
18973
|
)
|
|
18973
18974
|
] }),
|
|
@@ -19250,7 +19251,7 @@ const VS = [
|
|
|
19250
19251
|
j(() => {
|
|
19251
19252
|
n("fontSizeInputValue", o.slice(0, -2));
|
|
19252
19253
|
}, [o, n]);
|
|
19253
|
-
const s =
|
|
19254
|
+
const s = Vt(() => ({
|
|
19254
19255
|
toolbarState: e,
|
|
19255
19256
|
updateToolbarState: n
|
|
19256
19257
|
}), [e, n]);
|
|
@@ -19302,7 +19303,7 @@ const VS = [
|
|
|
19302
19303
|
capitalize: v.hasFormat("capitalize")
|
|
19303
19304
|
});
|
|
19304
19305
|
const N = uo(v), S = N.getParent();
|
|
19305
|
-
if (
|
|
19306
|
+
if (Ft(S) || Ft(N) ? p(!0) : p(!1), k !== null)
|
|
19306
19307
|
if (l(_), vc(E)) {
|
|
19307
19308
|
const T = Su(
|
|
19308
19309
|
w,
|
|
@@ -19658,7 +19659,7 @@ function o3({
|
|
|
19658
19659
|
selectedTextForInline: a,
|
|
19659
19660
|
savedSelection: c
|
|
19660
19661
|
}) {
|
|
19661
|
-
const [l, d] = A(""), [u, h] = A(""), [p, f] = A(!1), [b, g] = A(null), [m, x] = A("chatgpt"), [v, w] = A(1), [E, _] = A(0), [k, N] = A(0), [S, T] = A(!1), [P, O] = A("idle"), [M, H] = A(!1), [$, Q] = A([]), [z, L] = A(!1), [R, D] = A(!1), B = X(c ?? null), K = ui(), de = K?.isByokPlan ?? !1, ce = K?.byokApiKeys, ue =
|
|
19662
|
+
const [l, d] = A(""), [u, h] = A(""), [p, f] = A(!1), [b, g] = A(null), [m, x] = A("chatgpt"), [v, w] = A(1), [E, _] = A(0), [k, N] = A(0), [S, T] = A(!1), [P, O] = A("idle"), [M, H] = A(!1), [$, Q] = A([]), [z, L] = A(!1), [R, D] = A(!1), B = X(c ?? null), K = ui(), de = K?.isByokPlan ?? !1, ce = K?.byokApiKeys, ue = Vt(() => {
|
|
19662
19663
|
if (!de || !ce)
|
|
19663
19664
|
return ["chatgpt", "claude", "grok", "gemini"];
|
|
19664
19665
|
const he = [];
|
|
@@ -19777,10 +19778,10 @@ function o3({
|
|
|
19777
19778
|
const he = se.current;
|
|
19778
19779
|
he.style.height = "auto", he.style.height = `${he.scrollHeight}px`;
|
|
19779
19780
|
}
|
|
19780
|
-
}, [l]), /* @__PURE__ */ i(we, { children: /* @__PURE__ */ i(
|
|
19781
|
-
/* @__PURE__ */ i(
|
|
19781
|
+
}, [l]), /* @__PURE__ */ i(we, { children: /* @__PURE__ */ i($t, { open: t, onOpenChange: ve, children: /* @__PURE__ */ y(Lt, { className: "sm:cteditor-max-w-xl cteditor-max-w-[calc(100%-2rem)] cteditor-rounded-lg [&>.closeDialog]:cteditor-top-1.5 [&>.closeDialog]:cteditor-right-1.5", children: [
|
|
19782
|
+
/* @__PURE__ */ i(Ht, { children: /* @__PURE__ */ y("div", { className: "cteditor-flex cteditor-gap-4 cteditor-flex-col", children: [
|
|
19782
19783
|
/* @__PURE__ */ y("div", { children: [
|
|
19783
|
-
/* @__PURE__ */ y(
|
|
19784
|
+
/* @__PURE__ */ y(Rt, { className: "cteditor-flex cteditor-items-center cteditor-gap-2 cteditor-text-xl cteditor-mb-1 !cteditor-font-medium", children: [
|
|
19784
19785
|
/* @__PURE__ */ i(Sh, {}),
|
|
19785
19786
|
"Ask AI"
|
|
19786
19787
|
] }),
|
|
@@ -19848,7 +19849,7 @@ function o3({
|
|
|
19848
19849
|
onClick: () => h(""),
|
|
19849
19850
|
className: "cteditor-text-xs cteditor-text-muted-foreground hover:cteditor-text-foreground cteditor-transition-colors",
|
|
19850
19851
|
title: "Clear selected text",
|
|
19851
|
-
children: /* @__PURE__ */ i(
|
|
19852
|
+
children: /* @__PURE__ */ i(Kt, { size: 14 })
|
|
19852
19853
|
}
|
|
19853
19854
|
)
|
|
19854
19855
|
] }),
|
|
@@ -20154,7 +20155,7 @@ function n3({
|
|
|
20154
20155
|
onClose: n,
|
|
20155
20156
|
anchorElem: s
|
|
20156
20157
|
}) {
|
|
20157
|
-
const [a, c] = A(r), [l, d] = A(""), [u, h] = A(!1), [p, f] = A("idle"), [b, g] = A(!0), [m, x] = A([]), [v, w] = A(!1), E = X(null), _ = ui(), k = _?.isByokPlan ?? !1, N = _?.byokApiKeys, S =
|
|
20158
|
+
const [a, c] = A(r), [l, d] = A(""), [u, h] = A(!1), [p, f] = A("idle"), [b, g] = A(!0), [m, x] = A([]), [v, w] = A(!1), E = X(null), _ = ui(), k = _?.isByokPlan ?? !1, N = _?.byokApiKeys, S = Vt(() => {
|
|
20158
20159
|
if (!k || !N)
|
|
20159
20160
|
return ["chatgpt", "claude", "grok", "gemini"];
|
|
20160
20161
|
const R = [];
|
|
@@ -20284,7 +20285,7 @@ function n3({
|
|
|
20284
20285
|
onClick: () => g(!1),
|
|
20285
20286
|
className: "cteditor-absolute cteditor-right-1 cteditor-top-1/2 cteditor--translate-y-1/2 cteditor-size-4 cteditor-flex cteditor-items-center cteditor-justify-center cteditor-text-[#888] hover:cteditor-text-white cteditor-transition-colors cteditor-duration-200 cteditor-cursor-pointer",
|
|
20286
20287
|
title: "Close message",
|
|
20287
|
-
children: /* @__PURE__ */ i(
|
|
20288
|
+
children: /* @__PURE__ */ i(Kt, { size: 12 })
|
|
20288
20289
|
}
|
|
20289
20290
|
)
|
|
20290
20291
|
]
|
|
@@ -20365,7 +20366,7 @@ function n3({
|
|
|
20365
20366
|
onClick: n,
|
|
20366
20367
|
className: "cteditor-size-8 cteditor-bg-background cteditor-text-[#888] cteditor-flex cteditor-items-center cteditor-justify-center cteditor-cursor-pointer cteditor-shrink-0 cteditor-transition-colors cteditor-duration-200 hover:cteditor-text-white cteditor-rounded-md cteditor-border cteditor-border-[#333] cteditor-shadow-[0_8px_24px_rgba(0,0,0,0.4)]",
|
|
20367
20368
|
title: "Close (Esc)",
|
|
20368
|
-
children: /* @__PURE__ */ i(
|
|
20369
|
+
children: /* @__PURE__ */ i(Kt, { size: 16 })
|
|
20369
20370
|
}
|
|
20370
20371
|
)
|
|
20371
20372
|
] })
|
|
@@ -20467,7 +20468,7 @@ function Rf({ isActive: t }) {
|
|
|
20467
20468
|
!1
|
|
20468
20469
|
// Don't use built-in headers, we'll set them manually
|
|
20469
20470
|
), u = l.getChildren()[0];
|
|
20470
|
-
if (
|
|
20471
|
+
if (Dt(u)) {
|
|
20471
20472
|
const p = u.getChildren();
|
|
20472
20473
|
for (let f = 0; f < p.length; f++) {
|
|
20473
20474
|
const b = p[f];
|
|
@@ -20483,7 +20484,7 @@ function Rf({ isActive: t }) {
|
|
|
20483
20484
|
else
|
|
20484
20485
|
dp(l);
|
|
20485
20486
|
const h = ze();
|
|
20486
|
-
if (l.insertAfter(h),
|
|
20487
|
+
if (l.insertAfter(h), Dt(u)) {
|
|
20487
20488
|
const p = u.getChildren();
|
|
20488
20489
|
p.length > 0 && Ye(p[0]) && p[0].selectStart();
|
|
20489
20490
|
}
|
|
@@ -21099,7 +21100,7 @@ function b3() {
|
|
|
21099
21100
|
const t = iu;
|
|
21100
21101
|
return iu = null, t;
|
|
21101
21102
|
}
|
|
21102
|
-
const
|
|
21103
|
+
const Ut = {
|
|
21103
21104
|
// Dark neutral background - works on both light and dark pages
|
|
21104
21105
|
backgroundColor: "#2d2d2d",
|
|
21105
21106
|
// Light text for readability on dark background
|
|
@@ -21129,15 +21130,15 @@ const Wt = {
|
|
|
21129
21130
|
};
|
|
21130
21131
|
function x3(t) {
|
|
21131
21132
|
return {
|
|
21132
|
-
PlaygroundEditorTheme__tokenComment:
|
|
21133
|
-
PlaygroundEditorTheme__tokenPunctuation:
|
|
21134
|
-
PlaygroundEditorTheme__tokenProperty:
|
|
21135
|
-
PlaygroundEditorTheme__tokenSelector:
|
|
21136
|
-
PlaygroundEditorTheme__tokenOperator:
|
|
21137
|
-
PlaygroundEditorTheme__tokenAttr:
|
|
21138
|
-
PlaygroundEditorTheme__tokenVariable:
|
|
21139
|
-
PlaygroundEditorTheme__tokenFunction:
|
|
21140
|
-
}[t] ||
|
|
21133
|
+
PlaygroundEditorTheme__tokenComment: Ut.tokenColors.comment,
|
|
21134
|
+
PlaygroundEditorTheme__tokenPunctuation: Ut.tokenColors.punctuation,
|
|
21135
|
+
PlaygroundEditorTheme__tokenProperty: Ut.tokenColors.property,
|
|
21136
|
+
PlaygroundEditorTheme__tokenSelector: Ut.tokenColors.selector,
|
|
21137
|
+
PlaygroundEditorTheme__tokenOperator: Ut.tokenColors.operator,
|
|
21138
|
+
PlaygroundEditorTheme__tokenAttr: Ut.tokenColors.attr,
|
|
21139
|
+
PlaygroundEditorTheme__tokenVariable: Ut.tokenColors.variable,
|
|
21140
|
+
PlaygroundEditorTheme__tokenFunction: Ut.tokenColors.function
|
|
21141
|
+
}[t] || Ut.textColor;
|
|
21141
21142
|
}
|
|
21142
21143
|
function Cb(t) {
|
|
21143
21144
|
const e = [];
|
|
@@ -21528,7 +21529,7 @@ function N3(t, e) {
|
|
|
21528
21529
|
const l = e.fontFamily || "Menlo, Consolas, Monaco, monospace";
|
|
21529
21530
|
r(
|
|
21530
21531
|
"code:not(.code-line-numbers):not(.code-content):not([data-language]):not([data-highlight-language])",
|
|
21531
|
-
`font-family: ${l}; background-color: ${
|
|
21532
|
+
`font-family: ${l}; background-color: ${Ut.backgroundColor}; color: ${Ut.textColor}; padding: 2px 6px; border-radius: 3px;`
|
|
21532
21533
|
), r(
|
|
21533
21534
|
"blockquote",
|
|
21534
21535
|
"border-left: 4px solid #ddd; margin: 1em 0; padding-left: 1em; color: #666;"
|
|
@@ -21544,7 +21545,7 @@ function E3(t, e) {
|
|
|
21544
21545
|
for (const d of l)
|
|
21545
21546
|
if (d.startsWith("PlaygroundEditorTheme__token")) {
|
|
21546
21547
|
const u = x3(d);
|
|
21547
|
-
u !==
|
|
21548
|
+
u !== Ut.textColor && (c.style.color = u);
|
|
21548
21549
|
break;
|
|
21549
21550
|
}
|
|
21550
21551
|
});
|
|
@@ -21572,7 +21573,7 @@ function S3(t, e) {
|
|
|
21572
21573
|
const h = u.join(`
|
|
21573
21574
|
`), p = d.toString().length, f = Math.max(25, p * 8) + 16, b = t.ownerDocument.createElement("div");
|
|
21574
21575
|
b.className = "code-line-numbers", b.textContent = h;
|
|
21575
|
-
const g = e.fontFamily || "Menlo, Consolas, Monaco, monospace", m = e.fontSize || "13px", x = e.lineHeight || "1.53", v =
|
|
21576
|
+
const g = e.fontFamily || "Menlo, Consolas, Monaco, monospace", m = e.fontSize || "13px", x = e.lineHeight || "1.53", v = Ut.gutterBackgroundColor, w = Ut.gutterTextColor;
|
|
21576
21577
|
b.style.cssText = [
|
|
21577
21578
|
"display: table-cell",
|
|
21578
21579
|
"vertical-align: top",
|
|
@@ -21605,7 +21606,7 @@ function S3(t, e) {
|
|
|
21605
21606
|
"width: 100%"
|
|
21606
21607
|
].join("; "); n.firstChild; )
|
|
21607
21608
|
E.appendChild(n.firstChild);
|
|
21608
|
-
const _ =
|
|
21609
|
+
const _ = Ut.backgroundColor, k = Ut.textColor;
|
|
21609
21610
|
n.style.cssText = [
|
|
21610
21611
|
"display: table",
|
|
21611
21612
|
"table-layout: fixed",
|
|
@@ -21870,7 +21871,7 @@ const Wr = {
|
|
|
21870
21871
|
NEAR_BLACK: "#111111"
|
|
21871
21872
|
}
|
|
21872
21873
|
}, R3 = async () => {
|
|
21873
|
-
const t = await import("./html2pdf.bundle.min-
|
|
21874
|
+
const t = await import("./html2pdf.bundle.min-__2qz-Dv.js").then((e) => e.h);
|
|
21874
21875
|
return t?.default || t;
|
|
21875
21876
|
};
|
|
21876
21877
|
async function I3(t, e = "document.pdf", r) {
|
|
@@ -22472,7 +22473,7 @@ const _b = () => {
|
|
|
22472
22473
|
[e]
|
|
22473
22474
|
), n = W(
|
|
22474
22475
|
(s) => {
|
|
22475
|
-
s === null ? (t.dispatchCommand(
|
|
22476
|
+
s === null ? (t.dispatchCommand(Ot, "highlight"), e({ "background-color": "transparent" })) : (t.dispatchCommand(Ot, "highlight"), e({ "background-color": s }));
|
|
22476
22477
|
},
|
|
22477
22478
|
[t, e]
|
|
22478
22479
|
);
|
|
@@ -23662,9 +23663,9 @@ function bx({
|
|
|
23662
23663
|
colors: l9
|
|
23663
23664
|
}), e(!1);
|
|
23664
23665
|
};
|
|
23665
|
-
return /* @__PURE__ */ i(
|
|
23666
|
-
/* @__PURE__ */ y(
|
|
23667
|
-
/* @__PURE__ */ y(
|
|
23666
|
+
return /* @__PURE__ */ i($t, { open: t, onOpenChange: e, children: /* @__PURE__ */ y(Lt, { className: "sm:cteditor-max-w-[500px] cteditor-max-w-[calc(100%-2rem)] cteditor-rounded-lg", children: [
|
|
23667
|
+
/* @__PURE__ */ y(Ht, { children: [
|
|
23668
|
+
/* @__PURE__ */ y(Rt, { className: "cteditor-flex cteditor-items-center cteditor-gap-2", children: [
|
|
23668
23669
|
/* @__PURE__ */ i("span", { className: "cteditor-text-2xl", children: "📊" }),
|
|
23669
23670
|
"Insert Chart"
|
|
23670
23671
|
] }),
|
|
@@ -23768,7 +23769,7 @@ const xx = Et("INSERT_HTML_CANVAS_COMMAND"), d9 = () => {
|
|
|
23768
23769
|
{
|
|
23769
23770
|
onClick: c,
|
|
23770
23771
|
className: "cteditor-absolute cteditor-right-4 cteditor-top-4 cteditor-rounded-full cteditor-bg-secondary cteditor-p-1 cteditor-opacity-70 cteditor-transition-opacity focus:cteditor-outline-none cteditor-disabled:pointer-events-none data-[state=open]:cteditor-bg-accent data-[state=open]:cteditor-text-muted-foreground hover:cteditor-opacity-100",
|
|
23771
|
-
children: /* @__PURE__ */ i(
|
|
23772
|
+
children: /* @__PURE__ */ i(Kt, { className: "cteditor-h-4 cteditor-w-4" })
|
|
23772
23773
|
}
|
|
23773
23774
|
)
|
|
23774
23775
|
] }),
|
|
@@ -23860,7 +23861,7 @@ var gs = function(t, e, r) {
|
|
|
23860
23861
|
}, Ff = function(t) {
|
|
23861
23862
|
!Xi(t) && t.preventDefault();
|
|
23862
23863
|
}, Cx = et.memo(function(t) {
|
|
23863
|
-
var e = t.onMove, r = t.onKey, o = wx(t, ["onMove", "onKey"]), n = X(null), s = au(e), a = au(r), c = X(null), l = X(!1), d =
|
|
23864
|
+
var e = t.onMove, r = t.onKey, o = wx(t, ["onMove", "onKey"]), n = X(null), s = au(e), a = au(r), c = X(null), l = X(!1), d = Vt(function() {
|
|
23864
23865
|
var f = function(m) {
|
|
23865
23866
|
Ff(m), (Xi(m) ? m.touches.length > 0 : m.buttons > 0) && n.current ? s(Of(n.current, m, c.current)) : g(!1);
|
|
23866
23867
|
}, b = function() {
|
|
@@ -23895,17 +23896,17 @@ var gs = function(t, e, r) {
|
|
|
23895
23896
|
}, kx = function(t) {
|
|
23896
23897
|
var e = t.color, r = t.left, o = t.top, n = o === void 0 ? 0.5 : o, s = zh(["react-colorful__pointer", t.className]);
|
|
23897
23898
|
return et.createElement("div", { className: s, style: { top: 100 * n + "%", left: 100 * r + "%" } }, et.createElement("div", { className: "react-colorful__pointer-fill", style: { backgroundColor: e } }));
|
|
23898
|
-
},
|
|
23899
|
+
}, Wt = function(t, e, r) {
|
|
23899
23900
|
return e === void 0 && (e = 0), r === void 0 && (r = Math.pow(10, e)), Math.round(r * t) / r;
|
|
23900
23901
|
}, u9 = function(t) {
|
|
23901
23902
|
return g9(lu(t));
|
|
23902
23903
|
}, lu = function(t) {
|
|
23903
|
-
return t[0] === "#" && (t = t.substring(1)), t.length < 6 ? { r: parseInt(t[0] + t[0], 16), g: parseInt(t[1] + t[1], 16), b: parseInt(t[2] + t[2], 16), a: t.length === 4 ?
|
|
23904
|
+
return t[0] === "#" && (t = t.substring(1)), t.length < 6 ? { r: parseInt(t[0] + t[0], 16), g: parseInt(t[1] + t[1], 16), b: parseInt(t[2] + t[2], 16), a: t.length === 4 ? Wt(parseInt(t[3] + t[3], 16) / 255, 2) : 1 } : { r: parseInt(t.substring(0, 2), 16), g: parseInt(t.substring(2, 4), 16), b: parseInt(t.substring(4, 6), 16), a: t.length === 8 ? Wt(parseInt(t.substring(6, 8), 16) / 255, 2) : 1 };
|
|
23904
23905
|
}, h9 = function(t) {
|
|
23905
23906
|
return m9(f9(t));
|
|
23906
23907
|
}, p9 = function(t) {
|
|
23907
23908
|
var e = t.s, r = t.v, o = t.a, n = (200 - e) * r / 100;
|
|
23908
|
-
return { h:
|
|
23909
|
+
return { h: Wt(t.h), s: Wt(n > 0 && n < 200 ? e * r / 100 / (n <= 100 ? n : 200 - n) * 100 : 0), l: Wt(n / 2), a: Wt(o, 2) };
|
|
23909
23910
|
}, du = function(t) {
|
|
23910
23911
|
var e = p9(t);
|
|
23911
23912
|
return "hsl(" + e.h + ", " + e.s + "%, " + e.l + "%)";
|
|
@@ -23913,30 +23914,30 @@ var gs = function(t, e, r) {
|
|
|
23913
23914
|
var e = t.h, r = t.s, o = t.v, n = t.a;
|
|
23914
23915
|
e = e / 360 * 6, r /= 100, o /= 100;
|
|
23915
23916
|
var s = Math.floor(e), a = o * (1 - r), c = o * (1 - (e - s) * r), l = o * (1 - (1 - e + s) * r), d = s % 6;
|
|
23916
|
-
return { r:
|
|
23917
|
+
return { r: Wt(255 * [o, c, a, a, l, o][d]), g: Wt(255 * [l, o, o, c, a, a][d]), b: Wt(255 * [a, a, l, o, o, c][d]), a: Wt(n, 2) };
|
|
23917
23918
|
}, da = function(t) {
|
|
23918
23919
|
var e = t.toString(16);
|
|
23919
23920
|
return e.length < 2 ? "0" + e : e;
|
|
23920
23921
|
}, m9 = function(t) {
|
|
23921
|
-
var e = t.r, r = t.g, o = t.b, n = t.a, s = n < 1 ? da(
|
|
23922
|
+
var e = t.r, r = t.g, o = t.b, n = t.a, s = n < 1 ? da(Wt(255 * n)) : "";
|
|
23922
23923
|
return "#" + da(e) + da(r) + da(o) + s;
|
|
23923
23924
|
}, g9 = function(t) {
|
|
23924
23925
|
var e = t.r, r = t.g, o = t.b, n = t.a, s = Math.max(e, r, o), a = s - Math.min(e, r, o), c = a ? s === e ? (r - o) / a : s === r ? 2 + (o - e) / a : 4 + (e - r) / a : 0;
|
|
23925
|
-
return { h:
|
|
23926
|
+
return { h: Wt(60 * (c < 0 ? c + 6 : c)), s: Wt(s ? a / s * 100 : 0), v: Wt(s / 255 * 100), a: n };
|
|
23926
23927
|
}, y9 = et.memo(function(t) {
|
|
23927
23928
|
var e = t.hue, r = t.onChange, o = zh(["react-colorful__hue", t.className]);
|
|
23928
23929
|
return et.createElement("div", { className: o }, et.createElement(Cx, { onMove: function(n) {
|
|
23929
23930
|
r({ h: 360 * n.left });
|
|
23930
23931
|
}, onKey: function(n) {
|
|
23931
23932
|
r({ h: gs(e + 360 * n.left, 0, 360) });
|
|
23932
|
-
}, "aria-label": "Hue", "aria-valuenow":
|
|
23933
|
+
}, "aria-label": "Hue", "aria-valuenow": Wt(e), "aria-valuemax": "360", "aria-valuemin": "0" }, et.createElement(kx, { className: "react-colorful__hue-pointer", left: e / 360, color: du({ h: e, s: 100, v: 100, a: 1 }) })));
|
|
23933
23934
|
}), b9 = et.memo(function(t) {
|
|
23934
23935
|
var e = t.hsva, r = t.onChange, o = { backgroundColor: du({ h: e.h, s: 100, v: 100, a: 1 }) };
|
|
23935
23936
|
return et.createElement("div", { className: "react-colorful__saturation", style: o }, et.createElement(Cx, { onMove: function(n) {
|
|
23936
23937
|
r({ s: 100 * n.left, v: 100 - 100 * n.top });
|
|
23937
23938
|
}, onKey: function(n) {
|
|
23938
23939
|
r({ s: gs(e.s + 100 * n.left, 0, 100), v: gs(e.v - 100 * n.top, 0, 100) });
|
|
23939
|
-
}, "aria-label": "Color", "aria-valuetext": "Saturation " +
|
|
23940
|
+
}, "aria-label": "Color", "aria-valuetext": "Saturation " + Wt(e.s) + "%, Brightness " + Wt(e.v) + "%" }, et.createElement(kx, { className: "react-colorful__saturation-pointer", top: 1 - e.v / 100, left: e.s / 100, color: du(e) })));
|
|
23940
23941
|
}), _x = function(t, e) {
|
|
23941
23942
|
if (t === e)
|
|
23942
23943
|
return !0;
|
|
@@ -24460,7 +24461,7 @@ const H9 = [
|
|
|
24460
24461
|
onClick: () => O(null),
|
|
24461
24462
|
onMouseDown: (L) => L.preventDefault(),
|
|
24462
24463
|
title: "Remove color",
|
|
24463
|
-
children: /* @__PURE__ */ i(
|
|
24464
|
+
children: /* @__PURE__ */ i(Kt, { className: "!cteditor-size-3.5 cteditor-text-foreground/50" })
|
|
24464
24465
|
}
|
|
24465
24466
|
)
|
|
24466
24467
|
] }) }),
|
|
@@ -24578,7 +24579,7 @@ function W9({
|
|
|
24578
24579
|
open: t,
|
|
24579
24580
|
onOpenChange: e
|
|
24580
24581
|
}) {
|
|
24581
|
-
const { apiKey: r } =
|
|
24582
|
+
const { apiKey: r } = Gt(), [o, n] = A(""), [s, a] = A(""), [c, l] = A(""), [d, u] = A(!1), [h, p] = A({}), f = () => {
|
|
24582
24583
|
const m = {};
|
|
24583
24584
|
if (o.trim() || (m.title = "Title is required"), s.trim() ? s.trim().length < 10 && (m.description = "Description must be at least 10 characters") : m.description = "Description is required", c.trim())
|
|
24584
24585
|
try {
|
|
@@ -24612,9 +24613,9 @@ function W9({
|
|
|
24612
24613
|
}, g = () => {
|
|
24613
24614
|
n(""), a(""), l(""), p({}), e(!1);
|
|
24614
24615
|
};
|
|
24615
|
-
return /* @__PURE__ */ i(
|
|
24616
|
-
/* @__PURE__ */ y(
|
|
24617
|
-
/* @__PURE__ */ y(
|
|
24616
|
+
return /* @__PURE__ */ i($t, { open: t, onOpenChange: e, children: /* @__PURE__ */ y(Lt, { className: "sm:cteditor-max-w-[500px] cteditor-max-w-[calc(100%-2rem)] cteditor-rounded-lg", children: [
|
|
24617
|
+
/* @__PURE__ */ y(Ht, { children: [
|
|
24618
|
+
/* @__PURE__ */ y(Rt, { className: "cteditor-flex cteditor-items-center cteditor-gap-2", children: [
|
|
24618
24619
|
/* @__PURE__ */ i($a, { className: "cteditor-h-5 cteditor-w-5 cteditor-text-primary" }),
|
|
24619
24620
|
"Suggest a Feature"
|
|
24620
24621
|
] }),
|
|
@@ -24625,7 +24626,7 @@ function W9({
|
|
|
24625
24626
|
/* @__PURE__ */ y("div", { className: "cteditor-grid cteditor-gap-2", children: [
|
|
24626
24627
|
/* @__PURE__ */ i(xt, { htmlFor: "title", children: "Feature Name *" }),
|
|
24627
24628
|
/* @__PURE__ */ i(
|
|
24628
|
-
|
|
24629
|
+
jt,
|
|
24629
24630
|
{
|
|
24630
24631
|
id: "title",
|
|
24631
24632
|
placeholder: "Enter a title for your feature suggestion",
|
|
@@ -24657,7 +24658,7 @@ function W9({
|
|
|
24657
24658
|
/* @__PURE__ */ y("div", { className: "cteditor-grid cteditor-gap-2", children: [
|
|
24658
24659
|
/* @__PURE__ */ i(xt, { htmlFor: "link", children: "Related Link (Optional)" }),
|
|
24659
24660
|
/* @__PURE__ */ i(
|
|
24660
|
-
|
|
24661
|
+
jt,
|
|
24661
24662
|
{
|
|
24662
24663
|
id: "link",
|
|
24663
24664
|
type: "text",
|
|
@@ -27346,7 +27347,7 @@ function b8({
|
|
|
27346
27347
|
open: t,
|
|
27347
27348
|
onOpenChange: e
|
|
27348
27349
|
}) {
|
|
27349
|
-
const { apiKey: r } =
|
|
27350
|
+
const { apiKey: r } = Gt(), [o, n] = A(""), [s, a] = A(""), [c, l] = A(""), [d, u] = A(""), [h, p] = A([]), [f, b] = A(!1), [g, m] = A(""), [x, v] = A({}), [w, E] = A({}), _ = (z, L) => {
|
|
27350
27351
|
try {
|
|
27351
27352
|
rm.shape[z].parse(L);
|
|
27352
27353
|
return;
|
|
@@ -27448,9 +27449,9 @@ function b8({
|
|
|
27448
27449
|
}, $ = () => {
|
|
27449
27450
|
H(), e(!1);
|
|
27450
27451
|
}, Q = (z) => !!(w[z] && x[z]);
|
|
27451
|
-
return /* @__PURE__ */ i(
|
|
27452
|
-
/* @__PURE__ */ y(
|
|
27453
|
-
/* @__PURE__ */ y(
|
|
27452
|
+
return /* @__PURE__ */ i($t, { open: t, onOpenChange: e, children: /* @__PURE__ */ y(Lt, { className: "sm:cteditor-max-w-[500px] cteditor-max-w-[calc(100%-2rem)] cteditor-rounded-lg", children: [
|
|
27453
|
+
/* @__PURE__ */ y(Ht, { children: [
|
|
27454
|
+
/* @__PURE__ */ y(Rt, { className: "cteditor-flex cteditor-items-center cteditor-gap-2", children: [
|
|
27454
27455
|
/* @__PURE__ */ i("span", { className: "cteditor-h-5 cteditor-w-5 cteditor-text-destructive", children: /* @__PURE__ */ i(Gd, {}) }),
|
|
27455
27456
|
"Report a Bug"
|
|
27456
27457
|
] }),
|
|
@@ -27461,7 +27462,7 @@ function b8({
|
|
|
27461
27462
|
/* @__PURE__ */ y("div", { className: "cteditor-grid cteditor-gap-2", children: [
|
|
27462
27463
|
/* @__PURE__ */ i(xt, { htmlFor: "bug-title", children: "Bug Title *" }),
|
|
27463
27464
|
/* @__PURE__ */ i(
|
|
27464
|
-
|
|
27465
|
+
jt,
|
|
27465
27466
|
{
|
|
27466
27467
|
id: "bug-title",
|
|
27467
27468
|
placeholder: "Brief description of the bug",
|
|
@@ -27495,7 +27496,7 @@ function b8({
|
|
|
27495
27496
|
/* @__PURE__ */ y("div", { className: "cteditor-grid cteditor-gap-2", children: [
|
|
27496
27497
|
/* @__PURE__ */ i(xt, { htmlFor: "bug-url", children: "Reference URL (Optional)" }),
|
|
27497
27498
|
/* @__PURE__ */ i(
|
|
27498
|
-
|
|
27499
|
+
jt,
|
|
27499
27500
|
{
|
|
27500
27501
|
id: "bug-url",
|
|
27501
27502
|
type: "url",
|
|
@@ -27561,7 +27562,7 @@ function b8({
|
|
|
27561
27562
|
onClick: () => P(L),
|
|
27562
27563
|
className: "cteditor-text-muted-foreground hover:cteditor-text-destructive",
|
|
27563
27564
|
disabled: f,
|
|
27564
|
-
children: /* @__PURE__ */ i(
|
|
27565
|
+
children: /* @__PURE__ */ i(Kt, { className: "cteditor-h-4 cteditor-w-4" })
|
|
27565
27566
|
}
|
|
27566
27567
|
)
|
|
27567
27568
|
]
|
|
@@ -27595,7 +27596,7 @@ const nd = zx({
|
|
|
27595
27596
|
comment: Vi().max(500, "Comment must be less than 500 characters").optional()
|
|
27596
27597
|
}), x8 = ["", "Poor", "Fair", "Good", "Very Good", "Excellent"], id = 500;
|
|
27597
27598
|
function v8({ open: t, onOpenChange: e, onFeedbackSubmitted: r }) {
|
|
27598
|
-
const { apiKey: o } =
|
|
27599
|
+
const { apiKey: o } = Gt(), [n, s] = A(0), [a, c] = A(0), [l, d] = A(""), [u, h] = A(!1), [p, f] = A({}), [b, g] = A({}), m = a || n, x = (P, O) => {
|
|
27599
27600
|
try {
|
|
27600
27601
|
P === "rating" ? nd.shape.rating.parse(O) : P === "comment" && nd.shape.comment.parse(O);
|
|
27601
27602
|
return;
|
|
@@ -27654,9 +27655,9 @@ function v8({ open: t, onOpenChange: e, onFeedbackSubmitted: r }) {
|
|
|
27654
27655
|
}, T = () => {
|
|
27655
27656
|
S(), e(!1);
|
|
27656
27657
|
};
|
|
27657
|
-
return /* @__PURE__ */ i(
|
|
27658
|
-
/* @__PURE__ */ y(
|
|
27659
|
-
/* @__PURE__ */ y(
|
|
27658
|
+
return /* @__PURE__ */ i($t, { open: t, onOpenChange: e, children: /* @__PURE__ */ y(Lt, { className: "sm:cteditor-max-w-[450px] cteditor-max-w-[calc(100%-2rem)] cteditor-rounded-lg", children: [
|
|
27659
|
+
/* @__PURE__ */ y(Ht, { children: [
|
|
27660
|
+
/* @__PURE__ */ y(Rt, { className: "cteditor-flex cteditor-items-center cteditor-gap-2", children: [
|
|
27660
27661
|
/* @__PURE__ */ i(Ok, { className: "cteditor-h-5 cteditor-w-5 cteditor-text-primary" }),
|
|
27661
27662
|
"Share Your Review"
|
|
27662
27663
|
] }),
|
|
@@ -27751,9 +27752,9 @@ const Bx = ({
|
|
|
27751
27752
|
onOpenChange: e,
|
|
27752
27753
|
htmlContent: r,
|
|
27753
27754
|
apiKey: o
|
|
27754
|
-
}) => /* @__PURE__ */ i(
|
|
27755
|
-
/* @__PURE__ */ y(
|
|
27756
|
-
/* @__PURE__ */ i(
|
|
27755
|
+
}) => /* @__PURE__ */ i($t, { open: t, onOpenChange: e, children: /* @__PURE__ */ y(Lt, { className: "!cteditor-max-w-[1320px] cteditor-w-full cteditor-flex cteditor-flex-col cteditor-p-0 cteditor-overflow-hidden ", children: [
|
|
27756
|
+
/* @__PURE__ */ y(Ht, { className: "cteditor-flex-shrink-0 cteditor-border-b cteditor-border-dashed cteditor-border-white/20 cteditor-pb-4", children: [
|
|
27757
|
+
/* @__PURE__ */ i(Rt, { children: "Content Preview" }),
|
|
27757
27758
|
/* @__PURE__ */ i(kr, { className: "cteditor-text-sm cteditor-text-muted-foreground cteditor-text-[#525252]", children: "Read-only · Final published output" })
|
|
27758
27759
|
] }),
|
|
27759
27760
|
/* @__PURE__ */ i("div", { className: "cteditor-flex-1 cteditor-overflow-y-auto cteditor-overflow-x-hidden cteditor-min-h-0 cteditor-max-h-[calc(100svh-195px)]", children: /* @__PURE__ */ i(og, { apiKey: o, enabled: t, children: /* @__PURE__ */ i(
|
|
@@ -27807,13 +27808,13 @@ const Bx = ({
|
|
|
27807
27808
|
fonts: t = om,
|
|
27808
27809
|
activeEditor: e
|
|
27809
27810
|
}) => {
|
|
27810
|
-
const [r, o] = A("Inter"), [n, s] = A(""), a = X(null), [c, l] = A(/* @__PURE__ */ new Set()), d = et.useRef(null), u = et.useRef(!1), h = et.useRef(!1), p = t === om, f =
|
|
27811
|
+
const [r, o] = A("Inter"), [n, s] = A(""), a = X(null), [c, l] = A(/* @__PURE__ */ new Set()), d = et.useRef(null), u = et.useRef(!1), h = et.useRef(!1), p = t === om, f = Vt(() => {
|
|
27811
27812
|
const _ = new Set(t);
|
|
27812
27813
|
return c.forEach((k) => _.add(k)), Array.from(_);
|
|
27813
|
-
}, [t, c]), b =
|
|
27814
|
+
}, [t, c]), b = Vt(() => {
|
|
27814
27815
|
const _ = new Set(t);
|
|
27815
27816
|
return Array.from(c).filter((k) => !_.has(k));
|
|
27816
|
-
}, [t, c]), g =
|
|
27817
|
+
}, [t, c]), g = Vt(() => {
|
|
27817
27818
|
if (!n)
|
|
27818
27819
|
return bu;
|
|
27819
27820
|
const _ = On(n);
|
|
@@ -27821,12 +27822,12 @@ const Bx = ({
|
|
|
27821
27822
|
...k,
|
|
27822
27823
|
fonts: k.fonts.filter((N) => On(N).includes(_))
|
|
27823
27824
|
})).filter((k) => k.fonts.length > 0);
|
|
27824
|
-
}, [n]), m =
|
|
27825
|
+
}, [n]), m = Vt(() => {
|
|
27825
27826
|
if (!n)
|
|
27826
27827
|
return b;
|
|
27827
27828
|
const _ = On(n);
|
|
27828
27829
|
return b.filter((k) => On(k).includes(_));
|
|
27829
|
-
}, [n, b]), x =
|
|
27830
|
+
}, [n, b]), x = Vt(() => {
|
|
27830
27831
|
if (!n)
|
|
27831
27832
|
return f;
|
|
27832
27833
|
const _ = On(n);
|
|
@@ -28080,7 +28081,7 @@ const Bx = ({
|
|
|
28080
28081
|
/* @__PURE__ */ i(Ve, { children: /* @__PURE__ */ i("p", { children: "Decrease Font Size" }) })
|
|
28081
28082
|
] }) }),
|
|
28082
28083
|
/* @__PURE__ */ i(
|
|
28083
|
-
|
|
28084
|
+
jt,
|
|
28084
28085
|
{
|
|
28085
28086
|
className: "!cteditor-w-9 !cteditor-h-7 !cteditor-p-0 !cteditor-text-center !cteditor-bg-main-secondary cteditor-border-none",
|
|
28086
28087
|
value: o,
|
|
@@ -28106,7 +28107,7 @@ const Bx = ({
|
|
|
28106
28107
|
] }) })
|
|
28107
28108
|
] });
|
|
28108
28109
|
}, w8 = ({ hasFormat: t, blockType: e }) => {
|
|
28109
|
-
const [r] = Se(), { editorConfig: o } =
|
|
28110
|
+
const [r] = Se(), { editorConfig: o } = Gt(), n = o?.toolbarOptions, s = o?.hideLockedFeatures ?? !1, a = n?.enableCodeFormat ?? !0, c = n?.enableLists ?? !0, l = n?.enableBlockquote ?? !0, d = [
|
|
28110
28111
|
"bold",
|
|
28111
28112
|
"italic",
|
|
28112
28113
|
"strikethrough",
|
|
@@ -28142,7 +28143,7 @@ const Bx = ({
|
|
|
28142
28143
|
}
|
|
28143
28144
|
}, p = (g) => {
|
|
28144
28145
|
if (d.includes(g)) {
|
|
28145
|
-
r.dispatchCommand(
|
|
28146
|
+
r.dispatchCommand(Ot, g);
|
|
28146
28147
|
return;
|
|
28147
28148
|
}
|
|
28148
28149
|
r.update(() => {
|
|
@@ -28235,7 +28236,7 @@ const Bx = ({
|
|
|
28235
28236
|
] })
|
|
28236
28237
|
] });
|
|
28237
28238
|
}, C8 = ({ hasFormat: t, blockType: e }) => {
|
|
28238
|
-
const [r] = Se(), { editorConfig: o, planConfig: n } =
|
|
28239
|
+
const [r] = Se(), { editorConfig: o, planConfig: n } = Gt(), s = o?.toolbarOptions, a = o?.hideLockedFeatures ?? !1, c = s?.enableCodeFormat ?? !0, l = s?.enableLists ?? !0, d = s?.enableBlockquote ?? !0, u = [
|
|
28239
28240
|
"bold",
|
|
28240
28241
|
"italic",
|
|
28241
28242
|
"strikethrough",
|
|
@@ -28271,7 +28272,7 @@ const Bx = ({
|
|
|
28271
28272
|
}
|
|
28272
28273
|
}, f = (m) => {
|
|
28273
28274
|
if (u.includes(m)) {
|
|
28274
|
-
r.dispatchCommand(
|
|
28275
|
+
r.dispatchCommand(Ot, m);
|
|
28275
28276
|
return;
|
|
28276
28277
|
}
|
|
28277
28278
|
r.update(() => {
|
|
@@ -28435,7 +28436,7 @@ const jh = (t) => {
|
|
|
28435
28436
|
}, k8 = ({
|
|
28436
28437
|
onClick: t
|
|
28437
28438
|
}) => {
|
|
28438
|
-
const [e, r] = A(""), { apiKey: o } =
|
|
28439
|
+
const [e, r] = A(""), { apiKey: o } = Gt(), { uploadFileToS3: n, progress: s, uploading: a, error: c } = jh(o || void 0), [l, d] = A(""), [u, h] = A(null), [p, f] = A(null), [b, g] = A(null), [m, x] = A(!1), v = X(null), w = c || b, E = (O) => {
|
|
28439
28440
|
h(O);
|
|
28440
28441
|
const M = new FileReader();
|
|
28441
28442
|
M.onload = () => {
|
|
@@ -28552,7 +28553,7 @@ const jh = (t) => {
|
|
|
28552
28553
|
/* @__PURE__ */ y("div", { children: [
|
|
28553
28554
|
/* @__PURE__ */ i(xt, { htmlFor: "alt-text", className: "cteditor-mb-2 cteditor-block", children: "Alt Text" }),
|
|
28554
28555
|
/* @__PURE__ */ i(
|
|
28555
|
-
|
|
28556
|
+
jt,
|
|
28556
28557
|
{
|
|
28557
28558
|
id: "alt-text",
|
|
28558
28559
|
placeholder: "Descriptive alternative text",
|
|
@@ -28580,7 +28581,7 @@ const jh = (t) => {
|
|
|
28580
28581
|
}, _8 = ({
|
|
28581
28582
|
onClick: t
|
|
28582
28583
|
}) => {
|
|
28583
|
-
const [e, r] = A(""), [o, n] = A(""), [s, a] = A(!1), [c, l] = A(null), [d, u] = A(null), [h, p] = A(null), [f, b] = A(!1), { apiKey: g } =
|
|
28584
|
+
const [e, r] = A(""), [o, n] = A(""), [s, a] = A(!1), [c, l] = A(null), [d, u] = A(null), [h, p] = A(null), [f, b] = A(!1), { apiKey: g } = Gt(), m = h, x = (_) => {
|
|
28584
28585
|
try {
|
|
28585
28586
|
const k = new URL(_);
|
|
28586
28587
|
if (k.hostname.includes("google.com") && k.pathname === "/imgres") {
|
|
@@ -28684,7 +28685,7 @@ const jh = (t) => {
|
|
|
28684
28685
|
/* @__PURE__ */ y("div", { children: [
|
|
28685
28686
|
/* @__PURE__ */ i(xt, { htmlFor: "image-url", className: "cteditor-mb-2 cteditor-block", children: "Image URL" }),
|
|
28686
28687
|
/* @__PURE__ */ i(
|
|
28687
|
-
|
|
28688
|
+
jt,
|
|
28688
28689
|
{
|
|
28689
28690
|
id: "image-url",
|
|
28690
28691
|
type: "url",
|
|
@@ -28707,7 +28708,7 @@ const jh = (t) => {
|
|
|
28707
28708
|
}
|
|
28708
28709
|
),
|
|
28709
28710
|
/* @__PURE__ */ i(
|
|
28710
|
-
|
|
28711
|
+
jt,
|
|
28711
28712
|
{
|
|
28712
28713
|
id: "alt-text-url",
|
|
28713
28714
|
placeholder: "Descriptive alternative text",
|
|
@@ -28766,8 +28767,8 @@ const jh = (t) => {
|
|
|
28766
28767
|
const s = (a) => {
|
|
28767
28768
|
console.log("Dispatching INSERT_IMAGE_COMMAND with payload:", a), t.dispatchCommand(os, a), console.log("Image command dispatched, closing dialog"), e();
|
|
28768
28769
|
};
|
|
28769
|
-
return /* @__PURE__ */ i(
|
|
28770
|
-
/* @__PURE__ */ i(
|
|
28770
|
+
return /* @__PURE__ */ i($t, { open: !0, onOpenChange: e, children: /* @__PURE__ */ y(Lt, { className: "cteditor-w-full sm:cteditor-max-w-md", children: [
|
|
28771
|
+
/* @__PURE__ */ i(Ht, { children: /* @__PURE__ */ i(Rt, { children: "Insert Image" }) }),
|
|
28771
28772
|
r ? r === "file" ? /* @__PURE__ */ i(k8, { onClick: s }) : /* @__PURE__ */ i(_8, { onClick: s }) : /* @__PURE__ */ y("div", { className: "cteditor-flex cteditor-flex-col cteditor-gap-4 cteditor-mt-3", children: [
|
|
28772
28773
|
/* @__PURE__ */ y(
|
|
28773
28774
|
ye,
|
|
@@ -28849,7 +28850,7 @@ const jh = (t) => {
|
|
|
28849
28850
|
"application/vnd.ms-powerpoint",
|
|
28850
28851
|
"application/vnd.openxmlformats-officedocument.presentationml.presentation"
|
|
28851
28852
|
], E8 = ({ onClick: t }) => {
|
|
28852
|
-
const [e, r] = A(""), { apiKey: o } =
|
|
28853
|
+
const [e, r] = A(""), { apiKey: o } = Gt(), { uploadFileToS3: n, progress: s, uploading: a, error: c } = jh(o || void 0), [l, d] = A(null), [u, h] = A(null), [p, f] = A(!1), b = X(null), g = (N) => dm.includes(N.type) ? N.size > lm * 1024 * 1024 ? `File size exceeds ${lm}MB limit.` : null : "Invalid file type. Only PDF, TXT, CSV, JSON, ZIP, DOC, DOCX, XLS, XLSX, PPT, PPTX are allowed.", m = (N) => {
|
|
28853
28854
|
const S = g(N);
|
|
28854
28855
|
if (S) {
|
|
28855
28856
|
h(S), d(null);
|
|
@@ -28965,9 +28966,12 @@ const jh = (t) => {
|
|
|
28965
28966
|
}, Vh = ({
|
|
28966
28967
|
activeEditor: t,
|
|
28967
28968
|
onClose: e
|
|
28968
|
-
}) => /* @__PURE__ */ i(
|
|
28969
|
-
|
|
28970
|
-
|
|
28969
|
+
}) => /* @__PURE__ */ i($t, { open: !0, modal: !0, onOpenChange: (o) => !o && e(), children: /* @__PURE__ */ y(Lt, { className: "sm:cteditor-max-w-lg [&>.closeDialog]:cteditor-top-1 [&>.closeDialog]:cteditor-right-1", "aria-describedby": void 0, children: [
|
|
28970
|
+
/* @__PURE__ */ i(Ht, { className: "cteditor-sr-only", children: /* @__PURE__ */ i(Rt, { children: "Upload File" }) }),
|
|
28971
|
+
/* @__PURE__ */ i("div", { className: "cteditor-space-y-4", children: /* @__PURE__ */ i(E8, { onClick: (o) => {
|
|
28972
|
+
t.dispatchCommand(Wx, o), e();
|
|
28973
|
+
} }) })
|
|
28974
|
+
] }) });
|
|
28971
28975
|
function vu() {
|
|
28972
28976
|
return vu = Object.assign ? Object.assign.bind() : function(t) {
|
|
28973
28977
|
for (var e = 1; e < arguments.length; e++) {
|
|
@@ -29765,7 +29769,7 @@ const G8 = [
|
|
|
29765
29769
|
], wl = ({
|
|
29766
29770
|
onClose: t
|
|
29767
29771
|
}) => {
|
|
29768
|
-
const [e] = Se(), r = X(null), [o, n] = A(!0), [s, a] = A("#000000"), [c, l] = A("medium"), [d, u] = A(null), [h, p] = A(""), { apiKey: f } =
|
|
29772
|
+
const [e] = Se(), r = X(null), [o, n] = A(!0), [s, a] = A("#000000"), [c, l] = A("medium"), [d, u] = A(null), [h, p] = A(""), { apiKey: f } = Gt(), b = ld.find((k) => k.id === c) ?? ld[1], { uploadFileToS3: g } = jh(f || void 0);
|
|
29769
29773
|
j(() => {
|
|
29770
29774
|
(async () => {
|
|
29771
29775
|
if (f) {
|
|
@@ -29818,7 +29822,8 @@ const G8 = [
|
|
|
29818
29822
|
}, E = (k) => {
|
|
29819
29823
|
a(k);
|
|
29820
29824
|
};
|
|
29821
|
-
return /* @__PURE__ */ i(
|
|
29825
|
+
return /* @__PURE__ */ i($t, { open: !0, modal: !0, onOpenChange: () => t(), children: /* @__PURE__ */ y(Lt, { className: "!cteditor-max-w-3xl [&_.closeDialog]:cteditor-hidden", "aria-describedby": void 0, children: [
|
|
29826
|
+
/* @__PURE__ */ i(Ht, { className: "cteditor-sr-only", children: /* @__PURE__ */ i(Rt, { children: "Draw your signature" }) }),
|
|
29822
29827
|
/* @__PURE__ */ y("div", { className: "cteditor-space-y-4", children: [
|
|
29823
29828
|
/* @__PURE__ */ y("div", { className: "cteditor-flex cteditor-justify-between cteditor-items-center", children: [
|
|
29824
29829
|
/* @__PURE__ */ i("div", { className: "cteditor-text-lg cteditor-font-normal", children: "Draw your signature" }),
|
|
@@ -30339,7 +30344,7 @@ const e7 = [
|
|
|
30339
30344
|
redo: !0
|
|
30340
30345
|
}), [fe, Me] = A(!1), [De, Ce] = A(
|
|
30341
30346
|
null
|
|
30342
|
-
), [ke, xe] = A(!1), [ve, He] = A(!1), [se, he] = A(!1), [Y, U] = A(!1), [q, G] = A(0), J = X(null), ie = X(null), [ee, me] = A(/* @__PURE__ */ new Set()), [Le, Oe] = A(!1), [Je, We] = A(!1), [pt,
|
|
30347
|
+
), [ke, xe] = A(!1), [ve, He] = A(!1), [se, he] = A(!1), [Y, U] = A(!1), [q, G] = A(0), J = X(null), ie = X(null), [ee, me] = A(/* @__PURE__ */ new Set()), [Le, Oe] = A(!1), [Je, We] = A(!1), [pt, It] = A(!1), [_t, Zo] = A(!1), [Nn, eo] = A(!1), [Yo, to] = A(!1), [zr, ro] = A(!1), [oo, no] = A(!1), [ir, vt] = A(!1), [Us, Vs] = A(""), [io, En] = A(""), qs = X(null), Sn = t7(), { hasFormat: ki, isEditorEmpty: _i, blockType: Tn, clearFormatting: Ni } = XS(), { clearEditorContent: Ks } = YS(), { toolbarState: zt, updateToolbarState: ft } = Cn(), Xo = {
|
|
30343
30348
|
blockFormat: {
|
|
30344
30349
|
label: "Block Format",
|
|
30345
30350
|
keywords: ["paragraph", "heading", "quote", "code", "block"]
|
|
@@ -30441,11 +30446,11 @@ const e7 = [
|
|
|
30441
30446
|
return !0;
|
|
30442
30447
|
const nt = io.toLowerCase();
|
|
30443
30448
|
return Ee.label.toLowerCase().includes(nt) || Ee.keywords.some(
|
|
30444
|
-
(
|
|
30449
|
+
(Bt) => Bt.toLowerCase().includes(nt)
|
|
30445
30450
|
);
|
|
30446
30451
|
}, je = Array.from(ee).some(
|
|
30447
30452
|
(ae) => wt(ae)
|
|
30448
|
-
), { isHtmlView: bt, setIsHtmlView:
|
|
30453
|
+
), { isHtmlView: bt, setIsHtmlView: Mt, htmlContent: wo, setHtmlContent: Co } = vn(), { apiKey: gt, editorConfig: fr, planConfig: Ei, isByokPlan: An, byokApiKeys: Br } = Gt(), Fe = Ei?.toolbarOptions, Si = Br && (Br.hasOpenaiKey || Br.hasAnthropicKey || Br.hasGrokKey || Br.hasGeminiKey), Cl = g === !0 && (Fe?.enableAIChat ?? !0) && (!An || !!Si), Ti = An && !Si, Gs = $ && (Fe?.enableSpeechToText ?? !0) && (!An || !!Br?.hasAssemblyaiKey), Pn = An && !Br?.hasAssemblyaiKey, {
|
|
30449
30454
|
shouldAutoShowFeedback: Jo,
|
|
30450
30455
|
markFeedbackSubmitted: dv,
|
|
30451
30456
|
markFeedbackDismissed: uv,
|
|
@@ -30461,9 +30466,9 @@ const e7 = [
|
|
|
30461
30466
|
const ae = () => {
|
|
30462
30467
|
if (!J.current || !ie.current)
|
|
30463
30468
|
return;
|
|
30464
|
-
const
|
|
30469
|
+
const Bt = ie.current.getBoundingClientRect(), sr = ie.current.querySelectorAll("[data-toolbar-item]"), Nr = /* @__PURE__ */ new Set();
|
|
30465
30470
|
sr.forEach((Ln) => {
|
|
30466
|
-
if (Ln.getBoundingClientRect().right >
|
|
30471
|
+
if (Ln.getBoundingClientRect().right > Bt.right) {
|
|
30467
30472
|
const Ys = Ln.getAttribute("data-toolbar-item");
|
|
30468
30473
|
Ys && Nr.add(Ys);
|
|
30469
30474
|
}
|
|
@@ -30555,13 +30560,13 @@ const e7 = [
|
|
|
30555
30560
|
return ko !== null && Po(ko);
|
|
30556
30561
|
});
|
|
30557
30562
|
nt === null && (nt = Ee.getTopLevelElementOrThrow());
|
|
30558
|
-
const
|
|
30563
|
+
const Bt = nt.getKey(), sr = F.getElementByKey(Bt);
|
|
30559
30564
|
ft("isRTL", lw(ae));
|
|
30560
|
-
const Nr = uo(ae), Ln = Nr.getParent(), ap =
|
|
30565
|
+
const Nr = uo(ae), Ln = Nr.getParent(), ap = Ft(Ln) || Ft(Nr);
|
|
30561
30566
|
ft("isLink", ap);
|
|
30562
30567
|
const Ys = Tt(Nr, dr);
|
|
30563
30568
|
if (dr(Ys) ? ft("rootType", "table") : ft("rootType", "root"), sr !== null)
|
|
30564
|
-
if (Ce(
|
|
30569
|
+
if (Ce(Bt), vc(nt)) {
|
|
30565
30570
|
const mr = Su(
|
|
30566
30571
|
Ee,
|
|
30567
30572
|
wc
|
|
@@ -30596,7 +30601,7 @@ const e7 = [
|
|
|
30596
30601
|
qr(ae, "font-family", "Inter")
|
|
30597
30602
|
);
|
|
30598
30603
|
let Nl;
|
|
30599
|
-
|
|
30604
|
+
Ft(Ln) && (Nl = Tt(
|
|
30600
30605
|
Nr,
|
|
30601
30606
|
(mr) => Xt(mr) && !mr.isInline()
|
|
30602
30607
|
)), ft(
|
|
@@ -30632,8 +30637,8 @@ const e7 = [
|
|
|
30632
30637
|
if (le(ae)) {
|
|
30633
30638
|
let Ee = !1;
|
|
30634
30639
|
ae.getNodes().forEach((nt) => {
|
|
30635
|
-
const
|
|
30636
|
-
|
|
30640
|
+
const Bt = nt.getParent();
|
|
30641
|
+
Bt && Bt.getType() === "link" && (Ee = !0);
|
|
30637
30642
|
}), Ee ? (Me(!1), I.dispatchCommand(Rr, null)) : !ae.isCollapsed() ? (I.dispatchCommand(
|
|
30638
30643
|
Rr,
|
|
30639
30644
|
Hn("https://")
|
|
@@ -30655,37 +30660,37 @@ const e7 = [
|
|
|
30655
30660
|
}, [I]), ep = W(() => {
|
|
30656
30661
|
I.dispatchCommand(vs, void 0);
|
|
30657
30662
|
}, [I]), tp = W(() => {
|
|
30658
|
-
|
|
30663
|
+
Mt((ae) => {
|
|
30659
30664
|
const Ee = !ae;
|
|
30660
30665
|
return Ee && I.update(() => {
|
|
30661
30666
|
const nt = es(I, null);
|
|
30662
30667
|
Co(nt);
|
|
30663
30668
|
}), Ee;
|
|
30664
30669
|
});
|
|
30665
|
-
}, [I,
|
|
30670
|
+
}, [I, Mt, Co]), rp = W(() => {
|
|
30666
30671
|
const ae = hl(F);
|
|
30667
30672
|
Vs(ae), vt(!0);
|
|
30668
30673
|
}, [F]), op = W(() => {
|
|
30669
30674
|
ft(
|
|
30670
30675
|
"isAutocompleteEnabled",
|
|
30671
|
-
|
|
30676
|
+
!zt.isAutocompleteEnabled
|
|
30672
30677
|
);
|
|
30673
|
-
}, [ft,
|
|
30678
|
+
}, [ft, zt.isAutocompleteEnabled]), gv = W(() => {
|
|
30674
30679
|
I.update(() => {
|
|
30675
30680
|
let ae = ne();
|
|
30676
30681
|
if (le(ae)) {
|
|
30677
30682
|
if (ae.isCollapsed())
|
|
30678
30683
|
fo(ae, () => tr());
|
|
30679
30684
|
else {
|
|
30680
|
-
const nt = ae.getTextContent(),
|
|
30681
|
-
ae.insertNodes([
|
|
30685
|
+
const nt = ae.getTextContent(), Bt = tr();
|
|
30686
|
+
ae.insertNodes([Bt]), ae = ne(), le(ae) && ae.insertRawText(nt);
|
|
30682
30687
|
}
|
|
30683
30688
|
const Ee = ne();
|
|
30684
30689
|
if (le(Ee)) {
|
|
30685
|
-
const nt = Ee.anchor.getNode(),
|
|
30686
|
-
if (
|
|
30690
|
+
const nt = Ee.anchor.getNode(), Bt = Tt(nt, or);
|
|
30691
|
+
if (Bt) {
|
|
30687
30692
|
const sr = ze();
|
|
30688
|
-
|
|
30693
|
+
Bt.insertAfter(sr);
|
|
30689
30694
|
}
|
|
30690
30695
|
}
|
|
30691
30696
|
}
|
|
@@ -30701,7 +30706,7 @@ const e7 = [
|
|
|
30701
30706
|
We(!1);
|
|
30702
30707
|
}, []);
|
|
30703
30708
|
const sp = W(() => {
|
|
30704
|
-
|
|
30709
|
+
It(!0);
|
|
30705
30710
|
}, []), bv = W(
|
|
30706
30711
|
async (ae) => {
|
|
30707
30712
|
const Ee = await vb(ae, gt);
|
|
@@ -30719,8 +30724,8 @@ const e7 = [
|
|
|
30719
30724
|
const ae = be.loading("Preparing PDF export...", {
|
|
30720
30725
|
description: "Initializing export process"
|
|
30721
30726
|
}), Ee = setInterval(() => {
|
|
30722
|
-
G((
|
|
30723
|
-
const sr =
|
|
30727
|
+
G((Bt) => {
|
|
30728
|
+
const sr = Bt + 15;
|
|
30724
30729
|
return sr >= 90 ? (clearInterval(Ee), 90) : (sr > 30 && sr <= 60 ? be.loading("Rendering content...", {
|
|
30725
30730
|
id: ae,
|
|
30726
30731
|
description: "Converting editor content to PDF format"
|
|
@@ -30918,11 +30923,11 @@ const e7 = [
|
|
|
30918
30923
|
variant: "ghost",
|
|
30919
30924
|
size: "icon-sm",
|
|
30920
30925
|
onClick: () => F.dispatchCommand(
|
|
30921
|
-
|
|
30926
|
+
Ot,
|
|
30922
30927
|
"bold"
|
|
30923
30928
|
),
|
|
30924
30929
|
className: pe(
|
|
30925
|
-
|
|
30930
|
+
zt.isBold && "cteditor-bg-foreground/10"
|
|
30926
30931
|
),
|
|
30927
30932
|
children: /* @__PURE__ */ i(bh, {})
|
|
30928
30933
|
}
|
|
@@ -30964,7 +30969,7 @@ const e7 = [
|
|
|
30964
30969
|
children: /* @__PURE__ */ i(
|
|
30965
30970
|
Rf,
|
|
30966
30971
|
{
|
|
30967
|
-
isActive:
|
|
30972
|
+
isActive: zt.rootType === "table"
|
|
30968
30973
|
}
|
|
30969
30974
|
)
|
|
30970
30975
|
}
|
|
@@ -31011,9 +31016,9 @@ const e7 = [
|
|
|
31011
31016
|
{
|
|
31012
31017
|
onTextColorChange: Zh,
|
|
31013
31018
|
onBackgroundColorChange: Yh,
|
|
31014
|
-
currentTextColor:
|
|
31015
|
-
currentBgColor:
|
|
31016
|
-
isHighlightActive:
|
|
31019
|
+
currentTextColor: zt.fontColor,
|
|
31020
|
+
currentBgColor: zt.bgColor,
|
|
31021
|
+
isHighlightActive: zt.isHighlight,
|
|
31017
31022
|
onOpenChange: no,
|
|
31018
31023
|
isActive: oo,
|
|
31019
31024
|
showTextColorTab: l,
|
|
@@ -31078,13 +31083,13 @@ const e7 = [
|
|
|
31078
31083
|
disabled: !t,
|
|
31079
31084
|
className: pe(
|
|
31080
31085
|
Sn.toolbarButton,
|
|
31081
|
-
|
|
31086
|
+
zt.isAutocompleteEnabled && "",
|
|
31082
31087
|
""
|
|
31083
31088
|
),
|
|
31084
31089
|
children: /* @__PURE__ */ i(qd, {})
|
|
31085
31090
|
}
|
|
31086
31091
|
) }),
|
|
31087
|
-
/* @__PURE__ */ i(Ve, { children: /* @__PURE__ */ i("p", { children:
|
|
31092
|
+
/* @__PURE__ */ i(Ve, { children: /* @__PURE__ */ i("p", { children: zt.isAutocompleteEnabled ? "Disable Autocorrection" : "Enable Autocorrection" }) })
|
|
31088
31093
|
] }) }) }),
|
|
31089
31094
|
/* @__PURE__ */ i(Zt, { orientation: "vertical", className: "!cteditor-h-7" }),
|
|
31090
31095
|
/* @__PURE__ */ i($e, { isEnabled: fr?.htmlViewOption ?? !1, planAllows: Ei?.htmlViewOption ?? !0, featureName: "HTML View", children: /* @__PURE__ */ i(tt, { delayDuration: 200, children: /* @__PURE__ */ y(Ge, { children: [
|
|
@@ -31468,7 +31473,7 @@ const e7 = [
|
|
|
31468
31473
|
/* @__PURE__ */ y("div", { className: "cteditor-relative", children: [
|
|
31469
31474
|
/* @__PURE__ */ i(Ha, { className: "cteditor-absolute cteditor-left-2.5 cteditor-top-1/2 cteditor-transform -cteditor-translate-y-1/2 cteditor-size-3.5 cteditor-text-muted-foreground/60" }),
|
|
31470
31475
|
/* @__PURE__ */ i(
|
|
31471
|
-
|
|
31476
|
+
jt,
|
|
31472
31477
|
{
|
|
31473
31478
|
ref: qs,
|
|
31474
31479
|
type: "text",
|
|
@@ -31651,7 +31656,7 @@ const e7 = [
|
|
|
31651
31656
|
/* @__PURE__ */ i(
|
|
31652
31657
|
Rf,
|
|
31653
31658
|
{
|
|
31654
|
-
isActive:
|
|
31659
|
+
isActive: zt.rootType === "table"
|
|
31655
31660
|
}
|
|
31656
31661
|
),
|
|
31657
31662
|
"Table"
|
|
@@ -31705,7 +31710,7 @@ const e7 = [
|
|
|
31705
31710
|
Ue,
|
|
31706
31711
|
{
|
|
31707
31712
|
onClick: () => F.dispatchCommand(
|
|
31708
|
-
|
|
31713
|
+
Ot,
|
|
31709
31714
|
"strikethrough"
|
|
31710
31715
|
),
|
|
31711
31716
|
children: [
|
|
@@ -31739,9 +31744,9 @@ const e7 = [
|
|
|
31739
31744
|
onBackgroundColorChange: (ae) => {
|
|
31740
31745
|
Yh(ae), He(!0);
|
|
31741
31746
|
},
|
|
31742
|
-
currentTextColor:
|
|
31743
|
-
currentBgColor:
|
|
31744
|
-
isHighlightActive:
|
|
31747
|
+
currentTextColor: zt.fontColor,
|
|
31748
|
+
currentBgColor: zt.bgColor,
|
|
31749
|
+
isHighlightActive: zt.isHighlight,
|
|
31745
31750
|
onOpenChange: no,
|
|
31746
31751
|
isActive: oo,
|
|
31747
31752
|
showTextColorTab: l,
|
|
@@ -31847,7 +31852,7 @@ const e7 = [
|
|
|
31847
31852
|
disabled: !t,
|
|
31848
31853
|
children: [
|
|
31849
31854
|
/* @__PURE__ */ i(qd, {}),
|
|
31850
|
-
|
|
31855
|
+
zt.isAutocompleteEnabled ? "Disable Autocorrection" : "Enable Autocorrection"
|
|
31851
31856
|
]
|
|
31852
31857
|
}
|
|
31853
31858
|
) })
|
|
@@ -31880,7 +31885,7 @@ const e7 = [
|
|
|
31880
31885
|
vx,
|
|
31881
31886
|
{
|
|
31882
31887
|
open: pt,
|
|
31883
|
-
onOpenChange:
|
|
31888
|
+
onOpenChange: It
|
|
31884
31889
|
}
|
|
31885
31890
|
),
|
|
31886
31891
|
_t && /* @__PURE__ */ i(
|
|
@@ -32399,8 +32404,8 @@ function x7({
|
|
|
32399
32404
|
if (me && Le) {
|
|
32400
32405
|
const Oe = it(me.key), Je = it(Le.key);
|
|
32401
32406
|
if (dt(Oe) && dt(Je)) {
|
|
32402
|
-
const We = Au(), pt = ie - me.start,
|
|
32403
|
-
We.anchor.set(Oe.getKey(), pt, "text"), We.focus.set(Je.getKey(),
|
|
32407
|
+
const We = Au(), pt = ie - me.start, It = ee - Le.start;
|
|
32408
|
+
We.anchor.set(Oe.getKey(), pt, "text"), We.focus.set(Je.getKey(), It, "text"), yo(We), We.insertText(se);
|
|
32404
32409
|
}
|
|
32405
32410
|
}
|
|
32406
32411
|
}), L(
|
|
@@ -32633,7 +32638,7 @@ function x7({
|
|
|
32633
32638
|
Di.offsetY,
|
|
32634
32639
|
Di.padding
|
|
32635
32640
|
);
|
|
32636
|
-
return
|
|
32641
|
+
return qt(
|
|
32637
32642
|
/* @__PURE__ */ i(
|
|
32638
32643
|
"div",
|
|
32639
32644
|
{
|
|
@@ -32685,7 +32690,7 @@ function x7({
|
|
|
32685
32690
|
{
|
|
32686
32691
|
onClick: () => I(null),
|
|
32687
32692
|
className: "cteditor-text-gray-400 hover:cteditor-text-gray-600 cteditor-flex-shrink-0 cteditor-p-1 cteditor-absolute cteditor-top-1 cteditor-right-1",
|
|
32688
|
-
children: /* @__PURE__ */ i(
|
|
32693
|
+
children: /* @__PURE__ */ i(Kt, { className: "cteditor-w-4 cteditor-h-4" })
|
|
32689
32694
|
}
|
|
32690
32695
|
)
|
|
32691
32696
|
] }),
|
|
@@ -32806,7 +32811,7 @@ function x7({
|
|
|
32806
32811
|
),
|
|
32807
32812
|
document.body
|
|
32808
32813
|
);
|
|
32809
|
-
}, He = () => !$ || !S || P.length === 0 ? null :
|
|
32814
|
+
}, He = () => !$ || !S || P.length === 0 ? null : qt(
|
|
32810
32815
|
/* @__PURE__ */ i(
|
|
32811
32816
|
ss,
|
|
32812
32817
|
{
|
|
@@ -32890,8 +32895,8 @@ const v7 = () => {
|
|
|
32890
32895
|
return;
|
|
32891
32896
|
const p = h.current;
|
|
32892
32897
|
p.style.height = "auto", p.style.height = `${p.scrollHeight}px`;
|
|
32893
|
-
}, [n]), /* @__PURE__ */ i(
|
|
32894
|
-
/* @__PURE__ */ i(
|
|
32898
|
+
}, [n]), /* @__PURE__ */ i($t, { open: t, onOpenChange: e, children: /* @__PURE__ */ y(Lt, { className: "sm:cteditor-max-w-xl", children: [
|
|
32899
|
+
/* @__PURE__ */ i(Ht, { children: /* @__PURE__ */ i(Rt, { className: "cteditor-flex cteditor-items-center cteditor-gap-3", children: "Add Comment" }) }),
|
|
32895
32900
|
/* @__PURE__ */ y("div", { className: "cteditor-space-y-4", children: [
|
|
32896
32901
|
o && /* @__PURE__ */ i(ss, { className: "cteditor-bg-primary/5 cteditor-border-primary/20 cteditor-rounded-md pt-6", children: /* @__PURE__ */ i(as, { className: "md:cteditor-p-2 cteditor-p-2 cteditor-px-4 md:cteditor-pt-3 cteditor-pt-2", children: /* @__PURE__ */ y("div", { className: "cteditor-space-y-1", children: [
|
|
32897
32902
|
/* @__PURE__ */ i("p", { className: "cteditor-text-sm cteditor-font-medium", children: "Selected text:" }),
|
|
@@ -33032,7 +33037,7 @@ const v7 = () => {
|
|
|
33032
33037
|
o.onload = () => e(o.result), o.onerror = r, o.readAsDataURL(t);
|
|
33033
33038
|
});
|
|
33034
33039
|
function E7() {
|
|
33035
|
-
const [t] = Se(), e = X(/* @__PURE__ */ new Set()), { apiKey: r, editorConfig: o } =
|
|
33040
|
+
const [t] = Se(), e = X(/* @__PURE__ */ new Set()), { apiKey: r, editorConfig: o } = Gt(), n = o?.toolbarOptions?.enableImageUpload ?? !0, s = o?.toolbarOptions?.enableFileAttachments ?? !0, a = o?.toolbarOptions?.enableEmbeds ?? !0;
|
|
33036
33041
|
return j(() => {
|
|
33037
33042
|
const c = setInterval(() => {
|
|
33038
33043
|
e.current.clear();
|
|
@@ -33623,7 +33628,7 @@ function T7(t, e) {
|
|
|
33623
33628
|
const d = W(() => {
|
|
33624
33629
|
o(null);
|
|
33625
33630
|
}, []);
|
|
33626
|
-
return r ?
|
|
33631
|
+
return r ? qt(
|
|
33627
33632
|
/* @__PURE__ */ i(
|
|
33628
33633
|
S7,
|
|
33629
33634
|
{
|
|
@@ -33797,11 +33802,11 @@ function M7({
|
|
|
33797
33802
|
const a = X(null), c = X(null), [l, d] = A(""), [u, h] = A(""), [p, f] = A("https://"), [b, g] = A(!1), [m, x] = A(null), v = W(() => {
|
|
33798
33803
|
const k = ne();
|
|
33799
33804
|
if (le(k)) {
|
|
33800
|
-
const M = uo(k), H = Tt(M,
|
|
33805
|
+
const M = uo(k), H = Tt(M, Ft);
|
|
33801
33806
|
if (H) {
|
|
33802
33807
|
const $ = H.getURL();
|
|
33803
33808
|
d($), h(H.getTextContent()), ($ === "https://" || n) && f($);
|
|
33804
|
-
} else if (
|
|
33809
|
+
} else if (Ft(M)) {
|
|
33805
33810
|
const $ = M.getURL();
|
|
33806
33811
|
d($), h(M.getTextContent()), ($ === "https://" || n) && f($);
|
|
33807
33812
|
} else
|
|
@@ -33843,7 +33848,7 @@ function M7({
|
|
|
33843
33848
|
() => e ? (t.getEditorState().read(() => {
|
|
33844
33849
|
const k = ne();
|
|
33845
33850
|
if (le(k)) {
|
|
33846
|
-
const N = uo(k), T = Tt(N,
|
|
33851
|
+
const N = uo(k), T = Tt(N, Ft) || (Ft(N) ? N : null);
|
|
33847
33852
|
T && T.getURL() === "https://" && t.dispatchCommand(Rr, null);
|
|
33848
33853
|
}
|
|
33849
33854
|
}), r(!1), g(!1), s(!1), !0) : !1,
|
|
@@ -33860,8 +33865,8 @@ function M7({
|
|
|
33860
33865
|
m !== null && p !== "" && p !== "https://" && (t.update(() => {
|
|
33861
33866
|
const k = ne();
|
|
33862
33867
|
if (le(k)) {
|
|
33863
|
-
const N = uo(k), S = Tt(N,
|
|
33864
|
-
S ? S.setURL(Hn(p)) :
|
|
33868
|
+
const N = uo(k), S = Tt(N, Ft);
|
|
33869
|
+
S ? S.setURL(Hn(p)) : Ft(N) ? N.setURL(Hn(p)) : t.dispatchCommand(
|
|
33865
33870
|
Rr,
|
|
33866
33871
|
Hn(p)
|
|
33867
33872
|
);
|
|
@@ -33919,7 +33924,7 @@ function M7({
|
|
|
33919
33924
|
l === "https://" && t.dispatchCommand(Rr, null), s(!1), g(!1), f("https://");
|
|
33920
33925
|
},
|
|
33921
33926
|
title: "Cancel",
|
|
33922
|
-
children: /* @__PURE__ */ i(
|
|
33927
|
+
children: /* @__PURE__ */ i(Kt, { className: "cteditor-size-4" })
|
|
33923
33928
|
}
|
|
33924
33929
|
)
|
|
33925
33930
|
] })
|
|
@@ -34001,7 +34006,7 @@ function D7(t, e, r, o) {
|
|
|
34001
34006
|
function l() {
|
|
34002
34007
|
const d = ne();
|
|
34003
34008
|
if (le(d)) {
|
|
34004
|
-
const u = uo(d), h = Tt(u,
|
|
34009
|
+
const u = uo(d), h = Tt(u, Ft), p = Tt(
|
|
34005
34010
|
u,
|
|
34006
34011
|
Cd
|
|
34007
34012
|
);
|
|
@@ -34010,7 +34015,7 @@ function D7(t, e, r, o) {
|
|
|
34010
34015
|
return;
|
|
34011
34016
|
}
|
|
34012
34017
|
const f = d.getNodes().filter((b) => !pa(b)).find((b) => {
|
|
34013
|
-
const g = Tt(b,
|
|
34018
|
+
const g = Tt(b, Ft), m = Tt(b, Cd);
|
|
34014
34019
|
return h && !h.is(g) || g && !g.is(h) || p && !p.is(m) || m && (!m.is(p) || m.getIsUnlinked());
|
|
34015
34020
|
});
|
|
34016
34021
|
c(!f);
|
|
@@ -34032,8 +34037,8 @@ function D7(t, e, r, o) {
|
|
|
34032
34037
|
(d) => {
|
|
34033
34038
|
const u = ne();
|
|
34034
34039
|
if (le(u)) {
|
|
34035
|
-
const h = uo(u), p = Tt(h,
|
|
34036
|
-
if (
|
|
34040
|
+
const h = uo(u), p = Tt(h, Ft);
|
|
34041
|
+
if (Ft(p) && (d.metaKey || d.ctrlKey))
|
|
34037
34042
|
return window.open(p.getURL(), "_blank"), !0;
|
|
34038
34043
|
}
|
|
34039
34044
|
return !1;
|
|
@@ -34041,7 +34046,7 @@ function D7(t, e, r, o) {
|
|
|
34041
34046
|
kt
|
|
34042
34047
|
)
|
|
34043
34048
|
);
|
|
34044
|
-
}, [t]),
|
|
34049
|
+
}, [t]), qt(
|
|
34045
34050
|
/* @__PURE__ */ i(
|
|
34046
34051
|
M7,
|
|
34047
34052
|
{
|
|
@@ -34173,7 +34178,7 @@ const B7 = [
|
|
|
34173
34178
|
onClick: b,
|
|
34174
34179
|
title: f,
|
|
34175
34180
|
children: [
|
|
34176
|
-
g && /* @__PURE__ */ i(
|
|
34181
|
+
g && /* @__PURE__ */ i(Kt, { className: "!cteditor-size-4 cteditor-text-foreground/50" }),
|
|
34177
34182
|
m
|
|
34178
34183
|
]
|
|
34179
34184
|
}
|
|
@@ -34305,9 +34310,9 @@ const B7 = [
|
|
|
34305
34310
|
}, v = () => {
|
|
34306
34311
|
b && l && b(l), m();
|
|
34307
34312
|
};
|
|
34308
|
-
return /* @__PURE__ */ i(
|
|
34309
|
-
/* @__PURE__ */ y(
|
|
34310
|
-
/* @__PURE__ */ y(
|
|
34313
|
+
return /* @__PURE__ */ i($t, { open: r, onOpenChange: m, children: /* @__PURE__ */ y(Lt, { className: "sm:cteditor-max-w-[500px] cteditor-max-h-[650px]", children: [
|
|
34314
|
+
/* @__PURE__ */ y(Ht, { children: [
|
|
34315
|
+
/* @__PURE__ */ y(Rt, { className: "cteditor-flex cteditor-items-center cteditor-gap-2", children: [
|
|
34311
34316
|
/* @__PURE__ */ i(sn, { className: "cteditor-size-5" }),
|
|
34312
34317
|
"Enhance Text"
|
|
34313
34318
|
] }),
|
|
@@ -34513,11 +34518,11 @@ function V7({
|
|
|
34513
34518
|
highlightColor: m,
|
|
34514
34519
|
features: x
|
|
34515
34520
|
}) {
|
|
34516
|
-
const v = X(null), { isHtmlView: w, setIsHtmlView: E, setHtmlContent: _ } = vn(), { onFontColorSelect: k } = _b(), { planConfig: N, isByokPlan: S, byokApiKeys: T } =
|
|
34521
|
+
const v = X(null), { isHtmlView: w, setIsHtmlView: E, setHtmlContent: _ } = vn(), { onFontColorSelect: k } = _b(), { planConfig: N, isByokPlan: S, byokApiKeys: T } = Gt(), P = N?.floatingMenuOptions, O = T && (T.hasOpenaiKey || T.hasAnthropicKey || T.hasGrokKey || T.hasGeminiKey), M = (x?.aiChat ?? !1) && (P?.aiChat ?? !0) && (!S || !!O), H = S && !O;
|
|
34517
34522
|
W(() => {
|
|
34518
34523
|
t.update(() => {
|
|
34519
34524
|
const B = ne();
|
|
34520
|
-
le(B) && (f ? (t.dispatchCommand(
|
|
34525
|
+
le(B) && (f ? (t.dispatchCommand(Ot, "highlight"), Mr(B, { "background-color": "transparent" })) : (t.dispatchCommand(Ot, "highlight"), Mr(B, { "background-color": "#ffeb3b" })));
|
|
34521
34526
|
});
|
|
34522
34527
|
}, [t, f]);
|
|
34523
34528
|
const $ = W(() => {
|
|
@@ -34870,7 +34875,7 @@ function V7({
|
|
|
34870
34875
|
{
|
|
34871
34876
|
type: "button",
|
|
34872
34877
|
onClick: () => {
|
|
34873
|
-
t.dispatchCommand(
|
|
34878
|
+
t.dispatchCommand(Ot, "bold");
|
|
34874
34879
|
},
|
|
34875
34880
|
className: R + (o ? "cteditor-bg-foreground/20" : ""),
|
|
34876
34881
|
"aria-label": "Format text as bold",
|
|
@@ -34885,7 +34890,7 @@ function V7({
|
|
|
34885
34890
|
{
|
|
34886
34891
|
type: "button",
|
|
34887
34892
|
onClick: () => {
|
|
34888
|
-
t.dispatchCommand(
|
|
34893
|
+
t.dispatchCommand(Ot, "italic");
|
|
34889
34894
|
},
|
|
34890
34895
|
className: R + (n ? "cteditor-bg-foreground/20" : ""),
|
|
34891
34896
|
"aria-label": "Format text as italics",
|
|
@@ -34900,7 +34905,7 @@ function V7({
|
|
|
34900
34905
|
{
|
|
34901
34906
|
type: "button",
|
|
34902
34907
|
onClick: () => {
|
|
34903
|
-
t.dispatchCommand(
|
|
34908
|
+
t.dispatchCommand(Ot, "underline");
|
|
34904
34909
|
},
|
|
34905
34910
|
className: R + (s ? "cteditor-bg-foreground/20" : ""),
|
|
34906
34911
|
"aria-label": "Format text to underlined",
|
|
@@ -34915,7 +34920,7 @@ function V7({
|
|
|
34915
34920
|
{
|
|
34916
34921
|
type: "button",
|
|
34917
34922
|
onClick: () => {
|
|
34918
|
-
t.dispatchCommand(
|
|
34923
|
+
t.dispatchCommand(Ot, "strikethrough");
|
|
34919
34924
|
},
|
|
34920
34925
|
className: R + (u ? "cteditor-bg-foreground/20" : ""),
|
|
34921
34926
|
"aria-label": "Format text with strikethrough",
|
|
@@ -35002,9 +35007,9 @@ function q7(t, e, r, o) {
|
|
|
35002
35007
|
);
|
|
35003
35008
|
Q(ce && ce !== "transparent" ? ce : null);
|
|
35004
35009
|
const ue = de.getParent();
|
|
35005
|
-
|
|
35010
|
+
Ft(ue) || Ft(de) ? c(!0) : c(!1);
|
|
35006
35011
|
let V = null;
|
|
35007
|
-
|
|
35012
|
+
Ft(ue) && (V = Tt(
|
|
35008
35013
|
de,
|
|
35009
35014
|
(F) => Xt(F) && !F.isInline()
|
|
35010
35015
|
));
|
|
@@ -35026,7 +35031,7 @@ function q7(t, e, r, o) {
|
|
|
35026
35031
|
t.registerRootListener(() => {
|
|
35027
35032
|
t.getRootElement() === null && s(!1);
|
|
35028
35033
|
})
|
|
35029
|
-
), [t, R]), n ?
|
|
35034
|
+
), [t, R]), n ? qt(
|
|
35030
35035
|
/* @__PURE__ */ i(
|
|
35031
35036
|
V7,
|
|
35032
35037
|
{
|
|
@@ -35200,7 +35205,7 @@ function J7({ apiKey: t }) {
|
|
|
35200
35205
|
return n.addEventListener("mouseover", l), n.addEventListener("mouseout", d), document.body.addEventListener("mouseover", u), document.body.addEventListener("mouseout", h), () => {
|
|
35201
35206
|
s && clearTimeout(s), a && clearTimeout(a), n.removeEventListener("mouseover", l), n.removeEventListener("mouseout", d), document.body.removeEventListener("mouseover", u), document.body.removeEventListener("mouseout", h);
|
|
35202
35207
|
};
|
|
35203
|
-
}, [e]), r ?
|
|
35208
|
+
}, [e]), r ? qt(
|
|
35204
35209
|
/* @__PURE__ */ i(
|
|
35205
35210
|
Q7,
|
|
35206
35211
|
{
|
|
@@ -35861,7 +35866,7 @@ function yA({
|
|
|
35861
35866
|
}) {
|
|
35862
35867
|
const [e] = Se(), [r, o] = A(null), n = hA(t, r), s = Xm("/", {
|
|
35863
35868
|
minLength: 0
|
|
35864
|
-
}), a =
|
|
35869
|
+
}), a = Vt(
|
|
35865
35870
|
() => n.map(
|
|
35866
35871
|
(d) => new mA(d, /* @__PURE__ */ i("i", { className: "icon user", children: /* @__PURE__ */ i(Xk, { size: 14 }) }))
|
|
35867
35872
|
).slice(0, dA),
|
|
@@ -36322,7 +36327,7 @@ function kA() {
|
|
|
36322
36327
|
), u = W(() => {
|
|
36323
36328
|
a(!1), r(null);
|
|
36324
36329
|
}, []);
|
|
36325
|
-
return !s || !e ? null :
|
|
36330
|
+
return !s || !e ? null : qt(
|
|
36326
36331
|
/* @__PURE__ */ i(
|
|
36327
36332
|
xA,
|
|
36328
36333
|
{
|
|
@@ -36357,7 +36362,7 @@ function NA({
|
|
|
36357
36362
|
onMouseEnter: o,
|
|
36358
36363
|
option: n
|
|
36359
36364
|
}) {
|
|
36360
|
-
const { editorConfig: s } =
|
|
36365
|
+
const { editorConfig: s } = Gt(), a = s?.hideLockedFeatures ?? !1;
|
|
36361
36366
|
if (n.label.startsWith("__label__")) {
|
|
36362
36367
|
const l = n.label.replace("__label__", "");
|
|
36363
36368
|
return /* @__PURE__ */ i("li", { className: "cteditor-px-2 !cteditor-mt-0", children: /* @__PURE__ */ i("span", { className: "cteditor-text-[11px] cteditor-text-muted-foreground cteditor-font-medium cteditor-tracking-wider", children: l }) }, n.key);
|
|
@@ -36410,7 +36415,7 @@ function NA({
|
|
|
36410
36415
|
);
|
|
36411
36416
|
}
|
|
36412
36417
|
function EA() {
|
|
36413
|
-
const [t] = Se(), { toolbarState: e, updateToolbarState: r } = Cn(), { isHtmlView: o, setIsHtmlView: n } = vn(), { apiKey: s, editorConfig: a, planConfig: c } =
|
|
36418
|
+
const [t] = Se(), { toolbarState: e, updateToolbarState: r } = Cn(), { isHtmlView: o, setIsHtmlView: n } = vn(), { apiKey: s, editorConfig: a, planConfig: c } = Gt(), l = c?.toolbarOptions, d = a?.toolbarOptions, u = d?.enableHeadings ?? !0, h = d?.enableLists ?? !0, p = d?.enableBlockquote ?? !0, f = d?.enableCodeFormat ?? !0, b = d?.enableHorizontalLine ?? !0, g = d?.enableImageUpload ?? !0, m = d?.enableImageOptions ?? !0, x = d?.enableFileAttachments ?? !0, v = d?.enableEmbeds ?? !0, w = d?.enableTableOptions ?? !0, E = d?.enableCharts ?? !0, _ = d?.enableSignature ?? !0, k = d?.enableNotePanels ?? !0, N = d?.enableAlignment ?? !0, S = d?.enableTextFormatting ?? !0, T = d?.enableUndoRedo ?? !0, P = d?.enableAIChat ?? !0, O = d?.enablePreview ?? !0, M = d?.enableHtmlCanvas ?? !0, H = d?.enableAutocompleteToggle ?? !0, $ = d?.enableHtmlViewToggle ?? !0, Q = d?.enableTodoList ?? !0, [z, L] = A(null), [R, D] = A(""), B = X(null), K = X(null), [de, ce] = A({ top: 0, left: 0 }), [ue, V] = A(!1), [Z, I] = A(!1), [F, re] = A(null), [te, oe] = A(!1), [fe, Me] = A(!1), [De, Ce] = A(!1), [ke, xe] = A(!1), [ve, He] = A(!1), [se, he] = A(!1), [Y, U] = A(""), q = Xm("/", { minLength: 0 });
|
|
36414
36419
|
j(() => {
|
|
36415
36420
|
const je = t.getRootElement();
|
|
36416
36421
|
if (je) {
|
|
@@ -36434,9 +36439,9 @@ function EA() {
|
|
|
36434
36439
|
Pn + Si > Gs && (Pn = Math.max(8, Gs - Si - 8)), ce((Jo) => Jo.top === Ti && Jo.left === Pn ? Jo : { top: Ti, left: Pn }), ue || V(!0);
|
|
36435
36440
|
}, bt = requestAnimationFrame(je);
|
|
36436
36441
|
window.addEventListener("scroll", je, !0), window.addEventListener("resize", je);
|
|
36437
|
-
const
|
|
36442
|
+
const Mt = t.registerUpdateListener(je);
|
|
36438
36443
|
return () => {
|
|
36439
|
-
cancelAnimationFrame(bt), window.removeEventListener("scroll", je, !0), window.removeEventListener("resize", je),
|
|
36444
|
+
cancelAnimationFrame(bt), window.removeEventListener("scroll", je, !0), window.removeEventListener("resize", je), Mt();
|
|
36440
36445
|
};
|
|
36441
36446
|
}, [Z, F, t]);
|
|
36442
36447
|
const G = W((je) => {
|
|
@@ -36462,19 +36467,19 @@ function EA() {
|
|
|
36462
36467
|
}, [t]), Oe = W((je) => {
|
|
36463
36468
|
t.dispatchCommand(rs, je);
|
|
36464
36469
|
}, [t]), Je = W(() => {
|
|
36465
|
-
oe(!0);
|
|
36470
|
+
setTimeout(() => oe(!0), 0);
|
|
36466
36471
|
}, []), We = W(() => {
|
|
36467
|
-
Me(!0);
|
|
36472
|
+
setTimeout(() => Me(!0), 0);
|
|
36468
36473
|
}, []), pt = W(() => {
|
|
36469
36474
|
const je = window.prompt("Video URL (YouTube, etc.)");
|
|
36470
36475
|
je && t.update(() => {
|
|
36471
36476
|
const bt = ne();
|
|
36472
36477
|
if (le(bt)) {
|
|
36473
|
-
const
|
|
36474
|
-
bt.insertNodes([
|
|
36478
|
+
const Mt = hs(je);
|
|
36479
|
+
bt.insertNodes([Mt]);
|
|
36475
36480
|
}
|
|
36476
36481
|
});
|
|
36477
|
-
}, [t]),
|
|
36482
|
+
}, [t]), It = W(() => {
|
|
36478
36483
|
G(() => {
|
|
36479
36484
|
const je = ne();
|
|
36480
36485
|
le(je) && je.insertNodes([xn()]);
|
|
@@ -36485,8 +36490,8 @@ function EA() {
|
|
|
36485
36490
|
if (le(je)) {
|
|
36486
36491
|
const bt = tr();
|
|
36487
36492
|
je.insertNodes([bt]);
|
|
36488
|
-
const
|
|
36489
|
-
bt.insertAfter(
|
|
36493
|
+
const Mt = ze();
|
|
36494
|
+
bt.insertAfter(Mt);
|
|
36490
36495
|
}
|
|
36491
36496
|
});
|
|
36492
36497
|
}, [G]), Zo = W(() => {
|
|
@@ -36497,7 +36502,7 @@ function EA() {
|
|
|
36497
36502
|
strokeWidth: 1
|
|
36498
36503
|
});
|
|
36499
36504
|
}, [t]), eo = W(() => {
|
|
36500
|
-
Ce(!0);
|
|
36505
|
+
setTimeout(() => Ce(!0), 0);
|
|
36501
36506
|
}, []), Yo = W(() => {
|
|
36502
36507
|
t.dispatchCommand(jn, { type: "info" });
|
|
36503
36508
|
}, [t]), to = W(() => {
|
|
@@ -36509,35 +36514,35 @@ function EA() {
|
|
|
36509
36514
|
}, [t]), oo = W(() => {
|
|
36510
36515
|
t.dispatchCommand(rs, "justify");
|
|
36511
36516
|
}, [t]), no = W(() => {
|
|
36512
|
-
t.dispatchCommand(
|
|
36517
|
+
t.dispatchCommand(Ot, "bold");
|
|
36513
36518
|
}, [t]), ir = W(() => {
|
|
36514
|
-
t.dispatchCommand(
|
|
36519
|
+
t.dispatchCommand(Ot, "italic");
|
|
36515
36520
|
}, [t]), vt = W(() => {
|
|
36516
|
-
t.dispatchCommand(
|
|
36521
|
+
t.dispatchCommand(Ot, "underline");
|
|
36517
36522
|
}, [t]), Us = W(() => {
|
|
36518
|
-
t.dispatchCommand(
|
|
36523
|
+
t.dispatchCommand(Ot, "strikethrough");
|
|
36519
36524
|
}, [t]), Vs = W(() => {
|
|
36520
|
-
t.dispatchCommand(
|
|
36525
|
+
t.dispatchCommand(Ot, "subscript");
|
|
36521
36526
|
}, [t]), io = W(() => {
|
|
36522
|
-
t.dispatchCommand(
|
|
36527
|
+
t.dispatchCommand(Ot, "superscript");
|
|
36523
36528
|
}, [t]), En = W(() => {
|
|
36524
36529
|
t.dispatchCommand(Ra, void 0);
|
|
36525
36530
|
}, [t]), qs = W(() => {
|
|
36526
36531
|
t.dispatchCommand(vd, void 0);
|
|
36527
36532
|
}, [t]), Sn = W(() => {
|
|
36528
|
-
t.dispatchCommand(ei, void 0);
|
|
36533
|
+
setTimeout(() => t.dispatchCommand(ei, void 0), 0);
|
|
36529
36534
|
}, [t]), ki = W(() => {
|
|
36530
|
-
xe(!0);
|
|
36535
|
+
setTimeout(() => xe(!0), 0);
|
|
36531
36536
|
}, []), _i = W(() => {
|
|
36532
|
-
He(!0);
|
|
36537
|
+
setTimeout(() => He(!0), 0);
|
|
36533
36538
|
}, []), Tn = W(
|
|
36534
36539
|
async (je) => {
|
|
36535
36540
|
const bt = await vb(je, s);
|
|
36536
36541
|
bt.success && t.update(() => {
|
|
36537
|
-
const
|
|
36538
|
-
ne() ? Yr([
|
|
36542
|
+
const Mt = sl(bt.html, je);
|
|
36543
|
+
ne() ? Yr([Mt]) : ut().append(Mt);
|
|
36539
36544
|
const Co = ze();
|
|
36540
|
-
|
|
36545
|
+
Mt.insertAfter(Co);
|
|
36541
36546
|
});
|
|
36542
36547
|
},
|
|
36543
36548
|
[t, s]
|
|
@@ -36547,10 +36552,10 @@ function EA() {
|
|
|
36547
36552
|
);
|
|
36548
36553
|
}, [e.isAutocompleteEnabled, r]), Ks = W(() => {
|
|
36549
36554
|
n(!o);
|
|
36550
|
-
}, [o, n]),
|
|
36555
|
+
}, [o, n]), zt = W(() => {
|
|
36551
36556
|
const je = hl(t);
|
|
36552
|
-
U(je), he(!0);
|
|
36553
|
-
}, [t]), ft =
|
|
36557
|
+
U(je), setTimeout(() => he(!0), 0);
|
|
36558
|
+
}, [t]), ft = Vt(() => [
|
|
36554
36559
|
// Block types
|
|
36555
36560
|
new Be("__label__BLOCKS", () => {
|
|
36556
36561
|
}),
|
|
@@ -36561,7 +36566,7 @@ function EA() {
|
|
|
36561
36566
|
new Be("Heading 4", () => ie("h4"), u, "Headings", l?.enableHeadings ?? !0),
|
|
36562
36567
|
new Be("Heading 5", () => ie("h5"), u, "Headings", l?.enableHeadings ?? !0),
|
|
36563
36568
|
new Be("Heading 6", () => ie("h6"), u, "Headings", l?.enableHeadings ?? !0),
|
|
36564
|
-
new Be("Quote",
|
|
36569
|
+
new Be("Quote", It, p, "Blockquote", l?.enableBlockquote ?? !0),
|
|
36565
36570
|
new Be("Code block", _t, f, "Code Format", l?.enableCodeFormat ?? !0),
|
|
36566
36571
|
new Be("Horizontal line", Nn, b, "Horizontal Line", l?.enableHorizontalLine ?? !0),
|
|
36567
36572
|
// Lists
|
|
@@ -36615,13 +36620,13 @@ function EA() {
|
|
|
36615
36620
|
// Tools
|
|
36616
36621
|
new Be("__label__TOOLS", () => {
|
|
36617
36622
|
}),
|
|
36618
|
-
new Be("Preview",
|
|
36623
|
+
new Be("Preview", zt, O, "Preview", l?.enablePreview ?? !0),
|
|
36619
36624
|
new Be("Toggle Autocomplete", Ni, H, "Autocomplete Toggle", l?.enableAutocompleteToggle ?? !0),
|
|
36620
36625
|
new Be("Switch to HTML View", Ks, $, "HTML View", l?.enableHtmlViewToggle ?? !0)
|
|
36621
36626
|
], [
|
|
36622
36627
|
J,
|
|
36623
36628
|
ie,
|
|
36624
|
-
|
|
36629
|
+
It,
|
|
36625
36630
|
_t,
|
|
36626
36631
|
Nn,
|
|
36627
36632
|
ee,
|
|
@@ -36651,7 +36656,7 @@ function EA() {
|
|
|
36651
36656
|
Sn,
|
|
36652
36657
|
Ni,
|
|
36653
36658
|
Ks,
|
|
36654
|
-
|
|
36659
|
+
zt,
|
|
36655
36660
|
// Feature flags
|
|
36656
36661
|
u,
|
|
36657
36662
|
p,
|
|
@@ -36675,17 +36680,17 @@ function EA() {
|
|
|
36675
36680
|
H,
|
|
36676
36681
|
$,
|
|
36677
36682
|
l
|
|
36678
|
-
]), Xo =
|
|
36683
|
+
]), Xo = Vt(() => {
|
|
36679
36684
|
const je = R || z || "";
|
|
36680
36685
|
if (!je)
|
|
36681
36686
|
return ft;
|
|
36682
36687
|
const bt = je.toLowerCase();
|
|
36683
|
-
return ft.filter((
|
|
36688
|
+
return ft.filter((Mt) => Mt.label.toLowerCase().includes(bt));
|
|
36684
36689
|
}, [ft, z, R]), wt = W(
|
|
36685
|
-
(je, bt,
|
|
36690
|
+
(je, bt, Mt) => {
|
|
36686
36691
|
je.enabled && (je.onSelect(), t.update(() => {
|
|
36687
36692
|
bt && bt.remove();
|
|
36688
|
-
}),
|
|
36693
|
+
}), Mt(), I(!1));
|
|
36689
36694
|
},
|
|
36690
36695
|
[t]
|
|
36691
36696
|
);
|
|
@@ -36697,7 +36702,7 @@ function EA() {
|
|
|
36697
36702
|
onSelectOption: wt,
|
|
36698
36703
|
triggerFn: q,
|
|
36699
36704
|
options: Xo,
|
|
36700
|
-
menuRenderFn: (je, { selectedIndex: bt, selectOptionAndCleanUp:
|
|
36705
|
+
menuRenderFn: (je, { selectedIndex: bt, selectOptionAndCleanUp: Mt, setHighlightedIndex: wo }) => {
|
|
36701
36706
|
je.current && !Z ? I(!0) : !je.current && Z && I(!1);
|
|
36702
36707
|
const Co = F || je.current;
|
|
36703
36708
|
return je.current && Co ? ci.createPortal(
|
|
@@ -36737,7 +36742,7 @@ function EA() {
|
|
|
36737
36742
|
{
|
|
36738
36743
|
onClick: () => D(""),
|
|
36739
36744
|
className: "cteditor-absolute cteditor-right-2 cteditor-top-1/2 -cteditor-translate-y-1/2 cteditor-text-muted-foreground hover:cteditor-text-foreground cteditor-transition-colors cteditor-p-0.5 cteditor-rounded hover:cteditor-bg-accent",
|
|
36740
|
-
children: /* @__PURE__ */ i(
|
|
36745
|
+
children: /* @__PURE__ */ i(Kt, {})
|
|
36741
36746
|
}
|
|
36742
36747
|
)
|
|
36743
36748
|
] }) }),
|
|
@@ -36752,7 +36757,7 @@ function EA() {
|
|
|
36752
36757
|
index: fr,
|
|
36753
36758
|
isSelected: bt === fr,
|
|
36754
36759
|
onClick: () => {
|
|
36755
|
-
wo(fr),
|
|
36760
|
+
wo(fr), Mt(gt), D("");
|
|
36756
36761
|
},
|
|
36757
36762
|
onMouseEnter: () => {
|
|
36758
36763
|
wo(fr);
|
|
@@ -36833,14 +36838,14 @@ function SA() {
|
|
|
36833
36838
|
[r]
|
|
36834
36839
|
);
|
|
36835
36840
|
return [t ? /* @__PURE__ */ i(
|
|
36836
|
-
|
|
36841
|
+
$t,
|
|
36837
36842
|
{
|
|
36838
36843
|
open: !!t,
|
|
36839
36844
|
onOpenChange: (s) => {
|
|
36840
36845
|
!s && t.closeOnClickOutside && r();
|
|
36841
36846
|
},
|
|
36842
36847
|
children: /* @__PURE__ */ y(Lt, { className: "sm:max-w-md", children: [
|
|
36843
|
-
/* @__PURE__ */ i(
|
|
36848
|
+
/* @__PURE__ */ i(Ht, { children: /* @__PURE__ */ i(Rt, { children: t.title }) }),
|
|
36844
36849
|
/* @__PURE__ */ i("div", { className: "mt-4", children: t.content })
|
|
36845
36850
|
] })
|
|
36846
36851
|
}
|
|
@@ -37253,7 +37258,7 @@ function OA({
|
|
|
37253
37258
|
try {
|
|
37254
37259
|
const U = on(p), G = Ct(p).getFirstChild();
|
|
37255
37260
|
let J = !1;
|
|
37256
|
-
if (G &&
|
|
37261
|
+
if (G && Dt(G)) {
|
|
37257
37262
|
const ee = G.getFirstChild();
|
|
37258
37263
|
ee && Ye(ee) && (J = (ee.getHeaderStyles() & mt.COLUMN) === mt.COLUMN);
|
|
37259
37264
|
}
|
|
@@ -37279,9 +37284,9 @@ function OA({
|
|
|
37279
37284
|
Y.anchor.getNode()
|
|
37280
37285
|
);
|
|
37281
37286
|
if (q) {
|
|
37282
|
-
const G = Ct(q), J = G.getChildrenSize(), ie = G.getFirstChild(), ee = ie &&
|
|
37287
|
+
const G = Ct(q), J = G.getChildrenSize(), ie = G.getFirstChild(), ee = ie && Dt(ie) ? ie.getChildrenSize() : 0;
|
|
37283
37288
|
let me = !1;
|
|
37284
|
-
if (ie &&
|
|
37289
|
+
if (ie && Dt(ie)) {
|
|
37285
37290
|
const Je = ie.getFirstChild();
|
|
37286
37291
|
Je && Ye(Je) && (me = (Je.getHeaderStyles() & mt.COLUMN) === mt.COLUMN);
|
|
37287
37292
|
}
|
|
@@ -37421,7 +37426,7 @@ function OA({
|
|
|
37421
37426
|
const ee = Y ? J + ie + 1 : J - ie, me = G.getChildren();
|
|
37422
37427
|
if (ee >= 0 && ee < me.length) {
|
|
37423
37428
|
const Le = me[ee];
|
|
37424
|
-
|
|
37429
|
+
Dt(Le) && Le.getChildren().forEach((Je) => {
|
|
37425
37430
|
Ye(Je) && Je.setHeaderStyles(mt.NO_STATUS);
|
|
37426
37431
|
});
|
|
37427
37432
|
}
|
|
@@ -37445,7 +37450,7 @@ function OA({
|
|
|
37445
37450
|
}
|
|
37446
37451
|
const G = Ct(q), J = G.getChildren();
|
|
37447
37452
|
let ie = !1, ee = null;
|
|
37448
|
-
if (J.length > 0 &&
|
|
37453
|
+
if (J.length > 0 && Dt(J[0])) {
|
|
37449
37454
|
const Oe = J[0].getChildren();
|
|
37450
37455
|
if (Oe.length > 0 && Ye(Oe[0])) {
|
|
37451
37456
|
const Je = Oe[0];
|
|
@@ -37470,15 +37475,15 @@ function OA({
|
|
|
37470
37475
|
zm(Y);
|
|
37471
37476
|
if (ie) {
|
|
37472
37477
|
const Le = G.getChildren()[0];
|
|
37473
|
-
if (
|
|
37478
|
+
if (Dt(Le)) {
|
|
37474
37479
|
const Oe = Le.getChildren(), Je = Y ? me + 1 : me;
|
|
37475
37480
|
for (let We = 0; We < b.columns; We++) {
|
|
37476
37481
|
const pt = Je + We;
|
|
37477
37482
|
if (pt >= 0 && pt < Oe.length) {
|
|
37478
|
-
const
|
|
37479
|
-
if (Ye(
|
|
37483
|
+
const It = Oe[pt];
|
|
37484
|
+
if (Ye(It) && (It.setHeaderStyles(mt.COLUMN), ee && It.setBackgroundColor(ee), It.getChildrenSize() === 0)) {
|
|
37480
37485
|
const _t = ze();
|
|
37481
|
-
|
|
37486
|
+
It.append(_t);
|
|
37482
37487
|
}
|
|
37483
37488
|
}
|
|
37484
37489
|
}
|
|
@@ -37521,7 +37526,7 @@ function OA({
|
|
|
37521
37526
|
if (q >= G.length || q < 0)
|
|
37522
37527
|
throw new Error("Expected table cell to be inside of table row.");
|
|
37523
37528
|
const J = G[q];
|
|
37524
|
-
if (!
|
|
37529
|
+
if (!Dt(J))
|
|
37525
37530
|
throw new Error("Expected table row");
|
|
37526
37531
|
const ie = p.getHeaderStyles() ^ mt.ROW;
|
|
37527
37532
|
J.getChildren().forEach((ee) => {
|
|
@@ -37554,7 +37559,7 @@ function OA({
|
|
|
37554
37559
|
const ie = p.getHeaderStyles() ^ mt.COLUMN;
|
|
37555
37560
|
for (let ee = 0; ee < G.length; ee++) {
|
|
37556
37561
|
const me = G[ee];
|
|
37557
|
-
if (!
|
|
37562
|
+
if (!Dt(me))
|
|
37558
37563
|
throw new Error("Expected table row");
|
|
37559
37564
|
const Le = me.getChildren();
|
|
37560
37565
|
if (q >= Le.length)
|
|
@@ -37581,7 +37586,7 @@ function OA({
|
|
|
37581
37586
|
});
|
|
37582
37587
|
}, [u, p, B, t]), te = (Y) => {
|
|
37583
37588
|
const U = Y.getParent();
|
|
37584
|
-
if (
|
|
37589
|
+
if (Dt(U)) {
|
|
37585
37590
|
const q = U.getFirstChild();
|
|
37586
37591
|
Ye(q) && q.selectEnd();
|
|
37587
37592
|
}
|
|
@@ -37595,7 +37600,7 @@ function OA({
|
|
|
37595
37600
|
if (q instanceof HTMLElement) {
|
|
37596
37601
|
const G = U.getFirstChild();
|
|
37597
37602
|
let J = !1;
|
|
37598
|
-
if (G &&
|
|
37603
|
+
if (G && Dt(G)) {
|
|
37599
37604
|
const me = G.getFirstChild();
|
|
37600
37605
|
me && Ye(me) && (J = (me.getHeaderStyles() & mt.COLUMN) === mt.COLUMN);
|
|
37601
37606
|
}
|
|
@@ -37624,7 +37629,7 @@ function OA({
|
|
|
37624
37629
|
if (q instanceof HTMLElement) {
|
|
37625
37630
|
const G = U.getFirstChild();
|
|
37626
37631
|
let J = !1;
|
|
37627
|
-
if (G &&
|
|
37632
|
+
if (G && Dt(G)) {
|
|
37628
37633
|
const me = G.getFirstChild();
|
|
37629
37634
|
me && Ye(me) && (J = (me.getHeaderStyles() & mt.COLUMN) === mt.COLUMN);
|
|
37630
37635
|
}
|
|
@@ -37753,14 +37758,14 @@ function OA({
|
|
|
37753
37758
|
requestAnimationFrame(() => {
|
|
37754
37759
|
const Oe = u.getRootElement(), We = (J ?? Oe)?.clientWidth ?? 0, pt = Math.max(0, We - av);
|
|
37755
37760
|
if (pt > 0) {
|
|
37756
|
-
const
|
|
37761
|
+
const It = Math.floor(pt / ee);
|
|
37757
37762
|
G.style.setProperty("width", `${pt}px`, "important"), me.forEach((_t) => {
|
|
37758
|
-
_t.style.setProperty("width", `${
|
|
37763
|
+
_t.style.setProperty("width", `${It}px`, "important");
|
|
37759
37764
|
});
|
|
37760
37765
|
} else {
|
|
37761
|
-
const
|
|
37766
|
+
const It = 100 / ee;
|
|
37762
37767
|
me.forEach((_t) => {
|
|
37763
|
-
_t.style.setProperty("width", `${
|
|
37768
|
+
_t.style.setProperty("width", `${It}%`, "important");
|
|
37764
37769
|
});
|
|
37765
37770
|
}
|
|
37766
37771
|
});
|
|
@@ -37797,7 +37802,7 @@ function OA({
|
|
|
37797
37802
|
"data-test-id": "table-unmerge-cells",
|
|
37798
37803
|
children: /* @__PURE__ */ i("span", { className: "text", children: "Unmerge cells" })
|
|
37799
37804
|
}
|
|
37800
|
-
))),
|
|
37805
|
+
))), qt(
|
|
37801
37806
|
/* @__PURE__ */ y(
|
|
37802
37807
|
"div",
|
|
37803
37808
|
{
|
|
@@ -38398,7 +38403,7 @@ function $A({
|
|
|
38398
38403
|
isSmallWidthViewport: r = !1
|
|
38399
38404
|
}) {
|
|
38400
38405
|
const o = _c();
|
|
38401
|
-
return t ?
|
|
38406
|
+
return t ? qt(
|
|
38402
38407
|
o ? /* @__PURE__ */ i(
|
|
38403
38408
|
FA,
|
|
38404
38409
|
{
|
|
@@ -38484,7 +38489,7 @@ function zA({ editor: t }) {
|
|
|
38484
38489
|
if (de >= ce.length || de < 0)
|
|
38485
38490
|
return;
|
|
38486
38491
|
const ue = ce[de];
|
|
38487
|
-
|
|
38492
|
+
Dt(ue) && ue.setHeight(Math.max(D, gd));
|
|
38488
38493
|
},
|
|
38489
38494
|
{ tag: "skip-scroll-into-view" }
|
|
38490
38495
|
);
|
|
@@ -38504,7 +38509,7 @@ function zA({ editor: t }) {
|
|
|
38504
38509
|
if (K >= de.length || K < 0)
|
|
38505
38510
|
return;
|
|
38506
38511
|
const ce = de[K];
|
|
38507
|
-
|
|
38512
|
+
Dt(ce) && ce.setHeight(void 0);
|
|
38508
38513
|
},
|
|
38509
38514
|
{ tag: "skip-scroll-into-view" }
|
|
38510
38515
|
);
|
|
@@ -38617,7 +38622,7 @@ function zA({ editor: t }) {
|
|
|
38617
38622
|
const ce = on(K) + K.getRowSpan() - 1, ue = de.getChildren();
|
|
38618
38623
|
if (ce >= 0 && ce < ue.length) {
|
|
38619
38624
|
const V = ue[ce];
|
|
38620
|
-
if (
|
|
38625
|
+
if (Dt(V)) {
|
|
38621
38626
|
let Z = V.getHeight();
|
|
38622
38627
|
if (Z === void 0) {
|
|
38623
38628
|
const I = V.getChildren();
|
|
@@ -38736,14 +38741,14 @@ function zA({ editor: t }) {
|
|
|
38736
38741
|
}
|
|
38737
38742
|
function BA() {
|
|
38738
38743
|
const [t] = Se(), e = _c(), r = Uo();
|
|
38739
|
-
return
|
|
38740
|
-
() => e ?
|
|
38744
|
+
return Vt(
|
|
38745
|
+
() => e ? qt(/* @__PURE__ */ i(zA, { editor: t }), r || document.body) : null,
|
|
38741
38746
|
[t, e, r]
|
|
38742
38747
|
);
|
|
38743
38748
|
}
|
|
38744
38749
|
function WA(t, e, r) {
|
|
38745
38750
|
const o = X(null);
|
|
38746
|
-
return o.current = t,
|
|
38751
|
+
return o.current = t, Vt(
|
|
38747
38752
|
() => A0(
|
|
38748
38753
|
(...n) => {
|
|
38749
38754
|
o.current && o.current(...n);
|
|
@@ -39109,7 +39114,7 @@ function jA({
|
|
|
39109
39114
|
setTimeout(() => {
|
|
39110
39115
|
v(null), E(null), k(null), S(null), P(null), M(null);
|
|
39111
39116
|
}, 50);
|
|
39112
|
-
}, ue =
|
|
39117
|
+
}, ue = Vt(() => new ResizeObserver(() => {
|
|
39113
39118
|
$.current && z($.current);
|
|
39114
39119
|
}), [z]);
|
|
39115
39120
|
return j(() => {
|
|
@@ -39530,7 +39535,7 @@ function UA(t) {
|
|
|
39530
39535
|
function VA({
|
|
39531
39536
|
anchorElem: t = document.body
|
|
39532
39537
|
}) {
|
|
39533
|
-
return _c() ?
|
|
39538
|
+
return _c() ? qt(
|
|
39534
39539
|
/* @__PURE__ */ i(jA, { anchorElem: t }),
|
|
39535
39540
|
t
|
|
39536
39541
|
) : null;
|
|
@@ -39581,7 +39586,7 @@ function qA() {
|
|
|
39581
39586
|
return;
|
|
39582
39587
|
}
|
|
39583
39588
|
const _ = E + 40, N = [...w.getColWidths() || []], S = w.getFirstChild();
|
|
39584
|
-
if (!S || !
|
|
39589
|
+
if (!S || !Dt(S))
|
|
39585
39590
|
return;
|
|
39586
39591
|
const T = S.getChildrenSize();
|
|
39587
39592
|
for (; N.length < T; )
|
|
@@ -39793,7 +39798,7 @@ function KA({
|
|
|
39793
39798
|
return () => {
|
|
39794
39799
|
S(), T(), P(), O(), M(), H();
|
|
39795
39800
|
};
|
|
39796
|
-
}, [o, s, w, v]), !x || !s || !c ? null :
|
|
39801
|
+
}, [o, s, w, v]), !x || !s || !c ? null : qt(
|
|
39797
39802
|
/* @__PURE__ */ i(
|
|
39798
39803
|
"span",
|
|
39799
39804
|
{
|
|
@@ -39913,14 +39918,14 @@ const GA = 2 * 60 * 1e3, ZA = ({
|
|
|
39913
39918
|
] }),
|
|
39914
39919
|
/* @__PURE__ */ y("span", { className: "cteditor-text-[10px] cteditor-text-gray-500 dark:cteditor-text-gray-400 cteditor-border-l cteditor-border-gray-200 dark:cteditor-border-gray-700 cteditor-pl-3", children: [
|
|
39915
39920
|
"v",
|
|
39916
|
-
"1.3.
|
|
39921
|
+
"1.3.80"
|
|
39917
39922
|
] })
|
|
39918
39923
|
] }) : /* @__PURE__ */ y("div", { className: "cteditor-flex cteditor-items-center cteditor-gap-1.5 cteditor-text-gray-500 dark:cteditor-text-gray-400", children: [
|
|
39919
39924
|
/* @__PURE__ */ i(YA, { size: 14, className: "cteditor-shrink-0" }),
|
|
39920
39925
|
/* @__PURE__ */ i("span", { className: "cteditor-font-medium cteditor-text-foreground/80", children: "eddyter" }),
|
|
39921
39926
|
/* @__PURE__ */ y("span", { className: "cteditor-text-[10px]", children: [
|
|
39922
39927
|
"v",
|
|
39923
|
-
"1.3.
|
|
39928
|
+
"1.3.80"
|
|
39924
39929
|
] })
|
|
39925
39930
|
] }) });
|
|
39926
39931
|
}, cv = "draggable-block-menu";
|
|
@@ -40214,7 +40219,7 @@ const uP = ({
|
|
|
40214
40219
|
const x = m.getChildren();
|
|
40215
40220
|
if (x.length > 0) {
|
|
40216
40221
|
const v = x[0];
|
|
40217
|
-
if (
|
|
40222
|
+
if (Dt(v)) {
|
|
40218
40223
|
const w = v.getChildren();
|
|
40219
40224
|
let E = !1;
|
|
40220
40225
|
a.querySelectorAll("table").forEach((k) => {
|
|
@@ -40763,7 +40768,7 @@ const Hi = ({
|
|
|
40763
40768
|
onPreviewClick: m,
|
|
40764
40769
|
darkMode: x
|
|
40765
40770
|
}) => {
|
|
40766
|
-
const { isAuthenticated: v, isLoading: w, error: E, editorConfig: _, currentUser: k, verifyKey: N, paymentWarning: S } =
|
|
40771
|
+
const { isAuthenticated: v, isLoading: w, error: E, editorConfig: _, currentUser: k, verifyKey: N, paymentWarning: S } = Gt(), T = X(s), P = X(a), O = X(!1), M = X(!1), H = X(!1), [$, Q] = A(!1), z = Iw({
|
|
40767
40772
|
enabled: l,
|
|
40768
40773
|
onReady: d,
|
|
40769
40774
|
onFocus: u,
|
|
@@ -40871,7 +40876,7 @@ export {
|
|
|
40871
40876
|
Ls as A,
|
|
40872
40877
|
ye as B,
|
|
40873
40878
|
tL as C,
|
|
40874
|
-
|
|
40879
|
+
$t as D,
|
|
40875
40880
|
uL as E,
|
|
40876
40881
|
is as F,
|
|
40877
40882
|
pL as G,
|
|
@@ -40888,7 +40893,7 @@ export {
|
|
|
40888
40893
|
ng as R,
|
|
40889
40894
|
sn as S,
|
|
40890
40895
|
Zk as T,
|
|
40891
|
-
|
|
40896
|
+
Gt as U,
|
|
40892
40897
|
vn as V,
|
|
40893
40898
|
GN as W,
|
|
40894
40899
|
Iw as X,
|
|
@@ -40896,8 +40901,8 @@ export {
|
|
|
40896
40901
|
Te as a,
|
|
40897
40902
|
Lt as b,
|
|
40898
40903
|
lL as c,
|
|
40899
|
-
|
|
40900
|
-
|
|
40904
|
+
Ht as d,
|
|
40905
|
+
Rt as e,
|
|
40901
40906
|
kr as f,
|
|
40902
40907
|
M0 as g,
|
|
40903
40908
|
nr as h,
|