hflvloader 0.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1681 @@
1
+ (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".component[data-v-18b2e770]{position:absolute}.canvas-container[data-v-0ad040a6]{width:100%;height:100%;display:flex;align-items:center;justify-content:center;margin:auto;overflow:hidden}.canvas-container .canvas[data-v-0ad040a6]{position:relative;margin:auto;background-color:transparent!important}.ve-comp-svg-icon{width:100%;height:100%;position:relative;fill:currentColor;vertical-align:-2px}.full-screen-dialog-wrapper[data-v-fe28b3b7] .no-header-dialog{margin:0!important;padding:0!important}.full-screen-dialog-wrapper[data-v-fe28b3b7] .no-header-dialog .el-dialog__header{display:none!important;padding-bottom:0!important}.group>div[data-v-20de9881]{position:relative;width:100%;height:100%}.group>div .component[data-v-20de9881]{position:absolute}")),document.head.appendChild(e)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}})();
2
+ import { withDirectives as Ct, createElementBlock as L, openBlock as P, createBlock as H, resolveDynamicComponent as se, normalizeStyle as ie, vShow as Pt, computed as b, reactive as oe, onMounted as ae, ref as V, createElementVNode as re, Fragment as ve, renderList as Se, provide as Pe, watch as je, defineComponent as Mt, normalizeClass as Ot, resolveComponent as X, withCtx as N, createVNode as ne, mergeProps as Rt, createSlots as kt, createCommentVNode as Me, toDisplayString as Vt, createTextVNode as Z, renderSlot as Et, inject as pe, onBeforeMount as Oe, onBeforeUnmount as Re, onUnmounted as ke } from "vue";
3
+ import Tt from "json5";
4
+ import Ft from "js-md5";
5
+ import { defineStore as It } from "pinia";
6
+ import ue from "js-cookie";
7
+ import { ElMessage as Dt, ElNotification as Bt, ElLoading as jt, ElMessageBox as Ae } from "element-plus";
8
+ import { useRouter as Ve, useRoute as Ee } from "vue-router";
9
+ (function() {
10
+ const t = () => {
11
+ console.log("%c 可视化加载器 hflvloader", "color: #3498db; font-size: 16px; font-weight: bold;"), console.log("%c版本号: 0.0.0", "color: #2ecc71;"), console.log("%c编译日期: 2025/12/10 11:16:14", "color: #3498db;"), console.log("%c版权声明:", "color: #e74c3c; font-weight: bold;"), console.log('%c 1. 版权完全归"hflsoft"享有。', "color: #34495e;"), console.log("%c 2. 程序包完整引用,不得以任何形式破解、裁剪,不得隐藏或删除版权信息。", "color: #34495e;"), console.log("%c 3. 保留此版权信息在控制台输出。", "color: #34495e;"), console.log("%c 版权所有 ©2024-2025 hflsoft 保留对此版权信息的最终解释权.", "color: #f39c12;"), console.log("%c Copyright ©2024-2025 hflsoft All rights reserved.", "color: #f39c12;");
12
+ };
13
+ if (typeof window < "u") {
14
+ window._copyright_hflvloader = t;
15
+ try {
16
+ Object.defineProperty(window, _copyright_hflvloader, {
17
+ value: t,
18
+ writable: !1,
19
+ configurable: !1,
20
+ enumerable: !1
21
+ });
22
+ } catch {
23
+ window._copyright_hflvloader = t;
24
+ }
25
+ }
26
+ t();
27
+ })();
28
+ function _(t) {
29
+ return !!(t && t != "");
30
+ }
31
+ function xe(t) {
32
+ return !isNaN(parseFloat(t)) && isFinite(t);
33
+ }
34
+ function Ne(t) {
35
+ return t && Object.prototype.toString.call(t) === "[object Date]" && !isNaN(t);
36
+ }
37
+ function F(t) {
38
+ return typeof Array.isArray > "u" ? Object.prototype.toString.call(t) === "[object Array]" : Array.isArray(t);
39
+ }
40
+ function At(t) {
41
+ return !!(t || t === 0);
42
+ }
43
+ function ce(t) {
44
+ return t instanceof Object && t !== null;
45
+ }
46
+ function Nt(t) {
47
+ return Object.keys(t).length === 0;
48
+ }
49
+ function A(t) {
50
+ return !!(t && typeof t == "function");
51
+ }
52
+ function He(t) {
53
+ return t && t.__v_isRef && !!t.effect;
54
+ }
55
+ function be(t) {
56
+ return typeof t == "string" || t instanceof String;
57
+ }
58
+ function Le(t, o = {}) {
59
+ if (be(t) && _(t))
60
+ try {
61
+ return Tt.parse(t);
62
+ } catch (l) {
63
+ return console.warn("JSON 解析错误:", l), o;
64
+ }
65
+ else
66
+ return ce(t) ? t : o;
67
+ }
68
+ function Ht(t) {
69
+ return be(t) ? t : ce(t) ? JSON.stringify(t, null, 2) : "";
70
+ }
71
+ function qe(t) {
72
+ if (typeof t == "object") {
73
+ const o = Array.isArray(t) ? [] : {};
74
+ for (const l in t)
75
+ typeof t[l] == "object" ? o[l] = qe(t[l]) : o[l] = t[l];
76
+ return o;
77
+ }
78
+ return t;
79
+ }
80
+ function Ke(t, o) {
81
+ for (const l in o)
82
+ o[l] instanceof Object && t[l] && Object.assign(o[l], Ke(t[l], o[l]));
83
+ return { ...t, ...o };
84
+ }
85
+ function Je(t, o) {
86
+ if (t) {
87
+ let l = t.getFullYear(), n = t.getMonth() + 1, p = t.getDate(), a = t.getHours(), c = t.getMinutes(), f = t.getSeconds(), s = o;
88
+ 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 ? p >= 10 ? s = s.replace("dd", p) : s = s.replace("dd", "0" + p) : s = s.replace("d", p), s.indexOf("HH") >= 0 ? a >= 10 ? s = s.replace("HH", a) : s = s.replace("HH", "0" + a) : s = s.replace("H", a), 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 ? f >= 10 ? s = s.replace("ss", f) : s = s.replace("ss", "0" + f) : s = s.replace("s", f), s;
89
+ }
90
+ return "";
91
+ }
92
+ function Ue(t) {
93
+ if (t) {
94
+ if (Ne(t))
95
+ return t;
96
+ if (xe(t)) {
97
+ let o = /* @__PURE__ */ new Date(), l = parseInt(t);
98
+ return l < 9999999999 && (l = l * 1e3), o.setTime(l), o;
99
+ } else
100
+ try {
101
+ return new Date(t);
102
+ } catch {
103
+ }
104
+ }
105
+ return null;
106
+ }
107
+ function Lt(t, o = 0) {
108
+ if (t) {
109
+ let l = t.getDay(), n = ["星期天", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"], p = ["周末", "周一", "周二", "周三", "周四", "周五", "周六"];
110
+ return o == 1 ? n[l] : o == 2 ? p[l] : l;
111
+ }
112
+ return null;
113
+ }
114
+ function qt(t) {
115
+ const o = document.createElement("textarea");
116
+ o.value = t, document.body.appendChild(o), o.select();
117
+ const l = document.execCommand("copy");
118
+ return document.body.removeChild(o), l;
119
+ }
120
+ async function Kt(t) {
121
+ try {
122
+ return navigator.clipboard ? (await navigator.clipboard.writeText(t), !0) : !!qt(t);
123
+ } catch (o) {
124
+ return console.error("无法复制内容", o), !1;
125
+ }
126
+ }
127
+ async function Jt() {
128
+ try {
129
+ return navigator.clipboard ? await navigator.clipboard.readText() : null;
130
+ } catch (t) {
131
+ return console.error("无法读取黏贴版内容", t), null;
132
+ }
133
+ }
134
+ function Ut(t, o) {
135
+ return xe(t) ? t : o;
136
+ }
137
+ function We(t, o) {
138
+ return o.split(".").reduce((l, n) => l && l[n], t);
139
+ }
140
+ function ze(t, o) {
141
+ if (!t || typeof t != "object" || typeof o != "string" || !o)
142
+ return !1;
143
+ const l = o.split(".");
144
+ let n = t;
145
+ for (const p of l)
146
+ if (n && typeof n == "object" && n.hasOwnProperty(p))
147
+ n = n[p];
148
+ else
149
+ return !1;
150
+ return !0;
151
+ }
152
+ function Ge() {
153
+ if (typeof crypto < "u" && crypto.randomUUID)
154
+ return crypto.randomUUID();
155
+ if (typeof crypto < "u" && crypto.getRandomValues) {
156
+ const t = new Uint8Array(16);
157
+ 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("");
158
+ }
159
+ return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(t) {
160
+ const o = Math.random() * 16 | 0;
161
+ return (t === "x" ? o : o & 3 | 8).toString(16);
162
+ });
163
+ }
164
+ function Wt(t, o = {}, l) {
165
+ try {
166
+ let n = t.toString().trim();
167
+ return n.indexOf("function") < 0 && (n = "function(param){" + n + "}"), new Function(`{return ${n}}`)()(o);
168
+ } catch (n) {
169
+ return console.error("执行自定义数时出错:", n), l;
170
+ }
171
+ }
172
+ function Ye(t) {
173
+ return _(t) ? Ft(t) : "";
174
+ }
175
+ function de(t, ...o) {
176
+ if (!window.hflbasecomp3_debug) return;
177
+ const l = {
178
+ debug: ["%c[DEBUG]", "color: #4CAF50; font-weight: bold"],
179
+ info: ["%c[INFO]", "color: #2196F3; font-weight: bold"],
180
+ warn: ["%c[WARN]", "color: #FF9800; font-weight: bold"],
181
+ error: ["%c[ERROR]", "color: #F44336; font-weight: bold"]
182
+ }, n = l[t] || l.debug;
183
+ switch (t) {
184
+ case "debug":
185
+ console.debug(n[0], n[1], ...o);
186
+ break;
187
+ case "info":
188
+ console.info(n[0], n[1], ...o);
189
+ break;
190
+ case "warn":
191
+ console.warn(n[0], n[1], ...o);
192
+ break;
193
+ case "error":
194
+ console.error(n[0], n[1], ...o);
195
+ break;
196
+ default:
197
+ console.log(n[0], n[1], ...o);
198
+ }
199
+ }
200
+ function zt(t, o = 0) {
201
+ if (typeof t != "number" || isNaN(t))
202
+ return NaN;
203
+ const n = 10 * Math.max(0, Math.floor(Number(o) || 0));
204
+ return Math.round(t * n) / n;
205
+ }
206
+ function Gt(t) {
207
+ return (Math.floor(t) & 1) === 0;
208
+ }
209
+ const Tn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
210
+ __proto__: null,
211
+ consolePrint: de,
212
+ copyToClipboard: Kt,
213
+ deepCopy: qe,
214
+ deepMerge: Ke,
215
+ doMD5: Ye,
216
+ execCustomFunction: Wt,
217
+ formatDate: Je,
218
+ generateSecureUUID: Ge,
219
+ getDate: Ue,
220
+ getJsonObject: Le,
221
+ getValByDefault: Ut,
222
+ getValueByPath: We,
223
+ getWeek: Lt,
224
+ hasOwnPathInObject: ze,
225
+ isArray: F,
226
+ isComputed: He,
227
+ isDate: Ne,
228
+ isEmptyObject: Nt,
229
+ isEven: Gt,
230
+ isFunction: A,
231
+ isNotEmpty: _,
232
+ isNumber: xe,
233
+ isObject: ce,
234
+ isString: be,
235
+ isValid: At,
236
+ keepDecimalCalc: zt,
237
+ pasteFromClipboard: Jt,
238
+ toJsonStr: Ht
239
+ }, Symbol.toStringTag, { value: "Module" })), Yt = ["width", "height", "scale"];
240
+ function $t(t) {
241
+ const o = {};
242
+ return Object.keys(t).filter((l) => !Yt.includes(l)).forEach((l) => {
243
+ 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];
244
+ }), o;
245
+ }
246
+ const $e = ["fontSize", "width", "height", "top", "left", "borderWidth", "letterSpacing", "borderRadius"];
247
+ function Qe(t, o = []) {
248
+ const l = {};
249
+ return Object.keys(t).forEach((n) => {
250
+ o.includes(n) || (n != "rotate" ? t[n] !== "" && (l[n] = t[n], $e.includes(n) && (l[n] += "px")) : l.transform = `${n}(${t[n]}deg)`);
251
+ }), l;
252
+ }
253
+ function Qt(t, o = []) {
254
+ const l = {};
255
+ return [
256
+ "opacity",
257
+ "width",
258
+ "height",
259
+ "top",
260
+ "left",
261
+ "rotate",
262
+ "fontSize",
263
+ "fontWeight",
264
+ "lineHeight",
265
+ "letterSpacing",
266
+ "textAlign",
267
+ "color"
268
+ ].forEach((n) => {
269
+ o.includes(n) || (n != "rotate" ? t[n] !== "" && (l[n] = t[n], $e.includes(n) && (l[n] += "px")) : l.transform = `${n}(${t[n]}deg)`);
270
+ }), l;
271
+ }
272
+ function Y(t, o, l, n, p, a, c) {
273
+ let f = JSON.parse(JSON.stringify(t));
274
+ return f && f.length > 0 && f.forEach((s) => {
275
+ if (s && s.style) {
276
+ if (n != 1) {
277
+ let g = s.style.width;
278
+ if (s.style.wdSet == "calc")
279
+ g = Math.floor(s.style.width * n);
280
+ else if (s.style.wdSet == "overspread") {
281
+ let h = s.style.wdReserve < 0 ? 0 : s.style.wdReserve;
282
+ g = Math.floor(o - h);
283
+ }
284
+ if (s.style.hAffix != "left") if (s.style.hAffix == "right") {
285
+ let h = a - (s.style.left + s.style.width);
286
+ s.style.left = o - h - g;
287
+ } else s.style.hAffix == "center" ? s.style.left = Math.floor(o * 0.5 - g * 0.5) : s.style.left = Math.floor(s.style.left * n);
288
+ s.style.width = g;
289
+ }
290
+ if (p != 1) {
291
+ let g = s.style.height;
292
+ if (s.style.htSet == "calc")
293
+ g = Math.floor(s.style.height * p);
294
+ else if (s.style.htSet == "overspread") {
295
+ let h = s.style.htReserve < 0 ? 0 : s.style.htReserve;
296
+ g = Math.floor(l - h);
297
+ }
298
+ if (s.style.vAffix != "top") if (s.style.vAffix == "bottom") {
299
+ let h = c - (s.style.top + s.style.height);
300
+ s.style.top = l - h - g;
301
+ } else s.style.vAffix == "center" ? s.style.top = Math.floor(l * 0.5 - g * 0.5) : s.style.top = Math.floor(s.style.top * p);
302
+ s.style.height = g;
303
+ }
304
+ }
305
+ }), f;
306
+ }
307
+ function Fn(t, o, l, n) {
308
+ let p = {}, a = [];
309
+ if (!(l && l.screenAdapter && l.screenAdapter != "no-adapter"))
310
+ p = l, a = n;
311
+ else {
312
+ let c = Math.floor(t), f = Math.floor(o), s = Number(l.width), g = Number(l.height), h = 1, y = 1;
313
+ if (l.screenAdapter == "all-screen")
314
+ p = JSON.parse(JSON.stringify(l)), c > s + 10 && (p.width = c, h = Math.floor(1e4 * c / s) / 1e4), f > g + 10 && (p.height = f, y = Math.floor(1e4 * f / g) / 1e4), a = Y(n, c, f, h, y, s, g);
315
+ else if (l.screenAdapter == "original-ratio") {
316
+ p = JSON.parse(JSON.stringify(l));
317
+ let M = Math.floor(1e4 * s / g) / 1e4;
318
+ Math.floor(f * M) > c ? (p.width = c, h = Math.floor(1e4 * c / s) / 1e4, f = Math.floor(c / M), p.height = f, y = Math.floor(1e4 * f / g) / 1e4) : (p.height = f, y = Math.floor(1e4 * f / g) / 1e4, c = Math.floor(f * M), p.width = c, h = Math.floor(1e4 * c / s) / 1e4), a = Y(n, c, f, h, y, s, g);
319
+ } else if (l.screenAdapter == "h-adapter-wh") {
320
+ p = JSON.parse(JSON.stringify(l));
321
+ let M = Math.floor(1e4 * s / g) / 1e4;
322
+ c > s + 10 && (p.width = c, h = Math.floor(1e4 * c / s) / 1e4, f = Math.floor(c / M), p.height = f, y = Math.floor(1e4 * f / g) / 1e4), a = Y(n, c, f, h, y, s, g);
323
+ } else if (l.screenAdapter == "v-adapter-wh") {
324
+ p = JSON.parse(JSON.stringify(l));
325
+ let M = Math.floor(1e4 * s / g) / 1e4;
326
+ f > g + 10 && (p.height = f, y = Math.floor(1e4 * f / g) / 1e4, c = Math.floor(f * M), p.width = c, h = Math.floor(1e4 * c / s) / 1e4), a = Y(n, c, f, h, y, s, g);
327
+ } else l.screenAdapter == "h-adapter" ? (p = JSON.parse(JSON.stringify(l)), c > s + 10 && (p.width = c, h = Math.floor(1e4 * c / s) / 1e4), a = Y(n, c, f, h, y, s, g)) : l.screenAdapter == "v-adapter" ? (p = JSON.parse(JSON.stringify(l)), f > g + 10 && (p.height = f, y = Math.floor(1e4 * f / g) / 1e4), a = Y(n, c, f, h, y, s, g)) : (p = l, a = n);
328
+ }
329
+ return {
330
+ canvasStyleData: p,
331
+ componentData: a
332
+ };
333
+ }
334
+ async function Te(t, o = []) {
335
+ const l = (n) => new Promise((p) => {
336
+ const { animationTime: a, value: c = "", isLoop: f } = n;
337
+ t.style.setProperty("--time", `${a}s`), t.classList.add(c, "animated", Fe(f));
338
+ const s = () => {
339
+ t.removeEventListener("animationend", s), t.removeEventListener("animationcancel", s), t.classList.remove(c, "animated", Fe(f)), t.style.removeProperty("--time"), p();
340
+ };
341
+ t.addEventListener("animationend", s), t.addEventListener("animationcancel", s);
342
+ });
343
+ for (let n = 0, p = o.length; n < p; n++)
344
+ await l(o[n]);
345
+ }
346
+ function Fe(t) {
347
+ return t ? "infinite" : "no-infinite";
348
+ }
349
+ const W = (t, o) => {
350
+ const l = t.__vccOpts || t;
351
+ for (const [n, p] of o)
352
+ l[n] = p;
353
+ return l;
354
+ }, Xt = {
355
+ __name: "ComponentWrapper",
356
+ props: {
357
+ config: {
358
+ type: Object,
359
+ required: !0,
360
+ default: () => {
361
+ }
362
+ }
363
+ },
364
+ setup(t, { expose: o }) {
365
+ const l = t, n = b(() => l.config || {}), p = b(() => !(n.value.style && n.value.style.isHide)), a = oe({}), c = (h, y) => {
366
+ h ? a[`Ve${y}`] = h : delete a[`Ve${y}`];
367
+ }, f = (h) => a[`Ve${h}`], s = () => {
368
+ if (n.value.animations && n.value.animations.length > 0) {
369
+ let h = a[`Ve${n.value.id}`];
370
+ h.$el && Te(h.$el, n.value.animations);
371
+ }
372
+ };
373
+ ae(() => {
374
+ s();
375
+ }), o({
376
+ getComponentRef: f
377
+ });
378
+ const g = { props: l, config: n, isShow: p, componentRefs: a, setComponentRef: c, getComponentRef: f, execAnimation: s, ref: V, computed: b, onMounted: ae, reactive: oe, get getSVGStyle() {
379
+ return Qt;
380
+ }, get getStyle() {
381
+ return Qe;
382
+ }, get runAnimation() {
383
+ return Te;
384
+ } };
385
+ return Object.defineProperty(g, "__isScriptSetup", { enumerable: !1, value: !0 }), g;
386
+ }
387
+ };
388
+ function Zt(t, o, l, n, p, a) {
389
+ return Ct((P(), L("div", { class: "component-wrapper" }, [
390
+ n.config.component.startsWith("SVG") ? (P(), H(se(n.config.component), {
391
+ key: 0,
392
+ ref: (c) => n.setComponentRef(c, n.config.id),
393
+ class: "component",
394
+ style: ie(n.getSVGStyle(n.config.style)),
395
+ "prop-value": n.config.propValue,
396
+ element: n.config,
397
+ designStatus: !1
398
+ }, null, 8, ["style", "prop-value", "element"])) : (P(), H(se(n.config.component), {
399
+ key: 1,
400
+ ref: (c) => n.setComponentRef(c, n.config.id),
401
+ class: "component",
402
+ style: ie(n.getStyle(n.config.style)),
403
+ "prop-value": n.config.propValue,
404
+ element: n.config,
405
+ designStatus: !1
406
+ }, null, 8, ["style", "prop-value", "element"]))
407
+ ], 512)), [
408
+ [Pt, n.isShow]
409
+ ]);
410
+ }
411
+ const en = /* @__PURE__ */ W(Xt, [["render", Zt], ["__scopeId", "data-v-18b2e770"], ["__file", "ComponentWrapper.vue"]]), tn = /* @__PURE__ */ Object.assign({
412
+ name: "VEPage"
413
+ }, {
414
+ __name: "index",
415
+ props: {
416
+ canvasStyle: {
417
+ type: Object,
418
+ required: !0,
419
+ default: () => {
420
+ }
421
+ },
422
+ componentData: {
423
+ type: Array,
424
+ required: !0,
425
+ default: []
426
+ }
427
+ },
428
+ setup(t, { expose: o }) {
429
+ const l = t, n = V({}), p = b(() => l.canvasStyle || {}), a = b(() => l.componentData || []), c = (g, h) => {
430
+ g && (n.value[h] = g);
431
+ }, f = (g, h, y) => {
432
+ if (_(g) && _(h)) {
433
+ const M = "VeP" + g, O = n.value[M];
434
+ if (O) {
435
+ let k;
436
+ F(O) ? k = O[0] : k = O;
437
+ const E = k.getComponentRef(g);
438
+ E ? E?.$options.name === "Group" && y && y.compId ? E.callGroupCompMethod(y.compId, h, y.data) : E[h] && (y ? E[h](y) : E[h]()) : de("warning", "The component is not exist.id:", g);
439
+ }
440
+ }
441
+ };
442
+ Pe("VE-CompMethod", f), o({
443
+ callCompMethod: f
444
+ });
445
+ const s = { props: l, componentRefs: n, canvasStyle: p, componentData: a, setComponentRef: c, callCompMethod: f, ref: V, computed: b, provide: Pe, watch: je, get getCanvasStyle() {
446
+ return $t;
447
+ }, ComponentWrapper: en, get isNotEmpty() {
448
+ return _;
449
+ }, get isArray() {
450
+ return F;
451
+ }, get consolePrint() {
452
+ return de;
453
+ } };
454
+ return Object.defineProperty(s, "__isScriptSetup", { enumerable: !1, value: !0 }), s;
455
+ }
456
+ });
457
+ function nn(t, o, l, n, p, a) {
458
+ return P(), L("div", { class: "canvas-container" }, [
459
+ re("div", {
460
+ class: "canvas",
461
+ style: ie({
462
+ ...n.getCanvasStyle(n.canvasStyle || {}),
463
+ width: n.canvasStyle.width + "px",
464
+ height: n.canvasStyle.height + "px"
465
+ })
466
+ }, [
467
+ (P(!0), L(ve, null, Se(n.componentData, (c, f) => (P(), H(n.ComponentWrapper, {
468
+ key: f,
469
+ config: c,
470
+ ref_for: !0,
471
+ ref: (s) => n.setComponentRef(s, "VeP" + c.id)
472
+ }, null, 8, ["config"]))), 128))
473
+ ], 4)
474
+ ]);
475
+ }
476
+ const on = /* @__PURE__ */ W(tn, [["render", nn], ["__scopeId", "data-v-0ad040a6"], ["__file", "index.vue"]]), rn = Mt({
477
+ name: "ve-comp-svg-icon",
478
+ props: {
479
+ iconClass: {
480
+ type: String,
481
+ required: !0
482
+ },
483
+ className: {
484
+ type: String,
485
+ default: ""
486
+ },
487
+ color: {
488
+ type: String,
489
+ default: ""
490
+ }
491
+ },
492
+ setup(t) {
493
+ return {
494
+ iconName: b(() => `#icon-${t.iconClass}`),
495
+ svgClass: b(() => t.className ? `ve-comp-svg-icon ${t.className}` : "ve-comp-svg-icon")
496
+ };
497
+ }
498
+ });
499
+ function ln(t, o, l, n, p, a) {
500
+ return P(), L("svg", {
501
+ class: Ot(t.svgClass),
502
+ "aria-hidden": "true"
503
+ }, [
504
+ re("use", {
505
+ "xlink:href": t.iconName,
506
+ fill: t.color
507
+ }, null, 8, ["xlink:href", "fill"])
508
+ ], 2);
509
+ }
510
+ const sn = /* @__PURE__ */ W(rn, [["render", ln], ["__file", "index.vue"]]), an = /* @__PURE__ */ Object.assign({
511
+ name: "CompositeIcon"
512
+ }, {
513
+ __name: "index",
514
+ props: {
515
+ iconSize: {
516
+ type: Number,
517
+ default: 20
518
+ },
519
+ icon: {
520
+ type: String,
521
+ required: !0,
522
+ default: ""
523
+ },
524
+ color: {
525
+ type: String,
526
+ default: ""
527
+ }
528
+ },
529
+ setup(t, { expose: o }) {
530
+ o();
531
+ const f = { 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: sn };
532
+ return Object.defineProperty(f, "__isScriptSetup", { enumerable: !1, value: !0 }), f;
533
+ }
534
+ });
535
+ function cn(t, o, l, n, p, a) {
536
+ const c = X("el-icon");
537
+ return P(), H(c, {
538
+ size: n.props.iconSize,
539
+ color: n.props.color
540
+ }, {
541
+ default: N(() => [
542
+ n.isImage(n.props.icon) ? (P(), L("img", {
543
+ key: 0,
544
+ src: n.getImageSrc(n.props.icon)
545
+ }, null, 8, ["src"])) : n.isSvgIcon(n.props.icon) ? (P(), H(n.VeCompSvgIcon, {
546
+ key: 1,
547
+ "icon-class": n.getSvgIconClass(n.props.icon),
548
+ color: n.props.color
549
+ }, null, 8, ["icon-class", "color"])) : (P(), H(se(n.props.icon), { key: 2 }))
550
+ ]),
551
+ _: 1
552
+ }, 8, ["size", "color"]);
553
+ }
554
+ const un = /* @__PURE__ */ W(an, [["render", cn], ["__file", "index.vue"]]);
555
+ let fe = null;
556
+ const me = () => {
557
+ if (!fe) {
558
+ const t = oe({}), o = V([]);
559
+ fe = {
560
+ dialogs: t,
561
+ dialogStack: o,
562
+ openDialog: (c = {}) => {
563
+ const f = c.dialogId || "dialog-" + Ge(), s = o.value.length;
564
+ s >= 1 && (c.appendToBody = !0);
565
+ const g = {
566
+ id: f,
567
+ level: s,
568
+ config: c
569
+ };
570
+ if (t[f] = g, o.value.length >= 1) {
571
+ let h = !1;
572
+ for (let y = 0; y < o.value.length; y++)
573
+ if (f == o.value[y]) {
574
+ h = !0;
575
+ break;
576
+ }
577
+ h || o.value.push(f);
578
+ } else
579
+ o.value.push(f);
580
+ return f;
581
+ },
582
+ closeDialog: (c) => {
583
+ delete t[c], o.value = o.value.filter((f) => f !== c);
584
+ },
585
+ closeAllDialogs: () => {
586
+ Object.keys(t).forEach((c) => {
587
+ delete t[c];
588
+ }), o.value = [];
589
+ },
590
+ getDialogCount: () => o.value.length
591
+ };
592
+ }
593
+ return fe;
594
+ }, fn = /* @__PURE__ */ Object.assign({
595
+ name: "FullScreenDialog"
596
+ }, {
597
+ __name: "FullscreenDialog",
598
+ props: {
599
+ config: {
600
+ type: Object,
601
+ default: {}
602
+ }
603
+ },
604
+ emits: ["confirm", "cancel"],
605
+ setup(t, { expose: o, emit: l }) {
606
+ const n = t, p = l, a = b(() => n.config), c = b(() => a.value.title || "对话框"), f = b(() => !!n.config.showHeader), s = V(a.value.fullscreen), g = V(a.value.width), h = V(!0), y = b(() => {
607
+ let S = a.value.width ?? 800;
608
+ return f.value ? S + 32 : S;
609
+ }), M = b(() => {
610
+ let S = {};
611
+ return S.style = {}, S.style.width = a.value.width ?? 800, S.style.height = a.value.height ?? 600, S.prop = {}, S.prop.subpageId = a.value.pageId, S.containerParam = a.value.pageParam || {}, S;
612
+ }), O = b(() => {
613
+ let S = {};
614
+ return S.modal = a.value.modal, S["show-close"] = a.value.showClose, S.draggable = a.value.draggable, a.value.appendToBody && (S["append-to-body"] = a.value.appendToBody), f.value || (S.class = " no-header-dialog"), S;
615
+ }), k = b(() => {
616
+ let S = {};
617
+ if (a.value.customPosition) {
618
+ let q = a.value.absLeft ?? 100, C = a.value.absTop ?? 100;
619
+ Object.assign(S, {
620
+ position: "fixed",
621
+ left: `${q}px`,
622
+ top: `${C}px`,
623
+ transform: "none",
624
+ margin: "0"
625
+ });
626
+ }
627
+ return a.value.noBackgroundColor && Object.assign(S, {
628
+ backgroundColor: "transparent"
629
+ }), S;
630
+ }), E = () => {
631
+ p("confirm");
632
+ }, G = () => {
633
+ p("cancel"), I();
634
+ }, I = () => {
635
+ h.value = !1;
636
+ }, ee = (S) => {
637
+ p("cancel");
638
+ };
639
+ o({
640
+ close: I
641
+ });
642
+ const D = { props: n, emit: p, config: a, title: c, showTitle: f, isFullscreen: s, previousWidth: g, openDialog: h, dialogWidth: y, element: M, bindAttr: O, customStyle: k, confirmInner: E, cancel: G, close: I, handleClose: ee, ref: V, computed: b, get isNotEmpty() {
643
+ return _;
644
+ } };
645
+ return Object.defineProperty(D, "__isScriptSetup", { enumerable: !1, value: !0 }), D;
646
+ }
647
+ });
648
+ function pn(t, o, l, n, p, a) {
649
+ const c = X("Subpage"), f = X("el-button"), s = X("el-dialog");
650
+ return P(), L("div", { class: "full-screen-dialog-wrapper" }, [
651
+ ne(s, Rt({
652
+ modelValue: n.openDialog,
653
+ "onUpdate:modelValue": o[0] || (o[0] = (g) => n.openDialog = g),
654
+ width: n.dialogWidth,
655
+ fullscreen: n.isFullscreen
656
+ }, n.bindAttr, {
657
+ style: n.customStyle,
658
+ onClose: n.handleClose
659
+ }), kt({
660
+ header: N(() => [
661
+ n.showTitle ? (P(), L("span", { key: 0 }, Vt(n.title), 1)) : Me("", !0)
662
+ ]),
663
+ default: N(() => [
664
+ n.isNotEmpty(n.config.pageId) ? (P(), H(c, {
665
+ key: 0,
666
+ "prop-value": n.element.prop,
667
+ element: n.element
668
+ }, null, 8, ["prop-value", "element"])) : Me("", !0)
669
+ ]),
670
+ _: 2
671
+ }, [
672
+ n.config.showFooter ? {
673
+ name: "footer",
674
+ fn: N(() => [
675
+ re("div", { class: "dialog-footer" }, [
676
+ ne(f, {
677
+ type: "primary",
678
+ onClick: n.confirmInner
679
+ }, {
680
+ default: N(() => [
681
+ Z("确定")
682
+ ]),
683
+ _: 1
684
+ }),
685
+ Z(),
686
+ ne(f, { onClick: n.cancel }, {
687
+ default: N(() => [
688
+ Z("关 闭")
689
+ ]),
690
+ _: 1
691
+ })
692
+ ])
693
+ ]),
694
+ key: "0"
695
+ } : void 0
696
+ ]), 1040, ["modelValue", "width", "fullscreen", "style"])
697
+ ]);
698
+ }
699
+ const dn = /* @__PURE__ */ W(fn, [["render", pn], ["__scopeId", "data-v-fe28b3b7"], ["__file", "FullscreenDialog.vue"]]), mn = /* @__PURE__ */ Object.assign({
700
+ name: "DialogContainer"
701
+ }, {
702
+ __name: "DialogContainer",
703
+ setup(t, { expose: o }) {
704
+ o();
705
+ const { dialogs: l, closeDialog: n } = me(), p = b(() => Object.values(l)), c = { dialogs: l, closeDialog: n, dialogList: p, cancelHandler: (f) => {
706
+ n(f);
707
+ }, get useDialogManager() {
708
+ return me;
709
+ }, computed: b, FullScreenDialog: dn };
710
+ return Object.defineProperty(c, "__isScriptSetup", { enumerable: !1, value: !0 }), c;
711
+ }
712
+ });
713
+ function gn(t, o, l, n, p, a) {
714
+ return P(!0), L(ve, null, Se(n.dialogList, (c) => (P(), H(n.FullScreenDialog, {
715
+ key: c.id,
716
+ config: c.config,
717
+ onCancel: (f) => n.cancelHandler(c.id)
718
+ }, null, 8, ["config", "onCancel"]))), 128);
719
+ }
720
+ const hn = /* @__PURE__ */ W(mn, [["render", gn], ["__file", "DialogContainer.vue"]]), yn = /* @__PURE__ */ Object.assign({
721
+ name: "CommonDialog"
722
+ }, {
723
+ __name: "index",
724
+ props: {
725
+ width: {
726
+ type: Number,
727
+ default: 500
728
+ },
729
+ title: {
730
+ type: String,
731
+ default: "对话框"
732
+ },
733
+ modal: {
734
+ type: Boolean,
735
+ default: !0
736
+ }
737
+ },
738
+ emits: ["confirm"],
739
+ setup(t, { expose: o, emit: l }) {
740
+ const n = V("弹框"), p = V(!1), a = t, c = l;
741
+ let f = null;
742
+ const s = b(() => n.value && _(n.value) ? n.value : a.title), g = () => {
743
+ c("confirm", { callBack: f });
744
+ }, h = () => {
745
+ p.value = !1;
746
+ }, y = (O = {}) => {
747
+ p.value = !0, f = O.callBack, n.value = O.title || "";
748
+ };
749
+ o({
750
+ show: y,
751
+ cancel: h
752
+ });
753
+ const M = { showTitle: n, openDialog: p, props: a, emit: c, get callBack() {
754
+ return f;
755
+ }, set callBack(O) {
756
+ f = O;
757
+ }, title: s, confirmInner: g, cancel: h, show: y, ref: V, computed: b, get isNotEmpty() {
758
+ return _;
759
+ } };
760
+ return Object.defineProperty(M, "__isScriptSetup", { enumerable: !1, value: !0 }), M;
761
+ }
762
+ });
763
+ function _n(t, o, l, n, p, a) {
764
+ const c = X("el-button"), f = X("el-dialog");
765
+ return P(), H(f, {
766
+ title: n.title,
767
+ modelValue: n.openDialog,
768
+ "onUpdate:modelValue": o[0] || (o[0] = (s) => n.openDialog = s),
769
+ width: n.props.width,
770
+ "before-close": n.cancel,
771
+ "destroy-on-close": !0,
772
+ modal: n.props.modal,
773
+ "show-close": !1,
774
+ "align-center": !0,
775
+ draggable: ""
776
+ }, {
777
+ default: N(() => [
778
+ Et(t.$slots, "dialog-content")
779
+ ]),
780
+ footer: N(() => [
781
+ re("div", { class: "dialog-footer" }, [
782
+ ne(c, {
783
+ type: "primary",
784
+ onClick: n.confirmInner
785
+ }, {
786
+ default: N(() => [
787
+ Z("确定")
788
+ ]),
789
+ _: 1
790
+ }),
791
+ Z(),
792
+ ne(c, { onClick: n.cancel }, {
793
+ default: N(() => [
794
+ Z("关 闭")
795
+ ]),
796
+ _: 1
797
+ })
798
+ ])
799
+ ]),
800
+ _: 3
801
+ }, 8, ["title", "modelValue", "width", "modal"]);
802
+ }
803
+ const vn = /* @__PURE__ */ W(yn, [["render", _n], ["__file", "index.vue"]]), ge = It(
804
+ "ve/dataCache",
805
+ {
806
+ state: () => ({
807
+ pageSource: "DB",
808
+ //页面配置数据源 默认是从数据库DB获取 否则从本地文件获取
809
+ containerSymbol: null,
810
+ tdtApiKey: "",
811
+ // 天地图的Api key
812
+ rules: {},
813
+ // 设置规则数据 用作全局使用 由组件加载时使用
814
+ data: {
815
+ undefinedKey: void 0
816
+ }
817
+ // 暂时只考虑扁平结构
818
+ }),
819
+ actions: {
820
+ setData(t, o) {
821
+ this.data[t] = o;
822
+ },
823
+ setPageSource(t = "DB") {
824
+ this.pageSource = t;
825
+ },
826
+ setContainerSymbol(t) {
827
+ this.containerSymbol = t;
828
+ },
829
+ setTdtApiKey(t = "") {
830
+ this.tdtApiKey = t;
831
+ },
832
+ setRuleData(t, o, l = !1) {
833
+ l ? this.rules[t] = o : this.rules[t] || (this.rules[t] = o);
834
+ }
835
+ }
836
+ }
837
+ ), Ie = (t) => {
838
+ const o = /* @__PURE__ */ new Map();
839
+ return new Proxy({}, {
840
+ get(l, n = "undefinedKey") {
841
+ return o.has(n) || o.set(n, b(() => t.data[n] || {})), o.get(n);
842
+ },
843
+ set(l, n, p) {
844
+ return t.setData(n, p), !0;
845
+ }
846
+ });
847
+ };
848
+ function Sn() {
849
+ const t = pe("hflvloader-api");
850
+ if (!t)
851
+ throw new Error("组件注册时未提供API,请检查!");
852
+ return t;
853
+ }
854
+ function he(t, o, l = {}) {
855
+ let n = {
856
+ ...l,
857
+ message: o || "message",
858
+ type: t || "info"
859
+ };
860
+ Dt(n);
861
+ }
862
+ function ye(t, o, l = {}) {
863
+ let n = {
864
+ ...l,
865
+ message: o || "message",
866
+ type: t || "info"
867
+ };
868
+ Bt(n);
869
+ }
870
+ function Xe(t = {}) {
871
+ const o = jt.service(t);
872
+ let l = t.timeout || 3e4;
873
+ return setTimeout(() => {
874
+ o && o.close();
875
+ }, l), o;
876
+ }
877
+ async function Ze(t, o, l = {}) {
878
+ let n = [], p = {};
879
+ try {
880
+ (await Promise.allSettled([Ae.confirm(o, t, l)])).forEach((c, f) => {
881
+ if (c.status === "fulfilled")
882
+ f === 0 && (p = c.value);
883
+ else {
884
+ const s = c.reason;
885
+ n.push(s);
886
+ }
887
+ });
888
+ } catch (a) {
889
+ console.error("showMessageBoxConfirmAsync 异常:", a), n.push(a);
890
+ }
891
+ return { errors: n, resultInfo: p };
892
+ }
893
+ async function et(t, o, l = {}) {
894
+ let n = [], p = {};
895
+ try {
896
+ (await Promise.allSettled([Ae.prompt(o, t, l)])).forEach((c, f) => {
897
+ if (c.status === "fulfilled")
898
+ f === 0 && (p = c.value);
899
+ else {
900
+ const s = c.reason;
901
+ n.push(s);
902
+ }
903
+ });
904
+ } catch (a) {
905
+ console.error("showMessageBoxPromptAsync 异常:", a), n.push(a);
906
+ }
907
+ return { errors: n, resultInfo: p };
908
+ }
909
+ const In = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
910
+ __proto__: null,
911
+ showLoading: Xe,
912
+ showMessage: he,
913
+ showMessageBoxConfirmAsync: Ze,
914
+ showMessageBoxPromptAsync: et,
915
+ showNotification: ye
916
+ }, Symbol.toStringTag, { value: "Module" })), $ = {
917
+ "==": (t, o) => t == o,
918
+ "!=": (t, o) => t != o,
919
+ ">": (t, o) => +t > +o,
920
+ ">=": (t, o) => +t >= +o,
921
+ "<": (t, o) => +t < +o,
922
+ "<=": (t, o) => +t <= +o,
923
+ contain: (t, o) => t != null && String(t).includes(String(o)),
924
+ unContain: (t, o) => t == null || !String(t).includes(String(o)),
925
+ equals: (t, o) => t != null && String(t) == String(o),
926
+ notEquals: (t, o) => t == null || !String(t) == String(o),
927
+ equalsIgnoreCase: (t, o) => t != null && String(t).toLowerCase() == String(o).toLowerCase()
928
+ }, Q = (t) => typeof t == "string" && t.trim() !== "" && !isNaN(t) ? +t : t;
929
+ function De(t = {}, o = !0, l = {}) {
930
+ const n = t, p = o, a = l, c = /* @__PURE__ */ new Map(), f = Sn(), s = ge(), g = pe("VE-ContainerParam"), h = pe("VE-CompMethod"), y = [], { openDialog: M, closeDialog: O } = me();
931
+ let k = null;
932
+ const E = 250, G = (e) => {
933
+ if (g) {
934
+ if (He(g))
935
+ return g.value[e];
936
+ if (ce(g))
937
+ return g[e];
938
+ }
939
+ }, I = (e) => {
940
+ if (e && e.path) {
941
+ let r = e.params || [], i = {};
942
+ r.forEach((u, d) => {
943
+ if (z(u)) {
944
+ let m = B(u);
945
+ i[u.tarKey] = m;
946
+ }
947
+ }), e.namedRouter ? A(a.routerPush) && a.routerPush(e.path, i) : A(a.routerPush2) && a.routerPush2(e.path, i);
948
+ }
949
+ }, ee = (e = []) => {
950
+ let r = [];
951
+ return e.forEach((i) => {
952
+ if (z(i)) {
953
+ let u = B(i);
954
+ r.push([
955
+ i.tarKey,
956
+ u
957
+ ]);
958
+ }
959
+ }), r;
960
+ }, D = (e, r) => {
961
+ if (e.customFunc && _(e.successFunc)) {
962
+ const i = {
963
+ helper: { ...a, ...w }
964
+ };
965
+ try {
966
+ let u = e.successFunc.toString().trim();
967
+ u.indexOf("function") < 0 && (u = `function(res) { ${u} }`), new Function("context", `with(context) {return ${u}}`)(i)(r);
968
+ } catch (u) {
969
+ console.error("[_dataRequestHandler4CustomSuccessFunc]处理自定义成功函数时出错:", u);
970
+ }
971
+ }
972
+ }, S = (e, r, i) => {
973
+ if (e.customFunc && _(e.errorFunc)) {
974
+ const u = {
975
+ helper: { ...a, ...w }
976
+ };
977
+ try {
978
+ let d = e.errorFunc.toString().trim();
979
+ d.indexOf("function") < 0 && (d = "function (res,err){" + d + "}"), new Function("context", `with(context) {return ${d}}`)(u)(r, i);
980
+ } catch (d) {
981
+ console.error("[_dataRequestHandler4CustomErrorFunc]处理自定义失败函数时出错:", d);
982
+ }
983
+ }
984
+ }, q = (e, r) => {
985
+ if (F(r) && r.length > 0) {
986
+ let i, u, d;
987
+ for (let m = 0; m < r.length; m++)
988
+ i = r[m], d = i.dataKey || "data", _(d) && ze(e, d) && (u = We(e, d), _(i.ds) && _(i.tarKey) && st(i, u));
989
+ }
990
+ }, C = async (e) => {
991
+ let r = [], i = {};
992
+ try {
993
+ (await Promise.allSettled([f.rawRequest(e)])).forEach((d, m) => {
994
+ if (d.status === "fulfilled")
995
+ m === 0 && (i = d.value);
996
+ else {
997
+ const v = d.reason;
998
+ r.push(v);
999
+ }
1000
+ });
1001
+ } catch (u) {
1002
+ console.error("_dataRequestHandler4Async 异常:", u), r.push(u);
1003
+ }
1004
+ return { errors: r, resultInfo: i };
1005
+ }, x = (e) => {
1006
+ if (e.method == "GET" || e.method == "get") {
1007
+ let r = e.url;
1008
+ if (/\{#.*?#\}/g.test(r)) {
1009
+ let u = e.data || [], d = /* @__PURE__ */ new Set(), m = !1, v = null;
1010
+ if (r = r.replace(/\{#(.*?)#\}/g, (J, U) => {
1011
+ m = !1, v = null;
1012
+ for (let te = 0; te < u.length; te++)
1013
+ if (U == u[te][0]) {
1014
+ m = !0, v = u[te][1];
1015
+ break;
1016
+ }
1017
+ return m ? (d.add(U), v) : J;
1018
+ }), d.size > 0) {
1019
+ let J = u.filter((U, te) => !d.has(U[0]));
1020
+ e.url = r, e.data = J || [];
1021
+ }
1022
+ }
1023
+ }
1024
+ }, K = async (e) => {
1025
+ if (e && _(e.url)) {
1026
+ let r = e.respParams || [], i = {};
1027
+ i.url = e.url, i.externalRequest = e.external || !1, i.method = e.method || "GET", i.paramType = "object", i.data = ee(e.params), i.headers = e.headers, e.series && (i.series = e.series, i.requestCount = e.requestCount || 0, i.time = e.time || 1e3), x(i);
1028
+ let u = null;
1029
+ if (e.loading) {
1030
+ let d = e.load || {}, m = {
1031
+ ...d.extParam,
1032
+ lock: d.lock,
1033
+ background: d.background,
1034
+ text: d.text
1035
+ };
1036
+ u = Xe(m);
1037
+ }
1038
+ if (e.sync) {
1039
+ i.series = !1;
1040
+ const { errors: d, resultInfo: m } = await C(i);
1041
+ if (u && u.close(), d && d.length > 0) {
1042
+ if (e.enabledRespErrTip) {
1043
+ let v = e.respErrTip || {};
1044
+ R(v);
1045
+ }
1046
+ S(e, m, d[0]);
1047
+ } else if (m)
1048
+ if (i.externalRequest)
1049
+ if (m && m.status == 200) {
1050
+ if (e.enabledRespTip) {
1051
+ let v = e.respTip || {};
1052
+ R(v);
1053
+ }
1054
+ q(m, r), D(e, m);
1055
+ } else {
1056
+ if (e.enabledRespErrTip) {
1057
+ let v = e.respErrTip || {};
1058
+ R(v);
1059
+ }
1060
+ S(e, m, null);
1061
+ }
1062
+ else {
1063
+ if (m) {
1064
+ if (e.enabledRespTip) {
1065
+ let v = e.respTip || {};
1066
+ R(v);
1067
+ }
1068
+ q(m, r);
1069
+ }
1070
+ D(e, m);
1071
+ }
1072
+ } else {
1073
+ let d = f.request(i, function(m) {
1074
+ if (u && u.close(), i.externalRequest)
1075
+ if (m && m.status == 200) {
1076
+ if (e.enabledRespTip) {
1077
+ let v = e.respTip || {};
1078
+ R(v);
1079
+ }
1080
+ q(m, r), D(e, m);
1081
+ } else {
1082
+ if (e.enabledRespErrTip) {
1083
+ let v = e.respErrTip || {};
1084
+ R(v);
1085
+ }
1086
+ S(e, m, null);
1087
+ }
1088
+ else {
1089
+ if (m) {
1090
+ if (e.enabledRespTip) {
1091
+ let v = e.respTip || {};
1092
+ R(v);
1093
+ }
1094
+ q(m, r);
1095
+ }
1096
+ D(e, m);
1097
+ }
1098
+ }, function(m) {
1099
+ if (u && u.close(), e.enabledRespErrTip) {
1100
+ let v = e.respErrTip || {};
1101
+ R(v);
1102
+ }
1103
+ S(e, null, m);
1104
+ });
1105
+ d && y.push(d);
1106
+ }
1107
+ }
1108
+ }, R = (e = {}) => {
1109
+ e.tipType == "msg" ? he(e.type, e.msg, e.extParam) : e.tipType == "notify" && ye(e.type, e.msg, e.extParam);
1110
+ }, tt = (e) => {
1111
+ if (e && F(e.params)) {
1112
+ let r = e.params || [], i = null;
1113
+ for (let u = 0; u < r.length; u++)
1114
+ if (i = r[u], z(i)) {
1115
+ let d = B(i);
1116
+ w.setDataCache(i.tarKey, d);
1117
+ }
1118
+ }
1119
+ }, nt = (e) => {
1120
+ if (e && F(e.params)) {
1121
+ let r = e.params || [], i = null;
1122
+ for (let u = 0; u < r.length; u++)
1123
+ if (i = r[u], _(i.ipn) && _(i.opn) && c.has(i.ipn)) {
1124
+ let d = c.get(i.ipn), m = $.equals(d, i.ipv);
1125
+ if (m)
1126
+ c.set(i.opn, i.opv);
1127
+ else {
1128
+ let v = Q(d), J = Q(i.ipv);
1129
+ m = $["=="](v, J), m && c.set(i.opn, i.opv);
1130
+ }
1131
+ }
1132
+ }
1133
+ }, ot = (e) => {
1134
+ if (e && F(e.params)) {
1135
+ let r = e.params || [], i = null;
1136
+ for (let u = 0; u < r.length; u++)
1137
+ if (i = r[u], z(i)) {
1138
+ let d = B(i);
1139
+ w.setParam(i.tarKey, d);
1140
+ }
1141
+ }
1142
+ }, w = {
1143
+ hasParam: function(e) {
1144
+ return c.has(e);
1145
+ },
1146
+ getParam: function(e) {
1147
+ return c.get(e);
1148
+ },
1149
+ setParam: function(e, r) {
1150
+ c.set(e, r);
1151
+ },
1152
+ getDataCache: function(e) {
1153
+ return s.data[e];
1154
+ },
1155
+ setDataCache: function(e, r) {
1156
+ s.data[e] = r;
1157
+ },
1158
+ getContainerParam: function(e) {
1159
+ return G(e);
1160
+ },
1161
+ setSessionParam: function(e, r) {
1162
+ sessionStorage.setItem(e, r);
1163
+ },
1164
+ getSessionParam: function(e) {
1165
+ return sessionStorage.getItem(e);
1166
+ },
1167
+ setLocalParam: function(e, r) {
1168
+ localStorage.setItem(e, r);
1169
+ },
1170
+ getLocalParam: function(e) {
1171
+ return localStorage.getItem(e);
1172
+ },
1173
+ callCompMethod: function(e, r, i = {}) {
1174
+ A(h) ? h(e, r, i) : console.error("compMethod is not function.");
1175
+ },
1176
+ setJsCookie: function(e, r, i = 30) {
1177
+ ue.set(e, r, { expires: i });
1178
+ },
1179
+ getJsCookie: function(e) {
1180
+ return ue.get(e);
1181
+ },
1182
+ removeJsCookie: function(e) {
1183
+ ue.remove(e);
1184
+ },
1185
+ log: function(e = "log", r) {
1186
+ e == "error" ? console.error(r) : e == "info" ? console.info(r) : e == "warn" ? console.warn(r) : console.log(r);
1187
+ },
1188
+ isNotEmptyStr: function(e) {
1189
+ return _(e);
1190
+ },
1191
+ md5: function(e) {
1192
+ return Ye(e);
1193
+ },
1194
+ getDate: function(e) {
1195
+ return Ue(e);
1196
+ },
1197
+ formatDate: function(e, r = "YYYY-MM-dd") {
1198
+ return Je(e, r);
1199
+ },
1200
+ closeDialog: function(e) {
1201
+ O(e);
1202
+ }
1203
+ }, rt = (e) => {
1204
+ if (e && _(e.funcBody)) {
1205
+ const r = {
1206
+ helper: { ...a, ...w }
1207
+ };
1208
+ try {
1209
+ let i = e.funcBody.toString().trim();
1210
+ i.indexOf("function") < 0 && (i = "function(){" + i + "}"), new Function("context", `with(context) {return ${i}}`)(r)();
1211
+ } catch (i) {
1212
+ console.error("处理自定义函数时出错:", i);
1213
+ }
1214
+ }
1215
+ }, lt = (e) => {
1216
+ if (e && _(e.type)) {
1217
+ if (e.opType == "clear") {
1218
+ let r = e.type;
1219
+ r == "session" ? sessionStorage.clear() : r == "local" && localStorage.clear();
1220
+ } else if (F(e.params) && e.params.length > 0) {
1221
+ let r = e.type, i = e.params || [], u = null;
1222
+ for (let d = 0; d < i.length; d++)
1223
+ if (u = i[d], u.delete)
1224
+ _(u.tarKey) && (r == "session" ? sessionStorage.removeItem(u.tarKey) : r == "local" ? localStorage.removeItem(u.tarKey) : r == "jsCookie" && w.removeJsCookie(u.tarKey));
1225
+ else if (z(u)) {
1226
+ let m = B(u);
1227
+ r == "session" ? sessionStorage.setItem(u.tarKey, m) : r == "local" ? localStorage.setItem(u.tarKey, m) : r == "jsCookie" && w.setJsCookie(u.tarKey, m);
1228
+ }
1229
+ }
1230
+ }
1231
+ }, z = (e) => _(e.ds) && _(e.tarKey) ? e.ds != "inputV" ? _(e.key) : !0 : !1, B = (e) => {
1232
+ if (e.ds == "inputP")
1233
+ return w.getParam(e.key);
1234
+ if (e.ds == "cacheP")
1235
+ return w.getDataCache(e.key);
1236
+ if (e.ds == "containerP")
1237
+ return w.getContainerParam(e.key);
1238
+ if (e.ds == "sessionP")
1239
+ return w.getSessionParam(e.key);
1240
+ if (e.ds == "localP")
1241
+ return w.getLocalParam(e.key);
1242
+ if (e.ds == "jsCookieP")
1243
+ return w.getJsCookie(e.key);
1244
+ if (e.ds == "compProp")
1245
+ return A(a.getPropValue) ? a.getPropValue(e.key) : null;
1246
+ if (e.ds == "compStyle")
1247
+ return A(a.getStyleValue) ? a.getStyleValue(e.key) : null;
1248
+ {
1249
+ let r = e.key;
1250
+ return r.toString().trim().indexOf("#json#") == 0 ? (r = r.toString().trim().replace("#json#", ""), Le(r, {})) : e.key;
1251
+ }
1252
+ }, st = (e, r) => {
1253
+ if (e.ds == "cacheP")
1254
+ return w.setDataCache(e.tarKey, r);
1255
+ if (e.ds == "inputP")
1256
+ return w.setParam(e.tarKey, r);
1257
+ if (e.ds == "sessionP")
1258
+ return w.setSessionParam(e.tarKey, r);
1259
+ if (e.ds == "localP")
1260
+ return w.setLocalParam(e.tarKey, r);
1261
+ e.ds == "jsCookieP" ? w.setJsCookie(e.tarKey, r) : e.ds == "compProp" ? A(a.setPropValue) && a.setPropValue(e.tarKey, r) : e.ds == "compStyle" && A(a.setStyleValue) && a.setStyleValue(e.tarKey, r);
1262
+ }, it = (e) => {
1263
+ if (e) {
1264
+ let r = e.styleSets || [], i = e.propSets || [];
1265
+ F(i) && i.length > 0 && A(a.setPropValue) && i.forEach((u, d) => {
1266
+ if (z(u)) {
1267
+ let m = B(u);
1268
+ a.setPropValue(u.tarKey, m);
1269
+ }
1270
+ }), F(r) && r.length > 0 && A(a.setStyleValue) && r.forEach((u, d) => {
1271
+ if (z(u)) {
1272
+ let m = B(u);
1273
+ a.setStyleValue(u.tarKey, m);
1274
+ }
1275
+ });
1276
+ }
1277
+ }, at = (e) => {
1278
+ let r = !1;
1279
+ if (e && F(e.params)) {
1280
+ let i = e.params || [], u = null, d = !1;
1281
+ for (let m = 0; m < i.length; m++) {
1282
+ u = i[m];
1283
+ let v = B(u), J = u.value;
1284
+ const U = u.opType;
1285
+ if ([">", ">=", "<", "<=", "=="].includes(U) && (v = Q(v), J = Q(J)), $[U] ? d = $[U](v, J) : d = !1, d) {
1286
+ r = !0;
1287
+ break;
1288
+ }
1289
+ }
1290
+ if (e.enabledTip && r) {
1291
+ let m = e.tip || {};
1292
+ m.tipType == "msg" ? he(m.type, m.msg, m.extParam) : m.tipType == "notify" && ye(m.type, m.msg, m.extParam);
1293
+ }
1294
+ }
1295
+ return r;
1296
+ }, we = (e, r) => {
1297
+ if (e.customFunc && _(e.confirmFunc)) {
1298
+ const i = {
1299
+ helper: { ...a, ...w }
1300
+ };
1301
+ try {
1302
+ let u = e.confirmFunc.toString().trim();
1303
+ u.indexOf("function") < 0 && (u = "function (promptValue){" + u + "}"), new Function("context", `with(context) {return ${u}}`)(i)(r);
1304
+ } catch (u) {
1305
+ console.error("[__messageBoxHandler4CustomSuccessFunc]处理自定义失败函数时出错:", u);
1306
+ }
1307
+ }
1308
+ }, ct = (e, r) => {
1309
+ if (e.customFunc && _(e.errorFunc)) {
1310
+ const i = {
1311
+ helper: { ...a, ...w }
1312
+ };
1313
+ try {
1314
+ let u = e.errorFunc.toString().trim();
1315
+ u.indexOf("function") < 0 && (u = "function (err){" + u + "}"), new Function("context", `with(context) {return ${u}}`)(i)(r);
1316
+ } catch (u) {
1317
+ console.error("[__messageBoxHandler4CustomErrorFunc]处理自定义失败函数时出错:", u);
1318
+ }
1319
+ }
1320
+ }, le = (e, r) => {
1321
+ if (e.customFunc) {
1322
+ let i = "";
1323
+ if (r == "cancel" && _(e.cancelFunc))
1324
+ i = e.cancelFunc;
1325
+ else if (r == "close" && _(e.closeFunc))
1326
+ i = e.closeFunc;
1327
+ else
1328
+ return;
1329
+ const u = {
1330
+ helper: { ...a, ...w }
1331
+ };
1332
+ try {
1333
+ let d = i.toString().trim();
1334
+ d.indexOf("function") < 0 && (d = "function (err){" + d + "}"), new Function("context", `with(context) {return ${d}}`)(u)();
1335
+ } catch (d) {
1336
+ console.error("[__messageBoxHandler4CustomCancelOrCloseFunc]处理自定义失败函数时出错:", d);
1337
+ }
1338
+ }
1339
+ }, ut = async (e) => {
1340
+ let r = !1;
1341
+ if (e && _(e.type)) {
1342
+ let i = {
1343
+ ...e.params,
1344
+ type: e.msgType || "info",
1345
+ confirmButtonText: e.confirmText,
1346
+ cancelButtonText: e.cancelText
1347
+ };
1348
+ if (e.type == "confirm") {
1349
+ const { errors: u, resultInfo: d } = await Ze(e.title, e.message, i);
1350
+ u && u.length > 0 ? u[0] == "cancel" ? le(e, "cancel") : u[0] == "close" && le(e, "close") : d == "confirm" && (r = !0, we(e, null));
1351
+ } else if (e.type == "prompt") {
1352
+ if (_(i.inputPattern)) {
1353
+ const m = i.inputPattern.replace(/\\\\/g, "\\");
1354
+ i.inputPattern = new RegExp(m);
1355
+ }
1356
+ const { errors: u, resultInfo: d } = await et(e.title, e.message, i);
1357
+ u && u.length > 0 ? u[0] == "cancel" ? le(e, "cancel") : u[0] == "close" ? le(e, "close") : ct(e, u[0]) : d.action == "confirm" && (r = !0, w.setParam("promptValue", d.value), we(e, d.value));
1358
+ }
1359
+ e.autoBlock || (r = !0);
1360
+ } else
1361
+ r = !0;
1362
+ return r;
1363
+ }, ft = (e) => {
1364
+ if (e && _(e.pageId)) {
1365
+ let r = { ...e };
1366
+ if (e.customPosition) {
1367
+ let i = (w.getParam("elementRectLeft") || 0) + e.leftOffset, u = (w.getParam("elementRectTop") || 0) + e.topOffset;
1368
+ r.absLeft = i, r.absTop = u;
1369
+ }
1370
+ M(r);
1371
+ }
1372
+ }, Ce = async (e = []) => {
1373
+ let r = null;
1374
+ for (let i = 0; i < e.length; i++)
1375
+ if (r = e[i], r.action == "router")
1376
+ I(r.config);
1377
+ else if (r.action == "dataRequest")
1378
+ await K(r.config);
1379
+ else if (r.action == "cacheSet")
1380
+ tt(r.config);
1381
+ else if (r.action == "paramMap")
1382
+ nt(r.config);
1383
+ else if (r.action == "paramSet")
1384
+ ot(r.config);
1385
+ else if (r.action == "customFunction")
1386
+ rt(r.config);
1387
+ else if (r.action == "webStorage")
1388
+ lt(r.config);
1389
+ else if (r.action == "componentSet")
1390
+ it(r.config);
1391
+ else if (r.action == "actionEnd") {
1392
+ if (at(r.config)) {
1393
+ console.log("actionEnd is true. break");
1394
+ break;
1395
+ }
1396
+ } else if (r.action == "messageBox") {
1397
+ if (!await ut(r.config)) {
1398
+ console.log("messageBox is false. break");
1399
+ break;
1400
+ }
1401
+ } else if (r.action == "openDialog") {
1402
+ ft(r.config);
1403
+ break;
1404
+ }
1405
+ }, pt = (e) => {
1406
+ let r = !1, i, u, d = !1;
1407
+ _(e.lType) && (e.lType != "inputV" ? d = _(e.lValue) : d = !0);
1408
+ let m = !1;
1409
+ if (_(e.rType) && (e.rType != "inputV" ? m = _(e.rValue) : m = !0), d && m) {
1410
+ i = B({
1411
+ ds: e.lType,
1412
+ key: e.lValue
1413
+ }), u = B({
1414
+ ds: e.rType,
1415
+ key: e.rValue
1416
+ });
1417
+ const v = e.opType;
1418
+ [">", ">=", "<", "<=", "=="].includes(v) && (i = Q(i), u = Q(u)), $[v] ? r = $[v](i, u) : (r = !1, console.warn("useEventHandler Invalid operator: " + v));
1419
+ } else
1420
+ console.warn("_judgeCondition warn: the condition config is error.");
1421
+ return r;
1422
+ }, dt = (e) => {
1423
+ let r = !1;
1424
+ if (e.default)
1425
+ r = !0;
1426
+ else {
1427
+ let i = e.condition || [];
1428
+ if (i.length > 0) {
1429
+ let u = !0;
1430
+ for (let d = 0; d < i.length; d++)
1431
+ if (!pt(i[d])) {
1432
+ u = !1;
1433
+ break;
1434
+ }
1435
+ u && (r = !0);
1436
+ } else
1437
+ r = !0;
1438
+ }
1439
+ return r;
1440
+ }, j = (e = []) => {
1441
+ for (const r of e)
1442
+ if (r.default) {
1443
+ Ce(r.actionList);
1444
+ break;
1445
+ } else dt(r) && Ce(r.actionList);
1446
+ }, mt = (e) => {
1447
+ p || (k && clearTimeout(k), k = setTimeout(() => {
1448
+ if (n && n.hasOwnProperty("onMouseClick")) {
1449
+ if (e && e.target) {
1450
+ const i = e.target.getBoundingClientRect();
1451
+ T("elementRect", i), T("elementRectLeft", i.left), T("elementRectTop", i.top);
1452
+ }
1453
+ let r = n.onMouseClick;
1454
+ j(r);
1455
+ }
1456
+ }, E));
1457
+ }, gt = (e) => {
1458
+ if (!p && (k && clearTimeout(k), n && n.hasOwnProperty("onMouseDblClick"))) {
1459
+ if (e && e.target) {
1460
+ const i = e.target.getBoundingClientRect();
1461
+ T("elementRect", i), T("elementRectLeft", i.left), T("elementRectTop", i.top);
1462
+ }
1463
+ let r = n.onMouseDblClick;
1464
+ j(r);
1465
+ }
1466
+ }, ht = (e) => {
1467
+ if (!p && n && n.hasOwnProperty("onContextMenu")) {
1468
+ if (e && e.target) {
1469
+ const i = e.target.getBoundingClientRect();
1470
+ T("elementRect", i), T("elementRectLeft", i.left), T("elementRectTop", i.top);
1471
+ }
1472
+ let r = n.onContextMenu;
1473
+ j(r);
1474
+ }
1475
+ }, yt = (e) => {
1476
+ if (!p && (T("selectItem", e), n && n.hasOwnProperty("selectItem"))) {
1477
+ let r = n.selectItem;
1478
+ j(r);
1479
+ }
1480
+ }, _t = (e) => {
1481
+ if (!p && (T("currentValue", e), n && n.hasOwnProperty("changeValue"))) {
1482
+ let r = n.changeValue;
1483
+ j(r);
1484
+ }
1485
+ }, vt = () => {
1486
+ if (!p && n && n.hasOwnProperty("keyEnter")) {
1487
+ let e = n.keyEnter;
1488
+ j(e);
1489
+ }
1490
+ }, St = () => {
1491
+ if (!p && n && n.hasOwnProperty("onBeforeMount")) {
1492
+ let e = n.onBeforeMount;
1493
+ j(e);
1494
+ }
1495
+ }, xt = () => {
1496
+ if (!p && n && n.hasOwnProperty("onMounted")) {
1497
+ let e = n.onMounted;
1498
+ j(e);
1499
+ }
1500
+ }, bt = () => {
1501
+ if (!p) {
1502
+ if (y && y.length > 0)
1503
+ for (let e = 0; e < y.length; e++)
1504
+ try {
1505
+ y[e] && y[e]();
1506
+ } catch (r) {
1507
+ console.error("cancel request error", r);
1508
+ }
1509
+ if (n && n.hasOwnProperty("onBeforeUnmount")) {
1510
+ let e = n.onBeforeUnmount;
1511
+ j(e);
1512
+ }
1513
+ }
1514
+ }, wt = () => {
1515
+ if (!p && n && n.hasOwnProperty("onUnmounted")) {
1516
+ let e = n.onUnmounted;
1517
+ j(e);
1518
+ }
1519
+ }, T = (e, r) => {
1520
+ w.setParam(e, r);
1521
+ };
1522
+ return {
1523
+ handleClick: mt,
1524
+ handleDblClick: gt,
1525
+ handleContextMenu: ht,
1526
+ selectItem: yt,
1527
+ changeValue: _t,
1528
+ beforeMount: St,
1529
+ mounted: xt,
1530
+ beforeUnmount: bt,
1531
+ unmounted: wt,
1532
+ setParam: T,
1533
+ keyEnter: vt
1534
+ };
1535
+ }
1536
+ function Be(t, o, l, n) {
1537
+ return {
1538
+ setPropValue: function(a, c) {
1539
+ t.value[a] = c;
1540
+ },
1541
+ getPropValue: function(a) {
1542
+ return t.value[a];
1543
+ },
1544
+ setStyleValue: function(a, c) {
1545
+ o.value.style[a] = c;
1546
+ },
1547
+ getStyleValue: function(a) {
1548
+ return o.value.style[a];
1549
+ },
1550
+ routerPush: function(a, c) {
1551
+ l && l.push({
1552
+ name: a,
1553
+ params: c
1554
+ });
1555
+ },
1556
+ routerPush2: function(a, c) {
1557
+ l && l.push({
1558
+ path: a,
1559
+ query: c
1560
+ });
1561
+ },
1562
+ routerReplace: function(a) {
1563
+ l && l.replace({
1564
+ path: a
1565
+ });
1566
+ }
1567
+ };
1568
+ }
1569
+ const xn = /* @__PURE__ */ Object.assign({
1570
+ name: "Group"
1571
+ }, {
1572
+ __name: "Component",
1573
+ props: {
1574
+ propValue: {
1575
+ type: Object,
1576
+ required: !0,
1577
+ default: () => {
1578
+ }
1579
+ },
1580
+ element: {
1581
+ type: Object,
1582
+ default: () => {
1583
+ }
1584
+ },
1585
+ designStatus: {
1586
+ type: Boolean,
1587
+ default: !1
1588
+ }
1589
+ },
1590
+ setup(t, { expose: o }) {
1591
+ const l = t, n = ge(), p = Ie(n), a = V(null), c = b(() => l.propValue || {}), f = b(() => l.element || {}), s = b(() => c.value.components || []), g = b(() => s.value.map((C) => {
1592
+ let x = { ...C }, K = G(C.groupStyle);
1593
+ return x.computedStyle = K, x.style && (x.style.width = x.computedStyle.width, x.style.height = x.computedStyle.height), x;
1594
+ })), h = b(() => f.value.events || []), y = Ve(), M = Ee(), O = Be(c, f, y);
1595
+ Oe(() => {
1596
+ a.value = De(h.value, l.designStatus, O), a.value?.beforeMount();
1597
+ }), ae(() => {
1598
+ a.value?.mounted();
1599
+ }), Re(() => {
1600
+ a.value?.beforeUnmount();
1601
+ }), ke(() => {
1602
+ a.value?.unmounted();
1603
+ });
1604
+ const k = (C) => {
1605
+ a.value?.setParam(C);
1606
+ }, E = (C) => {
1607
+ a.value?.handleDblClick(C);
1608
+ }, G = (C) => {
1609
+ if (!C || !f.value?.style) return {};
1610
+ let x = { ...C }, K = f.value.style.width, R = f.value.style.height;
1611
+ return x.width = Math.floor(parseFloat(x.width) / 100 * K), x.height = Math.floor(parseFloat(x.height) / 100 * R), x.top = Math.floor(parseFloat(x.top) / 100 * R), x.left = Math.floor(parseFloat(x.left) / 100 * K), x;
1612
+ }, I = oe({}), ee = (C, x) => {
1613
+ C ? I[`Ve${x}`] = C : delete I[`Ve${x}`];
1614
+ }, D = (C) => I[`Ve${C}`], S = (C, x, K) => {
1615
+ if (_(C) && _(x)) {
1616
+ const R = D(C);
1617
+ R && R[x] && (K ? R[x](K) : R[x]());
1618
+ }
1619
+ };
1620
+ o({
1621
+ callGroupCompMethod: S
1622
+ });
1623
+ const q = { props: l, dataCache: n, smartData: p, eventHandler: a, propValue: c, element: f, components: s, computedComponents: g, events: h, router: y, route: M, compContext: O, handleClick: k, handleDblClick: E, calcCompStyle: G, componentRefs: I, setComponentRef: ee, getComponentRef: D, callGroupCompMethod: S, get useDataCacheStore() {
1624
+ return ge;
1625
+ }, get createSmartAccessor() {
1626
+ return Ie;
1627
+ }, ref: V, computed: b, onMounted: ae, onBeforeMount: Oe, onBeforeUnmount: Re, onUnmounted: ke, watch: je, reactive: oe, get useEventHandler() {
1628
+ return De;
1629
+ }, get useRoute() {
1630
+ return Ee;
1631
+ }, get useRouter() {
1632
+ return Ve;
1633
+ }, get CreateCompContext() {
1634
+ return Be;
1635
+ }, get getStyle() {
1636
+ return Qe;
1637
+ }, get isNotEmpty() {
1638
+ return _;
1639
+ } };
1640
+ return Object.defineProperty(q, "__isScriptSetup", { enumerable: !1, value: !0 }), q;
1641
+ }
1642
+ });
1643
+ function bn(t, o, l, n, p, a) {
1644
+ return P(), L("div", { class: "group" }, [
1645
+ re("div", null, [
1646
+ (P(!0), L(ve, null, Se(n.computedComponents, (c) => (P(), H(se(c.component), {
1647
+ id: "component" + c.id,
1648
+ ref_for: !0,
1649
+ ref: (f) => n.setComponentRef(f, c.id),
1650
+ key: c.id,
1651
+ class: "component",
1652
+ style: ie(n.getStyle(c.computedStyle)),
1653
+ "prop-value": c.propValue,
1654
+ element: c
1655
+ }, null, 8, ["id", "style", "prop-value", "element"]))), 128))
1656
+ ])
1657
+ ]);
1658
+ }
1659
+ const wn = /* @__PURE__ */ W(xn, [["render", bn], ["__scopeId", "data-v-20de9881"], ["__file", "Component.vue"]]), Cn = [
1660
+ on,
1661
+ un,
1662
+ hn,
1663
+ vn,
1664
+ wn
1665
+ ], _e = (t, o) => {
1666
+ _e.installed || (_e.installed = !0, t.provide("hflvloader-api", o), Cn.forEach((l) => {
1667
+ t.component(l.name, l);
1668
+ }));
1669
+ }, Dn = {
1670
+ install: _e
1671
+ };
1672
+ export {
1673
+ Tn as CommonUtils,
1674
+ Be as CreateCompContext,
1675
+ In as MessageUtils,
1676
+ Ie as createSmartAccessor,
1677
+ Dn as default,
1678
+ Fn as reCalcCanvasSize,
1679
+ ge as useDataCacheStore,
1680
+ De as useEventHandler
1681
+ };