@ganwei-web/gw-base-components-plus 1.0.0

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 (59) hide show
  1. package/echartList/barEchart/dist/index.es.js +152 -0
  2. package/echartList/barEchart/dist/index.umd.js +1 -0
  3. package/echartList/barEchart/dist/style.css +1 -0
  4. package/echartList/curve/dist/index.es.js +217 -0
  5. package/echartList/curve/dist/index.umd.js +1 -0
  6. package/echartList/curve/dist/style.css +1 -0
  7. package/echartList/historyEchart/dist/index.es.js +292 -0
  8. package/echartList/historyEchart/dist/index.umd.js +10 -0
  9. package/echartList/historyEchart/dist/style.css +1 -0
  10. package/echartList/solid-bar/dist/index.es.js +290 -0
  11. package/echartList/solid-bar/dist/index.umd.js +1 -0
  12. package/echartList/solid-bar/dist/style.css +1 -0
  13. package/echartList/solid-circle/dist/index.es.js +332 -0
  14. package/echartList/solid-circle/dist/index.umd.js +6 -0
  15. package/echartList/solid-circle/dist/style.css +1 -0
  16. package/echartList/solid-pie/dist/index.es.js +336 -0
  17. package/echartList/solid-pie/dist/index.umd.js +6 -0
  18. package/echartList/solid-pie/dist/style.css +1 -0
  19. package/element-plus-adapter/dist/ElementPlusAdapter.cjs +902 -0
  20. package/element-plus-adapter/dist/ElementPlusAdapter.cjs.map +1 -0
  21. package/element-plus-adapter/dist/ElementPlusAdapter.css +789 -0
  22. package/element-plus-adapter/dist/ElementPlusAdapter.iife.js +903 -0
  23. package/element-plus-adapter/dist/ElementPlusAdapter.iife.js.map +1 -0
  24. package/element-plus-adapter/dist/ElementPlusAdapter.js +902 -0
  25. package/element-plus-adapter/dist/ElementPlusAdapter.js.map +1 -0
  26. package/equip-list-vue2/dist/index.es.js +1275 -0
  27. package/equip-list-vue2/dist/index.umd.js +1 -0
  28. package/equip-list-vue2/dist/style.css +1 -0
  29. package/equip-list-vue3/dist/index.es.js +1510 -0
  30. package/equip-list-vue3/dist/index.umd.js +1 -0
  31. package/equip-list-vue3/dist/style.css +1 -0
  32. package/equip-select-vue2/dist/index.es.js +231 -0
  33. package/equip-select-vue2/dist/index.umd.js +1 -0
  34. package/equip-select-vue2/dist/style.css +1 -0
  35. package/equip-select-vue3/dist/index.es.js +231 -0
  36. package/equip-select-vue3/dist/index.umd.js +1 -0
  37. package/equip-select-vue3/dist/style.css +1 -0
  38. package/equipProcessing/dist/index.es.js +203 -0
  39. package/equipProcessing/dist/index.umd.js +1 -0
  40. package/loadMore/dist/index.es.js +12 -0
  41. package/loadMore/dist/index.umd.js +1 -0
  42. package/loading/dist/index.es.js +25 -0
  43. package/loading/dist/index.umd.js +1 -0
  44. package/loading/dist/style.css +1 -0
  45. package/package.json +11 -0
  46. package/player/dist/index.es.js +1080 -0
  47. package/player/dist/index.umd.js +14 -0
  48. package/player/dist/style.css +1 -0
  49. package/selectV2/dist/index.es.js +190 -0
  50. package/selectV2/dist/index.umd.js +1 -0
  51. package/selectV2/dist/style.css +1 -0
  52. package/showPassword/dist/index.es.js +72 -0
  53. package/showPassword/dist/index.umd.js +1 -0
  54. package/table/dist/index.es.js +182 -0
  55. package/table/dist/index.umd.js +1 -0
  56. package/table/dist/style.css +1 -0
  57. package/widthSetting/dist/index.es.js +113 -0
  58. package/widthSetting/dist/index.umd.js +1 -0
  59. package/widthSetting/dist/style.css +1 -0
@@ -0,0 +1,1275 @@
1
+ import "./style.css";
2
+ import b from "vue-virtual-scroll-list";
3
+ import * as w from "@aspnet/signalr";
4
+ class N {
5
+ constructor(t, e, s) {
6
+ this.groupNodeObject = t, this.nodesMap = e, this.controlObject = s;
7
+ }
8
+ addNodesMap(t) {
9
+ t && t.forEach((e) => {
10
+ this.nodesMap[e.key] = e;
11
+ });
12
+ }
13
+ removeNodesMap(t) {
14
+ t && t.forEach((e) => {
15
+ delete this.nodesMap[e.key];
16
+ });
17
+ }
18
+ recycleAllNodeCache(t) {
19
+ for (let e in this.groupNodeObject)
20
+ this.groupNodeObject[e].expand = !1, this.groupNodeObject[e].count = 0, this.recycleGroupCache(this.groupNodeObject[e].key), t && delete this.groupNodeObject[e];
21
+ }
22
+ recycleGroupCache(t) {
23
+ if (this.groupNodeObject[t]) {
24
+ this.groupNodeObject[t].children = [], this.removeNodesMap(this.groupNodeObject[t].equips), this.groupNodeObject[t].equips = [], this.groupNodeObject[t].equips.length = 0, this.groupNodeObject[t].expand = !1;
25
+ for (let e in this.groupNodeObject)
26
+ this.groupNodeObject[e].groupId == t && this.recycleGroupCache(this.groupNodeObject[e].key);
27
+ }
28
+ }
29
+ closeBrotherNode(t) {
30
+ if (!!t && this.groupNodeObject[t]) {
31
+ let e = this.groupNodeObject[t].groupId;
32
+ for (let s in this.groupNodeObject)
33
+ this.groupNodeObject[s].groupId == e && this.groupNodeObject[s].key != t && this.groupNodeObject[s].expand && (this.groupNodeObject[s].expand = !1, this.recycleGroupCache(this.groupNodeObject[s].key));
34
+ }
35
+ }
36
+ }
37
+ class E {
38
+ constructor(t, e, s, i, u, r) {
39
+ this.equipControllObject = s, this.groupNodeObject = t, this.nodesMap = e, this.controlObject = i, this.equipCheckObject = u, this.isSearchStatus = !1, this.searchStatusGroupObject = {}, this.aliasName = r;
40
+ }
41
+ resetCheckedStatus() {
42
+ Object.values(this.nodesMap).forEach((t) => {
43
+ this.setCheckStatus(t.key, !1, !1), t.isGroup && !t.isEquip && (this.clearCheckedEquips(t.key), this.updateEquipSelectCount(t.key, !0)), t.halfCheckedEquips && (t.halfCheckedEquips = []);
44
+ }), Object.keys(this.equipCheckObject).forEach((t) => {
45
+ this.setEquipCheckObject(t, !1, !1, this.equipCheckObject[t].groupId);
46
+ });
47
+ }
48
+ reComputedCheckNum(t) {
49
+ this.isSearchStatus = t, this.isSearchStatus ? (Object.values(this.groupNodeObject).forEach((e) => {
50
+ this.searchStatusGroupObject[e.key] = {
51
+ groupId: e.groupId,
52
+ equipSelectCount: e.equipSelectCount,
53
+ halfCheckedEquips: e.halfCheckedEquips,
54
+ ...this.searchStatusGroupObject[e.key]
55
+ };
56
+ }), Object.values(this.groupNodeObject).forEach((e) => {
57
+ this.updateEquipSelectCount(e.key, !0), e.halfCheckedEquips = [];
58
+ }), Object.values(this.groupNodeObject).forEach((e) => {
59
+ (window.top[`group-${e.key}-search`] || []).forEach((i) => {
60
+ this.equipCheckObject[i.equipNo] && this.equipCheckObject[i.equipNo].checked ? this.updateEquipSelectCount(e.key, !1, 1) : this.equipCheckObject[i.equipNo] && this.equipCheckObject[i.equipNo].indeterminate && e.halfCheckedEquips.push(i.equipNo);
61
+ });
62
+ })) : (Object.values(this.groupNodeObject).forEach((e) => {
63
+ let s = this.searchStatusGroupObject[e.key];
64
+ s && (e.equipSelectCount = s.equipSelectCount, e.halfCheckedEquips = [...s.halfCheckedEquips, ...e.halfCheckedEquips], e.halfCheckedEquips = [...new Set(e.halfCheckedEquips)]);
65
+ }), this.searchStatusGroupObject = {});
66
+ }
67
+ updateCheckedStatusWithEquips(t) {
68
+ window.setTimeout(() => {
69
+ for (let e = 0, s = t.length; e < s; e++) {
70
+ let i = window.top.equipCache && window.top.equipCache[t[e]];
71
+ i && i.groupId && (this.setEquipCheckObject(t[e], !0, !1, i.groupId), this.setCheckStatus(`${i.groupId}-${t[e]}`, !0, !1), this.updateEquipSelectCount(i.groupId, !1, 1), this.updateExpandControlCheckStatus(i.groupId, t[e]));
72
+ }
73
+ this.updateGroupCheckStatus();
74
+ }, 200);
75
+ }
76
+ updateExpandControlCheckStatus(t, e) {
77
+ let s = this.nodesMap[`${t}-${e}`];
78
+ s && s.settings && s.settings.length && s.settings.forEach((i) => {
79
+ this.nodesMap[`${t}-${e}-${i.setNo}`] && this.setCheckStatus(`${t}-${e}-${i.setNo}`, !0, !1);
80
+ });
81
+ }
82
+ updateCheckedStatusWithControls(t) {
83
+ window.setTimeout(() => {
84
+ for (let e = 0, s = t.length; e < s; e++) {
85
+ let i = t[e].split("."), u = i[0], r = i[1];
86
+ if (this.equipControllObject[u] || (this.equipControllObject[u] = []), this.equipControllObject[u].push(Number(r)), window.top.equipCache && window.top.equipCache[u]) {
87
+ let p = window.top.equipCache[u].groupId, a = `${p}-${u}-${r}`;
88
+ this.nodesMap[a] && this.setCheckStatus(a, !0, !1), this.nodesMap[`${p}-${u}`] && this.setCheckStatus(`${p}-${u}`, !1, !0), this.nodesMap[`${p}`].halfCheckedEquips && this.nodesMap[`${p}`].halfCheckedEquips.push(u), this.setEquipCheckObject(u, !1, !0, p);
89
+ }
90
+ }
91
+ this.updateGroupCheckStatus();
92
+ }, 100);
93
+ }
94
+ updateGroupCheckStatus() {
95
+ Object.values(this.groupNodeObject).forEach((t) => {
96
+ t.count > 0 && t.count == t.equipSelectCount ? this.setCheckStatus(t.key, !0, !1) : t.count && t.equipSelectCount && t.count > t.equipSelectCount || t.halfCheckedEquips.length ? this.setGroupHalfChecked(t.key) : this.setCheckStatus(t.key, !1, !1);
97
+ });
98
+ }
99
+ setGroupHalfChecked(t) {
100
+ this.nodesMap[t] && this.setCheckStatus(t, !1, !0), this.nodesMap[t].groupId && this.setGroupHalfChecked(this.nodesMap[t].groupId);
101
+ }
102
+ setControlStatus(t, e, s, i) {
103
+ t && t.forEach((u) => {
104
+ this.nodesMap[`${e}-${s}-${u.setNo}`] && this.setCheckStatus(`${e}-${s}-${u.setNo}`, i, !1);
105
+ });
106
+ }
107
+ updateControlCheckStatus() {
108
+ Object.keys(this.controlObject).forEach((t) => {
109
+ let e = this.nodesMap[`${this.controlObject[t].groupId}-${t}`];
110
+ if (e)
111
+ if (e.checked) {
112
+ let s = e.settings;
113
+ this.setControlStatus(s, this.controlObject[t].groupId, t, !0);
114
+ } else if (!e.checked && !e.indeterminate) {
115
+ let s = e.settings;
116
+ this.setControlStatus(s, this.controlObject[t].groupId, t, !1);
117
+ } else
118
+ this.equipControllObject[t] && this.equipControllObject[t].forEach((s) => {
119
+ let i = `${this.controlObject[t].groupId}-${t}-${s}`;
120
+ this.nodesMap[i] && this.setCheckStatus(i, !0, !1);
121
+ });
122
+ });
123
+ }
124
+ getGroupChecked() {
125
+ let t = [];
126
+ return Object.keys(this.groupNodeObject).forEach((e) => {
127
+ this.groupNodeObject[e].checked && t.push(e);
128
+ }), t;
129
+ }
130
+ getEquipSelectd() {
131
+ let t = [];
132
+ return Object.keys(this.equipCheckObject).forEach((e) => {
133
+ this.equipCheckObject[e].checked && t.push(Number(e));
134
+ }), t;
135
+ }
136
+ getControlSelected() {
137
+ let t = [];
138
+ return Object.keys(this.equipControllObject).forEach((e) => {
139
+ t.push(...this.equipControllObject[e].map((s) => `${e}.${s}`));
140
+ }), t;
141
+ }
142
+ onChecked(t, e) {
143
+ this.isSearchStatus = e || !1, t.isGroup && !t.isEquip ? this.selectGroup(t) : t.isEquip ? this.selectEquip(t) : t.isSetting && this.selectControl(t);
144
+ }
145
+ setCheckStatus(t, e, s) {
146
+ this.nodesMap[t] && (this.nodesMap[t].checked = e, this.nodesMap[t].isGroup && (this.nodesMap[t].indeterminate = s));
147
+ }
148
+ clearCheckedEquips(t) {
149
+ this.groupNodeObject[t] && (this.groupNodeObject[t].equipSelectCount = 0, this.groupNodeObject[t].halfCheckedEquips && this.groupNodeObject[t].halfCheckedEquips.forEach((e) => {
150
+ this.equipControllObject[e] && this.equipControllObject[e].forEach((s) => {
151
+ this.setCheckStatus(`${t}-${e}-${s}`, !1, !1);
152
+ });
153
+ }), this.groupNodeObject[t].halfCheckedEquips = [], this.groupNodeObject[t].groupId && this.clearCheckedEquips(this.groupNodeObject[t].groupId));
154
+ }
155
+ updateSearchStatusObject(t, e) {
156
+ this.searchStatusGroupObject[t] && (this.searchStatusGroupObject[t].equipSelectCount = this.searchStatusGroupObject[t].equipSelectCount + e, this.searchStatusGroupObject[t].groupId && this.updateSearchStatusObject(this.searchStatusGroupObject[t].groupId, e));
157
+ }
158
+ updateEquipSelectCount(t, e, s) {
159
+ this.nodesMap[t] && (e ? this.nodesMap[t].equipSelectCount = 0 : this.nodesMap[t].equipSelectCount = this.nodesMap[t].equipSelectCount + s, this.nodesMap[t].groupId && this.updateEquipSelectCount(this.nodesMap[t].groupId, e, s));
160
+ }
161
+ setEquipCheckObject(t, e, s, i) {
162
+ this.equipCheckObject[t] || (this.equipCheckObject[t] = {}), this.equipCheckObject[t].checked = e, this.equipCheckObject[t].indeterminate = s, this.equipCheckObject[t].groupId = i;
163
+ }
164
+ updateEquipSelect(t, e, s, i) {
165
+ this.nodesMap[t] && e.length && e.forEach((u) => {
166
+ s ? (this.setEquipCheckObject(u.equipNo, !0, !1, t), this.nodesMap[`${t}-${u.equipNo}`] && this.setCheckStatus(`${t}-${u.equipNo}`, !0, !1)) : (this.setEquipCheckObject(u.equipNo, !1, !1, t), this.nodesMap[`${t}-${u.equipNo}`] && this.setCheckStatus(`${t}-${u.equipNo}`, !1, !1)), this.equipControllObject[u.equipNo] && delete this.equipControllObject[u.equipNo], this.nodesMap[t].halfCheckedEquips.includes(u.equipNo) && (this.nodesMap[t].halfCheckedEquips = this.nodesMap[t].halfCheckedEquips.filter((r) => r != u.equipNo), this.searchStatusGroupObject[t] && (this.searchStatusGroupObject[t].halfCheckedEquips = this.nodesMap[t].halfCheckedEquips));
167
+ });
168
+ }
169
+ updateGroupSelect(t, e) {
170
+ t.forEach((s) => {
171
+ if (this.groupNodeObject[s]) {
172
+ this.groupNodeObject[s].groups && this.groupNodeObject[s].groups.length > 0 && this.updateGroupSelect(this.groupNodeObject[s].groups.map((a) => a.key), e);
173
+ let i = window.top[`group-${s}${this.aliasName}`] || [];
174
+ this.isSearchStatus && (i = window.top[`group-${s}-search`] || []);
175
+ let u = 0, r = 0;
176
+ i.forEach((a) => {
177
+ let h = this.equipCheckObject[a.equipNo];
178
+ !h || !h.checked ? u++ : r--;
179
+ });
180
+ let p = e ? u : r;
181
+ this.updateEquipSelect(s, i, e, p), this.updateEquipSelectCount(s, !1, p), this.updateSearchStatusObject(s, p);
182
+ }
183
+ });
184
+ }
185
+ clearHalfCheckedEquips(t) {
186
+ t.forEach((e) => {
187
+ this.groupNodeObject[e].halfCheckedEquips && this.groupNodeObject[e].halfCheckedEquips.forEach((s) => {
188
+ this.equipControllObject[s] && this.equipControllObject[s].forEach((i) => {
189
+ this.setCheckStatus(`${e}-${s}-${i}`, !1, !1);
190
+ });
191
+ }), this.groupNodeObject[e].halfCheckedEquips = [], this.groupNodeObject[e].groups && this.groupNodeObject[e].groups.length > 0 && this.clearHalfCheckedEquips(this.groupNodeObject[e].groups.map((s) => s.key));
192
+ });
193
+ }
194
+ selectGroup(t) {
195
+ this.clearHalfCheckedEquips([t.key]), this.updateGroupSelect([t.key], t.checked), this.updateControlCheckStatus(), this.updateGroupCheckStatus();
196
+ }
197
+ selectEquip(t) {
198
+ if (this.nodesMap[t.groupId]) {
199
+ let e = [{ equipNo: t.equipNo }], s = (t.checked ? 1 : -1) * e.length;
200
+ this.updateEquipSelect(t.groupId, e, t.checked, s), this.updateEquipSelectCount(t.groupId, !1, s), this.updateSearchStatusObject(t.groupId, s), this.updateControlCheckStatus(), this.updateGroupCheckStatus();
201
+ }
202
+ }
203
+ updateEquipControl(t, e, s) {
204
+ this.equipControllObject[t] || (this.equipControllObject[t] = []), s ? this.equipControllObject[t].push(e) : this.equipControllObject[t] = this.equipControllObject[t].filter((i) => i != e);
205
+ }
206
+ selectControl(t) {
207
+ let e = this.nodesMap[`${t.groupId}-${t.equipNo}`];
208
+ e && (this.updateEquipControl(t.equipNo, t.setNo, t.checked), t.checked ? e.settings && e.settings.length == this.equipControllObject[t.equipNo].length ? (delete this.equipControllObject[t.equipNo], this.updateEquipSelectCount(t.groupId, !1, 1), this.updateSearchStatusObject(t.groupId, 1), this.nodesMap[t.groupId].halfCheckedEquips = this.nodesMap[t.groupId].halfCheckedEquips.filter((s) => s != t.equipNo), this.setEquipCheckObject(t.equipNo, !0, !1, t.groupId), this.setCheckStatus(`${t.groupId}-${t.equipNo}`, !0, !1)) : e && !e.indeterminate && (this.nodesMap[`${t.groupId}`].halfCheckedEquips.push(t.equipNo), this.setCheckStatus(`${t.groupId}-${t.equipNo}`, !1, !0), this.setEquipCheckObject(t.equipNo, !1, !0, t.groupId)) : e.checked ? (this.updateEquipSelectCount(t.groupId, !1, -1), this.updateSearchStatusObject(t.groupId, -1), e.settings.length > 1 ? (this.nodesMap[t.groupId].halfCheckedEquips.push(t.equipNo), e.settings.map((i) => i.setNo).filter((i) => i != t.setNo).forEach((i) => {
209
+ this.updateEquipControl(t.equipNo, i, !0);
210
+ }), this.setEquipCheckObject(t.equipNo, !1, !0, t.groupId), this.setCheckStatus(`${t.groupId}-${t.equipNo}`, !1, !0)) : (this.setEquipCheckObject(t.equipNo, !1, !1, t.groupId), this.setCheckStatus(`${t.groupId}-${t.equipNo}`, !1, !1))) : e.indeterminate && this.equipControllObject[t.equipNo] && !this.equipControllObject[t.equipNo].length && (this.nodesMap[t.groupId].halfCheckedEquips = this.nodesMap[t.groupId].halfCheckedEquips.filter((s) => s != t.equipNo), this.setEquipCheckObject(t.equipNo, !1, !1, t.groupId), this.setCheckStatus(`${t.groupId}-${t.equipNo}`, !1, !1)), this.updateGroupCheckStatus());
211
+ }
212
+ }
213
+ class O {
214
+ constructor(t, e) {
215
+ this.aliasName = e, this.groupNodeObject = t;
216
+ }
217
+ resetGroupNum(t) {
218
+ this.clearAllEquipNum();
219
+ for (let e in this.groupNodeObject) {
220
+ let s = [];
221
+ t ? s = window.top[`group-${e}-search`] : s = window.top[`group-${e}${this.aliasName}`];
222
+ let i = s ? s.length : 0;
223
+ i && (this.groupNodeObject[e].equipCount = i, this.setGroupNum(e, i));
224
+ }
225
+ }
226
+ clearAllEquipNum() {
227
+ for (let t in this.groupNodeObject)
228
+ this.groupNodeObject[t].equipCount = 0, this.groupNodeObject[t].count = 0;
229
+ }
230
+ setGroupNum(t, e) {
231
+ this.groupNodeObject[t] && (this.groupNodeObject[t].count = Number(this.groupNodeObject[t].count) + Number(e), this.setGroupNum(this.groupNodeObject[t].groupId, e));
232
+ }
233
+ getAllEquipsNum() {
234
+ let t = 0;
235
+ for (let e in this.groupNodeObject)
236
+ window.top[`group-${this.groupNodeObject[e].key}${this.aliasName}`] && (t = t + window.top[`group-${this.groupNodeObject[e].key}${this.aliasName}`].length);
237
+ return t;
238
+ }
239
+ }
240
+ class S {
241
+ constructor(t, e, s) {
242
+ this.url = t, this.connectionId = e, this.equipNo = s, this.signalr = null;
243
+ }
244
+ openConnect() {
245
+ return this.signalr && (this.signalr.stop(), this.signalr = null), this.signalr = new w.HubConnectionBuilder().withUrl(this.url).build(), this.signalr.serverTimeoutInMilliseconds = 5e8, this.signalr.keepaliveintervalinmilliseconds = 5e8, new Promise((t) => {
246
+ this.signalr.start().then(() => {
247
+ this.connectionId && this.send(), t(this.signalr);
248
+ }).catch((e) => {
249
+ console.log(e);
250
+ });
251
+ });
252
+ }
253
+ async send() {
254
+ try {
255
+ await this.signalr.invoke(this.connectionId, this.equipNo).catch((t) => {
256
+ console.log("send \u53D1\u9001\u5931\u8D25" + t);
257
+ });
258
+ } catch (t) {
259
+ console.log("connectHub \u8FDE\u63A5\u5931\u8D25" + t);
260
+ }
261
+ }
262
+ }
263
+ class k {
264
+ constructor(t, e, s, i, u) {
265
+ this.equipStatusObject = e, this.groupNodeObject = s, this.aleadyUpdateStatus = {}, this.isGetAllEquipStatus = !1, this.nodesMap = t, this.statusChange = i, this.openSignlr(), this.aliasName = u, this.statusMap = {
266
+ 0: "noComCounts",
267
+ 1: "normalCounts",
268
+ 2: "alarmCounts",
269
+ 3: "lsSetCounts",
270
+ 4: "initializeCounts",
271
+ 5: "withdrawCounts",
272
+ 6: "backUpCounts"
273
+ }, this.reverseStatusMap = {
274
+ noComCounts: 0,
275
+ normalCounts: 1,
276
+ alarmCounts: 2,
277
+ lsSetCounts: 3,
278
+ initializeCounts: 4,
279
+ withdrawCounts: 5,
280
+ backUpCounts: 6
281
+ };
282
+ }
283
+ openSignlr() {
284
+ this.equipStatusSignlr = new S("/equipStatusMonitor", "", ""), this.equipStatusSignlr.openConnect().then((t) => {
285
+ try {
286
+ t.invoke("GetAllEquipStatus");
287
+ } catch (e) {
288
+ console.log(e);
289
+ }
290
+ this.subscribeTo(t, "GetAllEquipStatus"), t.onclose(() => {
291
+ this.openSignlr();
292
+ });
293
+ });
294
+ }
295
+ subscribeTo(t, e) {
296
+ t.off(e), t.on(e, (s) => {
297
+ if (s && s.isSuccess && s.data && (this[e] ? this[e](s.data) : this.notice({ func: e, data: s.data, key: s.groupId }), e === "GetAllEquipStatus")) {
298
+ try {
299
+ t.invoke("GetEquipChangeStatus");
300
+ } catch (i) {
301
+ console.log(i);
302
+ }
303
+ this.subscribeTo(t, "GetEquipChangeStatus");
304
+ }
305
+ });
306
+ }
307
+ GetAllEquipStatus(t) {
308
+ this.isGetAllEquipStatus = !0, this.resetGroupStatusCounts(), Object.keys(t).forEach((e) => {
309
+ this.equipStatusObject[e] = t[e];
310
+ }), Object.keys(this.groupNodeObject).forEach((e) => {
311
+ this.updateByGroup(e);
312
+ }), this.updateAllGroupStatus();
313
+ }
314
+ reRenderGroupStatus() {
315
+ this.resetGroupStatusCounts(), Object.keys(this.aleadyUpdateStatus).forEach((t) => {
316
+ this.aleadyUpdateStatus[t] = !1;
317
+ }), Object.keys(this.groupNodeObject).forEach((t) => {
318
+ this.updateByGroup(t);
319
+ }), this.updateAllGroupStatus();
320
+ }
321
+ updateStatusCounts(t, e, s) {
322
+ if (this.groupNodeObject[t]) {
323
+ this.groupNodeObject[t][e] = this.groupNodeObject[t][e] + s;
324
+ let i = this.groupNodeObject[t].groupId;
325
+ i && this.updateStatusCounts(i, e, s);
326
+ }
327
+ }
328
+ updateByGroup(t) {
329
+ if (!this.aleadyUpdateStatus[t]) {
330
+ let e = window.top[`group-${t}${this.aliasName}`] || [], s = e.length;
331
+ s && (this.aleadyUpdateStatus[t] = !0, this.updateStatusCounts(t, this.statusMap[1], s), e.forEach((i) => {
332
+ this.updateGroupStatusCounts(t, this.equipStatusObject[i.equipNo], 1), this.nodesMap[`${t}-${i.equipNo}`] && (this.nodesMap[`${t}-${i.equipNo}`].status = this.equipStatusObject[i.equipNo]);
333
+ }));
334
+ }
335
+ }
336
+ updateGroupStatusCounts(t, e, s) {
337
+ if (this.nodesMap[t] && this.statusMap[e] && this.statusMap[s]) {
338
+ let i = this.statusMap[e], u = this.statusMap[s];
339
+ this.updateStatusCounts(t, i, 1), this.updateStatusCounts(t, u, -1);
340
+ }
341
+ }
342
+ updateGroupStatusByKey(t) {
343
+ this.isGetAllEquipStatus && (this.updateByGroup(t), this.updateAllGroupStatus());
344
+ }
345
+ updateAllGroupStatus() {
346
+ Object.keys(this.groupNodeObject).forEach((t) => {
347
+ let e = this.groupNodeObject[t], s = this.getSingleStatus(e);
348
+ if (s !== -1)
349
+ this.nodesMap[e.key].status = s;
350
+ else if (e.alarmCounts > 0)
351
+ this.nodesMap[e.key].status = 2;
352
+ else if (e.noComCounts > 0 && (e.normalCounts > 0 || e.lsSetCounts > 0 || e.initializeCounts > 0 || e.withdrawCounts > 0 || e.backUpCounts > 0))
353
+ this.nodesMap[e.key].status = 2;
354
+ else if (e.backUpCounts > 0 && (e.normalCounts > 0 || e.lsSetCounts > 0 || e.initializeCounts > 0 || e.withdrawCounts > 0)) {
355
+ let i = this.getStatusArray(e).filter((u) => u.statusMap != "backUpCounts" && u.value > 0);
356
+ i.length > 0 ? this.nodesMap[e.key].status = i.pop().status : this.nodesMap[e.key].status = 6;
357
+ } else if (e.normalCounts > 0 || e.lsSetCounts > 0 || e.initializeCounts > 0 || e.withdrawCounts > 0) {
358
+ let i = this.getStatusArray(e).filter((u) => u.value > 0);
359
+ i.length > 0 ? this.nodesMap[e.key].status = i.pop().status : this.nodesMap[e.key].status = 1;
360
+ }
361
+ });
362
+ }
363
+ getStatusArray(t) {
364
+ let e = [], s = Object.values(this.statusMap);
365
+ return Object.keys(t).forEach((i) => {
366
+ s.includes(i) && e.push({
367
+ statusMap: i,
368
+ status: this.reverseStatusMap[i],
369
+ value: t[i]
370
+ });
371
+ }), e;
372
+ }
373
+ getSingleStatus(t) {
374
+ let e = this.getStatusArray(t), s = e.filter((i) => i.value == 0);
375
+ if (s.length == e.length)
376
+ return 1;
377
+ if (s.length == 6) {
378
+ let i = e.find((u) => u.value > 0);
379
+ if (i)
380
+ return i.status;
381
+ }
382
+ return -1;
383
+ }
384
+ GetEquipChangeStatus(t) {
385
+ this.setStatus(t), this.updateAllGroupStatus();
386
+ }
387
+ setStatus(t) {
388
+ let e = this.equipStatusObject[t.equipNo], s = window.top.equipCache && window.top.equipCache[t.equipNo] && window.top.equipCache[t.equipNo].groupId;
389
+ if (t.status != 3 && s && e != t.status) {
390
+ this.updateGroupStatusCounts(s, t.status, e), this.equipStatusObject[t.equipNo] = t.status;
391
+ let i = `${s}-${t.equipNo}`;
392
+ this.nodesMap[i] && (this.nodesMap[i].status = t.status), this.statusChange(s, t.equipNo, t.status), this.updateAllGroupStatus();
393
+ }
394
+ }
395
+ resetGroupStatusCounts() {
396
+ for (let t in this.groupNodeObject)
397
+ Object.values(this.statusMap).forEach((e) => {
398
+ this.groupNodeObject[t][e] = 0;
399
+ });
400
+ }
401
+ countGroupStatus(t) {
402
+ this.resetGroupStatusCounts();
403
+ for (let e in this.groupNodeObject) {
404
+ let s = [];
405
+ if (t ? s = window.top[`group-${e}-search`] : s = window.top[`group-${e}${this.aliasName}`], s ? s.length : 0)
406
+ for (let u of s) {
407
+ const r = this.equipStatusObject[u.equipNo];
408
+ this.setGroupNum(u.groupId, r);
409
+ }
410
+ }
411
+ }
412
+ setGroupNum(t, e) {
413
+ !this.groupNodeObject[t] || (this.groupNodeObject[t][this.statusMap[e]] += 1, this.setGroupNum(this.groupNodeObject[t].groupId, e));
414
+ }
415
+ }
416
+ const j = {
417
+ getSetParm(o) {
418
+ if (window.axios)
419
+ return window.axios({
420
+ method: "post",
421
+ url: "/IoT/api/v3/EquipList/GetSetParmByEquipNo",
422
+ params: o,
423
+ data: o
424
+ });
425
+ }
426
+ }, M = Object.assign(
427
+ {},
428
+ j
429
+ );
430
+ class G {
431
+ constructor(t, e) {
432
+ this.nodesMap = t, this.equipControllObject = e;
433
+ }
434
+ async getSetting(t, e, s, i) {
435
+ let [u, r] = String(t).split("-"), p = {
436
+ equipNo: r
437
+ };
438
+ await M.getSetParm(p).then((a) => {
439
+ if (a.data.code == 200) {
440
+ let h = a && a.data && a.data.data && a.data.data.rows || [];
441
+ this.nodesMap[t].settings || (this.nodesMap[t].settings = []), h && h.length > 0 && this.nodesMap[t] && (h.forEach((n) => {
442
+ n.title = n.setNm, n.key = `${u}-${r}-${n.setNo}`, n.level = Number(s) + 1, n.checked = i || this.equipControllObject[r] && this.equipControllObject[r].includes(n.setNo), n.isSetting = !0, n.equipNo = r, n.groupId = u, n.equipName = e;
443
+ }), this.nodesMap[t].settings = [...h]);
444
+ }
445
+ });
446
+ }
447
+ }
448
+ class l {
449
+ static formateList(t, e) {
450
+ let s = [];
451
+ for (const i of t) {
452
+ let u = {};
453
+ u.count = 0, u.equipSelectCount = 0, u.controlSelectCount = 0, u.equipCount = i.equipCount || 0, u.title = i.name, u.key = i.id, u.isGroup = !0, u.children = [], u.status = 1, u.level = e || 1, u.expand = !e, u.equips = [], u.groupId = i.parentId, u.groups = [], u.alarmCounts = 0, u.backUpCounts = 0, u.noComCounts = 0, u.normalCounts = 0, u.lsSetCounts = 0, u.initializeCounts = 0, u.withdrawCounts = 0, u.indeterminate = !1, u.checked = !1, u.visible = !0, u.nodeEquipSelectCount = 0, u.checkedEquips = [], u.halfCheckedEquips = [], u.selectControlCount = 0, i.children && i.children.length > 0 && (u.groups = [
454
+ ...this.formateList(i.children, e ? e + 1 : 2)
455
+ ]), s.push(u);
456
+ }
457
+ return s;
458
+ }
459
+ static deepClone(t, e, s, i, u, r) {
460
+ let p = [];
461
+ if (t)
462
+ for (let a = 0, h = t.length; a < h; a++)
463
+ p.push(
464
+ {
465
+ isGroup: s,
466
+ key: `${i}-${t[a].id}`,
467
+ status: r[t[a].id] || 0,
468
+ title: t[a].title,
469
+ level: e,
470
+ expand: !1,
471
+ isEquip: !0,
472
+ loading: !1,
473
+ indeterminate: u[t[a].equipNo] && u[t[a].equipNo].indeterminate || !1,
474
+ checked: u[t[a].equipNo] && u[t[a].equipNo].checked || !1,
475
+ groupId: i,
476
+ equipNo: t[a].id,
477
+ visible: !0,
478
+ settings: []
479
+ }
480
+ );
481
+ return p;
482
+ }
483
+ static copyOrigin(t) {
484
+ let e = [];
485
+ return t.forEach((s) => {
486
+ e.push({ ...s });
487
+ }), e;
488
+ }
489
+ static getPosition(t, e) {
490
+ let s = 0;
491
+ for (let i = 0, u = e.length; i < u; i++)
492
+ if (e[i].key == t) {
493
+ s = i - 30;
494
+ break;
495
+ }
496
+ return s;
497
+ }
498
+ static flattern(t, e) {
499
+ t.forEach((s) => {
500
+ s.isGroup && (e[`${s.key}`] = null, e[`${s.key}`] = s), s.groups && s.groups.length && this.flattern(s.groups, e);
501
+ });
502
+ }
503
+ static generateUUID() {
504
+ let t = new Date().getTime();
505
+ return window.performance && typeof window.performance.now == "function" && (t += performance.now()), "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(s) {
506
+ let i = (t + Math.random() * 16) % 16 | 0;
507
+ return t = Math.floor(t / 16), (s === "x" ? i : i & 3 | 8).toString(16);
508
+ });
509
+ }
510
+ static listToTreeList(t) {
511
+ const e = t, s = [], i = {};
512
+ return e.forEach((u) => {
513
+ i[u.id] = u;
514
+ }), e.forEach((u) => {
515
+ const r = i[u.parentId];
516
+ r ? (r.children || (r.children = [])).push(u) : s.push(u);
517
+ }), s;
518
+ }
519
+ }
520
+ class $ {
521
+ constructor(t, e, s) {
522
+ this.showSettings = e, this.groupNodeObject = t, this.aliasName = s;
523
+ }
524
+ filterMethod(t) {
525
+ for (let e in this.groupNodeObject)
526
+ t && this.updateBySearch(e, t);
527
+ }
528
+ updateBySearch(t, e) {
529
+ let s = window.top[`group-${this.groupNodeObject[t].key}${this.aliasName}`];
530
+ s && (s = s.filter((i) => i.title.includes(e)), window.top[`group-${this.groupNodeObject[t].key}-search`] = l.copyOrigin(s));
531
+ }
532
+ }
533
+ function d(o, t, e, s, i, u, r, p) {
534
+ var a = typeof o == "function" ? o.options : o;
535
+ t && (a.render = t, a.staticRenderFns = e, a._compiled = !0), s && (a.functional = !0), u && (a._scopeId = "data-v-" + u);
536
+ var h;
537
+ if (r ? (h = function(c) {
538
+ c = c || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, !c && typeof __VUE_SSR_CONTEXT__ < "u" && (c = __VUE_SSR_CONTEXT__), i && i.call(this, c), c && c._registeredComponents && c._registeredComponents.add(r);
539
+ }, a._ssrRegister = h) : i && (h = p ? function() {
540
+ i.call(
541
+ this,
542
+ (a.functional ? this.parent : this).$root.$options.shadowRoot
543
+ );
544
+ } : i), h)
545
+ if (a.functional) {
546
+ a._injectStyles = h;
547
+ var n = a.render;
548
+ a.render = function(q, C) {
549
+ return h.call(C), n(q, C);
550
+ };
551
+ } else {
552
+ var g = a.beforeCreate;
553
+ a.beforeCreate = g ? [].concat(g, h) : [h];
554
+ }
555
+ return {
556
+ exports: o,
557
+ options: a
558
+ };
559
+ }
560
+ const y = {
561
+ props: {
562
+ source: {
563
+ type: Object
564
+ },
565
+ groupEditAndNew: {
566
+ type: Function
567
+ },
568
+ deleteGroup: {
569
+ type: Function
570
+ }
571
+ }
572
+ };
573
+ var m = function() {
574
+ var t = this, e = t._self._c;
575
+ return e("div", { staticClass: "operates" }, [e("el-popover", { attrs: { placement: "bottom", trigger: "hover" }, scopedSlots: t._u([{ key: "reference", fn: function() {
576
+ return [e("i", { staticClass: "el-icon-more" })];
577
+ }, proxy: !0 }]) }, [e("el-button-group", { staticClass: "new-button-group setModule" }, [e("el-button", { staticClass: "elBtn", attrs: { type: "text", size: "small", icon: " iconfont icon-tubiao20_bianji" }, on: { click: function(s) {
578
+ return s.stopPropagation(), t.groupEditAndNew(!1, t.source);
579
+ } } }, [t._v(" " + t._s(t.$t("equipInfo.poverTips.rename")) + " ")]), e("el-button", { staticClass: "elBtn", attrs: { type: "text", size: "small", icon: " iconfont icon-gw-icon-tianjia1" }, on: { click: function(s) {
580
+ return t.groupEditAndNew(!0, t.source);
581
+ } } }, [t._v(" " + t._s(t.$t("equipInfo.poverTips.newChildGroup")) + " ")]), t.source.level != 1 ? e("el-button", { attrs: { type: "danger", size: "small", icon: " iconfont icon-tubiao20_shanchu" }, on: { click: function(s) {
582
+ return s.stopPropagation(), t.deleteGroup(t.source);
583
+ } } }, [t._v(" " + t._s(t.$t("publics.button.deletes")) + " ")]) : t._e()], 1)], 1)], 1);
584
+ }, I = [], _ = /* @__PURE__ */ d(
585
+ y,
586
+ m,
587
+ I,
588
+ !1,
589
+ null,
590
+ null,
591
+ null,
592
+ null
593
+ );
594
+ const v = _.exports, x = {
595
+ name: "ElTreeVirtualNode",
596
+ componentName: "ElTreeVirtualNode",
597
+ props: {
598
+ isSearchStatus: {
599
+ type: Boolean,
600
+ default: !1
601
+ },
602
+ searchName: {
603
+ type: String,
604
+ default: ""
605
+ },
606
+ expanding: {
607
+ type: Boolean,
608
+ default: !1
609
+ },
610
+ aleadyLoadAll: {
611
+ type: Boolean,
612
+ default: !1
613
+ },
614
+ groupLoading: {
615
+ type: Boolean,
616
+ default: !1
617
+ },
618
+ source: {
619
+ default() {
620
+ return {};
621
+ }
622
+ },
623
+ showCheckbox: {
624
+ type: Boolean,
625
+ default: !1
626
+ },
627
+ showStatus: {
628
+ type: Boolean,
629
+ default: !1
630
+ },
631
+ showOperate: {
632
+ type: Boolean,
633
+ default: !1
634
+ },
635
+ currentSelect: {
636
+ type: Number | String,
637
+ default: -1
638
+ },
639
+ nodeClick: {
640
+ type: Function
641
+ },
642
+ onChecked: {
643
+ type: Function
644
+ },
645
+ groupEditAndNew: {
646
+ type: Function
647
+ },
648
+ deleteGroup: {
649
+ type: Function
650
+ },
651
+ colorConfig: {
652
+ type: Object
653
+ },
654
+ index: {
655
+ type: Number,
656
+ default: -1
657
+ }
658
+ },
659
+ components: {
660
+ oparate: v
661
+ },
662
+ computed: {
663
+ getColor() {
664
+ return function(o) {
665
+ let t;
666
+ switch (o) {
667
+ case 0:
668
+ t = this.colorConfig.noComm;
669
+ break;
670
+ case 1:
671
+ t = this.colorConfig.normal;
672
+ break;
673
+ case 2:
674
+ t = this.colorConfig.alarm;
675
+ break;
676
+ case 3:
677
+ t = this.colorConfig.lsSet;
678
+ break;
679
+ case 4:
680
+ t = this.colorConfig.initialize;
681
+ break;
682
+ case 5:
683
+ t = this.colorConfig.withdraw;
684
+ break;
685
+ case 6:
686
+ t = this.colorConfig.BackUp;
687
+ break;
688
+ default:
689
+ t = this.colorConfig.noComm;
690
+ break;
691
+ }
692
+ return t;
693
+ };
694
+ }
695
+ },
696
+ data() {
697
+ return {
698
+ indent: 13
699
+ };
700
+ },
701
+ methods: {
702
+ clickFunction() {
703
+ this.source.expand = !this.source.expand, this.nodeClick(this.source, this.index, this.source.level, this.source.checked);
704
+ },
705
+ checkedChange(o) {
706
+ this.onChecked(this.source);
707
+ }
708
+ }
709
+ };
710
+ var T = function() {
711
+ var t = this, e = t._self._c;
712
+ return e("div", { staticClass: "el-tree-node", class: {
713
+ parent_tag: t.source.isGroup,
714
+ child_tags: !t.source.isGroup,
715
+ selectedColor: t.currentSelect === t.source.key && !t.source.isGroup
716
+ }, on: { click: t.clickFunction } }, [e("div", { staticClass: "el-tree-node__content" }, [e("span", { staticClass: "el-tree__indent", style: { width: (t.source.level - 1) * t.indent + "px" }, attrs: { "aria-hidden": "true" } }), t.source.isGroup ? e("span", { class: [
717
+ {
718
+ "is-leaf": !t.source.isGroup,
719
+ expanded: t.source.isGroup && t.source.expand
720
+ },
721
+ "el-tree-node__expand-icon",
722
+ "el-icon-arrow-right"
723
+ ] }) : t._e(), e("div", { staticClass: "nodeContent" }, [t.showCheckbox ? e("el-checkbox", { attrs: { indeterminate: t.source.indeterminate }, on: { change: t.checkedChange }, model: { value: t.source.checked, callback: function(s) {
724
+ t.$set(t.source, "checked", s);
725
+ }, expression: "source.checked" } }) : t._e(), t.showStatus ? e("span", { staticClass: "circle" }, [t.source.status != 6 ? e("span", { staticClass: "yd", style: { backgroundColor: t.getColor(t.source.status) } }) : e("i", { staticClass: "iconfont icon-gw-icon-beiji2", style: { color: t.colorConfig.BackUp } })]) : t._e(), e("span", { staticClass: "label" }, [t._v(" " + t._s(t.source.title))]), t.source.isGroup && !t.source.isEquip ? e("span", { staticClass: "equipNumber" }, [t._v(" " + t._s(t.source.count) + " ")]) : t._e(), t.source.isGroup && t.showOperate ? e("oparate", { attrs: { source: t.source, groupEditAndNew: t.groupEditAndNew, deleteGroup: t.deleteGroup } }) : t._e(), t.source.loading ? e("span", { staticClass: "el-tree-node__loading-icon el-icon-loading" }) : t._e()], 1)])]);
726
+ }, L = [], A = /* @__PURE__ */ d(
727
+ x,
728
+ T,
729
+ L,
730
+ !1,
731
+ null,
732
+ null,
733
+ null,
734
+ null
735
+ );
736
+ const B = A.exports, U = {
737
+ components: {
738
+ VirtualList: b
739
+ },
740
+ data() {
741
+ return {
742
+ itemComponent: B,
743
+ visibleList: [],
744
+ currentSelect: -1,
745
+ equipStatusManage: null,
746
+ cacheManage: null,
747
+ searchManage: null,
748
+ equipNumManage: null,
749
+ requestManage: null,
750
+ checkStatusManage: null,
751
+ groupNodeObject: {},
752
+ nodesMap: {},
753
+ equipCheckObject: {},
754
+ equipStatusObject: {},
755
+ controlObject: {},
756
+ isSearchStatus: !1,
757
+ equipControllObject: {},
758
+ expandGroup: [],
759
+ updateJob: null
760
+ };
761
+ },
762
+ props: {
763
+ data: {
764
+ type: Array
765
+ },
766
+ selectEquips: {
767
+ type: Array,
768
+ default: () => []
769
+ },
770
+ controllList: {
771
+ type: Array,
772
+ default: () => []
773
+ },
774
+ showSettings: {
775
+ type: Boolean,
776
+ default: !1
777
+ },
778
+ showSelectNum: {
779
+ type: Boolean,
780
+ default() {
781
+ return !1;
782
+ }
783
+ },
784
+ showCheckbox: {
785
+ type: Boolean,
786
+ default: !1
787
+ },
788
+ showStatus: {
789
+ type: Boolean,
790
+ default: !1
791
+ },
792
+ showOperate: {
793
+ type: Boolean,
794
+ default: !1
795
+ },
796
+ defaultExpandAll: {
797
+ type: Boolean,
798
+ default: !1
799
+ },
800
+ currentNodeKey: [String, Number],
801
+ colorConfig: {
802
+ type: Object,
803
+ default: () => ({
804
+ noComm: "#a0a0a0",
805
+ normal: "#63e03f",
806
+ alarm: "#f22433",
807
+ lsSet: "#bebcaa",
808
+ initialize: "#289ac0",
809
+ withdraw: "#ffc0cb",
810
+ BackUp: "#f8901c"
811
+ })
812
+ },
813
+ treeType: {
814
+ type: String,
815
+ default: ""
816
+ },
817
+ buildTree: {
818
+ type: Function
819
+ },
820
+ filterData: {
821
+ type: Function
822
+ },
823
+ alias: {
824
+ type: String,
825
+ default: ""
826
+ }
827
+ },
828
+ watch: {
829
+ data(o) {
830
+ o && o.length && (l.flattern(this.data, this.groupNodeObject), this.cacheManage.addNodesMap(Object.values(this.groupNodeObject).map((t) => t)), this.init());
831
+ },
832
+ controllList(o) {
833
+ this.updateCheckedStatusWithControls();
834
+ },
835
+ selectEquips(o) {
836
+ this.updateCheckedStatusWithEquips();
837
+ }
838
+ },
839
+ computed: {
840
+ aliasName() {
841
+ return this.alias ? `-${this.alias}` : "";
842
+ }
843
+ },
844
+ created() {
845
+ this.showCheckbox && (this.checkStatusManage = new E(this.groupNodeObject, this.nodesMap, this.equipControllObject, this.controlObject, this.equipCheckObject, this.aliasName)), this.cacheManage = new N(this.groupNodeObject, this.nodesMap, this.controlObject, this.equipCheckObject), this.searchManage = new $(this.groupNodeObject, this.showSettings, this.aliasName), this.equipNumManage = new O(this.groupNodeObject, this.aliasName), this.requestManage = new G(this.nodesMap, this.equipControllObject);
846
+ },
847
+ mounted() {
848
+ this.updateCheckedStatusWithControls(), this.updateCheckedStatusWithEquips(), window.addEventListener("message", (o) => {
849
+ o.data.type && this[o.data.type] && this[o.data.type](o.data.data);
850
+ });
851
+ },
852
+ methods: {
853
+ init() {
854
+ this.data[0].expand = !0, this.updateTreeList(), setTimeout(() => {
855
+ Object.values(this.groupNodeObject).forEach((o) => {
856
+ !o.expand && this.expandGroup.includes(o.key) && (o.expand = !0), this.filterWithAlias(o.key), this.updateGroupEquips(o.key, !0);
857
+ }), this.equipNumManage.resetGroupNum(this.isSearchStatus), this.showStatus && !this.equipStatusManage && (this.equipStatusManage = new k(this.nodesMap, this.equipStatusObject, this.groupNodeObject, this.statusChange, this.aliasName)), this.filterEmptyGroup();
858
+ }, 100);
859
+ },
860
+ filterEmptyGroup() {
861
+ if (this.isSearchStatus) {
862
+ let o = [];
863
+ Object.values(this.groupNodeObject).forEach((t) => {
864
+ t.isGroup && !t.isEquip && !t.count && o.push(t.key);
865
+ }), this.visibleList = this.visibleList.filter((t) => !o.includes(t.key));
866
+ }
867
+ },
868
+ filterWithAlias(o) {
869
+ if (this.aliasName) {
870
+ let t = window.top[`group-${o}`] || [];
871
+ window.top[`group-${o}${this.aliasName}`] = this.filterData(t);
872
+ }
873
+ },
874
+ updateCurrentSelect() {
875
+ window.top.equipCache && window.top.equipCache[this.currentNodeKey] && (this.currentSelect = `${window.top.equipCache[this.currentNodeKey].groupId}-${this.currentNodeKey}`);
876
+ },
877
+ statusChange(o, t, e) {
878
+ this.currentSelect == `${o}-${t}` && this.$emit("statusChange", t, e);
879
+ },
880
+ updateCheckWidthJob() {
881
+ this.showCheckbox && (this.checkStatusManage.resetCheckedStatus(), this.updateCheckedStatusWithControls(), this.updateCheckedStatusWithEquips());
882
+ },
883
+ updateGroupEquips(o, t) {
884
+ if (!this.isSearchStatus && this.groupNodeObject[o]) {
885
+ let e = this.equipNumManage.getAllEquipsNum();
886
+ this.$emit("getTotal", e);
887
+ }
888
+ if (t) {
889
+ let e = window.top[`group-${o}${this.aliasName}`] || [];
890
+ this.equipNumManage.setGroupNum(o, e.length);
891
+ }
892
+ this.groupNodeObject[o].expand && this.updateList(o, this.groupNodeObject[o].level, null, !1), this.showStatus && this.equipStatusManage && this.equipStatusManage.updateGroupStatusByKey(o);
893
+ },
894
+ updateList(o) {
895
+ if (this.groupNodeObject[o]) {
896
+ let t = [];
897
+ this.isSearchStatus ? (t = window.top[`group-${o}-search`], this.groupNodeObject[o].equips = [...l.deepClone(t, Number(this.groupNodeObject[o].level) + 1, this.showSettings, o, this.equipCheckObject, this.equipStatusObject)]) : (t = window.top[`group-${o}${this.aliasName}`], this.groupNodeObject[o].equips = [...l.deepClone(t, Number(this.groupNodeObject[o].level) + 1, this.showSettings, o, this.equipCheckObject, this.equipStatusObject)]), this.cacheManage.addNodesMap(this.groupNodeObject[o].equips), this.cacheManage.closeBrotherNode(o), this.visibleList = [], this.updateTreeList(this.data), this.updateCurrentSelect();
898
+ }
899
+ },
900
+ updateTreeList(o) {
901
+ o && o.forEach((t) => {
902
+ this.visibleList.push(t), t.expand ? t.isEquip ? (t.children || (t.children = []), t.settings && (t.children = [...t.settings || []])) : t.children = [...t.equips || [], ...t.groups || []] : t.children = [], this.updateTreeList(t.children || []);
903
+ });
904
+ },
905
+ nodeClick(o, t, e, s) {
906
+ this.$emit("node-click", { ...o, key: o.isEquip ? o.equipNo : o.key }), o.isGroup ? o.isEquip ? this.equipClick(o, t, s) : this.groupClick(o, t, s) : this.currentSelect = o.key;
907
+ },
908
+ groupClick(o, t, e) {
909
+ o.expand ? this.updateList(o.key, o.level, t, e) : (this.cacheManage.recycleGroupCache(o.key), this.visibleList = [], this.updateTreeList(this.data)), this.isSearchStatus && this.filterEmptyGroup();
910
+ },
911
+ async equipClick(o, t, e) {
912
+ this.showSettings && (o.expand ? (o.loading = !0, await this.requestManage.getSetting(o.key, o.title, o.level, e), this.controlObject[o.equipNo] = { groupId: o.groupId }, o.loading = !1, this.visibleList.splice(t + 1, 0, ...this.nodesMap[o.key].settings), this.cacheManage.addNodesMap(this.nodesMap[o.key].settings)) : (this.visibleList.splice(t + 1, this.nodesMap[o.key].settings.length), this.cacheManage.removeNodesMap(this.nodesMap[o.key].settings), this.nodesMap[o.key].settings = [], delete this.controlObject[o.equipNo]));
913
+ },
914
+ onChecked(o) {
915
+ this.checkStatusManage && this.checkStatusManage.onChecked(o, this.isSearchStatus), this.$emit("onCheck", o);
916
+ },
917
+ groupEditAndNew(o, t) {
918
+ this.$emit("groupEditAndNew", { isGroupNew: o, node: t });
919
+ },
920
+ deleteGroup(o) {
921
+ this.$emit("deleteGroup", o);
922
+ },
923
+ updateCheckedStatusWithControls() {
924
+ this.controllList && this.controllList.length && this.checkStatusManage && this.checkStatusManage && this.checkStatusManage.updateCheckedStatusWithControls(this.controllList);
925
+ },
926
+ updateCheckedStatusWithEquips() {
927
+ this.selectEquips && this.selectEquips.length && this.checkStatusManage && this.checkStatusManage && this.checkStatusManage.updateCheckedStatusWithEquips(this.selectEquips);
928
+ },
929
+ resetCheckedStatus() {
930
+ this.checkStatusManage && this.checkStatusManage.resetCheckedStatus();
931
+ },
932
+ getEquipSelectd() {
933
+ return this.checkStatusManage && this.checkStatusManage.getEquipSelectd();
934
+ },
935
+ getControlSelected() {
936
+ return this.checkStatusManage && this.checkStatusManage.getControlSelected();
937
+ },
938
+ recordExpandGroup() {
939
+ this.expandGroup = [], Object.values(this.groupNodeObject).forEach((o) => {
940
+ o.expand && this.expandGroup.push(o.key);
941
+ });
942
+ },
943
+ removeExpandGroup() {
944
+ this.$nextTick(() => {
945
+ this.expandGroup = [];
946
+ });
947
+ },
948
+ filterMethod(o) {
949
+ this.visibleList = [], this.cacheManage.recycleAllNodeCache(), o ? (this.isSearchStatus = !0, this.searchManage.filterMethod(o)) : this.isSearchStatus = !1, this.init(), this.$nextTick(() => {
950
+ this.$refs.virtualList.scrollToIndex(0);
951
+ }), this.equipNumManage.resetGroupNum(this.isSearchStatus), this.equipStatusManage && this.equipStatusManage.countGroupStatus(this.isSearchStatus), this.showCheckbox && (this.checkStatusManage && this.checkStatusManage.reComputedCheckNum(this.isSearchStatus), this.checkStatusManage && this.checkStatusManage.updateGroupCheckStatus());
952
+ },
953
+ rebuildTree() {
954
+ this.recordExpandGroup(), this.checkStatusManage && this.checkStatusManage.resetCheckedStatus(), this.cacheManage.recycleAllNodeCache(!0), this.$nextTick(() => {
955
+ this.buildTree(), this.removeExpandGroup();
956
+ });
957
+ },
958
+ destroyTree() {
959
+ this.cacheManage.recycleAllNodeCache(!0), this.visibleList = [], this.updateTreeList(this.data);
960
+ },
961
+ GetGroupEquips(o) {
962
+ o.groupId && this.groupNodeObject[o.groupId] && !this.isSearchStatus && (this.updateGroupEquips(o.groupId, !0), this.updateJob && clearTimeout(this.updateJob), this.updateJob = setTimeout(() => {
963
+ this.updateCheckWidthJob();
964
+ }, 500));
965
+ },
966
+ DeleteEquip(o) {
967
+ const { groupId: t, equips: e } = o || {};
968
+ t && this.groupNodeObject[t] && (this.updateGroupEquips(o.groupId), this.equipNumManage.resetGroupNum(), this.checkStatusManage && this.checkStatusManage.resetCheckedStatus()), e.length && e.forEach((s) => {
969
+ let i = this.nodesMap[`${t}-${s.id}`];
970
+ i && (this.currentSelect.toString().includes(s.id) && this.$emit("currentDelete"), this.showStatus && (i.status == 2 || i.status == 0 ? this.equipStatusManage.setGroupStatus(t, !1, 2) : i.status == 6 && this.equipStatusManage.setGroupStatus(t, !1, 6)), delete this.nodesMap[`${t}-${s.id}`], delete this.equipCheckObject[s.id]), delete this.equipStatusObject[s.id];
971
+ }), this.equipStatusManage && this.equipStatusManage.reRenderGroupStatus();
972
+ },
973
+ moveEquips(o) {
974
+ const { updateGroups: t, buildTree: e } = o || {};
975
+ !e && t ? t.forEach((s) => {
976
+ s && this.groupNodeObject[s] && (this.updateGroupEquips(s), this.equipNumManage.resetGroupNum(), this.checkStatusManage && this.checkStatusManage.resetCheckedStatus());
977
+ }) : e && this.rebuildTree(), this.equipStatusManage && this.equipStatusManage.reRenderGroupStatus();
978
+ },
979
+ DeleteEquipGroup(o) {
980
+ o.forEach((t) => {
981
+ t.groupId && this.nodesMap[t.groupId] && (this.isSearchStatus || this.rebuildTree());
982
+ }), this.equipStatusManage && this.equipStatusManage.reRenderGroupStatus();
983
+ },
984
+ AddEquipGroup(o) {
985
+ const { parentGroupId: t, groupId: e } = o || {};
986
+ e && this.nodesMap[t] && this.treeType && (this.isSearchStatus || this.rebuildTree());
987
+ },
988
+ EditEquipGroup(o) {
989
+ const { groupId: t, groupName: e } = o;
990
+ this.nodesMap[t] && (this.nodesMap[t].title = e);
991
+ },
992
+ AddEquip(o) {
993
+ const { groupId: t } = o || {};
994
+ t && (this.isSearchStatus || this.rebuildTree(), this.equipStatusManage && this.equipStatusManage.reRenderGroupStatus());
995
+ },
996
+ EditEquip(o) {
997
+ const { equipNo: t, groupId: e, equipName: s } = o || {};
998
+ this.nodesMap[`${e}-${t}`] && (this.isSearchStatus || (this.nodesMap[`${e}-${t}`].title = s));
999
+ }
1000
+ }
1001
+ };
1002
+ var W = function() {
1003
+ var t = this, e = t._self._c;
1004
+ return e("div", { staticClass: "gw-tree", style: { height: "100%" } }, [e("div", { staticClass: "tree", style: { height: "100%" } }, [e("virtual-list", { ref: "virtualList", staticClass: "virtualList", attrs: { "data-key": "key", "data-sources": t.visibleList, "data-component": t.itemComponent, keeps: 40, "extra-props": {
1005
+ currentSelect: t.currentSelect,
1006
+ nodeClick: t.nodeClick,
1007
+ showStatus: t.showStatus,
1008
+ showSettings: t.showSettings,
1009
+ showCheckbox: t.showCheckbox,
1010
+ onChecked: t.onChecked,
1011
+ showOperate: t.showOperate,
1012
+ groupEditAndNew: t.groupEditAndNew,
1013
+ deleteGroup: t.deleteGroup,
1014
+ colorConfig: t.colorConfig,
1015
+ isSearchStatus: t.isSearchStatus
1016
+ } } })], 1)]);
1017
+ }, R = [], K = /* @__PURE__ */ d(
1018
+ U,
1019
+ W,
1020
+ R,
1021
+ !1,
1022
+ null,
1023
+ null,
1024
+ null,
1025
+ null
1026
+ );
1027
+ const D = K.exports;
1028
+ class F {
1029
+ constructor() {
1030
+ this.eGroupNotify = new S("/eGroupNotify", "", ""), this.alreadyUpdate = {}, this.notify = null;
1031
+ }
1032
+ stop() {
1033
+ this.notify && this.notify.stop();
1034
+ }
1035
+ Init() {
1036
+ this.eGroupNotify.openConnect().then((t) => {
1037
+ this.notify = t;
1038
+ try {
1039
+ t.invoke("GetEquipGroupTree"), t.invoke("GetAllEquipGroupTree");
1040
+ } catch (e) {
1041
+ console.log(e);
1042
+ }
1043
+ this.subscribeTo(t, "GetEquipGroupTree"), this.subscribeTo(t, "AddEquipGroup"), this.subscribeTo(t, "EditEquipGroup"), this.subscribeTo(t, "DeleteEquipGroup");
1044
+ try {
1045
+ t.invoke("GetGroupEquips");
1046
+ } catch (e) {
1047
+ console.log(e);
1048
+ }
1049
+ this.subscribeTo(t, "GetGroupEquips"), this.subscribeTo(t, "AddEquip"), this.subscribeTo(t, "DeleteEquip"), this.subscribeTo(t, "EditEquip"), this.subscribeTo(t, "moveEquips"), this.subscribeTo(t, "GetAllEquipGroupTree"), t.onclose((e) => {
1050
+ try {
1051
+ this.Init();
1052
+ } catch (s) {
1053
+ console.log(s);
1054
+ }
1055
+ console.log("\u91CD\u8FDE", e);
1056
+ });
1057
+ }).catch((t) => {
1058
+ console.error(t);
1059
+ });
1060
+ }
1061
+ subscribeTo(t, e) {
1062
+ t.off(e), t.on(e, (s) => {
1063
+ s && s.isSuccess && (this[e] ? this[e](s.data) : this.notice({ func: e, data: s.data, key: s.groupId }));
1064
+ });
1065
+ }
1066
+ GetEquipGroupTree(t) {
1067
+ window.top.groupList || (window.top.groupList = t, this.notice({ type: "GetEquipGroupTree" }));
1068
+ }
1069
+ GetAllEquipGroupTree(t) {
1070
+ console.log(8899, t), window.top.groupList_manageMent || (window.top.groupList_manageMent = t, this.notice({ type: "GetEquipGroupTreeWidthTreeType" }));
1071
+ }
1072
+ AddEquipGroup(t) {
1073
+ const { parentGroupId: e, groupId: s, groupName: i } = t || {};
1074
+ s && (window.top.groupList_manageMent || (window.top.groupList_manageMent = []), window.top.groupList_manageMent.push({
1075
+ parentId: e,
1076
+ id: s,
1077
+ name: i,
1078
+ equipCount: 0
1079
+ }), this.notice({ type: "AddEquipGroup", data: t }));
1080
+ }
1081
+ EditEquipGroup(t) {
1082
+ const { groupId: e, groupName: s } = t;
1083
+ window.top.groupList && window.groupList.forEach((i) => {
1084
+ i.id == e && (i.name = s);
1085
+ }), window.top.groupList_manageMent && window.groupList_manageMent.forEach((i) => {
1086
+ i.id == e && (i.name = s);
1087
+ }), this.notice({ type: "EditEquipGroup", data: t });
1088
+ }
1089
+ deleteChildGroup(t, e) {
1090
+ let s = [];
1091
+ e.forEach((i) => {
1092
+ i.parentId == t && s.push(i.id);
1093
+ }), s.forEach((i) => {
1094
+ let u = e.findIndex((r) => r.id == i);
1095
+ u > -1 && e.splice(u, 1), this.deleteChildGroup(i, e);
1096
+ });
1097
+ }
1098
+ DeleteEquipGroup(t) {
1099
+ t.forEach((e) => {
1100
+ if (window.top.groupList) {
1101
+ let s = window.top.groupList.findIndex((i) => i.id == e.groupId);
1102
+ s > -1 && window.top.groupList.splice(s, 1), this.deleteChildGroup(e.groupId, window.top.groupList);
1103
+ }
1104
+ if (window.top.groupList_manageMent) {
1105
+ let s = window.top.groupList_manageMent.findIndex((i) => i.id == e.groupId);
1106
+ s > -1 && window.top.groupList_manageMent.splice(s, 1), this.deleteChildGroup(e.groupId, window.top.groupList_manageMent);
1107
+ }
1108
+ }), this.notice({ type: "DeleteEquipGroup", data: t });
1109
+ }
1110
+ GetGroupEquips(t) {
1111
+ const { groupId: e, equips: s } = t || {};
1112
+ console.log(this.alreadyUpdate[e]), this.alreadyUpdate[e] || (window.top.groupCache || (window.top.groupCache = {}), window.top.groupCache[e] = {}, e && s && s instanceof Array && (s.forEach((i) => {
1113
+ i.title = i.name, i.groupId = e, i.equipNo = i.id, delete i.name, window.equipCache || (window.top.equipCache = {}), window.top.equipCache[i.id] = i, window.top.groupCache[e][i.id] = i;
1114
+ }), window.top[`group-${e}`] = s, this.notice({ type: "GetGroupEquips", data: { groupId: e } }), this.alreadyUpdate[e] = !0));
1115
+ }
1116
+ AddEquip(t) {
1117
+ const { groupId: e, equips: s } = t || {};
1118
+ window.top[`group-${e}`] || (window.top[`group-${e}`] = []), window.top.groupCache || (window.top.groupCache = {}), window.top.groupCache[e] || (window.top.groupCache[e] = {}), window.top.equipCache || (window.top.equipCache = {});
1119
+ let i = window.top[`group-${e}`].length;
1120
+ if (e && s) {
1121
+ if (s.forEach((u, r) => {
1122
+ window.top[`group-${e}`].push(
1123
+ {
1124
+ equipNo: u.id,
1125
+ groupId: e,
1126
+ id: u.id,
1127
+ title: u.name
1128
+ }
1129
+ ), window.top.equipCache[u.id] = window.top[`group-${e}`][i + r], window.top.groupCache[e][u.id] = window.top[`group-${e}`][i + r];
1130
+ }), !this.exist(e, window.top.groupList)) {
1131
+ let u = this.findParentList(e, window.top.groupList_manageMent);
1132
+ window.top.groupList.push(...u);
1133
+ }
1134
+ this.notice({ type: "AddEquip", data: t });
1135
+ }
1136
+ }
1137
+ moveEquips(t) {
1138
+ let e = [], s = !0, i = [];
1139
+ const { sourceGroup: u, targetGroupId: r } = t || {};
1140
+ r && e.push(r), u.forEach((p) => {
1141
+ if (e.push(p.groupId), (!window.top[`group-${r}`] || !window.top[`group-${r}`].length) && (window.top[`group-${r}`] = [], i.push(r)), window.top.groupCache || (window.top.groupCache = {}), window.top.groupCache[r] || (window.top.groupCache[r] = {}), p.equips.forEach((a) => {
1142
+ if (a.title = a.name, a.groupId = r, a.equipNo = a.id, window.top[`group-${p.groupId}`]) {
1143
+ let h = window.top[`group-${p.groupId}`].findIndex((n) => n.id == a.id);
1144
+ h > -1 && window.top[`group-${p.groupId}`].splice(h, 1);
1145
+ }
1146
+ window.equipCache || (window.top.equipCache = {}), window.top.equipCache[a.id] = a, window.top.groupCache[r][a.id] = a, window.top[`group-${r}`].push(a);
1147
+ }), !window.top[`group-${p.groupId}`].length) {
1148
+ let a = window.top.groupList.findIndex((h) => h.id == p.groupId);
1149
+ a > -1 && window.top.groupList.splice(a, 1), this.deleteChildGroup(p.groupId, window.top.groupList);
1150
+ }
1151
+ }), i.forEach((p) => {
1152
+ if (!this.exist(p, window.top.groupList)) {
1153
+ let a = this.findParentList(p, window.top.groupList_manageMent);
1154
+ window.top.groupList.push(...a);
1155
+ }
1156
+ }), this.notice({ type: "moveEquips", data: { updateGroups: e, buildTree: s } });
1157
+ }
1158
+ exist(t, e) {
1159
+ return e ? e.some((s) => s.id == t) : !1;
1160
+ }
1161
+ findParentList(t, e) {
1162
+ let s = [];
1163
+ if (e) {
1164
+ let i = e.findIndex((u) => u.id == t);
1165
+ i > -1 && s.push({ ...e[i] }), e[i].parentId && !this.exist(e[i].parentId, window.top.groupList) && s.push(...this.findParentList(e[i].parentId, window.top.groupList_manageMent));
1166
+ }
1167
+ return s;
1168
+ }
1169
+ DeleteEquip(t) {
1170
+ const { groupId: e, equips: s } = t || {};
1171
+ if (e && s && s instanceof Array) {
1172
+ if (window.top[`group-${e}`])
1173
+ for (let i = 0, u = s.length; i < u; i++) {
1174
+ let r = window.top[`group-${e}`].findIndex((p) => p.id == s[i].id);
1175
+ r > -1 && window.top[`group-${e}`].splice(r, 1), delete window.top.equipCache[s[i].id], delete window.top.groupCache[e][s[i].id];
1176
+ }
1177
+ this.notice({ type: "DeleteEquip", data: t });
1178
+ }
1179
+ }
1180
+ EditEquip(t) {
1181
+ const { equipNo: e, groupId: s, equipName: i } = t || {};
1182
+ s && e && (window[`group-${s}`] && (window.top.equipCache[e] = i), this.notice({ type: "EditEquip", data: t }));
1183
+ }
1184
+ notice(t) {
1185
+ if (window.top.hasIframe) {
1186
+ let e = document.getElementsByTagName("iframe");
1187
+ for (let s of e)
1188
+ s.contentWindow.postMessage(t);
1189
+ } else
1190
+ window.postMessage(t, "*");
1191
+ }
1192
+ }
1193
+ const z = {
1194
+ name: "treeV2",
1195
+ components: {
1196
+ tree: D
1197
+ },
1198
+ data() {
1199
+ return {
1200
+ list: [],
1201
+ refId: l.generateUUID(),
1202
+ treeKey: null,
1203
+ listKey: null,
1204
+ hasBuildTree: !1
1205
+ };
1206
+ },
1207
+ props: {
1208
+ treeType: {
1209
+ type: String,
1210
+ default: ""
1211
+ }
1212
+ },
1213
+ mounted() {
1214
+ this.treeKey = `equipGroup${this.treeType}`, this.listKey = `groupList${this.treeType}`, window.top[this.treeKey] ? this.list = l.formateList(JSON.parse(JSON.stringify(window.top[this.treeKey]))) : window.top[this.listKey] && this.buildTree(), window.executeQueue || (window.executeQueues = {}), window.executeQueues[this.refId] = this.destroyTree, window.addEventListener("message", (o) => {
1215
+ o && o.data && o.data.type && this[o.data.type] && this[o.data.type]();
1216
+ });
1217
+ try {
1218
+ window.top.hasIframe || this.selfRequest();
1219
+ } catch {
1220
+ this.selfRequest();
1221
+ }
1222
+ },
1223
+ methods: {
1224
+ selfRequest() {
1225
+ new F().Init();
1226
+ },
1227
+ GetEquipGroupTreeWidthTreeType() {
1228
+ this.treeType && window.top[this.listKey] && this.buildTree();
1229
+ },
1230
+ GetEquipGroupTree() {
1231
+ !this.treeType && window.top[this.listKey] && this.buildTree();
1232
+ },
1233
+ buildTree() {
1234
+ if (window.top[this.listKey]) {
1235
+ let o = l.listToTreeList(JSON.parse(JSON.stringify(window.top[this.listKey])));
1236
+ this.list = l.formateList(JSON.parse(JSON.stringify(o))), window.top[`equipGroup${this.treeType}`] = o, this.hasBuildTree = !0;
1237
+ }
1238
+ },
1239
+ filterMethod(o) {
1240
+ this.$refs[this.refId].filterMethod(o);
1241
+ },
1242
+ resetCheckedStatus() {
1243
+ this.$refs[this.refId].resetCheckedStatus();
1244
+ },
1245
+ getEquipSelectd() {
1246
+ return this.$refs[this.refId].getEquipSelectd();
1247
+ },
1248
+ getControlSelected() {
1249
+ return this.$refs[this.refId].getControlSelected();
1250
+ },
1251
+ destroyTree() {
1252
+ this.$refs[this.refId].destroyTree();
1253
+ }
1254
+ }
1255
+ };
1256
+ var J = function() {
1257
+ var t = this, e = t._self._c;
1258
+ return e("tree", t._g(t._b({ ref: t.refId, attrs: { data: t.list, buildTree: t.buildTree } }, "tree", { ...t.$attrs, ...t.$props }, !1), t.$listeners));
1259
+ }, P = [], V = /* @__PURE__ */ d(
1260
+ z,
1261
+ J,
1262
+ P,
1263
+ !1,
1264
+ null,
1265
+ null,
1266
+ null,
1267
+ null
1268
+ );
1269
+ const f = V.exports;
1270
+ f.install = function(o) {
1271
+ o.component(f.name, f);
1272
+ };
1273
+ export {
1274
+ f as default
1275
+ };