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,968 +0,0 @@
1
- import { t as e } from "./withinstall.dLh4K-0g.js";
2
- import { m as t } from "./i18n.CIhVBbR3.js";
3
- import { t as n } from "./_plugin-vue_export-helper.Ct3qlEzt.js";
4
- import { t as r } from "./AvailableRangeSetting.CGJxgfPT.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.lm2B-n0s.js";
6
- import { r as g, t as ee } from "./AiboxTable.B_Yli5E8.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
- g.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,
475
- "show-available-range": g.authType !== "0",
476
- "auth-type": g.authType,
477
- detail: r,
478
- ref: `permissionSettingRef_${r.id}`,
479
- "onUpdate:detail": (e) => X(r, e)
480
- }, null, 8, [
481
- "show-permission-setting",
482
- "show-available-range",
483
- "auth-type",
484
- "detail",
485
- "onUpdate:detail"
486
- ])) : b("", !0)]),
487
- status: I(({ row: e }) => [F(u).includes(e.id) ? (D(), y(F(G), {
488
- key: 0,
489
- type: "success"
490
- }, {
491
- default: I(() => [C(P(F(L)("SOURCE_PUBLISH.PUBLISH_AUTHORIZE_STATUS")), 1)]),
492
- _: 1
493
- })) : F(p).includes(e.id) ? (D(), y(F(G), {
494
- key: 1,
495
- type: j.value ? "success" : "info"
496
- }, {
497
- default: I(() => [C(P(j.value ? F(L)("SOURCE_PUBLISH.PUBLISH_AUTHORIZE_STATUS") : F(L)("SOURCE_PUBLISH.PUBLISH_UNAUTHORIZE_STATUS")), 1)]),
498
- _: 1
499
- }, 8, ["type"])) : b("", !0)]),
500
- inActive: I(({ row: t }) => [w(F(U), {
501
- "model-value": B(t),
502
- disabled: e.disabled,
503
- onChange: (e) => he(t)
504
- }, {
505
- default: I(() => [(D(!0), x(_, null, k(F(a), (e) => (D(), y(F(H), {
506
- key: e.value,
507
- label: e.label,
508
- value: e.value
509
- }, null, 8, ["label", "value"]))), 128))]),
510
- _: 1
511
- }, 8, [
512
- "model-value",
513
- "disabled",
514
- "onChange"
515
- ])]),
516
- action: I(({ row: t }) => [S("div", Ie, [F(p).includes(t.id) && !e.isBackendSystem ? (D(), y(F(ce), {
517
- key: 0,
518
- type: "primary",
519
- link: "",
520
- onClick: (e) => Z(t)
521
- }, {
522
- default: I(() => [C(P(F(L)("SOURCE_PUBLISH.CONFIG")), 1)]),
523
- _: 1
524
- }, 8, ["onClick"])) : b("", !0), F(s).slice(0, 3).includes(t.id) && e.sourceType != F(J).PLUGIN && $.value ? (D(), y(F(le), {
525
- key: 1,
526
- ref_key: "categoryFormRef",
527
- ref: A,
528
- model: N.value,
529
- rules: ue
530
- }, {
531
- default: I(() => [w(F(z), { prop: "bakInt" }, {
532
- default: I(() => [w(F(U), {
533
- modelValue: N.value.bakInt,
534
- "onUpdate:modelValue": n[3] ||= (e) => N.value.bakInt = e,
535
- placeholder: F(L)("SOURCE_PUBLISH.DEFAULT_SELECT_MSG"),
536
- style: { width: "150px" },
537
- disabled: e.disabled
538
- }, {
539
- prefix: I(() => [S("div", Le, P(F(L)("SOURCE_PUBLISH.CATEGORY")), 1), n[7] ||= S("div", { class: "divider" }, null, -1)]),
540
- default: I(() => [(D(!0), x(_, null, k(F(o), (e) => (D(), y(F(H), {
541
- key: e.value,
542
- label: e.label,
543
- value: e.value
544
- }, null, 8, ["label", "value"]))), 128))]),
545
- _: 1
546
- }, 8, [
547
- "modelValue",
548
- "placeholder",
549
- "disabled"
550
- ])]),
551
- _: 1
552
- })]),
553
- _: 1
554
- }, 8, ["model"])) : b("", !0)])]),
555
- _: 1
556
- }, 8, [
557
- "columns",
558
- "data",
559
- "on-row-key",
560
- "total",
561
- "expand-row-keys"
562
- ])]));
563
- }
564
- }, [["__scopeId", "data-v-9021556a"]]), ze = { class: "publish-container__back" }, Be = { class: "publish-container__config" }, Ve = { class: "publish-container__config" }, He = "feishu", Ue = /* @__PURE__ */ n({
565
- __name: "layout",
566
- props: {
567
- showPublishConfig: {
568
- type: Boolean,
569
- default: !0
570
- },
571
- propsSourceBnid: {
572
- type: String,
573
- default: ""
574
- },
575
- propsSourceType: {
576
- type: String,
577
- default: ""
578
- },
579
- propsAuthType: {
580
- type: String,
581
- default: ""
582
- },
583
- businessSpace: {
584
- type: String,
585
- default: ""
586
- },
587
- isBackendSystem: {
588
- type: Boolean,
589
- default: !1
590
- },
591
- disabled: {
592
- type: Boolean,
593
- default: !1
594
- },
595
- rowBnid: {
596
- type: String,
597
- default: ""
598
- },
599
- isShowBack: {
600
- type: Boolean,
601
- default: !0
602
- },
603
- isRepublish: {
604
- type: Boolean,
605
- default: !1
606
- },
607
- isOfficialRelease: {
608
- type: Boolean,
609
- default: !1
610
- }
611
- },
612
- setup(e, { expose: n }) {
613
- 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();
614
- function ee() {
615
- try {
616
- let e = typeof sessionStorage < "u" ? sessionStorage.getItem("userInfo") : null;
617
- return e ? JSON.parse(e)?.loginType === He : !1;
618
- } catch {
619
- return !1;
620
- }
621
- }
622
- function _(e) {
623
- return Array.isArray(e) ? e.some((e) => String(e.channelType) === String(c.FEISHU_WEB)) : !1;
624
- }
625
- let v = e, { sourcePublish: ne, checkVersion: re, getPublishVersionDetail: E, sourceRePublish: k } = te(), A = O({
626
- versionNumber: "0.0.1",
627
- selectedData: [],
628
- showExec: 1
629
- }), M = O({
630
- versionNumber: [
631
- {
632
- required: !0,
633
- message: h("SOURCE_PUBLISH.VERSION_NUMBER_MSG"),
634
- trigger: "blur"
635
- },
636
- {
637
- pattern: /^\d+\.\d+\.\d+$/,
638
- message: "版本号格式必须为数字.数字.数字,如:1.0.0",
639
- trigger: "blur"
640
- },
641
- {
642
- validator: async (e, t, n) => {
643
- if (u.value) return;
644
- u.value = !0;
645
- let { data: r } = await re({
646
- sourceType: f.value,
647
- sourceId: p.value,
648
- versionNumber: A.value.versionNumber
649
- }).finally(() => {
650
- u.value = !1;
651
- });
652
- if (r) {
653
- let e = h("SOURCE_PUBLISH.VERSION_NUMBER_EXIST_MSG");
654
- n(Error(e));
655
- } else n();
656
- },
657
- trigger: "blur"
658
- }
659
- ],
660
- selectedData: [{
661
- required: !v.isBackendSystem,
662
- message: h("SOURCE_PUBLISH.PUBLISH_CHANNEL_MSG"),
663
- trigger: "change"
664
- }, {
665
- validator: (e, t, n) => {
666
- if (A.value.selectedData.length === 0) {
667
- v.isBackendSystem && n();
668
- let e = h("SOURCE_PUBLISH.PUBLISH_CHANNEL_MSG");
669
- n(Error(e));
670
- } else n();
671
- },
672
- trigger: "change"
673
- }]
674
- }), N = () => {
675
- i.value?.validateField("selectedData");
676
- }, oe = (e) => {
677
- let t = e.replace(/[^0-9.]/g, ""), n = t.split(".");
678
- n.length > 3 ? A.value.versionNumber = n.slice(0, 3).join(".") : A.value.versionNumber = t;
679
- }, R = async () => {
680
- B(() => {
681
- let e = window.history.state;
682
- e && o.replace({
683
- path: e.back,
684
- query: {
685
- active: "publish",
686
- from: a.query.from
687
- }
688
- });
689
- });
690
- }, B = async (e) => {
691
- let t = await H();
692
- if (!t) return;
693
- if (_(t.channels) && !ee()) {
694
- V.warning(h("SOURCE_PUBLISH.FEISHU_LOGIN_CANNOT_PUBLISH"));
695
- return;
696
- }
697
- l.value = !0;
698
- let n = v.isRepublish ? k : ne;
699
- try {
700
- let { code: r } = await n(t);
701
- r === 0 && typeof e == "function" && e();
702
- } finally {
703
- l.value = !1;
704
- }
705
- }, de = (e) => {
706
- G.value, G.value.forEach((t) => {
707
- e.find((e) => e.channelType === t.channelType) || e.push({
708
- channelType: t.channelType,
709
- inActive: 0,
710
- allVisible: t.allVisible || !1,
711
- visibleScope: t.visibleScope || null
712
- });
713
- });
714
- }, H = async () => {
715
- if (await i.value.validate()) {
716
- let e = {}, t = [];
717
- for (let e of A.value.selectedData) {
718
- let n = { channelType: Number(e.id) }, i = [
719
- c.FEISHU_WEB,
720
- c.AGENT_STORE,
721
- c.MCP_STORE
722
- ], a = r.value.getVisibleRangeData(e.id);
723
- if (i.includes(e.id) && !a) return !1;
724
- 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);
725
- }
726
- if (v.isBackendSystem) {
727
- let e = Number(c.AIBox);
728
- t.some((t) => t.channelType === e) || t.push({ channelType: e });
729
- }
730
- v.isRepublish && de(t), v.isRepublish ? (t.forEach((e) => {
731
- e.visibleScope ||= null, e.allVisible ||= !1, s.includes((e.channelType || "").toString()) && (e.bakInt = r.value.bakInt);
732
- }), e = {
733
- channels: t,
734
- bnid: v.rowBnid,
735
- sourceType: f.value,
736
- sourceId: p.value,
737
- serviceType: "2"
738
- }) : e = {
739
- ...A.value,
740
- channels: t,
741
- sourceType: f.value,
742
- sourceId: p.value,
743
- workspaceBnid: v.businessSpace || ""
744
- }, f.value == J.WORKFLOW && (e.forcePublish = !0);
745
- let n = !1, i = A.value.selectedData.map((e) => e.id);
746
- if (n = i.find((e) => [
747
- c.AGENT_STORE,
748
- c.WORKFLOW_STORE,
749
- c.PLUGIN_STORE,
750
- c.MCP_STORE
751
- ].includes(e)), n) {
752
- if (await r.value?.validateCategory?.() === !1) return !1;
753
- if (e.bakInt = r.value.bakInt, i.includes(c.PLUGIN_STORE) && m.value == "1" && (e.serviceType = r.value.serviceType, !e.serviceType)) {
754
- let e = h("SOURCE_PUBLISH.PUBLISH_SERVICE_TYPE_MSG");
755
- return V.warning(e), !1;
756
- }
757
- }
758
- return e.official = v.isOfficialRelease, delete e.selectedData, e;
759
- } else return console.log("error submit!"), !1;
760
- }, U = O({}), G = O([]), K = async () => {
761
- d.value = !0;
762
- let { data: e } = await E(f.value, p.value);
763
- if (d.value = !1, e) {
764
- let t = e.versionNumber.split(".");
765
- 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 || "");
766
- }
767
- G.value = e?.channels || [], T(() => {
768
- let t = [], n = {};
769
- if (e?.channels.forEach((e) => {
770
- 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);
771
- }), t.length == 0) t = f.value == J.AGENT ? [c.AGENT_STORE, c.AIBox] : [c.AIBox];
772
- else {
773
- let e = t.find((e) => e == c.AIBox);
774
- f.value == J.AGENT && !e && t.push(c.AIBox);
775
- }
776
- r.value?.handleToggleRowSelection(t, n);
777
- });
778
- };
779
- return ae(() => {
780
- console.log("props", v), f.value = v.propsSourceType, m.value = v.propsAuthType, p.value = v.propsSourceBnid, K();
781
- }), n({
782
- handleSourcePublish: B,
783
- publishData: U,
784
- submitLoading: l
785
- }), (t, n) => {
786
- let a = j("loading");
787
- return L((D(), x("div", {
788
- class: ie(["publish-container", e.isBackendSystem ? "backend-system" : ""]),
789
- id: "source-publish-container"
790
- }, [e.isBackendSystem ? b("", !0) : (D(), y(g, {
791
- key: 0,
792
- "back-bar-style": "#f7f8fa"
793
- }, {
794
- default: I(() => [S("div", ze, [S("span", null, P(F(h)("SOURCE_PUBLISH.PUBLISH")), 1), w(F(ce), {
795
- type: "primary",
796
- class: "publish-container__sure",
797
- onClick: R,
798
- loading: l.value,
799
- disabled: e.disabled
800
- }, {
801
- default: I(() => [C(P(F(h)("SOURCE_PUBLISH.SURE_PUBLISH")), 1)]),
802
- _: 1
803
- }, 8, ["loading", "disabled"])])]),
804
- _: 1
805
- })), w(F(le), {
806
- ref_key: "formRef",
807
- ref: i,
808
- model: A.value,
809
- "label-width": "80px",
810
- class: "publish-container__form",
811
- rules: M.value,
812
- "label-position": "top",
813
- disabled: e.disabled,
814
- onSubmit: n[5] ||= se(() => {}, ["prevent"])
815
- }, {
816
- default: I(() => [
817
- e.isRepublish ? b("", !0) : (D(), y(X, { key: 0 }, {
818
- default: I(() => [C(P(F(h)("SOURCE_PUBLISH.PUBLISH_RECORD")), 1)]),
819
- _: 1
820
- })),
821
- e.isRepublish ? b("", !0) : (D(), y(Z, { key: 1 }, {
822
- default: I(() => [w(F(z), {
823
- label: F(h)("SOURCE_PUBLISH.VERSION_NUMBER"),
824
- prop: "versionNumber"
825
- }, {
826
- default: I(() => [w(F(ue), {
827
- modelValue: A.value.versionNumber,
828
- "onUpdate:modelValue": n[0] ||= (e) => A.value.versionNumber = e,
829
- placeholder: F(h)("SOURCE_PUBLISH.VERSION_PLACEHOLDER"),
830
- onInput: oe
831
- }, null, 8, ["modelValue", "placeholder"])]),
832
- _: 1
833
- }, 8, ["label"]), w(F(z), {
834
- label: F(h)("SOURCE_PUBLISH.VERSION_DESC"),
835
- prop: "versionDesc"
836
- }, {
837
- default: I(() => [w(F(ue), {
838
- type: "textarea",
839
- modelValue: A.value.versionDesc,
840
- "onUpdate:modelValue": n[1] ||= (e) => A.value.versionDesc = e,
841
- rows: 4,
842
- maxlength: "2000",
843
- "show-word-limit": "",
844
- placeholder: F(h)("SOURCE_PUBLISH.VERSION_DESC")
845
- }, null, 8, ["modelValue", "placeholder"])]),
846
- _: 1
847
- }, 8, ["label"])]),
848
- _: 1
849
- })),
850
- e.showPublishConfig && !e.isRepublish ? (D(), y(X, { key: 2 }, {
851
- default: I(() => [C(P(F(h)("SOURCE_PUBLISH.PUBLISH_CONFIG")), 1)]),
852
- _: 1
853
- })) : b("", !0),
854
- e.showPublishConfig && !e.isRepublish ? (D(), y(Z, { key: 3 }, {
855
- default: I(() => [w(F(z), { prop: "showExec" }, {
856
- default: I(() => [S("div", Be, [S("p", null, [n[6] ||= S("img", {
857
- src: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAbeSURBVHic7ZztbxRFHMc/s3vX60FrTynSAi09KIK0aJEY8I32pfFVeYeJ0fIn+BeAfwFvfOE7S2JijDH62kQD7yCK1CAF5OEOigWBwvHUe77xxXDpdXfnbndvr/V6+0muk5md/c3Od3/zsLvTgZCQkJDORXjJv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QwVTmFyOjnYWLiQkJCQEPgPkazXbvPHCoAAAAAASUVORK5CYII=",
858
- width: "20",
859
- height: "20",
860
- alt: ""
861
- }, null, -1), S("span", null, P(F(h)("SOURCE_PUBLISH.SHOW_EXECUTE_PROCESS")), 1)]), w(F(W), {
862
- modelValue: A.value.showExec,
863
- "onUpdate:modelValue": n[2] ||= (e) => A.value.showExec = e,
864
- "active-value": 1,
865
- "inactive-value": 0
866
- }, null, 8, ["modelValue"])])]),
867
- _: 1
868
- }), w(F(z), { prop: "showKnowledge" }, {
869
- default: I(() => [S("div", Ve, [S("p", null, [n[7] ||= S("img", {
870
- src: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAW2SURBVHic7ZxdaxxVGMd/zySbJk0bt0EsrQ1srKlpCbLaUvSqGxDxLi2iSOlFil+g/QJu/AASXxDvTC8sfYmSBkSstmR7I6WiBqutaG0XBKnSl8W+7KZJ9ngx2XSz85KZnbOTfZkfHE7OZGbO2f8+z3nOOTN7ICIiIiIiImJtkGovTOxX8ViMhJonTjuwAGHnEiM3P08ue0ay1X6OoPgScMfrar8yGAFSKBK1aVLV5DA4popMX/tcMmFV6knAgTdU0hCmVP2JZotApghH/5iU2RDqcmfwTZVGGKt1Q2qBwNGrp+T9GtfhzK63VBoaU7wyxq6clHdrdXNHAYcOLomnls5q4FzgwOUTciaATo7YCjh0SKVEMVMnn19HnjUWGZ49qT9atzscTFc/wKlLEsRIA4d139giU/KgSko7Py0fUBVnNXBZGWyaPSY5NGKxQKODkeYyvhWkAK19oWFzIGks/cPA/PKapSywL5hcViwW2GaQVGXlSmts5LKhSKIZi4AiJJrVhcUgrvue1j7Q4tRNRQgCNqv5YQZk3di5cL2MOmpS1o1dEGlaQrPAZqUWHy3qAwPSWlG4BsZRtQs//yxs7tXdHO88yMPP1+B+3vs162LET3yjRt3OUYqcFJktdJI7PLz6vNm3BT6zFd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q3IdVn44qcZRHAncwgZhoA8GtrmfIzC2ve/xVlKrjss/nlRp1fj7Z3kmscW0RluEse1Pr9yHy9PE5qNJlWoT0kjzDm/K2ffCysAiQna+yIEd26zb6fmaGX4yqVLSzgiKUWX+/KkegqnWfFMP7N0FQBYhg2K6f6vzxmVVT63Hp1S8E+IsNM+sJR6Hl4bI9m9Zuy1FIyIiIiIiIrzyPx3JLklkX69sAAAAAElFTkSuQmCC",
871
- width: "20",
872
- height: "20",
873
- alt: ""
874
- }, null, -1), S("span", null, P(F(h)("SOURCE_PUBLISH.SHOW_RECALL_KNOWLEDGE")), 1)]), w(F(W), {
875
- modelValue: A.value.showKnowledge,
876
- "onUpdate:modelValue": n[3] ||= (e) => A.value.showKnowledge = e,
877
- "active-value": 1,
878
- "inactive-value": 0
879
- }, null, 8, ["modelValue"])])]),
880
- _: 1
881
- })]),
882
- _: 1
883
- })) : b("", !0),
884
- e.isRepublish ? b("", !0) : (D(), y(X, { key: 4 }, {
885
- default: I(() => [n[8] ||= S("span", { class: "publish-container__required" }, "*", -1), C(P(F(h)("SOURCE_PUBLISH.PUBLISH_SETTING")), 1)]),
886
- _: 1
887
- })),
888
- w(Z, null, {
889
- default: I(() => [w(F(z), { prop: "selectedData" }, {
890
- default: I(() => [w(Re, {
891
- ref_key: "publishSettingsRef",
892
- ref: r,
893
- "source-type": f.value,
894
- "channel-management": G.value,
895
- modelValue: A.value.selectedData,
896
- "onUpdate:modelValue": n[4] ||= (e) => A.value.selectedData = e,
897
- "is-backend-system": e.isBackendSystem,
898
- disabled: e.disabled,
899
- "auth-type": m.value,
900
- onValidateField: N
901
- }, null, 8, [
902
- "source-type",
903
- "channel-management",
904
- "modelValue",
905
- "is-backend-system",
906
- "disabled",
907
- "auth-type"
908
- ])]),
909
- _: 1
910
- })]),
911
- _: 1
912
- })
913
- ]),
914
- _: 1
915
- }, 8, [
916
- "model",
917
- "rules",
918
- "disabled"
919
- ])], 2)), [[a, d.value]]);
920
- };
921
- }
922
- }, [["__scopeId", "data-v-d4f86cbe"]]), We = () => {
923
- let { t: e } = t();
924
- return {
925
- serviceType: [{
926
- get label() {
927
- return e("COMMON_DICT.SERVICE_TYPE.PRIVATE");
928
- },
929
- value: h.PRIVATE
930
- }, {
931
- get label() {
932
- return e("COMMON_DICT.SERVICE_TYPE.DEVELOPER");
933
- },
934
- value: h.DEVELOPER
935
- }],
936
- serviceStatus: [{
937
- get label() {
938
- return e("COMMON_DICT.SERVICE_STATUS.IN_CALL");
939
- },
940
- value: "IN_CALL"
941
- }, {
942
- get label() {
943
- return e("COMMON_DICT.SERVICE_STATUS.NO_CONFIG");
944
- },
945
- value: "NO_CONFIG"
946
- }]
947
- };
948
- }, Ge = () => {
949
- let { getStoreDetailType: e } = te(), { t: n } = t(), r = O([]), i = O([]);
950
- return {
951
- storeDetailType: r,
952
- allStoreDetailType: i,
953
- fetchStoreDetailType: async () => {
954
- await e().then((e) => {
955
- let t = e?.data?.map((e) => ({
956
- label: e.desc,
957
- value: String(e.code)
958
- })), a = {
959
- value: "0",
960
- label: n("STOREDETAILTYPE_STORECONTENTLAYOUT.LABEL_ALL")
961
- };
962
- r.value = t, i.value = [a, ...t];
963
- });
964
- }
965
- };
966
- }, Ke = e(Ue);
967
- //#endregion
968
- 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 };