@tomny-dev/uzi 0.14.0 → 0.15.0
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/components/filter-workspace/FilterWorkspace.d.ts +40 -0
- package/dist/components/filter-workspace/FilterWorkspace.d.ts.map +1 -0
- package/dist/components/filter-workspace/FilterWorkspace.test.d.ts +2 -0
- package/dist/components/filter-workspace/FilterWorkspace.test.d.ts.map +1 -0
- package/dist/index.cjs +18 -14
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +16 -15
- package/dist/index57.js +21 -10
- package/dist/index57.js.map +1 -1
- package/dist/index58.cjs +30 -11
- package/dist/index58.cjs.map +1 -1
- package/dist/index58.js +101 -14
- package/dist/index58.js.map +1 -1
- package/dist/index59.cjs +104 -13
- package/dist/index59.cjs.map +1 -1
- package/dist/index59.js +10 -11
- package/dist/index59.js.map +1 -1
- package/dist/index60.cjs +11 -13
- package/dist/index60.cjs.map +1 -1
- package/dist/index60.js +13 -16
- package/dist/index60.js.map +1 -1
- package/dist/index61.cjs +13 -16
- package/dist/index61.cjs.map +1 -1
- package/dist/index61.js +10 -8
- package/dist/index61.js.map +1 -1
- package/dist/index62.cjs +11 -10
- package/dist/index62.cjs.map +1 -1
- package/dist/index62.js +15 -87
- package/dist/index62.js.map +1 -1
- package/dist/index63.cjs +15 -89
- package/dist/index63.cjs.map +1 -1
- package/dist/index63.js +9 -23
- package/dist/index63.js.map +1 -1
- package/dist/index64.cjs +12 -33
- package/dist/index64.cjs.map +1 -1
- package/dist/index64.js +89 -43
- package/dist/index64.js.map +1 -1
- package/dist/index65.cjs +88 -42
- package/dist/index65.cjs.map +1 -1
- package/dist/index65.js +23 -15
- package/dist/index65.js.map +1 -1
- package/dist/index66.cjs +33 -21
- package/dist/index66.cjs.map +1 -1
- package/dist/index66.js +44 -51
- package/dist/index66.js.map +1 -1
- package/dist/index67.cjs +43 -52
- package/dist/index67.cjs.map +1 -1
- package/dist/index67.js +14 -14
- package/dist/index67.js.map +1 -1
- package/dist/index68.cjs +19 -19
- package/dist/index68.cjs.map +1 -1
- package/dist/index68.js +49 -290
- package/dist/index68.js.map +1 -1
- package/dist/index69.cjs +51 -290
- package/dist/index69.cjs.map +1 -1
- package/dist/index69.js +15 -57
- package/dist/index69.js.map +1 -1
- package/dist/index70.cjs +20 -83
- package/dist/index70.cjs.map +1 -1
- package/dist/index70.js +276 -418
- package/dist/index70.js.map +1 -1
- package/dist/index71.cjs +275 -419
- package/dist/index71.cjs.map +1 -1
- package/dist/index71.js +56 -58
- package/dist/index71.js.map +1 -1
- package/dist/index72.cjs +82 -85
- package/dist/index72.cjs.map +1 -1
- package/dist/index72.js +420 -226
- package/dist/index72.js.map +1 -1
- package/dist/index73.cjs +421 -225
- package/dist/index73.cjs.map +1 -1
- package/dist/index73.js +58 -42
- package/dist/index73.js.map +1 -1
- package/dist/index74.cjs +85 -61
- package/dist/index74.cjs.map +1 -1
- package/dist/index74.js +236 -76
- package/dist/index74.js.map +1 -1
- package/dist/index75.cjs +235 -75
- package/dist/index75.cjs.map +1 -1
- package/dist/index75.js +42 -20
- package/dist/index75.js.map +1 -1
- package/dist/index76.cjs +60 -27
- package/dist/index76.cjs.map +1 -1
- package/dist/index76.js +73 -88
- package/dist/index76.js.map +1 -1
- package/dist/index77.cjs +73 -90
- package/dist/index77.cjs.map +1 -1
- package/dist/index77.js +17 -15
- package/dist/index77.js.map +1 -1
- package/dist/index78.cjs +22 -19
- package/dist/index78.cjs.map +1 -1
- package/dist/index78.js +85 -143
- package/dist/index78.js.map +1 -1
- package/dist/index79.cjs +87 -143
- package/dist/index79.cjs.map +1 -1
- package/dist/index79.js +19 -91
- package/dist/index79.js.map +1 -1
- package/dist/index80.cjs +27 -135
- package/dist/index80.cjs.map +1 -1
- package/dist/index80.js +140 -673
- package/dist/index80.js.map +1 -1
- package/dist/index81.cjs +140 -673
- package/dist/index81.cjs.map +1 -1
- package/dist/index81.js +91 -31
- package/dist/index81.js.map +1 -1
- package/dist/index82.cjs +135 -45
- package/dist/index82.cjs.map +1 -1
- package/dist/index82.js +667 -206
- package/dist/index82.js.map +1 -1
- package/dist/index83.cjs +667 -204
- package/dist/index83.cjs.map +1 -1
- package/dist/index83.js +31 -15
- package/dist/index83.js.map +1 -1
- package/dist/index84.cjs +45 -21
- package/dist/index84.cjs.map +1 -1
- package/dist/index84.js +224 -29
- package/dist/index84.js.map +1 -1
- package/dist/index85.cjs +224 -30
- package/dist/index85.cjs.map +1 -1
- package/dist/index85.js +19 -0
- package/dist/index85.js.map +1 -0
- package/dist/index86.cjs +25 -0
- package/dist/index86.cjs.map +1 -0
- package/dist/index86.js +36 -0
- package/dist/index86.js.map +1 -0
- package/dist/index87.cjs +37 -0
- package/dist/index87.cjs.map +1 -0
- package/dist/style.css +53 -0
- package/package.json +1 -1
package/dist/index80.js
CHANGED
|
@@ -1,692 +1,159 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
function DefaultSourceRenderer({ sources, renderSource }) {
|
|
51
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
52
|
-
className: ai_chat_module_default.sources,
|
|
53
|
-
children: [/* @__PURE__ */ jsx("span", {
|
|
54
|
-
className: ai_chat_module_default.sourcesLabel,
|
|
55
|
-
children: "Sources"
|
|
56
|
-
}), /* @__PURE__ */ jsx("ul", { children: sources.map((source, index) => /* @__PURE__ */ jsx("li", { children: renderSource(source, index) }, source.id)) })]
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
function DefaultDataRenderer({ data, renderDataItem }) {
|
|
60
|
-
return /* @__PURE__ */ jsx("div", {
|
|
61
|
-
className: ai_chat_module_default.data,
|
|
62
|
-
children: data.map((item, index) => /* @__PURE__ */ jsx("div", { children: renderDataItem(item, index) }, index))
|
|
1
|
+
import { cx } from "./index3.js";
|
|
2
|
+
import empty_state_page_module_default from "./index79.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
//#region src/components/empty-state-page/EmptyStatePage.tsx
|
|
6
|
+
/** Inline SVG icon for the "no data" variant */
|
|
7
|
+
function NoDataIcon() {
|
|
8
|
+
return /* @__PURE__ */ jsxs("svg", {
|
|
9
|
+
viewBox: "0 0 48 48",
|
|
10
|
+
fill: "none",
|
|
11
|
+
className: empty_state_page_module_default.iconSvg,
|
|
12
|
+
"aria-hidden": "true",
|
|
13
|
+
children: [
|
|
14
|
+
/* @__PURE__ */ jsx("rect", {
|
|
15
|
+
x: "8",
|
|
16
|
+
y: "10",
|
|
17
|
+
width: "32",
|
|
18
|
+
height: "28",
|
|
19
|
+
rx: "4",
|
|
20
|
+
stroke: "currentColor",
|
|
21
|
+
strokeWidth: "2"
|
|
22
|
+
}),
|
|
23
|
+
/* @__PURE__ */ jsx("line", {
|
|
24
|
+
x1: "8",
|
|
25
|
+
y1: "18",
|
|
26
|
+
x2: "40",
|
|
27
|
+
y2: "18",
|
|
28
|
+
stroke: "currentColor",
|
|
29
|
+
strokeWidth: "2"
|
|
30
|
+
}),
|
|
31
|
+
/* @__PURE__ */ jsx("line", {
|
|
32
|
+
x1: "16",
|
|
33
|
+
y1: "24",
|
|
34
|
+
x2: "28",
|
|
35
|
+
y2: "24",
|
|
36
|
+
stroke: "currentColor",
|
|
37
|
+
strokeWidth: "2",
|
|
38
|
+
strokeLinecap: "round"
|
|
39
|
+
}),
|
|
40
|
+
/* @__PURE__ */ jsx("line", {
|
|
41
|
+
x1: "16",
|
|
42
|
+
y1: "30",
|
|
43
|
+
x2: "32",
|
|
44
|
+
y2: "30",
|
|
45
|
+
stroke: "currentColor",
|
|
46
|
+
strokeWidth: "2",
|
|
47
|
+
strokeLinecap: "round"
|
|
48
|
+
})
|
|
49
|
+
]
|
|
63
50
|
});
|
|
64
51
|
}
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
52
|
+
/** Inline SVG icon for the "no connection" variant */
|
|
53
|
+
function NoConnectionIcon() {
|
|
54
|
+
return /* @__PURE__ */ jsxs("svg", {
|
|
55
|
+
viewBox: "0 0 48 48",
|
|
56
|
+
fill: "none",
|
|
57
|
+
className: empty_state_page_module_default.iconSvg,
|
|
58
|
+
"aria-hidden": "true",
|
|
59
|
+
children: [/* @__PURE__ */ jsx("circle", {
|
|
60
|
+
cx: "24",
|
|
61
|
+
cy: "24",
|
|
62
|
+
r: "14",
|
|
63
|
+
stroke: "currentColor",
|
|
64
|
+
strokeWidth: "2"
|
|
65
|
+
}), /* @__PURE__ */ jsx("path", {
|
|
66
|
+
d: "M18 18l12 12M30 18L18 30",
|
|
67
|
+
stroke: "currentColor",
|
|
68
|
+
strokeWidth: "2",
|
|
69
|
+
strokeLinecap: "round"
|
|
80
70
|
})]
|
|
81
71
|
});
|
|
82
72
|
}
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
if (type === "reasoning") return /* @__PURE__ */ jsx(components?.ReasoningRenderer ?? DefaultReasoningRenderer, { children: asString(part.text) ?? "" });
|
|
91
|
-
if (type === "source-url" || type === "source-document") return /* @__PURE__ */ jsx(components?.SourceRenderer ?? DefaultSourceRenderer, {
|
|
92
|
-
sources: [{
|
|
93
|
-
id: asString(part.sourceId) ?? asString(part.id) ?? `source-${index}`,
|
|
94
|
-
title: asString(part.title) ?? asString(part.filename),
|
|
95
|
-
url: safeHttpUrl(part.url)
|
|
96
|
-
}],
|
|
97
|
-
renderSource: (item) => item.url ? /* @__PURE__ */ jsx("a", {
|
|
98
|
-
href: item.url,
|
|
99
|
-
target: "_blank",
|
|
100
|
-
rel: "noopener noreferrer",
|
|
101
|
-
children: item.title ?? item.url
|
|
102
|
-
}) : /* @__PURE__ */ jsx("span", { children: item.title ?? item.id })
|
|
103
|
-
});
|
|
104
|
-
if (type.startsWith("data-")) return /* @__PURE__ */ jsx(components?.DataRenderer ?? DefaultDataRenderer, {
|
|
105
|
-
data: [part],
|
|
106
|
-
renderDataItem: (item) => /* @__PURE__ */ jsx("pre", {
|
|
107
|
-
className: ai_chat_module_default.structuredData,
|
|
108
|
-
children: JSON.stringify(item.data ?? item, null, 2)
|
|
109
|
-
})
|
|
110
|
-
});
|
|
111
|
-
if (type.startsWith("tool-") || type === "dynamic-tool") {
|
|
112
|
-
const name = asString(part.toolName) ?? type.replace(/^tool-/, "");
|
|
113
|
-
const approval = isRecord(part.approval) ? asString(part.approval.id) : void 0;
|
|
114
|
-
const approvalId = part.state === "approval-requested" ? approval : void 0;
|
|
115
|
-
const controlsDisabled = pendingApprovalId !== null && pendingApprovalId !== void 0;
|
|
116
|
-
const ToolRenderer = components?.ToolRenderer;
|
|
117
|
-
const props = {
|
|
118
|
-
part,
|
|
119
|
-
name,
|
|
120
|
-
approvalId,
|
|
121
|
-
approvalPending: controlsDisabled,
|
|
122
|
-
...approvalId && onToolApproval ? {
|
|
123
|
-
onApprove: () => {
|
|
124
|
-
if (!controlsDisabled) onToolApproval(approvalId, true);
|
|
125
|
-
},
|
|
126
|
-
onDeny: () => {
|
|
127
|
-
if (!controlsDisabled) onToolApproval(approvalId, false);
|
|
128
|
-
}
|
|
129
|
-
} : {}
|
|
130
|
-
};
|
|
131
|
-
if (ToolRenderer) return /* @__PURE__ */ jsx(ToolRenderer, { ...props });
|
|
132
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
133
|
-
className: ai_chat_module_default.toolPart,
|
|
134
|
-
children: [/* @__PURE__ */ jsxs("details", { children: [/* @__PURE__ */ jsx("summary", { children: name }), /* @__PURE__ */ jsx("pre", {
|
|
135
|
-
className: ai_chat_module_default.structuredData,
|
|
136
|
-
children: JSON.stringify(part.output ?? part.input ?? part, null, 2)
|
|
137
|
-
})] }), approvalId && /* @__PURE__ */ jsx("div", {
|
|
138
|
-
className: ai_chat_module_default.approvalActions,
|
|
139
|
-
"aria-label": `Approval required for ${name}`,
|
|
140
|
-
children: props.onApprove && props.onDeny ? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("button", {
|
|
141
|
-
type: "button",
|
|
142
|
-
disabled: controlsDisabled,
|
|
143
|
-
onClick: props.onApprove,
|
|
144
|
-
children: "Approve"
|
|
145
|
-
}), /* @__PURE__ */ jsx("button", {
|
|
146
|
-
type: "button",
|
|
147
|
-
disabled: controlsDisabled,
|
|
148
|
-
onClick: props.onDeny,
|
|
149
|
-
children: "Deny"
|
|
150
|
-
})] }) : /* @__PURE__ */ jsx("span", { children: "Approval required in application" })
|
|
151
|
-
})]
|
|
152
|
-
});
|
|
153
|
-
}
|
|
154
|
-
if (type === "file" || type === "image") {
|
|
155
|
-
const url = safeHttpUrl(part.url);
|
|
156
|
-
return url ? /* @__PURE__ */ jsx("a", {
|
|
157
|
-
href: url,
|
|
158
|
-
target: "_blank",
|
|
159
|
-
rel: "noopener noreferrer",
|
|
160
|
-
children: asString(part.filename) ?? "View attachment"
|
|
161
|
-
}) : /* @__PURE__ */ jsx("span", { children: "Attachment" });
|
|
162
|
-
}
|
|
163
|
-
return /* @__PURE__ */ jsx("pre", {
|
|
164
|
-
className: ai_chat_module_default.structuredData,
|
|
165
|
-
children: JSON.stringify(part, null, 2)
|
|
166
|
-
});
|
|
167
|
-
}
|
|
168
|
-
var DEFAULT_MESSAGE_LIMIT = 8;
|
|
169
|
-
function AIChat({ api, scope, scopeLabel, fetch: requestFetch, headers, credentials, prepareSendMessagesRequest, sessionKey, messageLimit = DEFAULT_MESSAGE_LIMIT, inputPlaceholder = "Ask a question...", inputAriaLabel = "Message", inputMaxLength = 2e3, components, toolbarActions, attachments, history, sendAutomaticallyWhen, onClose, className, style }) {
|
|
170
|
-
const [session, setSession] = useState(0);
|
|
171
|
-
const transport = useMemo(() => new AssistantChatTransport({
|
|
172
|
-
api,
|
|
173
|
-
...scope ? { body: { scope } } : {},
|
|
174
|
-
...requestFetch ? { fetch: requestFetch } : {},
|
|
175
|
-
...headers ? { headers } : {},
|
|
176
|
-
...credentials ? { credentials } : {},
|
|
177
|
-
...prepareSendMessagesRequest ? { prepareSendMessagesRequest } : {}
|
|
178
|
-
}), [
|
|
179
|
-
api,
|
|
180
|
-
scope,
|
|
181
|
-
requestFetch,
|
|
182
|
-
headers,
|
|
183
|
-
credentials,
|
|
184
|
-
prepareSendMessagesRequest
|
|
185
|
-
]);
|
|
186
|
-
const config = useMemo(() => AuiConfig({ threads: AISDKChat({
|
|
187
|
-
transport,
|
|
188
|
-
...sendAutomaticallyWhen ? { sendAutomaticallyWhen } : {}
|
|
189
|
-
}) }), [
|
|
190
|
-
transport,
|
|
191
|
-
session,
|
|
192
|
-
sendAutomaticallyWhen
|
|
193
|
-
]);
|
|
194
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
195
|
-
className: [ai_chat_module_default.container, className].filter(Boolean).join(" "),
|
|
196
|
-
style,
|
|
73
|
+
/** Inline SVG icon for the "no permissions" variant */
|
|
74
|
+
function NoPermissionsIcon() {
|
|
75
|
+
return /* @__PURE__ */ jsxs("svg", {
|
|
76
|
+
viewBox: "0 0 48 48",
|
|
77
|
+
fill: "none",
|
|
78
|
+
className: empty_state_page_module_default.iconSvg,
|
|
79
|
+
"aria-hidden": "true",
|
|
197
80
|
children: [
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
81
|
+
/* @__PURE__ */ jsx("rect", {
|
|
82
|
+
x: "12",
|
|
83
|
+
y: "20",
|
|
84
|
+
width: "24",
|
|
85
|
+
height: "18",
|
|
86
|
+
rx: "3",
|
|
87
|
+
stroke: "currentColor",
|
|
88
|
+
strokeWidth: "2"
|
|
204
89
|
}),
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
"aria-label": "Close chat",
|
|
210
|
-
children: "✕"
|
|
90
|
+
/* @__PURE__ */ jsx("path", {
|
|
91
|
+
d: "M20 20v-6a4 4 0 018 0v6",
|
|
92
|
+
stroke: "currentColor",
|
|
93
|
+
strokeWidth: "2"
|
|
211
94
|
}),
|
|
212
|
-
/* @__PURE__ */ jsx(
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
inputPlaceholder,
|
|
219
|
-
inputAriaLabel,
|
|
220
|
-
inputMaxLength,
|
|
221
|
-
components,
|
|
222
|
-
toolbarActions,
|
|
223
|
-
attachmentOptions: attachments,
|
|
224
|
-
history,
|
|
225
|
-
onNewChat: () => setSession((previous) => previous + 1)
|
|
226
|
-
})
|
|
227
|
-
})
|
|
228
|
-
}, JSON.stringify([
|
|
229
|
-
api,
|
|
230
|
-
scope,
|
|
231
|
-
sessionKey,
|
|
232
|
-
session
|
|
233
|
-
]))
|
|
95
|
+
/* @__PURE__ */ jsx("circle", {
|
|
96
|
+
cx: "24",
|
|
97
|
+
cy: "30",
|
|
98
|
+
r: "2",
|
|
99
|
+
fill: "currentColor"
|
|
100
|
+
})
|
|
234
101
|
]
|
|
235
102
|
});
|
|
236
103
|
}
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
const messages = chat?.messages ?? [];
|
|
255
|
-
const status = chat?.status ?? "ready";
|
|
256
|
-
const isBusy = status === "submitted" || status === "streaming";
|
|
257
|
-
const historyFull = messages.filter((message) => message.role === "user").length >= messageLimit;
|
|
258
|
-
const reportHistoryError = (operation, error) => {
|
|
259
|
-
if (history?.onError) history.onError(operation, error);
|
|
260
|
-
else console.warn(`[Uzi AIChat] History ${operation} failed`);
|
|
261
|
-
};
|
|
262
|
-
useEffect(() => {
|
|
263
|
-
if (!history) return;
|
|
264
|
-
let active = true;
|
|
265
|
-
Promise.resolve().then(() => history.load()).then((restored) => {
|
|
266
|
-
if (!active) return;
|
|
267
|
-
if (Array.isArray(restored)) {
|
|
268
|
-
const valid = restored.filter((message) => typeof message?.id === "string" && (message.role === "user" || message.role === "assistant") && Array.isArray(message.parts));
|
|
269
|
-
expectedRestoredId.current = valid.length ? valid[0].id : null;
|
|
270
|
-
if (valid.length) chat?.setMessages(valid);
|
|
271
|
-
}
|
|
272
|
-
setHydrated(true);
|
|
273
|
-
}).catch((error) => {
|
|
274
|
-
if (active) {
|
|
275
|
-
reportHistoryError("load", error);
|
|
276
|
-
setHydrated(true);
|
|
277
|
-
}
|
|
278
|
-
});
|
|
279
|
-
return () => {
|
|
280
|
-
active = false;
|
|
281
|
-
};
|
|
282
|
-
}, [chat?.setMessages, history]);
|
|
283
|
-
useEffect(() => {
|
|
284
|
-
if (!history || !hydrated || isBusy) return;
|
|
285
|
-
const snapshot = messages.filter((message) => message.role === "user" || message.role === "assistant").map((message) => ({
|
|
286
|
-
id: message.id,
|
|
287
|
-
role: message.role,
|
|
288
|
-
parts: message.parts,
|
|
289
|
-
...isRecord(message.metadata) ? { metadata: message.metadata } : {}
|
|
290
|
-
}));
|
|
291
|
-
if (expectedRestoredId.current) {
|
|
292
|
-
if (!snapshot.some((message) => message.id === expectedRestoredId.current)) return;
|
|
293
|
-
expectedRestoredId.current = null;
|
|
294
|
-
}
|
|
295
|
-
saveQueue.current = saveQueue.current.then(() => history.save(snapshot), () => history.save(snapshot)).then(() => {}, (error) => {
|
|
296
|
-
reportHistoryError("save", error);
|
|
297
|
-
});
|
|
298
|
-
}, [
|
|
299
|
-
history,
|
|
300
|
-
hydrated,
|
|
301
|
-
isBusy,
|
|
302
|
-
messages
|
|
303
|
-
]);
|
|
304
|
-
const handleSelectedFiles = (files) => {
|
|
305
|
-
if (!attachmentOptions) return;
|
|
306
|
-
const selected = Array.from(files);
|
|
307
|
-
if (selected.length + selectedFiles.length > (attachmentOptions.maxFiles ?? 3)) {
|
|
308
|
-
setAttachmentError("Too many attachments.");
|
|
309
|
-
return;
|
|
310
|
-
}
|
|
311
|
-
if (selected.some((file) => file.size > (attachmentOptions.maxBytesPerFile ?? 5 * 1024 * 1024))) {
|
|
312
|
-
setAttachmentError("An attachment exceeds the size limit.");
|
|
313
|
-
return;
|
|
314
|
-
}
|
|
315
|
-
const allowedTypes = attachmentOptions.accept.split(",").map((item) => item.trim());
|
|
316
|
-
if (selected.some((file) => !allowedTypes.some((allow) => allow === file.type || allow.endsWith("/*") && file.type.startsWith(allow.slice(0, -1))))) {
|
|
317
|
-
setAttachmentError("Unsupported attachment type.");
|
|
318
|
-
return;
|
|
319
|
-
}
|
|
320
|
-
setAttachmentError(null);
|
|
321
|
-
setSelectedFiles((existing) => [...existing, ...selected]);
|
|
322
|
-
};
|
|
323
|
-
const handleSubmit = () => {
|
|
324
|
-
const text = draft.trim();
|
|
325
|
-
if (!chat || !text && selectedFiles.length === 0 || isBusy || historyFull || chat.error || !hydrated || approvalBusy) return;
|
|
326
|
-
const files = selectedFiles.length ? new DataTransfer() : null;
|
|
327
|
-
selectedFiles.forEach((file) => files?.items.add(file));
|
|
328
|
-
const previousDraft = draft;
|
|
329
|
-
const previousFiles = selectedFiles;
|
|
330
|
-
setDraft("");
|
|
331
|
-
setSelectedFiles([]);
|
|
332
|
-
setAttachmentError(null);
|
|
333
|
-
Promise.resolve(chat.sendMessage({
|
|
334
|
-
text,
|
|
335
|
-
...files ? { files: files.files } : {}
|
|
336
|
-
})).catch(() => {
|
|
337
|
-
setDraft((current) => current || previousDraft);
|
|
338
|
-
setSelectedFiles((current) => current.length ? current : previousFiles);
|
|
339
|
-
});
|
|
340
|
-
};
|
|
341
|
-
const handleNewChat = () => {
|
|
342
|
-
(async () => {
|
|
343
|
-
await chat?.stop();
|
|
344
|
-
if (history) try {
|
|
345
|
-
await saveQueue.current;
|
|
346
|
-
await history.clear();
|
|
347
|
-
} catch (error) {
|
|
348
|
-
reportHistoryError("clear", error);
|
|
349
|
-
return;
|
|
350
|
-
}
|
|
351
|
-
onNewChat();
|
|
352
|
-
})();
|
|
353
|
-
};
|
|
354
|
-
const handleRetry = () => {
|
|
355
|
-
if (!chat || isBusy) return;
|
|
356
|
-
chat.clearError();
|
|
357
|
-
chat.regenerate();
|
|
358
|
-
};
|
|
359
|
-
return /* @__PURE__ */ jsx(AIChatView, {
|
|
360
|
-
messages: messages.filter((message) => message.role === "user" || message.role === "assistant").map((message) => ({
|
|
361
|
-
id: message.id,
|
|
362
|
-
role: message.role,
|
|
363
|
-
parts: message.parts,
|
|
364
|
-
...isRecord(message.metadata) ? { metadata: message.metadata } : {}
|
|
365
|
-
})),
|
|
366
|
-
status,
|
|
367
|
-
error: chat?.error,
|
|
368
|
-
draft,
|
|
369
|
-
onDraftChange: setDraft,
|
|
370
|
-
onSend: handleSubmit,
|
|
371
|
-
onStop: () => {
|
|
372
|
-
chat?.stop();
|
|
373
|
-
},
|
|
374
|
-
onRetry: handleRetry,
|
|
375
|
-
onNewChat: handleNewChat,
|
|
376
|
-
toolbarActions,
|
|
377
|
-
messageLimit,
|
|
378
|
-
attachments: selectedFiles.map((file, index) => ({
|
|
379
|
-
name: file.name,
|
|
380
|
-
size: file.size,
|
|
381
|
-
...attachmentPreviews[index] ? { previewUrl: attachmentPreviews[index] } : {}
|
|
382
|
-
})),
|
|
383
|
-
onSelectAttachments: attachmentOptions ? handleSelectedFiles : void 0,
|
|
384
|
-
onRemoveAttachment: attachmentOptions ? (index) => setSelectedFiles((files) => files.filter((_, i) => i !== index)) : void 0,
|
|
385
|
-
attachmentAccept: attachmentOptions?.accept,
|
|
386
|
-
attachmentError,
|
|
387
|
-
onToolApproval: chat ? async (id, approved) => {
|
|
388
|
-
if (approvalBusy) return;
|
|
389
|
-
setApprovalBusy(true);
|
|
390
|
-
try {
|
|
391
|
-
await chat.addToolApprovalResponse({
|
|
392
|
-
id,
|
|
393
|
-
approved,
|
|
394
|
-
...!approved ? { reason: "User denied approval" } : {}
|
|
395
|
-
});
|
|
396
|
-
} finally {
|
|
397
|
-
setApprovalBusy(false);
|
|
398
|
-
}
|
|
399
|
-
} : void 0,
|
|
400
|
-
inputPlaceholder,
|
|
401
|
-
inputAriaLabel,
|
|
402
|
-
inputMaxLength,
|
|
403
|
-
components
|
|
404
|
-
});
|
|
405
|
-
}
|
|
104
|
+
var variantMap = {
|
|
105
|
+
noData: {
|
|
106
|
+
icon: NoDataIcon,
|
|
107
|
+
title: "No data yet",
|
|
108
|
+
description: "When you add data, it will appear here."
|
|
109
|
+
},
|
|
110
|
+
noConnection: {
|
|
111
|
+
icon: NoConnectionIcon,
|
|
112
|
+
title: "No connection",
|
|
113
|
+
description: "Check your network settings and try again."
|
|
114
|
+
},
|
|
115
|
+
noPermissions: {
|
|
116
|
+
icon: NoPermissionsIcon,
|
|
117
|
+
title: "Access denied",
|
|
118
|
+
description: "You don't have permission to view this content."
|
|
119
|
+
}
|
|
120
|
+
};
|
|
406
121
|
/**
|
|
407
|
-
*
|
|
408
|
-
*
|
|
409
|
-
*
|
|
122
|
+
* EmptyStatePage — a Card-based page template with variant icons, title, description, and actions.
|
|
123
|
+
*
|
|
124
|
+
* Layout:
|
|
125
|
+
* Card → Icon → Title → Description → Actions
|
|
410
126
|
*/
|
|
411
|
-
function
|
|
412
|
-
const
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
const MessageRenderer = components?.MessageRenderer ?? DefaultMessageRenderer;
|
|
436
|
-
const ErrorRenderer = components?.ErrorRenderer ?? DefaultErrorRenderer;
|
|
437
|
-
useEffect(() => {
|
|
438
|
-
const viewport = viewportRef.current;
|
|
439
|
-
if (viewport && pinnedToBottom.current) viewport.scrollTop = viewport.scrollHeight;
|
|
440
|
-
});
|
|
441
|
-
const handleKeyDown = (event) => {
|
|
442
|
-
if (event.key === "Enter" && !event.shiftKey && !event.nativeEvent.isComposing) {
|
|
443
|
-
event.preventDefault();
|
|
444
|
-
if (!isBusy && !historyFull && !error && (draft.trim() || (attachments?.length ?? 0) > 0)) onSend?.();
|
|
445
|
-
}
|
|
446
|
-
};
|
|
447
|
-
const handleFormSubmit = (event) => {
|
|
448
|
-
event.preventDefault();
|
|
449
|
-
if (!isBusy && !historyFull && !error && (draft.trim() || (attachments?.length ?? 0) > 0)) onSend?.();
|
|
450
|
-
};
|
|
451
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
452
|
-
className: [ai_chat_module_default.thread, className].filter(Boolean).join(" "),
|
|
453
|
-
style,
|
|
454
|
-
children: [
|
|
455
|
-
header,
|
|
456
|
-
(messages.length > 0 || toolbarActions) && (onNewChat || toolbarActions) && /* @__PURE__ */ jsxs("div", {
|
|
457
|
-
className: ai_chat_module_default.chatToolbar,
|
|
458
|
-
role: "toolbar",
|
|
459
|
-
"aria-label": "Conversation actions",
|
|
460
|
-
children: [/* @__PURE__ */ jsx("div", {
|
|
461
|
-
className: ai_chat_module_default.chatToolbarExtras,
|
|
462
|
-
children: toolbarActions
|
|
463
|
-
}), onNewChat && messages.length > 0 && /* @__PURE__ */ jsx("button", {
|
|
464
|
-
type: "button",
|
|
465
|
-
className: ai_chat_module_default.newChatButton,
|
|
466
|
-
onClick: onNewChat,
|
|
467
|
-
"aria-label": "New chat",
|
|
468
|
-
title: "New chat",
|
|
469
|
-
children: /* @__PURE__ */ jsxs("svg", {
|
|
470
|
-
"aria-hidden": "true",
|
|
471
|
-
width: "18",
|
|
472
|
-
height: "18",
|
|
473
|
-
viewBox: "0 0 24 24",
|
|
474
|
-
fill: "none",
|
|
475
|
-
stroke: "currentColor",
|
|
476
|
-
strokeWidth: "1.8",
|
|
477
|
-
strokeLinecap: "round",
|
|
478
|
-
strokeLinejoin: "round",
|
|
479
|
-
children: [/* @__PURE__ */ jsx("path", { d: "M12 5H6a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h11a2 2 0 0 0 2-2v-6" }), /* @__PURE__ */ jsx("path", {
|
|
480
|
-
d: "m15 5 4 4M13 11l7-7a2.12 2.12 0 0 1 3 3l-7 7-4 1 1-4Z",
|
|
481
|
-
transform: "translate(-2 -2)"
|
|
482
|
-
})]
|
|
483
|
-
})
|
|
484
|
-
})]
|
|
485
|
-
}),
|
|
486
|
-
/* @__PURE__ */ jsx("div", {
|
|
487
|
-
ref: viewportRef,
|
|
488
|
-
className: ai_chat_module_default.viewport,
|
|
489
|
-
onScroll: (event) => {
|
|
490
|
-
const viewport = event.currentTarget;
|
|
491
|
-
pinnedToBottom.current = viewport.scrollHeight - viewport.scrollTop - viewport.clientHeight < 80;
|
|
492
|
-
},
|
|
493
|
-
children: /* @__PURE__ */ jsxs("div", {
|
|
494
|
-
className: ai_chat_module_default.messageList,
|
|
495
|
-
role: "log",
|
|
496
|
-
"aria-label": "Chat history",
|
|
497
|
-
"aria-live": "polite",
|
|
498
|
-
children: [
|
|
499
|
-
messages.length === 0 && /* @__PURE__ */ jsx("div", {
|
|
500
|
-
className: ai_chat_module_default.emptyState,
|
|
501
|
-
children: emptyState ?? /* @__PURE__ */ jsx("p", { children: "Start a conversation" })
|
|
502
|
-
}),
|
|
503
|
-
messages.map((message) => /* @__PURE__ */ jsx(MessageRenderer, {
|
|
504
|
-
message,
|
|
505
|
-
renderMessagePart: (part, index) => renderPart(part, index, components, onToolApproval ? respondToApproval : void 0, pendingApprovalId),
|
|
506
|
-
onToolApproval: onToolApproval ? respondToApproval : void 0
|
|
507
|
-
}, message.id)),
|
|
508
|
-
isBusy && /* @__PURE__ */ jsx("p", {
|
|
509
|
-
className: ai_chat_module_default.status,
|
|
510
|
-
children: "Thinking..."
|
|
511
|
-
})
|
|
512
|
-
]
|
|
127
|
+
function EmptyStatePage({ variant = "noData", title, description, primaryAction, secondaryAction, icon, className }) {
|
|
128
|
+
const { icon: VariantIcon, title: defaultTitle, description: defaultDescription } = variantMap[variant];
|
|
129
|
+
return /* @__PURE__ */ jsx("div", {
|
|
130
|
+
className: cx(empty_state_page_module_default.wrapper, className),
|
|
131
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
132
|
+
className: empty_state_page_module_default.card,
|
|
133
|
+
children: [
|
|
134
|
+
/* @__PURE__ */ jsx("div", {
|
|
135
|
+
className: empty_state_page_module_default.iconArea,
|
|
136
|
+
children: icon ?? /* @__PURE__ */ jsx(VariantIcon, {})
|
|
137
|
+
}),
|
|
138
|
+
/* @__PURE__ */ jsxs("div", {
|
|
139
|
+
className: empty_state_page_module_default.content,
|
|
140
|
+
children: [/* @__PURE__ */ jsx("h2", {
|
|
141
|
+
className: empty_state_page_module_default.title,
|
|
142
|
+
children: title ?? defaultTitle
|
|
143
|
+
}), /* @__PURE__ */ jsx("p", {
|
|
144
|
+
className: empty_state_page_module_default.description,
|
|
145
|
+
children: description ?? defaultDescription
|
|
146
|
+
})]
|
|
147
|
+
}),
|
|
148
|
+
(primaryAction || secondaryAction) && /* @__PURE__ */ jsxs("div", {
|
|
149
|
+
className: empty_state_page_module_default.actions,
|
|
150
|
+
children: [primaryAction, secondaryAction]
|
|
513
151
|
})
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
className: ai_chat_module_default.footer,
|
|
517
|
-
children: [
|
|
518
|
-
approvalError && /* @__PURE__ */ jsx("p", {
|
|
519
|
-
role: "alert",
|
|
520
|
-
className: ai_chat_module_default.attachmentError,
|
|
521
|
-
children: approvalError
|
|
522
|
-
}),
|
|
523
|
-
attachmentError && /* @__PURE__ */ jsx("p", {
|
|
524
|
-
role: "alert",
|
|
525
|
-
className: ai_chat_module_default.attachmentError,
|
|
526
|
-
children: attachmentError
|
|
527
|
-
}),
|
|
528
|
-
error && (onRetry && onNewChat ? /* @__PURE__ */ jsx(ErrorRenderer, {
|
|
529
|
-
error,
|
|
530
|
-
onRetry,
|
|
531
|
-
onClear: onNewChat
|
|
532
|
-
}) : /* @__PURE__ */ jsxs("div", {
|
|
533
|
-
className: ai_chat_module_default.error,
|
|
534
|
-
role: "alert",
|
|
535
|
-
children: [/* @__PURE__ */ jsx("p", { children: error.message }), (onRetry || onNewChat) && /* @__PURE__ */ jsxs("div", {
|
|
536
|
-
className: ai_chat_module_default.errorActions,
|
|
537
|
-
children: [onRetry && /* @__PURE__ */ jsx("button", {
|
|
538
|
-
type: "button",
|
|
539
|
-
onClick: onRetry,
|
|
540
|
-
children: "Retry response"
|
|
541
|
-
}), onNewChat && /* @__PURE__ */ jsx("button", {
|
|
542
|
-
type: "button",
|
|
543
|
-
onClick: onNewChat,
|
|
544
|
-
children: "Start new chat"
|
|
545
|
-
})]
|
|
546
|
-
})]
|
|
547
|
-
})),
|
|
548
|
-
historyFull && !error && !isBusy && onNewChat && /* @__PURE__ */ jsxs("div", {
|
|
549
|
-
className: ai_chat_module_default.historyLimit,
|
|
550
|
-
children: [/* @__PURE__ */ jsxs("span", { children: [
|
|
551
|
-
"This chat has reached its ",
|
|
552
|
-
limit,
|
|
553
|
-
"-question limit."
|
|
554
|
-
] }), /* @__PURE__ */ jsx("button", {
|
|
555
|
-
type: "button",
|
|
556
|
-
onClick: onNewChat,
|
|
557
|
-
children: "Start new chat"
|
|
558
|
-
})]
|
|
559
|
-
}),
|
|
560
|
-
(!historyFull || isBusy) && !error && (composer !== void 0 ? composer : /* @__PURE__ */ jsxs("form", {
|
|
561
|
-
className: ai_chat_module_default.composerForm,
|
|
562
|
-
onSubmit: handleFormSubmit,
|
|
563
|
-
children: [
|
|
564
|
-
composerLeading && /* @__PURE__ */ jsx("div", {
|
|
565
|
-
className: ai_chat_module_default.composerExtras,
|
|
566
|
-
children: composerLeading
|
|
567
|
-
}),
|
|
568
|
-
onSelectAttachments && /* @__PURE__ */ jsxs("div", {
|
|
569
|
-
className: ai_chat_module_default.composerExtras,
|
|
570
|
-
children: [/* @__PURE__ */ jsx("input", {
|
|
571
|
-
ref: fileInputRef,
|
|
572
|
-
className: ai_chat_module_default.visuallyHidden,
|
|
573
|
-
type: "file",
|
|
574
|
-
"aria-label": "Add attachments",
|
|
575
|
-
accept: attachmentAccept,
|
|
576
|
-
multiple: true,
|
|
577
|
-
disabled: isBusy,
|
|
578
|
-
onChange: (event) => {
|
|
579
|
-
if (event.target.files) onSelectAttachments(event.target.files);
|
|
580
|
-
event.target.value = "";
|
|
581
|
-
}
|
|
582
|
-
}), attachments && attachments.length > 0 && /* @__PURE__ */ jsx("ul", {
|
|
583
|
-
className: ai_chat_module_default.attachmentList,
|
|
584
|
-
children: attachments.map((attachment, index) => /* @__PURE__ */ jsxs("li", { children: [attachment.previewUrl ? /* @__PURE__ */ jsx("img", {
|
|
585
|
-
className: ai_chat_module_default.attachmentThumbnail,
|
|
586
|
-
src: attachment.previewUrl,
|
|
587
|
-
alt: attachment.name
|
|
588
|
-
}) : /* @__PURE__ */ jsx("span", {
|
|
589
|
-
className: ai_chat_module_default.attachmentFilename,
|
|
590
|
-
children: attachment.name
|
|
591
|
-
}), onRemoveAttachment && /* @__PURE__ */ jsx("button", {
|
|
592
|
-
type: "button",
|
|
593
|
-
onClick: () => onRemoveAttachment(index),
|
|
594
|
-
"aria-label": `Remove ${attachment.name}`,
|
|
595
|
-
title: `Remove ${attachment.name}`,
|
|
596
|
-
children: "×"
|
|
597
|
-
})] }, index))
|
|
598
|
-
})]
|
|
599
|
-
}),
|
|
600
|
-
/* @__PURE__ */ jsx("div", {
|
|
601
|
-
className: ai_chat_module_default.composerSurface,
|
|
602
|
-
children: /* @__PURE__ */ jsxs("div", {
|
|
603
|
-
className: ai_chat_module_default.composerRow,
|
|
604
|
-
children: [
|
|
605
|
-
onSelectAttachments && /* @__PURE__ */ jsx("button", {
|
|
606
|
-
type: "button",
|
|
607
|
-
className: ai_chat_module_default.composerIconButton,
|
|
608
|
-
"aria-label": "Attach file",
|
|
609
|
-
title: "Attach file",
|
|
610
|
-
disabled: isBusy,
|
|
611
|
-
onClick: () => fileInputRef.current?.click(),
|
|
612
|
-
children: /* @__PURE__ */ jsx("svg", {
|
|
613
|
-
width: "20",
|
|
614
|
-
height: "20",
|
|
615
|
-
viewBox: "0 0 24 24",
|
|
616
|
-
fill: "none",
|
|
617
|
-
stroke: "currentColor",
|
|
618
|
-
strokeWidth: "1.8",
|
|
619
|
-
strokeLinecap: "round",
|
|
620
|
-
strokeLinejoin: "round",
|
|
621
|
-
"aria-hidden": "true",
|
|
622
|
-
children: /* @__PURE__ */ jsx("path", { d: "m21 11-8.5 8.5a6 6 0 0 1-8.5-8.5l9-9a4 4 0 0 1 5.7 5.7l-9 9a2 2 0 0 1-2.8-2.8l8.5-8.5" })
|
|
623
|
-
})
|
|
624
|
-
}),
|
|
625
|
-
/* @__PURE__ */ jsx("textarea", {
|
|
626
|
-
className: ai_chat_module_default.input,
|
|
627
|
-
"aria-label": inputAriaLabel,
|
|
628
|
-
rows: 1,
|
|
629
|
-
value: draft,
|
|
630
|
-
onChange: (event) => onDraftChange?.(event.target.value),
|
|
631
|
-
onKeyDown: handleKeyDown,
|
|
632
|
-
placeholder: inputPlaceholder,
|
|
633
|
-
maxLength: inputMaxLength,
|
|
634
|
-
disabled: isBusy || !onSend || !onDraftChange,
|
|
635
|
-
readOnly: !onDraftChange
|
|
636
|
-
}),
|
|
637
|
-
/* @__PURE__ */ jsxs("div", {
|
|
638
|
-
className: ai_chat_module_default.composerActions,
|
|
639
|
-
children: [composerTrailing, isBusy ? onStop && /* @__PURE__ */ jsx("button", {
|
|
640
|
-
type: "button",
|
|
641
|
-
className: ai_chat_module_default.composerIconButton,
|
|
642
|
-
onClick: onStop,
|
|
643
|
-
"aria-label": "Stop response",
|
|
644
|
-
title: "Stop response",
|
|
645
|
-
children: /* @__PURE__ */ jsx("svg", {
|
|
646
|
-
width: "18",
|
|
647
|
-
height: "18",
|
|
648
|
-
viewBox: "0 0 24 24",
|
|
649
|
-
fill: "currentColor",
|
|
650
|
-
"aria-hidden": "true",
|
|
651
|
-
children: /* @__PURE__ */ jsx("rect", {
|
|
652
|
-
x: "5",
|
|
653
|
-
y: "5",
|
|
654
|
-
width: "14",
|
|
655
|
-
height: "14",
|
|
656
|
-
rx: "2"
|
|
657
|
-
})
|
|
658
|
-
})
|
|
659
|
-
}) : /* @__PURE__ */ jsx("button", {
|
|
660
|
-
type: "submit",
|
|
661
|
-
className: ai_chat_module_default.sendButton,
|
|
662
|
-
"aria-label": "Send message",
|
|
663
|
-
title: "Send message",
|
|
664
|
-
disabled: !onSend || !draft.trim() && !attachments?.length,
|
|
665
|
-
children: /* @__PURE__ */ jsx("svg", {
|
|
666
|
-
width: "20",
|
|
667
|
-
height: "20",
|
|
668
|
-
viewBox: "0 0 24 24",
|
|
669
|
-
fill: "none",
|
|
670
|
-
stroke: "currentColor",
|
|
671
|
-
strokeWidth: "2",
|
|
672
|
-
strokeLinecap: "round",
|
|
673
|
-
strokeLinejoin: "round",
|
|
674
|
-
"aria-hidden": "true",
|
|
675
|
-
children: /* @__PURE__ */ jsx("path", { d: "M12 19V5m-7 7 7-7 7 7" })
|
|
676
|
-
})
|
|
677
|
-
})]
|
|
678
|
-
})
|
|
679
|
-
]
|
|
680
|
-
})
|
|
681
|
-
})
|
|
682
|
-
]
|
|
683
|
-
}))
|
|
684
|
-
]
|
|
685
|
-
})
|
|
686
|
-
]
|
|
152
|
+
]
|
|
153
|
+
})
|
|
687
154
|
});
|
|
688
155
|
}
|
|
689
156
|
//#endregion
|
|
690
|
-
export {
|
|
157
|
+
export { EmptyStatePage };
|
|
691
158
|
|
|
692
159
|
//# sourceMappingURL=index80.js.map
|