@pstdio/ui 0.2.1 → 0.2.2
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/chat-ui.js +643 -597
- package/dist/chat-ui.js.map +1 -1
- package/dist/components/chat-ui/agent-types.d.ts +1 -0
- package/dist/components/chat-ui/components/ai-conversation.d.ts +21 -579
- package/dist/components/chat-ui/components/ai-conversation.test.d.ts +1 -0
- package/dist/components/chat-ui/components/ai-message.d.ts +8 -8
- package/dist/components/chat-ui/components/message-parts-renderer.stories.d.ts +1 -0
- package/dist/components/chat-ui/components/message-types.d.ts +8 -0
- package/dist/components/menu-item.d.ts +3 -1
- package/dist/components/menu-item.stories.d.ts +1 -1
- package/dist/components/rich-text/rich-message/rich-message.d.ts +1 -0
- package/dist/components/rich-text/shared/plugins/CodePlugin/CodeNode.d.ts +2 -0
- package/dist/components/rich-text/shared/plugins/CodePlugin/CodeNode.test.d.ts +1 -0
- package/dist/components/scroll-area.d.ts +1 -0
- package/dist/components/sidebar-next/sidebar-next.types.d.ts +2 -1
- package/dist/components/sidebar-tree/sidebar-tree.d.ts +2 -1
- package/dist/components/sidebar-tree/sidebar-tree.types.d.ts +9 -1
- package/dist/components/tickets/display-menu.d.ts +15 -0
- package/dist/components/tickets/display-menu.stories.d.ts +6 -0
- package/dist/components/tickets/filter-menu.d.ts +11 -0
- package/dist/components/tickets/filter-menu.stories.d.ts +6 -0
- package/dist/components/tickets/ticket-board.d.ts +7 -0
- package/dist/components/tickets/ticket-grouping.d.ts +22 -0
- package/dist/components/tickets/ticket-grouping.test.d.ts +1 -0
- package/dist/components/tickets/tickets-workspace.d.ts +29 -0
- package/dist/components/tickets/tickets-workspace.stories.d.ts +10 -0
- package/dist/components/tickets/types.d.ts +49 -0
- package/dist/components/tickets/use-workspace-store.d.ts +51 -0
- package/dist/components/tickets/use-workspace-store.test.d.ts +1 -0
- package/dist/index.d.ts +7 -1
- package/dist/index.js +2069 -1206
- package/dist/index.js.map +1 -1
- package/dist/{rich-message-B2gxL8oy.js → rich-message-C0_i-4Ux.js} +323 -308
- package/dist/rich-message-C0_i-4Ux.js.map +1 -0
- package/dist/rich-text.js +2 -2
- package/dist/scroll-area-DZs-GiIp.js +267 -0
- package/dist/scroll-area-DZs-GiIp.js.map +1 -0
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/dist/empty-state-kQR0gd4j.js +0 -232
- package/dist/empty-state-kQR0gd4j.js.map +0 -1
- package/dist/rich-message-B2gxL8oy.js.map +0 -1
|
@@ -3,8 +3,8 @@ import { LinkNode as Se } from "@lexical/link";
|
|
|
3
3
|
import { ListNode as Te, ListItemNode as Re } from "@lexical/list";
|
|
4
4
|
import { TRANSFORMERS as Ne, $convertFromMarkdownString as Ce, $convertToMarkdownString as nt } from "@lexical/markdown";
|
|
5
5
|
import { QuoteNode as Oe, HeadingNode as ke } from "@lexical/rich-text";
|
|
6
|
-
import { jsx as
|
|
7
|
-
import { chakra as ie, Flex as V, Text as
|
|
6
|
+
import { jsx as l, jsxs as L, Fragment as pe } from "react/jsx-runtime";
|
|
7
|
+
import { chakra as ie, Flex as V, Text as w, Spacer as rt, IconButton as ot, Box as P, Table as H, Textarea as it, Tooltip as Z, Kbd as st } from "@chakra-ui/react";
|
|
8
8
|
import { DecoratorNode as G, $applyNodeReplacement as lt, ElementNode as $e, TextNode as ee, $createTextNode as Ie, $nodesOfType as ct, createCommand as k, isHTMLElement as at, $createParagraphNode as se, COMMAND_PRIORITY_LOW as ve, $getSelection as dt, $isRangeSelection as ut, $isElementNode as mt, KEY_DOWN_COMMAND as ft, COMMAND_PRIORITY_HIGH as pt, $getRoot as we } from "lexical";
|
|
9
9
|
import { c as C } from "react/compiler-runtime";
|
|
10
10
|
import { MarkNode as _t } from "@lexical/mark";
|
|
@@ -14,8 +14,8 @@ import { HistoryPlugin as ht } from "@lexical/react/LexicalHistoryPlugin";
|
|
|
14
14
|
import { OnChangePlugin as Me } from "@lexical/react/LexicalOnChangePlugin";
|
|
15
15
|
import { RichTextPlugin as De } from "@lexical/react/LexicalRichTextPlugin";
|
|
16
16
|
import * as gt from "react";
|
|
17
|
-
import { Suspense as xt, useEffect as
|
|
18
|
-
import { useLexicalComposerContext as
|
|
17
|
+
import { Suspense as xt, useEffect as j, useImperativeHandle as Et, useState as bt, forwardRef as yt, useRef as St } from "react";
|
|
18
|
+
import { useLexicalComposerContext as M } from "@lexical/react/LexicalComposerContext";
|
|
19
19
|
import { $setBlocksType as Tt } from "@lexical/selection";
|
|
20
20
|
import { addClassNamesToElement as Ae, mergeRegister as de } from "@lexical/utils";
|
|
21
21
|
import { LexicalTypeaheadMenuPlugin as Rt } from "@lexical/react/LexicalTypeaheadMenuPlugin";
|
|
@@ -34,11 +34,11 @@ function Fe(n) {
|
|
|
34
34
|
onRef: t,
|
|
35
35
|
fullWidth: r,
|
|
36
36
|
padding: o
|
|
37
|
-
} = n, i = r === void 0 ? !1 : r,
|
|
37
|
+
} = n, i = r === void 0 ? !1 : r, s = i ? "flex-start" : "center", a = i ? "100%" : "720px";
|
|
38
38
|
let c;
|
|
39
|
-
e[0] !== a ? (c = /* @__PURE__ */
|
|
40
|
-
let
|
|
41
|
-
return e[2] !== t || e[3] !== o || e[4] !==
|
|
39
|
+
e[0] !== a ? (c = /* @__PURE__ */ l(Ut, { height: "fit-content", minH: "100%", width: "100%", maxWidth: a, textStyle: "paragraph/M/regular", position: "relative", outline: "none" }), e[0] = a, e[1] = c) : c = e[1];
|
|
40
|
+
let u;
|
|
41
|
+
return e[2] !== t || e[3] !== o || e[4] !== s || e[5] !== c ? (u = /* @__PURE__ */ l(V, { className: "rich-text", height: "100%", overflow: "auto", position: "relative", children: /* @__PURE__ */ l(V, { ref: t, width: "100%", padding: o, justifyContent: s, children: c }) }), e[2] = t, e[3] = o, e[4] = s, e[5] = c, e[6] = u) : u = e[6], u;
|
|
42
42
|
}
|
|
43
43
|
const Jt = (n) => {
|
|
44
44
|
const e = n.split(".").pop()?.toLowerCase() ?? "";
|
|
@@ -83,7 +83,7 @@ const Jt = (n) => {
|
|
|
83
83
|
}
|
|
84
84
|
}, Kt = "md", Vt = "neutral", qe = (n) => {
|
|
85
85
|
const e = C(39);
|
|
86
|
-
let t, r, o, i,
|
|
86
|
+
let t, r, o, i, s, a, c;
|
|
87
87
|
e[0] !== n ? ({
|
|
88
88
|
fileName: t,
|
|
89
89
|
onSelect: i,
|
|
@@ -91,43 +91,43 @@ const Jt = (n) => {
|
|
|
91
91
|
size: a,
|
|
92
92
|
tone: c,
|
|
93
93
|
icon: r,
|
|
94
|
-
...
|
|
95
|
-
} = n, e[0] = n, e[1] = t, e[2] = r, e[3] = o, e[4] = i, e[5] =
|
|
96
|
-
const
|
|
97
|
-
let
|
|
98
|
-
e[8] !== t ? (
|
|
99
|
-
const
|
|
100
|
-
let
|
|
101
|
-
e[10] !== t || e[11] !== i ? (
|
|
94
|
+
...s
|
|
95
|
+
} = n, e[0] = n, e[1] = t, e[2] = r, e[3] = o, e[4] = i, e[5] = s, e[6] = a, e[7] = c) : (t = e[1], r = e[2], o = e[3], i = e[4], s = e[5], a = e[6], c = e[7]);
|
|
96
|
+
const u = a === void 0 ? Kt : a, m = c === void 0 ? Vt : c;
|
|
97
|
+
let _;
|
|
98
|
+
e[8] !== t ? (_ = Jt(t), e[8] = t, e[9] = _) : _ = e[9];
|
|
99
|
+
const p = _, d = Wt[u], f = zt[m], g = i ? "pointer" : "default";
|
|
100
|
+
let x;
|
|
101
|
+
e[10] !== t || e[11] !== i ? (x = (O) => {
|
|
102
102
|
O.stopPropagation(), i?.(t);
|
|
103
|
-
}, e[10] = t, e[11] = i, e[12] =
|
|
104
|
-
let E;
|
|
105
|
-
e[13] !== _ || e[14] !== r || e[15] !== u.iconSize ? (E = r ?? /* @__PURE__ */ s(_, { size: u.iconSize }), e[13] = _, e[14] = r, e[15] = u.iconSize, e[16] = E) : E = e[16];
|
|
106
|
-
let R;
|
|
107
|
-
e[17] !== E ? (R = /* @__PURE__ */ s(ie.span, { mr: "xs", display: "inline-flex", children: E }), e[17] = E, e[18] = R) : R = e[18];
|
|
103
|
+
}, e[10] = t, e[11] = i, e[12] = x) : x = e[12];
|
|
108
104
|
let S;
|
|
109
|
-
e[
|
|
110
|
-
base: "14rem"
|
|
111
|
-
}, e[19] = S) : S = e[19];
|
|
112
|
-
let T;
|
|
113
|
-
e[20] !== t || e[21] !== u.textStyle ? (T = /* @__PURE__ */ s(I, { maxW: S, textOverflow: "ellipsis", whiteSpace: "nowrap", overflow: "hidden", textStyle: u.textStyle, children: t }), e[20] = t, e[21] = u.textStyle, e[22] = T) : T = e[22];
|
|
114
|
-
let x;
|
|
115
|
-
e[23] !== t || e[24] !== T ? (x = /* @__PURE__ */ s(Bt, { content: t, children: T }), e[23] = t, e[24] = T, e[25] = x) : x = e[25];
|
|
105
|
+
e[13] !== p || e[14] !== r || e[15] !== d.iconSize ? (S = r ?? /* @__PURE__ */ l(p, { size: d.iconSize }), e[13] = p, e[14] = r, e[15] = d.iconSize, e[16] = S) : S = e[16];
|
|
116
106
|
let N;
|
|
117
|
-
e[
|
|
107
|
+
e[17] !== S ? (N = /* @__PURE__ */ l(ie.span, { mr: "xs", display: "inline-flex", children: S }), e[17] = S, e[18] = N) : N = e[18];
|
|
118
108
|
let b;
|
|
119
|
-
e[
|
|
109
|
+
e[19] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = {
|
|
110
|
+
base: "14rem"
|
|
111
|
+
}, e[19] = b) : b = e[19];
|
|
112
|
+
let T;
|
|
113
|
+
e[20] !== t || e[21] !== d.textStyle ? (T = /* @__PURE__ */ l(w, { maxW: b, textOverflow: "ellipsis", whiteSpace: "nowrap", overflow: "hidden", textStyle: d.textStyle, children: t }), e[20] = t, e[21] = d.textStyle, e[22] = T) : T = e[22];
|
|
114
|
+
let E;
|
|
115
|
+
e[23] !== t || e[24] !== T ? (E = /* @__PURE__ */ l(Bt, { content: t, children: T }), e[23] = t, e[24] = T, e[25] = E) : E = e[25];
|
|
116
|
+
let R;
|
|
117
|
+
e[26] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (R = /* @__PURE__ */ l(rt, {}), e[26] = R) : R = e[26];
|
|
118
|
+
let y;
|
|
119
|
+
e[27] !== t || e[28] !== o ? (y = o && /* @__PURE__ */ l(ot, { "aria-label": "Remove reference", size: "2xs", ml: "xs", variant: "ghost", _hover: {
|
|
120
120
|
bg: "transparent"
|
|
121
121
|
}, onClick: (O) => {
|
|
122
122
|
O.stopPropagation(), o?.(t);
|
|
123
|
-
}, children: /* @__PURE__ */
|
|
124
|
-
let
|
|
125
|
-
return e[30] !==
|
|
126
|
-
R,
|
|
127
|
-
x,
|
|
123
|
+
}, children: /* @__PURE__ */ l(jt, { size: 12 }) }), e[27] = t, e[28] = o, e[29] = y) : y = e[29];
|
|
124
|
+
let h;
|
|
125
|
+
return e[30] !== s || e[31] !== d.container || e[32] !== y || e[33] !== g || e[34] !== x || e[35] !== N || e[36] !== E || e[37] !== f ? (h = /* @__PURE__ */ L(ie.span, { display: "flex", flexDirection: "row", alignItems: "center", borderRadius: "xs", gap: "2xs", cursor: g, ...f, ...d.container, onClick: x, ...s, children: [
|
|
128
126
|
N,
|
|
129
|
-
|
|
130
|
-
|
|
127
|
+
E,
|
|
128
|
+
R,
|
|
129
|
+
y
|
|
130
|
+
] }), e[30] = s, e[31] = d.container, e[32] = y, e[33] = g, e[34] = x, e[35] = N, e[36] = E, e[37] = f, e[38] = h) : h = e[38], h;
|
|
131
131
|
};
|
|
132
132
|
let ne = class le extends G {
|
|
133
133
|
__href;
|
|
@@ -162,15 +162,15 @@ let ne = class le extends G {
|
|
|
162
162
|
return He(e.href, e.label);
|
|
163
163
|
}
|
|
164
164
|
decorate(e, t) {
|
|
165
|
-
const r = this.__href, i = r.split("/").pop() || "unknown",
|
|
166
|
-
return /* @__PURE__ */
|
|
167
|
-
if (
|
|
165
|
+
const r = this.__href, i = r.split("/").pop() || "unknown", s = /^https?:\/\//i.test(r), a = /^#?\$PROJECT\//i.test(r);
|
|
166
|
+
return /* @__PURE__ */ l(P, { width: "fit-content", display: "inline-block", children: /* @__PURE__ */ l(qe, { fileName: i, onSelect: () => {
|
|
167
|
+
if (s)
|
|
168
168
|
window.open(r, "_blank", "noopener,noreferrer");
|
|
169
169
|
else if (a) {
|
|
170
|
-
const c = r.replace(/^#?\$PROJECT\//i, ""),
|
|
170
|
+
const c = r.replace(/^#?\$PROJECT\//i, ""), u = new CustomEvent("ui:open-project-file", {
|
|
171
171
|
detail: c
|
|
172
172
|
});
|
|
173
|
-
window.dispatchEvent(
|
|
173
|
+
window.dispatchEvent(u);
|
|
174
174
|
} else
|
|
175
175
|
window.location.assign(r);
|
|
176
176
|
} }) });
|
|
@@ -278,76 +278,76 @@ const _e = /\{\{\s*link\((['"])([^'"\s]+)\1\)\s*\}\}/, Gt = {
|
|
|
278
278
|
isEditable: r,
|
|
279
279
|
showLineNumbers: o,
|
|
280
280
|
disableScroll: i
|
|
281
|
-
} = n,
|
|
281
|
+
} = n, s = t === void 0 ? "" : t, a = r === void 0 ? !1 : r, c = o === void 0 ? !1 : o, u = i === void 0 ? !1 : i;
|
|
282
282
|
if (a) {
|
|
283
|
-
let
|
|
284
|
-
return e[0] !==
|
|
283
|
+
let _;
|
|
284
|
+
return e[0] !== s ? (_ = /* @__PURE__ */ l(it, { defaultValue: s, fontFamily: "mono", fontSize: "sm", resize: "vertical", minHeight: "100%" }), e[0] = s, e[1] = _) : _ = e[1], _;
|
|
285
285
|
}
|
|
286
|
-
let
|
|
287
|
-
if (e[2] !==
|
|
288
|
-
const
|
|
289
|
-
`) : [
|
|
290
|
-
|
|
286
|
+
let m;
|
|
287
|
+
if (e[2] !== s || e[3] !== u || e[4] !== c) {
|
|
288
|
+
const _ = c ? s.split(`
|
|
289
|
+
`) : [s];
|
|
290
|
+
m = /* @__PURE__ */ l(P, { as: "pre", margin: 0, padding: "sm", fontFamily: "mono", fontSize: "sm", lineHeight: "1.5", overflowY: u ? "hidden" : "auto", background: "bg.muted", borderRadius: "md", width: "100%", children: c ? /* @__PURE__ */ l(P, { as: "code", display: "grid", gridTemplateColumns: "auto 1fr", columnGap: "sm", children: _.map(en) }) : /* @__PURE__ */ l(P, { as: "code", children: s }) }), e[2] = s, e[3] = u, e[4] = c, e[5] = m;
|
|
291
291
|
} else
|
|
292
|
-
|
|
293
|
-
return
|
|
292
|
+
m = e[5];
|
|
293
|
+
return m;
|
|
294
294
|
}, Zt = (n) => {
|
|
295
295
|
const e = C(26), {
|
|
296
296
|
data: t,
|
|
297
297
|
fullWidth: r,
|
|
298
298
|
noBorder: o,
|
|
299
299
|
hiddenColumns: i
|
|
300
|
-
} = n,
|
|
300
|
+
} = n, s = r === void 0 ? !1 : r, a = o === void 0 ? !1 : o;
|
|
301
301
|
let c;
|
|
302
302
|
e[0] !== i ? (c = i === void 0 ? [] : i, e[0] = i, e[1] = c) : c = e[1];
|
|
303
|
-
const
|
|
303
|
+
const u = c;
|
|
304
304
|
if (!t.length) {
|
|
305
|
-
const
|
|
306
|
-
let
|
|
307
|
-
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
308
|
-
let
|
|
309
|
-
return e[3] !==
|
|
305
|
+
const E = a ? "0" : "1px";
|
|
306
|
+
let R;
|
|
307
|
+
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (R = /* @__PURE__ */ l(w, { textStyle: "label/S/regular", color: "fg.muted", children: "No data" }), e[2] = R) : R = e[2];
|
|
308
|
+
let y;
|
|
309
|
+
return e[3] !== E ? (y = /* @__PURE__ */ l(P, { padding: "sm", borderWidth: E, borderColor: "border.muted", children: R }), e[3] = E, e[4] = y) : y = e[4], y;
|
|
310
310
|
}
|
|
311
|
-
let
|
|
312
|
-
e[5] !==
|
|
313
|
-
const
|
|
314
|
-
let
|
|
315
|
-
e[7] !== t[0] ? (
|
|
316
|
-
let
|
|
317
|
-
e[9] !==
|
|
318
|
-
const
|
|
319
|
-
let E;
|
|
320
|
-
e[12] !== m ? (E = /* @__PURE__ */ s(A.Header, { children: /* @__PURE__ */ s(A.Row, { background: "bg.muted", children: m.map(tn) }) }), e[12] = m, e[13] = E) : E = e[13];
|
|
321
|
-
let R;
|
|
322
|
-
if (e[14] !== m || e[15] !== t) {
|
|
323
|
-
let x;
|
|
324
|
-
e[17] !== m ? (x = (N, b) => /* @__PURE__ */ s(A.Row, { children: m.map((p) => /* @__PURE__ */ s(A.Cell, { paddingX: "xs", paddingY: "2xs", children: /* @__PURE__ */ s(I, { textStyle: "paragraph/S/regular", children: Yt(N[p]) }) }, `${b}-${p}`)) }, `${b}-${m.join("-")}`), e[17] = m, e[18] = x) : x = e[18], R = t.map(x), e[14] = m, e[15] = t, e[16] = R;
|
|
325
|
-
} else
|
|
326
|
-
R = e[16];
|
|
311
|
+
let m;
|
|
312
|
+
e[5] !== u ? (m = new Set(u), e[5] = u, e[6] = m) : m = e[6];
|
|
313
|
+
const _ = m;
|
|
314
|
+
let p;
|
|
315
|
+
e[7] !== t[0] ? (p = Object.keys(t[0] ?? {}), e[7] = t[0], e[8] = p) : p = e[8];
|
|
316
|
+
let d;
|
|
317
|
+
e[9] !== _ || e[10] !== p ? (d = p.filter((E) => !_.has(E)), e[9] = _, e[10] = p, e[11] = d) : d = e[11];
|
|
318
|
+
const f = d, g = s ? "100%" : "fit-content", x = a ? "0" : "1px";
|
|
327
319
|
let S;
|
|
328
|
-
e[
|
|
320
|
+
e[12] !== f ? (S = /* @__PURE__ */ l(H.Header, { children: /* @__PURE__ */ l(H.Row, { background: "bg.muted", children: f.map(tn) }) }), e[12] = f, e[13] = S) : S = e[13];
|
|
321
|
+
let N;
|
|
322
|
+
if (e[14] !== f || e[15] !== t) {
|
|
323
|
+
let E;
|
|
324
|
+
e[17] !== f ? (E = (R, y) => /* @__PURE__ */ l(H.Row, { children: f.map((h) => /* @__PURE__ */ l(H.Cell, { paddingX: "xs", paddingY: "2xs", children: /* @__PURE__ */ l(w, { textStyle: "paragraph/S/regular", children: Yt(R[h]) }) }, `${y}-${h}`)) }, `${y}-${f.join("-")}`), e[17] = f, e[18] = E) : E = e[18], N = t.map(E), e[14] = f, e[15] = t, e[16] = N;
|
|
325
|
+
} else
|
|
326
|
+
N = e[16];
|
|
327
|
+
let b;
|
|
328
|
+
e[19] !== N ? (b = /* @__PURE__ */ l(H.Body, { children: N }), e[19] = N, e[20] = b) : b = e[20];
|
|
329
329
|
let T;
|
|
330
|
-
return e[21] !==
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
] }) }), e[21] =
|
|
330
|
+
return e[21] !== b || e[22] !== g || e[23] !== x || e[24] !== S ? (T = /* @__PURE__ */ l(H.ScrollArea, { overflowX: "auto", maxWidth: "100%", children: /* @__PURE__ */ L(H.Root, { size: "sm", width: g, borderWidth: x, borderColor: "border.muted", children: [
|
|
331
|
+
S,
|
|
332
|
+
b
|
|
333
|
+
] }) }), e[21] = b, e[22] = g, e[23] = x, e[24] = S, e[25] = T) : T = e[25], T;
|
|
334
334
|
};
|
|
335
335
|
function en(n, e) {
|
|
336
|
-
return /* @__PURE__ */ P
|
|
337
|
-
/* @__PURE__ */
|
|
338
|
-
/* @__PURE__ */
|
|
336
|
+
return /* @__PURE__ */ L(P, { as: "span", display: "contents", children: [
|
|
337
|
+
/* @__PURE__ */ l(w, { as: "span", color: "fg.muted", textAlign: "right", children: e + 1 }),
|
|
338
|
+
/* @__PURE__ */ l(w, { as: "span", children: n.length ? n : " " })
|
|
339
339
|
] }, `${e}-${n}`);
|
|
340
340
|
}
|
|
341
341
|
function tn(n) {
|
|
342
|
-
return /* @__PURE__ */
|
|
342
|
+
return /* @__PURE__ */ l(H.ColumnHeader, { textTransform: "none", paddingX: "xs", paddingY: "2xs", children: /* @__PURE__ */ l(w, { textStyle: "label/S/medium", children: n }) }, n);
|
|
343
343
|
}
|
|
344
|
-
class
|
|
344
|
+
class U extends G {
|
|
345
345
|
__data;
|
|
346
346
|
static getType() {
|
|
347
347
|
return "data_table";
|
|
348
348
|
}
|
|
349
349
|
static clone(e) {
|
|
350
|
-
return new
|
|
350
|
+
return new U(e.__data, e.__key);
|
|
351
351
|
}
|
|
352
352
|
constructor(e, t) {
|
|
353
353
|
super(t), this.__data = e;
|
|
@@ -362,7 +362,7 @@ class H extends G {
|
|
|
362
362
|
return !1;
|
|
363
363
|
}
|
|
364
364
|
decorate() {
|
|
365
|
-
return /* @__PURE__ */
|
|
365
|
+
return /* @__PURE__ */ l(Zt, { fullWidth: !0, isReadOnly: !0, data: this.__data });
|
|
366
366
|
}
|
|
367
367
|
exportJSON() {
|
|
368
368
|
return {
|
|
@@ -372,20 +372,20 @@ class H extends G {
|
|
|
372
372
|
};
|
|
373
373
|
}
|
|
374
374
|
static importJSON(e) {
|
|
375
|
-
return new
|
|
375
|
+
return new U(e.data);
|
|
376
376
|
}
|
|
377
377
|
getTextContent() {
|
|
378
378
|
if (!this.__data.length) return "";
|
|
379
|
-
const e = Object.keys(this.__data[0]), t = e.join(" | "), r = e.map(() => "---").join(" | "), o = this.__data.map((i) => e.map((
|
|
379
|
+
const e = Object.keys(this.__data[0]), t = e.join(" | "), r = e.map(() => "---").join(" | "), o = this.__data.map((i) => e.map((s) => String(i[s] || "")).join(" | "));
|
|
380
380
|
return [t, r, ...o].join(`
|
|
381
381
|
`);
|
|
382
382
|
}
|
|
383
383
|
}
|
|
384
384
|
function he(n) {
|
|
385
|
-
return new
|
|
385
|
+
return new U(n);
|
|
386
386
|
}
|
|
387
387
|
function ge(n) {
|
|
388
|
-
return n instanceof
|
|
388
|
+
return n instanceof U;
|
|
389
389
|
}
|
|
390
390
|
class K extends G {
|
|
391
391
|
__language;
|
|
@@ -412,8 +412,22 @@ class K extends G {
|
|
|
412
412
|
} = e;
|
|
413
413
|
return new K(t, r);
|
|
414
414
|
}
|
|
415
|
+
exportJSON() {
|
|
416
|
+
return {
|
|
417
|
+
type: "codeblock",
|
|
418
|
+
language: this.__language,
|
|
419
|
+
code: this.__code,
|
|
420
|
+
version: 1
|
|
421
|
+
};
|
|
422
|
+
}
|
|
423
|
+
// Used by Lexical's markdown export as fallback for DecoratorNodes
|
|
424
|
+
getTextContent() {
|
|
425
|
+
return `\`\`\`${this.__language}
|
|
426
|
+
${this.__code}
|
|
427
|
+
\`\`\``;
|
|
428
|
+
}
|
|
415
429
|
decorate() {
|
|
416
|
-
return /* @__PURE__ */
|
|
430
|
+
return /* @__PURE__ */ l(P, { borderRadius: "md", overflow: "hidden", children: /* @__PURE__ */ l(Qt, { language: this.__language || "plaintext", defaultCode: this.__code, isEditable: !1, showLineNumbers: !0, disableScroll: !0 }) });
|
|
417
431
|
}
|
|
418
432
|
}
|
|
419
433
|
const nn = gt.lazy(() => import("./EquationComponent-DeDYHvqY.js"));
|
|
@@ -424,14 +438,14 @@ function xe(n) {
|
|
|
424
438
|
node: re(e, t)
|
|
425
439
|
} : null;
|
|
426
440
|
}
|
|
427
|
-
class
|
|
441
|
+
class B extends G {
|
|
428
442
|
__equation;
|
|
429
443
|
__inline;
|
|
430
444
|
static getType() {
|
|
431
445
|
return "equation";
|
|
432
446
|
}
|
|
433
447
|
static clone(e) {
|
|
434
|
-
return new
|
|
448
|
+
return new B(e.__equation, e.__inline, e.__key);
|
|
435
449
|
}
|
|
436
450
|
constructor(e, t, r) {
|
|
437
451
|
super(r), this.__equation = e, this.__inline = t ?? !1;
|
|
@@ -494,18 +508,18 @@ class q extends G {
|
|
|
494
508
|
return this.__inline;
|
|
495
509
|
}
|
|
496
510
|
decorate() {
|
|
497
|
-
return /* @__PURE__ */
|
|
511
|
+
return /* @__PURE__ */ l(xt, { fallback: null, children: /* @__PURE__ */ l(nn, { equation: this.__equation, inline: this.__inline }) });
|
|
498
512
|
}
|
|
499
513
|
}
|
|
500
514
|
function re(n = "", e = !1) {
|
|
501
|
-
const t = new
|
|
515
|
+
const t = new B(n, e);
|
|
502
516
|
return lt(t);
|
|
503
517
|
}
|
|
504
518
|
function je(n) {
|
|
505
|
-
return n instanceof
|
|
519
|
+
return n instanceof B;
|
|
506
520
|
}
|
|
507
521
|
const Be = {
|
|
508
|
-
dependencies: [
|
|
522
|
+
dependencies: [B],
|
|
509
523
|
export: (n) => je(n) && n.isInline() ? `\\( ${n.getEquation().trim()} \\)` : null,
|
|
510
524
|
importRegExp: /\\\((.*?)\\\)/,
|
|
511
525
|
regExp: /\\\((.*?)\\\)/,
|
|
@@ -515,7 +529,7 @@ const Be = {
|
|
|
515
529
|
},
|
|
516
530
|
type: "text-match"
|
|
517
531
|
}, Ue = {
|
|
518
|
-
dependencies: [
|
|
532
|
+
dependencies: [B],
|
|
519
533
|
regExpStart: /\\\[/,
|
|
520
534
|
regExpEnd: /\\]/,
|
|
521
535
|
export: (n) => je(n) && !n.isInline() ? `\\[ ${n.getEquation().trim()} \\]` : null,
|
|
@@ -525,12 +539,12 @@ const Be = {
|
|
|
525
539
|
function rn() {
|
|
526
540
|
return null;
|
|
527
541
|
}
|
|
528
|
-
class
|
|
542
|
+
class W extends $e {
|
|
529
543
|
static getType() {
|
|
530
544
|
return "hr";
|
|
531
545
|
}
|
|
532
546
|
static clone(e) {
|
|
533
|
-
return new
|
|
547
|
+
return new W(e?.__key);
|
|
534
548
|
}
|
|
535
549
|
static importJSON(e) {
|
|
536
550
|
return Je();
|
|
@@ -552,13 +566,13 @@ class B extends $e {
|
|
|
552
566
|
}
|
|
553
567
|
}
|
|
554
568
|
function Je() {
|
|
555
|
-
return new
|
|
569
|
+
return new W();
|
|
556
570
|
}
|
|
557
571
|
function on(n) {
|
|
558
|
-
return n instanceof
|
|
572
|
+
return n instanceof W;
|
|
559
573
|
}
|
|
560
574
|
const sn = {
|
|
561
|
-
dependencies: [
|
|
575
|
+
dependencies: [W],
|
|
562
576
|
export: (n) => on(n) ? "***" : null,
|
|
563
577
|
regExp: /^(---|\*\*\*|___)\s?$/,
|
|
564
578
|
replace: (n) => {
|
|
@@ -572,8 +586,8 @@ const sn = {
|
|
|
572
586
|
if (ge(n)) {
|
|
573
587
|
const t = n.getData();
|
|
574
588
|
if (!t.length) return "";
|
|
575
|
-
const r = Object.keys(t[0]), o = r.join(" | "), i = r.map(() => "---").join(" | "),
|
|
576
|
-
return [`| ${o} |`, `| ${i} |`, ...
|
|
589
|
+
const r = Object.keys(t[0]), o = r.join(" | "), i = r.map(() => "---").join(" | "), s = t.map((a) => r.map((c) => String(a[c] || "")).join(" | "));
|
|
590
|
+
return [`| ${o} |`, `| ${i} |`, ...s.map((a) => `| ${a} |`)].join(`
|
|
577
591
|
`);
|
|
578
592
|
}
|
|
579
593
|
return null;
|
|
@@ -585,19 +599,19 @@ const sn = {
|
|
|
585
599
|
n.remove();
|
|
586
600
|
return;
|
|
587
601
|
}
|
|
588
|
-
const
|
|
602
|
+
const s = t[0].split("|").slice(1, -1).map((a) => a.trim());
|
|
589
603
|
if (o?.getType() === "data_table" && ge(o)) {
|
|
590
|
-
const a = o.getData(), c = {},
|
|
591
|
-
|
|
592
|
-
const g =
|
|
593
|
-
c[g] =
|
|
604
|
+
const a = o.getData(), c = {}, u = a.length === 1 && Object.values(a[0]).every((d) => d === ""), m = a.length > 0 ? Object.keys(a[0]) : s.map((d, f) => `col_${f}`);
|
|
605
|
+
s.forEach((d, f) => {
|
|
606
|
+
const g = m[f] || `col_${f}`;
|
|
607
|
+
c[g] = d;
|
|
594
608
|
});
|
|
595
|
-
const
|
|
596
|
-
o.replace(
|
|
609
|
+
const _ = u ? [c] : [...a, c], p = he(_);
|
|
610
|
+
o.replace(p), n.remove();
|
|
597
611
|
} else {
|
|
598
612
|
const a = {};
|
|
599
|
-
|
|
600
|
-
a[
|
|
613
|
+
s.forEach((u, m) => {
|
|
614
|
+
a[u || `col_${m}`] = "";
|
|
601
615
|
});
|
|
602
616
|
const c = he([a]);
|
|
603
617
|
n.replace(c);
|
|
@@ -638,13 +652,13 @@ const sn = {
|
|
|
638
652
|
t.toggleFormat("underline"), n.replace(t);
|
|
639
653
|
},
|
|
640
654
|
type: "text-match"
|
|
641
|
-
}, We = [ln, sn, cn, an], Wr = [Oe, Se,
|
|
655
|
+
}, We = [ln, sn, cn, an], Wr = [Oe, Se, U, ke, Te, Re, ae, K, B, W, ne], zr = [...Ne, ...We, Be, Ue, Gt], Kr = ue;
|
|
642
656
|
function dn() {
|
|
643
|
-
const n = C(3), [e] =
|
|
657
|
+
const n = C(3), [e] = M();
|
|
644
658
|
let t, r;
|
|
645
659
|
return n[0] !== e ? (t = () => {
|
|
646
660
|
e.update(un);
|
|
647
|
-
}, r = [e], n[0] = e, n[1] = t, n[2] = r) : (t = n[1], r = n[2]),
|
|
661
|
+
}, r = [e], n[0] = e, n[1] = t, n[2] = r) : (t = n[1], r = n[2]), j(t, r), null;
|
|
648
662
|
}
|
|
649
663
|
function un() {
|
|
650
664
|
const n = ct(ae);
|
|
@@ -656,16 +670,16 @@ function un() {
|
|
|
656
670
|
function ze(n) {
|
|
657
671
|
const e = C(4), {
|
|
658
672
|
isEditable: t
|
|
659
|
-
} = n, [r] =
|
|
673
|
+
} = n, [r] = M();
|
|
660
674
|
let o, i;
|
|
661
675
|
return e[0] !== r || e[1] !== t ? (o = () => {
|
|
662
676
|
r.setEditable(t);
|
|
663
|
-
}, i = [t, r], e[0] = r, e[1] = t, e[2] = o, e[3] = i) : (o = e[2], i = e[3]),
|
|
677
|
+
}, i = [t, r], e[0] = r, e[1] = t, e[2] = o, e[3] = i) : (o = e[2], i = e[3]), j(o, i), null;
|
|
664
678
|
}
|
|
665
679
|
function Ke() {
|
|
666
|
-
const n = C(2), [e] =
|
|
680
|
+
const n = C(2), [e] = M();
|
|
667
681
|
let t;
|
|
668
|
-
return n[0] !== e ? (t = /* @__PURE__ */
|
|
682
|
+
return n[0] !== e ? (t = /* @__PURE__ */ l(P, { fontSize: "xs", color: "fg.muted", padding: "4", children: /* @__PURE__ */ l(vt, { treeTypeButtonClassName: "debug-treetype-button", timeTravelButtonClassName: "debug-timetravel-button", timeTravelPanelButtonClassName: "debug-timetravel-button", timeTravelPanelClassName: "debug-timetravel-panel", timeTravelPanelSliderClassName: "debug-timetravel-slider", viewClassName: "tree-view-output", editor: e }) }), n[0] = e, n[1] = t) : t = n[1], t;
|
|
669
683
|
}
|
|
670
684
|
const mn = /^---\s*\n([\s\S]*?)\n---\s*(?:\n|$)/;
|
|
671
685
|
function fn(n) {
|
|
@@ -774,9 +788,9 @@ const wn = (n, e) => {
|
|
|
774
788
|
ut(t) && Tt(t, te);
|
|
775
789
|
};
|
|
776
790
|
function Pn() {
|
|
777
|
-
const n = C(3), [e] =
|
|
791
|
+
const n = C(3), [e] = M();
|
|
778
792
|
let t, r;
|
|
779
|
-
return n[0] !== e ? (t = () => de(e.registerCommand(On, Ln, ve)), r = [e], n[0] = e, n[1] = t, n[2] = r) : (t = n[1], r = n[2]),
|
|
793
|
+
return n[0] !== e ? (t = () => de(e.registerCommand(On, Ln, ve)), r = [e], n[0] = e, n[1] = t, n[2] = r) : (t = n[1], r = n[2]), j(t, r), null;
|
|
780
794
|
}
|
|
781
795
|
function Ln(n) {
|
|
782
796
|
const {
|
|
@@ -786,14 +800,14 @@ function Ln(n) {
|
|
|
786
800
|
return wn(e, t), !1;
|
|
787
801
|
}
|
|
788
802
|
const Mn = () => {
|
|
789
|
-
const n = C(3), [e] =
|
|
803
|
+
const n = C(3), [e] = M();
|
|
790
804
|
let t, r;
|
|
791
805
|
n[0] !== e ? (t = () => de(e.registerNodeTransform(Y, (o) => {
|
|
792
|
-
const
|
|
793
|
-
|
|
794
|
-
|
|
806
|
+
const s = o.getChildren().filter(Dn);
|
|
807
|
+
s.length > 0 && e.update(() => {
|
|
808
|
+
s.forEach(An);
|
|
795
809
|
});
|
|
796
|
-
})), r = [e], n[0] = e, n[1] = t, n[2] = r) : (t = n[1], r = n[2]),
|
|
810
|
+
})), r = [e], n[0] = e, n[1] = t, n[2] = r) : (t = n[1], r = n[2]), j(t, r);
|
|
797
811
|
};
|
|
798
812
|
function Dn(n) {
|
|
799
813
|
return n.getType() === "comment";
|
|
@@ -824,13 +838,13 @@ const qn = (n) => {
|
|
|
824
838
|
if (!Array.isArray(r)) return t;
|
|
825
839
|
const o = r.length;
|
|
826
840
|
for (let i = 0; i < o; i += 1) {
|
|
827
|
-
const
|
|
828
|
-
if (
|
|
841
|
+
const s = r[i];
|
|
842
|
+
if (s.type === "comment") {
|
|
829
843
|
i !== o - 1 && (t += `
|
|
830
844
|
`);
|
|
831
845
|
continue;
|
|
832
846
|
}
|
|
833
|
-
t += Xe(
|
|
847
|
+
t += Xe(s), jn(s) && (t += `
|
|
834
848
|
`);
|
|
835
849
|
}
|
|
836
850
|
return t;
|
|
@@ -891,8 +905,8 @@ function Jn(n) {
|
|
|
891
905
|
const e = C(4), {
|
|
892
906
|
editorRef: t,
|
|
893
907
|
previousTextRef: r
|
|
894
|
-
} = n, [o] =
|
|
895
|
-
let i,
|
|
908
|
+
} = n, [o] = M();
|
|
909
|
+
let i, s;
|
|
896
910
|
return e[0] !== o || e[1] !== r ? (i = () => ({
|
|
897
911
|
setEditorValue: (a) => {
|
|
898
912
|
const c = o.parseEditorState(JSON.stringify(Un(a)));
|
|
@@ -900,15 +914,15 @@ function Jn(n) {
|
|
|
900
914
|
defaultSelection: "rootEnd"
|
|
901
915
|
});
|
|
902
916
|
}
|
|
903
|
-
}),
|
|
917
|
+
}), s = [o, r], e[0] = o, e[1] = r, e[2] = i, e[3] = s) : (i = e[2], s = e[3]), Et(t, i, s), null;
|
|
904
918
|
}
|
|
905
919
|
const Wn = (n) => n.key !== "Enter" ? !1 : !n.ctrlKey && !n.metaKey && !n.shiftKey && !n.altKey;
|
|
906
920
|
function zn(n) {
|
|
907
921
|
const e = C(4), {
|
|
908
922
|
onSubmit: t
|
|
909
|
-
} = n, [r] =
|
|
923
|
+
} = n, [r] = M();
|
|
910
924
|
let o, i;
|
|
911
|
-
return e[0] !== r || e[1] !== t ? (o = () => r.registerCommand(ft, (
|
|
925
|
+
return e[0] !== r || e[1] !== t ? (o = () => r.registerCommand(ft, (s) => Wn(s) ? (s.preventDefault(), t?.(), !0) : !1, pt), i = [r, t], e[0] = r, e[1] = t, e[2] = o, e[3] = i) : (o = e[2], i = e[3]), j(o, i), null;
|
|
912
926
|
}
|
|
913
927
|
const Ee = ["table", "connector"], Kn = (n) => n.sort((r, o) => Ee.indexOf(r.group) - Ee.indexOf(o.group)).map((r, o) => ({
|
|
914
928
|
...r,
|
|
@@ -923,27 +937,27 @@ function be(n) {
|
|
|
923
937
|
isSelected: r,
|
|
924
938
|
onClick: o,
|
|
925
939
|
onMouseEnter: i,
|
|
926
|
-
setRefElement:
|
|
940
|
+
setRefElement: s,
|
|
927
941
|
secondaryLabel: a,
|
|
928
942
|
primaryLabel: c,
|
|
929
|
-
tabIndex:
|
|
930
|
-
} = n,
|
|
931
|
-
let
|
|
932
|
-
e[0] !== c ? (
|
|
933
|
-
let
|
|
934
|
-
e[2] !== c ? (
|
|
935
|
-
let
|
|
936
|
-
e[4] !==
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
] }), e[4] =
|
|
943
|
+
tabIndex: u
|
|
944
|
+
} = n, m = u === void 0 ? -1 : u, _ = r ? "bg.muted" : "transparent";
|
|
945
|
+
let p;
|
|
946
|
+
e[0] !== c ? (p = /* @__PURE__ */ l(Z.Trigger, { children: /* @__PURE__ */ l(w, { mt: "1px", lineClamp: 1, textOverflow: "ellipsis", textStyle: "label/M/regular", children: c }) }), e[0] = c, e[1] = p) : p = e[1];
|
|
947
|
+
let d;
|
|
948
|
+
e[2] !== c ? (d = /* @__PURE__ */ l(Z.Positioner, { children: /* @__PURE__ */ l(Z.Content, { children: c }) }), e[2] = c, e[3] = d) : d = e[3];
|
|
949
|
+
let f;
|
|
950
|
+
e[4] !== p || e[5] !== d ? (f = /* @__PURE__ */ L(Z.Root, { children: [
|
|
951
|
+
p,
|
|
952
|
+
d
|
|
953
|
+
] }), e[4] = p, e[5] = d, e[6] = f) : f = e[6];
|
|
940
954
|
let g;
|
|
941
|
-
e[7] !== a ? (g = a && /* @__PURE__ */
|
|
942
|
-
let
|
|
943
|
-
return e[9] !== t || e[10] !== r || e[11] !== o || e[12] !== i || e[13] !==
|
|
944
|
-
|
|
955
|
+
e[7] !== a ? (g = a && /* @__PURE__ */ l(w, { lineClamp: 2, textOverflow: "ellipsis", textStyle: "label/S/regular", color: "fg.muted", children: a }), e[7] = a, e[8] = g) : g = e[8];
|
|
956
|
+
let x;
|
|
957
|
+
return e[9] !== t || e[10] !== r || e[11] !== o || e[12] !== i || e[13] !== s || e[14] !== _ || e[15] !== f || e[16] !== g || e[17] !== m ? (x = /* @__PURE__ */ L(V, { direction: "column", cursor: "pointer", gap: "2xs", padding: "2xs", paddingX: "sm", bg: _, tabIndex: m, ref: s, role: "option", "aria-selected": r, id: t, onMouseEnter: i, onClick: o, children: [
|
|
958
|
+
f,
|
|
945
959
|
g
|
|
946
|
-
] }), e[9] = t, e[10] = r, e[11] = o, e[12] = i, e[13] =
|
|
960
|
+
] }), e[9] = t, e[10] = r, e[11] = o, e[12] = i, e[13] = s, e[14] = _, e[15] = f, e[16] = g, e[17] = m, e[18] = x) : x = e[18], x;
|
|
947
961
|
}
|
|
948
962
|
const Vn = (n) => {
|
|
949
963
|
const e = C(12), {
|
|
@@ -952,37 +966,37 @@ const Vn = (n) => {
|
|
|
952
966
|
onSelectItem: o,
|
|
953
967
|
onMouseEnterItem: i
|
|
954
968
|
} = n, {
|
|
955
|
-
table:
|
|
969
|
+
table: s,
|
|
956
970
|
connector: a
|
|
957
|
-
} = Kn(t), c =
|
|
958
|
-
let
|
|
959
|
-
e[0] !== r ? (
|
|
971
|
+
} = Kn(t), c = s === void 0 ? [] : s, u = a === void 0 ? [] : a, m = [...c, ...u].length;
|
|
972
|
+
let _, p;
|
|
973
|
+
e[0] !== r ? (_ = () => {
|
|
960
974
|
document.getElementById(`typeahead-item-${r}`)?.scrollIntoView({
|
|
961
975
|
behavior: "instant",
|
|
962
976
|
block: "nearest"
|
|
963
977
|
});
|
|
964
|
-
},
|
|
965
|
-
const
|
|
966
|
-
let
|
|
967
|
-
e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
978
|
+
}, p = [r], e[0] = r, e[1] = _, e[2] = p) : (_ = e[1], p = e[2]), j(_, p);
|
|
979
|
+
const d = P, f = "1000", g = "absolute", x = "modal", S = "auto", N = "24rem";
|
|
980
|
+
let b;
|
|
981
|
+
e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = {
|
|
968
982
|
base: "100vw",
|
|
969
983
|
md: "264px"
|
|
970
|
-
}, e[3] =
|
|
984
|
+
}, e[3] = b) : b = e[3];
|
|
971
985
|
let T;
|
|
972
|
-
e[4] !==
|
|
973
|
-
const
|
|
974
|
-
/* @__PURE__ */
|
|
975
|
-
/* @__PURE__ */
|
|
976
|
-
] }),
|
|
977
|
-
/* @__PURE__ */
|
|
978
|
-
/* @__PURE__ */
|
|
986
|
+
e[4] !== m ? (T = !m && /* @__PURE__ */ l(w, { children: "No results" }), e[4] = m, e[5] = T) : T = e[5];
|
|
987
|
+
const E = !!c.length && /* @__PURE__ */ L(pe, { children: [
|
|
988
|
+
/* @__PURE__ */ l(w, { paddingTop: "xs", paddingBottom: "2xs", paddingX: "sm", color: "fg.muted", textStyle: "label/S/medium", children: "Tables" }),
|
|
989
|
+
/* @__PURE__ */ l(P, { children: c.map((h) => /* @__PURE__ */ l(be, { id: `typeahead-item-${h.index}`, isSelected: r === h.index, onClick: () => o(h, h.index), onMouseEnter: () => i(h.index), primaryLabel: h.name, secondaryLabel: h.description, setRefElement: h.setRefElement, tabIndex: -1 }, h.id)) })
|
|
990
|
+
] }), R = !!u.length && /* @__PURE__ */ L(pe, { children: [
|
|
991
|
+
/* @__PURE__ */ l(w, { paddingTop: "xs", paddingBottom: "2xs", paddingX: "sm", color: "fg.muted", textStyle: "label/S/medium", children: "Data Sources" }),
|
|
992
|
+
/* @__PURE__ */ l(P, { children: u.map((h) => /* @__PURE__ */ l(be, { id: `typeahead-item-${h.index}`, isSelected: r === h.index, onClick: () => o(h, h.index), onMouseEnter: () => i(h.index), primaryLabel: h.name, secondaryLabel: h.description, setRefElement: h.setRefElement, tabIndex: -1 }, h.id)) })
|
|
979
993
|
] });
|
|
980
|
-
let
|
|
981
|
-
return e[6] !==
|
|
994
|
+
let y;
|
|
995
|
+
return e[6] !== d || e[7] !== T || e[8] !== E || e[9] !== R || e[10] !== b ? (y = /* @__PURE__ */ L(d, { zIndex: f, position: g, layerStyle: x, overflow: S, maxHeight: N, minWidth: b, children: [
|
|
982
996
|
T,
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
] }), e[6] =
|
|
997
|
+
E,
|
|
998
|
+
R
|
|
999
|
+
] }), e[6] = d, e[7] = T, e[8] = E, e[9] = R, e[10] = b, e[11] = y) : y = e[11], y;
|
|
986
1000
|
}, Xn = (n, e) => n.filter((t) => t.name.replace(/ /g, "_").toLowerCase().includes(e.toLowerCase()));
|
|
987
1001
|
function Gn(n, e = []) {
|
|
988
1002
|
const t = e.map((r, o) => ({
|
|
@@ -1018,24 +1032,24 @@ function nr(n) {
|
|
|
1018
1032
|
} = n;
|
|
1019
1033
|
let r;
|
|
1020
1034
|
e[0] !== t ? (r = t === void 0 ? [] : t, e[0] = t, e[1] = r) : r = e[1];
|
|
1021
|
-
const o = r, [i,
|
|
1022
|
-
let
|
|
1023
|
-
e[2] !== a ? (
|
|
1035
|
+
const o = r, [i, s] = bt(null), [a] = M(), c = Gn(i, o);
|
|
1036
|
+
let u;
|
|
1037
|
+
e[2] !== a ? (u = (g, x, S) => {
|
|
1024
1038
|
a.update(() => {
|
|
1025
|
-
|
|
1039
|
+
x && (a.dispatchCommand(Ve, {
|
|
1026
1040
|
resourceId: g.id,
|
|
1027
1041
|
resourceType: g.group,
|
|
1028
1042
|
name: g.name,
|
|
1029
|
-
nodeToReplace:
|
|
1030
|
-
}),
|
|
1043
|
+
nodeToReplace: x
|
|
1044
|
+
}), S());
|
|
1031
1045
|
});
|
|
1032
|
-
}, e[2] = a, e[3] =
|
|
1033
|
-
const
|
|
1034
|
-
let
|
|
1035
|
-
e[4] !== c ? (
|
|
1036
|
-
const
|
|
1037
|
-
let
|
|
1038
|
-
return e[6] !==
|
|
1046
|
+
}, e[2] = a, e[3] = u) : u = e[3];
|
|
1047
|
+
const m = u, _ = or;
|
|
1048
|
+
let p;
|
|
1049
|
+
e[4] !== c ? (p = c.slice(0, tr), e[4] = c, e[5] = p) : p = e[5];
|
|
1050
|
+
const d = p;
|
|
1051
|
+
let f;
|
|
1052
|
+
return e[6] !== d || e[7] !== m ? (f = /* @__PURE__ */ l(Rt, { onQueryChange: s, onSelectOption: m, triggerFn: _, options: d, menuRenderFn: rr }), e[6] = d, e[7] = m, e[8] = f) : f = e[8], f;
|
|
1039
1053
|
}
|
|
1040
1054
|
function rr(n, e) {
|
|
1041
1055
|
const {
|
|
@@ -1044,10 +1058,10 @@ function rr(n, e) {
|
|
|
1044
1058
|
selectOptionAndCleanUp: o,
|
|
1045
1059
|
setHighlightedIndex: i
|
|
1046
1060
|
} = e;
|
|
1047
|
-
return n.current ? Nt.createPortal(/* @__PURE__ */
|
|
1048
|
-
i(a), o(
|
|
1049
|
-
}, onMouseEnterItem: (
|
|
1050
|
-
i(
|
|
1061
|
+
return n.current ? Nt.createPortal(/* @__PURE__ */ l(Vn, { options: t, selectedIndex: r, onSelectItem: (s, a) => {
|
|
1062
|
+
i(a), o(s);
|
|
1063
|
+
}, onMouseEnterItem: (s) => {
|
|
1064
|
+
i(s);
|
|
1051
1065
|
} }), n.current) : null;
|
|
1052
1066
|
}
|
|
1053
1067
|
function or(n) {
|
|
@@ -1118,19 +1132,19 @@ const sr = (n, e, t) => {
|
|
|
1118
1132
|
function lr(n) {
|
|
1119
1133
|
const e = C(4), {
|
|
1120
1134
|
onAddReference: t
|
|
1121
|
-
} = n, [r] =
|
|
1135
|
+
} = n, [r] = M();
|
|
1122
1136
|
let o, i;
|
|
1123
|
-
return e[0] !== r || e[1] !== t ? (o = () => de(r.registerCommand(Ve, (
|
|
1137
|
+
return e[0] !== r || e[1] !== t ? (o = () => de(r.registerCommand(Ve, (s) => {
|
|
1124
1138
|
const {
|
|
1125
1139
|
resourceId: a,
|
|
1126
1140
|
resourceType: c,
|
|
1127
|
-
name:
|
|
1128
|
-
nodeToReplace:
|
|
1129
|
-
} =
|
|
1141
|
+
name: u,
|
|
1142
|
+
nodeToReplace: m
|
|
1143
|
+
} = s;
|
|
1130
1144
|
return r.update(() => {
|
|
1131
|
-
sr(
|
|
1145
|
+
sr(m, a, u);
|
|
1132
1146
|
}), t?.(a, c), !0;
|
|
1133
|
-
}, ve)), i = [r, t], e[0] = r, e[1] = t, e[2] = o, e[3] = i) : (o = e[2], i = e[3]),
|
|
1147
|
+
}, ve)), i = [r, t], e[0] = r, e[1] = t, e[2] = o, e[3] = i) : (o = e[2], i = e[3]), j(o, i), null;
|
|
1134
1148
|
}
|
|
1135
1149
|
const cr = {
|
|
1136
1150
|
...ue,
|
|
@@ -1141,77 +1155,77 @@ const cr = {
|
|
|
1141
1155
|
defaultState: r,
|
|
1142
1156
|
debug: o,
|
|
1143
1157
|
isEditable: i,
|
|
1144
|
-
placeholder:
|
|
1158
|
+
placeholder: s
|
|
1145
1159
|
} = n, a = o === void 0 ? !1 : o, c = i === void 0 ? !0 : i, {
|
|
1146
|
-
onChange:
|
|
1147
|
-
onError:
|
|
1148
|
-
onSubmit:
|
|
1149
|
-
references:
|
|
1150
|
-
onAddReference:
|
|
1151
|
-
} = n,
|
|
1160
|
+
onChange: u,
|
|
1161
|
+
onError: m,
|
|
1162
|
+
onSubmit: _,
|
|
1163
|
+
references: p,
|
|
1164
|
+
onAddReference: d
|
|
1165
|
+
} = n, f = m === void 0 ? ur : m;
|
|
1152
1166
|
let g;
|
|
1153
|
-
t[0] !==
|
|
1154
|
-
const
|
|
1155
|
-
let
|
|
1156
|
-
t[2] !== r || t[3] !== c || t[4] !==
|
|
1167
|
+
t[0] !== p ? (g = p === void 0 ? [] : p, t[0] = p, t[1] = g) : g = t[1];
|
|
1168
|
+
const x = g;
|
|
1169
|
+
let S;
|
|
1170
|
+
t[2] !== r || t[3] !== c || t[4] !== f ? (S = {
|
|
1157
1171
|
namespace: "PROMPT_EDITOR",
|
|
1158
1172
|
nodes: ar,
|
|
1159
1173
|
editorState: r,
|
|
1160
1174
|
editable: c,
|
|
1161
|
-
onError:
|
|
1175
|
+
onError: f,
|
|
1162
1176
|
theme: cr
|
|
1163
|
-
}, t[2] = r, t[3] = c, t[4] =
|
|
1164
|
-
const
|
|
1165
|
-
let
|
|
1166
|
-
t[6] !== r ? (
|
|
1167
|
-
const T = St(
|
|
1168
|
-
let
|
|
1169
|
-
t[8] !==
|
|
1177
|
+
}, t[2] = r, t[3] = c, t[4] = f, t[5] = S) : S = t[5];
|
|
1178
|
+
const N = S;
|
|
1179
|
+
let b;
|
|
1180
|
+
t[6] !== r ? (b = Ge(r), t[6] = r, t[7] = b) : b = t[7];
|
|
1181
|
+
const T = St(b);
|
|
1182
|
+
let E;
|
|
1183
|
+
t[8] !== s ? (E = s ?? /* @__PURE__ */ L(w, { textStyle: "label/M/regular", color: "fg.subtle", pointerEvents: "none", position: "absolute", top: "0", children: [
|
|
1170
1184
|
"Type your query here or press ",
|
|
1171
|
-
/* @__PURE__ */
|
|
1185
|
+
/* @__PURE__ */ l(st, { color: "fg.subtle", children: "#" }),
|
|
1172
1186
|
" to add a reference."
|
|
1173
|
-
] }), t[8] =
|
|
1174
|
-
const
|
|
1175
|
-
let
|
|
1176
|
-
t[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
1177
|
-
let
|
|
1178
|
-
t[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
1187
|
+
] }), t[8] = s, t[9] = E) : E = t[9];
|
|
1188
|
+
const R = E;
|
|
1189
|
+
let y;
|
|
1190
|
+
t[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (y = /* @__PURE__ */ l(ht, {}), t[10] = y) : y = t[10];
|
|
1191
|
+
let h;
|
|
1192
|
+
t[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ l(Fe, { fullWidth: !0 }), t[11] = h) : h = t[11];
|
|
1179
1193
|
let O;
|
|
1180
|
-
t[12] !==
|
|
1194
|
+
t[12] !== R ? (O = /* @__PURE__ */ l(De, { contentEditable: h, placeholder: R, ErrorBoundary: Le }), t[12] = R, t[13] = O) : O = t[13];
|
|
1181
1195
|
let $;
|
|
1182
|
-
t[14] !==
|
|
1196
|
+
t[14] !== u ? ($ = /* @__PURE__ */ l(Me, { ignoreSelectionChange: !0, ignoreHistoryMergeTagChange: !1, onChange: (fe) => {
|
|
1183
1197
|
fe.read(() => {
|
|
1184
1198
|
const tt = we(), oe = qn(tt);
|
|
1185
|
-
oe !== T.current && (T.current = oe,
|
|
1199
|
+
oe !== T.current && (T.current = oe, u?.(oe, fe.toJSON()));
|
|
1186
1200
|
});
|
|
1187
|
-
} }), t[14] =
|
|
1188
|
-
let
|
|
1189
|
-
t[16] !== e ? (
|
|
1190
|
-
let
|
|
1191
|
-
t[18] !== c ? (
|
|
1192
|
-
let U;
|
|
1193
|
-
t[20] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (U = /* @__PURE__ */ s(Fn, {}), t[20] = U) : U = t[20];
|
|
1201
|
+
} }), t[14] = u, t[15] = $) : $ = t[15];
|
|
1202
|
+
let I;
|
|
1203
|
+
t[16] !== e ? (I = /* @__PURE__ */ l(Jn, { editorRef: e, previousTextRef: T }), t[16] = e, t[17] = I) : I = t[17];
|
|
1204
|
+
let v;
|
|
1205
|
+
t[18] !== c ? (v = /* @__PURE__ */ l(ze, { isEditable: c }), t[18] = c, t[19] = v) : v = t[19];
|
|
1194
1206
|
let D;
|
|
1195
|
-
t[
|
|
1196
|
-
let
|
|
1197
|
-
t[
|
|
1198
|
-
let
|
|
1199
|
-
t[
|
|
1207
|
+
t[20] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (D = /* @__PURE__ */ l(Fn, {}), t[20] = D) : D = t[20];
|
|
1208
|
+
let A;
|
|
1209
|
+
t[21] !== _ ? (A = /* @__PURE__ */ l(zn, { onSubmit: _ }), t[21] = _, t[22] = A) : A = t[22];
|
|
1210
|
+
let F;
|
|
1211
|
+
t[23] !== x ? (F = /* @__PURE__ */ l(nr, { items: x }), t[23] = x, t[24] = F) : F = t[24];
|
|
1212
|
+
let q;
|
|
1213
|
+
t[25] !== d ? (q = /* @__PURE__ */ l(lr, { onAddReference: d }), t[25] = d, t[26] = q) : q = t[26];
|
|
1200
1214
|
let z;
|
|
1201
|
-
t[27] !== a ? (z = a ? /* @__PURE__ */
|
|
1215
|
+
t[27] !== a ? (z = a ? /* @__PURE__ */ l(Ke, {}) : "", t[27] = a, t[28] = z) : z = t[28];
|
|
1202
1216
|
let Q;
|
|
1203
|
-
return t[29] !==
|
|
1204
|
-
|
|
1217
|
+
return t[29] !== N || t[30] !== O || t[31] !== $ || t[32] !== I || t[33] !== v || t[34] !== A || t[35] !== F || t[36] !== q || t[37] !== z ? (Q = /* @__PURE__ */ l(V, { direction: "column", justifyContent: "space-between", width: "100%", position: "relative", children: /* @__PURE__ */ L(Pe, { initialConfig: N, children: [
|
|
1218
|
+
y,
|
|
1205
1219
|
O,
|
|
1206
1220
|
$,
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
U,
|
|
1221
|
+
I,
|
|
1222
|
+
v,
|
|
1210
1223
|
D,
|
|
1211
|
-
|
|
1212
|
-
|
|
1224
|
+
A,
|
|
1225
|
+
F,
|
|
1226
|
+
q,
|
|
1213
1227
|
z
|
|
1214
|
-
] }) }), t[29] =
|
|
1228
|
+
] }) }), t[29] = N, t[30] = O, t[31] = $, t[32] = I, t[33] = v, t[34] = A, t[35] = F, t[36] = q, t[37] = z, t[38] = Q) : Q = t[38], Q;
|
|
1215
1229
|
}, Vr = yt(dr);
|
|
1216
1230
|
function ur() {
|
|
1217
1231
|
}
|
|
@@ -1219,22 +1233,22 @@ function mr(n) {
|
|
|
1219
1233
|
const e = C(5), {
|
|
1220
1234
|
value: t,
|
|
1221
1235
|
onUpdate: r
|
|
1222
|
-
} = n, [o] =
|
|
1223
|
-
let i,
|
|
1236
|
+
} = n, [o] = M();
|
|
1237
|
+
let i, s;
|
|
1224
1238
|
return e[0] !== o || e[1] !== r || e[2] !== t ? (i = () => {
|
|
1225
1239
|
o && o.update(() => r(t), {
|
|
1226
1240
|
tag: "history-merge"
|
|
1227
1241
|
});
|
|
1228
|
-
},
|
|
1242
|
+
}, s = [t, o, r], e[0] = o, e[1] = r, e[2] = t, e[3] = i, e[4] = s) : (i = e[3], s = e[4]), j(i, s), null;
|
|
1229
1243
|
}
|
|
1230
|
-
class
|
|
1244
|
+
class J extends G {
|
|
1231
1245
|
__href;
|
|
1232
1246
|
__label;
|
|
1233
1247
|
static getType() {
|
|
1234
1248
|
return "reference-link";
|
|
1235
1249
|
}
|
|
1236
1250
|
static clone(e) {
|
|
1237
|
-
return new
|
|
1251
|
+
return new J(e.__href, e.__label, e.__key);
|
|
1238
1252
|
}
|
|
1239
1253
|
constructor(e, t, r) {
|
|
1240
1254
|
super(r), this.__href = e, this.__label = t;
|
|
@@ -1250,7 +1264,7 @@ class j extends G {
|
|
|
1250
1264
|
}
|
|
1251
1265
|
exportJSON() {
|
|
1252
1266
|
return {
|
|
1253
|
-
type:
|
|
1267
|
+
type: J.getType(),
|
|
1254
1268
|
version: 1,
|
|
1255
1269
|
href: this.__href,
|
|
1256
1270
|
label: this.__label
|
|
@@ -1260,28 +1274,28 @@ class j extends G {
|
|
|
1260
1274
|
return et(e.href, e.label);
|
|
1261
1275
|
}
|
|
1262
1276
|
decorate(e, t) {
|
|
1263
|
-
const r = this.__href, i = r.split("/").pop() || "unknown",
|
|
1264
|
-
return /* @__PURE__ */
|
|
1265
|
-
if (
|
|
1277
|
+
const r = this.__href, i = r.split("/").pop() || "unknown", s = /^https?:\/\//i.test(r), a = /^#?\$PROJECT\//i.test(r);
|
|
1278
|
+
return /* @__PURE__ */ l(P, { width: "fit-content", display: "inline-block", children: /* @__PURE__ */ l(qe, { fileName: i, onSelect: () => {
|
|
1279
|
+
if (s)
|
|
1266
1280
|
window.open(r, "_blank", "noopener,noreferrer");
|
|
1267
1281
|
else if (a) {
|
|
1268
|
-
const c = r.replace(/^#?\$PROJECT\//i, ""),
|
|
1282
|
+
const c = r.replace(/^#?\$PROJECT\//i, ""), u = new CustomEvent("ui:open-project-file", {
|
|
1269
1283
|
detail: c
|
|
1270
1284
|
});
|
|
1271
|
-
window.dispatchEvent(
|
|
1285
|
+
window.dispatchEvent(u);
|
|
1272
1286
|
} else
|
|
1273
1287
|
window.location.assign(r);
|
|
1274
1288
|
} }) });
|
|
1275
1289
|
}
|
|
1276
1290
|
}
|
|
1277
1291
|
function et(n, e) {
|
|
1278
|
-
return new
|
|
1292
|
+
return new J(n, e);
|
|
1279
1293
|
}
|
|
1280
1294
|
function fr(n) {
|
|
1281
|
-
return n instanceof
|
|
1295
|
+
return n instanceof J;
|
|
1282
1296
|
}
|
|
1283
1297
|
const ye = /\{\{\s*link\((['"])([^'"\s]+)\1\)\s*\}\}/, pr = {
|
|
1284
|
-
dependencies: [
|
|
1298
|
+
dependencies: [J],
|
|
1285
1299
|
export: (n) => {
|
|
1286
1300
|
if (fr(n)) {
|
|
1287
1301
|
const e = n.__href, t = n.__label ?? e;
|
|
@@ -1298,62 +1312,63 @@ const ye = /\{\{\s*link\((['"])([^'"\s]+)\1\)\s*\}\}/, pr = {
|
|
|
1298
1312
|
type: "text-match"
|
|
1299
1313
|
}, ce = [...Ne, ...We, Be, Ue, pr];
|
|
1300
1314
|
function Xr(n) {
|
|
1301
|
-
const e = C(
|
|
1315
|
+
const e = C(32), {
|
|
1302
1316
|
debug: t,
|
|
1303
1317
|
defaultState: r,
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1318
|
+
fullWidth: o,
|
|
1319
|
+
isEditable: i,
|
|
1320
|
+
onChange: s
|
|
1321
|
+
} = n, a = t === void 0 ? !1 : t, c = r === void 0 ? "" : r, u = o === void 0 ? !1 : o, m = i === void 0 ? !1 : i;
|
|
1322
|
+
let _;
|
|
1323
|
+
e[0] !== c ? (_ = fn(c), e[0] = c, e[1] = _) : _ = e[1];
|
|
1309
1324
|
const {
|
|
1310
|
-
frontmatter:
|
|
1311
|
-
body:
|
|
1312
|
-
} =
|
|
1313
|
-
let u;
|
|
1314
|
-
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = [Oe, Se, H, ke, Te, Re, ae, K, q, B, j], e[2] = u) : u = e[2];
|
|
1315
|
-
let m;
|
|
1316
|
-
e[3] !== f ? (m = () => Ce(f, ce, void 0, !1), e[3] = f, e[4] = m) : m = e[4];
|
|
1325
|
+
frontmatter: p,
|
|
1326
|
+
body: d
|
|
1327
|
+
} = _, f = m && !!s;
|
|
1317
1328
|
let g;
|
|
1318
|
-
e[
|
|
1329
|
+
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g = [Oe, Se, U, ke, Te, Re, ae, K, B, W, J], e[2] = g) : g = e[2];
|
|
1330
|
+
let x;
|
|
1331
|
+
e[3] !== d ? (x = () => Ce(d, ce, void 0, !1), e[3] = d, e[4] = x) : x = e[4];
|
|
1332
|
+
let S;
|
|
1333
|
+
e[5] !== m || e[6] !== x ? (S = {
|
|
1319
1334
|
namespace: "RICH_MESSAGE",
|
|
1320
|
-
nodes:
|
|
1321
|
-
editorState:
|
|
1335
|
+
nodes: g,
|
|
1336
|
+
editorState: x,
|
|
1322
1337
|
onError: hr,
|
|
1323
|
-
editable:
|
|
1338
|
+
editable: m,
|
|
1324
1339
|
theme: ue
|
|
1325
|
-
}, e[5] =
|
|
1326
|
-
const
|
|
1327
|
-
let E;
|
|
1328
|
-
e[8] !== f ? (E = /* @__PURE__ */ s(mr, { value: f, onUpdate: _r }), e[8] = f, e[9] = E) : E = e[9];
|
|
1329
|
-
let R, S, T, x, N;
|
|
1330
|
-
e[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (x = /* @__PURE__ */ s(Ot, {}), N = /* @__PURE__ */ s(kt, {}), R = /* @__PURE__ */ s(Ct, {}), S = /* @__PURE__ */ s(dn, {}), T = /* @__PURE__ */ s(rn, {}), e[10] = R, e[11] = S, e[12] = T, e[13] = x, e[14] = N) : (R = e[10], S = e[11], T = e[12], x = e[13], N = e[14]);
|
|
1340
|
+
}, e[5] = m, e[6] = x, e[7] = S) : S = e[7];
|
|
1341
|
+
const N = S;
|
|
1331
1342
|
let b;
|
|
1332
|
-
e[
|
|
1333
|
-
let
|
|
1334
|
-
e[
|
|
1335
|
-
M.read(() => {
|
|
1336
|
-
const U = we(), D = nt(ce, U);
|
|
1337
|
-
i?.(h + D);
|
|
1338
|
-
});
|
|
1339
|
-
} }) : null, e[16] = h, e[17] = i, e[18] = _, e[19] = p) : p = e[19];
|
|
1343
|
+
e[8] !== d ? (b = /* @__PURE__ */ l(mr, { value: d, onUpdate: _r }), e[8] = d, e[9] = b) : b = e[9];
|
|
1344
|
+
let T, E, R, y, h;
|
|
1345
|
+
e[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ l(Ot, {}), T = /* @__PURE__ */ l(kt, {}), E = /* @__PURE__ */ l(Ct, {}), R = /* @__PURE__ */ l(dn, {}), y = /* @__PURE__ */ l(rn, {}), e[10] = T, e[11] = E, e[12] = R, e[13] = y, e[14] = h) : (T = e[10], E = e[11], R = e[12], y = e[13], h = e[14]);
|
|
1340
1346
|
let O;
|
|
1341
|
-
e[
|
|
1347
|
+
e[15] !== u ? (O = /* @__PURE__ */ l(De, { contentEditable: /* @__PURE__ */ l(Fe, { fullWidth: u }), ErrorBoundary: Le }), e[15] = u, e[16] = O) : O = e[16];
|
|
1342
1348
|
let $;
|
|
1343
|
-
e[
|
|
1344
|
-
|
|
1345
|
-
|
|
1349
|
+
e[17] !== p || e[18] !== s || e[19] !== f ? ($ = f ? /* @__PURE__ */ l(Me, { ignoreSelectionChange: !0, ignoreHistoryMergeTagChange: !1, onChange: (A) => {
|
|
1350
|
+
A.read(() => {
|
|
1351
|
+
const F = we(), q = nt(ce, F);
|
|
1352
|
+
s?.(p + q);
|
|
1353
|
+
});
|
|
1354
|
+
} }) : null, e[17] = p, e[18] = s, e[19] = f, e[20] = $) : $ = e[20];
|
|
1355
|
+
let I;
|
|
1356
|
+
e[21] !== m ? (I = /* @__PURE__ */ l(ze, { isEditable: m }), e[21] = m, e[22] = I) : I = e[22];
|
|
1357
|
+
let v;
|
|
1358
|
+
e[23] !== a ? (v = a && /* @__PURE__ */ l(Ke, {}), e[23] = a, e[24] = v) : v = e[24];
|
|
1359
|
+
let D;
|
|
1360
|
+
return e[25] !== N || e[26] !== O || e[27] !== $ || e[28] !== I || e[29] !== v || e[30] !== b ? (D = /* @__PURE__ */ l(V, { className: "rich-text", "data-rich-message": "true", justifyContent: "space-between", width: "100%", maxWidth: "100%", height: "100%", position: "relative", direction: "column", overflow: "hidden", children: /* @__PURE__ */ L(Pe, { initialConfig: N, children: [
|
|
1361
|
+
b,
|
|
1362
|
+
h,
|
|
1363
|
+
T,
|
|
1346
1364
|
E,
|
|
1347
|
-
x,
|
|
1348
|
-
N,
|
|
1349
1365
|
R,
|
|
1350
|
-
|
|
1351
|
-
T,
|
|
1352
|
-
b,
|
|
1353
|
-
p,
|
|
1366
|
+
y,
|
|
1354
1367
|
O,
|
|
1355
|
-
|
|
1356
|
-
|
|
1368
|
+
$,
|
|
1369
|
+
I,
|
|
1370
|
+
v
|
|
1371
|
+
] }) }), e[25] = N, e[26] = O, e[27] = $, e[28] = I, e[29] = v, e[30] = b, e[31] = D) : D = e[31], D;
|
|
1357
1372
|
}
|
|
1358
1373
|
function _r(n) {
|
|
1359
1374
|
Ce(n, ce, void 0, !1);
|
|
@@ -1379,4 +1394,4 @@ export {
|
|
|
1379
1394
|
qe as h,
|
|
1380
1395
|
fn as s
|
|
1381
1396
|
};
|
|
1382
|
-
//# sourceMappingURL=rich-message-
|
|
1397
|
+
//# sourceMappingURL=rich-message-C0_i-4Ux.js.map
|