china-mobile-international-custom-components 0.0.39 → 0.0.40
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.
- package/es/ApplicationTypeTag.mjs +4 -4
- package/es/SourcePublish.mjs +746 -758
- package/es/Table.mjs +10 -0
- package/es/assets/ApplicationTypeTag.css +1 -1
- package/es/assets/BackBar.css +1 -0
- package/es/assets/SourcePublish.css +1 -1
- package/es/chunks/BackBar.DwhmSL-a.js +601 -0
- package/es/chunks/i18n.DUrvNBQz.js +4028 -0
- package/es/index.mjs +96 -88
- package/lib/ApplicationTypeTag.js +1 -1
- package/lib/SourcePublish.js +1 -1
- package/lib/Table.js +1 -0
- package/lib/assets/ApplicationTypeTag.css +1 -1
- package/lib/assets/BackBar.css +1 -0
- package/lib/assets/SourcePublish.css +1 -1
- package/lib/chunks/BackBar.CYThcqhK.js +1 -0
- package/lib/chunks/i18n.D-d0yyXi.js +6 -0
- package/lib/index.js +1 -1
- package/package.json +2 -2
package/es/SourcePublish.mjs
CHANGED
|
@@ -1,47 +1,49 @@
|
|
|
1
|
-
import { w as
|
|
2
|
-
import { createElementBlock as
|
|
3
|
-
import { f as
|
|
4
|
-
import { useRouter as
|
|
5
|
-
import { _ as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
import { w as fe } from "./chunks/index.bCzIhWFw.js";
|
|
2
|
+
import { createElementBlock as B, openBlock as T, renderSlot as Oe, shallowRef as ge, ref as R, onMounted as re, normalizeStyle as me, createVNode as u, unref as e, withCtx as s, createBlock as L, resolveDynamicComponent as Ue, resolveComponent as Pe, createCommentVNode as b, normalizeClass as Ne, createElementVNode as c, createTextVNode as M, toDisplayString as f, getCurrentInstance as he, computed as ce, watch as Le, Fragment as ee, renderList as te, nextTick as _e, withModifiers as be } from "vue";
|
|
3
|
+
import { f as o, u as q } from "./chunks/i18n.DUrvNBQz.js";
|
|
4
|
+
import { useRouter as Ie, useRoute as Ae } from "vue-router";
|
|
5
|
+
import { _ as k } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
|
|
6
|
+
import { ElIcon as j, ElTooltip as ue, ElCheckbox as ye, ElButton as ve, ElSelect as le, ElOption as ne, ElTag as Ee, ElInputNumber as Be, ElForm as Me, ElFormItem as W, ElInput as de, ElSwitch as Te, ElMessage as Se } from "element-plus";
|
|
7
|
+
import { g as He, A as Ve } from "./chunks/index.Doax01RQ.js";
|
|
8
|
+
import { S as V } from "./chunks/config.DE5PZU2F.js";
|
|
9
|
+
import { P as Fe } from "./chunks/index.CSPp4g5C.js";
|
|
10
|
+
import { IconTip as Ce } from "color-message-aibox-vue";
|
|
11
|
+
import { _ as De, a as Ge } from "./chunks/BackBar.DwhmSL-a.js";
|
|
12
|
+
import './assets/SourcePublish.css';const xe = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAbeSURBVHic7ZztbxRFHMc/s3vX60FrTynSAi09KIK0aJEY8I32pfFVeYeJ0fIn+BeAfwFvfOE7S2JijDH62kQD7yCK1CAF5OEOigWBwvHUe77xxXDpdXfnbndvr/V6+0muk5md/c3Od3/zsLvTgZCQkJDORXjJvPeoHCmXmUTyGZAARl6G7UxGCDLArJCcyZeYSf8kMm5PdiXg3qNyxIDjUjLt9yrbCSGYWcrxuRshGwq4/2M5JQVf0/6e5pWMkBy7+K34qV6mugJOfCKPIzgR6GW1G5ITs9+IL3SHtQIenJZTSH5szVW1GYIj52ecPdFRwIlpmegySNF5zVZHxqhw4OyMSFsPRJxyb4hyEhmKV0MCwXHgmPWAzQMnp2WiHOPxqlxWm2EKkqe/WumFdg+MM216mh12FJPATG2CTcBIhA8AkCj/dAjj3TD1Phwaa1zi9Xn48ge9ve4ofPoRDGzyWyc99xbhu1/gyfP69XEdwmdYBDSshZoGE6YBpgm68NCYO/EARofg8Jje3uTB1ogHyu6Hh/X18Bya9nHB7oEOmaxs7PZWkU19EDGdj8Vj3mx5JR7Tl+2DEWuCTUDTaCyg4bGPNAx1F50QLe5vBfqyfeDKAxtieLwgQ+jter0ZXhF1yg4Cuwe6KMyr1wiht9tyD6xTdhA4NeGGo5FnDzT0dlstILwUMIhR2OFafTXhZy+8VaBQ1NstlrzZ8kqxBJHg+kAbvprwjQWY/xeGtjTO+9dNmEvr7c6loT8Bgy2Yyiw+hXNza9CEG3lyuQTf/+rN83V2szn4+WxwLcwpjBgta8H+mnDIMr6acMgydg+s7XCXnwHDeDVuIfTAJgn7wCZxnkiHuCZswk0SNuEmsQk4llyLy2hfbAKuxsP9eiIUsElCAZvEJmCr3xCvN0IPbJKOFrA/AVET7i76t9GRAkYj8O4+6O9T8aUcnLng7+14x/WBkQi8tx/6Ni6nbeiGwX64868Pe9aE9eyB0QgcHodXNtqPCfzVvWMEjEbUchQn8bJ5uP84FLAub43qxTt3CUrlgARcj33g+C7Y8po9PZuH3+YgX/Bf73XvgWM7Ydtme3o2D79fhlyhuTqvmYDRiHp11t2lKpHNB1/G2E7Y2m9Pz+bh/JXmxYM1EDBqqg/ywwMr3z1m83BzAe4+DKacfUm9eH9cDUY8WOU+sD+hKub00jYeU+8iX+uFa3eg1MSSjzdH1LzOSi4PF/5urs+zsioeGDFhZNDdUpDBfujdoCpaKnsva+8OjXiFZfGCrGPLBezugok3VOiWng1wYA/MehRxdLtevNlrkC8GX7+WCrh9M+wY1H9nyTxXHtHXYxe4J66E//OaOxF3DMD21+3puYKyEbTnVWlJH2iasGub89wLlCC378E/D1Q81qUmuk4ivr0b5lJKAB3DA0pAp3LmUmp5Xav6dttXYCGa+/XE4Z09evFyBbh4AxYeLp9TKKq0nINIPfGX4sacy6sn3sUb6k1Ls3Wq/VkJtAlv7YfkVv3xhYdqXaHTY1OhCJduwvhO5ZG1dHfB/l3qeK3IQ1tg2GFgKpXVusSqeK0kEAFjUfX/IH0Oz5qgKpS+qx7Y65WRfynimEbE8Z1KmHwRkoPOA0aprGyshngQQB/YuxFGt9krXGUpB1dvqUq7sV0oqX5rX9JuM9YFB/cqkZwGpmqfl82v3jO93QOrf1ws2RwerL80994i3Lqr8nuxWyjB5bSaEDvdGJ14l9Nqxavws/Q0qEXmojqsiPrh+C71JteJclk9TTx94d6eNSyU4FJKTYx15dSWd+WW8jy/5bkOLfjywFd79ZV6tgSphZp5VxN3vFxRzX9oYPn7hZV8Ea7fWQXPc+uBhos7qOvv5u/D/Ufu7bgJK1J1A8+X1CNePKbmmdm8ulmLGSV0UOUF44ENePRUzfO6oipeKKpKPltyd74fHj1RPydWabxwxHka08CVKxKuzUOiV8UXn6p+SBj1z1sXoSsBqcmsCYslePDY+3ltH1pwFLC2M5YyjK8YnBoKaJARkkQ1s9WzOjqu9thagX2NtCAtYcKaHgLCjYAIMprm3vEImLWm2ZtwhVPCYLIatzb9To5XJGewYJ9Im5yujVu9sZPjRbFyyxOn/ABcvSW/7pS9At0iBDN7dohjtnSnzJdTcsQ0uCDDzccAEJB5USF5IGnfkFE7Xly9LacM+PH/1AetVVzCkT3DHra/q3JjXh6XdPYGjBJO7B7ysQFjleu35ZQwOnMLUFnh2KjG86q4mvKlUjJBFyclnTGwCJihwBfJpH3DRYe87kmlZKISZdow+ACYEJCQkKh9VGzDMAOkgQwVTmFyOjnYWLiQkJCQEPgPkazXbvPHCoAAAAAASUVORK5CYII=", ke = "data:image/png;base64,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", we = {}, We = { class: "style-title" };
|
|
13
|
+
function Ye(i, S) {
|
|
14
|
+
return T(), B("div", We, [
|
|
15
|
+
Oe(i.$slots, "default", {}, void 0, !0)
|
|
14
16
|
]);
|
|
15
17
|
}
|
|
16
|
-
const
|
|
17
|
-
function
|
|
18
|
-
return
|
|
19
|
-
|
|
18
|
+
const ae = /* @__PURE__ */ k(we, [["render", Ye], ["__scopeId", "data-v-58195e4c"]]), Ke = {}, Xe = { class: "card-container" };
|
|
19
|
+
function ze(i, S) {
|
|
20
|
+
return T(), B("div", Xe, [
|
|
21
|
+
Oe(i.$slots, "default", {}, void 0, !0)
|
|
20
22
|
]);
|
|
21
23
|
}
|
|
22
|
-
const se = /* @__PURE__ */
|
|
23
|
-
const { $request:
|
|
24
|
+
const se = /* @__PURE__ */ k(Ke, [["render", ze], ["__scopeId", "data-v-d8a76b28"]]), Re = () => {
|
|
25
|
+
const { $request: i, $env: S } = He();
|
|
24
26
|
return {
|
|
25
|
-
sourcePublish: (
|
|
26
|
-
url: `${
|
|
27
|
+
sourcePublish: (I) => i({
|
|
28
|
+
url: `${S.VITE_APP_AIBOX_BASE_URL}/api/v1/skillets/versions/publish`,
|
|
27
29
|
method: "post",
|
|
28
|
-
data:
|
|
30
|
+
data: I
|
|
29
31
|
}),
|
|
30
|
-
getPublishVersionDetail: (
|
|
31
|
-
url: `${
|
|
32
|
+
getPublishVersionDetail: (I, g) => i({
|
|
33
|
+
url: `${S.VITE_APP_AIBOX_BASE_URL}/api/v1/skillets/versions/${I}/${g}`,
|
|
32
34
|
method: "get"
|
|
33
35
|
}),
|
|
34
|
-
checkVersion: (
|
|
35
|
-
url: `${
|
|
36
|
+
checkVersion: (I) => i({
|
|
37
|
+
url: `${S.VITE_APP_AIBOX_BASE_URL}/api/v1/skillets/versions/exists`,
|
|
36
38
|
method: "get",
|
|
37
|
-
params:
|
|
39
|
+
params: I
|
|
38
40
|
}),
|
|
39
|
-
checkToken: () =>
|
|
40
|
-
url: `${
|
|
41
|
+
checkToken: () => i({
|
|
42
|
+
url: `${S.VITE_APP_AUTH_BASE_URL}/api/v1/api/check-token`,
|
|
41
43
|
method: "post"
|
|
42
44
|
})
|
|
43
45
|
};
|
|
44
|
-
},
|
|
46
|
+
}, t = {
|
|
45
47
|
// 智能体
|
|
46
48
|
H5: "1",
|
|
47
49
|
API: "2",
|
|
@@ -61,117 +63,117 @@ const se = /* @__PURE__ */ K(Ve, [["render", Fe], ["__scopeId", "data-v-d8a76b28
|
|
|
61
63
|
// MCP
|
|
62
64
|
MCP_STORE: "10"
|
|
63
65
|
// 组件广场
|
|
64
|
-
},
|
|
66
|
+
}, qe = {
|
|
65
67
|
// 智能体渠道
|
|
66
|
-
[
|
|
67
|
-
id:
|
|
68
|
+
[t.H5]: {
|
|
69
|
+
id: t.H5,
|
|
68
70
|
name: () => "H5",
|
|
69
71
|
get description() {
|
|
70
|
-
return
|
|
72
|
+
return o("COMMON_DICT.ENUMS.DESCRIPTION_H5") || "可通过PC或移动设备立即开始对话";
|
|
71
73
|
},
|
|
72
74
|
visible: !0
|
|
73
75
|
// 默认显示
|
|
74
76
|
},
|
|
75
|
-
[
|
|
76
|
-
id:
|
|
77
|
+
[t.API]: {
|
|
78
|
+
id: t.API,
|
|
77
79
|
name: () => "API",
|
|
78
80
|
get description() {
|
|
79
|
-
return
|
|
81
|
+
return o("COMMON_DICT.ENUMS.DESCRIPTION_API") || "可通过API方式快速集成到你的软件";
|
|
80
82
|
},
|
|
81
83
|
visible: !0
|
|
82
84
|
},
|
|
83
|
-
[
|
|
84
|
-
id:
|
|
85
|
-
name: (
|
|
85
|
+
[t.AIBox]: {
|
|
86
|
+
id: t.AIBox,
|
|
87
|
+
name: (i) => i === V.AGENT ? o("COMMON_DICT.ENUMS.NAME_MY_AI") : o("COMMON_DICT.ENUMS.NAME_MY_ZJ"),
|
|
86
88
|
description: "可应用于你的智能体",
|
|
87
89
|
visible: !0
|
|
88
90
|
},
|
|
89
|
-
[
|
|
90
|
-
id:
|
|
91
|
+
[t.AGENT_STORE]: {
|
|
92
|
+
id: t.AGENT_STORE,
|
|
91
93
|
get name() {
|
|
92
|
-
return () =>
|
|
94
|
+
return () => o("COMMON_DICT.ENUMS.NAME_ZNTGC") || "智能体广场";
|
|
93
95
|
},
|
|
94
96
|
get description() {
|
|
95
|
-
return
|
|
97
|
+
return o("COMMON_DICT.ENUMS.DESCRIPTION_ZNTGC") || "分享到智能体广场,获得更多曝光";
|
|
96
98
|
},
|
|
97
99
|
visible: !0
|
|
98
100
|
// 根据配置决定是否显示
|
|
99
101
|
},
|
|
100
|
-
[
|
|
101
|
-
id:
|
|
102
|
+
[t.FEISHU_WEB]: {
|
|
103
|
+
id: t.FEISHU_WEB,
|
|
102
104
|
get name() {
|
|
103
|
-
return () =>
|
|
105
|
+
return () => o("COMMON_DICT.ENUMS.NAME_WEB") || "飞书网页应用";
|
|
104
106
|
},
|
|
105
107
|
get description() {
|
|
106
|
-
return
|
|
108
|
+
return o("COMMON_DICT.ENUMS.DESCRIPTION_WEB") || "在飞书客户端内访问智能体对话页面";
|
|
107
109
|
},
|
|
108
110
|
visible: !0
|
|
109
111
|
},
|
|
110
112
|
// 工作流渠道
|
|
111
|
-
[
|
|
112
|
-
id:
|
|
113
|
+
[t.WORKFLOW_API]: {
|
|
114
|
+
id: t.WORKFLOW_API,
|
|
113
115
|
name: () => "API",
|
|
114
116
|
get description() {
|
|
115
|
-
return
|
|
117
|
+
return o("COMMON_DICT.ENUMS.DESCRIPTION_API") || "可通过API方式快速集成到你的软件";
|
|
116
118
|
},
|
|
117
119
|
visible: !0
|
|
118
120
|
},
|
|
119
|
-
[
|
|
120
|
-
id:
|
|
121
|
+
[t.WORKFLOW_STORE]: {
|
|
122
|
+
id: t.WORKFLOW_STORE,
|
|
121
123
|
get name() {
|
|
122
|
-
return () =>
|
|
124
|
+
return () => o("COMMON_DICT.ENUMS.NAME_ZJGC") || "组件广场";
|
|
123
125
|
},
|
|
124
126
|
get description() {
|
|
125
|
-
return
|
|
127
|
+
return o("COMMON_DICT.ENUMS.DESCRIPTION_ZJGC") || "分享到组件广场,获得更多曝光";
|
|
126
128
|
},
|
|
127
129
|
visible: !0
|
|
128
130
|
},
|
|
129
131
|
// 插件渠道
|
|
130
|
-
[
|
|
131
|
-
id:
|
|
132
|
+
[t.PLUGIN_API]: {
|
|
133
|
+
id: t.PLUGIN_API,
|
|
132
134
|
name: () => "API",
|
|
133
135
|
get description() {
|
|
134
|
-
return
|
|
136
|
+
return o("COMMON_DICT.ENUMS.DESCRIPTION_API") || "可通过API方式快速集成到你的软件";
|
|
135
137
|
},
|
|
136
138
|
visible: !1
|
|
137
139
|
// 暂时不上
|
|
138
140
|
},
|
|
139
|
-
[
|
|
140
|
-
id:
|
|
141
|
+
[t.PLUGIN_STORE]: {
|
|
142
|
+
id: t.PLUGIN_STORE,
|
|
141
143
|
name: () => "AIBox Store",
|
|
142
144
|
get description() {
|
|
143
|
-
return
|
|
145
|
+
return o("COMMON_DICT.ENUMS.DESCRIPTION_PLUGIN") || "分享到广场,获得更多曝光";
|
|
144
146
|
},
|
|
145
147
|
visible: !1
|
|
146
148
|
// 暂时不上
|
|
147
149
|
},
|
|
148
150
|
// MCP渠道
|
|
149
|
-
[
|
|
150
|
-
id:
|
|
151
|
+
[t.MCP_STORE]: {
|
|
152
|
+
id: t.MCP_STORE,
|
|
151
153
|
get name() {
|
|
152
|
-
return () =>
|
|
154
|
+
return () => o("COMMON_DICT.ENUMS.NAME_ZJGC") || "组件广场";
|
|
153
155
|
},
|
|
154
156
|
get description() {
|
|
155
|
-
return
|
|
157
|
+
return o("COMMON_DICT.ENUMS.DESCRIPTION_ZJGC") || "分享到组件广场,获得更多曝光";
|
|
156
158
|
},
|
|
157
159
|
visible: !0
|
|
158
160
|
}
|
|
159
|
-
},
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
],
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
],
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
],
|
|
161
|
+
}, z = [
|
|
162
|
+
t.API,
|
|
163
|
+
t.WORKFLOW_API,
|
|
164
|
+
t.PLUGIN_API
|
|
165
|
+
], X = [
|
|
166
|
+
t.AGENT_STORE,
|
|
167
|
+
t.WORKFLOW_STORE,
|
|
168
|
+
t.MCP_STORE,
|
|
169
|
+
t.PLUGIN_STORE
|
|
170
|
+
], je = [
|
|
171
|
+
t.H5,
|
|
172
|
+
t.AIBox,
|
|
173
|
+
t.AGENT_STORE,
|
|
174
|
+
t.WORKFLOW_STORE,
|
|
175
|
+
t.MCP_STORE
|
|
176
|
+
], pe = {
|
|
175
177
|
h5: {
|
|
176
178
|
icon: "IconH5",
|
|
177
179
|
iconColor: "var(--el-color-primary)",
|
|
@@ -196,82 +198,80 @@ const se = /* @__PURE__ */ K(Ve, [["render", Fe], ["__scopeId", "data-v-d8a76b28
|
|
|
196
198
|
iconColor: "#EBF5FF",
|
|
197
199
|
backgroundColor: "#EBF5FF"
|
|
198
200
|
}
|
|
199
|
-
},
|
|
200
|
-
[
|
|
201
|
-
[
|
|
202
|
-
[
|
|
203
|
-
[
|
|
204
|
-
[
|
|
205
|
-
[
|
|
206
|
-
[
|
|
207
|
-
[
|
|
208
|
-
[
|
|
209
|
-
[
|
|
210
|
-
},
|
|
201
|
+
}, Ze = {
|
|
202
|
+
[t.H5]: "h5",
|
|
203
|
+
[t.API]: "apikey",
|
|
204
|
+
[t.AIBox]: "aibox",
|
|
205
|
+
[t.WORKFLOW_API]: "apikey",
|
|
206
|
+
[t.AGENT_STORE]: "store",
|
|
207
|
+
[t.WORKFLOW_STORE]: "store",
|
|
208
|
+
[t.PLUGIN_API]: "apikey",
|
|
209
|
+
[t.PLUGIN_STORE]: "store",
|
|
210
|
+
[t.MCP_STORE]: "store",
|
|
211
|
+
[t.FEISHU_WEB]: "feishu"
|
|
212
|
+
}, Je = (i, S) => ({
|
|
211
213
|
// 智能体
|
|
212
|
-
[
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
214
|
+
[V.AGENT]: [
|
|
215
|
+
t.AIBox,
|
|
216
|
+
t.H5,
|
|
217
|
+
t.API,
|
|
218
|
+
t.FEISHU_WEB,
|
|
219
|
+
t.AGENT_STORE
|
|
218
220
|
],
|
|
219
221
|
// 工作流
|
|
220
|
-
[
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
222
|
+
[V.WORKFLOW]: [
|
|
223
|
+
t.AIBox,
|
|
224
|
+
t.WORKFLOW_API,
|
|
225
|
+
t.WORKFLOW_STORE
|
|
224
226
|
],
|
|
225
227
|
// 插件
|
|
226
|
-
[
|
|
227
|
-
|
|
228
|
+
[V.PLUGIN]: [
|
|
229
|
+
t.AIBox
|
|
228
230
|
// 暂时不上API和Store
|
|
229
231
|
// RELEASE_CHANNEL_TYPE.PLUGIN_API,
|
|
230
232
|
// RELEASE_CHANNEL_TYPE.PLUGIN_STORE
|
|
231
233
|
],
|
|
232
234
|
// MCP
|
|
233
|
-
[
|
|
234
|
-
|
|
235
|
-
|
|
235
|
+
[V.MCP]: [
|
|
236
|
+
t.AIBox,
|
|
237
|
+
t.MCP_STORE
|
|
236
238
|
]
|
|
237
|
-
}[
|
|
238
|
-
const
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
...p,
|
|
244
|
-
channelType: String(E)
|
|
239
|
+
}[i] || []).map((O) => {
|
|
240
|
+
const U = qe[O], I = S.find((g) => g.channelType == O);
|
|
241
|
+
return I ? {
|
|
242
|
+
...U,
|
|
243
|
+
...I,
|
|
244
|
+
channelType: String(O)
|
|
245
245
|
} : {
|
|
246
|
-
...
|
|
247
|
-
channelType: String(
|
|
248
|
-
channelStatus:
|
|
246
|
+
...U,
|
|
247
|
+
channelType: String(O),
|
|
248
|
+
channelStatus: Fe.UNPUBLISHED
|
|
249
249
|
};
|
|
250
|
-
}).filter((
|
|
250
|
+
}).filter((O) => (typeof O.visible == "function", O.visible)), oe = {
|
|
251
251
|
TRUE: 1,
|
|
252
252
|
FALSE: 0
|
|
253
|
-
},
|
|
253
|
+
}, ie = {
|
|
254
254
|
// CURRENCY: 'CURRENCY',
|
|
255
255
|
PRIVATE: "PRIVATE",
|
|
256
256
|
DEVELOPER: "DEVELOPER"
|
|
257
|
-
},
|
|
257
|
+
}, kt = [
|
|
258
258
|
// {
|
|
259
259
|
// label: '平台代币',
|
|
260
260
|
// value: serviceTypeMap.CURRENCY
|
|
261
261
|
// },
|
|
262
262
|
{
|
|
263
263
|
get label() {
|
|
264
|
-
return
|
|
264
|
+
return o("COMMON_DICT.SERVICE_TYPE.PRIVATE");
|
|
265
265
|
},
|
|
266
|
-
value:
|
|
266
|
+
value: ie.PRIVATE
|
|
267
267
|
},
|
|
268
268
|
{
|
|
269
269
|
get label() {
|
|
270
|
-
return
|
|
270
|
+
return o("COMMON_DICT.SERVICE_TYPE.DEVELOPER");
|
|
271
271
|
},
|
|
272
|
-
value:
|
|
272
|
+
value: ie.DEVELOPER
|
|
273
273
|
}
|
|
274
|
-
],
|
|
274
|
+
], wt = [
|
|
275
275
|
// {
|
|
276
276
|
// label: '抵扣中', //(服务类型为货币结算且当前色元额度充足)
|
|
277
277
|
// value: 'CURRENCY_USING'
|
|
@@ -282,13 +282,13 @@ const se = /* @__PURE__ */ K(Ve, [["render", Fe], ["__scopeId", "data-v-d8a76b28
|
|
|
282
282
|
// },
|
|
283
283
|
{
|
|
284
284
|
get label() {
|
|
285
|
-
return
|
|
285
|
+
return o("COMMON_DICT.SERVICE_STATUS.IN_CALL");
|
|
286
286
|
},
|
|
287
287
|
value: "IN_CALL"
|
|
288
288
|
},
|
|
289
289
|
{
|
|
290
290
|
get label() {
|
|
291
|
-
return
|
|
291
|
+
return o("COMMON_DICT.SERVICE_STATUS.NO_CONFIG");
|
|
292
292
|
},
|
|
293
293
|
value: "NO_CONFIG"
|
|
294
294
|
}
|
|
@@ -296,120 +296,120 @@ const se = /* @__PURE__ */ K(Ve, [["render", Fe], ["__scopeId", "data-v-d8a76b28
|
|
|
296
296
|
// label: '开发者结算',
|
|
297
297
|
// value: 'DEVELOPER'
|
|
298
298
|
// }
|
|
299
|
-
],
|
|
299
|
+
], D = {
|
|
300
300
|
UP_BUTTOM: {
|
|
301
301
|
get label() {
|
|
302
|
-
return
|
|
302
|
+
return o("UP_DATA.UP_TEXT");
|
|
303
303
|
},
|
|
304
304
|
get sceneWorkFlow() {
|
|
305
|
-
return
|
|
305
|
+
return o("SCENEBUTTOM.SCENE_WORKFLOW");
|
|
306
306
|
},
|
|
307
307
|
get scenePlugin() {
|
|
308
|
-
return
|
|
308
|
+
return o("SCENEBUTTOM.SCENE_PLUGIN");
|
|
309
309
|
},
|
|
310
310
|
get sceneModmcp() {
|
|
311
|
-
return
|
|
311
|
+
return o("SCENEBUTTOM.SCENE_MODMCP");
|
|
312
312
|
},
|
|
313
313
|
get sceneArbitrarily() {
|
|
314
|
-
return
|
|
314
|
+
return o("SCENEBUTTOM.ARBITRARILY");
|
|
315
315
|
},
|
|
316
316
|
get searchText() {
|
|
317
|
-
return
|
|
317
|
+
return o("SCENEBUTTOM.SEARCHTEXT");
|
|
318
318
|
},
|
|
319
319
|
get intellectuAlagent() {
|
|
320
|
-
return
|
|
320
|
+
return o("SCENEBUTTOM.INTELLECTUALAGENT");
|
|
321
321
|
},
|
|
322
322
|
get searchWorkflow() {
|
|
323
|
-
return
|
|
323
|
+
return o("SCENEBUTTOM.WORKFLOW");
|
|
324
324
|
},
|
|
325
325
|
get searchPlugin() {
|
|
326
|
-
return
|
|
326
|
+
return o("SCENEBUTTOM.PLUGIN");
|
|
327
327
|
},
|
|
328
328
|
get searchModmcp() {
|
|
329
|
-
return
|
|
329
|
+
return o("SCENEBUTTOM.MODMCP");
|
|
330
330
|
}
|
|
331
331
|
},
|
|
332
332
|
STOREDETAILTYPE_STORECONTENTLAYOUT: {
|
|
333
333
|
get labelAll() {
|
|
334
|
-
return
|
|
334
|
+
return o("STOREDETAILTYPE_STORECONTENTLAYOUT.LABEL_ALL");
|
|
335
335
|
},
|
|
336
336
|
get labelTextCreation() {
|
|
337
|
-
return
|
|
337
|
+
return o(
|
|
338
338
|
"STOREDETAILTYPE_STORECONTENTLAYOUT.LABEL_TEXT_CREATION"
|
|
339
339
|
);
|
|
340
340
|
},
|
|
341
341
|
get labelEfficiencyTools() {
|
|
342
|
-
return
|
|
342
|
+
return o(
|
|
343
343
|
"STOREDETAILTYPE_STORECONTENTLAYOUT.LABEL_EFFICIENCY_TOOLS"
|
|
344
344
|
);
|
|
345
345
|
},
|
|
346
346
|
get labelMediaEntertainment() {
|
|
347
|
-
return
|
|
347
|
+
return o(
|
|
348
348
|
"STOREDETAILTYPE_STORECONTENTLAYOUT.LABEL_MEDIA_ENTERTAINMENT"
|
|
349
349
|
);
|
|
350
350
|
},
|
|
351
351
|
get labelOfficeHr() {
|
|
352
|
-
return
|
|
352
|
+
return o("STOREDETAILTYPE_STORECONTENTLAYOUT.LABEL_OFFICE_HR");
|
|
353
353
|
},
|
|
354
354
|
get labelGovernmentServices() {
|
|
355
|
-
return
|
|
355
|
+
return o(
|
|
356
356
|
"STOREDETAILTYPE_STORECONTENTLAYOUT.LABEL_GOVERNMENT_SERVICES"
|
|
357
357
|
);
|
|
358
358
|
},
|
|
359
359
|
get labelTravelSightseeing() {
|
|
360
|
-
return
|
|
360
|
+
return o(
|
|
361
361
|
"STOREDETAILTYPE_STORECONTENTLAYOUT.LABEL_TRAVEL_SIGHTSEEING"
|
|
362
362
|
);
|
|
363
363
|
},
|
|
364
364
|
get labelFinancialServices() {
|
|
365
|
-
return
|
|
365
|
+
return o(
|
|
366
366
|
"STOREDETAILTYPE_STORECONTENTLAYOUT.LABEL_FINANCIAL_SERVICES"
|
|
367
367
|
);
|
|
368
368
|
}
|
|
369
369
|
}
|
|
370
|
-
},
|
|
370
|
+
}, Qe = () => [
|
|
371
371
|
// { label: '所有标签', value: '0', icon: 'IconType22' },
|
|
372
372
|
{
|
|
373
|
-
label:
|
|
373
|
+
label: D.STOREDETAILTYPE_STORECONTENTLAYOUT.labelAll,
|
|
374
374
|
value: "0",
|
|
375
375
|
icon: "IconType22"
|
|
376
376
|
},
|
|
377
377
|
{
|
|
378
|
-
label:
|
|
378
|
+
label: D.STOREDETAILTYPE_STORECONTENTLAYOUT.labelTextCreation,
|
|
379
379
|
value: "1",
|
|
380
380
|
icon: "IconWrite"
|
|
381
381
|
},
|
|
382
382
|
{
|
|
383
|
-
label:
|
|
383
|
+
label: D.STOREDETAILTYPE_STORECONTENTLAYOUT.labelEfficiencyTools,
|
|
384
384
|
value: "3",
|
|
385
385
|
icon: "IconEfficiency2"
|
|
386
386
|
},
|
|
387
387
|
{
|
|
388
|
-
label:
|
|
388
|
+
label: D.STOREDETAILTYPE_STORECONTENTLAYOUT.labelMediaEntertainment,
|
|
389
389
|
value: "4",
|
|
390
390
|
icon: "IconVideo"
|
|
391
391
|
},
|
|
392
392
|
{
|
|
393
|
-
label:
|
|
393
|
+
label: D.STOREDETAILTYPE_STORECONTENTLAYOUT.labelOfficeHr,
|
|
394
394
|
value: "5",
|
|
395
395
|
icon: "IconOffice"
|
|
396
396
|
},
|
|
397
397
|
{
|
|
398
|
-
label:
|
|
398
|
+
label: D.STOREDETAILTYPE_STORECONTENTLAYOUT.labelGovernmentServices,
|
|
399
399
|
value: "6",
|
|
400
400
|
icon: "IconGovernment"
|
|
401
401
|
},
|
|
402
402
|
{
|
|
403
|
-
label:
|
|
403
|
+
label: D.STOREDETAILTYPE_STORECONTENTLAYOUT.labelTravelSightseeing,
|
|
404
404
|
value: "7",
|
|
405
405
|
icon: "IconTravel"
|
|
406
406
|
},
|
|
407
407
|
{
|
|
408
|
-
label:
|
|
408
|
+
label: D.STOREDETAILTYPE_STORECONTENTLAYOUT.labelFinancialServices,
|
|
409
409
|
value: "8",
|
|
410
410
|
icon: "IconFinance"
|
|
411
411
|
}
|
|
412
|
-
],
|
|
412
|
+
], Wt = "CMI官方", $e = {
|
|
413
413
|
__name: "PublishIcon",
|
|
414
414
|
props: {
|
|
415
415
|
publishType: {
|
|
@@ -421,48 +421,45 @@ const se = /* @__PURE__ */ K(Ve, [["render", Fe], ["__scopeId", "data-v-d8a76b28
|
|
|
421
421
|
default: 30
|
|
422
422
|
}
|
|
423
423
|
},
|
|
424
|
-
setup(
|
|
425
|
-
const
|
|
426
|
-
const
|
|
427
|
-
return
|
|
428
|
-
...
|
|
429
|
-
icon:
|
|
430
|
-
},
|
|
431
|
-
}, {}),
|
|
432
|
-
return
|
|
433
|
-
const
|
|
434
|
-
|
|
435
|
-
}), (
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
}, 8, ["size", "color"])
|
|
450
|
-
], 4);
|
|
451
|
-
};
|
|
424
|
+
setup(i) {
|
|
425
|
+
const S = i, h = Object.keys(pe).reduce((O, U) => {
|
|
426
|
+
const I = pe[U];
|
|
427
|
+
return O[U] = {
|
|
428
|
+
...I,
|
|
429
|
+
icon: ge(I.icon)
|
|
430
|
+
}, O;
|
|
431
|
+
}, {}), P = R({});
|
|
432
|
+
return re(() => {
|
|
433
|
+
const O = Ze[S.publishType] || "h5";
|
|
434
|
+
P.value = h[O];
|
|
435
|
+
}), (O, U) => (T(), B("div", {
|
|
436
|
+
class: "channel-icon flex items-center justify-center radius-8",
|
|
437
|
+
style: me({ background: P.value?.backgroundColor })
|
|
438
|
+
}, [
|
|
439
|
+
u(e(j), {
|
|
440
|
+
size: i.size,
|
|
441
|
+
color: P.value?.iconColor
|
|
442
|
+
}, {
|
|
443
|
+
default: s(() => [
|
|
444
|
+
(T(), L(Ue(P.value?.icon)))
|
|
445
|
+
]),
|
|
446
|
+
_: 1
|
|
447
|
+
}, 8, ["size", "color"])
|
|
448
|
+
], 4));
|
|
452
449
|
}
|
|
453
|
-
},
|
|
450
|
+
}, et = /* @__PURE__ */ k($e, [["__scopeId", "data-v-197d4379"]]), tt = { class: "permission-setting" }, lt = {
|
|
454
451
|
key: 1,
|
|
455
452
|
class: "flex items-center gap-12 pd-t-16 pd-b-16"
|
|
456
|
-
},
|
|
453
|
+
}, nt = {
|
|
457
454
|
class: "min-w-110 fz-14 text-left flex-shrink-0",
|
|
458
455
|
style: { color: "var(--el-text-color-primary)" }
|
|
459
|
-
},
|
|
456
|
+
}, at = { class: "flex items-center gap-6" }, st = {
|
|
460
457
|
class: "flex flex-col lh-18",
|
|
461
458
|
style: { "align-items": "flex-start" }
|
|
462
|
-
},
|
|
459
|
+
}, ot = {
|
|
463
460
|
class: "fz-12",
|
|
464
461
|
style: { color: "var(--el-text-color-secondary)" }
|
|
465
|
-
},
|
|
462
|
+
}, it = {
|
|
466
463
|
__name: "PermissionSetting",
|
|
467
464
|
props: {
|
|
468
465
|
// 是否显示可见范围设置
|
|
@@ -482,63 +479,63 @@ const se = /* @__PURE__ */ K(Ve, [["render", Fe], ["__scopeId", "data-v-d8a76b28
|
|
|
482
479
|
}
|
|
483
480
|
},
|
|
484
481
|
emits: ["update:detail"],
|
|
485
|
-
setup(
|
|
486
|
-
const { t:
|
|
487
|
-
const
|
|
488
|
-
|
|
489
|
-
},
|
|
490
|
-
const
|
|
491
|
-
|
|
492
|
-
},
|
|
493
|
-
const
|
|
494
|
-
|
|
482
|
+
setup(i, { expose: S, emit: h }) {
|
|
483
|
+
const { t: P } = q(), O = i, U = h, I = R(null), g = (A) => {
|
|
484
|
+
const C = { ...O.detail, openStatus: A };
|
|
485
|
+
U("update:detail", C);
|
|
486
|
+
}, F = (A) => {
|
|
487
|
+
const C = { ...O.detail, allVisible: A };
|
|
488
|
+
U("update:detail", C);
|
|
489
|
+
}, G = (A) => {
|
|
490
|
+
const C = { ...O.detail, visibleScope: A };
|
|
491
|
+
U("update:detail", C);
|
|
495
492
|
};
|
|
496
|
-
return
|
|
493
|
+
return S({
|
|
497
494
|
getSelectedItems: () => {
|
|
498
495
|
let A = {
|
|
499
|
-
openStatus:
|
|
496
|
+
openStatus: O.detail.openStatus || oe.FALSE
|
|
500
497
|
};
|
|
501
|
-
if (
|
|
502
|
-
const
|
|
503
|
-
A.allVisible =
|
|
498
|
+
if (I.value) {
|
|
499
|
+
const C = I.value.getSelectedItems();
|
|
500
|
+
A.allVisible = C.allVisible, A.visibleScope = C.visibleScope;
|
|
504
501
|
}
|
|
505
502
|
return A;
|
|
506
503
|
}
|
|
507
|
-
}), (A,
|
|
508
|
-
const
|
|
509
|
-
return
|
|
510
|
-
|
|
504
|
+
}), (A, C) => {
|
|
505
|
+
const x = Pe("IconTip");
|
|
506
|
+
return T(), B("div", tt, [
|
|
507
|
+
i.showAvailableRange ? (T(), L(e(Ve), {
|
|
511
508
|
key: 0,
|
|
512
|
-
"all-visible":
|
|
513
|
-
"model-value":
|
|
514
|
-
class:
|
|
515
|
-
"pd-b-16": !
|
|
509
|
+
"all-visible": i.detail.allVisible,
|
|
510
|
+
"model-value": i.detail.visibleScope,
|
|
511
|
+
class: Ne(["pd-t-16", {
|
|
512
|
+
"pd-b-16": !i.showPermissionSetting
|
|
516
513
|
}]),
|
|
517
514
|
ref_key: "availableRangeSettingRef",
|
|
518
|
-
ref:
|
|
519
|
-
"onUpdate:allVisible":
|
|
520
|
-
"onUpdate:modelValue":
|
|
521
|
-
}, null, 8, ["all-visible", "model-value", "class"])) :
|
|
522
|
-
|
|
523
|
-
c("div",
|
|
524
|
-
|
|
515
|
+
ref: I,
|
|
516
|
+
"onUpdate:allVisible": F,
|
|
517
|
+
"onUpdate:modelValue": G
|
|
518
|
+
}, null, 8, ["all-visible", "model-value", "class"])) : b("", !0),
|
|
519
|
+
i.showPermissionSetting ? (T(), B("div", lt, [
|
|
520
|
+
c("div", nt, [
|
|
521
|
+
C[0] || (C[0] = c("span", {
|
|
525
522
|
class: "mg-r-2",
|
|
526
523
|
style: { color: "var(--el-color-danger)" }
|
|
527
524
|
}, "*", -1)),
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
content:
|
|
525
|
+
M(" " + f(e(P)("PUTRESOURCEONSHELFDIALOG_TEXT.RESOURCE_PERMISSION_SETTING")) + " ", 1),
|
|
526
|
+
u(e(ue), {
|
|
527
|
+
content: e(P)(
|
|
531
528
|
"PUTRESOURCEONSHELFDIALOG_TEXT.RESOURCE_PERMISSION_SETTING_TOOLTIP"
|
|
532
529
|
),
|
|
533
530
|
placement: "top"
|
|
534
531
|
}, {
|
|
535
532
|
default: s(() => [
|
|
536
|
-
|
|
533
|
+
u(e(j), {
|
|
537
534
|
class: "mg-l-4",
|
|
538
535
|
size: "14px"
|
|
539
536
|
}, {
|
|
540
537
|
default: s(() => [
|
|
541
|
-
|
|
538
|
+
u(x)
|
|
542
539
|
]),
|
|
543
540
|
_: 1
|
|
544
541
|
})
|
|
@@ -546,26 +543,26 @@ const se = /* @__PURE__ */ K(Ve, [["render", Fe], ["__scopeId", "data-v-d8a76b28
|
|
|
546
543
|
_: 1
|
|
547
544
|
}, 8, ["content"])
|
|
548
545
|
]),
|
|
549
|
-
c("div",
|
|
550
|
-
|
|
551
|
-
"model-value":
|
|
552
|
-
"onUpdate:modelValue":
|
|
553
|
-
"true-value":
|
|
554
|
-
"false-value":
|
|
546
|
+
c("div", at, [
|
|
547
|
+
u(e(ye), {
|
|
548
|
+
"model-value": i.detail.openStatus,
|
|
549
|
+
"onUpdate:modelValue": g,
|
|
550
|
+
"true-value": e(oe).TRUE,
|
|
551
|
+
"false-value": e(oe).FALSE,
|
|
555
552
|
class: "mg-r-0"
|
|
556
553
|
}, {
|
|
557
554
|
default: s(() => [
|
|
558
|
-
c("div",
|
|
555
|
+
c("div", st, f(e(P)("PUTRESOURCEONSHELFDIALOG_TEXT.FREE_RESOURCE")), 1)
|
|
559
556
|
]),
|
|
560
557
|
_: 1
|
|
561
558
|
}, 8, ["model-value", "true-value", "false-value"]),
|
|
562
|
-
c("span",
|
|
559
|
+
c("span", ot, f(e(P)("PUTRESOURCEONSHELFDIALOG_TEXT.FREE_RESOURCE_MCPKEY")), 1)
|
|
563
560
|
])
|
|
564
|
-
])) :
|
|
561
|
+
])) : b("", !0)
|
|
565
562
|
]);
|
|
566
563
|
};
|
|
567
564
|
}
|
|
568
|
-
},
|
|
565
|
+
}, rt = /* @__PURE__ */ k(it, [["__scopeId", "data-v-351bdb75"]]), ut = {
|
|
569
566
|
__name: "FeishuTooltip",
|
|
570
567
|
props: {
|
|
571
568
|
channelType: {
|
|
@@ -573,33 +570,30 @@ const se = /* @__PURE__ */ K(Ve, [["render", Fe], ["__scopeId", "data-v-d8a76b28
|
|
|
573
570
|
required: !0
|
|
574
571
|
}
|
|
575
572
|
},
|
|
576
|
-
setup(
|
|
577
|
-
return (
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
_: 1
|
|
599
|
-
})) : H("", !0);
|
|
600
|
-
};
|
|
573
|
+
setup(i) {
|
|
574
|
+
return (S, h) => i.channelType === e(t).FEISHU_WEB ? (T(), L(e(ue), {
|
|
575
|
+
key: 0,
|
|
576
|
+
placement: "top"
|
|
577
|
+
}, {
|
|
578
|
+
content: s(() => [...h[0] || (h[0] = [
|
|
579
|
+
M(" 发布成功后可在飞书工作台找到与智能体同名应用 ", -1)
|
|
580
|
+
])]),
|
|
581
|
+
default: s(() => [
|
|
582
|
+
u(e(j), {
|
|
583
|
+
size: "14px",
|
|
584
|
+
color: "#999",
|
|
585
|
+
style: { "margin-left": "5px" }
|
|
586
|
+
}, {
|
|
587
|
+
default: s(() => [
|
|
588
|
+
u(e(Ce))
|
|
589
|
+
]),
|
|
590
|
+
_: 1
|
|
591
|
+
})
|
|
592
|
+
]),
|
|
593
|
+
_: 1
|
|
594
|
+
})) : b("", !0);
|
|
601
595
|
}
|
|
602
|
-
},
|
|
596
|
+
}, ct = {
|
|
603
597
|
__name: "ApiTooltip",
|
|
604
598
|
props: {
|
|
605
599
|
channelType: {
|
|
@@ -611,37 +605,34 @@ const se = /* @__PURE__ */ K(Ve, [["render", Fe], ["__scopeId", "data-v-d8a76b28
|
|
|
611
605
|
required: !0
|
|
612
606
|
}
|
|
613
607
|
},
|
|
614
|
-
setup(
|
|
615
|
-
const { t:
|
|
616
|
-
return (
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
_: 1
|
|
638
|
-
})) : H("", !0);
|
|
639
|
-
};
|
|
608
|
+
setup(i) {
|
|
609
|
+
const { t: S } = q();
|
|
610
|
+
return (h, P) => e(z).includes(i.channelType) ? (T(), L(e(ue), {
|
|
611
|
+
key: 0,
|
|
612
|
+
placement: "top"
|
|
613
|
+
}, {
|
|
614
|
+
content: s(() => [
|
|
615
|
+
M(f(i.isAuth ? e(S)("SOURCE_PUBLISH.PUBLISH_AUTHORIZE_MSG") || "请先完成授权" : e(S)("SOURCE_PUBLISH.PUBLISH_ACCESS_TOKEN_MSG") || "调用需要创建访问凭证"), 1)
|
|
616
|
+
]),
|
|
617
|
+
default: s(() => [
|
|
618
|
+
u(e(j), {
|
|
619
|
+
size: "14px",
|
|
620
|
+
color: "#999",
|
|
621
|
+
style: { "margin-left": "5px" }
|
|
622
|
+
}, {
|
|
623
|
+
default: s(() => [
|
|
624
|
+
u(e(Ce))
|
|
625
|
+
]),
|
|
626
|
+
_: 1
|
|
627
|
+
})
|
|
628
|
+
]),
|
|
629
|
+
_: 1
|
|
630
|
+
})) : b("", !0);
|
|
640
631
|
}
|
|
641
|
-
},
|
|
632
|
+
}, Et = { class: "publish-settings" }, dt = { class: "channel-name" }, Tt = { class: "channel-title" }, St = { class: "channel-title__name" }, pt = { class: "channel-title__desc" }, Ot = {
|
|
642
633
|
key: 0,
|
|
643
634
|
class: "expand-content"
|
|
644
|
-
},
|
|
635
|
+
}, _t = { class: "select-label" }, It = { class: "select-label" }, At = { class: "select-label" }, vt = { class: "action-container" }, Ct = { class: "select-label" }, Rt = {
|
|
645
636
|
__name: "PublishSettings",
|
|
646
637
|
props: {
|
|
647
638
|
modelValue: {
|
|
@@ -651,7 +642,7 @@ const se = /* @__PURE__ */ K(Ve, [["render", Fe], ["__scopeId", "data-v-d8a76b28
|
|
|
651
642
|
// 3 智能体 4 工作流 5 插件 8 MCP
|
|
652
643
|
sourceType: {
|
|
653
644
|
type: String,
|
|
654
|
-
default:
|
|
645
|
+
default: V.AGENT
|
|
655
646
|
},
|
|
656
647
|
channelManagement: {
|
|
657
648
|
type: Array,
|
|
@@ -659,17 +650,17 @@ const se = /* @__PURE__ */ K(Ve, [["render", Fe], ["__scopeId", "data-v-d8a76b28
|
|
|
659
650
|
}
|
|
660
651
|
},
|
|
661
652
|
emits: ["validateField", "update:modelValue"],
|
|
662
|
-
setup(
|
|
663
|
-
const
|
|
664
|
-
let
|
|
665
|
-
return
|
|
666
|
-
})(),
|
|
653
|
+
setup(i, { expose: S, emit: h }) {
|
|
654
|
+
const P = he(), O = Ie(), U = Ae(), I = h, g = i, { checkToken: F } = Re(), G = R(null), _ = R(!1), A = R(""), C = R(""), x = R(""), { t: N } = q(), p = (() => {
|
|
655
|
+
let E = Qe();
|
|
656
|
+
return E.shift(), E;
|
|
657
|
+
})(), w = ce(() => Je(g.sourceType, g.channelManagement)), Z = ce(() => [
|
|
667
658
|
{
|
|
668
659
|
type: "selection",
|
|
669
|
-
selectable: (
|
|
660
|
+
selectable: (a) => a.id == t.AIBox ? !1 : z.includes(a.id) ? _.value : !0
|
|
670
661
|
},
|
|
671
662
|
{
|
|
672
|
-
label:
|
|
663
|
+
label: N("SOURCE_PUBLISH.PUBLISH_CHANNEL") || "发布渠道",
|
|
673
664
|
prop: "name",
|
|
674
665
|
slot: "name"
|
|
675
666
|
},
|
|
@@ -688,232 +679,232 @@ const se = /* @__PURE__ */ K(Ve, [["render", Fe], ["__scopeId", "data-v-d8a76b28
|
|
|
688
679
|
prop: "action",
|
|
689
680
|
slot: "action"
|
|
690
681
|
}
|
|
691
|
-
]),
|
|
682
|
+
]), J = [
|
|
692
683
|
{
|
|
693
|
-
label:
|
|
684
|
+
label: N("COMMON_HOOKS.SERVICE_TYPE_ENUMLIST.LABEL_1") || "专享服务",
|
|
694
685
|
value: "PRIVATE"
|
|
695
686
|
},
|
|
696
687
|
{
|
|
697
|
-
label:
|
|
688
|
+
label: N("COMMON_HOOKS.SERVICE_TYPE_ENUMLIST.LABEL_2") || "开发者计算",
|
|
698
689
|
value: "DEVELOPER"
|
|
699
690
|
}
|
|
700
|
-
],
|
|
701
|
-
|
|
702
|
-
},
|
|
703
|
-
|
|
704
|
-
},
|
|
705
|
-
const
|
|
706
|
-
console.log(
|
|
707
|
-
},
|
|
708
|
-
|
|
709
|
-
const
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
}),
|
|
713
|
-
|
|
691
|
+
], Y = (E) => {
|
|
692
|
+
I("update:modelValue", E), I("validateField");
|
|
693
|
+
}, Q = (E, a) => {
|
|
694
|
+
E.allVisible = a.allVisible, E.visibleScope = a.visibleScope, E.openStatus = a.openStatus;
|
|
695
|
+
}, K = async () => {
|
|
696
|
+
const E = await F();
|
|
697
|
+
console.log(E, "res"), _.value = E.data || !1;
|
|
698
|
+
}, $ = (E, a) => {
|
|
699
|
+
a && (C.value = a.bakInt, A.value = a.serviceType, n.value = a.currency);
|
|
700
|
+
const r = w.value.filter((d) => E.includes(d.id));
|
|
701
|
+
r.forEach((d) => {
|
|
702
|
+
G.value?.handleToggleRowSelection(d, !0);
|
|
703
|
+
}), _e(() => {
|
|
704
|
+
Y(r);
|
|
714
705
|
});
|
|
715
|
-
},
|
|
716
|
-
|
|
717
|
-
},
|
|
718
|
-
|
|
719
|
-
() =>
|
|
720
|
-
(
|
|
721
|
-
const
|
|
722
|
-
if (
|
|
723
|
-
const
|
|
724
|
-
(
|
|
706
|
+
}, m = () => "no-expand", l = () => {
|
|
707
|
+
O.push({ name: "ApiManage" });
|
|
708
|
+
}, n = R(""), v = R([]), H = R(!1);
|
|
709
|
+
Le(
|
|
710
|
+
() => g.modelValue,
|
|
711
|
+
(E) => {
|
|
712
|
+
const a = [];
|
|
713
|
+
if (E && E.find((r) => X.includes(r.id))) {
|
|
714
|
+
const r = E.find(
|
|
715
|
+
(d) => X.includes(d.id)
|
|
725
716
|
);
|
|
726
|
-
|
|
717
|
+
r && a.push(r.id), H.value = !0;
|
|
727
718
|
} else
|
|
728
|
-
|
|
729
|
-
|
|
719
|
+
H.value = !1;
|
|
720
|
+
E && E.find((r) => r.id === t.FEISHU_WEB) && a.push(t.FEISHU_WEB), v.value = a;
|
|
730
721
|
},
|
|
731
722
|
{ immediate: !0, deep: !0 }
|
|
732
723
|
);
|
|
733
|
-
const
|
|
734
|
-
const
|
|
735
|
-
return
|
|
724
|
+
const y = (E) => {
|
|
725
|
+
const a = `permissionSettingRef_${E}`, r = P?.refs?.[a];
|
|
726
|
+
return r ? r.getSelectedItems() : null;
|
|
736
727
|
};
|
|
737
|
-
return
|
|
738
|
-
|
|
739
|
-
}),
|
|
740
|
-
bakInt:
|
|
728
|
+
return re(() => {
|
|
729
|
+
K(), x.value = U.params.authType;
|
|
730
|
+
}), S({
|
|
731
|
+
bakInt: C,
|
|
741
732
|
serviceType: A,
|
|
742
|
-
currency:
|
|
733
|
+
currency: n,
|
|
743
734
|
// visibleWorkspace,
|
|
744
735
|
// visibleUser,
|
|
745
736
|
// openStatus,
|
|
746
|
-
handleToggleRowSelection:
|
|
747
|
-
getVisibleRangeData:
|
|
748
|
-
}), (
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
]),
|
|
783
|
-
c("p", ot, U(C.description), 1)
|
|
784
|
-
])
|
|
737
|
+
handleToggleRowSelection: $,
|
|
738
|
+
getVisibleRangeData: y
|
|
739
|
+
}), (E, a) => (T(), B("div", Et, [
|
|
740
|
+
u(De, {
|
|
741
|
+
columns: Z.value,
|
|
742
|
+
data: w.value,
|
|
743
|
+
"on-row-key": (r) => r.id,
|
|
744
|
+
total: w.value.length,
|
|
745
|
+
style: { width: "100%" },
|
|
746
|
+
hasPage: !1,
|
|
747
|
+
"show-handle-nums": 1,
|
|
748
|
+
onRowClassName: m,
|
|
749
|
+
"expand-row-keys": v.value,
|
|
750
|
+
"default-expand-all": !1,
|
|
751
|
+
onOnMultiSelection: Y,
|
|
752
|
+
ref_key: "aiboxTableRef",
|
|
753
|
+
ref: G
|
|
754
|
+
}, {
|
|
755
|
+
name: s(({ row: r }) => [
|
|
756
|
+
c("div", dt, [
|
|
757
|
+
u(et, {
|
|
758
|
+
"publish-type": r.id,
|
|
759
|
+
size: 24
|
|
760
|
+
}, null, 8, ["publish-type"]),
|
|
761
|
+
c("div", Tt, [
|
|
762
|
+
c("p", St, [
|
|
763
|
+
M(f(r.name(i.sourceType)) + " ", 1),
|
|
764
|
+
u(ct, {
|
|
765
|
+
"channel-type": r.id,
|
|
766
|
+
"is-auth": _.value
|
|
767
|
+
}, null, 8, ["channel-type", "is-auth"]),
|
|
768
|
+
u(ut, {
|
|
769
|
+
"channel-type": r.id
|
|
770
|
+
}, null, 8, ["channel-type"])
|
|
771
|
+
]),
|
|
772
|
+
c("p", pt, f(r.description), 1)
|
|
785
773
|
])
|
|
786
|
-
])
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
])
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
]),
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
])
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
]),
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
modelValue: r.value,
|
|
831
|
-
"onUpdate:modelValue": n[2] || (n[2] = (v) => r.value = v),
|
|
832
|
-
precision: 2,
|
|
833
|
-
style: { width: "200px" },
|
|
834
|
-
"controls-position": "right"
|
|
835
|
-
}, {
|
|
836
|
-
prefix: s(() => [
|
|
837
|
-
c("div", ct, U(t(L)("SOURCE_PUBLISH.CONSUME_VALUE") || "消费值"), 1),
|
|
838
|
-
n[6] || (n[6] = c("div", { class: "divider" }, null, -1))
|
|
839
|
-
]),
|
|
840
|
-
_: 1
|
|
841
|
-
}, 8, ["modelValue"])) : H("", !0)
|
|
842
|
-
])) : H("", !0),
|
|
843
|
-
[t(e).FEISHU_WEB, ...t(q)].includes(
|
|
844
|
-
C.id
|
|
845
|
-
) ? (S(), B($e, {
|
|
774
|
+
])
|
|
775
|
+
]),
|
|
776
|
+
expand: s(({ row: r }) => [
|
|
777
|
+
r.id === e(t).PLUGIN_STORE ? (T(), B("div", Ot, [
|
|
778
|
+
u(e(le), {
|
|
779
|
+
modelValue: C.value,
|
|
780
|
+
"onUpdate:modelValue": a[0] || (a[0] = (d) => C.value = d),
|
|
781
|
+
placeholder: e(N)("SOURCE_PUBLISH.DEFAULT_SELECT_MSG") || "请选择",
|
|
782
|
+
style: { width: "200px" }
|
|
783
|
+
}, {
|
|
784
|
+
prefix: s(() => [
|
|
785
|
+
c("div", _t, f(e(N)("SOURCE_PUBLISH.CATEGORY") || "分类"), 1),
|
|
786
|
+
a[4] || (a[4] = c("div", { class: "divider" }, null, -1))
|
|
787
|
+
]),
|
|
788
|
+
default: s(() => [
|
|
789
|
+
(T(!0), B(ee, null, te(e(p), (d) => (T(), L(e(ne), {
|
|
790
|
+
key: d.value,
|
|
791
|
+
label: d.label,
|
|
792
|
+
value: d.value
|
|
793
|
+
}, null, 8, ["label", "value"]))), 128))
|
|
794
|
+
]),
|
|
795
|
+
_: 1
|
|
796
|
+
}, 8, ["modelValue", "placeholder"]),
|
|
797
|
+
x.value == "1" ? (T(), L(e(le), {
|
|
798
|
+
key: 0,
|
|
799
|
+
modelValue: A.value,
|
|
800
|
+
"onUpdate:modelValue": a[1] || (a[1] = (d) => A.value = d),
|
|
801
|
+
placeholder: e(N)("SOURCE_PUBLISH.DEFAULT_SELECT_MSG") || "请选择",
|
|
802
|
+
style: { width: "200px" }
|
|
803
|
+
}, {
|
|
804
|
+
prefix: s(() => [
|
|
805
|
+
c("div", It, f(e(N)("SOURCE_PUBLISH.SERVICE_TYPE") || "服务类型"), 1),
|
|
806
|
+
a[5] || (a[5] = c("div", { class: "divider" }, null, -1))
|
|
807
|
+
]),
|
|
808
|
+
default: s(() => [
|
|
809
|
+
(T(), B(ee, null, te(J, (d) => u(e(ne), {
|
|
810
|
+
key: d.value,
|
|
811
|
+
label: d.label,
|
|
812
|
+
value: d.value
|
|
813
|
+
}, null, 8, ["label", "value"])), 64))
|
|
814
|
+
]),
|
|
815
|
+
_: 1
|
|
816
|
+
}, 8, ["modelValue", "placeholder"])) : b("", !0),
|
|
817
|
+
A.value === e(ie).CURRENCY ? (T(), L(e(Be), {
|
|
846
818
|
key: 1,
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
"
|
|
852
|
-
},
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
819
|
+
modelValue: n.value,
|
|
820
|
+
"onUpdate:modelValue": a[2] || (a[2] = (d) => n.value = d),
|
|
821
|
+
precision: 2,
|
|
822
|
+
style: { width: "200px" },
|
|
823
|
+
"controls-position": "right"
|
|
824
|
+
}, {
|
|
825
|
+
prefix: s(() => [
|
|
826
|
+
c("div", At, f(e(N)("SOURCE_PUBLISH.CONSUME_VALUE") || "消费值"), 1),
|
|
827
|
+
a[6] || (a[6] = c("div", { class: "divider" }, null, -1))
|
|
828
|
+
]),
|
|
829
|
+
_: 1
|
|
830
|
+
}, 8, ["modelValue"])) : b("", !0)
|
|
831
|
+
])) : b("", !0),
|
|
832
|
+
[e(t).FEISHU_WEB, ...e(X)].includes(
|
|
833
|
+
r.id
|
|
834
|
+
) ? (T(), L(rt, {
|
|
835
|
+
key: 1,
|
|
836
|
+
"show-permission-setting": r.id === e(t).MCP_STORE,
|
|
837
|
+
showAvailableRange: [
|
|
838
|
+
e(t).AGENT_STORE,
|
|
839
|
+
e(t).MCP_STORE
|
|
840
|
+
].includes(String(r.id)),
|
|
841
|
+
detail: r,
|
|
842
|
+
ref: `permissionSettingRef_${r.id}`,
|
|
843
|
+
"onUpdate:detail": (d) => Q(r, d)
|
|
844
|
+
}, null, 8, ["show-permission-setting", "showAvailableRange", "detail", "onUpdate:detail"])) : b("", !0)
|
|
845
|
+
]),
|
|
846
|
+
status: s(({ row: r }) => [
|
|
847
|
+
e(je).includes(r.id) ? (T(), L(e(Ee), {
|
|
848
|
+
key: 0,
|
|
849
|
+
type: "success"
|
|
850
|
+
}, {
|
|
851
|
+
default: s(() => [
|
|
852
|
+
M(f(e(N)("SOURCE_PUBLISH.PUBLISH_AUTHORIZE_STATUS") || "已授权"), 1)
|
|
853
|
+
]),
|
|
854
|
+
_: 1
|
|
855
|
+
})) : e(z).includes(r.id) ? (T(), L(e(Ee), {
|
|
856
|
+
key: 1,
|
|
857
|
+
type: _.value ? "success" : "info"
|
|
858
|
+
}, {
|
|
859
|
+
default: s(() => [
|
|
860
|
+
M(f(_.value ? e(N)("SOURCE_PUBLISH.PUBLISH_AUTHORIZE_STATUS") || "已授权" : e(N)("SOURCE_PUBLISH.PUBLISH_UNAUTHORIZE_STATUS") || "未授权"), 1)
|
|
861
|
+
]),
|
|
862
|
+
_: 1
|
|
863
|
+
}, 8, ["type"])) : b("", !0)
|
|
864
|
+
]),
|
|
865
|
+
action: s(({ row: r }) => [
|
|
866
|
+
c("div", vt, [
|
|
867
|
+
e(z).includes(r.id) ? (T(), L(e(ve), {
|
|
856
868
|
key: 0,
|
|
857
|
-
type: "
|
|
869
|
+
type: "primary",
|
|
870
|
+
link: "",
|
|
871
|
+
onClick: (d) => l()
|
|
858
872
|
}, {
|
|
859
873
|
default: s(() => [
|
|
860
|
-
|
|
874
|
+
M(f(e(N)("SOURCE_PUBLISH.CONFIG") || "配置"), 1)
|
|
861
875
|
]),
|
|
862
876
|
_: 1
|
|
863
|
-
}
|
|
877
|
+
}, 8, ["onClick"])) : b("", !0),
|
|
878
|
+
e(X).slice(0, 3).includes(r.id) && i.sourceType != e(V).PLUGIN && H.value ? (T(), L(e(le), {
|
|
864
879
|
key: 1,
|
|
865
|
-
|
|
880
|
+
modelValue: C.value,
|
|
881
|
+
"onUpdate:modelValue": a[3] || (a[3] = (d) => C.value = d),
|
|
882
|
+
placeholder: e(N)("SOURCE_PUBLISH.DEFAULT_SELECT_MSG") || "请选择",
|
|
883
|
+
style: { width: "150px" }
|
|
866
884
|
}, {
|
|
885
|
+
prefix: s(() => [
|
|
886
|
+
c("div", Ct, f(e(N)("SOURCE_PUBLISH.CATEGORY") || "分类"), 1),
|
|
887
|
+
a[7] || (a[7] = c("div", { class: "divider" }, null, -1))
|
|
888
|
+
]),
|
|
867
889
|
default: s(() => [
|
|
868
|
-
|
|
890
|
+
(T(!0), B(ee, null, te(e(p), (d) => (T(), L(e(ne), {
|
|
891
|
+
key: d.value,
|
|
892
|
+
label: d.label,
|
|
893
|
+
value: d.value
|
|
894
|
+
}, null, 8, ["label", "value"]))), 128))
|
|
869
895
|
]),
|
|
870
896
|
_: 1
|
|
871
|
-
}, 8, ["
|
|
872
|
-
])
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
type: "primary",
|
|
878
|
-
link: "",
|
|
879
|
-
onClick: (v) => l()
|
|
880
|
-
}, {
|
|
881
|
-
default: s(() => [
|
|
882
|
-
D(U(t(L)("SOURCE_PUBLISH.CONFIG") || "配置"), 1)
|
|
883
|
-
]),
|
|
884
|
-
_: 1
|
|
885
|
-
}, 8, ["onClick"])) : H("", !0),
|
|
886
|
-
t(q).slice(0, 3).includes(C.id) && o.sourceType != t(F).PLUGIN && M.value ? (S(), B(G, {
|
|
887
|
-
key: 1,
|
|
888
|
-
modelValue: R.value,
|
|
889
|
-
"onUpdate:modelValue": n[3] || (n[3] = (v) => R.value = v),
|
|
890
|
-
placeholder: t(L)("SOURCE_PUBLISH.DEFAULT_SELECT_MSG") || "请选择",
|
|
891
|
-
style: { width: "150px" }
|
|
892
|
-
}, {
|
|
893
|
-
prefix: s(() => [
|
|
894
|
-
c("div", dt, U(t(L)("SOURCE_PUBLISH.CATEGORY") || "分类"), 1),
|
|
895
|
-
n[7] || (n[7] = c("div", { class: "divider" }, null, -1))
|
|
896
|
-
]),
|
|
897
|
-
default: s(() => [
|
|
898
|
-
(S(!0), V(te, null, le(t(d), (v) => (S(), B(T, {
|
|
899
|
-
key: v.value,
|
|
900
|
-
label: v.label,
|
|
901
|
-
value: v.value
|
|
902
|
-
}, null, 8, ["label", "value"]))), 128))
|
|
903
|
-
]),
|
|
904
|
-
_: 1
|
|
905
|
-
}, 8, ["modelValue", "placeholder"])) : H("", !0)
|
|
906
|
-
])
|
|
907
|
-
]),
|
|
908
|
-
_: 1
|
|
909
|
-
}, 8, ["columns", "data", "on-row-key", "total", "expand-row-keys"])
|
|
910
|
-
]);
|
|
911
|
-
};
|
|
897
|
+
}, 8, ["modelValue", "placeholder"])) : b("", !0)
|
|
898
|
+
])
|
|
899
|
+
]),
|
|
900
|
+
_: 1
|
|
901
|
+
}, 8, ["columns", "data", "on-row-key", "total", "expand-row-keys"])
|
|
902
|
+
]));
|
|
912
903
|
}
|
|
913
|
-
},
|
|
904
|
+
}, ft = /* @__PURE__ */ k(Rt, [["__scopeId", "data-v-b1d8611d"]]), gt = {
|
|
914
905
|
class: "publish-container",
|
|
915
906
|
id: "source-publish-container"
|
|
916
|
-
},
|
|
907
|
+
}, mt = { class: "publish-container__back" }, Ut = { class: "publish-container__config" }, Pt = { class: "publish-container__config" }, Nt = {
|
|
917
908
|
__name: "layout",
|
|
918
909
|
props: {
|
|
919
910
|
showPublishConfig: {
|
|
@@ -941,16 +932,16 @@ const se = /* @__PURE__ */ K(Ve, [["render", Fe], ["__scopeId", "data-v-d8a76b28
|
|
|
941
932
|
default: !1
|
|
942
933
|
}
|
|
943
934
|
},
|
|
944
|
-
setup(
|
|
945
|
-
const
|
|
935
|
+
setup(i) {
|
|
936
|
+
const S = R(null), h = R(null), P = Ae(), O = Ie(), U = R(!1), I = R(!1), g = R(""), F = R(""), G = R(""), { t: _ } = q(), A = i, { sourcePublish: C, checkVersion: x, getPublishVersionDetail: N } = Re(), p = R({
|
|
946
937
|
versionNumber: "0.0.1",
|
|
947
938
|
selectedData: [],
|
|
948
939
|
showExec: 1
|
|
949
|
-
}),
|
|
940
|
+
}), w = R({
|
|
950
941
|
versionNumber: [
|
|
951
942
|
{
|
|
952
943
|
required: !0,
|
|
953
|
-
message:
|
|
944
|
+
message: _("SOURCE_PUBLISH.VERSION_NUMBER_MSG") || "请输入版本号",
|
|
954
945
|
trigger: "blur"
|
|
955
946
|
},
|
|
956
947
|
{
|
|
@@ -959,21 +950,21 @@ const se = /* @__PURE__ */ K(Ve, [["render", Fe], ["__scopeId", "data-v-d8a76b28
|
|
|
959
950
|
trigger: "blur"
|
|
960
951
|
},
|
|
961
952
|
{
|
|
962
|
-
validator: async (
|
|
963
|
-
if (
|
|
964
|
-
|
|
965
|
-
const { data:
|
|
966
|
-
sourceType:
|
|
967
|
-
sourceId:
|
|
968
|
-
versionNumber:
|
|
953
|
+
validator: async (m, l, n) => {
|
|
954
|
+
if (I.value) return;
|
|
955
|
+
I.value = !0;
|
|
956
|
+
const { data: v } = await x({
|
|
957
|
+
sourceType: g.value,
|
|
958
|
+
sourceId: F.value,
|
|
959
|
+
versionNumber: p.value.versionNumber
|
|
969
960
|
}).finally(() => {
|
|
970
|
-
|
|
961
|
+
I.value = !1;
|
|
971
962
|
});
|
|
972
|
-
if (
|
|
973
|
-
const
|
|
974
|
-
|
|
963
|
+
if (v) {
|
|
964
|
+
const H = _("SOURCE_PUBLISH.VERSION_NUMBER_EXIST_MSG") || "版本号已存在";
|
|
965
|
+
n(new Error(H));
|
|
975
966
|
} else
|
|
976
|
-
|
|
967
|
+
n();
|
|
977
968
|
},
|
|
978
969
|
trigger: "blur"
|
|
979
970
|
}
|
|
@@ -981,291 +972,288 @@ const se = /* @__PURE__ */ K(Ve, [["render", Fe], ["__scopeId", "data-v-d8a76b28
|
|
|
981
972
|
selectedData: [
|
|
982
973
|
{
|
|
983
974
|
required: !0,
|
|
984
|
-
message:
|
|
975
|
+
message: _("SOURCE_PUBLISH.PUBLISH_CHANNEL_MSG") || "请至少选择一个发布渠道",
|
|
985
976
|
trigger: "change"
|
|
986
977
|
},
|
|
987
978
|
{
|
|
988
|
-
validator: (
|
|
989
|
-
if (
|
|
990
|
-
const
|
|
991
|
-
|
|
979
|
+
validator: (m, l, n) => {
|
|
980
|
+
if (p.value.selectedData.length === 0) {
|
|
981
|
+
const v = _("SOURCE_PUBLISH.PUBLISH_CHANNEL_MSG") || "请至少选择一个发布渠道";
|
|
982
|
+
n(new Error(v));
|
|
992
983
|
} else
|
|
993
|
-
|
|
984
|
+
n();
|
|
994
985
|
},
|
|
995
986
|
trigger: "change"
|
|
996
987
|
}
|
|
997
988
|
]
|
|
998
|
-
}),
|
|
999
|
-
|
|
1000
|
-
},
|
|
1001
|
-
const l =
|
|
1002
|
-
|
|
1003
|
-
},
|
|
1004
|
-
const
|
|
1005
|
-
if (!
|
|
1006
|
-
|
|
1007
|
-
const { code: l } = await
|
|
1008
|
-
|
|
989
|
+
}), Z = () => {
|
|
990
|
+
h.value?.validateField("selectedData");
|
|
991
|
+
}, J = (m) => {
|
|
992
|
+
const l = m.replace(/[^0-9.]/g, ""), n = l.split(".");
|
|
993
|
+
n.length > 3 ? p.value.versionNumber = n.slice(0, 3).join(".") : p.value.versionNumber = l;
|
|
994
|
+
}, Y = async () => {
|
|
995
|
+
const m = await Q();
|
|
996
|
+
if (!m) return;
|
|
997
|
+
U.value = !0;
|
|
998
|
+
const { code: l } = await C(m).finally(() => {
|
|
999
|
+
U.value = !1;
|
|
1009
1000
|
});
|
|
1010
1001
|
if (l == 0) {
|
|
1011
|
-
const
|
|
1012
|
-
|
|
1013
|
-
path:
|
|
1014
|
-
query: { active: "publish", from:
|
|
1002
|
+
const n = window.history.state;
|
|
1003
|
+
n && O.replace({
|
|
1004
|
+
path: n.back,
|
|
1005
|
+
query: { active: "publish", from: P.query.from }
|
|
1015
1006
|
});
|
|
1016
1007
|
}
|
|
1017
|
-
},
|
|
1018
|
-
if (await
|
|
1019
|
-
const l =
|
|
1020
|
-
const
|
|
1021
|
-
channelType: Number(
|
|
1022
|
-
},
|
|
1023
|
-
return
|
|
1024
|
-
}),
|
|
1025
|
-
...
|
|
1008
|
+
}, Q = async () => {
|
|
1009
|
+
if (await h.value.validate()) {
|
|
1010
|
+
const l = p.value.selectedData.map((y) => {
|
|
1011
|
+
const E = {
|
|
1012
|
+
channelType: Number(y.id)
|
|
1013
|
+
}, a = S.value.getVisibleRangeData(y.id);
|
|
1014
|
+
return a && (E.visibleScope = a.visibleScope, E.allVisible = a.allVisible, E.openStatus = a.openStatus), E;
|
|
1015
|
+
}), n = {
|
|
1016
|
+
...p.value,
|
|
1026
1017
|
channels: l,
|
|
1027
|
-
sourceType:
|
|
1028
|
-
sourceId:
|
|
1018
|
+
sourceType: g.value,
|
|
1019
|
+
sourceId: F.value,
|
|
1029
1020
|
workspaceBnid: A.businessSpace || ""
|
|
1030
1021
|
};
|
|
1031
|
-
|
|
1032
|
-
let
|
|
1033
|
-
const
|
|
1034
|
-
if (
|
|
1035
|
-
(
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
].includes(
|
|
1041
|
-
),
|
|
1042
|
-
if (
|
|
1043
|
-
const
|
|
1044
|
-
return
|
|
1022
|
+
g.value == V.WORKFLOW && (n.forcePublish = !0);
|
|
1023
|
+
let v = !1;
|
|
1024
|
+
const H = p.value.selectedData.map((y) => y.id);
|
|
1025
|
+
if (v = H.find(
|
|
1026
|
+
(y) => [
|
|
1027
|
+
t.AGENT_STORE,
|
|
1028
|
+
t.WORKFLOW_STORE,
|
|
1029
|
+
t.PLUGIN_STORE,
|
|
1030
|
+
t.MCP_STORE
|
|
1031
|
+
].includes(y)
|
|
1032
|
+
), v) {
|
|
1033
|
+
if (n.bakInt = S.value.bakInt, !n.bakInt) {
|
|
1034
|
+
const y = _("SOURCE_PUBLISH.PUBLISH_CATEGORY_MSG") || "请选择分类";
|
|
1035
|
+
return Se.warning(y), !1;
|
|
1045
1036
|
}
|
|
1046
|
-
if (
|
|
1047
|
-
const
|
|
1048
|
-
return
|
|
1037
|
+
if (H.includes(t.PLUGIN_STORE) && G.value == "1" && (n.serviceType = S.value.serviceType, !n.serviceType)) {
|
|
1038
|
+
const y = _("SOURCE_PUBLISH.PUBLISH_SERVICE_TYPE_MSG") || "请选择服务类型";
|
|
1039
|
+
return Se.warning(y), !1;
|
|
1049
1040
|
}
|
|
1050
1041
|
}
|
|
1051
|
-
return delete
|
|
1042
|
+
return delete n.selectedData, n;
|
|
1052
1043
|
} else
|
|
1053
1044
|
return console.log("error submit!"), !1;
|
|
1054
|
-
},
|
|
1045
|
+
}, K = R([]), $ = async () => {
|
|
1055
1046
|
console.log(
|
|
1056
|
-
|
|
1057
|
-
|
|
1047
|
+
g.value,
|
|
1048
|
+
F.value,
|
|
1058
1049
|
"sourceType.value,sourceBnid.value,"
|
|
1059
1050
|
);
|
|
1060
|
-
const { data:
|
|
1061
|
-
|
|
1062
|
-
|
|
1051
|
+
const { data: m } = await N(
|
|
1052
|
+
g.value,
|
|
1053
|
+
F.value
|
|
1063
1054
|
);
|
|
1064
|
-
if (
|
|
1065
|
-
const l =
|
|
1066
|
-
l.length === 3 ? l[2] = parseInt(l[2]) + 1 : l.push("1"),
|
|
1055
|
+
if (m) {
|
|
1056
|
+
const l = m.versionNumber.split(".");
|
|
1057
|
+
l.length === 3 ? l[2] = parseInt(l[2]) + 1 : l.push("1"), p.value.versionNumber = l.join("."), p.value.versionDesc = m.versionDesc, p.value.showExec = m.showExec, p.value.showKnowledge = m.showKnowledge, S.value.bakInt = m.bakInt;
|
|
1067
1058
|
}
|
|
1068
|
-
|
|
1059
|
+
K.value = m?.channels || [], _e(() => {
|
|
1069
1060
|
let l = [];
|
|
1070
|
-
const
|
|
1071
|
-
if (
|
|
1072
|
-
l.push(String(
|
|
1061
|
+
const n = {};
|
|
1062
|
+
if (m?.channels.forEach((v) => {
|
|
1063
|
+
l.push(String(v.channelType)), (v.bakInt || v.bakInt == 0) && (n.bakInt = String(v.bakInt)), (v.serviceType || v.serviceType == 0) && (n.serviceType = String(v.serviceType)), (v.currency || v.currency == 0) && (n.currency = v.currency);
|
|
1073
1064
|
}), l.length == 0)
|
|
1074
|
-
|
|
1065
|
+
g.value == V.AGENT ? l = [t.H5, t.AIBox] : l = [t.AIBox];
|
|
1075
1066
|
else {
|
|
1076
|
-
const
|
|
1077
|
-
|
|
1067
|
+
const v = l.find((H) => H == t.AIBox);
|
|
1068
|
+
g.value == V.AGENT && !v && l.push(t.AIBox);
|
|
1078
1069
|
}
|
|
1079
|
-
|
|
1070
|
+
S.value?.handleToggleRowSelection(l, n);
|
|
1080
1071
|
});
|
|
1081
1072
|
};
|
|
1082
|
-
return
|
|
1083
|
-
console.log("props", A),
|
|
1084
|
-
}), (
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1073
|
+
return re(() => {
|
|
1074
|
+
console.log("props", A), g.value = A.propsSourceType, G.value = A.propsAuthType, F.value = A.propsSourceBnid, $();
|
|
1075
|
+
}), (m, l) => (T(), B("div", gt, [
|
|
1076
|
+
u(Ge, { "back-bar-style": "#f7f8fa" }, {
|
|
1077
|
+
default: s(() => [
|
|
1078
|
+
c("div", mt, [
|
|
1079
|
+
c("span", null, f(e(_)("SOURCE_PUBLISH.PUBLISH") || "发布"), 1),
|
|
1080
|
+
u(e(ve), {
|
|
1081
|
+
type: "primary",
|
|
1082
|
+
class: "publish-container__sure",
|
|
1083
|
+
onClick: Y,
|
|
1084
|
+
loading: U.value
|
|
1085
|
+
}, {
|
|
1086
|
+
default: s(() => [
|
|
1087
|
+
M(f(e(_)("SOURCE_PUBLISH.SURE_PUBLISH") || "确认发布"), 1)
|
|
1088
|
+
]),
|
|
1089
|
+
_: 1
|
|
1090
|
+
}, 8, ["loading"])
|
|
1091
|
+
])
|
|
1092
|
+
]),
|
|
1093
|
+
_: 1
|
|
1094
|
+
}),
|
|
1095
|
+
u(e(Me), {
|
|
1096
|
+
ref_key: "formRef",
|
|
1097
|
+
ref: h,
|
|
1098
|
+
model: p.value,
|
|
1099
|
+
"label-width": "80px",
|
|
1100
|
+
class: "publish-container__form",
|
|
1101
|
+
rules: w.value,
|
|
1102
|
+
"label-position": "top",
|
|
1103
|
+
onSubmit: l[5] || (l[5] = be(() => {
|
|
1104
|
+
}, ["prevent"]))
|
|
1105
|
+
}, {
|
|
1106
|
+
default: s(() => [
|
|
1107
|
+
u(ae, null, {
|
|
1108
|
+
default: s(() => [
|
|
1109
|
+
M(f(e(_)("SOURCE_PUBLISH.PUBLISH_RECORD") || "发布记录"), 1)
|
|
1110
|
+
]),
|
|
1111
|
+
_: 1
|
|
1112
|
+
}),
|
|
1113
|
+
u(se, null, {
|
|
1114
|
+
default: s(() => [
|
|
1115
|
+
u(e(W), {
|
|
1116
|
+
label: e(_)("SOURCE_PUBLISH.VERSION_NUMBER") || "版本号",
|
|
1117
|
+
prop: "versionNumber"
|
|
1096
1118
|
}, {
|
|
1097
1119
|
default: s(() => [
|
|
1098
|
-
|
|
1120
|
+
u(e(de), {
|
|
1121
|
+
modelValue: p.value.versionNumber,
|
|
1122
|
+
"onUpdate:modelValue": l[0] || (l[0] = (n) => p.value.versionNumber = n),
|
|
1123
|
+
placeholder: e(_)("SOURCE_PUBLISH.VERSION_PLACEHOLDER") || "版本示例:0.0.1",
|
|
1124
|
+
onInput: J
|
|
1125
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
1099
1126
|
]),
|
|
1100
1127
|
_: 1
|
|
1101
|
-
}, 8, ["
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
}, null, 8, ["modelValue"])
|
|
1208
|
-
])
|
|
1209
|
-
]),
|
|
1210
|
-
_: 1
|
|
1211
|
-
})
|
|
1212
|
-
]),
|
|
1213
|
-
_: 1
|
|
1214
|
-
})) : H("", !0),
|
|
1215
|
-
i(ne, null, {
|
|
1216
|
-
default: s(() => [
|
|
1217
|
-
l[8] || (l[8] = c("span", { class: "publish-container__required" }, "*", -1)),
|
|
1218
|
-
D(U(t(O)("SOURCE_PUBLISH.PUBLISH_SETTING") || "发布设置"), 1)
|
|
1219
|
-
]),
|
|
1220
|
-
_: 1
|
|
1221
|
-
}),
|
|
1222
|
-
i(se, null, {
|
|
1223
|
-
default: s(() => [
|
|
1224
|
-
i(b, { prop: "selectedData" }, {
|
|
1225
|
-
default: s(() => [
|
|
1226
|
-
i(St, {
|
|
1227
|
-
ref_key: "publishSettingsRef",
|
|
1228
|
-
ref: _,
|
|
1229
|
-
"source-type": P.value,
|
|
1230
|
-
"channel-management": z.value,
|
|
1231
|
-
modelValue: d.value.selectedData,
|
|
1232
|
-
"onUpdate:modelValue": l[4] || (l[4] = (T) => d.value.selectedData = T),
|
|
1233
|
-
onValidateField: J
|
|
1234
|
-
}, null, 8, ["source-type", "channel-management", "modelValue"])
|
|
1235
|
-
]),
|
|
1236
|
-
_: 1
|
|
1237
|
-
})
|
|
1238
|
-
]),
|
|
1239
|
-
_: 1
|
|
1240
|
-
})
|
|
1241
|
-
]),
|
|
1242
|
-
_: 1
|
|
1243
|
-
}, 8, ["model", "rules"])
|
|
1244
|
-
]);
|
|
1245
|
-
};
|
|
1128
|
+
}, 8, ["label"]),
|
|
1129
|
+
u(e(W), {
|
|
1130
|
+
label: e(_)("SOURCE_PUBLISH.VERSION_DESC") || "版本描述",
|
|
1131
|
+
prop: "versionDesc"
|
|
1132
|
+
}, {
|
|
1133
|
+
default: s(() => [
|
|
1134
|
+
u(e(de), {
|
|
1135
|
+
type: "textarea",
|
|
1136
|
+
modelValue: p.value.versionDesc,
|
|
1137
|
+
"onUpdate:modelValue": l[1] || (l[1] = (n) => p.value.versionDesc = n),
|
|
1138
|
+
rows: 4,
|
|
1139
|
+
maxlength: "2000",
|
|
1140
|
+
"show-word-limit": "",
|
|
1141
|
+
placeholder: e(_)("SOURCE_PUBLISH.VERSION_DESC") || "版本描述"
|
|
1142
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
1143
|
+
]),
|
|
1144
|
+
_: 1
|
|
1145
|
+
}, 8, ["label"])
|
|
1146
|
+
]),
|
|
1147
|
+
_: 1
|
|
1148
|
+
}),
|
|
1149
|
+
i.showPublishConfig ? (T(), L(ae, { key: 0 }, {
|
|
1150
|
+
default: s(() => [
|
|
1151
|
+
M(f(e(_)("SOURCE_PUBLISH.PUBLISH_CONFIG") || "发布配置"), 1)
|
|
1152
|
+
]),
|
|
1153
|
+
_: 1
|
|
1154
|
+
})) : b("", !0),
|
|
1155
|
+
i.showPublishConfig ? (T(), L(se, { key: 1 }, {
|
|
1156
|
+
default: s(() => [
|
|
1157
|
+
u(e(W), { prop: "showExec" }, {
|
|
1158
|
+
default: s(() => [
|
|
1159
|
+
c("div", Ut, [
|
|
1160
|
+
c("p", null, [
|
|
1161
|
+
l[6] || (l[6] = c("img", {
|
|
1162
|
+
src: xe,
|
|
1163
|
+
width: "20",
|
|
1164
|
+
height: "20",
|
|
1165
|
+
alt: ""
|
|
1166
|
+
}, null, -1)),
|
|
1167
|
+
c("span", null, f(e(_)("SOURCE_PUBLISH.SHOW_EXECUTE_PROCESS") || "展示执行过程"), 1)
|
|
1168
|
+
]),
|
|
1169
|
+
u(e(Te), {
|
|
1170
|
+
modelValue: p.value.showExec,
|
|
1171
|
+
"onUpdate:modelValue": l[2] || (l[2] = (n) => p.value.showExec = n),
|
|
1172
|
+
"active-value": 1,
|
|
1173
|
+
"inactive-value": 0
|
|
1174
|
+
}, null, 8, ["modelValue"])
|
|
1175
|
+
])
|
|
1176
|
+
]),
|
|
1177
|
+
_: 1
|
|
1178
|
+
}),
|
|
1179
|
+
u(e(W), { prop: "showKnowledge" }, {
|
|
1180
|
+
default: s(() => [
|
|
1181
|
+
c("div", Pt, [
|
|
1182
|
+
c("p", null, [
|
|
1183
|
+
l[7] || (l[7] = c("img", {
|
|
1184
|
+
src: ke,
|
|
1185
|
+
width: "20",
|
|
1186
|
+
height: "20",
|
|
1187
|
+
alt: ""
|
|
1188
|
+
}, null, -1)),
|
|
1189
|
+
c("span", null, f(e(_)("SOURCE_PUBLISH.SHOW_RECALL_KNOWLEDGE") || "展示召回的知识库内容"), 1)
|
|
1190
|
+
]),
|
|
1191
|
+
u(e(Te), {
|
|
1192
|
+
modelValue: p.value.showKnowledge,
|
|
1193
|
+
"onUpdate:modelValue": l[3] || (l[3] = (n) => p.value.showKnowledge = n),
|
|
1194
|
+
"active-value": 1,
|
|
1195
|
+
"inactive-value": 0
|
|
1196
|
+
}, null, 8, ["modelValue"])
|
|
1197
|
+
])
|
|
1198
|
+
]),
|
|
1199
|
+
_: 1
|
|
1200
|
+
})
|
|
1201
|
+
]),
|
|
1202
|
+
_: 1
|
|
1203
|
+
})) : b("", !0),
|
|
1204
|
+
u(ae, null, {
|
|
1205
|
+
default: s(() => [
|
|
1206
|
+
l[8] || (l[8] = c("span", { class: "publish-container__required" }, "*", -1)),
|
|
1207
|
+
M(f(e(_)("SOURCE_PUBLISH.PUBLISH_SETTING") || "发布设置"), 1)
|
|
1208
|
+
]),
|
|
1209
|
+
_: 1
|
|
1210
|
+
}),
|
|
1211
|
+
u(se, null, {
|
|
1212
|
+
default: s(() => [
|
|
1213
|
+
u(e(W), { prop: "selectedData" }, {
|
|
1214
|
+
default: s(() => [
|
|
1215
|
+
u(ft, {
|
|
1216
|
+
ref_key: "publishSettingsRef",
|
|
1217
|
+
ref: S,
|
|
1218
|
+
"source-type": g.value,
|
|
1219
|
+
"channel-management": K.value,
|
|
1220
|
+
modelValue: p.value.selectedData,
|
|
1221
|
+
"onUpdate:modelValue": l[4] || (l[4] = (n) => p.value.selectedData = n),
|
|
1222
|
+
onValidateField: Z
|
|
1223
|
+
}, null, 8, ["source-type", "channel-management", "modelValue"])
|
|
1224
|
+
]),
|
|
1225
|
+
_: 1
|
|
1226
|
+
})
|
|
1227
|
+
]),
|
|
1228
|
+
_: 1
|
|
1229
|
+
})
|
|
1230
|
+
]),
|
|
1231
|
+
_: 1
|
|
1232
|
+
}, 8, ["model", "rules"])
|
|
1233
|
+
]));
|
|
1246
1234
|
}
|
|
1247
|
-
},
|
|
1235
|
+
}, ht = /* @__PURE__ */ k(Nt, [["__scopeId", "data-v-5f779e86"]]), Yt = fe(ht);
|
|
1248
1236
|
export {
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1237
|
+
z as API_CHANNEL_TYPES,
|
|
1238
|
+
je as AUTHORIZED_CHANNEL_TYPES,
|
|
1239
|
+
ct as ApiTooltip,
|
|
1240
|
+
pe as CHANNEL_ICON_CONFIG,
|
|
1241
|
+
ut as FeishuTooltip,
|
|
1242
|
+
D as LIBRARY_PAGE,
|
|
1243
|
+
Wt as OFFICIAL_LABEL,
|
|
1244
|
+
oe as OPEN_STATUS_VALUE,
|
|
1245
|
+
Ze as PUBLISH_TYPE_ICON_MAPPING,
|
|
1246
|
+
rt as PermissionSetting,
|
|
1247
|
+
et as PublishIcon,
|
|
1248
|
+
ft as PublishSettings,
|
|
1249
|
+
qe as RELEASE_CHANNEL_CONFIG,
|
|
1250
|
+
t as RELEASE_CHANNEL_TYPE,
|
|
1251
|
+
X as STORE_CHANNEL_TYPES,
|
|
1252
|
+
Yt as SourcePublish,
|
|
1253
|
+
Yt as default,
|
|
1254
|
+
Je as getChannelsByType,
|
|
1255
|
+
Qe as getStoreDetailType,
|
|
1256
|
+
wt as serviceStatus,
|
|
1257
|
+
kt as serviceType,
|
|
1258
|
+
ie as serviceTypeMap
|
|
1271
1259
|
};
|