china-mobile-international-custom-components 0.0.40 → 0.0.42

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/es/ApplicationTypeTag.mjs +1 -1
  2. package/es/AutoShowTooltip.mjs +92 -0
  3. package/es/AvailableRangePreview.mjs +1 -1
  4. package/es/AvailableRangeSetting.mjs +266 -11
  5. package/es/CommonTagsList.mjs +200 -0
  6. package/es/DialogContainer.mjs +130 -0
  7. package/es/FileUploader.mjs +255 -0
  8. package/es/ParameterTable.mjs +2303 -0
  9. package/es/SourcePublish.mjs +471 -820
  10. package/es/Table.mjs +6 -6
  11. package/es/assets/AutoShowTooltip.css +1 -0
  12. package/es/assets/AvailableRangeSetting.css +1 -0
  13. package/es/assets/BackBar.css +1 -1
  14. package/es/assets/CommonTagsList.css +1 -0
  15. package/es/assets/DialogContainer.css +1 -0
  16. package/es/assets/FileUploader.css +1 -0
  17. package/es/assets/ParameterTable.css +1 -0
  18. package/es/assets/SourcePublish.css +1 -1
  19. package/es/assets/index2.css +1 -1
  20. package/es/chunks/BackBar.DY42HcZy.js +601 -0
  21. package/es/chunks/{BackBar.DwhmSL-a.js → BackBar.zjPh_z_w.js} +96 -96
  22. package/es/chunks/config.JrGX09T5.js +435 -0
  23. package/es/chunks/{i18n.DUrvNBQz.js → i18n.CfMhDOdX.js} +8 -8
  24. package/es/chunks/index.D1cu8OUn.js +260 -0
  25. package/es/chunks/index.DENagLDS.js +313 -0
  26. package/es/chunks/index.DjDvyGXt.js +313 -0
  27. package/es/chunks/request.24c3shPx.js +5 -0
  28. package/es/index.mjs +184 -130
  29. package/lib/ApplicationTypeTag.js +1 -1
  30. package/lib/AutoShowTooltip.js +1 -0
  31. package/lib/AvailableRangePreview.js +1 -1
  32. package/lib/AvailableRangeSetting.js +1 -1
  33. package/lib/CommonTagsList.js +1 -0
  34. package/lib/DialogContainer.js +1 -0
  35. package/lib/FileUploader.js +1 -0
  36. package/lib/ParameterTable.js +1 -0
  37. package/lib/SourcePublish.js +1 -1
  38. package/lib/Table.js +1 -1
  39. package/lib/assets/AutoShowTooltip.css +1 -0
  40. package/lib/assets/AvailableRangeSetting.css +1 -0
  41. package/lib/assets/BackBar.css +1 -1
  42. package/lib/assets/CommonTagsList.css +1 -0
  43. package/lib/assets/DialogContainer.css +1 -0
  44. package/lib/assets/FileUploader.css +1 -0
  45. package/lib/assets/ParameterTable.css +1 -0
  46. package/lib/assets/SourcePublish.css +1 -1
  47. package/lib/assets/index2.css +1 -1
  48. package/lib/chunks/BackBar.BL8repFN.js +1 -0
  49. package/lib/chunks/BackBar.By7ouDgL.js +1 -0
  50. package/lib/chunks/config.CL0cmPQ6.js +1 -0
  51. package/lib/chunks/index.5Su4CrC-.js +1 -0
  52. package/lib/chunks/index.B_esKpWv.js +1 -0
  53. package/lib/chunks/index.zQ1SfvBa.js +1 -0
  54. package/lib/chunks/request.D8T4MgGX.js +1 -0
  55. package/lib/index.js +1 -1
  56. package/package.json +4 -4
  57. package/es/chunks/index.BcLVH95_.js +0 -4058
  58. package/es/chunks/index.CSPp4g5C.js +0 -303
  59. package/es/chunks/index.ClqvUq64.js +0 -302
  60. package/es/chunks/index.Dh5IGfxO.js +0 -290
  61. package/es/chunks/index.Doax01RQ.js +0 -254
  62. package/lib/chunks/BackBar.CYThcqhK.js +0 -1
  63. package/lib/chunks/i18n.D-d0yyXi.js +0 -6
  64. package/lib/chunks/index.6X8xsqRJ.js +0 -1
  65. package/lib/chunks/index.Bk55us0s.js +0 -1
  66. package/lib/chunks/index.CP9rhXZ5.js +0 -1
  67. package/lib/chunks/index.CSLWrMRE.js +0 -1
  68. package/lib/chunks/index.CV29Us4A.js +0 -6
@@ -1,7 +1,7 @@
1
1
  import { w as I } from "./chunks/index.bCzIhWFw.js";
2
2
  import { computed as A, createElementBlock as _, openBlock as n, normalizeClass as r, toDisplayString as p } from "vue";
3
3
  import { A as t } from "./chunks/config.DE5PZU2F.js";
4
- import { u } from "./chunks/i18n.DUrvNBQz.js";
4
+ import { u } from "./chunks/i18n.CfMhDOdX.js";
5
5
  import { _ as i } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
6
6
  import './assets/ApplicationTypeTag.css';const L = () => {
7
7
  const { t: a } = u();
@@ -0,0 +1,92 @@
1
+ import { w as f } from "./chunks/index.bCzIhWFw.js";
2
+ import { ref as c, watch as m, nextTick as p, onMounted as d, onBeforeUnmount as v, resolveComponent as h, createBlock as y, openBlock as u, withCtx as w, createElementVNode as b, normalizeStyle as S, renderSlot as g, createElementBlock as k, toDisplayString as x } from "vue";
3
+ import { _ as T } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
4
+ import './assets/AutoShowTooltip.css';const I = { key: 1 }, H = {
5
+ __name: "AutoShowTooltip",
6
+ props: {
7
+ content: {
8
+ type: [String, null],
9
+ default: ""
10
+ },
11
+ placement: {
12
+ type: String,
13
+ default: "top"
14
+ },
15
+ textClass: {
16
+ type: String,
17
+ default: ""
18
+ },
19
+ row: {
20
+ type: Number,
21
+ default: 1
22
+ },
23
+ popperStyle: {
24
+ type: Object,
25
+ default: () => ({
26
+ maxWidth: "300px"
27
+ })
28
+ }
29
+ },
30
+ setup(o) {
31
+ const s = o, l = c(null), n = c(!1);
32
+ let e = null;
33
+ function i() {
34
+ const t = l.value;
35
+ if (!t) {
36
+ n.value = !1;
37
+ return;
38
+ }
39
+ if (t.offsetParent === null || t.offsetWidth === 0 || t.offsetHeight === 0) {
40
+ n.value = !1;
41
+ return;
42
+ }
43
+ const r = t.scrollHeight, a = t.clientHeight;
44
+ n.value = r > a + 1;
45
+ }
46
+ return m(
47
+ [() => s.content, () => s.row],
48
+ () => {
49
+ p(() => {
50
+ setTimeout(() => {
51
+ i();
52
+ }, 50);
53
+ });
54
+ },
55
+ { immediate: !1 }
56
+ ), d(() => {
57
+ setTimeout(() => {
58
+ i();
59
+ }, 100), e = new ResizeObserver(() => {
60
+ clearTimeout(e.timeoutId), e.timeoutId = setTimeout(() => {
61
+ i();
62
+ }, 100);
63
+ }), l.value && e.observe(l.value);
64
+ }), v(() => {
65
+ e && (e.timeoutId && clearTimeout(e.timeoutId), l.value && e.unobserve(l.value), e.disconnect());
66
+ }), (t, r) => {
67
+ const a = h("el-tooltip");
68
+ return u(), y(a, {
69
+ content: o.content || "",
70
+ disabled: !n.value || !o.content,
71
+ placement: o.placement,
72
+ "popper-style": o.popperStyle
73
+ }, {
74
+ default: w(() => [
75
+ b("div", {
76
+ ref_key: "textRef",
77
+ ref: l,
78
+ class: "auto-show-tooltip",
79
+ style: S({ WebkitLineClamp: o.row })
80
+ }, [
81
+ t.$slots.default ? g(t.$slots, "default", { key: 0 }, void 0, !0) : (u(), k("div", I, x(o.content || ""), 1))
82
+ ], 4)
83
+ ]),
84
+ _: 3
85
+ }, 8, ["content", "disabled", "placement", "popper-style"]);
86
+ };
87
+ }
88
+ }, O = /* @__PURE__ */ T(H, [["__scopeId", "data-v-0c06e1b7"]]), z = f(O);
89
+ export {
90
+ z as AutoShowTooltip,
91
+ z as default
92
+ };
@@ -1,5 +1,5 @@
1
1
  import "./chunks/index.bCzIhWFw.js";
2
- import { A as r, T as s, A as t } from "./chunks/index.CSPp4g5C.js";
2
+ import { A as r, T as s, A as t } from "./chunks/index.DjDvyGXt.js";
3
3
  export {
4
4
  r as AvailableRangePreview,
5
5
  s as TagList,
@@ -1,13 +1,268 @@
1
- import "./chunks/index.bCzIhWFw.js";
2
- import { A as r, A as T } from "./chunks/index.Doax01RQ.js";
3
- import { D as o, M as t, P as A, R as S, a as P, r as R } from "./chunks/index.CSPp4g5C.js";
1
+ import { w as D } from "./chunks/index.bCzIhWFw.js";
2
+ import { ref as u, computed as M, createBlock as N, openBlock as g, unref as m, withCtx as V, createElementVNode as U, createVNode as E, createElementBlock as w, createCommentVNode as k, Fragment as G, renderList as x, createTextVNode as C, toDisplayString as I, watch as O, onMounted as $ } from "vue";
3
+ import { emitsMap as t } from "color-star-custom-methods";
4
+ import { R as L, u as F, r as H, a as X, D as Y, A as j } from "./chunks/index.DjDvyGXt.js";
5
+ import { M as fe, P as be } from "./chunks/index.DjDvyGXt.js";
6
+ import { ElDialog as q, ElRadioGroup as W, ElRadio as z, ElButton as P } from "element-plus";
7
+ import { TreeShowSelect as J } from "color-star-custom-components";
8
+ import { g as K } from "./chunks/request.24c3shPx.js";
9
+ import './assets/AvailableRangeSetting.css';const Q = { class: "dialog-content" }, Z = {
10
+ key: 0,
11
+ class: "selection-area overflow-hidden"
12
+ }, ee = { class: "dialog-footer" }, le = {
13
+ __name: "Dialog",
14
+ props: {
15
+ // 弹窗显示控制
16
+ visible: {
17
+ type: Boolean,
18
+ default: !1
19
+ },
20
+ // 当前选择的范围类型(是否全部可见)
21
+ allVisible: {
22
+ type: Boolean,
23
+ default: L.ALL
24
+ },
25
+ // 选中的项目列表
26
+ modelValue: {
27
+ type: Array,
28
+ default: () => []
29
+ },
30
+ // 树形数据
31
+ treeList: {
32
+ type: Array,
33
+ default: () => []
34
+ }
35
+ },
36
+ emits: [
37
+ t.updateVisible,
38
+ t.save,
39
+ t.cancel
40
+ ],
41
+ setup(p, { emit: T }) {
42
+ const f = p, c = T, y = u(!0), v = u(f.allVisible), s = u([...f.modelValue]), h = u(), { selectedMembers: A, selectedDepartments: r } = F(
43
+ s,
44
+ M(() => f.treeList),
45
+ !1
46
+ // 编辑模式
47
+ ), o = M(() => {
48
+ const l = [];
49
+ return r.value.forEach((a) => {
50
+ l.push({
51
+ ...a,
52
+ // TreeSelect列表模式不需要children
53
+ children: void 0
54
+ });
55
+ }), A.value.forEach((a) => {
56
+ l.push({
57
+ ...a,
58
+ children: void 0
59
+ });
60
+ }), l;
61
+ }), b = (l) => {
62
+ v.value = l, l === L.ALL && (s.value = []);
63
+ }, _ = (l) => {
64
+ const { selectedNode: a } = l;
65
+ s.value = a || [];
66
+ }, S = () => {
67
+ c(t.cancel), c(t.updateVisible, !1);
68
+ }, R = () => {
69
+ c(t.save, {
70
+ type: v.value,
71
+ selectedItems: [...s.value]
72
+ }), c(t.updateVisible, !1);
73
+ };
74
+ return (l, a) => (g(), N(m(q), {
75
+ modelValue: y.value,
76
+ "onUpdate:modelValue": a[2] || (a[2] = (i) => y.value = i),
77
+ title: l.t("COMMON_DICT.ENUMS.AVAILABLE_RANGE_SETTING"),
78
+ "close-on-click-modal": !1,
79
+ "close-on-press-escape": !1,
80
+ "append-to-body": "",
81
+ onClose: S,
82
+ "modal-class": "available-range-setting-dialog"
83
+ }, {
84
+ footer: V(() => [
85
+ U("div", ee, [
86
+ E(m(P), {
87
+ onClick: S,
88
+ plain: ""
89
+ }, {
90
+ default: V(() => [
91
+ C(I(l.t("COMMON_BUTTON.CANCEL_TEXT")), 1)
92
+ ]),
93
+ _: 1
94
+ }),
95
+ E(m(P), {
96
+ type: "primary",
97
+ onClick: R
98
+ }, {
99
+ default: V(() => [
100
+ C(I(l.t("COMMON_BUTTON.SAVE_TEXT")), 1)
101
+ ]),
102
+ _: 1
103
+ })
104
+ ])
105
+ ]),
106
+ default: V(() => [
107
+ U("div", Q, [
108
+ E(m(W), {
109
+ class: "pd-b-16",
110
+ modelValue: v.value,
111
+ "onUpdate:modelValue": a[0] || (a[0] = (i) => v.value = i),
112
+ onChange: b
113
+ }, {
114
+ default: V(() => [
115
+ (g(!0), w(G, null, x(m(H), (i) => (g(), N(m(z), {
116
+ key: i.value,
117
+ value: i.value
118
+ }, {
119
+ default: V(() => [
120
+ C(I(i.label), 1)
121
+ ]),
122
+ _: 2
123
+ }, 1032, ["value"]))), 128))
124
+ ]),
125
+ _: 1
126
+ }, 8, ["modelValue"]),
127
+ v.value === m(L).PARTIAL ? (g(), w("div", Z, [
128
+ E(m(J), {
129
+ modelValue: s.value,
130
+ "onUpdate:modelValue": a[1] || (a[1] = (i) => s.value = i),
131
+ ref_key: "treeRef",
132
+ ref: h,
133
+ treeProps: m(X),
134
+ treeList: p.treeList,
135
+ hasFilter: !0,
136
+ rightTreeList: o.value,
137
+ style: { height: "500px" },
138
+ onGetCheckedNode: _
139
+ }, null, 8, ["modelValue", "treeProps", "treeList", "rightTreeList"])
140
+ ])) : k("", !0)
141
+ ])
142
+ ]),
143
+ _: 1
144
+ }, 8, ["modelValue", "title"]));
145
+ }
146
+ }, ae = () => {
147
+ const { $request: p, $env: T } = K();
148
+ return {
149
+ availableRangeApi: () => p({
150
+ url: `${T.VITE_APP_AUTH_BASE_URL}/api/v1/admin/member/search`,
151
+ method: "get"
152
+ })
153
+ };
154
+ }, te = { class: "available-range-setting w-full" }, se = /* @__PURE__ */ Object.assign({
155
+ name: "AvailableRangeSetting"
156
+ }, {
157
+ __name: "layout",
158
+ props: {
159
+ // 当前选择的范围类型(是否全部可见)
160
+ allVisible: {
161
+ type: Boolean,
162
+ default: L.ALL
163
+ },
164
+ // 选中的项目列表
165
+ modelValue: {
166
+ type: Array,
167
+ default: () => []
168
+ },
169
+ // 默认显示的数量
170
+ defaultShowCount: {
171
+ type: Number,
172
+ default: Y.one
173
+ }
174
+ },
175
+ emits: [
176
+ t.updateAllVisible,
177
+ t.updateModelValue,
178
+ t.change
179
+ ],
180
+ setup(p, { expose: T, emit: f }) {
181
+ const c = p, { availableRangeApi: y } = ae(), v = f, s = u(!1), h = u(!1), A = u([]), r = u(c.allVisible), o = u(c.modelValue), b = u(
182
+ new Set(o.value?.map((e) => e.memberId))
183
+ ), _ = () => {
184
+ h.value = !0, y().then((e) => {
185
+ A.value = e?.data?.orgOptionSoList || [];
186
+ }).finally(() => {
187
+ h.value = !1;
188
+ });
189
+ }, S = () => {
190
+ s.value = !0;
191
+ }, R = (e) => {
192
+ r.value = e.type, o.value = e.selectedItems, b.value.clear(), o.value.forEach((n) => {
193
+ b.value.add(n.memberId);
194
+ }), v(t.updateAllVisible, r.value), v(t.updateModelValue, o.value), a();
195
+ }, l = () => {
196
+ s.value = !1;
197
+ }, a = () => {
198
+ const e = {
199
+ allVisible: r.value,
200
+ selectedItems: o.value
201
+ };
202
+ v(t.change, e);
203
+ }, i = u(null), B = () => {
204
+ const e = i.value?.allSelectedItems || [];
205
+ return {
206
+ allVisible: r.value,
207
+ visibleScope: e.map((d) => ({
208
+ memberId: d.memberId,
209
+ memberName: d.memberName,
210
+ memberType: d.memberType,
211
+ bnid: d.bnid
212
+ }))
213
+ };
214
+ };
215
+ return O(
216
+ () => c.allVisible,
217
+ (e) => {
218
+ r.value = e;
219
+ },
220
+ { immediate: !0 }
221
+ ), O(
222
+ () => c.modelValue,
223
+ (e) => {
224
+ o.value = e || [], b.value.clear(), o.value.forEach((n) => {
225
+ b.value.add(n.memberId);
226
+ });
227
+ },
228
+ { immediate: !0 }
229
+ ), $(() => {
230
+ _();
231
+ }), T({
232
+ getSelectedItems: B
233
+ }), (e, n) => (g(), w("div", te, [
234
+ E(m(j), {
235
+ allVisible: r.value,
236
+ "model-value": o.value,
237
+ "tree-list": A.value,
238
+ "default-show-count": p.defaultShowCount,
239
+ onEdit: S,
240
+ ref_key: "previewRef",
241
+ ref: i
242
+ }, null, 8, ["allVisible", "model-value", "tree-list", "default-show-count"]),
243
+ s.value ? (g(), N(le, {
244
+ key: 0,
245
+ visible: s.value,
246
+ "onUpdate:visible": n[0] || (n[0] = (d) => s.value = d),
247
+ allVisible: r.value,
248
+ "onUpdate:allVisible": n[1] || (n[1] = (d) => r.value = d),
249
+ modelValue: o.value,
250
+ "onUpdate:modelValue": n[2] || (n[2] = (d) => o.value = d),
251
+ "tree-list": A.value,
252
+ loading: h.value,
253
+ onSave: R,
254
+ onCancel: l
255
+ }, null, 8, ["visible", "allVisible", "modelValue", "tree-list", "loading"])) : k("", !0)
256
+ ]));
257
+ }
258
+ }), ce = D(se);
4
259
  export {
5
- r as AvailableRangeSetting,
6
- o as DEFAULT_SHOW_COUNT,
7
- t as MEMBER_DEPARTMENT_TYPES,
8
- A as PUBLISH_STATUS,
9
- S as RANGE_TYPES,
10
- P as availableRangeTreeProps,
11
- T as default,
12
- R as rangeOptions
260
+ ce as AvailableRangeSetting,
261
+ Y as DEFAULT_SHOW_COUNT,
262
+ fe as MEMBER_DEPARTMENT_TYPES,
263
+ be as PUBLISH_STATUS,
264
+ L as RANGE_TYPES,
265
+ X as availableRangeTreeProps,
266
+ ce as default,
267
+ H as rangeOptions
13
268
  };
@@ -0,0 +1,200 @@
1
+ import { w as D } from "./chunks/index.bCzIhWFw.js";
2
+ import { computed as c, createBlock as p, openBlock as t, unref as s, withCtx as h, createElementVNode as m, createCommentVNode as _, resolveDynamicComponent as x, toDisplayString as i, createElementBlock as l, withModifiers as M, Fragment as v, renderList as g, createVNode as b, normalizeStyle as B, createTextVNode as k } from "vue";
3
+ import { ElTag as w, ElIcon as U, ElPopover as z } from "element-plus";
4
+ import { u as G } from "./chunks/i18n.CfMhDOdX.js";
5
+ import { I as H, e as O, d as E, c as V, P as A, R as L, C as R, f as F } from "./chunks/config.JrGX09T5.js";
6
+ import { P as T, A as $ } from "./chunks/index.DjDvyGXt.js";
7
+ import { _ as j } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
8
+ import './assets/CommonTagsList.css';const K = { class: "status-tag-content flex items-center" }, W = { class: "status-text fz-12" }, Y = {
9
+ __name: "StatusTag",
10
+ props: {
11
+ channelStatus: {
12
+ type: [String, Number],
13
+ default: null
14
+ },
15
+ inActive: {
16
+ type: [String, Number],
17
+ default: null
18
+ },
19
+ statusText: {
20
+ type: String,
21
+ default: null
22
+ },
23
+ showIcon: {
24
+ type: Boolean,
25
+ default: !1
26
+ }
27
+ },
28
+ setup(r) {
29
+ const S = r, a = c(() => S.inActive === H.UNPUBLISHED ? T.UNPUBLISHED : S.channelStatus), N = c(() => O[a.value]), y = c(() => E[a.value]), d = c(() => V[a.value]), I = c(() => A[a.value]);
30
+ return (u, e) => (t(), p(s(w), { type: N.value }, {
31
+ default: h(() => [
32
+ m("div", K, [
33
+ r.showIcon && d.value ? (t(), p(s(U), {
34
+ key: 0,
35
+ color: I.value
36
+ }, {
37
+ default: h(() => [
38
+ (t(), p(x(d.value)))
39
+ ]),
40
+ _: 1
41
+ }, 8, ["color"])) : _("", !0),
42
+ m("span", W, i(r.statusText || y.value), 1)
43
+ ])
44
+ ]),
45
+ _: 1
46
+ }, 8, ["type"]));
47
+ }
48
+ }, X = /* @__PURE__ */ j(Y, [["__scopeId", "data-v-6ce5660c"]]), q = {
49
+ class: "common-content w-full overflow-y-auto",
50
+ style: { "max-height": "200px" }
51
+ }, J = {
52
+ key: 0,
53
+ class: "content-item"
54
+ }, Q = { class: "content-item-top flex items-center" }, Z = { class: "item-bottom-box mg-l-4 pd-t-8 flex flex-wrap" }, ee = {
55
+ key: 1,
56
+ class: "icon-placeholder w-full mg-t-4 mg-b-8 bg-e6e8ea",
57
+ style: { height: "1px" }
58
+ }, te = {
59
+ key: 0,
60
+ class: "all-visible-ranges-section mg-t-12"
61
+ }, se = { class: "channel-name fz-12 weight-500 mg-b-4 text-1f2329 flex items-center" }, ne = {
62
+ key: 0,
63
+ class: "range-separator w-full mg-t-8 mg-b-8 bg-e6e8ea",
64
+ style: { height: "1px" }
65
+ }, le = /* @__PURE__ */ Object.assign({
66
+ name: "CommonTagsList"
67
+ }, {
68
+ __name: "layout",
69
+ props: {
70
+ publishChannelList: {
71
+ type: Array,
72
+ default: () => []
73
+ },
74
+ sourceType: {
75
+ type: [String, Number],
76
+ default: null
77
+ }
78
+ },
79
+ setup(r) {
80
+ const { t: S } = G(), a = r, N = c(() => a.publishChannelList || []), y = c(() => {
81
+ if (!a.publishChannelList?.length) return [];
82
+ const u = a.publishChannelList.reduce((e, o) => {
83
+ const f = o.inActive === H.UNPUBLISHED ? T.UNPUBLISHED : o.channelStatus;
84
+ return e[f] || (e[f] = []), e[f].push(o), e;
85
+ }, {});
86
+ return Object.entries(u).map(([e, o]) => ({
87
+ status: parseInt(e),
88
+ channels: o
89
+ })).sort((e, o) => o.status - e.status);
90
+ }), d = c(() => {
91
+ if (!a.publishChannelList?.length) return [];
92
+ const u = S("COMMON_TAGS_LIST.UNKNOWN_CHANNEL");
93
+ return a.publishChannelList.filter((e) => e.visibleScope && e.visibleScope.length > 0).map((e) => ({
94
+ channelName: L[e.channelType]?.name(a.sourceType) || u,
95
+ channelType: e.channelType,
96
+ visibleScope: e.visibleScope,
97
+ allVisible: e.allVisible
98
+ }));
99
+ }), I = (u) => {
100
+ const e = F[u];
101
+ return R[e];
102
+ };
103
+ return (u, e) => (t(), l("div", {
104
+ class: "commont-status-box",
105
+ onClick: e[0] || (e[0] = M(() => {
106
+ }, ["stop"]))
107
+ }, [
108
+ (t(!0), l(v, null, g(N.value, (o, f) => (t(), p(s(z), {
109
+ key: f,
110
+ placement: "bottom",
111
+ trigger: "click",
112
+ width: "300"
113
+ }, {
114
+ reference: h(() => [
115
+ b(X, {
116
+ "channel-status": o.channelStatus,
117
+ "in-active": o.inActive,
118
+ "status-text": s(L)?.[o.channelType]?.name(r.sourceType),
119
+ "show-icon": !0,
120
+ class: "mg-r-4 mg-b-4"
121
+ }, null, 8, ["channel-status", "in-active", "status-text"])
122
+ ]),
123
+ default: h(() => [
124
+ m("div", q, [
125
+ (t(!0), l(v, null, g(y.value, (n, C) => (t(), l(v, {
126
+ key: n.status
127
+ }, [
128
+ n.channels.length > 0 ? (t(), l("div", J, [
129
+ m("div", Q, [
130
+ b(s(U), {
131
+ style: B({ color: s(A)[n.status] })
132
+ }, {
133
+ default: h(() => [
134
+ (t(), p(x(s(V)[n.status])))
135
+ ]),
136
+ _: 2
137
+ }, 1032, ["style"]),
138
+ m("div", {
139
+ class: "content-item-name fz-14 mg-l-4",
140
+ style: B({ color: s(A)[n.status] })
141
+ }, i(s(E)[n.status]) + "(" + i(n.channels.length) + ") ", 5)
142
+ ]),
143
+ m("div", Z, [
144
+ (t(!0), l(v, null, g(n.channels, (P) => (t(), l("div", {
145
+ class: "b-item-box mg-r-8 radius-4 fz-12 pd-t-4 pd-b-4 pd-l-8 pd-r-8 mg-b-8 text-1f2329 bg-f5f6f7",
146
+ key: P.channelType
147
+ }, i(s(L)?.[P.channelType]?.name(
148
+ r.sourceType
149
+ )), 1))), 128))
150
+ ])
151
+ ])) : _("", !0),
152
+ C < y.value.length - 1 ? (t(), l("div", ee)) : _("", !0)
153
+ ], 64))), 128)),
154
+ d.value.length > 0 ? (t(), l("div", te, [
155
+ (t(!0), l(v, null, g(d.value, (n, C) => (t(), l("div", {
156
+ key: n.channelType,
157
+ class: "channel-visible-range"
158
+ }, [
159
+ m("div", se, [
160
+ b(s(U), {
161
+ class: "mg-r-2",
162
+ size: "14"
163
+ }, {
164
+ default: h(() => [
165
+ (t(), p(x(I(n.channelType)?.icon)))
166
+ ]),
167
+ _: 2
168
+ }, 1024),
169
+ k(" " + i(n.channelName) + " " + i(s(S)("COMMON_TAGS_LIST.AVAILABLE_SCOPE")), 1)
170
+ ]),
171
+ b(s($), {
172
+ "all-visible": n.allVisible,
173
+ "model-value": n.visibleScope,
174
+ "tree-list": [],
175
+ readonly: !0
176
+ }, null, 8, ["all-visible", "model-value"]),
177
+ C < d.value.length - 1 ? (t(), l("div", ne)) : _("", !0)
178
+ ]))), 128))
179
+ ])) : _("", !0)
180
+ ])
181
+ ]),
182
+ _: 2
183
+ }, 1024))), 128)),
184
+ r.publishChannelList?.length ? _("", !0) : (t(), p(s(w), {
185
+ key: 0,
186
+ type: s(O)[s(T).UNPUBLISHED]
187
+ }, {
188
+ default: h(() => [
189
+ k(i(s(E)[s(T).UNPUBLISHED]), 1)
190
+ ]),
191
+ _: 1
192
+ }, 8, ["type"]))
193
+ ]));
194
+ }
195
+ }), me = D(le);
196
+ export {
197
+ me as CommonTagsList,
198
+ X as StatusTag,
199
+ me as default
200
+ };