hflvloader 0.0.7 → 0.0.9

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 (2) hide show
  1. package/dist/hflvloader.es.js +1153 -1100
  2. package/package.json +1 -1
@@ -1,260 +1,260 @@
1
- (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('@charset "UTF-8";.component[data-v-56b0e3e4]{position:absolute}.canvas-container[data-v-87c1142c]{width:100%;height:100%;display:flex;align-items:center;justify-content:center;margin:auto;overflow:hidden}.canvas-container .canvas[data-v-87c1142c]{position:relative;margin:auto;background-color:transparent!important}.ve-comp-svg-icon{width:100%;height:100%;position:relative;fill:currentColor;vertical-align:-2px}.full-screen-dialog-wrapper[data-v-7c104f83] .no-header-dialog{padding:0!important}.full-screen-dialog-wrapper[data-v-7c104f83] .no-header-dialog .el-dialog__header{display:none!important;padding-bottom:0!important}.custom-omit-input[data-v-956a5a3a]{width:100%}.custom-omit-input[data-v-956a5a3a] .el-input-group__append{padding:0}.group>div[data-v-20de9881]{position:relative;width:100%;height:100%}.group>div .component[data-v-20de9881]{position:absolute}.panel-area[data-v-55cea49e]{display:flex;flex-direction:column;height:100%;min-height:0;overflow:hidden}.panel-area .panel-condition[data-v-55cea49e]{height:50px;flex-shrink:0;min-height:50px}.panel-area .panel-table[data-v-55cea49e]{flex:1;overflow:hidden;min-height:100px}')),document.head.appendChild(e)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}})();
2
- import { withDirectives as xe, createElementBlock as q, openBlock as D, createBlock as z, resolveDynamicComponent as ye, normalizeStyle as _e, vShow as Ge, computed as O, reactive as ue, onMounted as ve, watch as Ie, ref as T, createElementVNode as ne, Fragment as Ee, renderList as Te, provide as ee, defineComponent as Ht, normalizeClass as Qe, resolveComponent as j, withCtx as R, createVNode as E, mergeProps as Lt, createSlots as qt, createCommentVNode as Fe, toDisplayString as Kt, createTextVNode as A, renderSlot as zt, inject as ae, onBeforeMount as Be, onBeforeUnmount as Ne, onUnmounted as He, resolveDirective as Ut, withKeys as Jt } from "vue";
3
- import Wt from "json5";
4
- import Gt from "js-md5";
5
- import { defineStore as Qt } from "pinia";
6
- import we from "js-cookie";
7
- import { ElMessage as Yt, ElNotification as Xt, ElLoading as Zt, ElMessageBox as Ye } from "element-plus";
8
- import { useRouter as Le, useRoute as qe } from "vue-router";
1
+ (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('@charset "UTF-8";.component[data-v-56b0e3e4]{position:absolute}.canvas-container[data-v-c471d52f]{width:100%;height:100%;display:flex;align-items:center;justify-content:center;margin:auto;overflow:hidden}.canvas-container .canvas[data-v-c471d52f]{position:relative;margin:auto}.ve-comp-svg-icon{width:100%;height:100%;position:relative;fill:currentColor;vertical-align:-2px}.full-screen-dialog-wrapper[data-v-7c104f83] .no-header-dialog{padding:0!important}.full-screen-dialog-wrapper[data-v-7c104f83] .no-header-dialog .el-dialog__header{display:none!important;padding-bottom:0!important}.custom-omit-input[data-v-956a5a3a]{width:100%}.custom-omit-input[data-v-956a5a3a] .el-input-group__append{padding:0}.group>div[data-v-20de9881]{position:relative;width:100%;height:100%}.group>div .component[data-v-20de9881]{position:absolute}.panel-area[data-v-55cea49e]{display:flex;flex-direction:column;height:100%;min-height:0;overflow:hidden}.panel-area .panel-condition[data-v-55cea49e]{height:50px;flex-shrink:0;min-height:50px}.panel-area .panel-table[data-v-55cea49e]{flex:1;overflow:hidden;min-height:100px}')),document.head.appendChild(e)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}})();
2
+ import { withDirectives as Oe, createElementBlock as z, openBlock as A, createBlock as J, resolveDynamicComponent as be, normalizeStyle as we, vShow as et, computed as O, reactive as de, onMounted as xe, watch as Ae, ref as D, createElementVNode as oe, Fragment as je, renderList as Fe, provide as te, defineComponent as Lt, normalizeClass as tt, resolveComponent as B, withCtx as j, createVNode as R, mergeProps as qt, createSlots as Kt, createCommentVNode as qe, toDisplayString as zt, createTextVNode as F, renderSlot as Ut, inject as ue, onBeforeMount as Ke, onBeforeUnmount as ze, onUnmounted as Ue, resolveDirective as Wt, withKeys as Jt } from "vue";
3
+ import Gt from "json5";
4
+ import Qt from "js-md5";
5
+ import { defineStore as Yt } from "pinia";
6
+ import Pe from "js-cookie";
7
+ import { ElMessage as Xt, ElNotification as Zt, ElLoading as $t, ElMessageBox as nt } from "element-plus";
8
+ import { useRouter as We, useRoute as Je } from "vue-router";
9
9
  (function() {
10
- const n = () => {
11
- console.log("%c 可视化加载器 hflvloader", "color: #3498db; font-size: 16px; font-weight: bold;"), console.log("%c版本号: 0.0.7", "color: #2ecc71;"), console.log("%c编译日期: 2026/1/14 22:45:58", "color: #3498db;"), console.log("%c版权声明:", "color: #e74c3c; font-weight: bold;"), console.log("%c 1. 版权完全归qbansanguo享有。", "color: #34495e;"), console.log("%c 2. 程序包完整引用,不得以任何形式破解、裁剪,不得隐藏或删除版权信息。", "color: #34495e;"), console.log("%c 3. 保留此版权信息在控制台输出。", "color: #34495e;"), console.log("%c 版权所有 ©2024-2026 qbansanguo 保留对此版权信息的最终解释权.", "color: #f39c12;"), console.log("%c Copyright ©2024-2026 qbansanguo All rights reserved.", "color: #f39c12;");
10
+ const t = () => {
11
+ console.log("%c 可视化加载器 hflvloader", "color: #3498db; font-size: 16px; font-weight: bold;"), console.log("%c版本号: 0.0.9", "color: #2ecc71;"), console.log("%c编译日期: 2026/1/29 13:15:34", "color: #3498db;"), console.log("%c版权声明:", "color: #e74c3c; font-weight: bold;"), console.log("%c 1. 版权完全归qbansanguo享有。", "color: #34495e;"), console.log("%c 2. 程序包完整引用,不得以任何形式破解、裁剪,不得隐藏或删除版权信息。", "color: #34495e;"), console.log("%c 3. 保留此版权信息在控制台输出。", "color: #34495e;"), console.log("%c 版权所有 ©2024-2026 qbansanguo 保留对此版权信息的最终解释权.", "color: #f39c12;"), console.log("%c Copyright ©2024-2026 qbansanguo All rights reserved.", "color: #f39c12;");
12
12
  };
13
13
  if (typeof window < "u") {
14
- window._copyright_hflvloader = n;
14
+ window._copyright_hflvloader = t;
15
15
  try {
16
16
  Object.defineProperty(window, _copyright_hflvloader, {
17
- value: n,
17
+ value: t,
18
18
  writable: !1,
19
19
  configurable: !1,
20
20
  enumerable: !1
21
21
  });
22
22
  } catch {
23
- window._copyright_hflvloader = n;
23
+ window._copyright_hflvloader = t;
24
24
  }
25
25
  }
26
- n();
26
+ t();
27
27
  })();
28
- function _(n) {
29
- return !!(n && n != "");
28
+ function _(t) {
29
+ return !!(t && t != "");
30
30
  }
31
- function fe(n) {
32
- return !isNaN(parseFloat(n)) && isFinite(n);
31
+ function pe(t) {
32
+ return !isNaN(parseFloat(t)) && isFinite(t);
33
33
  }
34
- function Xe(n) {
35
- return n && Object.prototype.toString.call(n) === "[object Date]" && !isNaN(n);
34
+ function ot(t) {
35
+ return t && Object.prototype.toString.call(t) === "[object Date]" && !isNaN(t);
36
36
  }
37
- function B(n) {
38
- return typeof Array.isArray > "u" ? Object.prototype.toString.call(n) === "[object Array]" : Array.isArray(n);
37
+ function L(t) {
38
+ return typeof Array.isArray > "u" ? Object.prototype.toString.call(t) === "[object Array]" : Array.isArray(t);
39
39
  }
40
- function Se(n) {
41
- return n == null;
40
+ function Se(t) {
41
+ return t == null;
42
42
  }
43
- function $t(n) {
44
- return !!(n || n === 0);
43
+ function en(t) {
44
+ return !!(t || t === 0);
45
45
  }
46
- function te(n) {
47
- return n instanceof Object && n !== null;
46
+ function ne(t) {
47
+ return t instanceof Object && t !== null;
48
48
  }
49
- function en(n) {
50
- return Object.keys(n).length === 0;
49
+ function tn(t) {
50
+ return Object.keys(t).length === 0;
51
51
  }
52
- function L(n) {
53
- return !!(n && typeof n == "function");
52
+ function K(t) {
53
+ return !!(t && typeof t == "function");
54
54
  }
55
- function Ze(n) {
56
- return n && n.__v_isRef && !!n.effect;
55
+ function rt(t) {
56
+ return t && t.__v_isRef && !!t.effect;
57
57
  }
58
- function De(n) {
59
- return typeof n == "string" || n instanceof String;
58
+ function Be(t) {
59
+ return typeof t == "string" || t instanceof String;
60
60
  }
61
- function $e(n, o = {}) {
62
- if (De(n) && _(n))
61
+ function lt(t, o = {}) {
62
+ if (Be(t) && _(t))
63
63
  try {
64
- return Wt.parse(n);
64
+ return Gt.parse(t);
65
65
  } catch (l) {
66
66
  return console.warn("JSON 解析错误:", l), o;
67
67
  }
68
68
  else
69
- return te(n) ? n : o;
69
+ return ne(t) ? t : o;
70
70
  }
71
- function he(n) {
72
- return De(n) ? n : te(n) ? JSON.stringify(n, null, 2) : "";
71
+ function ve(t) {
72
+ return Be(t) ? t : ne(t) ? JSON.stringify(t, null, 2) : "";
73
73
  }
74
- function ce(n) {
75
- if (typeof n == "object") {
76
- const o = Array.isArray(n) ? [] : {};
77
- for (const l in n)
78
- typeof n[l] == "object" ? o[l] = ce(n[l]) : o[l] = n[l];
74
+ function fe(t) {
75
+ if (typeof t == "object") {
76
+ const o = Array.isArray(t) ? [] : {};
77
+ for (const l in t)
78
+ typeof t[l] == "object" ? o[l] = fe(t[l]) : o[l] = t[l];
79
79
  return o;
80
80
  }
81
- return n;
81
+ return t;
82
82
  }
83
- function et(n, o) {
83
+ function st(t, o) {
84
84
  for (const l in o)
85
- o[l] instanceof Object && n[l] && Object.assign(o[l], et(n[l], o[l]));
86
- return { ...n, ...o };
85
+ o[l] instanceof Object && t[l] && Object.assign(o[l], st(t[l], o[l]));
86
+ return { ...t, ...o };
87
87
  }
88
- function tt(n, o) {
89
- if (n) {
90
- let l = n.getFullYear(), t = n.getMonth() + 1, p = n.getDate(), a = n.getHours(), c = n.getMinutes(), f = n.getSeconds(), i = o;
91
- return i = i.replace("yyyy", l), i.indexOf("MM") >= 0 ? t >= 10 ? i = i.replace("MM", t) : i = i.replace("MM", "0" + t) : i = i.replace("M", t), i.indexOf("dd") >= 0 ? p >= 10 ? i = i.replace("dd", p) : i = i.replace("dd", "0" + p) : i = i.replace("d", p), i.indexOf("HH") >= 0 ? a >= 10 ? i = i.replace("HH", a) : i = i.replace("HH", "0" + a) : i = i.replace("H", a), i.indexOf("mm") >= 0 ? c >= 10 ? i = i.replace("mm", c) : i = i.replace("mm", "0" + c) : i = i.replace("m", c), i.indexOf("ss") >= 0 ? f >= 10 ? i = i.replace("ss", f) : i = i.replace("ss", "0" + f) : i = i.replace("s", f), i;
88
+ function at(t, o) {
89
+ if (t) {
90
+ let l = t.getFullYear(), n = t.getMonth() + 1, f = t.getDate(), i = t.getHours(), c = t.getMinutes(), d = t.getSeconds(), s = o;
91
+ return s = s.replace("yyyy", l), s.indexOf("MM") >= 0 ? n >= 10 ? s = s.replace("MM", n) : s = s.replace("MM", "0" + n) : s = s.replace("M", n), s.indexOf("dd") >= 0 ? f >= 10 ? s = s.replace("dd", f) : s = s.replace("dd", "0" + f) : s = s.replace("d", f), s.indexOf("HH") >= 0 ? i >= 10 ? s = s.replace("HH", i) : s = s.replace("HH", "0" + i) : s = s.replace("H", i), s.indexOf("mm") >= 0 ? c >= 10 ? s = s.replace("mm", c) : s = s.replace("mm", "0" + c) : s = s.replace("m", c), s.indexOf("ss") >= 0 ? d >= 10 ? s = s.replace("ss", d) : s = s.replace("ss", "0" + d) : s = s.replace("s", d), s;
92
92
  }
93
93
  return "";
94
94
  }
95
- function nt(n) {
96
- if (n) {
97
- if (Xe(n))
98
- return n;
99
- if (fe(n)) {
100
- let o = /* @__PURE__ */ new Date(), l = parseInt(n);
95
+ function it(t) {
96
+ if (t) {
97
+ if (ot(t))
98
+ return t;
99
+ if (pe(t)) {
100
+ let o = /* @__PURE__ */ new Date(), l = parseInt(t);
101
101
  return l < 9999999999 && (l = l * 1e3), o.setTime(l), o;
102
102
  } else
103
103
  try {
104
- return new Date(n);
104
+ return new Date(t);
105
105
  } catch {
106
106
  }
107
107
  }
108
108
  return null;
109
109
  }
110
- function tn(n, o = 0) {
111
- if (n) {
112
- let l = n.getDay(), t = ["星期天", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"], p = ["周末", "周一", "周二", "周三", "周四", "周五", "周六"];
113
- return o == 1 ? t[l] : o == 2 ? p[l] : l;
110
+ function nn(t, o = 0) {
111
+ if (t) {
112
+ let l = t.getDay(), n = ["星期天", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"], f = ["周末", "周一", "周二", "周三", "周四", "周五", "周六"];
113
+ return o == 1 ? n[l] : o == 2 ? f[l] : l;
114
114
  }
115
115
  return null;
116
116
  }
117
- function nn(n) {
117
+ function on(t) {
118
118
  const o = document.createElement("textarea");
119
- o.value = n, document.body.appendChild(o), o.select();
119
+ o.value = t, document.body.appendChild(o), o.select();
120
120
  const l = document.execCommand("copy");
121
121
  return document.body.removeChild(o), l;
122
122
  }
123
- async function Ce(n) {
123
+ async function ke(t) {
124
124
  try {
125
- return navigator.clipboard ? (await navigator.clipboard.writeText(n), !0) : !!nn(n);
125
+ return navigator.clipboard ? (await navigator.clipboard.writeText(t), !0) : !!on(t);
126
126
  } catch (o) {
127
127
  return console.error("无法复制内容", o), !1;
128
128
  }
129
129
  }
130
- async function on() {
130
+ async function rn() {
131
131
  try {
132
132
  return navigator.clipboard ? await navigator.clipboard.readText() : null;
133
- } catch (n) {
134
- return console.error("无法读取黏贴版内容", n), null;
133
+ } catch (t) {
134
+ return console.error("无法读取黏贴版内容", t), null;
135
135
  }
136
136
  }
137
- function rn(n, o) {
138
- return fe(n) ? n : o;
137
+ function ln(t, o) {
138
+ return pe(t) ? t : o;
139
139
  }
140
- function Pe(n, o) {
141
- return o.split(".").reduce((l, t) => l && l[t], n);
140
+ function Ie(t, o) {
141
+ return o.split(".").reduce((l, n) => l && l[n], t);
142
142
  }
143
- function Ve(n, o) {
144
- if (!n || typeof n != "object" || typeof o != "string" || !o)
143
+ function Ee(t, o) {
144
+ if (!t || typeof t != "object" || typeof o != "string" || !o)
145
145
  return !1;
146
146
  const l = o.split(".");
147
- let t = n;
148
- for (const p of l)
149
- if (t && typeof t == "object" && t.hasOwnProperty(p))
150
- t = t[p];
147
+ let n = t;
148
+ for (const f of l)
149
+ if (n && typeof n == "object" && n.hasOwnProperty(f))
150
+ n = n[f];
151
151
  else
152
152
  return !1;
153
153
  return !0;
154
154
  }
155
- function ot() {
155
+ function ct() {
156
156
  if (typeof crypto < "u" && crypto.randomUUID)
157
157
  return crypto.randomUUID();
158
158
  if (typeof crypto < "u" && crypto.getRandomValues) {
159
- const n = new Uint8Array(16);
160
- return crypto.getRandomValues(n), n[6] = n[6] & 15 | 64, n[8] = n[8] & 63 | 128, Array.from(n).map((o, l) => [4, 6, 8, 10].includes(l) ? "-" + o.toString(16).padStart(2, "0") : o.toString(16).padStart(2, "0")).join("");
159
+ const t = new Uint8Array(16);
160
+ return crypto.getRandomValues(t), t[6] = t[6] & 15 | 64, t[8] = t[8] & 63 | 128, Array.from(t).map((o, l) => [4, 6, 8, 10].includes(l) ? "-" + o.toString(16).padStart(2, "0") : o.toString(16).padStart(2, "0")).join("");
161
161
  }
162
- return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(n) {
162
+ return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(t) {
163
163
  const o = Math.random() * 16 | 0;
164
- return (n === "x" ? o : o & 3 | 8).toString(16);
164
+ return (t === "x" ? o : o & 3 | 8).toString(16);
165
165
  });
166
166
  }
167
- function ln(n, o = {}, l) {
167
+ function sn(t, o = {}, l) {
168
168
  try {
169
- let t = n.toString().trim();
170
- return t.indexOf("function") < 0 && (t = "function(param){" + t + "}"), new Function(`{return ${t}}`)()(o);
171
- } catch (t) {
172
- return console.error("执行自定义数时出错:", t), l;
169
+ let n = t.toString().trim();
170
+ return n.indexOf("function") < 0 && (n = "function(param){" + n + "}"), new Function(`{return ${n}}`)()(o);
171
+ } catch (n) {
172
+ return console.error("执行自定义数时出错:", n), l;
173
173
  }
174
174
  }
175
- function rt(n) {
176
- return _(n) ? Gt(n) : "";
175
+ function ut(t) {
176
+ return _(t) ? Qt(t) : "";
177
177
  }
178
- function Y(n, ...o) {
178
+ function Z(t, ...o) {
179
179
  if (!window.hflvloader_debug) return;
180
180
  const l = {
181
181
  debug: ["%c[DEBUG]", "color: #4CAF50; font-weight: bold"],
182
182
  info: ["%c[INFO]", "color: #2196F3; font-weight: bold"],
183
183
  warn: ["%c[WARN]", "color: #FF9800; font-weight: bold"],
184
184
  error: ["%c[ERROR]", "color: #F44336; font-weight: bold"]
185
- }, t = l[n] || l.debug;
186
- switch (n) {
185
+ }, n = l[t] || l.debug;
186
+ switch (t) {
187
187
  case "debug":
188
- console.debug(t[0], t[1], ...o);
188
+ console.debug(n[0], n[1], ...o);
189
189
  break;
190
190
  case "info":
191
- console.info(t[0], t[1], ...o);
191
+ console.info(n[0], n[1], ...o);
192
192
  break;
193
193
  case "warn":
194
- console.warn(t[0], t[1], ...o);
194
+ console.warn(n[0], n[1], ...o);
195
195
  break;
196
196
  case "error":
197
- console.error(t[0], t[1], ...o);
197
+ console.error(n[0], n[1], ...o);
198
198
  break;
199
199
  default:
200
- console.log(t[0], t[1], ...o);
200
+ console.log(n[0], n[1], ...o);
201
201
  }
202
202
  }
203
- function sn(n, o = 0) {
204
- if (typeof n != "number" || isNaN(n))
203
+ function an(t, o = 0) {
204
+ if (typeof t != "number" || isNaN(t))
205
205
  return NaN;
206
- const t = 10 * Math.max(0, Math.floor(Number(o) || 0));
207
- return Math.round(n * t) / t;
206
+ const n = 10 * Math.max(0, Math.floor(Number(o) || 0));
207
+ return Math.round(t * n) / n;
208
208
  }
209
- function an(n) {
210
- return (Math.floor(n) & 1) === 0;
209
+ function cn(t) {
210
+ return (Math.floor(t) & 1) === 0;
211
211
  }
212
- const Yn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
212
+ const $n = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
213
213
  __proto__: null,
214
- consolePrint: Y,
215
- copyToClipboard: Ce,
216
- deepCopy: ce,
217
- deepMerge: et,
218
- doMD5: rt,
219
- execCustomFunction: ln,
220
- formatDate: tt,
221
- generateSecureUUID: ot,
222
- getDate: nt,
223
- getJsonObject: $e,
224
- getValByDefault: rn,
225
- getValueByPath: Pe,
226
- getWeek: tn,
227
- hasOwnPathInObject: Ve,
228
- isArray: B,
229
- isComputed: Ze,
230
- isDate: Xe,
231
- isEmptyObject: en,
232
- isEven: an,
233
- isFunction: L,
214
+ consolePrint: Z,
215
+ copyToClipboard: ke,
216
+ deepCopy: fe,
217
+ deepMerge: st,
218
+ doMD5: ut,
219
+ execCustomFunction: sn,
220
+ formatDate: at,
221
+ generateSecureUUID: ct,
222
+ getDate: it,
223
+ getJsonObject: lt,
224
+ getValByDefault: ln,
225
+ getValueByPath: Ie,
226
+ getWeek: nn,
227
+ hasOwnPathInObject: Ee,
228
+ isArray: L,
229
+ isComputed: rt,
230
+ isDate: ot,
231
+ isEmptyObject: tn,
232
+ isEven: cn,
233
+ isFunction: K,
234
234
  isNotEmpty: _,
235
235
  isNullOrUndefined: Se,
236
- isNumber: fe,
237
- isObject: te,
238
- isString: De,
239
- isValid: $t,
240
- keepDecimalCalc: sn,
241
- pasteFromClipboard: on,
242
- toJsonStr: he
243
- }, Symbol.toStringTag, { value: "Module" })), cn = ["width", "height", "scale"];
244
- function un(n) {
236
+ isNumber: pe,
237
+ isObject: ne,
238
+ isString: Be,
239
+ isValid: en,
240
+ keepDecimalCalc: an,
241
+ pasteFromClipboard: rn,
242
+ toJsonStr: ve
243
+ }, Symbol.toStringTag, { value: "Module" })), un = ["width", "height", "scale"];
244
+ function Ge(t) {
245
245
  const o = {};
246
- return Object.keys(n).filter((l) => !cn.includes(l)).forEach((l) => {
247
- l === "fontSize" ? o[l] += "px" : l === "backgroundImage" && _(n[l]) ? o["background-image"] = "url(" + n[l] + ")" : l === "backgroundRepeat" ? o["background-repeat"] = n[l] : l === "backgroundSize" ? o["background-size"] = n[l] : l === "backgroundPosition" ? o["background-position"] = n[l] : o[l] = n[l];
246
+ return Object.keys(t).filter((l) => !un.includes(l)).forEach((l) => {
247
+ l === "fontSize" ? o[l] += "px" : l === "backgroundImage" && _(t[l]) ? o["background-image"] = "url(" + t[l] + ")" : l === "backgroundRepeat" ? o["background-repeat"] = t[l] : l === "backgroundSize" ? o["background-size"] = t[l] : l === "backgroundPosition" ? o["background-position"] = t[l] : o[l] = t[l];
248
248
  }), o;
249
249
  }
250
- const lt = ["fontSize", "width", "height", "top", "left", "borderWidth", "letterSpacing", "borderRadius"];
251
- function st(n, o = []) {
250
+ const ft = ["fontSize", "width", "height", "top", "left", "borderWidth", "letterSpacing", "borderRadius"];
251
+ function dt(t, o = []) {
252
252
  const l = {};
253
- return Object.keys(n).forEach((t) => {
254
- o.includes(t) || (t != "rotate" ? n[t] !== "" && (l[t] = n[t], lt.includes(t) && (l[t] += "px")) : l.transform = `${t}(${n[t]}deg)`);
253
+ return Object.keys(t).forEach((n) => {
254
+ o.includes(n) || (n != "rotate" ? t[n] !== "" && (l[n] = t[n], ft.includes(n) && (l[n] += "px")) : l.transform = `${n}(${t[n]}deg)`);
255
255
  }), l;
256
256
  }
257
- function fn(n, o = []) {
257
+ function fn(t, o = []) {
258
258
  const l = {};
259
259
  return [
260
260
  "opacity",
@@ -269,93 +269,139 @@ function fn(n, o = []) {
269
269
  "letterSpacing",
270
270
  "textAlign",
271
271
  "color"
272
- ].forEach((t) => {
273
- o.includes(t) || (t != "rotate" ? n[t] !== "" && (l[t] = n[t], lt.includes(t) && (l[t] += "px")) : l.transform = `${t}(${n[t]}deg)`);
272
+ ].forEach((n) => {
273
+ o.includes(n) || (n != "rotate" ? t[n] !== "" && (l[n] = t[n], ft.includes(n) && (l[n] += "px")) : l.transform = `${n}(${t[n]}deg)`);
274
274
  }), l;
275
275
  }
276
- function re(n, o, l, t, p, a, c) {
277
- let f = JSON.parse(JSON.stringify(n));
278
- return f && f.length > 0 && f.forEach((i) => {
279
- if (i && i.style) {
280
- if (t != 1) {
281
- let g = i.style.width;
282
- if (i.style.wdSet == "calc")
283
- g = Math.floor(i.style.width * t);
284
- else if (i.style.wdSet == "overspread") {
285
- let y = i.style.wdReserve < 0 ? 0 : i.style.wdReserve;
286
- g = Math.floor(o - y);
276
+ function dn(t) {
277
+ return t * Math.PI / 180;
278
+ }
279
+ function pn(t) {
280
+ return (t + 360) % 360;
281
+ }
282
+ function mn(t, o, l, n, f, i, c) {
283
+ let d = pn(t.rotate);
284
+ const s = dn(d), h = Math.round((t.left + t.width / 2) * 10) / 10, v = Math.round((t.top + t.height / 2) * 10) / 10;
285
+ let y = d, g = s;
286
+ if (Math.abs(o - l) > 1e-3) {
287
+ const U = Math.cos(g), Me = Math.sin(g);
288
+ g = Math.atan2(l * Me, o * U), y = Math.floor(g * 180 / Math.PI % 360), y < 0 && (y += 360);
289
+ }
290
+ const b = Math.abs(Math.cos(g)), w = Math.abs(Math.sin(g));
291
+ let x = Math.round((t.width * b + t.height * w) * 10) / 10, M = Math.round((t.width * w + t.height * b) * 10) / 10, C = h - 0.5 * M, T = v - 0.5 * x, E = M, S = x, G = Math.round(t.height * w * 10) / 10, I = Math.round(G / E * 1e3) / 1e3;
292
+ if (o != 1) {
293
+ if (t.wdSet == "calc")
294
+ E = Math.floor(E * o);
295
+ else if (t.wdSet == "overspread") {
296
+ let U = t.wdReserve < 0 ? 0 : t.wdReserve;
297
+ E = Math.floor(n - U);
298
+ }
299
+ if (t.hAffix != "left") if (t.hAffix == "right") {
300
+ let U = i - (C + E);
301
+ C = n - U - E;
302
+ } else t.hAffix == "center" ? C = Math.floor(n * 0.5 - E * 0.5) : C = Math.floor(C * o);
303
+ }
304
+ if (l != 1) {
305
+ if (t.htSet == "calc")
306
+ S = Math.floor(S * l);
307
+ else if (t.htSet == "overspread") {
308
+ let U = t.htReserve < 0 ? 0 : t.htReserve;
309
+ S = Math.floor(f - U);
310
+ }
311
+ if (t.vAffix != "top") if (t.vAffix == "bottom") {
312
+ let U = c - (T + S);
313
+ T = f - U - S;
314
+ } else t.vAffix == "center" ? T = Math.floor(f * 0.5 - S * 0.5) : T = Math.floor(T * l);
315
+ }
316
+ const V = C + E * 0.5, H = T + S * 0.5, q = Math.round(E * I * 10) / 10, ie = Math.floor(Math.sqrt(q ** 2 + q ** 2)), ge = Math.floor((E - ie * b) / w), Q = V - ge / 2, Ce = H - ie / 2;
317
+ t.left = Math.floor(Q), t.top = Math.floor(Ce), t.width = Math.floor(ge), t.height = Math.floor(ie), t.rotate = y;
318
+ }
319
+ function le(t, o, l, n, f, i, c) {
320
+ let d = JSON.parse(JSON.stringify(t));
321
+ return d && d.length > 0 && d.forEach((s) => {
322
+ if (s && s.style)
323
+ if (Math.abs(s.style.rotate) >= 1)
324
+ mn(s.style, n, f, o, l, i, c);
325
+ else {
326
+ if (n != 1) {
327
+ let h = s.style.width;
328
+ if (s.style.wdSet == "calc")
329
+ h = Math.floor(s.style.width * n);
330
+ else if (s.style.wdSet == "overspread") {
331
+ let v = s.style.wdReserve < 0 ? 0 : s.style.wdReserve;
332
+ h = Math.floor(o - v);
333
+ }
334
+ if (s.style.hAffix != "left") if (s.style.hAffix == "right") {
335
+ let v = i - (s.style.left + s.style.width);
336
+ s.style.left = o - v - h;
337
+ } else s.style.hAffix == "center" ? s.style.left = Math.floor(o * 0.5 - h * 0.5) : s.style.left = Math.floor(s.style.left * n);
338
+ s.style.width = h;
287
339
  }
288
- if (i.style.hAffix != "left") if (i.style.hAffix == "right") {
289
- let y = a - (i.style.left + i.style.width);
290
- i.style.left = o - y - g;
291
- } else i.style.hAffix == "center" ? i.style.left = Math.floor(o * 0.5 - g * 0.5) : i.style.left = Math.floor(i.style.left * t);
292
- i.style.width = g;
293
- }
294
- if (p != 1) {
295
- let g = i.style.height;
296
- if (i.style.htSet == "calc")
297
- g = Math.floor(i.style.height * p);
298
- else if (i.style.htSet == "overspread") {
299
- let y = i.style.htReserve < 0 ? 0 : i.style.htReserve;
300
- g = Math.floor(l - y);
340
+ if (f != 1) {
341
+ let h = s.style.height;
342
+ if (s.style.htSet == "calc")
343
+ h = Math.floor(s.style.height * f);
344
+ else if (s.style.htSet == "overspread") {
345
+ let v = s.style.htReserve < 0 ? 0 : s.style.htReserve;
346
+ h = Math.floor(l - v);
347
+ }
348
+ if (s.style.vAffix != "top") if (s.style.vAffix == "bottom") {
349
+ let v = c - (s.style.top + s.style.height);
350
+ s.style.top = l - v - h;
351
+ } else s.style.vAffix == "center" ? s.style.top = Math.floor(l * 0.5 - h * 0.5) : s.style.top = Math.floor(s.style.top * f);
352
+ s.style.height = h;
301
353
  }
302
- if (i.style.vAffix != "top") if (i.style.vAffix == "bottom") {
303
- let y = c - (i.style.top + i.style.height);
304
- i.style.top = l - y - g;
305
- } else i.style.vAffix == "center" ? i.style.top = Math.floor(l * 0.5 - g * 0.5) : i.style.top = Math.floor(i.style.top * p);
306
- i.style.height = g;
307
354
  }
308
- }
309
- }), f;
355
+ }), d;
310
356
  }
311
- function Xn(n, o, l, t) {
312
- let p = {}, a = [];
357
+ function eo(t, o, l, n) {
358
+ let f = {}, i = [];
313
359
  if (!(l && l.screenAdapter && l.screenAdapter != "no-adapter"))
314
- p = l, a = t;
360
+ f = l, i = n;
315
361
  else {
316
- let c = Math.floor(n), f = Math.floor(o), i = Number(l.width), g = Number(l.height), y = 1, h = 1;
362
+ let c = Math.floor(t), d = Math.floor(o), s = Number(l.width), h = Number(l.height), v = 1, y = 1;
317
363
  if (l.screenAdapter == "all-screen")
318
- p = JSON.parse(JSON.stringify(l)), c > i + 10 && (p.width = c, y = Math.floor(1e4 * c / i) / 1e4), f > g + 10 && (p.height = f, h = Math.floor(1e4 * f / g) / 1e4), a = re(t, c, f, y, h, i, g);
364
+ f = JSON.parse(JSON.stringify(l)), c > s + 10 && (f.width = c, v = Math.floor(1e4 * c / s) / 1e4), d > h + 10 && (f.height = d, y = Math.floor(1e4 * d / h) / 1e4), i = le(n, c, d, v, y, s, h);
319
365
  else if (l.screenAdapter == "original-ratio") {
320
- p = JSON.parse(JSON.stringify(l));
321
- let w = Math.floor(1e4 * i / g) / 1e4;
322
- Math.floor(f * w) > c ? (p.width = c, y = Math.floor(1e4 * c / i) / 1e4, f = Math.floor(c / w), p.height = f, h = Math.floor(1e4 * f / g) / 1e4) : (p.height = f, h = Math.floor(1e4 * f / g) / 1e4, c = Math.floor(f * w), p.width = c, y = Math.floor(1e4 * c / i) / 1e4), a = re(t, c, f, y, h, i, g);
366
+ f = JSON.parse(JSON.stringify(l));
367
+ let g = Math.floor(1e4 * s / h) / 1e4;
368
+ Math.floor(d * g) > c ? (f.width = c, v = Math.floor(1e4 * c / s) / 1e4, d = Math.floor(c / g), f.height = d, y = Math.floor(1e4 * d / h) / 1e4) : (f.height = d, y = Math.floor(1e4 * d / h) / 1e4, c = Math.floor(d * g), f.width = c, v = Math.floor(1e4 * c / s) / 1e4), i = le(n, c, d, v, y, s, h);
323
369
  } else if (l.screenAdapter == "h-adapter-wh") {
324
- p = JSON.parse(JSON.stringify(l));
325
- let w = Math.floor(1e4 * i / g) / 1e4;
326
- c > i + 10 && (p.width = c, y = Math.floor(1e4 * c / i) / 1e4, f = Math.floor(c / w), p.height = f, h = Math.floor(1e4 * f / g) / 1e4), a = re(t, c, f, y, h, i, g);
370
+ f = JSON.parse(JSON.stringify(l));
371
+ let g = Math.floor(1e4 * s / h) / 1e4;
372
+ c > s + 10 && (f.width = c, v = Math.floor(1e4 * c / s) / 1e4, d = Math.floor(c / g), f.height = d, y = Math.floor(1e4 * d / h) / 1e4), i = le(n, c, d, v, y, s, h);
327
373
  } else if (l.screenAdapter == "v-adapter-wh") {
328
- p = JSON.parse(JSON.stringify(l));
329
- let w = Math.floor(1e4 * i / g) / 1e4;
330
- f > g + 10 && (p.height = f, h = Math.floor(1e4 * f / g) / 1e4, c = Math.floor(f * w), p.width = c, y = Math.floor(1e4 * c / i) / 1e4), a = re(t, c, f, y, h, i, g);
331
- } else l.screenAdapter == "h-adapter" ? (p = JSON.parse(JSON.stringify(l)), c > i + 10 && (p.width = c, y = Math.floor(1e4 * c / i) / 1e4), a = re(t, c, f, y, h, i, g)) : l.screenAdapter == "v-adapter" ? (p = JSON.parse(JSON.stringify(l)), f > g + 10 && (p.height = f, h = Math.floor(1e4 * f / g) / 1e4), a = re(t, c, f, y, h, i, g)) : (p = l, a = t);
374
+ f = JSON.parse(JSON.stringify(l));
375
+ let g = Math.floor(1e4 * s / h) / 1e4;
376
+ d > h + 10 && (f.height = d, y = Math.floor(1e4 * d / h) / 1e4, c = Math.floor(d * g), f.width = c, v = Math.floor(1e4 * c / s) / 1e4), i = le(n, c, d, v, y, s, h);
377
+ } else l.screenAdapter == "h-adapter" ? (f = JSON.parse(JSON.stringify(l)), c > s + 10 && (f.width = c, v = Math.floor(1e4 * c / s) / 1e4), i = le(n, c, d, v, y, s, h)) : l.screenAdapter == "v-adapter" ? (f = JSON.parse(JSON.stringify(l)), d > h + 10 && (f.height = d, y = Math.floor(1e4 * d / h) / 1e4), i = le(n, c, d, v, y, s, h)) : (f = l, i = n);
332
378
  }
333
379
  return {
334
- canvasStyleData: p,
335
- componentData: a
380
+ canvasStyleData: f,
381
+ componentData: i
336
382
  };
337
383
  }
338
- async function Ke(n, o = []) {
339
- const l = (t) => new Promise((p) => {
340
- const { animationTime: a, value: c = "", isLoop: f } = t;
341
- n.style.setProperty("--time", `${a}s`), n.classList.add(c, "animated", ze(f));
342
- const i = () => {
343
- n.removeEventListener("animationend", i), n.removeEventListener("animationcancel", i), n.classList.remove(c, "animated", ze(f)), n.style.removeProperty("--time"), p();
384
+ async function Qe(t, o = []) {
385
+ const l = (n) => new Promise((f) => {
386
+ const { animationTime: i, value: c = "", isLoop: d } = n;
387
+ t.style.setProperty("--time", `${i}s`), t.classList.add(c, "animated", Ye(d));
388
+ const s = () => {
389
+ t.removeEventListener("animationend", s), t.removeEventListener("animationcancel", s), t.classList.remove(c, "animated", Ye(d)), t.style.removeProperty("--time"), f();
344
390
  };
345
- n.addEventListener("animationend", i), n.addEventListener("animationcancel", i);
391
+ t.addEventListener("animationend", s), t.addEventListener("animationcancel", s);
346
392
  });
347
- for (let t = 0, p = o.length; t < p; t++)
348
- await l(o[t]);
393
+ for (let n = 0, f = o.length; n < f; n++)
394
+ await l(o[n]);
349
395
  }
350
- function ze(n) {
351
- return n ? "infinite" : "no-infinite";
396
+ function Ye(t) {
397
+ return t ? "infinite" : "no-infinite";
352
398
  }
353
- const W = (n, o) => {
354
- const l = n.__vccOpts || n;
355
- for (const [t, p] of o)
356
- l[t] = p;
399
+ const $ = (t, o) => {
400
+ const l = t.__vccOpts || t;
401
+ for (const [n, f] of o)
402
+ l[n] = f;
357
403
  return l;
358
- }, pn = {
404
+ }, hn = {
359
405
  __name: "ComponentWrapper",
360
406
  props: {
361
407
  config: {
@@ -365,66 +411,66 @@ const W = (n, o) => {
365
411
  }
366
412
  }
367
413
  },
368
- setup(n, { expose: o }) {
369
- const l = n, t = O(() => l.config || {}), p = O({
370
- get: () => !t.value.style?.isHide,
371
- set: (v) => {
372
- t.value.style && (t.value.style.isHide = !v);
414
+ setup(t, { expose: o }) {
415
+ const l = t, n = O(() => l.config || {}), f = O({
416
+ get: () => !n.value.style?.isHide,
417
+ set: (b) => {
418
+ n.value.style && (n.value.style.isHide = !b);
373
419
  }
374
- }), a = ue({}), c = (v, P) => {
375
- v ? a[`Ve${P}`] = v : delete a[`Ve${P}`];
376
- }, f = (v) => a[`Ve${v}`], i = () => {
377
- if (t.value.animations && t.value.animations.length > 0) {
378
- let v = a[`Ve${t.value.id}`];
379
- v.$el && Ke(v.$el, t.value.animations);
420
+ }), i = de({}), c = (b, w) => {
421
+ b ? i[`Ve${w}`] = b : delete i[`Ve${w}`];
422
+ }, d = (b) => i[`Ve${b}`], s = () => {
423
+ if (n.value.animations && n.value.animations.length > 0) {
424
+ let b = i[`Ve${n.value.id}`];
425
+ b.$el && Qe(b.$el, n.value.animations);
380
426
  }
381
- }, g = () => {
382
- p.value = !1;
383
- }, y = () => {
384
- p.value = !0;
385
- }, h = () => p.value;
386
- ve(() => {
387
- i();
427
+ }, h = () => {
428
+ f.value = !1;
429
+ }, v = () => {
430
+ f.value = !0;
431
+ }, y = () => f.value;
432
+ xe(() => {
433
+ s();
388
434
  }), o({
389
- getComponentRef: f,
390
- hide: g,
391
- show: y,
392
- showStatus: h
435
+ getComponentRef: d,
436
+ hide: h,
437
+ show: v,
438
+ showStatus: y
393
439
  });
394
- const w = { props: l, config: t, isShow: p, componentRefs: a, setComponentRef: c, getComponentRef: f, execAnimation: i, hide: g, show: y, showStatus: h, ref: T, computed: O, onMounted: ve, reactive: ue, watch: Ie, get getSVGStyle() {
440
+ const g = { props: l, config: n, isShow: f, componentRefs: i, setComponentRef: c, getComponentRef: d, execAnimation: s, hide: h, show: v, showStatus: y, ref: D, computed: O, onMounted: xe, reactive: de, watch: Ae, get getSVGStyle() {
395
441
  return fn;
396
442
  }, get getStyle() {
397
- return st;
443
+ return dt;
398
444
  }, get runAnimation() {
399
- return Ke;
445
+ return Qe;
400
446
  } };
401
- return Object.defineProperty(w, "__isScriptSetup", { enumerable: !1, value: !0 }), w;
447
+ return Object.defineProperty(g, "__isScriptSetup", { enumerable: !1, value: !0 }), g;
402
448
  }
403
449
  };
404
- function dn(n, o, l, t, p, a) {
405
- return xe((D(), q("div", { class: "component-wrapper" }, [
406
- t.config.component.startsWith("SVG") ? (D(), z(ye(t.config.component), {
450
+ function gn(t, o, l, n, f, i) {
451
+ return Oe((A(), z("div", { class: "component-wrapper" }, [
452
+ n.config.component.startsWith("SVG") ? (A(), J(be(n.config.component), {
407
453
  key: 0,
408
- ref: (c) => t.setComponentRef(c, t.config.id),
454
+ ref: (c) => n.setComponentRef(c, n.config.id),
409
455
  class: "component",
410
- style: _e(t.getSVGStyle(t.config.style)),
411
- "prop-value": t.config.propValue,
412
- element: t.config,
456
+ style: we(n.getSVGStyle(n.config.style)),
457
+ "prop-value": n.config.propValue,
458
+ element: n.config,
413
459
  designStatus: !1
414
- }, null, 8, ["style", "prop-value", "element"])) : (D(), z(ye(t.config.component), {
460
+ }, null, 8, ["style", "prop-value", "element"])) : (A(), J(be(n.config.component), {
415
461
  key: 1,
416
- ref: (c) => t.setComponentRef(c, t.config.id),
462
+ ref: (c) => n.setComponentRef(c, n.config.id),
417
463
  class: "component",
418
- style: _e(t.getStyle(t.config.style)),
419
- "prop-value": t.config.propValue,
420
- element: t.config,
464
+ style: we(n.getStyle(n.config.style)),
465
+ "prop-value": n.config.propValue,
466
+ element: n.config,
421
467
  designStatus: !1
422
468
  }, null, 8, ["style", "prop-value", "element"]))
423
469
  ], 512)), [
424
- [Ge, t.isShow]
470
+ [et, n.isShow]
425
471
  ]);
426
472
  }
427
- const mn = /* @__PURE__ */ W(pn, [["render", dn], ["__scopeId", "data-v-56b0e3e4"], ["__file", "ComponentWrapper.vue"]]), gn = /* @__PURE__ */ Object.assign({
473
+ const yn = /* @__PURE__ */ $(hn, [["render", gn], ["__scopeId", "data-v-56b0e3e4"], ["__file", "ComponentWrapper.vue"]]), _n = /* @__PURE__ */ Object.assign({
428
474
  name: "VEPage"
429
475
  }, {
430
476
  __name: "index",
@@ -441,72 +487,73 @@ const mn = /* @__PURE__ */ W(pn, [["render", dn], ["__scopeId", "data-v-56b0e3e4
441
487
  default: []
442
488
  }
443
489
  },
444
- setup(n, { expose: o }) {
445
- const l = n, t = T({}), p = O(() => l.canvasStyle || {}), a = O(() => l.componentData || []), c = (h, w) => {
446
- h && (t.value[w] = h);
447
- }, f = (h, w, v) => {
448
- if (_(h) && _(w)) {
449
- const P = "VeP" + h, S = t.value[P];
450
- if (S) {
451
- let x;
452
- B(S) ? x = S[0] : x = S;
453
- const I = x.getComponentRef(h);
454
- I ? I?.$options.name === "Group" && v && v.compId ? I.callGroupCompMethod(v.compId, w, v.data) : I[w] && (v ? I[w](v) : I[w]()) : Y("warning", "The component is not exist.id:", h);
490
+ setup(t, { expose: o }) {
491
+ const l = t, n = D({}), f = O(() => l.canvasStyle || {}), i = O(() => l.componentData || []), c = (g, b) => {
492
+ g && (n.value[b] = g);
493
+ }, d = O(() => {
494
+ let g = {}, b = { ...f.value || {} }, w = b.diyStyles || {};
495
+ delete b.diyStyles;
496
+ let x = Ge(b || {});
497
+ return x.hasOwnProperty("backgroundColor") && (x["background-color"] = x.backgroundColor, delete x.backgroundColor), x.width = `${f.value.width}px`, x.height = `${f.value.height}px`, g = { ...x, ...w }, Z("debug", "style", g, "_style", x, "diyStyle", w), _(g.background) && !_(g["background-color"]) && delete g["background-color"], _(g.background) || _(g["background-image"]) || _(g["background-color"]) || (g["background-color"] = "transparent !important"), g;
498
+ }), s = (g, b, w) => {
499
+ if (_(g) && _(b)) {
500
+ const x = "VeP" + g, M = n.value[x];
501
+ if (M) {
502
+ let C;
503
+ L(M) ? C = M[0] : C = M;
504
+ const T = C.getComponentRef(g);
505
+ T ? T?.$options.name === "Group" && w && w.compId ? T.callGroupCompMethod(w.compId, b, w.data) : T[b] && (w ? T[b](w) : T[b]()) : Z("warning", "The component is not exist.id:", g);
455
506
  }
456
507
  }
457
- }, i = (h, w, v = {}) => {
458
- if (_(h)) {
459
- const P = "VeP" + h, S = t.value[P];
460
- if (S) {
461
- let x;
462
- B(S) ? x = S[0] : x = S, w ? x.show() : x.hide();
508
+ }, h = (g, b, w = {}) => {
509
+ if (_(g)) {
510
+ const x = "VeP" + g, M = n.value[x];
511
+ if (M) {
512
+ let C;
513
+ L(M) ? C = M[0] : C = M, b ? C.show() : C.hide();
463
514
  }
464
515
  }
465
- }, g = (h, w, v) => {
466
- if (_(h) && _(w)) {
467
- const P = "VeP" + h, S = t.value[P];
468
- if (S) {
469
- let x;
470
- if (B(S) ? x = S[0] : x = S, x && x[w])
471
- return v ? x[w](v) : x[w]();
516
+ }, v = (g, b, w) => {
517
+ if (_(g) && _(b)) {
518
+ const x = "VeP" + g, M = n.value[x];
519
+ if (M) {
520
+ let C;
521
+ if (L(M) ? C = M[0] : C = M, C && C[b])
522
+ return w ? C[b](w) : C[b]();
472
523
  }
473
524
  }
474
525
  };
475
- ee("VE-CompMethod", f), ee("VE-CompHideAndShow", i), ee("VE-CompWrapMethod", g), o({
476
- callCompMethod: f
526
+ te("VE-CompMethod", s), te("VE-CompHideAndShow", h), te("VE-CompWrapMethod", v), o({
527
+ callCompMethod: s
477
528
  });
478
- const y = { props: l, componentRefs: t, canvasStyle: p, componentData: a, setComponentRef: c, callCompMethod: f, callCompHideAndShow: i, callCompWrapMethod: g, ref: T, computed: O, provide: ee, watch: Ie, get getCanvasStyle() {
479
- return un;
480
- }, ComponentWrapper: mn, get isNotEmpty() {
529
+ const y = { props: l, componentRefs: n, canvasStyle: f, componentData: i, setComponentRef: c, calcCanvasStyle: d, callCompMethod: s, callCompHideAndShow: h, callCompWrapMethod: v, ref: D, computed: O, provide: te, watch: Ae, get getCanvasStyle() {
530
+ return Ge;
531
+ }, ComponentWrapper: yn, get isNotEmpty() {
481
532
  return _;
482
533
  }, get isArray() {
483
- return B;
534
+ return L;
484
535
  }, get consolePrint() {
485
- return Y;
536
+ return Z;
486
537
  } };
487
538
  return Object.defineProperty(y, "__isScriptSetup", { enumerable: !1, value: !0 }), y;
488
539
  }
489
540
  });
490
- function hn(n, o, l, t, p, a) {
491
- return D(), q("div", { class: "canvas-container" }, [
492
- ne("div", {
541
+ function vn(t, o, l, n, f, i) {
542
+ return A(), z("div", { class: "canvas-container" }, [
543
+ oe("div", {
493
544
  class: "canvas",
494
- style: _e({
495
- ...t.getCanvasStyle(t.canvasStyle || {}),
496
- width: t.canvasStyle.width + "px",
497
- height: t.canvasStyle.height + "px"
498
- })
545
+ style: we(n.calcCanvasStyle)
499
546
  }, [
500
- (D(!0), q(Ee, null, Te(t.componentData, (c, f) => (D(), z(t.ComponentWrapper, {
501
- key: f,
547
+ (A(!0), z(je, null, Fe(n.componentData, (c, d) => (A(), J(n.ComponentWrapper, {
548
+ key: d,
502
549
  config: c,
503
550
  ref_for: !0,
504
- ref: (i) => t.setComponentRef(i, "VeP" + c.id)
551
+ ref: (s) => n.setComponentRef(s, "VeP" + c.id)
505
552
  }, null, 8, ["config"]))), 128))
506
553
  ], 4)
507
554
  ]);
508
555
  }
509
- const yn = /* @__PURE__ */ W(gn, [["render", hn], ["__scopeId", "data-v-87c1142c"], ["__file", "index.vue"]]), _n = Ht({
556
+ const bn = /* @__PURE__ */ $(_n, [["render", vn], ["__scopeId", "data-v-c471d52f"], ["__file", "index.vue"]]), wn = Lt({
510
557
  name: "ve-comp-svg-icon",
511
558
  props: {
512
559
  iconClass: {
@@ -522,25 +569,25 @@ const yn = /* @__PURE__ */ W(gn, [["render", hn], ["__scopeId", "data-v-87c1142c
522
569
  default: ""
523
570
  }
524
571
  },
525
- setup(n) {
572
+ setup(t) {
526
573
  return {
527
- iconName: O(() => `#icon-${n.iconClass}`),
528
- svgClass: O(() => n.className ? `ve-comp-svg-icon ${n.className}` : "ve-comp-svg-icon")
574
+ iconName: O(() => `#icon-${t.iconClass}`),
575
+ svgClass: O(() => t.className ? `ve-comp-svg-icon ${t.className}` : "ve-comp-svg-icon")
529
576
  };
530
577
  }
531
578
  });
532
- function vn(n, o, l, t, p, a) {
533
- return D(), q("svg", {
534
- class: Qe(n.svgClass),
579
+ function xn(t, o, l, n, f, i) {
580
+ return A(), z("svg", {
581
+ class: tt(t.svgClass),
535
582
  "aria-hidden": "true"
536
583
  }, [
537
- ne("use", {
538
- "xlink:href": n.iconName,
539
- fill: n.color
584
+ oe("use", {
585
+ "xlink:href": t.iconName,
586
+ fill: t.color
540
587
  }, null, 8, ["xlink:href", "fill"])
541
588
  ], 2);
542
589
  }
543
- const it = /* @__PURE__ */ W(_n, [["render", vn], ["__file", "index.vue"]]), Sn = /* @__PURE__ */ Object.assign({
590
+ const pt = /* @__PURE__ */ $(wn, [["render", xn], ["__file", "index.vue"]]), Sn = /* @__PURE__ */ Object.assign({
544
591
  name: "CompositeIcon"
545
592
  }, {
546
593
  __name: "index",
@@ -559,72 +606,72 @@ const it = /* @__PURE__ */ W(_n, [["render", vn], ["__file", "index.vue"]]), Sn
559
606
  default: ""
560
607
  }
561
608
  },
562
- setup(n, { expose: o }) {
609
+ setup(t, { expose: o }) {
563
610
  o();
564
- const f = { props: n, isImage: (i) => i && i.toString().toLowerCase().startsWith("img#"), getImageSrc: (i) => i.toString().substring(4), isSvgIcon: (i) => i && i.toString().toLowerCase().indexOf("svg#") == 0, getSvgIconClass: (i) => i.toString().substring(4), VeCompSvgIcon: it };
565
- return Object.defineProperty(f, "__isScriptSetup", { enumerable: !1, value: !0 }), f;
611
+ const d = { props: t, isImage: (s) => s && s.toString().toLowerCase().startsWith("img#"), getImageSrc: (s) => s.toString().substring(4), isSvgIcon: (s) => s && s.toString().toLowerCase().indexOf("svg#") == 0, getSvgIconClass: (s) => s.toString().substring(4), VeCompSvgIcon: pt };
612
+ return Object.defineProperty(d, "__isScriptSetup", { enumerable: !1, value: !0 }), d;
566
613
  }
567
614
  });
568
- function wn(n, o, l, t, p, a) {
569
- const c = j("el-icon");
570
- return D(), z(c, {
571
- size: t.props.iconSize,
572
- color: t.props.color
615
+ function Cn(t, o, l, n, f, i) {
616
+ const c = B("el-icon");
617
+ return A(), J(c, {
618
+ size: n.props.iconSize,
619
+ color: n.props.color
573
620
  }, {
574
- default: R(() => [
575
- t.isImage(t.props.icon) ? (D(), q("img", {
621
+ default: j(() => [
622
+ n.isImage(n.props.icon) ? (A(), z("img", {
576
623
  key: 0,
577
- src: t.getImageSrc(t.props.icon)
578
- }, null, 8, ["src"])) : t.isSvgIcon(t.props.icon) ? (D(), z(t.VeCompSvgIcon, {
624
+ src: n.getImageSrc(n.props.icon)
625
+ }, null, 8, ["src"])) : n.isSvgIcon(n.props.icon) ? (A(), J(n.VeCompSvgIcon, {
579
626
  key: 1,
580
- "icon-class": t.getSvgIconClass(t.props.icon),
581
- color: t.props.color
582
- }, null, 8, ["icon-class", "color"])) : (D(), z(ye(t.props.icon), { key: 2 }))
627
+ "icon-class": n.getSvgIconClass(n.props.icon),
628
+ color: n.props.color
629
+ }, null, 8, ["icon-class", "color"])) : (A(), J(be(n.props.icon), { key: 2 }))
583
630
  ]),
584
631
  _: 1
585
632
  }, 8, ["size", "color"]);
586
633
  }
587
- const bn = /* @__PURE__ */ W(Sn, [["render", wn], ["__file", "index.vue"]]);
588
- let be = null;
589
- const Oe = () => {
590
- if (!be) {
591
- const n = ue({}), o = T([]);
592
- be = {
593
- dialogs: n,
634
+ const Mn = /* @__PURE__ */ $(Sn, [["render", Cn], ["__file", "index.vue"]]);
635
+ let Ve = null;
636
+ const Te = () => {
637
+ if (!Ve) {
638
+ const t = de({}), o = D([]);
639
+ Ve = {
640
+ dialogs: t,
594
641
  dialogStack: o,
595
642
  openDialog: (c = {}) => {
596
- const f = c.dialogId || "dialog-" + ot(), i = o.value.length;
597
- i >= 1 && (c.appendToBody = !0);
598
- const g = {
599
- id: f,
600
- level: i,
643
+ const d = c.dialogId || "dialog-" + ct(), s = o.value.length;
644
+ s >= 1 && (c.appendToBody = !0);
645
+ const h = {
646
+ id: d,
647
+ level: s,
601
648
  config: c
602
649
  };
603
- if (n[f] = g, o.value.length >= 1) {
604
- let y = !1;
605
- for (let h = 0; h < o.value.length; h++)
606
- if (f == o.value[h]) {
607
- y = !0;
650
+ if (t[d] = h, o.value.length >= 1) {
651
+ let v = !1;
652
+ for (let y = 0; y < o.value.length; y++)
653
+ if (d == o.value[y]) {
654
+ v = !0;
608
655
  break;
609
656
  }
610
- y || o.value.push(f);
657
+ v || o.value.push(d);
611
658
  } else
612
- o.value.push(f);
613
- return f;
659
+ o.value.push(d);
660
+ return d;
614
661
  },
615
662
  closeDialog: (c) => {
616
- delete n[c], o.value = o.value.filter((f) => f !== c);
663
+ delete t[c], o.value = o.value.filter((d) => d !== c);
617
664
  },
618
665
  closeAllDialogs: () => {
619
- Object.keys(n).forEach((c) => {
620
- delete n[c];
666
+ Object.keys(t).forEach((c) => {
667
+ delete t[c];
621
668
  }), o.value = [];
622
669
  },
623
670
  getDialogCount: () => o.value.length
624
671
  };
625
672
  }
626
- return be;
627
- }, xn = /* @__PURE__ */ Object.assign({
673
+ return Ve;
674
+ }, Pn = /* @__PURE__ */ Object.assign({
628
675
  name: "FullScreenDialog"
629
676
  }, {
630
677
  __name: "FullscreenDialog",
@@ -635,98 +682,98 @@ const Oe = () => {
635
682
  }
636
683
  },
637
684
  emits: ["confirm", "cancel"],
638
- setup(n, { expose: o, emit: l }) {
639
- const t = n, p = l, a = O(() => t.config), c = O(() => a.value.title || "对话框"), f = O(() => !!t.config.showHeader), i = T(a.value.fullscreen), g = T(a.value.width), y = T(!0), h = O(() => {
640
- let C = a.value.width ?? 800;
641
- return f.value ? C + 32 : C;
685
+ setup(t, { expose: o, emit: l }) {
686
+ const n = t, f = l, i = O(() => n.config), c = O(() => i.value.title || "对话框"), d = O(() => !!n.config.showHeader), s = D(i.value.fullscreen), h = D(i.value.width), v = D(!0), y = O(() => {
687
+ let S = i.value.width ?? 800;
688
+ return d.value ? S + 32 : S;
689
+ }), g = O(() => {
690
+ let S = {};
691
+ return S.style = {}, S.style.width = i.value.width ?? 800, S.style.height = i.value.height ?? 600, S.prop = {}, S.prop.subpageId = i.value.pageId, S.containerParam = i.value.pageParam || {}, S;
692
+ }), b = O(() => {
693
+ let S = {};
694
+ return S.modal = i.value.modal, S["show-close"] = i.value.showClose, S.draggable = i.value.draggable, i.value.appendToBody && (S["append-to-body"] = i.value.appendToBody), d.value || (S.class = " no-header-dialog"), i.value.customPosition ? S["align-center"] = !1 : S["align-center"] = !0, S;
642
695
  }), w = O(() => {
643
- let C = {};
644
- return C.style = {}, C.style.width = a.value.width ?? 800, C.style.height = a.value.height ?? 600, C.prop = {}, C.prop.subpageId = a.value.pageId, C.containerParam = a.value.pageParam || {}, C;
645
- }), v = O(() => {
646
- let C = {};
647
- return C.modal = a.value.modal, C["show-close"] = a.value.showClose, C.draggable = a.value.draggable, a.value.appendToBody && (C["append-to-body"] = a.value.appendToBody), f.value || (C.class = " no-header-dialog"), a.value.customPosition ? C["align-center"] = !1 : C["align-center"] = !0, C;
648
- }), P = O(() => {
649
- let C = {};
650
- if (a.value.customPosition) {
651
- let X = a.value.absLeft ?? 100, k = a.value.absTop ?? 100;
652
- Object.assign(C, {
696
+ let S = {};
697
+ if (i.value.customPosition) {
698
+ let G = i.value.absLeft ?? 100, I = i.value.absTop ?? 100;
699
+ Object.assign(S, {
653
700
  position: "fixed",
654
- left: `${X}px`,
655
- top: `${k}px`,
701
+ left: `${G}px`,
702
+ top: `${I}px`,
656
703
  transform: "none",
657
704
  margin: "0 !important"
658
705
  });
659
706
  }
660
- return a.value.noBackgroundColor && Object.assign(C, {
707
+ return i.value.noBackgroundColor && Object.assign(S, {
661
708
  backgroundColor: "transparent"
662
- }), C;
663
- }), S = () => {
664
- p("confirm");
665
- }, x = () => {
666
- p("cancel"), I();
667
- }, I = () => {
668
- y.value = !1;
669
- }, G = (C) => {
670
- p("cancel");
709
+ }), S;
710
+ }), x = () => {
711
+ f("confirm");
712
+ }, M = () => {
713
+ f("cancel"), C();
714
+ }, C = () => {
715
+ v.value = !1;
716
+ }, T = (S) => {
717
+ f("cancel");
671
718
  };
672
- ee("VE-CompMethod", function() {
673
- Y("warning", "对话框模式,不提供compMethod函数实现");
674
- }), ee("VE-CompHideAndShow", function() {
675
- Y("warning", "对话框模式,不提供compHideAndShow函数实现");
676
- }), ee("VE-CompWrapMethod", function() {
677
- Y("warning", "对话框模式,不提供compWrapMethod函数实现");
719
+ te("VE-CompMethod", function() {
720
+ Z("warning", "对话框模式,不提供compMethod函数实现");
721
+ }), te("VE-CompHideAndShow", function() {
722
+ Z("warning", "对话框模式,不提供compHideAndShow函数实现");
723
+ }), te("VE-CompWrapMethod", function() {
724
+ Z("warning", "对话框模式,不提供compWrapMethod函数实现");
678
725
  }), o({
679
- close: I
726
+ close: C
680
727
  });
681
- const N = { props: t, emit: p, config: a, title: c, showTitle: f, isFullscreen: i, previousWidth: g, openDialog: y, dialogWidth: h, element: w, bindAttr: v, customStyle: P, confirmInner: S, cancel: x, close: I, handleClose: G, ref: T, computed: O, provide: ee, get consolePrint() {
682
- return Y;
728
+ const E = { props: n, emit: f, config: i, title: c, showTitle: d, isFullscreen: s, previousWidth: h, openDialog: v, dialogWidth: y, element: g, bindAttr: b, customStyle: w, confirmInner: x, cancel: M, close: C, handleClose: T, ref: D, computed: O, provide: te, get consolePrint() {
729
+ return Z;
683
730
  }, get isNotEmpty() {
684
731
  return _;
685
732
  } };
686
- return Object.defineProperty(N, "__isScriptSetup", { enumerable: !1, value: !0 }), N;
733
+ return Object.defineProperty(E, "__isScriptSetup", { enumerable: !1, value: !0 }), E;
687
734
  }
688
735
  });
689
- function Cn(n, o, l, t, p, a) {
690
- const c = j("Subpage"), f = j("el-button"), i = j("el-dialog");
691
- return D(), q("div", { class: "full-screen-dialog-wrapper" }, [
692
- E(i, Lt({
693
- modelValue: t.openDialog,
694
- "onUpdate:modelValue": o[0] || (o[0] = (g) => t.openDialog = g),
695
- width: t.dialogWidth,
696
- fullscreen: t.isFullscreen
697
- }, t.bindAttr, {
698
- style: t.customStyle,
699
- onClose: t.handleClose
700
- }), qt({
701
- header: R(() => [
702
- t.showTitle ? (D(), q("span", { key: 0 }, Kt(t.title), 1)) : Fe("", !0)
736
+ function Vn(t, o, l, n, f, i) {
737
+ const c = B("Subpage"), d = B("el-button"), s = B("el-dialog");
738
+ return A(), z("div", { class: "full-screen-dialog-wrapper" }, [
739
+ R(s, qt({
740
+ modelValue: n.openDialog,
741
+ "onUpdate:modelValue": o[0] || (o[0] = (h) => n.openDialog = h),
742
+ width: n.dialogWidth,
743
+ fullscreen: n.isFullscreen
744
+ }, n.bindAttr, {
745
+ style: n.customStyle,
746
+ onClose: n.handleClose
747
+ }), Kt({
748
+ header: j(() => [
749
+ n.showTitle ? (A(), z("span", { key: 0 }, zt(n.title), 1)) : qe("", !0)
703
750
  ]),
704
- default: R(() => [
705
- t.isNotEmpty(t.config.pageId) ? (D(), z(c, {
751
+ default: j(() => [
752
+ n.isNotEmpty(n.config.pageId) ? (A(), J(c, {
706
753
  key: 0,
707
- "prop-value": t.element.prop,
708
- element: t.element
709
- }, null, 8, ["prop-value", "element"])) : Fe("", !0)
754
+ "prop-value": n.element.prop,
755
+ element: n.element
756
+ }, null, 8, ["prop-value", "element"])) : qe("", !0)
710
757
  ]),
711
758
  _: 2
712
759
  }, [
713
- t.config.showFooter ? {
760
+ n.config.showFooter ? {
714
761
  name: "footer",
715
- fn: R(() => [
716
- ne("div", { class: "dialog-footer" }, [
717
- E(f, {
762
+ fn: j(() => [
763
+ oe("div", { class: "dialog-footer" }, [
764
+ R(d, {
718
765
  type: "primary",
719
- onClick: t.confirmInner
766
+ onClick: n.confirmInner
720
767
  }, {
721
- default: R(() => [
722
- A("确定")
768
+ default: j(() => [
769
+ F("确定")
723
770
  ]),
724
771
  _: 1
725
772
  }),
726
- A(),
727
- E(f, { onClick: t.cancel }, {
728
- default: R(() => [
729
- A("关 闭")
773
+ F(),
774
+ R(d, { onClick: n.cancel }, {
775
+ default: j(() => [
776
+ F("关 闭")
730
777
  ]),
731
778
  _: 1
732
779
  })
@@ -737,28 +784,28 @@ function Cn(n, o, l, t, p, a) {
737
784
  ]), 1040, ["modelValue", "width", "fullscreen", "style"])
738
785
  ]);
739
786
  }
740
- const Pn = /* @__PURE__ */ W(xn, [["render", Cn], ["__scopeId", "data-v-7c104f83"], ["__file", "FullscreenDialog.vue"]]), Vn = /* @__PURE__ */ Object.assign({
787
+ const On = /* @__PURE__ */ $(Pn, [["render", Vn], ["__scopeId", "data-v-7c104f83"], ["__file", "FullscreenDialog.vue"]]), kn = /* @__PURE__ */ Object.assign({
741
788
  name: "DialogContainer"
742
789
  }, {
743
790
  __name: "DialogContainer",
744
- setup(n, { expose: o }) {
791
+ setup(t, { expose: o }) {
745
792
  o();
746
- const { dialogs: l, closeDialog: t } = Oe(), p = O(() => Object.values(l)), c = { dialogs: l, closeDialog: t, dialogList: p, cancelHandler: (f) => {
747
- t(f);
793
+ const { dialogs: l, closeDialog: n } = Te(), f = O(() => Object.values(l)), c = { dialogs: l, closeDialog: n, dialogList: f, cancelHandler: (d) => {
794
+ n(d);
748
795
  }, get useDialogManager() {
749
- return Oe;
750
- }, computed: O, FullScreenDialog: Pn };
796
+ return Te;
797
+ }, computed: O, FullScreenDialog: On };
751
798
  return Object.defineProperty(c, "__isScriptSetup", { enumerable: !1, value: !0 }), c;
752
799
  }
753
800
  });
754
- function On(n, o, l, t, p, a) {
755
- return D(!0), q(Ee, null, Te(t.dialogList, (c) => (D(), z(t.FullScreenDialog, {
801
+ function In(t, o, l, n, f, i) {
802
+ return A(!0), z(je, null, Fe(n.dialogList, (c) => (A(), J(n.FullScreenDialog, {
756
803
  key: c.id,
757
804
  config: c.config,
758
- onCancel: (f) => t.cancelHandler(c.id)
805
+ onCancel: (d) => n.cancelHandler(c.id)
759
806
  }, null, 8, ["config", "onCancel"]))), 128);
760
807
  }
761
- const Mn = /* @__PURE__ */ W(Vn, [["render", On], ["__file", "DialogContainer.vue"]]), kn = /* @__PURE__ */ Object.assign({
808
+ const En = /* @__PURE__ */ $(kn, [["render", In], ["__file", "DialogContainer.vue"]]), Tn = /* @__PURE__ */ Object.assign({
762
809
  name: "CommonDialog"
763
810
  }, {
764
811
  __name: "index",
@@ -777,62 +824,62 @@ const Mn = /* @__PURE__ */ W(Vn, [["render", On], ["__file", "DialogContainer.vu
777
824
  }
778
825
  },
779
826
  emits: ["confirm"],
780
- setup(n, { expose: o, emit: l }) {
781
- const t = T("弹框"), p = T(!1), a = n, c = l;
782
- let f = null;
783
- const i = O(() => t.value && _(t.value) ? t.value : a.title), g = () => {
784
- c("confirm", { callBack: f });
785
- }, y = () => {
786
- p.value = !1;
787
- }, h = (v = {}) => {
788
- p.value = !0, f = v.callBack, t.value = v.title || "";
827
+ setup(t, { expose: o, emit: l }) {
828
+ const n = D("弹框"), f = D(!1), i = t, c = l;
829
+ let d = null;
830
+ const s = O(() => n.value && _(n.value) ? n.value : i.title), h = () => {
831
+ c("confirm", { callBack: d });
832
+ }, v = () => {
833
+ f.value = !1;
834
+ }, y = (b = {}) => {
835
+ f.value = !0, d = b.callBack, n.value = b.title || "";
789
836
  };
790
837
  o({
791
- show: h,
792
- cancel: y
838
+ show: y,
839
+ cancel: v
793
840
  });
794
- const w = { showTitle: t, openDialog: p, props: a, emit: c, get callBack() {
795
- return f;
796
- }, set callBack(v) {
797
- f = v;
798
- }, title: i, confirmInner: g, cancel: y, show: h, ref: T, computed: O, get isNotEmpty() {
841
+ const g = { showTitle: n, openDialog: f, props: i, emit: c, get callBack() {
842
+ return d;
843
+ }, set callBack(b) {
844
+ d = b;
845
+ }, title: s, confirmInner: h, cancel: v, show: y, ref: D, computed: O, get isNotEmpty() {
799
846
  return _;
800
847
  } };
801
- return Object.defineProperty(w, "__isScriptSetup", { enumerable: !1, value: !0 }), w;
848
+ return Object.defineProperty(g, "__isScriptSetup", { enumerable: !1, value: !0 }), g;
802
849
  }
803
850
  });
804
- function In(n, o, l, t, p, a) {
805
- const c = j("el-button"), f = j("el-dialog");
806
- return D(), z(f, {
807
- title: t.title,
808
- modelValue: t.openDialog,
809
- "onUpdate:modelValue": o[0] || (o[0] = (i) => t.openDialog = i),
810
- width: t.props.width,
811
- "before-close": t.cancel,
851
+ function Rn(t, o, l, n, f, i) {
852
+ const c = B("el-button"), d = B("el-dialog");
853
+ return A(), J(d, {
854
+ title: n.title,
855
+ modelValue: n.openDialog,
856
+ "onUpdate:modelValue": o[0] || (o[0] = (s) => n.openDialog = s),
857
+ width: n.props.width,
858
+ "before-close": n.cancel,
812
859
  "destroy-on-close": !0,
813
- modal: t.props.modal,
860
+ modal: n.props.modal,
814
861
  "show-close": !1,
815
862
  "align-center": !0,
816
863
  draggable: ""
817
864
  }, {
818
- default: R(() => [
819
- zt(n.$slots, "dialog-content")
865
+ default: j(() => [
866
+ Ut(t.$slots, "dialog-content")
820
867
  ]),
821
- footer: R(() => [
822
- ne("div", { class: "dialog-footer" }, [
823
- E(c, {
868
+ footer: j(() => [
869
+ oe("div", { class: "dialog-footer" }, [
870
+ R(c, {
824
871
  type: "primary",
825
- onClick: t.confirmInner
872
+ onClick: n.confirmInner
826
873
  }, {
827
- default: R(() => [
828
- A("确定")
874
+ default: j(() => [
875
+ F("确定")
829
876
  ]),
830
877
  _: 1
831
878
  }),
832
- A(),
833
- E(c, { onClick: t.cancel }, {
834
- default: R(() => [
835
- A("关 闭")
879
+ F(),
880
+ R(c, { onClick: n.cancel }, {
881
+ default: j(() => [
882
+ F("关 闭")
836
883
  ]),
837
884
  _: 1
838
885
  })
@@ -841,7 +888,7 @@ function In(n, o, l, t, p, a) {
841
888
  _: 3
842
889
  }, 8, ["title", "modelValue", "width", "modal"]);
843
890
  }
844
- const En = /* @__PURE__ */ W(kn, [["render", In], ["__file", "index.vue"]]), Tn = /* @__PURE__ */ Object.assign({
891
+ const Dn = /* @__PURE__ */ $(Tn, [["render", Rn], ["__file", "index.vue"]]), An = /* @__PURE__ */ Object.assign({
845
892
  name: "OmitInput"
846
893
  }, {
847
894
  __name: "index",
@@ -860,59 +907,59 @@ const En = /* @__PURE__ */ W(kn, [["render", In], ["__file", "index.vue"]]), Tn
860
907
  }
861
908
  },
862
909
  emits: ["update:modelValue"],
863
- setup(n, { expose: o, emit: l }) {
910
+ setup(t, { expose: o, emit: l }) {
864
911
  o();
865
- const t = n, p = l, a = T(null), c = T(""), f = O({
866
- get: () => t.modelValue,
867
- set: (h) => p("update:modelValue", h)
868
- }), y = { props: t, emits: p, inputDialogRef: a, inputTextArea: c, internalValue: f, openInputDialog: () => {
869
- c.value = ce(f.value), a.value?.show();
870
- }, confirmEdit: (h) => {
871
- f.value = ce(c.value), a.value?.cancel();
872
- }, ref: T, computed: O, get deepCopy() {
873
- return ce;
912
+ const n = t, f = l, i = D(null), c = D(""), d = O({
913
+ get: () => n.modelValue,
914
+ set: (y) => f("update:modelValue", y)
915
+ }), v = { props: n, emits: f, inputDialogRef: i, inputTextArea: c, internalValue: d, openInputDialog: () => {
916
+ c.value = fe(d.value), i.value?.show();
917
+ }, confirmEdit: (y) => {
918
+ d.value = fe(c.value), i.value?.cancel();
919
+ }, ref: D, computed: O, get deepCopy() {
920
+ return fe;
874
921
  } };
875
- return Object.defineProperty(y, "__isScriptSetup", { enumerable: !1, value: !0 }), y;
922
+ return Object.defineProperty(v, "__isScriptSetup", { enumerable: !1, value: !0 }), v;
876
923
  }
877
924
  });
878
- function Dn(n, o, l, t, p, a) {
879
- const c = j("el-text"), f = j("el-input"), i = j("CommonDialog");
880
- return D(), q("div", {
881
- class: Qe(["custom-omit-input-wrapper", n.$attrs.class])
925
+ function jn(t, o, l, n, f, i) {
926
+ const c = B("el-text"), d = B("el-input"), s = B("CommonDialog");
927
+ return A(), z("div", {
928
+ class: tt(["custom-omit-input-wrapper", t.$attrs.class])
882
929
  }, [
883
- E(f, {
884
- modelValue: t.internalValue,
885
- "onUpdate:modelValue": o[0] || (o[0] = (g) => t.internalValue = g),
886
- placeholder: t.props.placeholder,
930
+ R(d, {
931
+ modelValue: n.internalValue,
932
+ "onUpdate:modelValue": o[0] || (o[0] = (h) => n.internalValue = h),
933
+ placeholder: n.props.placeholder,
887
934
  clearable: "",
888
935
  type: "text",
889
936
  class: "custom-omit-input"
890
937
  }, {
891
- append: R(() => [
892
- E(c, {
938
+ append: j(() => [
939
+ R(c, {
893
940
  style: { width: "32px", "text-align": "center" },
894
- onClick: t.openInputDialog
941
+ onClick: n.openInputDialog
895
942
  }, {
896
- default: R(() => [
897
- A("...")
943
+ default: j(() => [
944
+ F("...")
898
945
  ]),
899
946
  _: 1
900
947
  })
901
948
  ]),
902
949
  _: 1
903
950
  }, 8, ["modelValue", "placeholder"]),
904
- A(),
905
- E(i, {
951
+ F(),
952
+ R(s, {
906
953
  ref: "inputDialogRef",
907
- title: t.props.dialogTitle,
954
+ title: n.props.dialogTitle,
908
955
  width: 700,
909
- onConfirm: t.confirmEdit
956
+ onConfirm: n.confirmEdit
910
957
  }, {
911
- "dialog-content": R(() => [
912
- ne("div", { style: { width: "100%", height: "500px", "overflow-y": "auto", "overflow-x": "hidden" } }, [
913
- E(f, {
914
- modelValue: t.inputTextArea,
915
- "onUpdate:modelValue": o[1] || (o[1] = (g) => t.inputTextArea = g),
958
+ "dialog-content": j(() => [
959
+ oe("div", { style: { width: "100%", height: "500px", "overflow-y": "auto", "overflow-x": "hidden" } }, [
960
+ R(d, {
961
+ modelValue: n.inputTextArea,
962
+ "onUpdate:modelValue": o[1] || (o[1] = (h) => n.inputTextArea = h),
916
963
  type: "textarea",
917
964
  rows: 22
918
965
  }, null, 8, ["modelValue"])
@@ -922,7 +969,7 @@ function Dn(n, o, l, t, p, a) {
922
969
  }, 8, ["title"])
923
970
  ], 2);
924
971
  }
925
- const Rn = /* @__PURE__ */ W(Tn, [["render", Dn], ["__scopeId", "data-v-956a5a3a"], ["__file", "index.vue"]]), pe = Qt(
972
+ const Fn = /* @__PURE__ */ $(An, [["render", jn], ["__scopeId", "data-v-956a5a3a"], ["__file", "index.vue"]]), me = Yt(
926
973
  "ve/dataCache",
927
974
  {
928
975
  state: () => ({
@@ -939,538 +986,544 @@ const Rn = /* @__PURE__ */ W(Tn, [["render", Dn], ["__scopeId", "data-v-956a5a3a
939
986
  // 暂时只考虑扁平结构
940
987
  }),
941
988
  actions: {
942
- setData(n, o) {
943
- this.data[n] = o;
989
+ setData(t, o) {
990
+ this.data[t] = o;
944
991
  },
945
- setPageSource(n = "DB") {
946
- this.pageSource = n;
992
+ setPageSource(t = "DB") {
993
+ this.pageSource = t;
947
994
  },
948
- setContainerSymbol(n) {
949
- this.containerSymbol = n;
995
+ setContainerSymbol(t) {
996
+ this.containerSymbol = t;
950
997
  },
951
- setTdtApiKey(n = "") {
952
- this.tdtApiKey = n;
998
+ setTdtApiKey(t = "") {
999
+ this.tdtApiKey = t;
953
1000
  },
954
- setRuleData(n, o, l = !1) {
955
- l ? this.rules[n] = o : this.rules[n] || (this.rules[n] = o);
1001
+ setRuleData(t, o, l = !1) {
1002
+ l ? this.rules[t] = o : this.rules[t] || (this.rules[t] = o);
956
1003
  }
957
1004
  }
958
1005
  }
959
- ), Ue = (n) => {
1006
+ ), Xe = (t) => {
960
1007
  const o = /* @__PURE__ */ new Map();
961
1008
  return new Proxy({}, {
962
- get(l, t = "undefinedKey") {
963
- return o.has(t) || o.set(t, O(() => n.data[t] || {})), o.get(t);
1009
+ get(l, n = "undefinedKey") {
1010
+ return o.has(n) || o.set(n, O(() => t.data[n] || {})), o.get(n);
964
1011
  },
965
- set(l, t, p) {
966
- return n.setData(t, p), !0;
1012
+ set(l, n, f) {
1013
+ return t.setData(n, f), !0;
967
1014
  }
968
1015
  });
969
1016
  };
970
- function An() {
971
- const n = ae("hflvloader-api");
972
- if (!n)
1017
+ function Bn() {
1018
+ const t = ue("hflvloader-api");
1019
+ if (!t)
973
1020
  throw new Error("组件注册时未提供API,请检查!");
974
- return n;
1021
+ return t;
975
1022
  }
976
- function de(n, o, l = {}) {
977
- let t = {
1023
+ function he(t, o, l = {}) {
1024
+ let n = {
978
1025
  ...l,
979
1026
  message: o || "message",
980
- type: n || "info"
1027
+ type: t || "info"
981
1028
  };
982
- Yt(t);
1029
+ Xt(n);
983
1030
  }
984
- function Me(n, o, l = {}) {
985
- let t = {
1031
+ function Re(t, o, l = {}) {
1032
+ let n = {
986
1033
  ...l,
987
1034
  message: o || "message",
988
- type: n || "info"
1035
+ type: t || "info"
989
1036
  };
990
- Xt(t);
1037
+ Zt(n);
991
1038
  }
992
- function at(n = {}) {
993
- const o = Zt.service(n);
994
- let l = n.timeout || 3e4;
1039
+ function mt(t = {}) {
1040
+ const o = $t.service(t);
1041
+ let l = t.timeout || 3e4;
995
1042
  return setTimeout(() => {
996
1043
  o && o.close();
997
1044
  }, l), o;
998
1045
  }
999
- async function ct(n, o, l = {}) {
1000
- let t = [], p = {};
1046
+ async function ht(t, o, l = {}) {
1047
+ let n = [], f = {};
1001
1048
  try {
1002
- (await Promise.allSettled([Ye.confirm(o, n, l)])).forEach((c, f) => {
1049
+ (await Promise.allSettled([nt.confirm(o, t, l)])).forEach((c, d) => {
1003
1050
  if (c.status === "fulfilled")
1004
- f === 0 && (p = c.value);
1051
+ d === 0 && (f = c.value);
1005
1052
  else {
1006
- const i = c.reason;
1007
- t.push(i);
1053
+ const s = c.reason;
1054
+ n.push(s);
1008
1055
  }
1009
1056
  });
1010
- } catch (a) {
1011
- console.error("showMessageBoxConfirmAsync 异常:", a), t.push(a);
1057
+ } catch (i) {
1058
+ console.error("showMessageBoxConfirmAsync 异常:", i), n.push(i);
1012
1059
  }
1013
- return { errors: t, resultInfo: p };
1060
+ return { errors: n, resultInfo: f };
1014
1061
  }
1015
- async function ut(n, o, l = {}) {
1016
- let t = [], p = {};
1062
+ async function gt(t, o, l = {}) {
1063
+ let n = [], f = {};
1017
1064
  try {
1018
- (await Promise.allSettled([Ye.prompt(o, n, l)])).forEach((c, f) => {
1065
+ (await Promise.allSettled([nt.prompt(o, t, l)])).forEach((c, d) => {
1019
1066
  if (c.status === "fulfilled")
1020
- f === 0 && (p = c.value);
1067
+ d === 0 && (f = c.value);
1021
1068
  else {
1022
- const i = c.reason;
1023
- t.push(i);
1069
+ const s = c.reason;
1070
+ n.push(s);
1024
1071
  }
1025
1072
  });
1026
- } catch (a) {
1027
- console.error("showMessageBoxPromptAsync 异常:", a), t.push(a);
1073
+ } catch (i) {
1074
+ console.error("showMessageBoxPromptAsync 异常:", i), n.push(i);
1028
1075
  }
1029
- return { errors: t, resultInfo: p };
1076
+ return { errors: n, resultInfo: f };
1030
1077
  }
1031
- const Zn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1078
+ const to = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1032
1079
  __proto__: null,
1033
- showLoading: at,
1034
- showMessage: de,
1035
- showMessageBoxConfirmAsync: ct,
1036
- showMessageBoxPromptAsync: ut,
1037
- showNotification: Me
1038
- }, Symbol.toStringTag, { value: "Module" })), le = {
1039
- "==": (n, o) => n == o,
1040
- "!=": (n, o) => n != o,
1041
- ">": (n, o) => +n > +o,
1042
- ">=": (n, o) => +n >= +o,
1043
- "<": (n, o) => +n < +o,
1044
- "<=": (n, o) => +n <= +o,
1045
- contain: (n, o) => n != null && String(n).includes(String(o)),
1046
- unContain: (n, o) => n == null || !String(n).includes(String(o)),
1047
- equals: (n, o) => n != null && String(n) == String(o),
1048
- notEquals: (n, o) => n == null || !String(n) == String(o),
1049
- equalsIgnoreCase: (n, o) => n != null && String(n).toLowerCase() == String(o).toLowerCase()
1050
- }, se = (n) => typeof n == "string" && n.trim() !== "" && !isNaN(n) ? +n : n;
1051
- function Je(n = {}, o = !0, l = {}) {
1052
- const t = n, p = o, a = l, c = /* @__PURE__ */ new Map(), f = An(), i = pe(), g = ae("VE-ContainerParam"), y = ae("VE-CompMethod"), h = [], { openDialog: w, closeDialog: v } = Oe();
1053
- let P = null;
1054
- const S = 250, x = ae("VE-CompHideAndShow"), I = [], G = ae("VE-CompWrapMethod"), N = (e) => {
1055
- if (g) {
1056
- if (Ze(g))
1057
- return g.value[e];
1058
- if (te(g))
1059
- return g[e];
1080
+ showLoading: mt,
1081
+ showMessage: he,
1082
+ showMessageBoxConfirmAsync: ht,
1083
+ showMessageBoxPromptAsync: gt,
1084
+ showNotification: Re
1085
+ }, Symbol.toStringTag, { value: "Module" })), se = {
1086
+ "==": (t, o) => t == o,
1087
+ "!=": (t, o) => t != o,
1088
+ ">": (t, o) => +t > +o,
1089
+ ">=": (t, o) => +t >= +o,
1090
+ "<": (t, o) => +t < +o,
1091
+ "<=": (t, o) => +t <= +o,
1092
+ contain: (t, o) => t != null && String(t).includes(String(o)),
1093
+ unContain: (t, o) => t == null || !String(t).includes(String(o)),
1094
+ equals: (t, o) => t != null && String(t) == String(o),
1095
+ notEquals: (t, o) => t == null || !String(t) == String(o),
1096
+ equalsIgnoreCase: (t, o) => t != null && String(t).toLowerCase() == String(o).toLowerCase()
1097
+ }, ae = (t) => typeof t == "string" && t.trim() !== "" && !isNaN(t) ? +t : t;
1098
+ function Ze(t = {}, o = !0, l = {}) {
1099
+ const n = t, f = o, i = l, c = /* @__PURE__ */ new Map(), d = Bn(), s = me(), h = ue("VE-ContainerParam"), v = ue("VE-CompMethod"), y = [], { openDialog: g, closeDialog: b } = Te();
1100
+ let w = null;
1101
+ const x = 250, M = ue("VE-CompHideAndShow"), C = [], T = ue("VE-CompWrapMethod"), E = (e) => {
1102
+ if (h) {
1103
+ if (rt(h))
1104
+ return h.value[e];
1105
+ if (ne(h))
1106
+ return h[e];
1060
1107
  }
1061
- }, C = (e) => {
1108
+ }, S = (e) => {
1062
1109
  if (e && e.path) {
1063
- let s = e.params || [], r = {};
1064
- s.forEach((u, d) => {
1065
- if (oe(u)) {
1066
- let m = U(u);
1110
+ let a = e.params || [], r = {};
1111
+ a.forEach((u, p) => {
1112
+ if (re(u)) {
1113
+ let m = Y(u);
1067
1114
  r[u.tarKey] = m;
1068
1115
  }
1069
- }), e.namedRouter ? L(a.routerPush) && a.routerPush(e.path, r) : L(a.routerPush2) && a.routerPush2(e.path, r);
1116
+ }), e.namedRouter ? K(i.routerPush) && i.routerPush(e.path, r) : K(i.routerPush2) && i.routerPush2(e.path, r);
1070
1117
  }
1071
- }, X = (e = []) => {
1072
- let s = [];
1118
+ }, G = (e = []) => {
1119
+ let a = [];
1073
1120
  return e.forEach((r) => {
1074
- if (oe(r)) {
1075
- let u = U(r);
1076
- s.push([
1121
+ if (re(r)) {
1122
+ let u = Y(r);
1123
+ a.push([
1077
1124
  r.tarKey,
1078
1125
  u
1079
1126
  ]);
1080
1127
  }
1081
- }), s;
1082
- }, k = (e, s) => {
1128
+ }), a;
1129
+ }, I = (e, a) => {
1083
1130
  if (e.customFunc && _(e.successFunc)) {
1084
1131
  const r = {
1085
- helper: { ...a, ...M }
1132
+ helper: { ...i, ...k }
1086
1133
  };
1087
1134
  try {
1088
1135
  let u = e.successFunc.toString().trim();
1089
- u.indexOf("function") < 0 && (u = `function(res) { ${u} }`), new Function("context", `with(context) {return ${u}}`)(r)(s);
1136
+ u.indexOf("function") < 0 && (u = `function(res) { ${u} }`), new Function("context", `with(context) {return ${u}}`)(r)(a);
1090
1137
  } catch (u) {
1091
1138
  console.error("[_dataRequestHandler4CustomSuccessFunc]处理自定义成功函数时出错:", u);
1092
1139
  }
1093
1140
  }
1094
- }, V = (e, s, r) => {
1141
+ }, V = (e, a, r) => {
1095
1142
  if (e.customFunc && _(e.errorFunc)) {
1096
1143
  const u = {
1097
- helper: { ...a, ...M }
1144
+ helper: { ...i, ...k }
1098
1145
  };
1099
1146
  try {
1100
- let d = e.errorFunc.toString().trim();
1101
- d.indexOf("function") < 0 && (d = "function (res,err){" + d + "}"), new Function("context", `with(context) {return ${d}}`)(u)(s, r);
1102
- } catch (d) {
1103
- console.error("[_dataRequestHandler4CustomErrorFunc]处理自定义失败函数时出错:", d);
1147
+ let p = e.errorFunc.toString().trim();
1148
+ p.indexOf("function") < 0 && (p = "function (res,err){" + p + "}"), new Function("context", `with(context) {return ${p}}`)(u)(a, r);
1149
+ } catch (p) {
1150
+ console.error("[_dataRequestHandler4CustomErrorFunc]处理自定义失败函数时出错:", p);
1104
1151
  }
1105
1152
  }
1106
- }, H = (e, s) => {
1107
- if (B(s) && s.length > 0) {
1108
- let r, u, d;
1109
- for (let m = 0; m < s.length; m++)
1110
- r = s[m], d = r.dataKey || "data", _(d) && Ve(e, d) && (u = Pe(e, d), _(r.ds) && _(r.tarKey) && _t(r, u));
1153
+ }, H = (e, a) => {
1154
+ if (L(a) && a.length > 0) {
1155
+ let r, u, p;
1156
+ for (let m = 0; m < a.length; m++)
1157
+ r = a[m], p = r.dataKey || "data", _(p) && Ee(e, p) && (u = Ie(e, p), _(r.ds) && _(r.tarKey) && vt(r, u));
1111
1158
  }
1112
- }, Q = async (e) => {
1113
- let s = [], r = {};
1159
+ }, q = async (e) => {
1160
+ let a = [], r = {};
1114
1161
  try {
1115
- (await Promise.allSettled([f.rawRequest(e)])).forEach((d, m) => {
1116
- if (d.status === "fulfilled")
1117
- m === 0 && (r = d.value);
1162
+ (await Promise.allSettled([d.rawRequest(e)])).forEach((p, m) => {
1163
+ if (p.status === "fulfilled")
1164
+ m === 0 && (r = p.value);
1118
1165
  else {
1119
- const b = d.reason;
1120
- s.push(b);
1166
+ const P = p.reason;
1167
+ a.push(P);
1121
1168
  }
1122
1169
  });
1123
1170
  } catch (u) {
1124
- console.error("_dataRequestHandler4Async 异常:", u), s.push(u);
1171
+ console.error("_dataRequestHandler4Async 异常:", u), a.push(u);
1125
1172
  }
1126
- return { errors: s, resultInfo: r };
1127
- }, ft = (e) => {
1173
+ return { errors: a, resultInfo: r };
1174
+ }, ie = (e) => {
1128
1175
  if (e.method == "GET" || e.method == "get") {
1129
- let s = e.url;
1130
- if (/\{#.*?#\}/g.test(s)) {
1131
- let u = e.data || [], d = /* @__PURE__ */ new Set(), m = !1, b = null;
1132
- if (s = s.replace(/\{#(.*?)#\}/g, (F, $) => {
1133
- m = !1, b = null;
1134
- for (let ie = 0; ie < u.length; ie++)
1135
- if ($ == u[ie][0]) {
1136
- m = !0, b = u[ie][1];
1176
+ let a = e.url;
1177
+ if (/\{#.*?#\}/g.test(a)) {
1178
+ let u = e.data || [], p = /* @__PURE__ */ new Set(), m = !1, P = null;
1179
+ if (a = a.replace(/\{#(.*?)#\}/g, (N, ee) => {
1180
+ m = !1, P = null;
1181
+ for (let ce = 0; ce < u.length; ce++)
1182
+ if (ee == u[ce][0]) {
1183
+ m = !0, P = u[ce][1];
1137
1184
  break;
1138
1185
  }
1139
- return m ? (d.add($), b) : F;
1140
- }), d.size > 0) {
1141
- let F = u.filter(($, ie) => !d.has($[0]));
1142
- e.url = s, e.data = F || [];
1186
+ return m ? (p.add(ee), P) : N;
1187
+ }), p.size > 0) {
1188
+ let N = u.filter((ee, ce) => !p.has(ee[0]));
1189
+ e.url = a, e.data = N || [];
1143
1190
  }
1144
1191
  }
1145
1192
  }
1146
- }, pt = async (e) => {
1193
+ }, ge = async (e) => {
1147
1194
  if (e && _(e.url)) {
1148
- let s = e.respParams || [], r = {};
1149
- r.url = e.url, r.externalRequest = e.external || !1, r.method = e.method || "GET", r.paramType = "object", r.data = X(e.params), r.headers = e.headers, e.series && (r.series = e.series, r.requestCount = e.requestCount || 0, r.time = e.time || 1e3), ft(r);
1195
+ let a = e.respParams || [], r = {};
1196
+ r.url = e.url, r.externalRequest = e.external || !1, r.method = e.method || "GET", r.paramType = "object", r.data = G(e.params), r.headers = e.headers, e.series && (r.series = e.series, r.requestCount = e.requestCount || 0, r.time = e.time || 1e3), ie(r);
1150
1197
  let u = null;
1151
1198
  if (e.loading) {
1152
- let d = e.load || {}, m = {
1153
- ...d.extParam,
1154
- lock: d.lock,
1155
- background: d.background,
1156
- text: d.text
1199
+ let p = e.load || {}, m = {
1200
+ ...p.extParam,
1201
+ lock: p.lock,
1202
+ background: p.background,
1203
+ text: p.text
1157
1204
  };
1158
- u = at(m);
1205
+ u = mt(m);
1159
1206
  }
1160
1207
  if (e.sync) {
1161
1208
  r.series = !1;
1162
- const { errors: d, resultInfo: m } = await Q(r);
1163
- if (u && u.close(), d && d.length > 0) {
1209
+ const { errors: p, resultInfo: m } = await q(r);
1210
+ if (u && u.close(), p && p.length > 0) {
1164
1211
  if (e.enabledRespErrTip) {
1165
- let b = e.respErrTip || {};
1166
- Z(b);
1212
+ let P = e.respErrTip || {};
1213
+ Q(P);
1167
1214
  }
1168
- V(e, m, d[0]);
1215
+ V(e, m, p[0]);
1169
1216
  } else if (m)
1170
1217
  if (r.externalRequest)
1171
1218
  if (m && m.status == 200) {
1172
1219
  if (e.enabledRespTip) {
1173
- let b = e.respTip || {};
1174
- Z(b);
1220
+ let P = e.respTip || {};
1221
+ Q(P);
1175
1222
  }
1176
- H(m, s), k(e, m);
1223
+ H(m, a), I(e, m);
1177
1224
  } else {
1178
1225
  if (e.enabledRespErrTip) {
1179
- let b = e.respErrTip || {};
1180
- Z(b);
1226
+ let P = e.respErrTip || {};
1227
+ Q(P);
1181
1228
  }
1182
1229
  V(e, m, null);
1183
1230
  }
1184
1231
  else {
1185
1232
  if (m) {
1186
1233
  if (e.enabledRespTip) {
1187
- let b = e.respTip || {};
1188
- Z(b);
1234
+ let P = e.respTip || {};
1235
+ Q(P);
1189
1236
  }
1190
- H(m, s);
1237
+ H(m, a);
1191
1238
  }
1192
- k(e, m);
1239
+ I(e, m);
1193
1240
  }
1194
1241
  } else {
1195
- let d = f.request(r, function(m) {
1242
+ let p = d.request(r, function(m) {
1196
1243
  if (u && u.close(), r.externalRequest)
1197
1244
  if (m && m.status == 200) {
1198
1245
  if (e.enabledRespTip) {
1199
- let b = e.respTip || {};
1200
- Z(b);
1246
+ let P = e.respTip || {};
1247
+ Q(P);
1201
1248
  }
1202
- H(m, s), k(e, m);
1249
+ H(m, a), I(e, m);
1203
1250
  } else {
1204
1251
  if (e.enabledRespErrTip) {
1205
- let b = e.respErrTip || {};
1206
- Z(b);
1252
+ let P = e.respErrTip || {};
1253
+ Q(P);
1207
1254
  }
1208
1255
  V(e, m, null);
1209
1256
  }
1210
1257
  else {
1211
1258
  if (m) {
1212
1259
  if (e.enabledRespTip) {
1213
- let b = e.respTip || {};
1214
- Z(b);
1260
+ let P = e.respTip || {};
1261
+ Q(P);
1215
1262
  }
1216
- H(m, s);
1263
+ H(m, a);
1217
1264
  }
1218
- k(e, m);
1265
+ I(e, m);
1219
1266
  }
1220
1267
  }, function(m) {
1221
1268
  if (u && u.close(), e.enabledRespErrTip) {
1222
- let b = e.respErrTip || {};
1223
- Z(b);
1269
+ let P = e.respErrTip || {};
1270
+ Q(P);
1224
1271
  }
1225
1272
  V(e, null, m);
1226
1273
  });
1227
- d && h.push(d);
1274
+ p && y.push(p);
1228
1275
  }
1229
1276
  }
1230
- }, Z = (e = {}) => {
1231
- e.tipType == "msg" ? de(e.type, e.msg, e.extParam) : e.tipType == "notify" && Me(e.type, e.msg, e.extParam);
1232
- }, dt = (e) => {
1233
- if (e && B(e.params)) {
1234
- let s = e.params || [], r = null;
1235
- for (let u = 0; u < s.length; u++)
1236
- if (r = s[u], oe(r)) {
1237
- let d = U(r);
1238
- M.setDataCache(r.tarKey, d);
1277
+ }, Q = (e = {}) => {
1278
+ e.tipType == "msg" ? he(e.type, e.msg, e.extParam) : e.tipType == "notify" && Re(e.type, e.msg, e.extParam);
1279
+ }, Ce = (e) => {
1280
+ if (e && L(e.params)) {
1281
+ let a = e.params || [], r = null;
1282
+ for (let u = 0; u < a.length; u++)
1283
+ if (r = a[u], re(r)) {
1284
+ let p = Y(r);
1285
+ k.setDataCache(r.tarKey, p);
1239
1286
  }
1240
1287
  }
1241
- }, mt = (e) => {
1242
- if (e && B(e.params)) {
1243
- let s = e.params || [], r = null;
1244
- for (let u = 0; u < s.length; u++)
1245
- if (r = s[u], _(r.ipn) && _(r.opn) && c.has(r.ipn)) {
1246
- let d = c.get(r.ipn), m = le.equals(d, r.ipv);
1288
+ }, U = (e) => {
1289
+ if (e && L(e.params)) {
1290
+ let a = e.params || [], r = null;
1291
+ for (let u = 0; u < a.length; u++)
1292
+ if (r = a[u], _(r.ipn) && _(r.opn) && c.has(r.ipn)) {
1293
+ let p = c.get(r.ipn), m = se.equals(p, r.ipv);
1247
1294
  if (m)
1248
1295
  c.set(r.opn, r.opv);
1249
1296
  else {
1250
- let b = se(d), F = se(r.ipv);
1251
- m = le["=="](b, F), m && c.set(r.opn, r.opv);
1297
+ let P = ae(p), N = ae(r.ipv);
1298
+ m = se["=="](P, N), m && c.set(r.opn, r.opv);
1252
1299
  }
1253
1300
  }
1254
1301
  }
1255
- }, gt = (e) => {
1256
- if (e && B(e.params)) {
1257
- let s = e.params || [], r = null;
1258
- for (let u = 0; u < s.length; u++)
1259
- if (r = s[u], oe(r)) {
1260
- let d = U(r);
1261
- M.setParam(r.tarKey, d);
1302
+ }, Me = (e) => {
1303
+ if (e && L(e.params)) {
1304
+ let a = e.params || [], r = null;
1305
+ for (let u = 0; u < a.length; u++)
1306
+ if (r = a[u], re(r)) {
1307
+ let p = Y(r);
1308
+ k.setParam(r.tarKey, p);
1262
1309
  }
1263
1310
  }
1264
- }, M = {
1311
+ }, k = {
1265
1312
  hasParam: function(e) {
1266
1313
  return c.has(e);
1267
1314
  },
1268
1315
  getParam: function(e) {
1269
1316
  return c.get(e);
1270
1317
  },
1271
- setParam: function(e, s) {
1272
- c.set(e, s);
1318
+ setParam: function(e, a) {
1319
+ c.set(e, a);
1273
1320
  },
1274
1321
  getDataCache: function(e) {
1275
- return i.data[e];
1322
+ return s.data[e];
1276
1323
  },
1277
- setDataCache: function(e, s) {
1278
- i.data[e] = s;
1324
+ setDataCache: function(e, a) {
1325
+ s.data[e] = a;
1279
1326
  },
1280
1327
  getContainerParam: function(e) {
1281
- return N(e);
1328
+ return E(e);
1282
1329
  },
1283
- setSessionParam: function(e, s) {
1284
- sessionStorage.setItem(e, s);
1330
+ setSessionParam: function(e, a) {
1331
+ sessionStorage.setItem(e, a);
1285
1332
  },
1286
1333
  getSessionParam: function(e) {
1287
1334
  return sessionStorage.getItem(e);
1288
1335
  },
1289
- setLocalParam: function(e, s) {
1290
- localStorage.setItem(e, s);
1336
+ setLocalParam: function(e, a) {
1337
+ localStorage.setItem(e, a);
1291
1338
  },
1292
1339
  getLocalParam: function(e) {
1293
1340
  return localStorage.getItem(e);
1294
1341
  },
1295
- callCompMethod: function(e, s, r = {}) {
1296
- L(y) ? y(e, s, r) : console.error("compMethod is not function.");
1342
+ callCompMethod: function(e, a, r = {}) {
1343
+ K(v) ? v(e, a, r) : console.error("compMethod is not function.");
1297
1344
  },
1298
- setJsCookie: function(e, s, r = 30) {
1299
- we.set(e, s, { expires: r });
1345
+ setJsCookie: function(e, a, r = 30) {
1346
+ Pe.set(e, a, { expires: r });
1300
1347
  },
1301
1348
  getJsCookie: function(e) {
1302
- return we.get(e);
1349
+ return Pe.get(e);
1303
1350
  },
1304
1351
  removeJsCookie: function(e) {
1305
- we.remove(e);
1352
+ Pe.remove(e);
1306
1353
  },
1307
- log: function(e = "log", s) {
1308
- e == "error" ? console.error(s) : e == "info" ? console.info(s) : e == "warn" ? console.warn(s) : console.log(s);
1354
+ log: function(e = "log", a) {
1355
+ e == "error" ? console.error(a) : e == "info" ? console.info(a) : e == "warn" ? console.warn(a) : console.log(a);
1309
1356
  },
1310
1357
  isNotEmptyStr: function(e) {
1311
1358
  return _(e);
1312
1359
  },
1313
1360
  md5: function(e) {
1314
- return rt(e);
1361
+ return ut(e);
1315
1362
  },
1316
1363
  getDate: function(e) {
1317
- return nt(e);
1364
+ return it(e);
1318
1365
  },
1319
- formatDate: function(e, s = "yyyy-MM-dd") {
1320
- return tt(e, s);
1366
+ formatDate: function(e, a = "yyyy-MM-dd") {
1367
+ return at(e, a);
1321
1368
  },
1322
1369
  closeDialog: function(e) {
1323
- v(e);
1370
+ b(e);
1324
1371
  },
1325
- hideAndShowComp: function(e, s, r = {}) {
1326
- L(x) ? x(e, s, r) : console.error("hideAndShowComp is not function.");
1372
+ hideAndShowComp: function(e, a, r = {}) {
1373
+ K(M) ? M(e, a, r) : console.error("hideAndShowComp is not function.");
1327
1374
  },
1328
- callCompWrapMethod: function(e, s, r = {}) {
1329
- if (L(G))
1330
- return G(e, s, r);
1375
+ callCompWrapMethod: function(e, a, r = {}) {
1376
+ if (K(T))
1377
+ return T(e, a, r);
1331
1378
  console.error("compWrapMethod is not function.");
1379
+ },
1380
+ getRuleDataCache: function(e) {
1381
+ return s.rules[e];
1382
+ },
1383
+ setRuleDataCache: function(e, a, r = !1) {
1384
+ r ? s.rules[e] = a : s.rules[e] || (s.rules[e] = a);
1332
1385
  }
1333
- }, ht = (e) => {
1386
+ }, yt = (e) => {
1334
1387
  if (e && _(e.funcBody)) {
1335
- const s = {
1336
- helper: { ...a, ...M }
1388
+ const a = {
1389
+ helper: { ...i, ...k }
1337
1390
  };
1338
1391
  try {
1339
1392
  let r = e.funcBody.toString().trim();
1340
- r.indexOf("function") < 0 && (r = "function(){" + r + "}"), new Function("context", `with(context) {return ${r}}`)(s)();
1393
+ r.indexOf("function") < 0 && (r = "function(){" + r + "}"), new Function("context", `with(context) {return ${r}}`)(a)();
1341
1394
  } catch (r) {
1342
1395
  console.error("处理自定义函数时出错:", r);
1343
1396
  }
1344
1397
  }
1345
- }, yt = (e) => {
1398
+ }, _t = (e) => {
1346
1399
  if (e && _(e.type)) {
1347
1400
  if (e.opType == "clear") {
1348
- let s = e.type;
1349
- s == "session" ? sessionStorage.clear() : s == "local" && localStorage.clear();
1350
- } else if (B(e.params) && e.params.length > 0) {
1351
- let s = e.type, r = e.params || [], u = null;
1352
- for (let d = 0; d < r.length; d++)
1353
- if (u = r[d], u.delete)
1354
- _(u.tarKey) && (s == "session" ? sessionStorage.removeItem(u.tarKey) : s == "local" ? localStorage.removeItem(u.tarKey) : s == "jsCookie" && M.removeJsCookie(u.tarKey));
1355
- else if (oe(u)) {
1356
- let m = U(u);
1357
- s == "session" ? sessionStorage.setItem(u.tarKey, m) : s == "local" ? localStorage.setItem(u.tarKey, m) : s == "jsCookie" && M.setJsCookie(u.tarKey, m);
1401
+ let a = e.type;
1402
+ a == "session" ? sessionStorage.clear() : a == "local" && localStorage.clear();
1403
+ } else if (L(e.params) && e.params.length > 0) {
1404
+ let a = e.type, r = e.params || [], u = null;
1405
+ for (let p = 0; p < r.length; p++)
1406
+ if (u = r[p], u.delete)
1407
+ _(u.tarKey) && (a == "session" ? sessionStorage.removeItem(u.tarKey) : a == "local" ? localStorage.removeItem(u.tarKey) : a == "jsCookie" && k.removeJsCookie(u.tarKey));
1408
+ else if (re(u)) {
1409
+ let m = Y(u);
1410
+ a == "session" ? sessionStorage.setItem(u.tarKey, m) : a == "local" ? localStorage.setItem(u.tarKey, m) : a == "jsCookie" && k.setJsCookie(u.tarKey, m);
1358
1411
  }
1359
1412
  }
1360
1413
  }
1361
- }, oe = (e) => _(e.ds) && _(e.tarKey) ? e.ds != "inputV" ? _(e.key) : !0 : !1, U = (e) => {
1414
+ }, re = (e) => _(e.ds) && _(e.tarKey) ? e.ds != "inputV" ? _(e.key) : !0 : !1, Y = (e) => {
1362
1415
  if (e.ds == "inputP")
1363
- return M.getParam(e.key);
1416
+ return k.getParam(e.key);
1364
1417
  if (e.ds == "cacheP")
1365
- return M.getDataCache(e.key);
1418
+ return k.getDataCache(e.key);
1366
1419
  if (e.ds == "containerP")
1367
- return M.getContainerParam(e.key);
1420
+ return k.getContainerParam(e.key);
1368
1421
  if (e.ds == "sessionP")
1369
- return M.getSessionParam(e.key);
1422
+ return k.getSessionParam(e.key);
1370
1423
  if (e.ds == "localP")
1371
- return M.getLocalParam(e.key);
1424
+ return k.getLocalParam(e.key);
1372
1425
  if (e.ds == "jsCookieP")
1373
- return M.getJsCookie(e.key);
1426
+ return k.getJsCookie(e.key);
1374
1427
  if (e.ds == "compProp")
1375
- return L(a.getPropValue) ? a.getPropValue(e.key) : null;
1428
+ return K(i.getPropValue) ? i.getPropValue(e.key) : null;
1376
1429
  if (e.ds == "compStyle")
1377
- return L(a.getStyleValue) ? a.getStyleValue(e.key) : null;
1430
+ return K(i.getStyleValue) ? i.getStyleValue(e.key) : null;
1378
1431
  if (e.ds == "_selectMenuValue" || e.ds == "_selectItemValue" || e.ds == "_changeItemValue") {
1379
- let s = M.getParam(e.ds);
1380
- return Se(s) ? null : te(s) ? _(e.key) && Ve(s, e.key) ? Pe(s, e.key) : null : s;
1432
+ let a = k.getParam(e.ds);
1433
+ return Se(a) ? null : ne(a) ? _(e.key) && Ee(a, e.key) ? Ie(a, e.key) : null : a;
1381
1434
  } else {
1382
- let s = e.key;
1383
- return s.toString().trim().indexOf("#json#") == 0 ? (s = s.toString().trim().replace("#json#", ""), $e(s, {})) : e.key;
1435
+ let a = e.key;
1436
+ return a.toString().trim().indexOf("#json#") == 0 ? (a = a.toString().trim().replace("#json#", ""), lt(a, {})) : e.key;
1384
1437
  }
1385
- }, _t = (e, s) => {
1438
+ }, vt = (e, a) => {
1386
1439
  if (e.ds == "cacheP")
1387
- return M.setDataCache(e.tarKey, s);
1440
+ return k.setDataCache(e.tarKey, a);
1388
1441
  if (e.ds == "inputP")
1389
- return M.setParam(e.tarKey, s);
1442
+ return k.setParam(e.tarKey, a);
1390
1443
  if (e.ds == "sessionP")
1391
- return M.setSessionParam(e.tarKey, s);
1444
+ return k.setSessionParam(e.tarKey, a);
1392
1445
  if (e.ds == "localP")
1393
- return M.setLocalParam(e.tarKey, s);
1394
- e.ds == "jsCookieP" ? M.setJsCookie(e.tarKey, s) : e.ds == "compProp" ? L(a.setPropValue) && a.setPropValue(e.tarKey, s) : e.ds == "compStyle" && L(a.setStyleValue) && a.setStyleValue(e.tarKey, s);
1395
- }, vt = (e) => {
1446
+ return k.setLocalParam(e.tarKey, a);
1447
+ e.ds == "jsCookieP" ? k.setJsCookie(e.tarKey, a) : e.ds == "compProp" ? K(i.setPropValue) && i.setPropValue(e.tarKey, a) : e.ds == "compStyle" && K(i.setStyleValue) && i.setStyleValue(e.tarKey, a);
1448
+ }, bt = (e) => {
1396
1449
  if (e) {
1397
- let s = e.styleSets || [], r = e.propSets || [];
1398
- B(r) && r.length > 0 && L(a.setPropValue) && r.forEach((u, d) => {
1399
- if (oe(u)) {
1400
- let m = U(u);
1401
- a.setPropValue(u.tarKey, m);
1450
+ let a = e.styleSets || [], r = e.propSets || [];
1451
+ L(r) && r.length > 0 && K(i.setPropValue) && r.forEach((u, p) => {
1452
+ if (re(u)) {
1453
+ let m = Y(u);
1454
+ i.setPropValue(u.tarKey, m);
1402
1455
  }
1403
- }), B(s) && s.length > 0 && L(a.setStyleValue) && s.forEach((u, d) => {
1404
- if (oe(u)) {
1405
- let m = U(u);
1406
- a.setStyleValue(u.tarKey, m);
1456
+ }), L(a) && a.length > 0 && K(i.setStyleValue) && a.forEach((u, p) => {
1457
+ if (re(u)) {
1458
+ let m = Y(u);
1459
+ i.setStyleValue(u.tarKey, m);
1407
1460
  }
1408
1461
  });
1409
1462
  }
1410
- }, St = (e) => {
1411
- let s = !1;
1412
- if (e && B(e.params)) {
1413
- let r = e.params || [], u = null, d = !1;
1463
+ }, wt = (e) => {
1464
+ let a = !1;
1465
+ if (e && L(e.params)) {
1466
+ let r = e.params || [], u = null, p = !1;
1414
1467
  for (let m = 0; m < r.length; m++) {
1415
1468
  u = r[m];
1416
- let b = U(u), F = u.value;
1417
- const $ = u.opType;
1418
- if ([">", ">=", "<", "<=", "=="].includes($) && (b = se(b), F = se(F)), le[$] ? d = le[$](b, F) : d = !1, d) {
1419
- s = !0;
1469
+ let P = Y(u), N = u.value;
1470
+ const ee = u.opType;
1471
+ if ([">", ">=", "<", "<=", "=="].includes(ee) && (P = ae(P), N = ae(N)), se[ee] ? p = se[ee](P, N) : p = !1, p) {
1472
+ a = !0;
1420
1473
  break;
1421
1474
  }
1422
1475
  }
1423
- if (e.enabledTip && s) {
1476
+ if (e.enabledTip && a) {
1424
1477
  let m = e.tip || {};
1425
- m.tipType == "msg" ? de(m.type, m.msg, m.extParam) : m.tipType == "notify" && Me(m.type, m.msg, m.extParam);
1478
+ m.tipType == "msg" ? he(m.type, m.msg, m.extParam) : m.tipType == "notify" && Re(m.type, m.msg, m.extParam);
1426
1479
  }
1427
1480
  }
1428
- return s;
1429
- }, Re = (e, s) => {
1481
+ return a;
1482
+ }, Ne = (e, a) => {
1430
1483
  if (e.customFunc && _(e.confirmFunc)) {
1431
1484
  const r = {
1432
- helper: { ...a, ...M }
1485
+ helper: { ...i, ...k }
1433
1486
  };
1434
1487
  try {
1435
1488
  let u = e.confirmFunc.toString().trim();
1436
- u.indexOf("function") < 0 && (u = "function (promptValue){" + u + "}"), new Function("context", `with(context) {return ${u}}`)(r)(s);
1489
+ u.indexOf("function") < 0 && (u = "function (promptValue){" + u + "}"), new Function("context", `with(context) {return ${u}}`)(r)(a);
1437
1490
  } catch (u) {
1438
1491
  console.error("[__messageBoxHandler4CustomSuccessFunc]处理自定义失败函数时出错:", u);
1439
1492
  }
1440
1493
  }
1441
- }, wt = (e, s) => {
1494
+ }, xt = (e, a) => {
1442
1495
  if (e.customFunc && _(e.errorFunc)) {
1443
1496
  const r = {
1444
- helper: { ...a, ...M }
1497
+ helper: { ...i, ...k }
1445
1498
  };
1446
1499
  try {
1447
1500
  let u = e.errorFunc.toString().trim();
1448
- u.indexOf("function") < 0 && (u = "function (err){" + u + "}"), new Function("context", `with(context) {return ${u}}`)(r)(s);
1501
+ u.indexOf("function") < 0 && (u = "function (err){" + u + "}"), new Function("context", `with(context) {return ${u}}`)(r)(a);
1449
1502
  } catch (u) {
1450
1503
  console.error("[__messageBoxHandler4CustomErrorFunc]处理自定义失败函数时出错:", u);
1451
1504
  }
1452
1505
  }
1453
- }, me = (e, s) => {
1506
+ }, ye = (e, a) => {
1454
1507
  if (e.customFunc) {
1455
1508
  let r = "";
1456
- if (s == "cancel" && _(e.cancelFunc))
1509
+ if (a == "cancel" && _(e.cancelFunc))
1457
1510
  r = e.cancelFunc;
1458
- else if (s == "close" && _(e.closeFunc))
1511
+ else if (a == "close" && _(e.closeFunc))
1459
1512
  r = e.closeFunc;
1460
1513
  else
1461
1514
  return;
1462
1515
  const u = {
1463
- helper: { ...a, ...M }
1516
+ helper: { ...i, ...k }
1464
1517
  };
1465
1518
  try {
1466
- let d = r.toString().trim();
1467
- d.indexOf("function") < 0 && (d = "function (err){" + d + "}"), new Function("context", `with(context) {return ${d}}`)(u)();
1468
- } catch (d) {
1469
- console.error("[__messageBoxHandler4CustomCancelOrCloseFunc]处理自定义失败函数时出错:", d);
1519
+ let p = r.toString().trim();
1520
+ p.indexOf("function") < 0 && (p = "function (err){" + p + "}"), new Function("context", `with(context) {return ${p}}`)(u)();
1521
+ } catch (p) {
1522
+ console.error("[__messageBoxHandler4CustomCancelOrCloseFunc]处理自定义失败函数时出错:", p);
1470
1523
  }
1471
1524
  }
1472
- }, bt = async (e) => {
1473
- let s = !1;
1525
+ }, St = async (e) => {
1526
+ let a = !1;
1474
1527
  if (e && _(e.type)) {
1475
1528
  let r = {
1476
1529
  ...e.params,
@@ -1479,276 +1532,276 @@ function Je(n = {}, o = !0, l = {}) {
1479
1532
  cancelButtonText: e.cancelText
1480
1533
  };
1481
1534
  if (e.type == "confirm") {
1482
- const { errors: u, resultInfo: d } = await ct(e.title, e.message, r);
1483
- u && u.length > 0 ? u[0] == "cancel" ? me(e, "cancel") : u[0] == "close" && me(e, "close") : d == "confirm" && (s = !0, Re(e, null));
1535
+ const { errors: u, resultInfo: p } = await ht(e.title, e.message, r);
1536
+ u && u.length > 0 ? u[0] == "cancel" ? ye(e, "cancel") : u[0] == "close" && ye(e, "close") : p == "confirm" && (a = !0, Ne(e, null));
1484
1537
  } else if (e.type == "prompt") {
1485
1538
  if (_(r.inputPattern)) {
1486
1539
  const m = r.inputPattern.replace(/\\\\/g, "\\");
1487
1540
  r.inputPattern = new RegExp(m);
1488
1541
  }
1489
- const { errors: u, resultInfo: d } = await ut(e.title, e.message, r);
1490
- u && u.length > 0 ? u[0] == "cancel" ? me(e, "cancel") : u[0] == "close" ? me(e, "close") : wt(e, u[0]) : d.action == "confirm" && (s = !0, M.setParam("promptValue", d.value), Re(e, d.value));
1542
+ const { errors: u, resultInfo: p } = await gt(e.title, e.message, r);
1543
+ u && u.length > 0 ? u[0] == "cancel" ? ye(e, "cancel") : u[0] == "close" ? ye(e, "close") : xt(e, u[0]) : p.action == "confirm" && (a = !0, k.setParam("promptValue", p.value), Ne(e, p.value));
1491
1544
  }
1492
- e.autoBlock || (s = !0);
1545
+ e.autoBlock || (a = !0);
1493
1546
  } else
1494
- s = !0;
1495
- return s;
1496
- }, xt = (e) => {
1547
+ a = !0;
1548
+ return a;
1549
+ }, Ct = (e) => {
1497
1550
  if (e && _(e.pageId)) {
1498
- let s = { ...e };
1551
+ let a = { ...e };
1499
1552
  if (e.customPosition) {
1500
- let r = (M.getParam("elementRectLeft") ?? 0) + (fe(e.leftOffset) ? e.leftOffset : 0), u = (M.getParam("elementRectTop") ?? 0) + (fe(e.topOffset) ? e.topOffset : 0);
1501
- s.absLeft = r, s.absTop = u;
1553
+ let r = (k.getParam("elementRectLeft") ?? 0) + (pe(e.leftOffset) ? e.leftOffset : 0), u = (k.getParam("elementRectTop") ?? 0) + (pe(e.topOffset) ? e.topOffset : 0);
1554
+ a.absLeft = r, a.absTop = u;
1502
1555
  }
1503
- w(s);
1556
+ g(a);
1504
1557
  }
1505
- }, Ct = (e) => {
1506
- if (e && B(e.params)) {
1507
- let s = e.params || [], r = null;
1508
- for (let u = 0; u < s.length; u++)
1509
- if (r = s[u], _(r.compId)) {
1510
- let d = r.options || {};
1511
- r.type == "s" ? M.hideAndShowComp(r.compId, !0, d) : M.hideAndShowComp(r.compId, !1, d);
1558
+ }, Mt = (e) => {
1559
+ if (e && L(e.params)) {
1560
+ let a = e.params || [], r = null;
1561
+ for (let u = 0; u < a.length; u++)
1562
+ if (r = a[u], _(r.compId)) {
1563
+ let p = r.options || {};
1564
+ r.type == "s" ? k.hideAndShowComp(r.compId, !0, p) : k.hideAndShowComp(r.compId, !1, p);
1512
1565
  }
1513
1566
  }
1514
1567
  }, Pt = (e) => {
1515
1568
  if (e) {
1516
- let s = e.interval ?? 1e3, r = setInterval(
1569
+ let a = e.interval ?? 1e3, r = setInterval(
1517
1570
  () => {
1518
- Y("debug", "定时器触发..."), Nt();
1571
+ Z("debug", "定时器触发..."), Ht();
1519
1572
  },
1520
- s
1573
+ a
1521
1574
  );
1522
- I.push(r);
1575
+ C.push(r);
1523
1576
  }
1524
- }, Vt = (e, s = {}) => {
1577
+ }, Vt = (e, a = {}) => {
1525
1578
  if (e && _(e.eventId)) {
1526
- let r = s.eventIds || [];
1527
- if (r.findIndex((d) => d == e.eventId) < 0) {
1528
- let d = Object.keys(t);
1529
- for (let m = 0; m < d.length; m++) {
1530
- let b = t[d[m]] || [];
1531
- for (const F of b)
1532
- if (F.id == e.eventId) {
1533
- if (r.push(F.id), s.eventIds = [...r], F.default) {
1534
- ge(F.actionList, s);
1579
+ let r = a.eventIds || [];
1580
+ if (r.findIndex((p) => p == e.eventId) < 0) {
1581
+ let p = Object.keys(n);
1582
+ for (let m = 0; m < p.length; m++) {
1583
+ let P = n[p[m]] || [];
1584
+ for (const N of P)
1585
+ if (N.id == e.eventId) {
1586
+ if (r.push(N.id), a.eventIds = [...r], N.default) {
1587
+ _e(N.actionList, a);
1535
1588
  break;
1536
- } else je(F) && ge(F.actionList, s);
1589
+ } else Le(N) && _e(N.actionList, a);
1537
1590
  break;
1538
1591
  }
1539
1592
  }
1540
1593
  } else
1541
- Y("error", "存在循环调用,不执行事件配置", e.eventId);
1594
+ Z("error", "存在循环调用,不执行事件配置", e.eventId);
1542
1595
  }
1543
- }, ge = async (e = [], s = {}) => {
1596
+ }, _e = async (e = [], a = {}) => {
1544
1597
  let r = null;
1545
1598
  for (let u = 0; u < e.length; u++)
1546
1599
  if (r = e[u], r.action == "router")
1547
- C(r.config);
1600
+ S(r.config);
1548
1601
  else if (r.action == "dataRequest")
1549
- await pt(r.config);
1602
+ await ge(r.config);
1550
1603
  else if (r.action == "cacheSet")
1551
- dt(r.config);
1604
+ Ce(r.config);
1552
1605
  else if (r.action == "paramMap")
1553
- mt(r.config);
1606
+ U(r.config);
1554
1607
  else if (r.action == "paramSet")
1555
- gt(r.config);
1608
+ Me(r.config);
1556
1609
  else if (r.action == "customFunction")
1557
- ht(r.config);
1558
- else if (r.action == "webStorage")
1559
1610
  yt(r.config);
1611
+ else if (r.action == "webStorage")
1612
+ _t(r.config);
1560
1613
  else if (r.action == "componentSet")
1561
- vt(r.config);
1614
+ bt(r.config);
1562
1615
  else if (r.action == "actionEnd") {
1563
- if (St(r.config)) {
1616
+ if (wt(r.config)) {
1564
1617
  console.log("actionEnd is true. break");
1565
1618
  break;
1566
1619
  }
1567
1620
  } else if (r.action == "messageBox") {
1568
- if (!await bt(r.config)) {
1621
+ if (!await St(r.config)) {
1569
1622
  console.log("messageBox is false. break");
1570
1623
  break;
1571
1624
  }
1572
1625
  } else if (r.action == "openDialog") {
1573
- xt(r.config);
1626
+ Ct(r.config);
1574
1627
  break;
1575
- } else r.action == "showAndHideSet" ? Ct(r.config) : r.action == "timerSet" ? Pt(r.config) : r.action == "performEvent" && Vt(r.config, s);
1576
- }, Ae = (e) => e == "inputV" || e == "_selectMenuValue" || e == "_selectItemValue" || e == "_changeItemValue", Ot = (e) => {
1577
- let s = !1, r, u, d = !1;
1578
- _(e.lType) && (Ae(e.lType) ? d = !0 : d = _(e.lValue));
1628
+ } else r.action == "showAndHideSet" ? Mt(r.config) : r.action == "timerSet" ? Pt(r.config) : r.action == "performEvent" && Vt(r.config, a);
1629
+ }, He = (e) => e == "inputV" || e == "_selectMenuValue" || e == "_selectItemValue" || e == "_changeItemValue", Ot = (e) => {
1630
+ let a = !1, r, u, p = !1;
1631
+ _(e.lType) && (He(e.lType) ? p = !0 : p = _(e.lValue));
1579
1632
  let m = !1;
1580
- if (_(e.rType) && (Ae(e.rType) ? m = !0 : m = _(e.rValue)), d && m) {
1581
- r = U({
1633
+ if (_(e.rType) && (He(e.rType) ? m = !0 : m = _(e.rValue)), p && m) {
1634
+ r = Y({
1582
1635
  ds: e.lType,
1583
1636
  key: e.lValue
1584
- }), u = U({
1637
+ }), u = Y({
1585
1638
  ds: e.rType,
1586
1639
  key: e.rValue
1587
1640
  });
1588
- const b = e.opType;
1589
- [">", ">=", "<", "<=", "=="].includes(b) && (r = se(r), u = se(u)), le[b] ? s = le[b](r, u) : (s = !1, console.warn("useEventHandler Invalid operator: " + b));
1641
+ const P = e.opType;
1642
+ [">", ">=", "<", "<=", "=="].includes(P) && (r = ae(r), u = ae(u)), se[P] ? a = se[P](r, u) : (a = !1, console.warn("useEventHandler Invalid operator: " + P));
1590
1643
  } else
1591
1644
  console.warn("_judgeCondition warn: the condition config is error.");
1592
- return s;
1593
- }, je = (e) => {
1594
- let s = !1;
1645
+ return a;
1646
+ }, Le = (e) => {
1647
+ let a = !1;
1595
1648
  if (e.default)
1596
- s = !0;
1649
+ a = !0;
1597
1650
  else {
1598
1651
  let r = e.condition || [];
1599
1652
  if (r.length > 0) {
1600
1653
  let u = !0;
1601
- for (let d = 0; d < r.length; d++)
1602
- if (!Ot(r[d])) {
1654
+ for (let p = 0; p < r.length; p++)
1655
+ if (!Ot(r[p])) {
1603
1656
  u = !1;
1604
1657
  break;
1605
1658
  }
1606
- u && (s = !0);
1659
+ u && (a = !0);
1607
1660
  } else
1608
- s = !0;
1661
+ a = !0;
1609
1662
  }
1610
- return s;
1611
- }, K = (e = []) => {
1612
- for (const s of e) {
1663
+ return a;
1664
+ }, W = (e = []) => {
1665
+ for (const a of e) {
1613
1666
  let r = {};
1614
- if (r.eventIds = [s.id], s.default) {
1615
- ge(s.actionList, r);
1667
+ if (r.eventIds = [a.id], a.default) {
1668
+ _e(a.actionList, r);
1616
1669
  break;
1617
- } else je(s) && ge(s.actionList, r);
1670
+ } else Le(a) && _e(a.actionList, r);
1618
1671
  }
1619
- }, Mt = (e) => {
1620
- p || (P && clearTimeout(P), P = setTimeout(() => {
1621
- if (t && t.hasOwnProperty("onMouseClick")) {
1672
+ }, kt = (e) => {
1673
+ f || (w && clearTimeout(w), w = setTimeout(() => {
1674
+ if (n && n.hasOwnProperty("onMouseClick")) {
1622
1675
  if (e && e.target) {
1623
1676
  const r = e.target.getBoundingClientRect();
1624
- J("elementRect", r), J("elementRectLeft", r.left), J("elementRectTop", r.top);
1677
+ X("elementRect", r), X("elementRectLeft", r.left), X("elementRectTop", r.top);
1625
1678
  }
1626
- let s = t.onMouseClick;
1627
- K(s);
1679
+ let a = n.onMouseClick;
1680
+ W(a);
1628
1681
  }
1629
- }, S));
1630
- }, kt = (e) => {
1631
- if (!p && (P && clearTimeout(P), t && t.hasOwnProperty("onMouseDblClick"))) {
1682
+ }, x));
1683
+ }, It = (e) => {
1684
+ if (!f && (w && clearTimeout(w), n && n.hasOwnProperty("onMouseDblClick"))) {
1632
1685
  if (e && e.target) {
1633
1686
  const r = e.target.getBoundingClientRect();
1634
- J("elementRect", r), J("elementRectLeft", r.left), J("elementRectTop", r.top);
1687
+ X("elementRect", r), X("elementRectLeft", r.left), X("elementRectTop", r.top);
1635
1688
  }
1636
- let s = t.onMouseDblClick;
1637
- K(s);
1689
+ let a = n.onMouseDblClick;
1690
+ W(a);
1638
1691
  }
1639
- }, It = (e, s) => {
1640
- if (!p && (J("_selectMenuValue", s), t && t.hasOwnProperty("onContextMenu"))) {
1641
- let r = t.onContextMenu;
1642
- K(r);
1643
- }
1644
- }, Et = (e) => {
1645
- if (!p && (J("_selectItemValue", e), t && t.hasOwnProperty("selectItem"))) {
1646
- let s = t.selectItem;
1647
- K(s);
1692
+ }, Et = (e, a) => {
1693
+ if (!f && (X("_selectMenuValue", a), n && n.hasOwnProperty("onContextMenu"))) {
1694
+ let r = n.onContextMenu;
1695
+ W(r);
1648
1696
  }
1649
1697
  }, Tt = (e) => {
1650
- if (!p && (J("_changeItemValue", e), t && t.hasOwnProperty("changeValue"))) {
1651
- let s = t.changeValue;
1652
- K(s);
1698
+ if (!f && (X("_selectItemValue", e), n && n.hasOwnProperty("selectItem"))) {
1699
+ let a = n.selectItem;
1700
+ W(a);
1653
1701
  }
1654
- }, Dt = () => {
1655
- if (!p && t && t.hasOwnProperty("keyEnter")) {
1656
- let e = t.keyEnter;
1657
- K(e);
1702
+ }, Rt = (e) => {
1703
+ if (!f && (X("_changeItemValue", e), n && n.hasOwnProperty("changeValue"))) {
1704
+ let a = n.changeValue;
1705
+ W(a);
1658
1706
  }
1659
- }, Rt = () => {
1660
- if (!p && t && t.hasOwnProperty("onBeforeMount")) {
1661
- let e = t.onBeforeMount;
1662
- K(e);
1707
+ }, Dt = () => {
1708
+ if (!f && n && n.hasOwnProperty("keyEnter")) {
1709
+ let e = n.keyEnter;
1710
+ W(e);
1663
1711
  }
1664
1712
  }, At = () => {
1665
- if (!p && t && t.hasOwnProperty("onMounted")) {
1666
- let e = t.onMounted;
1667
- K(e);
1713
+ if (!f && n && n.hasOwnProperty("onBeforeMount")) {
1714
+ let e = n.onBeforeMount;
1715
+ W(e);
1668
1716
  }
1669
1717
  }, jt = () => {
1670
- if (I && I.length > 0)
1671
- for (let e = 0; e < I.length; e++)
1718
+ if (!f && n && n.hasOwnProperty("onMounted")) {
1719
+ let e = n.onMounted;
1720
+ W(e);
1721
+ }
1722
+ }, Ft = () => {
1723
+ if (C && C.length > 0)
1724
+ for (let e = 0; e < C.length; e++)
1672
1725
  try {
1673
- clearInterval(I[e]);
1674
- } catch (s) {
1675
- console.error("cancel request error", s);
1726
+ clearInterval(C[e]);
1727
+ } catch (a) {
1728
+ console.error("cancel request error", a);
1676
1729
  }
1677
- }, Ft = () => {
1678
- if (jt(), !p) {
1679
- if (h && h.length > 0)
1680
- for (let e = 0; e < h.length; e++)
1730
+ }, Bt = () => {
1731
+ if (Ft(), !f) {
1732
+ if (y && y.length > 0)
1733
+ for (let e = 0; e < y.length; e++)
1681
1734
  try {
1682
- h[e] && h[e]();
1683
- } catch (s) {
1684
- console.error("cancel request error", s);
1735
+ y[e] && y[e]();
1736
+ } catch (a) {
1737
+ console.error("cancel request error", a);
1685
1738
  }
1686
- if (t && t.hasOwnProperty("onBeforeUnmount")) {
1687
- let e = t.onBeforeUnmount;
1688
- K(e);
1739
+ if (n && n.hasOwnProperty("onBeforeUnmount")) {
1740
+ let e = n.onBeforeUnmount;
1741
+ W(e);
1689
1742
  }
1690
1743
  }
1691
- }, Bt = () => {
1692
- if (!p && t && t.hasOwnProperty("onUnmounted")) {
1693
- let e = t.onUnmounted;
1694
- K(e);
1695
- }
1696
1744
  }, Nt = () => {
1697
- if (!p && t && t.hasOwnProperty("timerTrigger")) {
1698
- let e = t.timerTrigger;
1699
- K(e);
1745
+ if (!f && n && n.hasOwnProperty("onUnmounted")) {
1746
+ let e = n.onUnmounted;
1747
+ W(e);
1700
1748
  }
1701
- }, J = (e, s) => {
1702
- M.setParam(e, s);
1749
+ }, Ht = () => {
1750
+ if (!f && n && n.hasOwnProperty("timerTrigger")) {
1751
+ let e = n.timerTrigger;
1752
+ W(e);
1753
+ }
1754
+ }, X = (e, a) => {
1755
+ k.setParam(e, a);
1703
1756
  };
1704
1757
  return {
1705
- handleClick: Mt,
1706
- handleDblClick: kt,
1707
- handleContextMenu: It,
1708
- selectItem: Et,
1709
- changeValue: Tt,
1710
- beforeMount: Rt,
1711
- mounted: At,
1712
- beforeUnmount: Ft,
1713
- unmounted: Bt,
1714
- setParam: J,
1758
+ handleClick: kt,
1759
+ handleDblClick: It,
1760
+ handleContextMenu: Et,
1761
+ selectItem: Tt,
1762
+ changeValue: Rt,
1763
+ beforeMount: At,
1764
+ mounted: jt,
1765
+ beforeUnmount: Bt,
1766
+ unmounted: Nt,
1767
+ setParam: X,
1715
1768
  keyEnter: Dt
1716
1769
  };
1717
1770
  }
1718
- function We(n, o, l, t) {
1771
+ function $e(t, o, l, n) {
1719
1772
  return {
1720
- setPropValue: function(a, c) {
1721
- n.value[a] = c;
1773
+ setPropValue: function(i, c) {
1774
+ t.value[i] = c;
1722
1775
  },
1723
- getPropValue: function(a) {
1724
- return n.value[a];
1776
+ getPropValue: function(i) {
1777
+ return t.value[i];
1725
1778
  },
1726
- setStyleValue: function(a, c) {
1727
- o.value.style[a] = c;
1779
+ setStyleValue: function(i, c) {
1780
+ o.value.style[i] = c;
1728
1781
  },
1729
- getStyleValue: function(a) {
1730
- return o.value.style[a];
1782
+ getStyleValue: function(i) {
1783
+ return o.value.style[i];
1731
1784
  },
1732
- routerPush: function(a, c) {
1785
+ routerPush: function(i, c) {
1733
1786
  l && l.push({
1734
- name: a,
1787
+ name: i,
1735
1788
  params: c
1736
1789
  });
1737
1790
  },
1738
- routerPush2: function(a, c) {
1791
+ routerPush2: function(i, c) {
1739
1792
  l && l.push({
1740
- path: a,
1793
+ path: i,
1741
1794
  query: c
1742
1795
  });
1743
1796
  },
1744
- routerReplace: function(a) {
1797
+ routerReplace: function(i) {
1745
1798
  l && l.replace({
1746
- path: a
1799
+ path: i
1747
1800
  });
1748
1801
  }
1749
1802
  };
1750
1803
  }
1751
- const jn = /* @__PURE__ */ Object.assign({
1804
+ const Nn = /* @__PURE__ */ Object.assign({
1752
1805
  name: "Group"
1753
1806
  }, {
1754
1807
  __name: "Component",
@@ -1769,214 +1822,214 @@ const jn = /* @__PURE__ */ Object.assign({
1769
1822
  default: !1
1770
1823
  }
1771
1824
  },
1772
- setup(n, { expose: o }) {
1773
- const l = n, t = pe(), p = Ue(t), a = T(null), c = O(() => l.propValue || {}), f = O(() => l.element || {}), i = O(() => c.value.components || []), g = O(() => i.value.map((k) => {
1774
- let V = { ...k }, H = x(k.groupStyle);
1825
+ setup(t, { expose: o }) {
1826
+ const l = t, n = me(), f = Xe(n), i = D(null), c = O(() => l.propValue || {}), d = O(() => l.element || {}), s = O(() => c.value.components || []), h = O(() => s.value.map((I) => {
1827
+ let V = { ...I }, H = M(I.groupStyle);
1775
1828
  return V.computedStyle = H, V.style && (V.style.width = V.computedStyle.width, V.style.height = V.computedStyle.height), V;
1776
- })), y = O(() => f.value.events || []), h = Le(), w = qe(), v = We(c, f, h);
1777
- Be(() => {
1778
- a.value = Je(y.value, l.designStatus, v), a.value?.beforeMount();
1779
- }), ve(() => {
1780
- a.value?.mounted();
1781
- }), Ne(() => {
1782
- a.value?.beforeUnmount();
1783
- }), He(() => {
1784
- a.value?.unmounted();
1829
+ })), v = O(() => d.value.events || []), y = We(), g = Je(), b = $e(c, d, y);
1830
+ Ke(() => {
1831
+ i.value = Ze(v.value, l.designStatus, b), i.value?.beforeMount();
1832
+ }), xe(() => {
1833
+ i.value?.mounted();
1834
+ }), ze(() => {
1835
+ i.value?.beforeUnmount();
1836
+ }), Ue(() => {
1837
+ i.value?.unmounted();
1785
1838
  });
1786
- const P = (k) => {
1787
- a.value?.setParam(k);
1788
- }, S = (k) => {
1789
- a.value?.handleDblClick(k);
1790
- }, x = (k) => {
1791
- if (!k || !f.value?.style) return {};
1792
- let V = { ...k }, H = f.value.style.width, Q = f.value.style.height;
1793
- return V.width = Math.floor(parseFloat(V.width) / 100 * H), V.height = Math.floor(parseFloat(V.height) / 100 * Q), V.top = Math.floor(parseFloat(V.top) / 100 * Q), V.left = Math.floor(parseFloat(V.left) / 100 * H), V;
1794
- }, I = ue({}), G = (k, V) => {
1795
- k ? I[`Ve${V}`] = k : delete I[`Ve${V}`];
1796
- }, N = (k) => I[`Ve${k}`], C = (k, V, H) => {
1797
- if (_(k) && _(V)) {
1798
- const Q = N(k);
1799
- Q && Q[V] && (H ? Q[V](H) : Q[V]());
1839
+ const w = (I) => {
1840
+ i.value?.setParam(I);
1841
+ }, x = (I) => {
1842
+ i.value?.handleDblClick(I);
1843
+ }, M = (I) => {
1844
+ if (!I || !d.value?.style) return {};
1845
+ let V = { ...I }, H = d.value.style.width, q = d.value.style.height;
1846
+ return V.width = Math.floor(parseFloat(V.width) / 100 * H), V.height = Math.floor(parseFloat(V.height) / 100 * q), V.top = Math.floor(parseFloat(V.top) / 100 * q), V.left = Math.floor(parseFloat(V.left) / 100 * H), V;
1847
+ }, C = de({}), T = (I, V) => {
1848
+ I ? C[`Ve${V}`] = I : delete C[`Ve${V}`];
1849
+ }, E = (I) => C[`Ve${I}`], S = (I, V, H) => {
1850
+ if (_(I) && _(V)) {
1851
+ const q = E(I);
1852
+ q && q[V] && (H ? q[V](H) : q[V]());
1800
1853
  }
1801
1854
  };
1802
1855
  o({
1803
- callGroupCompMethod: C
1856
+ callGroupCompMethod: S
1804
1857
  });
1805
- const X = { props: l, dataCache: t, smartData: p, eventHandler: a, propValue: c, element: f, components: i, computedComponents: g, events: y, router: h, route: w, compContext: v, handleClick: P, handleDblClick: S, calcCompStyle: x, componentRefs: I, setComponentRef: G, getComponentRef: N, callGroupCompMethod: C, get useDataCacheStore() {
1806
- return pe;
1858
+ const G = { props: l, dataCache: n, smartData: f, eventHandler: i, propValue: c, element: d, components: s, computedComponents: h, events: v, router: y, route: g, compContext: b, handleClick: w, handleDblClick: x, calcCompStyle: M, componentRefs: C, setComponentRef: T, getComponentRef: E, callGroupCompMethod: S, get useDataCacheStore() {
1859
+ return me;
1807
1860
  }, get createSmartAccessor() {
1808
- return Ue;
1809
- }, ref: T, computed: O, onMounted: ve, onBeforeMount: Be, onBeforeUnmount: Ne, onUnmounted: He, watch: Ie, reactive: ue, get useEventHandler() {
1810
- return Je;
1861
+ return Xe;
1862
+ }, ref: D, computed: O, onMounted: xe, onBeforeMount: Ke, onBeforeUnmount: ze, onUnmounted: Ue, watch: Ae, reactive: de, get useEventHandler() {
1863
+ return Ze;
1811
1864
  }, get useRoute() {
1812
- return qe;
1865
+ return Je;
1813
1866
  }, get useRouter() {
1814
- return Le;
1815
- }, get CreateCompContext() {
1816
1867
  return We;
1868
+ }, get CreateCompContext() {
1869
+ return $e;
1817
1870
  }, get getStyle() {
1818
- return st;
1871
+ return dt;
1819
1872
  }, get isNotEmpty() {
1820
1873
  return _;
1821
1874
  } };
1822
- return Object.defineProperty(X, "__isScriptSetup", { enumerable: !1, value: !0 }), X;
1875
+ return Object.defineProperty(G, "__isScriptSetup", { enumerable: !1, value: !0 }), G;
1823
1876
  }
1824
1877
  });
1825
- function Fn(n, o, l, t, p, a) {
1826
- return D(), q("div", { class: "group" }, [
1827
- ne("div", null, [
1828
- (D(!0), q(Ee, null, Te(t.computedComponents, (c) => (D(), z(ye(c.component), {
1878
+ function Hn(t, o, l, n, f, i) {
1879
+ return A(), z("div", { class: "group" }, [
1880
+ oe("div", null, [
1881
+ (A(!0), z(je, null, Fe(n.computedComponents, (c) => (A(), J(be(c.component), {
1829
1882
  id: "component" + c.id,
1830
1883
  ref_for: !0,
1831
- ref: (f) => t.setComponentRef(f, c.id),
1884
+ ref: (d) => n.setComponentRef(d, c.id),
1832
1885
  key: c.id,
1833
1886
  class: "component",
1834
- style: _e(t.getStyle(c.computedStyle)),
1887
+ style: we(n.getStyle(c.computedStyle)),
1835
1888
  "prop-value": c.propValue,
1836
1889
  element: c
1837
1890
  }, null, 8, ["id", "style", "prop-value", "element"]))), 128))
1838
1891
  ])
1839
1892
  ]);
1840
1893
  }
1841
- const Bn = /* @__PURE__ */ W(jn, [["render", Fn], ["__scopeId", "data-v-20de9881"], ["__file", "Component.vue"]]), Nn = /* @__PURE__ */ Object.assign({
1894
+ const Ln = /* @__PURE__ */ $(Nn, [["render", Hn], ["__scopeId", "data-v-20de9881"], ["__file", "Component.vue"]]), qn = /* @__PURE__ */ Object.assign({
1842
1895
  name: "VEDataCache"
1843
1896
  }, {
1844
1897
  __name: "index",
1845
- setup(n, { expose: o }) {
1898
+ setup(t, { expose: o }) {
1846
1899
  o();
1847
- const l = T(null), t = T(null), p = T([]), a = T(0), c = pe(), f = T(!1), i = T({
1900
+ const l = D(null), n = D(null), f = D([]), i = D(0), c = me(), d = D(!1), s = D({
1848
1901
  id: "",
1849
1902
  fuzzyQry: !1,
1850
1903
  pageNum: 1,
1851
1904
  pageSize: 15
1852
- }), g = () => {
1853
- i.value.pageNum = 1, h();
1905
+ }), h = () => {
1906
+ s.value.pageNum = 1, y();
1907
+ }, v = () => {
1908
+ l.value?.resetFields(), h();
1854
1909
  }, y = () => {
1855
- l.value?.resetFields(), g();
1856
- }, h = () => {
1857
- if (!_(i.value.id)) {
1858
- a.value = 0, p.value = [];
1910
+ if (!_(s.value.id)) {
1911
+ i.value = 0, f.value = [];
1859
1912
  return;
1860
1913
  }
1861
- if (f.value = !0, c.data)
1862
- if (i.value.fuzzyQry) {
1863
- let P = Object.keys(c.data), S = [];
1864
- for (let x = 0; x < P.length; x++)
1865
- P[x].startsWith(i.value.id) && S.push(P[x]);
1866
- if (a.value = S.length, a.value > 0) {
1867
- let x = (i.value.pageNum - 1) * i.value.pageSize, I = x + i.value.pageSize;
1868
- if (x <= a.value) {
1869
- let G = [];
1870
- for (let N = x; N < I; N++)
1871
- if (N < a.value) {
1872
- let C = c.data[S[N]], X = te(C) ? he(C) : C;
1873
- G.push({
1874
- key: S[N],
1875
- value: X
1914
+ if (d.value = !0, c.data)
1915
+ if (s.value.fuzzyQry) {
1916
+ let w = Object.keys(c.data), x = [];
1917
+ for (let M = 0; M < w.length; M++)
1918
+ w[M].startsWith(s.value.id) && x.push(w[M]);
1919
+ if (i.value = x.length, i.value > 0) {
1920
+ let M = (s.value.pageNum - 1) * s.value.pageSize, C = M + s.value.pageSize;
1921
+ if (M <= i.value) {
1922
+ let T = [];
1923
+ for (let E = M; E < C; E++)
1924
+ if (E < i.value) {
1925
+ let S = c.data[x[E]], G = ne(S) ? ve(S) : S;
1926
+ T.push({
1927
+ key: x[E],
1928
+ value: G
1876
1929
  });
1877
1930
  }
1878
- p.value = G;
1931
+ f.value = T;
1879
1932
  } else
1880
- p.value = [];
1933
+ f.value = [];
1881
1934
  } else
1882
- p.value = [];
1935
+ f.value = [];
1883
1936
  } else {
1884
- let P = c.data[i.value.id];
1885
- if (Se(P))
1886
- a.value = 0, p.value = [];
1937
+ let w = c.data[s.value.id];
1938
+ if (Se(w))
1939
+ i.value = 0, f.value = [];
1887
1940
  else {
1888
- a.value = 1;
1889
- let S = te(P) ? he(P) : P;
1890
- p.value = [{
1891
- key: i.value.id,
1892
- value: S
1941
+ i.value = 1;
1942
+ let x = ne(w) ? ve(w) : w;
1943
+ f.value = [{
1944
+ key: s.value.id,
1945
+ value: x
1893
1946
  }];
1894
1947
  }
1895
1948
  }
1896
- f.value = !1;
1897
- }, v = { queryForm: l, resultTableRef: t, dataList: p, total: a, dataCache: c, loading: f, queryParams: i, handleQuery: g, resetQuery: y, getList: h, handleCopyData: (P) => {
1898
- P && Ce(P.value) && de("success", "复制成功");
1899
- }, ref: T, get useDataCacheStore() {
1900
- return pe;
1949
+ d.value = !1;
1950
+ }, b = { queryForm: l, resultTableRef: n, dataList: f, total: i, dataCache: c, loading: d, queryParams: s, handleQuery: h, resetQuery: v, getList: y, handleCopyData: (w) => {
1951
+ w && ke(w.value) && he("success", "复制成功");
1952
+ }, ref: D, get useDataCacheStore() {
1953
+ return me;
1901
1954
  }, get copyToClipboard() {
1902
- return Ce;
1955
+ return ke;
1903
1956
  }, get isNotEmpty() {
1904
1957
  return _;
1905
1958
  }, get isNullOrUndefined() {
1906
1959
  return Se;
1907
1960
  }, get isObject() {
1908
- return te;
1961
+ return ne;
1909
1962
  }, get toJsonStr() {
1910
- return he;
1963
+ return ve;
1911
1964
  }, get showMessage() {
1912
- return de;
1965
+ return he;
1913
1966
  } };
1914
- return Object.defineProperty(v, "__isScriptSetup", { enumerable: !1, value: !0 }), v;
1967
+ return Object.defineProperty(b, "__isScriptSetup", { enumerable: !1, value: !0 }), b;
1915
1968
  }
1916
1969
  });
1917
- function Hn(n, o, l, t, p, a) {
1918
- const c = j("el-input"), f = j("el-form-item"), i = j("el-switch"), g = j("el-button"), y = j("el-form"), h = j("el-table-column"), w = j("el-table"), v = j("pagination"), P = Ut("loading");
1919
- return D(), q("div", { class: "panel-area" }, [
1920
- ne("div", { class: "panel-condition" }, [
1921
- E(y, {
1922
- model: t.queryParams,
1970
+ function Kn(t, o, l, n, f, i) {
1971
+ const c = B("el-input"), d = B("el-form-item"), s = B("el-switch"), h = B("el-button"), v = B("el-form"), y = B("el-table-column"), g = B("el-table"), b = B("pagination"), w = Wt("loading");
1972
+ return A(), z("div", { class: "panel-area" }, [
1973
+ oe("div", { class: "panel-condition" }, [
1974
+ R(v, {
1975
+ model: n.queryParams,
1923
1976
  ref: "queryForm",
1924
1977
  inline: !0
1925
1978
  }, {
1926
- default: R(() => [
1927
- E(f, {
1979
+ default: j(() => [
1980
+ R(d, {
1928
1981
  label: "缓存key",
1929
1982
  prop: "id"
1930
1983
  }, {
1931
- default: R(() => [
1932
- E(c, {
1933
- modelValue: t.queryParams.id,
1934
- "onUpdate:modelValue": o[0] || (o[0] = (S) => t.queryParams.id = S),
1984
+ default: j(() => [
1985
+ R(c, {
1986
+ modelValue: n.queryParams.id,
1987
+ "onUpdate:modelValue": o[0] || (o[0] = (x) => n.queryParams.id = x),
1935
1988
  placeholder: "请输入缓存key",
1936
1989
  clearable: "",
1937
1990
  style: { width: "240px" },
1938
- onKeyup: Jt(t.handleQuery, ["enter", "native"])
1991
+ onKeyup: Jt(n.handleQuery, ["enter", "native"])
1939
1992
  }, null, 8, ["modelValue"])
1940
1993
  ]),
1941
1994
  _: 1
1942
1995
  }),
1943
- A(),
1944
- E(f, {
1996
+ F(),
1997
+ R(d, {
1945
1998
  label: "查询模式",
1946
1999
  prop: "name"
1947
2000
  }, {
1948
- default: R(() => [
1949
- E(i, {
1950
- modelValue: t.queryParams.fuzzyQry,
1951
- "onUpdate:modelValue": o[1] || (o[1] = (S) => t.queryParams.fuzzyQry = S),
2001
+ default: j(() => [
2002
+ R(s, {
2003
+ modelValue: n.queryParams.fuzzyQry,
2004
+ "onUpdate:modelValue": o[1] || (o[1] = (x) => n.queryParams.fuzzyQry = x),
1952
2005
  "active-text": "模糊",
1953
2006
  "inactive-text": "精确"
1954
2007
  }, null, 8, ["modelValue"])
1955
2008
  ]),
1956
2009
  _: 1
1957
2010
  }),
1958
- A(),
1959
- E(f, null, {
1960
- default: R(() => [
1961
- E(g, {
2011
+ F(),
2012
+ R(d, null, {
2013
+ default: j(() => [
2014
+ R(h, {
1962
2015
  type: "primary",
1963
2016
  icon: "search",
1964
2017
  size: "small",
1965
- onClick: t.handleQuery
2018
+ onClick: n.handleQuery
1966
2019
  }, {
1967
- default: R(() => [
1968
- A("搜索")
2020
+ default: j(() => [
2021
+ F("搜索")
1969
2022
  ]),
1970
2023
  _: 1
1971
2024
  }),
1972
- A(),
1973
- E(g, {
2025
+ F(),
2026
+ R(h, {
1974
2027
  icon: "refresh",
1975
2028
  size: "small",
1976
- onClick: t.resetQuery
2029
+ onClick: n.resetQuery
1977
2030
  }, {
1978
- default: R(() => [
1979
- A("重置")
2031
+ default: j(() => [
2032
+ F("重置")
1980
2033
  ]),
1981
2034
  _: 1
1982
2035
  })
@@ -1987,55 +2040,55 @@ function Hn(n, o, l, t, p, a) {
1987
2040
  _: 1
1988
2041
  }, 8, ["model"])
1989
2042
  ]),
1990
- A(),
1991
- ne("div", { class: "panel-table" }, [
1992
- A(`\r
2043
+ F(),
2044
+ oe("div", { class: "panel-table" }, [
2045
+ F(`\r
1993
2046
      \r
1994
2047
  `),
1995
- xe((D(), z(w, {
2048
+ Oe((A(), J(g, {
1996
2049
  ref: "resultTableRef",
1997
- data: t.dataList,
2050
+ data: n.dataList,
1998
2051
  stripe: "",
1999
2052
  border: "",
2000
2053
  "highlight-current-row": ""
2001
2054
  }, {
2002
- default: R(() => [
2003
- E(h, {
2055
+ default: j(() => [
2056
+ R(y, {
2004
2057
  type: "index",
2005
2058
  align: "center",
2006
2059
  width: "60"
2007
2060
  }),
2008
- A(),
2009
- E(h, {
2061
+ F(),
2062
+ R(y, {
2010
2063
  label: "缓存Key",
2011
2064
  align: "center",
2012
2065
  property: "key",
2013
2066
  "show-overflow-tooltip": !0,
2014
2067
  "min-width": "200"
2015
2068
  }),
2016
- A(),
2017
- E(h, {
2069
+ F(),
2070
+ R(y, {
2018
2071
  label: "缓存值",
2019
2072
  align: "left",
2020
2073
  property: "value",
2021
2074
  "show-overflow-tooltip": !0,
2022
2075
  "min-width": "400"
2023
2076
  }),
2024
- A(),
2025
- E(h, {
2077
+ F(),
2078
+ R(y, {
2026
2079
  label: "操作",
2027
2080
  align: "center",
2028
2081
  "show-overflow-tooltip": !0,
2029
2082
  "min-width": "80"
2030
2083
  }, {
2031
- default: R((S) => [
2032
- E(g, {
2084
+ default: j((x) => [
2085
+ R(h, {
2033
2086
  link: "",
2034
2087
  icon: "document",
2035
- onClick: (x) => t.handleCopyData(S.row)
2088
+ onClick: (M) => n.handleCopyData(x.row)
2036
2089
  }, {
2037
- default: R(() => [
2038
- A(`复制数据\r
2090
+ default: j(() => [
2091
+ F(`复制数据\r
2039
2092
  `)
2040
2093
  ]),
2041
2094
  _: 1
@@ -2046,46 +2099,46 @@ function Hn(n, o, l, t, p, a) {
2046
2099
  ]),
2047
2100
  _: 1
2048
2101
  }, 8, ["data"])), [
2049
- [P, t.loading]
2102
+ [w, n.loading]
2050
2103
  ]),
2051
- A(),
2052
- xe(E(v, {
2053
- total: t.total,
2054
- page: t.queryParams.pageNum,
2055
- "onUpdate:page": o[2] || (o[2] = (S) => t.queryParams.pageNum = S),
2056
- limit: t.queryParams.pageSize,
2057
- "onUpdate:limit": o[3] || (o[3] = (S) => t.queryParams.pageSize = S),
2104
+ F(),
2105
+ Oe(R(b, {
2106
+ total: n.total,
2107
+ page: n.queryParams.pageNum,
2108
+ "onUpdate:page": o[2] || (o[2] = (x) => n.queryParams.pageNum = x),
2109
+ limit: n.queryParams.pageSize,
2110
+ "onUpdate:limit": o[3] || (o[3] = (x) => n.queryParams.pageSize = x),
2058
2111
  pageSizes: [15, 20, 30, 50],
2059
- onPagination: t.getList
2112
+ onPagination: n.getList
2060
2113
  }, null, 8, ["total", "page", "limit"]), [
2061
- [Ge, t.total > 0]
2114
+ [et, n.total > 0]
2062
2115
  ])
2063
2116
  ])
2064
2117
  ]);
2065
2118
  }
2066
- const Ln = /* @__PURE__ */ W(Nn, [["render", Hn], ["__scopeId", "data-v-55cea49e"], ["__file", "index.vue"]]), qn = [
2067
- yn,
2119
+ const zn = /* @__PURE__ */ $(qn, [["render", Kn], ["__scopeId", "data-v-55cea49e"], ["__file", "index.vue"]]), Un = [
2068
2120
  bn,
2069
2121
  Mn,
2070
- Ln,
2071
2122
  En,
2072
- it,
2073
- Rn,
2074
- Bn
2075
- ], ke = (n, o) => {
2076
- ke.installed || (ke.installed = !0, n.provide("hflvloader-api", o), qn.forEach((l) => {
2077
- n.component(l.name, l);
2123
+ zn,
2124
+ Dn,
2125
+ pt,
2126
+ Fn,
2127
+ Ln
2128
+ ], De = (t, o) => {
2129
+ De.installed || (De.installed = !0, t.provide("hflvloader-api", o), Un.forEach((l) => {
2130
+ t.component(l.name, l);
2078
2131
  }));
2079
- }, $n = {
2080
- install: ke
2132
+ }, no = {
2133
+ install: De
2081
2134
  };
2082
2135
  export {
2083
- Yn as CommonUtils,
2084
- We as CreateCompContext,
2085
- Zn as MessageUtils,
2086
- Ue as createSmartAccessor,
2087
- $n as default,
2088
- Xn as reCalcCanvasSize,
2089
- pe as useDataCacheStore,
2090
- Je as useEventHandler
2136
+ $n as CommonUtils,
2137
+ $e as CreateCompContext,
2138
+ to as MessageUtils,
2139
+ Xe as createSmartAccessor,
2140
+ no as default,
2141
+ eo as reCalcCanvasSize,
2142
+ me as useDataCacheStore,
2143
+ Ze as useEventHandler
2091
2144
  };