@pstdio/ui 0.5.0 → 0.5.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/{MermaidComponent-DwEDwpo2.js → MermaidComponent-DDCxR-Gs.js} +2 -2
- package/dist/{MermaidComponent-DwEDwpo2.js.map → MermaidComponent-DDCxR-Gs.js.map} +1 -1
- package/dist/chat-ui.js +1358 -877
- package/dist/chat-ui.js.map +1 -1
- package/dist/components/app-shell/app-shell.d.ts +1 -0
- package/dist/components/app-shell/command-palette.d.ts +16 -0
- package/dist/components/app-shell/file-tree.d.ts +7 -0
- package/dist/components/app-shell/mock-chat.d.ts +2 -0
- package/dist/components/app-shell/mock-data.d.ts +37 -0
- package/dist/components/app-shell/pages/project-list-page.d.ts +7 -0
- package/dist/components/app-shell/pages/sessions-page.d.ts +6 -0
- package/dist/components/app-shell/pages/settings-page.d.ts +5 -0
- package/dist/components/app-shell/pages/ticket-details-page.d.ts +7 -0
- package/dist/components/app-shell/pages/tickets-page.d.ts +7 -0
- package/dist/components/app-shell/pages/workspace-page.d.ts +1 -0
- package/dist/components/app-shell/resizable-panel.d.ts +13 -0
- package/dist/components/chat-ui/agent-types.d.ts +4 -0
- package/dist/components/chat-ui/components/ai-message.d.ts +7 -5
- package/dist/components/chat-ui/components/chat-input-question-prompt.d.ts +33 -0
- package/dist/components/chat-ui/components/chat-input.d.ts +4 -1
- package/dist/components/chat-ui/components/chat-panel-sticky-user-message.d.ts +9 -0
- package/dist/components/chat-ui/components/chat-panel.d.ts +4 -1
- package/dist/components/chat-ui/components/message-parts-renderer.d.ts +1 -0
- package/dist/components/chat-ui/components/timeline-tool-blocks.d.ts +14 -0
- package/dist/components/chat-ui/components/timeline.d.ts +22 -0
- package/dist/components/chat-ui/components/tool-invocation-timeline.d.ts +2 -1
- package/dist/components/chat-ui/index.d.ts +1 -0
- package/dist/components/chat-ui/mocks/library/index.d.ts +10 -0
- package/dist/components/chat-ui/tool-rendering/build-timeline.d.ts +2 -2
- package/dist/components/chat-ui/tool-rendering/default-renderers.d.ts +2 -0
- package/dist/components/chat-ui/tool-rendering/question-renderer.d.ts +10 -0
- package/dist/components/chat-ui/tool-rendering/shared.d.ts +1 -1
- package/dist/components/chat-ui/tool-rendering/todowrite-renderer.d.ts +10 -0
- package/dist/components/chat-ui/utils/get-icon.d.ts +2 -0
- package/dist/components/chat-ui/utils/tool-name.d.ts +2 -0
- package/dist/components/content-placeholder.d.ts +1 -0
- package/dist/components/header.d.ts +7 -0
- package/dist/components/list-row/list-row-actions.d.ts +10 -0
- package/dist/components/list-row/list-row.d.ts +2 -0
- package/dist/components/list-row/list-row.types.d.ts +85 -0
- package/dist/components/{sidebar-tree → list-row}/searchable-action-menu.d.ts +2 -2
- package/dist/components/panel-header.constants.d.ts +1 -1
- package/dist/components/radio.d.ts +8 -0
- package/dist/components/resource-context-menu.d.ts +1 -2
- package/dist/components/sidebar/sidebar-project-menu.d.ts +0 -3
- package/dist/components/sidebar/sidebar.store.d.ts +2 -0
- package/dist/components/sidebar/sidebar.types.d.ts +10 -4
- package/dist/components/tickets/ticket-board.d.ts +6 -2
- package/dist/components/tickets/ticket-list.d.ts +3 -0
- package/dist/components/tickets/tickets-workspace.d.ts +3 -0
- package/dist/components/tickets/workspace-helpers.d.ts +6 -1
- package/dist/components/tree-list/tree-list.d.ts +18 -0
- package/dist/components/tree-list/tree-list.types.d.ts +29 -0
- package/dist/index.d.ts +10 -5
- package/dist/index.js +2621 -2459
- package/dist/index.js.map +1 -1
- package/dist/radio-C42qncrD.js +236 -0
- package/dist/radio-C42qncrD.js.map +1 -0
- package/dist/{rich-message-BVRk9BSD.js → rich-message-DeJwzVeV.js} +364 -355
- package/dist/rich-message-DeJwzVeV.js.map +1 -0
- package/dist/rich-text.js +2 -2
- package/dist/style.css +1 -1
- package/dist/theme/custom/index.d.ts +3 -0
- package/dist/theme/custom/monokai.json.d.ts +80 -0
- package/dist/theme/index.d.ts +1 -0
- package/dist/theme/primitives/colors.d.ts +6 -0
- package/dist/theme/recipes/button.d.ts +34 -0
- package/dist/theme/recipes/kbd.d.ts +41 -0
- package/dist/theme/tokens/colors.d.ts +18 -6
- package/dist/{theme-D0VvFB1Y.js → theme-Dq4r3aRE.js} +247 -135
- package/dist/theme-Dq4r3aRE.js.map +1 -0
- package/dist/theme.js +4 -2
- package/dist/utils/apply-theme-preference.d.ts +20 -2
- package/dist/utils/theme-preference.d.ts +4 -2
- package/package.json +1 -2
- package/dist/components/chat-ui/tool-rendering/todo-write-renderer.d.ts +0 -2
- package/dist/components/drawer-inline.d.ts +0 -24
- package/dist/components/file-selector.d.ts +0 -12
- package/dist/components/menu-item.d.ts +0 -42
- package/dist/components/pstdio-logo.d.ts +0 -2
- package/dist/components/sidebar-tree/sidebar-node-content.d.ts +0 -9
- package/dist/components/sidebar-tree/sidebar-tree.d.ts +0 -13
- package/dist/components/sidebar-tree/sidebar-tree.types.d.ts +0 -68
- package/dist/empty-state-yGspgiPl.js +0 -185
- package/dist/empty-state-yGspgiPl.js.map +0 -1
- package/dist/rich-message-BVRk9BSD.js.map +0 -1
- package/dist/theme-D0VvFB1Y.js.map +0 -1
|
@@ -1,59 +1,59 @@
|
|
|
1
|
-
import { CodeNode as ue, CodeHighlightNode as
|
|
2
|
-
import { AutoLinkNode as me, $createAutoLinkNode as mt, $isAutoLinkNode as ft, LinkNode as
|
|
3
|
-
import { ListNode as
|
|
4
|
-
import { CHECK_LIST as ht, TRANSFORMERS as
|
|
5
|
-
import { QuoteNode as Pe, HeadingNode as
|
|
1
|
+
import { CodeNode as ue, CodeHighlightNode as Ie, registerCodeHighlighting as ut } from "@lexical/code";
|
|
2
|
+
import { AutoLinkNode as me, $createAutoLinkNode as mt, $isAutoLinkNode as ft, LinkNode as Oe } from "@lexical/link";
|
|
3
|
+
import { ListNode as ke, ListItemNode as $e } from "@lexical/list";
|
|
4
|
+
import { CHECK_LIST as ht, TRANSFORMERS as ve, $convertFromMarkdownString as we, $convertToMarkdownString as pt } from "@lexical/markdown";
|
|
5
|
+
import { QuoteNode as Pe, HeadingNode as Le } from "@lexical/rich-text";
|
|
6
6
|
import { jsx as l, jsxs as F, Fragment as Ee } from "react/jsx-runtime";
|
|
7
|
-
import { chakra as
|
|
8
|
-
import { DecoratorNode as Y, $applyNodeReplacement as bt, ElementNode as
|
|
7
|
+
import { chakra as se, Box as w, Text as P, Spacer as _t, IconButton as gt, Table as B, Textarea as Et, Tooltip as ee, Flex as fe, Kbd as xt } from "@chakra-ui/react";
|
|
8
|
+
import { DecoratorNode as Y, $applyNodeReplacement as bt, ElementNode as Me, TextNode as te, $createTextNode as he, $nodesOfType as St, createCommand as I, isHTMLElement as yt, $createParagraphNode as le, COMMAND_PRIORITY_LOW as Ae, $getSelection as Tt, $isRangeSelection as Rt, $isElementNode as Nt, KEY_DOWN_COMMAND as Ct, COMMAND_PRIORITY_HIGH as It, $getRoot as De } from "lexical";
|
|
9
9
|
import { c as C } from "react/compiler-runtime";
|
|
10
10
|
import { MarkNode as Ot } from "@lexical/mark";
|
|
11
|
-
import { LexicalComposer as
|
|
12
|
-
import { LexicalErrorBoundary as
|
|
11
|
+
import { LexicalComposer as Fe } from "@lexical/react/LexicalComposer";
|
|
12
|
+
import { LexicalErrorBoundary as He } from "@lexical/react/LexicalErrorBoundary";
|
|
13
13
|
import { HistoryPlugin as kt } from "@lexical/react/LexicalHistoryPlugin";
|
|
14
|
-
import { OnChangePlugin as
|
|
15
|
-
import { RichTextPlugin as
|
|
14
|
+
import { OnChangePlugin as qe } from "@lexical/react/LexicalOnChangePlugin";
|
|
15
|
+
import { RichTextPlugin as ze } from "@lexical/react/LexicalRichTextPlugin";
|
|
16
16
|
import * as $t from "react";
|
|
17
|
-
import { Suspense as
|
|
17
|
+
import { Suspense as Be, lazy as vt, useEffect as q, useImperativeHandle as wt, useState as Pt, forwardRef as Lt, useRef as Mt } from "react";
|
|
18
18
|
import { useLexicalComposerContext as H } from "@lexical/react/LexicalComposerContext";
|
|
19
19
|
import { $setBlocksType as At } from "@lexical/selection";
|
|
20
|
-
import { addClassNamesToElement as
|
|
20
|
+
import { addClassNamesToElement as We, mergeRegister as pe } from "@lexical/utils";
|
|
21
21
|
import { LexicalTypeaheadMenuPlugin as Dt } from "@lexical/react/LexicalTypeaheadMenuPlugin";
|
|
22
22
|
import * as Ft from "react-dom";
|
|
23
23
|
import { ClickableLinkPlugin as Ht } from "@lexical/react/LexicalClickableLinkPlugin";
|
|
24
24
|
import { HorizontalRulePlugin as qt } from "@lexical/react/LexicalHorizontalRulePlugin";
|
|
25
|
-
import { LinkPlugin as
|
|
26
|
-
import { ListPlugin as
|
|
27
|
-
import { TabIndentationPlugin as
|
|
28
|
-
import { ContentEditable as
|
|
25
|
+
import { LinkPlugin as zt } from "@lexical/react/LexicalLinkPlugin";
|
|
26
|
+
import { ListPlugin as Bt } from "@lexical/react/LexicalListPlugin";
|
|
27
|
+
import { TabIndentationPlugin as Wt } from "@lexical/react/LexicalTabIndentationPlugin";
|
|
28
|
+
import { ContentEditable as Ut } from "@lexical/react/LexicalContentEditable";
|
|
29
29
|
import { S as Jt, g as jt, T as Kt } from "./get-file-type-icon-Bwqf1WXA.js";
|
|
30
30
|
import Vt from "katex";
|
|
31
31
|
import { TreeView as Xt } from "@lexical/react/LexicalTreeView";
|
|
32
32
|
import { X as Gt } from "lucide-react";
|
|
33
|
-
const Yt =
|
|
34
|
-
function
|
|
33
|
+
const Yt = se(Ut);
|
|
34
|
+
function Ue(n) {
|
|
35
35
|
const e = C(11), {
|
|
36
36
|
onRef: t,
|
|
37
37
|
fullWidth: r,
|
|
38
38
|
padding: o,
|
|
39
39
|
isRichMessage: i,
|
|
40
40
|
scrollable: s
|
|
41
|
-
} = n, c = r === void 0 ? !1 : r, a = i === void 0 ? !1 : i,
|
|
42
|
-
let
|
|
43
|
-
e[0] !== u || e[1] !==
|
|
41
|
+
} = n, c = r === void 0 ? !1 : r, a = i === void 0 ? !1 : i, h = s === void 0 ? !0 : s, u = c ? "100%" : "720px", p = c ? "0" : "auto";
|
|
42
|
+
let f;
|
|
43
|
+
e[0] !== u || e[1] !== p ? (f = /* @__PURE__ */ l(Yt, { "data-testid": "content-editable", height: "fit-content", minH: "100%", width: "100%", maxWidth: u, marginInline: p, textStyle: "paragraph/M/regular", fontSize: "calc(var(--chakra-font-sizes-md) * var(--rich-text-font-scale))", position: "relative", outline: "none" }), e[0] = u, e[1] = p, e[2] = f) : f = e[2];
|
|
44
44
|
let d;
|
|
45
|
-
e[3] !== t || e[4] !== o || e[5] !==
|
|
46
|
-
const
|
|
47
|
-
if (!
|
|
48
|
-
return
|
|
49
|
-
const
|
|
50
|
-
let
|
|
51
|
-
e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
45
|
+
e[3] !== t || e[4] !== o || e[5] !== f ? (d = /* @__PURE__ */ l(w, { ref: t, width: "100%", minH: "100%", padding: o, children: f }), e[3] = t, e[4] = o, e[5] = f, e[6] = d) : d = e[6];
|
|
46
|
+
const m = d;
|
|
47
|
+
if (!h)
|
|
48
|
+
return m;
|
|
49
|
+
const x = a ? "true" : void 0;
|
|
50
|
+
let g;
|
|
51
|
+
e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g = {
|
|
52
52
|
width: "100%",
|
|
53
53
|
minH: "100%"
|
|
54
|
-
}, e[7] =
|
|
55
|
-
let
|
|
56
|
-
return e[8] !==
|
|
54
|
+
}, e[7] = g) : g = e[7];
|
|
55
|
+
let _;
|
|
56
|
+
return e[8] !== m || e[9] !== x ? (_ = /* @__PURE__ */ l(Jt, { className: "rich-text", "data-rich-message": x, height: "100%", minH: "0", position: "relative", contentProps: g, children: m }), e[8] = m, e[9] = x, e[10] = _) : _ = e[10], _;
|
|
57
57
|
}
|
|
58
58
|
const Qt = {
|
|
59
59
|
sm: {
|
|
@@ -93,7 +93,7 @@ const Qt = {
|
|
|
93
93
|
bg: "var(--schub-accent-subtle)"
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
|
-
}, en = "md", tn = "neutral",
|
|
96
|
+
}, en = "md", tn = "neutral", Je = (n) => {
|
|
97
97
|
const e = C(39);
|
|
98
98
|
let t, r, o, i, s, c, a;
|
|
99
99
|
e[0] !== n ? ({
|
|
@@ -105,24 +105,24 @@ const Qt = {
|
|
|
105
105
|
icon: r,
|
|
106
106
|
...s
|
|
107
107
|
} = n, e[0] = n, e[1] = t, e[2] = r, e[3] = o, e[4] = i, e[5] = s, e[6] = c, e[7] = a) : (t = e[1], r = e[2], o = e[3], i = e[4], s = e[5], c = e[6], a = e[7]);
|
|
108
|
-
const
|
|
109
|
-
let
|
|
110
|
-
e[8] !== t ? (
|
|
111
|
-
const
|
|
112
|
-
let
|
|
113
|
-
e[10] !== t || e[11] !== i ? (
|
|
108
|
+
const h = c === void 0 ? en : c, u = a === void 0 ? tn : a;
|
|
109
|
+
let p;
|
|
110
|
+
e[8] !== t ? (p = jt(t), e[8] = t, e[9] = p) : p = e[9];
|
|
111
|
+
const f = p, d = Qt[h], m = Zt[u], x = i ? "pointer" : "default";
|
|
112
|
+
let g;
|
|
113
|
+
e[10] !== t || e[11] !== i ? (g = (O) => {
|
|
114
114
|
O.stopPropagation(), i?.(t);
|
|
115
|
-
}, e[10] = t, e[11] = i, e[12] =
|
|
116
|
-
let
|
|
117
|
-
e[13] !==
|
|
115
|
+
}, e[10] = t, e[11] = i, e[12] = g) : g = e[12];
|
|
116
|
+
let _;
|
|
117
|
+
e[13] !== f || e[14] !== r || e[15] !== d.iconSize ? (_ = r ?? /* @__PURE__ */ l(f, { size: d.iconSize }), e[13] = f, e[14] = r, e[15] = d.iconSize, e[16] = _) : _ = e[16];
|
|
118
118
|
let T;
|
|
119
|
-
e[17] !==
|
|
119
|
+
e[17] !== _ ? (T = /* @__PURE__ */ l(se.span, { mr: "xs", display: "inline-flex", children: _ }), e[17] = _, e[18] = T) : T = e[18];
|
|
120
120
|
let y;
|
|
121
121
|
e[19] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (y = {
|
|
122
122
|
base: "14rem"
|
|
123
123
|
}, e[19] = y) : y = e[19];
|
|
124
124
|
let R;
|
|
125
|
-
e[20] !== t || e[21] !== d.textStyle ? (R = /* @__PURE__ */ l(
|
|
125
|
+
e[20] !== t || e[21] !== d.textStyle ? (R = /* @__PURE__ */ l(P, { maxW: y, textOverflow: "ellipsis", whiteSpace: "nowrap", overflow: "hidden", textStyle: d.textStyle, children: t }), e[20] = t, e[21] = d.textStyle, e[22] = R) : R = e[22];
|
|
126
126
|
let b;
|
|
127
127
|
e[23] !== t || e[24] !== R ? (b = /* @__PURE__ */ l(Kt, { content: t, children: R }), e[23] = t, e[24] = R, e[25] = b) : b = e[25];
|
|
128
128
|
let N;
|
|
@@ -133,22 +133,22 @@ const Qt = {
|
|
|
133
133
|
}, onClick: (O) => {
|
|
134
134
|
O.stopPropagation(), o?.(t);
|
|
135
135
|
}, children: /* @__PURE__ */ l(Gt, { size: 12 }) }), e[27] = t, e[28] = o, e[29] = S) : S = e[29];
|
|
136
|
-
let
|
|
137
|
-
return e[30] !== s || e[31] !== d.container || e[32] !== S || e[33] !==
|
|
136
|
+
let E;
|
|
137
|
+
return e[30] !== s || e[31] !== d.container || e[32] !== S || e[33] !== x || e[34] !== g || e[35] !== T || e[36] !== b || e[37] !== m ? (E = /* @__PURE__ */ F(se.span, { display: "flex", flexDirection: "row", alignItems: "center", borderRadius: "xs", gap: "2xs", cursor: x, ...m, ...d.container, onClick: g, ...s, children: [
|
|
138
138
|
T,
|
|
139
139
|
b,
|
|
140
140
|
N,
|
|
141
141
|
S
|
|
142
|
-
] }), e[30] = s, e[31] = d.container, e[32] = S, e[33] =
|
|
142
|
+
] }), e[30] = s, e[31] = d.container, e[32] = S, e[33] = x, e[34] = g, e[35] = T, e[36] = b, e[37] = m, e[38] = E) : E = e[38], E;
|
|
143
143
|
};
|
|
144
|
-
let re = class
|
|
144
|
+
let re = class ce extends Y {
|
|
145
145
|
__href;
|
|
146
146
|
__label;
|
|
147
147
|
static getType() {
|
|
148
148
|
return "reference-link";
|
|
149
149
|
}
|
|
150
150
|
static clone(e) {
|
|
151
|
-
return new
|
|
151
|
+
return new ce(e.__href, e.__label, e.__key);
|
|
152
152
|
}
|
|
153
153
|
constructor(e, t, r) {
|
|
154
154
|
super(r), this.__href = e, this.__label = t;
|
|
@@ -164,31 +164,31 @@ let re = class ae extends Y {
|
|
|
164
164
|
}
|
|
165
165
|
exportJSON() {
|
|
166
166
|
return {
|
|
167
|
-
type:
|
|
167
|
+
type: ce.getType(),
|
|
168
168
|
version: 1,
|
|
169
169
|
href: this.__href,
|
|
170
170
|
label: this.__label
|
|
171
171
|
};
|
|
172
172
|
}
|
|
173
173
|
static importJSON(e) {
|
|
174
|
-
return
|
|
174
|
+
return je(e.href, e.label);
|
|
175
175
|
}
|
|
176
176
|
decorate(e, t) {
|
|
177
177
|
const r = this.__href, i = r.split("/").pop() || "unknown", s = /^https?:\/\//i.test(r), c = /^#?\$PROJECT\//i.test(r);
|
|
178
|
-
return /* @__PURE__ */ l(w, { width: "fit-content", display: "inline-block", children: /* @__PURE__ */ l(
|
|
178
|
+
return /* @__PURE__ */ l(w, { width: "fit-content", display: "inline-block", children: /* @__PURE__ */ l(Je, { fileName: i, onSelect: () => {
|
|
179
179
|
if (s)
|
|
180
180
|
window.open(r, "_blank", "noopener,noreferrer");
|
|
181
181
|
else if (c) {
|
|
182
|
-
const a = r.replace(/^#?\$PROJECT\//i, ""),
|
|
182
|
+
const a = r.replace(/^#?\$PROJECT\//i, ""), h = new CustomEvent("ui:open-project-file", {
|
|
183
183
|
detail: a
|
|
184
184
|
});
|
|
185
|
-
window.dispatchEvent(
|
|
185
|
+
window.dispatchEvent(h);
|
|
186
186
|
} else
|
|
187
187
|
window.location.assign(r);
|
|
188
188
|
} }) });
|
|
189
189
|
}
|
|
190
190
|
};
|
|
191
|
-
function
|
|
191
|
+
function je(n, e) {
|
|
192
192
|
return new re(n, e);
|
|
193
193
|
}
|
|
194
194
|
function nn(n) {
|
|
@@ -207,7 +207,7 @@ const xe = /\{\{\s*link\((['"])([^'"\s]+)\1\)\s*\}\}/, rn = {
|
|
|
207
207
|
importRegExp: xe,
|
|
208
208
|
replace: (n, e) => {
|
|
209
209
|
const t = e[2], o = /^(https?:\/\/|\/)/i.test(t) ? t : `#${t}`, i = t;
|
|
210
|
-
n.replace(
|
|
210
|
+
n.replace(je(o, i));
|
|
211
211
|
},
|
|
212
212
|
type: "text-match"
|
|
213
213
|
}, _e = {
|
|
@@ -284,22 +284,22 @@ const xe = /\{\{\s*link\((['"])([^'"\s]+)\1\)\s*\}\}/, rn = {
|
|
|
284
284
|
row: "rich-text__row",
|
|
285
285
|
content: "rich-text__content"
|
|
286
286
|
}
|
|
287
|
-
}, X = "calc(var(--chakra-font-sizes-sm) * var(--rich-text-font-scale))", on = (n) => n == null ? "-" : typeof n == "string" ? n.length ? n : "-" : typeof n == "number" || typeof n == "boolean" ? String(n).toUpperCase() : n instanceof Date ? n.toISOString() : JSON.stringify(n),
|
|
287
|
+
}, X = "calc(var(--chakra-font-sizes-sm) * var(--rich-text-font-scale))", on = (n) => n == null ? "-" : typeof n == "string" ? n.length ? n : "-" : typeof n == "number" || typeof n == "boolean" ? String(n).toUpperCase() : n instanceof Date ? n.toISOString() : JSON.stringify(n), mo = (n) => {
|
|
288
288
|
const e = C(6), {
|
|
289
289
|
defaultCode: t,
|
|
290
290
|
isEditable: r,
|
|
291
291
|
showLineNumbers: o,
|
|
292
292
|
disableScroll: i
|
|
293
|
-
} = n, s = t === void 0 ? "" : t, c = r === void 0 ? !1 : r, a = o === void 0 ? !1 : o,
|
|
293
|
+
} = n, s = t === void 0 ? "" : t, c = r === void 0 ? !1 : r, a = o === void 0 ? !1 : o, h = i === void 0 ? !1 : i;
|
|
294
294
|
if (c) {
|
|
295
|
-
let
|
|
296
|
-
return e[0] !== s ? (
|
|
295
|
+
let p;
|
|
296
|
+
return e[0] !== s ? (p = /* @__PURE__ */ l(Et, { defaultValue: s, fontFamily: "mono", fontSize: X, resize: "vertical", minHeight: "100%" }), e[0] = s, e[1] = p) : p = e[1], p;
|
|
297
297
|
}
|
|
298
298
|
let u;
|
|
299
|
-
if (e[2] !== s || e[3] !==
|
|
300
|
-
const
|
|
299
|
+
if (e[2] !== s || e[3] !== h || e[4] !== a) {
|
|
300
|
+
const p = a ? s.split(`
|
|
301
301
|
`) : [s];
|
|
302
|
-
u = /* @__PURE__ */ l(w, { as: "pre", margin: 0, padding: "sm", fontFamily: "mono", fontSize: X, lineHeight: "1.5", overflowY:
|
|
302
|
+
u = /* @__PURE__ */ l(w, { as: "pre", margin: 0, padding: "sm", fontFamily: "mono", fontSize: X, lineHeight: "1.5", overflowY: h ? "hidden" : "auto", background: "bg.code", borderRadius: "md", width: "100%", children: a ? /* @__PURE__ */ l(w, { as: "code", display: "grid", gridTemplateColumns: "auto 1fr", columnGap: "sm", children: p.map(ln) }) : /* @__PURE__ */ l(w, { as: "code", children: s }) }), e[2] = s, e[3] = h, e[4] = a, e[5] = u;
|
|
303
303
|
} else
|
|
304
304
|
u = e[5];
|
|
305
305
|
return u;
|
|
@@ -312,54 +312,54 @@ const xe = /\{\{\s*link\((['"])([^'"\s]+)\1\)\s*\}\}/, rn = {
|
|
|
312
312
|
} = n, s = r === void 0 ? !1 : r, c = o === void 0 ? !1 : o;
|
|
313
313
|
let a;
|
|
314
314
|
e[0] !== i ? (a = i === void 0 ? [] : i, e[0] = i, e[1] = a) : a = e[1];
|
|
315
|
-
const
|
|
315
|
+
const h = a;
|
|
316
316
|
if (!t.length) {
|
|
317
317
|
const b = c ? "0" : "1px";
|
|
318
318
|
let N;
|
|
319
|
-
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (N = /* @__PURE__ */ l(
|
|
319
|
+
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (N = /* @__PURE__ */ l(P, { textStyle: "label/S/regular", fontSize: X, color: "fg.muted", children: "No data" }), e[2] = N) : N = e[2];
|
|
320
320
|
let S;
|
|
321
321
|
return e[3] !== b ? (S = /* @__PURE__ */ l(w, { padding: "sm", borderWidth: b, borderColor: "border.muted", children: N }), e[3] = b, e[4] = S) : S = e[4], S;
|
|
322
322
|
}
|
|
323
323
|
let u;
|
|
324
|
-
e[5] !==
|
|
325
|
-
const
|
|
326
|
-
let
|
|
327
|
-
e[7] !== t[0] ? (
|
|
324
|
+
e[5] !== h ? (u = new Set(h), e[5] = h, e[6] = u) : u = e[6];
|
|
325
|
+
const p = u;
|
|
326
|
+
let f;
|
|
327
|
+
e[7] !== t[0] ? (f = Object.keys(t[0] ?? {}), e[7] = t[0], e[8] = f) : f = e[8];
|
|
328
328
|
let d;
|
|
329
|
-
e[9] !==
|
|
330
|
-
const
|
|
331
|
-
let
|
|
332
|
-
e[12] !==
|
|
329
|
+
e[9] !== p || e[10] !== f ? (d = f.filter((b) => !p.has(b)), e[9] = p, e[10] = f, e[11] = d) : d = e[11];
|
|
330
|
+
const m = d, x = s ? "100%" : "fit-content", g = c ? "0" : "1px";
|
|
331
|
+
let _;
|
|
332
|
+
e[12] !== m ? (_ = /* @__PURE__ */ l(B.Header, { children: /* @__PURE__ */ l(B.Row, { background: "bg.muted", children: m.map(cn) }) }), e[12] = m, e[13] = _) : _ = e[13];
|
|
333
333
|
let T;
|
|
334
|
-
if (e[14] !==
|
|
334
|
+
if (e[14] !== m || e[15] !== t) {
|
|
335
335
|
let b;
|
|
336
|
-
e[17] !==
|
|
336
|
+
e[17] !== m ? (b = (N, S) => /* @__PURE__ */ l(B.Row, { children: m.map((E) => /* @__PURE__ */ l(B.Cell, { paddingX: "xs", paddingY: "2xs", children: /* @__PURE__ */ l(P, { textStyle: "paragraph/S/regular", fontSize: X, children: on(N[E]) }) }, `${S}-${E}`)) }, `${S}-${m.join("-")}`), e[17] = m, e[18] = b) : b = e[18], T = t.map(b), e[14] = m, e[15] = t, e[16] = T;
|
|
337
337
|
} else
|
|
338
338
|
T = e[16];
|
|
339
339
|
let y;
|
|
340
|
-
e[19] !== T ? (y = /* @__PURE__ */ l(
|
|
340
|
+
e[19] !== T ? (y = /* @__PURE__ */ l(B.Body, { children: T }), e[19] = T, e[20] = y) : y = e[20];
|
|
341
341
|
let R;
|
|
342
|
-
return e[21] !== y || e[22] !==
|
|
343
|
-
|
|
342
|
+
return e[21] !== y || e[22] !== x || e[23] !== g || e[24] !== _ ? (R = /* @__PURE__ */ l(B.ScrollArea, { overflowX: "auto", maxWidth: "100%", children: /* @__PURE__ */ F(B.Root, { size: "sm", width: x, borderWidth: g, borderColor: "border.muted", children: [
|
|
343
|
+
_,
|
|
344
344
|
y
|
|
345
|
-
] }) }), e[21] = y, e[22] =
|
|
345
|
+
] }) }), e[21] = y, e[22] = x, e[23] = g, e[24] = _, e[25] = R) : R = e[25], R;
|
|
346
346
|
};
|
|
347
347
|
function ln(n, e) {
|
|
348
348
|
return /* @__PURE__ */ F(w, { as: "span", display: "contents", children: [
|
|
349
|
-
/* @__PURE__ */ l(
|
|
350
|
-
/* @__PURE__ */ l(
|
|
349
|
+
/* @__PURE__ */ l(P, { as: "span", color: "fg.muted", textAlign: "right", fontSize: "inherit", children: e + 1 }),
|
|
350
|
+
/* @__PURE__ */ l(P, { as: "span", fontSize: "inherit", children: n.length ? n : " " })
|
|
351
351
|
] }, `${e}-${n}`);
|
|
352
352
|
}
|
|
353
353
|
function cn(n) {
|
|
354
|
-
return /* @__PURE__ */ l(
|
|
354
|
+
return /* @__PURE__ */ l(B.ColumnHeader, { textTransform: "none", paddingX: "xs", paddingY: "2xs", children: /* @__PURE__ */ l(P, { textStyle: "label/S/medium", fontSize: X, children: n }) }, n);
|
|
355
355
|
}
|
|
356
|
-
class
|
|
356
|
+
class U extends Y {
|
|
357
357
|
__data;
|
|
358
358
|
static getType() {
|
|
359
359
|
return "data_table";
|
|
360
360
|
}
|
|
361
361
|
static clone(e) {
|
|
362
|
-
return new
|
|
362
|
+
return new U(e.__data, e.__key);
|
|
363
363
|
}
|
|
364
364
|
constructor(e, t) {
|
|
365
365
|
super(t), this.__data = e;
|
|
@@ -384,7 +384,7 @@ class z extends Y {
|
|
|
384
384
|
};
|
|
385
385
|
}
|
|
386
386
|
static importJSON(e) {
|
|
387
|
-
return new
|
|
387
|
+
return new U(e.data);
|
|
388
388
|
}
|
|
389
389
|
getTextContent() {
|
|
390
390
|
if (!this.__data.length) return "";
|
|
@@ -394,10 +394,10 @@ class z extends Y {
|
|
|
394
394
|
}
|
|
395
395
|
}
|
|
396
396
|
function be(n) {
|
|
397
|
-
return new
|
|
397
|
+
return new U(n);
|
|
398
398
|
}
|
|
399
399
|
function Se(n) {
|
|
400
|
-
return n instanceof
|
|
400
|
+
return n instanceof U;
|
|
401
401
|
}
|
|
402
402
|
const an = $t.lazy(() => import("./EquationComponent-DeDYHvqY.js"));
|
|
403
403
|
function ye(n) {
|
|
@@ -407,14 +407,14 @@ function ye(n) {
|
|
|
407
407
|
node: oe(e, t)
|
|
408
408
|
} : null;
|
|
409
409
|
}
|
|
410
|
-
class
|
|
410
|
+
class W extends Y {
|
|
411
411
|
__equation;
|
|
412
412
|
__inline;
|
|
413
413
|
static getType() {
|
|
414
414
|
return "equation";
|
|
415
415
|
}
|
|
416
416
|
static clone(e) {
|
|
417
|
-
return new
|
|
417
|
+
return new W(e.__equation, e.__inline, e.__key);
|
|
418
418
|
}
|
|
419
419
|
constructor(e, t, r) {
|
|
420
420
|
super(r), this.__equation = e, this.__inline = t ?? !1;
|
|
@@ -477,19 +477,19 @@ class U extends Y {
|
|
|
477
477
|
return this.__inline;
|
|
478
478
|
}
|
|
479
479
|
decorate() {
|
|
480
|
-
return /* @__PURE__ */ l(
|
|
480
|
+
return /* @__PURE__ */ l(Be, { fallback: null, children: /* @__PURE__ */ l(an, { equation: this.__equation, inline: this.__inline }) });
|
|
481
481
|
}
|
|
482
482
|
}
|
|
483
483
|
function oe(n = "", e = !1) {
|
|
484
|
-
const t = new
|
|
484
|
+
const t = new W(n, e);
|
|
485
485
|
return bt(t);
|
|
486
486
|
}
|
|
487
|
-
function
|
|
488
|
-
return n instanceof
|
|
487
|
+
function Ke(n) {
|
|
488
|
+
return n instanceof W;
|
|
489
489
|
}
|
|
490
|
-
const
|
|
491
|
-
dependencies: [
|
|
492
|
-
export: (n) =>
|
|
490
|
+
const Ve = {
|
|
491
|
+
dependencies: [W],
|
|
492
|
+
export: (n) => Ke(n) && n.isInline() ? `\\( ${n.getEquation().trim()} \\)` : null,
|
|
493
493
|
importRegExp: /\\\((.*?)\\\)/,
|
|
494
494
|
regExp: /\\\((.*?)\\\)/,
|
|
495
495
|
replace: (n, e) => {
|
|
@@ -497,18 +497,18 @@ const Xe = {
|
|
|
497
497
|
n.replace(t);
|
|
498
498
|
},
|
|
499
499
|
type: "text-match"
|
|
500
|
-
},
|
|
501
|
-
dependencies: [
|
|
500
|
+
}, Xe = {
|
|
501
|
+
dependencies: [W],
|
|
502
502
|
regExpStart: /\\\[/,
|
|
503
503
|
regExpEnd: /\\]/,
|
|
504
|
-
export: (n) =>
|
|
504
|
+
export: (n) => Ke(n) && !n.isInline() ? `\\[ ${n.getEquation().trim()} \\]` : null,
|
|
505
505
|
replace: (n, e, t, r, o) => o ? (n.append(oe(o.join(" "), !1)), !0) : !1,
|
|
506
506
|
type: "multiline-element"
|
|
507
507
|
};
|
|
508
508
|
function dn() {
|
|
509
509
|
return null;
|
|
510
510
|
}
|
|
511
|
-
class K extends
|
|
511
|
+
class K extends Me {
|
|
512
512
|
static getType() {
|
|
513
513
|
return "hr";
|
|
514
514
|
}
|
|
@@ -516,7 +516,7 @@ class K extends Ae {
|
|
|
516
516
|
return new K(e?.__key);
|
|
517
517
|
}
|
|
518
518
|
static importJSON(e) {
|
|
519
|
-
return
|
|
519
|
+
return Ge();
|
|
520
520
|
}
|
|
521
521
|
exportJSON() {
|
|
522
522
|
return {
|
|
@@ -534,13 +534,13 @@ class K extends Ae {
|
|
|
534
534
|
return null;
|
|
535
535
|
}
|
|
536
536
|
}
|
|
537
|
-
function
|
|
537
|
+
function Ge() {
|
|
538
538
|
return new K();
|
|
539
539
|
}
|
|
540
540
|
function un(n) {
|
|
541
541
|
return n instanceof K;
|
|
542
542
|
}
|
|
543
|
-
const mn = vt(() => import("./MermaidComponent-
|
|
543
|
+
const mn = vt(() => import("./MermaidComponent-DDCxR-Gs.js"));
|
|
544
544
|
class J extends Y {
|
|
545
545
|
__code;
|
|
546
546
|
static getType() {
|
|
@@ -581,10 +581,10 @@ ${this.__code}
|
|
|
581
581
|
t.__code = e;
|
|
582
582
|
}
|
|
583
583
|
decorate() {
|
|
584
|
-
return /* @__PURE__ */ l(
|
|
584
|
+
return /* @__PURE__ */ l(Be, { fallback: null, children: /* @__PURE__ */ l(mn, { code: this.__code, nodeKey: this.__key }) });
|
|
585
585
|
}
|
|
586
586
|
}
|
|
587
|
-
function
|
|
587
|
+
function fo(n) {
|
|
588
588
|
return n instanceof J;
|
|
589
589
|
}
|
|
590
590
|
const fn = {
|
|
@@ -592,7 +592,7 @@ const fn = {
|
|
|
592
592
|
export: (n) => un(n) ? "***" : null,
|
|
593
593
|
regExp: /^(---|\*\*\*|___)\s?$/,
|
|
594
594
|
replace: (n) => {
|
|
595
|
-
const e =
|
|
595
|
+
const e = Ge();
|
|
596
596
|
n.replace(e);
|
|
597
597
|
},
|
|
598
598
|
type: "element"
|
|
@@ -617,17 +617,17 @@ const fn = {
|
|
|
617
617
|
}
|
|
618
618
|
const s = t[0].split("|").slice(1, -1).map((c) => c.trim());
|
|
619
619
|
if (o?.getType() === "data_table" && Se(o)) {
|
|
620
|
-
const c = o.getData(), a = {},
|
|
621
|
-
s.forEach((d,
|
|
622
|
-
const
|
|
623
|
-
a[
|
|
620
|
+
const c = o.getData(), a = {}, h = c.length === 1 && Object.values(c[0]).every((d) => d === ""), u = c.length > 0 ? Object.keys(c[0]) : s.map((d, m) => `col_${m}`);
|
|
621
|
+
s.forEach((d, m) => {
|
|
622
|
+
const x = u[m] || `col_${m}`;
|
|
623
|
+
a[x] = d;
|
|
624
624
|
});
|
|
625
|
-
const
|
|
626
|
-
o.replace(
|
|
625
|
+
const p = h ? [a] : [...c, a], f = be(p);
|
|
626
|
+
o.replace(f), n.remove();
|
|
627
627
|
} else {
|
|
628
628
|
const c = {};
|
|
629
|
-
s.forEach((
|
|
630
|
-
c[
|
|
629
|
+
s.forEach((h, u) => {
|
|
630
|
+
c[h || `col_${u}`] = "";
|
|
631
631
|
});
|
|
632
632
|
const a = be([c]);
|
|
633
633
|
n.replace(a);
|
|
@@ -678,7 +678,7 @@ const fn = {
|
|
|
678
678
|
o.setFormat(n.getFormat()), r.append(o), n.replace(r);
|
|
679
679
|
},
|
|
680
680
|
type: "text-match"
|
|
681
|
-
},
|
|
681
|
+
}, Ye = [hn, fn, pn, _n, gn], ho = [Pe, Oe, me, U, Le, ke, $e, ue, Ie, J, W, K, re], po = [ht, ...ve, ...Ye, Ve, Xe, rn], _o = _e;
|
|
682
682
|
function En(n) {
|
|
683
683
|
return n.trim().toLowerCase() === "mermaid";
|
|
684
684
|
}
|
|
@@ -703,7 +703,7 @@ function yn() {
|
|
|
703
703
|
let t, r;
|
|
704
704
|
return n[0] !== e ? (t = () => ut(e), r = [e], n[0] = e, n[1] = t, n[2] = r) : (t = n[1], r = n[2]), q(t, r), null;
|
|
705
705
|
}
|
|
706
|
-
function
|
|
706
|
+
function Qe(n) {
|
|
707
707
|
const e = C(4), {
|
|
708
708
|
isEditable: t
|
|
709
709
|
} = n, [r] = H();
|
|
@@ -712,55 +712,64 @@ function Ze(n) {
|
|
|
712
712
|
r.setEditable(t);
|
|
713
713
|
}, i = [t, r], e[0] = r, e[1] = t, e[2] = o, e[3] = i) : (o = e[2], i = e[3]), q(o, i), null;
|
|
714
714
|
}
|
|
715
|
-
function
|
|
715
|
+
function Ze() {
|
|
716
716
|
const n = C(2), [e] = H();
|
|
717
717
|
let t;
|
|
718
718
|
return n[0] !== e ? (t = /* @__PURE__ */ l(w, { fontSize: "xs", color: "fg.muted", padding: "4", children: /* @__PURE__ */ l(Xt, { 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;
|
|
719
719
|
}
|
|
720
720
|
const Tn = /^---\s*\n([\s\S]*?)\n---\s*(?:\n|$)/, Rn = /^```/, Nn = /^([ \t]*)((?:[-*+])|(?:\d+\.))\s+/, Cn = /^([ \t]+)/;
|
|
721
|
-
function
|
|
721
|
+
function et(n) {
|
|
722
722
|
let e = 0;
|
|
723
723
|
for (const t of n)
|
|
724
724
|
e += t === " " ? 4 : 1;
|
|
725
725
|
return e;
|
|
726
726
|
}
|
|
727
|
-
function
|
|
727
|
+
function In(n, e) {
|
|
728
|
+
return [...n].reverse().find((t) => t.sourceIndentWidth < e);
|
|
729
|
+
}
|
|
730
|
+
function ae(n, e, t) {
|
|
728
731
|
return e === t && !n.includes(" ") ? n : " ".repeat(e);
|
|
729
732
|
}
|
|
733
|
+
function On(n, e) {
|
|
734
|
+
const t = n.match(Cn);
|
|
735
|
+
if (!t)
|
|
736
|
+
return n.trim() !== "" && (e.length = 0), n;
|
|
737
|
+
const r = et(t[1]), o = In(e, r);
|
|
738
|
+
if (!o) return n;
|
|
739
|
+
const i = r + (o.normalizedIndentWidth - o.sourceIndentWidth), s = ae(t[1], i, r);
|
|
740
|
+
return s === t[1] ? n : `${s}${n.slice(t[1].length)}`;
|
|
741
|
+
}
|
|
742
|
+
function kn(n, e, t) {
|
|
743
|
+
const r = et(e[1]);
|
|
744
|
+
for (; t.length && t.at(-1).sourceIndentWidth > r; )
|
|
745
|
+
t.pop();
|
|
746
|
+
const o = t.at(-1);
|
|
747
|
+
if (o?.sourceIndentWidth === r)
|
|
748
|
+
return `${ae(e[1], o.normalizedIndentWidth, r)}${n.slice(e[1].length)}`;
|
|
749
|
+
const i = t.at(-1), s = r - (i?.sourceIndentWidth ?? 0);
|
|
750
|
+
let c = r;
|
|
751
|
+
return i && s === 2 && !e[1].includes(" ") && (c = i.normalizedIndentWidth + 4), t.push({
|
|
752
|
+
normalizedIndentWidth: c,
|
|
753
|
+
sourceIndentWidth: r
|
|
754
|
+
}), `${ae(e[1], c, r)}${n.slice(e[1].length)}`;
|
|
755
|
+
}
|
|
756
|
+
function $n(n, e) {
|
|
757
|
+
if (Rn.test(n.trimStart()))
|
|
758
|
+
return e.isInCodeFence = !e.isInCodeFence, n;
|
|
759
|
+
if (e.isInCodeFence) return n;
|
|
760
|
+
const t = n.match(Nn);
|
|
761
|
+
return t ? kn(n, t, e.activeListIndents) : On(n, e.activeListIndents);
|
|
762
|
+
}
|
|
730
763
|
function tt(n) {
|
|
731
764
|
const e = n.split(`
|
|
732
|
-
`)
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
return t = !t, o;
|
|
738
|
-
if (t) return o;
|
|
739
|
-
const i = o.match(Nn);
|
|
740
|
-
if (!i) {
|
|
741
|
-
const m = o.match(Cn);
|
|
742
|
-
if (!m)
|
|
743
|
-
return o.trim() !== "" && (r.length = 0), o;
|
|
744
|
-
const h = Re(m[1]), d = [...r].reverse().find((_) => _.sourceIndentWidth < h);
|
|
745
|
-
if (!d) return o;
|
|
746
|
-
const f = h + (d.normalizedIndentWidth - d.sourceIndentWidth), g = se(m[1], f, h);
|
|
747
|
-
return g === m[1] ? o : `${g}${o.slice(m[1].length)}`;
|
|
748
|
-
}
|
|
749
|
-
const s = Re(i[1]);
|
|
750
|
-
for (; r.length && r.at(-1).sourceIndentWidth > s; )
|
|
751
|
-
r.pop();
|
|
752
|
-
const c = r.at(-1);
|
|
753
|
-
if (c?.sourceIndentWidth === s)
|
|
754
|
-
return `${se(i[1], c.normalizedIndentWidth, s)}${o.slice(i[1].length)}`;
|
|
755
|
-
const a = r.at(-1), p = s - (a?.sourceIndentWidth ?? 0), u = a && p === 2 && !i[1].includes(" ") ? (a?.normalizedIndentWidth ?? 0) + 4 : s;
|
|
756
|
-
return r.push({
|
|
757
|
-
normalizedIndentWidth: u,
|
|
758
|
-
sourceIndentWidth: s
|
|
759
|
-
}), `${se(i[1], u, s)}${o.slice(i[1].length)}`;
|
|
760
|
-
}).join(`
|
|
765
|
+
`), t = {
|
|
766
|
+
isInCodeFence: !1,
|
|
767
|
+
activeListIndents: []
|
|
768
|
+
};
|
|
769
|
+
return e.map((r) => $n(r, t)).join(`
|
|
761
770
|
`);
|
|
762
771
|
}
|
|
763
|
-
function
|
|
772
|
+
function vn(n) {
|
|
764
773
|
const e = n.match(Tn);
|
|
765
774
|
return e ? {
|
|
766
775
|
frontmatter: e[0],
|
|
@@ -770,29 +779,29 @@ function In(n) {
|
|
|
770
779
|
body: n
|
|
771
780
|
};
|
|
772
781
|
}
|
|
773
|
-
const
|
|
774
|
-
I(On);
|
|
775
|
-
I(kn);
|
|
776
|
-
I($n);
|
|
777
|
-
I(vn);
|
|
782
|
+
const wn = "UPLOAD_FILE", Pn = "OPEN_CONTEXT", Ln = "RUN_PROMPT", Mn = "UPDATE_FORMAT", An = "UPDATE_BEHAVIOR", Dn = "INSERT_PROMPT", Fn = "RENAME_PROMPT", Hn = "DUPLICATE_PROMPT", qn = "DELETE_PROMPT", zn = "DELETE_REFERENCES", Bn = "RENAME_REFERENCES", Wn = "INSERT_REFERENCE", Un = "INSERT_BLOCK";
|
|
778
783
|
I(wn);
|
|
779
|
-
I(Ln);
|
|
780
784
|
I(Pn);
|
|
785
|
+
I(Ln);
|
|
781
786
|
I(Mn);
|
|
782
787
|
I(An);
|
|
783
788
|
I(Dn);
|
|
784
789
|
I(Fn);
|
|
785
|
-
|
|
786
|
-
I(
|
|
787
|
-
I(Un);
|
|
790
|
+
I(Hn);
|
|
791
|
+
I(qn);
|
|
788
792
|
I(zn);
|
|
789
|
-
|
|
793
|
+
I(Bn);
|
|
794
|
+
const nt = I(Wn), Jn = I(Un), jn = "INSERT_NEW_FILE_PLACEHOLDER", Kn = "INSERT_NEW_TEXT_PLACEHOLDER", Vn = "INSERT_PLACEHOLDER_REFERENCE";
|
|
795
|
+
I(jn);
|
|
796
|
+
I(Kn);
|
|
797
|
+
I(Vn);
|
|
798
|
+
function Xn(n) {
|
|
790
799
|
const e = ne();
|
|
791
800
|
return n.style !== null && e.setFormat(n.style.textAlign), {
|
|
792
801
|
node: e
|
|
793
802
|
};
|
|
794
803
|
}
|
|
795
|
-
class Q extends
|
|
804
|
+
class Q extends Me {
|
|
796
805
|
static getType() {
|
|
797
806
|
return "comment";
|
|
798
807
|
}
|
|
@@ -801,7 +810,7 @@ class Q extends Ae {
|
|
|
801
810
|
}
|
|
802
811
|
createDOM(e) {
|
|
803
812
|
const t = document.createElement("blockquote");
|
|
804
|
-
return
|
|
813
|
+
return We(t, e.theme.comment), t;
|
|
805
814
|
}
|
|
806
815
|
updateDOM() {
|
|
807
816
|
return !1;
|
|
@@ -809,7 +818,7 @@ class Q extends Ae {
|
|
|
809
818
|
static importDOM() {
|
|
810
819
|
return {
|
|
811
820
|
blockquote: () => ({
|
|
812
|
-
conversion:
|
|
821
|
+
conversion: Xn,
|
|
813
822
|
priority: 0
|
|
814
823
|
})
|
|
815
824
|
};
|
|
@@ -844,11 +853,11 @@ class Q extends Ae {
|
|
|
844
853
|
}
|
|
845
854
|
// mutation
|
|
846
855
|
insertNewAfter(e, t) {
|
|
847
|
-
const r =
|
|
856
|
+
const r = le(), o = this.getDirection();
|
|
848
857
|
return r.setDirection(o), this.insertAfter(r, t), r;
|
|
849
858
|
}
|
|
850
859
|
collapseAtStart() {
|
|
851
|
-
const e =
|
|
860
|
+
const e = le();
|
|
852
861
|
return this.getChildren().forEach((r) => {
|
|
853
862
|
e.append(r);
|
|
854
863
|
}), this.replace(e), !0;
|
|
@@ -857,7 +866,7 @@ class Q extends Ae {
|
|
|
857
866
|
function ne() {
|
|
858
867
|
return new Q();
|
|
859
868
|
}
|
|
860
|
-
const
|
|
869
|
+
const Gn = (n, e) => {
|
|
861
870
|
const t = Tt(), r = ne();
|
|
862
871
|
if (e) {
|
|
863
872
|
e.getParent()?.replace(r, !0), e.remove(), r.selectEnd();
|
|
@@ -865,38 +874,38 @@ const jn = (n, e) => {
|
|
|
865
874
|
}
|
|
866
875
|
Rt(t) && At(t, ne);
|
|
867
876
|
};
|
|
868
|
-
function
|
|
877
|
+
function Yn() {
|
|
869
878
|
const n = C(3), [e] = H();
|
|
870
879
|
let t, r;
|
|
871
|
-
return n[0] !== e ? (t = () => pe(e.registerCommand(
|
|
880
|
+
return n[0] !== e ? (t = () => pe(e.registerCommand(Jn, Qn, Ae)), r = [e], n[0] = e, n[1] = t, n[2] = r) : (t = n[1], r = n[2]), q(t, r), null;
|
|
872
881
|
}
|
|
873
|
-
function
|
|
882
|
+
function Qn(n) {
|
|
874
883
|
const {
|
|
875
884
|
optionId: e,
|
|
876
885
|
nodeToReplace: t
|
|
877
886
|
} = n;
|
|
878
|
-
return
|
|
887
|
+
return Gn(e, t), !1;
|
|
879
888
|
}
|
|
880
|
-
const
|
|
889
|
+
const Zn = () => {
|
|
881
890
|
const n = C(3), [e] = H();
|
|
882
891
|
let t, r;
|
|
883
892
|
n[0] !== e ? (t = () => pe(e.registerNodeTransform(Q, (o) => {
|
|
884
|
-
const s = o.getChildren().filter(
|
|
893
|
+
const s = o.getChildren().filter(er);
|
|
885
894
|
s.length > 0 && e.update(() => {
|
|
886
|
-
s.forEach(
|
|
895
|
+
s.forEach(tr);
|
|
887
896
|
});
|
|
888
897
|
})), r = [e], n[0] = e, n[1] = t, n[2] = r) : (t = n[1], r = n[2]), q(t, r);
|
|
889
898
|
};
|
|
890
|
-
function
|
|
899
|
+
function er(n) {
|
|
891
900
|
return n.getType() === "comment";
|
|
892
901
|
}
|
|
893
|
-
function
|
|
894
|
-
n.replace(
|
|
902
|
+
function tr(n) {
|
|
903
|
+
n.replace(le(), !0);
|
|
895
904
|
}
|
|
896
|
-
function
|
|
897
|
-
return
|
|
905
|
+
function nr() {
|
|
906
|
+
return Zn(), Yn(), null;
|
|
898
907
|
}
|
|
899
|
-
const
|
|
908
|
+
const rr = (n) => {
|
|
900
909
|
let e = "";
|
|
901
910
|
const t = n.getChildren(), r = t.length;
|
|
902
911
|
for (let o = 0; o < r; o++) {
|
|
@@ -905,10 +914,10 @@ const Zn = (n) => {
|
|
|
905
914
|
`);
|
|
906
915
|
}
|
|
907
916
|
return e;
|
|
908
|
-
},
|
|
917
|
+
}, or = (n) => n.type !== "reference" ? null : `#${n.name ?? n.referenceId ?? ""}`, ir = (n) => n.type === "paragraph" && !!n.children?.length, rt = (n) => {
|
|
909
918
|
if (n.type === "comment")
|
|
910
919
|
return "";
|
|
911
|
-
const e =
|
|
920
|
+
const e = or(n);
|
|
912
921
|
if (e !== null)
|
|
913
922
|
return e;
|
|
914
923
|
let t = typeof n.text == "string" ? n.text : "";
|
|
@@ -922,7 +931,7 @@ const Zn = (n) => {
|
|
|
922
931
|
`);
|
|
923
932
|
continue;
|
|
924
933
|
}
|
|
925
|
-
t += rt(s),
|
|
934
|
+
t += rt(s), ir(s) && (t += `
|
|
926
935
|
`);
|
|
927
936
|
}
|
|
928
937
|
return t;
|
|
@@ -933,7 +942,7 @@ const Zn = (n) => {
|
|
|
933
942
|
} catch {
|
|
934
943
|
return "";
|
|
935
944
|
}
|
|
936
|
-
},
|
|
945
|
+
}, sr = {
|
|
937
946
|
root: {
|
|
938
947
|
direction: "ltr",
|
|
939
948
|
format: "",
|
|
@@ -951,7 +960,7 @@ const Zn = (n) => {
|
|
|
951
960
|
}]
|
|
952
961
|
}
|
|
953
962
|
};
|
|
954
|
-
function
|
|
963
|
+
function lr(n = "") {
|
|
955
964
|
return n.trim() ? {
|
|
956
965
|
root: {
|
|
957
966
|
direction: "ltr",
|
|
@@ -977,9 +986,9 @@ function rr(n = "") {
|
|
|
977
986
|
}] : []
|
|
978
987
|
}))
|
|
979
988
|
}
|
|
980
|
-
} : JSON.parse(JSON.stringify(
|
|
989
|
+
} : JSON.parse(JSON.stringify(sr));
|
|
981
990
|
}
|
|
982
|
-
function
|
|
991
|
+
function cr(n) {
|
|
983
992
|
const e = C(4), {
|
|
984
993
|
editorRef: t,
|
|
985
994
|
previousTextRef: r
|
|
@@ -987,29 +996,29 @@ function or(n) {
|
|
|
987
996
|
let i, s;
|
|
988
997
|
return e[0] !== o || e[1] !== r ? (i = () => ({
|
|
989
998
|
setEditorValue: (c) => {
|
|
990
|
-
const a = o.parseEditorState(JSON.stringify(
|
|
999
|
+
const a = o.parseEditorState(JSON.stringify(lr(c)));
|
|
991
1000
|
o.setEditorState(a), r.current = ot(c), o.focus(void 0, {
|
|
992
1001
|
defaultSelection: "rootEnd"
|
|
993
1002
|
});
|
|
994
1003
|
}
|
|
995
1004
|
}), s = [o, r], e[0] = o, e[1] = r, e[2] = i, e[3] = s) : (i = e[2], s = e[3]), wt(t, i, s), null;
|
|
996
1005
|
}
|
|
997
|
-
const
|
|
998
|
-
function
|
|
1006
|
+
const ar = (n) => n.key !== "Enter" ? !1 : !n.ctrlKey && !n.metaKey && !n.shiftKey && !n.altKey;
|
|
1007
|
+
function dr(n) {
|
|
999
1008
|
const e = C(4), {
|
|
1000
1009
|
onSubmit: t
|
|
1001
1010
|
} = n, [r] = H();
|
|
1002
1011
|
let o, i;
|
|
1003
|
-
return e[0] !== r || e[1] !== t ? (o = () => r.registerCommand(Ct, (s) =>
|
|
1012
|
+
return e[0] !== r || e[1] !== t ? (o = () => r.registerCommand(Ct, (s) => ar(s) ? (s.preventDefault(), t?.(), !0) : !1, It), i = [r, t], e[0] = r, e[1] = t, e[2] = o, e[3] = i) : (o = e[2], i = e[3]), q(o, i), null;
|
|
1004
1013
|
}
|
|
1005
|
-
const
|
|
1014
|
+
const Re = ["table", "connector"], ur = (n) => n.sort((r, o) => Re.indexOf(r.group) - Re.indexOf(o.group)).map((r, o) => ({
|
|
1006
1015
|
...r,
|
|
1007
1016
|
index: o
|
|
1008
1017
|
})).reduce((r, o) => {
|
|
1009
1018
|
const i = r[o.group] ?? [];
|
|
1010
1019
|
return i.push(o), r[o.group] = i, r;
|
|
1011
1020
|
}, {});
|
|
1012
|
-
function
|
|
1021
|
+
function Ne(n) {
|
|
1013
1022
|
const e = C(22), {
|
|
1014
1023
|
id: t,
|
|
1015
1024
|
isSelected: r,
|
|
@@ -1018,30 +1027,30 @@ function Ce(n) {
|
|
|
1018
1027
|
setRefElement: s,
|
|
1019
1028
|
secondaryLabel: c,
|
|
1020
1029
|
primaryLabel: a,
|
|
1021
|
-
tabIndex:
|
|
1022
|
-
} = n, u =
|
|
1030
|
+
tabIndex: h
|
|
1031
|
+
} = n, u = h === void 0 ? -1 : h, p = r ? "bg.active" : "transparent", f = r ? "bg.active" : "bg.hover";
|
|
1023
1032
|
let d;
|
|
1024
|
-
e[0] !==
|
|
1025
|
-
bg:
|
|
1026
|
-
}, e[0] =
|
|
1027
|
-
let
|
|
1028
|
-
e[2] !== a ? (
|
|
1033
|
+
e[0] !== f ? (d = {
|
|
1034
|
+
bg: f
|
|
1035
|
+
}, e[0] = f, e[1] = d) : d = e[1];
|
|
1036
|
+
let m;
|
|
1037
|
+
e[2] !== a ? (m = /* @__PURE__ */ l(ee.Trigger, { children: /* @__PURE__ */ l(P, { mt: "1px", lineClamp: 1, textOverflow: "ellipsis", textStyle: "label/M/regular", children: a }) }), e[2] = a, e[3] = m) : m = e[3];
|
|
1038
|
+
let x;
|
|
1039
|
+
e[4] !== a ? (x = /* @__PURE__ */ l(ee.Positioner, { children: /* @__PURE__ */ l(ee.Content, { children: a }) }), e[4] = a, e[5] = x) : x = e[5];
|
|
1029
1040
|
let g;
|
|
1030
|
-
e[
|
|
1041
|
+
e[6] !== m || e[7] !== x ? (g = /* @__PURE__ */ F(ee.Root, { children: [
|
|
1042
|
+
m,
|
|
1043
|
+
x
|
|
1044
|
+
] }), e[6] = m, e[7] = x, e[8] = g) : g = e[8];
|
|
1031
1045
|
let _;
|
|
1032
|
-
e[
|
|
1033
|
-
f,
|
|
1034
|
-
g
|
|
1035
|
-
] }), e[6] = f, e[7] = g, e[8] = _) : _ = e[8];
|
|
1036
|
-
let E;
|
|
1037
|
-
e[9] !== c ? (E = c && /* @__PURE__ */ l(L, { lineClamp: 2, textOverflow: "ellipsis", textStyle: "label/S/regular", color: "fg.muted", children: c }), e[9] = c, e[10] = E) : E = e[10];
|
|
1046
|
+
e[9] !== c ? (_ = c && /* @__PURE__ */ l(P, { lineClamp: 2, textOverflow: "ellipsis", textStyle: "label/S/regular", color: "fg.muted", children: c }), e[9] = c, e[10] = _) : _ = e[10];
|
|
1038
1047
|
let T;
|
|
1039
|
-
return e[11] !== t || e[12] !== r || e[13] !== o || e[14] !== i || e[15] !== s || e[16] !==
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
] }), e[11] = t, e[12] = r, e[13] = o, e[14] = i, e[15] = s, e[16] =
|
|
1048
|
+
return e[11] !== t || e[12] !== r || e[13] !== o || e[14] !== i || e[15] !== s || e[16] !== p || e[17] !== d || e[18] !== g || e[19] !== _ || e[20] !== u ? (T = /* @__PURE__ */ F(fe, { direction: "column", cursor: "pointer", gap: "2xs", padding: "2xs", paddingX: "sm", bg: p, _hover: d, tabIndex: u, ref: s, role: "option", "aria-selected": r, id: t, onMouseEnter: i, onClick: o, children: [
|
|
1049
|
+
g,
|
|
1050
|
+
_
|
|
1051
|
+
] }), e[11] = t, e[12] = r, e[13] = o, e[14] = i, e[15] = s, e[16] = p, e[17] = d, e[18] = g, e[19] = _, e[20] = u, e[21] = T) : T = e[21], T;
|
|
1043
1052
|
}
|
|
1044
|
-
const
|
|
1053
|
+
const mr = (n) => {
|
|
1045
1054
|
const e = C(12), {
|
|
1046
1055
|
options: t,
|
|
1047
1056
|
selectedIndex: r,
|
|
@@ -1050,37 +1059,37 @@ const cr = (n) => {
|
|
|
1050
1059
|
} = n, {
|
|
1051
1060
|
table: s,
|
|
1052
1061
|
connector: c
|
|
1053
|
-
} =
|
|
1054
|
-
let
|
|
1055
|
-
e[0] !== r ? (
|
|
1062
|
+
} = ur(t), a = s === void 0 ? [] : s, h = c === void 0 ? [] : c, u = [...a, ...h].length;
|
|
1063
|
+
let p, f;
|
|
1064
|
+
e[0] !== r ? (p = () => {
|
|
1056
1065
|
document.getElementById(`typeahead-item-${r}`)?.scrollIntoView({
|
|
1057
1066
|
behavior: "instant",
|
|
1058
1067
|
block: "nearest"
|
|
1059
1068
|
});
|
|
1060
|
-
},
|
|
1061
|
-
const d = w,
|
|
1069
|
+
}, f = [r], e[0] = r, e[1] = p, e[2] = f) : (p = e[1], f = e[2]), q(p, f);
|
|
1070
|
+
const d = w, m = "1000", x = "absolute", g = "modal", _ = "auto", T = "24rem";
|
|
1062
1071
|
let y;
|
|
1063
1072
|
e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (y = {
|
|
1064
1073
|
base: "100vw",
|
|
1065
1074
|
md: "264px"
|
|
1066
1075
|
}, e[3] = y) : y = e[3];
|
|
1067
1076
|
let R;
|
|
1068
|
-
e[4] !== u ? (R = !u && /* @__PURE__ */ l(
|
|
1077
|
+
e[4] !== u ? (R = !u && /* @__PURE__ */ l(P, { children: "No results" }), e[4] = u, e[5] = R) : R = e[5];
|
|
1069
1078
|
const b = !!a.length && /* @__PURE__ */ F(Ee, { children: [
|
|
1070
|
-
/* @__PURE__ */ l(
|
|
1071
|
-
/* @__PURE__ */ l(w, { children: a.map((
|
|
1072
|
-
] }), N = !!
|
|
1073
|
-
/* @__PURE__ */ l(
|
|
1074
|
-
/* @__PURE__ */ l(w, { children:
|
|
1079
|
+
/* @__PURE__ */ l(P, { paddingTop: "xs", paddingBottom: "2xs", paddingX: "sm", color: "fg.muted", textStyle: "label/S/medium", children: "Tables" }),
|
|
1080
|
+
/* @__PURE__ */ l(w, { children: a.map((E) => /* @__PURE__ */ l(Ne, { id: `typeahead-item-${E.index}`, isSelected: r === E.index, onClick: () => o(E, E.index), onMouseEnter: () => i(E.index), primaryLabel: E.name, secondaryLabel: E.description, setRefElement: E.setRefElement, tabIndex: -1 }, E.id)) })
|
|
1081
|
+
] }), N = !!h.length && /* @__PURE__ */ F(Ee, { children: [
|
|
1082
|
+
/* @__PURE__ */ l(P, { paddingTop: "xs", paddingBottom: "2xs", paddingX: "sm", color: "fg.muted", textStyle: "label/S/medium", children: "Data Sources" }),
|
|
1083
|
+
/* @__PURE__ */ l(w, { children: h.map((E) => /* @__PURE__ */ l(Ne, { id: `typeahead-item-${E.index}`, isSelected: r === E.index, onClick: () => o(E, E.index), onMouseEnter: () => i(E.index), primaryLabel: E.name, secondaryLabel: E.description, setRefElement: E.setRefElement, tabIndex: -1 }, E.id)) })
|
|
1075
1084
|
] });
|
|
1076
1085
|
let S;
|
|
1077
|
-
return e[6] !== d || e[7] !== R || e[8] !== b || e[9] !== N || e[10] !== y ? (S = /* @__PURE__ */ F(d, { zIndex:
|
|
1086
|
+
return e[6] !== d || e[7] !== R || e[8] !== b || e[9] !== N || e[10] !== y ? (S = /* @__PURE__ */ F(d, { zIndex: m, position: x, layerStyle: g, overflow: _, maxHeight: T, minWidth: y, children: [
|
|
1078
1087
|
R,
|
|
1079
1088
|
b,
|
|
1080
1089
|
N
|
|
1081
1090
|
] }), e[6] = d, e[7] = R, e[8] = b, e[9] = N, e[10] = y, e[11] = S) : S = e[11], S;
|
|
1082
|
-
},
|
|
1083
|
-
function
|
|
1091
|
+
}, fr = (n, e) => n.filter((t) => t.name.replace(/ /g, "_").toLowerCase().includes(e.toLowerCase()));
|
|
1092
|
+
function hr(n, e = []) {
|
|
1084
1093
|
const t = e.map((r, o) => ({
|
|
1085
1094
|
id: r.resourceId,
|
|
1086
1095
|
key: r.resourceId,
|
|
@@ -1091,12 +1100,12 @@ function dr(n, e = []) {
|
|
|
1091
1100
|
setRefElement: () => {
|
|
1092
1101
|
}
|
|
1093
1102
|
}));
|
|
1094
|
-
return n == null || n === "" ? t :
|
|
1103
|
+
return n == null || n === "" ? t : fr(t, n);
|
|
1095
1104
|
}
|
|
1096
|
-
const it = "\\.\\-<>_:", ge = ["#"].join(""), st = `[^${ge}${it}\\s]`,
|
|
1097
|
-
function
|
|
1098
|
-
let t =
|
|
1099
|
-
if (t === null && (t =
|
|
1105
|
+
const it = "\\.\\-<>_:", ge = ["#"].join(""), st = `[^${ge}${it}\\s]`, pr = `(?:[${it}]|)`, lt = 75, _r = new RegExp(`(^|\\s|\\()([${ge}]((?:${st}${pr}){0,${lt}}))$`), gr = new RegExp(`(^|\\s|\\()([${ge}]((?:${st}){0,${lt}}))$`);
|
|
1106
|
+
function Er(n, e) {
|
|
1107
|
+
let t = _r.exec(n);
|
|
1108
|
+
if (t === null && (t = gr.exec(n)), t !== null) {
|
|
1100
1109
|
const r = t[1], o = t[3];
|
|
1101
1110
|
if (o.length >= e)
|
|
1102
1111
|
return {
|
|
@@ -1107,47 +1116,47 @@ function hr(n, e) {
|
|
|
1107
1116
|
}
|
|
1108
1117
|
return null;
|
|
1109
1118
|
}
|
|
1110
|
-
const
|
|
1111
|
-
function
|
|
1119
|
+
const xr = 20;
|
|
1120
|
+
function br(n) {
|
|
1112
1121
|
const e = C(9), {
|
|
1113
1122
|
items: t
|
|
1114
1123
|
} = n;
|
|
1115
1124
|
let r;
|
|
1116
1125
|
e[0] !== t ? (r = t === void 0 ? [] : t, e[0] = t, e[1] = r) : r = e[1];
|
|
1117
|
-
const o = r, [i, s] =
|
|
1118
|
-
let
|
|
1119
|
-
e[2] !== c ? (
|
|
1126
|
+
const o = r, [i, s] = Pt(null), [c] = H(), a = hr(i, o);
|
|
1127
|
+
let h;
|
|
1128
|
+
e[2] !== c ? (h = (x, g, _) => {
|
|
1120
1129
|
c.update(() => {
|
|
1121
|
-
|
|
1122
|
-
resourceId:
|
|
1123
|
-
resourceType:
|
|
1124
|
-
name:
|
|
1125
|
-
nodeToReplace:
|
|
1126
|
-
}),
|
|
1130
|
+
g && (c.dispatchCommand(nt, {
|
|
1131
|
+
resourceId: x.id,
|
|
1132
|
+
resourceType: x.group,
|
|
1133
|
+
name: x.name,
|
|
1134
|
+
nodeToReplace: g
|
|
1135
|
+
}), _());
|
|
1127
1136
|
});
|
|
1128
|
-
}, e[2] = c, e[3] =
|
|
1129
|
-
const u =
|
|
1130
|
-
let h;
|
|
1131
|
-
e[4] !== a ? (h = a.slice(0, pr), e[4] = a, e[5] = h) : h = e[5];
|
|
1132
|
-
const d = h;
|
|
1137
|
+
}, e[2] = c, e[3] = h) : h = e[3];
|
|
1138
|
+
const u = h, p = yr;
|
|
1133
1139
|
let f;
|
|
1134
|
-
|
|
1140
|
+
e[4] !== a ? (f = a.slice(0, xr), e[4] = a, e[5] = f) : f = e[5];
|
|
1141
|
+
const d = f;
|
|
1142
|
+
let m;
|
|
1143
|
+
return e[6] !== d || e[7] !== u ? (m = /* @__PURE__ */ l(Dt, { onQueryChange: s, onSelectOption: u, triggerFn: p, options: d, menuRenderFn: Sr }), e[6] = d, e[7] = u, e[8] = m) : m = e[8], m;
|
|
1135
1144
|
}
|
|
1136
|
-
function
|
|
1145
|
+
function Sr(n, e) {
|
|
1137
1146
|
const {
|
|
1138
1147
|
options: t,
|
|
1139
1148
|
selectedIndex: r,
|
|
1140
1149
|
selectOptionAndCleanUp: o,
|
|
1141
1150
|
setHighlightedIndex: i
|
|
1142
1151
|
} = e;
|
|
1143
|
-
return n.current ? Ft.createPortal(/* @__PURE__ */ l(
|
|
1152
|
+
return n.current ? Ft.createPortal(/* @__PURE__ */ l(mr, { options: t, selectedIndex: r, onSelectItem: (s, c) => {
|
|
1144
1153
|
i(c), o(s);
|
|
1145
1154
|
}, onMouseEnterItem: (s) => {
|
|
1146
1155
|
i(s);
|
|
1147
1156
|
} }), n.current) : null;
|
|
1148
1157
|
}
|
|
1149
|
-
function
|
|
1150
|
-
return
|
|
1158
|
+
function yr(n) {
|
|
1159
|
+
return Er(n, 0);
|
|
1151
1160
|
}
|
|
1152
1161
|
class G extends te {
|
|
1153
1162
|
__referenceId;
|
|
@@ -1175,7 +1184,7 @@ class G extends te {
|
|
|
1175
1184
|
}
|
|
1176
1185
|
createDOM(e) {
|
|
1177
1186
|
const t = document.createElement("span");
|
|
1178
|
-
return
|
|
1187
|
+
return We(t, e.theme.reference), t.setAttribute("data-reference-id", this.__referenceId), t.setAttribute("data-name", this.__name), t.textContent = `#${this.__name}`, t;
|
|
1179
1188
|
}
|
|
1180
1189
|
updateDOM(e, t) {
|
|
1181
1190
|
return (e.__name !== this.__name || e.__referenceId !== this.__referenceId) && (t.setAttribute("data-reference-id", this.__referenceId), t.setAttribute("data-name", this.__name), t.textContent = `#${this.__name}`), !1;
|
|
@@ -1189,7 +1198,7 @@ class G extends te {
|
|
|
1189
1198
|
static importDOM() {
|
|
1190
1199
|
return {
|
|
1191
1200
|
span: (e) => !e.hasAttribute("data-reference-id") || !e.hasAttribute("data-name") ? null : {
|
|
1192
|
-
conversion:
|
|
1201
|
+
conversion: Tr,
|
|
1193
1202
|
priority: 1
|
|
1194
1203
|
}
|
|
1195
1204
|
};
|
|
@@ -1209,7 +1218,7 @@ class G extends te {
|
|
|
1209
1218
|
return `#${this.__name}`;
|
|
1210
1219
|
}
|
|
1211
1220
|
}
|
|
1212
|
-
function
|
|
1221
|
+
function Tr(n) {
|
|
1213
1222
|
const e = n.getAttribute("data-reference-id"), t = n.getAttribute("data-name");
|
|
1214
1223
|
return !e || !t ? null : {
|
|
1215
1224
|
node: ct(e, t)
|
|
@@ -1218,14 +1227,14 @@ function xr(n) {
|
|
|
1218
1227
|
function ct(n, e) {
|
|
1219
1228
|
return new G(n, e);
|
|
1220
1229
|
}
|
|
1221
|
-
const
|
|
1230
|
+
const Rr = (n, e, t) => {
|
|
1222
1231
|
const r = ct(e, t);
|
|
1223
1232
|
if (n) {
|
|
1224
1233
|
n?.replace(r), n.remove(), r.selectEnd();
|
|
1225
1234
|
return;
|
|
1226
1235
|
}
|
|
1227
1236
|
};
|
|
1228
|
-
function
|
|
1237
|
+
function Nr(n) {
|
|
1229
1238
|
const e = C(4), {
|
|
1230
1239
|
onAddReference: t
|
|
1231
1240
|
} = n, [r] = H();
|
|
@@ -1234,49 +1243,49 @@ function Sr(n) {
|
|
|
1234
1243
|
const {
|
|
1235
1244
|
resourceId: c,
|
|
1236
1245
|
resourceType: a,
|
|
1237
|
-
name:
|
|
1246
|
+
name: h,
|
|
1238
1247
|
nodeToReplace: u
|
|
1239
1248
|
} = s;
|
|
1240
1249
|
return r.update(() => {
|
|
1241
|
-
|
|
1250
|
+
Rr(u, c, h);
|
|
1242
1251
|
}), t?.(c, a), !0;
|
|
1243
|
-
},
|
|
1252
|
+
}, Ae)), i = [r, t], e[0] = r, e[1] = t, e[2] = o, e[3] = i) : (o = e[2], i = e[3]), q(o, i), null;
|
|
1244
1253
|
}
|
|
1245
|
-
const
|
|
1254
|
+
const Cr = {
|
|
1246
1255
|
..._e,
|
|
1247
1256
|
// Override paragraph class to remove margins specifically for prompt input
|
|
1248
1257
|
paragraph: "rich-text__p rich-text__p--no-margin"
|
|
1249
|
-
},
|
|
1258
|
+
}, Ir = [Q, Ot, G], Or = (n, e) => {
|
|
1250
1259
|
const t = C(39), {
|
|
1251
1260
|
defaultState: r,
|
|
1252
1261
|
debug: o,
|
|
1253
1262
|
isEditable: i,
|
|
1254
1263
|
placeholder: s
|
|
1255
1264
|
} = n, c = o === void 0 ? !1 : o, a = i === void 0 ? !0 : i, {
|
|
1256
|
-
onChange:
|
|
1265
|
+
onChange: h,
|
|
1257
1266
|
onError: u,
|
|
1258
|
-
onSubmit:
|
|
1259
|
-
references:
|
|
1267
|
+
onSubmit: p,
|
|
1268
|
+
references: f,
|
|
1260
1269
|
onAddReference: d
|
|
1261
|
-
} = n,
|
|
1262
|
-
let
|
|
1263
|
-
t[0] !==
|
|
1264
|
-
const
|
|
1265
|
-
let
|
|
1266
|
-
t[2] !== r || t[3] !== a || t[4] !==
|
|
1270
|
+
} = n, m = u === void 0 ? kr : u;
|
|
1271
|
+
let x;
|
|
1272
|
+
t[0] !== f ? (x = f === void 0 ? [] : f, t[0] = f, t[1] = x) : x = t[1];
|
|
1273
|
+
const g = x;
|
|
1274
|
+
let _;
|
|
1275
|
+
t[2] !== r || t[3] !== a || t[4] !== m ? (_ = {
|
|
1267
1276
|
namespace: "PROMPT_EDITOR",
|
|
1268
|
-
nodes:
|
|
1277
|
+
nodes: Ir,
|
|
1269
1278
|
editorState: r,
|
|
1270
1279
|
editable: a,
|
|
1271
|
-
onError:
|
|
1272
|
-
theme:
|
|
1273
|
-
}, t[2] = r, t[3] = a, t[4] =
|
|
1274
|
-
const T =
|
|
1280
|
+
onError: m,
|
|
1281
|
+
theme: Cr
|
|
1282
|
+
}, t[2] = r, t[3] = a, t[4] = m, t[5] = _) : _ = t[5];
|
|
1283
|
+
const T = _;
|
|
1275
1284
|
let y;
|
|
1276
1285
|
t[6] !== r ? (y = ot(r), t[6] = r, t[7] = y) : y = t[7];
|
|
1277
1286
|
const R = Mt(y);
|
|
1278
1287
|
let b;
|
|
1279
|
-
t[8] !== s ? (b = s ?? /* @__PURE__ */ F(
|
|
1288
|
+
t[8] !== s ? (b = s ?? /* @__PURE__ */ F(P, { textStyle: "label/M/regular", color: "fg.subtle", pointerEvents: "none", position: "absolute", top: "0", children: [
|
|
1280
1289
|
"Type your query here or press ",
|
|
1281
1290
|
/* @__PURE__ */ l(xt, { color: "fg.subtle", children: "#" }),
|
|
1282
1291
|
" to add a reference."
|
|
@@ -1284,48 +1293,48 @@ const yr = {
|
|
|
1284
1293
|
const N = b;
|
|
1285
1294
|
let S;
|
|
1286
1295
|
t[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (S = /* @__PURE__ */ l(kt, {}), t[10] = S) : S = t[10];
|
|
1287
|
-
let
|
|
1288
|
-
t[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
1296
|
+
let E;
|
|
1297
|
+
t[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (E = /* @__PURE__ */ l(Ue, { fullWidth: !0 }), t[11] = E) : E = t[11];
|
|
1289
1298
|
let O;
|
|
1290
|
-
t[12] !== N ? (O = /* @__PURE__ */ l(
|
|
1291
|
-
let
|
|
1292
|
-
t[14] !==
|
|
1299
|
+
t[12] !== N ? (O = /* @__PURE__ */ l(ze, { contentEditable: E, placeholder: N, ErrorBoundary: He }), t[12] = N, t[13] = O) : O = t[13];
|
|
1300
|
+
let L;
|
|
1301
|
+
t[14] !== h ? (L = /* @__PURE__ */ l(qe, { ignoreSelectionChange: !0, ignoreHistoryMergeTagChange: !1, onChange: (Z) => {
|
|
1293
1302
|
Z.read(() => {
|
|
1294
|
-
const dt =
|
|
1295
|
-
ie !== R.current && (R.current = ie,
|
|
1303
|
+
const dt = De(), ie = rr(dt);
|
|
1304
|
+
ie !== R.current && (R.current = ie, h?.(ie, Z.toJSON()));
|
|
1296
1305
|
});
|
|
1297
|
-
} }), t[14] =
|
|
1306
|
+
} }), t[14] = h, t[15] = L) : L = t[15];
|
|
1298
1307
|
let M;
|
|
1299
|
-
t[16] !== e ? (M = /* @__PURE__ */ l(
|
|
1308
|
+
t[16] !== e ? (M = /* @__PURE__ */ l(cr, { editorRef: e, previousTextRef: R }), t[16] = e, t[17] = M) : M = t[17];
|
|
1300
1309
|
let k;
|
|
1301
|
-
t[18] !== a ? (k = /* @__PURE__ */ l(
|
|
1310
|
+
t[18] !== a ? (k = /* @__PURE__ */ l(Qe, { isEditable: a }), t[18] = a, t[19] = k) : k = t[19];
|
|
1302
1311
|
let A;
|
|
1303
|
-
t[20] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (A = /* @__PURE__ */ l(
|
|
1312
|
+
t[20] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (A = /* @__PURE__ */ l(nr, {}), t[20] = A) : A = t[20];
|
|
1304
1313
|
let $;
|
|
1305
|
-
t[21] !==
|
|
1314
|
+
t[21] !== p ? ($ = /* @__PURE__ */ l(dr, { onSubmit: p }), t[21] = p, t[22] = $) : $ = t[22];
|
|
1306
1315
|
let v;
|
|
1307
|
-
t[23] !==
|
|
1316
|
+
t[23] !== g ? (v = /* @__PURE__ */ l(br, { items: g }), t[23] = g, t[24] = v) : v = t[24];
|
|
1308
1317
|
let D;
|
|
1309
|
-
t[25] !== d ? (D = /* @__PURE__ */ l(
|
|
1310
|
-
let
|
|
1311
|
-
t[27] !== c ? (
|
|
1318
|
+
t[25] !== d ? (D = /* @__PURE__ */ l(Nr, { onAddReference: d }), t[25] = d, t[26] = D) : D = t[26];
|
|
1319
|
+
let z;
|
|
1320
|
+
t[27] !== c ? (z = c ? /* @__PURE__ */ l(Ze, {}) : "", t[27] = c, t[28] = z) : z = t[28];
|
|
1312
1321
|
let V;
|
|
1313
|
-
return t[29] !== T || t[30] !== O || t[31] !==
|
|
1322
|
+
return t[29] !== T || t[30] !== O || t[31] !== L || t[32] !== M || t[33] !== k || t[34] !== $ || t[35] !== v || t[36] !== D || t[37] !== z ? (V = /* @__PURE__ */ l(fe, { direction: "column", justifyContent: "space-between", width: "100%", position: "relative", children: /* @__PURE__ */ F(Fe, { initialConfig: T, children: [
|
|
1314
1323
|
S,
|
|
1315
1324
|
O,
|
|
1316
|
-
|
|
1325
|
+
L,
|
|
1317
1326
|
M,
|
|
1318
1327
|
k,
|
|
1319
1328
|
A,
|
|
1320
1329
|
$,
|
|
1321
1330
|
v,
|
|
1322
1331
|
D,
|
|
1323
|
-
|
|
1324
|
-
] }) }), t[29] = T, t[30] = O, t[31] =
|
|
1325
|
-
},
|
|
1326
|
-
function
|
|
1332
|
+
z
|
|
1333
|
+
] }) }), t[29] = T, t[30] = O, t[31] = L, t[32] = M, t[33] = k, t[34] = $, t[35] = v, t[36] = D, t[37] = z, t[38] = V) : V = t[38], V;
|
|
1334
|
+
}, go = Lt(Or);
|
|
1335
|
+
function kr() {
|
|
1327
1336
|
}
|
|
1328
|
-
function
|
|
1337
|
+
function $r(n) {
|
|
1329
1338
|
const e = C(5), {
|
|
1330
1339
|
value: t,
|
|
1331
1340
|
onUpdate: r
|
|
@@ -1371,14 +1380,14 @@ class j extends Y {
|
|
|
1371
1380
|
}
|
|
1372
1381
|
decorate(e, t) {
|
|
1373
1382
|
const r = this.__href, i = r.split("/").pop() || "unknown", s = /^https?:\/\//i.test(r), c = /^#?\$PROJECT\//i.test(r);
|
|
1374
|
-
return /* @__PURE__ */ l(w, { width: "fit-content", display: "inline-block", children: /* @__PURE__ */ l(
|
|
1383
|
+
return /* @__PURE__ */ l(w, { width: "fit-content", display: "inline-block", children: /* @__PURE__ */ l(Je, { fileName: i, onSelect: () => {
|
|
1375
1384
|
if (s)
|
|
1376
1385
|
window.open(r, "_blank", "noopener,noreferrer");
|
|
1377
1386
|
else if (c) {
|
|
1378
|
-
const a = r.replace(/^#?\$PROJECT\//i, ""),
|
|
1387
|
+
const a = r.replace(/^#?\$PROJECT\//i, ""), h = new CustomEvent("ui:open-project-file", {
|
|
1379
1388
|
detail: a
|
|
1380
1389
|
});
|
|
1381
|
-
window.dispatchEvent(
|
|
1390
|
+
window.dispatchEvent(h);
|
|
1382
1391
|
} else
|
|
1383
1392
|
window.location.assign(r);
|
|
1384
1393
|
} }) });
|
|
@@ -1387,85 +1396,85 @@ class j extends Y {
|
|
|
1387
1396
|
function at(n, e) {
|
|
1388
1397
|
return new j(n, e);
|
|
1389
1398
|
}
|
|
1390
|
-
function
|
|
1399
|
+
function vr(n) {
|
|
1391
1400
|
return n instanceof j;
|
|
1392
1401
|
}
|
|
1393
|
-
const
|
|
1402
|
+
const Ce = /\{\{\s*link\((['"])([^'"\s]+)\1\)\s*\}\}/, wr = {
|
|
1394
1403
|
dependencies: [j],
|
|
1395
1404
|
export: (n) => {
|
|
1396
|
-
if (
|
|
1405
|
+
if (vr(n)) {
|
|
1397
1406
|
const e = n.__href, t = n.__label ?? e;
|
|
1398
1407
|
return t ? `{{link('${t}')}}` : `{{link('${e}')}}`;
|
|
1399
1408
|
}
|
|
1400
1409
|
return null;
|
|
1401
1410
|
},
|
|
1402
|
-
regExp:
|
|
1403
|
-
importRegExp:
|
|
1411
|
+
regExp: Ce,
|
|
1412
|
+
importRegExp: Ce,
|
|
1404
1413
|
replace: (n, e) => {
|
|
1405
1414
|
const t = e[2], o = /^(https?:\/\/|\/)/i.test(t) ? t : `#${t}`, i = t;
|
|
1406
1415
|
n.replace(at(o, i));
|
|
1407
1416
|
},
|
|
1408
1417
|
type: "text-match"
|
|
1409
|
-
}, de = [...
|
|
1410
|
-
function
|
|
1418
|
+
}, de = [...ve, ...Ye, Ve, Xe, wr];
|
|
1419
|
+
function Eo(n) {
|
|
1411
1420
|
const e = C(37), {
|
|
1412
1421
|
debug: t,
|
|
1413
1422
|
defaultState: r,
|
|
1414
1423
|
fullWidth: o,
|
|
1415
1424
|
isEditable: i,
|
|
1416
1425
|
onChange: s
|
|
1417
|
-
} = n, c = t === void 0 ? !1 : t, a = r === void 0 ? "" : r,
|
|
1418
|
-
let
|
|
1419
|
-
e[0] !== a ? (
|
|
1426
|
+
} = n, c = t === void 0 ? !1 : t, a = r === void 0 ? "" : r, h = o === void 0 ? !1 : o, u = i === void 0 ? !1 : i;
|
|
1427
|
+
let p;
|
|
1428
|
+
e[0] !== a ? (p = vn(a), e[0] = a, e[1] = p) : p = e[1];
|
|
1420
1429
|
const {
|
|
1421
|
-
frontmatter:
|
|
1430
|
+
frontmatter: f,
|
|
1422
1431
|
body: d
|
|
1423
|
-
} =
|
|
1432
|
+
} = p, m = u && !!s;
|
|
1433
|
+
let x;
|
|
1434
|
+
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (x = [Pe, Oe, me, U, Le, ke, $e, ue, Ie, J, W, K, j], e[2] = x) : x = e[2];
|
|
1424
1435
|
let g;
|
|
1425
|
-
e[
|
|
1436
|
+
e[3] !== d ? (g = () => we(tt(d), de, void 0, !1), e[3] = d, e[4] = g) : g = e[4];
|
|
1426
1437
|
let _;
|
|
1427
|
-
e[
|
|
1428
|
-
let E;
|
|
1429
|
-
e[5] !== u || e[6] !== _ ? (E = {
|
|
1438
|
+
e[5] !== u || e[6] !== g ? (_ = {
|
|
1430
1439
|
namespace: "RICH_MESSAGE",
|
|
1431
|
-
nodes:
|
|
1432
|
-
editorState:
|
|
1433
|
-
onError:
|
|
1440
|
+
nodes: x,
|
|
1441
|
+
editorState: g,
|
|
1442
|
+
onError: Lr,
|
|
1434
1443
|
editable: u,
|
|
1435
1444
|
theme: _e
|
|
1436
|
-
}, e[5] = u, e[6] =
|
|
1437
|
-
const T =
|
|
1445
|
+
}, e[5] = u, e[6] = g, e[7] = _) : _ = e[7];
|
|
1446
|
+
const T = _;
|
|
1438
1447
|
let y;
|
|
1439
|
-
e[8] !== d ? (y = /* @__PURE__ */ l(
|
|
1448
|
+
e[8] !== d ? (y = /* @__PURE__ */ l($r, { value: d, onUpdate: Pr }), e[8] = d, e[9] = y) : y = e[9];
|
|
1440
1449
|
let R, b, N;
|
|
1441
|
-
e[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (N = /* @__PURE__ */ l(
|
|
1450
|
+
e[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (N = /* @__PURE__ */ l(zt, {}), R = /* @__PURE__ */ l(Ht, { newTab: !0 }), b = /* @__PURE__ */ l(Bt, {}), e[10] = R, e[11] = b, e[12] = N) : (R = e[10], b = e[11], N = e[12]);
|
|
1442
1451
|
let S;
|
|
1443
|
-
e[13] !== u ? (S = u ? /* @__PURE__ */ l(
|
|
1444
|
-
let
|
|
1445
|
-
e[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
1452
|
+
e[13] !== u ? (S = u ? /* @__PURE__ */ l(Wt, { maxIndent: 7 }) : null, e[13] = u, e[14] = S) : S = e[14];
|
|
1453
|
+
let E, O, L, M;
|
|
1454
|
+
e[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (E = /* @__PURE__ */ l(qt, {}), O = /* @__PURE__ */ l(yn, {}), L = /* @__PURE__ */ l(bn, {}), M = /* @__PURE__ */ l(dn, {}), e[15] = E, e[16] = O, e[17] = L, e[18] = M) : (E = e[15], O = e[16], L = e[17], M = e[18]);
|
|
1446
1455
|
let k;
|
|
1447
|
-
e[19] !==
|
|
1456
|
+
e[19] !== h ? (k = /* @__PURE__ */ l(ze, { contentEditable: /* @__PURE__ */ l(Ue, { fullWidth: h, isRichMessage: !0 }), ErrorBoundary: He }), e[19] = h, e[20] = k) : k = e[20];
|
|
1448
1457
|
let A;
|
|
1449
|
-
e[21] !==
|
|
1450
|
-
|
|
1451
|
-
const V =
|
|
1452
|
-
s?.(
|
|
1458
|
+
e[21] !== f || e[22] !== s || e[23] !== m ? (A = m ? /* @__PURE__ */ l(qe, { ignoreSelectionChange: !0, ignoreHistoryMergeTagChange: !1, onChange: (z) => {
|
|
1459
|
+
z.read(() => {
|
|
1460
|
+
const V = De(), Z = pt(de, V);
|
|
1461
|
+
s?.(f + Z);
|
|
1453
1462
|
});
|
|
1454
|
-
} }) : null, e[21] =
|
|
1463
|
+
} }) : null, e[21] = f, e[22] = s, e[23] = m, e[24] = A) : A = e[24];
|
|
1455
1464
|
let $;
|
|
1456
|
-
e[25] !== u ? ($ = /* @__PURE__ */ l(
|
|
1465
|
+
e[25] !== u ? ($ = /* @__PURE__ */ l(Qe, { isEditable: u }), e[25] = u, e[26] = $) : $ = e[26];
|
|
1457
1466
|
let v;
|
|
1458
|
-
e[27] !== c ? (v = c && /* @__PURE__ */ l(
|
|
1467
|
+
e[27] !== c ? (v = c && /* @__PURE__ */ l(Ze, {}), e[27] = c, e[28] = v) : v = e[28];
|
|
1459
1468
|
let D;
|
|
1460
|
-
return e[29] !== T || e[30] !== S || e[31] !== k || e[32] !== A || e[33] !== $ || e[34] !== v || e[35] !== y ? (D = /* @__PURE__ */ l(fe, { className: "rich-text", "data-rich-message": "true", justifyContent: "space-between", width: "100%", maxWidth: "100%", height: "100%", position: "relative", direction: "column", overflow: "hidden", children: /* @__PURE__ */ F(
|
|
1469
|
+
return e[29] !== T || e[30] !== S || e[31] !== k || e[32] !== A || e[33] !== $ || e[34] !== v || e[35] !== y ? (D = /* @__PURE__ */ l(fe, { className: "rich-text", "data-rich-message": "true", justifyContent: "space-between", width: "100%", maxWidth: "100%", height: "100%", position: "relative", direction: "column", overflow: "hidden", children: /* @__PURE__ */ F(Fe, { initialConfig: T, children: [
|
|
1461
1470
|
y,
|
|
1462
1471
|
N,
|
|
1463
1472
|
R,
|
|
1464
1473
|
b,
|
|
1465
1474
|
S,
|
|
1466
|
-
|
|
1475
|
+
E,
|
|
1467
1476
|
O,
|
|
1468
|
-
|
|
1477
|
+
L,
|
|
1469
1478
|
M,
|
|
1470
1479
|
k,
|
|
1471
1480
|
A,
|
|
@@ -1473,31 +1482,31 @@ function ho(n) {
|
|
|
1473
1482
|
v
|
|
1474
1483
|
] }) }), e[29] = T, e[30] = S, e[31] = k, e[32] = A, e[33] = $, e[34] = v, e[35] = y, e[36] = D) : D = e[36], D;
|
|
1475
1484
|
}
|
|
1476
|
-
function
|
|
1477
|
-
|
|
1485
|
+
function Pr(n) {
|
|
1486
|
+
we(tt(n), de, void 0, !1);
|
|
1478
1487
|
}
|
|
1479
|
-
function
|
|
1488
|
+
function Lr(n) {
|
|
1480
1489
|
return console.error(n);
|
|
1481
1490
|
}
|
|
1482
1491
|
export {
|
|
1483
|
-
|
|
1492
|
+
fo as $,
|
|
1484
1493
|
yn as C,
|
|
1485
|
-
|
|
1494
|
+
mo as D,
|
|
1486
1495
|
dn as E,
|
|
1487
1496
|
bn as I,
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1497
|
+
go as P,
|
|
1498
|
+
Eo as R,
|
|
1499
|
+
Qe as T,
|
|
1500
|
+
ho as a,
|
|
1501
|
+
Ue as b,
|
|
1502
|
+
po as c,
|
|
1503
|
+
Ze as d,
|
|
1504
|
+
_o as e,
|
|
1496
1505
|
sn as f,
|
|
1497
|
-
|
|
1506
|
+
lr as g,
|
|
1498
1507
|
ot as h,
|
|
1499
|
-
|
|
1508
|
+
Je as i,
|
|
1500
1509
|
tt as n,
|
|
1501
|
-
|
|
1510
|
+
vn as s
|
|
1502
1511
|
};
|
|
1503
|
-
//# sourceMappingURL=rich-message-
|
|
1512
|
+
//# sourceMappingURL=rich-message-DeJwzVeV.js.map
|