aibox-custom-component-packages 0.0.32 → 0.0.34

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 (192) hide show
  1. package/README.md +64 -64
  2. package/es/AddOrEditSupplierDialog.mjs +3 -3
  3. package/es/ApplicationTypeTag.mjs +1 -1
  4. package/es/AuthSection.mjs +1 -1
  5. package/es/AutoShowTooltip.mjs +1 -1
  6. package/es/AvailableRangePreview.mjs +1 -1
  7. package/es/AvailableRangeSetting.mjs +2 -2
  8. package/es/CodeView.mjs +1 -1
  9. package/es/CommonTagsList.mjs +1 -1
  10. package/es/CreateMcpForm.mjs +1 -1
  11. package/es/CustomSidebar.mjs +1 -1
  12. package/es/CustomTitle.mjs +1 -1
  13. package/es/CustomToggle.mjs +1 -1
  14. package/es/DocSyncSelect.mjs +1 -1
  15. package/es/FileDisplay.mjs +1 -1
  16. package/es/FilePreview.mjs +2 -2
  17. package/es/FileUploader.mjs +1 -1
  18. package/es/LoginRedirectScreen.mjs +1 -1
  19. package/es/Logo.mjs +1 -1
  20. package/es/McpFormDialog.mjs +1 -1
  21. package/es/McpParamsSet.mjs +1 -1
  22. package/es/MdEditor.mjs +1 -1
  23. package/es/PageContainer.mjs +1 -1
  24. package/es/ParameterTable.mjs +1 -1
  25. package/es/PublishRecord.mjs +1 -1
  26. package/es/RadioGroup.mjs +1 -1
  27. package/es/SourcePublish.mjs +3 -3
  28. package/es/Table.mjs +3 -3
  29. package/es/assets/AddOrEditSupplierDialog.css +1 -1
  30. package/es/assets/AiboxTable.css +1 -0
  31. package/es/assets/ApplicationTypeTag.css +1 -1
  32. package/es/assets/AuthSection.css +1 -1
  33. package/es/assets/AutoShowTooltip.css +1 -1
  34. package/es/assets/AvailableRangePreview.css +1 -1
  35. package/es/assets/CodeView.css +1 -1
  36. package/es/assets/CommonTagsList.css +1 -1
  37. package/es/assets/CreateMcpForm.css +1 -1
  38. package/es/assets/CustomSidebar.css +1 -1
  39. package/es/assets/CustomToggle.css +1 -1
  40. package/es/assets/DocSyncSelect.css +1 -1
  41. package/es/assets/FileDisplay.css +1 -1
  42. package/es/assets/FilePreview.css +1 -1
  43. package/es/assets/LoginRedirectScreen.css +1 -1
  44. package/es/assets/Logo.css +1 -1
  45. package/es/assets/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/chunks/{AddOrEditSupplierDialog.DhGagQdN.js → AddOrEditSupplierDialog.D0WrS7zb.js} +6 -6
  55. package/es/chunks/AddOrEditSupplierDialog.u9M_J9ps.js +779 -0
  56. package/es/chunks/{BackBar.DzJ2OzUe.js → AiboxTable.CNJGTKaO.js} +84 -84
  57. package/es/chunks/{ApplicationTypeTag.BP3y2wxh.js → ApplicationTypeTag.Ctbs4Cfh.js} +2 -2
  58. package/es/chunks/{AuthSection.jrp3zawz.js → AuthSection.DoHCPqfe.js} +3 -3
  59. package/es/chunks/{AutoShowTooltip.Duo0-HYn.js → AutoShowTooltip.DKVXyaU4.js} +1 -1
  60. package/es/chunks/{AvailableRangePreview.Cc_D7qn-.js → AvailableRangePreview.Daug_hry.js} +3 -3
  61. package/es/chunks/{AvailableRangeSetting.BjNvRqad.js → AvailableRangeSetting.F8v_IaDj.js} +3 -3
  62. package/es/chunks/{CodeView.Du-CTWN-.js → CodeView.CrofMsZq.js} +2 -2
  63. package/es/chunks/{CommonTagsList.B4UNIT4z.js → CommonTagsList.CaDCnfaw.js} +5 -5
  64. package/es/chunks/CommonTagsList.DsAsA9Ul.js +159 -0
  65. package/es/chunks/{CreateMcpForm.B0jFYT0_.js → CreateMcpForm.CmDJvBZn.js} +8 -8
  66. package/es/chunks/CustomSidebar.CcOD8-wi.js +594 -0
  67. package/es/chunks/{CustomSidebar.ByfCcFOC.js → CustomSidebar.SNazR8Qi.js} +6 -6
  68. package/es/chunks/CustomToggle.DKRF3u_m.js +190 -0
  69. package/es/chunks/{CustomToggle.DBXPEHY5.js → CustomToggle.Da9-ySi3.js} +1 -1
  70. package/es/chunks/{DocSyncSelect.tbtnTok_.js → DocSyncSelect.BXAEaFps.js} +13 -15
  71. package/es/chunks/{FileDisplay.CqgQ3rtu.js → FileDisplay.D308Pw4L.js} +10 -12
  72. package/es/chunks/{FilePreview.CwdS-fNc.js → FilePreview.CZGtuNLk.js} +2 -2
  73. package/es/chunks/{FileUploader.0a_MfmvR.js → FileUploader.Dzz9qaG4.js} +9 -10
  74. package/es/chunks/{LoginRedirectScreen.B7kkQoP_.js → LoginRedirectScreen.DWykKkE4.js} +1 -1
  75. package/es/chunks/{Logo.zn-NFPWL.js → Logo.CSphmM19.js} +1 -1
  76. package/es/chunks/{McpFormDialog.BxxfxU1y.js → McpFormDialog.BFdJy9Aa.js} +3 -3
  77. package/es/chunks/{McpParamsSet.CZkVuUuD.js → McpParamsSet.Dpsku0Bq.js} +11 -13
  78. package/es/chunks/{MdEditor.mj5o3zYF.js → MdEditor.DXniUyrY.js} +2 -2
  79. package/es/chunks/PageContainer.Bf0DWQNo.js +462 -0
  80. package/es/chunks/{PageContainer.B400LILM.js → PageContainer.D_aKk9S0.js} +2 -2
  81. package/es/chunks/{ParameterTable.CPlrR4n_.js → ParameterTable.DIzML7kY.js} +14 -16
  82. package/es/chunks/{PublishRecord.nJhg5VCt.js → PublishRecord.B8_7fRU8.js} +4 -4
  83. package/es/chunks/PublishRecord.MUK6tcgd.js +136 -0
  84. package/es/chunks/{RadioGroup.BGO267-v.js → RadioGroup.CB4jkuR3.js} +1 -1
  85. package/es/chunks/SourcePublish.01DUJyfK.js +987 -0
  86. package/es/chunks/{SourcePublish.Bf25XcZi.js → SourcePublish.CyBDYK5p.js} +25 -22
  87. package/es/chunks/{config.C9iiPD4U.js → config.BVTdMgQ9.js} +2 -2
  88. package/es/chunks/config.DbvuSKlD.js +270 -0
  89. package/es/chunks/{config.DnXRhz1z.js → config.rFstR-MG.js} +1 -1
  90. package/es/chunks/{i18n.CFUdEPHr.js → i18n.CfGGAcJH.js} +1 -1
  91. package/es/chunks/{layout.D9PXutv4.js → layout.CUSAJyQL.js} +1 -1
  92. package/es/chunks/{usePreview.BbNxKBck.js → usePreview.yIUda0Hv.js} +7 -9
  93. package/es/index.mjs +65 -65
  94. package/lib/AddOrEditSupplierDialog.js +1 -1
  95. package/lib/ApplicationTypeTag.js +1 -1
  96. package/lib/AuthSection.js +1 -1
  97. package/lib/AutoShowTooltip.js +1 -1
  98. package/lib/AvailableRangePreview.js +1 -1
  99. package/lib/AvailableRangeSetting.js +1 -1
  100. package/lib/CodeView.js +1 -1
  101. package/lib/CommonTagsList.js +1 -1
  102. package/lib/CreateMcpForm.js +1 -1
  103. package/lib/CustomSidebar.js +1 -1
  104. package/lib/CustomTitle.js +1 -1
  105. package/lib/CustomToggle.js +1 -1
  106. package/lib/DocSyncSelect.js +1 -1
  107. package/lib/FileDisplay.js +1 -1
  108. package/lib/FilePreview.js +1 -1
  109. package/lib/FileUploader.js +1 -1
  110. package/lib/LoginRedirectScreen.js +1 -1
  111. package/lib/Logo.js +1 -1
  112. package/lib/McpFormDialog.js +1 -1
  113. package/lib/McpParamsSet.js +1 -1
  114. package/lib/MdEditor.js +1 -1
  115. package/lib/PageContainer.js +1 -1
  116. package/lib/ParameterTable.js +1 -1
  117. package/lib/PublishRecord.js +1 -1
  118. package/lib/RadioGroup.js +1 -1
  119. package/lib/SourcePublish.js +1 -1
  120. package/lib/Table.js +1 -1
  121. package/lib/assets/AddOrEditSupplierDialog.css +1 -1
  122. package/lib/assets/AiboxTable.css +1 -0
  123. package/lib/assets/ApplicationTypeTag.css +1 -1
  124. package/lib/assets/AuthSection.css +1 -1
  125. package/lib/assets/AutoShowTooltip.css +1 -1
  126. package/lib/assets/AvailableRangePreview.css +1 -1
  127. package/lib/assets/CodeView.css +1 -1
  128. package/lib/assets/CommonTagsList.css +1 -1
  129. package/lib/assets/CreateMcpForm.css +1 -1
  130. package/lib/assets/CustomSidebar.css +1 -1
  131. package/lib/assets/CustomToggle.css +1 -1
  132. package/lib/assets/DocSyncSelect.css +1 -1
  133. package/lib/assets/FileDisplay.css +1 -1
  134. package/lib/assets/FilePreview.css +1 -1
  135. package/lib/assets/LoginRedirectScreen.css +1 -1
  136. package/lib/assets/Logo.css +1 -1
  137. package/lib/assets/McpFormDialog.css +1 -1
  138. package/lib/assets/McpParamsSet.css +1 -1
  139. package/lib/assets/MdEditor.css +1 -1
  140. package/lib/assets/PageContainer.css +1 -1
  141. package/lib/assets/ParameterTable.css +1 -1
  142. package/lib/assets/PublishRecord.css +1 -1
  143. package/lib/assets/RadioGroup.css +1 -1
  144. package/lib/assets/SourcePublish.css +1 -1
  145. package/lib/assets/layout.css +1 -1
  146. package/lib/chunks/AddOrEditSupplierDialog.DfOMS_bh.js +1 -0
  147. package/lib/chunks/{AddOrEditSupplierDialog.CdbWF4S7.js → AddOrEditSupplierDialog.tSju0y-W.js} +1 -1
  148. package/lib/chunks/AiboxTable.B-VuIQSp.js +1 -0
  149. package/lib/chunks/{ApplicationTypeTag.Bbb9onnO.js → ApplicationTypeTag.ctv_-FsI.js} +1 -1
  150. package/lib/chunks/{AuthSection.BqnII7Zc.js → AuthSection.aaNWUYhk.js} +1 -1
  151. package/lib/chunks/{AutoShowTooltip.BCg_5NZ0.js → AutoShowTooltip.DIrXDh7U.js} +1 -1
  152. package/lib/chunks/{AvailableRangePreview.CgkgcULo.js → AvailableRangePreview.CiOxEA4F.js} +1 -1
  153. package/lib/chunks/{AvailableRangeSetting.B8UyU_gN.js → AvailableRangeSetting.Bb32NVYo.js} +1 -1
  154. package/lib/chunks/{CodeView.DAWK7jtf.js → CodeView.Ct9TXiwX.js} +1 -1
  155. package/lib/chunks/CommonTagsList.Boc8vbyY.js +1 -0
  156. package/lib/chunks/{CommonTagsList.BabaB3RQ.js → CommonTagsList.CKstJRCG.js} +1 -1
  157. package/lib/chunks/{CreateMcpForm.D7lh0uKb.js → CreateMcpForm.BWs-4Onu.js} +1 -1
  158. package/lib/chunks/CustomSidebar.Cygx-8nO.js +1 -0
  159. package/lib/chunks/{CustomSidebar.Dc22wPkh.js → CustomSidebar.DCW29MKi.js} +1 -1
  160. package/lib/chunks/{CustomToggle.Cd7F_zwB.js → CustomToggle.BF7s0G8h.js} +1 -1
  161. package/lib/chunks/CustomToggle.HbP41BJh.js +1 -0
  162. package/lib/chunks/DocSyncSelect.ZlOVqBG1.js +1 -0
  163. package/lib/chunks/{FileDisplay.C3x1xoJt.js → FileDisplay.B3CFfeuo.js} +3 -3
  164. package/lib/chunks/{FilePreview.D9d-eoIn.js → FilePreview.T-kQ_iiJ.js} +1 -1
  165. package/lib/chunks/FileUploader.yvoUFzla.js +1 -0
  166. package/lib/chunks/{LoginRedirectScreen.247pzgjB.js → LoginRedirectScreen.DE21-wqJ.js} +1 -1
  167. package/lib/chunks/{Logo.DYRnRQYI.js → Logo.BvlHIPja.js} +1 -1
  168. package/lib/chunks/{McpFormDialog.BMLlvDii.js → McpFormDialog.CuYkPlUY.js} +2 -2
  169. package/lib/chunks/McpParamsSet.BZ3lptGl.js +1 -0
  170. package/lib/chunks/{MdEditor.CXIDWs1-.js → MdEditor.BSUp8pUb.js} +1 -1
  171. package/lib/chunks/{PageContainer.D_p3Rz5e.js → PageContainer.BYyJE7u_.js} +1 -1
  172. package/lib/chunks/PageContainer.CE8Pz6hD.js +1 -0
  173. package/lib/chunks/ParameterTable.CLnOL3k_.js +1 -0
  174. package/lib/chunks/PublishRecord.BZH5_Usb.js +5 -0
  175. package/lib/chunks/{PublishRecord.BQ_eSDcv.js → PublishRecord.DXoKtUn0.js} +1 -1
  176. package/lib/chunks/{RadioGroup.BYy3omgq.js → RadioGroup.CLHduGxc.js} +1 -1
  177. package/lib/chunks/SourcePublish.B23eXpNS.js +1 -0
  178. package/lib/chunks/SourcePublish.QB3O6fdx.js +1 -0
  179. package/lib/chunks/config.C0x1xjU-.js +1 -0
  180. package/lib/chunks/{layout.CFYuqtHu.js → layout.CNYc7QUj.js} +1 -1
  181. package/lib/chunks/usePreview.C3f_R7Np.js +1 -0
  182. package/lib/index.js +2 -2
  183. package/package.json +6 -6
  184. package/es/assets/BackBar.css +0 -1
  185. package/lib/assets/BackBar.css +0 -1
  186. package/lib/chunks/BackBar.BO_3ReYW.js +0 -1
  187. package/lib/chunks/DocSyncSelect.--DSxOmn.js +0 -1
  188. package/lib/chunks/FileUploader.TkV0c3Xt.js +0 -1
  189. package/lib/chunks/McpParamsSet.gd9UXa8L.js +0 -1
  190. package/lib/chunks/ParameterTable.BevV6CXV.js +0 -1
  191. package/lib/chunks/SourcePublish.BlG6iYjM.js +0 -1
  192. package/lib/chunks/usePreview.Byl992Ne.js +0 -1
@@ -0,0 +1,987 @@
1
+ import { t as e } from "./withinstall.CMngc-br.js";
2
+ import { m as t } from "./i18n.CfGGAcJH.js";
3
+ import { t as n } from "./_plugin-vue_export-helper.B3ysoDQm.js";
4
+ import { t as r } from "./AvailableRangeSetting.F8v_IaDj.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.DbvuSKlD.js";
6
+ import { r as g, t as ee } from "./AiboxTable.CNJGTKaO.js";
7
+ import { t as te } from "./publish.BNhXzUgD.js";
8
+ import { Fragment as _, computed as v, 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 ie, normalizeStyle as E, onMounted as ae, openBlock as D, ref as O, renderList as k, renderSlot as A, resolveDirective as j, resolveDynamicComponent as M, shallowRef as N, toDisplayString as P, unref as F, watch as oe, withCtx as I, withDirectives as L, withModifiers as se } from "vue";
9
+ import { ElButton as ce, ElCheckbox as R, ElForm as le, ElFormItem as z, ElIcon as B, ElInput as ue, ElInputNumber as de, ElMessage as V, ElOption as H, ElSelect as U, ElSwitch as W, ElTag as G, 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 D(), x("div", me, [A(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 D(), x("div", _e, [A(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: N(n.icon)
41
+ }, e;
42
+ }, {}), r = O({});
43
+ return ae(() => {
44
+ let e = d[t.publishType] || "h5";
45
+ r.value = n[e];
46
+ }), (t, n) => (D(), x("div", {
47
+ class: "channel-icon flex items-center justify-center radius-8",
48
+ style: E({ background: r.value?.backgroundColor })
49
+ }, [w(F(B), {
50
+ size: e.size,
51
+ color: r.value?.iconColor
52
+ }, {
53
+ default: I(() => [(D(), y(M(r.value?.icon)))]),
54
+ _: 1
55
+ }, 8, ["size", "color"])], 4));
56
+ }
57
+ }, [["__scopeId", "data-v-197d4379"]]), Q = { class: "permission-setting" }, be = {
58
+ key: 1,
59
+ class: "flex items-center gap-12 pd-t-16 pd-b-16"
60
+ }, $ = {
61
+ class: "min-w-110 fz-14 text-left flex-shrink-0",
62
+ style: { color: "var(--el-text-color-primary)" }
63
+ }, xe = { class: "flex items-center gap-6" }, Se = {
64
+ class: "flex flex-col lh-18",
65
+ style: { "align-items": "flex-start" }
66
+ }, Ce = {
67
+ class: "fz-12",
68
+ style: { color: "var(--el-text-color-secondary)" }
69
+ }, we = /*#__PURE__*/ n({
70
+ __name: "PermissionSetting",
71
+ props: {
72
+ showAvailableRange: {
73
+ type: Boolean,
74
+ default: !0
75
+ },
76
+ showPermissionSetting: {
77
+ type: Boolean,
78
+ default: !0
79
+ },
80
+ detail: {
81
+ type: Object,
82
+ default: () => ({})
83
+ },
84
+ authType: {
85
+ type: String,
86
+ default: ""
87
+ }
88
+ },
89
+ emits: ["update:detail"],
90
+ setup(e, { expose: n, emit: i }) {
91
+ let { t: a } = t(), s = e, c = i, l = O(null), u = (e) => {
92
+ let t = {
93
+ ...s.detail,
94
+ openStatus: e
95
+ };
96
+ c("update:detail", t);
97
+ }, d = (e) => {
98
+ let t = {
99
+ ...s.detail,
100
+ allVisible: e
101
+ };
102
+ c("update:detail", t);
103
+ }, f = (e) => {
104
+ let t = {
105
+ ...s.detail,
106
+ visibleScope: e
107
+ };
108
+ c("update:detail", t);
109
+ };
110
+ return n({ validateVisibleRange: () => {
111
+ if (s.authType === "0") return {
112
+ isValid: !0,
113
+ data: { openStatus: s.detail.openStatus ?? o.TRUE }
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 ? (V.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) => (D(), x("div", Q, [e.showAvailableRange ? (D(), y(F(r), {
135
+ key: 0,
136
+ "all-visible": e.detail.allVisible,
137
+ "model-value": e.detail.visibleScope,
138
+ class: ie(["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 ? (D(), 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(" " + P(F(a)("PUTRESOURCEONSHELFDIALOG_TEXT.RESOURCE_PERMISSION_SETTING")) + " ", 1),
153
+ w(F(K), {
154
+ content: F(a)("PUTRESOURCEONSHELFDIALOG_TEXT.RESOURCE_PERMISSION_SETTING_TOOLTIP"),
155
+ placement: "top"
156
+ }, {
157
+ default: I(() => [w(F(B), {
158
+ class: "mg-l-4",
159
+ size: "14px"
160
+ }, {
161
+ default: I(() => [w(F(q))]),
162
+ _: 1
163
+ })]),
164
+ _: 1
165
+ }, 8, ["content"])
166
+ ]), S("div", xe, [w(F(R), {
167
+ "model-value": e.detail.openStatus,
168
+ "onUpdate:modelValue": u,
169
+ "true-value": F(o).TRUE,
170
+ "false-value": F(o).FALSE,
171
+ class: "mg-r-0"
172
+ }, {
173
+ default: I(() => [S("div", Se, P(F(a)("PUTRESOURCEONSHELFDIALOG_TEXT.FREE_RESOURCE")), 1)]),
174
+ _: 1
175
+ }, 8, [
176
+ "model-value",
177
+ "true-value",
178
+ "false-value"
179
+ ]), S("span", Ce, P(F(a)("PUTRESOURCEONSHELFDIALOG_TEXT.FREE_RESOURCE_MCPKEY")), 1)])])) : b("", !0)]));
180
+ }
181
+ }, [["__scopeId", "data-v-bb43b6f8"]]), 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 === F(c).FEISHU_WEB ? (D(), y(F(K), {
190
+ key: 0,
191
+ placement: "top"
192
+ }, {
193
+ content: I(() => [C(P(F(n)("SOURCE_PUBLISH.FEISHU_WEB_TOOLTIP")), 1)]),
194
+ default: I(() => [w(F(B), {
195
+ size: "14px",
196
+ color: "#999",
197
+ style: { "margin-left": "5px" }
198
+ }, {
199
+ default: I(() => [w(F(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) => F(p).includes(e.channelType) ? (D(), y(F(K), {
220
+ key: 0,
221
+ placement: "top"
222
+ }, {
223
+ content: I(() => [C(P(e.isAuth ? F(n)("SOURCE_PUBLISH.PUBLISH_AUTHORIZE_MSG") : F(n)("SOURCE_PUBLISH.PUBLISH_ACCESS_TOKEN_MSG")), 1)]),
224
+ default: I(() => [w(F(B), {
225
+ size: "14px",
226
+ color: "#999",
227
+ style: { "margin-left": "5px" }
228
+ }, {
229
+ default: I(() => [w(F(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 = {
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
+ categoryValidateMessage: {
266
+ type: String,
267
+ default: ""
268
+ }
269
+ },
270
+ emits: ["validateField", "update:modelValue"],
271
+ setup(e, { expose: n, emit: r }) {
272
+ let o = re(i), d = ne(), f = pe();
273
+ fe();
274
+ let h = r, g = e, { checkToken: ie } = te(), E = O(null), A = O(null), j = O(!1), M = O(""), N = O({}), { t: L } = t(), se = O([]), R = v(() => {
275
+ let e = m(g.sourceType, g.channelManagement) || [];
276
+ return g.isBackendSystem ? e.filter((e) => e.channelType !== "3") : e;
277
+ }), B = (e) => se.value?.find((t) => t.id === e.id)?.id ? l.PUBLISHED : l.UNPUBLISHED, ue = v(() => {
278
+ let e = {
279
+ required: !0,
280
+ trigger: "change"
281
+ };
282
+ return g.categoryValidateMessage && (e.message = g.categoryValidateMessage), { bakInt: [e] };
283
+ }), W = v(() => [
284
+ {
285
+ type: "selection",
286
+ selectable: (e) => g.disabled || e.id == c.AIBox ? !1 : !p.includes(e.id) || j.value,
287
+ show: !g.isBackendSystem
288
+ },
289
+ {
290
+ label: L("SOURCE_PUBLISH.PUBLISH_CHANNEL"),
291
+ prop: "name",
292
+ slot: "name",
293
+ show: !0
294
+ },
295
+ {
296
+ type: "expand",
297
+ prop: "expand",
298
+ width: 1,
299
+ show: !0
300
+ },
301
+ {
302
+ label: "",
303
+ prop: "status",
304
+ slot: "status",
305
+ width: 100,
306
+ show: !g.isBackendSystem
307
+ },
308
+ {
309
+ label: "",
310
+ prop: "action",
311
+ slot: "action",
312
+ show: !0
313
+ },
314
+ {
315
+ label: "",
316
+ prop: "inActive",
317
+ slot: "inActive",
318
+ width: 120,
319
+ show: g.isBackendSystem
320
+ }
321
+ ].filter((e) => e.show)), K = [{
322
+ label: L("COMMON_HOOKS.SERVICE_TYPE_ENUMLIST.LABEL_1"),
323
+ value: "PRIVATE"
324
+ }, {
325
+ label: L("COMMON_HOOKS.SERVICE_TYPE_ENUMLIST.LABEL_2"),
326
+ value: "DEVELOPER"
327
+ }], q = O(!1), Y = O([]), me = (e) => {
328
+ if (se.value = e, q.value) {
329
+ q.value = !1, Y.value = e, h("update:modelValue", e), h("validateField");
330
+ return;
331
+ }
332
+ 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;
333
+ if (a && !n) {
334
+ let e = R.value.find((e) => e.id === c.H5);
335
+ if (e) {
336
+ q.value = !0, V.warning(L("SOURCE_PUBLISH.FEISHU_H5_LINKAGE_SELECT")), T(() => {
337
+ E.value?.handleToggleRowSelection(e, !0);
338
+ });
339
+ return;
340
+ }
341
+ }
342
+ if (o && t) {
343
+ let e = R.value.find((e) => e.id === c.FEISHU_WEB);
344
+ if (e) {
345
+ q.value = !0, V.warning(L("SOURCE_PUBLISH.H5_FEISHU_LINKAGE_DESELECT")), T(() => {
346
+ E.value?.handleToggleRowSelection(e, !1);
347
+ });
348
+ return;
349
+ }
350
+ }
351
+ Y.value = e, h("update:modelValue", e), h("validateField");
352
+ }, he = (e) => {
353
+ let t = B(e);
354
+ E.value?.handleToggleRowSelection(e, t);
355
+ }, X = (e, t) => {
356
+ e.allVisible = t.allVisible, e.visibleScope = t.visibleScope, e.openStatus = t.openStatus;
357
+ }, ge = async () => {
358
+ let e = await ie();
359
+ console.log(e, "res"), j.value = e.data || !1;
360
+ }, _e = (e, t) => {
361
+ t && (N.value.bakInt = t.bakInt, M.value = t.serviceType, Q.value = t.currency);
362
+ let n = R.value.filter((t) => e.includes(t.id));
363
+ n.forEach((e) => {
364
+ E.value?.handleToggleRowSelection(e, !0);
365
+ }), T(() => {
366
+ me(n);
367
+ });
368
+ }, ve = () => "no-expand", Z = () => {
369
+ f.push({ name: "ApiManage" });
370
+ }, Q = O(""), be = O([]), $ = O(!1);
371
+ return oe(() => g.modelValue, (e) => {
372
+ let t = [];
373
+ if (e && e.find((e) => s.includes(e.id))) {
374
+ let n = e.find((e) => s.includes(e.id));
375
+ n && t.push(n.id), $.value = !0;
376
+ } else $.value = !1;
377
+ e && e.find((e) => e.id === c.FEISHU_WEB) && t.push(c.FEISHU_WEB), be.value = t;
378
+ }, {
379
+ immediate: !0,
380
+ deep: !0
381
+ }), ae(() => {
382
+ ge();
383
+ }), n({
384
+ get bakInt() {
385
+ return N.value.bakInt;
386
+ },
387
+ serviceType: M,
388
+ currency: Q,
389
+ channels: R,
390
+ categoryForm: N,
391
+ handleToggleRowSelection: _e,
392
+ getVisibleRangeData: (e) => {
393
+ let t = `permissionSettingRef_${e}`, n = d?.refs?.[t];
394
+ if (n) {
395
+ let e = n.validateVisibleRange();
396
+ return e.isValid ? e.data : null;
397
+ }
398
+ return null;
399
+ },
400
+ validateCategory: async () => !A.value || (A.value.scrollToField("bakInt"), A.value.validate().catch(() => (V.warning(L("SOURCE_PUBLISH.PUBLISH_CATEGORY_MSG")), Promise.reject(!1))))
401
+ }), (t, n) => (D(), x("div", De, [w(ee, {
402
+ columns: W.value,
403
+ data: R.value,
404
+ "on-row-key": (e) => e.id,
405
+ total: R.value.length,
406
+ style: { width: "100%" },
407
+ hasPage: !1,
408
+ "show-handle-nums": 1,
409
+ onRowClassName: ve,
410
+ "expand-row-keys": be.value,
411
+ "default-expand-all": !1,
412
+ onOnMultiSelection: me,
413
+ ref_key: "aiboxTableRef",
414
+ ref: E
415
+ }, {
416
+ name: I(({ row: t }) => [S("div", Oe, [w(ye, {
417
+ "publish-type": t.id,
418
+ size: 24
419
+ }, null, 8, ["publish-type"]), S("div", ke, [S("p", Ae, [
420
+ C(P(t.name(e.sourceType)) + " ", 1),
421
+ w(Ee, {
422
+ "channel-type": t.id,
423
+ "is-auth": j.value
424
+ }, null, 8, ["channel-type", "is-auth"]),
425
+ w(Te, { "channel-type": t.id }, null, 8, ["channel-type"])
426
+ ]), S("p", je, P(t.description), 1)])])]),
427
+ expand: I(({ row: r }) => [r.id === F(c).PLUGIN_STORE ? (D(), x("div", Me, [
428
+ w(F(U), {
429
+ modelValue: N.value.bakInt,
430
+ "onUpdate:modelValue": n[0] ||= (e) => N.value.bakInt = e,
431
+ placeholder: F(L)("SOURCE_PUBLISH.DEFAULT_SELECT_MSG"),
432
+ style: { width: "200px" },
433
+ disabled: e.disabled
434
+ }, {
435
+ prefix: I(() => [S("div", Ne, P(F(L)("SOURCE_PUBLISH.CATEGORY")), 1), n[4] ||= S("div", { class: "divider" }, null, -1)]),
436
+ default: I(() => [(D(!0), x(_, null, k(F(o), (e) => (D(), y(F(H), {
437
+ key: e.value,
438
+ label: e.label,
439
+ value: e.value
440
+ }, null, 8, ["label", "value"]))), 128))]),
441
+ _: 1
442
+ }, 8, [
443
+ "modelValue",
444
+ "placeholder",
445
+ "disabled"
446
+ ]),
447
+ e.authType == "1" ? (D(), y(F(U), {
448
+ key: 0,
449
+ modelValue: M.value,
450
+ "onUpdate:modelValue": n[1] ||= (e) => M.value = e,
451
+ placeholder: F(L)("SOURCE_PUBLISH.DEFAULT_SELECT_MSG"),
452
+ style: { width: "200px" },
453
+ disabled: e.disabled
454
+ }, {
455
+ prefix: I(() => [S("div", Pe, P(F(L)("SOURCE_PUBLISH.SERVICE_TYPE")), 1), n[5] ||= S("div", { class: "divider" }, null, -1)]),
456
+ default: I(() => [(D(), x(_, null, k(K, (e) => w(F(H), {
457
+ key: e.value,
458
+ label: e.label,
459
+ value: e.value
460
+ }, null, 8, ["label", "value"])), 64))]),
461
+ _: 1
462
+ }, 8, [
463
+ "modelValue",
464
+ "placeholder",
465
+ "disabled"
466
+ ])) : b("", !0),
467
+ M.value === t.q.CURRENCY ? (D(), y(F(de), {
468
+ key: 1,
469
+ modelValue: Q.value,
470
+ "onUpdate:modelValue": n[2] ||= (e) => Q.value = e,
471
+ precision: 2,
472
+ style: { width: "200px" },
473
+ "controls-position": "right",
474
+ disabled: e.disabled
475
+ }, {
476
+ prefix: I(() => [S("div", Fe, P(F(L)("SOURCE_PUBLISH.CONSUME_VALUE")), 1), n[6] ||= S("div", { class: "divider" }, null, -1)]),
477
+ _: 1
478
+ }, 8, ["modelValue", "disabled"])) : b("", !0)
479
+ ])) : b("", !0), [
480
+ F(c).FEISHU_WEB,
481
+ F(c).AGENT_STORE,
482
+ F(c).MCP_STORE
483
+ ].includes(r.id) ? (D(), y(we, {
484
+ key: 1,
485
+ "show-permission-setting": r.id === F(c).MCP_STORE && e.authType !== "0",
486
+ "auth-type": e.authType,
487
+ detail: r,
488
+ ref: `permissionSettingRef_${r.id}`,
489
+ "onUpdate:detail": (e) => X(r, e)
490
+ }, null, 8, [
491
+ "show-permission-setting",
492
+ "auth-type",
493
+ "detail",
494
+ "onUpdate:detail"
495
+ ])) : b("", !0)]),
496
+ status: I(({ row: e }) => [F(u).includes(e.id) ? (D(), y(F(G), {
497
+ key: 0,
498
+ type: "success"
499
+ }, {
500
+ default: I(() => [C(P(F(L)("SOURCE_PUBLISH.PUBLISH_AUTHORIZE_STATUS")), 1)]),
501
+ _: 1
502
+ })) : F(p).includes(e.id) ? (D(), y(F(G), {
503
+ key: 1,
504
+ type: j.value ? "success" : "info"
505
+ }, {
506
+ default: I(() => [C(P(j.value ? F(L)("SOURCE_PUBLISH.PUBLISH_AUTHORIZE_STATUS") : F(L)("SOURCE_PUBLISH.PUBLISH_UNAUTHORIZE_STATUS")), 1)]),
507
+ _: 1
508
+ }, 8, ["type"])) : b("", !0)]),
509
+ inActive: I(({ row: t }) => [w(F(U), {
510
+ "model-value": B(t),
511
+ disabled: e.disabled,
512
+ onChange: (e) => he(t)
513
+ }, {
514
+ default: I(() => [(D(!0), x(_, null, k(F(a), (e) => (D(), y(F(H), {
515
+ key: e.value,
516
+ label: e.label,
517
+ value: e.value
518
+ }, null, 8, ["label", "value"]))), 128))]),
519
+ _: 1
520
+ }, 8, [
521
+ "model-value",
522
+ "disabled",
523
+ "onChange"
524
+ ])]),
525
+ action: I(({ row: t }) => [S("div", Ie, [F(p).includes(t.id) && !e.isBackendSystem ? (D(), y(F(ce), {
526
+ key: 0,
527
+ type: "primary",
528
+ link: "",
529
+ onClick: (e) => Z(t)
530
+ }, {
531
+ default: I(() => [C(P(F(L)("SOURCE_PUBLISH.CONFIG")), 1)]),
532
+ _: 1
533
+ }, 8, ["onClick"])) : b("", !0), F(s).slice(0, 3).includes(t.id) && e.sourceType != F(J).PLUGIN && $.value ? (D(), y(F(le), {
534
+ key: 1,
535
+ ref_key: "categoryFormRef",
536
+ ref: A,
537
+ model: N.value,
538
+ rules: ue.value
539
+ }, {
540
+ default: I(() => [w(F(z), {
541
+ prop: "bakInt",
542
+ "show-message": !1
543
+ }, {
544
+ default: I(() => [w(F(U), {
545
+ modelValue: N.value.bakInt,
546
+ "onUpdate:modelValue": n[3] ||= (e) => N.value.bakInt = e,
547
+ placeholder: F(L)("SOURCE_PUBLISH.DEFAULT_SELECT_MSG"),
548
+ style: { width: "150px" },
549
+ disabled: e.disabled
550
+ }, {
551
+ prefix: I(() => [S("div", Le, P(F(L)("SOURCE_PUBLISH.CATEGORY")), 1), n[7] ||= S("div", { class: "divider" }, null, -1)]),
552
+ default: I(() => [(D(!0), x(_, null, k(F(o), (e) => (D(), y(F(H), {
553
+ key: e.value,
554
+ label: e.label,
555
+ value: e.value
556
+ }, null, 8, ["label", "value"]))), 128))]),
557
+ _: 1
558
+ }, 8, [
559
+ "modelValue",
560
+ "placeholder",
561
+ "disabled"
562
+ ])]),
563
+ _: 1
564
+ })]),
565
+ _: 1
566
+ }, 8, ["model", "rules"])) : b("", !0)])]),
567
+ _: 1
568
+ }, 8, [
569
+ "columns",
570
+ "data",
571
+ "on-row-key",
572
+ "total",
573
+ "expand-row-keys"
574
+ ])]));
575
+ }
576
+ }, ze = /*#__PURE__*/ n(Re, [["__scopeId", "data-v-29ccd59d"]]), Be = { class: "publish-container__back" }, Ve = { class: "publish-container__config" }, He = { class: "publish-container__config" }, Ue = "feishu", We = /*#__PURE__*/ n({
577
+ __name: "layout",
578
+ props: {
579
+ showPublishConfig: {
580
+ type: Boolean,
581
+ default: !0
582
+ },
583
+ propsSourceBnid: {
584
+ type: String,
585
+ default: ""
586
+ },
587
+ propsSourceType: {
588
+ type: String,
589
+ default: ""
590
+ },
591
+ propsAuthType: {
592
+ type: String,
593
+ default: ""
594
+ },
595
+ businessSpace: {
596
+ type: String,
597
+ default: ""
598
+ },
599
+ isBackendSystem: {
600
+ type: Boolean,
601
+ default: !1
602
+ },
603
+ disabled: {
604
+ type: Boolean,
605
+ default: !1
606
+ },
607
+ rowBnid: {
608
+ type: String,
609
+ default: ""
610
+ },
611
+ isShowBack: {
612
+ type: Boolean,
613
+ default: !0
614
+ },
615
+ isRepublish: {
616
+ type: Boolean,
617
+ default: !1
618
+ },
619
+ isOfficialRelease: {
620
+ type: Boolean,
621
+ default: !1
622
+ },
623
+ categoryValidateMessage: {
624
+ type: String,
625
+ default: ""
626
+ }
627
+ },
628
+ setup(e, { expose: n }) {
629
+ let r = O(null), i = O(null), a = fe(), o = pe(), l = O(!1), u = O(!1), d = O(!1), f = O(""), p = O(""), m = O(""), { t: h } = t();
630
+ function ee() {
631
+ try {
632
+ let e = typeof sessionStorage < "u" ? sessionStorage.getItem("userInfo") : null;
633
+ return e ? JSON.parse(e)?.loginType === Ue : !1;
634
+ } catch {
635
+ return !1;
636
+ }
637
+ }
638
+ function _(e) {
639
+ return Array.isArray(e) ? e.some((e) => String(e.channelType) === String(c.FEISHU_WEB)) : !1;
640
+ }
641
+ let v = e, { sourcePublish: ne, checkVersion: re, getPublishVersionDetail: E, sourceRePublish: k } = te(), A = O({
642
+ versionNumber: "0.0.1",
643
+ selectedData: [],
644
+ showExec: 1
645
+ }), M = O({
646
+ versionNumber: [
647
+ {
648
+ required: !0,
649
+ message: h("SOURCE_PUBLISH.VERSION_NUMBER_MSG"),
650
+ trigger: "blur"
651
+ },
652
+ {
653
+ pattern: /^\d+\.\d+\.\d+$/,
654
+ message: "版本号格式必须为数字.数字.数字,如:1.0.0",
655
+ trigger: "blur"
656
+ },
657
+ {
658
+ validator: async (e, t, n) => {
659
+ if (u.value) return;
660
+ u.value = !0;
661
+ let { data: r } = await re({
662
+ sourceType: f.value,
663
+ sourceId: p.value,
664
+ versionNumber: A.value.versionNumber
665
+ }).finally(() => {
666
+ u.value = !1;
667
+ });
668
+ if (r) {
669
+ let e = h("SOURCE_PUBLISH.VERSION_NUMBER_EXIST_MSG");
670
+ n(Error(e));
671
+ } else n();
672
+ },
673
+ trigger: "blur"
674
+ }
675
+ ],
676
+ selectedData: [{
677
+ required: !v.isBackendSystem,
678
+ message: h("SOURCE_PUBLISH.PUBLISH_CHANNEL_MSG"),
679
+ trigger: "change"
680
+ }, {
681
+ validator: (e, t, n) => {
682
+ if (A.value.selectedData.length === 0) {
683
+ v.isBackendSystem && n();
684
+ let e = h("SOURCE_PUBLISH.PUBLISH_CHANNEL_MSG");
685
+ n(Error(e));
686
+ } else n();
687
+ },
688
+ trigger: "change"
689
+ }]
690
+ }), N = () => {
691
+ i.value?.validateField("selectedData");
692
+ }, oe = (e) => {
693
+ let t = e.replace(/[^0-9.]/g, ""), n = t.split(".");
694
+ n.length > 3 ? A.value.versionNumber = n.slice(0, 3).join(".") : A.value.versionNumber = t;
695
+ }, R = async () => {
696
+ B(() => {
697
+ let e = window.history.state;
698
+ e && o.replace({
699
+ path: e.back,
700
+ query: {
701
+ active: "publish",
702
+ from: a.query.from
703
+ }
704
+ });
705
+ });
706
+ }, B = async (e) => {
707
+ let t = await H();
708
+ if (!t) return;
709
+ if (_(t.channels) && !ee()) {
710
+ V.warning(h("SOURCE_PUBLISH.FEISHU_LOGIN_CANNOT_PUBLISH"));
711
+ return;
712
+ }
713
+ l.value = !0;
714
+ let n = v.isRepublish ? k : ne;
715
+ try {
716
+ let { code: r } = await n(t);
717
+ r === 0 && typeof e == "function" && e();
718
+ } finally {
719
+ l.value = !1;
720
+ }
721
+ }, de = (e) => {
722
+ G.value, G.value.forEach((t) => {
723
+ e.find((e) => e.channelType === t.channelType) || e.push({
724
+ channelType: t.channelType,
725
+ inActive: 0,
726
+ allVisible: t.allVisible || !1,
727
+ visibleScope: t.visibleScope || null
728
+ });
729
+ });
730
+ }, H = async () => {
731
+ if (await i.value.validate()) {
732
+ let e = {}, t = [];
733
+ for (let e of A.value.selectedData) {
734
+ let n = { channelType: Number(e.id) }, i = [
735
+ c.FEISHU_WEB,
736
+ c.AGENT_STORE,
737
+ c.MCP_STORE
738
+ ], a = r.value.getVisibleRangeData(e.id);
739
+ if (i.includes(e.id) && !a) return !1;
740
+ a && Object.keys(a).length > 0 && (n.visibleScope = a.visibleScope, n.allVisible = a.allVisible, n.openStatus = a.openStatus), v.isRepublish && (n.inActive = 1, n.visibleScope = a?.visibleScope || null, n.allVisible = a?.allVisible || !1), t.push(n);
741
+ }
742
+ if (v.isBackendSystem) {
743
+ let e = Number(c.AIBox);
744
+ t.some((t) => t.channelType === e) || t.push({ channelType: e });
745
+ }
746
+ v.isRepublish && de(t), v.isRepublish ? (t.forEach((e) => {
747
+ e.visibleScope ||= null, e.allVisible ||= !1, s.includes((e.channelType || "").toString()) && (e.bakInt = r.value.bakInt);
748
+ }), e = {
749
+ channels: t,
750
+ bnid: v.rowBnid,
751
+ sourceType: f.value,
752
+ sourceId: p.value,
753
+ serviceType: "2"
754
+ }) : e = {
755
+ ...A.value,
756
+ channels: t,
757
+ sourceType: f.value,
758
+ sourceId: p.value,
759
+ workspaceBnid: v.businessSpace || ""
760
+ }, f.value == J.WORKFLOW && (e.forcePublish = !0);
761
+ let n = !1, i = A.value.selectedData.map((e) => e.id);
762
+ if (n = i.find((e) => [
763
+ c.AGENT_STORE,
764
+ c.WORKFLOW_STORE,
765
+ c.PLUGIN_STORE,
766
+ c.MCP_STORE
767
+ ].includes(e)), n) {
768
+ if (await r.value?.validateCategory?.() === !1) return !1;
769
+ if (e.bakInt = r.value.bakInt, i.includes(c.PLUGIN_STORE) && m.value == "1" && (e.serviceType = r.value.serviceType, !e.serviceType)) {
770
+ let e = h("SOURCE_PUBLISH.PUBLISH_SERVICE_TYPE_MSG");
771
+ return V.warning(e), !1;
772
+ }
773
+ }
774
+ return e.official = v.isOfficialRelease, delete e.selectedData, e;
775
+ }
776
+ return console.log("error submit!"), !1;
777
+ }, U = O({}), G = O([]), K = async () => {
778
+ d.value = !0;
779
+ let { data: e } = await E(f.value, p.value);
780
+ if (d.value = !1, e) {
781
+ let t = e.versionNumber.split(".");
782
+ t.length === 3 ? t[2] = parseInt(t[2]) + 1 : t.push("1"), U.value = e, A.value.versionNumber = t.join("."), A.value.versionDesc = e.versionDesc, A.value.showExec = e.showExec, A.value.showKnowledge = e.showKnowledge, r.value && (r.value.categoryForm.bakInt = e?.bakInt || "");
783
+ }
784
+ G.value = e?.channels || [], T(() => {
785
+ let t = [], n = {};
786
+ if (e?.channels.forEach((e) => {
787
+ 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);
788
+ }), t.length == 0) t = [c.AIBox];
789
+ else {
790
+ let e = t.find((e) => e == c.AIBox);
791
+ f.value == J.AGENT && !e && t.push(c.AIBox);
792
+ }
793
+ r.value?.handleToggleRowSelection(t, n);
794
+ });
795
+ };
796
+ return ae(() => {
797
+ console.log("props", v), f.value = v.propsSourceType, m.value = v.propsAuthType, p.value = v.propsSourceBnid, K();
798
+ }), n({
799
+ handleSourcePublish: B,
800
+ publishData: U,
801
+ submitLoading: l
802
+ }), (t, n) => {
803
+ let a = j("loading");
804
+ return L((D(), x("div", {
805
+ class: ie(["publish-container", e.isBackendSystem ? "backend-system" : ""]),
806
+ id: "source-publish-container"
807
+ }, [e.isBackendSystem ? b("", !0) : (D(), y(g, {
808
+ key: 0,
809
+ "back-bar-style": "#f7f8fa"
810
+ }, {
811
+ default: I(() => [S("div", Be, [S("span", null, P(F(h)("SOURCE_PUBLISH.PUBLISH")), 1), w(F(ce), {
812
+ type: "primary",
813
+ class: "publish-container__sure",
814
+ onClick: R,
815
+ loading: l.value,
816
+ disabled: e.disabled
817
+ }, {
818
+ default: I(() => [C(P(F(h)("SOURCE_PUBLISH.SURE_PUBLISH")), 1)]),
819
+ _: 1
820
+ }, 8, ["loading", "disabled"])])]),
821
+ _: 1
822
+ })), w(F(le), {
823
+ ref_key: "formRef",
824
+ ref: i,
825
+ model: A.value,
826
+ "label-width": "80px",
827
+ class: "publish-container__form",
828
+ rules: M.value,
829
+ "label-position": "top",
830
+ disabled: e.disabled,
831
+ onSubmit: n[5] ||= se(() => {}, ["prevent"])
832
+ }, {
833
+ default: I(() => [
834
+ e.isRepublish ? b("", !0) : (D(), y(X, { key: 0 }, {
835
+ default: I(() => [C(P(F(h)("SOURCE_PUBLISH.PUBLISH_RECORD")), 1)]),
836
+ _: 1
837
+ })),
838
+ e.isRepublish ? b("", !0) : (D(), y(Z, { key: 1 }, {
839
+ default: I(() => [w(F(z), {
840
+ label: F(h)("SOURCE_PUBLISH.VERSION_NUMBER"),
841
+ prop: "versionNumber"
842
+ }, {
843
+ default: I(() => [w(F(ue), {
844
+ modelValue: A.value.versionNumber,
845
+ "onUpdate:modelValue": n[0] ||= (e) => A.value.versionNumber = e,
846
+ placeholder: F(h)("SOURCE_PUBLISH.VERSION_PLACEHOLDER"),
847
+ onInput: oe
848
+ }, null, 8, ["modelValue", "placeholder"])]),
849
+ _: 1
850
+ }, 8, ["label"]), w(F(z), {
851
+ label: F(h)("SOURCE_PUBLISH.VERSION_DESC"),
852
+ prop: "versionDesc"
853
+ }, {
854
+ default: I(() => [w(F(ue), {
855
+ type: "textarea",
856
+ modelValue: A.value.versionDesc,
857
+ "onUpdate:modelValue": n[1] ||= (e) => A.value.versionDesc = e,
858
+ rows: 4,
859
+ maxlength: "2000",
860
+ "show-word-limit": "",
861
+ placeholder: F(h)("SOURCE_PUBLISH.VERSION_DESC")
862
+ }, null, 8, ["modelValue", "placeholder"])]),
863
+ _: 1
864
+ }, 8, ["label"])]),
865
+ _: 1
866
+ })),
867
+ e.showPublishConfig && !e.isRepublish ? (D(), y(X, { key: 2 }, {
868
+ default: I(() => [C(P(F(h)("SOURCE_PUBLISH.PUBLISH_CONFIG")), 1)]),
869
+ _: 1
870
+ })) : b("", !0),
871
+ e.showPublishConfig && !e.isRepublish ? (D(), y(Z, { key: 3 }, {
872
+ default: I(() => [w(F(z), { prop: "showExec" }, {
873
+ default: I(() => [S("div", Ve, [S("p", null, [n[6] ||= S("img", {
874
+ src: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAbeSURBVHic7ZztbxRFHMc/s3vX60FrTynSAi09KIK0aJEY8I32pfFVeYeJ0fIn+BeAfwFvfOE7S2JijDH62kQD7yCK1CAF5OEOigWBwvHUe77xxXDpdXfnbndvr/V6+0muk5md/c3Od3/zsLvTgZCQkJDORXjJvPeoHCmXmUTyGZAARl6G7UxGCDLArJCcyZeYSf8kMm5PdiXg3qNyxIDjUjLt9yrbCSGYWcrxuRshGwq4/2M5JQVf0/6e5pWMkBy7+K34qV6mugJOfCKPIzgR6GW1G5ITs9+IL3SHtQIenJZTSH5szVW1GYIj52ecPdFRwIlpmegySNF5zVZHxqhw4OyMSFsPRJxyb4hyEhmKV0MCwXHgmPWAzQMnp2WiHOPxqlxWm2EKkqe/WumFdg+MM216mh12FJPATG2CTcBIhA8AkCj/dAjj3TD1Phwaa1zi9Xn48ge9ve4ofPoRDGzyWyc99xbhu1/gyfP69XEdwmdYBDSshZoGE6YBpgm68NCYO/EARofg8Jje3uTB1ogHyu6Hh/X18Bya9nHB7oEOmaxs7PZWkU19EDGdj8Vj3mx5JR7Tl+2DEWuCTUDTaCyg4bGPNAx1F50QLe5vBfqyfeDKAxtieLwgQ+jter0ZXhF1yg4Cuwe6KMyr1wiht9tyD6xTdhA4NeGGo5FnDzT0dlstILwUMIhR2OFafTXhZy+8VaBQ1NstlrzZ8kqxBJHg+kAbvprwjQWY/xeGtjTO+9dNmEvr7c6loT8Bgy2Yyiw+hXNza9CEG3lyuQTf/+rN83V2szn4+WxwLcwpjBgta8H+mnDIMr6acMgydg+s7XCXnwHDeDVuIfTAJgn7wCZxnkiHuCZswk0SNuEmsQk4llyLy2hfbAKuxsP9eiIUsElCAZvEJmCr3xCvN0IPbJKOFrA/AVET7i76t9GRAkYj8O4+6O9T8aUcnLng7+14x/WBkQi8tx/6Ni6nbeiGwX64868Pe9aE9eyB0QgcHodXNtqPCfzVvWMEjEbUchQn8bJ5uP84FLAub43qxTt3CUrlgARcj33g+C7Y8po9PZuH3+YgX/Bf73XvgWM7Ydtme3o2D79fhlyhuTqvmYDRiHp11t2lKpHNB1/G2E7Y2m9Pz+bh/JXmxYM1EDBqqg/ywwMr3z1m83BzAe4+DKacfUm9eH9cDUY8WOU+sD+hKub00jYeU+8iX+uFa3eg1MSSjzdH1LzOSi4PF/5urs+zsioeGDFhZNDdUpDBfujdoCpaKnsva+8OjXiFZfGCrGPLBezugok3VOiWng1wYA/MehRxdLtevNlrkC8GX7+WCrh9M+wY1H9nyTxXHtHXYxe4J66E//OaOxF3DMD21+3puYKyEbTnVWlJH2iasGub89wLlCC378E/D1Q81qUmuk4ivr0b5lJKAB3DA0pAp3LmUmp5Xav6dttXYCGa+/XE4Z09evFyBbh4AxYeLp9TKKq0nINIPfGX4sacy6sn3sUb6k1Ls3Wq/VkJtAlv7YfkVv3xhYdqXaHTY1OhCJduwvhO5ZG1dHfB/l3qeK3IQ1tg2GFgKpXVusSqeK0kEAFjUfX/IH0Oz5qgKpS+qx7Y65WRfynimEbE8Z1KmHwRkoPOA0aprGyshngQQB/YuxFGt9krXGUpB1dvqUq7sV0oqX5rX9JuM9YFB/cqkZwGpmqfl82v3jO93QOrf1ws2RwerL80994i3Lqr8nuxWyjB5bSaEDvdGJ14l9Nqxavws/Q0qEXmojqsiPrh+C71JteJclk9TTx94d6eNSyU4FJKTYx15dSWd+WW8jy/5bkOLfjywFd79ZV6tgSphZp5VxN3vFxRzX9oYPn7hZV8Ea7fWQXPc+uBhos7qOvv5u/D/Ufu7bgJK1J1A8+X1CNePKbmmdm8ulmLGSV0UOUF44ENePRUzfO6oipeKKpKPltyd74fHj1RPydWabxwxHka08CVKxKuzUOiV8UXn6p+SBj1z1sXoSsBqcmsCYslePDY+3ltH1pwFLC2M5YyjK8YnBoKaJARkkQ1s9WzOjqu9thagX2NtCAtYcKaHgLCjYAIMprm3vEImLWm2ZtwhVPCYLIatzb9To5XJGewYJ9Im5yujVu9sZPjRbFyyxOn/ABcvSW/7pS9At0iBDN7dohjtnSnzJdTcsQ0uCDDzccAEJB5USF5IGnfkFE7Xly9LacM+PH/1AetVVzCkT3DHra/q3JjXh6XdPYGjBJO7B7ysQFjleu35ZQwOnMLUFnh2KjG86q4mvKlUjJBFyclnTGwCJihwBfJpH3DRYe87kmlZKISZdow+ACYEJCQkKh9VGzDMAOkgQwVTmFyOjnYWLiQkJCQEPgPkazXbvPHCoAAAAAASUVORK5CYII=",
875
+ width: "20",
876
+ height: "20",
877
+ alt: ""
878
+ }, null, -1), S("span", null, P(F(h)("SOURCE_PUBLISH.SHOW_EXECUTE_PROCESS")), 1)]), w(F(W), {
879
+ modelValue: A.value.showExec,
880
+ "onUpdate:modelValue": n[2] ||= (e) => A.value.showExec = e,
881
+ "active-value": 1,
882
+ "inactive-value": 0
883
+ }, null, 8, ["modelValue"])])]),
884
+ _: 1
885
+ }), w(F(z), { prop: "showKnowledge" }, {
886
+ default: I(() => [S("div", He, [S("p", null, [n[7] ||= S("img", {
887
+ src: "data:image/png;base64,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",
888
+ width: "20",
889
+ height: "20",
890
+ alt: ""
891
+ }, null, -1), S("span", null, P(F(h)("SOURCE_PUBLISH.SHOW_RECALL_KNOWLEDGE")), 1)]), w(F(W), {
892
+ modelValue: A.value.showKnowledge,
893
+ "onUpdate:modelValue": n[3] ||= (e) => A.value.showKnowledge = e,
894
+ "active-value": 1,
895
+ "inactive-value": 0
896
+ }, null, 8, ["modelValue"])])]),
897
+ _: 1
898
+ })]),
899
+ _: 1
900
+ })) : b("", !0),
901
+ e.isRepublish ? b("", !0) : (D(), y(X, { key: 4 }, {
902
+ default: I(() => [n[8] ||= S("span", { class: "publish-container__required" }, "*", -1), C(P(F(h)("SOURCE_PUBLISH.PUBLISH_SETTING")), 1)]),
903
+ _: 1
904
+ })),
905
+ w(Z, null, {
906
+ default: I(() => [w(F(z), { prop: "selectedData" }, {
907
+ default: I(() => [w(ze, {
908
+ ref_key: "publishSettingsRef",
909
+ ref: r,
910
+ "source-type": f.value,
911
+ "channel-management": G.value,
912
+ modelValue: A.value.selectedData,
913
+ "onUpdate:modelValue": n[4] ||= (e) => A.value.selectedData = e,
914
+ "is-backend-system": e.isBackendSystem,
915
+ disabled: e.disabled,
916
+ "auth-type": m.value,
917
+ "category-validate-message": e.categoryValidateMessage,
918
+ onValidateField: N
919
+ }, null, 8, [
920
+ "source-type",
921
+ "channel-management",
922
+ "modelValue",
923
+ "is-backend-system",
924
+ "disabled",
925
+ "auth-type",
926
+ "category-validate-message"
927
+ ])]),
928
+ _: 1
929
+ })]),
930
+ _: 1
931
+ })
932
+ ]),
933
+ _: 1
934
+ }, 8, [
935
+ "model",
936
+ "rules",
937
+ "disabled"
938
+ ])], 2)), [[a, d.value]]);
939
+ };
940
+ }
941
+ }, [["__scopeId", "data-v-09cd6741"]]), Ge = () => {
942
+ let { t: e } = t();
943
+ return {
944
+ serviceType: [{
945
+ get label() {
946
+ return e("COMMON_DICT.SERVICE_TYPE.PRIVATE");
947
+ },
948
+ value: h.PRIVATE
949
+ }, {
950
+ get label() {
951
+ return e("COMMON_DICT.SERVICE_TYPE.DEVELOPER");
952
+ },
953
+ value: h.DEVELOPER
954
+ }],
955
+ serviceStatus: [{
956
+ get label() {
957
+ return e("COMMON_DICT.SERVICE_STATUS.IN_CALL");
958
+ },
959
+ value: "IN_CALL"
960
+ }, {
961
+ get label() {
962
+ return e("COMMON_DICT.SERVICE_STATUS.NO_CONFIG");
963
+ },
964
+ value: "NO_CONFIG"
965
+ }]
966
+ };
967
+ }, Ke = () => {
968
+ let { getStoreDetailType: e } = te(), { t: n } = t(), r = O([]), i = O([]);
969
+ return {
970
+ storeDetailType: r,
971
+ allStoreDetailType: i,
972
+ fetchStoreDetailType: async () => {
973
+ await e().then((e) => {
974
+ let t = e?.data?.map((e) => ({
975
+ label: e.desc,
976
+ value: String(e.code)
977
+ })), a = {
978
+ value: "0",
979
+ label: n("STOREDETAILTYPE_STORECONTENTLAYOUT.LABEL_ALL")
980
+ };
981
+ r.value = t, i.value = [a, ...t];
982
+ });
983
+ }
984
+ };
985
+ }, qe = e(We);
986
+ //#endregion
987
+ export { Ee as a, ye as c, ze as i, Ke as n, Te as o, Ge as r, we as s, qe as t };