@epam/ai-dial-chat-shared 1.3.0-dev.6 → 1.3.0-dev.7
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.
|
@@ -4,27 +4,27 @@ import { getParentFolderPath as ee } from "../path.js";
|
|
|
4
4
|
import { useGridEditingScroll as te } from "../useGridEditingScroll/useGridEditingScroll.js";
|
|
5
5
|
import { OperationLoaderModal as ne } from "../OperationLoaderModal/OperationLoaderModal.js";
|
|
6
6
|
import { toUploadQueueItems as re } from "../upload-queue.js";
|
|
7
|
-
import { NOT_ALLOWED_SYMBOLS_REGEXP as ie, PrimaryButton as ae, Spinner as oe, TransferQueue as se } from "@epam/ai-dial-ui-kit";
|
|
8
|
-
import { memo as
|
|
9
|
-
import { Fragment as de, jsx as
|
|
10
|
-
import { DialFileManager as fe, DialFileManagerActions as
|
|
7
|
+
import { ButtonVariant as r, NOT_ALLOWED_SYMBOLS_REGEXP as ie, PrimaryButton as ae, Spinner as oe, TransferQueue as se } from "@epam/ai-dial-ui-kit";
|
|
8
|
+
import { memo as i, useCallback as ce, useEffect as le, useMemo as a, useState as ue } from "react";
|
|
9
|
+
import { Fragment as de, jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
10
|
+
import { DialFileManager as fe, DialFileManagerActions as c, DialFileManagerTabs as pe, GridSelectionMode as me } from "@epam/ai-dial-react-file-manager";
|
|
11
11
|
//#region src/file-manager/DialFileManagerShell/DialFileManagerShell.tsx
|
|
12
|
-
var
|
|
12
|
+
var he = (e, t) => {
|
|
13
13
|
if (e.isDownloading) return t.downloadingLabel;
|
|
14
14
|
if (e.isDeleting) return t.deletingLabel;
|
|
15
15
|
if (e.isRenaming && !e.isMoving) return t.renamingLabel;
|
|
16
16
|
if (e.isUnsharing) return t.unsharingLabel;
|
|
17
17
|
if (e.isRemovingAccess) return t.removingAccessLabel;
|
|
18
|
-
}, l = ({ controller:
|
|
19
|
-
let { items:
|
|
18
|
+
}, l = ({ controller: i, labels: l, activeTab: u, tabs: d, onTabChange: f, selectedPaths: p, onSelectedPathsChange: ge, variant: m, actionProfile: _e, autoSelectUploadedItems: ve = !1, allowedFileTypes: ye, maxSelectableFileSize: h, oversizedUploadMessage: g, isRowSelectable: _, getDisabledTooltip: be, unsupportedFileTypeTooltip: xe }) => {
|
|
19
|
+
let { items: Se, isLoading: Ce, error: we, path: v, onPathChange: Te, retry: Ee, onSearchFiles: De, isSearching: Oe, searchResults: ke, clearSearchResults: Ae, expandedPaths: y, loadedPaths: b, onExpandedPathsChange: x, onFolderPopupPathChange: je, folderPopupLoadingPaths: S, onUploadFiles: Me, onUploadArchive: Ne, onValidateUpload: Pe, uploadBatchState: C, cancelUpload: w, cancelUploadFile: T, clearUploadBatch: E, onCreateFolder: Fe, onCreateFolderValidate: Ie, onDownloadFiles: Le, isDownloading: Re, onDeleteFiles: ze, isDeleting: Be, onMoveToFiles: Ve, onRenameValidate: He, isRenaming: Ue, onCopyFiles: We, isCopying: Ge, isMoving: D, cancelCopyMove: Ke, uploadEnabled: O, isNewButtonDisabled: k, disabledNewButtonTooltip: A, visibleColumns: j, dateLocale: M, dateOptions: N, actionLabels: P, sharedWithMeIds: qe, sharedByMePaths: F, onUnshareFiles: Je, isUnsharing: Ye, onRemoveFilesAccess: Xe, isRemovingAccess: Ze, fileMetadata: I, isFileMetadataLoading: L, onGetInfo: Qe, clearMetadata: R, sectionTab: $e } = i, z = $e ?? u, [B, et] = ue(void 0), { handleGridApiChange: tt, reset: V } = te();
|
|
20
20
|
le(() => {
|
|
21
|
-
|
|
22
|
-
}, [
|
|
23
|
-
let
|
|
21
|
+
V();
|
|
22
|
+
}, [z, V]);
|
|
23
|
+
let H = a(() => {
|
|
24
24
|
let e = {};
|
|
25
|
-
return
|
|
25
|
+
return c.Download in P && (e[c.Download] = l.downloadLabel), c.Delete in P && (e[c.Delete] = l.deleteLabel), c.Rename in P && (e[c.Rename] = l.renameLabel), c.Copy in P && (e[c.Copy] = l.copyLabel), c.Move in P && (e[c.Move] = l.moveLabel), c.Duplicate in P && (e[c.Duplicate] = l.duplicateLabel), c.Unshare in P && (e[c.Unshare] = l.unshareLabel), c.RemoveAccess in P && (e[c.RemoveAccess] = l.removeAccessLabel), e;
|
|
26
26
|
}, [
|
|
27
|
-
|
|
27
|
+
P,
|
|
28
28
|
l.downloadLabel,
|
|
29
29
|
l.deleteLabel,
|
|
30
30
|
l.renameLabel,
|
|
@@ -33,26 +33,27 @@ var me = (e, t) => {
|
|
|
33
33
|
l.duplicateLabel,
|
|
34
34
|
l.unshareLabel,
|
|
35
35
|
l.removeAccessLabel
|
|
36
|
-
]),
|
|
37
|
-
...
|
|
38
|
-
[
|
|
39
|
-
} :
|
|
40
|
-
|
|
41
|
-
|
|
36
|
+
]), U = a(() => c.Info in P ? {
|
|
37
|
+
...H,
|
|
38
|
+
[c.Info]: l.infoLabel
|
|
39
|
+
} : H, [
|
|
40
|
+
H,
|
|
41
|
+
P,
|
|
42
42
|
l.infoLabel
|
|
43
|
-
]),
|
|
43
|
+
]), W = a(() => {
|
|
44
44
|
if (p.size === 0) return !1;
|
|
45
|
-
for (let e of p) if (!
|
|
45
|
+
for (let e of p) if (!F.has(e)) return !1;
|
|
46
46
|
return !0;
|
|
47
|
-
}, [p,
|
|
48
|
-
if (
|
|
49
|
-
let { [
|
|
47
|
+
}, [p, F]), G = a(() => {
|
|
48
|
+
if (W) return H;
|
|
49
|
+
let { [c.RemoveAccess]: e, ...t } = H;
|
|
50
50
|
return t;
|
|
51
|
-
}, [
|
|
52
|
-
selectionMode:
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
51
|
+
}, [H, W]), K = m === n.Attach, nt = a(() => ({
|
|
52
|
+
selectionMode: me.MULTIPLE,
|
|
53
|
+
...K ? { filterable: !1 } : {},
|
|
54
|
+
visibleColumns: j,
|
|
55
|
+
dateLocale: M,
|
|
56
|
+
dateOptions: N,
|
|
56
57
|
additionalGridOptions: {
|
|
57
58
|
domLayout: "normal",
|
|
58
59
|
rowSelection: {
|
|
@@ -60,14 +61,15 @@ var me = (e, t) => {
|
|
|
60
61
|
isRowSelectable: _ ?? (() => !0)
|
|
61
62
|
}
|
|
62
63
|
},
|
|
63
|
-
actionLabels:
|
|
64
|
+
actionLabels: U
|
|
64
65
|
}), [
|
|
66
|
+
K,
|
|
67
|
+
j,
|
|
65
68
|
M,
|
|
66
69
|
N,
|
|
67
|
-
|
|
68
|
-
W,
|
|
70
|
+
U,
|
|
69
71
|
_
|
|
70
|
-
]),
|
|
72
|
+
]), rt = a(() => ({
|
|
71
73
|
header: m === n.Attach ? null : l.treeHeaderByTab[u],
|
|
72
74
|
containerClassName: m === n.Attach ? "min-h-0 h-full w-[360px] shrink-0 rounded-xl bg-layer-raised shadow-sm" : void 0,
|
|
73
75
|
tabsAriaLabel: l.treeHeaderByTab[u],
|
|
@@ -78,7 +80,7 @@ var me = (e, t) => {
|
|
|
78
80
|
loadedPaths: b,
|
|
79
81
|
loadingPaths: S,
|
|
80
82
|
onExpandedPathsChange: x,
|
|
81
|
-
actionLabels:
|
|
83
|
+
actionLabels: H
|
|
82
84
|
}), [
|
|
83
85
|
l.treeHeaderByTab,
|
|
84
86
|
m,
|
|
@@ -89,14 +91,15 @@ var me = (e, t) => {
|
|
|
89
91
|
b,
|
|
90
92
|
S,
|
|
91
93
|
x,
|
|
92
|
-
|
|
93
|
-
]), q = m === n.Standalone &&
|
|
94
|
+
H
|
|
95
|
+
]), q = m === n.Standalone && _e === t.Full && z === pe.MyFiles && O, it = a(() => ({
|
|
94
96
|
showHiddenFilesToggle: !0,
|
|
97
|
+
...K ? { newButtonVariant: r.Neutral } : {},
|
|
95
98
|
hiddenFilesSwitcherLabel: l.hiddenFilesLabel,
|
|
96
99
|
showHiddenFilesLabel: l.showHiddenFilesLabel,
|
|
97
100
|
hideHiddenFilesLabel: l.hideHiddenFilesLabel,
|
|
98
|
-
isNewButtonDisabled:
|
|
99
|
-
disabledNewButtonTooltip:
|
|
101
|
+
isNewButtonDisabled: k,
|
|
102
|
+
disabledNewButtonTooltip: A,
|
|
100
103
|
newActions: {
|
|
101
104
|
uploadFiles: {
|
|
102
105
|
label: l.uploadFilesLabel,
|
|
@@ -112,19 +115,24 @@ var me = (e, t) => {
|
|
|
112
115
|
} } : {}
|
|
113
116
|
}
|
|
114
117
|
}), [
|
|
118
|
+
K,
|
|
115
119
|
l.hiddenFilesLabel,
|
|
116
120
|
l.showHiddenFilesLabel,
|
|
117
121
|
l.hideHiddenFilesLabel,
|
|
122
|
+
k,
|
|
118
123
|
A,
|
|
119
|
-
j,
|
|
120
124
|
l.uploadFilesLabel,
|
|
121
125
|
l.newFolderLabel,
|
|
122
126
|
q,
|
|
123
127
|
l.uploadArchiveAction
|
|
124
|
-
]),
|
|
128
|
+
]), at = a(() => K ? void 0 : {
|
|
125
129
|
getSelectionLabel: l.getSelectionLabel,
|
|
126
|
-
actionLabels:
|
|
127
|
-
}
|
|
130
|
+
actionLabels: G
|
|
131
|
+
}, [
|
|
132
|
+
K,
|
|
133
|
+
l.getSelectionLabel,
|
|
134
|
+
G
|
|
135
|
+
]), ot = a(() => ({
|
|
128
136
|
cancelLabel: l.deleteCancelLabel,
|
|
129
137
|
confirmLabel: l.deleteConfirmLabel,
|
|
130
138
|
closeLabel: l.deleteCloseLabel,
|
|
@@ -136,7 +144,7 @@ var me = (e, t) => {
|
|
|
136
144
|
l.deleteCloseLabel,
|
|
137
145
|
l.deleteConfirmTitle,
|
|
138
146
|
l.deleteConfirmBody
|
|
139
|
-
]),
|
|
147
|
+
]), st = a(() => {
|
|
140
148
|
let e;
|
|
141
149
|
for (let t of p) {
|
|
142
150
|
let n = ee(t);
|
|
@@ -144,7 +152,7 @@ var me = (e, t) => {
|
|
|
144
152
|
else if (e !== n) return;
|
|
145
153
|
}
|
|
146
154
|
return e;
|
|
147
|
-
}, [p]), J =
|
|
155
|
+
}, [p]), J = B != null && S.has(B), Y = J ? B : st, ct = a(() => ({
|
|
148
156
|
copyLabel: l.copyLabel,
|
|
149
157
|
moveLabel: l.moveLabel,
|
|
150
158
|
addFolderLabel: l.addFolderLabel,
|
|
@@ -155,8 +163,8 @@ var me = (e, t) => {
|
|
|
155
163
|
emptyStateTitle: l.folderPickerEmptyStateTitle,
|
|
156
164
|
emptyStateDescription: l.folderPickerEmptyStateDescription,
|
|
157
165
|
sourceFolder: Y,
|
|
158
|
-
destinationFolderPath:
|
|
159
|
-
setDestinationFolderPath:
|
|
166
|
+
destinationFolderPath: B,
|
|
167
|
+
setDestinationFolderPath: et,
|
|
160
168
|
filesLoading: J
|
|
161
169
|
}), [
|
|
162
170
|
l.copyLabel,
|
|
@@ -171,13 +179,13 @@ var me = (e, t) => {
|
|
|
171
179
|
l.folderPickerEmptyStateDescription,
|
|
172
180
|
J,
|
|
173
181
|
Y,
|
|
174
|
-
|
|
175
|
-
]),
|
|
176
|
-
|
|
177
|
-
}, [
|
|
178
|
-
fileMetadata:
|
|
179
|
-
loading:
|
|
180
|
-
clearMetadata:
|
|
182
|
+
B
|
|
183
|
+
]), lt = ce(() => {
|
|
184
|
+
w(), E();
|
|
185
|
+
}, [w, E]), X = a(() => re(C?.files ?? []), [C]), ut = a(() => ({
|
|
186
|
+
fileMetadata: I,
|
|
187
|
+
loading: L,
|
|
188
|
+
clearMetadata: R,
|
|
181
189
|
header: l.metadataHeader,
|
|
182
190
|
nameLabel: l.metadataNameLabel,
|
|
183
191
|
pathLabel: l.metadataPathLabel,
|
|
@@ -185,128 +193,128 @@ var me = (e, t) => {
|
|
|
185
193
|
sizeLabel: l.metadataSizeLabel,
|
|
186
194
|
authorLabel: l.metadataAuthorLabel
|
|
187
195
|
}), [
|
|
196
|
+
I,
|
|
188
197
|
L,
|
|
189
198
|
R,
|
|
190
|
-
z,
|
|
191
199
|
l.metadataHeader,
|
|
192
200
|
l.metadataNameLabel,
|
|
193
201
|
l.metadataPathLabel,
|
|
194
202
|
l.metadataModifiedDateLabel,
|
|
195
203
|
l.metadataSizeLabel,
|
|
196
204
|
l.metadataAuthorLabel
|
|
197
|
-
]), Z =
|
|
198
|
-
isDownloading:
|
|
199
|
-
isDeleting:
|
|
200
|
-
isRenaming:
|
|
201
|
-
isMoving:
|
|
202
|
-
isUnsharing:
|
|
203
|
-
isRemovingAccess:
|
|
204
|
-
}, l), Q =
|
|
205
|
+
]), Z = he({
|
|
206
|
+
isDownloading: Re,
|
|
207
|
+
isDeleting: Be,
|
|
208
|
+
isRenaming: Ue,
|
|
209
|
+
isMoving: D,
|
|
210
|
+
isUnsharing: Ye,
|
|
211
|
+
isRemovingAccess: Ze
|
|
212
|
+
}, l), Q = "bg-layer-base", $ = a(() => v.split("/").filter(Boolean).length > 1 ? {
|
|
205
213
|
title: l.folderEmptyStateTitle,
|
|
206
214
|
description: ""
|
|
207
|
-
} : l.emptyStateByTab[
|
|
215
|
+
} : l.emptyStateByTab[z], [
|
|
208
216
|
v,
|
|
209
217
|
l.folderEmptyStateTitle,
|
|
210
218
|
l.emptyStateByTab,
|
|
211
|
-
|
|
219
|
+
z
|
|
212
220
|
]);
|
|
213
|
-
return /* @__PURE__ */
|
|
214
|
-
|
|
221
|
+
return /* @__PURE__ */ s(de, { children: [
|
|
222
|
+
we == null ? /* @__PURE__ */ s("div", {
|
|
215
223
|
className: e("relative flex min-h-0 w-full grow overflow-auto", Q),
|
|
216
|
-
children: [/* @__PURE__ */
|
|
224
|
+
children: [/* @__PURE__ */ o(fe, {
|
|
217
225
|
className: e("min-h-0 w-full grow", Q),
|
|
218
226
|
contentClassName: m === n.Attach ? "px-0 pb-0" : void 0,
|
|
219
227
|
gridClassName: m === n.Attach ? "size-full gap-6 px-6 py-4" : "size-full",
|
|
220
|
-
items:
|
|
228
|
+
items: Se,
|
|
221
229
|
path: v,
|
|
222
|
-
onPathChange:
|
|
223
|
-
onGridApiChange:
|
|
224
|
-
filesLoading:
|
|
225
|
-
allowedFileTypes:
|
|
230
|
+
onPathChange: Te,
|
|
231
|
+
onGridApiChange: tt,
|
|
232
|
+
filesLoading: Ce,
|
|
233
|
+
allowedFileTypes: ye,
|
|
226
234
|
maxSelectableFileSize: h,
|
|
227
235
|
maxFileSize: h,
|
|
228
236
|
uploadValidationMessages: g == null ? void 0 : { oversizedFiles: g },
|
|
229
237
|
selectedPaths: p,
|
|
230
|
-
onSelectedPathsChange:
|
|
238
|
+
onSelectedPathsChange: ge,
|
|
231
239
|
navigationPanelOptions: {
|
|
232
240
|
searchable: !0,
|
|
233
|
-
placeholder: l.searchPlaceholderByTab?.[
|
|
241
|
+
placeholder: l.searchPlaceholderByTab?.[z]
|
|
234
242
|
},
|
|
235
243
|
hideSearchPathItemName: !0,
|
|
236
|
-
onSearchFiles:
|
|
237
|
-
searchInProgress:
|
|
238
|
-
searchResults:
|
|
239
|
-
clearSearchResults:
|
|
240
|
-
gridOptions:
|
|
241
|
-
treeOptions:
|
|
242
|
-
onFolderPopupPathChange:
|
|
243
|
-
toolbarOptions:
|
|
244
|
-
bulkActionsToolbarOptions:
|
|
245
|
-
autoSelectUploadedItems:
|
|
244
|
+
onSearchFiles: De,
|
|
245
|
+
searchInProgress: Oe,
|
|
246
|
+
searchResults: ke ?? [],
|
|
247
|
+
clearSearchResults: Ae,
|
|
248
|
+
gridOptions: nt,
|
|
249
|
+
treeOptions: rt,
|
|
250
|
+
onFolderPopupPathChange: je,
|
|
251
|
+
toolbarOptions: it,
|
|
252
|
+
bulkActionsToolbarOptions: at,
|
|
253
|
+
autoSelectUploadedItems: ve,
|
|
246
254
|
emptyStateTitle: $.title,
|
|
247
255
|
emptyStateDescription: $.description,
|
|
248
256
|
searchEmptyStateTitle: l.searchEmptyStateTitle,
|
|
249
|
-
uploadEnabled:
|
|
250
|
-
sharedWithMeIds:
|
|
251
|
-
sharedByMePaths:
|
|
252
|
-
onUnshareFiles:
|
|
253
|
-
onRemoveFilesAccess:
|
|
254
|
-
fileMetadataPopupOptions:
|
|
255
|
-
onGetInfo:
|
|
256
|
-
onUploadFiles:
|
|
257
|
-
onUploadArchive:
|
|
258
|
-
onValidateUpload:
|
|
259
|
-
onCreateFolder:
|
|
260
|
-
onCreateFolderValidate:
|
|
261
|
-
onDownloadFiles:
|
|
262
|
-
onDeleteFiles:
|
|
263
|
-
onMoveToFiles:
|
|
264
|
-
onCopyFiles:
|
|
265
|
-
onRenameValidate:
|
|
257
|
+
uploadEnabled: O,
|
|
258
|
+
sharedWithMeIds: qe,
|
|
259
|
+
sharedByMePaths: F,
|
|
260
|
+
onUnshareFiles: Je,
|
|
261
|
+
onRemoveFilesAccess: Xe,
|
|
262
|
+
fileMetadataPopupOptions: ut,
|
|
263
|
+
onGetInfo: Qe,
|
|
264
|
+
onUploadFiles: Me,
|
|
265
|
+
onUploadArchive: Ne,
|
|
266
|
+
onValidateUpload: Pe,
|
|
267
|
+
onCreateFolder: Fe,
|
|
268
|
+
onCreateFolderValidate: Ie,
|
|
269
|
+
onDownloadFiles: Le,
|
|
270
|
+
onDeleteFiles: ze,
|
|
271
|
+
onMoveToFiles: Ve,
|
|
272
|
+
onCopyFiles: We,
|
|
273
|
+
onRenameValidate: He,
|
|
266
274
|
renameValidationMessages: l.renameValidationMessages,
|
|
267
|
-
isRenameFileAvailable:
|
|
268
|
-
deleteConfirmationOptions:
|
|
275
|
+
isRenameFileAvailable: O,
|
|
276
|
+
deleteConfirmationOptions: ot,
|
|
269
277
|
conflictResolutionPopupOptions: l.conflictResolutionPopupOptions,
|
|
270
|
-
destinationFolderPopupOptions:
|
|
278
|
+
destinationFolderPopupOptions: ct,
|
|
271
279
|
forbiddenSymbolsRegExp: ie,
|
|
272
280
|
forbiddenSymbolsTooltip: l.forbiddenSymbolsTooltip,
|
|
273
|
-
getDisabledTooltip:
|
|
274
|
-
unsupportedFileTypeTooltip:
|
|
275
|
-
}), Z != null && /* @__PURE__ */
|
|
281
|
+
getDisabledTooltip: be,
|
|
282
|
+
unsupportedFileTypeTooltip: xe
|
|
283
|
+
}), Z != null && /* @__PURE__ */ o("div", {
|
|
276
284
|
"aria-live": "polite",
|
|
277
285
|
className: "absolute inset-0 z-[52] flex items-center justify-center bg-backdrop desktop:p-4",
|
|
278
|
-
children: /* @__PURE__ */
|
|
286
|
+
children: /* @__PURE__ */ o(oe, {
|
|
279
287
|
size: 32,
|
|
280
288
|
fullWidth: !1,
|
|
281
289
|
ariaLabel: Z
|
|
282
290
|
})
|
|
283
291
|
})]
|
|
284
|
-
}) : /* @__PURE__ */
|
|
292
|
+
}) : /* @__PURE__ */ s("div", {
|
|
285
293
|
role: "alert",
|
|
286
294
|
className: "flex flex-col items-center gap-4 p-6",
|
|
287
|
-
children: [/* @__PURE__ */
|
|
295
|
+
children: [/* @__PURE__ */ o("p", { children: l.errorMessage }), /* @__PURE__ */ o(ae, {
|
|
288
296
|
label: l.retryLabel,
|
|
289
|
-
onClick:
|
|
297
|
+
onClick: Ee
|
|
290
298
|
})]
|
|
291
299
|
}),
|
|
292
|
-
/* @__PURE__ */
|
|
300
|
+
/* @__PURE__ */ o("div", {
|
|
293
301
|
className: "fixed bottom-4 end-4 z-[70]",
|
|
294
|
-
children: /* @__PURE__ */
|
|
302
|
+
children: /* @__PURE__ */ o(se, {
|
|
295
303
|
title: l.getUploadQueueTitle(X.length),
|
|
296
304
|
items: X,
|
|
297
|
-
onClose:
|
|
298
|
-
onCancelItem:
|
|
305
|
+
onClose: lt,
|
|
306
|
+
onCancelItem: T,
|
|
299
307
|
labels: l.uploadQueueLabels
|
|
300
308
|
})
|
|
301
309
|
}),
|
|
302
|
-
(
|
|
303
|
-
title:
|
|
304
|
-
text:
|
|
310
|
+
(Ge || D) && /* @__PURE__ */ o(ne, {
|
|
311
|
+
title: D ? l.operationLoaderMoveTitle : l.operationLoaderCopyTitle,
|
|
312
|
+
text: D ? l.movingLabel : l.copyingLabel,
|
|
305
313
|
cancelLabel: l.operationLoaderCancelLabel,
|
|
306
|
-
onCancel:
|
|
314
|
+
onCancel: Ke
|
|
307
315
|
})
|
|
308
316
|
] });
|
|
309
317
|
};
|
|
310
|
-
|
|
318
|
+
i(l);
|
|
311
319
|
//#endregion
|
|
312
320
|
export { l as DialFileManagerShell };
|
|
@@ -74,7 +74,7 @@ var d = a(({ isOpen: a, onClose: d, onAttach: f, onSkippedUnsupportedFiles: p, o
|
|
|
74
74
|
}),
|
|
75
75
|
ariaLabel: U,
|
|
76
76
|
size: i.Lg,
|
|
77
|
-
className: "flex !h-[min(
|
|
77
|
+
className: "flex !h-[min(900px,100dvh)] w-full flex-col !bg-layer-base md:!max-w-[1600px]",
|
|
78
78
|
headerClassName: "pb-0",
|
|
79
79
|
footerClassName: "pt-0",
|
|
80
80
|
onClose: d,
|
package/index.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
._message_1iqfi_1{color:var(--cfm-message-text,var(--text-primary,#161b2d))}._consequences_1iqfi_5{color:var(--cfm-consequence-text,var(--text-secondary,#57647a))}._footer_1iqfi_9{border-block-start:1px solid var(--cfm-footer-border,var(--stroke-tertiary,#e0e6f0))}._info_pkxew_1{--rs-bg:var(--bg-info,#e1eaf9)}._danger_pkxew_5{--rs-bg:var(--bg-control-error-alpha-active,#f7646433);--rs-border:var(--stroke-error-alpha,#ae2f2f73)}._agentIconBadge_1ger8_1{background:var(--di-icon-bg,var(--bg-layer-sunken,#eef1f7))}._title_11w3i_1{color:var(--ih-title-color,var(--text-primary,#161b2d))}._count_11w3i_5{color:var(--ih-count-color,var(--text-secondary,#57647a))}._row_1csuq_1{border-color:var(--rs-border,var(--stroke-tertiary,#e0e6f0));background:var(--rs-bg,var(--bg-layer-sunken,#eef1f7))}._versionTag_1csuq_7{border-color:var(--rs-version-tag-border,var(--stroke-tertiary,#e0e6f0))!important;background:var(--rs-version-tag-bg,var(--bg-control-accent-alpha,#2764d90f))!important;color:var(--rs-version-tag-text,var(--text-accent,#1d4ed8))!important}._typeLabel_17nhs_1{color:var(--cir-type-label-text,var(--text-secondary,#57647a))}._container_sqe5k_1{background:var(--cm-code-block-bg,var(--bg-layer-raised,#fcfcfc));border-color:var(--cm-code-block-border,var(--stroke-secondary,#d1dbea))}._containerLight_sqe5k_6{background:var(--cm-code-block-bg,var(--bg-layer-raised,#fcfcfc))}._header_sqe5k_10{background:var(--cm-code-block-header-bg,var(--bg-layer-raised,#fcfcfc));border-color:var(--cm-code-block-border,var(--stroke-secondary,#d1dbea))}._languageLabel_sqe5k_15{color:var(--cm-code-block-language,var(--text-secondary,#57647a))}._copiedIcon_sqe5k_19{color:var(--cm-code-block-copied,var(--text-success,#007274))}._scrollContainer_sqe5k_23 .token.table,._scrollContainer_sqe5k_23 .token.table-header-row,._scrollContainer_sqe5k_23 .token.table-line,._scrollContainer_sqe5k_23 .token.table-data-rows{display:inline}._scrollContainer_sqe5k_23{scrollbar-width:thin;scrollbar-color:var(--cm-code-block-scrollbar,var(--stroke-primary,#57647a)) transparent}._scrollContainer_sqe5k_23::-webkit-scrollbar{width:4px;height:4px}._scrollContainer_sqe5k_23::-webkit-scrollbar-track{background-color:#0000}._scrollContainer_sqe5k_23::-webkit-scrollbar-thumb{background-color:var(--cm-code-block-scrollbar,var(--stroke-primary,#57647a));border-radius:4px}@keyframes _cm-shimmer_1ql91_1{0%{background-position:200%}to{background-position:-200%}}._thinking_1ql91_9{background:linear-gradient(270deg, var(--cm-thinking-inverted,var(--text-primary,#161b2d)) 0%, var(--cm-thinking-secondary,var(--text-secondary,#57647a)) 40%, var(--cm-thinking-inverted,var(--text-primary,#161b2d)) 80%);color:#0000;background-size:200%;-webkit-background-clip:text;background-clip:text;animation:2s linear infinite _cm-shimmer_1ql91_1}._h6_1ql91_18{color:var(--cm-h6-text,var(--text-secondary,#57647a))}._codeInline_1ql91_22{background:var(--cm-code-inline-bg,var(--bg-layer-raised,#fcfcfc));color:var(--cm-code-inline-text,var(--text-primary,#161b2d))}._secondaryBorder_1ql91_27{border-color:var(--cm-markdown-border,var(--stroke-secondary,#d1dbea))}._blockquote_1ql91_31{border-color:var(--cm-blockquote-border,var(--stroke-primary,#57647a));color:var(--cm-blockquote-text,var(--text-secondary,#57647a))}._link_1ql91_36{color:var(--cm-link-text,var(--text-accent,#1d4ed8))}._link_1ql91_36:focus-visible{outline-color:var(--cm-link-focus,var(--stroke-focus,#161b2d))}._scrollContainer_n2oom_1{scrollbar-width:thin;scrollbar-color:var(--cm-math-scrollbar,var(--stroke-primary,#57647a)) transparent}._scrollContainer_n2oom_1::-webkit-scrollbar{height:4px}._scrollContainer_n2oom_1::-webkit-scrollbar-track{background-color:#0000}._scrollContainer_n2oom_1::-webkit-scrollbar-thumb{background-color:var(--cm-math-scrollbar,var(--stroke-primary,#57647a));border-radius:4px}._scrollContainer_n2oom_1:focus-visible{outline:1px solid var(--cm-math-focus,var(--stroke-focus,#161b2d));outline-offset:2px}._mathContent_n2oom_24{width:max-content;min-width:100%;display:block}._tableContainer_1qw2e_1{background:var(--cm-code-block-bg,var(--bg-layer-raised,#fcfcfc));border-color:var(--cm-markdown-border,var(--cm-code-block-border,var(--stroke-secondary,#d1dbea)))}._tableContainerLight_1qw2e_6{background:var(--cm-code-block-bg,var(--bg-layer-base,#f5f7fa))}._copiedIcon_1qw2e_10{color:var(--cm-code-block-copied,var(--text-success,#007274))}._scrollContainer_1qw2e_14{scrollbar-width:thin;scrollbar-color:var(--cm-table-scrollbar,var(--stroke-primary,#57647a)) transparent}._scrollContainer_1qw2e_14::-webkit-scrollbar{width:4px;height:4px}._scrollContainer_1qw2e_14::-webkit-scrollbar-track{background-color:#0000}._scrollContainer_1qw2e_14::-webkit-scrollbar-thumb{background-color:var(--cm-table-scrollbar,var(--stroke-primary,#57647a));border-radius:4px}._tableHeaderCell_1qw2e_30{background:var(--cm-code-block-header-bg,var(--bg-layer-raised,#fcfcfc));height:3rem;color:var(--cm-table-header-text,var(--text-secondary,#57647a))}._sectionRow_1qw2e_37 td{background:var(--cm-code-block-header-bg,var(--bg-layer-raised,#fcfcfc))}._rowDivider_1qw2e_41{border-block-end:.5px solid var(--cm-table-row-divider,var(--stroke-tertiary,#e0e6f0))}tbody ._row_1qw2e_41:hover td{background:var(--cm-table-row-hover-bg,var(--bg-control-accent-alpha-hover,#2764d924))}._tableScrollFadeEnd_1qw2e_51{-webkit-mask-image:linear-gradient(to right, var(--cm-table-fade,var(--stroke-black,#161b2d)) 0, var(--cm-table-fade,var(--stroke-black,#161b2d)) calc(100% - 1rem), transparent 100%);-webkit-mask-image:linear-gradient(to right, var(--cm-table-fade,var(--stroke-black,#161b2d)) 0, var(--cm-table-fade,var(--stroke-black,#161b2d)) calc(100% - 1rem), transparent 100%);mask-image:linear-gradient(to right, var(--cm-table-fade,var(--stroke-black,#161b2d)) 0, var(--cm-table-fade,var(--stroke-black,#161b2d)) calc(100% - 1rem), transparent 100%)}[dir=rtl] ._tableScrollFadeEnd_1qw2e_51{-webkit-mask-image:linear-gradient(to left, var(--cm-table-fade,var(--stroke-black,#161b2d)) 0, var(--cm-table-fade,var(--stroke-black,#161b2d)) calc(100% - 1rem), transparent 100%);-webkit-mask-image:linear-gradient(to left, var(--cm-table-fade,var(--stroke-black,#161b2d)) 0, var(--cm-table-fade,var(--stroke-black,#161b2d)) calc(100% - 1rem), transparent 100%);mask-image:linear-gradient(to left, var(--cm-table-fade,var(--stroke-black,#161b2d)) 0, var(--cm-table-fade,var(--stroke-black,#161b2d)) calc(100% - 1rem), transparent 100%)}._tableScrollFadeStart_1qw2e_59{-webkit-mask-image:linear-gradient(to right, transparent 0, var(--cm-table-fade,var(--stroke-focus-black,#161b2d)) 1rem, var(--cm-table-fade,var(--stroke-focus-black,#161b2d)) 100%);-webkit-mask-image:linear-gradient(to right, transparent 0, var(--cm-table-fade,var(--stroke-focus-black,#161b2d)) 1rem, var(--cm-table-fade,var(--stroke-focus-black,#161b2d)) 100%);mask-image:linear-gradient(to right, transparent 0, var(--cm-table-fade,var(--stroke-focus-black,#161b2d)) 1rem, var(--cm-table-fade,var(--stroke-focus-black,#161b2d)) 100%)}[dir=rtl] ._tableScrollFadeStart_1qw2e_59{-webkit-mask-image:linear-gradient(to left, transparent 0, var(--cm-table-fade,var(--stroke-focus-black,#161b2d)) 1rem, var(--cm-table-fade,var(--stroke-focus-black,#161b2d)) 100%);-webkit-mask-image:linear-gradient(to left, transparent 0, var(--cm-table-fade,var(--stroke-focus-black,#161b2d)) 1rem, var(--cm-table-fade,var(--stroke-focus-black,#161b2d)) 100%);mask-image:linear-gradient(to left, transparent 0, var(--cm-table-fade,var(--stroke-focus-black,#161b2d)) 1rem, var(--cm-table-fade,var(--stroke-focus-black,#161b2d)) 100%)}._tableScrollFadeBoth_1qw2e_67{-webkit-mask-image:linear-gradient(to right, transparent 0, var(--cm-table-fade,var(--stroke-focus-black,#161b2d)) 1rem, var(--cm-table-fade,var(--stroke-focus-black,#161b2d)) calc(100% - 1rem), transparent 100%);-webkit-mask-image:linear-gradient(to right, transparent 0, var(--cm-table-fade,var(--stroke-focus-black,#161b2d)) 1rem, var(--cm-table-fade,var(--stroke-focus-black,#161b2d)) calc(100% - 1rem), transparent 100%);mask-image:linear-gradient(to right, transparent 0, var(--cm-table-fade,var(--stroke-focus-black,#161b2d)) 1rem, var(--cm-table-fade,var(--stroke-focus-black,#161b2d)) calc(100% - 1rem), transparent 100%)}._tableHeader_1qvg8_1{background:var(--cm-code-block-header-bg,var(--bg-layer-raised,#fcfcfc));border-color:var(--cm-markdown-border,var(--cm-code-block-border,var(--stroke-secondary,#d1dbea)))}._label_12p89_1{color:var(--pes-label-color,var(--text-primary,#161b2d))}
|
|
2
|
-
/*$vite$:1*/.sr-only{height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;clip:rect(0,0,0,0);border-width:0;white-space:nowrap}.visible{visibility:visible}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.bottom-4{bottom:1rem}.end-0{inset-inline-end:0}.end-2{inset-inline-end:.5rem}.end-4{inset-inline-end:1rem}.top-0{top:0}.top-2{top:.5rem}.top-\[-6px\]{top:-6px}.z-10{z-index:10}.z-\[2\]{z-index:2}.z-\[52\]{z-index:52}.z-\[70\]{z-index:70}.mx-0\.5{margin-left:.125rem;margin-right:.125rem}.my-4{margin-bottom:1rem;margin-top:1rem}.my-5{margin-bottom:1.25rem;margin-top:1.25rem}.mb-1\.5{margin-bottom:.375rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.me-1\.5{margin-inline-end:.375rem}.ms-auto{margin-inline-start:auto}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}.mt-auto{margin-top:auto}.block{display:block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.size-full{height:100%;width:100%}.\!h-\[min\(
|
|
2
|
+
/*$vite$:1*/.sr-only{height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;clip:rect(0,0,0,0);border-width:0;white-space:nowrap}.visible{visibility:visible}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.bottom-4{bottom:1rem}.end-0{inset-inline-end:0}.end-2{inset-inline-end:.5rem}.end-4{inset-inline-end:1rem}.top-0{top:0}.top-2{top:.5rem}.top-\[-6px\]{top:-6px}.z-10{z-index:10}.z-\[2\]{z-index:2}.z-\[52\]{z-index:52}.z-\[70\]{z-index:70}.mx-0\.5{margin-left:.125rem;margin-right:.125rem}.my-4{margin-bottom:1rem;margin-top:1rem}.my-5{margin-bottom:1.25rem;margin-top:1.25rem}.mb-1\.5{margin-bottom:.375rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.me-1\.5{margin-inline-end:.375rem}.ms-auto{margin-inline-start:auto}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}.mt-auto{margin-top:auto}.block{display:block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.size-full{height:100%;width:100%}.\!h-\[min\(900px\2c 100dvh\)\]{height:min(900px,100dvh)!important}.\!h-fit{height:-moz-fit-content!important;height:fit-content!important}.h-0{height:0}.h-\[24px\]{height:24px}.h-full{height:100%}.\!max-h-full{max-height:100%!important}.max-h-\[344px\]{max-height:344px}.max-h-\[50vh\]{max-height:50vh}.max-h-\[60vh\]{max-height:60vh}.min-h-0{min-height:0}.min-h-10{min-height:2.5rem}.\!w-\[400px\]{width:400px!important}.w-\[360px\]{width:360px}.w-full{width:100%}.w-max{width:-moz-max-content;width:max-content}.min-w-0{min-width:0}.min-w-full{min-width:100%}.max-w-96{max-width:24rem}.max-w-\[30\%\]{max-width:30%}.max-w-\[45\%\]{max-width:45%}.max-w-full{max-width:100%}.flex-1{flex:1 1 0%}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.border-collapse{border-collapse:collapse}.resize{resize:both}.list-decimal{list-style-type:decimal}.list-disc{list-style-type:disc}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.gap-x-3{-moz-column-gap:.75rem;column-gap:.75rem}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.25rem*var(--tw-space-y-reverse));margin-top:calc(.25rem*(1 - var(--tw-space-y-reverse)))}.self-stretch{align-self:stretch}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-hidden{overflow-y:hidden}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-normal{white-space:normal}.whitespace-nowrap{white-space:nowrap}.whitespace-pre{white-space:pre}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.rounded{border-radius:4px}.rounded-\[14px\]{border-radius:14px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-s-2{border-inline-start-width:2px}.border-t{border-top-width:1px}.border-tertiary{border-color:var(--stroke-tertiary,#e0e6f0)}.\!bg-layer-base{background-color:var(--bg-layer-base,#f5f7fa)!important}.bg-backdrop{background-color:var(--bg-backdrop,#161b2d4d)}.bg-layer-base{background-color:var(--bg-layer-base,#f5f7fa)}.bg-layer-raised{background-color:var(--bg-layer-raised,#fcfcfc)}.bg-layer-sunken{background-color:var(--bg-layer-sunken,#eef1f7)}.object-contain{-o-object-fit:contain;object-fit:contain}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-0{padding-left:0;padding-right:0}.px-1{padding-left:.25rem;padding-right:.25rem}.px-1\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-0{padding-bottom:0;padding-top:0}.py-0\.5{padding-bottom:.125rem;padding-top:.125rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-2\.5{padding-bottom:.625rem;padding-top:.625rem}.py-4{padding-bottom:1rem;padding-top:1rem}.py-\[7px\]{padding-bottom:7px;padding-top:7px}.pb-0{padding-bottom:0}.ps-4{padding-inline-start:1rem}.ps-5{padding-inline-start:1.25rem}.ps-\[2em\]{padding-inline-start:2em}.pt-0{padding-top:0}.pt-1{padding-top:.25rem}.text-center{text-align:center}.text-start{text-align:start}.text-end{text-align:end}.align-top{vertical-align:top}.align-middle{vertical-align:middle}.uppercase{text-transform:uppercase}.italic{font-style:italic}.text-primary{color:var(--text-primary,#161b2d)}.text-secondary{color:var(--text-secondary,#57647a)}.underline{text-decoration-line:underline}.underline-offset-2{text-underline-offset:2px}.opacity-0{opacity:0}.opacity-75{opacity:.75}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.shadow,.shadow-chat-button{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-chat-button{--tw-shadow:0 2px 12px 0 var(--shadow-xs-1,#2764d933),0 2px 6px 0 var(--shadow-xs-2,#161b2d08);--tw-shadow-colored:0 2px 12px 0 var(--tw-shadow-color),0 2px 6px 0 var(--tw-shadow-color)}.shadow-sm{--tw-shadow:0 8px 10px 0 var(--shadow-sm,#2764d914);--tw-shadow-colored:0 8px 10px 0 var(--tw-shadow-color)}.shadow-sm,.shadow-xs{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-xs{--tw-shadow:0 1px 4px 0 var(--shadow-xs-1,#2764d933),0 1px 2px 0 var(--shadow-xs-2,#161b2d08);--tw-shadow-colored:0 1px 4px 0 var(--tw-shadow-color),0 1px 2px 0 var(--tw-shadow-color)}.outline{outline-style:solid;outline-width:1px}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.\[overflow-wrap\:anywhere\]{overflow-wrap:anywhere}.\[overflow\:clip\]{overflow:clip}.\[text-wrap\:balance\]{text-wrap:balance}.\[text-wrap\:pretty\]{text-wrap:pretty}.first\:mt-0:first-child{margin-top:0}.last\:mb-0:last-child{margin-bottom:0}.focus-within\:opacity-100:focus-within{opacity:1}.hover\:decoration-current:hover{text-decoration-color:currentColor}.focus-visible\:outline:focus-visible{outline-style:solid;outline-width:1px}.focus-visible\:outline-1:focus-visible{outline-width:1px}.focus-visible\:outline-offset-2:focus-visible{outline-offset:2px}.group\/table:hover .group-hover\/table\:opacity-100{opacity:1}@media (min-width:768px){.md\:\!max-w-\[1600px\]{max-width:1600px!important}}@media (min-width:1280px){.desktop\:p-4{padding:1rem}}.rtl\:flex-row-reverse:where([dir=rtl],[dir=rtl] *){flex-direction:row-reverse}.rtl\:justify-start:where([dir=rtl],[dir=rtl] *){justify-content:flex-start}.\[\&_\.w-md-editor\:not\(\.w-md-editor-fullscreen\)\]\:\!h-\[var\(--resizable-field-max-height\2c 70vh\)\] .w-md-editor:not(.w-md-editor-fullscreen){height:var(--resizable-field-max-height,70vh)!important}.\[\&_\.w-md-editor\:not\(\.w-md-editor-fullscreen\)\]\:max-h-\[var\(--resizable-field-max-height\2c 70vh\)\] .w-md-editor:not(.w-md-editor-fullscreen){max-height:var(--resizable-field-max-height,70vh)}.\[\&_\.wmde-markdown\>ol\]\:list-decimal .wmde-markdown>ol{list-style-type:decimal}.\[\&_\.wmde-markdown_ul\]\:list-disc .wmde-markdown ul{list-style-type:disc}.\[\&_\.wmde-markdown_ul_ul\]\:list-\[circle\] .wmde-markdown ul ul{list-style-type:circle}.\[\&_\.wmde-markdown_ul_ul_ul\]\:list-\[square\] .wmde-markdown ul ul ul{list-style-type:square}
|
package/package.json
CHANGED