aibox-custom-component-packages 0.0.13 → 0.0.15
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/SourcePublish.mjs +1 -1
- package/es/assets/SourcePublish.css +1 -1
- package/es/chunks/{SourcePublish.BhLjt18i.js → SourcePublish.Dk7O9GzI.js} +2 -6
- package/es/index.mjs +1 -1
- package/lib/SourcePublish.js +1 -1
- package/lib/assets/SourcePublish.css +1 -1
- package/lib/chunks/SourcePublish.OeB6i-Iu.js +1 -0
- package/lib/index.js +1 -1
- package/package.json +2 -2
- package/es/chunks/AddOrEditSupplierDialog.BKR0RsiJ.js +0 -721
- package/es/chunks/AddOrEditSupplierDialog.CjNRipPe.js +0 -721
- package/es/chunks/AddOrEditSupplierDialog.CnsquSx2.js +0 -721
- package/es/chunks/AiboxTable.CDqNvRfJ.js +0 -635
- package/es/chunks/AiboxTable.CrWMAX84.js +0 -635
- package/es/chunks/ApplicationTypeTag.Cbdi0D65.js +0 -47
- package/es/chunks/ApplicationTypeTag.Df4BZxds.js +0 -47
- package/es/chunks/AuthSection.DFfj5MtZ.js +0 -201
- package/es/chunks/AuthSection.DWD_FxtJ.js +0 -201
- package/es/chunks/AvailableRangePreview.Bz9QkkAM.js +0 -194
- package/es/chunks/AvailableRangePreview.WFzbRasx.js +0 -194
- package/es/chunks/AvailableRangeSetting.Bq_K1zar.js +0 -229
- package/es/chunks/AvailableRangeSetting.Cty5Cdmh.js +0 -229
- package/es/chunks/CodeView.CWuSIL_F.js +0 -148
- package/es/chunks/CodeView.Dhxe1PQP.js +0 -148
- package/es/chunks/CommonTagsList.DSPdgjc3.js +0 -156
- package/es/chunks/CommonTagsList.NbXVfvLW.js +0 -156
- package/es/chunks/CommonTagsList.qam_Fp76.js +0 -156
- package/es/chunks/CreateMcpForm.BBVVd2RN.js +0 -308
- package/es/chunks/CreateMcpForm.BWUyeP01.js +0 -308
- package/es/chunks/CreateMcpForm.C8YfDSEM.js +0 -308
- package/es/chunks/CreateMcpForm.DSE5jyiW.js +0 -308
- package/es/chunks/CustomSidebar.BSGAhmVY.js +0 -585
- package/es/chunks/DocSyncSelect.D-WIvZZN.js +0 -2290
- package/es/chunks/DocSyncSelect.Kk88o9gO.js +0 -2290
- package/es/chunks/FileDisplay.B5laA4uX.js +0 -1649
- package/es/chunks/FileDisplay.BCTNdpl9.js +0 -1649
- package/es/chunks/FileDisplay.CBNYrdsK.js +0 -1560
- package/es/chunks/FilePreview.B9u8ODHp.js +0 -123
- package/es/chunks/FileUploader.BaikPGWb.js +0 -216
- package/es/chunks/FileUploader.DD-lopf-.js +0 -216
- package/es/chunks/McpFormDialog.4HDExbTn.js +0 -297
- package/es/chunks/McpFormDialog.CgnC1I7i.js +0 -297
- package/es/chunks/McpFormDialog.D3txmoEF.js +0 -297
- package/es/chunks/McpFormDialog.DNzqqhaX.js +0 -297
- package/es/chunks/McpParamsSet.DlWx6E5S.js +0 -501
- package/es/chunks/McpParamsSet.Tlo_lPn-.js +0 -501
- package/es/chunks/MdEditor.B9-B9aiy.js +0 -163
- package/es/chunks/MdEditor.CeEo0P6j.js +0 -163
- package/es/chunks/MdEditor.DtL0Se7T.js +0 -163
- package/es/chunks/ParameterTable.BCdnj1gW.js +0 -2010
- package/es/chunks/ParameterTable.hUsxEU6F.js +0 -2010
- package/es/chunks/PublishRecord.9PLs9yUj.js +0 -133
- package/es/chunks/PublishRecord.C0841sJ-.js +0 -133
- package/es/chunks/PublishRecord.DEzC7hmP.js +0 -133
- package/es/chunks/SourcePublish.C97G36H2.js +0 -972
- package/es/chunks/SourcePublish.DkyY1KEk.js +0 -972
- package/es/chunks/SourcePublish.Dx-ltk9U.js +0 -956
- package/es/chunks/SourcePublish.FiswtYfr.js +0 -972
- package/es/chunks/SourcePublish.nfXmrVHm.js +0 -972
- package/es/chunks/config.BEZNFeRN.js +0 -35
- package/es/chunks/config.LzgBLhTz.js +0 -270
- package/es/chunks/config.MfNKPMiA.js +0 -35
- package/es/chunks/config.TaUlPTYL.js +0 -270
- package/es/chunks/config.l1J_qxeB.js +0 -270
- package/es/chunks/i18n.CIjLjyDK.js +0 -418
- package/es/chunks/i18n.CxsxtRq_.js +0 -418
- package/es/chunks/usePreview.agdxmOk8.js +0 -126
- package/lib/chunks/AddOrEditSupplierDialog.D0DSQZiS.js +0 -1
- package/lib/chunks/CommonTagsList.DbNcVId5.js +0 -1
- package/lib/chunks/CreateMcpForm.Cm9eHXWg.js +0 -1
- package/lib/chunks/CreateMcpForm.DNijYbgd.js +0 -1
- package/lib/chunks/CustomSidebar.Dojb1xoS.js +0 -1
- package/lib/chunks/FileDisplay.B4gn0Jhp.js +0 -59
- package/lib/chunks/FileDisplay.B7JWIcFg.js +0 -59
- package/lib/chunks/FileDisplay.DjtHza32.js +0 -59
- package/lib/chunks/FilePreview.b1Gine59.js +0 -1
- package/lib/chunks/McpFormDialog.BgNPOGB-.js +0 -6
- package/lib/chunks/McpFormDialog.CL2bInts.js +0 -6
- package/lib/chunks/McpFormDialog.DbhQIwYW.js +0 -6
- package/lib/chunks/MdEditor.rVQbuxCg.js +0 -1
- package/lib/chunks/PublishRecord.B7xYlRKJ.js +0 -5
- package/lib/chunks/SourcePublish.BBsNlnp4.js +0 -1
- package/lib/chunks/SourcePublish.C9JAqJcV.js +0 -1
- package/lib/chunks/SourcePublish.CpeV-UOG.js +0 -1
- package/lib/chunks/SourcePublish.K4tntn9l.js +0 -1
- package/lib/chunks/SourcePublish.tNsaCp3r.js +0 -1
- package/lib/chunks/config.CDNV0bUm.js +0 -1
- package/lib/chunks/usePreview.Dmhz8azZ.js +0 -1
|
@@ -1,418 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./request.CfOHcfgX.js";
|
|
2
|
-
import { createI18n as t } from "vue-i18n";
|
|
3
|
-
import { ElMessageBox as n } from "element-plus";
|
|
4
|
-
//#region ../../../node_modules/.pnpm/element-plus@2.13.5_typescript@5.9.3_vue@3.5.27_typescript@5.9.3_/node_modules/element-plus/dist/locale/zh-cn.mjs
|
|
5
|
-
var r = {
|
|
6
|
-
name: "zh-cn",
|
|
7
|
-
el: {
|
|
8
|
-
breadcrumb: { label: "面包屑" },
|
|
9
|
-
colorpicker: {
|
|
10
|
-
confirm: "确定",
|
|
11
|
-
clear: "清空",
|
|
12
|
-
defaultLabel: "颜色选择器",
|
|
13
|
-
description: "当前颜色 {color},按 Enter 键选择新颜色",
|
|
14
|
-
alphaLabel: "选择透明度的值",
|
|
15
|
-
alphaDescription: "透明度 {alpha}, 当前颜色 {color}",
|
|
16
|
-
hueLabel: "选择色相值",
|
|
17
|
-
hueDescription: "色相 {hue}, 当前颜色 {color}",
|
|
18
|
-
svLabel: "选择饱和度与明度的值",
|
|
19
|
-
svDescription: "饱和度 {saturation}, 明度 {brightness}, 当前颜色 {color}",
|
|
20
|
-
predefineDescription: "选择 {value} 作为颜色"
|
|
21
|
-
},
|
|
22
|
-
datepicker: {
|
|
23
|
-
now: "此刻",
|
|
24
|
-
today: "今天",
|
|
25
|
-
cancel: "取消",
|
|
26
|
-
clear: "清空",
|
|
27
|
-
confirm: "确定",
|
|
28
|
-
dateTablePrompt: "使用方向键与 Enter 键可选择日期",
|
|
29
|
-
monthTablePrompt: "使用方向键与 Enter 键可选择月份",
|
|
30
|
-
yearTablePrompt: "使用方向键与 Enter 键可选择年份",
|
|
31
|
-
selectedDate: "已选日期",
|
|
32
|
-
selectDate: "选择日期",
|
|
33
|
-
selectTime: "选择时间",
|
|
34
|
-
startDate: "开始日期",
|
|
35
|
-
startTime: "开始时间",
|
|
36
|
-
endDate: "结束日期",
|
|
37
|
-
endTime: "结束时间",
|
|
38
|
-
prevYear: "前一年",
|
|
39
|
-
nextYear: "后一年",
|
|
40
|
-
prevMonth: "上个月",
|
|
41
|
-
nextMonth: "下个月",
|
|
42
|
-
year: "年",
|
|
43
|
-
month1: "1 月",
|
|
44
|
-
month2: "2 月",
|
|
45
|
-
month3: "3 月",
|
|
46
|
-
month4: "4 月",
|
|
47
|
-
month5: "5 月",
|
|
48
|
-
month6: "6 月",
|
|
49
|
-
month7: "7 月",
|
|
50
|
-
month8: "8 月",
|
|
51
|
-
month9: "9 月",
|
|
52
|
-
month10: "10 月",
|
|
53
|
-
month11: "11 月",
|
|
54
|
-
month12: "12 月",
|
|
55
|
-
weeks: {
|
|
56
|
-
sun: "日",
|
|
57
|
-
mon: "一",
|
|
58
|
-
tue: "二",
|
|
59
|
-
wed: "三",
|
|
60
|
-
thu: "四",
|
|
61
|
-
fri: "五",
|
|
62
|
-
sat: "六"
|
|
63
|
-
},
|
|
64
|
-
weeksFull: {
|
|
65
|
-
sun: "星期日",
|
|
66
|
-
mon: "星期一",
|
|
67
|
-
tue: "星期二",
|
|
68
|
-
wed: "星期三",
|
|
69
|
-
thu: "星期四",
|
|
70
|
-
fri: "星期五",
|
|
71
|
-
sat: "星期六"
|
|
72
|
-
},
|
|
73
|
-
months: {
|
|
74
|
-
jan: "一月",
|
|
75
|
-
feb: "二月",
|
|
76
|
-
mar: "三月",
|
|
77
|
-
apr: "四月",
|
|
78
|
-
may: "五月",
|
|
79
|
-
jun: "六月",
|
|
80
|
-
jul: "七月",
|
|
81
|
-
aug: "八月",
|
|
82
|
-
sep: "九月",
|
|
83
|
-
oct: "十月",
|
|
84
|
-
nov: "十一月",
|
|
85
|
-
dec: "十二月"
|
|
86
|
-
}
|
|
87
|
-
},
|
|
88
|
-
inputNumber: {
|
|
89
|
-
decrease: "减少数值",
|
|
90
|
-
increase: "增加数值"
|
|
91
|
-
},
|
|
92
|
-
select: {
|
|
93
|
-
loading: "加载中",
|
|
94
|
-
noMatch: "无匹配数据",
|
|
95
|
-
noData: "无数据",
|
|
96
|
-
placeholder: "请选择"
|
|
97
|
-
},
|
|
98
|
-
mention: { loading: "加载中" },
|
|
99
|
-
dropdown: { toggleDropdown: "切换下拉选项" },
|
|
100
|
-
cascader: {
|
|
101
|
-
noMatch: "无匹配数据",
|
|
102
|
-
loading: "加载中",
|
|
103
|
-
placeholder: "请选择",
|
|
104
|
-
noData: "暂无数据"
|
|
105
|
-
},
|
|
106
|
-
pagination: {
|
|
107
|
-
goto: "前往",
|
|
108
|
-
pagesize: "条/页",
|
|
109
|
-
total: "共 {total} 条",
|
|
110
|
-
pageClassifier: "页",
|
|
111
|
-
page: "页",
|
|
112
|
-
prev: "上一页",
|
|
113
|
-
next: "下一页",
|
|
114
|
-
currentPage: "第 {pager} 页",
|
|
115
|
-
prevPages: "向前 {pager} 页",
|
|
116
|
-
nextPages: "向后 {pager} 页",
|
|
117
|
-
deprecationWarning: "你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档"
|
|
118
|
-
},
|
|
119
|
-
dialog: { close: "关闭此对话框" },
|
|
120
|
-
drawer: { close: "关闭此对话框" },
|
|
121
|
-
messagebox: {
|
|
122
|
-
title: "提示",
|
|
123
|
-
confirm: "确定",
|
|
124
|
-
cancel: "取消",
|
|
125
|
-
error: "输入的数据不合法!",
|
|
126
|
-
close: "关闭此对话框"
|
|
127
|
-
},
|
|
128
|
-
upload: {
|
|
129
|
-
deleteTip: "按 Delete 键可删除",
|
|
130
|
-
delete: "删除",
|
|
131
|
-
preview: "查看图片",
|
|
132
|
-
continue: "继续上传"
|
|
133
|
-
},
|
|
134
|
-
slider: {
|
|
135
|
-
defaultLabel: "滑块介于 {min} 至 {max}",
|
|
136
|
-
defaultRangeStartLabel: "选择起始值",
|
|
137
|
-
defaultRangeEndLabel: "选择结束值"
|
|
138
|
-
},
|
|
139
|
-
table: {
|
|
140
|
-
emptyText: "暂无数据",
|
|
141
|
-
confirmFilter: "筛选",
|
|
142
|
-
resetFilter: "重置",
|
|
143
|
-
clearFilter: "全部",
|
|
144
|
-
sumText: "合计",
|
|
145
|
-
selectAllLabel: "选择所有行",
|
|
146
|
-
selectRowLabel: "选择当前行",
|
|
147
|
-
expandRowLabel: "展开当前行",
|
|
148
|
-
collapseRowLabel: "收起当前行",
|
|
149
|
-
sortLabel: "按 {column} 排序",
|
|
150
|
-
filterLabel: "按 {column} 过滤"
|
|
151
|
-
},
|
|
152
|
-
tag: { close: "关闭此标签" },
|
|
153
|
-
tour: {
|
|
154
|
-
next: "下一步",
|
|
155
|
-
previous: "上一步",
|
|
156
|
-
finish: "结束导览",
|
|
157
|
-
close: "关闭此对话框"
|
|
158
|
-
},
|
|
159
|
-
tree: { emptyText: "暂无数据" },
|
|
160
|
-
transfer: {
|
|
161
|
-
noMatch: "无匹配数据",
|
|
162
|
-
noData: "无数据",
|
|
163
|
-
titles: ["列表 1", "列表 2"],
|
|
164
|
-
filterPlaceholder: "请输入搜索内容",
|
|
165
|
-
noCheckedFormat: "共 {total} 项",
|
|
166
|
-
hasCheckedFormat: "已选 {checked}/{total} 项"
|
|
167
|
-
},
|
|
168
|
-
image: { error: "加载失败" },
|
|
169
|
-
pageHeader: { title: "返回" },
|
|
170
|
-
popconfirm: {
|
|
171
|
-
confirmButtonText: "确定",
|
|
172
|
-
cancelButtonText: "取消"
|
|
173
|
-
},
|
|
174
|
-
carousel: {
|
|
175
|
-
leftArrow: "上一张幻灯片",
|
|
176
|
-
rightArrow: "下一张幻灯片",
|
|
177
|
-
indicator: "幻灯片切换至索引 {index}"
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
}, i = {
|
|
181
|
-
name: "en",
|
|
182
|
-
el: {
|
|
183
|
-
breadcrumb: { label: "Breadcrumb" },
|
|
184
|
-
colorpicker: {
|
|
185
|
-
confirm: "OK",
|
|
186
|
-
clear: "Clear",
|
|
187
|
-
defaultLabel: "color picker",
|
|
188
|
-
description: "current color is {color}. press enter to select a new color.",
|
|
189
|
-
alphaLabel: "pick alpha value",
|
|
190
|
-
alphaDescription: "alpha {alpha}, current color is {color}",
|
|
191
|
-
hueLabel: "pick hue value",
|
|
192
|
-
hueDescription: "hue {hue}, current color is {color}",
|
|
193
|
-
svLabel: "pick saturation and brightness value",
|
|
194
|
-
svDescription: "saturation {saturation}, brightness {brightness}, current color is {color}",
|
|
195
|
-
predefineDescription: "select {value} as the color"
|
|
196
|
-
},
|
|
197
|
-
datepicker: {
|
|
198
|
-
now: "Now",
|
|
199
|
-
today: "Today",
|
|
200
|
-
cancel: "Cancel",
|
|
201
|
-
clear: "Clear",
|
|
202
|
-
confirm: "OK",
|
|
203
|
-
dateTablePrompt: "Use the arrow keys and enter to select the day of the month",
|
|
204
|
-
monthTablePrompt: "Use the arrow keys and enter to select the month",
|
|
205
|
-
yearTablePrompt: "Use the arrow keys and enter to select the year",
|
|
206
|
-
selectedDate: "Selected date",
|
|
207
|
-
selectDate: "Select date",
|
|
208
|
-
selectTime: "Select time",
|
|
209
|
-
startDate: "Start Date",
|
|
210
|
-
startTime: "Start Time",
|
|
211
|
-
endDate: "End Date",
|
|
212
|
-
endTime: "End Time",
|
|
213
|
-
prevYear: "Previous Year",
|
|
214
|
-
nextYear: "Next Year",
|
|
215
|
-
prevMonth: "Previous Month",
|
|
216
|
-
nextMonth: "Next Month",
|
|
217
|
-
year: "",
|
|
218
|
-
month1: "January",
|
|
219
|
-
month2: "February",
|
|
220
|
-
month3: "March",
|
|
221
|
-
month4: "April",
|
|
222
|
-
month5: "May",
|
|
223
|
-
month6: "June",
|
|
224
|
-
month7: "July",
|
|
225
|
-
month8: "August",
|
|
226
|
-
month9: "September",
|
|
227
|
-
month10: "October",
|
|
228
|
-
month11: "November",
|
|
229
|
-
month12: "December",
|
|
230
|
-
weeks: {
|
|
231
|
-
sun: "Sun",
|
|
232
|
-
mon: "Mon",
|
|
233
|
-
tue: "Tue",
|
|
234
|
-
wed: "Wed",
|
|
235
|
-
thu: "Thu",
|
|
236
|
-
fri: "Fri",
|
|
237
|
-
sat: "Sat"
|
|
238
|
-
},
|
|
239
|
-
weeksFull: {
|
|
240
|
-
sun: "Sunday",
|
|
241
|
-
mon: "Monday",
|
|
242
|
-
tue: "Tuesday",
|
|
243
|
-
wed: "Wednesday",
|
|
244
|
-
thu: "Thursday",
|
|
245
|
-
fri: "Friday",
|
|
246
|
-
sat: "Saturday"
|
|
247
|
-
},
|
|
248
|
-
months: {
|
|
249
|
-
jan: "Jan",
|
|
250
|
-
feb: "Feb",
|
|
251
|
-
mar: "Mar",
|
|
252
|
-
apr: "Apr",
|
|
253
|
-
may: "May",
|
|
254
|
-
jun: "Jun",
|
|
255
|
-
jul: "Jul",
|
|
256
|
-
aug: "Aug",
|
|
257
|
-
sep: "Sep",
|
|
258
|
-
oct: "Oct",
|
|
259
|
-
nov: "Nov",
|
|
260
|
-
dec: "Dec"
|
|
261
|
-
}
|
|
262
|
-
},
|
|
263
|
-
inputNumber: {
|
|
264
|
-
decrease: "decrease number",
|
|
265
|
-
increase: "increase number"
|
|
266
|
-
},
|
|
267
|
-
select: {
|
|
268
|
-
loading: "Loading",
|
|
269
|
-
noMatch: "No matching data",
|
|
270
|
-
noData: "No data",
|
|
271
|
-
placeholder: "Select"
|
|
272
|
-
},
|
|
273
|
-
mention: { loading: "Loading" },
|
|
274
|
-
dropdown: { toggleDropdown: "Toggle Dropdown" },
|
|
275
|
-
cascader: {
|
|
276
|
-
noMatch: "No matching data",
|
|
277
|
-
loading: "Loading",
|
|
278
|
-
placeholder: "Select",
|
|
279
|
-
noData: "No data"
|
|
280
|
-
},
|
|
281
|
-
pagination: {
|
|
282
|
-
goto: "Go to",
|
|
283
|
-
pagesize: "/page",
|
|
284
|
-
total: "Total {total}",
|
|
285
|
-
pageClassifier: "",
|
|
286
|
-
page: "Page",
|
|
287
|
-
prev: "Go to previous page",
|
|
288
|
-
next: "Go to next page",
|
|
289
|
-
currentPage: "page {pager}",
|
|
290
|
-
prevPages: "Previous {pager} pages",
|
|
291
|
-
nextPages: "Next {pager} pages",
|
|
292
|
-
deprecationWarning: "Deprecated usages detected, please refer to the el-pagination documentation for more details"
|
|
293
|
-
},
|
|
294
|
-
dialog: { close: "Close this dialog" },
|
|
295
|
-
drawer: { close: "Close this dialog" },
|
|
296
|
-
messagebox: {
|
|
297
|
-
title: "Message",
|
|
298
|
-
confirm: "OK",
|
|
299
|
-
cancel: "Cancel",
|
|
300
|
-
error: "Illegal input",
|
|
301
|
-
close: "Close this dialog"
|
|
302
|
-
},
|
|
303
|
-
upload: {
|
|
304
|
-
deleteTip: "press delete to remove",
|
|
305
|
-
delete: "Delete",
|
|
306
|
-
preview: "Preview",
|
|
307
|
-
continue: "Continue"
|
|
308
|
-
},
|
|
309
|
-
slider: {
|
|
310
|
-
defaultLabel: "slider between {min} and {max}",
|
|
311
|
-
defaultRangeStartLabel: "pick start value",
|
|
312
|
-
defaultRangeEndLabel: "pick end value"
|
|
313
|
-
},
|
|
314
|
-
table: {
|
|
315
|
-
emptyText: "No Data",
|
|
316
|
-
confirmFilter: "Confirm",
|
|
317
|
-
resetFilter: "Reset",
|
|
318
|
-
clearFilter: "All",
|
|
319
|
-
sumText: "Sum",
|
|
320
|
-
selectAllLabel: "Select all rows",
|
|
321
|
-
selectRowLabel: "Select this row",
|
|
322
|
-
expandRowLabel: "Expand this row",
|
|
323
|
-
collapseRowLabel: "Collapse this row",
|
|
324
|
-
sortLabel: "Sort by {column}",
|
|
325
|
-
filterLabel: "Filter by {column}"
|
|
326
|
-
},
|
|
327
|
-
tag: { close: "Close this tag" },
|
|
328
|
-
tour: {
|
|
329
|
-
next: "Next",
|
|
330
|
-
previous: "Previous",
|
|
331
|
-
finish: "Finish",
|
|
332
|
-
close: "Close this dialog"
|
|
333
|
-
},
|
|
334
|
-
tree: { emptyText: "No Data" },
|
|
335
|
-
transfer: {
|
|
336
|
-
noMatch: "No matching data",
|
|
337
|
-
noData: "No data",
|
|
338
|
-
titles: ["List 1", "List 2"],
|
|
339
|
-
filterPlaceholder: "Enter keyword",
|
|
340
|
-
noCheckedFormat: "{total} items",
|
|
341
|
-
hasCheckedFormat: "{checked}/{total} checked"
|
|
342
|
-
},
|
|
343
|
-
image: { error: "FAILED" },
|
|
344
|
-
pageHeader: { title: "Back" },
|
|
345
|
-
popconfirm: {
|
|
346
|
-
confirmButtonText: "Yes",
|
|
347
|
-
cancelButtonText: "No"
|
|
348
|
-
},
|
|
349
|
-
carousel: {
|
|
350
|
-
leftArrow: "Carousel arrow left",
|
|
351
|
-
rightArrow: "Carousel arrow right",
|
|
352
|
-
indicator: "Carousel switch to index {index}"
|
|
353
|
-
}
|
|
354
|
-
}
|
|
355
|
-
}, a = {
|
|
356
|
-
zhCn: "zh-cn",
|
|
357
|
-
en: "en"
|
|
358
|
-
}, o = {
|
|
359
|
-
[a.zhCn]: r,
|
|
360
|
-
[a.en]: i
|
|
361
|
-
}, s = (e = !1) => e || (navigator?.language || navigator?.userLanguage)?.startsWith("zh") ? a.zhCn : a.en, c = null, l = null, u = (e = {}, n = !1) => {
|
|
362
|
-
c = s(n);
|
|
363
|
-
let r = t({
|
|
364
|
-
legacy: !1,
|
|
365
|
-
locale: c,
|
|
366
|
-
fallbackLocale: a.zhCn,
|
|
367
|
-
messages: e,
|
|
368
|
-
globalInjection: !0
|
|
369
|
-
});
|
|
370
|
-
return v(r, !n), l = r, r;
|
|
371
|
-
}, d = (e, t) => {
|
|
372
|
-
if (l && l.global) try {
|
|
373
|
-
return l.global.t(e, t);
|
|
374
|
-
} catch (t) {
|
|
375
|
-
return console.warn("i18n t error:", t), e;
|
|
376
|
-
}
|
|
377
|
-
return e;
|
|
378
|
-
}, f = () => o[c] || r, p = () => ({
|
|
379
|
-
[a.zhCn]: "zh_cn",
|
|
380
|
-
[a.en]: "en_us"
|
|
381
|
-
})[c], m = () => ({
|
|
382
|
-
[a.zhCn]: "zh-CN",
|
|
383
|
-
[a.en]: "en-US"
|
|
384
|
-
})[c], h = () => ({
|
|
385
|
-
[a.zhCn]: "zh",
|
|
386
|
-
[a.en]: a.en
|
|
387
|
-
})[c], g = (e) => (t, n = {}) => e.global.t(t, n), _ = (e) => () => {
|
|
388
|
-
setTimeout(async () => {
|
|
389
|
-
try {
|
|
390
|
-
n.close();
|
|
391
|
-
} catch {}
|
|
392
|
-
n.confirm(e.global.t("LANGUAGE_CHANGE.CONTENT"), e.global.t("LANGUAGE_CHANGE.TITLE"), {
|
|
393
|
-
confirmButtonText: e.global.t("LANGUAGE_CHANGE.CONFIRM"),
|
|
394
|
-
cancelButtonText: e.global.t("LANGUAGE_CHANGE.CANCEL"),
|
|
395
|
-
type: "warning",
|
|
396
|
-
dangerouslyUseHTMLString: !0,
|
|
397
|
-
customClass: "language-change-confirm"
|
|
398
|
-
}).then(() => {
|
|
399
|
-
window.location.reload();
|
|
400
|
-
});
|
|
401
|
-
}, 0);
|
|
402
|
-
}, v = (e, t = !0) => {
|
|
403
|
-
if (!t) return;
|
|
404
|
-
let n = _(e);
|
|
405
|
-
window.addEventListener("languagechange", n);
|
|
406
|
-
}, y = (e) => {
|
|
407
|
-
if (!e) return;
|
|
408
|
-
let t = _(e);
|
|
409
|
-
window.removeEventListener("languagechange", t);
|
|
410
|
-
}, b = () => {
|
|
411
|
-
let { t } = e();
|
|
412
|
-
return { t };
|
|
413
|
-
}, x = (e, t) => {
|
|
414
|
-
let { t: n } = b();
|
|
415
|
-
return n(e, t);
|
|
416
|
-
};
|
|
417
|
-
//#endregion
|
|
418
|
-
export { s as a, m as c, o as d, v as f, h as i, x as l, b as m, u as n, f as o, d as p, g as r, p as s, y as t, a as u };
|
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./request.CfOHcfgX.js";
|
|
2
|
-
import { api as t } from "v-viewer";
|
|
3
|
-
import '../assets/usePreview.css';//#region components/FilePreview/utils.js
|
|
4
|
-
var n = (e) => /(txt|yaml)/i.test(e), r = (e) => /ppt|pptx/i.test(e), i = (e) => /pdf/i.test(e);
|
|
5
|
-
function a(e) {
|
|
6
|
-
return /(docx|doc|msword)/i.test(e);
|
|
7
|
-
}
|
|
8
|
-
function o(e) {
|
|
9
|
-
return /(xlsx|xls|sheet|csv)/i.test(e);
|
|
10
|
-
}
|
|
11
|
-
function s(e) {
|
|
12
|
-
return /(zip|rar|7z)$/i.test(e);
|
|
13
|
-
}
|
|
14
|
-
var c = (e, t) => {
|
|
15
|
-
if (e) return /(jpe?g|png|bmp|gif|webp|svg|ico)(\?.*)?$/i.test(e);
|
|
16
|
-
if (t) {
|
|
17
|
-
let e = new Image();
|
|
18
|
-
return e.src = t, new Promise(async (t) => {
|
|
19
|
-
e.onload = () => {
|
|
20
|
-
t(!0);
|
|
21
|
-
}, e.onerror = () => {
|
|
22
|
-
t(!1);
|
|
23
|
-
};
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
}, l = (e) => /(mp4|avi|rmvb|rm|wmv|flv|3gp|mkv|mov)(\?.*)?$/i.test(e), u = (e) => /(mp3|wav|wma|aac|flac)(\?.*)?$/i.test(e), d = (e) => /(md|markdown)/i.test(e), f = (e) => /(html|htm|xhtml|xml)/i.test(e), p = (e) => /(json)/i.test(e), m = (e) => {
|
|
27
|
-
if (i(e.suffix)) return "Pdf1";
|
|
28
|
-
if (a(e.suffix)) return "Doc";
|
|
29
|
-
if (o(e.suffix)) return "Excel1";
|
|
30
|
-
if (l(e.suffix)) return "Video";
|
|
31
|
-
if (u(e.suffix)) return "Music";
|
|
32
|
-
if (r(e.suffix)) return "Ppt1";
|
|
33
|
-
if (d(e.suffix)) return "Md";
|
|
34
|
-
if (f(e.suffix)) return "Html";
|
|
35
|
-
if (n(e.suffix)) return "Txt1";
|
|
36
|
-
if (p(e.suffix) || s(e.suffix)) return "Other";
|
|
37
|
-
if (c(e.suffix, e.url)) return "Pic";
|
|
38
|
-
}, h = () => {
|
|
39
|
-
let { $request: t, $env: n } = e();
|
|
40
|
-
return {
|
|
41
|
-
commonDownloadInterior: (e) => t({
|
|
42
|
-
method: "get",
|
|
43
|
-
url: `${n.VITE_APP_AIBOX_BASE_URL}/api/v1/common/file/download/streams`,
|
|
44
|
-
params: e,
|
|
45
|
-
responseType: "arraybuffer"
|
|
46
|
-
}),
|
|
47
|
-
commonDownloadForeign: (e) => t({
|
|
48
|
-
method: "get",
|
|
49
|
-
url: `${n.VITE_APP_AIBOX_BASE_URL}/api/v1/common/file/download/urls`,
|
|
50
|
-
params: e
|
|
51
|
-
}),
|
|
52
|
-
commonFileDelete: (e) => t({
|
|
53
|
-
method: "delete",
|
|
54
|
-
url: `${n.VITE_APP_AIBOX_BASE_URL}/api/v1/common/file`,
|
|
55
|
-
params: e
|
|
56
|
-
})
|
|
57
|
-
};
|
|
58
|
-
}, g = (e, t = "", n = "file") => {
|
|
59
|
-
let r = new Blob([e]);
|
|
60
|
-
if (n == "image") return URL.createObjectURL(r);
|
|
61
|
-
{
|
|
62
|
-
let e = document.createElement("a");
|
|
63
|
-
e.style.display = "none";
|
|
64
|
-
let n = window.URL.createObjectURL(r);
|
|
65
|
-
e.href = n, e.setAttribute("download", t), document.body.appendChild(e), e.click(), document.body.removeChild(e), setTimeout(() => {
|
|
66
|
-
window.URL.revokeObjectURL(n);
|
|
67
|
-
}, 5e3);
|
|
68
|
-
}
|
|
69
|
-
}, _ = () => {
|
|
70
|
-
let { commonDownloadForeign: e, commonDownloadInterior: n, commonFileDelete: r } = h(), i = {
|
|
71
|
-
zIndex: 3e3,
|
|
72
|
-
toolbar: {
|
|
73
|
-
rotateLeft: !0,
|
|
74
|
-
rotateRight: !0,
|
|
75
|
-
zoomIn: !0,
|
|
76
|
-
zoomOut: !0,
|
|
77
|
-
reset: !0,
|
|
78
|
-
prev: !0,
|
|
79
|
-
next: !0
|
|
80
|
-
},
|
|
81
|
-
navbar: !1
|
|
82
|
-
};
|
|
83
|
-
return {
|
|
84
|
-
downloadPrew: async (n) => {
|
|
85
|
-
let { data: r } = await e({ "file-ids": [n.bnid] });
|
|
86
|
-
if (r) {
|
|
87
|
-
let e = r?.[0]?.url;
|
|
88
|
-
c(n.suffix, n.url) || c(n.suffix, e) ? (r && r.length, t({
|
|
89
|
-
images: [e],
|
|
90
|
-
options: i
|
|
91
|
-
})) : window.open(e, "_blank");
|
|
92
|
-
}
|
|
93
|
-
},
|
|
94
|
-
downloadStreamPrew: async (e) => {
|
|
95
|
-
let r = await n({ "file-ids": [e.bnid] });
|
|
96
|
-
if (r) if (c(e.suffix, e.url)) {
|
|
97
|
-
let n = g(r, e.name, "image");
|
|
98
|
-
r && t({
|
|
99
|
-
images: [n],
|
|
100
|
-
options: i
|
|
101
|
-
});
|
|
102
|
-
} else g(r, e.name);
|
|
103
|
-
},
|
|
104
|
-
previewImage: (e) => {
|
|
105
|
-
t({
|
|
106
|
-
images: [e],
|
|
107
|
-
options: i
|
|
108
|
-
});
|
|
109
|
-
},
|
|
110
|
-
deleteFile: async (e) => {
|
|
111
|
-
await r({ "file-ids": [e.bnid] });
|
|
112
|
-
},
|
|
113
|
-
previewMultiImage: (e) => {
|
|
114
|
-
let { urls: n, initialIndex: r } = e;
|
|
115
|
-
t({
|
|
116
|
-
images: n,
|
|
117
|
-
options: {
|
|
118
|
-
...i,
|
|
119
|
-
initialViewIndex: r || 0
|
|
120
|
-
}
|
|
121
|
-
});
|
|
122
|
-
}
|
|
123
|
-
};
|
|
124
|
-
};
|
|
125
|
-
//#endregion
|
|
126
|
-
export { f as a, d as c, n as d, l as f, m as h, o as i, i as l, s as m, g as n, c as o, a as p, u as r, p as s, _ as t, r as u };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
require(`./chunk.BbA6Ugdl.js`);require('../assets/AddOrEditSupplierDialog.css');const e=require(`./withinstall.65aRnaVc.js`),t=require(`./i18n.BGe5gOau.js`),n=require(`./request.BuoFTs7h.js`),r=require(`./FilePreview.b1Gine59.js`),i=require(`./_plugin-vue_export-helper.Bgn9wawX.js`),a=require(`./DialogContainer.C0Hsohgn.js`),o=require(`./FileUploader.6IW_QL-h.js`);let s=require(`vue`),c=require(`element-plus`),l=require(`color-message-aibox-vue`),u=require(`vue-router`);var d=()=>{let{$request:e,$env:t}=n.t();return{deleteKey:n=>e({url:`${t.VITE_APP_AIBOX_BASE_URL}/api/v1/model/key/${n}`,method:`delete`}),deleteOwnerModel:n=>e({url:`${t.VITE_APP_AIBOX_BASE_URL}/api/v1/admin/model/${n}`,method:`delete`}),addModel:n=>e({url:`${t.VITE_APP_AIBOX_BASE_URL}/api/v1/admin/model`,method:`post`,data:n}),updateModel:(n,r)=>e({url:`${t.VITE_APP_AIBOX_BASE_URL}/api/v1/admin/model/${n}`,method:`post`,data:r})}},f=[{label:`COMMON_MODEL_LIBRARY.MODEL_TYPE_LARGE_LANGUAGE_MODEL`,value:`llm`},{label:`COMMON_MODEL_LIBRARY.MODEL_TYPE_MULTIMODAL_MODEL`,value:`multimodal`},{label:`COMMON_MODEL_LIBRARY.MODEL_TYPE_EMBEDDING_MODEL`,value:`embedding`},{label:`COMMON_MODEL_LIBRARY.MODEL_TYPE_RERANK_MODEL`,value:`rerank`}],p={supported:1,not_supported:0},m=[{label:`COMMON_MODEL_LIBRARY.TOOL_CALLING_SUPPORTED`,value:p.supported},{label:`COMMON_MODEL_LIBRARY.TOOL_CALLING_NOT_SUPPORTED`,value:p.not_supported}],h=()=>{let{$request:e,$env:t}=n.t();return{getSystemReference:n=>e({url:`${t.VITE_APP_AIBOX_BASE_URL}/api/v1/system/reference`,method:`get`,params:n})}},g=()=>{let{$request:e,$env:t}=n.t();return{deleteKnowledgeBase:n=>e({url:`${t.VITE_APP_AIBOX_BASE_URL}/api/v1/knowledge/${n}`,method:`delete`})}},_=()=>{let{$request:e,$env:t}=n.t();return{del:n=>e({url:`${t.VITE_APP_AIBOX_BASE_URL}/api/v1/workflow/mgr?bnid=${n}`,method:`delete`})}},v=()=>{let{$request:e,$env:t}=n.t();return{deleteId:n=>e({url:`${t.VITE_APP_AIBOX_BASE_URL}/api/v1/pluglet/delete/${n}`,method:`put`}),deleteTools:n=>e({url:`${t.VITE_APP_AIBOX_BASE_URL}/api/v1/pluglit/delete/${n}`,method:`put`})}},y=[`onClick`],b={__name:`AiboxTabs`,props:{modelValue:{type:[String,Number],default:``},tabList:{type:Array,default:()=>[]},propsObj:{type:Object,default:()=>({label:`label`,value:`value`})},styleType:{type:[Number,String],default:1},isShowIcon:{type:Boolean,default:!1}},emits:[`update:modelValue`,`change`],setup(e,{emit:t}){let n=t,r=e,i=e=>{n(`update:modelValue`,e[r.propsObj.value]),n(`change`,e[r.propsObj.value])};return(t,n)=>((0,s.openBlock)(),(0,s.createElementBlock)(`div`,{class:(0,s.normalizeClass)([`ai-box-tabs`,`style-${e.styleType}`])},[(0,s.createElementVNode)(`ul`,null,[((0,s.openBlock)(!0),(0,s.createElementBlock)(s.Fragment,null,(0,s.renderList)(e.tabList,(t,n)=>((0,s.openBlock)(),(0,s.createElementBlock)(`li`,{key:t[r.propsObj.value],onClick:e=>i(t),class:(0,s.normalizeClass)(e.modelValue===t[r.propsObj.value]?`current`:``),style:(0,s.normalizeStyle)(n==e.tabList.length-1?`margin-right: 0;`:``)},[t.icon&&e.isShowIcon?((0,s.openBlock)(),(0,s.createBlock)((0,s.unref)(c.ElIcon),{key:0,size:`18px`,style:{"margin-right":`4px`},color:e.modelValue===t[r.propsObj.value]?`#262626`:`#7f8387`},{default:(0,s.withCtx)(()=>[((0,s.openBlock)(),(0,s.createBlock)((0,s.resolveDynamicComponent)(t.icon)))]),_:2},1032,[`color`])):(0,s.createCommentVNode)(``,!0),(0,s.createTextVNode)(` `+(0,s.toDisplayString)(t[r.propsObj.label]),1)],14,y))),128))])],2))}},x=i.t(b,[[`__scopeId`,`data-v-fd75e38a`]]),S={class:`delete-title`},C={class:`custom-message-box`},w={class:`custom-message-box__title`,style:{"line-height":`24px`}},T={style:{color:`red`}},E={key:0,class:`custom-message-box__tip`},D={key:0,class:`delete-tabs`},O={key:0,class:`resource-list`},k=[`onClick`],A={class:`item-title`},j={key:1,class:`resource-list`},M=[`onClick`],N={class:`item-title`},P={class:`dialog-footer`},F={__name:`DeleteResourceDialog`,props:{title:{type:String,default:``},deleteType:{type:String,default:``}},emits:[`success`],setup(e,{expose:n,emit:r}){let{getSystemReference:i}=h(),{deleteKnowledgeBase:o}=g(),{del:f}=_(),{deleteId:p,deleteTools:m}=v(),{deleteKey:y,deleteOwnerModel:b}=d(),{t:F}=t.m(),I=(0,u.useRouter)(),{dialogRef:L,showDialog:R,hideDialog:z}=a.n(),B=e,V=r,H=(0,s.computed)(()=>{let e=[];return K.value.length&&e.push({label:F(`COMPONENTS_OUTER_SPHERE.APPLICATION_REFERENCE`,{num:K.value.length}),value:`1`}),q.value.length&&e.push({label:F(`COMPONENTS_OUTER_SPHERE.WORKFLOW_REFERENCE`,{num:q.value.length}),value:`2`}),e}),U=(0,s.ref)(`1`),W=(0,s.ref)(``),G=(0,s.ref)(!1),K=(0,s.ref)([]),q=(0,s.ref)([]),J=e=>{let t={model:{code:1,desc:F(`COMMON_TAG.APPLICATION`),deleteFn:async()=>await b(W.value)},knowledge:{code:2,desc:F(`COMMON_TAG.KNOWLEDGE_BASE`),deleteFn:async()=>await o(W.value)},workflow:{code:4,desc:F(`COMMON_TAG.WORKFLOW`),deleteFn:async()=>await f(W.value)},plugin:{code:6,desc:F(`COMMON_TAG.PLUGIN`),deleteFn:async()=>await p(W.value)},pluglit:{code:6,desc:F(`COMMON_TAG.TOOL`),deleteFn:async()=>await m(W.value)},modelKey:{code:7,desc:F(`COMMON_TAG.MODEL_KEY`),deleteFn:async()=>await y(W.value)}};return console.log(e,`value`),t[e]},ee=async()=>{let e=W.value;B.deleteType==`plugin`&&(e=Q.value);let{code:t,data:n}=await i({bnid:e,size:999,page:1,"business-type":X});t===0&&((n.data||[]).forEach(e=>{e.name==`workflow`&&(q.value=e.data),e.name==`agent`&&(K.value=e.data)}),K.value.length||(U.value=`2`))},Y=(0,s.ref)(``),X=``,Z=null;(0,s.onMounted)(()=>{let e=J(B.deleteType);Y.value=e.desc||``,X=e.code||``,Z=e.deleteFn||null});let Q=(0,s.ref)(``),te=(e,t=``)=>{W.value=e,Q.value=t,R(),ee()},ne=async()=>{if(Z){G.value=!0;try{let e=await Z();e&&e.code==0?((0,c.ElMessage)({message:F(`COMPONENTS_OUTER_SPHERE.DELETE_DATA_SUCCESS`,{name:Y.value}),type:`success`}),V(`success`),$()):(0,c.ElMessage)({message:F(`COMPONENTS_OUTER_SPHERE.DELETE_DATA_FAILED`,{name:Y.value}),type:`error`})}finally{G.value=!1}}},re=e=>{I.push({name:`AgentDetail`,params:{bnid:e.skillet}})},ie=e=>{I.push({name:`Workflow`,params:{workflowBnid:e.skillet}})},ae=()=>{},$=()=>{z(),W.value=``,K.value=[],q.value=[]};return n({showDeleteDialog:te,hideDeleteDialog:$}),(t,n)=>((0,s.openBlock)(),(0,s.createBlock)((0,s.unref)(a.t),{title:e.title||(0,s.unref)(F)(`COMPONENTS_OUTER_SPHERE.CONFIRM_DELETE`,{deleteTypeStr:Y.value}),width:`520px`,ref_key:`dialogRef`,ref:L},{footer:(0,s.withCtx)(()=>[(0,s.createElementVNode)(`div`,P,[(0,s.createVNode)((0,s.unref)(c.ElButton),{onClick:$,plain:``},{default:(0,s.withCtx)(()=>[(0,s.createTextVNode)((0,s.toDisplayString)((0,s.unref)(F)(`COMMON_BUTTON.CANCEL_TEXT`)),1)]),_:1}),(0,s.createVNode)((0,s.unref)(c.ElButton),{type:`danger`,onClick:ne,loading:G.value},{default:(0,s.withCtx)(()=>[(0,s.createTextVNode)((0,s.toDisplayString)((0,s.unref)(F)(`COMMON_BUTTON.CONFIRM_AFFIRM`)),1)]),_:1},8,[`loading`])])]),default:(0,s.withCtx)(()=>[(0,s.createElementVNode)(`div`,S,[(0,s.createVNode)((0,s.unref)(c.ElIcon),{class:`warning-icon`},{default:(0,s.withCtx)(()=>[(0,s.createVNode)((0,s.unref)(l.IconWarn))]),_:1}),(0,s.createElementVNode)(`div`,C,[(0,s.createElementVNode)(`div`,w,[(0,s.createTextVNode)((0,s.toDisplayString)((0,s.unref)(F)(`COMPONENTS_OUTER_SPHERE.HISTORY_REFERENCE`,{deleteTypeStr:Y.value}))+` `,1),(0,s.createElementVNode)(`span`,T,(0,s.toDisplayString)((0,s.unref)(F)(`PLUGINLIST.CAUTION`)),1)]),K.value.length||q.value.length?((0,s.openBlock)(),(0,s.createElementBlock)(`div`,E,(0,s.toDisplayString)((0,s.unref)(F)(`PLUGINLIST.CAUTION_INFO`)),1)):(0,s.createCommentVNode)(``,!0),n[1]||=(0,s.createElementVNode)(`div`,null,null,-1)])]),K.value.length||q.value.length?((0,s.openBlock)(),(0,s.createElementBlock)(`div`,D,[(0,s.createVNode)(x,{modelValue:U.value,"onUpdate:modelValue":n[0]||=e=>U.value=e,tabList:H.value,onChange:ae},null,8,[`modelValue`,`tabList`]),U.value==`1`?((0,s.openBlock)(),(0,s.createElementBlock)(`div`,O,[((0,s.openBlock)(!0),(0,s.createElementBlock)(s.Fragment,null,(0,s.renderList)(K.value,e=>((0,s.openBlock)(),(0,s.createElementBlock)(`div`,{class:`resource-item`,key:e.resource,onClick:t=>re(e)},[n[2]||=(0,s.createElementVNode)(`div`,{class:`flow-name__icon-placeholder`},null,-1),(0,s.createElementVNode)(`div`,A,(0,s.toDisplayString)(e.name),1),(0,s.createVNode)((0,s.unref)(c.ElIcon),null,{default:(0,s.withCtx)(()=>[(0,s.createVNode)((0,s.unref)(l.IconGoto3))]),_:1})],8,k))),128))])):(0,s.createCommentVNode)(``,!0),U.value==`2`?((0,s.openBlock)(),(0,s.createElementBlock)(`div`,j,[((0,s.openBlock)(!0),(0,s.createElementBlock)(s.Fragment,null,(0,s.renderList)(q.value,e=>((0,s.openBlock)(),(0,s.createElementBlock)(`div`,{class:`resource-item`,key:e.resource,onClick:t=>ie(e)},[(0,s.createVNode)((0,s.unref)(c.ElIcon),{size:`32px`},{default:(0,s.withCtx)(()=>[(0,s.createVNode)((0,s.unref)(l.Workflow))]),_:1}),(0,s.createElementVNode)(`div`,N,(0,s.toDisplayString)(e.name),1),(0,s.createVNode)((0,s.unref)(c.ElIcon),null,{default:(0,s.withCtx)(()=>[(0,s.createVNode)((0,s.unref)(l.IconGoto3))]),_:1})],8,M))),128))])):(0,s.createCommentVNode)(``,!0)])):(0,s.createCommentVNode)(``,!0)]),_:1},8,[`title`]))}},I=i.t(F,[[`__scopeId`,`data-v-42e471bc`]]),L={class:`dialog-footer`},R=Object.assign({name:`AddOrEditSupplierDialog`},{__name:`AddOrEditSupplierDialog`,props:{showDeleteButton:{type:Boolean,default:!0}},emits:[`submit`,`success`],setup(e,{expose:n,emit:i}){let{t:l}=t.m(),{addModel:u,updateModel:h}=d(),g=(0,s.ref)(null),_=(0,s.ref)([]),v=(0,s.ref)(!1),y=(0,s.ref)(!1),{dialogRef:b,hideDialog:x,resetDialog:S}=a.n(y),C=(0,s.ref)(!1),w=(0,s.ref)(``),T=(0,s.computed)(()=>C.value?l(`COMMON_MODEL_LIBRARY.EDIT_MODEL`):l(`COMMON_MODEL_LIBRARY.ADD_MODEL`)),E=(0,s.ref)(``),D=(0,s.reactive)({name:``,code:``,type:``,description:``,supportFunctionCall:p.supported,apiKey:``,apiUrl:``,bnid:null,maxTokens:2e6,contextLength:2e6,icon:`0`,avatarUrl:``}),O=(0,s.ref)(!D.bnid),k={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:(e,t,n)=>{t&&/\s/.test(t)?n(Error(l(`COMMON_MODEL_LIBRARY.MODEL_NAME_NO_SPACE`))):n()},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:(e,t,n)=>{t&&/\s/.test(t)?n(Error(l(`COMMON_MODEL_LIBRARY.MODEL_CODE_NO_SPACE`))):n()},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:(e,t,n)=>{if(!t){n();return}try{let e=new URL(t);if(e.protocol!==`http:`&&e.protocol!==`https:`){n(Error(l(`COMMON_MODEL_LIBRARY.API_URL_INVALID`)));return}n()}catch{n(Error(l(`COMMON_MODEL_LIBRARY.API_URL_INVALID_DESC`)))}},trigger:`blur`}]},A=i,j=(e=null)=>{Object.assign(D,{name:``,code:``,type:``,description:``,supportFunctionCall:p.supported,maxTokens:2e6,contextLength:2e6,supplier:``,apiKey:``,apiUrl:``,bnid:null,avatarUrl:``,icon:`0`}),w.value=e?.rowData?.bnid||``,e?.rowData?(e.rowData.apiKey||(v.value=!0),Object.assign(D,e.rowData),E.value=e.rowData.apiUrl||``):E.value=``,_.value=[],e?(D.supplier=e.supplier||``,C.value=e.isEditDialog??!1,e.rowData?.icon&&e.rowData.icon!==`0`&&e.rowData?.avatarUrl&&(_.value=[{bnid:e.rowData.icon,url:e.rowData.avatarUrl}])):C.value=!1,b.value?.showDialog()},M=e=>{e>2e9?D.maxTokens=2e9:D.maxTokens=e},N=e=>{e>2e9?D.contextLength=2e9:D.contextLength=e},P=async()=>{g.value&&await g.value.validate(async e=>{if(e){y.value=!0;let e=2e9,t=Number(D.maxTokens),n=Number(D.contextLength);t=Math.min(t,e),n=Math.min(n,e);let r={name:D.name,code:D.code,icon:D.icon,type:D.type,description:D.description,supportFunctionCall:D.supportFunctionCall,maxTokens:t,contextLength:n,apiKey:D.apiKey,apiUrl:D.apiUrl};C.value?await R(r):F(r)}else c.ElMessage.error(l(`COMMON_MODEL_LIBRARY.REQUIRED`))})},F=async e=>{try{(await u(e)).code===0&&(c.ElMessage.success(l(`COMMON_MODEL_LIBRARY.CREATE_MODEL_SUCCESS`)),x(),A(`submit`))}finally{y.value=!1}},R=async e=>{try{(await h(w.value,e)).code===0&&(c.ElMessage.success(l(`COMMON_MODEL_LIBRARY.UPDATE_MODEL_SUCCESS`)),x(),A(`submit`))}finally{y.value=!1}},z=()=>{O.value=!O.value},B=e=>{D.avatarUrl=e.url,D.icon=e.bnid,_.value=[e]},V=()=>{D.icon=`0`,_.value=[]},H=(0,s.ref)(null),U=()=>{H.value.showDeleteDialog(w.value)},W=()=>{x(),A(`success`)};return n({showDialog:j,hideDialog:x}),(t,n)=>((0,s.openBlock)(),(0,s.createElementBlock)(s.Fragment,null,[(0,s.createVNode)((0,s.unref)(a.t),{class:`custom-model-dialog`,ref_key:`dialogRef`,ref:b,title:T.value,width:`520px`,onClosed:(0,s.unref)(S)},{footer:(0,s.withCtx)(()=>[(0,s.createElementVNode)(`div`,L,[C.value&&e.showDeleteButton?((0,s.openBlock)(),(0,s.createBlock)((0,s.unref)(c.ElButton),{key:0,style:{float:`left`},type:`danger`,onClick:U},{default:(0,s.withCtx)(()=>[(0,s.createTextVNode)((0,s.toDisplayString)((0,s.unref)(l)(`COMMON_BUTTON.DELETE_TEXT`)),1)]),_:1})):(0,s.createCommentVNode)(``,!0),(0,s.createVNode)((0,s.unref)(c.ElButton),{onClick:(0,s.unref)(x),plain:``},{default:(0,s.withCtx)(()=>[(0,s.createTextVNode)((0,s.toDisplayString)((0,s.unref)(l)(`COMMON_BUTTON.CANCEL_TEXT`)),1)]),_:1},8,[`onClick`]),(0,s.createVNode)((0,s.unref)(c.ElButton),{type:`primary`,loading:y.value,onClick:P,disabled:y.value},{default:(0,s.withCtx)(()=>[(0,s.createTextVNode)((0,s.toDisplayString)(y.value?(0,s.unref)(l)(`COMMON_MODEL_LIBRARY.VALIDATION_LOADING`):(0,s.unref)(l)(`COMMON_BUTTON.CONFIRM_TEXT`)),1)]),_:1},8,[`loading`,`disabled`])])]),default:(0,s.withCtx)(()=>[(0,s.createVNode)((0,s.unref)(c.ElForm),{ref_key:`formRef`,ref:g,model:D,rules:k,"label-width":`auto`,class:`vertical-form`},{default:(0,s.withCtx)(()=>[(0,s.createVNode)((0,s.unref)(c.ElFormItem),{label:(0,s.unref)(l)(`COMMON_MODEL_LIBRARY.MODEL_NAME`),prop:`name`},{default:(0,s.withCtx)(()=>[(0,s.createVNode)((0,s.unref)(c.ElInput),{modelValue:D.name,"onUpdate:modelValue":n[0]||=e=>D.name=e,placeholder:(0,s.unref)(l)(`COMMON_MODEL_LIBRARY.MODEL_NAME_PLACEHOLDER`),maxlength:64},null,8,[`modelValue`,`placeholder`])]),_:1},8,[`label`]),(0,s.createVNode)((0,s.unref)(c.ElFormItem),{label:(0,s.unref)(l)(`COMMON_MODEL_LIBRARY.MODEL_CODE`),prop:`code`},{default:(0,s.withCtx)(()=>[(0,s.createVNode)((0,s.unref)(c.ElInput),{modelValue:D.code,"onUpdate:modelValue":n[1]||=e=>D.code=e,placeholder:(0,s.unref)(l)(`COMMON_MODEL_LIBRARY.MODEL_CODE_PLACEHOLDER`),maxlength:64},null,8,[`modelValue`,`placeholder`])]),_:1},8,[`label`]),(0,s.createVNode)((0,s.unref)(c.ElFormItem),{label:(0,s.unref)(l)(`COMMON_MODEL_LIBRARY.MODEL_AVATAR_URL`),prop:`avatarUrl`},{default:(0,s.withCtx)(()=>[(0,s.createVNode)((0,s.unref)(r.t),{fileList:_.value,previewType:`Card`,onOnRemove:V},{CardUploader:(0,s.withCtx)(()=>[_.value.length===0?((0,s.openBlock)(),(0,s.createBlock)((0,s.unref)(o.t),{key:0,limitSize:5,acceptType:`.jpg,.png`,defaultUploadIcon:`model`,onOnSuccess:B,businessType:`model`})):(0,s.createCommentVNode)(``,!0)]),_:1},8,[`fileList`])]),_:1},8,[`label`]),(0,s.createVNode)((0,s.unref)(c.ElFormItem),{label:(0,s.unref)(l)(`COMMON_MODEL_LIBRARY.MODEL_TYPE`),prop:`type`},{default:(0,s.withCtx)(()=>[(0,s.createVNode)((0,s.unref)(c.ElSelect),{modelValue:D.type,"onUpdate:modelValue":n[2]||=e=>D.type=e,placeholder:(0,s.unref)(l)(`COMMON_MODEL_LIBRARY.MODEL_TYPE_PLACEHOLDER`),style:{width:`100%`}},{default:(0,s.withCtx)(()=>[((0,s.openBlock)(!0),(0,s.createElementBlock)(s.Fragment,null,(0,s.renderList)((0,s.unref)(f),e=>((0,s.openBlock)(),(0,s.createBlock)((0,s.unref)(c.ElOption),{key:e.value,label:(0,s.unref)(l)(e.label),value:e.value},null,8,[`label`,`value`]))),128))]),_:1},8,[`modelValue`,`placeholder`])]),_:1},8,[`label`]),(0,s.createVNode)((0,s.unref)(c.ElFormItem),{label:(0,s.unref)(l)(`COMMON_MODEL_LIBRARY.MODEL_DESCRIPTION`),prop:`description`},{default:(0,s.withCtx)(()=>[(0,s.createVNode)((0,s.unref)(c.ElInput),{modelValue:D.description,"onUpdate:modelValue":n[3]||=e=>D.description=e,type:`textarea`,placeholder:(0,s.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`]),(0,s.createVNode)((0,s.unref)(c.ElFormItem),{label:(0,s.unref)(l)(`COMMON_MODEL_LIBRARY.MAX_TOKENS`),prop:`maxTokens`},{default:(0,s.withCtx)(()=>[(0,s.createVNode)((0,s.unref)(c.ElInput),{modelValue:D.maxTokens,"onUpdate:modelValue":n[4]||=e=>D.maxTokens=e,placeholder:(0,s.unref)(l)(`COMMON_MODEL_LIBRARY.MAX_TOKENS_PLACEHOLDER`),onInput:M},null,8,[`modelValue`,`placeholder`])]),_:1},8,[`label`]),(0,s.createVNode)((0,s.unref)(c.ElFormItem),{label:(0,s.unref)(l)(`COMMON_MODEL_LIBRARY.CONTEXT_LENGTH`),prop:`contextLength`},{default:(0,s.withCtx)(()=>[(0,s.createVNode)((0,s.unref)(c.ElInput),{modelValue:D.contextLength,"onUpdate:modelValue":n[5]||=e=>D.contextLength=e,placeholder:(0,s.unref)(l)(`COMMON_MODEL_LIBRARY.CONTEXT_LENGTH_PLACEHOLDER`),onInput:N},null,8,[`modelValue`,`placeholder`])]),_:1},8,[`label`]),(0,s.createVNode)((0,s.unref)(c.ElFormItem),{label:(0,s.unref)(l)(`COMMON_MODEL_LIBRARY.TOOL_CALLING`),prop:`supportFunctionCall`},{default:(0,s.withCtx)(()=>[(0,s.createVNode)((0,s.unref)(c.ElSelect),{modelValue:D.supportFunctionCall,"onUpdate:modelValue":n[6]||=e=>D.supportFunctionCall=e,placeholder:(0,s.unref)(l)(`COMMON_MODEL_LIBRARY.TOOL_CALLING_PLACEHOLDER`),style:{width:`100%`}},{default:(0,s.withCtx)(()=>[((0,s.openBlock)(!0),(0,s.createElementBlock)(s.Fragment,null,(0,s.renderList)((0,s.unref)(m),e=>((0,s.openBlock)(),(0,s.createBlock)((0,s.unref)(c.ElOption),{key:e.value,label:(0,s.unref)(l)(e.label),value:e.value},null,8,[`label`,`value`]))),128))]),_:1},8,[`modelValue`,`placeholder`])]),_:1},8,[`label`]),(0,s.createVNode)((0,s.unref)(c.ElFormItem),{label:(0,s.unref)(l)(`COMMON_MODEL_LIBRARY.API_KEY`),prop:`apiKey`},{default:(0,s.withCtx)(()=>[(0,s.createVNode)((0,s.unref)(c.ElInput),{modelValue:D.apiKey,"onUpdate:modelValue":n[7]||=e=>D.apiKey=e,placeholder:(0,s.unref)(l)(`COMMON_MODEL_LIBRARY.API_KEY_PLACEHOLDER`),type:O.value?`text`:`password`},{suffix:(0,s.withCtx)(()=>[(0,s.createVNode)((0,s.unref)(c.ElIcon),{class:`cursor-pointer`,onClick:z},{default:(0,s.withCtx)(()=>[((0,s.openBlock)(),(0,s.createBlock)((0,s.resolveDynamicComponent)(O.value?`IconLook`:`IconHide`)))]),_:1})]),_:1},8,[`modelValue`,`placeholder`,`type`])]),_:1},8,[`label`]),(0,s.createVNode)((0,s.unref)(c.ElFormItem),{label:(0,s.unref)(l)(`COMMON_MODEL_LIBRARY.API_URL`),prop:`apiUrl`},{default:(0,s.withCtx)(()=>[(0,s.createVNode)((0,s.unref)(c.ElInput),{modelValue:D.apiUrl,"onUpdate:modelValue":n[8]||=e=>D.apiUrl=e,placeholder:(0,s.unref)(l)(`COMMON_MODEL_LIBRARY.API_URL_PLACEHOLDER`),disabled:!!E.value},null,8,[`modelValue`,`placeholder`,`disabled`])]),_:1},8,[`label`])]),_:1},8,[`model`])]),_:1},8,[`title`,`onClosed`]),(0,s.createVNode)(I,{ref_key:`deleteResourceDialog`,ref:H,deleteType:`model`,onSuccess:W},null,512)],64))}}),z=i.t(R,[[`__scopeId`,`data-v-e1555473`]]),B=e.t(z);Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return p}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return I}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return m}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return x}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return B}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
require(`./chunk.BbA6Ugdl.js`);require('../assets/CommonTagsList.css');const e=require(`./withinstall.65aRnaVc.js`),t=require(`./i18n.BGe5gOau.js`),n=require(`./_plugin-vue_export-helper.Bgn9wawX.js`),r=require(`./config.CZl1kYtI.js`),i=require(`./AvailableRangePreview.DvREyHNH.js`),a=require(`./config.CDNV0bUm.js`);let o=require(`vue`),s=require(`element-plus`);var c={class:`status-tag-content flex items-center`},l={class:`status-text fz-12`},u={__name:`StatusTag`,props:{channelStatus:{type:[String,Number],default:null},statusText:{type:String,default:null},showIcon:{type:Boolean,default:!1}},setup(e){let t=e,n=(0,o.computed)(()=>a.f[t.channelStatus]),r=(0,o.computed)(()=>a.d[t.channelStatus]),i=(0,o.computed)(()=>a.u[t.channelStatus]),u=(0,o.computed)(()=>a.l[t.channelStatus]);return(t,a)=>((0,o.openBlock)(),(0,o.createBlock)((0,o.unref)(s.ElTag),{type:n.value},{default:(0,o.withCtx)(()=>[(0,o.createElementVNode)(`div`,c,[e.showIcon&&i.value?((0,o.openBlock)(),(0,o.createBlock)((0,o.unref)(s.ElIcon),{key:0,color:u.value},{default:(0,o.withCtx)(()=>[((0,o.openBlock)(),(0,o.createBlock)((0,o.resolveDynamicComponent)(i.value)))]),_:1},8,[`color`])):(0,o.createCommentVNode)(``,!0),(0,o.createElementVNode)(`span`,l,(0,o.toDisplayString)(e.statusText||r.value),1)])]),_:1},8,[`type`]))}},d=n.t(u,[[`__scopeId`,`data-v-1efeeed8`]]),f={class:`commont-status-box`},p={class:`common-content w-full overflow-y-auto`,style:{"max-height":`200px`}},m={key:0,class:`content-item`},h={class:`content-item-top flex items-center`},g={class:`item-bottom-box mg-l-4 pd-t-8 flex flex-wrap`},_={key:1,class:`icon-placeholder w-full mg-t-4 mg-b-8 bg-e6e8ea`,style:{height:`1px`}},v={key:0,class:`all-visible-ranges-section mg-t-12`},y={class:`channel-name fz-12 weight-500 mg-b-4 text-1f2329 flex items-center`},b={key:0,class:`range-separator w-full mg-t-8 mg-b-8 bg-e6e8ea`,style:{height:`1px`}},x=Object.assign({name:`CommonTagsList`},{__name:`layout`,props:{publishChannelList:{type:Array,default:()=>[]},sourceType:{type:[String,Number],default:null}},setup(e){let{t:n}=t.m(),c=e,l=(0,o.computed)(()=>{let e=c.publishChannelList||[],t=e.filter(e=>e.channelStatus===r.r.PUBLISHED).map(e=>({...e,displayText:a.m?.[e.channelType]?.name(c.sourceType)||``})),n=e.filter(e=>e.channelStatus!==r.r.PUBLISHED).reduce((e,t)=>{let n=t.channelStatus;return e[n]||(e[n]=[]),e[n].push(t),e},{}),i=Object.entries(n).map(([e,t])=>({channelStatus:parseInt(e),displayText:`${a.d[parseInt(e)]}(${t.length})`,isGroup:!0,channels:t})).sort((e,t)=>t.channelStatus-e.channelStatus);return[...t,...i]}),u=(0,o.computed)(()=>{if(!c.publishChannelList?.length)return[];let e=c.publishChannelList.reduce((e,t)=>{let n=t.channelStatus;return e[n]||(e[n]=[]),e[n].push(t),e},{});return Object.entries(e).map(([e,t])=>({status:parseInt(e),channels:t})).sort((e,t)=>e.status===r.r.PUBLISHED?-1:t.status===r.r.PUBLISHED?1:t.status-e.status)}),x=(0,o.computed)(()=>{if(!c.publishChannelList?.length)return[];let e=n(`COMMON_TAGS_LIST.UNKNOWN_CHANNEL`);return c.publishChannelList.filter(e=>!e.visibleScope||e.visibleScope.length===0?!1:e.channelStatus===r.r.PUBLISHED).map(t=>({channelName:a.m[t.channelType]?.name(c.sourceType)||e,channelType:t.channelType,visibleScope:t.visibleScope,allVisible:t.allVisible}))}),S=e=>a.r[a.p[e]];return(t,c)=>((0,o.openBlock)(),(0,o.createElementBlock)(`div`,f,[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(l.value,(t,r)=>((0,o.openBlock)(),(0,o.createBlock)((0,o.unref)(s.ElPopover),{key:r,placement:`bottom`,trigger:`click`,width:`300`},{reference:(0,o.withCtx)(()=>[(0,o.createVNode)(d,{onClick:c[0]||=(0,o.withModifiers)(()=>{},[`stop`]),"channel-status":t.channelStatus,"status-text":t.displayText,"show-icon":!0,class:`mg-r-4 mg-b-4`},null,8,[`channel-status`,`status-text`])]),default:(0,o.withCtx)(()=>[(0,o.createElementVNode)(`div`,p,[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(u.value,(t,n)=>((0,o.openBlock)(),(0,o.createElementBlock)(o.Fragment,{key:t.status},[t.channels.length>0?((0,o.openBlock)(),(0,o.createElementBlock)(`div`,m,[(0,o.createElementVNode)(`div`,h,[(0,o.createVNode)((0,o.unref)(s.ElIcon),{style:(0,o.normalizeStyle)({color:(0,o.unref)(a.l)[t.status]})},{default:(0,o.withCtx)(()=>[((0,o.openBlock)(),(0,o.createBlock)((0,o.resolveDynamicComponent)((0,o.unref)(a.u)[t.status])))]),_:2},1032,[`style`]),(0,o.createElementVNode)(`div`,{class:`content-item-name fz-14 mg-l-4`,style:(0,o.normalizeStyle)({color:(0,o.unref)(a.l)[t.status]})},(0,o.toDisplayString)((0,o.unref)(a.d)[t.status])+`(`+(0,o.toDisplayString)(t.channels.length)+`) `,5)]),(0,o.createElementVNode)(`div`,g,[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(t.channels,t=>((0,o.openBlock)(),(0,o.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},(0,o.toDisplayString)((0,o.unref)(a.m)?.[t.channelType]?.name(e.sourceType)),1))),128))])])):(0,o.createCommentVNode)(``,!0),n<u.value.length-1?((0,o.openBlock)(),(0,o.createElementBlock)(`div`,_)):(0,o.createCommentVNode)(``,!0)],64))),128)),x.value.length>0?((0,o.openBlock)(),(0,o.createElementBlock)(`div`,v,[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(x.value,(e,t)=>((0,o.openBlock)(),(0,o.createElementBlock)(`div`,{key:e.channelType,class:`channel-visible-range`},[(0,o.createElementVNode)(`div`,y,[(0,o.createVNode)((0,o.unref)(s.ElIcon),{class:`mg-r-2`,size:`14`,color:S(e.channelType)?.iconColor},{default:(0,o.withCtx)(()=>[((0,o.openBlock)(),(0,o.createBlock)((0,o.resolveDynamicComponent)(S(e.channelType)?.icon)))]),_:2},1032,[`color`]),(0,o.createTextVNode)(` `+(0,o.toDisplayString)(e.channelName)+` `+(0,o.toDisplayString)((0,o.unref)(n)(`COMMON_TAGS_LIST.AVAILABLE_SCOPE`)),1)]),(0,o.createVNode)((0,o.unref)(i.t),{"all-visible":e.allVisible,"model-value":e.visibleScope,"tree-list":[],readonly:!0},null,8,[`all-visible`,`model-value`]),t<x.value.length-1?((0,o.openBlock)(),(0,o.createElementBlock)(`div`,b)):(0,o.createCommentVNode)(``,!0)]))),128))])):(0,o.createCommentVNode)(``,!0)])]),_:2},1024))),128)),e.publishChannelList?.length?(0,o.createCommentVNode)(``,!0):((0,o.openBlock)(),(0,o.createBlock)((0,o.unref)(s.ElTag),{key:0,type:(0,o.unref)(a.f)[(0,o.unref)(r.r).UNPUBLISHED]},{default:(0,o.withCtx)(()=>[(0,o.createTextVNode)((0,o.toDisplayString)((0,o.unref)(a.d)[(0,o.unref)(r.r).UNPUBLISHED]),1)]),_:1},8,[`type`]))]))}}),S=e.t(x);Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return d}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return S}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
require(`./chunk.BbA6Ugdl.js`);require('../assets/CreateMcpForm.css');const e=require(`./withinstall.65aRnaVc.js`),t=require(`./i18n.BGe5gOau.js`),n=require(`./usePreview.Dmhz8azZ.js`),r=require(`./FilePreview.b1Gine59.js`),i=require(`./_plugin-vue_export-helper.Bgn9wawX.js`),a=require(`./FileUploader.6IW_QL-h.js`),o=require(`./RadioGroup.cl57IvY3.js`),s=require(`./AuthSection.CP9c-YTW.js`),c=require(`./MdEditor.rVQbuxCg.js`);let l=require(`vue`),u=require(`element-plus`),d=require(`color-message-aibox-vue`);var f=()=>{let{t:e}=t.m();return{rulesObj:{name:[{required:!0,message:e(`LIBRARY_CREATEMCPFORM.MCP_NAME_PLACEHOLDER`),trigger:`blur`},{max:20,message:e(`LIBRARY_CREATEMCPFORM.MCP_NAME_MAX`),trigger:`blur`}],description:[{required:!0,message:e(`LIBRARY_CREATEMCPFORM.MCP_DESCRIPTION_REQUIRED`),trigger:`blur`},{max:200,message:e(`LIBRARY_CREATEMCPFORM.MCP_DESCRIPTION_MAX`),trigger:`blur`}],overview:[{required:!0,message:e(`LIBRARY_CREATEMCPFORM.MCP_OVERVIEW_REQUIRED`),trigger:`blur`}],address:[{type:`url`,required:!0,message:e(`LIBRARY_CREATEMCPFORM.SERVICE_URL_INVALID`),trigger:[`blur`,`change`]}],communicationType:[{required:!0,message:e(`LIBRARY_CREATEMCPFORM.TRANSFER_METHOD_REQUIRED`),trigger:`change`}],applyLink:[{type:`url`,message:e(`LIBRARY_CREATEMCPFORM.DOCUMENTATION_URL_INVALID`),trigger:[`blur`,`change`]}]},communicationTypeOpts:[{label:`SSE`,value:`SSE`},{label:`Streamable HTTP`,value:`HTTP`}]}},p={class:`label-with-icon`},m={class:`label-with-icon`},h={class:`auth-section-wrapper`},g={__name:`CreateMcpForm`,props:{showOverview:{type:Boolean,default:!1}},setup(e,{expose:i}){let g=e,{t:_}=t.m(),{previewImage:v}=n.t(),y=(0,l.ref)(null),b=(0,l.ref)(null),{rulesObj:x,communicationTypeOpts:S}=f(),C=(0,l.reactive)({icon:``,iconUrl:``,name:``,description:``,overview:``,communicationType:`HTTP`,address:``,applyLink:``}),w=(0,l.ref)(S),T=(0,l.ref)({auth:{authType:`none`,keyType:`custom`,paramLocation:`header`,paramName:``,paramValue:``,token:``}}),E=(0,l.ref)({...x}),D=()=>{g.showOverview?E.value.overview=x.overview:delete E.value.overview};(0,l.watch)(()=>g.showOverview,()=>{D()},{immediate:!0});let O=(0,l.ref)([]),k=e=>{C.iconUrl=e.url,C.icon=e.bnid,O.value=[e]},A=()=>{C.iconUrl=``,C.icon=``,O.value=[]},j=e=>{v(e.url)};return i({validate:async e=>{if(!y.value)return!1;if(D(),b.value?.validateField){let t=b.value.validateField();if(Object.keys(t).length>0)return t.paramName?u.ElMessage.error(_(`LIBRARY_CREATEMCPFORM.PARAMETER_NAME_REQUIRED`)||`请输入密钥参数名`):t.paramValue||t.token?u.ElMessage.error(_(`LIBRARY_CREATEMCPFORM.INPUT_API_KEY_REQUIRED`)||`请输入密钥值`):u.ElMessage.error(_(`LIBRARY_CREATEMCPFORM.MCP_AUTH_REQUIRED`)||`请完善鉴权信息`),e?.(Error(_(`LIBRARY_CREATEMCPFORM.MCP_AUTH_REQUIRED`)||`请完善鉴权信息`)),!1}return y.value.validate(e)},getFormData:()=>({name:C.name,icon:C.icon,description:C.description,overview:g.showOverview?C.overview:``,address:C.address,communicationType:C.communicationType,authType:T.value.auth.authType===`none`?0:1,authLocation:T.value.auth.paramLocation===`header`?0:1,apiKeyName:T.value.auth.keyType===`bearer`?`Authorization`:T.value.auth.paramName||``,apiKeyValue:T.value.auth.keyType===`bearer`?T.value.auth.token?`Bearer ${T.value.auth.token}`:``:T.value.auth.paramValue||``,applyLink:C.applyLink||``,headerPrefixType:1}),setFormData:e=>{if(!e)return;Object.assign(C,{name:e.name||``,description:e.description||``,overview:e.overview||``,icon:e.icon||``,iconUrl:e.iconUrl||``,communicationType:e.communicationType||`SSE`,address:e.address||``,applyLink:e.applyLink||``});let t=e.authType===1||e.authType===`1`;if(T.value.auth.authType=t?`apiKey`:`none`,T.value.auth.paramLocation=e.authLocation===0||e.authLocation===`0`?`header`:`query`,t){let t=!e.apiKeyName||e.apiKeyName===`Authorization`;if(T.value.auth.keyType=t?`bearer`:`custom`,t){T.value.auth.paramName=``,T.value.auth.paramValue=``;let t=e.apiKeyValue||``;T.value.auth.token=t.startsWith(`Bearer `)?t.substring(7):t}else T.value.auth.paramName=e.apiKeyName||``,T.value.auth.paramValue=e.apiKeyValue||``,T.value.auth.token=``}else T.value.auth.keyType=`custom`,T.value.auth.paramName=``,T.value.auth.paramValue=``,T.value.auth.token=``;e.icon&&e.icon!==`0`&&e.iconUrl&&(O.value=[{bnid:e.icon,url:e.iconUrl}])}}),(t,n)=>((0,l.openBlock)(),(0,l.createBlock)((0,l.unref)(u.ElForm),{ref_key:`ruleFormRef`,ref:y,model:C,rules:E.value,"label-width":`auto`,"label-position":`top`,class:`scrollable-form`},{default:(0,l.withCtx)(()=>[(0,l.createVNode)((0,l.unref)(u.ElFormItem),{class:`scrollable-form__item`,label:(0,l.unref)(_)(`LIBRARY_CREATEMCPFORM.MCP_ICON`),prop:`icon`},{label:(0,l.withCtx)(()=>[(0,l.createElementVNode)(`div`,p,[(0,l.createElementVNode)(`span`,null,(0,l.toDisplayString)((0,l.unref)(_)(`LIBRARY_CREATEMCPFORM.MCP_ICON`)),1),(0,l.createVNode)((0,l.unref)(u.ElTooltip),{placement:`top`},{content:(0,l.withCtx)(()=>[(0,l.createTextVNode)((0,l.toDisplayString)((0,l.unref)(_)(`LIBRARY_CREATEMCPFORM.MCP_ICON_TIP`)),1),n[7]||=(0,l.createElementVNode)(`br`,null,null,-1),(0,l.createTextVNode)(` `+(0,l.toDisplayString)((0,l.unref)(_)(`LIBRARY_CREATEMCPFORM.MCP_ICON_SIZE_TIP`)),1)]),default:(0,l.withCtx)(()=>[(0,l.createVNode)((0,l.unref)(u.ElIcon),{size:`14px`,color:`#999`},{default:(0,l.withCtx)(()=>[(0,l.createVNode)((0,l.unref)(d.IconTip))]),_:1})]),_:1})])]),default:(0,l.withCtx)(()=>[(0,l.createVNode)((0,l.unref)(r.t),{fileList:O.value,previewType:`Card`,isCustom:!0,onOnRemove:A,onOnPreview:j},{CardUploader:(0,l.withCtx)(()=>[O.value.length===0?((0,l.openBlock)(),(0,l.createBlock)((0,l.unref)(a.t),{key:0,"upload-type":`Card`,onOnSuccess:k,limitSize:5,acceptType:`.jpg,.png`,businessType:`mcp`,defaultUploadIcon:`mcp`})):(0,l.createCommentVNode)(``,!0)]),_:1},8,[`fileList`])]),_:1},8,[`label`]),(0,l.createVNode)((0,l.unref)(u.ElFormItem),{class:`scrollable-form__item`,label:(0,l.unref)(_)(`LIBRARY_CREATEMCPFORM.MCP_NAME`),prop:`name`},{default:(0,l.withCtx)(()=>[(0,l.createVNode)((0,l.unref)(u.ElInput),{modelValue:C.name,"onUpdate:modelValue":n[0]||=e=>C.name=e,placeholder:(0,l.unref)(_)(`LIBRARY_CREATEMCPFORM.MCP_NAME_REQUIRED`),maxlength:`20`,"show-word-limit":``},null,8,[`modelValue`,`placeholder`])]),_:1},8,[`label`]),(0,l.createVNode)((0,l.unref)(u.ElFormItem),{class:`scrollable-form__item`,label:(0,l.unref)(_)(`LIBRARY_CREATEMCPFORM.MCP_DESCRIPTION`),prop:`description`},{default:(0,l.withCtx)(()=>[(0,l.createVNode)((0,l.unref)(u.ElInput),{modelValue:C.description,"onUpdate:modelValue":n[1]||=e=>C.description=e,type:`textarea`,rows:3,placeholder:(0,l.unref)(_)(`LIBRARY_CREATEMCPFORM.MCP_DESCRIPTION_REQUIRED`),maxlength:`200`,"show-word-limit":``},null,8,[`modelValue`,`placeholder`])]),_:1},8,[`label`]),e.showOverview?((0,l.openBlock)(),(0,l.createBlock)((0,l.unref)(u.ElFormItem),{key:0,class:`scrollable-form__item`,label:(0,l.unref)(_)(`LIBRARY_CREATEMCPFORM.MCP_OVERVIEW`),prop:`overview`},{default:(0,l.withCtx)(()=>[(0,l.createVNode)((0,l.unref)(c.t),{modelValue:C.overview,"onUpdate:modelValue":n[2]||=e=>C.overview=e,height:`300px`,placeholder:(0,l.unref)(_)(`LIBRARY_CREATEMCPFORM.MCP_OVERVIEW_REQUIRED`),businessType:`mcp`},null,8,[`modelValue`,`placeholder`])]),_:1},8,[`label`])):(0,l.createCommentVNode)(``,!0),(0,l.createVNode)((0,l.unref)(u.ElFormItem),{class:`scrollable-form__item`,label:(0,l.unref)(_)(`LIBRARY_CREATEMCPFORM.TRANSFER_METHOD`),prop:`communicationType`},{default:(0,l.withCtx)(()=>[(0,l.createVNode)((0,l.unref)(o.t),{modelValue:C.communicationType,"onUpdate:modelValue":n[3]||=e=>C.communicationType=e,options:w.value,layout:`vertical`,"class-name":`scrollable-form__item-radio`},null,8,[`modelValue`,`options`])]),_:1},8,[`label`]),(0,l.createVNode)((0,l.unref)(u.ElFormItem),{class:`scrollable-form__item`,label:(0,l.unref)(_)(`LIBRARY_CREATEMCPFORM.SERVICE_URL`),prop:`address`},{default:(0,l.withCtx)(()=>[(0,l.createVNode)((0,l.unref)(u.ElInput),{modelValue:C.address,"onUpdate:modelValue":n[4]||=e=>C.address=e,placeholder:(0,l.unref)(_)(`LIBRARY_CREATEMCPFORM.SERVICE_URL_REQUIRED`)},null,8,[`modelValue`,`placeholder`])]),_:1},8,[`label`]),T.value.auth.authType===`apiKey`?((0,l.openBlock)(),(0,l.createBlock)((0,l.unref)(u.ElFormItem),{key:1,class:`scrollable-form__item`,prop:`applyLink`},{label:(0,l.withCtx)(()=>[(0,l.createElementVNode)(`div`,m,[(0,l.createElementVNode)(`span`,null,(0,l.toDisplayString)((0,l.unref)(_)(`LIBRARY_CREATEMCPFORM.DOCUMENTATION_URL`)),1),(0,l.createVNode)((0,l.unref)(u.ElTooltip),{placement:`top`},{content:(0,l.withCtx)(()=>[(0,l.createTextVNode)((0,l.toDisplayString)((0,l.unref)(_)(`LIBRARY_CREATEMCPFORM.DOCUMENTATION_URL_TIP`)),1)]),default:(0,l.withCtx)(()=>[(0,l.createVNode)((0,l.unref)(u.ElIcon),{size:`14px`,color:`#999`},{default:(0,l.withCtx)(()=>[(0,l.createVNode)((0,l.unref)(d.IconTip))]),_:1})]),_:1})])]),default:(0,l.withCtx)(()=>[(0,l.createVNode)((0,l.unref)(u.ElInput),{modelValue:C.applyLink,"onUpdate:modelValue":n[5]||=e=>C.applyLink=e,placeholder:(0,l.unref)(_)(`LIBRARY_CREATEMCPFORM.DOCUMENTATION_URL_REQUIRED`)},null,8,[`modelValue`,`placeholder`])]),_:1})):(0,l.createCommentVNode)(``,!0),(0,l.createElementVNode)(`div`,h,[(0,l.createVNode)((0,l.unref)(s.t),{ref_key:`authSectionRef`,ref:b,featData:T.value,"onUpdate:featData":n[6]||=e=>T.value=e,layout:`vertical`},null,8,[`featData`])])]),_:1},8,[`model`,`rules`]))}},_=i.t(g,[[`__scopeId`,`data-v-b8579cd8`]]),v=e.t(_);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return v}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
require(`./chunk.BbA6Ugdl.js`);require('../assets/CreateMcpForm.css');const e=require(`./withinstall.65aRnaVc.js`),t=require(`./i18n.BGe5gOau.js`),n=require(`./usePreview.7CCbmgQM.js`),r=require(`./FilePreview.DX9e8_nx.js`),i=require(`./_plugin-vue_export-helper.Bgn9wawX.js`),a=require(`./FileUploader.6IW_QL-h.js`),o=require(`./RadioGroup.cl57IvY3.js`),s=require(`./AuthSection.CP9c-YTW.js`),c=require(`./MdEditor.rVQbuxCg.js`);let l=require(`vue`),u=require(`element-plus`),d=require(`color-message-aibox-vue`);var f=()=>{let{t:e}=t.m();return{rulesObj:{name:[{required:!0,message:e(`LIBRARY_CREATEMCPFORM.MCP_NAME_PLACEHOLDER`),trigger:`blur`},{max:20,message:e(`LIBRARY_CREATEMCPFORM.MCP_NAME_MAX`),trigger:`blur`}],description:[{required:!0,message:e(`LIBRARY_CREATEMCPFORM.MCP_DESCRIPTION_REQUIRED`),trigger:`blur`},{max:200,message:e(`LIBRARY_CREATEMCPFORM.MCP_DESCRIPTION_MAX`),trigger:`blur`}],overview:[{required:!0,message:e(`LIBRARY_CREATEMCPFORM.MCP_OVERVIEW_REQUIRED`),trigger:`blur`}],address:[{type:`url`,required:!0,message:e(`LIBRARY_CREATEMCPFORM.SERVICE_URL_INVALID`),trigger:[`blur`,`change`]}],communicationType:[{required:!0,message:e(`LIBRARY_CREATEMCPFORM.TRANSFER_METHOD_REQUIRED`),trigger:`change`}],applyLink:[{type:`url`,message:e(`LIBRARY_CREATEMCPFORM.DOCUMENTATION_URL_INVALID`),trigger:[`blur`,`change`]}]},communicationTypeOpts:[{label:`SSE`,value:`SSE`},{label:`Streamable HTTP`,value:`HTTP`}]}},p={class:`label-with-icon`},m={class:`label-with-icon`},h={class:`auth-section-wrapper`},g={__name:`CreateMcpForm`,props:{showOverview:{type:Boolean,default:!1}},setup(e,{expose:i}){let g=e,{t:_}=t.m(),{previewImage:v}=n.t(),y=(0,l.ref)(null),b=(0,l.ref)(null),{rulesObj:x,communicationTypeOpts:S}=f(),C=(0,l.reactive)({icon:``,iconUrl:``,name:``,description:``,overview:``,communicationType:`HTTP`,address:``,applyLink:``}),w=(0,l.ref)(S),T=(0,l.ref)({auth:{authType:`none`,keyType:`custom`,paramLocation:`header`,paramName:``,paramValue:``,token:``}}),E=(0,l.ref)({...x}),D=()=>{g.showOverview?E.value.overview=x.overview:delete E.value.overview};(0,l.watch)(()=>g.showOverview,()=>{D()},{immediate:!0});let O=(0,l.ref)([]),k=e=>{C.iconUrl=e.url,C.icon=e.bnid,O.value=[e]},A=()=>{C.iconUrl=``,C.icon=``,O.value=[]},j=e=>{v(e.url)};return i({validate:async e=>{if(!y.value)return!1;if(D(),b.value?.validateField){let t=b.value.validateField();if(Object.keys(t).length>0)return t.paramName?u.ElMessage.error(_(`LIBRARY_CREATEMCPFORM.PARAMETER_NAME_REQUIRED`)||`请输入密钥参数名`):t.paramValue||t.token?u.ElMessage.error(_(`LIBRARY_CREATEMCPFORM.INPUT_API_KEY_REQUIRED`)||`请输入密钥值`):u.ElMessage.error(_(`LIBRARY_CREATEMCPFORM.MCP_AUTH_REQUIRED`)||`请完善鉴权信息`),e?.(Error(_(`LIBRARY_CREATEMCPFORM.MCP_AUTH_REQUIRED`)||`请完善鉴权信息`)),!1}return y.value.validate(e)},getFormData:()=>({name:C.name,icon:C.icon,description:C.description,overview:g.showOverview?C.overview:``,address:C.address,communicationType:C.communicationType,authType:T.value.auth.authType===`none`?0:1,authLocation:T.value.auth.paramLocation===`header`?0:1,apiKeyName:T.value.auth.keyType===`bearer`?`Authorization`:T.value.auth.paramName||``,apiKeyValue:T.value.auth.keyType===`bearer`?T.value.auth.token?`Bearer ${T.value.auth.token}`:``:T.value.auth.paramValue||``,applyLink:C.applyLink||``,headerPrefixType:1}),setFormData:e=>{if(!e)return;Object.assign(C,{name:e.name||``,description:e.description||``,overview:e.overview||``,icon:e.icon||``,iconUrl:e.iconUrl||``,communicationType:e.communicationType||`SSE`,address:e.address||``,applyLink:e.applyLink||``});let t=e.authType===1||e.authType===`1`;if(T.value.auth.authType=t?`apiKey`:`none`,T.value.auth.paramLocation=e.authLocation===0||e.authLocation===`0`?`header`:`query`,t){let t=!e.apiKeyName||e.apiKeyName===`Authorization`;if(T.value.auth.keyType=t?`bearer`:`custom`,t){T.value.auth.paramName=``,T.value.auth.paramValue=``;let t=e.apiKeyValue||``;T.value.auth.token=t.startsWith(`Bearer `)?t.substring(7):t}else T.value.auth.paramName=e.apiKeyName||``,T.value.auth.paramValue=e.apiKeyValue||``,T.value.auth.token=``}else T.value.auth.keyType=`custom`,T.value.auth.paramName=``,T.value.auth.paramValue=``,T.value.auth.token=``;e.icon&&e.icon!==`0`&&e.iconUrl&&(O.value=[{bnid:e.icon,url:e.iconUrl}])}}),(t,n)=>((0,l.openBlock)(),(0,l.createBlock)((0,l.unref)(u.ElForm),{ref_key:`ruleFormRef`,ref:y,model:C,rules:E.value,"label-width":`auto`,"label-position":`top`,class:`scrollable-form`},{default:(0,l.withCtx)(()=>[(0,l.createVNode)((0,l.unref)(u.ElFormItem),{class:`scrollable-form__item`,label:(0,l.unref)(_)(`LIBRARY_CREATEMCPFORM.MCP_ICON`),prop:`icon`},{label:(0,l.withCtx)(()=>[(0,l.createElementVNode)(`div`,p,[(0,l.createElementVNode)(`span`,null,(0,l.toDisplayString)((0,l.unref)(_)(`LIBRARY_CREATEMCPFORM.MCP_ICON`)),1),(0,l.createVNode)((0,l.unref)(u.ElTooltip),{placement:`top`},{content:(0,l.withCtx)(()=>[(0,l.createTextVNode)((0,l.toDisplayString)((0,l.unref)(_)(`LIBRARY_CREATEMCPFORM.MCP_ICON_TIP`)),1),n[7]||=(0,l.createElementVNode)(`br`,null,null,-1),(0,l.createTextVNode)(` `+(0,l.toDisplayString)((0,l.unref)(_)(`LIBRARY_CREATEMCPFORM.MCP_ICON_SIZE_TIP`)),1)]),default:(0,l.withCtx)(()=>[(0,l.createVNode)((0,l.unref)(u.ElIcon),{size:`14px`,color:`#999`},{default:(0,l.withCtx)(()=>[(0,l.createVNode)((0,l.unref)(d.IconTip))]),_:1})]),_:1})])]),default:(0,l.withCtx)(()=>[(0,l.createVNode)((0,l.unref)(r.t),{fileList:O.value,previewType:`Card`,isCustom:!0,onOnRemove:A,onOnPreview:j},{CardUploader:(0,l.withCtx)(()=>[O.value.length===0?((0,l.openBlock)(),(0,l.createBlock)((0,l.unref)(a.t),{key:0,"upload-type":`Card`,onOnSuccess:k,limitSize:5,acceptType:`.jpg,.png`,businessType:`mcp`,defaultUploadIcon:`mcp`})):(0,l.createCommentVNode)(``,!0)]),_:1},8,[`fileList`])]),_:1},8,[`label`]),(0,l.createVNode)((0,l.unref)(u.ElFormItem),{class:`scrollable-form__item`,label:(0,l.unref)(_)(`LIBRARY_CREATEMCPFORM.MCP_NAME`),prop:`name`},{default:(0,l.withCtx)(()=>[(0,l.createVNode)((0,l.unref)(u.ElInput),{modelValue:C.name,"onUpdate:modelValue":n[0]||=e=>C.name=e,placeholder:(0,l.unref)(_)(`LIBRARY_CREATEMCPFORM.MCP_NAME_REQUIRED`),maxlength:`20`,"show-word-limit":``},null,8,[`modelValue`,`placeholder`])]),_:1},8,[`label`]),(0,l.createVNode)((0,l.unref)(u.ElFormItem),{class:`scrollable-form__item`,label:(0,l.unref)(_)(`LIBRARY_CREATEMCPFORM.MCP_DESCRIPTION`),prop:`description`},{default:(0,l.withCtx)(()=>[(0,l.createVNode)((0,l.unref)(u.ElInput),{modelValue:C.description,"onUpdate:modelValue":n[1]||=e=>C.description=e,type:`textarea`,rows:3,placeholder:(0,l.unref)(_)(`LIBRARY_CREATEMCPFORM.MCP_DESCRIPTION_REQUIRED`),maxlength:`200`,"show-word-limit":``},null,8,[`modelValue`,`placeholder`])]),_:1},8,[`label`]),e.showOverview?((0,l.openBlock)(),(0,l.createBlock)((0,l.unref)(u.ElFormItem),{key:0,class:`scrollable-form__item`,label:(0,l.unref)(_)(`LIBRARY_CREATEMCPFORM.MCP_OVERVIEW`),prop:`overview`},{default:(0,l.withCtx)(()=>[(0,l.createVNode)((0,l.unref)(c.t),{modelValue:C.overview,"onUpdate:modelValue":n[2]||=e=>C.overview=e,height:`300px`,placeholder:(0,l.unref)(_)(`LIBRARY_CREATEMCPFORM.MCP_OVERVIEW_REQUIRED`),businessType:`mcp`},null,8,[`modelValue`,`placeholder`])]),_:1},8,[`label`])):(0,l.createCommentVNode)(``,!0),(0,l.createVNode)((0,l.unref)(u.ElFormItem),{class:`scrollable-form__item`,label:(0,l.unref)(_)(`LIBRARY_CREATEMCPFORM.TRANSFER_METHOD`),prop:`communicationType`},{default:(0,l.withCtx)(()=>[(0,l.createVNode)((0,l.unref)(o.t),{modelValue:C.communicationType,"onUpdate:modelValue":n[3]||=e=>C.communicationType=e,options:w.value,layout:`vertical`,"class-name":`scrollable-form__item-radio`},null,8,[`modelValue`,`options`])]),_:1},8,[`label`]),(0,l.createVNode)((0,l.unref)(u.ElFormItem),{class:`scrollable-form__item`,label:(0,l.unref)(_)(`LIBRARY_CREATEMCPFORM.SERVICE_URL`),prop:`address`},{default:(0,l.withCtx)(()=>[(0,l.createVNode)((0,l.unref)(u.ElInput),{modelValue:C.address,"onUpdate:modelValue":n[4]||=e=>C.address=e,placeholder:(0,l.unref)(_)(`LIBRARY_CREATEMCPFORM.SERVICE_URL_REQUIRED`)},null,8,[`modelValue`,`placeholder`])]),_:1},8,[`label`]),T.value.auth.authType===`apiKey`?((0,l.openBlock)(),(0,l.createBlock)((0,l.unref)(u.ElFormItem),{key:1,class:`scrollable-form__item`,prop:`applyLink`},{label:(0,l.withCtx)(()=>[(0,l.createElementVNode)(`div`,m,[(0,l.createElementVNode)(`span`,null,(0,l.toDisplayString)((0,l.unref)(_)(`LIBRARY_CREATEMCPFORM.DOCUMENTATION_URL`)),1),(0,l.createVNode)((0,l.unref)(u.ElTooltip),{placement:`top`},{content:(0,l.withCtx)(()=>[(0,l.createTextVNode)((0,l.toDisplayString)((0,l.unref)(_)(`LIBRARY_CREATEMCPFORM.DOCUMENTATION_URL_TIP`)),1)]),default:(0,l.withCtx)(()=>[(0,l.createVNode)((0,l.unref)(u.ElIcon),{size:`14px`,color:`#999`},{default:(0,l.withCtx)(()=>[(0,l.createVNode)((0,l.unref)(d.IconTip))]),_:1})]),_:1})])]),default:(0,l.withCtx)(()=>[(0,l.createVNode)((0,l.unref)(u.ElInput),{modelValue:C.applyLink,"onUpdate:modelValue":n[5]||=e=>C.applyLink=e,placeholder:(0,l.unref)(_)(`LIBRARY_CREATEMCPFORM.DOCUMENTATION_URL_REQUIRED`)},null,8,[`modelValue`,`placeholder`])]),_:1})):(0,l.createCommentVNode)(``,!0),(0,l.createElementVNode)(`div`,h,[(0,l.createVNode)((0,l.unref)(s.t),{ref_key:`authSectionRef`,ref:b,featData:T.value,"onUpdate:featData":n[6]||=e=>T.value=e,layout:`vertical`},null,8,[`featData`])])]),_:1},8,[`model`,`rules`]))}},_=i.t(g,[[`__scopeId`,`data-v-b8579cd8`]]),v=e.t(_);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return v}});
|