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,972 +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.TaUlPTYL.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: {
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 ? (V.warning(a("MESSAGE_REMIND.SELECT_VISIBLE_RANGE")), {
125
- isValid: !1,
126
- data: null
127
- }) : {
128
- isValid: !0,
129
- data: {
130
- ...e,
131
- openStatus: s.detail.openStatus ?? 0
132
- }
133
- };
134
- } }), (t, n) => (D(), x("div", Q, [e.showAvailableRange ? (D(), y(F(r), {
135
- key: 0,
136
- "all-visible": e.detail.allVisible,
137
- "model-value": e.detail.visibleScope,
138
- class: ie(["pd-t-16", { "pd-b-16": !e.showPermissionSetting }]),
139
- ref_key: "availableRangeSettingRef",
140
- ref: l,
141
- "onUpdate:allVisible": d,
142
- "onUpdate:modelValue": f
143
- }, null, 8, [
144
- "all-visible",
145
- "model-value",
146
- "class"
147
- ])) : b("", !0), e.showPermissionSetting ? (D(), x("div", be, [S("div", $, [
148
- n[0] ||= S("span", {
149
- class: "mg-r-2",
150
- style: { color: "var(--el-color-danger)" }
151
- }, "*", -1),
152
- C(" " + P(F(a)("PUTRESOURCEONSHELFDIALOG_TEXT.RESOURCE_PERMISSION_SETTING")) + " ", 1),
153
- w(F(K), {
154
- content: F(a)("PUTRESOURCEONSHELFDIALOG_TEXT.RESOURCE_PERMISSION_SETTING_TOOLTIP"),
155
- placement: "top"
156
- }, {
157
- default: I(() => [w(F(B), {
158
- class: "mg-l-4",
159
- size: "14px"
160
- }, {
161
- default: I(() => [w(F(q))]),
162
- _: 1
163
- })]),
164
- _: 1
165
- }, 8, ["content"])
166
- ]), S("div", xe, [w(F(R), {
167
- "model-value": e.detail.openStatus,
168
- "onUpdate:modelValue": u,
169
- "true-value": F(o).TRUE,
170
- "false-value": F(o).FALSE,
171
- class: "mg-r-0"
172
- }, {
173
- default: I(() => [S("div", Se, P(F(a)("PUTRESOURCEONSHELFDIALOG_TEXT.FREE_RESOURCE")), 1)]),
174
- _: 1
175
- }, 8, [
176
- "model-value",
177
- "true-value",
178
- "false-value"
179
- ]), S("span", Ce, P(F(a)("PUTRESOURCEONSHELFDIALOG_TEXT.FREE_RESOURCE_MCPKEY")), 1)])])) : b("", !0)]));
180
- }
181
- }, [["__scopeId", "data-v-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 === F(c).FEISHU_WEB ? (D(), y(F(K), {
190
- key: 0,
191
- placement: "top"
192
- }, {
193
- content: I(() => [C(P(F(n)("SOURCE_PUBLISH.FEISHU_WEB_TOOLTIP")), 1)]),
194
- default: I(() => [w(F(B), {
195
- size: "14px",
196
- color: "#999",
197
- style: { "margin-left": "5px" }
198
- }, {
199
- default: I(() => [w(F(q))]),
200
- _: 1
201
- })]),
202
- _: 1
203
- })) : b("", !0);
204
- }
205
- }, Ee = {
206
- __name: "ApiTooltip",
207
- props: {
208
- channelType: {
209
- type: [String, Number],
210
- required: !0
211
- },
212
- isAuth: {
213
- type: Boolean,
214
- required: !0
215
- }
216
- },
217
- setup(e) {
218
- let { t: n } = t();
219
- return (t, r) => F(p).includes(e.channelType) ? (D(), y(F(K), {
220
- key: 0,
221
- placement: "top"
222
- }, {
223
- content: I(() => [C(P(e.isAuth ? F(n)("SOURCE_PUBLISH.PUBLISH_AUTHORIZE_MSG") || "请先完成授权" : F(n)("SOURCE_PUBLISH.PUBLISH_ACCESS_TOKEN_MSG") || "调用需要创建访问凭证"), 1)]),
224
- default: I(() => [w(F(B), {
225
- size: "14px",
226
- color: "#999",
227
- style: { "margin-left": "5px" }
228
- }, {
229
- default: I(() => [w(F(q))]),
230
- _: 1
231
- })]),
232
- _: 1
233
- })) : b("", !0);
234
- }
235
- }, De = { class: "publish-settings" }, Oe = { class: "channel-name flex items-center overflow-hidden w-full" }, ke = { class: "channel-title flex-1 overflow-hidden" }, Ae = { class: "channel-title__name" }, je = { class: "channel-title__desc" }, Me = {
236
- key: 0,
237
- class: "expand-content"
238
- }, Ne = { class: "select-label" }, Pe = { class: "select-label" }, Fe = { class: "select-label" }, Ie = { class: "action-container" }, Le = { class: "select-label" }, Re = /* @__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: ie } = te(), E = O(null), A = O(null), j = O(!1), M = O(""), N = O({}), { t: L } = t(), se = O([]), R = v(() => {
271
- let e = m(g.sourceType, g.channelManagement) || [];
272
- return g.isBackendSystem ? e.filter((e) => e.channelType !== "3") : e;
273
- }), B = (e) => se.value?.find((t) => t.id === e.id)?.id ? l.PUBLISHED : l.UNPUBLISHED, ue = { bakInt: [{
274
- required: !0,
275
- trigger: "change"
276
- }] }, W = v(() => [
277
- {
278
- type: "selection",
279
- selectable: (e) => g.disabled || e.id == c.AIBox ? !1 : p.includes(e.id) ? j.value : !0,
280
- show: !g.isBackendSystem
281
- },
282
- {
283
- label: L("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: L("COMMON_HOOKS.SERVICE_TYPE_ENUMLIST.LABEL_1") || "专享服务",
316
- value: "PRIVATE"
317
- }, {
318
- label: L("COMMON_HOOKS.SERVICE_TYPE_ENUMLIST.LABEL_2") || "开发者计算",
319
- value: "DEVELOPER"
320
- }], q = O(!1), Y = O([]), me = (e) => {
321
- if (se.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 = R.value.find((e) => e.id === c.H5);
328
- if (e) {
329
- q.value = !0, V.warning(L("SOURCE_PUBLISH.FEISHU_H5_LINKAGE_SELECT")), T(() => {
330
- E.value?.handleToggleRowSelection(e, !0);
331
- });
332
- return;
333
- }
334
- }
335
- if (o && t) {
336
- let e = R.value.find((e) => e.id === c.FEISHU_WEB);
337
- if (e) {
338
- q.value = !0, V.warning(L("SOURCE_PUBLISH.H5_FEISHU_LINKAGE_DESELECT")), T(() => {
339
- E.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 = B(e);
347
- E.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 ie();
352
- console.log(e, "res"), j.value = e.data || !1;
353
- }, _e = (e, t) => {
354
- t && (N.value.bakInt = t.bakInt, M.value = t.serviceType, Q.value = t.currency);
355
- let n = R.value.filter((t) => e.includes(t.id));
356
- n.forEach((e) => {
357
- E.value?.handleToggleRowSelection(e, !0);
358
- }), T(() => {
359
- me(n);
360
- });
361
- }, ve = () => "no-expand", Z = () => {
362
- f.push({ name: "ApiManage" });
363
- }, Q = O(""), be = O([]), $ = O(!1);
364
- return oe(() => 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
- }), ae(() => {
375
- ge();
376
- }), n({
377
- get bakInt() {
378
- return N.value.bakInt;
379
- },
380
- serviceType: M,
381
- currency: Q,
382
- channels: R,
383
- categoryForm: N,
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 () => A.value ? (A.value.scrollToField("bakInt"), A.value.validate().catch(() => (V.warning(L("SOURCE_PUBLISH.PUBLISH_CATEGORY_MSG")), Promise.reject(!1)))) : !0
394
- }), (t, n) => (D(), x("div", De, [w(ee, {
395
- columns: W.value,
396
- data: R.value,
397
- "on-row-key": (e) => e.id,
398
- total: R.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: E
408
- }, {
409
- name: I(({ 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(P(t.name(e.sourceType)) + " ", 1),
414
- w(Ee, {
415
- "channel-type": t.id,
416
- "is-auth": j.value
417
- }, null, 8, ["channel-type", "is-auth"]),
418
- w(Te, { "channel-type": t.id }, null, 8, ["channel-type"])
419
- ]), S("p", je, P(t.description), 1)])])]),
420
- expand: I(({ row: r }) => [r.id === F(c).PLUGIN_STORE ? (D(), x("div", Me, [
421
- w(F(U), {
422
- modelValue: N.value.bakInt,
423
- "onUpdate:modelValue": n[0] ||= (e) => N.value.bakInt = e,
424
- placeholder: F(L)("SOURCE_PUBLISH.DEFAULT_SELECT_MSG") || "请选择",
425
- style: { width: "200px" },
426
- disabled: e.disabled
427
- }, {
428
- prefix: I(() => [S("div", Ne, P(F(L)("SOURCE_PUBLISH.CATEGORY") || "分类"), 1), n[4] ||= S("div", { class: "divider" }, null, -1)]),
429
- default: I(() => [(D(!0), x(_, null, k(F(o), (e) => (D(), y(F(H), {
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" ? (D(), y(F(U), {
441
- key: 0,
442
- modelValue: M.value,
443
- "onUpdate:modelValue": n[1] ||= (e) => M.value = e,
444
- placeholder: F(L)("SOURCE_PUBLISH.DEFAULT_SELECT_MSG") || "请选择",
445
- style: { width: "200px" },
446
- disabled: e.disabled
447
- }, {
448
- prefix: I(() => [S("div", Pe, P(F(L)("SOURCE_PUBLISH.SERVICE_TYPE") || "服务类型"), 1), n[5] ||= S("div", { class: "divider" }, null, -1)]),
449
- default: I(() => [(D(), x(_, null, k(K, (e) => w(F(H), {
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
- M.value === t.q.CURRENCY ? (D(), y(F(de), {
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: I(() => [S("div", Fe, P(F(L)("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
- F(c).FEISHU_WEB,
474
- F(c).AGENT_STORE,
475
- F(c).MCP_STORE
476
- ].includes(r.id) ? (D(), y(we, {
477
- key: 1,
478
- "show-permission-setting": r.id === F(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: I(({ row: e }) => [F(u).includes(e.id) ? (D(), y(F(G), {
492
- key: 0,
493
- type: "success"
494
- }, {
495
- default: I(() => [C(P(F(L)("SOURCE_PUBLISH.PUBLISH_AUTHORIZE_STATUS") || "已授权"), 1)]),
496
- _: 1
497
- })) : F(p).includes(e.id) ? (D(), y(F(G), {
498
- key: 1,
499
- type: j.value ? "success" : "info"
500
- }, {
501
- default: I(() => [C(P(j.value ? F(L)("SOURCE_PUBLISH.PUBLISH_AUTHORIZE_STATUS") || "已授权" : F(L)("SOURCE_PUBLISH.PUBLISH_UNAUTHORIZE_STATUS") || "未授权"), 1)]),
502
- _: 1
503
- }, 8, ["type"])) : b("", !0)]),
504
- inActive: I(({ row: t }) => [w(F(U), {
505
- "model-value": B(t),
506
- disabled: e.disabled,
507
- onChange: (e) => he(t)
508
- }, {
509
- default: I(() => [(D(!0), x(_, null, k(F(a), (e) => (D(), y(F(H), {
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: I(({ row: t }) => [S("div", Ie, [F(p).includes(t.id) && !e.isBackendSystem ? (D(), y(F(ce), {
521
- key: 0,
522
- type: "primary",
523
- link: "",
524
- onClick: (e) => Z(t)
525
- }, {
526
- default: I(() => [C(P(F(L)("SOURCE_PUBLISH.CONFIG") || "配置"), 1)]),
527
- _: 1
528
- }, 8, ["onClick"])) : b("", !0), F(s).slice(0, 3).includes(t.id) && e.sourceType != F(J).PLUGIN && $.value ? (D(), y(F(le), {
529
- key: 1,
530
- ref_key: "categoryFormRef",
531
- ref: A,
532
- model: N.value,
533
- rules: ue
534
- }, {
535
- default: I(() => [w(F(z), { prop: "bakInt" }, {
536
- default: I(() => [w(F(U), {
537
- modelValue: N.value.bakInt,
538
- "onUpdate:modelValue": n[3] ||= (e) => N.value.bakInt = e,
539
- placeholder: F(L)("SOURCE_PUBLISH.DEFAULT_SELECT_MSG") || "请选择",
540
- style: { width: "150px" },
541
- disabled: e.disabled
542
- }, {
543
- prefix: I(() => [S("div", Le, P(F(L)("SOURCE_PUBLISH.CATEGORY") || "分类"), 1), n[7] ||= S("div", { class: "divider" }, null, -1)]),
544
- default: I(() => [(D(!0), x(_, null, k(F(o), (e) => (D(), y(F(H), {
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 = "feishu", Ue = /* @__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 = 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();
618
- function ee() {
619
- try {
620
- let e = typeof sessionStorage < "u" ? sessionStorage.getItem("userInfo") : null;
621
- return e ? JSON.parse(e)?.loginType === He : !1;
622
- } catch {
623
- return !1;
624
- }
625
- }
626
- function _(e) {
627
- return Array.isArray(e) ? e.some((e) => String(e.channelType) === String(c.FEISHU_WEB)) : !1;
628
- }
629
- let v = e, { sourcePublish: ne, checkVersion: re, getPublishVersionDetail: E, sourceRePublish: k } = te(), A = O({
630
- versionNumber: "0.0.1",
631
- selectedData: [],
632
- showExec: 1
633
- }), M = O({
634
- versionNumber: [
635
- {
636
- required: !0,
637
- message: h("SOURCE_PUBLISH.VERSION_NUMBER_MSG") || "请输入版本号",
638
- trigger: "blur"
639
- },
640
- {
641
- pattern: /^\d+\.\d+\.\d+$/,
642
- message: "版本号格式必须为数字.数字.数字,如:1.0.0",
643
- trigger: "blur"
644
- },
645
- {
646
- validator: async (e, t, n) => {
647
- if (u.value) return;
648
- u.value = !0;
649
- let { data: r } = await re({
650
- sourceType: f.value,
651
- sourceId: p.value,
652
- versionNumber: A.value.versionNumber
653
- }).finally(() => {
654
- u.value = !1;
655
- });
656
- if (r) {
657
- let e = h("SOURCE_PUBLISH.VERSION_NUMBER_EXIST_MSG") || "版本号已存在";
658
- n(Error(e));
659
- } else n();
660
- },
661
- trigger: "blur"
662
- }
663
- ],
664
- selectedData: [{
665
- required: !v.isBackendSystem,
666
- message: h("SOURCE_PUBLISH.PUBLISH_CHANNEL_MSG") || "请至少选择一个发布渠道",
667
- trigger: "change"
668
- }, {
669
- validator: (e, t, n) => {
670
- if (A.value.selectedData.length === 0) {
671
- v.isBackendSystem && n();
672
- let e = h("SOURCE_PUBLISH.PUBLISH_CHANNEL_MSG") || "请至少选择一个发布渠道";
673
- n(Error(e));
674
- } else n();
675
- },
676
- trigger: "change"
677
- }]
678
- }), N = () => {
679
- i.value?.validateField("selectedData");
680
- }, oe = (e) => {
681
- let t = e.replace(/[^0-9.]/g, ""), n = t.split(".");
682
- n.length > 3 ? A.value.versionNumber = n.slice(0, 3).join(".") : A.value.versionNumber = t;
683
- }, R = async () => {
684
- B(() => {
685
- let e = window.history.state;
686
- e && o.replace({
687
- path: e.back,
688
- query: {
689
- active: "publish",
690
- from: a.query.from
691
- }
692
- });
693
- });
694
- }, B = async (e) => {
695
- let t = await H();
696
- if (!t) return;
697
- if (_(t.channels) && !ee()) {
698
- V.warning(h("SOURCE_PUBLISH.FEISHU_LOGIN_CANNOT_PUBLISH"));
699
- return;
700
- }
701
- l.value = !0;
702
- let n = v.isRepublish ? k : ne;
703
- try {
704
- let { code: r } = await n(t);
705
- r === 0 && typeof e == "function" && e();
706
- } finally {
707
- l.value = !1;
708
- }
709
- }, de = (e) => {
710
- G.value, G.value.forEach((t) => {
711
- e.find((e) => e.channelType === t.channelType) || e.push({
712
- channelType: t.channelType,
713
- inActive: 0,
714
- allVisible: t.allVisible || !1,
715
- visibleScope: t.visibleScope || null
716
- });
717
- });
718
- }, H = async () => {
719
- if (await i.value.validate()) {
720
- let e = {}, t = [];
721
- for (let e of A.value.selectedData) {
722
- let n = { channelType: Number(e.id) }, i = [
723
- c.FEISHU_WEB,
724
- c.AGENT_STORE,
725
- c.MCP_STORE
726
- ], a = r.value.getVisibleRangeData(e.id);
727
- if (i.includes(e.id) && !a) return !1;
728
- 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);
729
- }
730
- if (v.isBackendSystem) {
731
- let e = Number(c.AIBox);
732
- t.some((t) => t.channelType === e) || t.push({ channelType: e });
733
- }
734
- v.isRepublish && de(t), v.isRepublish ? (t.forEach((e) => {
735
- e.visibleScope ||= null, e.allVisible ||= !1, s.includes((e.channelType || "").toString()) && (e.bakInt = r.value.bakInt);
736
- }), e = {
737
- channels: t,
738
- bnid: v.rowBnid,
739
- sourceType: f.value,
740
- sourceId: p.value,
741
- serviceType: "2"
742
- }) : e = {
743
- ...A.value,
744
- channels: t,
745
- sourceType: f.value,
746
- sourceId: p.value,
747
- workspaceBnid: v.businessSpace || ""
748
- }, f.value == J.WORKFLOW && (e.forcePublish = !0);
749
- let n = !1, i = A.value.selectedData.map((e) => e.id);
750
- if (n = i.find((e) => [
751
- c.AGENT_STORE,
752
- c.WORKFLOW_STORE,
753
- c.PLUGIN_STORE,
754
- c.MCP_STORE
755
- ].includes(e)), n) {
756
- if (await r.value?.validateCategory?.() === !1) return !1;
757
- if (e.bakInt = r.value.bakInt, i.includes(c.PLUGIN_STORE) && m.value == "1" && (e.serviceType = r.value.serviceType, !e.serviceType)) {
758
- let e = h("SOURCE_PUBLISH.PUBLISH_SERVICE_TYPE_MSG") || "请选择服务类型";
759
- return V.warning(e), !1;
760
- }
761
- }
762
- return e.official = v.isOfficialRelease, delete e.selectedData, e;
763
- } else return console.log("error submit!"), !1;
764
- }, U = O({}), G = O([]), K = async () => {
765
- d.value = !0;
766
- let { data: e } = await E(f.value, p.value);
767
- if (d.value = !1, e) {
768
- let t = e.versionNumber.split(".");
769
- 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 || "");
770
- }
771
- G.value = e?.channels || [], T(() => {
772
- let t = [], n = {};
773
- if (e?.channels.forEach((e) => {
774
- 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);
775
- }), t.length == 0) t = f.value == J.AGENT ? [c.AGENT_STORE, c.AIBox] : [c.AIBox];
776
- else {
777
- let e = t.find((e) => e == c.AIBox);
778
- f.value == J.AGENT && !e && t.push(c.AIBox);
779
- }
780
- r.value?.handleToggleRowSelection(t, n);
781
- });
782
- };
783
- return ae(() => {
784
- console.log("props", v), f.value = v.propsSourceType, m.value = v.propsAuthType, p.value = v.propsSourceBnid, K();
785
- }), n({
786
- handleSourcePublish: B,
787
- publishData: U,
788
- submitLoading: l
789
- }), (t, n) => {
790
- let a = j("loading");
791
- return L((D(), x("div", {
792
- class: ie(["publish-container", e.isBackendSystem ? "backend-system" : ""]),
793
- id: "source-publish-container"
794
- }, [e.isBackendSystem ? b("", !0) : (D(), y(g, {
795
- key: 0,
796
- "back-bar-style": "#f7f8fa"
797
- }, {
798
- default: I(() => [S("div", ze, [S("span", null, P(F(h)("SOURCE_PUBLISH.PUBLISH") || "发布"), 1), w(F(ce), {
799
- type: "primary",
800
- class: "publish-container__sure",
801
- onClick: R,
802
- loading: l.value,
803
- disabled: e.disabled
804
- }, {
805
- default: I(() => [C(P(F(h)("SOURCE_PUBLISH.SURE_PUBLISH") || "确认发布"), 1)]),
806
- _: 1
807
- }, 8, ["loading", "disabled"])])]),
808
- _: 1
809
- })), w(F(le), {
810
- ref_key: "formRef",
811
- ref: i,
812
- model: A.value,
813
- "label-width": "80px",
814
- class: "publish-container__form",
815
- rules: M.value,
816
- "label-position": "top",
817
- disabled: e.disabled,
818
- onSubmit: n[5] ||= se(() => {}, ["prevent"])
819
- }, {
820
- default: I(() => [
821
- e.isRepublish ? b("", !0) : (D(), y(X, { key: 0 }, {
822
- default: I(() => [C(P(F(h)("SOURCE_PUBLISH.PUBLISH_RECORD") || "发布记录"), 1)]),
823
- _: 1
824
- })),
825
- e.isRepublish ? b("", !0) : (D(), y(Z, { key: 1 }, {
826
- default: I(() => [w(F(z), {
827
- label: F(h)("SOURCE_PUBLISH.VERSION_NUMBER") || "版本号",
828
- prop: "versionNumber"
829
- }, {
830
- default: I(() => [w(F(ue), {
831
- modelValue: A.value.versionNumber,
832
- "onUpdate:modelValue": n[0] ||= (e) => A.value.versionNumber = e,
833
- placeholder: F(h)("SOURCE_PUBLISH.VERSION_PLACEHOLDER") || "版本示例:0.0.1",
834
- onInput: oe
835
- }, null, 8, ["modelValue", "placeholder"])]),
836
- _: 1
837
- }, 8, ["label"]), w(F(z), {
838
- label: F(h)("SOURCE_PUBLISH.VERSION_DESC") || "版本描述",
839
- prop: "versionDesc"
840
- }, {
841
- default: I(() => [w(F(ue), {
842
- type: "textarea",
843
- modelValue: A.value.versionDesc,
844
- "onUpdate:modelValue": n[1] ||= (e) => A.value.versionDesc = e,
845
- rows: 4,
846
- maxlength: "2000",
847
- "show-word-limit": "",
848
- placeholder: F(h)("SOURCE_PUBLISH.VERSION_DESC") || "版本描述"
849
- }, null, 8, ["modelValue", "placeholder"])]),
850
- _: 1
851
- }, 8, ["label"])]),
852
- _: 1
853
- })),
854
- e.showPublishConfig && !e.isRepublish ? (D(), y(X, { key: 2 }, {
855
- default: I(() => [C(P(F(h)("SOURCE_PUBLISH.PUBLISH_CONFIG") || "发布配置"), 1)]),
856
- _: 1
857
- })) : b("", !0),
858
- e.showPublishConfig && !e.isRepublish ? (D(), y(Z, { key: 3 }, {
859
- default: I(() => [w(F(z), { prop: "showExec" }, {
860
- default: I(() => [S("div", Be, [S("p", null, [n[6] ||= S("img", {
861
- src: "data:image/png;base64,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",
862
- width: "20",
863
- height: "20",
864
- alt: ""
865
- }, null, -1), S("span", null, P(F(h)("SOURCE_PUBLISH.SHOW_EXECUTE_PROCESS") || "展示执行过程"), 1)]), w(F(W), {
866
- modelValue: A.value.showExec,
867
- "onUpdate:modelValue": n[2] ||= (e) => A.value.showExec = e,
868
- "active-value": 1,
869
- "inactive-value": 0
870
- }, null, 8, ["modelValue"])])]),
871
- _: 1
872
- }), w(F(z), { prop: "showKnowledge" }, {
873
- default: I(() => [S("div", Ve, [S("p", null, [n[7] ||= S("img", {
874
- src: "data:image/png;base64,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",
875
- width: "20",
876
- height: "20",
877
- alt: ""
878
- }, null, -1), S("span", null, P(F(h)("SOURCE_PUBLISH.SHOW_RECALL_KNOWLEDGE") || "展示召回的知识库内容"), 1)]), w(F(W), {
879
- modelValue: A.value.showKnowledge,
880
- "onUpdate:modelValue": n[3] ||= (e) => A.value.showKnowledge = e,
881
- "active-value": 1,
882
- "inactive-value": 0
883
- }, null, 8, ["modelValue"])])]),
884
- _: 1
885
- })]),
886
- _: 1
887
- })) : b("", !0),
888
- e.isRepublish ? b("", !0) : (D(), y(X, { key: 4 }, {
889
- default: I(() => [n[8] ||= S("span", { class: "publish-container__required" }, "*", -1), C(P(F(h)("SOURCE_PUBLISH.PUBLISH_SETTING") || "发布设置"), 1)]),
890
- _: 1
891
- })),
892
- w(Z, null, {
893
- default: I(() => [w(F(z), { prop: "selectedData" }, {
894
- default: I(() => [w(Re, {
895
- ref_key: "publishSettingsRef",
896
- ref: r,
897
- "source-type": f.value,
898
- "channel-management": G.value,
899
- modelValue: A.value.selectedData,
900
- "onUpdate:modelValue": n[4] ||= (e) => A.value.selectedData = e,
901
- "is-backend-system": e.isBackendSystem,
902
- disabled: e.disabled,
903
- "auth-type": m.value,
904
- onValidateField: N
905
- }, null, 8, [
906
- "source-type",
907
- "channel-management",
908
- "modelValue",
909
- "is-backend-system",
910
- "disabled",
911
- "auth-type"
912
- ])]),
913
- _: 1
914
- })]),
915
- _: 1
916
- })
917
- ]),
918
- _: 1
919
- }, 8, [
920
- "model",
921
- "rules",
922
- "disabled"
923
- ])], 2)), [[a, d.value]]);
924
- };
925
- }
926
- }, [["__scopeId", "data-v-b1dfb898"]]), We = () => {
927
- let { t: e } = t();
928
- return {
929
- serviceType: [{
930
- get label() {
931
- return e("COMMON_DICT.SERVICE_TYPE.PRIVATE");
932
- },
933
- value: h.PRIVATE
934
- }, {
935
- get label() {
936
- return e("COMMON_DICT.SERVICE_TYPE.DEVELOPER");
937
- },
938
- value: h.DEVELOPER
939
- }],
940
- serviceStatus: [{
941
- get label() {
942
- return e("COMMON_DICT.SERVICE_STATUS.IN_CALL");
943
- },
944
- value: "IN_CALL"
945
- }, {
946
- get label() {
947
- return e("COMMON_DICT.SERVICE_STATUS.NO_CONFIG");
948
- },
949
- value: "NO_CONFIG"
950
- }]
951
- };
952
- }, Ge = () => {
953
- let { getStoreDetailType: e } = te(), { t: n } = t(), r = O([]), i = O([]);
954
- return {
955
- storeDetailType: r,
956
- allStoreDetailType: i,
957
- fetchStoreDetailType: async () => {
958
- await e().then((e) => {
959
- let t = e?.data?.map((e) => ({
960
- label: e.desc,
961
- value: String(e.code)
962
- })), a = {
963
- value: "0",
964
- label: n("STOREDETAILTYPE_STORECONTENTLAYOUT.LABEL_ALL")
965
- };
966
- r.value = t, i.value = [a, ...t];
967
- });
968
- }
969
- };
970
- }, Ke = e(Ue);
971
- //#endregion
972
- 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 };