aibox-custom-component-packages 0.0.13 → 0.0.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. package/es/SourcePublish.mjs +1 -1
  2. package/es/assets/SourcePublish.css +1 -1
  3. package/es/chunks/{SourcePublish.BhLjt18i.js → SourcePublish.Dk7O9GzI.js} +2 -6
  4. package/es/index.mjs +1 -1
  5. package/lib/SourcePublish.js +1 -1
  6. package/lib/assets/SourcePublish.css +1 -1
  7. package/lib/chunks/SourcePublish.OeB6i-Iu.js +1 -0
  8. package/lib/index.js +1 -1
  9. package/package.json +2 -2
  10. package/es/chunks/AddOrEditSupplierDialog.BKR0RsiJ.js +0 -721
  11. package/es/chunks/AddOrEditSupplierDialog.CjNRipPe.js +0 -721
  12. package/es/chunks/AddOrEditSupplierDialog.CnsquSx2.js +0 -721
  13. package/es/chunks/AiboxTable.CDqNvRfJ.js +0 -635
  14. package/es/chunks/AiboxTable.CrWMAX84.js +0 -635
  15. package/es/chunks/ApplicationTypeTag.Cbdi0D65.js +0 -47
  16. package/es/chunks/ApplicationTypeTag.Df4BZxds.js +0 -47
  17. package/es/chunks/AuthSection.DFfj5MtZ.js +0 -201
  18. package/es/chunks/AuthSection.DWD_FxtJ.js +0 -201
  19. package/es/chunks/AvailableRangePreview.Bz9QkkAM.js +0 -194
  20. package/es/chunks/AvailableRangePreview.WFzbRasx.js +0 -194
  21. package/es/chunks/AvailableRangeSetting.Bq_K1zar.js +0 -229
  22. package/es/chunks/AvailableRangeSetting.Cty5Cdmh.js +0 -229
  23. package/es/chunks/CodeView.CWuSIL_F.js +0 -148
  24. package/es/chunks/CodeView.Dhxe1PQP.js +0 -148
  25. package/es/chunks/CommonTagsList.DSPdgjc3.js +0 -156
  26. package/es/chunks/CommonTagsList.NbXVfvLW.js +0 -156
  27. package/es/chunks/CommonTagsList.qam_Fp76.js +0 -156
  28. package/es/chunks/CreateMcpForm.BBVVd2RN.js +0 -308
  29. package/es/chunks/CreateMcpForm.BWUyeP01.js +0 -308
  30. package/es/chunks/CreateMcpForm.C8YfDSEM.js +0 -308
  31. package/es/chunks/CreateMcpForm.DSE5jyiW.js +0 -308
  32. package/es/chunks/CustomSidebar.BSGAhmVY.js +0 -585
  33. package/es/chunks/DocSyncSelect.D-WIvZZN.js +0 -2290
  34. package/es/chunks/DocSyncSelect.Kk88o9gO.js +0 -2290
  35. package/es/chunks/FileDisplay.B5laA4uX.js +0 -1649
  36. package/es/chunks/FileDisplay.BCTNdpl9.js +0 -1649
  37. package/es/chunks/FileDisplay.CBNYrdsK.js +0 -1560
  38. package/es/chunks/FilePreview.B9u8ODHp.js +0 -123
  39. package/es/chunks/FileUploader.BaikPGWb.js +0 -216
  40. package/es/chunks/FileUploader.DD-lopf-.js +0 -216
  41. package/es/chunks/McpFormDialog.4HDExbTn.js +0 -297
  42. package/es/chunks/McpFormDialog.CgnC1I7i.js +0 -297
  43. package/es/chunks/McpFormDialog.D3txmoEF.js +0 -297
  44. package/es/chunks/McpFormDialog.DNzqqhaX.js +0 -297
  45. package/es/chunks/McpParamsSet.DlWx6E5S.js +0 -501
  46. package/es/chunks/McpParamsSet.Tlo_lPn-.js +0 -501
  47. package/es/chunks/MdEditor.B9-B9aiy.js +0 -163
  48. package/es/chunks/MdEditor.CeEo0P6j.js +0 -163
  49. package/es/chunks/MdEditor.DtL0Se7T.js +0 -163
  50. package/es/chunks/ParameterTable.BCdnj1gW.js +0 -2010
  51. package/es/chunks/ParameterTable.hUsxEU6F.js +0 -2010
  52. package/es/chunks/PublishRecord.9PLs9yUj.js +0 -133
  53. package/es/chunks/PublishRecord.C0841sJ-.js +0 -133
  54. package/es/chunks/PublishRecord.DEzC7hmP.js +0 -133
  55. package/es/chunks/SourcePublish.C97G36H2.js +0 -972
  56. package/es/chunks/SourcePublish.DkyY1KEk.js +0 -972
  57. package/es/chunks/SourcePublish.Dx-ltk9U.js +0 -956
  58. package/es/chunks/SourcePublish.FiswtYfr.js +0 -972
  59. package/es/chunks/SourcePublish.nfXmrVHm.js +0 -972
  60. package/es/chunks/config.BEZNFeRN.js +0 -35
  61. package/es/chunks/config.LzgBLhTz.js +0 -270
  62. package/es/chunks/config.MfNKPMiA.js +0 -35
  63. package/es/chunks/config.TaUlPTYL.js +0 -270
  64. package/es/chunks/config.l1J_qxeB.js +0 -270
  65. package/es/chunks/i18n.CIjLjyDK.js +0 -418
  66. package/es/chunks/i18n.CxsxtRq_.js +0 -418
  67. package/es/chunks/usePreview.agdxmOk8.js +0 -126
  68. package/lib/chunks/AddOrEditSupplierDialog.D0DSQZiS.js +0 -1
  69. package/lib/chunks/CommonTagsList.DbNcVId5.js +0 -1
  70. package/lib/chunks/CreateMcpForm.Cm9eHXWg.js +0 -1
  71. package/lib/chunks/CreateMcpForm.DNijYbgd.js +0 -1
  72. package/lib/chunks/CustomSidebar.Dojb1xoS.js +0 -1
  73. package/lib/chunks/FileDisplay.B4gn0Jhp.js +0 -59
  74. package/lib/chunks/FileDisplay.B7JWIcFg.js +0 -59
  75. package/lib/chunks/FileDisplay.DjtHza32.js +0 -59
  76. package/lib/chunks/FilePreview.b1Gine59.js +0 -1
  77. package/lib/chunks/McpFormDialog.BgNPOGB-.js +0 -6
  78. package/lib/chunks/McpFormDialog.CL2bInts.js +0 -6
  79. package/lib/chunks/McpFormDialog.DbhQIwYW.js +0 -6
  80. package/lib/chunks/MdEditor.rVQbuxCg.js +0 -1
  81. package/lib/chunks/PublishRecord.B7xYlRKJ.js +0 -5
  82. package/lib/chunks/SourcePublish.BBsNlnp4.js +0 -1
  83. package/lib/chunks/SourcePublish.C9JAqJcV.js +0 -1
  84. package/lib/chunks/SourcePublish.CpeV-UOG.js +0 -1
  85. package/lib/chunks/SourcePublish.K4tntn9l.js +0 -1
  86. package/lib/chunks/SourcePublish.tNsaCp3r.js +0 -1
  87. package/lib/chunks/config.CDNV0bUm.js +0 -1
  88. package/lib/chunks/usePreview.Dmhz8azZ.js +0 -1
@@ -1,956 +0,0 @@
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,iVBORw0KG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XJGewYJ9Im5yujVu9sZPjRbFyyxOn/ABcvSW/7pS9At0iBDN7dohjtnSnzJdTcsQ0uCDDzccAEJB5USF5IGnfkFE7Xly9LacM+PH/1AetVVzCkT3DHra/q3JjXh6XdPYGjBJO7B7ysQFjleu35ZQwOnMLUFnh2KjG86q4mvKlUjJBFyclnTGwCJihwBfJpH3DRYe87kmlZKISZdow+ACYEJCQkKh9VGzDMAOkgQwVTmFyOjnYWLiQkJCQEPgPkazXbvPHCoAAAAAASUVORK5CYII=",
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,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAW2SURBVHic7ZxdaxxVGMd/zySbJk0bt0EsrQ1srKlpCbLaUvSqGxDxLi2iSOlFil+g/QJu/AASXxDvTC8sfYmSBkSstmR7I6WiBqutaG0XBKnSl8W+7KZJ9ngx2XSz85KZnbOTfZkfHE7OZGbO2f8+z3nOOTN7ICIiIiIiImJtkGovTOxX8ViMhJonTjuwAGHnEiM3P08ue0ay1X6OoPgScMfrar8yGAFSKBK1aVLV5DA4popMX/tcMmFV6knAgTdU0hCmVP2JZotApghH/5iU2RDqcmfwTZVGGKt1Q2qBwNGrp+T9GtfhzK63VBoaU7wyxq6clHdrdXNHAYcOLomnls5q4FzgwOUTciaATo7YCjh0SKVEMVMnn19HnjUWGZ49qT9atzscTFc/wKlLEsRIA4d139giU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Rn1wdmgYS2KuqM3/+C5A60zDVF7AQ0yNIg25tUw53/KqwwwBxSFLPWPhCmMUhpbHNdUXgEV27Anp3BFzsw7ARsIyO1+EVKHfHvXbj8J+zqh1ibeawaQyzCtG1Meu+4mgBGQ1mvWsO8ZwPsGYSudbY6r0ZmMCHDtgKOn1AJ4EZVt20wujph93PQ0+3vumKR4Z39knEcFX1wSqWVavhdizwRa4edCdj2lLfzRRgb6DN3Q3IdVn44qcZRHAncwgZhoA8GtrmfIzC2ve/xVlKrjss/nlRp1fj7Z3kmscW0RluEse1Pr9yHy9PE5qNJlWoT0kjzDm/K2ffCysAiQna+yIEd26zb6fmaGX4yqVLSzgiKUWX+/KkegqnWfFMP7N0FQBYhg2K6f6vzxmVVT63Hp1S8E+IsNM+sJR6Hl4bI9m9Zuy1FIyIiIiIiIrzyPx3JLklkX69sAAAAAElFTkSuQmCC",
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 };