china-mobile-international-custom-components 0.0.54 → 0.0.56
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/es/AddOrEditSupplierDialog.mjs +920 -22
- package/es/ApplicationIcon.mjs +38 -37
- package/es/AuthSection.mjs +191 -0
- package/es/CodeView.mjs +170 -0
- package/es/CommonTagsList.mjs +31 -30
- package/es/CreateMcpForm.mjs +331 -0
- package/es/FilePreview.mjs +229 -0
- package/es/FileUploader.mjs +92 -87
- package/es/McpFormDialog.mjs +187 -0
- package/es/RadioGroup.mjs +119 -0
- package/es/SourcePublish.mjs +2 -2
- package/es/assets/AddOrEditSupplierDialog.css +1 -1
- package/es/assets/AuthSection.css +1 -0
- package/es/assets/CodeView.css +1 -0
- package/es/assets/CreateMcpForm.css +1 -0
- package/es/assets/FilePreview.css +1 -0
- package/es/assets/McpFormDialog.css +1 -0
- package/es/assets/RadioGroup.css +1 -0
- package/es/assets/usePreview.css +1 -0
- package/es/chunks/config.CgrPt4Zx.js +435 -0
- package/es/chunks/mcp-tool.Nc4HT9IM.js +4 -0
- package/es/chunks/usePreview.BMkgYO7E.js +124 -0
- package/es/index.mjs +167 -149
- package/lib/AddOrEditSupplierDialog.js +1 -1
- package/lib/ApplicationIcon.js +1 -1
- package/lib/AuthSection.js +1 -0
- package/lib/CodeView.js +1 -0
- package/lib/CommonTagsList.js +1 -1
- package/lib/CreateMcpForm.js +1 -0
- package/lib/FilePreview.js +1 -0
- package/lib/FileUploader.js +1 -1
- package/lib/McpFormDialog.js +1 -0
- package/lib/RadioGroup.js +1 -0
- package/lib/SourcePublish.js +1 -1
- package/lib/assets/AddOrEditSupplierDialog.css +1 -1
- package/lib/assets/AuthSection.css +1 -0
- package/lib/assets/CodeView.css +1 -0
- package/lib/assets/CreateMcpForm.css +1 -0
- package/lib/assets/FilePreview.css +1 -0
- package/lib/assets/McpFormDialog.css +1 -0
- package/lib/assets/RadioGroup.css +1 -0
- package/lib/assets/usePreview.css +1 -0
- package/lib/chunks/config.BvBtwI1A.js +1 -0
- package/lib/chunks/mcp-tool.fb1SS2wA.js +1 -0
- package/lib/chunks/usePreview.BzTCNJfE.js +1 -0
- package/lib/index.js +1 -1
- package/package.json +7 -1
package/es/index.mjs
CHANGED
|
@@ -1,259 +1,277 @@
|
|
|
1
1
|
import { CustomToggle as o } from "./CustomToggle.mjs";
|
|
2
2
|
import { CustomTitle as i } from "./CustomTitle.mjs";
|
|
3
3
|
import { COLUMN_TYPES as t, MODES as r, PageContainer as T } from "./PageContainer.mjs";
|
|
4
|
-
import { l as n, a as
|
|
5
|
-
import { AvailableRangeSetting as
|
|
6
|
-
import { A as
|
|
4
|
+
import { l as n, a as p, n as l, M as m, N as S, S as E, T as A, d as P, e as _, f as c, h as g, k as u, m as f, g as d, j as L, c as C, b as I, i as N, p as O, t as M } from "./chunks/layout.OCgfqjXG.js";
|
|
5
|
+
import { AvailableRangeSetting as R } from "./AvailableRangeSetting.mjs";
|
|
6
|
+
import { A as U, D as F, M as y, P as b, R as B, T as D, a as h, r as Y } from "./chunks/index.5lH4UH_M.js";
|
|
7
7
|
import { ApplicationIcon as H } from "./ApplicationIcon.mjs";
|
|
8
8
|
import { ApplicationTypeTag as x, useApplicationTypeTag as v } from "./ApplicationTypeTag.mjs";
|
|
9
|
-
import { ApiTooltip as w, FeishuTooltip as
|
|
9
|
+
import { ApiTooltip as w, FeishuTooltip as G, PermissionSetting as k, PublishIcon as j, PublishSettings as V, SourcePublish as W } from "./SourcePublish.mjs";
|
|
10
10
|
import { DocSyncSelect as K } from "./DocSyncSelect.mjs";
|
|
11
11
|
import { AiboxTable as Z } from "./Table.mjs";
|
|
12
12
|
import { ARRAYTYPES as $, METHODSOPTIONS as z, NOBODYMETHOD as J, ParameterTable as X, TYPESMAP as q, TYPESOPTIONS as Q, convertChildrenToDebugValue as aa, isArrayType as ea } from "./ParameterTable.mjs";
|
|
13
13
|
import { FileUploader as sa, UploadTypesEnum as oa, extractAndLowerCaseArrayType as ia, getAcceptType as ta, getWarnTips as ra } from "./FileUploader.mjs";
|
|
14
14
|
import { AutoShowTooltip as Ta } from "./AutoShowTooltip.mjs";
|
|
15
|
-
import { DialogContainer as na, useDialog as
|
|
16
|
-
import { CommonTagsList as
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
15
|
+
import { DialogContainer as na, useDialog as pa } from "./DialogContainer.mjs";
|
|
16
|
+
import { CommonTagsList as la, StatusTag as ma } from "./CommonTagsList.mjs";
|
|
17
|
+
import { AddOrEditSupplierDialog as Sa, AiboxTabs as Ea, DeleteResourceDialog as Aa, FilePreview as Pa } from "./AddOrEditSupplierDialog.mjs";
|
|
18
|
+
import { McpFormDialog as _a, useMcpEditDialog as ca } from "./McpFormDialog.mjs";
|
|
19
|
+
import { CreateMcpForm as ga } from "./CreateMcpForm.mjs";
|
|
20
|
+
import { AuthSection as ua } from "./AuthSection.mjs";
|
|
21
|
+
import { RadioGroup as fa } from "./RadioGroup.mjs";
|
|
22
|
+
import { CodeView as da } from "./CodeView.mjs";
|
|
23
|
+
import { _ as La, T as Ca } from "./chunks/BackBar.eaUb1JvV.js";
|
|
24
|
+
import { A as Ia, S as Na } from "./chunks/config.DE5PZU2F.js";
|
|
25
|
+
import { A as Oa, a as Ma, C as Ra, I as Ua, L as Fa, O as ya, b as ba, P as Ba, c as Da, d as ha, e as Ya, f as Ha, R as xa, g as va, S as wa, h as Ga, i as ka, s as ja, j as Va, k as Wa } from "./chunks/config.CgrPt4Zx.js";
|
|
26
|
+
import { d as Ka, g as Za, i as $a, a as za, b as Ja, c as Xa, e as qa, f as Qa, h as ae, j as ee, k as se, l as oe, m as ie, n as te, u as re } from "./chunks/usePreview.BMkgYO7E.js";
|
|
27
|
+
import { o as ve } from "./chunks/usePreview.BMkgYO7E.js";
|
|
28
|
+
import { dayjs as Te } from "element-plus";
|
|
29
|
+
import { f as Ge, c as ke, e as je, b as Ve, d as We, g as Ke, l as Ze, a as $e, s as ze, u as Je } from "./chunks/i18n.Bd7hh14j.js";
|
|
24
30
|
const a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
25
31
|
__proto__: null,
|
|
26
|
-
API_CHANNEL_TYPES:
|
|
27
|
-
APPLICATION_TYPE:
|
|
32
|
+
API_CHANNEL_TYPES: Oa,
|
|
33
|
+
APPLICATION_TYPE: Ia,
|
|
28
34
|
ARRAYTYPES: $,
|
|
29
|
-
AUTHORIZED_CHANNEL_TYPES:
|
|
30
|
-
AddOrEditSupplierDialog:
|
|
35
|
+
AUTHORIZED_CHANNEL_TYPES: Ma,
|
|
36
|
+
AddOrEditSupplierDialog: Sa,
|
|
31
37
|
AiboxTable: Z,
|
|
32
38
|
AiboxTabs: Ea,
|
|
33
39
|
ApiTooltip: w,
|
|
34
40
|
ApplicationIcon: H,
|
|
35
41
|
ApplicationTypeTag: x,
|
|
42
|
+
AuthSection: ua,
|
|
36
43
|
AutoShowTooltip: Ta,
|
|
37
|
-
AvailableRangePreview:
|
|
38
|
-
AvailableRangeSetting:
|
|
39
|
-
BackBar:
|
|
40
|
-
CHANNEL_ICON_CONFIG:
|
|
44
|
+
AvailableRangePreview: U,
|
|
45
|
+
AvailableRangeSetting: R,
|
|
46
|
+
BackBar: La,
|
|
47
|
+
CHANNEL_ICON_CONFIG: Ra,
|
|
41
48
|
COLUMN_TYPES: t,
|
|
42
|
-
|
|
49
|
+
CodeView: da,
|
|
50
|
+
CommonTagsList: la,
|
|
51
|
+
CreateMcpForm: ga,
|
|
43
52
|
CustomSidebar: n,
|
|
44
53
|
CustomTitle: i,
|
|
45
54
|
CustomToggle: o,
|
|
46
|
-
DEFAULT_SHOW_COUNT:
|
|
55
|
+
DEFAULT_SHOW_COUNT: F,
|
|
47
56
|
DeleteResourceDialog: Aa,
|
|
48
57
|
DialogContainer: na,
|
|
49
58
|
DocSyncSelect: K,
|
|
50
|
-
FeishuTooltip:
|
|
59
|
+
FeishuTooltip: G,
|
|
51
60
|
FilePreview: Pa,
|
|
52
61
|
FileUploader: sa,
|
|
53
|
-
INACTIVE_ENUM:
|
|
54
|
-
LIBRARY_PAGE:
|
|
55
|
-
MEMBER_DEPARTMENT_TYPES:
|
|
56
|
-
MENU_COLOR_STRATEGY:
|
|
57
|
-
MENU_LOADING_STATES:
|
|
58
|
-
MENU_TYPE:
|
|
62
|
+
INACTIVE_ENUM: Ua,
|
|
63
|
+
LIBRARY_PAGE: Fa,
|
|
64
|
+
MEMBER_DEPARTMENT_TYPES: y,
|
|
65
|
+
MENU_COLOR_STRATEGY: p,
|
|
66
|
+
MENU_LOADING_STATES: l,
|
|
67
|
+
MENU_TYPE: m,
|
|
59
68
|
METHODSOPTIONS: z,
|
|
60
69
|
MODES: r,
|
|
70
|
+
McpFormDialog: _a,
|
|
61
71
|
NOBODYMETHOD: J,
|
|
62
|
-
NODE_CLICK_TYPES:
|
|
63
|
-
OFFICIAL_LABEL:
|
|
64
|
-
OPEN_STATUS_VALUE:
|
|
72
|
+
NODE_CLICK_TYPES: S,
|
|
73
|
+
OFFICIAL_LABEL: ya,
|
|
74
|
+
OPEN_STATUS_VALUE: ba,
|
|
65
75
|
PUBLISH_STATUS: b,
|
|
66
|
-
PUBLISH_STATUS_COLORS:
|
|
67
|
-
PUBLISH_STATUS_ICONS:
|
|
68
|
-
PUBLISH_STATUS_TEXT:
|
|
69
|
-
PUBLISH_STATUS_TYPE:
|
|
70
|
-
PUBLISH_TYPE_ICON_MAPPING:
|
|
76
|
+
PUBLISH_STATUS_COLORS: Ba,
|
|
77
|
+
PUBLISH_STATUS_ICONS: Da,
|
|
78
|
+
PUBLISH_STATUS_TEXT: ha,
|
|
79
|
+
PUBLISH_STATUS_TYPE: Ya,
|
|
80
|
+
PUBLISH_TYPE_ICON_MAPPING: Ha,
|
|
71
81
|
PageContainer: T,
|
|
72
82
|
ParameterTable: X,
|
|
73
|
-
PermissionSetting:
|
|
83
|
+
PermissionSetting: k,
|
|
74
84
|
PublishIcon: j,
|
|
75
85
|
PublishSettings: V,
|
|
76
86
|
RANGE_TYPES: B,
|
|
77
|
-
RELEASE_CHANNEL_CONFIG:
|
|
78
|
-
RELEASE_CHANNEL_TYPE:
|
|
79
|
-
|
|
87
|
+
RELEASE_CHANNEL_CONFIG: xa,
|
|
88
|
+
RELEASE_CHANNEL_TYPE: va,
|
|
89
|
+
RadioGroup: fa,
|
|
90
|
+
SOURCE_TYPE: Na,
|
|
80
91
|
SPECIAL_ROUTES: E,
|
|
81
|
-
STORE_CHANNEL_TYPES:
|
|
92
|
+
STORE_CHANNEL_TYPES: wa,
|
|
82
93
|
SourcePublish: W,
|
|
83
|
-
StatusTag:
|
|
94
|
+
StatusTag: ma,
|
|
84
95
|
TREE_PROPS: A,
|
|
85
96
|
TYPESMAP: q,
|
|
86
97
|
TYPESOPTIONS: Q,
|
|
87
|
-
TableBtns:
|
|
98
|
+
TableBtns: Ca,
|
|
88
99
|
TagList: D,
|
|
89
100
|
UploadTypesEnum: oa,
|
|
90
|
-
availableRangeTreeProps:
|
|
101
|
+
availableRangeTreeProps: h,
|
|
91
102
|
collapseNodeKeys: P,
|
|
92
103
|
convertChildrenToDebugValue: aa,
|
|
93
|
-
downloadBlobFile:
|
|
104
|
+
downloadBlobFile: Ka,
|
|
94
105
|
expandNodeKeys: _,
|
|
95
106
|
extractAndLowerCaseArrayType: ia,
|
|
96
|
-
findExpandPath:
|
|
97
|
-
findExpandPathById:
|
|
107
|
+
findExpandPath: c,
|
|
108
|
+
findExpandPathById: g,
|
|
98
109
|
findMenuByPath: u,
|
|
99
110
|
getAcceptType: ta,
|
|
100
|
-
getChannelsByType:
|
|
101
|
-
getFilesApis:
|
|
111
|
+
getChannelsByType: Ga,
|
|
112
|
+
getFilesApis: Za,
|
|
102
113
|
getFirstLeafMenu: f,
|
|
103
114
|
getMenuIconColorById: d,
|
|
104
115
|
getParentNodeIdsById: L,
|
|
105
|
-
getStoreDetailType:
|
|
116
|
+
getStoreDetailType: ka,
|
|
106
117
|
getWarnTips: ra,
|
|
107
118
|
isArrayType: ea,
|
|
108
|
-
isAudioFile:
|
|
109
|
-
isExcelFile:
|
|
110
|
-
isHtmlFile:
|
|
111
|
-
isImageLink:
|
|
112
|
-
isJsonFile:
|
|
113
|
-
isMdFile:
|
|
114
|
-
isParentMenuActive:
|
|
115
|
-
isParentRouteActive:
|
|
116
|
-
isPathInMenu:
|
|
117
|
-
isPdfFile:
|
|
118
|
-
isPptFile:
|
|
119
|
-
isText:
|
|
120
|
-
isVideoFile:
|
|
121
|
-
isWordFile:
|
|
122
|
-
isZipFile:
|
|
119
|
+
isAudioFile: $a,
|
|
120
|
+
isExcelFile: za,
|
|
121
|
+
isHtmlFile: Ja,
|
|
122
|
+
isImageLink: Xa,
|
|
123
|
+
isJsonFile: qa,
|
|
124
|
+
isMdFile: Qa,
|
|
125
|
+
isParentMenuActive: C,
|
|
126
|
+
isParentRouteActive: I,
|
|
127
|
+
isPathInMenu: N,
|
|
128
|
+
isPdfFile: ae,
|
|
129
|
+
isPptFile: ee,
|
|
130
|
+
isText: se,
|
|
131
|
+
isVideoFile: oe,
|
|
132
|
+
isWordFile: ie,
|
|
133
|
+
isZipFile: te,
|
|
123
134
|
processMenuTreeWithLeaf: O,
|
|
124
|
-
rangeOptions:
|
|
125
|
-
serviceStatus:
|
|
126
|
-
serviceType:
|
|
127
|
-
serviceTypeMap:
|
|
135
|
+
rangeOptions: Y,
|
|
136
|
+
serviceStatus: ja,
|
|
137
|
+
serviceType: Va,
|
|
138
|
+
serviceTypeMap: Wa,
|
|
128
139
|
transformMenuData: M,
|
|
129
|
-
uploadUrl:
|
|
140
|
+
uploadUrl: re,
|
|
130
141
|
useApplicationTypeTag: v,
|
|
131
|
-
useDialog:
|
|
142
|
+
useDialog: pa,
|
|
143
|
+
useMcpEditDialog: ca
|
|
132
144
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
133
|
-
|
|
134
|
-
const
|
|
145
|
+
Te.en.weekStart = 1;
|
|
146
|
+
const ne = (s) => {
|
|
135
147
|
for (const e in a)
|
|
136
148
|
a[e].install && s.use(a[e]);
|
|
137
|
-
},
|
|
138
|
-
install:
|
|
149
|
+
}, Ye = {
|
|
150
|
+
install: ne
|
|
139
151
|
};
|
|
140
152
|
export {
|
|
141
|
-
|
|
142
|
-
|
|
153
|
+
Oa as API_CHANNEL_TYPES,
|
|
154
|
+
Ia as APPLICATION_TYPE,
|
|
143
155
|
$ as ARRAYTYPES,
|
|
144
|
-
|
|
145
|
-
|
|
156
|
+
Ma as AUTHORIZED_CHANNEL_TYPES,
|
|
157
|
+
Sa as AddOrEditSupplierDialog,
|
|
146
158
|
Z as AiboxTable,
|
|
147
159
|
Ea as AiboxTabs,
|
|
148
160
|
w as ApiTooltip,
|
|
149
161
|
H as ApplicationIcon,
|
|
150
162
|
x as ApplicationTypeTag,
|
|
163
|
+
ua as AuthSection,
|
|
151
164
|
Ta as AutoShowTooltip,
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
165
|
+
U as AvailableRangePreview,
|
|
166
|
+
R as AvailableRangeSetting,
|
|
167
|
+
La as BackBar,
|
|
168
|
+
Ra as CHANNEL_ICON_CONFIG,
|
|
156
169
|
t as COLUMN_TYPES,
|
|
157
|
-
|
|
170
|
+
da as CodeView,
|
|
171
|
+
la as CommonTagsList,
|
|
172
|
+
ga as CreateMcpForm,
|
|
158
173
|
n as CustomSidebar,
|
|
159
174
|
i as CustomTitle,
|
|
160
175
|
o as CustomToggle,
|
|
161
|
-
|
|
176
|
+
F as DEFAULT_SHOW_COUNT,
|
|
162
177
|
Aa as DeleteResourceDialog,
|
|
163
178
|
na as DialogContainer,
|
|
164
179
|
K as DocSyncSelect,
|
|
165
|
-
|
|
180
|
+
G as FeishuTooltip,
|
|
166
181
|
Pa as FilePreview,
|
|
167
182
|
sa as FileUploader,
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
183
|
+
Ua as INACTIVE_ENUM,
|
|
184
|
+
Fa as LIBRARY_PAGE,
|
|
185
|
+
y as MEMBER_DEPARTMENT_TYPES,
|
|
186
|
+
p as MENU_COLOR_STRATEGY,
|
|
187
|
+
l as MENU_LOADING_STATES,
|
|
188
|
+
m as MENU_TYPE,
|
|
174
189
|
z as METHODSOPTIONS,
|
|
175
190
|
r as MODES,
|
|
191
|
+
_a as McpFormDialog,
|
|
176
192
|
J as NOBODYMETHOD,
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
193
|
+
S as NODE_CLICK_TYPES,
|
|
194
|
+
ya as OFFICIAL_LABEL,
|
|
195
|
+
ba as OPEN_STATUS_VALUE,
|
|
180
196
|
b as PUBLISH_STATUS,
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
197
|
+
Ba as PUBLISH_STATUS_COLORS,
|
|
198
|
+
Da as PUBLISH_STATUS_ICONS,
|
|
199
|
+
ha as PUBLISH_STATUS_TEXT,
|
|
200
|
+
Ya as PUBLISH_STATUS_TYPE,
|
|
201
|
+
Ha as PUBLISH_TYPE_ICON_MAPPING,
|
|
186
202
|
T as PageContainer,
|
|
187
203
|
X as ParameterTable,
|
|
188
|
-
|
|
204
|
+
k as PermissionSetting,
|
|
189
205
|
j as PublishIcon,
|
|
190
206
|
V as PublishSettings,
|
|
191
207
|
B as RANGE_TYPES,
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
208
|
+
xa as RELEASE_CHANNEL_CONFIG,
|
|
209
|
+
va as RELEASE_CHANNEL_TYPE,
|
|
210
|
+
fa as RadioGroup,
|
|
211
|
+
Na as SOURCE_TYPE,
|
|
195
212
|
E as SPECIAL_ROUTES,
|
|
196
|
-
|
|
213
|
+
wa as STORE_CHANNEL_TYPES,
|
|
197
214
|
W as SourcePublish,
|
|
198
|
-
|
|
215
|
+
ma as StatusTag,
|
|
199
216
|
A as TREE_PROPS,
|
|
200
217
|
q as TYPESMAP,
|
|
201
218
|
Q as TYPESOPTIONS,
|
|
202
|
-
|
|
219
|
+
Ca as TableBtns,
|
|
203
220
|
D as TagList,
|
|
204
221
|
oa as UploadTypesEnum,
|
|
205
|
-
|
|
206
|
-
|
|
222
|
+
h as availableRangeTreeProps,
|
|
223
|
+
Ge as cancelLanguageChangeListener,
|
|
207
224
|
P as collapseNodeKeys,
|
|
208
225
|
aa as convertChildrenToDebugValue,
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
226
|
+
ke as createI18nInstance,
|
|
227
|
+
je as createTranslationHelper,
|
|
228
|
+
Ye as default,
|
|
229
|
+
Ka as downloadBlobFile,
|
|
213
230
|
_ as expandNodeKeys,
|
|
214
231
|
ia as extractAndLowerCaseArrayType,
|
|
215
|
-
|
|
216
|
-
|
|
232
|
+
c as findExpandPath,
|
|
233
|
+
g as findExpandPathById,
|
|
217
234
|
u as findMenuByPath,
|
|
218
235
|
ta as getAcceptType,
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
236
|
+
Ve as getBrowserLanguage,
|
|
237
|
+
Ga as getChannelsByType,
|
|
238
|
+
We as getCurrentLocale,
|
|
239
|
+
Za as getFilesApis,
|
|
223
240
|
f as getFirstLeafMenu,
|
|
224
241
|
d as getMenuIconColorById,
|
|
225
242
|
L as getParentNodeIdsById,
|
|
226
|
-
|
|
243
|
+
ka as getStoreDetailType,
|
|
227
244
|
ra as getWarnTips,
|
|
228
|
-
|
|
245
|
+
Ke as getterTText,
|
|
229
246
|
ea as isArrayType,
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
+
$a as isAudioFile,
|
|
248
|
+
za as isExcelFile,
|
|
249
|
+
Ja as isHtmlFile,
|
|
250
|
+
Xa as isImageLink,
|
|
251
|
+
qa as isJsonFile,
|
|
252
|
+
Qa as isMdFile,
|
|
253
|
+
C as isParentMenuActive,
|
|
254
|
+
I as isParentRouteActive,
|
|
255
|
+
N as isPathInMenu,
|
|
256
|
+
ae as isPdfFile,
|
|
257
|
+
ee as isPptFile,
|
|
258
|
+
se as isText,
|
|
259
|
+
oe as isVideoFile,
|
|
260
|
+
ie as isWordFile,
|
|
261
|
+
te as isZipFile,
|
|
262
|
+
Ze as languageMap,
|
|
263
|
+
$e as localeMap,
|
|
247
264
|
O as processMenuTreeWithLeaf,
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
265
|
+
Y as rangeOptions,
|
|
266
|
+
ja as serviceStatus,
|
|
267
|
+
Va as serviceType,
|
|
268
|
+
Wa as serviceTypeMap,
|
|
269
|
+
ze as setupLanguageChangeListener,
|
|
253
270
|
M as transformMenuData,
|
|
254
|
-
|
|
271
|
+
re as uploadUrl,
|
|
255
272
|
v as useApplicationTypeTag,
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
273
|
+
pa as useDialog,
|
|
274
|
+
ve as useDownloadPrew,
|
|
275
|
+
Je as useI18n,
|
|
276
|
+
ca as useMcpEditDialog
|
|
259
277
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("./chunks/index.CkihWzK6.js");const i=require("./chunks/index.B-on7iyN.js");exports.AddOrEditSupplierDialog=i.AddOrEditSupplierDialog;exports.AiboxTabs=i.AiboxTabs;exports.DeleteResourceDialog=i.DeleteResourceDialog;exports.FilePreview=i.FilePreview;exports.default=i.AddOrEditSupplierDialog;exports.downloadBlobFile=i.downloadBlobFile;exports.getFilesApis=i.getFilesApis;exports.isAudioFile=i.isAudioFile;exports.isExcelFile=i.isExcelFile;exports.isHtmlFile=i.isHtmlFile;exports.isImageLink=i.isImageLink;exports.isJsonFile=i.isJsonFile;exports.isMdFile=i.isMdFile;exports.isPdfFile=i.isPdfFile;exports.isPptFile=i.isPptFile;exports.isText=i.isText;exports.isVideoFile=i.isVideoFile;exports.isWordFile=i.isWordFile;exports.isZipFile=i.isZipFile;exports.uploadUrl=i.uploadUrl;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require('./assets/AddOrEditSupplierDialog.css');const ee=require("./chunks/index.CkihWzK6.js"),e=require("vue"),j=require("./chunks/i18n.D3L1FBDI.js"),T=require("./chunks/request.D8T4MgGX.js"),r=require("element-plus"),B=require("color-message-aibox-vue"),U=require("./FileUploader.js"),d=require("./chunks/usePreview.BzTCNJfE.js"),F=require("./chunks/_plugin-vue_export-helper.BHFhmbuH.js"),S=require("./DialogContainer.js"),te=require("vue-router"),W=()=>{const{$request:s,$env:u}=T.getGlobalProperties();return{deleteKey:p=>s({url:`${u.VITE_APP_AIBOX_BASE_URL}/api/v1/model/key/${p}`,method:"delete"}),deleteOwnerModel:p=>s({url:`${u.VITE_APP_AIBOX_BASE_URL}/api/v1/model/owner/${p}`,method:"delete"}),addModel:p=>s({url:`${u.VITE_APP_AIBOX_BASE_URL}/api/v1/model`,method:"post",data:p}),updateModel:(p,_)=>s({url:`${u.VITE_APP_AIBOX_BASE_URL}/api/v1/model/${p}`,method:"put",data:_})}},le={key:0,class:"panel-preview"},oe={class:"panel-preview__item"},ne=["onClick"],re=["src","alt"],ae={class:"panel-preview__name ellipsis"},se={key:0},ie={key:1},ue={key:1,class:"upload-preview"},ce=["src","alt"],de={class:"preview-item__mask"},_e={__name:"FilePreview",props:{fileList:{type:Array,default:()=>[]},canEdit:{type:Boolean,default:!0},previewType:{type:String,default:U.UploadTypesEnum.面板},isStream:{type:Boolean,default:!1},isCustom:{type:Boolean,default:!1}},emits:["on-remove","on-preview"],setup(s,{emit:u}){const{downloadPrew:O,downloadStreamPrew:l}=d.useDownloadPrew(),{t:m}=j.useI18n(),M=s,p=u,_=i=>d.uploadUrl(i);function R(i){M.isCustom?p("on-preview",i):M.isStream?l(i):O(i)}function f(i,L){p("on-remove",i,L)}return(i,L)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[s.previewType===e.unref(U.UploadTypesEnum).面板?(e.openBlock(),e.createElementBlock("div",le,[e.renderSlot(i.$slots,"PanelUploader",{},void 0,!0),e.createVNode(e.unref(r.ElRow),{gutter:20,class:"panel-preview__row"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.fileList,(c,g)=>(e.openBlock(),e.createBlock(e.unref(r.ElCol),{span:8,key:c.bnid},{default:e.withCtx(()=>[e.createElementVNode("div",oe,[e.createElementVNode("div",{class:"panel-preview__box",onClick:D=>R(c)},[e.unref(d.isImageLink)(c.suffix)?(e.openBlock(),e.createElementBlock("img",{key:0,src:c.url,alt:c.name,class:"panel-preview__img"},null,8,re)):(e.openBlock(),e.createBlock(e.unref(r.ElIcon),{key:1,size:"32px",class:"panel-preview__img"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(_(c))))]),_:2},1024)),e.createElementVNode("span",ae,e.toDisplayString(c.name),1)],8,ne),c.isUploading?(e.openBlock(),e.createElementBlock("div",se,[e.createVNode(e.unref(r.ElButton),{text:"",size:"small",loading:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(m)("COMPONENTS.UPLOADING"))+"...",1)]),_:1})])):(e.openBlock(),e.createElementBlock("div",ie,[s.canEdit?(e.openBlock(),e.createBlock(e.unref(r.ElIcon),{key:0,size:"18",style:{cursor:"pointer"},onClick:D=>f(g,c)},{default:e.withCtx(()=>[e.createVNode(e.unref(B.IconDelete))]),_:1},8,["onClick"])):e.createCommentVNode("",!0)]))])]),_:2},1024))),128))]),_:1})])):e.createCommentVNode("",!0),s.previewType===e.unref(U.UploadTypesEnum).卡片?(e.openBlock(),e.createElementBlock("ul",ue,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.fileList,(c,g)=>(e.openBlock(),e.createElementBlock("li",{class:"preview-item",key:c.bnid},[e.unref(d.isImageLink)(c.suffix)?(e.openBlock(),e.createElementBlock("img",{key:0,src:c.url,alt:c.name,class:"preview-item__img"},null,8,ce)):(e.openBlock(),e.createBlock(e.unref(r.ElIcon),{key:1,size:"32px",class:"preview-item__img"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(_(c))))]),_:2},1024)),e.createElementVNode("div",de,[e.createVNode(e.unref(r.ElIcon),{class:"preview-item__mask--view",onClick:D=>R(c)},{default:e.withCtx(()=>[e.createVNode(e.unref(B.IconHide))]),_:1},8,["onClick"]),s.canEdit?(e.openBlock(),e.createBlock(e.unref(r.ElIcon),{key:0,class:"preview-item__mask--delete",onClick:D=>f(g,c)},{default:e.withCtx(()=>[e.createVNode(e.unref(B.IconDelete))]),_:1},8,["onClick"])):e.createCommentVNode("",!0)])]))),128)),e.renderSlot(i.$slots,"CardUploader",{},void 0,!0)])):e.createCommentVNode("",!0)],64))}},z=F._export_sfc(_e,[["__scopeId","data-v-58503153"]]),pe=()=>{const{$request:s,$env:u}=T.getGlobalProperties();return{getSystemReference:l=>s({url:`${u.VITE_APP_AIBOX_BASE_URL}/api/v1/system/reference`,method:"get",params:l})}},Ee=()=>{const{$request:s,$env:u}=T.getGlobalProperties();return{deleteKnowledgeBase:l=>s({url:`${u.VITE_APP_AIBOX_BASE_URL}/api/v1/knowledge/${l}`,method:"delete"})}},Oe=()=>{const{$request:s,$env:u}=T.getGlobalProperties();return{del:l=>s({url:`${u.VITE_APP_AIBOX_BASE_URL}/api/v1/workflow/mgr?bnid=${l}`,method:"delete"})}},me=()=>{const{$request:s,$env:u}=T.getGlobalProperties();return{deleteId:m=>s({url:`${u.VITE_APP_AIBOX_BASE_URL}/api/v1/pluglet/delete/${m}`,method:"put"}),deleteTools:m=>s({url:`${u.VITE_APP_AIBOX_BASE_URL}/api/v1/pluglit/delete/${m}`,method:"put"})}},fe={class:"ai-box-tabs overflow-hidden"},Me=["onClick"],Le={__name:"AiboxTabs",props:{modelValue:{type:[String,Number],default:()=>""},tabList:{type:Array,default:()=>[]},propsObj:{type:Object,default:()=>({label:"label",value:"value"})}},emits:["update:modelValue","change"],setup(s,{emit:u}){const O=u,l=s,m=M=>{O("update:modelValue",M[l.propsObj.value]),O("change",M[l.propsObj.value])};return(M,p)=>(e.openBlock(),e.createElementBlock("div",fe,[e.createElementVNode("ul",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.tabList,_=>(e.openBlock(),e.createElementBlock("li",{key:_[s.propsObj.value],onClick:R=>m(_),class:e.normalizeClass(s.modelValue===_[s.propsObj.value]?"current":"")},e.toDisplayString(_[s.propsObj.label]),11,Me))),128))])]))}},Q=F._export_sfc(Le,[["__scopeId","data-v-82d3878d"]]),ge={class:"delete-title"},Ne={class:"custom-message-box"},Ce={class:"custom-message-box__title",style:{"line-height":"24px"}},ve={style:{color:"red"}},De={key:0,class:"custom-message-box__tip"},Re={key:0,class:"delete-tabs"},Ae={key:0,class:"resource-list"},Ie=["onClick"],Be={class:"item-title"},ke={key:1,class:"resource-list"},we=["onClick"],ye={class:"item-title"},Te={class:"dialog-footer"},he={__name:"DeleteResourceDialog",props:{title:{type:String,default:""},deleteType:{type:String,default:""}},emits:["success"],setup(s,{expose:u,emit:O}){const{getSystemReference:l}=pe(),{deleteKnowledgeBase:m}=Ee(),{del:M}=Oe(),{deleteId:p,deleteTools:_}=me(),{deleteKey:R,deleteOwnerModel:f}=W(),{t:i}=j.useI18n(),L=te.useRouter(),{dialogRef:c,showDialog:g,hideDialog:D}=S.useDialog(),h=s,k=O,a=e.computed(()=>{const t=[];return C.value.length&&t.push({label:i("COMPONENTS_OUTER_SPHERE.APPLICATION_REFERENCE",{num:C.value.length}),value:"1"}),v.value.length&&t.push({label:i("COMPONENTS_OUTER_SPHERE.WORKFLOW_REFERENCE",{num:v.value.length}),value:"2"}),t}),A=e.ref("1"),E=e.ref(""),C=e.ref([]),v=e.ref([]),Y=t=>{const n={model:{code:1,desc:i("COMMON_TAG.APPLICATION"),deleteFn:async()=>await f(E.value)},knowledge:{code:2,desc:i("COMMON_TAG.KNOWLEDGE_BASE"),deleteFn:async()=>await m(E.value)},workflow:{code:4,desc:i("COMMON_TAG.WORKFLOW"),deleteFn:async()=>await M(E.value)},plugin:{code:6,desc:i("COMMON_TAG.PLUGIN"),deleteFn:async()=>await p(E.value)},pluglit:{code:6,desc:i("COMMON_TAG.TOOL"),deleteFn:async()=>await _(E.value)},modelKey:{code:7,desc:i("COMMON_TAG.MODEL_KEY"),deleteFn:async()=>await R(E.value)}};return console.log(t,"value"),n[t]},$=async()=>{let t=E.value;h.deleteType=="plugin"&&(t=x.value);const n={bnid:t,size:999,page:1,"business-type":V},{code:o,data:N}=await l(n);o===0&&((N.data||[]).forEach(P=>{P.name=="workflow"&&(v.value=P.data),P.name=="agent"&&(C.value=P.data)}),C.value.length||(A.value="2"))},I=e.ref("");let V="",w=null;e.onMounted(()=>{const t=Y(h.deleteType);I.value=t.desc||"",V=t.code||"",w=t.deleteFn||null});const x=e.ref(""),K=(t,n="")=>{E.value=t,x.value=n,g(),$()},G=async()=>{if(!w)return;const t=await w();t&&t.code==0?(r.ElMessage({message:i("COMPONENTS_OUTER_SPHERE.DELETE_DATA_SUCCESS",{name:I.value}),type:"success"}),k("success"),y()):r.ElMessage({message:i("COMPONENTS_OUTER_SPHERE.DELETE_DATA_FAILED",{name:I.value}),type:"error"})},H=t=>{L.push({name:"AgentDetail",params:{bnid:t.skillet}})},b=t=>{L.push({name:"Workflow",params:{workflowBnid:t.skillet}})},q=()=>{},y=()=>{D(),E.value="",C.value=[],v.value=[]};return u({showDeleteDialog:K,hideDeleteDialog:y}),(t,n)=>(e.openBlock(),e.createBlock(e.unref(S.DialogContainer),{title:s.title||e.unref(i)("COMPONENTS_OUTER_SPHERE.CONFIRM_DELETE",{deleteTypeStr:I.value}),width:"520px",ref_key:"dialogRef",ref:c},{footer:e.withCtx(()=>[e.createElementVNode("div",Te,[e.createVNode(e.unref(r.ElButton),{onClick:y,plain:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)("COMMON_BUTTON.CANCEL_TEXT")),1)]),_:1}),e.createVNode(e.unref(r.ElButton),{type:"danger",onClick:G},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)("COMMON_BUTTON.CONFIRM_AFFIRM")),1)]),_:1})])]),default:e.withCtx(()=>[e.createElementVNode("div",ge,[e.createVNode(e.unref(r.ElIcon),{class:"warning-icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(B.IconWarn))]),_:1}),e.createElementVNode("div",Ne,[e.createElementVNode("div",Ce,[e.createTextVNode(e.toDisplayString(e.unref(i)("COMPONENTS_OUTER_SPHERE.HISTORY_REFERENCE",{deleteTypeStr:I.value}))+" ",1),e.createElementVNode("span",ve,e.toDisplayString(e.unref(i)("PLUGINLIST.CAUTION")),1)]),C.value.length||v.value.length?(e.openBlock(),e.createElementBlock("div",De,e.toDisplayString(e.unref(i)("PLUGINLIST.CAUTION_INFO")),1)):e.createCommentVNode("",!0),n[1]||(n[1]=e.createElementVNode("div",null,null,-1))])]),C.value.length||v.value.length?(e.openBlock(),e.createElementBlock("div",Re,[e.createVNode(Q,{modelValue:A.value,"onUpdate:modelValue":n[0]||(n[0]=o=>A.value=o),tabList:a.value,onChange:q},null,8,["modelValue","tabList"]),A.value=="1"?(e.openBlock(),e.createElementBlock("div",Ae,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.value,o=>(e.openBlock(),e.createElementBlock("div",{class:"resource-item",key:o.resource,onClick:N=>H(o)},[n[2]||(n[2]=e.createElementVNode("div",{class:"flow-name__icon-placeholder"},null,-1)),e.createElementVNode("div",Be,e.toDisplayString(o.name),1),e.createVNode(e.unref(r.ElIcon),null,{default:e.withCtx(()=>[e.createVNode(e.unref(B.IconGoto3))]),_:1})],8,Ie))),128))])):e.createCommentVNode("",!0),A.value=="2"?(e.openBlock(),e.createElementBlock("div",ke,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,o=>(e.openBlock(),e.createElementBlock("div",{class:"resource-item",key:o.resource,onClick:N=>b(o)},[e.createVNode(e.unref(r.ElIcon),{size:"32px"},{default:e.withCtx(()=>[e.createVNode(e.unref(B.Workflow))]),_:1}),e.createElementVNode("div",ye,e.toDisplayString(o.name),1),e.createVNode(e.unref(r.ElIcon),null,{default:e.withCtx(()=>[e.createVNode(e.unref(B.IconGoto3))]),_:1})],8,we))),128))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),_:1},8,["title"]))}},J=F._export_sfc(he,[["__scopeId","data-v-047a5991"]]),Ve={class:"dialog-footer"},xe={__name:"AddOrEditSupplierDialog",props:{showDeleteButton:{type:Boolean,default:!0}},emits:["submit","success"],setup(s,{expose:u,emit:O}){const{t:l}=j.useI18n(),{addModel:m,updateModel:M}=W(),p=e.ref(null),_=e.ref([]),R=e.ref(!1),f=e.ref(!1),{dialogRef:i,hideDialog:L,resetDialog:c}=S.useDialog(f),g=e.ref(!1),D=e.ref(""),h=e.computed(()=>g.value?l("COMMON_MODEL_LIBRARY.EDIT_MODEL"):l("COMMON_MODEL_LIBRARY.ADD_MODEL")),k=e.ref(""),a=e.reactive({name:"",code:"",type:"",description:"",apiKey:"",apiUrl:"",bnid:null,maxTokens:2e6,contextLength:2e6,icon:"0",avatarUrl:""}),A=[{label:l("COMMON_MODEL_LIBRARY.MODEL_TYPE_LARGE_LANGUAGE_MODEL"),value:"llm"},{label:l("COMMON_MODEL_LIBRARY.MODEL_TYPE_MULTIMODAL_MODEL"),value:"multimodal"},{label:l("COMMON_MODEL_LIBRARY.MODEL_TYPE_EMBEDDING_MODEL"),value:"embedding"},{label:l("COMMON_MODEL_LIBRARY.MODEL_TYPE_RERANK_MODEL"),value:"rerank"}],E=e.ref(!a.bnid),C={name:[{required:!0,message:l("COMMON_MODEL_LIBRARY.MODEL_NAME_REQUIRED"),trigger:"blur"},{max:64,message:l("COMMON_MODEL_LIBRARY.MODEL_NAME_MAX_LENGTH"),trigger:"blur"},{validator:(t,n,o)=>{n&&/\s/.test(n)?o(new Error(l("COMMON_MODEL_LIBRARY.MODEL_NAME_NO_SPACE"))):o()},trigger:"blur"}],code:[{required:!0,message:l("COMMON_MODEL_LIBRARY.MODEL_CODE_REQUIRED"),trigger:"blur"},{max:64,message:l("COMMON_MODEL_LIBRARY.MODEL_CODE_MAX_LENGTH"),trigger:"blur"},{validator:(t,n,o)=>{n&&/\s/.test(n)?o(new Error(l("COMMON_MODEL_LIBRARY.MODEL_CODE_NO_SPACE"))):o()},trigger:"blur"}],type:[{required:!0,message:l("COMMON_MODEL_LIBRARY.MODEL_TYPE_PLACEHOLDER"),trigger:"change"}],maxTokens:[{required:!0,message:l("COMMON_MODEL_LIBRARY.MAX_TOKENS_PLACEHOLDER"),trigger:"blur"}],contextLength:[{required:!0,message:l("COMMON_MODEL_LIBRARY.CONTEXT_LENGTH_PLACEHOLDER"),trigger:"blur"}],apiKey:[{required:!0,message:l("COMMON_MODEL_LIBRARY.API_KEY_REQUIRED"),trigger:"blur"}],apiUrl:[{required:!0,message:l("COMMON_MODEL_LIBRARY.API_URL_REQUIRED"),trigger:"blur"},{validator:(t,n,o)=>{if(!n){o();return}try{const N=new URL(n);if(N.protocol!=="http:"&&N.protocol!=="https:"){o(new Error(l("COMMON_MODEL_LIBRARY.API_URL_INVALID")));return}o()}catch{o(new Error(l("COMMON_MODEL_LIBRARY.API_URL_INVALID_DESC")))}},trigger:"blur"}]},v=O,Y=(t=null)=>{console.log("data:",t),Object.assign(a,{name:"",code:"",type:"",description:"",maxTokens:2e6,contextLength:2e6,supplier:"",apiKey:"",apiUrl:"",bnid:null,avatarUrl:"",icon:"0"}),D.value=t?.rowData?.bnid||"",t?.rowData?(console.log("rowData:",t.rowData),t.rowData.apiKey||(R.value=!0),Object.assign(a,t.rowData),k.value=t.rowData.apiUrl||""):k.value="",_.value=[],t?(a.supplier=t.supplier||"",g.value=t.isEditDialog??!1,t.rowData?.icon&&t.rowData.icon!=="0"&&t.rowData?.avatarUrl&&(_.value=[{bnid:t.rowData.icon,url:t.rowData.avatarUrl}])):g.value=!1,i.value?.showDialog()},$=t=>{t>2e9?a.maxTokens=2e9:a.maxTokens=t},I=t=>{t>2e9?a.contextLength=2e9:a.contextLength=t},V=async()=>{p.value&&await p.value.validate(async t=>{if(t){f.value=!0;const n=2e9;let o=Number(a.maxTokens),N=Number(a.contextLength);o=Math.min(o,n),N=Math.min(N,n);const X={name:a.name,code:a.code,icon:a.icon,type:a.type,description:a.description,maxTokens:o,contextLength:N,apiKey:a.apiKey,apiUrl:a.apiUrl};g.value?await x(X):w(X)}else r.ElMessage.error(l("COMMON_MODEL_LIBRARY.REQUIRED"))})},w=async t=>{try{console.log(t),(await m(t)).code===0&&(r.ElMessage.success(l("COMMON_MODEL_LIBRARY.CREATE_MODEL_SUCCESS")),L(),v("submit"))}finally{f.value=!1}},x=async t=>{console.log("更新模型formData:",t);try{(await M(D.value,t)).code===0&&(r.ElMessage.success(l("COMMON_MODEL_LIBRARY.UPDATE_MODEL_SUCCESS")),L())}finally{f.value=!1}},K=()=>{E.value=!E.value},G=t=>{a.avatarUrl=t.url,a.icon=t.bnid,_.value=[t]},H=()=>{a.icon="0",_.value=[]},b=e.ref(null),q=()=>{b.value.showDeleteDialog(D.value)},y=()=>{L(),v("success")};return u({showDialog:Y,hideDialog:L}),(t,n)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.unref(S.DialogContainer),{class:"custom-model-dialog",ref_key:"dialogRef",ref:i,title:h.value,width:"520px",onClosed:e.unref(c)},{footer:e.withCtx(()=>[e.createElementVNode("div",Ve,[g.value&&s.showDeleteButton?(e.openBlock(),e.createBlock(e.unref(r.ElButton),{key:0,style:{float:"left"},type:"danger",onClick:q},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)("COMMON_BUTTON.DELETE_TEXT")),1)]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.unref(r.ElButton),{onClick:e.unref(L),plain:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)("COMMON_BUTTON.CANCEL_TEXT")),1)]),_:1},8,["onClick"]),e.createVNode(e.unref(r.ElButton),{type:"primary",loading:f.value,onClick:V,disabled:f.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(f.value?e.unref(l)("COMMON_MODEL_LIBRARY.VALIDATION_LOADING"):e.unref(l)("COMMON_BUTTON.CONFIRM_TEXT")),1)]),_:1},8,["loading","disabled"])])]),default:e.withCtx(()=>[e.createVNode(e.unref(r.ElForm),{ref_key:"formRef",ref:p,model:a,rules:C,"label-width":"auto",class:"vertical-form"},{default:e.withCtx(()=>[e.createVNode(e.unref(r.ElFormItem),{label:e.unref(l)("COMMON_MODEL_LIBRARY.MODEL_NAME"),prop:"name"},{default:e.withCtx(()=>[e.createVNode(e.unref(r.ElInput),{modelValue:a.name,"onUpdate:modelValue":n[0]||(n[0]=o=>a.name=o),placeholder:e.unref(l)("COMMON_MODEL_LIBRARY.MODEL_NAME_PLACEHOLDER"),maxlength:64},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(e.unref(r.ElFormItem),{label:e.unref(l)("COMMON_MODEL_LIBRARY.MODEL_CODE"),prop:"code"},{default:e.withCtx(()=>[e.createVNode(e.unref(r.ElInput),{modelValue:a.code,"onUpdate:modelValue":n[1]||(n[1]=o=>a.code=o),placeholder:e.unref(l)("COMMON_MODEL_LIBRARY.MODEL_CODE_PLACEHOLDER"),maxlength:64},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(e.unref(r.ElFormItem),{label:e.unref(l)("COMMON_MODEL_LIBRARY.MODEL_AVATAR_URL"),prop:"avatarUrl"},{default:e.withCtx(()=>[e.createVNode(z,{fileList:_.value,previewType:"Card",onOnRemove:H},{CardUploader:e.withCtx(()=>[_.value.length===0?(e.openBlock(),e.createBlock(e.unref(U.FileUploader),{key:0,limitSize:5,acceptType:".jpg,.png",defaultUploadIcon:"model",onOnSuccess:G,businessType:"model"})):e.createCommentVNode("",!0)]),_:1},8,["fileList"])]),_:1},8,["label"]),e.createVNode(e.unref(r.ElFormItem),{label:e.unref(l)("COMMON_MODEL_LIBRARY.MODEL_TYPE"),prop:"type"},{default:e.withCtx(()=>[e.createVNode(e.unref(r.ElSelect),{modelValue:a.type,"onUpdate:modelValue":n[2]||(n[2]=o=>a.type=o),placeholder:e.unref(l)("COMMON_MODEL_LIBRARY.MODEL_TYPE_PLACEHOLDER"),style:{width:"100%"}},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(A,o=>e.createVNode(e.unref(r.ElOption),{key:o.value,label:o.label,value:o.value},null,8,["label","value"])),64))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(e.unref(r.ElFormItem),{label:e.unref(l)("COMMON_MODEL_LIBRARY.MODEL_DESCRIPTION"),prop:"description"},{default:e.withCtx(()=>[e.createVNode(e.unref(r.ElInput),{modelValue:a.description,"onUpdate:modelValue":n[3]||(n[3]=o=>a.description=o),type:"textarea",placeholder:e.unref(l)("COMMON_MODEL_LIBRARY.MODEL_DESCRIPTION_PLACEHOLDER"),maxlength:200,autosize:{minRows:2,maxRows:6},"show-word-limit":""},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(e.unref(r.ElFormItem),{label:e.unref(l)("COMMON_MODEL_LIBRARY.MAX_TOKENS"),prop:"maxTokens"},{default:e.withCtx(()=>[e.createVNode(e.unref(r.ElInput),{modelValue:a.maxTokens,"onUpdate:modelValue":n[4]||(n[4]=o=>a.maxTokens=o),placeholder:e.unref(l)("COMMON_MODEL_LIBRARY.MAX_TOKENS_PLACEHOLDER"),onInput:$},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(e.unref(r.ElFormItem),{label:e.unref(l)("COMMON_MODEL_LIBRARY.CONTEXT_LENGTH"),prop:"contextLength"},{default:e.withCtx(()=>[e.createVNode(e.unref(r.ElInput),{modelValue:a.contextLength,"onUpdate:modelValue":n[5]||(n[5]=o=>a.contextLength=o),placeholder:e.unref(l)("COMMON_MODEL_LIBRARY.CONTEXT_LENGTH_PLACEHOLDER"),onInput:I},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(e.unref(r.ElFormItem),{label:e.unref(l)("COMMON_MODEL_LIBRARY.API_KEY"),prop:"apiKey"},{default:e.withCtx(()=>[e.createVNode(e.unref(r.ElInput),{modelValue:a.apiKey,"onUpdate:modelValue":n[6]||(n[6]=o=>a.apiKey=o),placeholder:e.unref(l)("COMMON_MODEL_LIBRARY.API_KEY_PLACEHOLDER"),type:E.value?"text":"password"},{suffix:e.withCtx(()=>[e.createVNode(e.unref(r.ElIcon),{class:"cursor-pointer",onClick:K},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(E.value?"IconLook":"IconHide")))]),_:1})]),_:1},8,["modelValue","placeholder","type"])]),_:1},8,["label"]),e.createVNode(e.unref(r.ElFormItem),{label:e.unref(l)("COMMON_MODEL_LIBRARY.API_URL"),prop:"apiUrl"},{default:e.withCtx(()=>[e.createVNode(e.unref(r.ElInput),{modelValue:a.apiUrl,"onUpdate:modelValue":n[7]||(n[7]=o=>a.apiUrl=o),placeholder:e.unref(l)("COMMON_MODEL_LIBRARY.API_URL_PLACEHOLDER"),disabled:!!k.value},null,8,["modelValue","placeholder","disabled"])]),_:1},8,["label"])]),_:1},8,["model"])]),_:1},8,["title","onClosed"]),e.createVNode(J,{ref_key:"deleteResourceDialog",ref:b,deleteType:"model",onSuccess:y},null,512)],64))}},be=F._export_sfc(xe,[["__scopeId","data-v-ed4f0da0"]]),Z=ee.withInstall(be);exports.downloadBlobFile=d.downloadBlobFile;exports.getFilesApis=d.getFilesApis;exports.isAudioFile=d.isAudioFile;exports.isExcelFile=d.isExcelFile;exports.isHtmlFile=d.isHtmlFile;exports.isImageLink=d.isImageLink;exports.isJsonFile=d.isJsonFile;exports.isMdFile=d.isMdFile;exports.isPdfFile=d.isPdfFile;exports.isPptFile=d.isPptFile;exports.isText=d.isText;exports.isVideoFile=d.isVideoFile;exports.isWordFile=d.isWordFile;exports.isZipFile=d.isZipFile;exports.uploadUrl=d.uploadUrl;exports.AddOrEditSupplierDialog=Z;exports.AiboxTabs=Q;exports.DeleteResourceDialog=J;exports.FilePreview=z;exports.default=Z;
|
package/lib/ApplicationIcon.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const p=require("./chunks/index.CkihWzK6.js"),e=require("vue"),c=require("color-message-aibox-vue"),o=require("./chunks/config.4W9n_uQg.js"),l=require("element-plus"),E=require("./chunks/mcp-tool.fb1SS2wA.js"),T=Object.assign({name:"ApplicationIcon"},{__name:"layout",props:{row:{type:Object,required:!0},size:{type:Number,default:48},applicationType:{type:String,default:o.SOURCE_TYPE.AGENT},iconField:{type:String,default:"icon"}},setup(n){const t=n,r=e.computed(()=>{const i=t.row?.[t.iconField];if(i)return i;if(t.applicationType===o.SOURCE_TYPE.MCP)return E.mcpToolIcon}),a=e.computed(()=>t.applicationType===o.SOURCE_TYPE.AGENT?{[o.APPLICATION_TYPE.autonomous]:c.WorkflowIcon1,[o.APPLICATION_TYPE.dialogue]:c.WorkflowIcon3}[t.row?.type]:{[o.SOURCE_TYPE.WORKFLOW]:c.Workflow,[o.SOURCE_TYPE.PLUGIN]:c.Plugin,[o.SOURCE_TYPE.MODEL]:c.Model}[t.applicationType]);return(i,s)=>(e.openBlock(),e.createElementBlock("div",null,[r.value?(e.openBlock(),e.createBlock(e.unref(l.ElImage),{key:0,style:e.normalizeStyle({width:n.size+"px",height:n.size+"px"}),src:r.value,fit:"cover",class:"radius-8"},{error:e.withCtx(()=>[e.createVNode(e.unref(l.ElIcon),{size:n.size},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a.value)))]),_:1},8,["size"])]),_:1},8,["style","src"])):(e.openBlock(),e.createBlock(e.unref(l.ElIcon),{key:1,size:n.size},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a.value)))]),_:1},8,["size"]))]))}}),u=p.withInstall(T);exports.APPLICATION_TYPE=o.APPLICATION_TYPE;exports.SOURCE_TYPE=o.SOURCE_TYPE;exports.ApplicationIcon=u;exports.default=u;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require('./assets/AuthSection.css');const C=require("./chunks/index.CkihWzK6.js"),e=require("vue"),d=require("./RadioGroup.js"),n=require("element-plus"),f=require("./chunks/i18n.D3L1FBDI.js"),m=require("color-message-aibox-vue"),L=require("./chunks/_plugin-vue_export-helper.BHFhmbuH.js"),V={class:"auth-section"},M={key:2,class:"auth-input-field"},k={class:"field-label"},I={key:3,class:"auth-input-field"},S={class:"field-label"},B={__name:"AuthSection",props:e.mergeModels({layout:{type:String,default:"horizontal"}},{featData:{default:()=>({auth:{}})},featDataModifiers:{}}),emits:e.mergeModels(["auth-validation-errors","resetDebugStatus"],["update:featData"]),setup(i,{expose:h,emit:T}){const{t}=f.useI18n(),a=e.useModel(i,"featData"),c=T,s=()=>{c("resetDebugStatus")},N=[{value:"none",label:t("COMMON_AUTHSECTION.LABEL_NO_AUTH")},{value:"apiKey",label:t("COMMON_AUTHSECTION.LABEL_API_KEY")}],O=[{value:"bearer",label:t("COMMON_AUTHSECTION.LABEL_BEARER")},{value:"custom",label:t("COMMON_AUTHSECTION.LABEL_CUSTOM")}],y=[{value:"header",label:t("COMMON_AUTHSECTION.LABEL_KEY_LOCATION_HEADER")},{value:"query",label:t("COMMON_AUTHSECTION.LABEL_KEY_LOCATION_QUERY")}],v=r=>{s(),u.value={},r==="apiKey"?a.value.auth={authType:"apiKey",keyType:"custom",paramLocation:"header",paramName:"",paramValue:"",token:""}:a.value.auth={authType:"none"}},_=r=>{s(),u.value={},r==="bearer"?(a.value.auth.paramName="",a.value.auth.paramValue=""):r==="custom"&&(a.value.auth.token="")},A=r=>{console.log(r,"value"),s(),u.value={},r==="query"&&(a.value.auth.token="",a.value.auth.keyType="custom")},u=e.ref({}),p=()=>(s(),u.value={},a.value.auth.authType==="apiKey"&&(a.value.auth.keyType==="custom"&&(a.value.auth.paramName||(u.value.paramName=!0)),a.value.auth.keyType==="custom"&&(a.value.auth.paramValue||(u.value.paramValue=!0)),a.value.auth.keyType==="bearer"&&(a.value.auth.token||(u.value.token=!0))),u.value);return e.watch(()=>u.value,()=>{c("auth-validation-errors",u.value)}),h({validateField:p}),(r,l)=>(e.openBlock(),e.createElementBlock("div",V,[e.createVNode(e.unref(d.RadioGroup),{modelValue:a.value.auth.authType,"onUpdate:modelValue":l[0]||(l[0]=o=>a.value.auth.authType=o),options:N,label:e.unref(t)("COMMON_AUTHSECTION.LABEL_AUTH_TYPE"),required:!0,className:"auth-radio-group",layout:i.layout,onChange:v},null,8,["modelValue","label","layout"]),a.value.auth.authType==="apiKey"?(e.openBlock(),e.createBlock(e.unref(d.RadioGroup),{key:0,modelValue:a.value.auth.paramLocation,"onUpdate:modelValue":l[1]||(l[1]=o=>a.value.auth.paramLocation=o),options:y,label:e.unref(t)("COMMON_AUTHSECTION.LABEL_KEY_LOCATION"),"tip-text":e.unref(t)("COMMON_AUTHSECTION.LABEL_KEY_LOCATION_TIP"),required:!0,className:"location-radio-group",layout:i.layout,onChange:A},null,8,["modelValue","label","tip-text","layout"])):e.createCommentVNode("",!0),a.value.auth.authType==="apiKey"&&a.value.auth.paramLocation==="header"?(e.openBlock(),e.createBlock(e.unref(d.RadioGroup),{key:1,modelValue:a.value.auth.keyType,"onUpdate:modelValue":l[2]||(l[2]=o=>a.value.auth.keyType=o),options:O,label:e.unref(t)("COMMON_AUTHSECTION.LABEL_KEY_TYPE"),"tip-text":e.unref(t)("COMMON_AUTHSECTION.LABEL_KEY_TYPE_TIP"),required:!0,className:"key-radio-group",layout:i.layout,onChange:_},null,8,["modelValue","label","tip-text","layout"])):e.createCommentVNode("",!0),a.value.auth.authType==="apiKey"&&a.value.auth.keyType==="custom"?(e.openBlock(),e.createElementBlock("div",M,[e.createElementVNode("div",k,[l[6]||(l[6]=e.createElementVNode("span",{class:"required"},"*",-1)),e.createTextVNode(" "+e.toDisplayString(e.unref(t)("COMMON_AUTHSECTION.LABEL_KEY_NAME"))+" ",1),e.createVNode(e.unref(n.ElTooltip),{content:e.unref(t)("COMMON_AUTHSECTION.LABEL_KEY_NAME_TIP"),placement:"top"},{default:e.withCtx(()=>[e.createVNode(e.unref(n.ElIcon),{style:{"margin-left":"4px"},size:"14px",color:"#999"},{default:e.withCtx(()=>[e.createVNode(e.unref(m.IconTip))]),_:1})]),_:1},8,["content"])]),e.createVNode(e.unref(n.ElInput),{modelValue:a.value.auth.paramName,"onUpdate:modelValue":l[3]||(l[3]=o=>a.value.auth.paramName=o),placeholder:e.unref(t)("COMMON_AUTHSECTION.LABEL_KEY_NAME_PLACEHOLDER"),maxlength:"64","show-word-limit":"",class:e.normalizeClass(["key-input",{"error-input":u.value.paramName}]),onBlur:p},null,8,["modelValue","placeholder","class"])])):e.createCommentVNode("",!0),a.value.auth.authType==="apiKey"?(e.openBlock(),e.createElementBlock("div",I,[e.createElementVNode("div",S,[l[7]||(l[7]=e.createElementVNode("span",{class:"required"},"*",-1)),e.createTextVNode(" "+e.toDisplayString(e.unref(t)("COMMON_AUTHSECTION.LABEL_KEY_VALUE"))+" ",1),e.createVNode(e.unref(n.ElTooltip),{content:e.unref(t)("COMMON_AUTHSECTION.LABEL_KEY_VALUE_TIP"),placement:"top"},{default:e.withCtx(()=>[e.createVNode(e.unref(n.ElIcon),{style:{"margin-left":"4px"},size:"14px",color:"#999"},{default:e.withCtx(()=>[e.createVNode(e.unref(m.IconTip))]),_:1})]),_:1},8,["content"])]),e.withDirectives(e.createVNode(e.unref(n.ElInput),{modelValue:a.value.auth.paramValue,"onUpdate:modelValue":l[4]||(l[4]=o=>a.value.auth.paramValue=o),placeholder:e.unref(t)("COMMON_AUTHSECTION.LABEL_KEY_VALUE_PLACEHOLDER"),maxlength:"20000","show-word-limit":"",class:e.normalizeClass(["key-input",{"error-input":u.value.paramValue}]),onBlur:p},null,8,["modelValue","placeholder","class"]),[[e.vShow,a.value.auth.keyType==="custom"]]),e.withDirectives(e.createVNode(e.unref(n.ElInput),{modelValue:a.value.auth.token,"onUpdate:modelValue":l[5]||(l[5]=o=>a.value.auth.token=o),placeholder:e.unref(t)("COMMON_AUTHSECTION.LABEL_KEY_VALUE_PLACEHOLDER"),maxlength:"20000","show-word-limit":"",class:e.normalizeClass(["key-input",{"error-input":u.value.token}]),onBlur:p},null,8,["modelValue","placeholder","class"]),[[e.vShow,a.value.auth.keyType==="bearer"]])])):e.createCommentVNode("",!0)]))}},U=L._export_sfc(B,[["__scopeId","data-v-ce4d7772"]]),E=C.withInstall(U);exports.AuthSection=E;exports.default=E;
|
package/lib/CodeView.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require('./assets/CodeView.css');const w=require("./chunks/index.CkihWzK6.js"),o=require("vue"),S=require("vue-codemirror"),f=require("@codemirror/view"),g=require("@codemirror/lang-json"),_=require("@codemirror/theme-one-dark"),E=require("@codemirror/language"),O=require("color-message-aibox-vue"),V=require("copy-to-clipboard"),b=require("./chunks/i18n.D3L1FBDI.js"),k=require("./chunks/_plugin-vue_export-helper.BHFhmbuH.js"),B={__name:"index",props:{code:{type:String,default:""},language:{type:String,default:"json"},customExpandDepth:{type:Number,default:1/0},sort:{type:Boolean,default:!0},noPadding:{type:Boolean,default:!1},theme:{type:String,default:"light"},showLength:{type:Boolean,default:!1},maxHeight:{type:String,default:"calc(100vh - 125px)"},showCopy:{type:Boolean,default:!1},enableFolding:{type:Boolean,default:!1}},setup(s){const{t:u}=b.useI18n(),a=s,i=o.ref(""),d={json:()=>g.json()},m=()=>{const n=a.language.toLowerCase();return d[n]?d[n]():g.json()},p=o.shallowRef([]),h=n=>{const r=n.trim(),l=t=>{try{return JSON.parse(t)}catch{return null}};let e=null;if((r.startsWith("{")||r.startsWith("["))&&(e=l(r)),!e){const t=`{${r.replace(/,\s*$/,"")}}`;e=l(t)}if(e&&typeof e=="object"&&!Array.isArray(e)){const t=e.role;if(t)return"role: "+t}return""},x=()=>{const n=[m(),f.EditorView.editable.of(!1),f.EditorView.lineWrapping];a.enableFolding&&n.push(E.codeFolding({preparePlaceholder:(r,l)=>{try{const e=r.doc.sliceString(l.from,l.to);return h(e)}catch(e){return console.error("Error getting fold preview:",e),"..."}},placeholderDOM:(r,l,e)=>{const t=document.createElement("span");return t.className="cm-foldPlaceholder",t.onclick=l,t.style.cursor="pointer",t.style.color="#888",t.style.padding="0 4px",t.style.borderRadius="3px",t.textContent=e?`${e}...`:"...",t}})),a.theme==="dark"&&n.push(_.oneDark),p.value=n},C=n=>{try{const r=JSON.parse(n);if(a.sort&&typeof r=="object"&&r!==null){const l=e=>Array.isArray(e)?e.map(l):typeof e=="object"&&e!==null?Object.keys(e).sort().reduce((t,c)=>(t[c]=l(e[c]),t),{}):e;return JSON.stringify(l(r),null,2)}return JSON.stringify(r,null,2)}catch{return n}},v=n=>{V(n)?ElMessage({message:u("MESSAGE_REMIND.COPY_SUCCESS"),type:"success"}):ElMessage({message:u("COMMON_STORE_LIBRARY.LABEL_COPY_FAIL"),type:"error"})};return o.watch(()=>a.code,n=>{a.language==="json"?i.value=C(n):i.value=n},{immediate:!0}),o.onMounted(()=>{x()}),(n,r)=>{const l=o.resolveComponent("el-icon"),e=o.resolveComponent("el-scrollbar");return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["code-viewer",{"no-padding":s.noPadding,dark:s.theme==="dark"}])},[s.showCopy?(o.openBlock(),o.createBlock(l,{key:0,onClick:r[0]||(r[0]=t=>v(s.code)),class:"code-viewer__copy",color:"#96A0AB",size:"18px"},{default:o.withCtx(()=>[o.createVNode(o.unref(O.IconCopy1))]),_:1})):o.createCommentVNode("",!0),o.createVNode(e,{"max-height":s.maxHeight},{default:o.withCtx(()=>[o.createVNode(o.unref(S.Codemirror),{modelValue:i.value,"onUpdate:modelValue":r[1]||(r[1]=t=>i.value=t),style:{height:"100%",minHeight:"100px"},extensions:p.value,disabled:!0},null,8,["modelValue","extensions"])]),_:1},8,["max-height"])],2)}}},M=k._export_sfc(B,[["__scopeId","data-v-29ff9bad"]]),y=w.withInstall(M);exports.CodeView=y;exports.default=y;
|
package/lib/CommonTagsList.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require('./assets/CommonTagsList.css');const B=require("./chunks/index.CkihWzK6.js"),e=require("vue"),u=require("element-plus"),y=require("./chunks/i18n.D3L1FBDI.js"),n=require("./chunks/config.
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require('./assets/CommonTagsList.css');const B=require("./chunks/index.CkihWzK6.js"),e=require("vue"),u=require("element-plus"),y=require("./chunks/i18n.D3L1FBDI.js"),n=require("./chunks/config.BvBtwI1A.js"),p=require("./chunks/index.DvGTR2wI.js"),N=require("./chunks/_plugin-vue_export-helper.BHFhmbuH.js"),v={class:"status-tag-content flex items-center"},E={class:"status-text fz-12"},C={__name:"StatusTag",props:{channelStatus:{type:[String,Number],default:null},inActive:{type:[String,Number],default:null},statusText:{type:String,default:null},showIcon:{type:Boolean,default:!1}},setup(a){const i=a,o=e.computed(()=>i.inActive===n.INACTIVE_ENUM.UNPUBLISHED?p.PUBLISH_STATUS.UNPUBLISHED:i.channelStatus),h=e.computed(()=>n.PUBLISH_STATUS_TYPE[o.value]),S=e.computed(()=>n.PUBLISH_STATUS_TEXT[o.value]),r=e.computed(()=>n.PUBLISH_STATUS_ICONS[o.value]),d=e.computed(()=>n.PUBLISH_STATUS_COLORS[o.value]);return(c,t)=>(e.openBlock(),e.createBlock(e.unref(u.ElTag),{type:h.value},{default:e.withCtx(()=>[e.createElementVNode("div",v,[a.showIcon&&r.value?(e.openBlock(),e.createBlock(e.unref(u.ElIcon),{key:0,color:d.value},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.value)))]),_:1},8,["color"])):e.createCommentVNode("",!0),e.createElementVNode("span",E,e.toDisplayString(a.statusText||S.value),1)])]),_:1},8,["type"]))}},f=N._export_sfc(C,[["__scopeId","data-v-6ce5660c"]]),L={class:"common-content w-full overflow-y-auto",style:{"max-height":"200px"}},k={key:0,class:"content-item"},I={class:"content-item-top flex items-center"},b={class:"item-bottom-box mg-l-4 pd-t-8 flex flex-wrap"},U={key:1,class:"icon-placeholder w-full mg-t-4 mg-b-8 bg-e6e8ea",style:{height:"1px"}},A={key:0,class:"all-visible-ranges-section mg-t-12"},x={class:"channel-name fz-12 weight-500 mg-b-4 text-1f2329 flex items-center"},P={key:0,class:"range-separator w-full mg-t-8 mg-b-8 bg-e6e8ea",style:{height:"1px"}},V=Object.assign({name:"CommonTagsList"},{__name:"layout",props:{publishChannelList:{type:Array,default:()=>[]},sourceType:{type:[String,Number],default:null}},setup(a){const{t:i}=y.useI18n(),o=a,h=e.computed(()=>o.publishChannelList||[]),S=e.computed(()=>{if(!o.publishChannelList?.length)return[];const c=o.publishChannelList.reduce((t,s)=>{const m=s.inActive===n.INACTIVE_ENUM.UNPUBLISHED?p.PUBLISH_STATUS.UNPUBLISHED:s.channelStatus;return t[m]||(t[m]=[]),t[m].push(s),t},{});return Object.entries(c).map(([t,s])=>({status:parseInt(t),channels:s})).sort((t,s)=>s.status-t.status)}),r=e.computed(()=>{if(!o.publishChannelList?.length)return[];const c=i("COMMON_TAGS_LIST.UNKNOWN_CHANNEL");return o.publishChannelList.filter(t=>t.visibleScope&&t.visibleScope.length>0).map(t=>({channelName:n.RELEASE_CHANNEL_CONFIG[t.channelType]?.name(o.sourceType)||c,channelType:t.channelType,visibleScope:t.visibleScope,allVisible:t.allVisible}))}),d=c=>{const t=n.PUBLISH_TYPE_ICON_MAPPING[c];return n.CHANNEL_ICON_CONFIG[t]};return(c,t)=>(e.openBlock(),e.createElementBlock("div",{class:"commont-status-box",onClick:t[0]||(t[0]=e.withModifiers(()=>{},["stop"]))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,(s,m)=>(e.openBlock(),e.createBlock(e.unref(u.ElPopover),{key:m,placement:"bottom",trigger:"click",width:"300"},{reference:e.withCtx(()=>[e.createVNode(f,{"channel-status":s.channelStatus,"in-active":s.inActive,"status-text":e.unref(n.RELEASE_CHANNEL_CONFIG)?.[s.channelType]?.name(a.sourceType),"show-icon":!0,class:"mg-r-4 mg-b-4"},null,8,["channel-status","in-active","status-text"])]),default:e.withCtx(()=>[e.createElementVNode("div",L,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(S.value,(l,_)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:l.status},[l.channels.length>0?(e.openBlock(),e.createElementBlock("div",k,[e.createElementVNode("div",I,[e.createVNode(e.unref(u.ElIcon),{style:e.normalizeStyle({color:e.unref(n.PUBLISH_STATUS_COLORS)[l.status]})},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(n.PUBLISH_STATUS_ICONS)[l.status])))]),_:2},1032,["style"]),e.createElementVNode("div",{class:"content-item-name fz-14 mg-l-4",style:e.normalizeStyle({color:e.unref(n.PUBLISH_STATUS_COLORS)[l.status]})},e.toDisplayString(e.unref(n.PUBLISH_STATUS_TEXT)[l.status])+"("+e.toDisplayString(l.channels.length)+") ",5)]),e.createElementVNode("div",b,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.channels,T=>(e.openBlock(),e.createElementBlock("div",{class:"b-item-box mg-r-8 radius-4 fz-12 pd-t-4 pd-b-4 pd-l-8 pd-r-8 mg-b-8 text-1f2329 bg-f5f6f7",key:T.channelType},e.toDisplayString(e.unref(n.RELEASE_CHANNEL_CONFIG)?.[T.channelType]?.name(a.sourceType)),1))),128))])])):e.createCommentVNode("",!0),_<S.value.length-1?(e.openBlock(),e.createElementBlock("div",U)):e.createCommentVNode("",!0)],64))),128)),r.value.length>0?(e.openBlock(),e.createElementBlock("div",A,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,(l,_)=>(e.openBlock(),e.createElementBlock("div",{key:l.channelType,class:"channel-visible-range"},[e.createElementVNode("div",x,[e.createVNode(e.unref(u.ElIcon),{class:"mg-r-2",size:"14",color:d(l.channelType)?.iconColor},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(d(l.channelType)?.icon)))]),_:2},1032,["color"]),e.createTextVNode(" "+e.toDisplayString(l.channelName)+" "+e.toDisplayString(e.unref(i)("COMMON_TAGS_LIST.AVAILABLE_SCOPE")),1)]),e.createVNode(e.unref(p.AvailableRangePreview),{"all-visible":l.allVisible,"model-value":l.visibleScope,"tree-list":[],readonly:!0},null,8,["all-visible","model-value"]),_<r.value.length-1?(e.openBlock(),e.createElementBlock("div",P)):e.createCommentVNode("",!0)]))),128))])):e.createCommentVNode("",!0)])]),_:2},1024))),128)),a.publishChannelList?.length?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(u.ElTag),{key:0,type:e.unref(n.PUBLISH_STATUS_TYPE)[e.unref(p.PUBLISH_STATUS).UNPUBLISHED]},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n.PUBLISH_STATUS_TEXT)[e.unref(p.PUBLISH_STATUS).UNPUBLISHED]),1)]),_:1},8,["type"]))]))}}),g=B.withInstall(V);exports.CommonTagsList=g;exports.StatusTag=f;exports.default=g;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require('./assets/CreateMcpForm.css');const I=require("./chunks/index.CkihWzK6.js"),e=require("vue"),n=require("element-plus"),R=require("color-message-aibox-vue"),A=require("./chunks/usePreview.BzTCNJfE.js"),h=require("./AuthSection.js"),y=require("./RadioGroup.js"),N=require("./chunks/i18n.D3L1FBDI.js"),P=require("./AddOrEditSupplierDialog.js"),V=require("./FileUploader.js"),L=require("./chunks/_plugin-vue_export-helper.BHFhmbuH.js"),O={class:"label-with-icon"},F={class:"label-with-icon"},g={class:"auth-section-wrapper"},b={__name:"CreateMcpForm",setup(D,{expose:E}){const{t}=N.useI18n(),{previewImage:d}=A.useDownloadPrew(),s=e.ref(null),c=e.ref(null),o=e.reactive({icon:"",iconUrl:"",name:"",description:"",communicationType:"HTTP",address:"",applyLink:""}),_=e.ref([{label:"SSE",value:"SSE"},{label:"Streamable HTTP",value:"HTTP"}]),a=e.reactive({auth:{authType:"none",keyType:"custom",paramLocation:"header",paramName:"",paramValue:"",token:""}}),C=e.ref({name:[{required:!0,message:t("LIBRARY_CREATEMCPFORM.MCP_NAME_PLACEHOLDER"),trigger:"blur"},{max:20,message:t("LIBRARY_CREATEMCPFORM.MCP_NAME_MAX"),trigger:"blur"}],description:[{required:!0,message:t("LIBRARY_CREATEMCPFORM.MCP_DESCRIPTION_REQUIRED"),trigger:"blur"},{max:200,message:t("LIBRARY_CREATEMCPFORM.MCP_DESCRIPTION_MAX"),trigger:"blur"}],address:[{type:"url",required:!0,message:t("LIBRARY_CREATEMCPFORM.SERVICE_URL_INVALID"),trigger:["blur","change"]}],communicationType:[{required:!0,message:t("LIBRARY_CREATEMCPFORM.TRANSFER_METHOD_REQUIRED"),trigger:"change"}],applyLink:[{type:"url",message:t("LIBRARY_CREATEMCPFORM.DOCUMENTATION_URL_INVALID"),trigger:["blur","change"]}]}),u=e.ref([]),M=r=>{o.iconUrl=r.url,o.icon=r.bnid,u.value=[r]},T=()=>{o.iconUrl="",o.icon="",u.value=[]},f=r=>{d(r.url)};return E({validate:async r=>{if(!s.value)return!1;if(c.value?.validateField){const l=c.value.validateField();if(Object.keys(l).length>0)return l.paramName?n.ElMessage.error(t("LIBRARY_CREATEMCPFORM.PARAMETER_NAME_REQUIRED")||"请输入密钥参数名"):l.paramValue||l.token?n.ElMessage.error(t("LIBRARY_CREATEMCPFORM.INPUT_API_KEY_REQUIRED")||"请输入密钥值"):n.ElMessage.error(t("LIBRARY_CREATEMCPFORM.MCP_AUTH_REQUIRED")||"请完善鉴权信息"),r?.(new Error(t("LIBRARY_CREATEMCPFORM.MCP_AUTH_REQUIRED")||"请完善鉴权信息")),!1}return s.value.validate(r)},getFormData:()=>({name:o.name,icon:o.icon,description:o.description,address:o.address,communicationType:o.communicationType,authType:a.auth.authType==="none"?0:1,authLocation:a.auth.paramLocation==="header"?0:1,apiKeyName:a.auth.keyType==="bearer"?"Authorization":a.auth.paramName||"",apiKeyValue:a.auth.keyType==="bearer"?a.auth.token?`Bearer ${a.auth.token}`:"":a.auth.paramValue||"",applyLink:o.applyLink||"",headerPrefixType:1,overview:""}),setFormData:r=>{if(!r)return;Object.assign(o,{name:r.name||"",description:r.description||"",icon:r.icon||"",iconUrl:r.iconUrl||"",communicationType:r.communicationType||"SSE",address:r.address||"",applyLink:r.applyLink||""});const l=r.authType===1||r.authType==="1";if(a.auth.authType=l?"apiKey":"none",a.auth.paramLocation=r.authLocation===0||r.authLocation==="0"?"header":"query",l){const i=!r.apiKeyName||r.apiKeyName==="Authorization";if(a.auth.keyType=i?"bearer":"custom",i){a.auth.paramName="",a.auth.paramValue="";const p=r.apiKeyValue||"";a.auth.token=p.startsWith("Bearer ")?p.substring(7):p}else a.auth.paramName=r.apiKeyName||"",a.auth.paramValue=r.apiKeyValue||"",a.auth.token=""}else a.auth.keyType="custom",a.auth.paramName="",a.auth.paramValue="",a.auth.token="";r.icon&&r.icon!=="0"&&r.iconUrl&&(u.value=[{bnid:r.icon,url:r.iconUrl}])}}),(r,l)=>(e.openBlock(),e.createBlock(e.unref(n.ElForm),{ref_key:"ruleFormRef",ref:s,model:o,rules:C.value,"label-width":"auto","label-position":"top",class:"scrollable-form"},{default:e.withCtx(()=>[e.createVNode(e.unref(n.ElFormItem),{class:"scrollable-form__item",label:e.unref(t)("LIBRARY_CREATEMCPFORM.MCP_ICON"),prop:"icon"},{label:e.withCtx(()=>[e.createElementVNode("div",O,[e.createElementVNode("span",null,e.toDisplayString(e.unref(t)("LIBRARY_CREATEMCPFORM.MCP_ICON")),1),e.createVNode(e.unref(n.ElTooltip),{placement:"top"},{content:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t)("LIBRARY_CREATEMCPFORM.MCP_ICON_TIP")),1),l[6]||(l[6]=e.createElementVNode("br",null,null,-1)),e.createTextVNode(" "+e.toDisplayString(e.unref(t)("LIBRARY_CREATEMCPFORM.MCP_ICON_SIZE_TIP")),1)]),default:e.withCtx(()=>[e.createVNode(e.unref(n.ElIcon),{size:"14px",color:"#999"},{default:e.withCtx(()=>[e.createVNode(e.unref(R.IconTip))]),_:1})]),_:1})])]),default:e.withCtx(()=>[e.createVNode(e.unref(P.FilePreview),{fileList:u.value,previewType:"Card",isCustom:!0,onOnRemove:T,onOnPreview:f},{CardUploader:e.withCtx(()=>[u.value.length===0?(e.openBlock(),e.createBlock(e.unref(V.FileUploader),{key:0,"upload-type":"Card",onOnSuccess:M,limitSize:5,acceptType:".jpg,.png",businessType:"mcp",defaultUploadIcon:"mcp"})):e.createCommentVNode("",!0)]),_:1},8,["fileList"])]),_:1},8,["label"]),e.createVNode(e.unref(n.ElFormItem),{class:"scrollable-form__item",label:e.unref(t)("LIBRARY_CREATEMCPFORM.MCP_NAME"),prop:"name"},{default:e.withCtx(()=>[e.createVNode(e.unref(n.ElInput),{modelValue:o.name,"onUpdate:modelValue":l[0]||(l[0]=i=>o.name=i),placeholder:e.unref(t)("LIBRARY_CREATEMCPFORM.MCP_NAME_REQUIRED"),maxlength:"20","show-word-limit":""},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(e.unref(n.ElFormItem),{class:"scrollable-form__item",label:e.unref(t)("LIBRARY_CREATEMCPFORM.MCP_DESCRIPTION"),prop:"description"},{default:e.withCtx(()=>[e.createVNode(e.unref(n.ElInput),{modelValue:o.description,"onUpdate:modelValue":l[1]||(l[1]=i=>o.description=i),type:"textarea",rows:3,placeholder:e.unref(t)("LIBRARY_CREATEMCPFORM.MCP_DESCRIPTION_REQUIRED"),maxlength:"200","show-word-limit":""},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(e.unref(n.ElFormItem),{class:"scrollable-form__item",label:e.unref(t)("LIBRARY_CREATEMCPFORM.TRANSFER_METHOD"),prop:"communicationType"},{default:e.withCtx(()=>[e.createVNode(e.unref(y.RadioGroup),{modelValue:o.communicationType,"onUpdate:modelValue":l[2]||(l[2]=i=>o.communicationType=i),options:_.value,layout:"vertical","class-name":"scrollable-form__item-radio"},null,8,["modelValue","options"])]),_:1},8,["label"]),e.createVNode(e.unref(n.ElFormItem),{class:"scrollable-form__item",label:e.unref(t)("LIBRARY_CREATEMCPFORM.SERVICE_URL"),prop:"address"},{default:e.withCtx(()=>[e.createVNode(e.unref(n.ElInput),{modelValue:o.address,"onUpdate:modelValue":l[3]||(l[3]=i=>o.address=i),placeholder:e.unref(t)("LIBRARY_CREATEMCPFORM.SERVICE_URL_REQUIRED")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),a.auth.authType==="apiKey"?(e.openBlock(),e.createBlock(e.unref(n.ElFormItem),{key:0,class:"scrollable-form__item",prop:"applyLink"},{label:e.withCtx(()=>[e.createElementVNode("div",F,[e.createElementVNode("span",null,e.toDisplayString(e.unref(t)("LIBRARY_CREATEMCPFORM.DOCUMENTATION_URL")),1),e.createVNode(e.unref(n.ElTooltip),{placement:"top"},{content:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t)("LIBRARY_CREATEMCPFORM.DOCUMENTATION_URL_TIP")),1)]),default:e.withCtx(()=>[e.createVNode(e.unref(n.ElIcon),{size:"14px",color:"#999"},{default:e.withCtx(()=>[e.createVNode(e.unref(R.IconTip))]),_:1})]),_:1})])]),default:e.withCtx(()=>[e.createVNode(e.unref(n.ElInput),{modelValue:o.applyLink,"onUpdate:modelValue":l[4]||(l[4]=i=>o.applyLink=i),placeholder:e.unref(t)("LIBRARY_CREATEMCPFORM.DOCUMENTATION_URL_REQUIRED")},null,8,["modelValue","placeholder"])]),_:1})):e.createCommentVNode("",!0),e.createElementVNode("div",g,[e.createVNode(e.unref(h.AuthSection),{ref_key:"authSectionRef",ref:c,featData:a,"onUpdate:featData":l[5]||(l[5]=i=>a=i),layout:"vertical"},null,8,["featData"])])]),_:1},8,["model","rules"]))}},U=L._export_sfc(b,[["__scopeId","data-v-a92d9b79"]]),m=I.withInstall(U);exports.CreateMcpForm=m;exports.default=m;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require('./assets/FilePreview.css');const h=require("./chunks/index.CkihWzK6.js"),e=require("vue"),F=require("./chunks/usePreview.BzTCNJfE.js"),P=require("./chunks/_plugin-vue_export-helper.BHFhmbuH.js"),d={卡片:"Card",按钮:"Button",面板:"Panel",自定义:"Custom"},E=t=>/(txt|yaml)/i.test(t),V=t=>/ppt|pptx/i.test(t),D=t=>/pdf/i.test(t);function N(t){return/(docx|doc|msword)/i.test(t)}function S(t){return/(xlsx|xls|sheet|csv)/i.test(t)}function b(t){return/(zip|rar|7z)$/i.test(t)}const p=t=>/(jpe?g|png|bmp|gif|webp|svg|ico)(\?.*)?$/i.test(t),I=t=>/(mp4|avi|rmvb|rm|wmv|flv|3gp|mkv|mov)(\?.*)?$/i.test(t),$=t=>/(mp3|wav|wma|aac|flac)(\?.*)?$/i.test(t),T=t=>/(md|markdown)/i.test(t),z=t=>/(html|htm|xhtml|xml)/i.test(t),L=t=>/(json)/i.test(t),U=t=>{if(D(t.suffix))return"Pdf1";if(N(t.suffix))return"Doc";if(S(t.suffix))return"Excel1";if(I(t.suffix))return"Video";if($(t.suffix))return"Music";if(V(t.suffix))return"Ppt1";if(T(t.suffix))return"Md";if(z(t.suffix))return"Html";if(E(t.suffix))return"Txt1";if(L(t.suffix))return"Other";if(b(t.suffix))return"Other";if(p(t.suffix))return"Pic"},H={class:"file-preview-wrapper"},M={key:0,class:"panel-preview"},q={class:"panel-preview__item"},j=["onClick"],O=["src","alt"],A={class:"panel-preview__name ellipsis"},J={key:0},W={key:1},Z={key:1,class:"upload-preview"},G=["src","alt"],K={class:"preview-item__mask"},Q={__name:"index",props:{fileList:{type:Array,default:()=>[]},canEdit:{type:Boolean,default:!0},previewType:{type:String,default:d.面板},isStream:{type:Boolean,default:!1},isCustom:{type:Boolean,default:!1},onDownload:{type:Function,default:null},onDownloadStream:{type:Function,default:null},onPreviewImage:{type:Function,default:null},downloadBlobFile:{type:Function,default:null}},emits:["on-remove","on-preview"],setup(t,{emit:l}){const r=t,i=l,{downloadPrew:x,downloadStreamPrew:k}=F.useDownloadPrew({onDownload:r.onDownload,onDownloadStream:r.onDownloadStream,onPreviewImage:r.onPreviewImage||(n=>window.open(n,"_blank")),downloadBlobFile:r.downloadBlobFile}),f=n=>U(n);function m(n){r.isCustom?i("on-preview",n):r.isStream?r.onDownloadStream?k(n):(console.warn("FilePreview: isStream 为 true 但未提供 onDownloadStream 函数"),i("on-preview",n)):r.onDownload?x(n):i("on-preview",n)}function w(n,c){i("on-remove",n,c)}return(n,c)=>{const s=e.resolveComponent("el-icon"),g=e.resolveComponent("el-button"),_=e.resolveComponent("IconDelete"),B=e.resolveComponent("el-col"),C=e.resolveComponent("el-row"),y=e.resolveComponent("IconHide");return e.openBlock(),e.createElementBlock("div",H,[t.previewType===e.unref(d).面板?(e.openBlock(),e.createElementBlock("div",M,[e.renderSlot(n.$slots,"PanelUploader",{},void 0,!0),e.createVNode(C,{gutter:20,class:"panel-preview__row"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fileList,(o,a)=>(e.openBlock(),e.createBlock(B,{span:8,key:o.bnid},{default:e.withCtx(()=>[e.createElementVNode("div",q,[e.createElementVNode("div",{class:"panel-preview__box",onClick:u=>m(o)},[e.unref(p)(o.suffix)?(e.openBlock(),e.createElementBlock("img",{key:0,src:o.url,alt:o.name,class:"panel-preview__img"},null,8,O)):(e.openBlock(),e.createBlock(s,{key:1,size:"32px",class:"panel-preview__img"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(f(o))))]),_:2},1024)),e.createElementVNode("span",A,e.toDisplayString(o.name),1)],8,j),o.isUploading?(e.openBlock(),e.createElementBlock("div",J,[e.createVNode(g,{text:"",size:"small",loading:""},{default:e.withCtx(()=>[...c[0]||(c[0]=[e.createTextVNode("上传中...",-1)])]),_:1})])):(e.openBlock(),e.createElementBlock("div",W,[t.canEdit?(e.openBlock(),e.createBlock(s,{key:0,size:"18",style:{cursor:"pointer"},onClick:u=>w(a,o)},{default:e.withCtx(()=>[e.createVNode(_)]),_:1},8,["onClick"])):e.createCommentVNode("",!0)]))])]),_:2},1024))),128))]),_:1})])):e.createCommentVNode("",!0),t.previewType===e.unref(d).卡片?(e.openBlock(),e.createElementBlock("ul",Z,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fileList,(o,a)=>(e.openBlock(),e.createElementBlock("li",{class:"preview-item",key:o.bnid},[e.unref(p)(o.suffix)?(e.openBlock(),e.createElementBlock("img",{key:0,src:o.url,alt:o.name,class:"preview-item__img"},null,8,G)):(e.openBlock(),e.createBlock(s,{key:1,size:"32px",class:"preview-item__img"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(f(o))))]),_:2},1024)),e.createElementVNode("div",K,[e.createVNode(s,{class:"preview-item__mask--view",onClick:u=>m(o)},{default:e.withCtx(()=>[e.createVNode(y)]),_:1},8,["onClick"]),t.canEdit?(e.openBlock(),e.createBlock(s,{key:0,class:"preview-item__mask--delete",onClick:u=>w(a,o)},{default:e.withCtx(()=>[e.createVNode(_)]),_:1},8,["onClick"])):e.createCommentVNode("",!0)])]))),128)),e.renderSlot(n.$slots,"CardUploader",{},void 0,!0)])):e.createCommentVNode("",!0)])}}},R=P._export_sfc(Q,[["__scopeId","data-v-fe542fce"]]),v=h.withInstall(R);exports.FilePreview=v;exports.default=v;
|