aibox-custom-component-packages 0.0.26 → 0.0.27

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 (104) hide show
  1. package/es/SourcePublish.mjs +1 -1
  2. package/es/assets/SourcePublish.css +1 -1
  3. package/es/chunks/{AddOrEditSupplierDialog.DUqqhPyY.js → AddOrEditSupplierDialog.Dg8gkZJ_.js} +2 -2
  4. package/es/chunks/AiboxTable.C9hrozrD.js +635 -0
  5. package/es/chunks/{ApplicationTypeTag.CdOFw2tm.js → ApplicationTypeTag.C7wkmR5k.js} +1 -1
  6. package/es/chunks/AuthSection.B8fzLcqX.js +201 -0
  7. package/es/chunks/AvailableRangePreview.CEoRKsuA.js +194 -0
  8. package/es/chunks/AvailableRangeSetting.C9GkFsQd.js +229 -0
  9. package/es/chunks/CodeView.Bsu4N1bC.js +148 -0
  10. package/es/chunks/CommonTagsList.C5_QqxEd.js +156 -0
  11. package/es/chunks/CreateMcpForm.DF53TdcU.js +308 -0
  12. package/es/chunks/{DocSyncSelect.DP8U1-ZH.js → DocSyncSelect.BAHqN-9J.js} +3 -3
  13. package/es/chunks/FileUploader.DUj7bSMa.js +216 -0
  14. package/es/chunks/McpFormDialog.Bc7oBv3C.js +297 -0
  15. package/es/chunks/McpParamsSet.CZJmyAJo.js +501 -0
  16. package/es/chunks/MdEditor.BBlPGzuI.js +163 -0
  17. package/es/chunks/ParameterTable.CMHp6Ubd.js +2010 -0
  18. package/es/chunks/PublishRecord.Cg21VWQX.js +133 -0
  19. package/es/chunks/{SourcePublish.CjzqOFwj.js → SourcePublish.BjY8OTLS.js} +10 -23
  20. package/es/chunks/{SourcePublish.DBM7OeXm.js → SourcePublish.BqTfGtXE.js} +5 -2
  21. package/es/chunks/SourcePublish.lCN7YbeP.js +979 -0
  22. package/es/chunks/config.CK5iNO4T.js +270 -0
  23. package/es/chunks/config.D-qzWO8Q.js +35 -0
  24. package/es/chunks/i18n.C-J-jxme.js +426 -0
  25. package/es/index.mjs +1 -1
  26. package/lib/SourcePublish.js +1 -1
  27. package/lib/assets/SourcePublish.css +1 -1
  28. package/lib/chunks/SourcePublish.BqmktWp7.js +1 -0
  29. package/lib/chunks/SourcePublish.Bz8MaRPm.js +1 -0
  30. package/lib/index.js +1 -1
  31. package/package.json +3 -3
  32. package/es/AiboxTabs.mjs +0 -71
  33. package/es/ExampleComponent.mjs +0 -35
  34. package/es/assets/AiboxTabs.css +0 -1
  35. package/es/assets/BackBar.css +0 -1
  36. package/es/assets/ExampleComponent.css +0 -1
  37. package/es/assets/index.css +0 -1
  38. package/es/assets/index2.css +0 -1
  39. package/es/assets/index3.css +0 -1
  40. package/es/assets/index4.css +0 -1
  41. package/es/chunks/AiboxTable.CF4T_OCu.js +0 -645
  42. package/es/chunks/ApplicationTypeTag.CpzWFRmD.js +0 -52
  43. package/es/chunks/BackBar.Bc2NIuzk.js +0 -645
  44. package/es/chunks/DocSyncSelect.CY25GsAh.js +0 -2310
  45. package/es/chunks/DocSyncSelect.dhZh4w45.js +0 -2290
  46. package/es/chunks/_plugin-vue_export-helper.CHgC5LLL.js +0 -9
  47. package/es/chunks/config.8htFF04x.js +0 -325
  48. package/es/chunks/config.BU21Gda2.js +0 -49
  49. package/es/chunks/config.DPkdwjwD.js +0 -49
  50. package/es/chunks/config.gNZ_rT87.js +0 -325
  51. package/es/chunks/enums.CfSBDD6u.js +0 -83
  52. package/es/chunks/enums.WrpwbF4w.js +0 -14
  53. package/es/chunks/field-types.CPnMOjle.js +0 -13
  54. package/es/chunks/files.cduUqjHX.js +0 -16
  55. package/es/chunks/i18n.DmqkiK-h.js +0 -444
  56. package/es/chunks/i18n.k9Q_HVMs.js +0 -443
  57. package/es/chunks/index.BDd6hHiU.js +0 -172
  58. package/es/chunks/index.CF_YHLP5.js +0 -257
  59. package/es/chunks/index.DM3o2YX3.js +0 -398
  60. package/es/chunks/index.Dx-mCS4E.js +0 -1298
  61. package/es/chunks/index.bCzIhWFw.js +0 -7
  62. package/es/chunks/index.ml5i7aB5.js +0 -257
  63. package/es/chunks/layout.CygCXa6s.js +0 -26
  64. package/es/chunks/publish.D6friivo.js +0 -50
  65. package/es/chunks/publish.DlD0o09n.js +0 -50
  66. package/es/chunks/request.24c3shPx.js +0 -5
  67. package/es/chunks/usePreview.BHvXwaNi.js +0 -157
  68. package/lib/AiboxTabs.js +0 -1
  69. package/lib/ExampleComponent.js +0 -1
  70. package/lib/assets/AiboxTabs.css +0 -1
  71. package/lib/assets/BackBar.css +0 -1
  72. package/lib/assets/ExampleComponent.css +0 -1
  73. package/lib/assets/index.css +0 -1
  74. package/lib/assets/index2.css +0 -1
  75. package/lib/assets/index3.css +0 -1
  76. package/lib/assets/index4.css +0 -1
  77. package/lib/chunks/AiboxTable.CJOPGJtU.js +0 -1
  78. package/lib/chunks/ApplicationTypeTag.BmU_cqaw.js +0 -1
  79. package/lib/chunks/BackBar.CZsNxoX1.js +0 -1
  80. package/lib/chunks/DocSyncSelect.DndqvEn2.js +0 -2
  81. package/lib/chunks/DocSyncSelect.kDNcepY-.js +0 -2
  82. package/lib/chunks/SourcePublish.eOSEULjP.js +0 -1
  83. package/lib/chunks/_plugin-vue_export-helper.BHFhmbuH.js +0 -1
  84. package/lib/chunks/config.1oaIKLGn.js +0 -1
  85. package/lib/chunks/config.B0XKkp1w.js +0 -1
  86. package/lib/chunks/config.BCAuBVxV.js +0 -1
  87. package/lib/chunks/config.BF7MO0O5.js +0 -1
  88. package/lib/chunks/enums.Dmq4PdUc.js +0 -1
  89. package/lib/chunks/enums.DpU2er5r.js +0 -1
  90. package/lib/chunks/field-types.Ch_2yDfg.js +0 -1
  91. package/lib/chunks/files.B3-8UC0v.js +0 -1
  92. package/lib/chunks/i18n.CL5L6nx6.js +0 -1
  93. package/lib/chunks/i18n.DgOp_D7R.js +0 -1
  94. package/lib/chunks/index.4hFddClT.js +0 -6
  95. package/lib/chunks/index.BNivYbtq.js +0 -1
  96. package/lib/chunks/index.B_keI1Aq.js +0 -1
  97. package/lib/chunks/index.Bk-RwmaH.js +0 -1
  98. package/lib/chunks/index.CJFk1R2u.js +0 -59
  99. package/lib/chunks/index.CkihWzK6.js +0 -1
  100. package/lib/chunks/layout.DbBSbLgm.js +0 -1
  101. package/lib/chunks/publish.3TrK3fZf.js +0 -1
  102. package/lib/chunks/publish.Bw1acrSu.js +0 -1
  103. package/lib/chunks/request.D8T4MgGX.js +0 -1
  104. package/lib/chunks/usePreview.BojIDW7Z.js +0 -1
@@ -0,0 +1,979 @@
1
+ import { t as e } from "./withinstall.CMngc-br.js";
2
+ import { m as t } from "./i18n.C-J-jxme.js";
3
+ import { t as n } from "./_plugin-vue_export-helper.B3ysoDQm.js";
4
+ import { t as r } from "./AvailableRangeSetting.C9GkFsQd.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.CK5iNO4T.js";
6
+ import { r as g, t as ee } from "./AiboxTable.C9hrozrD.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
+ r.value = n[d[t.publishType] || "h5"];
45
+ }), (t, n) => (D(), x("div", {
46
+ class: "channel-icon flex items-center justify-center radius-8",
47
+ style: E({ background: r.value?.backgroundColor })
48
+ }, [w(F(B), {
49
+ size: e.size,
50
+ color: r.value?.iconColor
51
+ }, {
52
+ default: I(() => [(D(), y(M(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 = O(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: { openStatus: s.detail.openStatus ?? o.TRUE }
110
+ };
111
+ if (!s.showAvailableRange) return {
112
+ isValid: !0,
113
+ data: { openStatus: s.detail.openStatus ?? 0 }
114
+ };
115
+ if (!l.value) return {
116
+ isValid: !0,
117
+ data: null
118
+ };
119
+ let e = l.value.getSelectedItems();
120
+ return e?.allVisible === void 0 ? (V.warning(a("MESSAGE_REMIND.SELECT_VISIBLE_RANGE")), {
121
+ isValid: !1,
122
+ data: null
123
+ }) : {
124
+ isValid: !0,
125
+ data: {
126
+ ...e,
127
+ openStatus: s.detail.openStatus ?? 0
128
+ }
129
+ };
130
+ } }), (t, n) => (D(), x("div", Q, [e.showAvailableRange ? (D(), y(F(r), {
131
+ key: 0,
132
+ "all-visible": e.detail.allVisible,
133
+ "model-value": e.detail.visibleScope,
134
+ class: ie(["pd-t-16", { "pd-b-16": !e.showPermissionSetting }]),
135
+ ref_key: "availableRangeSettingRef",
136
+ ref: l,
137
+ "onUpdate:allVisible": d,
138
+ "onUpdate:modelValue": f
139
+ }, null, 8, [
140
+ "all-visible",
141
+ "model-value",
142
+ "class"
143
+ ])) : b("", !0), e.showPermissionSetting ? (D(), x("div", be, [S("div", $, [
144
+ n[0] ||= S("span", {
145
+ class: "mg-r-2",
146
+ style: { color: "var(--el-color-danger)" }
147
+ }, "*", -1),
148
+ C(" " + P(F(a)("PUTRESOURCEONSHELFDIALOG_TEXT.RESOURCE_PERMISSION_SETTING")) + " ", 1),
149
+ w(F(K), {
150
+ content: F(a)("PUTRESOURCEONSHELFDIALOG_TEXT.RESOURCE_PERMISSION_SETTING_TOOLTIP"),
151
+ placement: "top"
152
+ }, {
153
+ default: I(() => [w(F(B), {
154
+ class: "mg-l-4",
155
+ size: "14px"
156
+ }, {
157
+ default: I(() => [w(F(q))]),
158
+ _: 1
159
+ })]),
160
+ _: 1
161
+ }, 8, ["content"])
162
+ ]), S("div", xe, [w(F(R), {
163
+ "model-value": e.detail.openStatus,
164
+ "onUpdate:modelValue": u,
165
+ "true-value": F(o).TRUE,
166
+ "false-value": F(o).FALSE,
167
+ class: "mg-r-0"
168
+ }, {
169
+ default: I(() => [S("div", Se, P(F(a)("PUTRESOURCEONSHELFDIALOG_TEXT.FREE_RESOURCE")), 1)]),
170
+ _: 1
171
+ }, 8, [
172
+ "model-value",
173
+ "true-value",
174
+ "false-value"
175
+ ]), S("span", Ce, P(F(a)("PUTRESOURCEONSHELFDIALOG_TEXT.FREE_RESOURCE_MCPKEY")), 1)])])) : b("", !0)]));
176
+ }
177
+ }, [["__scopeId", "data-v-bb43b6f8"]]), Te = {
178
+ __name: "FeishuTooltip",
179
+ props: { channelType: {
180
+ type: [String, Number],
181
+ required: !0
182
+ } },
183
+ setup(e) {
184
+ let { t: n } = t();
185
+ return (t, r) => e.channelType === F(c).FEISHU_WEB ? (D(), y(F(K), {
186
+ key: 0,
187
+ placement: "top"
188
+ }, {
189
+ content: I(() => [C(P(F(n)("SOURCE_PUBLISH.FEISHU_WEB_TOOLTIP")), 1)]),
190
+ default: I(() => [w(F(B), {
191
+ size: "14px",
192
+ color: "#999",
193
+ style: { "margin-left": "5px" }
194
+ }, {
195
+ default: I(() => [w(F(q))]),
196
+ _: 1
197
+ })]),
198
+ _: 1
199
+ })) : b("", !0);
200
+ }
201
+ }, Ee = {
202
+ __name: "ApiTooltip",
203
+ props: {
204
+ channelType: {
205
+ type: [String, Number],
206
+ required: !0
207
+ },
208
+ isAuth: {
209
+ type: Boolean,
210
+ required: !0
211
+ }
212
+ },
213
+ setup(e) {
214
+ let { t: n } = t();
215
+ return (t, r) => F(p).includes(e.channelType) ? (D(), y(F(K), {
216
+ key: 0,
217
+ placement: "top"
218
+ }, {
219
+ content: I(() => [C(P(e.isAuth ? F(n)("SOURCE_PUBLISH.PUBLISH_AUTHORIZE_MSG") : F(n)("SOURCE_PUBLISH.PUBLISH_ACCESS_TOKEN_MSG")), 1)]),
220
+ default: I(() => [w(F(B), {
221
+ size: "14px",
222
+ color: "#999",
223
+ style: { "margin-left": "5px" }
224
+ }, {
225
+ default: I(() => [w(F(q))]),
226
+ _: 1
227
+ })]),
228
+ _: 1
229
+ })) : b("", !0);
230
+ }
231
+ }, 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 = {
232
+ key: 0,
233
+ class: "expand-content"
234
+ }, Ne = { class: "select-label" }, Pe = { class: "select-label" }, Fe = { class: "select-label" }, Ie = { class: "action-container" }, Le = { class: "select-label" }, Re = /*#__PURE__*/ n({
235
+ __name: "PublishSettings",
236
+ props: {
237
+ modelValue: {
238
+ type: Array,
239
+ default: () => []
240
+ },
241
+ sourceType: {
242
+ type: String,
243
+ default: J.AGENT
244
+ },
245
+ channelManagement: {
246
+ type: Array,
247
+ default: () => []
248
+ },
249
+ isBackendSystem: {
250
+ type: Boolean,
251
+ default: !1
252
+ },
253
+ disabled: {
254
+ type: Boolean,
255
+ default: !1
256
+ },
257
+ authType: {
258
+ type: String,
259
+ default: ""
260
+ },
261
+ categoryValidateMessage: {
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: ie } = te(), E = O(null), A = O(null), j = O(!1), M = O(""), N = O({}), { t: L } = t(), se = O([]), R = v(() => {
271
+ let e = m(g.sourceType, g.channelManagement) || [];
272
+ return g.isBackendSystem ? e.filter((e) => e.channelType !== "3") : e;
273
+ }), B = (e) => se.value?.find((t) => t.id === e.id)?.id ? l.PUBLISHED : l.UNPUBLISHED, ue = v(() => {
274
+ let e = {
275
+ required: !0,
276
+ trigger: "change"
277
+ };
278
+ return g.categoryValidateMessage && (e.message = g.categoryValidateMessage), { bakInt: [e] };
279
+ }), W = v(() => [
280
+ {
281
+ type: "selection",
282
+ selectable: (e) => g.disabled || e.id == c.AIBox ? !1 : p.includes(e.id) ? j.value : !0,
283
+ show: !g.isBackendSystem
284
+ },
285
+ {
286
+ label: L("SOURCE_PUBLISH.PUBLISH_CHANNEL"),
287
+ prop: "name",
288
+ slot: "name",
289
+ show: !0
290
+ },
291
+ {
292
+ type: "expand",
293
+ prop: "expand",
294
+ width: 1,
295
+ show: !0
296
+ },
297
+ {
298
+ label: "",
299
+ prop: "status",
300
+ slot: "status",
301
+ width: 100,
302
+ show: !g.isBackendSystem
303
+ },
304
+ {
305
+ label: "",
306
+ prop: "action",
307
+ slot: "action",
308
+ show: !0
309
+ },
310
+ {
311
+ label: "",
312
+ prop: "inActive",
313
+ slot: "inActive",
314
+ width: 120,
315
+ show: g.isBackendSystem
316
+ }
317
+ ].filter((e) => e.show)), K = [{
318
+ label: L("COMMON_HOOKS.SERVICE_TYPE_ENUMLIST.LABEL_1"),
319
+ value: "PRIVATE"
320
+ }, {
321
+ label: L("COMMON_HOOKS.SERVICE_TYPE_ENUMLIST.LABEL_2"),
322
+ value: "DEVELOPER"
323
+ }], q = O(!1), Y = O([]), me = (e) => {
324
+ if (se.value = e, q.value) {
325
+ q.value = !1, Y.value = e, h("update:modelValue", e), h("validateField");
326
+ return;
327
+ }
328
+ 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;
329
+ if (a && !n) {
330
+ let e = R.value.find((e) => e.id === c.H5);
331
+ if (e) {
332
+ q.value = !0, V.warning(L("SOURCE_PUBLISH.FEISHU_H5_LINKAGE_SELECT")), T(() => {
333
+ E.value?.handleToggleRowSelection(e, !0);
334
+ });
335
+ return;
336
+ }
337
+ }
338
+ if (o && t) {
339
+ let e = R.value.find((e) => e.id === c.FEISHU_WEB);
340
+ if (e) {
341
+ q.value = !0, V.warning(L("SOURCE_PUBLISH.H5_FEISHU_LINKAGE_DESELECT")), T(() => {
342
+ E.value?.handleToggleRowSelection(e, !1);
343
+ });
344
+ return;
345
+ }
346
+ }
347
+ Y.value = e, h("update:modelValue", e), h("validateField");
348
+ }, he = (e) => {
349
+ let t = B(e);
350
+ E.value?.handleToggleRowSelection(e, t);
351
+ }, X = (e, t) => {
352
+ e.allVisible = t.allVisible, e.visibleScope = t.visibleScope, e.openStatus = t.openStatus;
353
+ }, ge = async () => {
354
+ let e = await ie();
355
+ console.log(e, "res"), j.value = e.data || !1;
356
+ }, _e = (e, t) => {
357
+ t && (N.value.bakInt = t.bakInt, M.value = t.serviceType, Q.value = t.currency);
358
+ let n = R.value.filter((t) => e.includes(t.id));
359
+ n.forEach((e) => {
360
+ E.value?.handleToggleRowSelection(e, !0);
361
+ }), T(() => {
362
+ me(n);
363
+ });
364
+ }, ve = () => "no-expand", Z = () => {
365
+ f.push({ name: "ApiManage" });
366
+ }, Q = O(""), be = O([]), $ = O(!1);
367
+ return oe(() => g.modelValue, (e) => {
368
+ let t = [];
369
+ if (e && e.find((e) => s.includes(e.id))) {
370
+ let n = e.find((e) => s.includes(e.id));
371
+ n && t.push(n.id), $.value = !0;
372
+ } else $.value = !1;
373
+ e && e.find((e) => e.id === c.FEISHU_WEB) && t.push(c.FEISHU_WEB), be.value = t;
374
+ }, {
375
+ immediate: !0,
376
+ deep: !0
377
+ }), ae(() => {
378
+ ge();
379
+ }), n({
380
+ get bakInt() {
381
+ return N.value.bakInt;
382
+ },
383
+ serviceType: M,
384
+ currency: Q,
385
+ channels: R,
386
+ categoryForm: N,
387
+ handleToggleRowSelection: _e,
388
+ getVisibleRangeData: (e) => {
389
+ let t = `permissionSettingRef_${e}`, n = d?.refs?.[t];
390
+ if (n) {
391
+ let e = n.validateVisibleRange();
392
+ return e.isValid ? e.data : null;
393
+ }
394
+ return null;
395
+ },
396
+ validateCategory: async () => A.value ? (A.value.scrollToField("bakInt"), A.value.validate().catch(() => (V.warning(L("SOURCE_PUBLISH.PUBLISH_CATEGORY_MSG")), Promise.reject(!1)))) : !0
397
+ }), (t, n) => (D(), x("div", De, [w(ee, {
398
+ columns: W.value,
399
+ data: R.value,
400
+ "on-row-key": (e) => e.id,
401
+ total: R.value.length,
402
+ style: { width: "100%" },
403
+ hasPage: !1,
404
+ "show-handle-nums": 1,
405
+ onRowClassName: ve,
406
+ "expand-row-keys": be.value,
407
+ "default-expand-all": !1,
408
+ onOnMultiSelection: me,
409
+ ref_key: "aiboxTableRef",
410
+ ref: E
411
+ }, {
412
+ name: I(({ row: t }) => [S("div", Oe, [w(ye, {
413
+ "publish-type": t.id,
414
+ size: 24
415
+ }, null, 8, ["publish-type"]), S("div", ke, [S("p", Ae, [
416
+ C(P(t.name(e.sourceType)) + " ", 1),
417
+ w(Ee, {
418
+ "channel-type": t.id,
419
+ "is-auth": j.value
420
+ }, null, 8, ["channel-type", "is-auth"]),
421
+ w(Te, { "channel-type": t.id }, null, 8, ["channel-type"])
422
+ ]), S("p", je, P(t.description), 1)])])]),
423
+ expand: I(({ row: r }) => [r.id === F(c).PLUGIN_STORE ? (D(), x("div", Me, [
424
+ w(F(U), {
425
+ modelValue: N.value.bakInt,
426
+ "onUpdate:modelValue": n[0] ||= (e) => N.value.bakInt = e,
427
+ placeholder: F(L)("SOURCE_PUBLISH.DEFAULT_SELECT_MSG"),
428
+ style: { width: "200px" },
429
+ disabled: e.disabled
430
+ }, {
431
+ prefix: I(() => [S("div", Ne, P(F(L)("SOURCE_PUBLISH.CATEGORY")), 1), n[4] ||= S("div", { class: "divider" }, null, -1)]),
432
+ default: I(() => [(D(!0), x(_, null, k(F(o), (e) => (D(), y(F(H), {
433
+ key: e.value,
434
+ label: e.label,
435
+ value: e.value
436
+ }, null, 8, ["label", "value"]))), 128))]),
437
+ _: 1
438
+ }, 8, [
439
+ "modelValue",
440
+ "placeholder",
441
+ "disabled"
442
+ ]),
443
+ e.authType == "1" ? (D(), y(F(U), {
444
+ key: 0,
445
+ modelValue: M.value,
446
+ "onUpdate:modelValue": n[1] ||= (e) => M.value = e,
447
+ placeholder: F(L)("SOURCE_PUBLISH.DEFAULT_SELECT_MSG"),
448
+ style: { width: "200px" },
449
+ disabled: e.disabled
450
+ }, {
451
+ prefix: I(() => [S("div", Pe, P(F(L)("SOURCE_PUBLISH.SERVICE_TYPE")), 1), n[5] ||= S("div", { class: "divider" }, null, -1)]),
452
+ default: I(() => [(D(), x(_, null, k(K, (e) => w(F(H), {
453
+ key: e.value,
454
+ label: e.label,
455
+ value: e.value
456
+ }, null, 8, ["label", "value"])), 64))]),
457
+ _: 1
458
+ }, 8, [
459
+ "modelValue",
460
+ "placeholder",
461
+ "disabled"
462
+ ])) : b("", !0),
463
+ M.value === t.q.CURRENCY ? (D(), y(F(de), {
464
+ key: 1,
465
+ modelValue: Q.value,
466
+ "onUpdate:modelValue": n[2] ||= (e) => Q.value = e,
467
+ precision: 2,
468
+ style: { width: "200px" },
469
+ "controls-position": "right",
470
+ disabled: e.disabled
471
+ }, {
472
+ prefix: I(() => [S("div", Fe, P(F(L)("SOURCE_PUBLISH.CONSUME_VALUE")), 1), n[6] ||= S("div", { class: "divider" }, null, -1)]),
473
+ _: 1
474
+ }, 8, ["modelValue", "disabled"])) : b("", !0)
475
+ ])) : b("", !0), [
476
+ F(c).FEISHU_WEB,
477
+ F(c).AGENT_STORE,
478
+ F(c).MCP_STORE
479
+ ].includes(r.id) ? (D(), y(we, {
480
+ key: 1,
481
+ "show-permission-setting": r.id === F(c).MCP_STORE && e.authType !== "0",
482
+ "auth-type": e.authType,
483
+ detail: r,
484
+ ref: `permissionSettingRef_${r.id}`,
485
+ "onUpdate:detail": (e) => X(r, e)
486
+ }, null, 8, [
487
+ "show-permission-setting",
488
+ "auth-type",
489
+ "detail",
490
+ "onUpdate:detail"
491
+ ])) : b("", !0)]),
492
+ status: I(({ row: e }) => [F(u).includes(e.id) ? (D(), y(F(G), {
493
+ key: 0,
494
+ type: "success"
495
+ }, {
496
+ default: I(() => [C(P(F(L)("SOURCE_PUBLISH.PUBLISH_AUTHORIZE_STATUS")), 1)]),
497
+ _: 1
498
+ })) : F(p).includes(e.id) ? (D(), y(F(G), {
499
+ key: 1,
500
+ type: j.value ? "success" : "info"
501
+ }, {
502
+ default: I(() => [C(P(j.value ? F(L)("SOURCE_PUBLISH.PUBLISH_AUTHORIZE_STATUS") : F(L)("SOURCE_PUBLISH.PUBLISH_UNAUTHORIZE_STATUS")), 1)]),
503
+ _: 1
504
+ }, 8, ["type"])) : b("", !0)]),
505
+ inActive: I(({ row: t }) => [w(F(U), {
506
+ "model-value": B(t),
507
+ disabled: e.disabled,
508
+ onChange: (e) => he(t)
509
+ }, {
510
+ default: I(() => [(D(!0), x(_, null, k(F(a), (e) => (D(), y(F(H), {
511
+ key: e.value,
512
+ label: e.label,
513
+ value: e.value
514
+ }, null, 8, ["label", "value"]))), 128))]),
515
+ _: 1
516
+ }, 8, [
517
+ "model-value",
518
+ "disabled",
519
+ "onChange"
520
+ ])]),
521
+ action: I(({ row: t }) => [S("div", Ie, [F(p).includes(t.id) && !e.isBackendSystem ? (D(), y(F(ce), {
522
+ key: 0,
523
+ type: "primary",
524
+ link: "",
525
+ onClick: (e) => Z(t)
526
+ }, {
527
+ default: I(() => [C(P(F(L)("SOURCE_PUBLISH.CONFIG")), 1)]),
528
+ _: 1
529
+ }, 8, ["onClick"])) : b("", !0), F(s).slice(0, 3).includes(t.id) && e.sourceType != F(J).PLUGIN && $.value ? (D(), y(F(le), {
530
+ key: 1,
531
+ ref_key: "categoryFormRef",
532
+ ref: A,
533
+ model: N.value,
534
+ rules: ue.value
535
+ }, {
536
+ default: I(() => [w(F(z), { prop: "bakInt" }, {
537
+ default: I(() => [w(F(U), {
538
+ modelValue: N.value.bakInt,
539
+ "onUpdate:modelValue": n[3] ||= (e) => N.value.bakInt = e,
540
+ placeholder: F(L)("SOURCE_PUBLISH.DEFAULT_SELECT_MSG"),
541
+ style: { width: "150px" },
542
+ disabled: e.disabled
543
+ }, {
544
+ prefix: I(() => [S("div", Le, P(F(L)("SOURCE_PUBLISH.CATEGORY")), 1), n[7] ||= S("div", { class: "divider" }, null, -1)]),
545
+ default: I(() => [(D(!0), x(_, null, k(F(o), (e) => (D(), y(F(H), {
546
+ key: e.value,
547
+ label: e.label,
548
+ value: e.value
549
+ }, null, 8, ["label", "value"]))), 128))]),
550
+ _: 1
551
+ }, 8, [
552
+ "modelValue",
553
+ "placeholder",
554
+ "disabled"
555
+ ])]),
556
+ _: 1
557
+ })]),
558
+ _: 1
559
+ }, 8, ["model", "rules"])) : b("", !0)])]),
560
+ _: 1
561
+ }, 8, [
562
+ "columns",
563
+ "data",
564
+ "on-row-key",
565
+ "total",
566
+ "expand-row-keys"
567
+ ])]));
568
+ }
569
+ }, [["__scopeId", "data-v-26ab8d6f"]]), ze = { class: "publish-container__back" }, Be = { class: "publish-container__config" }, Ve = { class: "publish-container__config" }, He = "feishu", Ue = /*#__PURE__*/ n({
570
+ __name: "layout",
571
+ props: {
572
+ showPublishConfig: {
573
+ type: Boolean,
574
+ default: !0
575
+ },
576
+ propsSourceBnid: {
577
+ type: String,
578
+ default: ""
579
+ },
580
+ propsSourceType: {
581
+ type: String,
582
+ default: ""
583
+ },
584
+ propsAuthType: {
585
+ type: String,
586
+ default: ""
587
+ },
588
+ businessSpace: {
589
+ type: String,
590
+ default: ""
591
+ },
592
+ isBackendSystem: {
593
+ type: Boolean,
594
+ default: !1
595
+ },
596
+ disabled: {
597
+ type: Boolean,
598
+ default: !1
599
+ },
600
+ rowBnid: {
601
+ type: String,
602
+ default: ""
603
+ },
604
+ isShowBack: {
605
+ type: Boolean,
606
+ default: !0
607
+ },
608
+ isRepublish: {
609
+ type: Boolean,
610
+ default: !1
611
+ },
612
+ isOfficialRelease: {
613
+ type: Boolean,
614
+ default: !1
615
+ },
616
+ categoryValidateMessage: {
617
+ type: String,
618
+ default: ""
619
+ }
620
+ },
621
+ setup(e, { expose: n }) {
622
+ 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();
623
+ function ee() {
624
+ try {
625
+ let e = typeof sessionStorage < "u" ? sessionStorage.getItem("userInfo") : null;
626
+ return e ? JSON.parse(e)?.loginType === He : !1;
627
+ } catch {
628
+ return !1;
629
+ }
630
+ }
631
+ function _(e) {
632
+ return Array.isArray(e) ? e.some((e) => String(e.channelType) === String(c.FEISHU_WEB)) : !1;
633
+ }
634
+ let v = e, { sourcePublish: ne, checkVersion: re, getPublishVersionDetail: E, sourceRePublish: k } = te(), A = O({
635
+ versionNumber: "0.0.1",
636
+ selectedData: [],
637
+ showExec: 1
638
+ }), M = O({
639
+ versionNumber: [
640
+ {
641
+ required: !0,
642
+ message: h("SOURCE_PUBLISH.VERSION_NUMBER_MSG"),
643
+ trigger: "blur"
644
+ },
645
+ {
646
+ pattern: /^\d+\.\d+\.\d+$/,
647
+ message: "版本号格式必须为数字.数字.数字,如:1.0.0",
648
+ trigger: "blur"
649
+ },
650
+ {
651
+ validator: async (e, t, n) => {
652
+ if (u.value) return;
653
+ u.value = !0;
654
+ let { data: r } = await re({
655
+ sourceType: f.value,
656
+ sourceId: p.value,
657
+ versionNumber: A.value.versionNumber
658
+ }).finally(() => {
659
+ u.value = !1;
660
+ });
661
+ if (r) {
662
+ let e = h("SOURCE_PUBLISH.VERSION_NUMBER_EXIST_MSG");
663
+ n(Error(e));
664
+ } else n();
665
+ },
666
+ trigger: "blur"
667
+ }
668
+ ],
669
+ selectedData: [{
670
+ required: !v.isBackendSystem,
671
+ message: h("SOURCE_PUBLISH.PUBLISH_CHANNEL_MSG"),
672
+ trigger: "change"
673
+ }, {
674
+ validator: (e, t, n) => {
675
+ if (A.value.selectedData.length === 0) {
676
+ v.isBackendSystem && n();
677
+ let e = h("SOURCE_PUBLISH.PUBLISH_CHANNEL_MSG");
678
+ n(Error(e));
679
+ } else n();
680
+ },
681
+ trigger: "change"
682
+ }]
683
+ }), N = () => {
684
+ i.value?.validateField("selectedData");
685
+ }, oe = (e) => {
686
+ let t = e.replace(/[^0-9.]/g, ""), n = t.split(".");
687
+ n.length > 3 ? A.value.versionNumber = n.slice(0, 3).join(".") : A.value.versionNumber = t;
688
+ }, R = async () => {
689
+ B(() => {
690
+ let e = window.history.state;
691
+ e && o.replace({
692
+ path: e.back,
693
+ query: {
694
+ active: "publish",
695
+ from: a.query.from
696
+ }
697
+ });
698
+ });
699
+ }, B = async (e) => {
700
+ let t = await H();
701
+ if (!t) return;
702
+ if (_(t.channels) && !ee()) {
703
+ V.warning(h("SOURCE_PUBLISH.FEISHU_LOGIN_CANNOT_PUBLISH"));
704
+ return;
705
+ }
706
+ l.value = !0;
707
+ let n = v.isRepublish ? k : ne;
708
+ try {
709
+ let { code: r } = await n(t);
710
+ r === 0 && typeof e == "function" && e();
711
+ } finally {
712
+ l.value = !1;
713
+ }
714
+ }, de = (e) => {
715
+ G.value, G.value.forEach((t) => {
716
+ e.find((e) => e.channelType === t.channelType) || e.push({
717
+ channelType: t.channelType,
718
+ inActive: 0,
719
+ allVisible: t.allVisible || !1,
720
+ visibleScope: t.visibleScope || null
721
+ });
722
+ });
723
+ }, H = async () => {
724
+ if (await i.value.validate()) {
725
+ let e = {}, t = [];
726
+ for (let e of A.value.selectedData) {
727
+ let n = { channelType: Number(e.id) }, i = [
728
+ c.FEISHU_WEB,
729
+ c.AGENT_STORE,
730
+ c.MCP_STORE
731
+ ], a = r.value.getVisibleRangeData(e.id);
732
+ if (i.includes(e.id) && !a) return !1;
733
+ 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);
734
+ }
735
+ if (v.isBackendSystem) {
736
+ let e = Number(c.AIBox);
737
+ t.some((t) => t.channelType === e) || t.push({ channelType: e });
738
+ }
739
+ v.isRepublish && de(t), v.isRepublish ? (t.forEach((e) => {
740
+ e.visibleScope ||= null, e.allVisible ||= !1, s.includes((e.channelType || "").toString()) && (e.bakInt = r.value.bakInt);
741
+ }), e = {
742
+ channels: t,
743
+ bnid: v.rowBnid,
744
+ sourceType: f.value,
745
+ sourceId: p.value,
746
+ serviceType: "2"
747
+ }) : e = {
748
+ ...A.value,
749
+ channels: t,
750
+ sourceType: f.value,
751
+ sourceId: p.value,
752
+ workspaceBnid: v.businessSpace || ""
753
+ }, f.value == J.WORKFLOW && (e.forcePublish = !0);
754
+ let n = !1, i = A.value.selectedData.map((e) => e.id);
755
+ if (n = i.find((e) => [
756
+ c.AGENT_STORE,
757
+ c.WORKFLOW_STORE,
758
+ c.PLUGIN_STORE,
759
+ c.MCP_STORE
760
+ ].includes(e)), n) {
761
+ if (await r.value?.validateCategory?.() === !1) return !1;
762
+ if (e.bakInt = r.value.bakInt, i.includes(c.PLUGIN_STORE) && m.value == "1" && (e.serviceType = r.value.serviceType, !e.serviceType)) {
763
+ let e = h("SOURCE_PUBLISH.PUBLISH_SERVICE_TYPE_MSG");
764
+ return V.warning(e), !1;
765
+ }
766
+ }
767
+ return e.official = v.isOfficialRelease, delete e.selectedData, e;
768
+ } else return console.log("error submit!"), !1;
769
+ }, U = O({}), G = O([]), K = async () => {
770
+ d.value = !0;
771
+ let { data: e } = await E(f.value, p.value);
772
+ if (d.value = !1, e) {
773
+ let t = e.versionNumber.split(".");
774
+ 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 || "");
775
+ }
776
+ G.value = e?.channels || [], T(() => {
777
+ let t = [], n = {};
778
+ if (e?.channels.forEach((e) => {
779
+ 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);
780
+ }), t.length == 0) t = [c.AIBox];
781
+ else {
782
+ let e = t.find((e) => e == c.AIBox);
783
+ f.value == J.AGENT && !e && t.push(c.AIBox);
784
+ }
785
+ r.value?.handleToggleRowSelection(t, n);
786
+ });
787
+ };
788
+ return ae(() => {
789
+ console.log("props", v), f.value = v.propsSourceType, m.value = v.propsAuthType, p.value = v.propsSourceBnid, K();
790
+ }), n({
791
+ handleSourcePublish: B,
792
+ publishData: U,
793
+ submitLoading: l
794
+ }), (t, n) => {
795
+ let a = j("loading");
796
+ return L((D(), x("div", {
797
+ class: ie(["publish-container", e.isBackendSystem ? "backend-system" : ""]),
798
+ id: "source-publish-container"
799
+ }, [e.isBackendSystem ? b("", !0) : (D(), y(g, {
800
+ key: 0,
801
+ "back-bar-style": "#f7f8fa"
802
+ }, {
803
+ default: I(() => [S("div", ze, [S("span", null, P(F(h)("SOURCE_PUBLISH.PUBLISH")), 1), w(F(ce), {
804
+ type: "primary",
805
+ class: "publish-container__sure",
806
+ onClick: R,
807
+ loading: l.value,
808
+ disabled: e.disabled
809
+ }, {
810
+ default: I(() => [C(P(F(h)("SOURCE_PUBLISH.SURE_PUBLISH")), 1)]),
811
+ _: 1
812
+ }, 8, ["loading", "disabled"])])]),
813
+ _: 1
814
+ })), w(F(le), {
815
+ ref_key: "formRef",
816
+ ref: i,
817
+ model: A.value,
818
+ "label-width": "80px",
819
+ class: "publish-container__form",
820
+ rules: M.value,
821
+ "label-position": "top",
822
+ disabled: e.disabled,
823
+ onSubmit: n[5] ||= se(() => {}, ["prevent"])
824
+ }, {
825
+ default: I(() => [
826
+ e.isRepublish ? b("", !0) : (D(), y(X, { key: 0 }, {
827
+ default: I(() => [C(P(F(h)("SOURCE_PUBLISH.PUBLISH_RECORD")), 1)]),
828
+ _: 1
829
+ })),
830
+ e.isRepublish ? b("", !0) : (D(), y(Z, { key: 1 }, {
831
+ default: I(() => [w(F(z), {
832
+ label: F(h)("SOURCE_PUBLISH.VERSION_NUMBER"),
833
+ prop: "versionNumber"
834
+ }, {
835
+ default: I(() => [w(F(ue), {
836
+ modelValue: A.value.versionNumber,
837
+ "onUpdate:modelValue": n[0] ||= (e) => A.value.versionNumber = e,
838
+ placeholder: F(h)("SOURCE_PUBLISH.VERSION_PLACEHOLDER"),
839
+ onInput: oe
840
+ }, null, 8, ["modelValue", "placeholder"])]),
841
+ _: 1
842
+ }, 8, ["label"]), w(F(z), {
843
+ label: F(h)("SOURCE_PUBLISH.VERSION_DESC"),
844
+ prop: "versionDesc"
845
+ }, {
846
+ default: I(() => [w(F(ue), {
847
+ type: "textarea",
848
+ modelValue: A.value.versionDesc,
849
+ "onUpdate:modelValue": n[1] ||= (e) => A.value.versionDesc = e,
850
+ rows: 4,
851
+ maxlength: "2000",
852
+ "show-word-limit": "",
853
+ placeholder: F(h)("SOURCE_PUBLISH.VERSION_DESC")
854
+ }, null, 8, ["modelValue", "placeholder"])]),
855
+ _: 1
856
+ }, 8, ["label"])]),
857
+ _: 1
858
+ })),
859
+ e.showPublishConfig && !e.isRepublish ? (D(), y(X, { key: 2 }, {
860
+ default: I(() => [C(P(F(h)("SOURCE_PUBLISH.PUBLISH_CONFIG")), 1)]),
861
+ _: 1
862
+ })) : b("", !0),
863
+ e.showPublishConfig && !e.isRepublish ? (D(), y(Z, { key: 3 }, {
864
+ default: I(() => [w(F(z), { prop: "showExec" }, {
865
+ default: I(() => [S("div", Be, [S("p", null, [n[6] ||= S("img", {
866
+ src: "data:image/png;base64,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",
867
+ width: "20",
868
+ height: "20",
869
+ alt: ""
870
+ }, null, -1), S("span", null, P(F(h)("SOURCE_PUBLISH.SHOW_EXECUTE_PROCESS")), 1)]), w(F(W), {
871
+ modelValue: A.value.showExec,
872
+ "onUpdate:modelValue": n[2] ||= (e) => A.value.showExec = e,
873
+ "active-value": 1,
874
+ "inactive-value": 0
875
+ }, null, 8, ["modelValue"])])]),
876
+ _: 1
877
+ }), w(F(z), { prop: "showKnowledge" }, {
878
+ default: I(() => [S("div", Ve, [S("p", null, [n[7] ||= S("img", {
879
+ src: "data:image/png;base64,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",
880
+ width: "20",
881
+ height: "20",
882
+ alt: ""
883
+ }, null, -1), S("span", null, P(F(h)("SOURCE_PUBLISH.SHOW_RECALL_KNOWLEDGE")), 1)]), w(F(W), {
884
+ modelValue: A.value.showKnowledge,
885
+ "onUpdate:modelValue": n[3] ||= (e) => A.value.showKnowledge = e,
886
+ "active-value": 1,
887
+ "inactive-value": 0
888
+ }, null, 8, ["modelValue"])])]),
889
+ _: 1
890
+ })]),
891
+ _: 1
892
+ })) : b("", !0),
893
+ e.isRepublish ? b("", !0) : (D(), y(X, { key: 4 }, {
894
+ default: I(() => [n[8] ||= S("span", { class: "publish-container__required" }, "*", -1), C(P(F(h)("SOURCE_PUBLISH.PUBLISH_SETTING")), 1)]),
895
+ _: 1
896
+ })),
897
+ w(Z, null, {
898
+ default: I(() => [w(F(z), { prop: "selectedData" }, {
899
+ default: I(() => [w(Re, {
900
+ ref_key: "publishSettingsRef",
901
+ ref: r,
902
+ "source-type": f.value,
903
+ "channel-management": G.value,
904
+ modelValue: A.value.selectedData,
905
+ "onUpdate:modelValue": n[4] ||= (e) => A.value.selectedData = e,
906
+ "is-backend-system": e.isBackendSystem,
907
+ disabled: e.disabled,
908
+ "auth-type": m.value,
909
+ "category-validate-message": e.categoryValidateMessage,
910
+ onValidateField: N
911
+ }, null, 8, [
912
+ "source-type",
913
+ "channel-management",
914
+ "modelValue",
915
+ "is-backend-system",
916
+ "disabled",
917
+ "auth-type",
918
+ "category-validate-message"
919
+ ])]),
920
+ _: 1
921
+ })]),
922
+ _: 1
923
+ })
924
+ ]),
925
+ _: 1
926
+ }, 8, [
927
+ "model",
928
+ "rules",
929
+ "disabled"
930
+ ])], 2)), [[a, d.value]]);
931
+ };
932
+ }
933
+ }, [["__scopeId", "data-v-09cd6741"]]), We = () => {
934
+ let { t: e } = t();
935
+ return {
936
+ serviceType: [{
937
+ get label() {
938
+ return e("COMMON_DICT.SERVICE_TYPE.PRIVATE");
939
+ },
940
+ value: h.PRIVATE
941
+ }, {
942
+ get label() {
943
+ return e("COMMON_DICT.SERVICE_TYPE.DEVELOPER");
944
+ },
945
+ value: h.DEVELOPER
946
+ }],
947
+ serviceStatus: [{
948
+ get label() {
949
+ return e("COMMON_DICT.SERVICE_STATUS.IN_CALL");
950
+ },
951
+ value: "IN_CALL"
952
+ }, {
953
+ get label() {
954
+ return e("COMMON_DICT.SERVICE_STATUS.NO_CONFIG");
955
+ },
956
+ value: "NO_CONFIG"
957
+ }]
958
+ };
959
+ }, Ge = () => {
960
+ let { getStoreDetailType: e } = te(), { t: n } = t(), r = O([]), i = O([]);
961
+ return {
962
+ storeDetailType: r,
963
+ allStoreDetailType: i,
964
+ fetchStoreDetailType: async () => {
965
+ await e().then((e) => {
966
+ let t = e?.data?.map((e) => ({
967
+ label: e.desc,
968
+ value: String(e.code)
969
+ })), a = {
970
+ value: "0",
971
+ label: n("STOREDETAILTYPE_STORECONTENTLAYOUT.LABEL_ALL")
972
+ };
973
+ r.value = t, i.value = [a, ...t];
974
+ });
975
+ }
976
+ };
977
+ }, Ke = e(Ue);
978
+ //#endregion
979
+ export { Ee as a, ye as c, Re as i, Ge as n, Te as o, We as r, we as s, Ke as t };