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/index.mjs
CHANGED
|
@@ -1,158 +1,166 @@
|
|
|
1
1
|
import { CustomToggle as t } from "./CustomToggle.mjs";
|
|
2
2
|
import { CustomTitle as o } from "./CustomTitle.mjs";
|
|
3
|
-
import { COLUMN_TYPES as i, MODES as
|
|
4
|
-
import { l as T, a as p, n as E, M as l, N as _, S as
|
|
3
|
+
import { COLUMN_TYPES as i, MODES as r, PageContainer as n } from "./PageContainer.mjs";
|
|
4
|
+
import { l as T, a as p, n as E, M as l, N as _, S as m, T as A, d as P, e as S, f as c, h as g, k as u, m as N, g as f, j as L, c as C, b as I, i as O, p as d, t as M } from "./chunks/layout.C0EtkrZg.js";
|
|
5
5
|
import { A as R } from "./chunks/index.Doax01RQ.js";
|
|
6
|
-
import { A as y, D as
|
|
6
|
+
import { A as y, D as b, M as B, P as h, R as U, T as Y, a as H, r as v } from "./chunks/index.CSPp4g5C.js";
|
|
7
7
|
import { ApplicationIcon as D } from "./ApplicationIcon.mjs";
|
|
8
8
|
import { ApplicationTypeTag as F, useApplicationTypeTag as x } from "./ApplicationTypeTag.mjs";
|
|
9
|
-
import { API_CHANNEL_TYPES as G, AUTHORIZED_CHANNEL_TYPES as j, ApiTooltip as
|
|
10
|
-
import { DocSyncSelect as
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
|
|
9
|
+
import { API_CHANNEL_TYPES as G, AUTHORIZED_CHANNEL_TYPES as j, ApiTooltip as k, CHANNEL_ICON_CONFIG as w, FeishuTooltip as K, LIBRARY_PAGE as W, OFFICIAL_LABEL as $, OPEN_STATUS_VALUE as z, PUBLISH_TYPE_ICON_MAPPING as V, PermissionSetting as Z, PublishIcon as q, PublishSettings as J, RELEASE_CHANNEL_CONFIG as Q, RELEASE_CHANNEL_TYPE as X, STORE_CHANNEL_TYPES as aa, SourcePublish as ea, getChannelsByType as sa, getStoreDetailType as ta, serviceStatus as oa, serviceType as ia, serviceTypeMap as ra } from "./SourcePublish.mjs";
|
|
10
|
+
import { DocSyncSelect as na } from "./DocSyncSelect.mjs";
|
|
11
|
+
import { AiboxTable as Ta } from "./Table.mjs";
|
|
12
|
+
import { a as pa, T as Ea } from "./chunks/BackBar.DwhmSL-a.js";
|
|
13
|
+
import { A as la, S as _a } from "./chunks/config.DE5PZU2F.js";
|
|
14
|
+
import { dayjs as ma } from "element-plus";
|
|
15
|
+
import { e as ha, c as Ua, d as Ya, g as Ha, b as va, f as Da, l as Fa, a as xa, s as Ga, u as ja } from "./chunks/i18n.DUrvNBQz.js";
|
|
16
|
+
const a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
15
17
|
__proto__: null,
|
|
16
18
|
API_CHANNEL_TYPES: G,
|
|
17
|
-
APPLICATION_TYPE:
|
|
19
|
+
APPLICATION_TYPE: la,
|
|
18
20
|
AUTHORIZED_CHANNEL_TYPES: j,
|
|
19
|
-
|
|
21
|
+
AiboxTable: Ta,
|
|
22
|
+
ApiTooltip: k,
|
|
20
23
|
ApplicationIcon: D,
|
|
21
24
|
ApplicationTypeTag: F,
|
|
22
25
|
AvailableRangePreview: y,
|
|
23
26
|
AvailableRangeSetting: R,
|
|
24
|
-
|
|
27
|
+
BackBar: pa,
|
|
28
|
+
CHANNEL_ICON_CONFIG: w,
|
|
25
29
|
COLUMN_TYPES: i,
|
|
26
30
|
CustomSidebar: T,
|
|
27
31
|
CustomTitle: o,
|
|
28
32
|
CustomToggle: t,
|
|
29
|
-
DEFAULT_SHOW_COUNT:
|
|
30
|
-
DocSyncSelect:
|
|
31
|
-
FeishuTooltip:
|
|
33
|
+
DEFAULT_SHOW_COUNT: b,
|
|
34
|
+
DocSyncSelect: na,
|
|
35
|
+
FeishuTooltip: K,
|
|
32
36
|
LIBRARY_PAGE: W,
|
|
33
|
-
MEMBER_DEPARTMENT_TYPES:
|
|
37
|
+
MEMBER_DEPARTMENT_TYPES: B,
|
|
34
38
|
MENU_COLOR_STRATEGY: p,
|
|
35
39
|
MENU_LOADING_STATES: E,
|
|
36
40
|
MENU_TYPE: l,
|
|
37
|
-
MODES:
|
|
41
|
+
MODES: r,
|
|
38
42
|
NODE_CLICK_TYPES: _,
|
|
39
|
-
OFFICIAL_LABEL:
|
|
40
|
-
OPEN_STATUS_VALUE:
|
|
41
|
-
PUBLISH_STATUS:
|
|
42
|
-
PUBLISH_TYPE_ICON_MAPPING:
|
|
43
|
-
PageContainer:
|
|
44
|
-
PermissionSetting:
|
|
43
|
+
OFFICIAL_LABEL: $,
|
|
44
|
+
OPEN_STATUS_VALUE: z,
|
|
45
|
+
PUBLISH_STATUS: h,
|
|
46
|
+
PUBLISH_TYPE_ICON_MAPPING: V,
|
|
47
|
+
PageContainer: n,
|
|
48
|
+
PermissionSetting: Z,
|
|
45
49
|
PublishIcon: q,
|
|
46
50
|
PublishSettings: J,
|
|
47
|
-
RANGE_TYPES:
|
|
51
|
+
RANGE_TYPES: U,
|
|
48
52
|
RELEASE_CHANNEL_CONFIG: Q,
|
|
49
53
|
RELEASE_CHANNEL_TYPE: X,
|
|
50
|
-
SOURCE_TYPE:
|
|
51
|
-
SPECIAL_ROUTES:
|
|
52
|
-
STORE_CHANNEL_TYPES:
|
|
53
|
-
SourcePublish:
|
|
54
|
+
SOURCE_TYPE: _a,
|
|
55
|
+
SPECIAL_ROUTES: m,
|
|
56
|
+
STORE_CHANNEL_TYPES: aa,
|
|
57
|
+
SourcePublish: ea,
|
|
54
58
|
TREE_PROPS: A,
|
|
55
|
-
|
|
59
|
+
TableBtns: Ea,
|
|
60
|
+
TagList: Y,
|
|
56
61
|
availableRangeTreeProps: H,
|
|
57
|
-
collapseNodeKeys:
|
|
58
|
-
expandNodeKeys:
|
|
59
|
-
findExpandPath:
|
|
62
|
+
collapseNodeKeys: P,
|
|
63
|
+
expandNodeKeys: S,
|
|
64
|
+
findExpandPath: c,
|
|
60
65
|
findExpandPathById: g,
|
|
61
66
|
findMenuByPath: u,
|
|
62
|
-
getChannelsByType:
|
|
67
|
+
getChannelsByType: sa,
|
|
63
68
|
getFirstLeafMenu: N,
|
|
64
|
-
getMenuIconColorById:
|
|
65
|
-
getParentNodeIdsById:
|
|
66
|
-
getStoreDetailType:
|
|
67
|
-
isParentMenuActive:
|
|
69
|
+
getMenuIconColorById: f,
|
|
70
|
+
getParentNodeIdsById: L,
|
|
71
|
+
getStoreDetailType: ta,
|
|
72
|
+
isParentMenuActive: C,
|
|
68
73
|
isParentRouteActive: I,
|
|
69
74
|
isPathInMenu: O,
|
|
70
75
|
processMenuTreeWithLeaf: d,
|
|
71
76
|
rangeOptions: v,
|
|
72
|
-
serviceStatus:
|
|
73
|
-
serviceType:
|
|
74
|
-
serviceTypeMap:
|
|
77
|
+
serviceStatus: oa,
|
|
78
|
+
serviceType: ia,
|
|
79
|
+
serviceTypeMap: ra,
|
|
75
80
|
transformMenuData: M,
|
|
76
81
|
useApplicationTypeTag: x
|
|
77
82
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
78
|
-
|
|
79
|
-
const
|
|
80
|
-
for (const
|
|
81
|
-
e
|
|
82
|
-
},
|
|
83
|
-
install:
|
|
83
|
+
ma.en.weekStart = 1;
|
|
84
|
+
const Aa = (s) => {
|
|
85
|
+
for (const e in a)
|
|
86
|
+
a[e].install && s.use(a[e]);
|
|
87
|
+
}, ya = {
|
|
88
|
+
install: Aa
|
|
84
89
|
};
|
|
85
90
|
export {
|
|
86
91
|
G as API_CHANNEL_TYPES,
|
|
87
|
-
|
|
92
|
+
la as APPLICATION_TYPE,
|
|
88
93
|
j as AUTHORIZED_CHANNEL_TYPES,
|
|
89
|
-
|
|
94
|
+
Ta as AiboxTable,
|
|
95
|
+
k as ApiTooltip,
|
|
90
96
|
D as ApplicationIcon,
|
|
91
97
|
F as ApplicationTypeTag,
|
|
92
98
|
y as AvailableRangePreview,
|
|
93
99
|
R as AvailableRangeSetting,
|
|
94
|
-
|
|
100
|
+
pa as BackBar,
|
|
101
|
+
w as CHANNEL_ICON_CONFIG,
|
|
95
102
|
i as COLUMN_TYPES,
|
|
96
103
|
T as CustomSidebar,
|
|
97
104
|
o as CustomTitle,
|
|
98
105
|
t as CustomToggle,
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
106
|
+
b as DEFAULT_SHOW_COUNT,
|
|
107
|
+
na as DocSyncSelect,
|
|
108
|
+
K as FeishuTooltip,
|
|
102
109
|
W as LIBRARY_PAGE,
|
|
103
|
-
|
|
110
|
+
B as MEMBER_DEPARTMENT_TYPES,
|
|
104
111
|
p as MENU_COLOR_STRATEGY,
|
|
105
112
|
E as MENU_LOADING_STATES,
|
|
106
113
|
l as MENU_TYPE,
|
|
107
|
-
|
|
114
|
+
r as MODES,
|
|
108
115
|
_ as NODE_CLICK_TYPES,
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
116
|
+
$ as OFFICIAL_LABEL,
|
|
117
|
+
z as OPEN_STATUS_VALUE,
|
|
118
|
+
h as PUBLISH_STATUS,
|
|
119
|
+
V as PUBLISH_TYPE_ICON_MAPPING,
|
|
120
|
+
n as PageContainer,
|
|
121
|
+
Z as PermissionSetting,
|
|
115
122
|
q as PublishIcon,
|
|
116
123
|
J as PublishSettings,
|
|
117
|
-
|
|
124
|
+
U as RANGE_TYPES,
|
|
118
125
|
Q as RELEASE_CHANNEL_CONFIG,
|
|
119
126
|
X as RELEASE_CHANNEL_TYPE,
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
127
|
+
_a as SOURCE_TYPE,
|
|
128
|
+
m as SPECIAL_ROUTES,
|
|
129
|
+
aa as STORE_CHANNEL_TYPES,
|
|
130
|
+
ea as SourcePublish,
|
|
124
131
|
A as TREE_PROPS,
|
|
125
|
-
|
|
132
|
+
Ea as TableBtns,
|
|
133
|
+
Y as TagList,
|
|
126
134
|
H as availableRangeTreeProps,
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
135
|
+
ha as cancelLanguageChangeListener,
|
|
136
|
+
P as collapseNodeKeys,
|
|
137
|
+
Ua as createI18nInstance,
|
|
138
|
+
Ya as createTranslationHelper,
|
|
139
|
+
ya as default,
|
|
140
|
+
S as expandNodeKeys,
|
|
141
|
+
c as findExpandPath,
|
|
134
142
|
g as findExpandPathById,
|
|
135
143
|
u as findMenuByPath,
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
144
|
+
Ha as getBrowserLanguage,
|
|
145
|
+
sa as getChannelsByType,
|
|
146
|
+
va as getCurrentLocale,
|
|
139
147
|
N as getFirstLeafMenu,
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
148
|
+
f as getMenuIconColorById,
|
|
149
|
+
L as getParentNodeIdsById,
|
|
150
|
+
ta as getStoreDetailType,
|
|
151
|
+
Da as getterTText,
|
|
152
|
+
C as isParentMenuActive,
|
|
145
153
|
I as isParentRouteActive,
|
|
146
154
|
O as isPathInMenu,
|
|
147
|
-
|
|
148
|
-
|
|
155
|
+
Fa as languageMap,
|
|
156
|
+
xa as localeMap,
|
|
149
157
|
d as processMenuTreeWithLeaf,
|
|
150
158
|
v as rangeOptions,
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
159
|
+
oa as serviceStatus,
|
|
160
|
+
ia as serviceType,
|
|
161
|
+
ra as serviceTypeMap,
|
|
162
|
+
Ga as setupLanguageChangeListener,
|
|
155
163
|
M as transformMenuData,
|
|
156
164
|
x as useApplicationTypeTag,
|
|
157
|
-
|
|
165
|
+
ja as useI18n
|
|
158
166
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require('./assets/ApplicationTypeTag.css');const I=require("./chunks/index.CkihWzK6.js"),t=require("vue"),a=require("./chunks/config.4W9n_uQg.js"),i=require("./chunks/i18n.
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require('./assets/ApplicationTypeTag.css');const I=require("./chunks/index.CkihWzK6.js"),t=require("vue"),a=require("./chunks/config.4W9n_uQg.js"),i=require("./chunks/i18n.D-d0yyXi.js"),_=require("./chunks/_plugin-vue_export-helper.BHFhmbuH.js"),A=()=>{const{t:e}=i.useI18n();return{APPLICATION_TYPE_TAB_LIST:[{label:e("APPLICATION_LIBRARY.TAB_LIST.ALL"),value:a.APPLICATION_TYPE.all},{label:e("APPLICATION_LIBRARY.TAB_LIST.AGENT"),value:a.APPLICATION_TYPE.autonomous,alias:e("APPLICATION_LIBRARY.TAB_LIST.PLANNED")},{label:e("APPLICATION_LIBRARY.TAB_LIST.AGENT_DIALOG"),value:a.APPLICATION_TYPE.dialogue,alias:e("APPLICATION_LIBRARY.TAB_LIST.DIALOG")}]}},r=Object.assign({name:"ApplicationTypeTag"},{__name:"layout",props:{type:{type:[String,Number],required:!0}},setup(e){const o=e,{APPLICATION_TYPE_TAB_LIST:n}=A(),s=t.computed(()=>n.find(T=>T.value===o.type)?.alias||""),u=t.computed(()=>o.type===a.APPLICATION_TYPE.dialogue?"dialogue":"autonomously");return(T,p)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(u.value)},t.toDisplayString(s.value),3))}}),c=_._export_sfc(r,[["__scopeId","data-v-b4885355"]]),l=I.withInstall(c);exports.ApplicationTypeTag=l;exports.default=l;exports.useApplicationTypeTag=A;
|
package/lib/SourcePublish.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require('./assets/SourcePublish.css');const Te=require("./chunks/index.CkihWzK6.js"),e=require("vue"),o=require("./chunks/i18n.Giy85Rng.js"),w=require("vue-router"),V=require("./chunks/_plugin-vue_export-helper.BHFhmbuH.js"),Z=require("./chunks/index.6X8xsqRJ.js"),h=require("./chunks/config.4W9n_uQg.js"),Se=require("./chunks/index.CP9rhXZ5.js"),J=require("color-message-aibox-vue"),pe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAbeSURBVHic7ZztbxRFHMc/s3vX60FrTynSAi09KIK0aJEY8I32pfFVeYeJ0fIn+BeAfwFvfOE7S2JijDH62kQD7yCK1CAF5OEOigWBwvHUe77xxXDpdXfnbndvr/V6+0muk5md/c3Od3/zsLvTgZCQkJDORXjJvPeoHCmXmUTyGZAARl6G7UxGCDLArJCcyZeYSf8kMm5PdiXg3qNyxIDjUjLt9yrbCSGYWcrxuRshGwq4/2M5JQVf0/6e5pWMkBy7+K34qV6mugJOfCKPIzgR6GW1G5ITs9+IL3SHtQIenJZTSH5szVW1GYIj52ecPdFRwIlpmegySNF5zVZHxqhw4OyMSFsPRJxyb4hyEhmKV0MCwXHgmPWAzQMnp2WiH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PDDrWl4wdWiX57z0t1HxvwBl5yBi4wObe6EjFopuK+jugt4nIHfPvl1eczGsw5yg+AoiC4uaa/fBwqL5jWsNIhpc2FcQyc/BgwJ0d3r6zNrI3TfrLregqoKIXRQOWPb1TCQ/Bz/8BvMLlVfVjocFuHjZ+zMPL89EdOa+o/DtHJy9CE/GIWb7iro+HhbgVs5bu7wQykyk5CZufcliEW7eCWcA7KU95dq6lUMdB+r6hsLK8VAOdSbSjOheD4QWW42ptMBSFxCk3HIC6l7vdF2RbjYiFw5IOEEkEtAXLRWFdT8XhhZ7yTw/F1lgYApz0KVvMSRn1wdmgYS2KuqM3/+C5A60zDVF7AQ0yNIg25tUw53/KqwwwBxSFLPWPhCmMUhpbHNdUXgEV27Anp3BFzsw7ARsIyO1+EVKHfHvXbj8J+zqh1ibeawaQyzCtG1Meu+4mgBGQ1mvWsO8ZwPsGYSudbY6r0ZmMCHDtgKOn1AJ4EZVt20wujph93PQ0+3vumKR4Z39knEcFX1wSqWVavhdizwRa4edCdj2lLfzRRgb6DN3Q3IdVn44qcZRHAncwgZhoA8GtrmfIzC2ve/xVlKrjss/nlRp1fj7Z3kmscW0RluEse1Pr9yHy9PE5qNJlWoT0kjzDm/K2ffCysAiQna+yIEd26zb6fmaGX4yqVLSzgiKUWX+/KkegqnWfFMP7N0FQBYhg2K6f6vzxmVVT63Hp1S8E+IsNM+sJR6Hl4bI9m9Zuy1FIyIiIiIiIrzyPx3JLklkX69sAAAAAElFTkSuQmCC",Ce={},Oe={class:"style-title"};function Ie(a,E){return e.openBlock(),e.createElementBlock("div",Oe,[e.renderSlot(a.$slots,"default",{},void 0,!0)])}const X=V._export_sfc(Ce,[["render",Ie],["__scopeId","data-v-58195e4c"]]),Ae={},Ne={class:"card-container"};function me(a,E){return e.openBlock(),e.createElementBlock("div",Ne,[e.renderSlot(a.$slots,"default",{},void 0,!0)])}const q=V._export_sfc(Ae,[["render",me],["__scopeId","data-v-d8a76b28"]]),Q=()=>{const{$request:a,$env:E}=Z.getGlobalProperties();return{sourcePublish:d=>a({url:`${E.VITE_APP_AIBOX_BASE_URL}/api/v1/skillets/versions/publish`,method:"post",data:d}),getPublishVersionDetail:(d,A)=>a({url:`${E.VITE_APP_AIBOX_BASE_URL}/api/v1/skillets/versions/${d}/${A}`,method:"get"}),checkVersion:d=>a({url:`${E.VITE_APP_AIBOX_BASE_URL}/api/v1/skillets/versions/exists`,method:"get",params:d}),checkToken:()=>a({url:`${E.VITE_APP_AUTH_BASE_URL}/api/v1/api/check-token`,method:"post"})}},t={H5:"1",API:"2",AIBox:"3",AGENT_STORE:"5",FEISHU_WEB:"11",WORKFLOW_API:"4",WORKFLOW_STORE:"7",PLUGIN_API:"8",PLUGIN_STORE:"9",MCP_STORE:"10"},$={[t.H5]:{id:t.H5,name:()=>"H5",get description(){return o.getterTText("COMMON_DICT.ENUMS.DESCRIPTION_H5")||"可通过PC或移动设备立即开始对话"},visible:!0},[t.API]:{id:t.API,name:()=>"API",get description(){return o.getterTText("COMMON_DICT.ENUMS.DESCRIPTION_API")||"可通过API方式快速集成到你的软件"},visible:!0},[t.AIBox]:{id:t.AIBox,name:a=>a===h.SOURCE_TYPE.AGENT?o.getterTText("COMMON_DICT.ENUMS.NAME_MY_AI"):o.getterTText("COMMON_DICT.ENUMS.NAME_MY_ZJ"),description:"可应用于你的智能体",visible:!0},[t.AGENT_STORE]:{id:t.AGENT_STORE,get name(){return()=>o.getterTText("COMMON_DICT.ENUMS.NAME_ZNTGC")||"智能体广场"},get description(){return o.getterTText("COMMON_DICT.ENUMS.DESCRIPTION_ZNTGC")||"分享到智能体广场,获得更多曝光"},visible:!0},[t.FEISHU_WEB]:{id:t.FEISHU_WEB,get name(){return()=>o.getterTText("COMMON_DICT.ENUMS.NAME_WEB")||"飞书网页应用"},get description(){return o.getterTText("COMMON_DICT.ENUMS.DESCRIPTION_WEB")||"在飞书客户端内访问智能体对话页面"},visible:!0},[t.WORKFLOW_API]:{id:t.WORKFLOW_API,name:()=>"API",get description(){return o.getterTText("COMMON_DICT.ENUMS.DESCRIPTION_API")||"可通过API方式快速集成到你的软件"},visible:!0},[t.WORKFLOW_STORE]:{id:t.WORKFLOW_STORE,get name(){return()=>o.getterTText("COMMON_DICT.ENUMS.NAME_ZJGC")||"组件广场"},get description(){return o.getterTText("COMMON_DICT.ENUMS.DESCRIPTION_ZJGC")||"分享到组件广场,获得更多曝光"},visible:!0},[t.PLUGIN_API]:{id:t.PLUGIN_API,name:()=>"API",get description(){return o.getterTText("COMMON_DICT.ENUMS.DESCRIPTION_API")||"可通过API方式快速集成到你的软件"},visible:!1},[t.PLUGIN_STORE]:{id:t.PLUGIN_STORE,name:()=>"AIBox Store",get description(){return o.getterTText("COMMON_DICT.ENUMS.DESCRIPTION_PLUGIN")||"分享到广场,获得更多曝光"},visible:!1},[t.MCP_STORE]:{id:t.MCP_STORE,get name(){return()=>o.getterTText("COMMON_DICT.ENUMS.NAME_ZJGC")||"组件广场"},get description(){return o.getterTText("COMMON_DICT.ENUMS.DESCRIPTION_ZJGC")||"分享到组件广场,获得更多曝光"},visible:!0}},k=[t.API,t.WORKFLOW_API,t.PLUGIN_API],x=[t.AGENT_STORE,t.WORKFLOW_STORE,t.MCP_STORE,t.PLUGIN_STORE],ee=[t.H5,t.AIBox,t.AGENT_STORE,t.WORKFLOW_STORE,t.MCP_STORE],z={h5:{icon:"IconH5",iconColor:"var(--el-color-primary)",backgroundColor:"#EAF0FE"},apikey:{icon:"IconApikey",iconColor:"#822FFF",backgroundColor:"#F3EBFF"},aibox:{icon:"Bot",backgroundColor:"#EBEFFF"},store:{icon:"IconStore",iconColor:"#27C637",backgroundColor:"#EBFCDE"},feishu:{icon:"Feishu",iconColor:"#EBF5FF",backgroundColor:"#EBF5FF"}},te={[t.H5]:"h5",[t.API]:"apikey",[t.AIBox]:"aibox",[t.WORKFLOW_API]:"apikey",[t.AGENT_STORE]:"store",[t.WORKFLOW_STORE]:"store",[t.PLUGIN_API]:"apikey",[t.PLUGIN_STORE]:"store",[t.MCP_STORE]:"store",[t.FEISHU_WEB]:"feishu"},ne=(a,E)=>({[h.SOURCE_TYPE.AGENT]:[t.AIBox,t.H5,t.API,t.FEISHU_WEB,t.AGENT_STORE],[h.SOURCE_TYPE.WORKFLOW]:[t.AIBox,t.WORKFLOW_API,t.WORKFLOW_STORE],[h.SOURCE_TYPE.PLUGIN]:[t.AIBox],[h.SOURCE_TYPE.MCP]:[t.AIBox,t.MCP_STORE]}[a]||[]).map(i=>{const O=$[i];console.log("defaultChannel",O);const d=E.find(A=>A.channelType==i);return d?{...O,...d,channelType:String(i)}:{...O,channelType:String(i),channelStatus:Se.PUBLISH_STATUS.UNPUBLISHED}}).filter(i=>(typeof i.visible=="function",i.visible)),H={TRUE:1,FALSE:0},F={PRIVATE:"PRIVATE",DEVELOPER:"DEVELOPER"},ve=[{get label(){return o.getterTText("COMMON_DICT.SERVICE_TYPE.PRIVATE")},value:F.PRIVATE},{get label(){return o.getterTText("COMMON_DICT.SERVICE_TYPE.DEVELOPER")},value:F.DEVELOPER}],fe=[{get label(){return o.getterTText("COMMON_DICT.SERVICE_STATUS.IN_CALL")},value:"IN_CALL"},{get label(){return o.getterTText("COMMON_DICT.SERVICE_STATUS.NO_CONFIG")},value:"NO_CONFIG"}],L={UP_BUTTOM:{get label(){return o.getterTText("UP_DATA.UP_TEXT")},get sceneWorkFlow(){return o.getterTText("SCENEBUTTOM.SCENE_WORKFLOW")},get scenePlugin(){return o.getterTText("SCENEBUTTOM.SCENE_PLUGIN")},get sceneModmcp(){return o.getterTText("SCENEBUTTOM.SCENE_MODMCP")},get sceneArbitrarily(){return o.getterTText("SCENEBUTTOM.ARBITRARILY")},get searchText(){return o.getterTText("SCENEBUTTOM.SEARCHTEXT")},get intellectuAlagent(){return o.getterTText("SCENEBUTTOM.INTELLECTUALAGENT")},get searchWorkflow(){return o.getterTText("SCENEBUTTOM.WORKFLOW")},get searchPlugin(){return o.getterTText("SCENEBUTTOM.PLUGIN")},get searchModmcp(){return o.getterTText("SCENEBUTTOM.MODMCP")}},STOREDETAILTYPE_STORECONTENTLAYOUT:{get labelAll(){return o.getterTText("STOREDETAILTYPE_STORECONTENTLAYOUT.LABEL_ALL")},get labelTextCreation(){return o.getterTText("STOREDETAILTYPE_STORECONTENTLAYOUT.LABEL_TEXT_CREATION")},get labelEfficiencyTools(){return o.getterTText("STOREDETAILTYPE_STORECONTENTLAYOUT.LABEL_EFFICIENCY_TOOLS")},get labelMediaEntertainment(){return o.getterTText("STOREDETAILTYPE_STORECONTENTLAYOUT.LABEL_MEDIA_ENTERTAINMENT")},get labelOfficeHr(){return o.getterTText("STOREDETAILTYPE_STORECONTENTLAYOUT.LABEL_OFFICE_HR")},get labelGovernmentServices(){return o.getterTText("STOREDETAILTYPE_STORECONTENTLAYOUT.LABEL_GOVERNMENT_SERVICES")},get labelTravelSightseeing(){return o.getterTText("STOREDETAILTYPE_STORECONTENTLAYOUT.LABEL_TRAVEL_SIGHTSEEING")},get labelFinancialServices(){return o.getterTText("STOREDETAILTYPE_STORECONTENTLAYOUT.LABEL_FINANCIAL_SERVICES")}}},le=()=>[{label:L.STOREDETAILTYPE_STORECONTENTLAYOUT.labelAll,value:"0",icon:"IconType22"},{label:L.STOREDETAILTYPE_STORECONTENTLAYOUT.labelTextCreation,value:"1",icon:"IconWrite"},{label:L.STOREDETAILTYPE_STORECONTENTLAYOUT.labelEfficiencyTools,value:"3",icon:"IconEfficiency2"},{label:L.STOREDETAILTYPE_STORECONTENTLAYOUT.labelMediaEntertainment,value:"4",icon:"IconVideo"},{label:L.STOREDETAILTYPE_STORECONTENTLAYOUT.labelOfficeHr,value:"5",icon:"IconOffice"},{label:L.STOREDETAILTYPE_STORECONTENTLAYOUT.labelGovernmentServices,value:"6",icon:"IconGovernment"},{label:L.STOREDETAILTYPE_STORECONTENTLAYOUT.labelTravelSightseeing,value:"7",icon:"IconTravel"},{label:L.STOREDETAILTYPE_STORECONTENTLAYOUT.labelFinancialServices,value:"8",icon:"IconFinance"}],ge="CMI官方",Re={__name:"PublishIcon",props:{publishType:{type:[String,Number],default:""},size:{type:[String,Number],default:30}},setup(a){const E=a,g=Object.keys(z).reduce((i,O)=>{const d=z[O];return i[O]={...d,icon:e.shallowRef(d.icon)},i},{}),m=e.ref({});return e.onMounted(()=>{const i=te[E.publishType]||"h5";m.value=g[i]}),(i,O)=>{const d=e.resolveComponent("el-icon");return e.openBlock(),e.createElementBlock("div",{class:"channel-icon flex items-center justify-center radius-8",style:e.normalizeStyle({background:m.value?.backgroundColor})},[e.createVNode(d,{size:a.size,color:m.value?.iconColor},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(m.value?.icon)))]),_:1},8,["size","color"])],4)}}},oe=V._export_sfc(Re,[["__scopeId","data-v-28fe49ef"]]),he={class:"permission-setting"},Pe={key:1,class:"flex items-center gap-12 pd-t-16 pd-b-16"},Ue={class:"min-w-110 fz-14 text-left flex-shrink-0",style:{color:"var(--el-text-color-primary)"}},Le={class:"flex items-center gap-6"},be={class:"flex flex-col lh-18",style:{"align-items":"flex-start"}},ye={class:"fz-12",style:{color:"var(--el-text-color-secondary)"}},Be={__name:"PermissionSetting",props:{showAvailableRange:{type:Boolean,default:!0},showPermissionSetting:{type:Boolean,default:!0},detail:{type:Object,default:()=>({})}},emits:["update:detail"],setup(a,{expose:E,emit:g}){const{t:m}=o.useI18n(),i=a,O=g,d=e.ref(null),A=p=>{const I={...i.detail,openStatus:p};O("update:detail",I)},P=p=>{const I={...i.detail,allVisible:p};O("update:detail",I)},b=p=>{const I={...i.detail,visibleScope:p};O("update:detail",I)};return E({getSelectedItems:()=>{let p={openStatus:i.detail.openStatus||H.FALSE};if(d.value){const I=d.value.getSelectedItems();p.allVisible=I.allVisible,p.visibleScope=I.visibleScope}return p}}),(p,I)=>{const B=e.resolveComponent("IconTip"),v=e.resolveComponent("el-icon"),c=e.resolveComponent("el-tooltip"),y=e.resolveComponent("el-checkbox");return e.openBlock(),e.createElementBlock("div",he,[a.showAvailableRange?(e.openBlock(),e.createBlock(e.unref(Z.AvailableRangeSetting),{key:0,"all-visible":a.detail.allVisible,"model-value":a.detail.visibleScope,class:e.normalizeClass(["pd-t-16",{"pd-b-16":!a.showPermissionSetting}]),ref_key:"availableRangeSettingRef",ref:d,"onUpdate:allVisible":P,"onUpdate:modelValue":b},null,8,["all-visible","model-value","class"])):e.createCommentVNode("",!0),a.showPermissionSetting?(e.openBlock(),e.createElementBlock("div",Pe,[e.createElementVNode("div",Ue,[I[0]||(I[0]=e.createElementVNode("span",{class:"mg-r-2",style:{color:"var(--el-color-danger)"}},"*",-1)),e.createTextVNode(" "+e.toDisplayString(e.unref(m)("PUTRESOURCEONSHELFDIALOG_TEXT.RESOURCE_PERMISSION_SETTING"))+" ",1),e.createVNode(c,{content:e.unref(m)("PUTRESOURCEONSHELFDIALOG_TEXT.RESOURCE_PERMISSION_SETTING_TOOLTIP"),placement:"top"},{default:e.withCtx(()=>[e.createVNode(v,{class:"mg-l-4",size:"14px"},{default:e.withCtx(()=>[e.createVNode(B)]),_:1})]),_:1},8,["content"])]),e.createElementVNode("div",Le,[e.createVNode(y,{"model-value":a.detail.openStatus,"onUpdate:modelValue":A,"true-value":e.unref(H).TRUE,"false-value":e.unref(H).FALSE,class:"mg-r-0"},{default:e.withCtx(()=>[e.createElementVNode("div",be,e.toDisplayString(e.unref(m)("PUTRESOURCEONSHELFDIALOG_TEXT.FREE_RESOURCE")),1)]),_:1},8,["model-value","true-value","false-value"]),e.createElementVNode("span",ye,e.toDisplayString(e.unref(m)("PUTRESOURCEONSHELFDIALOG_TEXT.FREE_RESOURCE_MCPKEY")),1)])])):e.createCommentVNode("",!0)])}}},ae=V._export_sfc(Be,[["__scopeId","data-v-2f926987"]]),re={__name:"FeishuTooltip",props:{channelType:{type:[String,Number],required:!0}},setup(a){return(E,g)=>{const m=e.resolveComponent("el-icon"),i=e.resolveComponent("el-tooltip");return a.channelType===e.unref(t).FEISHU_WEB?(e.openBlock(),e.createBlock(i,{key:0,placement:"top"},{content:e.withCtx(()=>[...g[0]||(g[0]=[e.createTextVNode(" 发布成功后可在飞书工作台找到与智能体同名应用 ",-1)])]),default:e.withCtx(()=>[e.createVNode(m,{size:"14px",color:"#999",style:{"margin-left":"5px"}},{default:e.withCtx(()=>[e.createVNode(e.unref(J.IconTip))]),_:1})]),_:1})):e.createCommentVNode("",!0)}}},se={__name:"ApiTooltip",props:{channelType:{type:[String,Number],required:!0},isAuth:{type:Boolean,required:!0}},setup(a){const{t:E}=o.useI18n();return(g,m)=>{const i=e.resolveComponent("el-icon"),O=e.resolveComponent("el-tooltip");return e.unref(k).includes(a.channelType)?(e.openBlock(),e.createBlock(O,{key:0,placement:"top"},{content:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.isAuth?e.unref(E)("SOURCE_PUBLISH.PUBLISH_AUTHORIZE_MSG")||"请先完成授权":e.unref(E)("SOURCE_PUBLISH.PUBLISH_ACCESS_TOKEN_MSG")||"调用需要创建访问凭证"),1)]),default:e.withCtx(()=>[e.createVNode(i,{size:"14px",color:"#999",style:{"margin-left":"5px"}},{default:e.withCtx(()=>[e.createVNode(e.unref(J.IconTip))]),_:1})]),_:1})):e.createCommentVNode("",!0)}}},Ve={class:"publish-settings"},xe={class:"channel-name"},ke={class:"channel-title"},Me={class:"channel-title__name"},De={class:"channel-title__desc"},He={key:0,class:"expand-content"},we={class:"select-label"},Fe={class:"select-label"},Ge={class:"select-label"},Ye={class:"action-container"},We={class:"select-label"},Ke={__name:"PublishSettings",props:{modelValue:{type:Array,default:()=>[]},sourceType:{type:String,default:h.SOURCE_TYPE.AGENT},channelManagement:{type:Array,default:()=>[]}},emits:["validateField","update:modelValue"],setup(a,{expose:E,emit:g}){const m=e.getCurrentInstance(),i=w.useRouter(),O=w.useRoute(),d=g,A=a,{checkToken:P}=Q(),b=e.ref(null),T=e.ref(!1),p=e.ref(""),I=e.ref(""),B=e.ref(""),{t:v}=o.useI18n(),c=(()=>{let s=le();return s.shift(),s})(),y=e.computed(()=>ne(A.sourceType,A.channelManagement)),G=e.computed(()=>[{type:"selection",selectable:l=>l.id==t.AIBox?!1:k.includes(l.id)?T.value:!0},{label:v("SOURCE_PUBLISH.PUBLISH_CHANNEL")||"发布渠道",prop:"name",slot:"name"},{type:"expand",prop:"expand"},{label:"",prop:"status",slot:"status",width:100},{label:"",prop:"action",slot:"action"}]),Y=[{label:v("COMMON_HOOKS.SERVICE_TYPE_ENUMLIST.LABEL_1")||"专享服务",value:"PRIVATE"},{label:v("COMMON_HOOKS.SERVICE_TYPE_ENUMLIST.LABEL_2")||"开发者计算",value:"DEVELOPER"}],M=s=>{d("update:modelValue",s),d("validateField")},W=(s,l)=>{s.allVisible=l.allVisible,s.visibleScope=l.visibleScope,s.openStatus=l.openStatus},D=async()=>{const s=await P();console.log(s,"res"),T.value=s.data||!1},K=(s,l)=>{l&&(I.value=l.bakInt,p.value=l.serviceType,r.value=l.currency);const u=y.value.filter(U=>s.includes(U.id));u.forEach(U=>{b.value?.handleToggleRowSelection(U,!0)}),e.nextTick(()=>{M(u)})},N=()=>"no-expand",n=()=>{i.push({name:"ApiManage"})},r=e.ref(""),S=e.ref([]),R=e.ref(!1);e.watch(()=>A.modelValue,s=>{const l=[];if(s&&s.find(u=>x.includes(u.id))){const u=s.find(U=>x.includes(U.id));u&&l.push(u.id),R.value=!0}else R.value=!1;s&&s.find(u=>u.id===t.FEISHU_WEB)&&l.push(t.FEISHU_WEB),S.value=l},{immediate:!0,deep:!0});const f=s=>{const l=`permissionSettingRef_${s}`,u=m?.refs?.[l];return u?u.getSelectedItems():null};return e.onMounted(()=>{D(),B.value=O.params.authType}),E({bakInt:I,serviceType:p,currency:r,handleToggleRowSelection:K,getVisibleRangeData:f}),(s,l)=>{const u=e.resolveComponent("el-option"),U=e.resolveComponent("el-select"),ue=e.resolveComponent("el-input-number"),j=e.resolveComponent("el-tag"),Ee=e.resolveComponent("el-button"),de=e.resolveComponent("AiboxTable");return e.openBlock(),e.createElementBlock("div",Ve,[e.createVNode(de,{columns:G.value,data:y.value,"on-row-key":C=>C.id,total:y.value.length,style:{width:"100%"},hasPage:!1,"show-handle-nums":1,onRowClassName:N,"expand-row-keys":S.value,"default-expand-all":!1,onOnMultiSelection:M,ref_key:"aiboxTableRef",ref:b},{name:e.withCtx(({row:C})=>[e.createElementVNode("div",xe,[e.createVNode(oe,{"publish-type":C.id,size:24},null,8,["publish-type"]),e.createElementVNode("div",ke,[e.createElementVNode("p",Me,[e.createTextVNode(e.toDisplayString(C.name(a.sourceType))+" ",1),e.createVNode(se,{"channel-type":C.id,"is-auth":T.value},null,8,["channel-type","is-auth"]),e.createVNode(re,{"channel-type":C.id},null,8,["channel-type"])]),e.createElementVNode("p",De,e.toDisplayString(C.description),1)])])]),expand:e.withCtx(({row:C})=>[C.id===e.unref(t).PLUGIN_STORE?(e.openBlock(),e.createElementBlock("div",He,[e.createVNode(U,{modelValue:I.value,"onUpdate:modelValue":l[0]||(l[0]=_=>I.value=_),placeholder:e.unref(v)("SOURCE_PUBLISH.DEFAULT_SELECT_MSG")||"请选择",style:{width:"200px"}},{prefix:e.withCtx(()=>[e.createElementVNode("div",we,e.toDisplayString(e.unref(v)("SOURCE_PUBLISH.CATEGORY")||"分类"),1),l[4]||(l[4]=e.createElementVNode("div",{class:"divider"},null,-1))]),default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(c),_=>(e.openBlock(),e.createBlock(u,{key:_.value,label:_.label,value:_.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"]),B.value=="1"?(e.openBlock(),e.createBlock(U,{key:0,modelValue:p.value,"onUpdate:modelValue":l[1]||(l[1]=_=>p.value=_),placeholder:e.unref(v)("SOURCE_PUBLISH.DEFAULT_SELECT_MSG")||"请选择",style:{width:"200px"}},{prefix:e.withCtx(()=>[e.createElementVNode("div",Fe,e.toDisplayString(e.unref(v)("SOURCE_PUBLISH.SERVICE_TYPE")||"服务类型"),1),l[5]||(l[5]=e.createElementVNode("div",{class:"divider"},null,-1))]),default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(Y,_=>e.createVNode(u,{key:_.value,label:_.label,value:_.value},null,8,["label","value"])),64))]),_:1},8,["modelValue","placeholder"])):e.createCommentVNode("",!0),p.value===e.unref(F).CURRENCY?(e.openBlock(),e.createBlock(ue,{key:1,modelValue:r.value,"onUpdate:modelValue":l[2]||(l[2]=_=>r.value=_),precision:2,style:{width:"200px"},"controls-position":"right"},{prefix:e.withCtx(()=>[e.createElementVNode("div",Ge,e.toDisplayString(e.unref(v)("SOURCE_PUBLISH.CONSUME_VALUE")||"消费值"),1),l[6]||(l[6]=e.createElementVNode("div",{class:"divider"},null,-1))]),_:1},8,["modelValue"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),[e.unref(t).FEISHU_WEB,...e.unref(x)].includes(C.id)?(e.openBlock(),e.createBlock(ae,{key:1,"show-permission-setting":C.id===e.unref(t).MCP_STORE,showAvailableRange:C.id===e.unref(t).AGENT_STORE,detail:C,ref:`permissionSettingRef_${C.id}`,"onUpdate:detail":_=>W(C,_)},null,8,["show-permission-setting","showAvailableRange","detail","onUpdate:detail"])):e.createCommentVNode("",!0)]),status:e.withCtx(({row:C})=>[e.unref(ee).includes(C.id)?(e.openBlock(),e.createBlock(j,{key:0,type:"success"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(v)("SOURCE_PUBLISH.PUBLISH_AUTHORIZE_STATUS")||"已授权"),1)]),_:1})):e.unref(k).includes(C.id)?(e.openBlock(),e.createBlock(j,{key:1,type:T.value?"success":"info"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(T.value?e.unref(v)("SOURCE_PUBLISH.PUBLISH_AUTHORIZE_STATUS")||"已授权":e.unref(v)("SOURCE_PUBLISH.PUBLISH_UNAUTHORIZE_STATUS")||"未授权"),1)]),_:1},8,["type"])):e.createCommentVNode("",!0)]),action:e.withCtx(({row:C})=>[e.createElementVNode("div",Ye,[e.unref(k).includes(C.id)?(e.openBlock(),e.createBlock(Ee,{key:0,type:"primary",link:"",onClick:_=>n()},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(v)("SOURCE_PUBLISH.CONFIG")||"配置"),1)]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(x).slice(0,3).includes(C.id)&&a.sourceType!=e.unref(h.SOURCE_TYPE).PLUGIN&&R.value?(e.openBlock(),e.createBlock(U,{key:1,modelValue:I.value,"onUpdate:modelValue":l[3]||(l[3]=_=>I.value=_),placeholder:e.unref(v)("SOURCE_PUBLISH.DEFAULT_SELECT_MSG")||"请选择",style:{width:"150px"}},{prefix:e.withCtx(()=>[e.createElementVNode("div",We,e.toDisplayString(e.unref(v)("SOURCE_PUBLISH.CATEGORY")||"分类"),1),l[7]||(l[7]=e.createElementVNode("div",{class:"divider"},null,-1))]),default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(c),_=>(e.openBlock(),e.createBlock(u,{key:_.value,label:_.label,value:_.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])):e.createCommentVNode("",!0)])]),_:1},8,["columns","data","on-row-key","total","expand-row-keys"])])}}},ie=V._export_sfc(Ke,[["__scopeId","data-v-d36a9ab0"]]),Xe={class:"publish-container",id:"source-publish-container"},qe={class:"publish-container__back"},ze={class:"publish-container__config"},je={class:"publish-container__config"},Ze={__name:"layout",props:{showPublishConfig:{type:Boolean,default:!0},propsSourceBnid:{type:String,default:""},propsSourceType:{type:String,default:""},propsAuthType:{type:String,default:""},businessSpace:{type:String,default:""},isBackendSystem:{type:Boolean,default:!1}},setup(a){const E=e.ref(null),g=e.ref(null),m=w.useRoute(),i=w.useRouter(),O=e.ref(!1),d=e.ref(!1),A=e.ref(""),P=e.ref(""),b=e.ref(""),{t:T}=o.useI18n(),p=a,{sourcePublish:I,checkVersion:B,getPublishVersionDetail:v}=Q(),c=e.ref({versionNumber:"0.0.1",selectedData:[],showExec:1}),y=e.ref({versionNumber:[{required:!0,message:T("SOURCE_PUBLISH.VERSION_NUMBER_MSG")||"请输入版本号",trigger:"blur"},{pattern:/^\d+\.\d+\.\d+$/,message:"版本号格式必须为数字.数字.数字,如:1.0.0",trigger:"blur"},{validator:async(N,n,r)=>{if(d.value)return;d.value=!0;const{data:S}=await B({sourceType:A.value,sourceId:P.value,versionNumber:c.value.versionNumber}).finally(()=>{d.value=!1});if(S){const R=T("SOURCE_PUBLISH.VERSION_NUMBER_EXIST_MSG")||"版本号已存在";r(new Error(R))}else r()},trigger:"blur"}],selectedData:[{required:!0,message:T("SOURCE_PUBLISH.PUBLISH_CHANNEL_MSG")||"请至少选择一个发布渠道",trigger:"change"},{validator:(N,n,r)=>{if(c.value.selectedData.length===0){const S=T("SOURCE_PUBLISH.PUBLISH_CHANNEL_MSG")||"请至少选择一个发布渠道";r(new Error(S))}else r()},trigger:"change"}]}),G=()=>{g.value?.validateField("selectedData")},Y=N=>{const n=N.replace(/[^0-9.]/g,""),r=n.split(".");r.length>3?c.value.versionNumber=r.slice(0,3).join("."):c.value.versionNumber=n},M=async()=>{const N=await W();if(!N)return;O.value=!0;const{code:n}=await I(N).finally(()=>{O.value=!1});if(n==0){const r=window.history.state;r&&i.replace({path:r.back,query:{active:"publish",from:m.query.from}})}},W=async()=>{if(await g.value.validate()){const n=c.value.selectedData.map(f=>{const s={channelType:Number(f.id)},l=E.value.getVisibleRangeData(f.id);return l&&(s.visibleScope=l.visibleScope,s.allVisible=l.allVisible,s.openStatus=l.openStatus),s}),r={...c.value,channels:n,sourceType:A.value,sourceId:P.value,workspaceBnid:p.businessSpace||""};A.value==h.SOURCE_TYPE.WORKFLOW&&(r.forcePublish=!0);let S=!1;const R=c.value.selectedData.map(f=>f.id);if(S=R.find(f=>[t.AGENT_STORE,t.WORKFLOW_STORE,t.PLUGIN_STORE,t.MCP_STORE].includes(f)),S){if(r.bakInt=E.value.bakInt,!r.bakInt){const f=T("SOURCE_PUBLISH.PUBLISH_CATEGORY_MSG")||"请选择分类";return ElMessage.warning(f),!1}if(R.includes(t.PLUGIN_STORE)&&b.value=="1"&&(r.serviceType=E.value.serviceType,!r.serviceType)){const f=T("SOURCE_PUBLISH.PUBLISH_SERVICE_TYPE_MSG")||"请选择服务类型";return ElMessage.warning(f),!1}}return delete r.selectedData,r}else return console.log("error submit!"),!1},D=e.ref([]),K=async()=>{console.log(A.value,P.value,"sourceType.value,sourceBnid.value,");const{data:N}=await v(A.value,P.value);if(N){const n=N.versionNumber.split(".");n.length===3?n[2]=parseInt(n[2])+1:n.push("1"),c.value.versionNumber=n.join("."),c.value.versionDesc=N.versionDesc,c.value.showExec=N.showExec,c.value.showKnowledge=N.showKnowledge,E.value.bakInt=N.bakInt}D.value=N?.channels||[],e.nextTick(()=>{let n=[];const r={};if(N?.channels.forEach(S=>{n.push(String(S.channelType)),(S.bakInt||S.bakInt==0)&&(r.bakInt=String(S.bakInt)),(S.serviceType||S.serviceType==0)&&(r.serviceType=String(S.serviceType)),(S.currency||S.currency==0)&&(r.currency=S.currency)}),n.length==0)A.value==h.SOURCE_TYPE.AGENT?n=[t.H5,t.AIBox]:n=[t.AIBox];else{const S=n.find(R=>R==t.AIBox);A.value==h.SOURCE_TYPE.AGENT&&!S&&n.push(t.AIBox)}E.value?.handleToggleRowSelection(n,r)})};return e.onMounted(()=>{console.log("props",p),A.value=p.propsSourceType,b.value=p.propsAuthType,P.value=p.propsSourceBnid,K()}),(N,n)=>{const r=e.resolveComponent("el-button"),S=e.resolveComponent("back-bar"),R=e.resolveComponent("el-input"),f=e.resolveComponent("el-form-item"),s=e.resolveComponent("el-switch"),l=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",Xe,[e.createVNode(S,{"back-bar-style":"#f7f8fa"},{default:e.withCtx(()=>[e.createElementVNode("div",qe,[e.createElementVNode("span",null,e.toDisplayString(e.unref(T)("SOURCE_PUBLISH.PUBLISH")||"发布"),1),e.createVNode(r,{type:"primary",class:"publish-container__sure",onClick:M,loading:O.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(T)("SOURCE_PUBLISH.SURE_PUBLISH")||"确认发布"),1)]),_:1},8,["loading"])])]),_:1}),e.createVNode(l,{ref_key:"formRef",ref:g,model:c.value,"label-width":"80px",class:"publish-container__form",rules:y.value,"label-position":"top",onSubmit:n[5]||(n[5]=e.withModifiers(()=>{},["prevent"]))},{default:e.withCtx(()=>[e.createVNode(X,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(T)("SOURCE_PUBLISH.PUBLISH_RECORD")||"发布记录"),1)]),_:1}),e.createVNode(q,null,{default:e.withCtx(()=>[e.createVNode(f,{label:e.unref(T)("SOURCE_PUBLISH.VERSION_NUMBER")||"版本号",prop:"versionNumber"},{default:e.withCtx(()=>[e.createVNode(R,{modelValue:c.value.versionNumber,"onUpdate:modelValue":n[0]||(n[0]=u=>c.value.versionNumber=u),placeholder:e.unref(T)("SOURCE_PUBLISH.VERSION_PLACEHOLDER")||"版本示例:0.0.1",onInput:Y},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(f,{label:e.unref(T)("SOURCE_PUBLISH.VERSION_DESC")||"版本描述",prop:"versionDesc"},{default:e.withCtx(()=>[e.createVNode(R,{type:"textarea",modelValue:c.value.versionDesc,"onUpdate:modelValue":n[1]||(n[1]=u=>c.value.versionDesc=u),rows:4,maxlength:"2000","show-word-limit":"",placeholder:e.unref(T)("SOURCE_PUBLISH.VERSION_DESC")||"版本描述"},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1}),a.showPublishConfig?(e.openBlock(),e.createBlock(X,{key:0},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(T)("SOURCE_PUBLISH.PUBLISH_CONFIG")||"发布配置"),1)]),_:1})):e.createCommentVNode("",!0),a.showPublishConfig?(e.openBlock(),e.createBlock(q,{key:1},{default:e.withCtx(()=>[e.createVNode(f,{prop:"showExec"},{default:e.withCtx(()=>[e.createElementVNode("div",ze,[e.createElementVNode("p",null,[n[6]||(n[6]=e.createElementVNode("img",{src:pe,width:"20",height:"20",alt:""},null,-1)),e.createElementVNode("span",null,e.toDisplayString(e.unref(T)("SOURCE_PUBLISH.SHOW_EXECUTE_PROCESS")||"展示执行过程"),1)]),e.createVNode(s,{modelValue:c.value.showExec,"onUpdate:modelValue":n[2]||(n[2]=u=>c.value.showExec=u),"active-value":1,"inactive-value":0},null,8,["modelValue"])])]),_:1}),e.createVNode(f,{prop:"showKnowledge"},{default:e.withCtx(()=>[e.createElementVNode("div",je,[e.createElementVNode("p",null,[n[7]||(n[7]=e.createElementVNode("img",{src:_e,width:"20",height:"20",alt:""},null,-1)),e.createElementVNode("span",null,e.toDisplayString(e.unref(T)("SOURCE_PUBLISH.SHOW_RECALL_KNOWLEDGE")||"展示召回的知识库内容"),1)]),e.createVNode(s,{modelValue:c.value.showKnowledge,"onUpdate:modelValue":n[3]||(n[3]=u=>c.value.showKnowledge=u),"active-value":1,"inactive-value":0},null,8,["modelValue"])])]),_:1})]),_:1})):e.createCommentVNode("",!0),e.createVNode(X,null,{default:e.withCtx(()=>[n[8]||(n[8]=e.createElementVNode("span",{class:"publish-container__required"},"*",-1)),e.createTextVNode(e.toDisplayString(e.unref(T)("SOURCE_PUBLISH.PUBLISH_SETTING")||"发布设置"),1)]),_:1}),e.createVNode(q,null,{default:e.withCtx(()=>[e.createVNode(f,{prop:"selectedData"},{default:e.withCtx(()=>[e.createVNode(ie,{ref_key:"publishSettingsRef",ref:E,"source-type":A.value,"channel-management":D.value,modelValue:c.value.selectedData,"onUpdate:modelValue":n[4]||(n[4]=u=>c.value.selectedData=u),onValidateField:G},null,8,["source-type","channel-management","modelValue"])]),_:1})]),_:1})]),_:1},8,["model","rules"])])}}},Je=V._export_sfc(Ze,[["__scopeId","data-v-b2ada39a"]]),ce=Te.withInstall(Je);exports.API_CHANNEL_TYPES=k;exports.AUTHORIZED_CHANNEL_TYPES=ee;exports.ApiTooltip=se;exports.CHANNEL_ICON_CONFIG=z;exports.FeishuTooltip=re;exports.LIBRARY_PAGE=L;exports.OFFICIAL_LABEL=ge;exports.OPEN_STATUS_VALUE=H;exports.PUBLISH_TYPE_ICON_MAPPING=te;exports.PermissionSetting=ae;exports.PublishIcon=oe;exports.PublishSettings=ie;exports.RELEASE_CHANNEL_CONFIG=$;exports.RELEASE_CHANNEL_TYPE=t;exports.STORE_CHANNEL_TYPES=x;exports.SourcePublish=ce;exports.default=ce;exports.getChannelsByType=ne;exports.getStoreDetailType=le;exports.serviceStatus=fe;exports.serviceType=ve;exports.serviceTypeMap=F;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require('./assets/SourcePublish.css');const ce=require("./chunks/index.CkihWzK6.js"),e=require("vue"),n=require("./chunks/i18n.D-d0yyXi.js"),H=require("vue-router"),b=require("./chunks/_plugin-vue_export-helper.BHFhmbuH.js"),i=require("element-plus"),z=require("./chunks/index.6X8xsqRJ.js"),h=require("./chunks/config.4W9n_uQg.js"),ue=require("./chunks/index.CP9rhXZ5.js"),j=require("color-message-aibox-vue"),Z=require("./chunks/BackBar.CYThcqhK.js"),Ee="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAbeSURBVHic7ZztbxRFHMc/s3vX60FrTynSAi09KIK0aJEY8I32pfFVeYeJ0fIn+BeAfwFvfOE7S2JijDH62kQD7yCK1CAF5OEOigWBwvHUe77xxXDpdXfnbndvr/V6+0muk5md/c3Od3/zsLvTgZCQkJDORXjJvPeoHCmXmUTyGZAARl6G7UxGCDLArJCcyZeYSf8kMm5PdiXg3qNyxIDjUjLt9yrbCSGYWcrxuRshGwq4/2M5JQVf0/6e5pWMkBy7+K34qV6mugJOfCKPIzgR6GW1G5ITs9+IL3SHtQIenJZTSH5szVW1GYIj52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ehtTyZ178M9teLSgx+VCscDV+sC+zbB70BQxDO7n4dtLeubflY9sdQyT7NcDDfu8swNeHgpPPDDrWl4wdWiX57z0t1HxvwBl5yBi4wObe6EjFopuK+jugt4nIHfPvl1eczGsw5yg+AoiC4uaa/fBwqL5jWsNIhpc2FcQyc/BgwJ0d3r6zNrI3TfrLregqoKIXRQOWPb1TCQ/Bz/8BvMLlVfVjocFuHjZ+zMPL89EdOa+o/DtHJy9CE/GIWb7iro+HhbgVs5bu7wQykyk5CZufcliEW7eCWcA7KU95dq6lUMdB+r6hsLK8VAOdSbSjOheD4QWW42ptMBSFxCk3HIC6l7vdF2RbjYiFw5IOEEkEtAXLRWFdT8XhhZ7yTw/F1lgYApz0KVvMSRn1wdmgYS2KuqM3/+C5A60zDVF7AQ0yNIg25tUw53/KqwwwBxSFLPWPhCmMUhpbHNdUXgEV27Anp3BFzsw7ARsIyO1+EVKHfHvXbj8J+zqh1ibeawaQyzCtG1Meu+4mgBGQ1mvWsO8ZwPsGYSudbY6r0ZmMCHDtgKOn1AJ4EZVt20wujph93PQ0+3vumKR4Z39knEcFX1wSqWVavhdizwRa4edCdj2lLfzRRgb6DN3Q3IdVn44qcZRHAncwgZhoA8GtrmfIzC2ve/xVlKrjss/nlRp1fj7Z3kmscW0RluEse1Pr9yHy9PE5qNJlWoT0kjzDm/K2ffCysAiQna+yIEd26zb6fmaGX4yqVLSzgiKUWX+/KkegqnWfFMP7N0FQBYhg2K6f6vzxmVVT63Hp1S8E+IsNM+sJR6Hl4bI9m9Zuy1FIyIiIiIiIrzyPx3JLklkX69sAAAAAElFTkSuQmCC",Te={},Se={class:"style-title"};function pe(r,E){return e.openBlock(),e.createElementBlock("div",Se,[e.renderSlot(r.$slots,"default",{},void 0,!0)])}const K=b._export_sfc(Te,[["render",pe],["__scopeId","data-v-58195e4c"]]),_e={},Oe={class:"card-container"};function Ie(r,E){return e.openBlock(),e.createElementBlock("div",Oe,[e.renderSlot(r.$slots,"default",{},void 0,!0)])}const X=b._export_sfc(_e,[["render",Ie],["__scopeId","data-v-d8a76b28"]]),J=()=>{const{$request:r,$env:E}=z.getGlobalProperties();return{sourcePublish:p=>r({url:`${E.VITE_APP_AIBOX_BASE_URL}/api/v1/skillets/versions/publish`,method:"post",data:p}),getPublishVersionDetail:(p,C)=>r({url:`${E.VITE_APP_AIBOX_BASE_URL}/api/v1/skillets/versions/${p}/${C}`,method:"get"}),checkVersion:p=>r({url:`${E.VITE_APP_AIBOX_BASE_URL}/api/v1/skillets/versions/exists`,method:"get",params:p}),checkToken:()=>r({url:`${E.VITE_APP_AUTH_BASE_URL}/api/v1/api/check-token`,method:"post"})}},t={H5:"1",API:"2",AIBox:"3",AGENT_STORE:"5",FEISHU_WEB:"11",WORKFLOW_API:"4",WORKFLOW_STORE:"7",PLUGIN_API:"8",PLUGIN_STORE:"9",MCP_STORE:"10"},Q={[t.H5]:{id:t.H5,name:()=>"H5",get description(){return n.getterTText("COMMON_DICT.ENUMS.DESCRIPTION_H5")||"可通过PC或移动设备立即开始对话"},visible:!0},[t.API]:{id:t.API,name:()=>"API",get description(){return n.getterTText("COMMON_DICT.ENUMS.DESCRIPTION_API")||"可通过API方式快速集成到你的软件"},visible:!0},[t.AIBox]:{id:t.AIBox,name:r=>r===h.SOURCE_TYPE.AGENT?n.getterTText("COMMON_DICT.ENUMS.NAME_MY_AI"):n.getterTText("COMMON_DICT.ENUMS.NAME_MY_ZJ"),description:"可应用于你的智能体",visible:!0},[t.AGENT_STORE]:{id:t.AGENT_STORE,get name(){return()=>n.getterTText("COMMON_DICT.ENUMS.NAME_ZNTGC")||"智能体广场"},get description(){return n.getterTText("COMMON_DICT.ENUMS.DESCRIPTION_ZNTGC")||"分享到智能体广场,获得更多曝光"},visible:!0},[t.FEISHU_WEB]:{id:t.FEISHU_WEB,get name(){return()=>n.getterTText("COMMON_DICT.ENUMS.NAME_WEB")||"飞书网页应用"},get description(){return n.getterTText("COMMON_DICT.ENUMS.DESCRIPTION_WEB")||"在飞书客户端内访问智能体对话页面"},visible:!0},[t.WORKFLOW_API]:{id:t.WORKFLOW_API,name:()=>"API",get description(){return n.getterTText("COMMON_DICT.ENUMS.DESCRIPTION_API")||"可通过API方式快速集成到你的软件"},visible:!0},[t.WORKFLOW_STORE]:{id:t.WORKFLOW_STORE,get name(){return()=>n.getterTText("COMMON_DICT.ENUMS.NAME_ZJGC")||"组件广场"},get description(){return n.getterTText("COMMON_DICT.ENUMS.DESCRIPTION_ZJGC")||"分享到组件广场,获得更多曝光"},visible:!0},[t.PLUGIN_API]:{id:t.PLUGIN_API,name:()=>"API",get description(){return n.getterTText("COMMON_DICT.ENUMS.DESCRIPTION_API")||"可通过API方式快速集成到你的软件"},visible:!1},[t.PLUGIN_STORE]:{id:t.PLUGIN_STORE,name:()=>"AIBox Store",get description(){return n.getterTText("COMMON_DICT.ENUMS.DESCRIPTION_PLUGIN")||"分享到广场,获得更多曝光"},visible:!1},[t.MCP_STORE]:{id:t.MCP_STORE,get name(){return()=>n.getterTText("COMMON_DICT.ENUMS.NAME_ZJGC")||"组件广场"},get description(){return n.getterTText("COMMON_DICT.ENUMS.DESCRIPTION_ZJGC")||"分享到组件广场,获得更多曝光"},visible:!0}},x=[t.API,t.WORKFLOW_API,t.PLUGIN_API],V=[t.AGENT_STORE,t.WORKFLOW_STORE,t.MCP_STORE,t.PLUGIN_STORE],$=[t.H5,t.AIBox,t.AGENT_STORE,t.WORKFLOW_STORE,t.MCP_STORE],q={h5:{icon:"IconH5",iconColor:"var(--el-color-primary)",backgroundColor:"#EAF0FE"},apikey:{icon:"IconApikey",iconColor:"#822FFF",backgroundColor:"#F3EBFF"},aibox:{icon:"Bot",backgroundColor:"#EBEFFF"},store:{icon:"IconStore",iconColor:"#27C637",backgroundColor:"#EBFCDE"},feishu:{icon:"Feishu",iconColor:"#EBF5FF",backgroundColor:"#EBF5FF"}},ee={[t.H5]:"h5",[t.API]:"apikey",[t.AIBox]:"aibox",[t.WORKFLOW_API]:"apikey",[t.AGENT_STORE]:"store",[t.WORKFLOW_STORE]:"store",[t.PLUGIN_API]:"apikey",[t.PLUGIN_STORE]:"store",[t.MCP_STORE]:"store",[t.FEISHU_WEB]:"feishu"},te=(r,E)=>({[h.SOURCE_TYPE.AGENT]:[t.AIBox,t.H5,t.API,t.FEISHU_WEB,t.AGENT_STORE],[h.SOURCE_TYPE.WORKFLOW]:[t.AIBox,t.WORKFLOW_API,t.WORKFLOW_STORE],[h.SOURCE_TYPE.PLUGIN]:[t.AIBox],[h.SOURCE_TYPE.MCP]:[t.AIBox,t.MCP_STORE]}[r]||[]).map(T=>{const A=Q[T],p=E.find(C=>C.channelType==T);return p?{...A,...p,channelType:String(T)}:{...A,channelType:String(T),channelStatus:ue.PUBLISH_STATUS.UNPUBLISHED}}).filter(T=>(typeof T.visible=="function",T.visible)),D={TRUE:1,FALSE:0},w={PRIVATE:"PRIVATE",DEVELOPER:"DEVELOPER"},Ce=[{get label(){return n.getterTText("COMMON_DICT.SERVICE_TYPE.PRIVATE")},value:w.PRIVATE},{get label(){return n.getterTText("COMMON_DICT.SERVICE_TYPE.DEVELOPER")},value:w.DEVELOPER}],fe=[{get label(){return n.getterTText("COMMON_DICT.SERVICE_STATUS.IN_CALL")},value:"IN_CALL"},{get label(){return n.getterTText("COMMON_DICT.SERVICE_STATUS.NO_CONFIG")},value:"NO_CONFIG"}],U={UP_BUTTOM:{get label(){return n.getterTText("UP_DATA.UP_TEXT")},get sceneWorkFlow(){return n.getterTText("SCENEBUTTOM.SCENE_WORKFLOW")},get scenePlugin(){return n.getterTText("SCENEBUTTOM.SCENE_PLUGIN")},get sceneModmcp(){return n.getterTText("SCENEBUTTOM.SCENE_MODMCP")},get sceneArbitrarily(){return n.getterTText("SCENEBUTTOM.ARBITRARILY")},get searchText(){return n.getterTText("SCENEBUTTOM.SEARCHTEXT")},get intellectuAlagent(){return n.getterTText("SCENEBUTTOM.INTELLECTUALAGENT")},get searchWorkflow(){return n.getterTText("SCENEBUTTOM.WORKFLOW")},get searchPlugin(){return n.getterTText("SCENEBUTTOM.PLUGIN")},get searchModmcp(){return n.getterTText("SCENEBUTTOM.MODMCP")}},STOREDETAILTYPE_STORECONTENTLAYOUT:{get labelAll(){return n.getterTText("STOREDETAILTYPE_STORECONTENTLAYOUT.LABEL_ALL")},get labelTextCreation(){return n.getterTText("STOREDETAILTYPE_STORECONTENTLAYOUT.LABEL_TEXT_CREATION")},get labelEfficiencyTools(){return n.getterTText("STOREDETAILTYPE_STORECONTENTLAYOUT.LABEL_EFFICIENCY_TOOLS")},get labelMediaEntertainment(){return n.getterTText("STOREDETAILTYPE_STORECONTENTLAYOUT.LABEL_MEDIA_ENTERTAINMENT")},get labelOfficeHr(){return n.getterTText("STOREDETAILTYPE_STORECONTENTLAYOUT.LABEL_OFFICE_HR")},get labelGovernmentServices(){return n.getterTText("STOREDETAILTYPE_STORECONTENTLAYOUT.LABEL_GOVERNMENT_SERVICES")},get labelTravelSightseeing(){return n.getterTText("STOREDETAILTYPE_STORECONTENTLAYOUT.LABEL_TRAVEL_SIGHTSEEING")},get labelFinancialServices(){return n.getterTText("STOREDETAILTYPE_STORECONTENTLAYOUT.LABEL_FINANCIAL_SERVICES")}}},le=()=>[{label:U.STOREDETAILTYPE_STORECONTENTLAYOUT.labelAll,value:"0",icon:"IconType22"},{label:U.STOREDETAILTYPE_STORECONTENTLAYOUT.labelTextCreation,value:"1",icon:"IconWrite"},{label:U.STOREDETAILTYPE_STORECONTENTLAYOUT.labelEfficiencyTools,value:"3",icon:"IconEfficiency2"},{label:U.STOREDETAILTYPE_STORECONTENTLAYOUT.labelMediaEntertainment,value:"4",icon:"IconVideo"},{label:U.STOREDETAILTYPE_STORECONTENTLAYOUT.labelOfficeHr,value:"5",icon:"IconOffice"},{label:U.STOREDETAILTYPE_STORECONTENTLAYOUT.labelGovernmentServices,value:"6",icon:"IconGovernment"},{label:U.STOREDETAILTYPE_STORECONTENTLAYOUT.labelTravelSightseeing,value:"7",icon:"IconTravel"},{label:U.STOREDETAILTYPE_STORECONTENTLAYOUT.labelFinancialServices,value:"8",icon:"IconFinance"}],Ae="CMI官方",Ne={__name:"PublishIcon",props:{publishType:{type:[String,Number],default:""},size:{type:[String,Number],default:30}},setup(r){const E=r,v=Object.keys(q).reduce((T,A)=>{const p=q[A];return T[A]={...p,icon:e.shallowRef(p.icon)},T},{}),N=e.ref({});return e.onMounted(()=>{const T=ee[E.publishType]||"h5";N.value=v[T]}),(T,A)=>(e.openBlock(),e.createElementBlock("div",{class:"channel-icon flex items-center justify-center radius-8",style:e.normalizeStyle({background:N.value?.backgroundColor})},[e.createVNode(e.unref(i.ElIcon),{size:r.size,color:N.value?.iconColor},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(N.value?.icon)))]),_:1},8,["size","color"])],4))}},ne=b._export_sfc(Ne,[["__scopeId","data-v-197d4379"]]),ge={class:"permission-setting"},ve={key:1,class:"flex items-center gap-12 pd-t-16 pd-b-16"},me={class:"min-w-110 fz-14 text-left flex-shrink-0",style:{color:"var(--el-text-color-primary)"}},Re={class:"flex items-center gap-6"},he={class:"flex flex-col lh-18",style:{"align-items":"flex-start"}},Pe={class:"fz-12",style:{color:"var(--el-text-color-secondary)"}},Ue={__name:"PermissionSetting",props:{showAvailableRange:{type:Boolean,default:!0},showPermissionSetting:{type:Boolean,default:!0},detail:{type:Object,default:()=>({})}},emits:["update:detail"],setup(r,{expose:E,emit:v}){const{t:N}=n.useI18n(),T=r,A=v,p=e.ref(null),C=_=>{const I={...T.detail,openStatus:_};A("update:detail",I)},P=_=>{const I={...T.detail,allVisible:_};A("update:detail",I)},L=_=>{const I={...T.detail,visibleScope:_};A("update:detail",I)};return E({getSelectedItems:()=>{let _={openStatus:T.detail.openStatus||D.FALSE};if(p.value){const I=p.value.getSelectedItems();_.allVisible=I.allVisible,_.visibleScope=I.visibleScope}return _}}),(_,I)=>{const y=e.resolveComponent("IconTip");return e.openBlock(),e.createElementBlock("div",ge,[r.showAvailableRange?(e.openBlock(),e.createBlock(e.unref(z.AvailableRangeSetting),{key:0,"all-visible":r.detail.allVisible,"model-value":r.detail.visibleScope,class:e.normalizeClass(["pd-t-16",{"pd-b-16":!r.showPermissionSetting}]),ref_key:"availableRangeSettingRef",ref:p,"onUpdate:allVisible":P,"onUpdate:modelValue":L},null,8,["all-visible","model-value","class"])):e.createCommentVNode("",!0),r.showPermissionSetting?(e.openBlock(),e.createElementBlock("div",ve,[e.createElementVNode("div",me,[I[0]||(I[0]=e.createElementVNode("span",{class:"mg-r-2",style:{color:"var(--el-color-danger)"}},"*",-1)),e.createTextVNode(" "+e.toDisplayString(e.unref(N)("PUTRESOURCEONSHELFDIALOG_TEXT.RESOURCE_PERMISSION_SETTING"))+" ",1),e.createVNode(e.unref(i.ElTooltip),{content:e.unref(N)("PUTRESOURCEONSHELFDIALOG_TEXT.RESOURCE_PERMISSION_SETTING_TOOLTIP"),placement:"top"},{default:e.withCtx(()=>[e.createVNode(e.unref(i.ElIcon),{class:"mg-l-4",size:"14px"},{default:e.withCtx(()=>[e.createVNode(y)]),_:1})]),_:1},8,["content"])]),e.createElementVNode("div",Re,[e.createVNode(e.unref(i.ElCheckbox),{"model-value":r.detail.openStatus,"onUpdate:modelValue":C,"true-value":e.unref(D).TRUE,"false-value":e.unref(D).FALSE,class:"mg-r-0"},{default:e.withCtx(()=>[e.createElementVNode("div",he,e.toDisplayString(e.unref(N)("PUTRESOURCEONSHELFDIALOG_TEXT.FREE_RESOURCE")),1)]),_:1},8,["model-value","true-value","false-value"]),e.createElementVNode("span",Pe,e.toDisplayString(e.unref(N)("PUTRESOURCEONSHELFDIALOG_TEXT.FREE_RESOURCE_MCPKEY")),1)])])):e.createCommentVNode("",!0)])}}},oe=b._export_sfc(Ue,[["__scopeId","data-v-351bdb75"]]),ae={__name:"FeishuTooltip",props:{channelType:{type:[String,Number],required:!0}},setup(r){return(E,v)=>r.channelType===e.unref(t).FEISHU_WEB?(e.openBlock(),e.createBlock(e.unref(i.ElTooltip),{key:0,placement:"top"},{content:e.withCtx(()=>[...v[0]||(v[0]=[e.createTextVNode(" 发布成功后可在飞书工作台找到与智能体同名应用 ",-1)])]),default:e.withCtx(()=>[e.createVNode(e.unref(i.ElIcon),{size:"14px",color:"#999",style:{"margin-left":"5px"}},{default:e.withCtx(()=>[e.createVNode(e.unref(j.IconTip))]),_:1})]),_:1})):e.createCommentVNode("",!0)}},re={__name:"ApiTooltip",props:{channelType:{type:[String,Number],required:!0},isAuth:{type:Boolean,required:!0}},setup(r){const{t:E}=n.useI18n();return(v,N)=>e.unref(x).includes(r.channelType)?(e.openBlock(),e.createBlock(e.unref(i.ElTooltip),{key:0,placement:"top"},{content:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.isAuth?e.unref(E)("SOURCE_PUBLISH.PUBLISH_AUTHORIZE_MSG")||"请先完成授权":e.unref(E)("SOURCE_PUBLISH.PUBLISH_ACCESS_TOKEN_MSG")||"调用需要创建访问凭证"),1)]),default:e.withCtx(()=>[e.createVNode(e.unref(i.ElIcon),{size:"14px",color:"#999",style:{"margin-left":"5px"}},{default:e.withCtx(()=>[e.createVNode(e.unref(j.IconTip))]),_:1})]),_:1})):e.createCommentVNode("",!0)}},Le={class:"publish-settings"},ye={class:"channel-name"},be={class:"channel-title"},Be={class:"channel-title__name"},Ve={class:"channel-title__desc"},xe={key:0,class:"expand-content"},ke={class:"select-label"},Me={class:"select-label"},De={class:"select-label"},He={class:"action-container"},we={class:"select-label"},Fe={__name:"PublishSettings",props:{modelValue:{type:Array,default:()=>[]},sourceType:{type:String,default:h.SOURCE_TYPE.AGENT},channelManagement:{type:Array,default:()=>[]}},emits:["validateField","update:modelValue"],setup(r,{expose:E,emit:v}){const N=e.getCurrentInstance(),T=H.useRouter(),A=H.useRoute(),p=v,C=r,{checkToken:P}=J(),L=e.ref(null),S=e.ref(!1),_=e.ref(""),I=e.ref(""),y=e.ref(""),{t:g}=n.useI18n(),d=(()=>{let c=le();return c.shift(),c})(),B=e.computed(()=>te(C.sourceType,C.channelManagement)),F=e.computed(()=>[{type:"selection",selectable:a=>a.id==t.AIBox?!1:x.includes(a.id)?S.value:!0},{label:g("SOURCE_PUBLISH.PUBLISH_CHANNEL")||"发布渠道",prop:"name",slot:"name"},{type:"expand",prop:"expand"},{label:"",prop:"status",slot:"status",width:100},{label:"",prop:"action",slot:"action"}]),G=[{label:g("COMMON_HOOKS.SERVICE_TYPE_ENUMLIST.LABEL_1")||"专享服务",value:"PRIVATE"},{label:g("COMMON_HOOKS.SERVICE_TYPE_ENUMLIST.LABEL_2")||"开发者计算",value:"DEVELOPER"}],k=c=>{p("update:modelValue",c),p("validateField")},Y=(c,a)=>{c.allVisible=a.allVisible,c.visibleScope=a.visibleScope,c.openStatus=a.openStatus},M=async()=>{const c=await P();console.log(c,"res"),S.value=c.data||!1},W=(c,a)=>{a&&(I.value=a.bakInt,_.value=a.serviceType,o.value=a.currency);const s=B.value.filter(u=>c.includes(u.id));s.forEach(u=>{L.value?.handleToggleRowSelection(u,!0)}),e.nextTick(()=>{k(s)})},f=()=>"no-expand",l=()=>{T.push({name:"ApiManage"})},o=e.ref(""),O=e.ref([]),R=e.ref(!1);e.watch(()=>C.modelValue,c=>{const a=[];if(c&&c.find(s=>V.includes(s.id))){const s=c.find(u=>V.includes(u.id));s&&a.push(s.id),R.value=!0}else R.value=!1;c&&c.find(s=>s.id===t.FEISHU_WEB)&&a.push(t.FEISHU_WEB),O.value=a},{immediate:!0,deep:!0});const m=c=>{const a=`permissionSettingRef_${c}`,s=N?.refs?.[a];return s?s.getSelectedItems():null};return e.onMounted(()=>{M(),y.value=A.params.authType}),E({bakInt:I,serviceType:_,currency:o,handleToggleRowSelection:W,getVisibleRangeData:m}),(c,a)=>(e.openBlock(),e.createElementBlock("div",Le,[e.createVNode(Z._sfc_main,{columns:F.value,data:B.value,"on-row-key":s=>s.id,total:B.value.length,style:{width:"100%"},hasPage:!1,"show-handle-nums":1,onRowClassName:f,"expand-row-keys":O.value,"default-expand-all":!1,onOnMultiSelection:k,ref_key:"aiboxTableRef",ref:L},{name:e.withCtx(({row:s})=>[e.createElementVNode("div",ye,[e.createVNode(ne,{"publish-type":s.id,size:24},null,8,["publish-type"]),e.createElementVNode("div",be,[e.createElementVNode("p",Be,[e.createTextVNode(e.toDisplayString(s.name(r.sourceType))+" ",1),e.createVNode(re,{"channel-type":s.id,"is-auth":S.value},null,8,["channel-type","is-auth"]),e.createVNode(ae,{"channel-type":s.id},null,8,["channel-type"])]),e.createElementVNode("p",Ve,e.toDisplayString(s.description),1)])])]),expand:e.withCtx(({row:s})=>[s.id===e.unref(t).PLUGIN_STORE?(e.openBlock(),e.createElementBlock("div",xe,[e.createVNode(e.unref(i.ElSelect),{modelValue:I.value,"onUpdate:modelValue":a[0]||(a[0]=u=>I.value=u),placeholder:e.unref(g)("SOURCE_PUBLISH.DEFAULT_SELECT_MSG")||"请选择",style:{width:"200px"}},{prefix:e.withCtx(()=>[e.createElementVNode("div",ke,e.toDisplayString(e.unref(g)("SOURCE_PUBLISH.CATEGORY")||"分类"),1),a[4]||(a[4]=e.createElementVNode("div",{class:"divider"},null,-1))]),default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(d),u=>(e.openBlock(),e.createBlock(e.unref(i.ElOption),{key:u.value,label:u.label,value:u.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"]),y.value=="1"?(e.openBlock(),e.createBlock(e.unref(i.ElSelect),{key:0,modelValue:_.value,"onUpdate:modelValue":a[1]||(a[1]=u=>_.value=u),placeholder:e.unref(g)("SOURCE_PUBLISH.DEFAULT_SELECT_MSG")||"请选择",style:{width:"200px"}},{prefix:e.withCtx(()=>[e.createElementVNode("div",Me,e.toDisplayString(e.unref(g)("SOURCE_PUBLISH.SERVICE_TYPE")||"服务类型"),1),a[5]||(a[5]=e.createElementVNode("div",{class:"divider"},null,-1))]),default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(G,u=>e.createVNode(e.unref(i.ElOption),{key:u.value,label:u.label,value:u.value},null,8,["label","value"])),64))]),_:1},8,["modelValue","placeholder"])):e.createCommentVNode("",!0),_.value===e.unref(w).CURRENCY?(e.openBlock(),e.createBlock(e.unref(i.ElInputNumber),{key:1,modelValue:o.value,"onUpdate:modelValue":a[2]||(a[2]=u=>o.value=u),precision:2,style:{width:"200px"},"controls-position":"right"},{prefix:e.withCtx(()=>[e.createElementVNode("div",De,e.toDisplayString(e.unref(g)("SOURCE_PUBLISH.CONSUME_VALUE")||"消费值"),1),a[6]||(a[6]=e.createElementVNode("div",{class:"divider"},null,-1))]),_:1},8,["modelValue"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),[e.unref(t).FEISHU_WEB,...e.unref(V)].includes(s.id)?(e.openBlock(),e.createBlock(oe,{key:1,"show-permission-setting":s.id===e.unref(t).MCP_STORE,showAvailableRange:[e.unref(t).AGENT_STORE,e.unref(t).MCP_STORE].includes(String(s.id)),detail:s,ref:`permissionSettingRef_${s.id}`,"onUpdate:detail":u=>Y(s,u)},null,8,["show-permission-setting","showAvailableRange","detail","onUpdate:detail"])):e.createCommentVNode("",!0)]),status:e.withCtx(({row:s})=>[e.unref($).includes(s.id)?(e.openBlock(),e.createBlock(e.unref(i.ElTag),{key:0,type:"success"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(g)("SOURCE_PUBLISH.PUBLISH_AUTHORIZE_STATUS")||"已授权"),1)]),_:1})):e.unref(x).includes(s.id)?(e.openBlock(),e.createBlock(e.unref(i.ElTag),{key:1,type:S.value?"success":"info"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(S.value?e.unref(g)("SOURCE_PUBLISH.PUBLISH_AUTHORIZE_STATUS")||"已授权":e.unref(g)("SOURCE_PUBLISH.PUBLISH_UNAUTHORIZE_STATUS")||"未授权"),1)]),_:1},8,["type"])):e.createCommentVNode("",!0)]),action:e.withCtx(({row:s})=>[e.createElementVNode("div",He,[e.unref(x).includes(s.id)?(e.openBlock(),e.createBlock(e.unref(i.ElButton),{key:0,type:"primary",link:"",onClick:u=>l()},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(g)("SOURCE_PUBLISH.CONFIG")||"配置"),1)]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(V).slice(0,3).includes(s.id)&&r.sourceType!=e.unref(h.SOURCE_TYPE).PLUGIN&&R.value?(e.openBlock(),e.createBlock(e.unref(i.ElSelect),{key:1,modelValue:I.value,"onUpdate:modelValue":a[3]||(a[3]=u=>I.value=u),placeholder:e.unref(g)("SOURCE_PUBLISH.DEFAULT_SELECT_MSG")||"请选择",style:{width:"150px"}},{prefix:e.withCtx(()=>[e.createElementVNode("div",we,e.toDisplayString(e.unref(g)("SOURCE_PUBLISH.CATEGORY")||"分类"),1),a[7]||(a[7]=e.createElementVNode("div",{class:"divider"},null,-1))]),default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(d),u=>(e.openBlock(),e.createBlock(e.unref(i.ElOption),{key:u.value,label:u.label,value:u.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])):e.createCommentVNode("",!0)])]),_:1},8,["columns","data","on-row-key","total","expand-row-keys"])]))}},se=b._export_sfc(Fe,[["__scopeId","data-v-b1d8611d"]]),Ge={class:"publish-container",id:"source-publish-container"},Ye={class:"publish-container__back"},We={class:"publish-container__config"},Ke={class:"publish-container__config"},Xe={__name:"layout",props:{showPublishConfig:{type:Boolean,default:!0},propsSourceBnid:{type:String,default:""},propsSourceType:{type:String,default:""},propsAuthType:{type:String,default:""},businessSpace:{type:String,default:""},isBackendSystem:{type:Boolean,default:!1}},setup(r){const E=e.ref(null),v=e.ref(null),N=H.useRoute(),T=H.useRouter(),A=e.ref(!1),p=e.ref(!1),C=e.ref(""),P=e.ref(""),L=e.ref(""),{t:S}=n.useI18n(),_=r,{sourcePublish:I,checkVersion:y,getPublishVersionDetail:g}=J(),d=e.ref({versionNumber:"0.0.1",selectedData:[],showExec:1}),B=e.ref({versionNumber:[{required:!0,message:S("SOURCE_PUBLISH.VERSION_NUMBER_MSG")||"请输入版本号",trigger:"blur"},{pattern:/^\d+\.\d+\.\d+$/,message:"版本号格式必须为数字.数字.数字,如:1.0.0",trigger:"blur"},{validator:async(f,l,o)=>{if(p.value)return;p.value=!0;const{data:O}=await y({sourceType:C.value,sourceId:P.value,versionNumber:d.value.versionNumber}).finally(()=>{p.value=!1});if(O){const R=S("SOURCE_PUBLISH.VERSION_NUMBER_EXIST_MSG")||"版本号已存在";o(new Error(R))}else o()},trigger:"blur"}],selectedData:[{required:!0,message:S("SOURCE_PUBLISH.PUBLISH_CHANNEL_MSG")||"请至少选择一个发布渠道",trigger:"change"},{validator:(f,l,o)=>{if(d.value.selectedData.length===0){const O=S("SOURCE_PUBLISH.PUBLISH_CHANNEL_MSG")||"请至少选择一个发布渠道";o(new Error(O))}else o()},trigger:"change"}]}),F=()=>{v.value?.validateField("selectedData")},G=f=>{const l=f.replace(/[^0-9.]/g,""),o=l.split(".");o.length>3?d.value.versionNumber=o.slice(0,3).join("."):d.value.versionNumber=l},k=async()=>{const f=await Y();if(!f)return;A.value=!0;const{code:l}=await I(f).finally(()=>{A.value=!1});if(l==0){const o=window.history.state;o&&T.replace({path:o.back,query:{active:"publish",from:N.query.from}})}},Y=async()=>{if(await v.value.validate()){const l=d.value.selectedData.map(m=>{const c={channelType:Number(m.id)},a=E.value.getVisibleRangeData(m.id);return a&&(c.visibleScope=a.visibleScope,c.allVisible=a.allVisible,c.openStatus=a.openStatus),c}),o={...d.value,channels:l,sourceType:C.value,sourceId:P.value,workspaceBnid:_.businessSpace||""};C.value==h.SOURCE_TYPE.WORKFLOW&&(o.forcePublish=!0);let O=!1;const R=d.value.selectedData.map(m=>m.id);if(O=R.find(m=>[t.AGENT_STORE,t.WORKFLOW_STORE,t.PLUGIN_STORE,t.MCP_STORE].includes(m)),O){if(o.bakInt=E.value.bakInt,!o.bakInt){const m=S("SOURCE_PUBLISH.PUBLISH_CATEGORY_MSG")||"请选择分类";return i.ElMessage.warning(m),!1}if(R.includes(t.PLUGIN_STORE)&&L.value=="1"&&(o.serviceType=E.value.serviceType,!o.serviceType)){const m=S("SOURCE_PUBLISH.PUBLISH_SERVICE_TYPE_MSG")||"请选择服务类型";return i.ElMessage.warning(m),!1}}return delete o.selectedData,o}else return console.log("error submit!"),!1},M=e.ref([]),W=async()=>{console.log(C.value,P.value,"sourceType.value,sourceBnid.value,");const{data:f}=await g(C.value,P.value);if(f){const l=f.versionNumber.split(".");l.length===3?l[2]=parseInt(l[2])+1:l.push("1"),d.value.versionNumber=l.join("."),d.value.versionDesc=f.versionDesc,d.value.showExec=f.showExec,d.value.showKnowledge=f.showKnowledge,E.value.bakInt=f.bakInt}M.value=f?.channels||[],e.nextTick(()=>{let l=[];const o={};if(f?.channels.forEach(O=>{l.push(String(O.channelType)),(O.bakInt||O.bakInt==0)&&(o.bakInt=String(O.bakInt)),(O.serviceType||O.serviceType==0)&&(o.serviceType=String(O.serviceType)),(O.currency||O.currency==0)&&(o.currency=O.currency)}),l.length==0)C.value==h.SOURCE_TYPE.AGENT?l=[t.H5,t.AIBox]:l=[t.AIBox];else{const O=l.find(R=>R==t.AIBox);C.value==h.SOURCE_TYPE.AGENT&&!O&&l.push(t.AIBox)}E.value?.handleToggleRowSelection(l,o)})};return e.onMounted(()=>{console.log("props",_),C.value=_.propsSourceType,L.value=_.propsAuthType,P.value=_.propsSourceBnid,W()}),(f,l)=>(e.openBlock(),e.createElementBlock("div",Ge,[e.createVNode(Z._sfc_main$1,{"back-bar-style":"#f7f8fa"},{default:e.withCtx(()=>[e.createElementVNode("div",Ye,[e.createElementVNode("span",null,e.toDisplayString(e.unref(S)("SOURCE_PUBLISH.PUBLISH")||"发布"),1),e.createVNode(e.unref(i.ElButton),{type:"primary",class:"publish-container__sure",onClick:k,loading:A.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(S)("SOURCE_PUBLISH.SURE_PUBLISH")||"确认发布"),1)]),_:1},8,["loading"])])]),_:1}),e.createVNode(e.unref(i.ElForm),{ref_key:"formRef",ref:v,model:d.value,"label-width":"80px",class:"publish-container__form",rules:B.value,"label-position":"top",onSubmit:l[5]||(l[5]=e.withModifiers(()=>{},["prevent"]))},{default:e.withCtx(()=>[e.createVNode(K,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(S)("SOURCE_PUBLISH.PUBLISH_RECORD")||"发布记录"),1)]),_:1}),e.createVNode(X,null,{default:e.withCtx(()=>[e.createVNode(e.unref(i.ElFormItem),{label:e.unref(S)("SOURCE_PUBLISH.VERSION_NUMBER")||"版本号",prop:"versionNumber"},{default:e.withCtx(()=>[e.createVNode(e.unref(i.ElInput),{modelValue:d.value.versionNumber,"onUpdate:modelValue":l[0]||(l[0]=o=>d.value.versionNumber=o),placeholder:e.unref(S)("SOURCE_PUBLISH.VERSION_PLACEHOLDER")||"版本示例:0.0.1",onInput:G},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(e.unref(i.ElFormItem),{label:e.unref(S)("SOURCE_PUBLISH.VERSION_DESC")||"版本描述",prop:"versionDesc"},{default:e.withCtx(()=>[e.createVNode(e.unref(i.ElInput),{type:"textarea",modelValue:d.value.versionDesc,"onUpdate:modelValue":l[1]||(l[1]=o=>d.value.versionDesc=o),rows:4,maxlength:"2000","show-word-limit":"",placeholder:e.unref(S)("SOURCE_PUBLISH.VERSION_DESC")||"版本描述"},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1}),r.showPublishConfig?(e.openBlock(),e.createBlock(K,{key:0},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(S)("SOURCE_PUBLISH.PUBLISH_CONFIG")||"发布配置"),1)]),_:1})):e.createCommentVNode("",!0),r.showPublishConfig?(e.openBlock(),e.createBlock(X,{key:1},{default:e.withCtx(()=>[e.createVNode(e.unref(i.ElFormItem),{prop:"showExec"},{default:e.withCtx(()=>[e.createElementVNode("div",We,[e.createElementVNode("p",null,[l[6]||(l[6]=e.createElementVNode("img",{src:Ee,width:"20",height:"20",alt:""},null,-1)),e.createElementVNode("span",null,e.toDisplayString(e.unref(S)("SOURCE_PUBLISH.SHOW_EXECUTE_PROCESS")||"展示执行过程"),1)]),e.createVNode(e.unref(i.ElSwitch),{modelValue:d.value.showExec,"onUpdate:modelValue":l[2]||(l[2]=o=>d.value.showExec=o),"active-value":1,"inactive-value":0},null,8,["modelValue"])])]),_:1}),e.createVNode(e.unref(i.ElFormItem),{prop:"showKnowledge"},{default:e.withCtx(()=>[e.createElementVNode("div",Ke,[e.createElementVNode("p",null,[l[7]||(l[7]=e.createElementVNode("img",{src:de,width:"20",height:"20",alt:""},null,-1)),e.createElementVNode("span",null,e.toDisplayString(e.unref(S)("SOURCE_PUBLISH.SHOW_RECALL_KNOWLEDGE")||"展示召回的知识库内容"),1)]),e.createVNode(e.unref(i.ElSwitch),{modelValue:d.value.showKnowledge,"onUpdate:modelValue":l[3]||(l[3]=o=>d.value.showKnowledge=o),"active-value":1,"inactive-value":0},null,8,["modelValue"])])]),_:1})]),_:1})):e.createCommentVNode("",!0),e.createVNode(K,null,{default:e.withCtx(()=>[l[8]||(l[8]=e.createElementVNode("span",{class:"publish-container__required"},"*",-1)),e.createTextVNode(e.toDisplayString(e.unref(S)("SOURCE_PUBLISH.PUBLISH_SETTING")||"发布设置"),1)]),_:1}),e.createVNode(X,null,{default:e.withCtx(()=>[e.createVNode(e.unref(i.ElFormItem),{prop:"selectedData"},{default:e.withCtx(()=>[e.createVNode(se,{ref_key:"publishSettingsRef",ref:E,"source-type":C.value,"channel-management":M.value,modelValue:d.value.selectedData,"onUpdate:modelValue":l[4]||(l[4]=o=>d.value.selectedData=o),onValidateField:F},null,8,["source-type","channel-management","modelValue"])]),_:1})]),_:1})]),_:1},8,["model","rules"])]))}},qe=b._export_sfc(Xe,[["__scopeId","data-v-5f779e86"]]),ie=ce.withInstall(qe);exports.API_CHANNEL_TYPES=x;exports.AUTHORIZED_CHANNEL_TYPES=$;exports.ApiTooltip=re;exports.CHANNEL_ICON_CONFIG=q;exports.FeishuTooltip=ae;exports.LIBRARY_PAGE=U;exports.OFFICIAL_LABEL=Ae;exports.OPEN_STATUS_VALUE=D;exports.PUBLISH_TYPE_ICON_MAPPING=ee;exports.PermissionSetting=oe;exports.PublishIcon=ne;exports.PublishSettings=se;exports.RELEASE_CHANNEL_CONFIG=Q;exports.RELEASE_CHANNEL_TYPE=t;exports.STORE_CHANNEL_TYPES=V;exports.SourcePublish=ie;exports.default=ie;exports.getChannelsByType=te;exports.getStoreDetailType=le;exports.serviceStatus=fe;exports.serviceType=Ce;exports.serviceTypeMap=w;
|
package/lib/Table.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("./chunks/index.CkihWzK6.js"),e=require("./chunks/BackBar.CYThcqhK.js"),a=t.withInstall(e._sfc_main);exports.BackBar=e._sfc_main$1;exports.TableBtns=e.TableBtns;exports.AiboxTable=a;exports.default=a;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.dialogue[data-v-
|
|
1
|
+
.dialogue[data-v-b4885355],.autonomously[data-v-b4885355]{height:22px;line-height:22px;border-radius:4px;text-align:center;font-weight:400;font-size:12px;white-space:nowrap}.dialogue[data-v-b4885355]{width:52px;background:#f4ffee;border:1px solid #aeed96;color:#389e0d}.autonomously[data-v-b4885355]{background:#e5ebff;border:1px solid #99b0ff;width:64px;color:var(--el-color-primary)}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.table-btns[data-v-552341e3]{display:flex;align-items:center;cursor:pointer;color:var(--el-color-primary)}.table-btns[data-v-552341e3]>*:not(:first-child){margin-left:10px}.table-btns .btn-box[data-v-552341e3]{display:flex;justify-content:center;align-items:center;width:24px;height:24px;outline:none;border-radius:4px}.table-btns .btn-box[data-v-552341e3]:hover{background:#ecedee}.custom-dropdown{border-radius:8px;background:#fff;box-shadow:0 6px 40px 16px #00000005,0 4px 28px #00000005,0 3px 16px -8px #0000000a}.custom-dropdown .el-dropdown-menu{min-width:106px;padding:5px 4px!important;border-radius:8px}.custom-dropdown .el-dropdown-menu .el-dropdown-menu__item{font-size:14px;color:var(--color-text-base);border-radius:4px}.custom-dropdown .el-dropdown-menu .el-dropdown-menu__item:not(.is-disabled):hover,.custom-dropdown .el-dropdown-menu .el-dropdown-menu__item:not(.is-disabled):focus{background-color:#f5f5f5}.custom-dropdown .el-dropdown-menu .el-dropdown-menu__item.is-delete{color:#f5222d}.aibox-table{background:#fff;border-radius:4px;position:relative}.aibox-table__handle{height:54px;box-sizing:border-box;padding:0 20px 18px;display:flex;justify-content:space-between;align-items:center}.aibox-table__handle .handle-left,.aibox-table__handle .handle-right{display:flex;align-items:center}.aibox-table__pages{position:absolute;bottom:-45px;right:0}.aibox-table__page{margin-top:10px;display:flex;justify-content:end;margin-bottom:10px}.aibox-table__header{height:55px;line-height:55px;font-family:"Alibaba PuHuiTi 3-55";font-weight:700;font-size:14px;color:var(--color-text-base)}.aibox-table__header.secondary-header .el-table__cell{background-color:#fafafa!important}.aibox-table .el-table__cell{padding:0}.aibox-table__slot-wrapper{width:100%}.el-table{--el-table-row-hover-bg-color: #fafafa}.el-table .cell{padding:16px;line-height:1.5;min-height:48px}.row-click-style .el-table__row:hover{cursor:pointer}.aibox-table.no-pagination .el-table--border:after,.aibox-table.no-pagination .el-table--border:before,.aibox-table.no-pagination .el-table--border .el-table__inner-wrapper:after,.aibox-table.no-pagination .el-table__inner-wrapper:before{background-color:transparent!important}.back-bar{box-sizing:border-box;display:flex;align-items:center;width:100%;padding:12px 20px;height:64px;background:#f7f8fa;border-bottom:1px solid #f0f0f0}.back-bar__icon{display:flex;align-items:center;justify-content:center;height:18px;width:18px;border-radius:4px;margin-right:10px;cursor:pointer}.back-bar__icon:hover{background:#f0f0f0}.back-bar .back-bar__title{font-weight:700;font-size:16px;color:#262626;line-height:22px}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@charset "UTF-8";.style-title[data-v-58195e4c]{font-weight:500;font-size:18px;margin:24px 0 16px}.card-container[data-v-d8a76b28]{padding:16px;background:#fff;border-radius:10px;border:1px solid #f0f0f0}.channel-icon[data-v-
|
|
1
|
+
@charset "UTF-8";.style-title[data-v-58195e4c]{font-weight:500;font-size:18px;margin:24px 0 16px}.card-container[data-v-d8a76b28]{padding:16px;background:#fff;border-radius:10px;border:1px solid #f0f0f0}.channel-icon[data-v-197d4379]{width:34px;height:34px}.gap-6[data-v-351bdb75]{gap:6px}.gap-12[data-v-351bdb75]{gap:12px}.publish-settings[data-v-b1d8611d]{width:100%}.publish-settings .channel-name[data-v-b1d8611d]{display:flex;align-items:center}.publish-settings .channel-name .channel-title[data-v-b1d8611d]{margin-left:10px;line-height:18px}.publish-settings .channel-name .channel-title__name[data-v-b1d8611d]{font-size:14px}.publish-settings .channel-name .channel-title__desc[data-v-b1d8611d]{font-size:13px;color:var(--color-text-light1)}.publish-settings .action-container[data-v-b1d8611d]{text-align:right;width:100%;display:flex;justify-content:flex-end;align-items:center;gap:10px}.publish-settings .select-label[data-v-b1d8611d]{color:#262626}.publish-settings .divider[data-v-b1d8611d]{margin:0 2px;height:12px;border-right:1px solid #f0f0f0}.publish-settings .expand-content[data-v-b1d8611d]{padding:20px 16px;display:flex;flex-direction:column;gap:20px;background:#fff}.publish-settings[data-v-b1d8611d] .no-expand .el-table__expand-icon{display:none!important}.publish-container[data-v-5f779e86]{background-color:#f7f8fa;height:100%}.publish-container__back[data-v-5f779e86]{width:100%;display:flex;align-items:center;justify-content:space-between}.publish-container__form[data-v-5f779e86]{width:800px;margin:0 auto;height:calc(100vh - 70px);overflow:auto}.publish-container__form .channel-name[data-v-5f779e86]{display:flex;align-items:center}.publish-container__form .channel-name .channel-icon[data-v-5f779e86]{display:flex;justify-content:center;align-items:center;border-radius:8px;width:34px;height:34px}.publish-container__form .channel-name .channel-title[data-v-5f779e86]{margin-left:10px;line-height:18px}.publish-container__form .channel-name .channel-title__name[data-v-5f779e86]{font-size:14px}.publish-container__form .channel-name .channel-title__desc[data-v-5f779e86]{font-size:13px;color:var(--color-text-light1)}.publish-container__config[data-v-5f779e86]{width:100%;padding:7px 20px;display:flex;align-items:center;justify-content:space-between;background:#fafafa;border-radius:4px}.publish-container__config p[data-v-5f779e86]{display:flex;align-items:center}.publish-container__config p img[data-v-5f779e86]{margin-right:10px}.publish-container__required[data-v-5f779e86]{color:var(--el-color-danger);font-size:14px}.publish-container[data-v-5f779e86] .el-form .el-form-item:last-child{margin-bottom:0}.publish-container[data-v-5f779e86] .card-container:last-child{padding:0 16px 16px}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";require('../assets/BackBar.css');const e=require("vue"),B=require("./i18n.D-d0yyXi.js"),x=require("color-message-aibox-vue"),n=require("element-plus"),R=require("./_plugin-vue_export-helper.BHFhmbuH.js"),A=require("vue-router"),O={class:"table-btns"},F={class:"btn-box"},z={__name:"TableBtns",props:{config:{type:Array,required:!0,default(){return[]}},showNums:{type:Number,default:0,validator(a){return a%1===0&&a>=0}},row:{type:Object,default:()=>({})}},setup(a){const p=a,{t:k}=B.useI18n(),c=(s,f)=>{s&&s(f)},u=e.computed(()=>p.config.filter(s=>{const f=s.permission!==void 0?s.permission:!0;let r=!0;return s.dataPermission&&(r=s.dataPermission),f&&r})),h=e.computed(()=>({show:u.value.slice(0,p.showNums),hide:u.value.slice(p.showNums)}));return(s,f)=>(e.openBlock(),e.createElementBlock("div",O,[u.value.length>a.showNums?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value.show,(r,w)=>(e.openBlock(),e.createBlock(e.unref(n.ElButton),{key:w,type:"primary",link:"",onClick:d=>c(r.fn,r.row)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.label),1)]),_:2},1032,["onClick"]))),128)),e.createVNode(e.unref(n.ElDropdown),{"popper-class":"custom-dropdown",trigger:"click"},{dropdown:e.withCtx(()=>[e.createVNode(e.unref(n.ElDropdownMenu),{style:{padding:"14px 0"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value.hide,(r,w)=>(e.openBlock(),e.createBlock(e.unref(n.ElDropdownItem),{key:w,class:e.normalizeClass({"is-delete":r.label===e.unref(k)("COMMON_BUTTON.DELETE_TEXT")||r.label===e.unref(k)("COMMON_BUTTON.DISABLE_TEXT")||r.isDanger}),onClick:d=>c(r.fn,r.row)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.label),1)]),_:2},1032,["class","onClick"]))),128))]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("div",F,[e.createVNode(e.unref(n.ElIcon),{style:{"font-size":"20px",color:"#999"}},{default:e.withCtx(()=>[e.createVNode(e.unref(x.IconMore))]),_:1})])]),_:1})],64)):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(u.value,(r,w)=>(e.openBlock(),e.createBlock(e.unref(n.ElButton),{type:"primary",link:"",key:w,onClick:d=>c(r.fn,r.row)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.label),1)]),_:2},1032,["onClick"]))),128))]))}},m=R._export_sfc(z,[["__scopeId","data-v-552341e3"]]),L={key:0,class:"aibox-table__handle"},H={class:"handle-left"},W={class:"handle-right"},I={class:"aibox-table__content"},q={key:0},j={class:"aibox-table__slot-wrapper"},K={class:"aibox-table__slot-wrapper"},X=["innerHTML"],U=["innerHTML"],G={class:"aibox-table__slot-wrapper"},Y=["onClick"],Z={class:"aibox-table__slot-wrapper"},J=["onClick"],Q={class:"aibox-table__slot-wrapper"},ee={class:"aibox-table__slot-wrapper"},le={key:0,class:"aibox-table__slot-wrapper"},te={__name:"AiboxTable",props:{columns:{type:Array,default:()=>[]},data:{type:Array,default:()=>[]},total:{type:[String,Number],default:0},hasPage:{type:Boolean,default:!0},onRowKey:{type:Function,default:()=>{}},onRowClassName:{type:Function,default:()=>{}},maxHeight:{type:[String,Number],default:null},isLoading:{type:Boolean,default:!1},pages:{type:Object,default:()=>({page:1,size:10})},showChangeSize:{type:Boolean,default:!0},isCustomEmpty:{type:Boolean,default:!1},hasBorder:{type:Boolean,default:!1},hasHeaderHandle:{type:Boolean,default:!1},isSecondaryHeader:{type:Boolean,default:!1},defaultSort:{type:Object},spanMethod:{type:Function,default:()=>{}},showSummary:{type:Boolean,default:!1},summaryMethod:{type:Function,default:()=>[]},showHandleNums:{type:Number,default:0},selectionType:{type:String,default:"checkbox"},expandRowKeys:{type:Array,default:()=>[]},isCanRowClick:{type:Boolean,default:!1},isPagePostion:{type:Boolean,default:!0},treeProps:{type:Object,default:()=>({children:"children",hasChildren:"hasChildren"})},defaultExpandAll:{type:Boolean,default:!0}},emits:["onPageChange","onMultiSelection","onSortChange","onCellDblclick","onRowClick"],setup(a,{expose:p,emit:k}){const c=a,{t:u}=B.useI18n(),h=e.ref(null),s=e.ref([]),f=e.computed(()=>typeof c.total=="string"?Number(c.total):c.total),r=e.computed(()=>c.showChangeSize?"total, sizes, prev, pager, next, jumper":"total, prev, pager, next, jumper"),w=e.computed(()=>f.value>10&&c.hasPage),d=k,E=()=>!0,S=o=>c.onRowKey(o,i=>i),_=o=>c.onRowClassName(o),N=o=>{d("onPageChange",{...c.pages,page:o})},v=o=>{d("onPageChange",{page:1,size:o})},T=o=>{c.selectionType!=="radio"&&d("onMultiSelection",o)},y=o=>{if(c.selectionType==="radio"){const i=s.value;if(C(),i.length==1){const[l]=i,t=l.id!==o.id;t?(s.value=[o],d("onMultiSelection",[o])):(s.value=[],d("onMultiSelection",[])),g(o,t)}else g(o,!0),s.value=[o],d("onMultiSelection",[o])}},C=()=>{h.value?.clearSelection(),d("onMultiSelection",[])},V=()=>{h.value?.clearSort()},$=o=>{d("onSortChange",o)},M=(o,i,l,t)=>{d("onCellDblclick",o,i,l,t)},D=o=>{c.selectionType==="radio"&&y(o)},P=(o,i,l)=>{i?.type==="action"||!c.isCanRowClick||d("onRowClick",o,i,l)},g=(o,i)=>{h.value?.toggleRowSelection(o,i)};return p({handleClearSelection:C,handleToggleRowSelection:g,clearSort:V}),(o,i)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([{"row-click-style":a.isCanRowClick,"no-pagination":!w.value},"aibox-table"])},[a.hasHeaderHandle?(e.openBlock(),e.createElementBlock("div",L,[e.createElementVNode("div",H,[e.renderSlot(o.$slots,"handleLeft")]),e.createElementVNode("div",W,[e.renderSlot(o.$slots,"handleRight")])])):e.createCommentVNode("",!0),e.createElementVNode("div",I,[e.createVNode(e.unref(n.ElTable),{ref_key:"aiboxTable",ref:h,"element-loading-text":e.unref(u)("COMMON_DATA.LOADING_SUFFIX"),"tree-props":a.treeProps,"header-row-class-name":a.isSecondaryHeader?"aibox-table__header secondary-header":"aibox-table__header","row-class-name":_,data:a.data,border:a.hasBorder,style:{width:"100%"},"row-key":S,height:a.maxHeight,"default-sort":a.defaultSort,"span-method":a.spanMethod,"expand-row-keys":a.expandRowKeys,onSelectionChange:T,onSortChange:$,onCellDblclick:M,onCurrentChange:y,"show-summary":a.showSummary,"summary-method":a.summaryMethod,onSelect:D,onRowClick:P,"default-expand-all":a.defaultExpandAll},{empty:e.withCtx(()=>[a.isCustomEmpty?(e.openBlock(),e.createElementBlock("div",le,[e.renderSlot(o.$slots,"customEmpty")])):(e.openBlock(),e.createBlock(e.unref(n.ElEmpty),{key:1,description:e.unref(u)("COMMON_DATA.EMPTY"),"image-size":80},null,8,["description"]))]),default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.columns,l=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[l.type==="selection"?(e.openBlock(),e.createBlock(e.unref(n.ElTableColumn),{key:l.type,type:"selection",fixed:"left",width:l.width||"50px","reserve-selection":!0,selectable:l.selectable||E},null,8,["width","selectable"])):l.type==="index"?(e.openBlock(),e.createBlock(e.unref(n.ElTableColumn),{key:`${l.type-l.label}`,type:"index",label:e.unref(u)("COMMON_DATA.SNO_INDEX"),fixed:"left",width:l.width||"100px"},{default:e.withCtx(t=>[a.isLoading?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",q,e.toDisplayString((a.pages.page-1)*a.pages.size+t.$index+1),1))]),_:1},8,["label","width"])):l.slot?(e.openBlock(),e.createBlock(e.unref(n.ElTableColumn),{align:l.align||"left",key:l.prop,prop:l.prop,label:l.label,width:l.width,"min-width":l.minWidth,"label-class-name":"label-space-style","class-name":"multi-row",fixed:l.fixed,sortable:l.sortable,"show-overflow-tooltip":l.showOverflowTooltip},e.createSlots({default:e.withCtx(t=>[e.createElementVNode("div",K,[e.renderSlot(o.$slots,l.slot,{row:t.row,index:t.$index,minWidth:l.minWidth})])]),_:2},[l.headerSlot?{name:"header",fn:e.withCtx(()=>[e.createElementVNode("div",j,[e.renderSlot(o.$slots,l.headerSlot,{item:l,minWidth:l.minWidth})])]),key:"0"}:void 0]),1032,["align","prop","label","width","min-width","fixed","sortable","show-overflow-tooltip"])):l.callback?(e.openBlock(),e.createBlock(e.unref(n.ElTableColumn),{align:l.align||"left",key:l.callback,prop:l.prop,label:l.label,width:l.width,"min-width":l.minWidth,"show-overflow-tooltip":"",fixed:l.fixed,sortable:l.sortable},{default:e.withCtx(t=>[e.createElementVNode("span",{innerHTML:l.callback&&l.callback(t.row)},null,8,X)]),_:2},1032,["align","prop","label","width","min-width","fixed","sortable"])):l.type==="multistage"?(e.openBlock(),e.createBlock(e.unref(n.ElTableColumn),{key:`${l.prop}`,label:l.label,prop:l.prop,width:l.width,"min-width":l.minWidth,"show-overflow-tooltip":"",align:l.align||"left","header-align":l.headerAlign||"left"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.children,t=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[t.callback?(e.openBlock(),e.createBlock(e.unref(n.ElTableColumn),{key:t.callback,prop:t.prop,label:t.label,"min-width":t.minWidth,"show-overflow-tooltip":""},{default:e.withCtx(b=>[e.createElementVNode("span",{innerHTML:t.callback&&t.callback(b.row)},null,8,U)]),_:2},1032,["prop","label","min-width"])):t.slot?(e.openBlock(),e.createBlock(e.unref(n.ElTableColumn),{key:t.prop,"min-width":t.minWidth,prop:t.prop,label:t.label},{default:e.withCtx(b=>[e.createElementVNode("div",G,[e.renderSlot(o.$slots,t.slot,{row:b.row,column:b.column,index:b.$index})])]),_:2},1032,["min-width","prop","label"])):t.custom?(e.openBlock(),e.createBlock(e.unref(n.ElTableColumn),{key:`${t.prop}`,prop:t.prop,label:t.label,"min-width":t.minWidth,"show-overflow-tooltip":""},{header:e.withCtx(()=>[e.createElementVNode("span",{onClick:()=>t.headerClick({parent:l.label,...t}),style:{color:"#5b9bd1",cursor:"pointer"}},e.toDisplayString(t.label),9,Y)]),default:e.withCtx(b=>[e.createElementVNode("div",Z,[e.renderSlot(o.$slots,"custom",{data:{col:{parent:l.label,...t},row:b.row}})])]),_:2},1032,["prop","label","min-width"])):(e.openBlock(),e.createBlock(e.unref(n.ElTableColumn),{key:`${t.prop}-${t.label}`,prop:t.prop,label:t.label,width:t.width,"min-width":t.minWidth,"show-overflow-tooltip":"","header-align":t.headerAlign?t.headerAlign:"left",align:t.align?t.align:"left"},null,8,["prop","label","width","min-width","header-align","align"]))],64))),256))]),_:2},1032,["label","prop","width","min-width","align","header-align"])):l.custom?(e.openBlock(),e.createBlock(e.unref(n.ElTableColumn),{key:`${l.prop}-${l.custom}`,prop:l.prop,label:l.label,"min-width":l.minWidth,"show-overflow-tooltip":""},{header:e.withCtx(()=>[e.createElementVNode("span",{onClick:()=>l.headerClick({parent:"",...l}),style:{color:"#5b9bd1",cursor:"pointer"}},e.toDisplayString(l.label),9,J)]),default:e.withCtx(t=>[e.createElementVNode("div",Q,[e.renderSlot(o.$slots,"custom",{data:{col:{parent:"",...l},row:t.row}})])]),_:2},1032,["prop","label","min-width"])):l.type==="action"?(e.openBlock(),e.createBlock(e.unref(n.ElTableColumn),{key:`${l.prop-Math.random()}`,label:l.label,width:l.width,type:"action",fixed:"right"},{default:e.withCtx(t=>[l?.config?.(t.row)?.length?(e.openBlock(),e.createBlock(m,{key:0,"show-nums":a.showHandleNums,config:l.config(t.row,t.$index),row:t.row},null,8,["show-nums","config","row"])):e.createCommentVNode("",!0)]),_:2},1032,["label","width"])):l.type==="expand"?(e.openBlock(),e.createBlock(e.unref(n.ElTableColumn),{type:"expand",key:"expand"+l.prop,width:l.width},{default:e.withCtx(t=>[e.createElementVNode("div",ee,[e.renderSlot(o.$slots,"expand",{row:t.row,column:t.column})])]),_:3},8,["width"])):(e.openBlock(),e.createBlock(e.unref(n.ElTableColumn),{key:`${l.prop-l.label}`,prop:l.prop,label:l.label,width:l.width,"min-width":l.minWidth,fixed:l.fixed,sortable:l.sortable,"show-overflow-tooltip":"",align:l.align||"left"},e.createSlots({_:2},[l.headerSlot?{name:"header",fn:e.withCtx(()=>[e.renderSlot(o.$slots,l.headerSlot,{item:l,minWidth:l.minWidth})]),key:"0"}:void 0]),1032,["prop","label","width","min-width","fixed","sortable","align"]))],64))),256))]),_:3},8,["element-loading-text","tree-props","header-row-class-name","data","border","height","default-sort","span-method","expand-row-keys","show-summary","summary-method","default-expand-all"])]),f.value>10&&a.hasPage?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass([a.isPagePostion?"aibox-table__pages":"aibox-table__page"])},[e.createVNode(e.unref(n.ElPagination),{layout:r.value,"current-page":a.pages.page,"page-sizes":[10,20,50,100],"page-size":a.pages.size,total:f.value,onSizeChange:v,onCurrentChange:N},null,8,["layout","current-page","page-size","total"])],2)):e.createCommentVNode("",!0)],2))}},oe={class:"back-bar__icon"},ae={key:0,class:"back-bar__title"},ne={__name:"BackBar",props:{goBackFn:{type:Function,default:null},backBarStyle:{type:String,default:"#fff"},title:{type:String,default:""}},setup(a){const p=a,k=A.useRouter(),c=()=>{p.goBackFn?p.goBackFn():k.back()};return(u,h)=>(e.openBlock(),e.createElementBlock("div",{class:"back-bar",style:e.normalizeStyle({"background-color":a.backBarStyle})},[e.createElementVNode("div",oe,[e.createVNode(e.unref(n.ElIcon),{onClick:e.withModifiers(c,["stop"])},{default:e.withCtx(()=>[e.createVNode(e.unref(x.IconZuo))]),_:1})]),e.renderSlot(u.$slots,"default"),a.title?(e.openBlock(),e.createElementBlock("div",ae,e.toDisplayString(a.title),1)):e.createCommentVNode("",!0)],4))}};exports.TableBtns=m;exports._sfc_main=te;exports._sfc_main$1=ne;
|