aibox-custom-component-packages 0.0.7 → 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 (323) hide show
  1. package/es/AddOrEditSupplierDialog.mjs +6 -786
  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 -272
  7. package/es/CodeView.mjs +6 -7
  8. package/es/CommonTagsList.mjs +3 -209
  9. package/es/CreateMcpForm.mjs +10 -384
  10. package/es/CustomSidebar.mjs +2 -712
  11. package/es/CustomTitle.mjs +6 -7
  12. package/es/CustomToggle.mjs +2 -170
  13. package/es/DialogContainer.mjs +2 -136
  14. package/es/DocSyncSelect.mjs +2 -0
  15. package/es/FileDisplay.mjs +4 -6
  16. package/es/FilePreview.mjs +3 -179
  17. package/es/FileUploader.mjs +2 -268
  18. package/es/Logo.mjs +2 -0
  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 -362
  23. package/es/ParameterTable.mjs +6 -2288
  24. package/es/PublishRecord.mjs +2 -179
  25. package/es/RadioGroup.mjs +2 -119
  26. package/es/SourcePublish.mjs +7 -1154
  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/AvailableRangePreview.css +1 -0
  34. package/es/assets/CodeView.css +1 -0
  35. package/es/assets/CommonTagsList.css +1 -1
  36. package/es/assets/CreateMcpForm.css +1 -1
  37. package/es/assets/CustomSidebar.css +1 -1
  38. package/es/assets/CustomToggle.css +1 -1
  39. package/es/assets/DialogContainer.css +1 -1
  40. package/es/assets/DocSyncSelect.css +1 -0
  41. package/es/assets/FileDisplay.css +1 -0
  42. package/es/assets/FilePreview.css +1 -1
  43. package/es/assets/FileUploader.css +1 -1
  44. package/es/assets/Logo.css +1 -0
  45. package/es/assets/{index2.css → McpFormDialog.css} +1 -1
  46. package/es/assets/McpParamsSet.css +1 -1
  47. package/es/assets/MdEditor.css +1 -1
  48. package/es/assets/PageContainer.css +1 -1
  49. package/es/assets/ParameterTable.css +1 -1
  50. package/es/assets/PublishRecord.css +1 -1
  51. package/es/assets/RadioGroup.css +1 -1
  52. package/es/assets/SourcePublish.css +1 -1
  53. package/es/assets/layout.css +1 -1
  54. package/es/assets/legacy.css +1 -0
  55. package/es/assets/usePreview.css +10 -1
  56. package/es/chunks/AddOrEditSupplierDialog.BKR0RsiJ.js +721 -0
  57. package/es/chunks/AddOrEditSupplierDialog.CjNRipPe.js +721 -0
  58. package/es/chunks/AiboxTable.CrWMAX84.js +635 -0
  59. package/es/chunks/ApplicationTypeTag.Cbdi0D65.js +47 -0
  60. package/es/chunks/AuthSection.DWD_FxtJ.js +201 -0
  61. package/es/chunks/AutoShowTooltip.C_DI9t2Z.js +82 -0
  62. package/es/chunks/AvailableRangePreview.Bz9QkkAM.js +194 -0
  63. package/es/chunks/AvailableRangeSetting.Bq_K1zar.js +229 -0
  64. package/es/chunks/CodeView.CWuSIL_F.js +148 -0
  65. package/es/chunks/CommonTagsList.DSPdgjc3.js +156 -0
  66. package/es/chunks/CreateMcpForm.BBVVd2RN.js +308 -0
  67. package/es/chunks/CreateMcpForm.C8YfDSEM.js +308 -0
  68. package/es/chunks/CustomSidebar.BSGAhmVY.js +585 -0
  69. package/es/chunks/CustomToggle.BxxsaD-W.js +181 -0
  70. package/es/chunks/DialogContainer.DL7aTMDS.js +129 -0
  71. package/es/chunks/DocSyncSelect.Kk88o9gO.js +2290 -0
  72. package/es/chunks/FileDisplay.B5laA4uX.js +1649 -0
  73. package/es/chunks/FileDisplay.BCTNdpl9.js +1649 -0
  74. package/es/chunks/FileDisplay.CBNYrdsK.js +1560 -0
  75. package/es/chunks/FileDisplay.CJ7KCID6.js +1650 -0
  76. package/es/chunks/FilePreview.B9u8ODHp.js +123 -0
  77. package/es/chunks/FilePreview.De4zHsfc.js +123 -0
  78. package/es/chunks/FileUploader.DD-lopf-.js +216 -0
  79. package/es/chunks/Logo.0myMjGux.js +62 -0
  80. package/es/chunks/McpFormDialog.4HDExbTn.js +297 -0
  81. package/es/chunks/McpFormDialog.DNzqqhaX.js +297 -0
  82. package/es/chunks/McpParamsSet.Tlo_lPn-.js +501 -0
  83. package/es/chunks/MdEditor.DtL0Se7T.js +163 -0
  84. package/es/chunks/PageContainer.DXddaRs1.js +462 -0
  85. package/es/chunks/ParameterTable.BCdnj1gW.js +2010 -0
  86. package/es/chunks/PublishRecord.DEzC7hmP.js +133 -0
  87. package/es/chunks/RadioGroup.Czc1JtkN.js +107 -0
  88. package/es/chunks/SourcePublish.Dx-ltk9U.js +956 -0
  89. package/es/chunks/_plugin-vue_export-helper.Ct3qlEzt.js +8 -0
  90. package/es/chunks/chunk.EU29TkMc.js +20 -0
  91. package/es/chunks/config.MfNKPMiA.js +35 -0
  92. package/es/chunks/config.l1J_qxeB.js +270 -0
  93. package/es/chunks/enums.DDPWAqdV.js +13 -0
  94. package/es/chunks/field-types.zf28gvKR.js +7 -0
  95. package/es/chunks/files.DvOT1nf3.js +14 -0
  96. package/es/chunks/i18n.CxsxtRq_.js +418 -0
  97. package/es/chunks/layout.C9wKDpv-.js +19 -0
  98. package/es/chunks/publish.Z0XAASut.js +50 -0
  99. package/es/chunks/request.CfOHcfgX.js +5 -0
  100. package/es/chunks/usePreview.CMMjOD_o.js +148 -0
  101. package/es/chunks/usePreview.agdxmOk8.js +126 -0
  102. package/es/chunks/withinstall.dLh4K-0g.js +7 -0
  103. package/es/index.mjs +258 -328
  104. package/index.css +1 -1
  105. package/lib/AddOrEditSupplierDialog.js +1 -1
  106. package/lib/ApplicationTypeTag.js +1 -1
  107. package/lib/AuthSection.js +1 -1
  108. package/lib/AutoShowTooltip.js +1 -1
  109. package/lib/AvailableRangePreview.js +1 -1
  110. package/lib/AvailableRangeSetting.js +1 -1
  111. package/lib/CodeView.js +1 -1
  112. package/lib/CommonTagsList.js +1 -1
  113. package/lib/CreateMcpForm.js +1 -1
  114. package/lib/CustomSidebar.js +1 -1
  115. package/lib/CustomTitle.js +1 -1
  116. package/lib/CustomToggle.js +1 -1
  117. package/lib/DialogContainer.js +1 -1
  118. package/lib/DocSyncSelect.js +1 -0
  119. package/lib/FileDisplay.js +1 -1
  120. package/lib/FilePreview.js +1 -1
  121. package/lib/FileUploader.js +1 -1
  122. package/lib/Logo.js +1 -0
  123. package/lib/McpFormDialog.js +1 -1
  124. package/lib/McpParamsSet.js +1 -1
  125. package/lib/MdEditor.js +1 -1
  126. package/lib/PageContainer.js +1 -1
  127. package/lib/ParameterTable.js +1 -1
  128. package/lib/PublishRecord.js +1 -5
  129. package/lib/RadioGroup.js +1 -1
  130. package/lib/SourcePublish.js +1 -1
  131. package/lib/Table.js +1 -1
  132. package/lib/assets/AddOrEditSupplierDialog.css +1 -1
  133. package/lib/assets/AiboxTable.css +1 -1
  134. package/lib/assets/ApplicationTypeTag.css +1 -1
  135. package/lib/assets/AuthSection.css +1 -1
  136. package/lib/assets/AutoShowTooltip.css +1 -1
  137. package/lib/assets/AvailableRangePreview.css +1 -0
  138. package/lib/assets/CodeView.css +1 -0
  139. package/lib/assets/CommonTagsList.css +1 -1
  140. package/lib/assets/CreateMcpForm.css +1 -1
  141. package/lib/assets/CustomSidebar.css +1 -1
  142. package/lib/assets/CustomToggle.css +1 -1
  143. package/lib/assets/DialogContainer.css +1 -1
  144. package/lib/assets/DocSyncSelect.css +1 -0
  145. package/lib/assets/FileDisplay.css +1 -0
  146. package/lib/assets/FilePreview.css +1 -1
  147. package/lib/assets/FileUploader.css +1 -1
  148. package/lib/assets/Logo.css +1 -0
  149. package/lib/assets/{index2.css → McpFormDialog.css} +1 -1
  150. package/lib/assets/McpParamsSet.css +1 -1
  151. package/lib/assets/MdEditor.css +1 -1
  152. package/lib/assets/PageContainer.css +1 -1
  153. package/lib/assets/ParameterTable.css +1 -1
  154. package/lib/assets/PublishRecord.css +1 -1
  155. package/lib/assets/RadioGroup.css +1 -1
  156. package/lib/assets/SourcePublish.css +1 -1
  157. package/lib/assets/layout.css +1 -1
  158. package/lib/assets/legacy.css +1 -0
  159. package/lib/assets/usePreview.css +10 -1
  160. package/lib/chunks/AddOrEditSupplierDialog.D0DSQZiS.js +1 -0
  161. package/lib/chunks/AddOrEditSupplierDialog.XtPxc5yr.js +1 -0
  162. package/lib/chunks/AiboxTable.DFyqwoGc.js +1 -0
  163. package/lib/chunks/ApplicationTypeTag.CZReMt-9.js +1 -0
  164. package/lib/chunks/AuthSection.CP9c-YTW.js +1 -0
  165. package/lib/chunks/AutoShowTooltip.D3QQ36Bm.js +1 -0
  166. package/lib/chunks/AvailableRangePreview.DvREyHNH.js +1 -0
  167. package/lib/chunks/AvailableRangeSetting.DDHTOLJA.js +1 -0
  168. package/lib/chunks/CodeView.DeBxLqyC.js +1 -0
  169. package/lib/chunks/CommonTagsList.DbNcVId5.js +1 -0
  170. package/lib/chunks/CreateMcpForm.Cm9eHXWg.js +1 -0
  171. package/lib/chunks/CreateMcpForm.DNijYbgd.js +1 -0
  172. package/lib/chunks/CustomSidebar.Dojb1xoS.js +1 -0
  173. package/lib/chunks/CustomToggle.Dz7MRyOY.js +1 -0
  174. package/lib/chunks/DialogContainer.C0Hsohgn.js +1 -0
  175. package/lib/chunks/DocSyncSelect.1gaXRzps.js +2 -0
  176. package/lib/chunks/FileDisplay.B4gn0Jhp.js +59 -0
  177. package/lib/chunks/FileDisplay.B7JWIcFg.js +59 -0
  178. package/lib/chunks/FileDisplay.BSNmvK44.js +59 -0
  179. package/lib/chunks/FileDisplay.DjtHza32.js +59 -0
  180. package/lib/chunks/FilePreview.DX9e8_nx.js +1 -0
  181. package/lib/chunks/FilePreview.b1Gine59.js +1 -0
  182. package/lib/chunks/FileUploader.6IW_QL-h.js +1 -0
  183. package/lib/chunks/Logo.Jr7hhaH0.js +1 -0
  184. package/lib/chunks/McpFormDialog.CL2bInts.js +6 -0
  185. package/lib/chunks/McpFormDialog.DbhQIwYW.js +6 -0
  186. package/lib/chunks/McpParamsSet.BYrxVvDL.js +1 -0
  187. package/lib/chunks/MdEditor.rVQbuxCg.js +1 -0
  188. package/lib/chunks/PageContainer.elwvD8VL.js +1 -0
  189. package/lib/chunks/ParameterTable.CeufAEXh.js +1 -0
  190. package/lib/chunks/PublishRecord.B7xYlRKJ.js +5 -0
  191. package/lib/chunks/RadioGroup.cl57IvY3.js +1 -0
  192. package/lib/chunks/SourcePublish.K4tntn9l.js +1 -0
  193. package/lib/chunks/_plugin-vue_export-helper.Bgn9wawX.js +1 -0
  194. package/lib/chunks/chunk.BbA6Ugdl.js +1 -0
  195. package/lib/chunks/config.CDNV0bUm.js +1 -0
  196. package/lib/chunks/config.CZl1kYtI.js +1 -0
  197. package/lib/chunks/enums.DbdzzIzx.js +1 -0
  198. package/lib/chunks/field-types.C6f_z2S_.js +1 -0
  199. package/lib/chunks/files.BEXWmB32.js +1 -0
  200. package/lib/chunks/i18n.BGe5gOau.js +1 -0
  201. package/lib/chunks/layout.CK394aWE.js +1 -0
  202. package/lib/chunks/publish.DsepP8ll.js +1 -0
  203. package/lib/chunks/request.BuoFTs7h.js +1 -0
  204. package/lib/chunks/usePreview.7CCbmgQM.js +1 -0
  205. package/lib/chunks/usePreview.Dmhz8azZ.js +1 -0
  206. package/lib/chunks/withinstall.65aRnaVc.js +1 -0
  207. package/lib/index.js +2 -1
  208. package/package.json +6 -6
  209. package/es/AiboxTabs.mjs +0 -71
  210. package/es/ExampleComponent.mjs +0 -35
  211. package/es/assets/AiboxTabs.css +0 -1
  212. package/es/assets/BackBar.css +0 -1
  213. package/es/assets/ExampleComponent.css +0 -1
  214. package/es/assets/index.css +0 -1
  215. package/es/assets/index3.css +0 -1
  216. package/es/assets/index4.css +0 -1
  217. package/es/assets/index5.css +0 -1
  218. package/es/assets/index6.css +0 -1
  219. package/es/chunks/AiboxTable.DUGBBVXh.js +0 -645
  220. package/es/chunks/BackBar.B5Er8ZdJ.js +0 -645
  221. package/es/chunks/BackBar.Bc2NIuzk.js +0 -645
  222. package/es/chunks/BackBar.Cv1wxUcM.js +0 -645
  223. package/es/chunks/BackBar.DJV4JaUM.js +0 -645
  224. package/es/chunks/_plugin-vue_export-helper.CHgC5LLL.js +0 -9
  225. package/es/chunks/config.8htFF04x.js +0 -325
  226. package/es/chunks/config.BPp4hMBq.js +0 -325
  227. package/es/chunks/config.BU21Gda2.js +0 -49
  228. package/es/chunks/config.BzCGum_W.js +0 -49
  229. package/es/chunks/config.CFWGjEdA.js +0 -49
  230. package/es/chunks/config.CfWAdyUH.js +0 -325
  231. package/es/chunks/config.DPkdwjwD.js +0 -49
  232. package/es/chunks/config.DTMcCH58.js +0 -325
  233. package/es/chunks/config.Dklrsn-B.js +0 -49
  234. package/es/chunks/config.DqhQdkz7.js +0 -325
  235. package/es/chunks/config.RrNwuFkQ.js +0 -325
  236. package/es/chunks/config.gNZ_rT87.js +0 -325
  237. package/es/chunks/enums.CfSBDD6u.js +0 -83
  238. package/es/chunks/enums.DuBbLcd-.js +0 -83
  239. package/es/chunks/enums.Dvec-maC.js +0 -62
  240. package/es/chunks/field-types.CPnMOjle.js +0 -13
  241. package/es/chunks/files.cduUqjHX.js +0 -16
  242. package/es/chunks/i18n.DDMVloiU.js +0 -443
  243. package/es/chunks/i18n.DmqkiK-h.js +0 -444
  244. package/es/chunks/i18n.Vhq-tZPw.js +0 -94
  245. package/es/chunks/i18n.k9Q_HVMs.js +0 -443
  246. package/es/chunks/i18n.ro9yz7rE.js +0 -94
  247. package/es/chunks/index.BSA3IKSF.js +0 -111
  248. package/es/chunks/index.BT1khSY9.js +0 -111
  249. package/es/chunks/index.CDvh263l.js +0 -257
  250. package/es/chunks/index.CLyfh6p1.js +0 -257
  251. package/es/chunks/index.CSjjAi3w.js +0 -396
  252. package/es/chunks/index.CdEBk4F_.js +0 -134
  253. package/es/chunks/index.CgbxJCEU.js +0 -265
  254. package/es/chunks/index.CuDwuRO7.js +0 -265
  255. package/es/chunks/index.DB0ayMv8.js +0 -257
  256. package/es/chunks/index.DWR4lc30.js +0 -203
  257. package/es/chunks/index.GuEzdh6b.js +0 -257
  258. package/es/chunks/index.aMb6IVQD.js +0 -257
  259. package/es/chunks/index.bCzIhWFw.js +0 -7
  260. package/es/chunks/index.ml5i7aB5.js +0 -257
  261. package/es/chunks/index.s-YxIOfq.js +0 -301
  262. package/es/chunks/index.uOZzvHrF.js +0 -135
  263. package/es/chunks/layout.BREUWPEJ.js +0 -26
  264. package/es/chunks/publish.BCb7nCo9.js +0 -50
  265. package/es/chunks/publish.D6friivo.js +0 -50
  266. package/es/chunks/publish.DlD0o09n.js +0 -50
  267. package/es/chunks/publish.Dqzn7qEl.js +0 -50
  268. package/es/chunks/request.24c3shPx.js +0 -5
  269. package/es/chunks/usePreview.B5lboHeg.js +0 -153
  270. package/es/chunks/usePreview.C36fNlVd.js +0 -153
  271. package/es/i18n.mjs +0 -17
  272. package/lib/AiboxTabs.js +0 -1
  273. package/lib/ExampleComponent.js +0 -1
  274. package/lib/assets/AiboxTabs.css +0 -1
  275. package/lib/assets/BackBar.css +0 -1
  276. package/lib/assets/ExampleComponent.css +0 -1
  277. package/lib/assets/index.css +0 -1
  278. package/lib/assets/index3.css +0 -1
  279. package/lib/assets/index4.css +0 -1
  280. package/lib/assets/index5.css +0 -1
  281. package/lib/assets/index6.css +0 -1
  282. package/lib/chunks/AiboxTable.BnoHJ7xL.js +0 -1
  283. package/lib/chunks/BackBar.C8Xrc6qW.js +0 -1
  284. package/lib/chunks/BackBar.CZsNxoX1.js +0 -1
  285. package/lib/chunks/BackBar.s5_vN6jt.js +0 -1
  286. package/lib/chunks/_plugin-vue_export-helper.BHFhmbuH.js +0 -1
  287. package/lib/chunks/config.1oaIKLGn.js +0 -1
  288. package/lib/chunks/config.B0XKkp1w.js +0 -1
  289. package/lib/chunks/config.BCAuBVxV.js +0 -1
  290. package/lib/chunks/config.BF7MO0O5.js +0 -1
  291. package/lib/chunks/config.Bs7sh3aP.js +0 -1
  292. package/lib/chunks/config.C1w4hgfw.js +0 -1
  293. package/lib/chunks/config.ClERt2RF.js +0 -1
  294. package/lib/chunks/enums.Dmq4PdUc.js +0 -1
  295. package/lib/chunks/enums.DnuzPZCR.js +0 -1
  296. package/lib/chunks/field-types.Ch_2yDfg.js +0 -1
  297. package/lib/chunks/files.B3-8UC0v.js +0 -1
  298. package/lib/chunks/i18n.CL5L6nx6.js +0 -1
  299. package/lib/chunks/i18n.DgOp_D7R.js +0 -1
  300. package/lib/chunks/i18n.aAXi5igh.js +0 -1
  301. package/lib/chunks/index.BNqTEn3K.js +0 -1
  302. package/lib/chunks/index.BZcSlgOO.js +0 -1
  303. package/lib/chunks/index.Bc71XWQn.js +0 -1
  304. package/lib/chunks/index.Bk-RwmaH.js +0 -1
  305. package/lib/chunks/index.BsN4urmi.js +0 -1
  306. package/lib/chunks/index.CH7XdMru.js +0 -1
  307. package/lib/chunks/index.CaidDlAx.js +0 -1
  308. package/lib/chunks/index.CkihWzK6.js +0 -1
  309. package/lib/chunks/index.D7wBInWr.js +0 -1
  310. package/lib/chunks/index.DGWHQFdx.js +0 -6
  311. package/lib/chunks/index.DME62Yfo.js +0 -1
  312. package/lib/chunks/index.DWohILMv.js +0 -1
  313. package/lib/chunks/index.LK2ulXTE.js +0 -1
  314. package/lib/chunks/index.qDAoOzk9.js +0 -1
  315. package/lib/chunks/index.s8vGOJKG.js +0 -1
  316. package/lib/chunks/layout.sgE9JoNq.js +0 -1
  317. package/lib/chunks/publish.3TrK3fZf.js +0 -1
  318. package/lib/chunks/publish.Bw1acrSu.js +0 -1
  319. package/lib/chunks/publish.CA1uSVnm.js +0 -1
  320. package/lib/chunks/request.D8T4MgGX.js +0 -1
  321. package/lib/chunks/usePreview.2PZJSy5w.js +0 -1
  322. package/lib/chunks/usePreview.E5SeS2uw.js +0 -1
  323. package/lib/i18n.js +0 -1
@@ -0,0 +1,956 @@
1
+ import { t as e } from "./withinstall.dLh4K-0g.js";
2
+ import { m as t } from "./i18n.CxsxtRq_.js";
3
+ import { t as n } from "./_plugin-vue_export-helper.Ct3qlEzt.js";
4
+ import { t as r } from "./AvailableRangeSetting.Bq_K1zar.js";
5
+ import { _ as i, a, c as o, g as s, h as c, i as l, n as u, p as d, r as f, t as p, v as m, y as h } from "./config.l1J_qxeB.js";
6
+ import { r as g, t as _ } from "./AiboxTable.CrWMAX84.js";
7
+ import { t as ee } from "./publish.Z0XAASut.js";
8
+ import { Fragment as v, computed as te, createBlock as y, createCommentVNode as b, createElementBlock as x, createElementVNode as S, createTextVNode as C, createVNode as w, getCurrentInstance as ne, inject as re, nextTick as T, normalizeClass as E, normalizeStyle as D, onMounted as ie, openBlock as O, ref as k, renderList as A, renderSlot as j, resolveDirective as M, resolveDynamicComponent as N, shallowRef as P, toDisplayString as F, unref as I, watch as ae, withCtx as L, withDirectives as R, withModifiers as oe } from "vue";
9
+ import { ElButton as se, ElCheckbox as z, ElForm as ce, ElFormItem as B, ElIcon as V, ElInput as le, ElInputNumber as H, ElMessage as U, ElOption as W, ElSelect as G, ElSwitch as ue, ElTag as de, ElTooltip as K } from "element-plus";
10
+ import { IconTip as q } from "color-message-aibox-vue";
11
+ import { SOURCE_TYPE as J } from "color-star-custom-components";
12
+ import { useRoute as fe, useRouter as pe } from "vue-router";
13
+ import '../assets/SourcePublish.css';//#endregion
14
+ //#region components/SourcePublish/SourceComponents/StyleTitle.vue
15
+ var Y = {}, me = { class: "style-title" };
16
+ function he(e, t) {
17
+ return O(), x("div", me, [j(e.$slots, "default", {}, void 0, !0)]);
18
+ }
19
+ var X = /* @__PURE__ */ n(Y, [["render", he], ["__scopeId", "data-v-58195e4c"]]), ge = {}, _e = { class: "card-container" };
20
+ function ve(e, t) {
21
+ return O(), x("div", _e, [j(e.$slots, "default", {}, void 0, !0)]);
22
+ }
23
+ var Z = /* @__PURE__ */ n(ge, [["render", ve], ["__scopeId", "data-v-d8a76b28"]]), ye = /* @__PURE__ */ n({
24
+ __name: "PublishIcon",
25
+ props: {
26
+ publishType: {
27
+ type: [String, Number],
28
+ default: ""
29
+ },
30
+ size: {
31
+ type: [String, Number],
32
+ default: 30
33
+ }
34
+ },
35
+ setup(e) {
36
+ let t = e, n = Object.keys(f).reduce((e, t) => {
37
+ let n = f[t];
38
+ return e[t] = {
39
+ ...n,
40
+ icon: P(n.icon)
41
+ }, e;
42
+ }, {}), r = k({});
43
+ return ie(() => {
44
+ r.value = n[d[t.publishType] || "h5"];
45
+ }), (t, n) => (O(), x("div", {
46
+ class: "channel-icon flex items-center justify-center radius-8",
47
+ style: D({ background: r.value?.backgroundColor })
48
+ }, [w(I(V), {
49
+ size: e.size,
50
+ color: r.value?.iconColor
51
+ }, {
52
+ default: L(() => [(O(), y(N(r.value?.icon)))]),
53
+ _: 1
54
+ }, 8, ["size", "color"])], 4));
55
+ }
56
+ }, [["__scopeId", "data-v-197d4379"]]), Q = { class: "permission-setting" }, be = {
57
+ key: 1,
58
+ class: "flex items-center gap-12 pd-t-16 pd-b-16"
59
+ }, $ = {
60
+ class: "min-w-110 fz-14 text-left flex-shrink-0",
61
+ style: { color: "var(--el-text-color-primary)" }
62
+ }, xe = { class: "flex items-center gap-6" }, Se = {
63
+ class: "flex flex-col lh-18",
64
+ style: { "align-items": "flex-start" }
65
+ }, Ce = {
66
+ class: "fz-12",
67
+ style: { color: "var(--el-text-color-secondary)" }
68
+ }, we = /* @__PURE__ */ n({
69
+ __name: "PermissionSetting",
70
+ props: {
71
+ showAvailableRange: {
72
+ type: Boolean,
73
+ default: !0
74
+ },
75
+ showPermissionSetting: {
76
+ type: Boolean,
77
+ default: !0
78
+ },
79
+ detail: {
80
+ type: Object,
81
+ default: () => ({})
82
+ },
83
+ authType: {
84
+ type: String,
85
+ default: ""
86
+ }
87
+ },
88
+ emits: ["update:detail"],
89
+ setup(e, { expose: n, emit: i }) {
90
+ let { t: a } = t(), s = e, c = i, l = k(null), u = (e) => {
91
+ c("update:detail", {
92
+ ...s.detail,
93
+ openStatus: e
94
+ });
95
+ }, d = (e) => {
96
+ c("update:detail", {
97
+ ...s.detail,
98
+ allVisible: e
99
+ });
100
+ }, f = (e) => {
101
+ c("update:detail", {
102
+ ...s.detail,
103
+ visibleScope: e
104
+ });
105
+ };
106
+ return n({ validateVisibleRange: () => {
107
+ if (s.authType === "0") return {
108
+ isValid: !0,
109
+ data: {
110
+ visibleScope: [],
111
+ allVisible: !0,
112
+ openStatus: 1
113
+ }
114
+ };
115
+ if (!s.showAvailableRange) return {
116
+ isValid: !0,
117
+ data: { openStatus: s.detail.openStatus ?? 0 }
118
+ };
119
+ if (!l.value) return {
120
+ isValid: !0,
121
+ data: null
122
+ };
123
+ let e = l.value.getSelectedItems();
124
+ return e?.allVisible === void 0 ? (U.warning(a("MESSAGE_REMIND.SELECT_VISIBLE_RANGE")), {
125
+ isValid: !1,
126
+ data: null
127
+ }) : {
128
+ isValid: !0,
129
+ data: {
130
+ ...e,
131
+ openStatus: s.detail.openStatus ?? 0
132
+ }
133
+ };
134
+ } }), (t, n) => (O(), x("div", Q, [e.showAvailableRange ? (O(), y(I(r), {
135
+ key: 0,
136
+ "all-visible": e.detail.allVisible,
137
+ "model-value": e.detail.visibleScope,
138
+ class: E(["pd-t-16", { "pd-b-16": !e.showPermissionSetting }]),
139
+ ref_key: "availableRangeSettingRef",
140
+ ref: l,
141
+ "onUpdate:allVisible": d,
142
+ "onUpdate:modelValue": f
143
+ }, null, 8, [
144
+ "all-visible",
145
+ "model-value",
146
+ "class"
147
+ ])) : b("", !0), e.showPermissionSetting ? (O(), x("div", be, [S("div", $, [
148
+ n[0] ||= S("span", {
149
+ class: "mg-r-2",
150
+ style: { color: "var(--el-color-danger)" }
151
+ }, "*", -1),
152
+ C(" " + F(I(a)("PUTRESOURCEONSHELFDIALOG_TEXT.RESOURCE_PERMISSION_SETTING")) + " ", 1),
153
+ w(I(K), {
154
+ content: I(a)("PUTRESOURCEONSHELFDIALOG_TEXT.RESOURCE_PERMISSION_SETTING_TOOLTIP"),
155
+ placement: "top"
156
+ }, {
157
+ default: L(() => [w(I(V), {
158
+ class: "mg-l-4",
159
+ size: "14px"
160
+ }, {
161
+ default: L(() => [w(I(q))]),
162
+ _: 1
163
+ })]),
164
+ _: 1
165
+ }, 8, ["content"])
166
+ ]), S("div", xe, [w(I(z), {
167
+ "model-value": e.detail.openStatus,
168
+ "onUpdate:modelValue": u,
169
+ "true-value": I(o).TRUE,
170
+ "false-value": I(o).FALSE,
171
+ class: "mg-r-0"
172
+ }, {
173
+ default: L(() => [S("div", Se, F(I(a)("PUTRESOURCEONSHELFDIALOG_TEXT.FREE_RESOURCE")), 1)]),
174
+ _: 1
175
+ }, 8, [
176
+ "model-value",
177
+ "true-value",
178
+ "false-value"
179
+ ]), S("span", Ce, F(I(a)("PUTRESOURCEONSHELFDIALOG_TEXT.FREE_RESOURCE_MCPKEY")), 1)])])) : b("", !0)]));
180
+ }
181
+ }, [["__scopeId", "data-v-637dc461"]]), Te = {
182
+ __name: "FeishuTooltip",
183
+ props: { channelType: {
184
+ type: [String, Number],
185
+ required: !0
186
+ } },
187
+ setup(e) {
188
+ let { t: n } = t();
189
+ return (t, r) => e.channelType === I(c).FEISHU_WEB ? (O(), y(I(K), {
190
+ key: 0,
191
+ placement: "top"
192
+ }, {
193
+ content: L(() => [C(F(I(n)("SOURCE_PUBLISH.FEISHU_WEB_TOOLTIP")), 1)]),
194
+ default: L(() => [w(I(V), {
195
+ size: "14px",
196
+ color: "#999",
197
+ style: { "margin-left": "5px" }
198
+ }, {
199
+ default: L(() => [w(I(q))]),
200
+ _: 1
201
+ })]),
202
+ _: 1
203
+ })) : b("", !0);
204
+ }
205
+ }, Ee = {
206
+ __name: "ApiTooltip",
207
+ props: {
208
+ channelType: {
209
+ type: [String, Number],
210
+ required: !0
211
+ },
212
+ isAuth: {
213
+ type: Boolean,
214
+ required: !0
215
+ }
216
+ },
217
+ setup(e) {
218
+ let { t: n } = t();
219
+ return (t, r) => I(p).includes(e.channelType) ? (O(), y(I(K), {
220
+ key: 0,
221
+ placement: "top"
222
+ }, {
223
+ content: L(() => [C(F(e.isAuth ? I(n)("SOURCE_PUBLISH.PUBLISH_AUTHORIZE_MSG") || "请先完成授权" : I(n)("SOURCE_PUBLISH.PUBLISH_ACCESS_TOKEN_MSG") || "调用需要创建访问凭证"), 1)]),
224
+ default: L(() => [w(I(V), {
225
+ size: "14px",
226
+ color: "#999",
227
+ style: { "margin-left": "5px" }
228
+ }, {
229
+ default: L(() => [w(I(q))]),
230
+ _: 1
231
+ })]),
232
+ _: 1
233
+ })) : b("", !0);
234
+ }
235
+ }, De = { class: "publish-settings" }, Oe = { class: "channel-name flex items-center overflow-hidden w-full" }, ke = { class: "channel-title flex-1 overflow-hidden" }, Ae = { class: "channel-title__name" }, je = { class: "channel-title__desc" }, Me = {
236
+ key: 0,
237
+ class: "expand-content"
238
+ }, Ne = { class: "select-label" }, Pe = { class: "select-label" }, Fe = { class: "select-label" }, Ie = { class: "action-container" }, Le = { class: "select-label" }, Re = /* @__PURE__ */ n({
239
+ __name: "PublishSettings",
240
+ props: {
241
+ modelValue: {
242
+ type: Array,
243
+ default: () => []
244
+ },
245
+ sourceType: {
246
+ type: String,
247
+ default: J.AGENT
248
+ },
249
+ channelManagement: {
250
+ type: Array,
251
+ default: () => []
252
+ },
253
+ isBackendSystem: {
254
+ type: Boolean,
255
+ default: !1
256
+ },
257
+ disabled: {
258
+ type: Boolean,
259
+ default: !1
260
+ },
261
+ authType: {
262
+ type: String,
263
+ default: ""
264
+ }
265
+ },
266
+ emits: ["validateField", "update:modelValue"],
267
+ setup(e, { expose: n, emit: r }) {
268
+ let o = re(i), d = ne(), f = pe();
269
+ fe();
270
+ let h = r, g = e, { checkToken: E } = ee(), D = k(null), j = k(null), M = k(!1), N = k(""), P = k({}), { t: R } = t(), oe = k([]), z = te(() => {
271
+ let e = m(g.sourceType, g.channelManagement) || [];
272
+ return g.isBackendSystem ? e.filter((e) => e.channelType !== "3") : e;
273
+ }), V = (e) => oe.value?.find((t) => t.id === e.id)?.id ? l.PUBLISHED : l.UNPUBLISHED, le = { bakInt: [{
274
+ required: !0,
275
+ trigger: "change"
276
+ }] }, ue = te(() => [
277
+ {
278
+ type: "selection",
279
+ selectable: (e) => g.disabled || e.id == c.AIBox ? !1 : p.includes(e.id) ? M.value : !0,
280
+ show: !g.isBackendSystem
281
+ },
282
+ {
283
+ label: R("SOURCE_PUBLISH.PUBLISH_CHANNEL") || "发布渠道",
284
+ prop: "name",
285
+ slot: "name",
286
+ show: !0
287
+ },
288
+ {
289
+ type: "expand",
290
+ prop: "expand",
291
+ width: 1,
292
+ show: !0
293
+ },
294
+ {
295
+ label: "",
296
+ prop: "status",
297
+ slot: "status",
298
+ width: 100,
299
+ show: !g.isBackendSystem
300
+ },
301
+ {
302
+ label: "",
303
+ prop: "action",
304
+ slot: "action",
305
+ show: !0
306
+ },
307
+ {
308
+ label: "",
309
+ prop: "inActive",
310
+ slot: "inActive",
311
+ width: 100,
312
+ show: g.isBackendSystem
313
+ }
314
+ ].filter((e) => e.show)), K = [{
315
+ label: R("COMMON_HOOKS.SERVICE_TYPE_ENUMLIST.LABEL_1") || "专享服务",
316
+ value: "PRIVATE"
317
+ }, {
318
+ label: R("COMMON_HOOKS.SERVICE_TYPE_ENUMLIST.LABEL_2") || "开发者计算",
319
+ value: "DEVELOPER"
320
+ }], q = k(!1), Y = k([]), me = (e) => {
321
+ if (oe.value = e, q.value) {
322
+ q.value = !1, Y.value = e, h("update:modelValue", e), h("validateField");
323
+ return;
324
+ }
325
+ let t = e.some((e) => e.id === c.FEISHU_WEB), n = e.some((e) => e.id === c.H5), r = Y.value.some((e) => e.id === c.FEISHU_WEB), i = Y.value.some((e) => e.id === c.H5), a = t && !r, o = !n && i;
326
+ if (a && !n) {
327
+ let e = z.value.find((e) => e.id === c.H5);
328
+ if (e) {
329
+ q.value = !0, U.warning(R("SOURCE_PUBLISH.FEISHU_H5_LINKAGE_SELECT")), T(() => {
330
+ D.value?.handleToggleRowSelection(e, !0);
331
+ });
332
+ return;
333
+ }
334
+ }
335
+ if (o && t) {
336
+ let e = z.value.find((e) => e.id === c.FEISHU_WEB);
337
+ if (e) {
338
+ q.value = !0, U.warning(R("SOURCE_PUBLISH.H5_FEISHU_LINKAGE_DESELECT")), T(() => {
339
+ D.value?.handleToggleRowSelection(e, !1);
340
+ });
341
+ return;
342
+ }
343
+ }
344
+ Y.value = e, h("update:modelValue", e), h("validateField");
345
+ }, he = (e) => {
346
+ let t = V(e);
347
+ D.value?.handleToggleRowSelection(e, t);
348
+ }, X = (e, t) => {
349
+ e.allVisible = t.allVisible, e.visibleScope = t.visibleScope, e.openStatus = t.openStatus;
350
+ }, ge = async () => {
351
+ let e = await E();
352
+ console.log(e, "res"), M.value = e.data || !1;
353
+ }, _e = (e, t) => {
354
+ t && (P.value.bakInt = t.bakInt, N.value = t.serviceType, Q.value = t.currency);
355
+ let n = z.value.filter((t) => e.includes(t.id));
356
+ n.forEach((e) => {
357
+ D.value?.handleToggleRowSelection(e, !0);
358
+ }), T(() => {
359
+ me(n);
360
+ });
361
+ }, ve = () => "no-expand", Z = () => {
362
+ f.push({ name: "ApiManage" });
363
+ }, Q = k(""), be = k([]), $ = k(!1);
364
+ return ae(() => g.modelValue, (e) => {
365
+ let t = [];
366
+ if (e && e.find((e) => s.includes(e.id))) {
367
+ let n = e.find((e) => s.includes(e.id));
368
+ n && t.push(n.id), $.value = !0;
369
+ } else $.value = !1;
370
+ e && e.find((e) => e.id === c.FEISHU_WEB) && t.push(c.FEISHU_WEB), be.value = t;
371
+ }, {
372
+ immediate: !0,
373
+ deep: !0
374
+ }), ie(() => {
375
+ ge();
376
+ }), n({
377
+ get bakInt() {
378
+ return P.value.bakInt;
379
+ },
380
+ serviceType: N,
381
+ currency: Q,
382
+ channels: z,
383
+ categoryForm: P,
384
+ handleToggleRowSelection: _e,
385
+ getVisibleRangeData: (e) => {
386
+ let t = `permissionSettingRef_${e}`, n = d?.refs?.[t];
387
+ if (n) {
388
+ let e = n.validateVisibleRange();
389
+ return e.isValid ? e.data : null;
390
+ }
391
+ return null;
392
+ },
393
+ validateCategory: async () => j.value ? (j.value.scrollToField("bakInt"), j.value.validate().catch(() => (U.warning(R("SOURCE_PUBLISH.PUBLISH_CATEGORY_MSG")), Promise.reject(!1)))) : !0
394
+ }), (t, n) => (O(), x("div", De, [w(_, {
395
+ columns: ue.value,
396
+ data: z.value,
397
+ "on-row-key": (e) => e.id,
398
+ total: z.value.length,
399
+ style: { width: "100%" },
400
+ hasPage: !1,
401
+ "show-handle-nums": 1,
402
+ onRowClassName: ve,
403
+ "expand-row-keys": be.value,
404
+ "default-expand-all": !1,
405
+ onOnMultiSelection: me,
406
+ ref_key: "aiboxTableRef",
407
+ ref: D
408
+ }, {
409
+ name: L(({ row: t }) => [S("div", Oe, [w(ye, {
410
+ "publish-type": t.id,
411
+ size: 24
412
+ }, null, 8, ["publish-type"]), S("div", ke, [S("p", Ae, [
413
+ C(F(t.name(e.sourceType)) + " ", 1),
414
+ w(Ee, {
415
+ "channel-type": t.id,
416
+ "is-auth": M.value
417
+ }, null, 8, ["channel-type", "is-auth"]),
418
+ w(Te, { "channel-type": t.id }, null, 8, ["channel-type"])
419
+ ]), S("p", je, F(t.description), 1)])])]),
420
+ expand: L(({ row: r }) => [r.id === I(c).PLUGIN_STORE ? (O(), x("div", Me, [
421
+ w(I(G), {
422
+ modelValue: P.value.bakInt,
423
+ "onUpdate:modelValue": n[0] ||= (e) => P.value.bakInt = e,
424
+ placeholder: I(R)("SOURCE_PUBLISH.DEFAULT_SELECT_MSG") || "请选择",
425
+ style: { width: "200px" },
426
+ disabled: e.disabled
427
+ }, {
428
+ prefix: L(() => [S("div", Ne, F(I(R)("SOURCE_PUBLISH.CATEGORY") || "分类"), 1), n[4] ||= S("div", { class: "divider" }, null, -1)]),
429
+ default: L(() => [(O(!0), x(v, null, A(I(o), (e) => (O(), y(I(W), {
430
+ key: e.value,
431
+ label: e.label,
432
+ value: e.value
433
+ }, null, 8, ["label", "value"]))), 128))]),
434
+ _: 1
435
+ }, 8, [
436
+ "modelValue",
437
+ "placeholder",
438
+ "disabled"
439
+ ]),
440
+ g.authType == "1" ? (O(), y(I(G), {
441
+ key: 0,
442
+ modelValue: N.value,
443
+ "onUpdate:modelValue": n[1] ||= (e) => N.value = e,
444
+ placeholder: I(R)("SOURCE_PUBLISH.DEFAULT_SELECT_MSG") || "请选择",
445
+ style: { width: "200px" },
446
+ disabled: e.disabled
447
+ }, {
448
+ prefix: L(() => [S("div", Pe, F(I(R)("SOURCE_PUBLISH.SERVICE_TYPE") || "服务类型"), 1), n[5] ||= S("div", { class: "divider" }, null, -1)]),
449
+ default: L(() => [(O(), x(v, null, A(K, (e) => w(I(W), {
450
+ key: e.value,
451
+ label: e.label,
452
+ value: e.value
453
+ }, null, 8, ["label", "value"])), 64))]),
454
+ _: 1
455
+ }, 8, [
456
+ "modelValue",
457
+ "placeholder",
458
+ "disabled"
459
+ ])) : b("", !0),
460
+ N.value === t.q.CURRENCY ? (O(), y(I(H), {
461
+ key: 1,
462
+ modelValue: Q.value,
463
+ "onUpdate:modelValue": n[2] ||= (e) => Q.value = e,
464
+ precision: 2,
465
+ style: { width: "200px" },
466
+ "controls-position": "right",
467
+ disabled: e.disabled
468
+ }, {
469
+ prefix: L(() => [S("div", Fe, F(I(R)("SOURCE_PUBLISH.CONSUME_VALUE") || "消费值"), 1), n[6] ||= S("div", { class: "divider" }, null, -1)]),
470
+ _: 1
471
+ }, 8, ["modelValue", "disabled"])) : b("", !0)
472
+ ])) : b("", !0), [
473
+ I(c).FEISHU_WEB,
474
+ I(c).AGENT_STORE,
475
+ I(c).MCP_STORE
476
+ ].includes(r.id) ? (O(), y(we, {
477
+ key: 1,
478
+ "show-permission-setting": r.id === I(c).MCP_STORE && g.authType !== "0",
479
+ "show-available-range": g.authType !== "0",
480
+ "auth-type": g.authType,
481
+ detail: r,
482
+ ref: `permissionSettingRef_${r.id}`,
483
+ "onUpdate:detail": (e) => X(r, e)
484
+ }, null, 8, [
485
+ "show-permission-setting",
486
+ "show-available-range",
487
+ "auth-type",
488
+ "detail",
489
+ "onUpdate:detail"
490
+ ])) : b("", !0)]),
491
+ status: L(({ row: e }) => [I(u).includes(e.id) ? (O(), y(I(de), {
492
+ key: 0,
493
+ type: "success"
494
+ }, {
495
+ default: L(() => [C(F(I(R)("SOURCE_PUBLISH.PUBLISH_AUTHORIZE_STATUS") || "已授权"), 1)]),
496
+ _: 1
497
+ })) : I(p).includes(e.id) ? (O(), y(I(de), {
498
+ key: 1,
499
+ type: M.value ? "success" : "info"
500
+ }, {
501
+ default: L(() => [C(F(M.value ? I(R)("SOURCE_PUBLISH.PUBLISH_AUTHORIZE_STATUS") || "已授权" : I(R)("SOURCE_PUBLISH.PUBLISH_UNAUTHORIZE_STATUS") || "未授权"), 1)]),
502
+ _: 1
503
+ }, 8, ["type"])) : b("", !0)]),
504
+ inActive: L(({ row: t }) => [w(I(G), {
505
+ "model-value": V(t),
506
+ disabled: e.disabled,
507
+ onChange: (e) => he(t)
508
+ }, {
509
+ default: L(() => [(O(!0), x(v, null, A(I(a), (e) => (O(), y(I(W), {
510
+ key: e.value,
511
+ label: e.label,
512
+ value: e.value
513
+ }, null, 8, ["label", "value"]))), 128))]),
514
+ _: 1
515
+ }, 8, [
516
+ "model-value",
517
+ "disabled",
518
+ "onChange"
519
+ ])]),
520
+ action: L(({ row: t }) => [S("div", Ie, [I(p).includes(t.id) && !e.isBackendSystem ? (O(), y(I(se), {
521
+ key: 0,
522
+ type: "primary",
523
+ link: "",
524
+ onClick: (e) => Z(t)
525
+ }, {
526
+ default: L(() => [C(F(I(R)("SOURCE_PUBLISH.CONFIG") || "配置"), 1)]),
527
+ _: 1
528
+ }, 8, ["onClick"])) : b("", !0), I(s).slice(0, 3).includes(t.id) && e.sourceType != I(J).PLUGIN && $.value ? (O(), y(I(ce), {
529
+ key: 1,
530
+ ref_key: "categoryFormRef",
531
+ ref: j,
532
+ model: P.value,
533
+ rules: le
534
+ }, {
535
+ default: L(() => [w(I(B), { prop: "bakInt" }, {
536
+ default: L(() => [w(I(G), {
537
+ modelValue: P.value.bakInt,
538
+ "onUpdate:modelValue": n[3] ||= (e) => P.value.bakInt = e,
539
+ placeholder: I(R)("SOURCE_PUBLISH.DEFAULT_SELECT_MSG") || "请选择",
540
+ style: { width: "150px" },
541
+ disabled: e.disabled
542
+ }, {
543
+ prefix: L(() => [S("div", Le, F(I(R)("SOURCE_PUBLISH.CATEGORY") || "分类"), 1), n[7] ||= S("div", { class: "divider" }, null, -1)]),
544
+ default: L(() => [(O(!0), x(v, null, A(I(o), (e) => (O(), y(I(W), {
545
+ key: e.value,
546
+ label: e.label,
547
+ value: e.value
548
+ }, null, 8, ["label", "value"]))), 128))]),
549
+ _: 1
550
+ }, 8, [
551
+ "modelValue",
552
+ "placeholder",
553
+ "disabled"
554
+ ])]),
555
+ _: 1
556
+ })]),
557
+ _: 1
558
+ }, 8, ["model"])) : b("", !0)])]),
559
+ _: 1
560
+ }, 8, [
561
+ "columns",
562
+ "data",
563
+ "on-row-key",
564
+ "total",
565
+ "expand-row-keys"
566
+ ])]));
567
+ }
568
+ }, [["__scopeId", "data-v-5cc3cfd2"]]), ze = { class: "publish-container__back" }, Be = { class: "publish-container__config" }, Ve = { class: "publish-container__config" }, He = /* @__PURE__ */ n({
569
+ __name: "layout",
570
+ props: {
571
+ showPublishConfig: {
572
+ type: Boolean,
573
+ default: !0
574
+ },
575
+ propsSourceBnid: {
576
+ type: String,
577
+ default: ""
578
+ },
579
+ propsSourceType: {
580
+ type: String,
581
+ default: ""
582
+ },
583
+ propsAuthType: {
584
+ type: String,
585
+ default: ""
586
+ },
587
+ businessSpace: {
588
+ type: String,
589
+ default: ""
590
+ },
591
+ isBackendSystem: {
592
+ type: Boolean,
593
+ default: !1
594
+ },
595
+ disabled: {
596
+ type: Boolean,
597
+ default: !1
598
+ },
599
+ rowBnid: {
600
+ type: String,
601
+ default: ""
602
+ },
603
+ isShowBack: {
604
+ type: Boolean,
605
+ default: !0
606
+ },
607
+ isRepublish: {
608
+ type: Boolean,
609
+ default: !1
610
+ },
611
+ isOfficialRelease: {
612
+ type: Boolean,
613
+ default: !1
614
+ }
615
+ },
616
+ setup(e, { expose: n }) {
617
+ let r = k(null), i = k(null), a = fe(), o = pe(), l = k(!1), u = k(!1), d = k(!1), f = k(""), p = k(""), m = k(""), { t: h } = t(), _ = e, { sourcePublish: v, checkVersion: te, getPublishVersionDetail: ne, sourceRePublish: re } = ee(), D = k({
618
+ versionNumber: "0.0.1",
619
+ selectedData: [],
620
+ showExec: 1
621
+ }), A = k({
622
+ versionNumber: [
623
+ {
624
+ required: !0,
625
+ message: h("SOURCE_PUBLISH.VERSION_NUMBER_MSG") || "请输入版本号",
626
+ trigger: "blur"
627
+ },
628
+ {
629
+ pattern: /^\d+\.\d+\.\d+$/,
630
+ message: "版本号格式必须为数字.数字.数字,如:1.0.0",
631
+ trigger: "blur"
632
+ },
633
+ {
634
+ validator: async (e, t, n) => {
635
+ if (u.value) return;
636
+ u.value = !0;
637
+ let { data: r } = await te({
638
+ sourceType: f.value,
639
+ sourceId: p.value,
640
+ versionNumber: D.value.versionNumber
641
+ }).finally(() => {
642
+ u.value = !1;
643
+ });
644
+ if (r) {
645
+ let e = h("SOURCE_PUBLISH.VERSION_NUMBER_EXIST_MSG") || "版本号已存在";
646
+ n(Error(e));
647
+ } else n();
648
+ },
649
+ trigger: "blur"
650
+ }
651
+ ],
652
+ selectedData: [{
653
+ required: !_.isBackendSystem,
654
+ message: h("SOURCE_PUBLISH.PUBLISH_CHANNEL_MSG") || "请至少选择一个发布渠道",
655
+ trigger: "change"
656
+ }, {
657
+ validator: (e, t, n) => {
658
+ if (D.value.selectedData.length === 0) {
659
+ _.isBackendSystem && n();
660
+ let e = h("SOURCE_PUBLISH.PUBLISH_CHANNEL_MSG") || "请至少选择一个发布渠道";
661
+ n(Error(e));
662
+ } else n();
663
+ },
664
+ trigger: "change"
665
+ }]
666
+ }), j = () => {
667
+ i.value?.validateField("selectedData");
668
+ }, N = (e) => {
669
+ let t = e.replace(/[^0-9.]/g, ""), n = t.split(".");
670
+ n.length > 3 ? D.value.versionNumber = n.slice(0, 3).join(".") : D.value.versionNumber = t;
671
+ }, P = async () => {
672
+ ae(() => {
673
+ let e = window.history.state;
674
+ e && o.replace({
675
+ path: e.back,
676
+ query: {
677
+ active: "publish",
678
+ from: a.query.from
679
+ }
680
+ });
681
+ });
682
+ }, ae = async (e) => {
683
+ let t = await V();
684
+ if (!t) return;
685
+ l.value = !0;
686
+ let n = _.isRepublish ? re : v;
687
+ try {
688
+ let { code: r } = await n(t);
689
+ r === 0 && typeof e == "function" && e();
690
+ } finally {
691
+ l.value = !1;
692
+ }
693
+ }, z = (e) => {
694
+ W.value, W.value.forEach((t) => {
695
+ e.find((e) => e.channelType === t.channelType) || e.push({
696
+ channelType: t.channelType,
697
+ inActive: 0,
698
+ allVisible: t.allVisible || !1,
699
+ visibleScope: t.visibleScope || null
700
+ });
701
+ });
702
+ }, V = async () => {
703
+ if (await i.value.validate()) {
704
+ let e = {}, t = [];
705
+ for (let e of D.value.selectedData) {
706
+ let n = { channelType: Number(e.id) }, i = [
707
+ c.FEISHU_WEB,
708
+ c.AGENT_STORE,
709
+ c.MCP_STORE
710
+ ], a = r.value.getVisibleRangeData(e.id);
711
+ if (i.includes(e.id) && !a) return !1;
712
+ a && Object.keys(a).length > 0 && (n.visibleScope = a.visibleScope, n.allVisible = a.allVisible, n.openStatus = a.openStatus), _.isRepublish && (n.inActive = 1, n.visibleScope = a?.visibleScope || null, n.allVisible = a?.allVisible || !1), t.push(n);
713
+ }
714
+ if (_.isBackendSystem) {
715
+ let e = Number(c.AIBox);
716
+ t.some((t) => t.channelType === e) || t.push({ channelType: e });
717
+ }
718
+ _.isRepublish && z(t), _.isRepublish ? (t.forEach((e) => {
719
+ e.visibleScope ||= null, e.allVisible ||= !1, s.includes((e.channelType || "").toString()) && (e.bakInt = r.value.bakInt);
720
+ }), e = {
721
+ channels: t,
722
+ bnid: _.rowBnid,
723
+ sourceType: f.value,
724
+ sourceId: p.value,
725
+ serviceType: "2"
726
+ }) : e = {
727
+ ...D.value,
728
+ channels: t,
729
+ sourceType: f.value,
730
+ sourceId: p.value,
731
+ workspaceBnid: _.businessSpace || ""
732
+ }, f.value == J.WORKFLOW && (e.forcePublish = !0);
733
+ let n = !1, i = D.value.selectedData.map((e) => e.id);
734
+ if (n = i.find((e) => [
735
+ c.AGENT_STORE,
736
+ c.WORKFLOW_STORE,
737
+ c.PLUGIN_STORE,
738
+ c.MCP_STORE
739
+ ].includes(e)), n) {
740
+ if (await r.value?.validateCategory?.() === !1) return !1;
741
+ if (e.bakInt = r.value.bakInt, i.includes(c.PLUGIN_STORE) && m.value == "1" && (e.serviceType = r.value.serviceType, !e.serviceType)) {
742
+ let e = h("SOURCE_PUBLISH.PUBLISH_SERVICE_TYPE_MSG") || "请选择服务类型";
743
+ return U.warning(e), !1;
744
+ }
745
+ }
746
+ return e.official = _.isOfficialRelease, delete e.selectedData, e;
747
+ } else return console.log("error submit!"), !1;
748
+ }, H = k({}), W = k([]), G = async () => {
749
+ d.value = !0;
750
+ let { data: e } = await ne(f.value, p.value);
751
+ if (d.value = !1, e) {
752
+ let t = e.versionNumber.split(".");
753
+ t.length === 3 ? t[2] = parseInt(t[2]) + 1 : t.push("1"), H.value = e, D.value.versionNumber = t.join("."), D.value.versionDesc = e.versionDesc, D.value.showExec = e.showExec, D.value.showKnowledge = e.showKnowledge, r.value && (r.value.categoryForm.bakInt = e?.bakInt || "");
754
+ }
755
+ W.value = e?.channels || [], T(() => {
756
+ let t = [], n = {};
757
+ if (e?.channels.forEach((e) => {
758
+ t.push(String(e.channelType)), (e.bakInt || e.bakInt == 0) && (n.bakInt = String(e.bakInt)), (e.serviceType || e.serviceType == 0) && (n.serviceType = String(e.serviceType)), (e.currency || e.currency == 0) && (n.currency = e.currency);
759
+ }), t.length == 0) t = f.value == J.AGENT ? [c.AGENT_STORE, c.AIBox] : [c.AIBox];
760
+ else {
761
+ let e = t.find((e) => e == c.AIBox);
762
+ f.value == J.AGENT && !e && t.push(c.AIBox);
763
+ }
764
+ r.value?.handleToggleRowSelection(t, n);
765
+ });
766
+ };
767
+ return ie(() => {
768
+ console.log("props", _), f.value = _.propsSourceType, m.value = _.propsAuthType, p.value = _.propsSourceBnid, G();
769
+ }), n({
770
+ handleSourcePublish: ae,
771
+ publishData: H,
772
+ submitLoading: l
773
+ }), (t, n) => {
774
+ let a = M("loading");
775
+ return R((O(), x("div", {
776
+ class: E(["publish-container", e.isBackendSystem ? "backend-system" : ""]),
777
+ id: "source-publish-container"
778
+ }, [e.isBackendSystem ? b("", !0) : (O(), y(g, {
779
+ key: 0,
780
+ "back-bar-style": "#f7f8fa"
781
+ }, {
782
+ default: L(() => [S("div", ze, [S("span", null, F(I(h)("SOURCE_PUBLISH.PUBLISH") || "发布"), 1), w(I(se), {
783
+ type: "primary",
784
+ class: "publish-container__sure",
785
+ onClick: P,
786
+ loading: l.value,
787
+ disabled: e.disabled
788
+ }, {
789
+ default: L(() => [C(F(I(h)("SOURCE_PUBLISH.SURE_PUBLISH") || "确认发布"), 1)]),
790
+ _: 1
791
+ }, 8, ["loading", "disabled"])])]),
792
+ _: 1
793
+ })), w(I(ce), {
794
+ ref_key: "formRef",
795
+ ref: i,
796
+ model: D.value,
797
+ "label-width": "80px",
798
+ class: "publish-container__form",
799
+ rules: A.value,
800
+ "label-position": "top",
801
+ disabled: e.disabled,
802
+ onSubmit: n[5] ||= oe(() => {}, ["prevent"])
803
+ }, {
804
+ default: L(() => [
805
+ e.isRepublish ? b("", !0) : (O(), y(X, { key: 0 }, {
806
+ default: L(() => [C(F(I(h)("SOURCE_PUBLISH.PUBLISH_RECORD") || "发布记录"), 1)]),
807
+ _: 1
808
+ })),
809
+ e.isRepublish ? b("", !0) : (O(), y(Z, { key: 1 }, {
810
+ default: L(() => [w(I(B), {
811
+ label: I(h)("SOURCE_PUBLISH.VERSION_NUMBER") || "版本号",
812
+ prop: "versionNumber"
813
+ }, {
814
+ default: L(() => [w(I(le), {
815
+ modelValue: D.value.versionNumber,
816
+ "onUpdate:modelValue": n[0] ||= (e) => D.value.versionNumber = e,
817
+ placeholder: I(h)("SOURCE_PUBLISH.VERSION_PLACEHOLDER") || "版本示例:0.0.1",
818
+ onInput: N
819
+ }, null, 8, ["modelValue", "placeholder"])]),
820
+ _: 1
821
+ }, 8, ["label"]), w(I(B), {
822
+ label: I(h)("SOURCE_PUBLISH.VERSION_DESC") || "版本描述",
823
+ prop: "versionDesc"
824
+ }, {
825
+ default: L(() => [w(I(le), {
826
+ type: "textarea",
827
+ modelValue: D.value.versionDesc,
828
+ "onUpdate:modelValue": n[1] ||= (e) => D.value.versionDesc = e,
829
+ rows: 4,
830
+ maxlength: "2000",
831
+ "show-word-limit": "",
832
+ placeholder: I(h)("SOURCE_PUBLISH.VERSION_DESC") || "版本描述"
833
+ }, null, 8, ["modelValue", "placeholder"])]),
834
+ _: 1
835
+ }, 8, ["label"])]),
836
+ _: 1
837
+ })),
838
+ e.showPublishConfig && !e.isRepublish ? (O(), y(X, { key: 2 }, {
839
+ default: L(() => [C(F(I(h)("SOURCE_PUBLISH.PUBLISH_CONFIG") || "发布配置"), 1)]),
840
+ _: 1
841
+ })) : b("", !0),
842
+ e.showPublishConfig && !e.isRepublish ? (O(), y(Z, { key: 3 }, {
843
+ default: L(() => [w(I(B), { prop: "showExec" }, {
844
+ default: L(() => [S("div", Be, [S("p", null, [n[6] ||= S("img", {
845
+ src: "data:image/png;base64,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",
846
+ width: "20",
847
+ height: "20",
848
+ alt: ""
849
+ }, null, -1), S("span", null, F(I(h)("SOURCE_PUBLISH.SHOW_EXECUTE_PROCESS") || "展示执行过程"), 1)]), w(I(ue), {
850
+ modelValue: D.value.showExec,
851
+ "onUpdate:modelValue": n[2] ||= (e) => D.value.showExec = e,
852
+ "active-value": 1,
853
+ "inactive-value": 0
854
+ }, null, 8, ["modelValue"])])]),
855
+ _: 1
856
+ }), w(I(B), { prop: "showKnowledge" }, {
857
+ default: L(() => [S("div", Ve, [S("p", null, [n[7] ||= S("img", {
858
+ src: "data:image/png;base64,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",
859
+ width: "20",
860
+ height: "20",
861
+ alt: ""
862
+ }, null, -1), S("span", null, F(I(h)("SOURCE_PUBLISH.SHOW_RECALL_KNOWLEDGE") || "展示召回的知识库内容"), 1)]), w(I(ue), {
863
+ modelValue: D.value.showKnowledge,
864
+ "onUpdate:modelValue": n[3] ||= (e) => D.value.showKnowledge = e,
865
+ "active-value": 1,
866
+ "inactive-value": 0
867
+ }, null, 8, ["modelValue"])])]),
868
+ _: 1
869
+ })]),
870
+ _: 1
871
+ })) : b("", !0),
872
+ e.isRepublish ? b("", !0) : (O(), y(X, { key: 4 }, {
873
+ default: L(() => [n[8] ||= S("span", { class: "publish-container__required" }, "*", -1), C(F(I(h)("SOURCE_PUBLISH.PUBLISH_SETTING") || "发布设置"), 1)]),
874
+ _: 1
875
+ })),
876
+ w(Z, null, {
877
+ default: L(() => [w(I(B), { prop: "selectedData" }, {
878
+ default: L(() => [w(Re, {
879
+ ref_key: "publishSettingsRef",
880
+ ref: r,
881
+ "source-type": f.value,
882
+ "channel-management": W.value,
883
+ modelValue: D.value.selectedData,
884
+ "onUpdate:modelValue": n[4] ||= (e) => D.value.selectedData = e,
885
+ "is-backend-system": e.isBackendSystem,
886
+ disabled: e.disabled,
887
+ "auth-type": m.value,
888
+ onValidateField: j
889
+ }, null, 8, [
890
+ "source-type",
891
+ "channel-management",
892
+ "modelValue",
893
+ "is-backend-system",
894
+ "disabled",
895
+ "auth-type"
896
+ ])]),
897
+ _: 1
898
+ })]),
899
+ _: 1
900
+ })
901
+ ]),
902
+ _: 1
903
+ }, 8, [
904
+ "model",
905
+ "rules",
906
+ "disabled"
907
+ ])], 2)), [[a, d.value]]);
908
+ };
909
+ }
910
+ }, [["__scopeId", "data-v-a4ba5929"]]), Ue = () => {
911
+ let { t: e } = t();
912
+ return {
913
+ serviceType: [{
914
+ get label() {
915
+ return e("COMMON_DICT.SERVICE_TYPE.PRIVATE");
916
+ },
917
+ value: h.PRIVATE
918
+ }, {
919
+ get label() {
920
+ return e("COMMON_DICT.SERVICE_TYPE.DEVELOPER");
921
+ },
922
+ value: h.DEVELOPER
923
+ }],
924
+ serviceStatus: [{
925
+ get label() {
926
+ return e("COMMON_DICT.SERVICE_STATUS.IN_CALL");
927
+ },
928
+ value: "IN_CALL"
929
+ }, {
930
+ get label() {
931
+ return e("COMMON_DICT.SERVICE_STATUS.NO_CONFIG");
932
+ },
933
+ value: "NO_CONFIG"
934
+ }]
935
+ };
936
+ }, We = () => {
937
+ let { getStoreDetailType: e } = ee(), { t: n } = t(), r = k([]), i = k([]);
938
+ return {
939
+ storeDetailType: r,
940
+ allStoreDetailType: i,
941
+ fetchStoreDetailType: async () => {
942
+ await e().then((e) => {
943
+ let t = e?.data?.map((e) => ({
944
+ label: e.desc,
945
+ value: String(e.code)
946
+ })), a = {
947
+ value: "0",
948
+ label: n("STOREDETAILTYPE_STORECONTENTLAYOUT.LABEL_ALL")
949
+ };
950
+ r.value = t, i.value = [a, ...t];
951
+ });
952
+ }
953
+ };
954
+ }, Ge = e(He);
955
+ //#endregion
956
+ export { Ee as a, ye as c, Re as i, We as n, Te as o, Ue as r, we as s, Ge as t };