aibox-custom-component-packages 0.0.8 → 0.0.9

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.
Files changed (267) hide show
  1. package/es/AddOrEditSupplierDialog.mjs +6 -836
  2. package/es/ApplicationTypeTag.mjs +2 -58
  3. package/es/AuthSection.mjs +3 -199
  4. package/es/AutoShowTooltip.mjs +2 -90
  5. package/es/AvailableRangePreview.mjs +2 -7
  6. package/es/AvailableRangeSetting.mjs +5 -276
  7. package/es/CodeView.mjs +6 -7
  8. package/es/CommonTagsList.mjs +3 -209
  9. package/es/CreateMcpForm.mjs +10 -385
  10. package/es/CustomSidebar.mjs +2 -717
  11. package/es/CustomTitle.mjs +6 -7
  12. package/es/CustomToggle.mjs +2 -224
  13. package/es/DialogContainer.mjs +2 -136
  14. package/es/DocSyncSelect.mjs +2 -2661
  15. package/es/FileDisplay.mjs +4 -4
  16. package/es/FilePreview.mjs +3 -179
  17. package/es/FileUploader.mjs +2 -265
  18. package/es/Logo.mjs +2 -72
  19. package/es/McpFormDialog.mjs +11 -8
  20. package/es/McpParamsSet.mjs +8 -630
  21. package/es/MdEditor.mjs +2 -201
  22. package/es/PageContainer.mjs +4 -584
  23. package/es/ParameterTable.mjs +6 -2290
  24. package/es/PublishRecord.mjs +2 -180
  25. package/es/RadioGroup.mjs +2 -119
  26. package/es/SourcePublish.mjs +7 -1156
  27. package/es/Table.mjs +6 -10
  28. package/es/assets/AddOrEditSupplierDialog.css +1 -1
  29. package/es/assets/AiboxTable.css +1 -1
  30. package/es/assets/ApplicationTypeTag.css +1 -1
  31. package/es/assets/AuthSection.css +1 -1
  32. package/es/assets/AutoShowTooltip.css +1 -1
  33. package/es/assets/{index3.css → AvailableRangePreview.css} +1 -1
  34. package/es/assets/CodeView.css +1 -0
  35. package/es/assets/CreateMcpForm.css +1 -1
  36. package/es/assets/CustomSidebar.css +1 -1
  37. package/es/assets/CustomToggle.css +1 -1
  38. package/es/assets/DialogContainer.css +1 -1
  39. package/es/assets/DocSyncSelect.css +1 -1
  40. package/es/assets/FileDisplay.css +1 -0
  41. package/es/assets/FilePreview.css +1 -1
  42. package/es/assets/FileUploader.css +1 -1
  43. package/es/assets/Logo.css +1 -1
  44. package/es/assets/{index4.css → McpFormDialog.css} +1 -1
  45. package/es/assets/McpParamsSet.css +1 -1
  46. package/es/assets/MdEditor.css +1 -1
  47. package/es/assets/PageContainer.css +1 -1
  48. package/es/assets/ParameterTable.css +1 -1
  49. package/es/assets/PublishRecord.css +1 -1
  50. package/es/assets/RadioGroup.css +1 -1
  51. package/es/assets/SourcePublish.css +1 -1
  52. package/es/assets/legacy.css +1 -1
  53. package/es/assets/usePreview.css +10 -1
  54. package/es/chunks/AddOrEditSupplierDialog.BKR0RsiJ.js +721 -0
  55. package/es/chunks/AddOrEditSupplierDialog.CjNRipPe.js +721 -0
  56. package/es/chunks/AiboxTable.CrWMAX84.js +635 -0
  57. package/es/chunks/ApplicationTypeTag.Cbdi0D65.js +47 -0
  58. package/es/chunks/AuthSection.DWD_FxtJ.js +201 -0
  59. package/es/chunks/AutoShowTooltip.C_DI9t2Z.js +82 -0
  60. package/es/chunks/AvailableRangePreview.Bz9QkkAM.js +194 -0
  61. package/es/chunks/AvailableRangeSetting.Bq_K1zar.js +229 -0
  62. package/es/chunks/CodeView.CWuSIL_F.js +148 -0
  63. package/es/chunks/CommonTagsList.DSPdgjc3.js +156 -0
  64. package/es/chunks/CreateMcpForm.BBVVd2RN.js +308 -0
  65. package/es/chunks/CreateMcpForm.C8YfDSEM.js +308 -0
  66. package/es/chunks/CustomSidebar.BSGAhmVY.js +585 -0
  67. package/es/chunks/CustomToggle.BxxsaD-W.js +181 -0
  68. package/es/chunks/DialogContainer.DL7aTMDS.js +129 -0
  69. package/es/chunks/DocSyncSelect.Kk88o9gO.js +2290 -0
  70. package/es/chunks/FileDisplay.B5laA4uX.js +1649 -0
  71. package/es/chunks/FileDisplay.BCTNdpl9.js +1649 -0
  72. package/es/chunks/FileDisplay.CBNYrdsK.js +1560 -0
  73. package/es/chunks/FileDisplay.CJ7KCID6.js +1650 -0
  74. package/es/chunks/FilePreview.B9u8ODHp.js +123 -0
  75. package/es/chunks/FilePreview.De4zHsfc.js +123 -0
  76. package/es/chunks/FileUploader.DD-lopf-.js +216 -0
  77. package/es/chunks/Logo.0myMjGux.js +62 -0
  78. package/es/chunks/McpFormDialog.4HDExbTn.js +297 -0
  79. package/es/chunks/McpFormDialog.DNzqqhaX.js +297 -0
  80. package/es/chunks/McpParamsSet.Tlo_lPn-.js +501 -0
  81. package/es/chunks/MdEditor.DtL0Se7T.js +163 -0
  82. package/es/chunks/PageContainer.DXddaRs1.js +462 -0
  83. package/es/chunks/ParameterTable.BCdnj1gW.js +2010 -0
  84. package/es/chunks/PublishRecord.DEzC7hmP.js +133 -0
  85. package/es/chunks/RadioGroup.Czc1JtkN.js +107 -0
  86. package/es/chunks/SourcePublish.Dx-ltk9U.js +956 -0
  87. package/es/chunks/_plugin-vue_export-helper.Ct3qlEzt.js +8 -0
  88. package/es/chunks/chunk.EU29TkMc.js +20 -0
  89. package/es/chunks/config.MfNKPMiA.js +35 -0
  90. package/es/chunks/config.l1J_qxeB.js +270 -0
  91. package/es/chunks/enums.DDPWAqdV.js +13 -0
  92. package/es/chunks/field-types.zf28gvKR.js +7 -0
  93. package/es/chunks/files.DvOT1nf3.js +14 -0
  94. package/es/chunks/i18n.CxsxtRq_.js +418 -0
  95. package/es/chunks/layout.C9wKDpv-.js +19 -0
  96. package/es/chunks/publish.Z0XAASut.js +50 -0
  97. package/es/chunks/request.CfOHcfgX.js +5 -0
  98. package/es/chunks/usePreview.CMMjOD_o.js +148 -0
  99. package/es/chunks/usePreview.agdxmOk8.js +126 -0
  100. package/es/chunks/withinstall.dLh4K-0g.js +7 -0
  101. package/es/index.mjs +258 -412
  102. package/index.css +1 -1
  103. package/lib/AddOrEditSupplierDialog.js +1 -1
  104. package/lib/ApplicationTypeTag.js +1 -1
  105. package/lib/AuthSection.js +1 -1
  106. package/lib/AutoShowTooltip.js +1 -1
  107. package/lib/AvailableRangePreview.js +1 -1
  108. package/lib/AvailableRangeSetting.js +1 -1
  109. package/lib/CodeView.js +1 -1
  110. package/lib/CommonTagsList.js +1 -1
  111. package/lib/CreateMcpForm.js +1 -1
  112. package/lib/CustomSidebar.js +1 -1
  113. package/lib/CustomTitle.js +1 -1
  114. package/lib/CustomToggle.js +1 -1
  115. package/lib/DialogContainer.js +1 -1
  116. package/lib/DocSyncSelect.js +1 -2
  117. package/lib/FileDisplay.js +1 -1
  118. package/lib/FilePreview.js +1 -1
  119. package/lib/FileUploader.js +1 -1
  120. package/lib/Logo.js +1 -1
  121. package/lib/McpFormDialog.js +1 -1
  122. package/lib/McpParamsSet.js +1 -1
  123. package/lib/MdEditor.js +1 -1
  124. package/lib/PageContainer.js +1 -1
  125. package/lib/ParameterTable.js +1 -1
  126. package/lib/PublishRecord.js +1 -5
  127. package/lib/RadioGroup.js +1 -1
  128. package/lib/SourcePublish.js +1 -1
  129. package/lib/Table.js +1 -1
  130. package/lib/assets/AddOrEditSupplierDialog.css +1 -1
  131. package/lib/assets/AiboxTable.css +1 -1
  132. package/lib/assets/ApplicationTypeTag.css +1 -1
  133. package/lib/assets/AuthSection.css +1 -1
  134. package/lib/assets/AutoShowTooltip.css +1 -1
  135. package/lib/assets/{index3.css → AvailableRangePreview.css} +1 -1
  136. package/lib/assets/CodeView.css +1 -0
  137. package/lib/assets/CreateMcpForm.css +1 -1
  138. package/lib/assets/CustomSidebar.css +1 -1
  139. package/lib/assets/CustomToggle.css +1 -1
  140. package/lib/assets/DialogContainer.css +1 -1
  141. package/lib/assets/DocSyncSelect.css +1 -1
  142. package/lib/assets/FileDisplay.css +1 -0
  143. package/lib/assets/FilePreview.css +1 -1
  144. package/lib/assets/FileUploader.css +1 -1
  145. package/lib/assets/Logo.css +1 -1
  146. package/lib/assets/{index4.css → McpFormDialog.css} +1 -1
  147. package/lib/assets/McpParamsSet.css +1 -1
  148. package/lib/assets/MdEditor.css +1 -1
  149. package/lib/assets/PageContainer.css +1 -1
  150. package/lib/assets/ParameterTable.css +1 -1
  151. package/lib/assets/PublishRecord.css +1 -1
  152. package/lib/assets/RadioGroup.css +1 -1
  153. package/lib/assets/SourcePublish.css +1 -1
  154. package/lib/assets/legacy.css +1 -1
  155. package/lib/assets/usePreview.css +10 -1
  156. package/lib/chunks/AddOrEditSupplierDialog.D0DSQZiS.js +1 -0
  157. package/lib/chunks/AddOrEditSupplierDialog.XtPxc5yr.js +1 -0
  158. package/lib/chunks/AiboxTable.DFyqwoGc.js +1 -0
  159. package/lib/chunks/ApplicationTypeTag.CZReMt-9.js +1 -0
  160. package/lib/chunks/AuthSection.CP9c-YTW.js +1 -0
  161. package/lib/chunks/AutoShowTooltip.D3QQ36Bm.js +1 -0
  162. package/lib/chunks/AvailableRangePreview.DvREyHNH.js +1 -0
  163. package/lib/chunks/AvailableRangeSetting.DDHTOLJA.js +1 -0
  164. package/lib/chunks/CodeView.DeBxLqyC.js +1 -0
  165. package/lib/chunks/CommonTagsList.DbNcVId5.js +1 -0
  166. package/lib/chunks/CreateMcpForm.Cm9eHXWg.js +1 -0
  167. package/lib/chunks/CreateMcpForm.DNijYbgd.js +1 -0
  168. package/lib/chunks/CustomSidebar.Dojb1xoS.js +1 -0
  169. package/lib/chunks/CustomToggle.Dz7MRyOY.js +1 -0
  170. package/lib/chunks/DialogContainer.C0Hsohgn.js +1 -0
  171. package/lib/chunks/DocSyncSelect.1gaXRzps.js +2 -0
  172. package/lib/chunks/FileDisplay.B4gn0Jhp.js +59 -0
  173. package/lib/chunks/FileDisplay.B7JWIcFg.js +59 -0
  174. package/lib/chunks/FileDisplay.BSNmvK44.js +59 -0
  175. package/lib/chunks/FileDisplay.DjtHza32.js +59 -0
  176. package/lib/chunks/FilePreview.DX9e8_nx.js +1 -0
  177. package/lib/chunks/FilePreview.b1Gine59.js +1 -0
  178. package/lib/chunks/FileUploader.6IW_QL-h.js +1 -0
  179. package/lib/chunks/Logo.Jr7hhaH0.js +1 -0
  180. package/lib/chunks/McpFormDialog.CL2bInts.js +6 -0
  181. package/lib/chunks/McpFormDialog.DbhQIwYW.js +6 -0
  182. package/lib/chunks/McpParamsSet.BYrxVvDL.js +1 -0
  183. package/lib/chunks/MdEditor.rVQbuxCg.js +1 -0
  184. package/lib/chunks/PageContainer.elwvD8VL.js +1 -0
  185. package/lib/chunks/ParameterTable.CeufAEXh.js +1 -0
  186. package/lib/chunks/PublishRecord.B7xYlRKJ.js +5 -0
  187. package/lib/chunks/RadioGroup.cl57IvY3.js +1 -0
  188. package/lib/chunks/SourcePublish.K4tntn9l.js +1 -0
  189. package/lib/chunks/_plugin-vue_export-helper.Bgn9wawX.js +1 -0
  190. package/lib/chunks/chunk.BbA6Ugdl.js +1 -0
  191. package/lib/chunks/config.CDNV0bUm.js +1 -0
  192. package/lib/chunks/config.CZl1kYtI.js +1 -0
  193. package/lib/chunks/enums.DbdzzIzx.js +1 -0
  194. package/lib/chunks/field-types.C6f_z2S_.js +1 -0
  195. package/lib/chunks/files.BEXWmB32.js +1 -0
  196. package/lib/chunks/i18n.BGe5gOau.js +1 -0
  197. package/lib/chunks/layout.CK394aWE.js +1 -0
  198. package/lib/chunks/publish.DsepP8ll.js +1 -0
  199. package/lib/chunks/request.BuoFTs7h.js +1 -0
  200. package/lib/chunks/usePreview.7CCbmgQM.js +1 -0
  201. package/lib/chunks/usePreview.Dmhz8azZ.js +1 -0
  202. package/lib/chunks/withinstall.65aRnaVc.js +1 -0
  203. package/lib/index.js +2 -2
  204. package/package.json +5 -5
  205. package/es/AiboxTabs.mjs +0 -71
  206. package/es/assets/AiboxTabs.css +0 -1
  207. package/es/assets/index.css +0 -1
  208. package/es/assets/index2.css +0 -1
  209. package/es/assets/index5.css +0 -1
  210. package/es/chunks/AiboxTable.CF4T_OCu.js +0 -645
  211. package/es/chunks/AiboxTable.DUGBBVXh.js +0 -645
  212. package/es/chunks/_plugin-vue_export-helper.CHgC5LLL.js +0 -9
  213. package/es/chunks/config.DPkdwjwD.js +0 -49
  214. package/es/chunks/config.Dklrsn-B.js +0 -49
  215. package/es/chunks/config.RrNwuFkQ.js +0 -325
  216. package/es/chunks/config.gNZ_rT87.js +0 -325
  217. package/es/chunks/enums.Dvec-maC.js +0 -62
  218. package/es/chunks/enums.WrpwbF4w.js +0 -14
  219. package/es/chunks/field-types.CPnMOjle.js +0 -13
  220. package/es/chunks/files.cduUqjHX.js +0 -16
  221. package/es/chunks/i18n.DDMVloiU.js +0 -443
  222. package/es/chunks/i18n.k9Q_HVMs.js +0 -443
  223. package/es/chunks/index.BDd6hHiU.js +0 -172
  224. package/es/chunks/index.BT1khSY9.js +0 -111
  225. package/es/chunks/index.CDvh263l.js +0 -257
  226. package/es/chunks/index.CF_YHLP5.js +0 -257
  227. package/es/chunks/index.CSjjAi3w.js +0 -396
  228. package/es/chunks/index.CdEBk4F_.js +0 -134
  229. package/es/chunks/index.DdD1VsH1.js +0 -396
  230. package/es/chunks/index.Dx-mCS4E.js +0 -1298
  231. package/es/chunks/index.bCzIhWFw.js +0 -7
  232. package/es/chunks/layout.BREUWPEJ.js +0 -26
  233. package/es/chunks/layout.CygCXa6s.js +0 -26
  234. package/es/chunks/publish.DlD0o09n.js +0 -50
  235. package/es/chunks/request.24c3shPx.js +0 -5
  236. package/es/chunks/usePreview.B5lboHeg.js +0 -153
  237. package/es/chunks/usePreview.BHvXwaNi.js +0 -157
  238. package/lib/AiboxTabs.js +0 -1
  239. package/lib/assets/AiboxTabs.css +0 -1
  240. package/lib/assets/index.css +0 -1
  241. package/lib/assets/index2.css +0 -1
  242. package/lib/assets/index5.css +0 -1
  243. package/lib/chunks/AiboxTable.BnoHJ7xL.js +0 -1
  244. package/lib/chunks/AiboxTable.CJOPGJtU.js +0 -1
  245. package/lib/chunks/_plugin-vue_export-helper.BHFhmbuH.js +0 -1
  246. package/lib/chunks/config.1oaIKLGn.js +0 -1
  247. package/lib/chunks/config.BF7MO0O5.js +0 -1
  248. package/lib/chunks/enums.DnuzPZCR.js +0 -1
  249. package/lib/chunks/enums.DpU2er5r.js +0 -1
  250. package/lib/chunks/field-types.Ch_2yDfg.js +0 -1
  251. package/lib/chunks/files.B3-8UC0v.js +0 -1
  252. package/lib/chunks/i18n.DgOp_D7R.js +0 -1
  253. package/lib/chunks/index.BNivYbtq.js +0 -1
  254. package/lib/chunks/index.B_keI1Aq.js +0 -1
  255. package/lib/chunks/index.Bc71XWQn.js +0 -1
  256. package/lib/chunks/index.C7aZx6RG.js +0 -6
  257. package/lib/chunks/index.CH7XdMru.js +0 -1
  258. package/lib/chunks/index.CJFk1R2u.js +0 -59
  259. package/lib/chunks/index.CaidDlAx.js +0 -1
  260. package/lib/chunks/index.CkihWzK6.js +0 -1
  261. package/lib/chunks/index.DGWHQFdx.js +0 -6
  262. package/lib/chunks/layout.DbBSbLgm.js +0 -1
  263. package/lib/chunks/layout.sgE9JoNq.js +0 -1
  264. package/lib/chunks/publish.3TrK3fZf.js +0 -1
  265. package/lib/chunks/request.D8T4MgGX.js +0 -1
  266. package/lib/chunks/usePreview.2PZJSy5w.js +0 -1
  267. package/lib/chunks/usePreview.BojIDW7Z.js +0 -1
@@ -1,836 +1,6 @@
1
- import { w as Me } from "./chunks/index.bCzIhWFw.js";
2
- import { createElementBlock as M, openBlock as i, normalizeClass as re, createElementVNode as A, Fragment as Y, renderList as H, normalizeStyle as me, createBlock as b, createCommentVNode as U, createTextVNode as S, unref as e, withCtx as r, resolveDynamicComponent as _e, toDisplayString as D, computed as Oe, ref as p, onMounted as Re, createVNode as a, reactive as Ae } from "vue";
3
- import { u as ce } from "./chunks/i18n.k9Q_HVMs.js";
4
- import { g as X } from "./chunks/request.24c3shPx.js";
5
- import { ElIcon as k, ElButton as K, ElMessage as G, ElForm as De, ElFormItem as I, ElInput as P, ElSelect as ue, ElOption as ie } from "element-plus";
6
- import { IconWarn as ge, IconGoto3 as de, Workflow as Ce } from "color-message-aibox-vue";
7
- import { FilePreview as ve } from "./FilePreview.mjs";
8
- import { useDialog as pe, DialogContainer as Ee } from "./DialogContainer.mjs";
9
- import { FileUploader as fe } from "./FileUploader.mjs";
10
- import { useRouter as Ie } from "vue-router";
11
- import { _ as se } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
12
- import { n as El } from "./chunks/usePreview.BHvXwaNi.js";
13
- import './assets/AddOrEditSupplierDialog.css';const Le = () => {
14
- const { $request: u, $env: _ } = X();
15
- return {
16
- deleteKey: (E) => u({
17
- url: `${_.VITE_APP_AIBOX_BASE_URL}/api/v1/model/key/${E}`,
18
- method: "delete"
19
- }),
20
- deleteOwnerModel: (E) => u({
21
- url: `${_.VITE_APP_AIBOX_BASE_URL}/api/v1/admin/model/${E}`,
22
- method: "delete"
23
- }),
24
- addModel: (E) => u({
25
- url: `${_.VITE_APP_AIBOX_BASE_URL}/api/v1/admin/model`,
26
- method: "post",
27
- data: E
28
- }),
29
- updateModel: (E, c) => u({
30
- url: `${_.VITE_APP_AIBOX_BASE_URL}/api/v1/admin/model/${E}`,
31
- method: "post",
32
- data: c
33
- })
34
- };
35
- }, Te = [
36
- {
37
- label: "COMMON_MODEL_LIBRARY.MODEL_TYPE_LARGE_LANGUAGE_MODEL",
38
- value: "llm"
39
- },
40
- {
41
- label: "COMMON_MODEL_LIBRARY.MODEL_TYPE_MULTIMODAL_MODEL",
42
- value: "multimodal"
43
- },
44
- {
45
- label: "COMMON_MODEL_LIBRARY.MODEL_TYPE_EMBEDDING_MODEL",
46
- value: "embedding"
47
- },
48
- {
49
- label: "COMMON_MODEL_LIBRARY.MODEL_TYPE_RERANK_MODEL",
50
- value: "rerank"
51
- }
52
- ], J = {
53
- supported: 1,
54
- not_supported: 0
55
- }, Ne = [
56
- {
57
- label: "COMMON_MODEL_LIBRARY.TOOL_CALLING_SUPPORTED",
58
- value: J.supported
59
- },
60
- {
61
- label: "COMMON_MODEL_LIBRARY.TOOL_CALLING_NOT_SUPPORTED",
62
- value: J.not_supported
63
- }
64
- ], ye = () => {
65
- const { $request: u, $env: _ } = X();
66
- return {
67
- getSystemReference: (t) => u({
68
- url: `${_.VITE_APP_AIBOX_BASE_URL}/api/v1/system/reference`,
69
- method: "get",
70
- params: t
71
- })
72
- };
73
- }, be = () => {
74
- const { $request: u, $env: _ } = X();
75
- return {
76
- deleteKnowledgeBase: (t) => u({
77
- url: `${_.VITE_APP_AIBOX_BASE_URL}/api/v1/knowledge/${t}`,
78
- method: "delete"
79
- })
80
- };
81
- }, he = () => {
82
- const { $request: u, $env: _ } = X();
83
- return {
84
- del: (t) => u({
85
- url: `${_.VITE_APP_AIBOX_BASE_URL}/api/v1/workflow/mgr?bnid=${t}`,
86
- method: "delete"
87
- })
88
- };
89
- }, Be = () => {
90
- const { $request: u, $env: _ } = X();
91
- return {
92
- deleteId: (g) => u({
93
- url: `${_.VITE_APP_AIBOX_BASE_URL}/api/v1/pluglet/delete/${g}`,
94
- method: "put"
95
- }),
96
- deleteTools: (g) => u({
97
- url: `${_.VITE_APP_AIBOX_BASE_URL}/api/v1/pluglit/delete/${g}`,
98
- method: "put"
99
- })
100
- };
101
- }, we = ["onClick"], Pe = {
102
- __name: "AiboxTabs",
103
- props: {
104
- modelValue: {
105
- type: [String, Number],
106
- default: ""
107
- },
108
- tabList: {
109
- type: Array,
110
- default: () => []
111
- },
112
- propsObj: {
113
- type: Object,
114
- default: () => ({
115
- label: "label",
116
- value: "value"
117
- })
118
- },
119
- // 样式风格
120
- // 1无底色,选中灰;
121
- // 2灰底色,选中白;
122
- // 3灰底色,选中白,圆角;
123
- styleType: {
124
- type: [Number, String],
125
- default: 1
126
- },
127
- isShowIcon: {
128
- type: Boolean,
129
- default: !1
130
- }
131
- },
132
- emits: ["update:modelValue", "change"],
133
- setup(u, { emit: _ }) {
134
- const m = _, t = u, g = (N) => {
135
- m("update:modelValue", N[t.propsObj.value]), m("change", N[t.propsObj.value]);
136
- };
137
- return (N, E) => (i(), M("div", {
138
- class: re(["ai-box-tabs", `style-${u.styleType}`])
139
- }, [
140
- A("ul", null, [
141
- (i(!0), M(Y, null, H(u.tabList, (c, x) => (i(), M("li", {
142
- key: c[t.propsObj.value],
143
- onClick: (C) => g(c),
144
- class: re(u.modelValue === c[t.propsObj.value] ? "current" : ""),
145
- style: me(x == u.tabList.length - 1 ? "margin-right: 0;" : "")
146
- }, [
147
- c.icon && u.isShowIcon ? (i(), b(e(k), {
148
- key: 0,
149
- size: "18px",
150
- style: { "margin-right": "4px" },
151
- color: u.modelValue === c[t.propsObj.value] ? "#262626" : "#7f8387"
152
- }, {
153
- default: r(() => [
154
- (i(), b(_e(c.icon)))
155
- ]),
156
- _: 2
157
- }, 1032, ["color"])) : U("", !0),
158
- S(" " + D(c[t.propsObj.label]), 1)
159
- ], 14, we))), 128))
160
- ])
161
- ], 2));
162
- }
163
- }, Ue = /* @__PURE__ */ se(Pe, [["__scopeId", "data-v-fd75e38a"]]), Se = { class: "delete-title" }, ke = { class: "custom-message-box" }, Ye = {
164
- class: "custom-message-box__title",
165
- style: { "line-height": "24px" }
166
- }, xe = { style: { color: "red" } }, Ve = {
167
- key: 0,
168
- class: "custom-message-box__tip"
169
- }, $e = {
170
- key: 0,
171
- class: "delete-tabs"
172
- }, Fe = {
173
- key: 0,
174
- class: "resource-list"
175
- }, Ke = ["onClick"], Ge = { class: "item-title" }, He = {
176
- key: 1,
177
- class: "resource-list"
178
- }, Xe = ["onClick"], je = { class: "item-title" }, qe = { class: "dialog-footer" }, We = {
179
- __name: "DeleteResourceDialog",
180
- props: {
181
- title: {
182
- type: String,
183
- default: ""
184
- },
185
- deleteType: {
186
- type: String,
187
- default: ""
188
- }
189
- },
190
- emits: ["success"],
191
- setup(u, { expose: _, emit: m }) {
192
- const { getSystemReference: t } = ye(), { deleteKnowledgeBase: g } = be(), { del: N } = he(), { deleteId: E, deleteTools: c } = Be(), { deleteKey: x, deleteOwnerModel: C } = Le(), { t: O } = ce(), y = Ie(), { dialogRef: Z, showDialog: h, hideDialog: V } = pe(), j = u, $ = m, o = Oe(() => {
193
- const l = [];
194
- return f.value.length && l.push({
195
- label: O("COMPONENTS_OUTER_SPHERE.APPLICATION_REFERENCE", {
196
- num: f.value.length
197
- }),
198
- value: "1"
199
- }), T.value.length && l.push({
200
- label: O("COMPONENTS_OUTER_SPHERE.WORKFLOW_REFERENCE", {
201
- num: T.value.length
202
- }),
203
- value: "2"
204
- }), l;
205
- }), v = p("1"), R = p(""), B = p(!1), f = p([]), T = p([]), ee = (l) => {
206
- const d = {
207
- model: {
208
- code: 1,
209
- desc: O("COMMON_TAG.APPLICATION"),
210
- deleteFn: async () => await C(R.value)
211
- },
212
- knowledge: {
213
- code: 2,
214
- desc: O("COMMON_TAG.KNOWLEDGE_BASE"),
215
- deleteFn: async () => await g(R.value)
216
- },
217
- workflow: {
218
- code: 4,
219
- desc: O("COMMON_TAG.WORKFLOW"),
220
- deleteFn: async () => await N(R.value)
221
- },
222
- plugin: {
223
- code: 6,
224
- desc: O("COMMON_TAG.PLUGIN"),
225
- deleteFn: async () => await E(R.value)
226
- },
227
- pluglit: {
228
- code: 6,
229
- desc: O("COMMON_TAG.TOOL"),
230
- deleteFn: async () => await c(R.value)
231
- },
232
- modelKey: {
233
- code: 7,
234
- desc: O("COMMON_TAG.MODEL_KEY"),
235
- deleteFn: async () => await x(R.value)
236
- }
237
- };
238
- return console.log(l, "value"), d[l];
239
- }, le = async () => {
240
- let l = R.value;
241
- j.deleteType == "plugin" && (l = W.value);
242
- const d = {
243
- bnid: l,
244
- size: 999,
245
- page: 1,
246
- "business-type": q
247
- }, { code: L, data: ne } = await t(d);
248
- L === 0 && ((ne.data || []).forEach((Q) => {
249
- Q.name == "workflow" && (T.value = Q.data), Q.name == "agent" && (f.value = Q.data);
250
- }), f.value.length || (v.value = "2"));
251
- }, w = p("");
252
- let q = "", F = null;
253
- Re(() => {
254
- const l = ee(j.deleteType);
255
- w.value = l.desc || "", q = l.code || "", F = l.deleteFn || null;
256
- });
257
- const W = p(""), te = (l, d = "") => {
258
- R.value = l, W.value = d, h(), le();
259
- }, z = async () => {
260
- if (F) {
261
- B.value = !0;
262
- try {
263
- const l = await F();
264
- l && l.code == 0 ? (G({
265
- message: O("COMPONENTS_OUTER_SPHERE.DELETE_DATA_SUCCESS", {
266
- name: w.value
267
- }),
268
- type: "success"
269
- }), $("success"), n()) : G({
270
- message: O("COMPONENTS_OUTER_SPHERE.DELETE_DATA_FAILED", {
271
- name: w.value
272
- }),
273
- type: "error"
274
- });
275
- } finally {
276
- B.value = !1;
277
- }
278
- }
279
- }, oe = (l) => {
280
- y.push({ name: "AgentDetail", params: { bnid: l.skillet } });
281
- }, ae = (l) => {
282
- y.push({ name: "Workflow", params: { workflowBnid: l.skillet } });
283
- }, s = () => {
284
- }, n = () => {
285
- V(), R.value = "", f.value = [], T.value = [];
286
- };
287
- return _({ showDeleteDialog: te, hideDeleteDialog: n }), (l, d) => (i(), b(e(Ee), {
288
- title: u.title || e(O)("COMPONENTS_OUTER_SPHERE.CONFIRM_DELETE", { deleteTypeStr: w.value }),
289
- width: "520px",
290
- ref_key: "dialogRef",
291
- ref: Z
292
- }, {
293
- footer: r(() => [
294
- A("div", qe, [
295
- a(e(K), {
296
- onClick: n,
297
- plain: ""
298
- }, {
299
- default: r(() => [
300
- S(D(e(O)("COMMON_BUTTON.CANCEL_TEXT")), 1)
301
- ]),
302
- _: 1
303
- }),
304
- a(e(K), {
305
- type: "danger",
306
- onClick: z,
307
- loading: B.value
308
- }, {
309
- default: r(() => [
310
- S(D(e(O)("COMMON_BUTTON.CONFIRM_AFFIRM")), 1)
311
- ]),
312
- _: 1
313
- }, 8, ["loading"])
314
- ])
315
- ]),
316
- default: r(() => [
317
- A("div", Se, [
318
- a(e(k), { class: "warning-icon" }, {
319
- default: r(() => [
320
- a(e(ge))
321
- ]),
322
- _: 1
323
- }),
324
- A("div", ke, [
325
- A("div", Ye, [
326
- S(D(e(O)("COMPONENTS_OUTER_SPHERE.HISTORY_REFERENCE", { deleteTypeStr: w.value })) + " ", 1),
327
- A("span", xe, D(e(O)("PLUGINLIST.CAUTION")), 1)
328
- ]),
329
- f.value.length || T.value.length ? (i(), M("div", Ve, D(e(O)("PLUGINLIST.CAUTION_INFO")), 1)) : U("", !0),
330
- d[1] || (d[1] = A("div", null, null, -1))
331
- ])
332
- ]),
333
- f.value.length || T.value.length ? (i(), M("div", $e, [
334
- a(Ue, {
335
- modelValue: v.value,
336
- "onUpdate:modelValue": d[0] || (d[0] = (L) => v.value = L),
337
- tabList: o.value,
338
- onChange: s
339
- }, null, 8, ["modelValue", "tabList"]),
340
- v.value == "1" ? (i(), M("div", Fe, [
341
- (i(!0), M(Y, null, H(f.value, (L) => (i(), M("div", {
342
- class: "resource-item",
343
- key: L.resource,
344
- onClick: (ne) => oe(L)
345
- }, [
346
- d[2] || (d[2] = A("div", { class: "flow-name__icon-placeholder" }, null, -1)),
347
- A("div", Ge, D(L.name), 1),
348
- a(e(k), null, {
349
- default: r(() => [
350
- a(e(de))
351
- ]),
352
- _: 1
353
- })
354
- ], 8, Ke))), 128))
355
- ])) : U("", !0),
356
- v.value == "2" ? (i(), M("div", He, [
357
- (i(!0), M(Y, null, H(T.value, (L) => (i(), M("div", {
358
- class: "resource-item",
359
- key: L.resource,
360
- onClick: (ne) => ae(L)
361
- }, [
362
- a(e(k), { size: "32px" }, {
363
- default: r(() => [
364
- a(e(Ce))
365
- ]),
366
- _: 1
367
- }),
368
- A("div", je, D(L.name), 1),
369
- a(e(k), null, {
370
- default: r(() => [
371
- a(e(de))
372
- ]),
373
- _: 1
374
- })
375
- ], 8, Xe))), 128))
376
- ])) : U("", !0)
377
- ])) : U("", !0)
378
- ]),
379
- _: 1
380
- }, 8, ["title"]));
381
- }
382
- }, ze = /* @__PURE__ */ se(We, [["__scopeId", "data-v-42e471bc"]]), Qe = { class: "dialog-footer" }, Je = /* @__PURE__ */ Object.assign({
383
- name: "AddOrEditSupplierDialog"
384
- }, {
385
- __name: "AddOrEditSupplierDialog",
386
- props: {
387
- showDeleteButton: {
388
- type: Boolean,
389
- default: !0
390
- }
391
- },
392
- emits: ["submit", "success"],
393
- setup(u, { expose: _, emit: m }) {
394
- const { t } = ce(), { addModel: g, updateModel: N } = Le(), E = p(null), c = p([]), x = p(!1), C = p(!1), { dialogRef: O, hideDialog: y, resetDialog: Z } = pe(C), h = p(!1), V = p(""), j = Oe(() => h.value ? t("COMMON_MODEL_LIBRARY.EDIT_MODEL") : t("COMMON_MODEL_LIBRARY.ADD_MODEL")), $ = p(""), o = Ae({
395
- name: "",
396
- code: "",
397
- type: "",
398
- description: "",
399
- supportFunctionCall: J.supported,
400
- apiKey: "",
401
- apiUrl: "",
402
- bnid: null,
403
- maxTokens: 2e6,
404
- contextLength: 2e6,
405
- icon: "0",
406
- avatarUrl: ""
407
- }), v = p(!o.bnid), R = {
408
- name: [
409
- {
410
- required: !0,
411
- message: t("COMMON_MODEL_LIBRARY.MODEL_NAME_REQUIRED"),
412
- trigger: "blur"
413
- },
414
- {
415
- max: 64,
416
- message: t("COMMON_MODEL_LIBRARY.MODEL_NAME_MAX_LENGTH"),
417
- trigger: "blur"
418
- },
419
- {
420
- validator: (s, n, l) => {
421
- n && /\s/.test(n) ? l(new Error(t("COMMON_MODEL_LIBRARY.MODEL_NAME_NO_SPACE"))) : l();
422
- },
423
- trigger: "blur"
424
- }
425
- ],
426
- code: [
427
- {
428
- required: !0,
429
- message: t("COMMON_MODEL_LIBRARY.MODEL_CODE_REQUIRED"),
430
- trigger: "blur"
431
- },
432
- {
433
- max: 64,
434
- message: t("COMMON_MODEL_LIBRARY.MODEL_CODE_MAX_LENGTH"),
435
- trigger: "blur"
436
- },
437
- {
438
- validator: (s, n, l) => {
439
- n && /\s/.test(n) ? l(new Error(t("COMMON_MODEL_LIBRARY.MODEL_CODE_NO_SPACE"))) : l();
440
- },
441
- trigger: "blur"
442
- }
443
- ],
444
- type: [
445
- {
446
- required: !0,
447
- message: t("COMMON_MODEL_LIBRARY.MODEL_TYPE_PLACEHOLDER"),
448
- trigger: "change"
449
- }
450
- ],
451
- maxTokens: [
452
- {
453
- required: !0,
454
- message: t("COMMON_MODEL_LIBRARY.MAX_TOKENS_PLACEHOLDER"),
455
- trigger: "blur"
456
- }
457
- ],
458
- contextLength: [
459
- {
460
- required: !0,
461
- message: t("COMMON_MODEL_LIBRARY.CONTEXT_LENGTH_PLACEHOLDER"),
462
- trigger: "blur"
463
- }
464
- ],
465
- apiKey: [
466
- {
467
- required: !0,
468
- message: t("COMMON_MODEL_LIBRARY.API_KEY_REQUIRED"),
469
- trigger: "blur"
470
- }
471
- ],
472
- apiUrl: [
473
- {
474
- required: !0,
475
- message: t("COMMON_MODEL_LIBRARY.API_URL_REQUIRED"),
476
- trigger: "blur"
477
- },
478
- {
479
- validator: (s, n, l) => {
480
- if (!n) {
481
- l();
482
- return;
483
- }
484
- try {
485
- const d = new URL(n);
486
- if (d.protocol !== "http:" && d.protocol !== "https:") {
487
- l(new Error(t("COMMON_MODEL_LIBRARY.API_URL_INVALID")));
488
- return;
489
- }
490
- l();
491
- } catch {
492
- l(new Error(t("COMMON_MODEL_LIBRARY.API_URL_INVALID_DESC")));
493
- }
494
- },
495
- trigger: "blur"
496
- }
497
- ]
498
- }, B = m, f = (s = null) => {
499
- Object.assign(o, {
500
- name: "",
501
- code: "",
502
- type: "",
503
- description: "",
504
- supportFunctionCall: J.supported,
505
- maxTokens: 2e6,
506
- contextLength: 2e6,
507
- supplier: "",
508
- apiKey: "",
509
- apiUrl: "",
510
- bnid: null,
511
- avatarUrl: "",
512
- icon: "0"
513
- }), V.value = s?.rowData?.bnid || "", s?.rowData ? (s.rowData.apiKey || (x.value = !0), Object.assign(o, s.rowData), $.value = s.rowData.apiUrl || "") : $.value = "", c.value = [], s ? (o.supplier = s.supplier || "", h.value = s.isEditDialog ?? !1, s.rowData?.icon && s.rowData.icon !== "0" && s.rowData?.avatarUrl && (c.value = [
514
- {
515
- bnid: s.rowData.icon,
516
- url: s.rowData.avatarUrl
517
- }
518
- ])) : h.value = !1, O.value?.showDialog();
519
- }, T = (s) => {
520
- s > 2e9 ? o.maxTokens = 2e9 : o.maxTokens = s;
521
- }, ee = (s) => {
522
- s > 2e9 ? o.contextLength = 2e9 : o.contextLength = s;
523
- }, le = async () => {
524
- E.value && await E.value.validate(async (s) => {
525
- if (s) {
526
- C.value = !0;
527
- const n = 2e9;
528
- let l = Number(o.maxTokens), d = Number(o.contextLength);
529
- l = Math.min(l, n), d = Math.min(d, n);
530
- const L = {
531
- name: o.name,
532
- code: o.code,
533
- icon: o.icon,
534
- type: o.type,
535
- description: o.description,
536
- supportFunctionCall: o.supportFunctionCall,
537
- maxTokens: l,
538
- contextLength: d,
539
- apiKey: o.apiKey,
540
- apiUrl: o.apiUrl
541
- };
542
- h.value ? await q(L) : w(L);
543
- } else
544
- G.error(t("COMMON_MODEL_LIBRARY.REQUIRED"));
545
- });
546
- }, w = async (s) => {
547
- try {
548
- (await g(s)).code === 0 && (G.success(t("COMMON_MODEL_LIBRARY.CREATE_MODEL_SUCCESS")), y(), B("submit"));
549
- } finally {
550
- C.value = !1;
551
- }
552
- }, q = async (s) => {
553
- try {
554
- (await N(V.value, s)).code === 0 && (G.success(t("COMMON_MODEL_LIBRARY.UPDATE_MODEL_SUCCESS")), y(), B("submit"));
555
- } finally {
556
- C.value = !1;
557
- }
558
- }, F = () => {
559
- v.value = !v.value;
560
- }, W = (s) => {
561
- o.avatarUrl = s.url, o.icon = s.bnid, c.value = [s];
562
- }, te = () => {
563
- o.icon = "0", c.value = [];
564
- }, z = p(null), oe = () => {
565
- z.value.showDeleteDialog(V.value);
566
- }, ae = () => {
567
- y(), B("success");
568
- };
569
- return _({
570
- showDialog: f,
571
- hideDialog: y
572
- }), (s, n) => (i(), M(Y, null, [
573
- a(e(Ee), {
574
- class: "custom-model-dialog",
575
- ref_key: "dialogRef",
576
- ref: O,
577
- title: j.value,
578
- width: "520px",
579
- onClosed: e(Z)
580
- }, {
581
- footer: r(() => [
582
- A("div", Qe, [
583
- h.value && u.showDeleteButton ? (i(), b(e(K), {
584
- key: 0,
585
- style: { float: "left" },
586
- type: "danger",
587
- onClick: oe
588
- }, {
589
- default: r(() => [
590
- S(D(e(t)("COMMON_BUTTON.DELETE_TEXT")), 1)
591
- ]),
592
- _: 1
593
- })) : U("", !0),
594
- a(e(K), {
595
- onClick: e(y),
596
- plain: ""
597
- }, {
598
- default: r(() => [
599
- S(D(e(t)("COMMON_BUTTON.CANCEL_TEXT")), 1)
600
- ]),
601
- _: 1
602
- }, 8, ["onClick"]),
603
- a(e(K), {
604
- type: "primary",
605
- loading: C.value,
606
- onClick: le,
607
- disabled: C.value
608
- }, {
609
- default: r(() => [
610
- S(D(C.value ? e(t)("COMMON_MODEL_LIBRARY.VALIDATION_LOADING") : e(t)("COMMON_BUTTON.CONFIRM_TEXT")), 1)
611
- ]),
612
- _: 1
613
- }, 8, ["loading", "disabled"])
614
- ])
615
- ]),
616
- default: r(() => [
617
- a(e(De), {
618
- ref_key: "formRef",
619
- ref: E,
620
- model: o,
621
- rules: R,
622
- "label-width": "auto",
623
- class: "vertical-form"
624
- }, {
625
- default: r(() => [
626
- a(e(I), {
627
- label: e(t)("COMMON_MODEL_LIBRARY.MODEL_NAME"),
628
- prop: "name"
629
- }, {
630
- default: r(() => [
631
- a(e(P), {
632
- modelValue: o.name,
633
- "onUpdate:modelValue": n[0] || (n[0] = (l) => o.name = l),
634
- placeholder: e(t)("COMMON_MODEL_LIBRARY.MODEL_NAME_PLACEHOLDER"),
635
- maxlength: 64
636
- }, null, 8, ["modelValue", "placeholder"])
637
- ]),
638
- _: 1
639
- }, 8, ["label"]),
640
- a(e(I), {
641
- label: e(t)("COMMON_MODEL_LIBRARY.MODEL_CODE"),
642
- prop: "code"
643
- }, {
644
- default: r(() => [
645
- a(e(P), {
646
- modelValue: o.code,
647
- "onUpdate:modelValue": n[1] || (n[1] = (l) => o.code = l),
648
- placeholder: e(t)("COMMON_MODEL_LIBRARY.MODEL_CODE_PLACEHOLDER"),
649
- maxlength: 64
650
- }, null, 8, ["modelValue", "placeholder"])
651
- ]),
652
- _: 1
653
- }, 8, ["label"]),
654
- a(e(I), {
655
- label: e(t)("COMMON_MODEL_LIBRARY.MODEL_AVATAR_URL"),
656
- prop: "avatarUrl"
657
- }, {
658
- default: r(() => [
659
- a(e(ve), {
660
- fileList: c.value,
661
- previewType: "Card",
662
- onOnRemove: te
663
- }, {
664
- CardUploader: r(() => [
665
- c.value.length === 0 ? (i(), b(e(fe), {
666
- key: 0,
667
- limitSize: 5,
668
- acceptType: ".jpg,.png",
669
- defaultUploadIcon: "model",
670
- onOnSuccess: W,
671
- businessType: "model"
672
- })) : U("", !0)
673
- ]),
674
- _: 1
675
- }, 8, ["fileList"])
676
- ]),
677
- _: 1
678
- }, 8, ["label"]),
679
- a(e(I), {
680
- label: e(t)("COMMON_MODEL_LIBRARY.MODEL_TYPE"),
681
- prop: "type"
682
- }, {
683
- default: r(() => [
684
- a(e(ue), {
685
- modelValue: o.type,
686
- "onUpdate:modelValue": n[2] || (n[2] = (l) => o.type = l),
687
- placeholder: e(t)("COMMON_MODEL_LIBRARY.MODEL_TYPE_PLACEHOLDER"),
688
- style: { width: "100%" }
689
- }, {
690
- default: r(() => [
691
- (i(!0), M(Y, null, H(e(Te), (l) => (i(), b(e(ie), {
692
- key: l.value,
693
- label: e(t)(l.label),
694
- value: l.value
695
- }, null, 8, ["label", "value"]))), 128))
696
- ]),
697
- _: 1
698
- }, 8, ["modelValue", "placeholder"])
699
- ]),
700
- _: 1
701
- }, 8, ["label"]),
702
- a(e(I), {
703
- label: e(t)("COMMON_MODEL_LIBRARY.MODEL_DESCRIPTION"),
704
- prop: "description"
705
- }, {
706
- default: r(() => [
707
- a(e(P), {
708
- modelValue: o.description,
709
- "onUpdate:modelValue": n[3] || (n[3] = (l) => o.description = l),
710
- type: "textarea",
711
- placeholder: e(t)("COMMON_MODEL_LIBRARY.MODEL_DESCRIPTION_PLACEHOLDER"),
712
- maxlength: 200,
713
- autosize: { minRows: 2, maxRows: 6 },
714
- "show-word-limit": ""
715
- }, null, 8, ["modelValue", "placeholder"])
716
- ]),
717
- _: 1
718
- }, 8, ["label"]),
719
- a(e(I), {
720
- label: e(t)("COMMON_MODEL_LIBRARY.MAX_TOKENS"),
721
- prop: "maxTokens"
722
- }, {
723
- default: r(() => [
724
- a(e(P), {
725
- modelValue: o.maxTokens,
726
- "onUpdate:modelValue": n[4] || (n[4] = (l) => o.maxTokens = l),
727
- placeholder: e(t)("COMMON_MODEL_LIBRARY.MAX_TOKENS_PLACEHOLDER"),
728
- onInput: T
729
- }, null, 8, ["modelValue", "placeholder"])
730
- ]),
731
- _: 1
732
- }, 8, ["label"]),
733
- a(e(I), {
734
- label: e(t)("COMMON_MODEL_LIBRARY.CONTEXT_LENGTH"),
735
- prop: "contextLength"
736
- }, {
737
- default: r(() => [
738
- a(e(P), {
739
- modelValue: o.contextLength,
740
- "onUpdate:modelValue": n[5] || (n[5] = (l) => o.contextLength = l),
741
- placeholder: e(t)("COMMON_MODEL_LIBRARY.CONTEXT_LENGTH_PLACEHOLDER"),
742
- onInput: ee
743
- }, null, 8, ["modelValue", "placeholder"])
744
- ]),
745
- _: 1
746
- }, 8, ["label"]),
747
- a(e(I), {
748
- label: e(t)("COMMON_MODEL_LIBRARY.TOOL_CALLING"),
749
- prop: "supportFunctionCall"
750
- }, {
751
- default: r(() => [
752
- a(e(ue), {
753
- modelValue: o.supportFunctionCall,
754
- "onUpdate:modelValue": n[6] || (n[6] = (l) => o.supportFunctionCall = l),
755
- placeholder: e(t)("COMMON_MODEL_LIBRARY.TOOL_CALLING_PLACEHOLDER"),
756
- style: { width: "100%" }
757
- }, {
758
- default: r(() => [
759
- (i(!0), M(Y, null, H(e(Ne), (l) => (i(), b(e(ie), {
760
- key: l.value,
761
- label: e(t)(l.label),
762
- value: l.value
763
- }, null, 8, ["label", "value"]))), 128))
764
- ]),
765
- _: 1
766
- }, 8, ["modelValue", "placeholder"])
767
- ]),
768
- _: 1
769
- }, 8, ["label"]),
770
- a(e(I), {
771
- label: e(t)("COMMON_MODEL_LIBRARY.API_KEY"),
772
- prop: "apiKey"
773
- }, {
774
- default: r(() => [
775
- a(e(P), {
776
- modelValue: o.apiKey,
777
- "onUpdate:modelValue": n[7] || (n[7] = (l) => o.apiKey = l),
778
- placeholder: e(t)("COMMON_MODEL_LIBRARY.API_KEY_PLACEHOLDER"),
779
- type: v.value ? "text" : "password"
780
- }, {
781
- suffix: r(() => [
782
- a(e(k), {
783
- class: "cursor-pointer",
784
- onClick: F
785
- }, {
786
- default: r(() => [
787
- (i(), b(_e(v.value ? "IconLook" : "IconHide")))
788
- ]),
789
- _: 1
790
- })
791
- ]),
792
- _: 1
793
- }, 8, ["modelValue", "placeholder", "type"])
794
- ]),
795
- _: 1
796
- }, 8, ["label"]),
797
- a(e(I), {
798
- label: e(t)("COMMON_MODEL_LIBRARY.API_URL"),
799
- prop: "apiUrl"
800
- }, {
801
- default: r(() => [
802
- a(e(P), {
803
- modelValue: o.apiUrl,
804
- "onUpdate:modelValue": n[8] || (n[8] = (l) => o.apiUrl = l),
805
- placeholder: e(t)("COMMON_MODEL_LIBRARY.API_URL_PLACEHOLDER"),
806
- disabled: !!$.value
807
- }, null, 8, ["modelValue", "placeholder", "disabled"])
808
- ]),
809
- _: 1
810
- }, 8, ["label"])
811
- ]),
812
- _: 1
813
- }, 8, ["model"])
814
- ]),
815
- _: 1
816
- }, 8, ["title", "onClosed"]),
817
- a(ze, {
818
- ref_key: "deleteResourceDialog",
819
- ref: z,
820
- deleteType: "model",
821
- onSuccess: ae
822
- }, null, 512)
823
- ], 64));
824
- }
825
- }), Ze = /* @__PURE__ */ se(Je, [["__scopeId", "data-v-e1555473"]]), Ol = Me(Ze);
826
- export {
827
- Ol as AddOrEditSupplierDialog,
828
- Ue as AiboxTabs,
829
- ze as DeleteResourceDialog,
830
- ve as FilePreview,
831
- Ol as default,
832
- El as downloadBlobFile,
833
- Te as modelTypeOptions,
834
- J as toolCallingMap,
835
- Ne as toolCallingOptions
836
- };
1
+ import { a as e, i as t, n, o as r, r as i, t as a } from "./chunks/AddOrEditSupplierDialog.BKR0RsiJ.js";
2
+ import { n as o } from "./chunks/usePreview.CMMjOD_o.js";
3
+ import { t as s } from "./chunks/FilePreview.De4zHsfc.js";
4
+ import "./chunks/DialogContainer.DL7aTMDS.js";
5
+ import "./chunks/FileUploader.DD-lopf-.js";
6
+ export { a as AddOrEditSupplierDialog, a as default, i as AiboxTabs, n as DeleteResourceDialog, s as FilePreview, o as downloadBlobFile, t as modelTypeOptions, e as toolCallingMap, r as toolCallingOptions };