hflvloader 0.0.9 → 0.0.11

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