aibox-custom-component-packages 0.0.21 → 0.0.23

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