template-designer 0.1.7 → 0.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -0
- package/dist/style.css +1 -1
- package/dist/template-designer.es.js +930 -912
- package/dist/template-designer.umd.js +20 -20
- package/package.json +1 -1
|
@@ -1,83 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
var Ad = /* @__PURE__ */ te({
|
|
4
|
-
name: "CircleCloseFilled",
|
|
5
|
-
__name: "circle-close-filled",
|
|
6
|
-
setup(e) {
|
|
7
|
-
return (A, t) => (V(), N("svg", {
|
|
8
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
9
|
-
viewBox: "0 0 1024 1024"
|
|
10
|
-
}, [
|
|
11
|
-
m("path", {
|
|
12
|
-
fill: "currentColor",
|
|
13
|
-
d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"
|
|
14
|
-
})
|
|
15
|
-
]));
|
|
16
|
-
}
|
|
17
|
-
}), ps = Ad, ed = /* @__PURE__ */ te({
|
|
18
|
-
name: "Close",
|
|
19
|
-
__name: "close",
|
|
20
|
-
setup(e) {
|
|
21
|
-
return (A, t) => (V(), N("svg", {
|
|
22
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
23
|
-
viewBox: "0 0 1024 1024"
|
|
24
|
-
}, [
|
|
25
|
-
m("path", {
|
|
26
|
-
fill: "currentColor",
|
|
27
|
-
d: "M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"
|
|
28
|
-
})
|
|
29
|
-
]));
|
|
30
|
-
}
|
|
31
|
-
}), td = ed, rd = /* @__PURE__ */ te({
|
|
32
|
-
name: "InfoFilled",
|
|
33
|
-
__name: "info-filled",
|
|
34
|
-
setup(e) {
|
|
35
|
-
return (A, t) => (V(), N("svg", {
|
|
36
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
37
|
-
viewBox: "0 0 1024 1024"
|
|
38
|
-
}, [
|
|
39
|
-
m("path", {
|
|
40
|
-
fill: "currentColor",
|
|
41
|
-
d: "M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.99 12.99 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"
|
|
42
|
-
})
|
|
43
|
-
]));
|
|
44
|
-
}
|
|
45
|
-
}), La = rd, nd = /* @__PURE__ */ te({
|
|
46
|
-
name: "SuccessFilled",
|
|
47
|
-
__name: "success-filled",
|
|
48
|
-
setup(e) {
|
|
49
|
-
return (A, t) => (V(), N("svg", {
|
|
50
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
51
|
-
viewBox: "0 0 1024 1024"
|
|
52
|
-
}, [
|
|
53
|
-
m("path", {
|
|
54
|
-
fill: "currentColor",
|
|
55
|
-
d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.27 38.27 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"
|
|
56
|
-
})
|
|
57
|
-
]));
|
|
58
|
-
}
|
|
59
|
-
}), Qs = nd, ad = /* @__PURE__ */ te({
|
|
60
|
-
name: "WarningFilled",
|
|
61
|
-
__name: "warning-filled",
|
|
62
|
-
setup(e) {
|
|
63
|
-
return (A, t) => (V(), N("svg", {
|
|
64
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
65
|
-
viewBox: "0 0 1024 1024"
|
|
66
|
-
}, [
|
|
67
|
-
m("path", {
|
|
68
|
-
fill: "currentColor",
|
|
69
|
-
d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.43 58.43 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.43 58.43 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"
|
|
70
|
-
})
|
|
71
|
-
]));
|
|
72
|
-
}
|
|
73
|
-
}), ws = ad;
|
|
74
|
-
const od = (e, A) => {
|
|
1
|
+
import { computed as b, ref as Z, watch as FA, openBlock as V, createElementBlock as N, normalizeStyle as AA, createElementVNode as m, toDisplayString as fe, createCommentVNode as tA, getCurrentInstance as Ze, inject as Xe, unref as I, getCurrentScope as Wu, onScopeDispose as Du, readonly as Ju, onMounted as Oe, nextTick as de, isRef as Ku, warn as Lu, provide as fs, defineComponent as te, mergeProps as Gu, renderSlot as sr, normalizeClass as _A, createVNode as W, Transition as hs, withCtx as j, withDirectives as GA, createTextVNode as Fe, vShow as gs, shallowReactive as Yu, createBlock as vA, resolveDynamicComponent as cr, Fragment as VA, withModifiers as xA, isVNode as Us, render as yi, onUnmounted as zu, resolveComponent as QA, renderList as Me, vModelSelect as ju, vModelText as Ye, vModelCheckbox as Xu, vModelDynamic as Pu, toRefs as _u, onBeforeUnmount as Ur, reactive as Ri, resolveDirective as qu, h as $u } from "vue";
|
|
2
|
+
const Ad = (e, A) => {
|
|
75
3
|
const t = e[A];
|
|
76
4
|
return t ? typeof t == "function" ? t() : Promise.resolve(t) : new Promise((r, n) => {
|
|
77
5
|
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(n.bind(null, new Error("Unknown variable dynamic import: " + A)));
|
|
78
6
|
});
|
|
79
7
|
};
|
|
80
|
-
const
|
|
8
|
+
const ed = {
|
|
81
9
|
__name: "TextComponent",
|
|
82
10
|
props: {
|
|
83
11
|
modelValue: {
|
|
@@ -91,7 +19,7 @@ const id = {
|
|
|
91
19
|
}
|
|
92
20
|
},
|
|
93
21
|
setup(e) {
|
|
94
|
-
const A = e, t = b(() => A.modelValue.Title ? `${A.modelValue.Title}${A.modelValue.Text}` : A.modelValue.Text), r =
|
|
22
|
+
const A = e, t = b(() => A.modelValue.Title ? `${A.modelValue.Title}${A.modelValue.Text}` : A.modelValue.Text), r = Z({}), n = b(() => A.modelValue.__selected || !1), a = b(() => ({
|
|
95
23
|
position: "absolute",
|
|
96
24
|
left: "-2px",
|
|
97
25
|
top: "-2px",
|
|
@@ -109,46 +37,46 @@ const id = {
|
|
|
109
37
|
alignItems: "center",
|
|
110
38
|
overflow: "hidden",
|
|
111
39
|
boxSizing: "border-box"
|
|
112
|
-
})), i =
|
|
113
|
-
var f, B, g,
|
|
40
|
+
})), i = Z(/* @__PURE__ */ new Map()), l = (d) => {
|
|
41
|
+
var f, B, g, h, p, Q;
|
|
114
42
|
if (i.value.has(d))
|
|
115
43
|
return i.value.get(d);
|
|
116
|
-
const
|
|
117
|
-
return i.value.set(d,
|
|
44
|
+
const U = ((Q = (p = (h = (g = (B = (f = A.propsConfig) == null ? void 0 : f.text) == null ? void 0 : B.propertyPanel) == null ? void 0 : g.find((C) => C.prop == "FontName")) == null ? void 0 : h.options) == null ? void 0 : p.find((C) => C.value == d)) == null ? void 0 : Q.cssValue) || d;
|
|
45
|
+
return i.value.set(d, U), U;
|
|
118
46
|
}, s = {
|
|
119
47
|
1: "left",
|
|
120
48
|
2: "center",
|
|
121
49
|
3: "right"
|
|
122
50
|
}, c = b(() => {
|
|
123
|
-
const d = A.modelValue.TextWrap ?? r.value.TextWrap ?? 1,
|
|
124
|
-
fontSize:
|
|
51
|
+
const d = A.modelValue.TextWrap ?? r.value.TextWrap ?? 1, U = A.modelValue.FontSize ?? r.value.FontSize, f = A.modelValue.FontName || r.value.FontName, B = A.modelValue.Bold || r.value.Bold, g = A.modelValue.Italic || r.value.Italic, h = A.modelValue.FontColor || r.value.FontColor, p = A.modelValue.Alignment || r.value.Alignment || 2, Q = {
|
|
52
|
+
fontSize: U + "px",
|
|
125
53
|
fontFamily: l(f),
|
|
126
54
|
fontWeight: B ? "bold" : "normal",
|
|
127
55
|
fontStyle: g ? "italic" : "normal",
|
|
128
|
-
color:
|
|
56
|
+
color: h,
|
|
129
57
|
width: "100%",
|
|
130
58
|
minWidth: 0,
|
|
131
59
|
boxSizing: "border-box",
|
|
132
|
-
textAlign: s[
|
|
60
|
+
textAlign: s[p]
|
|
133
61
|
};
|
|
134
62
|
switch (d) {
|
|
135
63
|
case 1:
|
|
136
|
-
|
|
64
|
+
Q.whiteSpace = "pre-wrap", Q.overflow = "visible", Q.textOverflow = "unset";
|
|
137
65
|
break;
|
|
138
66
|
case 2:
|
|
139
|
-
|
|
67
|
+
Q.whiteSpace = "nowrap", Q.overflow = "hidden", Q.textOverflow = "ellipsis";
|
|
140
68
|
break;
|
|
141
69
|
case 3:
|
|
142
|
-
|
|
70
|
+
Q.whiteSpace = "nowrap", Q.overflow = "hidden", Q.textOverflow = "clip";
|
|
143
71
|
break;
|
|
144
72
|
}
|
|
145
|
-
return
|
|
73
|
+
return Q;
|
|
146
74
|
}), u = () => {
|
|
147
|
-
var
|
|
148
|
-
const d = at((f = (
|
|
75
|
+
var U, f;
|
|
76
|
+
const d = at((f = (U = A.propsConfig) == null ? void 0 : U.text) == null ? void 0 : f.propertyPanel) || {};
|
|
149
77
|
r.value = d, i.value.clear();
|
|
150
78
|
};
|
|
151
|
-
return FA(() => A.propsConfig, () => u(), { deep: !0, immediate: !0 }), (d,
|
|
79
|
+
return FA(() => A.propsConfig, () => u(), { deep: !0, immediate: !0 }), (d, U) => (V(), N("div", {
|
|
152
80
|
class: "td-text-component",
|
|
153
81
|
style: AA(o.value)
|
|
154
82
|
}, [
|
|
@@ -163,14 +91,14 @@ const id = {
|
|
|
163
91
|
}, null, 4)) : tA("", !0)
|
|
164
92
|
], 4));
|
|
165
93
|
}
|
|
166
|
-
},
|
|
94
|
+
}, ps = Symbol(), cn = "el", td = "is-", Le = (e, A, t, r, n) => {
|
|
167
95
|
let a = `${e}-${A}`;
|
|
168
96
|
return t && (a += `-${t}`), r && (a += `__${r}`), n && (a += `--${n}`), a;
|
|
169
|
-
},
|
|
170
|
-
const A = e || (Ze() ? Xe(
|
|
97
|
+
}, Qs = Symbol("namespaceContextKey"), rd = (e) => {
|
|
98
|
+
const A = e || (Ze() ? Xe(Qs, Z(cn)) : Z(cn));
|
|
171
99
|
return b(() => I(A) || cn);
|
|
172
100
|
}, Eo = (e, A) => {
|
|
173
|
-
const t =
|
|
101
|
+
const t = rd(A);
|
|
174
102
|
return {
|
|
175
103
|
namespace: t,
|
|
176
104
|
b: (B = "") => Le(t.value, e, B, "", ""),
|
|
@@ -179,22 +107,22 @@ const id = {
|
|
|
179
107
|
be: (B, g) => B && g ? Le(t.value, e, B, g, "") : "",
|
|
180
108
|
em: (B, g) => B && g ? Le(t.value, e, "", B, g) : "",
|
|
181
109
|
bm: (B, g) => B && g ? Le(t.value, e, B, "", g) : "",
|
|
182
|
-
bem: (B, g,
|
|
110
|
+
bem: (B, g, h) => B && g && h ? Le(t.value, e, B, g, h) : "",
|
|
183
111
|
is: (B, ...g) => {
|
|
184
|
-
const
|
|
185
|
-
return B &&
|
|
112
|
+
const h = g.length >= 1 ? g[0] : !0;
|
|
113
|
+
return B && h ? `${td}${B}` : "";
|
|
186
114
|
},
|
|
187
115
|
cssVar: (B) => {
|
|
188
116
|
const g = {};
|
|
189
|
-
for (const
|
|
190
|
-
B[
|
|
117
|
+
for (const h in B)
|
|
118
|
+
B[h] && (g[`--${t.value}-${h}`] = B[h]);
|
|
191
119
|
return g;
|
|
192
120
|
},
|
|
193
121
|
cssVarName: (B) => `--${t.value}-${B}`,
|
|
194
122
|
cssVarBlock: (B) => {
|
|
195
123
|
const g = {};
|
|
196
|
-
for (const
|
|
197
|
-
B[
|
|
124
|
+
for (const h in B)
|
|
125
|
+
B[h] && (g[`--${t.value}-${e}-${h}`] = B[h]);
|
|
198
126
|
return g;
|
|
199
127
|
},
|
|
200
128
|
cssVarBlockName: (B) => `--${t.value}-${e}-${B}`
|
|
@@ -207,82 +135,82 @@ const id = {
|
|
|
207
135
|
**/
|
|
208
136
|
process.env.NODE_ENV !== "production" && Object.freeze({});
|
|
209
137
|
process.env.NODE_ENV !== "production" && Object.freeze([]);
|
|
210
|
-
const
|
|
211
|
-
var
|
|
212
|
-
const
|
|
213
|
-
var
|
|
214
|
-
const mo =
|
|
215
|
-
var
|
|
216
|
-
const Et =
|
|
217
|
-
var
|
|
218
|
-
function
|
|
219
|
-
var A =
|
|
138
|
+
const nd = Object.prototype.hasOwnProperty, Vi = (e, A) => nd.call(e, A), hn = (e) => typeof e == "function", gn = (e) => typeof e == "string", ws = (e) => e !== null && typeof e == "object";
|
|
139
|
+
var ad = typeof global == "object" && global && global.Object === Object && global;
|
|
140
|
+
const od = ad;
|
|
141
|
+
var id = typeof self == "object" && self && self.Object === Object && self, ld = od || id || Function("return this")();
|
|
142
|
+
const mo = ld;
|
|
143
|
+
var sd = mo.Symbol;
|
|
144
|
+
const Et = sd;
|
|
145
|
+
var Fs = Object.prototype, cd = Fs.hasOwnProperty, ud = Fs.toString, Dt = Et ? Et.toStringTag : void 0;
|
|
146
|
+
function dd(e) {
|
|
147
|
+
var A = cd.call(e, Dt), t = e[Dt];
|
|
220
148
|
try {
|
|
221
149
|
e[Dt] = void 0;
|
|
222
150
|
var r = !0;
|
|
223
151
|
} catch {
|
|
224
152
|
}
|
|
225
|
-
var n =
|
|
153
|
+
var n = ud.call(e);
|
|
226
154
|
return r && (A ? e[Dt] = t : delete e[Dt]), n;
|
|
227
155
|
}
|
|
228
|
-
var
|
|
229
|
-
function
|
|
230
|
-
return
|
|
156
|
+
var Bd = Object.prototype, fd = Bd.toString;
|
|
157
|
+
function hd(e) {
|
|
158
|
+
return fd.call(e);
|
|
231
159
|
}
|
|
232
|
-
var
|
|
233
|
-
function
|
|
234
|
-
return e == null ? e === void 0 ?
|
|
160
|
+
var gd = "[object Null]", Ud = "[object Undefined]", Ti = Et ? Et.toStringTag : void 0;
|
|
161
|
+
function Cs(e) {
|
|
162
|
+
return e == null ? e === void 0 ? Ud : gd : Ti && Ti in Object(e) ? dd(e) : hd(e);
|
|
235
163
|
}
|
|
236
|
-
function
|
|
164
|
+
function pd(e) {
|
|
237
165
|
return e != null && typeof e == "object";
|
|
238
166
|
}
|
|
239
|
-
var
|
|
167
|
+
var Qd = "[object Symbol]";
|
|
240
168
|
function vo(e) {
|
|
241
|
-
return typeof e == "symbol" ||
|
|
169
|
+
return typeof e == "symbol" || pd(e) && Cs(e) == Qd;
|
|
242
170
|
}
|
|
243
|
-
function
|
|
171
|
+
function wd(e, A) {
|
|
244
172
|
for (var t = -1, r = e == null ? 0 : e.length, n = Array(r); ++t < r; )
|
|
245
173
|
n[t] = A(e[t], t, e);
|
|
246
174
|
return n;
|
|
247
175
|
}
|
|
248
|
-
var
|
|
249
|
-
const yo =
|
|
250
|
-
var
|
|
251
|
-
function
|
|
176
|
+
var Fd = Array.isArray;
|
|
177
|
+
const yo = Fd;
|
|
178
|
+
var Cd = 1 / 0, Ii = Et ? Et.prototype : void 0, Ni = Ii ? Ii.toString : void 0;
|
|
179
|
+
function Es(e) {
|
|
252
180
|
if (typeof e == "string")
|
|
253
181
|
return e;
|
|
254
182
|
if (yo(e))
|
|
255
|
-
return
|
|
183
|
+
return wd(e, Es) + "";
|
|
256
184
|
if (vo(e))
|
|
257
185
|
return Ni ? Ni.call(e) : "";
|
|
258
186
|
var A = e + "";
|
|
259
|
-
return A == "0" && 1 / e == -
|
|
187
|
+
return A == "0" && 1 / e == -Cd ? "-0" : A;
|
|
260
188
|
}
|
|
261
|
-
function
|
|
189
|
+
function ms(e) {
|
|
262
190
|
var A = typeof e;
|
|
263
191
|
return e != null && (A == "object" || A == "function");
|
|
264
192
|
}
|
|
265
|
-
var
|
|
266
|
-
function
|
|
267
|
-
if (!
|
|
193
|
+
var Ed = "[object AsyncFunction]", md = "[object Function]", vd = "[object GeneratorFunction]", yd = "[object Proxy]";
|
|
194
|
+
function Rd(e) {
|
|
195
|
+
if (!ms(e))
|
|
268
196
|
return !1;
|
|
269
|
-
var A =
|
|
270
|
-
return A ==
|
|
197
|
+
var A = Cs(e);
|
|
198
|
+
return A == md || A == vd || A == Ed || A == yd;
|
|
271
199
|
}
|
|
272
|
-
var
|
|
273
|
-
const la =
|
|
200
|
+
var Vd = mo["__core-js_shared__"];
|
|
201
|
+
const la = Vd;
|
|
274
202
|
var Si = function() {
|
|
275
203
|
var e = /[^.]+$/.exec(la && la.keys && la.keys.IE_PROTO || "");
|
|
276
204
|
return e ? "Symbol(src)_1." + e : "";
|
|
277
205
|
}();
|
|
278
|
-
function
|
|
206
|
+
function Td(e) {
|
|
279
207
|
return !!Si && Si in e;
|
|
280
208
|
}
|
|
281
|
-
var
|
|
282
|
-
function
|
|
209
|
+
var Id = Function.prototype, Nd = Id.toString;
|
|
210
|
+
function Sd(e) {
|
|
283
211
|
if (e != null) {
|
|
284
212
|
try {
|
|
285
|
-
return
|
|
213
|
+
return Nd.call(e);
|
|
286
214
|
} catch {
|
|
287
215
|
}
|
|
288
216
|
try {
|
|
@@ -292,59 +220,59 @@ function kd(e) {
|
|
|
292
220
|
}
|
|
293
221
|
return "";
|
|
294
222
|
}
|
|
295
|
-
var
|
|
296
|
-
"^" +
|
|
223
|
+
var Md = /[\\^$.*+?()[\]{}|]/g, bd = /^\[object .+?Constructor\]$/, Hd = Function.prototype, xd = Object.prototype, Zd = Hd.toString, kd = xd.hasOwnProperty, Od = RegExp(
|
|
224
|
+
"^" + Zd.call(kd).replace(Md, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
297
225
|
);
|
|
298
|
-
function
|
|
299
|
-
if (!
|
|
226
|
+
function Wd(e) {
|
|
227
|
+
if (!ms(e) || Td(e))
|
|
300
228
|
return !1;
|
|
301
|
-
var A =
|
|
302
|
-
return A.test(
|
|
229
|
+
var A = Rd(e) ? Od : bd;
|
|
230
|
+
return A.test(Sd(e));
|
|
303
231
|
}
|
|
304
|
-
function
|
|
232
|
+
function Dd(e, A) {
|
|
305
233
|
return e == null ? void 0 : e[A];
|
|
306
234
|
}
|
|
307
|
-
function
|
|
308
|
-
var t =
|
|
309
|
-
return
|
|
235
|
+
function vs(e, A) {
|
|
236
|
+
var t = Dd(e, A);
|
|
237
|
+
return Wd(t) ? t : void 0;
|
|
310
238
|
}
|
|
311
|
-
function
|
|
239
|
+
function Jd(e, A) {
|
|
312
240
|
return e === A || e !== e && A !== A;
|
|
313
241
|
}
|
|
314
|
-
var
|
|
315
|
-
function
|
|
242
|
+
var Kd = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Ld = /^\w*$/;
|
|
243
|
+
function Gd(e, A) {
|
|
316
244
|
if (yo(e))
|
|
317
245
|
return !1;
|
|
318
246
|
var t = typeof e;
|
|
319
|
-
return t == "number" || t == "symbol" || t == "boolean" || e == null || vo(e) ? !0 :
|
|
247
|
+
return t == "number" || t == "symbol" || t == "boolean" || e == null || vo(e) ? !0 : Ld.test(e) || !Kd.test(e) || A != null && e in Object(A);
|
|
320
248
|
}
|
|
321
|
-
var
|
|
322
|
-
const ur =
|
|
323
|
-
function
|
|
249
|
+
var Yd = vs(Object, "create");
|
|
250
|
+
const ur = Yd;
|
|
251
|
+
function zd() {
|
|
324
252
|
this.__data__ = ur ? ur(null) : {}, this.size = 0;
|
|
325
253
|
}
|
|
326
|
-
function
|
|
254
|
+
function jd(e) {
|
|
327
255
|
var A = this.has(e) && delete this.__data__[e];
|
|
328
256
|
return this.size -= A ? 1 : 0, A;
|
|
329
257
|
}
|
|
330
|
-
var
|
|
331
|
-
function
|
|
258
|
+
var Xd = "__lodash_hash_undefined__", Pd = Object.prototype, _d = Pd.hasOwnProperty;
|
|
259
|
+
function qd(e) {
|
|
332
260
|
var A = this.__data__;
|
|
333
261
|
if (ur) {
|
|
334
262
|
var t = A[e];
|
|
335
|
-
return t ===
|
|
263
|
+
return t === Xd ? void 0 : t;
|
|
336
264
|
}
|
|
337
|
-
return
|
|
265
|
+
return _d.call(A, e) ? A[e] : void 0;
|
|
338
266
|
}
|
|
339
|
-
var
|
|
340
|
-
function
|
|
267
|
+
var $d = Object.prototype, AB = $d.hasOwnProperty;
|
|
268
|
+
function eB(e) {
|
|
341
269
|
var A = this.__data__;
|
|
342
|
-
return ur ? A[e] !== void 0 :
|
|
270
|
+
return ur ? A[e] !== void 0 : AB.call(A, e);
|
|
343
271
|
}
|
|
344
|
-
var
|
|
345
|
-
function
|
|
272
|
+
var tB = "__lodash_hash_undefined__";
|
|
273
|
+
function rB(e, A) {
|
|
346
274
|
var t = this.__data__;
|
|
347
|
-
return this.size += this.has(e) ? 0 : 1, t[e] = ur && A === void 0 ?
|
|
275
|
+
return this.size += this.has(e) ? 0 : 1, t[e] = ur && A === void 0 ? tB : A, this;
|
|
348
276
|
}
|
|
349
277
|
function $e(e) {
|
|
350
278
|
var A = -1, t = e == null ? 0 : e.length;
|
|
@@ -353,36 +281,36 @@ function $e(e) {
|
|
|
353
281
|
this.set(r[0], r[1]);
|
|
354
282
|
}
|
|
355
283
|
}
|
|
356
|
-
$e.prototype.clear =
|
|
357
|
-
$e.prototype.delete =
|
|
358
|
-
$e.prototype.get =
|
|
359
|
-
$e.prototype.has =
|
|
360
|
-
$e.prototype.set =
|
|
361
|
-
function
|
|
284
|
+
$e.prototype.clear = zd;
|
|
285
|
+
$e.prototype.delete = jd;
|
|
286
|
+
$e.prototype.get = qd;
|
|
287
|
+
$e.prototype.has = eB;
|
|
288
|
+
$e.prototype.set = rB;
|
|
289
|
+
function nB() {
|
|
362
290
|
this.__data__ = [], this.size = 0;
|
|
363
291
|
}
|
|
364
292
|
function Nn(e, A) {
|
|
365
293
|
for (var t = e.length; t--; )
|
|
366
|
-
if (
|
|
294
|
+
if (Jd(e[t][0], A))
|
|
367
295
|
return t;
|
|
368
296
|
return -1;
|
|
369
297
|
}
|
|
370
|
-
var
|
|
371
|
-
function
|
|
298
|
+
var aB = Array.prototype, oB = aB.splice;
|
|
299
|
+
function iB(e) {
|
|
372
300
|
var A = this.__data__, t = Nn(A, e);
|
|
373
301
|
if (t < 0)
|
|
374
302
|
return !1;
|
|
375
303
|
var r = A.length - 1;
|
|
376
|
-
return t == r ? A.pop() :
|
|
304
|
+
return t == r ? A.pop() : oB.call(A, t, 1), --this.size, !0;
|
|
377
305
|
}
|
|
378
|
-
function
|
|
306
|
+
function lB(e) {
|
|
379
307
|
var A = this.__data__, t = Nn(A, e);
|
|
380
308
|
return t < 0 ? void 0 : A[t][1];
|
|
381
309
|
}
|
|
382
|
-
function
|
|
310
|
+
function sB(e) {
|
|
383
311
|
return Nn(this.__data__, e) > -1;
|
|
384
312
|
}
|
|
385
|
-
function
|
|
313
|
+
function cB(e, A) {
|
|
386
314
|
var t = this.__data__, r = Nn(t, e);
|
|
387
315
|
return r < 0 ? (++this.size, t.push([e, A])) : t[r][1] = A, this;
|
|
388
316
|
}
|
|
@@ -393,39 +321,39 @@ function St(e) {
|
|
|
393
321
|
this.set(r[0], r[1]);
|
|
394
322
|
}
|
|
395
323
|
}
|
|
396
|
-
St.prototype.clear =
|
|
397
|
-
St.prototype.delete =
|
|
398
|
-
St.prototype.get =
|
|
399
|
-
St.prototype.has =
|
|
400
|
-
St.prototype.set =
|
|
401
|
-
var
|
|
402
|
-
const
|
|
403
|
-
function
|
|
324
|
+
St.prototype.clear = nB;
|
|
325
|
+
St.prototype.delete = iB;
|
|
326
|
+
St.prototype.get = lB;
|
|
327
|
+
St.prototype.has = sB;
|
|
328
|
+
St.prototype.set = cB;
|
|
329
|
+
var uB = vs(mo, "Map");
|
|
330
|
+
const dB = uB;
|
|
331
|
+
function BB() {
|
|
404
332
|
this.size = 0, this.__data__ = {
|
|
405
333
|
hash: new $e(),
|
|
406
|
-
map: new (
|
|
334
|
+
map: new (dB || St)(),
|
|
407
335
|
string: new $e()
|
|
408
336
|
};
|
|
409
337
|
}
|
|
410
|
-
function
|
|
338
|
+
function fB(e) {
|
|
411
339
|
var A = typeof e;
|
|
412
340
|
return A == "string" || A == "number" || A == "symbol" || A == "boolean" ? e !== "__proto__" : e === null;
|
|
413
341
|
}
|
|
414
342
|
function Sn(e, A) {
|
|
415
343
|
var t = e.__data__;
|
|
416
|
-
return
|
|
344
|
+
return fB(A) ? t[typeof A == "string" ? "string" : "hash"] : t.map;
|
|
417
345
|
}
|
|
418
|
-
function
|
|
346
|
+
function hB(e) {
|
|
419
347
|
var A = Sn(this, e).delete(e);
|
|
420
348
|
return this.size -= A ? 1 : 0, A;
|
|
421
349
|
}
|
|
422
|
-
function
|
|
350
|
+
function gB(e) {
|
|
423
351
|
return Sn(this, e).get(e);
|
|
424
352
|
}
|
|
425
|
-
function
|
|
353
|
+
function UB(e) {
|
|
426
354
|
return Sn(this, e).has(e);
|
|
427
355
|
}
|
|
428
|
-
function
|
|
356
|
+
function pB(e, A) {
|
|
429
357
|
var t = Sn(this, e), r = t.size;
|
|
430
358
|
return t.set(e, A), this.size += t.size == r ? 0 : 1, this;
|
|
431
359
|
}
|
|
@@ -436,15 +364,15 @@ function et(e) {
|
|
|
436
364
|
this.set(r[0], r[1]);
|
|
437
365
|
}
|
|
438
366
|
}
|
|
439
|
-
et.prototype.clear =
|
|
440
|
-
et.prototype.delete =
|
|
441
|
-
et.prototype.get =
|
|
442
|
-
et.prototype.has =
|
|
443
|
-
et.prototype.set =
|
|
444
|
-
var
|
|
367
|
+
et.prototype.clear = BB;
|
|
368
|
+
et.prototype.delete = hB;
|
|
369
|
+
et.prototype.get = gB;
|
|
370
|
+
et.prototype.has = UB;
|
|
371
|
+
et.prototype.set = pB;
|
|
372
|
+
var QB = "Expected a function";
|
|
445
373
|
function Ro(e, A) {
|
|
446
374
|
if (typeof e != "function" || A != null && typeof A != "function")
|
|
447
|
-
throw new TypeError(
|
|
375
|
+
throw new TypeError(QB);
|
|
448
376
|
var t = function() {
|
|
449
377
|
var r = arguments, n = A ? A.apply(this, r) : r[0], a = t.cache;
|
|
450
378
|
if (a.has(n))
|
|
@@ -455,71 +383,71 @@ function Ro(e, A) {
|
|
|
455
383
|
return t.cache = new (Ro.Cache || et)(), t;
|
|
456
384
|
}
|
|
457
385
|
Ro.Cache = et;
|
|
458
|
-
var
|
|
459
|
-
function
|
|
386
|
+
var wB = 500;
|
|
387
|
+
function FB(e) {
|
|
460
388
|
var A = Ro(e, function(r) {
|
|
461
|
-
return t.size ===
|
|
389
|
+
return t.size === wB && t.clear(), r;
|
|
462
390
|
}), t = A.cache;
|
|
463
391
|
return A;
|
|
464
392
|
}
|
|
465
|
-
var
|
|
393
|
+
var CB = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, EB = /\\(\\)?/g, mB = FB(function(e) {
|
|
466
394
|
var A = [];
|
|
467
|
-
return e.charCodeAt(0) === 46 && A.push(""), e.replace(
|
|
468
|
-
A.push(n ? a.replace(
|
|
395
|
+
return e.charCodeAt(0) === 46 && A.push(""), e.replace(CB, function(t, r, n, a) {
|
|
396
|
+
A.push(n ? a.replace(EB, "$1") : r || t);
|
|
469
397
|
}), A;
|
|
470
398
|
});
|
|
471
|
-
const
|
|
472
|
-
function
|
|
473
|
-
return e == null ? "" :
|
|
399
|
+
const vB = mB;
|
|
400
|
+
function yB(e) {
|
|
401
|
+
return e == null ? "" : Es(e);
|
|
474
402
|
}
|
|
475
|
-
function
|
|
476
|
-
return yo(e) ? e :
|
|
403
|
+
function RB(e, A) {
|
|
404
|
+
return yo(e) ? e : Gd(e, A) ? [e] : vB(yB(e));
|
|
477
405
|
}
|
|
478
|
-
var
|
|
479
|
-
function
|
|
406
|
+
var VB = 1 / 0;
|
|
407
|
+
function TB(e) {
|
|
480
408
|
if (typeof e == "string" || vo(e))
|
|
481
409
|
return e;
|
|
482
410
|
var A = e + "";
|
|
483
|
-
return A == "0" && 1 / e == -
|
|
411
|
+
return A == "0" && 1 / e == -VB ? "-0" : A;
|
|
484
412
|
}
|
|
485
|
-
function
|
|
486
|
-
A =
|
|
413
|
+
function IB(e, A) {
|
|
414
|
+
A = RB(A, e);
|
|
487
415
|
for (var t = 0, r = A.length; e != null && t < r; )
|
|
488
|
-
e = e[
|
|
416
|
+
e = e[TB(A[t++])];
|
|
489
417
|
return t && t == r ? e : void 0;
|
|
490
418
|
}
|
|
491
|
-
function
|
|
492
|
-
var r = e == null ? void 0 :
|
|
419
|
+
function NB(e, A, t) {
|
|
420
|
+
var r = e == null ? void 0 : IB(e, A);
|
|
493
421
|
return r === void 0 ? t : r;
|
|
494
422
|
}
|
|
495
|
-
function
|
|
423
|
+
function SB(e) {
|
|
496
424
|
for (var A = -1, t = e == null ? 0 : e.length, r = {}; ++A < t; ) {
|
|
497
425
|
var n = e[A];
|
|
498
426
|
r[n[0]] = n[1];
|
|
499
427
|
}
|
|
500
428
|
return r;
|
|
501
429
|
}
|
|
502
|
-
const
|
|
430
|
+
const MB = (e) => e === void 0, sa = (e) => typeof e == "boolean", At = (e) => typeof e == "number", bB = (e) => typeof Element > "u" ? !1 : e instanceof Element, HB = (e) => gn(e) ? !Number.isNaN(Number(e)) : !1;
|
|
503
431
|
var Mi;
|
|
504
|
-
const Mt = typeof window < "u",
|
|
432
|
+
const Mt = typeof window < "u", xB = (e) => typeof e == "string", ZB = () => {
|
|
505
433
|
};
|
|
506
434
|
Mt && ((Mi = window == null ? void 0 : window.navigator) != null && Mi.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
507
435
|
function Vo(e) {
|
|
508
436
|
return typeof e == "function" ? e() : I(e);
|
|
509
437
|
}
|
|
510
|
-
function
|
|
438
|
+
function kB(e) {
|
|
511
439
|
return e;
|
|
512
440
|
}
|
|
513
441
|
function To(e) {
|
|
514
442
|
return Wu() ? (Du(e), !0) : !1;
|
|
515
443
|
}
|
|
516
|
-
function
|
|
444
|
+
function OB(e, A = !0) {
|
|
517
445
|
Ze() ? Oe(e) : A ? e() : de(e);
|
|
518
446
|
}
|
|
519
|
-
function
|
|
447
|
+
function WB(e, A, t = {}) {
|
|
520
448
|
const {
|
|
521
449
|
immediate: r = !0
|
|
522
|
-
} = t, n =
|
|
450
|
+
} = t, n = Z(!1);
|
|
523
451
|
let a = null;
|
|
524
452
|
function o() {
|
|
525
453
|
a && (clearTimeout(a), a = null);
|
|
@@ -538,47 +466,47 @@ function YB(e, A, t = {}) {
|
|
|
538
466
|
stop: i
|
|
539
467
|
};
|
|
540
468
|
}
|
|
541
|
-
function
|
|
469
|
+
function ys(e) {
|
|
542
470
|
var A;
|
|
543
471
|
const t = Vo(e);
|
|
544
472
|
return (A = t == null ? void 0 : t.$el) != null ? A : t;
|
|
545
473
|
}
|
|
546
|
-
const
|
|
547
|
-
function
|
|
474
|
+
const Rs = Mt ? window : void 0;
|
|
475
|
+
function DB(...e) {
|
|
548
476
|
let A, t, r, n;
|
|
549
|
-
if (
|
|
550
|
-
return
|
|
477
|
+
if (xB(e[0]) || Array.isArray(e[0]) ? ([t, r, n] = e, A = Rs) : [A, t, r, n] = e, !A)
|
|
478
|
+
return ZB;
|
|
551
479
|
Array.isArray(t) || (t = [t]), Array.isArray(r) || (r = [r]);
|
|
552
480
|
const a = [], o = () => {
|
|
553
481
|
a.forEach((c) => c()), a.length = 0;
|
|
554
|
-
}, i = (c, u, d,
|
|
555
|
-
o(), c && a.push(...t.flatMap((d) => r.map((
|
|
482
|
+
}, i = (c, u, d, U) => (c.addEventListener(u, d, U), () => c.removeEventListener(u, d, U)), l = FA(() => [ys(A), Vo(n)], ([c, u]) => {
|
|
483
|
+
o(), c && a.push(...t.flatMap((d) => r.map((U) => i(c, d, U, u))));
|
|
556
484
|
}, { immediate: !0, flush: "post" }), s = () => {
|
|
557
485
|
l(), o();
|
|
558
486
|
};
|
|
559
487
|
return To(s), s;
|
|
560
488
|
}
|
|
561
|
-
function
|
|
562
|
-
const t =
|
|
563
|
-
return r(),
|
|
489
|
+
function JB(e, A = !1) {
|
|
490
|
+
const t = Z(), r = () => t.value = !!e();
|
|
491
|
+
return r(), OB(r, A), t;
|
|
564
492
|
}
|
|
565
493
|
const bi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Hi = "__vueuse_ssr_handlers__";
|
|
566
494
|
bi[Hi] = bi[Hi] || {};
|
|
567
|
-
var xi = Object.getOwnPropertySymbols,
|
|
495
|
+
var xi = Object.getOwnPropertySymbols, KB = Object.prototype.hasOwnProperty, LB = Object.prototype.propertyIsEnumerable, GB = (e, A) => {
|
|
568
496
|
var t = {};
|
|
569
497
|
for (var r in e)
|
|
570
|
-
|
|
498
|
+
KB.call(e, r) && A.indexOf(r) < 0 && (t[r] = e[r]);
|
|
571
499
|
if (e != null && xi)
|
|
572
500
|
for (var r of xi(e))
|
|
573
|
-
A.indexOf(r) < 0 &&
|
|
501
|
+
A.indexOf(r) < 0 && LB.call(e, r) && (t[r] = e[r]);
|
|
574
502
|
return t;
|
|
575
503
|
};
|
|
576
|
-
function
|
|
577
|
-
const r = t, { window: n =
|
|
504
|
+
function YB(e, A, t = {}) {
|
|
505
|
+
const r = t, { window: n = Rs } = r, a = GB(r, ["window"]);
|
|
578
506
|
let o;
|
|
579
|
-
const i =
|
|
507
|
+
const i = JB(() => n && "ResizeObserver" in n), l = () => {
|
|
580
508
|
o && (o.disconnect(), o = void 0);
|
|
581
|
-
}, s = FA(() =>
|
|
509
|
+
}, s = FA(() => ys(e), (u) => {
|
|
582
510
|
l(), i.value && n && u && (o = new ResizeObserver(A), o.observe(u, a));
|
|
583
511
|
}, { immediate: !0, flush: "post" }), c = () => {
|
|
584
512
|
l(), s();
|
|
@@ -592,15 +520,15 @@ var Zi;
|
|
|
592
520
|
(function(e) {
|
|
593
521
|
e.UP = "UP", e.RIGHT = "RIGHT", e.DOWN = "DOWN", e.LEFT = "LEFT", e.NONE = "NONE";
|
|
594
522
|
})(Zi || (Zi = {}));
|
|
595
|
-
var
|
|
523
|
+
var zB = Object.defineProperty, ki = Object.getOwnPropertySymbols, jB = Object.prototype.hasOwnProperty, XB = Object.prototype.propertyIsEnumerable, Oi = (e, A, t) => A in e ? zB(e, A, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[A] = t, PB = (e, A) => {
|
|
596
524
|
for (var t in A || (A = {}))
|
|
597
|
-
|
|
525
|
+
jB.call(A, t) && Oi(e, t, A[t]);
|
|
598
526
|
if (ki)
|
|
599
527
|
for (var t of ki(A))
|
|
600
|
-
|
|
528
|
+
XB.call(A, t) && Oi(e, t, A[t]);
|
|
601
529
|
return e;
|
|
602
530
|
};
|
|
603
|
-
const
|
|
531
|
+
const _B = {
|
|
604
532
|
easeInSine: [0.12, 0, 0.39, 0],
|
|
605
533
|
easeOutSine: [0.61, 1, 0.88, 1],
|
|
606
534
|
easeInOutSine: [0.37, 0, 0.63, 1],
|
|
@@ -626,15 +554,15 @@ const r0 = {
|
|
|
626
554
|
easeOutBack: [0.34, 1.56, 0.64, 1],
|
|
627
555
|
easeInOutBack: [0.68, -0.6, 0.32, 1.6]
|
|
628
556
|
};
|
|
629
|
-
|
|
630
|
-
linear:
|
|
631
|
-
},
|
|
557
|
+
PB({
|
|
558
|
+
linear: kB
|
|
559
|
+
}, _B);
|
|
632
560
|
const Wi = {
|
|
633
561
|
current: 0
|
|
634
|
-
}, Di =
|
|
635
|
-
const A = Ze() ? Xe(Ji, Wi) : Wi, t = e || (Ze() ? Xe(
|
|
562
|
+
}, Di = Z(0), Vs = 2e3, Ji = Symbol("elZIndexContextKey"), Ts = Symbol("zIndexContextKey"), qB = (e) => {
|
|
563
|
+
const A = Ze() ? Xe(Ji, Wi) : Wi, t = e || (Ze() ? Xe(Ts, void 0) : void 0), r = b(() => {
|
|
636
564
|
const o = I(t);
|
|
637
|
-
return At(o) ? o :
|
|
565
|
+
return At(o) ? o : Vs;
|
|
638
566
|
}), n = b(() => r.value + Di.value), a = () => (A.current++, Di.value = A.current, n.value);
|
|
639
567
|
return !Mt && Xe(Ji), {
|
|
640
568
|
initialZIndex: r,
|
|
@@ -642,7 +570,7 @@ const Wi = {
|
|
|
642
570
|
nextZIndex: a
|
|
643
571
|
};
|
|
644
572
|
};
|
|
645
|
-
var
|
|
573
|
+
var $B = {
|
|
646
574
|
name: "en",
|
|
647
575
|
el: {
|
|
648
576
|
breadcrumb: {
|
|
@@ -821,21 +749,21 @@ var a0 = {
|
|
|
821
749
|
}
|
|
822
750
|
}
|
|
823
751
|
};
|
|
824
|
-
const
|
|
752
|
+
const A0 = (e) => (A, t) => e0(A, t, I(e)), e0 = (e, A, t) => NB(t, e, e).replace(/\{(\w+)\}/g, (r, n) => {
|
|
825
753
|
var a;
|
|
826
754
|
return `${(a = A == null ? void 0 : A[n]) != null ? a : `{${n}}`}`;
|
|
827
|
-
}),
|
|
828
|
-
const A = b(() => I(e).name), t = Ku(e) ? e :
|
|
755
|
+
}), t0 = (e) => {
|
|
756
|
+
const A = b(() => I(e).name), t = Ku(e) ? e : Z(e);
|
|
829
757
|
return {
|
|
830
758
|
lang: A,
|
|
831
759
|
locale: t,
|
|
832
|
-
t:
|
|
760
|
+
t: A0(e)
|
|
833
761
|
};
|
|
834
|
-
},
|
|
835
|
-
const A = e || Xe(
|
|
836
|
-
return
|
|
837
|
-
},
|
|
838
|
-
if (!
|
|
762
|
+
}, Is = Symbol("localeContextKey"), r0 = (e) => {
|
|
763
|
+
const A = e || Xe(Is, Z());
|
|
764
|
+
return t0(b(() => A.value || $B));
|
|
765
|
+
}, Ns = "__epPropKey", LA = (e) => e, n0 = (e) => ws(e) && !!e[Ns], Ss = (e, A) => {
|
|
766
|
+
if (!ws(e) || n0(e))
|
|
839
767
|
return e;
|
|
840
768
|
const { values: t, required: r, default: n, type: a, validator: o } = e, l = {
|
|
841
769
|
type: a,
|
|
@@ -843,22 +771,22 @@ const o0 = (e) => (A, t) => i0(A, t, I(e)), i0 = (e, A, t) => ZB(t, e, e).replac
|
|
|
843
771
|
validator: t || o ? (s) => {
|
|
844
772
|
let c = !1, u = [];
|
|
845
773
|
if (t && (u = Array.from(t), Vi(e, "default") && u.push(n), c || (c = u.includes(s))), o && (c || (c = o(s))), !c && u.length > 0) {
|
|
846
|
-
const d = [...new Set(u)].map((
|
|
774
|
+
const d = [...new Set(u)].map((U) => JSON.stringify(U)).join(", ");
|
|
847
775
|
Lu(`Invalid prop: validation failed${A ? ` for prop "${A}"` : ""}. Expected one of [${d}], got value ${JSON.stringify(s)}.`);
|
|
848
776
|
}
|
|
849
777
|
return c;
|
|
850
778
|
} : void 0,
|
|
851
|
-
[
|
|
779
|
+
[Ns]: !0
|
|
852
780
|
};
|
|
853
781
|
return Vi(e, "default") && (l.default = n), l;
|
|
854
|
-
}, pr = (e) =>
|
|
782
|
+
}, pr = (e) => SB(Object.entries(e).map(([A, t]) => [
|
|
855
783
|
A,
|
|
856
|
-
|
|
857
|
-
])),
|
|
784
|
+
Ss(t, A)
|
|
785
|
+
])), a0 = ["", "default", "small", "large"], o0 = Ss({
|
|
858
786
|
type: String,
|
|
859
|
-
values:
|
|
787
|
+
values: a0,
|
|
860
788
|
required: !1
|
|
861
|
-
}),
|
|
789
|
+
}), i0 = Symbol("size"), l0 = Symbol("emptyValuesContextKey"), s0 = pr({
|
|
862
790
|
emptyValues: Array,
|
|
863
791
|
valueOnClear: {
|
|
864
792
|
type: LA([
|
|
@@ -870,51 +798,51 @@ const o0 = (e) => (A, t) => i0(A, t, I(e)), i0 = (e, A, t) => ZB(t, e, e).replac
|
|
|
870
798
|
default: void 0,
|
|
871
799
|
validator: (e) => hn(e) ? !e() : !e
|
|
872
800
|
}
|
|
873
|
-
}), Ki = (e) => Object.keys(e), Un =
|
|
874
|
-
function
|
|
875
|
-
const t = Ze() ? Xe(
|
|
801
|
+
}), Ki = (e) => Object.keys(e), Un = Z();
|
|
802
|
+
function Ms(e, A = void 0) {
|
|
803
|
+
const t = Ze() ? Xe(ps, Un) : Un;
|
|
876
804
|
return e ? b(() => {
|
|
877
805
|
var r, n;
|
|
878
806
|
return (n = (r = t.value) == null ? void 0 : r[e]) != null ? n : A;
|
|
879
807
|
}) : t;
|
|
880
808
|
}
|
|
881
|
-
function
|
|
882
|
-
const t =
|
|
809
|
+
function c0(e, A) {
|
|
810
|
+
const t = Ms(), r = Eo(e, b(() => {
|
|
883
811
|
var i;
|
|
884
812
|
return ((i = t.value) == null ? void 0 : i.namespace) || cn;
|
|
885
|
-
})), n =
|
|
813
|
+
})), n = r0(b(() => {
|
|
886
814
|
var i;
|
|
887
815
|
return (i = t.value) == null ? void 0 : i.locale;
|
|
888
|
-
})), a =
|
|
816
|
+
})), a = qB(b(() => {
|
|
889
817
|
var i;
|
|
890
|
-
return ((i = t.value) == null ? void 0 : i.zIndex) ||
|
|
818
|
+
return ((i = t.value) == null ? void 0 : i.zIndex) || Vs;
|
|
891
819
|
})), o = b(() => {
|
|
892
820
|
var i;
|
|
893
821
|
return I(A) || ((i = t.value) == null ? void 0 : i.size) || "";
|
|
894
822
|
});
|
|
895
|
-
return
|
|
823
|
+
return bs(b(() => I(t) || {})), {
|
|
896
824
|
ns: r,
|
|
897
825
|
locale: n,
|
|
898
826
|
zIndex: a,
|
|
899
827
|
size: o
|
|
900
828
|
};
|
|
901
829
|
}
|
|
902
|
-
const
|
|
830
|
+
const bs = (e, A, t = !1) => {
|
|
903
831
|
var r;
|
|
904
|
-
const n = !!Ze(), a = n ?
|
|
832
|
+
const n = !!Ze(), a = n ? Ms() : void 0, o = (r = A == null ? void 0 : A.provide) != null ? r : n ? fs : void 0;
|
|
905
833
|
if (!o)
|
|
906
834
|
return;
|
|
907
835
|
const i = b(() => {
|
|
908
836
|
const l = I(e);
|
|
909
|
-
return a != null && a.value ?
|
|
837
|
+
return a != null && a.value ? u0(a.value, l) : l;
|
|
910
838
|
});
|
|
911
|
-
return o(
|
|
839
|
+
return o(ps, i), o(Is, b(() => i.value.locale)), o(Qs, b(() => i.value.namespace)), o(Ts, b(() => i.value.zIndex)), o(i0, {
|
|
912
840
|
size: b(() => i.value.size || "")
|
|
913
|
-
}), o(
|
|
841
|
+
}), o(l0, b(() => ({
|
|
914
842
|
emptyValues: i.value.emptyValues,
|
|
915
843
|
valueOnClear: i.value.valueOnClear
|
|
916
844
|
}))), (t || !Un.value) && (Un.value = i.value), i;
|
|
917
|
-
},
|
|
845
|
+
}, u0 = (e, A) => {
|
|
918
846
|
const t = [.../* @__PURE__ */ new Set([...Ki(e), ...Ki(A)])], r = {};
|
|
919
847
|
for (const n of t)
|
|
920
848
|
r[n] = A[n] !== void 0 ? A[n] : e[n];
|
|
@@ -926,15 +854,15 @@ var Io = (e, A) => {
|
|
|
926
854
|
t[r] = n;
|
|
927
855
|
return t;
|
|
928
856
|
};
|
|
929
|
-
function
|
|
857
|
+
function La(e, A = "px") {
|
|
930
858
|
if (!e)
|
|
931
859
|
return "";
|
|
932
|
-
if (At(e) ||
|
|
860
|
+
if (At(e) || HB(e))
|
|
933
861
|
return `${e}${A}`;
|
|
934
862
|
if (gn(e))
|
|
935
863
|
return e;
|
|
936
864
|
}
|
|
937
|
-
const
|
|
865
|
+
const Hs = (e, A) => {
|
|
938
866
|
if (e.install = (t) => {
|
|
939
867
|
for (const r of [e, ...Object.values(A ?? {})])
|
|
940
868
|
t.component(r.name, r);
|
|
@@ -942,26 +870,26 @@ const ks = (e, A) => {
|
|
|
942
870
|
for (const [t, r] of Object.entries(A))
|
|
943
871
|
e[t] = r;
|
|
944
872
|
return e;
|
|
945
|
-
},
|
|
873
|
+
}, d0 = (e, A) => (e.install = (t) => {
|
|
946
874
|
e._context = t._context, t.config.globalProperties[A] = e;
|
|
947
|
-
}, e),
|
|
875
|
+
}, e), B0 = pr({
|
|
948
876
|
size: {
|
|
949
877
|
type: LA([Number, String])
|
|
950
878
|
},
|
|
951
879
|
color: {
|
|
952
880
|
type: String
|
|
953
881
|
}
|
|
954
|
-
}),
|
|
882
|
+
}), f0 = te({
|
|
955
883
|
name: "ElIcon",
|
|
956
884
|
inheritAttrs: !1
|
|
957
|
-
}),
|
|
958
|
-
...
|
|
959
|
-
props:
|
|
885
|
+
}), h0 = /* @__PURE__ */ te({
|
|
886
|
+
...f0,
|
|
887
|
+
props: B0,
|
|
960
888
|
setup(e) {
|
|
961
889
|
const A = e, t = Eo("icon"), r = b(() => {
|
|
962
890
|
const { size: n, color: a } = A;
|
|
963
891
|
return !n && !a ? {} : {
|
|
964
|
-
fontSize:
|
|
892
|
+
fontSize: MB(n) ? void 0 : La(n),
|
|
965
893
|
"--color": a
|
|
966
894
|
};
|
|
967
895
|
});
|
|
@@ -973,23 +901,96 @@ const ks = (e, A) => {
|
|
|
973
901
|
], 16));
|
|
974
902
|
}
|
|
975
903
|
});
|
|
976
|
-
var
|
|
977
|
-
const Li =
|
|
904
|
+
var g0 = /* @__PURE__ */ Io(h0, [["__file", "icon.vue"]]);
|
|
905
|
+
const Li = Hs(g0);
|
|
906
|
+
/*! Element Plus Icons Vue v2.3.2 */
|
|
907
|
+
var U0 = /* @__PURE__ */ te({
|
|
908
|
+
name: "CircleCloseFilled",
|
|
909
|
+
__name: "circle-close-filled",
|
|
910
|
+
setup(e) {
|
|
911
|
+
return (A, t) => (V(), N("svg", {
|
|
912
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
913
|
+
viewBox: "0 0 1024 1024"
|
|
914
|
+
}, [
|
|
915
|
+
m("path", {
|
|
916
|
+
fill: "currentColor",
|
|
917
|
+
d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"
|
|
918
|
+
})
|
|
919
|
+
]));
|
|
920
|
+
}
|
|
921
|
+
}), xs = U0, p0 = /* @__PURE__ */ te({
|
|
922
|
+
name: "Close",
|
|
923
|
+
__name: "close",
|
|
924
|
+
setup(e) {
|
|
925
|
+
return (A, t) => (V(), N("svg", {
|
|
926
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
927
|
+
viewBox: "0 0 1024 1024"
|
|
928
|
+
}, [
|
|
929
|
+
m("path", {
|
|
930
|
+
fill: "currentColor",
|
|
931
|
+
d: "M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"
|
|
932
|
+
})
|
|
933
|
+
]));
|
|
934
|
+
}
|
|
935
|
+
}), Q0 = p0, w0 = /* @__PURE__ */ te({
|
|
936
|
+
name: "InfoFilled",
|
|
937
|
+
__name: "info-filled",
|
|
938
|
+
setup(e) {
|
|
939
|
+
return (A, t) => (V(), N("svg", {
|
|
940
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
941
|
+
viewBox: "0 0 1024 1024"
|
|
942
|
+
}, [
|
|
943
|
+
m("path", {
|
|
944
|
+
fill: "currentColor",
|
|
945
|
+
d: "M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.99 12.99 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"
|
|
946
|
+
})
|
|
947
|
+
]));
|
|
948
|
+
}
|
|
949
|
+
}), Ga = w0, F0 = /* @__PURE__ */ te({
|
|
950
|
+
name: "SuccessFilled",
|
|
951
|
+
__name: "success-filled",
|
|
952
|
+
setup(e) {
|
|
953
|
+
return (A, t) => (V(), N("svg", {
|
|
954
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
955
|
+
viewBox: "0 0 1024 1024"
|
|
956
|
+
}, [
|
|
957
|
+
m("path", {
|
|
958
|
+
fill: "currentColor",
|
|
959
|
+
d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.27 38.27 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"
|
|
960
|
+
})
|
|
961
|
+
]));
|
|
962
|
+
}
|
|
963
|
+
}), Zs = F0, C0 = /* @__PURE__ */ te({
|
|
964
|
+
name: "WarningFilled",
|
|
965
|
+
__name: "warning-filled",
|
|
966
|
+
setup(e) {
|
|
967
|
+
return (A, t) => (V(), N("svg", {
|
|
968
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
969
|
+
viewBox: "0 0 1024 1024"
|
|
970
|
+
}, [
|
|
971
|
+
m("path", {
|
|
972
|
+
fill: "currentColor",
|
|
973
|
+
d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.43 58.43 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.43 58.43 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"
|
|
974
|
+
})
|
|
975
|
+
]));
|
|
976
|
+
}
|
|
977
|
+
}), ks = C0;
|
|
978
|
+
const E0 = LA([
|
|
978
979
|
String,
|
|
979
980
|
Object,
|
|
980
981
|
Function
|
|
981
982
|
]), m0 = {
|
|
982
|
-
Close:
|
|
983
|
-
SuccessFilled:
|
|
984
|
-
InfoFilled:
|
|
985
|
-
WarningFilled:
|
|
986
|
-
CircleCloseFilled:
|
|
983
|
+
Close: Q0,
|
|
984
|
+
SuccessFilled: Zs,
|
|
985
|
+
InfoFilled: Ga,
|
|
986
|
+
WarningFilled: ks,
|
|
987
|
+
CircleCloseFilled: xs
|
|
987
988
|
}, Gi = {
|
|
988
|
-
primary:
|
|
989
|
-
success:
|
|
990
|
-
warning:
|
|
991
|
-
error:
|
|
992
|
-
info:
|
|
989
|
+
primary: Ga,
|
|
990
|
+
success: Zs,
|
|
991
|
+
warning: ks,
|
|
992
|
+
error: xs,
|
|
993
|
+
info: Ga
|
|
993
994
|
}, v0 = (e) => e, y0 = {
|
|
994
995
|
tab: "Tab",
|
|
995
996
|
enter: "Enter",
|
|
@@ -1048,8 +1049,8 @@ const Li = ks(C0), E0 = LA([
|
|
|
1048
1049
|
return [
|
|
1049
1050
|
{
|
|
1050
1051
|
backgroundColor: t.color,
|
|
1051
|
-
marginRight:
|
|
1052
|
-
marginTop:
|
|
1052
|
+
marginRight: La(-((i = (o = t.offset) == null ? void 0 : o[0]) != null ? i : 0)),
|
|
1053
|
+
marginTop: La((s = (l = t.offset) == null ? void 0 : l[1]) != null ? s : 0)
|
|
1053
1054
|
},
|
|
1054
1055
|
(c = t.badgeStyle) != null ? c : {}
|
|
1055
1056
|
];
|
|
@@ -1089,7 +1090,7 @@ const Li = ks(C0), E0 = LA([
|
|
|
1089
1090
|
}
|
|
1090
1091
|
});
|
|
1091
1092
|
var I0 = /* @__PURE__ */ Io(T0, [["__file", "badge.vue"]]);
|
|
1092
|
-
const N0 =
|
|
1093
|
+
const N0 = Hs(I0);
|
|
1093
1094
|
function S0(e) {
|
|
1094
1095
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1095
1096
|
}
|
|
@@ -1101,7 +1102,7 @@ const M0 = pr({
|
|
|
1101
1102
|
locale: {
|
|
1102
1103
|
type: LA(Object)
|
|
1103
1104
|
},
|
|
1104
|
-
size:
|
|
1105
|
+
size: o0,
|
|
1105
1106
|
button: {
|
|
1106
1107
|
type: LA(Object)
|
|
1107
1108
|
},
|
|
@@ -1126,13 +1127,13 @@ const M0 = pr({
|
|
|
1126
1127
|
type: String,
|
|
1127
1128
|
default: "el"
|
|
1128
1129
|
},
|
|
1129
|
-
...
|
|
1130
|
+
...s0
|
|
1130
1131
|
}), KA = {};
|
|
1131
1132
|
te({
|
|
1132
1133
|
name: "ElConfigProvider",
|
|
1133
1134
|
props: M0,
|
|
1134
1135
|
setup(e, { slots: A }) {
|
|
1135
|
-
const t =
|
|
1136
|
+
const t = bs(e);
|
|
1136
1137
|
return FA(() => e.message, (r) => {
|
|
1137
1138
|
var n, a;
|
|
1138
1139
|
Object.assign(KA, (a = (n = t == null ? void 0 : t.value) == null ? void 0 : n.message) != null ? a : {}, r ?? {});
|
|
@@ -1145,7 +1146,7 @@ const Os = [
|
|
|
1145
1146
|
"info",
|
|
1146
1147
|
"warning",
|
|
1147
1148
|
"error"
|
|
1148
|
-
],
|
|
1149
|
+
], HA = v0({
|
|
1149
1150
|
customClass: "",
|
|
1150
1151
|
dangerouslyUseHTMLString: !1,
|
|
1151
1152
|
duration: 3e3,
|
|
@@ -1164,23 +1165,23 @@ const Os = [
|
|
|
1164
1165
|
}), b0 = pr({
|
|
1165
1166
|
customClass: {
|
|
1166
1167
|
type: String,
|
|
1167
|
-
default:
|
|
1168
|
+
default: HA.customClass
|
|
1168
1169
|
},
|
|
1169
1170
|
dangerouslyUseHTMLString: {
|
|
1170
1171
|
type: Boolean,
|
|
1171
|
-
default:
|
|
1172
|
+
default: HA.dangerouslyUseHTMLString
|
|
1172
1173
|
},
|
|
1173
1174
|
duration: {
|
|
1174
1175
|
type: Number,
|
|
1175
|
-
default:
|
|
1176
|
+
default: HA.duration
|
|
1176
1177
|
},
|
|
1177
1178
|
icon: {
|
|
1178
1179
|
type: E0,
|
|
1179
|
-
default:
|
|
1180
|
+
default: HA.icon
|
|
1180
1181
|
},
|
|
1181
1182
|
id: {
|
|
1182
1183
|
type: String,
|
|
1183
|
-
default:
|
|
1184
|
+
default: HA.id
|
|
1184
1185
|
},
|
|
1185
1186
|
message: {
|
|
1186
1187
|
type: LA([
|
|
@@ -1188,40 +1189,40 @@ const Os = [
|
|
|
1188
1189
|
Object,
|
|
1189
1190
|
Function
|
|
1190
1191
|
]),
|
|
1191
|
-
default:
|
|
1192
|
+
default: HA.message
|
|
1192
1193
|
},
|
|
1193
1194
|
onClose: {
|
|
1194
1195
|
type: LA(Function),
|
|
1195
|
-
default:
|
|
1196
|
+
default: HA.onClose
|
|
1196
1197
|
},
|
|
1197
1198
|
showClose: {
|
|
1198
1199
|
type: Boolean,
|
|
1199
|
-
default:
|
|
1200
|
+
default: HA.showClose
|
|
1200
1201
|
},
|
|
1201
1202
|
type: {
|
|
1202
1203
|
type: String,
|
|
1203
1204
|
values: Os,
|
|
1204
|
-
default:
|
|
1205
|
+
default: HA.type
|
|
1205
1206
|
},
|
|
1206
1207
|
plain: {
|
|
1207
1208
|
type: Boolean,
|
|
1208
|
-
default:
|
|
1209
|
+
default: HA.plain
|
|
1209
1210
|
},
|
|
1210
1211
|
offset: {
|
|
1211
1212
|
type: Number,
|
|
1212
|
-
default:
|
|
1213
|
+
default: HA.offset
|
|
1213
1214
|
},
|
|
1214
1215
|
zIndex: {
|
|
1215
1216
|
type: Number,
|
|
1216
|
-
default:
|
|
1217
|
+
default: HA.zIndex
|
|
1217
1218
|
},
|
|
1218
1219
|
grouping: {
|
|
1219
1220
|
type: Boolean,
|
|
1220
|
-
default:
|
|
1221
|
+
default: HA.grouping
|
|
1221
1222
|
},
|
|
1222
1223
|
repeatNum: {
|
|
1223
1224
|
type: Number,
|
|
1224
|
-
default:
|
|
1225
|
+
default: HA.repeatNum
|
|
1225
1226
|
}
|
|
1226
1227
|
}), H0 = {
|
|
1227
1228
|
destroy: () => !0
|
|
@@ -1239,22 +1240,22 @@ const Os = [
|
|
|
1239
1240
|
props: b0,
|
|
1240
1241
|
emits: H0,
|
|
1241
1242
|
setup(e, { expose: A, emit: t }) {
|
|
1242
|
-
const r = e, { Close: n } = m0, a =
|
|
1243
|
-
let
|
|
1243
|
+
const r = e, { Close: n } = m0, a = Z(!1), { ns: o, zIndex: i } = c0("message"), { currentZIndex: l, nextZIndex: s } = i, c = Z(), u = Z(!1), d = Z(0);
|
|
1244
|
+
let U;
|
|
1244
1245
|
const f = b(() => r.type ? r.type === "error" ? "danger" : r.type : "info"), B = b(() => {
|
|
1245
1246
|
const T = r.type;
|
|
1246
1247
|
return { [o.bm("icon", T)]: T && Gi[T] };
|
|
1247
|
-
}), g = b(() => r.icon || Gi[r.type] || ""),
|
|
1248
|
-
top: `${
|
|
1248
|
+
}), g = b(() => r.icon || Gi[r.type] || ""), h = b(() => Z0(r.id)), p = b(() => k0(r.id, r.offset) + h.value), Q = b(() => d.value + p.value), C = b(() => ({
|
|
1249
|
+
top: `${p.value}px`,
|
|
1249
1250
|
zIndex: l.value
|
|
1250
1251
|
}));
|
|
1251
1252
|
function v() {
|
|
1252
|
-
r.duration !== 0 && ({ stop:
|
|
1253
|
+
r.duration !== 0 && ({ stop: U } = WB(() => {
|
|
1253
1254
|
R();
|
|
1254
1255
|
}, r.duration));
|
|
1255
1256
|
}
|
|
1256
1257
|
function w() {
|
|
1257
|
-
|
|
1258
|
+
U == null || U();
|
|
1258
1259
|
}
|
|
1259
1260
|
function R() {
|
|
1260
1261
|
u.value = !1, de(() => {
|
|
@@ -1269,11 +1270,11 @@ const Os = [
|
|
|
1269
1270
|
v(), s(), u.value = !0;
|
|
1270
1271
|
}), FA(() => r.repeatNum, () => {
|
|
1271
1272
|
w(), v();
|
|
1272
|
-
}),
|
|
1273
|
+
}), DB(document, "keydown", M), YB(c, () => {
|
|
1273
1274
|
d.value = c.value.getBoundingClientRect().height;
|
|
1274
1275
|
}), A({
|
|
1275
1276
|
visible: u,
|
|
1276
|
-
bottom:
|
|
1277
|
+
bottom: Q,
|
|
1277
1278
|
close: R
|
|
1278
1279
|
}), (T, O) => (V(), vA(hs, {
|
|
1279
1280
|
name: I(o).b("fade"),
|
|
@@ -1329,7 +1330,7 @@ const Os = [
|
|
|
1329
1330
|
T.showClose ? (V(), vA(I(Li), {
|
|
1330
1331
|
key: 2,
|
|
1331
1332
|
class: _A(I(o).e("closeBtn")),
|
|
1332
|
-
onClick:
|
|
1333
|
+
onClick: xA(R, ["stop"])
|
|
1333
1334
|
}, {
|
|
1334
1335
|
default: j(() => [
|
|
1335
1336
|
W(I(n))
|
|
@@ -1348,14 +1349,14 @@ var D0 = /* @__PURE__ */ Io(W0, [["__file", "message.vue"]]);
|
|
|
1348
1349
|
let J0 = 1;
|
|
1349
1350
|
const Ws = (e) => {
|
|
1350
1351
|
const A = !e || gn(e) || Us(e) || hn(e) ? { message: e } : e, t = {
|
|
1351
|
-
...
|
|
1352
|
+
...HA,
|
|
1352
1353
|
...A
|
|
1353
1354
|
};
|
|
1354
1355
|
if (!t.appendTo)
|
|
1355
1356
|
t.appendTo = document.body;
|
|
1356
1357
|
else if (gn(t.appendTo)) {
|
|
1357
1358
|
let r = document.querySelector(t.appendTo);
|
|
1358
|
-
|
|
1359
|
+
bB(r) || (r = document.body), t.appendTo = r;
|
|
1359
1360
|
}
|
|
1360
1361
|
return sa(KA.grouping) && !t.grouping && (t.grouping = KA.grouping), At(KA.duration) && t.duration === 3e3 && (t.duration = KA.duration), At(KA.offset) && t.offset === 16 && (t.offset = KA.offset), sa(KA.showClose) && !t.showClose && (t.showClose = KA.showClose), sa(KA.plain) && !t.plain && (t.plain = KA.plain), t;
|
|
1361
1362
|
}, K0 = (e) => {
|
|
@@ -1423,7 +1424,7 @@ function G0(e) {
|
|
|
1423
1424
|
}
|
|
1424
1425
|
mt.closeAll = G0;
|
|
1425
1426
|
mt._context = null;
|
|
1426
|
-
const dr =
|
|
1427
|
+
const dr = d0(mt, "$message");
|
|
1427
1428
|
const yA = (e, A) => {
|
|
1428
1429
|
const t = e.__vccOpts || e;
|
|
1429
1430
|
for (const [r, n] of A)
|
|
@@ -1455,7 +1456,7 @@ const yA = (e, A) => {
|
|
|
1455
1456
|
},
|
|
1456
1457
|
emits: ["update:modelValue", "change"],
|
|
1457
1458
|
setup(e, { emit: A }) {
|
|
1458
|
-
const t = e, r = A, n =
|
|
1459
|
+
const t = e, r = A, n = Z(null), a = Z(!1), o = Z(null), i = Z(null), l = Xe("config", {}), s = b({
|
|
1459
1460
|
get: () => t.modelValue,
|
|
1460
1461
|
set: (B) => r("update:modelValue", B)
|
|
1461
1462
|
}), c = b({
|
|
@@ -1468,8 +1469,8 @@ const yA = (e, A) => {
|
|
|
1468
1469
|
}, d = (B) => {
|
|
1469
1470
|
const g = B.target.value.trim();
|
|
1470
1471
|
g ? g.startsWith("http://") || g.startsWith("https://") || g.startsWith("data:") ? s.value = g : g.startsWith("data:") || (s.value = g) : s.value = "";
|
|
1471
|
-
},
|
|
1472
|
-
var
|
|
1472
|
+
}, U = async (B) => {
|
|
1473
|
+
var Q;
|
|
1473
1474
|
const g = B.target.files[0];
|
|
1474
1475
|
if (!g)
|
|
1475
1476
|
return;
|
|
@@ -1477,17 +1478,17 @@ const yA = (e, A) => {
|
|
|
1477
1478
|
alert("请选择正确的文件类型");
|
|
1478
1479
|
return;
|
|
1479
1480
|
}
|
|
1480
|
-
const
|
|
1481
|
-
if (!
|
|
1481
|
+
const h = (Q = l == null ? void 0 : l.image) == null ? void 0 : Q.request;
|
|
1482
|
+
if (!h || typeof h != "function") {
|
|
1482
1483
|
f(g);
|
|
1483
1484
|
return;
|
|
1484
1485
|
}
|
|
1485
1486
|
i.value = g;
|
|
1486
|
-
let
|
|
1487
|
+
let p = null;
|
|
1487
1488
|
try {
|
|
1488
|
-
a.value = !0,
|
|
1489
|
-
const C = await
|
|
1490
|
-
if (o.value ===
|
|
1489
|
+
a.value = !0, p = h(g), o.value = p;
|
|
1490
|
+
const C = await p;
|
|
1491
|
+
if (o.value === p && i.value === g)
|
|
1491
1492
|
if (C && C.success !== !1) {
|
|
1492
1493
|
const v = C.url || C.data || C, w = {
|
|
1493
1494
|
fileName: g.name,
|
|
@@ -1500,18 +1501,18 @@ const yA = (e, A) => {
|
|
|
1500
1501
|
else
|
|
1501
1502
|
console.log("组件已切换或文件已改变,忽略上传结果");
|
|
1502
1503
|
} catch (C) {
|
|
1503
|
-
o.value ===
|
|
1504
|
+
o.value === p && i.value === g && (n.value && (n.value.value = ""), dr.error(C.message || "上传失败,请重试"));
|
|
1504
1505
|
} finally {
|
|
1505
|
-
o.value ===
|
|
1506
|
+
o.value === p && (a.value = !1, o.value = null, i.value = null);
|
|
1506
1507
|
}
|
|
1507
1508
|
}, f = (B) => {
|
|
1508
1509
|
const g = new FileReader();
|
|
1509
|
-
g.onload = (
|
|
1510
|
-
const
|
|
1510
|
+
g.onload = (h) => {
|
|
1511
|
+
const p = {
|
|
1511
1512
|
fileName: B.name,
|
|
1512
|
-
fileSrc:
|
|
1513
|
+
fileSrc: h.target.result
|
|
1513
1514
|
};
|
|
1514
|
-
s.value =
|
|
1515
|
+
s.value = p, r("change", { target: { files: [B] } });
|
|
1515
1516
|
}, g.onerror = () => {
|
|
1516
1517
|
alert("文件读取失败,请重试");
|
|
1517
1518
|
}, g.readAsDataURL(B);
|
|
@@ -1519,36 +1520,36 @@ const yA = (e, A) => {
|
|
|
1519
1520
|
return zu(() => {
|
|
1520
1521
|
o.value = null, i.value = null;
|
|
1521
1522
|
}), (B, g) => {
|
|
1522
|
-
const
|
|
1523
|
+
const h = QA("el-icon-loading"), p = QA("el-icon");
|
|
1523
1524
|
return V(), N("div", Y0, [
|
|
1524
1525
|
e.label ? (V(), N("label", z0, fe(e.label), 1)) : tA("", !0),
|
|
1525
1526
|
e.type === "select" ? GA((V(), N("select", {
|
|
1526
1527
|
key: 1,
|
|
1527
|
-
"onUpdate:modelValue": g[0] || (g[0] = (
|
|
1528
|
+
"onUpdate:modelValue": g[0] || (g[0] = (Q) => s.value = Q)
|
|
1528
1529
|
}, [
|
|
1529
|
-
(V(!0), N(VA, null, Me(e.options, (
|
|
1530
|
-
key:
|
|
1531
|
-
value:
|
|
1532
|
-
}, fe(
|
|
1530
|
+
(V(!0), N(VA, null, Me(e.options, (Q) => (V(), N("option", {
|
|
1531
|
+
key: Q.value,
|
|
1532
|
+
value: Q.value
|
|
1533
|
+
}, fe(Q.label), 9, j0))), 128))
|
|
1533
1534
|
], 512)), [
|
|
1534
1535
|
[ju, s.value]
|
|
1535
1536
|
]) : e.type === "color" ? GA((V(), N("input", {
|
|
1536
1537
|
key: 2,
|
|
1537
|
-
"onUpdate:modelValue": g[1] || (g[1] = (
|
|
1538
|
+
"onUpdate:modelValue": g[1] || (g[1] = (Q) => s.value = Q),
|
|
1538
1539
|
type: "color"
|
|
1539
1540
|
}, null, 512)), [
|
|
1540
1541
|
[Ye, s.value]
|
|
1541
1542
|
]) : e.type === "checkbox" ? GA((V(), N("input", {
|
|
1542
1543
|
key: 3,
|
|
1543
|
-
"onUpdate:modelValue": g[2] || (g[2] = (
|
|
1544
|
+
"onUpdate:modelValue": g[2] || (g[2] = (Q) => s.value = Q),
|
|
1544
1545
|
type: "checkbox"
|
|
1545
1546
|
}, null, 512)), [
|
|
1546
1547
|
[Xu, s.value]
|
|
1547
1548
|
]) : e.type === "file" ? (V(), N("div", X0, [
|
|
1548
1549
|
GA(m("input", {
|
|
1549
1550
|
type: "text",
|
|
1550
|
-
"onUpdate:modelValue": g[3] || (g[3] = (
|
|
1551
|
-
placeholder: "
|
|
1551
|
+
"onUpdate:modelValue": g[3] || (g[3] = (Q) => c.value = Q),
|
|
1552
|
+
placeholder: "请选择图片",
|
|
1552
1553
|
class: "file-url-input",
|
|
1553
1554
|
onInput: d,
|
|
1554
1555
|
disabled: ""
|
|
@@ -1561,12 +1562,12 @@ const yA = (e, A) => {
|
|
|
1561
1562
|
class: "file-select-btn",
|
|
1562
1563
|
disabled: a.value
|
|
1563
1564
|
}, [
|
|
1564
|
-
a.value ? (V(), vA(
|
|
1565
|
+
a.value ? (V(), vA(p, {
|
|
1565
1566
|
key: 0,
|
|
1566
1567
|
class: "is-loading"
|
|
1567
1568
|
}, {
|
|
1568
1569
|
default: j(() => [
|
|
1569
|
-
W(
|
|
1570
|
+
W(h)
|
|
1570
1571
|
]),
|
|
1571
1572
|
_: 1
|
|
1572
1573
|
})) : (V(), N("span", _0, fe(a.value ? "上传中..." : "选择"), 1))
|
|
@@ -1574,14 +1575,14 @@ const yA = (e, A) => {
|
|
|
1574
1575
|
m("input", {
|
|
1575
1576
|
type: "file",
|
|
1576
1577
|
accept: e.accept,
|
|
1577
|
-
onChange:
|
|
1578
|
+
onChange: U,
|
|
1578
1579
|
ref_key: "fileInput",
|
|
1579
1580
|
ref: n,
|
|
1580
1581
|
class: "file-input"
|
|
1581
1582
|
}, null, 40, q0)
|
|
1582
1583
|
])) : GA((V(), N("input", {
|
|
1583
1584
|
key: 5,
|
|
1584
|
-
"onUpdate:modelValue": g[4] || (g[4] = (
|
|
1585
|
+
"onUpdate:modelValue": g[4] || (g[4] = (Q) => s.value = Q),
|
|
1585
1586
|
type: e.type,
|
|
1586
1587
|
min: e.min,
|
|
1587
1588
|
max: e.max,
|
|
@@ -1592,7 +1593,7 @@ const yA = (e, A) => {
|
|
|
1592
1593
|
]);
|
|
1593
1594
|
};
|
|
1594
1595
|
}
|
|
1595
|
-
}, ca = /* @__PURE__ */ yA(Af, [["__scopeId", "data-v-
|
|
1596
|
+
}, ca = /* @__PURE__ */ yA(Af, [["__scopeId", "data-v-205a1d6b"]]);
|
|
1596
1597
|
const ef = { class: "property-layout-container" }, tf = {
|
|
1597
1598
|
key: 0,
|
|
1598
1599
|
class: "property-item-wrapper full-width"
|
|
@@ -1627,10 +1628,10 @@ const ef = { class: "property-layout-container" }, tf = {
|
|
|
1627
1628
|
setup(e, { emit: A }) {
|
|
1628
1629
|
const t = e, r = A, { propsConfig: n, panelType: a } = _u(t), o = b(() => `${a.value}-property-panel`), i = b(() => {
|
|
1629
1630
|
const d = n.value.propertyPanel;
|
|
1630
|
-
return d && typeof d == "object" && !Array.isArray(d) ? Object.keys(d).map((
|
|
1631
|
-
prop:
|
|
1632
|
-
...d[
|
|
1633
|
-
})).filter((
|
|
1631
|
+
return d && typeof d == "object" && !Array.isArray(d) ? Object.keys(d).map((U) => ({
|
|
1632
|
+
prop: U,
|
|
1633
|
+
...d[U]
|
|
1634
|
+
})).filter((U) => !U.hide) : Array.isArray(d) ? d.filter((U) => !U.hide) || [] : [];
|
|
1634
1635
|
}), l = b({
|
|
1635
1636
|
get: () => t.modelValue,
|
|
1636
1637
|
set: (d) => r("update:modelValue", d)
|
|
@@ -1640,10 +1641,10 @@ const ef = { class: "property-layout-container" }, tf = {
|
|
|
1640
1641
|
var f;
|
|
1641
1642
|
if (d.options)
|
|
1642
1643
|
return d.options || [];
|
|
1643
|
-
const
|
|
1644
|
-
return
|
|
1644
|
+
const U = JSON.parse(JSON.stringify(((f = t.options) == null ? void 0 : f[d == null ? void 0 : d.optionsKey]) || [])) || [];
|
|
1645
|
+
return U.unshift({ label: "无", value: "" }), U;
|
|
1645
1646
|
}, u = (d) => d.layout ? d.layout : ["text", "file", "textarea"].includes(d.type) ? "full" : "half";
|
|
1646
|
-
return fs("config", t.propsConfig), (d,
|
|
1647
|
+
return fs("config", t.propsConfig), (d, U) => (V(), N("div", {
|
|
1647
1648
|
class: _A(o.value)
|
|
1648
1649
|
}, [
|
|
1649
1650
|
m("div", ef, [
|
|
@@ -4380,7 +4381,7 @@ const BQ = {
|
|
|
4380
4381
|
}
|
|
4381
4382
|
},
|
|
4382
4383
|
setup(e) {
|
|
4383
|
-
const A = e, t =
|
|
4384
|
+
const A = e, t = Z(null), r = b(() => A.modelValue.__selected || !1), n = b(() => ({
|
|
4384
4385
|
position: "absolute",
|
|
4385
4386
|
left: "-2px",
|
|
4386
4387
|
top: "-2px",
|
|
@@ -4407,16 +4408,16 @@ const BQ = {
|
|
|
4407
4408
|
};
|
|
4408
4409
|
clearTimeout(d), d = setTimeout(B, u);
|
|
4409
4410
|
};
|
|
4410
|
-
}, i =
|
|
4411
|
+
}, i = Z({
|
|
4411
4412
|
value: "",
|
|
4412
4413
|
type: "",
|
|
4413
4414
|
lineColor: "",
|
|
4414
4415
|
codeType: ""
|
|
4415
4416
|
}), l = () => {
|
|
4416
|
-
var
|
|
4417
|
+
var h, p, Q, C, v, w, R, M, T, O;
|
|
4417
4418
|
if (!t.value)
|
|
4418
4419
|
return;
|
|
4419
|
-
const c = at((
|
|
4420
|
+
const c = at((p = (h = A.propsConfig) == null ? void 0 : h.barcode) == null ? void 0 : p.propertyPanel) || {}, u = ((Q = A.modelValue) == null ? void 0 : Q.BarcodeValue) || c.BarcodeValue || "", d = ((C = A.modelValue) == null ? void 0 : C.CodeType) || c.CodeType || "", U = A.modelValue.LineColor || c.LineColor, f = ((O = (T = (M = (R = (w = (v = A.propsConfig) == null ? void 0 : v.barcode) == null ? void 0 : w.propertyPanel) == null ? void 0 : R.find((D) => D.prop === "CodeType")) == null ? void 0 : M.options) == null ? void 0 : T.find((D) => D.value === d)) == null ? void 0 : O.compValue) || "", B = { value: u, type: d, lineColor: U, codeType: f };
|
|
4420
4421
|
if (JSON.stringify(B) !== JSON.stringify(i.value)) {
|
|
4421
4422
|
i.value = B;
|
|
4422
4423
|
try {
|
|
@@ -4430,7 +4431,7 @@ const BQ = {
|
|
|
4430
4431
|
// 条形码的边距
|
|
4431
4432
|
margin: 0,
|
|
4432
4433
|
// 条形码的颜色
|
|
4433
|
-
lineColor:
|
|
4434
|
+
lineColor: U,
|
|
4434
4435
|
// 条形码的高度
|
|
4435
4436
|
height: 50,
|
|
4436
4437
|
// 确保条形码能够正确渲染
|
|
@@ -4725,8 +4726,8 @@ var Uc = {};
|
|
|
4725
4726
|
for (let u = 0; u < a; u++) {
|
|
4726
4727
|
i = l = 0, s = c = null;
|
|
4727
4728
|
for (let d = 0; d < a; d++) {
|
|
4728
|
-
let
|
|
4729
|
-
|
|
4729
|
+
let U = n.get(u, d);
|
|
4730
|
+
U === s ? i++ : (i >= 5 && (o += A.N1 + (i - 5)), s = U, i = 1), U = n.get(d, u), U === c ? l++ : (l >= 5 && (o += A.N1 + (l - 5)), c = U, l = 1);
|
|
4730
4731
|
}
|
|
4731
4732
|
i >= 5 && (o += A.N1 + (i - 5)), l >= 5 && (o += A.N1 + (l - 5));
|
|
4732
4733
|
}
|
|
@@ -5302,66 +5303,66 @@ he.testAlphanumeric = function(A) {
|
|
|
5302
5303
|
})(De);
|
|
5303
5304
|
(function(e) {
|
|
5304
5305
|
const A = zA, t = Gn, r = Ln, n = De, a = ui, o = 7973, i = A.getBCHDigit(o);
|
|
5305
|
-
function l(d,
|
|
5306
|
+
function l(d, U, f) {
|
|
5306
5307
|
for (let B = 1; B <= 40; B++)
|
|
5307
|
-
if (
|
|
5308
|
+
if (U <= e.getCapacity(B, f, d))
|
|
5308
5309
|
return B;
|
|
5309
5310
|
}
|
|
5310
|
-
function s(d,
|
|
5311
|
-
return n.getCharCountIndicator(d,
|
|
5311
|
+
function s(d, U) {
|
|
5312
|
+
return n.getCharCountIndicator(d, U) + 4;
|
|
5312
5313
|
}
|
|
5313
|
-
function c(d,
|
|
5314
|
+
function c(d, U) {
|
|
5314
5315
|
let f = 0;
|
|
5315
5316
|
return d.forEach(function(B) {
|
|
5316
|
-
const g = s(B.mode,
|
|
5317
|
+
const g = s(B.mode, U);
|
|
5317
5318
|
f += g + B.getBitsLength();
|
|
5318
5319
|
}), f;
|
|
5319
5320
|
}
|
|
5320
|
-
function u(d,
|
|
5321
|
+
function u(d, U) {
|
|
5321
5322
|
for (let f = 1; f <= 40; f++)
|
|
5322
|
-
if (c(d, f) <= e.getCapacity(f,
|
|
5323
|
+
if (c(d, f) <= e.getCapacity(f, U, n.MIXED))
|
|
5323
5324
|
return f;
|
|
5324
5325
|
}
|
|
5325
|
-
e.from = function(
|
|
5326
|
-
return a.isValid(
|
|
5327
|
-
}, e.getCapacity = function(
|
|
5328
|
-
if (!a.isValid(
|
|
5326
|
+
e.from = function(U, f) {
|
|
5327
|
+
return a.isValid(U) ? parseInt(U, 10) : f;
|
|
5328
|
+
}, e.getCapacity = function(U, f, B) {
|
|
5329
|
+
if (!a.isValid(U))
|
|
5329
5330
|
throw new Error("Invalid QR Code version");
|
|
5330
5331
|
typeof B > "u" && (B = n.BYTE);
|
|
5331
|
-
const g = A.getSymbolTotalCodewords(
|
|
5332
|
+
const g = A.getSymbolTotalCodewords(U), h = t.getTotalCodewordsCount(U, f), p = (g - h) * 8;
|
|
5332
5333
|
if (B === n.MIXED)
|
|
5333
|
-
return
|
|
5334
|
-
const
|
|
5334
|
+
return p;
|
|
5335
|
+
const Q = p - s(B, U);
|
|
5335
5336
|
switch (B) {
|
|
5336
5337
|
case n.NUMERIC:
|
|
5337
|
-
return Math.floor(
|
|
5338
|
+
return Math.floor(Q / 10 * 3);
|
|
5338
5339
|
case n.ALPHANUMERIC:
|
|
5339
|
-
return Math.floor(
|
|
5340
|
+
return Math.floor(Q / 11 * 2);
|
|
5340
5341
|
case n.KANJI:
|
|
5341
|
-
return Math.floor(
|
|
5342
|
+
return Math.floor(Q / 13);
|
|
5342
5343
|
case n.BYTE:
|
|
5343
5344
|
default:
|
|
5344
|
-
return Math.floor(
|
|
5345
|
+
return Math.floor(Q / 8);
|
|
5345
5346
|
}
|
|
5346
|
-
}, e.getBestVersionForData = function(
|
|
5347
|
+
}, e.getBestVersionForData = function(U, f) {
|
|
5347
5348
|
let B;
|
|
5348
5349
|
const g = r.from(f, r.M);
|
|
5349
|
-
if (Array.isArray(
|
|
5350
|
-
if (
|
|
5351
|
-
return u(
|
|
5352
|
-
if (
|
|
5350
|
+
if (Array.isArray(U)) {
|
|
5351
|
+
if (U.length > 1)
|
|
5352
|
+
return u(U, g);
|
|
5353
|
+
if (U.length === 0)
|
|
5353
5354
|
return 1;
|
|
5354
|
-
B =
|
|
5355
|
+
B = U[0];
|
|
5355
5356
|
} else
|
|
5356
|
-
B =
|
|
5357
|
+
B = U;
|
|
5357
5358
|
return l(B.mode, B.getLength(), g);
|
|
5358
|
-
}, e.getEncodedBits = function(
|
|
5359
|
-
if (!a.isValid(
|
|
5359
|
+
}, e.getEncodedBits = function(U) {
|
|
5360
|
+
if (!a.isValid(U) || U < 7)
|
|
5360
5361
|
throw new Error("Invalid QR Code version");
|
|
5361
|
-
let f =
|
|
5362
|
+
let f = U << 12;
|
|
5362
5363
|
for (; A.getBCHDigit(f) - i >= 0; )
|
|
5363
5364
|
f ^= o << A.getBCHDigit(f) - i;
|
|
5364
|
-
return
|
|
5365
|
+
return U << 12 | f;
|
|
5365
5366
|
};
|
|
5366
5367
|
})(wc);
|
|
5367
5368
|
var Cc = {};
|
|
@@ -5518,14 +5519,14 @@ var OQ = It, vc = { exports: {} };
|
|
|
5518
5519
|
o[r] = 0;
|
|
5519
5520
|
var i = A.PriorityQueue.make();
|
|
5520
5521
|
i.push(r, 0);
|
|
5521
|
-
for (var l, s, c, u, d,
|
|
5522
|
+
for (var l, s, c, u, d, U, f, B, g; !i.empty(); ) {
|
|
5522
5523
|
l = i.pop(), s = l.value, u = l.cost, d = t[s] || {};
|
|
5523
5524
|
for (c in d)
|
|
5524
|
-
d.hasOwnProperty(c) && (
|
|
5525
|
+
d.hasOwnProperty(c) && (U = d[c], f = u + U, B = o[c], g = typeof o[c] > "u", (g || B > f) && (o[c] = f, i.push(c, f), a[c] = s));
|
|
5525
5526
|
}
|
|
5526
5527
|
if (typeof n < "u" && typeof o[n] > "u") {
|
|
5527
|
-
var
|
|
5528
|
-
throw new Error(
|
|
5528
|
+
var h = ["Could not find a path from ", r, " to ", n, "."].join("");
|
|
5529
|
+
throw new Error(h);
|
|
5529
5530
|
}
|
|
5530
5531
|
return a;
|
|
5531
5532
|
},
|
|
@@ -5579,25 +5580,25 @@ var OQ = It, vc = { exports: {} };
|
|
|
5579
5580
|
var WQ = vc.exports;
|
|
5580
5581
|
(function(e) {
|
|
5581
5582
|
const A = De, t = SQ, r = bQ, n = xQ, a = OQ, o = he, i = zA, l = WQ;
|
|
5582
|
-
function s(
|
|
5583
|
-
return unescape(encodeURIComponent(
|
|
5583
|
+
function s(h) {
|
|
5584
|
+
return unescape(encodeURIComponent(h)).length;
|
|
5584
5585
|
}
|
|
5585
|
-
function c(
|
|
5586
|
+
function c(h, p, Q) {
|
|
5586
5587
|
const C = [];
|
|
5587
5588
|
let v;
|
|
5588
|
-
for (; (v =
|
|
5589
|
+
for (; (v = h.exec(Q)) !== null; )
|
|
5589
5590
|
C.push({
|
|
5590
5591
|
data: v[0],
|
|
5591
5592
|
index: v.index,
|
|
5592
|
-
mode:
|
|
5593
|
+
mode: p,
|
|
5593
5594
|
length: v[0].length
|
|
5594
5595
|
});
|
|
5595
5596
|
return C;
|
|
5596
5597
|
}
|
|
5597
|
-
function u(
|
|
5598
|
-
const
|
|
5598
|
+
function u(h) {
|
|
5599
|
+
const p = c(o.NUMERIC, A.NUMERIC, h), Q = c(o.ALPHANUMERIC, A.ALPHANUMERIC, h);
|
|
5599
5600
|
let C, v;
|
|
5600
|
-
return i.isKanjiModeEnabled() ? (C = c(o.BYTE, A.BYTE,
|
|
5601
|
+
return i.isKanjiModeEnabled() ? (C = c(o.BYTE, A.BYTE, h), v = c(o.KANJI, A.KANJI, h)) : (C = c(o.BYTE_KANJI, A.BYTE, h), v = []), p.concat(Q, C, v).sort(function(R, M) {
|
|
5601
5602
|
return R.index - M.index;
|
|
5602
5603
|
}).map(function(R) {
|
|
5603
5604
|
return {
|
|
@@ -5607,104 +5608,104 @@ var WQ = vc.exports;
|
|
|
5607
5608
|
};
|
|
5608
5609
|
});
|
|
5609
5610
|
}
|
|
5610
|
-
function d(
|
|
5611
|
-
switch (
|
|
5611
|
+
function d(h, p) {
|
|
5612
|
+
switch (p) {
|
|
5612
5613
|
case A.NUMERIC:
|
|
5613
|
-
return t.getBitsLength(
|
|
5614
|
+
return t.getBitsLength(h);
|
|
5614
5615
|
case A.ALPHANUMERIC:
|
|
5615
|
-
return r.getBitsLength(
|
|
5616
|
+
return r.getBitsLength(h);
|
|
5616
5617
|
case A.KANJI:
|
|
5617
|
-
return a.getBitsLength(
|
|
5618
|
+
return a.getBitsLength(h);
|
|
5618
5619
|
case A.BYTE:
|
|
5619
|
-
return n.getBitsLength(
|
|
5620
|
+
return n.getBitsLength(h);
|
|
5620
5621
|
}
|
|
5621
5622
|
}
|
|
5622
|
-
function h
|
|
5623
|
-
return
|
|
5624
|
-
const C =
|
|
5625
|
-
return C && C.mode ===
|
|
5623
|
+
function U(h) {
|
|
5624
|
+
return h.reduce(function(p, Q) {
|
|
5625
|
+
const C = p.length - 1 >= 0 ? p[p.length - 1] : null;
|
|
5626
|
+
return C && C.mode === Q.mode ? (p[p.length - 1].data += Q.data, p) : (p.push(Q), p);
|
|
5626
5627
|
}, []);
|
|
5627
5628
|
}
|
|
5628
|
-
function f(
|
|
5629
|
-
const
|
|
5630
|
-
for (let
|
|
5631
|
-
const C =
|
|
5629
|
+
function f(h) {
|
|
5630
|
+
const p = [];
|
|
5631
|
+
for (let Q = 0; Q < h.length; Q++) {
|
|
5632
|
+
const C = h[Q];
|
|
5632
5633
|
switch (C.mode) {
|
|
5633
5634
|
case A.NUMERIC:
|
|
5634
|
-
|
|
5635
|
+
p.push([
|
|
5635
5636
|
C,
|
|
5636
5637
|
{ data: C.data, mode: A.ALPHANUMERIC, length: C.length },
|
|
5637
5638
|
{ data: C.data, mode: A.BYTE, length: C.length }
|
|
5638
5639
|
]);
|
|
5639
5640
|
break;
|
|
5640
5641
|
case A.ALPHANUMERIC:
|
|
5641
|
-
|
|
5642
|
+
p.push([
|
|
5642
5643
|
C,
|
|
5643
5644
|
{ data: C.data, mode: A.BYTE, length: C.length }
|
|
5644
5645
|
]);
|
|
5645
5646
|
break;
|
|
5646
5647
|
case A.KANJI:
|
|
5647
|
-
|
|
5648
|
+
p.push([
|
|
5648
5649
|
C,
|
|
5649
5650
|
{ data: C.data, mode: A.BYTE, length: s(C.data) }
|
|
5650
5651
|
]);
|
|
5651
5652
|
break;
|
|
5652
5653
|
case A.BYTE:
|
|
5653
|
-
|
|
5654
|
+
p.push([
|
|
5654
5655
|
{ data: C.data, mode: A.BYTE, length: s(C.data) }
|
|
5655
5656
|
]);
|
|
5656
5657
|
}
|
|
5657
5658
|
}
|
|
5658
|
-
return
|
|
5659
|
+
return p;
|
|
5659
5660
|
}
|
|
5660
|
-
function B(
|
|
5661
|
-
const
|
|
5661
|
+
function B(h, p) {
|
|
5662
|
+
const Q = {}, C = { start: {} };
|
|
5662
5663
|
let v = ["start"];
|
|
5663
|
-
for (let w = 0; w <
|
|
5664
|
-
const R =
|
|
5664
|
+
for (let w = 0; w < h.length; w++) {
|
|
5665
|
+
const R = h[w], M = [];
|
|
5665
5666
|
for (let T = 0; T < R.length; T++) {
|
|
5666
5667
|
const O = R[T], D = "" + w + T;
|
|
5667
|
-
M.push(D),
|
|
5668
|
+
M.push(D), Q[D] = { node: O, lastCount: 0 }, C[D] = {};
|
|
5668
5669
|
for (let L = 0; L < v.length; L++) {
|
|
5669
5670
|
const S = v[L];
|
|
5670
|
-
|
|
5671
|
+
Q[S] && Q[S].node.mode === O.mode ? (C[S][D] = d(Q[S].lastCount + O.length, O.mode) - d(Q[S].lastCount, O.mode), Q[S].lastCount += O.length) : (Q[S] && (Q[S].lastCount = O.length), C[S][D] = d(O.length, O.mode) + 4 + A.getCharCountIndicator(O.mode, p));
|
|
5671
5672
|
}
|
|
5672
5673
|
}
|
|
5673
5674
|
v = M;
|
|
5674
5675
|
}
|
|
5675
5676
|
for (let w = 0; w < v.length; w++)
|
|
5676
5677
|
C[v[w]].end = 0;
|
|
5677
|
-
return { map: C, table:
|
|
5678
|
+
return { map: C, table: Q };
|
|
5678
5679
|
}
|
|
5679
|
-
function g(
|
|
5680
|
-
let
|
|
5681
|
-
const C = A.getBestModeForData(
|
|
5682
|
-
if (
|
|
5683
|
-
throw new Error('"' +
|
|
5680
|
+
function g(h, p) {
|
|
5681
|
+
let Q;
|
|
5682
|
+
const C = A.getBestModeForData(h);
|
|
5683
|
+
if (Q = A.from(p, C), Q !== A.BYTE && Q.bit < C.bit)
|
|
5684
|
+
throw new Error('"' + h + '" cannot be encoded with mode ' + A.toString(Q) + `.
|
|
5684
5685
|
Suggested mode is: ` + A.toString(C));
|
|
5685
|
-
switch (
|
|
5686
|
+
switch (Q === A.KANJI && !i.isKanjiModeEnabled() && (Q = A.BYTE), Q) {
|
|
5686
5687
|
case A.NUMERIC:
|
|
5687
|
-
return new t(
|
|
5688
|
+
return new t(h);
|
|
5688
5689
|
case A.ALPHANUMERIC:
|
|
5689
|
-
return new r(
|
|
5690
|
+
return new r(h);
|
|
5690
5691
|
case A.KANJI:
|
|
5691
|
-
return new a(
|
|
5692
|
+
return new a(h);
|
|
5692
5693
|
case A.BYTE:
|
|
5693
|
-
return new n(
|
|
5694
|
+
return new n(h);
|
|
5694
5695
|
}
|
|
5695
5696
|
}
|
|
5696
|
-
e.fromArray = function(
|
|
5697
|
-
return
|
|
5698
|
-
return typeof C == "string" ?
|
|
5697
|
+
e.fromArray = function(p) {
|
|
5698
|
+
return p.reduce(function(Q, C) {
|
|
5699
|
+
return typeof C == "string" ? Q.push(g(C, null)) : C.data && Q.push(g(C.data, C.mode)), Q;
|
|
5699
5700
|
}, []);
|
|
5700
|
-
}, e.fromString = function(
|
|
5701
|
-
const C = u(
|
|
5701
|
+
}, e.fromString = function(p, Q) {
|
|
5702
|
+
const C = u(p, i.isKanjiModeEnabled()), v = f(C), w = B(v, Q), R = l.find_path(w.map, "start", "end"), M = [];
|
|
5702
5703
|
for (let T = 1; T < R.length - 1; T++)
|
|
5703
5704
|
M.push(w.table[R[T]].node);
|
|
5704
|
-
return e.fromArray(
|
|
5705
|
-
}, e.rawSplit = function(
|
|
5705
|
+
return e.fromArray(U(M));
|
|
5706
|
+
}, e.rawSplit = function(p) {
|
|
5706
5707
|
return e.fromArray(
|
|
5707
|
-
u(
|
|
5708
|
+
u(p, i.isKanjiModeEnabled())
|
|
5708
5709
|
);
|
|
5709
5710
|
};
|
|
5710
5711
|
})(mc);
|
|
@@ -5778,24 +5779,24 @@ function $Q(e, A, t) {
|
|
|
5778
5779
|
return Aw(r, e, A);
|
|
5779
5780
|
}
|
|
5780
5781
|
function Aw(e, A, t) {
|
|
5781
|
-
const r = zn.getSymbolTotalCodewords(A), n = _a.getTotalCodewordsCount(A, t), a = r - n, o = _a.getBlocksCount(A, t), i = r % o, l = o - i, s = Math.floor(r / o), c = Math.floor(a / o), u = c + 1, d = s - c,
|
|
5782
|
+
const r = zn.getSymbolTotalCodewords(A), n = _a.getTotalCodewordsCount(A, t), a = r - n, o = _a.getBlocksCount(A, t), i = r % o, l = o - i, s = Math.floor(r / o), c = Math.floor(a / o), u = c + 1, d = s - c, U = new GQ(d);
|
|
5782
5783
|
let f = 0;
|
|
5783
5784
|
const B = new Array(o), g = new Array(o);
|
|
5784
|
-
let
|
|
5785
|
-
const
|
|
5785
|
+
let h = 0;
|
|
5786
|
+
const p = new Uint8Array(e.buffer);
|
|
5786
5787
|
for (let R = 0; R < o; R++) {
|
|
5787
5788
|
const M = R < l ? c : u;
|
|
5788
|
-
B[R] =
|
|
5789
|
+
B[R] = p.slice(f, f + M), g[R] = U.encode(B[R]), f += M, h = Math.max(h, M);
|
|
5789
5790
|
}
|
|
5790
|
-
const
|
|
5791
|
+
const Q = new Uint8Array(r);
|
|
5791
5792
|
let C = 0, v, w;
|
|
5792
|
-
for (v = 0; v <
|
|
5793
|
+
for (v = 0; v < h; v++)
|
|
5793
5794
|
for (w = 0; w < o; w++)
|
|
5794
|
-
v < B[w].length && (
|
|
5795
|
+
v < B[w].length && (Q[C++] = B[w][v]);
|
|
5795
5796
|
for (v = 0; v < d; v++)
|
|
5796
5797
|
for (w = 0; w < o; w++)
|
|
5797
|
-
|
|
5798
|
-
return
|
|
5798
|
+
Q[C++] = g[w][v];
|
|
5799
|
+
return Q;
|
|
5799
5800
|
}
|
|
5800
5801
|
function ew(e, A, t, r) {
|
|
5801
5802
|
let n;
|
|
@@ -5882,11 +5883,11 @@ var yc = {}, di = {};
|
|
|
5882
5883
|
}, e.qrToImageData = function(r, n, a) {
|
|
5883
5884
|
const o = n.modules.size, i = n.modules.data, l = e.getScale(o, a), s = Math.floor((o + a.margin * 2) * l), c = a.margin * l, u = [a.color.light, a.color.dark];
|
|
5884
5885
|
for (let d = 0; d < s; d++)
|
|
5885
|
-
for (let
|
|
5886
|
-
let f = (d * s +
|
|
5887
|
-
if (d >= c &&
|
|
5888
|
-
const g = Math.floor((d - c) / l),
|
|
5889
|
-
B = u[i[g * o +
|
|
5886
|
+
for (let U = 0; U < s; U++) {
|
|
5887
|
+
let f = (d * s + U) * 4, B = a.color.light;
|
|
5888
|
+
if (d >= c && U >= c && d < s - c && U < s - c) {
|
|
5889
|
+
const g = Math.floor((d - c) / l), h = Math.floor((U - c) / l);
|
|
5890
|
+
B = u[i[g * o + h] ? 1 : 0];
|
|
5890
5891
|
}
|
|
5891
5892
|
r[f++] = B.r, r[f++] = B.g, r[f++] = B.b, r[f] = B.a;
|
|
5892
5893
|
}
|
|
@@ -5980,7 +5981,7 @@ const ow = { class: "qrcode-canvas-fixed" }, iw = ["src", "alt"], lw = 200, sw =
|
|
|
5980
5981
|
propsConfig: { type: Object, required: !0 }
|
|
5981
5982
|
},
|
|
5982
5983
|
setup(e) {
|
|
5983
|
-
const A = e, t =
|
|
5984
|
+
const A = e, t = Z(""), r = Z(null), n = b(() => A.modelValue.__selected || !1), a = b(() => ({
|
|
5984
5985
|
position: "absolute",
|
|
5985
5986
|
left: "-2px",
|
|
5986
5987
|
top: "-2px",
|
|
@@ -5990,16 +5991,16 @@ const ow = { class: "qrcode-canvas-fixed" }, iw = ["src", "alt"], lw = 200, sw =
|
|
|
5990
5991
|
pointerEvents: "none",
|
|
5991
5992
|
boxSizing: "border-box",
|
|
5992
5993
|
zIndex: 1e3
|
|
5993
|
-
})), o =
|
|
5994
|
+
})), o = Z(null), i = () => {
|
|
5994
5995
|
var B, g;
|
|
5995
5996
|
return o.value || (o.value = at((g = (B = A.propsConfig) == null ? void 0 : B.qrcode) == null ? void 0 : g.propertyPanel) || {}), o.value;
|
|
5996
5997
|
}, l = (B, g) => g ? B.QRCodeValue !== g.QRCodeValue || B.QRCodeForeground !== g.QRCodeForeground || B.QRCodeBackground !== g.QRCodeBackground || B.QRCodeErrorLevel !== g.QRCodeErrorLevel : !0, s = async () => {
|
|
5997
|
-
var B, g,
|
|
5998
|
+
var B, g, h, p;
|
|
5998
5999
|
try {
|
|
5999
|
-
const
|
|
6000
|
-
let v = ((g = A.modelValue) == null ? void 0 : g.QRCodeForeground) ||
|
|
6000
|
+
const Q = i(), C = ((B = A.modelValue) == null ? void 0 : B.QRCodeValue) || Q.QRCodeValue || "测试二维码";
|
|
6001
|
+
let v = ((g = A.modelValue) == null ? void 0 : g.QRCodeForeground) || Q.QRCodeForeground || "#000000", w = ((h = A.modelValue) == null ? void 0 : h.QRCodeBackground) || Q.QRCodeBackground || "#ffffff";
|
|
6001
6002
|
(v === "transparent" || !v) && (v = "#000000"), (w === "transparent" || !w) && (w = "#ffffff");
|
|
6002
|
-
const M = { L: "low", M: "medium", Q: "quartile", H: "high" }[((
|
|
6003
|
+
const M = { L: "low", M: "medium", Q: "quartile", H: "high" }[((p = A.modelValue) == null ? void 0 : p.QRCodeErrorLevel) || Q.QRCodeErrorLevel || "M"] || "medium";
|
|
6003
6004
|
C && C.trim() ? t.value = await mr.toDataURL(C, {
|
|
6004
6005
|
width: lw,
|
|
6005
6006
|
margin: 0,
|
|
@@ -6010,15 +6011,15 @@ const ow = { class: "qrcode-canvas-fixed" }, iw = ["src", "alt"], lw = 200, sw =
|
|
|
6010
6011
|
},
|
|
6011
6012
|
errorCorrectionLevel: M
|
|
6012
6013
|
}) : t.value = "";
|
|
6013
|
-
} catch (
|
|
6014
|
-
console.error("生成二维码失败:",
|
|
6014
|
+
} catch (Q) {
|
|
6015
|
+
console.error("生成二维码失败:", Q), t.value = "";
|
|
6015
6016
|
}
|
|
6016
6017
|
}, c = b(() => {
|
|
6017
|
-
var
|
|
6018
|
-
const B = i(), g = ((
|
|
6018
|
+
var p, Q;
|
|
6019
|
+
const B = i(), g = ((p = A.modelValue) == null ? void 0 : p.width) ?? B.width, h = ((Q = A.modelValue) == null ? void 0 : Q.height) ?? B.height;
|
|
6019
6020
|
return {
|
|
6020
6021
|
width: pn(g) + "px",
|
|
6021
|
-
height: pn(
|
|
6022
|
+
height: pn(h) + "px",
|
|
6022
6023
|
display: "flex",
|
|
6023
6024
|
alignItems: "center",
|
|
6024
6025
|
justifyContent: "center",
|
|
@@ -6027,13 +6028,13 @@ const ow = { class: "qrcode-canvas-fixed" }, iw = ["src", "alt"], lw = 200, sw =
|
|
|
6027
6028
|
}), u = () => {
|
|
6028
6029
|
}, d = () => {
|
|
6029
6030
|
console.warn("QR Code image failed to load"), s();
|
|
6030
|
-
},
|
|
6031
|
+
}, U = () => {
|
|
6031
6032
|
const B = A.modelValue, g = r.value;
|
|
6032
6033
|
l(B, g) && s();
|
|
6033
6034
|
}, f = (() => {
|
|
6034
6035
|
let B;
|
|
6035
6036
|
return () => {
|
|
6036
|
-
clearTimeout(B), B = setTimeout(
|
|
6037
|
+
clearTimeout(B), B = setTimeout(U, 50);
|
|
6037
6038
|
};
|
|
6038
6039
|
})();
|
|
6039
6040
|
return Oe(() => {
|
|
@@ -6052,17 +6053,17 @@ const ow = { class: "qrcode-canvas-fixed" }, iw = ["src", "alt"], lw = 200, sw =
|
|
|
6052
6053
|
}, { deep: !0 }), Ur(() => {
|
|
6053
6054
|
r.value = null, o.value = null, t.value = "";
|
|
6054
6055
|
}), (B, g) => {
|
|
6055
|
-
var
|
|
6056
|
+
var h;
|
|
6056
6057
|
return V(), N("div", {
|
|
6057
6058
|
class: "qrcode-component",
|
|
6058
|
-
onDragstart: g[0] || (g[0] =
|
|
6059
|
+
onDragstart: g[0] || (g[0] = xA(() => {
|
|
6059
6060
|
}, ["prevent"])),
|
|
6060
6061
|
style: AA(c.value)
|
|
6061
6062
|
}, [
|
|
6062
6063
|
m("div", ow, [
|
|
6063
6064
|
m("img", {
|
|
6064
6065
|
src: t.value,
|
|
6065
|
-
alt: "QR Code: " + (((
|
|
6066
|
+
alt: "QR Code: " + (((h = A.modelValue) == null ? void 0 : h.QRCodeValue) || ""),
|
|
6066
6067
|
class: "qrcode-image",
|
|
6067
6068
|
onLoad: u,
|
|
6068
6069
|
onError: d
|
|
@@ -6145,7 +6146,7 @@ const Uw = {
|
|
|
6145
6146
|
},
|
|
6146
6147
|
emits: ["update:modelValue"],
|
|
6147
6148
|
setup(e, { emit: A }) {
|
|
6148
|
-
const t = e, r = A, n =
|
|
6149
|
+
const t = e, r = A, n = Z(""), a = Z(!1), o = Z(!1), i = b(() => !!n.value && !a.value && !o.value), l = b(() => t.modelValue.__selected || !1), s = b(() => ({
|
|
6149
6150
|
position: "absolute",
|
|
6150
6151
|
left: "-2px",
|
|
6151
6152
|
top: "-2px",
|
|
@@ -6155,9 +6156,9 @@ const Uw = {
|
|
|
6155
6156
|
pointerEvents: "none",
|
|
6156
6157
|
boxSizing: "border-box",
|
|
6157
6158
|
zIndex: 1e3
|
|
6158
|
-
})), c =
|
|
6159
|
-
var
|
|
6160
|
-
return c.value || (c.value = at((
|
|
6159
|
+
})), c = Z(null), u = () => {
|
|
6160
|
+
var p, Q;
|
|
6161
|
+
return c.value || (c.value = at((Q = (p = t.propsConfig) == null ? void 0 : p.image) == null ? void 0 : Q.propertyPanel) || {}), c.value;
|
|
6161
6162
|
}, d = b(() => ({
|
|
6162
6163
|
width: "100%",
|
|
6163
6164
|
height: "100%",
|
|
@@ -6166,16 +6167,16 @@ const Uw = {
|
|
|
6166
6167
|
justifyContent: "center",
|
|
6167
6168
|
overflow: "hidden",
|
|
6168
6169
|
position: "relative"
|
|
6169
|
-
})),
|
|
6170
|
+
})), U = b(() => {
|
|
6170
6171
|
var v;
|
|
6171
6172
|
if (!n.value)
|
|
6172
6173
|
return {};
|
|
6173
|
-
const
|
|
6174
|
+
const p = u(), Q = ((v = t.modelValue) == null ? void 0 : v.ScaleMode) ?? p.ScaleMode ?? 1, C = {
|
|
6174
6175
|
maxWidth: "100%",
|
|
6175
6176
|
maxHeight: "100%",
|
|
6176
6177
|
display: "block"
|
|
6177
6178
|
};
|
|
6178
|
-
switch (
|
|
6179
|
+
switch (Q) {
|
|
6179
6180
|
case 1:
|
|
6180
6181
|
return {
|
|
6181
6182
|
...C,
|
|
@@ -6208,20 +6209,20 @@ const Uw = {
|
|
|
6208
6209
|
}, B = () => {
|
|
6209
6210
|
a.value = !1, o.value = !0, n.value = "";
|
|
6210
6211
|
try {
|
|
6211
|
-
const
|
|
6212
|
-
|
|
6212
|
+
const p = { ...t.modelValue || {} };
|
|
6213
|
+
p.ImageSrc = "", r("update:modelValue", p);
|
|
6213
6214
|
} catch {
|
|
6214
6215
|
}
|
|
6215
6216
|
dr && dr.error("图片加载失败,请重新上传");
|
|
6216
6217
|
}, g = () => {
|
|
6217
6218
|
var v;
|
|
6218
|
-
const
|
|
6219
|
+
const p = u(), Q = ((v = t.modelValue) == null ? void 0 : v.ImageSrc) || p.ImageSrc || "";
|
|
6219
6220
|
let C = "";
|
|
6220
|
-
typeof
|
|
6221
|
-
},
|
|
6222
|
-
var
|
|
6223
|
-
const
|
|
6224
|
-
return typeof
|
|
6221
|
+
typeof Q == "object" && Q.fileSrc ? C = Q.fileSrc : typeof Q == "string" && (C = Q), C !== n.value && (n.value = C, a.value = !1, o.value = !1);
|
|
6222
|
+
}, h = () => {
|
|
6223
|
+
var Q;
|
|
6224
|
+
const p = (Q = t.modelValue) == null ? void 0 : Q.ImageSrc;
|
|
6225
|
+
return typeof p == "object" && p.fileName ? p.fileName : "未命名图片";
|
|
6225
6226
|
};
|
|
6226
6227
|
return FA(() => t.modelValue, () => {
|
|
6227
6228
|
g();
|
|
@@ -6231,7 +6232,7 @@ const Uw = {
|
|
|
6231
6232
|
de(() => {
|
|
6232
6233
|
g();
|
|
6233
6234
|
});
|
|
6234
|
-
}), (
|
|
6235
|
+
}), (p, Q) => {
|
|
6235
6236
|
const C = QA("el-icon-picture-filled"), v = QA("el-icon"), w = QA("el-icon-loading");
|
|
6236
6237
|
return V(), N("div", {
|
|
6237
6238
|
class: "image-component",
|
|
@@ -6240,14 +6241,12 @@ const Uw = {
|
|
|
6240
6241
|
n.value ? (V(), N("img", {
|
|
6241
6242
|
key: 1,
|
|
6242
6243
|
src: n.value,
|
|
6243
|
-
alt: "Image: " +
|
|
6244
|
+
alt: "Image: " + h(),
|
|
6244
6245
|
class: "image-content",
|
|
6245
|
-
style: AA(
|
|
6246
|
+
style: AA(U.value),
|
|
6246
6247
|
onLoad: f,
|
|
6247
6248
|
onError: B,
|
|
6248
|
-
onDragstart:
|
|
6249
|
-
}, ["prevent"])),
|
|
6250
|
-
onMousedown: p[1] || (p[1] = SA(() => {
|
|
6249
|
+
onDragstart: Q[0] || (Q[0] = xA(() => {
|
|
6251
6250
|
}, ["prevent"]))
|
|
6252
6251
|
}, null, 44, pw)) : (V(), N("div", Uw, [
|
|
6253
6252
|
W(v, {
|
|
@@ -6280,7 +6279,7 @@ const Uw = {
|
|
|
6280
6279
|
], 4);
|
|
6281
6280
|
};
|
|
6282
6281
|
}
|
|
6283
|
-
}, Fw = /* @__PURE__ */ yA(ww, [["__scopeId", "data-v-
|
|
6282
|
+
}, Fw = /* @__PURE__ */ yA(ww, [["__scopeId", "data-v-c34c1c4a"]]);
|
|
6284
6283
|
const Cw = {
|
|
6285
6284
|
__name: "ImagePropertyPanel",
|
|
6286
6285
|
props: {
|
|
@@ -6335,7 +6334,7 @@ function yw(e, A) {
|
|
|
6335
6334
|
}
|
|
6336
6335
|
const Rw = /* @__PURE__ */ yA(mw, [["render", yw]]);
|
|
6337
6336
|
function Tc(e, A) {
|
|
6338
|
-
const t =
|
|
6337
|
+
const t = Z({}), r = () => {
|
|
6339
6338
|
var o, i;
|
|
6340
6339
|
if ((i = (o = e.propsConfig) == null ? void 0 : o[A]) != null && i.propertyPanel) {
|
|
6341
6340
|
const l = at(e.propsConfig[A].propertyPanel);
|
|
@@ -6463,11 +6462,11 @@ const Sw = {
|
|
|
6463
6462
|
emits: ["update:modelValue"],
|
|
6464
6463
|
setup(e, { emit: A }) {
|
|
6465
6464
|
const t = e, { defaultProps: r, isSelected: n } = Tc(t, "rectangle"), a = b(() => Vw()), o = b(() => Tw()), i = b(() => {
|
|
6466
|
-
var g,
|
|
6467
|
-
return fi(((g = t.modelValue) == null ? void 0 : g.LineWidth) ?? ((
|
|
6465
|
+
var g, h;
|
|
6466
|
+
return fi(((g = t.modelValue) == null ? void 0 : g.LineWidth) ?? ((h = r.value) == null ? void 0 : h.LineWidth));
|
|
6468
6467
|
}), l = b(() => {
|
|
6469
|
-
var g,
|
|
6470
|
-
return Sc(((g = t.modelValue) == null ? void 0 : g.LineStyle) ?? ((
|
|
6468
|
+
var g, h;
|
|
6469
|
+
return Sc(((g = t.modelValue) == null ? void 0 : g.LineStyle) ?? ((h = r.value) == null ? void 0 : h.LineStyle));
|
|
6471
6470
|
}), s = b(() => l.value === "solid" && i.value < 1), c = b(() => {
|
|
6472
6471
|
if (s.value) {
|
|
6473
6472
|
const g = dl(t.modelValue, r.value);
|
|
@@ -6482,7 +6481,7 @@ const Sw = {
|
|
|
6482
6481
|
background: u,
|
|
6483
6482
|
transform: `scaleY(${i.value})`,
|
|
6484
6483
|
transformOrigin: "top left"
|
|
6485
|
-
})),
|
|
6484
|
+
})), U = b(() => ({
|
|
6486
6485
|
left: 0,
|
|
6487
6486
|
bottom: 0,
|
|
6488
6487
|
width: "100%",
|
|
@@ -6508,8 +6507,8 @@ const Sw = {
|
|
|
6508
6507
|
transformOrigin: "top right"
|
|
6509
6508
|
}));
|
|
6510
6509
|
return FA(() => t.propsConfig, () => {
|
|
6511
|
-
var
|
|
6512
|
-
const g = at((
|
|
6510
|
+
var h, p;
|
|
6511
|
+
const g = at((p = (h = t.propsConfig) == null ? void 0 : h.rectangle) == null ? void 0 : p.propertyPanel) || {};
|
|
6513
6512
|
r.value = {
|
|
6514
6513
|
LineWidth: g.LineWidth ?? "0.75pt",
|
|
6515
6514
|
LineStyle: g.LineStyle ?? "实线",
|
|
@@ -6517,7 +6516,7 @@ const Sw = {
|
|
|
6517
6516
|
};
|
|
6518
6517
|
}, { deep: !0, immediate: !0 }), Ur(() => {
|
|
6519
6518
|
r.value = {};
|
|
6520
|
-
}), (g,
|
|
6519
|
+
}), (g, h) => (V(), N("div", {
|
|
6521
6520
|
class: "rectangle-component",
|
|
6522
6521
|
style: AA(o.value)
|
|
6523
6522
|
}, [
|
|
@@ -6536,7 +6535,7 @@ const Sw = {
|
|
|
6536
6535
|
}, null, 4),
|
|
6537
6536
|
m("div", {
|
|
6538
6537
|
class: "hairline-edge bottom",
|
|
6539
|
-
style: AA(
|
|
6538
|
+
style: AA(U.value)
|
|
6540
6539
|
}, null, 4),
|
|
6541
6540
|
m("div", {
|
|
6542
6541
|
class: "hairline-edge left",
|
|
@@ -6621,7 +6620,7 @@ const Ow = ["width", "height"], Ww = ["y1", "x2", "y2", "stroke-width", "stroke-
|
|
|
6621
6620
|
return `${f},${B}`;
|
|
6622
6621
|
}
|
|
6623
6622
|
return null;
|
|
6624
|
-
}), d = b(() => Nw(o.value, s.value)),
|
|
6623
|
+
}), d = b(() => Nw(o.value, s.value)), U = b(() => Iw(t.modelValue, n.value));
|
|
6625
6624
|
return FA(() => t.modelValue, (f) => {
|
|
6626
6625
|
if (f) {
|
|
6627
6626
|
n.value = {
|
|
@@ -6647,7 +6646,7 @@ const Ow = ["width", "height"], Ww = ["y1", "x2", "y2", "stroke-width", "stroke-
|
|
|
6647
6646
|
}
|
|
6648
6647
|
}, { immediate: !0 }), (f, B) => (V(), N("div", {
|
|
6649
6648
|
class: "horline-component",
|
|
6650
|
-
style: AA(
|
|
6649
|
+
style: AA(U.value)
|
|
6651
6650
|
}, [
|
|
6652
6651
|
(V(), N("svg", {
|
|
6653
6652
|
width: o.value,
|
|
@@ -6722,7 +6721,7 @@ const Yw = /* @__PURE__ */ yA(Kw, [["render", Gw]]), Mc = [
|
|
|
6722
6721
|
{
|
|
6723
6722
|
groupName: "文本",
|
|
6724
6723
|
components: [
|
|
6725
|
-
{ type: "text", label: "文本", icon: uf, component:
|
|
6724
|
+
{ type: "text", label: "文本", icon: uf, component: ed, propertyPanel: of }
|
|
6726
6725
|
]
|
|
6727
6726
|
},
|
|
6728
6727
|
{
|
|
@@ -6748,7 +6747,7 @@ const Yw = /* @__PURE__ */ yA(Kw, [["render", Gw]]), Mc = [
|
|
|
6748
6747
|
], bc = Mc.flatMap((e) => e.components);
|
|
6749
6748
|
async function zw(e) {
|
|
6750
6749
|
try {
|
|
6751
|
-
return (await
|
|
6750
|
+
return (await Ad(/* @__PURE__ */ Object.assign({ "./props/lodop.js": () => import("./lodop-25ec3af8.mjs"), "./props/rfid.js": () => import("./rfid-b84da009.mjs") }), `./props/${e}.js`)).default;
|
|
6752
6751
|
} catch {
|
|
6753
6752
|
return console.warn(`配置文件 ./props/${e}.js 不存在,使用默认配置`), (await import("./lodop-25ec3af8.mjs")).default;
|
|
6754
6753
|
}
|
|
@@ -6785,7 +6784,7 @@ const _w = { class: "component-list" }, qw = { class: "group-title" }, $w = { cl
|
|
|
6785
6784
|
}
|
|
6786
6785
|
},
|
|
6787
6786
|
setup(e) {
|
|
6788
|
-
const A = e, t = b(() => jw(A.config, A.propsConfig)), r =
|
|
6787
|
+
const A = e, t = b(() => jw(A.config, A.propsConfig)), r = Z(/* @__PURE__ */ new Map());
|
|
6789
6788
|
function n(s = 80, c = 50) {
|
|
6790
6789
|
const u = document.createElement("div");
|
|
6791
6790
|
return u.style.cssText = `
|
|
@@ -6873,8 +6872,8 @@ const _w = { class: "component-list" }, qw = { class: "group-title" }, $w = { cl
|
|
|
6873
6872
|
return (s, c) => {
|
|
6874
6873
|
const u = QA("el-icon");
|
|
6875
6874
|
return V(), N("div", _w, [
|
|
6876
|
-
(V(!0), N(VA, null, Me(t.value, (d,
|
|
6877
|
-
key:
|
|
6875
|
+
(V(!0), N(VA, null, Me(t.value, (d, U) => (V(), N("div", {
|
|
6876
|
+
key: U,
|
|
6878
6877
|
class: "component-group"
|
|
6879
6878
|
}, [
|
|
6880
6879
|
m("div", qw, fe(d.groupName), 1),
|
|
@@ -7001,7 +7000,7 @@ const hF = { class: "tg-title" }, gF = { class: "table-container" }, UF = {
|
|
|
7001
7000
|
a.data.punchingList.splice(c, 1);
|
|
7002
7001
|
};
|
|
7003
7002
|
return (c, u) => {
|
|
7004
|
-
const d = QA("el-button"),
|
|
7003
|
+
const d = QA("el-button"), U = QA("el-input-number"), f = QA("el-table-column"), B = QA("el-col"), g = QA("el-row"), h = QA("el-table"), p = QA("el-form-item"), Q = QA("el-form"), C = QA("el-main"), v = QA("el-dialog");
|
|
7005
7004
|
return V(), N(VA, null, [
|
|
7006
7005
|
W(d, {
|
|
7007
7006
|
type: "primary",
|
|
@@ -7061,7 +7060,7 @@ const hF = { class: "tg-title" }, gF = { class: "table-container" }, UF = {
|
|
|
7061
7060
|
default: j(() => [
|
|
7062
7061
|
W(C, { style: { "max-height": "60vh", padding: "0" } }, {
|
|
7063
7062
|
default: j(() => [
|
|
7064
|
-
W(
|
|
7063
|
+
W(Q, {
|
|
7065
7064
|
ref: "formRef",
|
|
7066
7065
|
model: a.data,
|
|
7067
7066
|
"label-width": "90px",
|
|
@@ -7069,7 +7068,7 @@ const hF = { class: "tg-title" }, gF = { class: "table-container" }, UF = {
|
|
|
7069
7068
|
"label-suffix": ":"
|
|
7070
7069
|
}, {
|
|
7071
7070
|
default: j(() => [
|
|
7072
|
-
W(
|
|
7071
|
+
W(p, null, {
|
|
7073
7072
|
label: j(() => [
|
|
7074
7073
|
m("div", null, [
|
|
7075
7074
|
u[9] || (u[9] = m("p", null, "打印区域:", -1)),
|
|
@@ -7088,7 +7087,7 @@ const hF = { class: "tg-title" }, gF = { class: "table-container" }, UF = {
|
|
|
7088
7087
|
]),
|
|
7089
7088
|
default: j(() => [
|
|
7090
7089
|
m("div", gF, [
|
|
7091
|
-
a.data.printList.length > 0 ? (V(), vA(
|
|
7090
|
+
a.data.printList.length > 0 ? (V(), vA(h, {
|
|
7092
7091
|
key: 0,
|
|
7093
7092
|
data: a.data.printList,
|
|
7094
7093
|
class: "graph-table"
|
|
@@ -7100,7 +7099,7 @@ const hF = { class: "tg-title" }, gF = { class: "table-container" }, UF = {
|
|
|
7100
7099
|
width: "100"
|
|
7101
7100
|
}, {
|
|
7102
7101
|
default: j((w) => [
|
|
7103
|
-
W(
|
|
7102
|
+
W(U, {
|
|
7104
7103
|
modelValue: w.row.x,
|
|
7105
7104
|
"onUpdate:modelValue": (R) => w.row.x = R,
|
|
7106
7105
|
controls: !1,
|
|
@@ -7115,7 +7114,7 @@ const hF = { class: "tg-title" }, gF = { class: "table-container" }, UF = {
|
|
|
7115
7114
|
width: "100"
|
|
7116
7115
|
}, {
|
|
7117
7116
|
default: j((w) => [
|
|
7118
|
-
W(
|
|
7117
|
+
W(U, {
|
|
7119
7118
|
modelValue: w.row.y,
|
|
7120
7119
|
"onUpdate:modelValue": (R) => w.row.y = R,
|
|
7121
7120
|
controls: !1,
|
|
@@ -7130,7 +7129,7 @@ const hF = { class: "tg-title" }, gF = { class: "table-container" }, UF = {
|
|
|
7130
7129
|
width: "100"
|
|
7131
7130
|
}, {
|
|
7132
7131
|
default: j((w) => [
|
|
7133
|
-
W(
|
|
7132
|
+
W(U, {
|
|
7134
7133
|
modelValue: w.row.width,
|
|
7135
7134
|
"onUpdate:modelValue": (R) => w.row.width = R,
|
|
7136
7135
|
controls: !1,
|
|
@@ -7145,7 +7144,7 @@ const hF = { class: "tg-title" }, gF = { class: "table-container" }, UF = {
|
|
|
7145
7144
|
width: "100"
|
|
7146
7145
|
}, {
|
|
7147
7146
|
default: j((w) => [
|
|
7148
|
-
W(
|
|
7147
|
+
W(U, {
|
|
7149
7148
|
modelValue: w.row.height,
|
|
7150
7149
|
"onUpdate:modelValue": (R) => w.row.height = R,
|
|
7151
7150
|
controls: !1,
|
|
@@ -7163,7 +7162,7 @@ const hF = { class: "tg-title" }, gF = { class: "table-container" }, UF = {
|
|
|
7163
7162
|
default: j(() => [
|
|
7164
7163
|
W(B, { span: 6 }, {
|
|
7165
7164
|
default: j(() => [
|
|
7166
|
-
W(
|
|
7165
|
+
W(U, {
|
|
7167
7166
|
modelValue: w.row.topLeftRadius,
|
|
7168
7167
|
"onUpdate:modelValue": (R) => w.row.topLeftRadius = R,
|
|
7169
7168
|
controls: !1,
|
|
@@ -7174,7 +7173,7 @@ const hF = { class: "tg-title" }, gF = { class: "table-container" }, UF = {
|
|
|
7174
7173
|
}, 1024),
|
|
7175
7174
|
W(B, { span: 6 }, {
|
|
7176
7175
|
default: j(() => [
|
|
7177
|
-
W(
|
|
7176
|
+
W(U, {
|
|
7178
7177
|
modelValue: w.row.bottomLeftRadius,
|
|
7179
7178
|
"onUpdate:modelValue": (R) => w.row.bottomLeftRadius = R,
|
|
7180
7179
|
controls: !1,
|
|
@@ -7185,7 +7184,7 @@ const hF = { class: "tg-title" }, gF = { class: "table-container" }, UF = {
|
|
|
7185
7184
|
}, 1024),
|
|
7186
7185
|
W(B, { span: 6 }, {
|
|
7187
7186
|
default: j(() => [
|
|
7188
|
-
W(
|
|
7187
|
+
W(U, {
|
|
7189
7188
|
modelValue: w.row.topRightRadius,
|
|
7190
7189
|
"onUpdate:modelValue": (R) => w.row.topRightRadius = R,
|
|
7191
7190
|
controls: !1,
|
|
@@ -7196,7 +7195,7 @@ const hF = { class: "tg-title" }, gF = { class: "table-container" }, UF = {
|
|
|
7196
7195
|
}, 1024),
|
|
7197
7196
|
W(B, { span: 6 }, {
|
|
7198
7197
|
default: j(() => [
|
|
7199
|
-
W(
|
|
7198
|
+
W(U, {
|
|
7200
7199
|
modelValue: w.row.bottomRightRadius,
|
|
7201
7200
|
"onUpdate:modelValue": (R) => w.row.bottomRightRadius = R,
|
|
7202
7201
|
controls: !1,
|
|
@@ -7238,7 +7237,7 @@ const hF = { class: "tg-title" }, gF = { class: "table-container" }, UF = {
|
|
|
7238
7237
|
]),
|
|
7239
7238
|
_: 1
|
|
7240
7239
|
}),
|
|
7241
|
-
W(
|
|
7240
|
+
W(p, { label: "打孔区域" }, {
|
|
7242
7241
|
label: j(() => [
|
|
7243
7242
|
m("div", null, [
|
|
7244
7243
|
u[12] || (u[12] = m("p", null, "打孔区域:", -1)),
|
|
@@ -7257,7 +7256,7 @@ const hF = { class: "tg-title" }, gF = { class: "table-container" }, UF = {
|
|
|
7257
7256
|
]),
|
|
7258
7257
|
default: j(() => [
|
|
7259
7258
|
m("div", pF, [
|
|
7260
|
-
a.data.punchingList.length > 0 ? (V(), vA(
|
|
7259
|
+
a.data.punchingList.length > 0 ? (V(), vA(h, {
|
|
7261
7260
|
key: 0,
|
|
7262
7261
|
data: a.data.punchingList,
|
|
7263
7262
|
class: "graph-table"
|
|
@@ -7269,7 +7268,7 @@ const hF = { class: "tg-title" }, gF = { class: "table-container" }, UF = {
|
|
|
7269
7268
|
width: "100"
|
|
7270
7269
|
}, {
|
|
7271
7270
|
default: j((w) => [
|
|
7272
|
-
W(
|
|
7271
|
+
W(U, {
|
|
7273
7272
|
modelValue: w.row.x,
|
|
7274
7273
|
"onUpdate:modelValue": (R) => w.row.x = R,
|
|
7275
7274
|
controls: !1,
|
|
@@ -7284,7 +7283,7 @@ const hF = { class: "tg-title" }, gF = { class: "table-container" }, UF = {
|
|
|
7284
7283
|
width: "100"
|
|
7285
7284
|
}, {
|
|
7286
7285
|
default: j((w) => [
|
|
7287
|
-
W(
|
|
7286
|
+
W(U, {
|
|
7288
7287
|
modelValue: w.row.y,
|
|
7289
7288
|
"onUpdate:modelValue": (R) => w.row.y = R,
|
|
7290
7289
|
controls: !1,
|
|
@@ -7299,7 +7298,7 @@ const hF = { class: "tg-title" }, gF = { class: "table-container" }, UF = {
|
|
|
7299
7298
|
width: "100"
|
|
7300
7299
|
}, {
|
|
7301
7300
|
default: j((w) => [
|
|
7302
|
-
W(
|
|
7301
|
+
W(U, {
|
|
7303
7302
|
modelValue: w.row.width,
|
|
7304
7303
|
"onUpdate:modelValue": (R) => w.row.width = R,
|
|
7305
7304
|
controls: !1,
|
|
@@ -7315,7 +7314,7 @@ const hF = { class: "tg-title" }, gF = { class: "table-container" }, UF = {
|
|
|
7315
7314
|
width: "100"
|
|
7316
7315
|
}, {
|
|
7317
7316
|
default: j((w) => [
|
|
7318
|
-
W(
|
|
7317
|
+
W(U, {
|
|
7319
7318
|
modelValue: w.row.height,
|
|
7320
7319
|
"onUpdate:modelValue": (R) => w.row.height = R,
|
|
7321
7320
|
controls: !1,
|
|
@@ -7454,14 +7453,14 @@ const hF = { class: "tg-title" }, gF = { class: "table-container" }, UF = {
|
|
|
7454
7453
|
}
|
|
7455
7454
|
}, FF = /* @__PURE__ */ yA(wF, [["__scopeId", "data-v-a4b90b63"]]);
|
|
7456
7455
|
function CF(e = {}) {
|
|
7457
|
-
const { scale: A, canvasWidth: t, canvasHeight: r, selectItem: n, onStopDrag: a, onStartDrag: o, onDragUpdate: i } = e, l =
|
|
7458
|
-
function f(
|
|
7459
|
-
l.value = !0, s.value = !0, typeof o == "function" && o(), c.value =
|
|
7460
|
-
}
|
|
7461
|
-
function B(
|
|
7462
|
-
const R = `${
|
|
7463
|
-
if (
|
|
7464
|
-
return
|
|
7456
|
+
const { scale: A, canvasWidth: t, canvasHeight: r, selectItem: n, onStopDrag: a, onStartDrag: o, onDragUpdate: i } = e, l = Z(!1), s = Z(!1), c = Z(null), u = Z({ x: 0, y: 0 }), d = Z({ x: 0, y: 0 }), U = /* @__PURE__ */ new Map();
|
|
7457
|
+
function f(p, Q, C) {
|
|
7458
|
+
l.value = !0, s.value = !0, typeof o == "function" && o(), c.value = Q, u.value = { x: p.clientX, y: p.clientY }, d.value = { x: Q.props.x, y: Q.props.y }, typeof n == "function" && n(Q, C || p), document.addEventListener("mousemove", g), document.addEventListener("mouseup", h);
|
|
7459
|
+
}
|
|
7460
|
+
function B(p, Q, C, v, w) {
|
|
7461
|
+
const R = `${p}_${Q}_${C}_${v}_${w}`;
|
|
7462
|
+
if (U.has(R))
|
|
7463
|
+
return U.get(R);
|
|
7465
7464
|
const M = w * Math.PI / 180, T = C / 2, O = v / 2, L = [
|
|
7466
7465
|
{ x: 0, y: 0 },
|
|
7467
7466
|
{ x: C, y: 0 },
|
|
@@ -7470,8 +7469,8 @@ function CF(e = {}) {
|
|
|
7470
7469
|
].map((G) => {
|
|
7471
7470
|
const q = G.x - T, rA = G.y - O, BA = q * Math.cos(M) - rA * Math.sin(M), cA = q * Math.sin(M) + rA * Math.cos(M);
|
|
7472
7471
|
return {
|
|
7473
|
-
x: Number((BA + T +
|
|
7474
|
-
y: Number((cA + O +
|
|
7472
|
+
x: Number((BA + T + p).toFixed(2)),
|
|
7473
|
+
y: Number((cA + O + Q).toFixed(2))
|
|
7475
7474
|
};
|
|
7476
7475
|
}), S = L.map((G) => G.x), P = L.map((G) => G.y), oA = {
|
|
7477
7476
|
minX: Math.min(...S),
|
|
@@ -7479,13 +7478,13 @@ function CF(e = {}) {
|
|
|
7479
7478
|
minY: Math.min(...P),
|
|
7480
7479
|
maxY: Math.max(...P)
|
|
7481
7480
|
};
|
|
7482
|
-
return
|
|
7481
|
+
return U.set(R, oA), oA;
|
|
7483
7482
|
}
|
|
7484
|
-
function g(
|
|
7483
|
+
function g(p) {
|
|
7485
7484
|
if (!l.value || !c.value)
|
|
7486
7485
|
return;
|
|
7487
|
-
const
|
|
7488
|
-
let R = d.value.x +
|
|
7486
|
+
const Q = p.clientX - u.value.x, C = p.clientY - u.value.y, v = (A == null ? void 0 : A.value) || 1, w = 1 / 3.7795275591;
|
|
7487
|
+
let R = d.value.x + Q * w / v, M = d.value.y + C * w / v;
|
|
7489
7488
|
if (t != null && t.value && (r != null && r.value)) {
|
|
7490
7489
|
const T = c.value.props.width || 0, O = c.value.props.height || 0, D = c.value.props.rotation || 0;
|
|
7491
7490
|
let L = !1;
|
|
@@ -7497,14 +7496,14 @@ function CF(e = {}) {
|
|
|
7497
7496
|
}
|
|
7498
7497
|
c.value.props.x = Number(R.toFixed(2)), c.value.props.y = Number(M.toFixed(2)), typeof i == "function" && i();
|
|
7499
7498
|
}
|
|
7500
|
-
function
|
|
7499
|
+
function h() {
|
|
7501
7500
|
l.value = !1, setTimeout(() => {
|
|
7502
7501
|
s.value = !1;
|
|
7503
|
-
}, 50), c.value && typeof n == "function" && n(c.value), c.value = null, typeof a == "function" && a(), typeof i == "function" && i(),
|
|
7504
|
-
const
|
|
7505
|
-
|
|
7502
|
+
}, 50), c.value && typeof n == "function" && n(c.value), c.value = null, typeof a == "function" && a(), typeof i == "function" && i(), U.clear();
|
|
7503
|
+
const p = function(Q) {
|
|
7504
|
+
Q && (typeof Q.stopImmediatePropagation == "function" && Q.stopImmediatePropagation(), typeof Q.stopPropagation == "function" && Q.stopPropagation(), typeof Q.preventDefault == "function" && Q.preventDefault()), window.removeEventListener("click", p, !0);
|
|
7506
7505
|
};
|
|
7507
|
-
window.addEventListener("click",
|
|
7506
|
+
window.addEventListener("click", p, !0), document.removeEventListener("mousemove", g), document.removeEventListener("mouseup", h);
|
|
7508
7507
|
}
|
|
7509
7508
|
return {
|
|
7510
7509
|
dragging: l,
|
|
@@ -7515,13 +7514,13 @@ function CF(e = {}) {
|
|
|
7515
7514
|
// 当前拖拽元素
|
|
7516
7515
|
startDrag: f,
|
|
7517
7516
|
// 开始拖拽方法
|
|
7518
|
-
stopDrag:
|
|
7517
|
+
stopDrag: h
|
|
7519
7518
|
// 停止拖拽方法
|
|
7520
7519
|
};
|
|
7521
7520
|
}
|
|
7522
7521
|
function EF(e, A, t, r) {
|
|
7523
|
-
const n =
|
|
7524
|
-
function
|
|
7522
|
+
const n = Z(!1), a = Z(null), o = Z({ x: 0, y: 0 }), i = Z({ width: 0, height: 0, x: 0, y: 0, rotation: 0 }), l = Z(""), s = Z(""), c = Z({ x: 0, y: 0 }), u = Z([]), d = Z(null), U = Z(0), f = ul.UPDATE_THRESHOLD, B = Z({ x: 0, y: 0, width: 0, height: 0 }), g = Z(/* @__PURE__ */ new Map()), h = Z(/* @__PURE__ */ new Map()), p = Z(null);
|
|
7523
|
+
function Q(O) {
|
|
7525
7524
|
return O * Math.PI / 180;
|
|
7526
7525
|
}
|
|
7527
7526
|
function C(O, D, L, S, P, oA, G) {
|
|
@@ -7544,9 +7543,9 @@ function EF(e, A, t, r) {
|
|
|
7544
7543
|
}
|
|
7545
7544
|
function v(O, D, L, S, P) {
|
|
7546
7545
|
const oA = `${O.toFixed(1)}_${D.toFixed(1)}_${L.toFixed(1)}_${S.toFixed(1)}_${P.toFixed(1)}`;
|
|
7547
|
-
if (
|
|
7548
|
-
return
|
|
7549
|
-
const G =
|
|
7546
|
+
if (h.value.has(oA))
|
|
7547
|
+
return h.value.get(oA);
|
|
7548
|
+
const G = Q(P), q = Math.cos(G), rA = Math.sin(G), BA = O + L / 2, cA = D + S / 2, X = [
|
|
7550
7549
|
{ x: -L / 2, y: -S / 2 },
|
|
7551
7550
|
{ x: L / 2, y: -S / 2 },
|
|
7552
7551
|
{ x: L / 2, y: S / 2 },
|
|
@@ -7555,9 +7554,9 @@ function EF(e, A, t, r) {
|
|
|
7555
7554
|
x: Number((BA + z.x * q - z.y * rA).toFixed(2)),
|
|
7556
7555
|
y: Number((cA + z.x * rA + z.y * q).toFixed(2))
|
|
7557
7556
|
}));
|
|
7558
|
-
if (
|
|
7559
|
-
const z =
|
|
7560
|
-
|
|
7557
|
+
if (h.value.set(oA, X), h.value.size > 100) {
|
|
7558
|
+
const z = h.value.keys().next().value;
|
|
7559
|
+
h.value.delete(z);
|
|
7561
7560
|
}
|
|
7562
7561
|
return X;
|
|
7563
7562
|
}
|
|
@@ -7604,7 +7603,7 @@ function EF(e, A, t, r) {
|
|
|
7604
7603
|
x: D.props.x,
|
|
7605
7604
|
y: D.props.y,
|
|
7606
7605
|
rotation: D.props.rotation || 0
|
|
7607
|
-
}, s.value = "", c.value = { x: 0, y: 0 },
|
|
7606
|
+
}, s.value = "", c.value = { x: 0, y: 0 }, p.value = null, d.value = w(
|
|
7608
7607
|
L,
|
|
7609
7608
|
i.value.x,
|
|
7610
7609
|
i.value.y,
|
|
@@ -7616,27 +7615,27 @@ function EF(e, A, t, r) {
|
|
|
7616
7615
|
y: i.value.y,
|
|
7617
7616
|
width: i.value.width,
|
|
7618
7617
|
height: i.value.height
|
|
7619
|
-
}, u.value = [...r.value], g.value.clear(),
|
|
7618
|
+
}, u.value = [...r.value], g.value.clear(), h.value.clear(), document.addEventListener("mousemove", M), document.addEventListener("mouseup", T));
|
|
7620
7619
|
}
|
|
7621
7620
|
function M(O) {
|
|
7622
7621
|
if (!n.value || !a.value || !d.value)
|
|
7623
7622
|
return;
|
|
7624
7623
|
const D = Date.now();
|
|
7625
|
-
if (D -
|
|
7624
|
+
if (D - U.value < f)
|
|
7626
7625
|
return;
|
|
7627
|
-
|
|
7628
|
-
const L = (t == null ? void 0 : t.value) || 1, S = i.value.rotation || 0, P =
|
|
7626
|
+
U.value = D;
|
|
7627
|
+
const L = (t == null ? void 0 : t.value) || 1, S = i.value.rotation || 0, P = Q(S), oA = Math.cos(P), G = Math.sin(P), q = i.value.width, rA = i.value.height, BA = i.value.x, cA = i.value.y, nA = 1;
|
|
7629
7628
|
let X = q, z = rA;
|
|
7630
7629
|
const IA = (O.clientX - o.value.x) / 3.7795275591 / L, pA = (O.clientY - o.value.y) / 3.7795275591 / L;
|
|
7631
7630
|
let fA, hA;
|
|
7632
7631
|
S === 0 ? (fA = IA, hA = pA) : (fA = IA * oA + pA * G, hA = -IA * G + pA * oA);
|
|
7633
7632
|
const NA = !!a.value.props.lockAspectRatio, jA = q / rA, se = Math.abs(O.clientX - o.value.x), Je = Math.abs(O.clientY - o.value.y);
|
|
7634
|
-
if (NA && !
|
|
7635
|
-
if (NA &&
|
|
7636
|
-
|
|
7633
|
+
if (NA && !p.value && (p.value = se > Je ? "x" : "y"), l.value.includes("-")) {
|
|
7634
|
+
if (NA && p.value)
|
|
7635
|
+
p.value === "x" ? (["top-left", "bottom-left"].includes(l.value) ? X = Math.max(nA, q - fA) : X = Math.max(nA, q + fA), z = X / jA) : (["top-left", "top-right"].includes(l.value) ? z = Math.max(nA, rA - hA) : z = Math.max(nA, rA + hA), X = z * jA);
|
|
7637
7636
|
else if (l.value === "top-left" ? (X = Math.max(nA, q - fA), z = Math.max(nA, rA - hA)) : l.value === "top-right" ? (X = Math.max(nA, q + fA), z = Math.max(nA, rA - hA)) : l.value === "bottom-right" ? (X = Math.max(nA, q + fA), z = Math.max(nA, rA + hA)) : l.value === "bottom-left" && (X = Math.max(nA, q - fA), z = Math.max(nA, rA + hA)), NA) {
|
|
7638
|
-
const
|
|
7639
|
-
if (Math.abs(
|
|
7637
|
+
const bA = X / z;
|
|
7638
|
+
if (Math.abs(bA - jA) > 0.01) {
|
|
7640
7639
|
const E = Math.abs(X - q), F = Math.abs(z - rA);
|
|
7641
7640
|
E > F ? z = X / jA : X = z * jA;
|
|
7642
7641
|
}
|
|
@@ -7655,11 +7654,11 @@ function EF(e, A, t, r) {
|
|
|
7655
7654
|
const ae = e.value || 0, ve = A.value || 0, na = ne, aa = ne + X, Tr = CA, oa = CA + z;
|
|
7656
7655
|
let it = !1;
|
|
7657
7656
|
if ((S !== 0 || na < -0.5 || aa > ae + 0.5 || Tr < -0.5 || oa > ve + 0.5) && (it = !0), it) {
|
|
7658
|
-
const
|
|
7659
|
-
if (
|
|
7660
|
-
let F = 0,
|
|
7661
|
-
|
|
7662
|
-
const $ = ne + F, K = CA +
|
|
7657
|
+
const bA = C(ne, CA, X, z, S, ae, ve);
|
|
7658
|
+
if (bA.isOutOfBounds) {
|
|
7659
|
+
let F = 0, k = 0;
|
|
7660
|
+
bA.minX < -0.5 ? F = -bA.minX + 0.5 : bA.maxX > ae + 0.5 && (F = ae - bA.maxX + 0.5), bA.minY < -0.5 ? k = -bA.minY + 0.5 : bA.maxY > ve + 0.5 && (k = ve - bA.maxY + 0.5);
|
|
7661
|
+
const $ = ne + F, K = CA + k;
|
|
7663
7662
|
if (!C($, K, X, z, S, ae, ve).isOutOfBounds)
|
|
7664
7663
|
ne = $, CA = K;
|
|
7665
7664
|
else
|
|
@@ -7669,7 +7668,7 @@ function EF(e, A, t, r) {
|
|
|
7669
7668
|
(Math.abs(X - a.value.props.width) > 1e-3 || Math.abs(z - a.value.props.height) > 1e-3 || Math.abs(ne - a.value.props.x) > 1e-3 || Math.abs(CA - a.value.props.y) > 1e-3) && (a.value.props.x = Number(ne.toFixed(2)), a.value.props.y = Number(CA.toFixed(2)), a.value.props.width = Number(X.toFixed(2)), a.value.props.height = Number(z.toFixed(2)), B.value = { x: ne, y: CA, width: X, height: z });
|
|
7670
7669
|
}
|
|
7671
7670
|
function T() {
|
|
7672
|
-
n.value = !1, a.value = null, s.value = "", c.value = { x: 0, y: 0 }, d.value = null, B.value = { x: 0, y: 0, width: 0, height: 0 }, g.value.clear(),
|
|
7671
|
+
n.value = !1, a.value = null, s.value = "", c.value = { x: 0, y: 0 }, d.value = null, B.value = { x: 0, y: 0, width: 0, height: 0 }, g.value.clear(), h.value.clear(), u.value.length > 0 && (r.value = [...u.value]), u.value = [], document.removeEventListener("mousemove", M), document.removeEventListener("mouseup", T), p.value = null;
|
|
7673
7672
|
}
|
|
7674
7673
|
return {
|
|
7675
7674
|
resizing: n,
|
|
@@ -7679,7 +7678,7 @@ function EF(e, A, t, r) {
|
|
|
7679
7678
|
};
|
|
7680
7679
|
}
|
|
7681
7680
|
function mF(e = 2) {
|
|
7682
|
-
const A =
|
|
7681
|
+
const A = Z([]);
|
|
7683
7682
|
function t(o) {
|
|
7684
7683
|
if (!o || A.value[A.value.length - 1] === o)
|
|
7685
7684
|
return;
|
|
@@ -7720,38 +7719,38 @@ function vF() {
|
|
|
7720
7719
|
return;
|
|
7721
7720
|
a.preventDefault(), a.stopPropagation();
|
|
7722
7721
|
const i = a.target.parentElement.getBoundingClientRect(), l = i.left + i.width / 2, s = i.top + i.height / 2;
|
|
7723
|
-
let c = null, u = !1, d = B(a.clientX, a.clientY),
|
|
7724
|
-
function B(
|
|
7725
|
-
const v =
|
|
7722
|
+
let c = null, u = !1, d = B(a.clientX, a.clientY), U = o.props.rotation || 0, f = U;
|
|
7723
|
+
function B(Q, C) {
|
|
7724
|
+
const v = Q - l, w = C - s;
|
|
7726
7725
|
let R = Math.atan2(w, v) * 180 / Math.PI + 90;
|
|
7727
7726
|
return R > 180 && (R -= 360), R < -180 && (R += 360), R;
|
|
7728
7727
|
}
|
|
7729
|
-
function g(
|
|
7730
|
-
const C =
|
|
7728
|
+
function g(Q) {
|
|
7729
|
+
const C = Q.clientX - l, v = Q.clientY - s;
|
|
7731
7730
|
if (Math.sqrt(C * C + v * v) < 20) {
|
|
7732
7731
|
u = !0, c = null;
|
|
7733
7732
|
return;
|
|
7734
7733
|
}
|
|
7735
7734
|
if (u) {
|
|
7736
|
-
d = B(
|
|
7735
|
+
d = B(Q.clientX, Q.clientY), u = !1, c = null;
|
|
7737
7736
|
return;
|
|
7738
7737
|
}
|
|
7739
|
-
const R = B(
|
|
7738
|
+
const R = B(Q.clientX, Q.clientY);
|
|
7740
7739
|
let M = R - d;
|
|
7741
|
-
M > 180 && (M -= 360), M < -180 && (M += 360),
|
|
7740
|
+
M > 180 && (M -= 360), M < -180 && (M += 360), U += M, d = R, f = r(f, U, 0.25);
|
|
7742
7741
|
const T = (f % 360 + 360) % 360;
|
|
7743
7742
|
Math.abs(o.props.rotation - T) >= 0.2 && (o.props.rotation = Number(T.toFixed(2))), c = null;
|
|
7744
7743
|
}
|
|
7745
|
-
const
|
|
7746
|
-
c || (c = requestAnimationFrame(() => g(
|
|
7747
|
-
},
|
|
7748
|
-
|
|
7744
|
+
const h = (Q) => {
|
|
7745
|
+
c || (c = requestAnimationFrame(() => g(Q)));
|
|
7746
|
+
}, p = (Q) => {
|
|
7747
|
+
Q && Q.stopPropagation(), document.removeEventListener("mousemove", h), document.removeEventListener("mouseup", p), c && (cancelAnimationFrame(c), c = null), u = !1;
|
|
7749
7748
|
const C = (v) => {
|
|
7750
7749
|
v.stopImmediatePropagation(), document.removeEventListener("click", C, !0);
|
|
7751
7750
|
};
|
|
7752
7751
|
document.addEventListener("click", C, !0);
|
|
7753
7752
|
};
|
|
7754
|
-
document.addEventListener("mousemove",
|
|
7753
|
+
document.addEventListener("mousemove", h), document.addEventListener("mouseup", p);
|
|
7755
7754
|
}
|
|
7756
7755
|
return {
|
|
7757
7756
|
startRotate: n
|
|
@@ -7781,15 +7780,15 @@ function RF(e, A, t) {
|
|
|
7781
7780
|
const c = e.value[e.value.length - 1];
|
|
7782
7781
|
let u = Number(c.props[i]) + Number(l);
|
|
7783
7782
|
if (i === "x" || i === "y") {
|
|
7784
|
-
const d = A != null && A.value ? A.value - c.props.width : 1 / 0,
|
|
7785
|
-
i === "x" ? u = Math.max(0, Math.min(u, d)) : i === "y" && (u = Math.max(0, Math.min(u,
|
|
7783
|
+
const d = A != null && A.value ? A.value - c.props.width : 1 / 0, U = t != null && t.value ? t.value - c.props.height : 1 / 0;
|
|
7784
|
+
i === "x" ? u = Math.max(0, Math.min(u, d)) : i === "y" && (u = Math.max(0, Math.min(u, U)));
|
|
7786
7785
|
} else if (i === "width" || i === "height") {
|
|
7787
7786
|
if (i === "width") {
|
|
7788
|
-
const
|
|
7789
|
-
u = Math.max(1, Math.min(u,
|
|
7787
|
+
const U = A != null && A.value ? A.value - c.props.x : 1 / 0;
|
|
7788
|
+
u = Math.max(1, Math.min(u, U));
|
|
7790
7789
|
} else if (i === "height") {
|
|
7791
|
-
const
|
|
7792
|
-
u = Math.max(1, Math.min(u,
|
|
7790
|
+
const U = t != null && t.value ? t.value - c.props.y : 1 / 0;
|
|
7791
|
+
u = Math.max(1, Math.min(u, U));
|
|
7793
7792
|
}
|
|
7794
7793
|
}
|
|
7795
7794
|
if (!(u < s)) {
|
|
@@ -7803,8 +7802,8 @@ function RF(e, A, t) {
|
|
|
7803
7802
|
}
|
|
7804
7803
|
}
|
|
7805
7804
|
if (c.type === "horline" && i === "height") {
|
|
7806
|
-
const
|
|
7807
|
-
c.props.height = Number(u.toFixed(2)), c.props.LineWidth = Number(
|
|
7805
|
+
const U = u / 0.3528;
|
|
7806
|
+
c.props.height = Number(u.toFixed(2)), c.props.LineWidth = Number(U.toFixed(2)) + "pt";
|
|
7808
7807
|
return;
|
|
7809
7808
|
}
|
|
7810
7809
|
c.props[i] = Number(u.toFixed(2));
|
|
@@ -7852,7 +7851,7 @@ function RF(e, A, t) {
|
|
|
7852
7851
|
return { handleMouseWheel: r, handleInputChange: n, adjustRotation: a };
|
|
7853
7852
|
}
|
|
7854
7853
|
function VF(e, A, t, r) {
|
|
7855
|
-
const n =
|
|
7854
|
+
const n = Z(null);
|
|
7856
7855
|
function a(i) {
|
|
7857
7856
|
const l = document.activeElement.tagName.toLowerCase();
|
|
7858
7857
|
if (!(l === "input" || l === "textarea") && !((i.key === "Delete" || i.key === "Backspace") && A.value.length > 0) && (i.ctrlKey || i.metaKey) && i.key.toLowerCase() === "c" && A.value.length > 0) {
|
|
@@ -7865,8 +7864,8 @@ function VF(e, A, t, r) {
|
|
|
7865
7864
|
const s = JSON.parse(JSON.stringify(n.value));
|
|
7866
7865
|
if (s.id = Date.now(), s.props) {
|
|
7867
7866
|
let c = Number(s.props.x) + 5, u = Number(s.props.y) + 5;
|
|
7868
|
-
const d = t.value - Number(s.props.width),
|
|
7869
|
-
s.props.x = Math.max(0, Math.min(c, d)), s.props.y = Math.max(0, Math.min(u,
|
|
7867
|
+
const d = t.value - Number(s.props.width), U = r.value - Number(s.props.height);
|
|
7868
|
+
s.props.x = Math.max(0, Math.min(c, d)), s.props.y = Math.max(0, Math.min(u, U)), s.props.x != c && (s.props.x = c - 5 * 2), s.props.y != u && (s.props.y = u - 5 * 2);
|
|
7870
7869
|
}
|
|
7871
7870
|
e.value.push(s), A.value = [s], i.preventDefault();
|
|
7872
7871
|
}
|
|
@@ -7874,41 +7873,41 @@ function VF(e, A, t, r) {
|
|
|
7874
7873
|
return { handleCopy: a, handlePaste: o, clipboardData: n };
|
|
7875
7874
|
}
|
|
7876
7875
|
function TF(e = {}) {
|
|
7877
|
-
const { items: A, dragItem: t, dragging: r } = e, n =
|
|
7876
|
+
const { items: A, dragItem: t, dragging: r } = e, n = Z({
|
|
7878
7877
|
horizontal: [],
|
|
7879
7878
|
// 水平对齐线 [{ y: number, visible: boolean }]
|
|
7880
7879
|
vertical: []
|
|
7881
7880
|
// 垂直对齐线 [{ x: number, visible: boolean }]
|
|
7882
7881
|
}), a = 0.1;
|
|
7883
7882
|
function o(d) {
|
|
7884
|
-
const
|
|
7883
|
+
const U = Number(d.props.x) || 0, f = Number(d.props.y) || 0, B = Number(d.props.width) || 0, g = Number(d.props.height) || 0;
|
|
7885
7884
|
return {
|
|
7886
|
-
centerX:
|
|
7885
|
+
centerX: U + B / 2,
|
|
7887
7886
|
centerY: f + g / 2
|
|
7888
7887
|
};
|
|
7889
7888
|
}
|
|
7890
|
-
function i(d,
|
|
7889
|
+
function i(d, U) {
|
|
7891
7890
|
const f = [], B = /* @__PURE__ */ new Set();
|
|
7892
|
-
return
|
|
7893
|
-
const
|
|
7891
|
+
return U.forEach((g) => {
|
|
7892
|
+
const h = o(g), p = Math.abs(d.centerY - h.centerY);
|
|
7894
7893
|
Math.round(d.centerY * 100) / 100;
|
|
7895
|
-
const
|
|
7896
|
-
|
|
7897
|
-
y:
|
|
7894
|
+
const Q = Math.round(h.centerY * 100) / 100;
|
|
7895
|
+
p <= a && !B.has(Q) && (f.push({
|
|
7896
|
+
y: Q,
|
|
7898
7897
|
visible: !0
|
|
7899
|
-
}), B.add(
|
|
7898
|
+
}), B.add(Q));
|
|
7900
7899
|
}), f;
|
|
7901
7900
|
}
|
|
7902
|
-
function l(d,
|
|
7901
|
+
function l(d, U) {
|
|
7903
7902
|
const f = [], B = /* @__PURE__ */ new Set();
|
|
7904
|
-
return
|
|
7905
|
-
const
|
|
7903
|
+
return U.forEach((g) => {
|
|
7904
|
+
const h = o(g), p = Math.abs(d.centerX - h.centerX);
|
|
7906
7905
|
Math.round(d.centerX * 100) / 100;
|
|
7907
|
-
const
|
|
7908
|
-
|
|
7909
|
-
x:
|
|
7906
|
+
const Q = Math.round(h.centerX * 100) / 100;
|
|
7907
|
+
p <= a && !B.has(Q) && (f.push({
|
|
7908
|
+
x: Q,
|
|
7910
7909
|
visible: !0
|
|
7911
|
-
}), B.add(
|
|
7910
|
+
}), B.add(Q));
|
|
7912
7911
|
}), f;
|
|
7913
7912
|
}
|
|
7914
7913
|
function s() {
|
|
@@ -7916,7 +7915,7 @@ function TF(e = {}) {
|
|
|
7916
7915
|
n.value.horizontal = [], n.value.vertical = [];
|
|
7917
7916
|
return;
|
|
7918
7917
|
}
|
|
7919
|
-
const d = o(t.value),
|
|
7918
|
+
const d = o(t.value), U = A.value.filter((g) => g !== t.value), f = i(d, U), B = l(d, U);
|
|
7920
7919
|
n.value.horizontal = f, n.value.vertical = B;
|
|
7921
7920
|
}
|
|
7922
7921
|
function c() {
|
|
@@ -8031,7 +8030,7 @@ function ZA(e, A, t, r) {
|
|
|
8031
8030
|
s((r = r.apply(e, A || [])).next());
|
|
8032
8031
|
});
|
|
8033
8032
|
}
|
|
8034
|
-
function
|
|
8033
|
+
function SA(e, A) {
|
|
8035
8034
|
var t = { label: 0, sent: function() {
|
|
8036
8035
|
if (a[0] & 1)
|
|
8037
8036
|
throw a[1];
|
|
@@ -8311,7 +8310,7 @@ var _F = "KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF
|
|
|
8311
8310
|
if (lo === l && [lo, un, ao, oo].indexOf(c) !== -1 || [un, ao].indexOf(l) !== -1 && [un, dn].indexOf(c) !== -1 || [dn, oo].indexOf(l) !== -1 && c === dn || vl.indexOf(l) !== -1 && [El, qt].indexOf(c) !== -1 || vl.indexOf(c) !== -1 && l === $t || Qe.indexOf(l) !== -1 && Qe.indexOf(c) !== -1 || l === ut && Qe.indexOf(c) !== -1 || Qe.concat(JA).indexOf(l) !== -1 && c === Yt && oC.indexOf(e[i]) === -1 || Qe.concat(JA).indexOf(c) !== -1 && l === Gt)
|
|
8312
8311
|
return eA;
|
|
8313
8312
|
if (l === va && c === va) {
|
|
8314
|
-
for (var
|
|
8313
|
+
for (var U = t[a], f = 1; U > 0 && (U--, A[U] === va); )
|
|
8315
8314
|
f++;
|
|
8316
8315
|
if (f % 2 !== 0)
|
|
8317
8316
|
return eA;
|
|
@@ -8352,12 +8351,12 @@ var _F = "KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF
|
|
|
8352
8351
|
return { done: !0, value: null };
|
|
8353
8352
|
}
|
|
8354
8353
|
};
|
|
8355
|
-
}, fC = 1, hC = 2, yr = 4, Rl = 8, Fn = 10, Vl = 47, nr = 92, gC = 9, UC = 32, zr = 34, zt = 61, pC = 35, QC = 36, wC = 37, jr = 39, Xr = 40, jt = 41, FC = 95, OA = 45, CC = 33, EC = 60, mC = 62, vC = 64, yC = 91, RC = 93, VC = 61, TC = 123, Pr = 63, IC = 125, Tl = 124, NC = 126, SC = 128, Il = 65533, Ra = 42, je = 43, MC = 44, bC = 58, HC = 59, hr = 46, xC = 0, ZC = 8, kC = 11, OC = 14, WC = 31, DC = 127, ue = -1, Jc = 48, Kc = 97, Lc = 101, JC = 102, KC = 117, LC = 122, Gc = 65, Yc = 69, zc = 70, GC = 85, YC = 90,
|
|
8354
|
+
}, fC = 1, hC = 2, yr = 4, Rl = 8, Fn = 10, Vl = 47, nr = 92, gC = 9, UC = 32, zr = 34, zt = 61, pC = 35, QC = 36, wC = 37, jr = 39, Xr = 40, jt = 41, FC = 95, OA = 45, CC = 33, EC = 60, mC = 62, vC = 64, yC = 91, RC = 93, VC = 61, TC = 123, Pr = 63, IC = 125, Tl = 124, NC = 126, SC = 128, Il = 65533, Ra = 42, je = 43, MC = 44, bC = 58, HC = 59, hr = 46, xC = 0, ZC = 8, kC = 11, OC = 14, WC = 31, DC = 127, ue = -1, Jc = 48, Kc = 97, Lc = 101, JC = 102, KC = 117, LC = 122, Gc = 65, Yc = 69, zc = 70, GC = 85, YC = 90, MA = function(e) {
|
|
8356
8355
|
return e >= Jc && e <= 57;
|
|
8357
8356
|
}, zC = function(e) {
|
|
8358
8357
|
return e >= 55296 && e <= 57343;
|
|
8359
8358
|
}, Bt = function(e) {
|
|
8360
|
-
return
|
|
8359
|
+
return MA(e) || e >= Gc && e <= zc || e >= Kc && e <= JC;
|
|
8361
8360
|
}, jC = function(e) {
|
|
8362
8361
|
return e >= Kc && e <= LC;
|
|
8363
8362
|
}, XC = function(e) {
|
|
@@ -8371,7 +8370,7 @@ var _F = "KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF
|
|
|
8371
8370
|
}, Cn = function(e) {
|
|
8372
8371
|
return PC(e) || _C(e) || e === FC;
|
|
8373
8372
|
}, Nl = function(e) {
|
|
8374
|
-
return Cn(e) ||
|
|
8373
|
+
return Cn(e) || MA(e) || e === OA;
|
|
8375
8374
|
}, qC = function(e) {
|
|
8376
8375
|
return e >= xC && e <= ZC || e === kC || e >= OC && e <= WC || e === DC;
|
|
8377
8376
|
}, Ve = function(e, A) {
|
|
@@ -8379,21 +8378,21 @@ var _F = "KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF
|
|
|
8379
8378
|
}, qr = function(e, A, t) {
|
|
8380
8379
|
return e === OA ? Cn(A) || Ve(A, t) : Cn(e) ? !0 : !!(e === nr && Ve(e, A));
|
|
8381
8380
|
}, Va = function(e, A, t) {
|
|
8382
|
-
return e === je || e === OA ?
|
|
8381
|
+
return e === je || e === OA ? MA(A) ? !0 : A === hr && MA(t) : MA(e === hr ? A : e);
|
|
8383
8382
|
}, $C = function(e) {
|
|
8384
8383
|
var A = 0, t = 1;
|
|
8385
8384
|
(e[A] === je || e[A] === OA) && (e[A] === OA && (t = -1), A++);
|
|
8386
|
-
for (var r = [];
|
|
8385
|
+
for (var r = []; MA(e[A]); )
|
|
8387
8386
|
r.push(e[A++]);
|
|
8388
8387
|
var n = r.length ? parseInt(UA.apply(void 0, r), 10) : 0;
|
|
8389
8388
|
e[A] === hr && A++;
|
|
8390
|
-
for (var a = [];
|
|
8389
|
+
for (var a = []; MA(e[A]); )
|
|
8391
8390
|
a.push(e[A++]);
|
|
8392
8391
|
var o = a.length, i = o ? parseInt(UA.apply(void 0, a), 10) : 0;
|
|
8393
8392
|
(e[A] === Yc || e[A] === Lc) && A++;
|
|
8394
8393
|
var l = 1;
|
|
8395
8394
|
(e[A] === je || e[A] === OA) && (e[A] === OA && (l = -1), A++);
|
|
8396
|
-
for (var s = [];
|
|
8395
|
+
for (var s = []; MA(e[A]); )
|
|
8397
8396
|
s.push(e[A++]);
|
|
8398
8397
|
var c = s.length ? parseInt(UA.apply(void 0, s), 10) : 0;
|
|
8399
8398
|
return t * (n + i * Math.pow(10, -o)) * Math.pow(10, l * c);
|
|
@@ -8536,8 +8535,8 @@ var _F = "KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF
|
|
|
8536
8535
|
return this.consumeCodePoint(), this.consumeCodePoint(), dE;
|
|
8537
8536
|
break;
|
|
8538
8537
|
case vC:
|
|
8539
|
-
var u = this.peekCodePoint(0), d = this.peekCodePoint(1),
|
|
8540
|
-
if (qr(u, d,
|
|
8538
|
+
var u = this.peekCodePoint(0), d = this.peekCodePoint(1), U = this.peekCodePoint(2);
|
|
8539
|
+
if (qr(u, d, U)) {
|
|
8541
8540
|
var o = this.consumeName();
|
|
8542
8541
|
return { type: 7, value: o };
|
|
8543
8542
|
}
|
|
@@ -8575,7 +8574,7 @@ var _F = "KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF
|
|
|
8575
8574
|
case ue:
|
|
8576
8575
|
return uo;
|
|
8577
8576
|
}
|
|
8578
|
-
return _r(A) ? (this.consumeWhiteSpace(), pE) :
|
|
8577
|
+
return _r(A) ? (this.consumeWhiteSpace(), pE) : MA(A) ? (this.reconsumeCodePoint(A), this.consumeNumericToken()) : Cn(A) ? (this.reconsumeCodePoint(A), this.consumeIdentLikeToken()) : { type: 6, value: UA(A) };
|
|
8579
8578
|
}, e.prototype.consumeCodePoint = function() {
|
|
8580
8579
|
var A = this._value.shift();
|
|
8581
8580
|
return typeof A > "u" ? -1 : A;
|
|
@@ -8665,17 +8664,17 @@ var _F = "KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF
|
|
|
8665
8664
|
} while (!0);
|
|
8666
8665
|
}, e.prototype.consumeNumber = function() {
|
|
8667
8666
|
var A = [], t = yr, r = this.peekCodePoint(0);
|
|
8668
|
-
for ((r === je || r === OA) && A.push(this.consumeCodePoint());
|
|
8667
|
+
for ((r === je || r === OA) && A.push(this.consumeCodePoint()); MA(this.peekCodePoint(0)); )
|
|
8669
8668
|
A.push(this.consumeCodePoint());
|
|
8670
8669
|
r = this.peekCodePoint(0);
|
|
8671
8670
|
var n = this.peekCodePoint(1);
|
|
8672
|
-
if (r === hr &&
|
|
8673
|
-
for (A.push(this.consumeCodePoint(), this.consumeCodePoint()), t = Rl;
|
|
8671
|
+
if (r === hr && MA(n))
|
|
8672
|
+
for (A.push(this.consumeCodePoint(), this.consumeCodePoint()), t = Rl; MA(this.peekCodePoint(0)); )
|
|
8674
8673
|
A.push(this.consumeCodePoint());
|
|
8675
8674
|
r = this.peekCodePoint(0), n = this.peekCodePoint(1);
|
|
8676
8675
|
var a = this.peekCodePoint(2);
|
|
8677
|
-
if ((r === Yc || r === Lc) && ((n === je || n === OA) &&
|
|
8678
|
-
for (A.push(this.consumeCodePoint(), this.consumeCodePoint()), t = Rl;
|
|
8676
|
+
if ((r === Yc || r === Lc) && ((n === je || n === OA) && MA(a) || MA(n)))
|
|
8677
|
+
for (A.push(this.consumeCodePoint(), this.consumeCodePoint()), t = Rl; MA(this.peekCodePoint(0)); )
|
|
8679
8678
|
A.push(this.consumeCodePoint());
|
|
8680
8679
|
return [$C(A), t];
|
|
8681
8680
|
}, e.prototype.consumeNumericToken = function() {
|
|
@@ -8964,8 +8963,8 @@ var bl = function(e, A) {
|
|
|
8964
8963
|
var t = A.filter(Nt), r = t[0], n = t[1], a = t[2], o = t[3], i = (r.type === 17 ? Ae(r.number) : Pn.parse(e, r)) / (Math.PI * 2), l = wA(n) ? n.number / 100 : 0, s = wA(a) ? a.number / 100 : 0, c = typeof o < "u" && wA(o) ? sA(o, 1) : 1;
|
|
8965
8964
|
if (l === 0)
|
|
8966
8965
|
return Se(s * 255, s * 255, s * 255, 1);
|
|
8967
|
-
var u = s <= 0.5 ? s * (l + 1) : s + l - s * l, d = s * 2 - u,
|
|
8968
|
-
return Se(
|
|
8966
|
+
var u = s <= 0.5 ? s * (l + 1) : s + l - s * l, d = s * 2 - u, U = Ta(d, u, i + 1 / 3), f = Ta(d, u, i), B = Ta(d, u, i - 1 / 3);
|
|
8967
|
+
return Se(U * 255, f * 255, B * 255, c);
|
|
8969
8968
|
}, FE = {
|
|
8970
8969
|
hsl: bl,
|
|
8971
8970
|
hsla: bl,
|
|
@@ -9165,14 +9164,14 @@ var bl = function(e, A) {
|
|
|
9165
9164
|
if (c === null)
|
|
9166
9165
|
s === null && (s = o);
|
|
9167
9166
|
else if (s !== null) {
|
|
9168
|
-
for (var u = o - s, d = n[s - 1],
|
|
9169
|
-
n[s + f - 1] =
|
|
9167
|
+
for (var u = o - s, d = n[s - 1], U = (c - d) / (u + 1), f = 1; f <= u; f++)
|
|
9168
|
+
n[s + f - 1] = U * f;
|
|
9170
9169
|
s = null;
|
|
9171
9170
|
}
|
|
9172
9171
|
}
|
|
9173
9172
|
return e.map(function(B, g) {
|
|
9174
|
-
var
|
|
9175
|
-
return { color:
|
|
9173
|
+
var h = B.color;
|
|
9174
|
+
return { color: h, stop: Math.max(Math.min(1, n[g] / A), 0) };
|
|
9176
9175
|
});
|
|
9177
9176
|
}, mE = function(e, A, t) {
|
|
9178
9177
|
var r = A / 2, n = t / 2, a = sA(e[0], A) - r, o = n - sA(e[1], t);
|
|
@@ -9291,9 +9290,9 @@ var bl = function(e, A) {
|
|
|
9291
9290
|
} else if (c.name === "color-stop") {
|
|
9292
9291
|
var d = c.values.filter(Nt);
|
|
9293
9292
|
if (d.length === 2) {
|
|
9294
|
-
var u = He.parse(e, d[1]),
|
|
9295
|
-
Ot(
|
|
9296
|
-
stop: { type: 16, number:
|
|
9293
|
+
var u = He.parse(e, d[1]), U = d[0];
|
|
9294
|
+
Ot(U) && r.push({
|
|
9295
|
+
stop: { type: 16, number: U.number * 100, flags: U.flags },
|
|
9297
9296
|
color: u
|
|
9298
9297
|
});
|
|
9299
9298
|
}
|
|
@@ -11446,7 +11445,7 @@ var wv = 1, Sa = 2, Ma = 3, Ll = 4, Gl = 5, Fv = 7, Yl = 8, ba = 9, Ha = 10, zl
|
|
|
11446
11445
|
var a = A.defaultView.pageXOffset, o = A.defaultView.pageYOffset, i = n.contentWindow, l = i.document, s = cy(n).then(function() {
|
|
11447
11446
|
return ZA(r, void 0, void 0, function() {
|
|
11448
11447
|
var c, u;
|
|
11449
|
-
return
|
|
11448
|
+
return SA(this, function(d) {
|
|
11450
11449
|
switch (d.label) {
|
|
11451
11450
|
case 0:
|
|
11452
11451
|
return this.scrolledElements.forEach(fy), i && (i.scrollTo(t.left, t.top), /(iPad|iPhone|iPod)/g.test(navigator.userAgent) && (i.scrollY !== t.top || i.scrollX !== t.left) && (this.context.logger.warn("Unable to restore scroll position for cloned document"), this.context.windowBounds = this.context.windowBounds.add(i.scrollX - t.left, i.scrollY - t.top, 0, 0))), c = this.options.onclone, u = this.clonedReferenceElement, typeof u > "u" ? [2, Promise.reject("Error finding the " + this.referenceElement.nodeName + " in the cloned document")] : l.fonts && l.fonts.ready ? [4, l.fonts.ready] : [3, 2];
|
|
@@ -11583,16 +11582,16 @@ var wv = 1, Sa = 2, Ma = 3, Ll = 4, Gl = 5, Fv = 7, Yl = 8, ba = 9, Ha = 10, zl
|
|
|
11583
11582
|
d.src = u.value, d.style.opacity = "1", s.appendChild(d);
|
|
11584
11583
|
} else if (u.type === 18) {
|
|
11585
11584
|
if (u.name === "attr") {
|
|
11586
|
-
var
|
|
11587
|
-
|
|
11585
|
+
var U = u.values.filter(iA);
|
|
11586
|
+
U.length && s.appendChild(i.createTextNode(A.getAttribute(U[0].value) || ""));
|
|
11588
11587
|
} else if (u.name === "counter") {
|
|
11589
11588
|
var f = u.values.filter(Nt), B = f[0], g = f[1];
|
|
11590
11589
|
if (B && iA(B)) {
|
|
11591
|
-
var
|
|
11592
|
-
s.appendChild(i.createTextNode(gr(
|
|
11590
|
+
var h = a.counters.getCounterValue(B.value), p = g && iA(g) ? fo.parse(a.context, g.value) : 3;
|
|
11591
|
+
s.appendChild(i.createTextNode(gr(h, p, !1)));
|
|
11593
11592
|
}
|
|
11594
11593
|
} else if (u.name === "counters") {
|
|
11595
|
-
var
|
|
11594
|
+
var Q = u.values.filter(Nt), B = Q[0], C = Q[1], g = Q[2];
|
|
11596
11595
|
if (B && iA(B)) {
|
|
11597
11596
|
var v = a.counters.getCounterValues(B.value), w = g && iA(g) ? fo.parse(a.context, g.value) : 3, R = C && C.type === 0 ? C.value : "", M = v.map(function(D) {
|
|
11598
11597
|
return gr(D, w, !1);
|
|
@@ -11714,7 +11713,7 @@ var iy = function(e, A) {
|
|
|
11714
11713
|
}, e.prototype.loadImage = function(A) {
|
|
11715
11714
|
return ZA(this, void 0, void 0, function() {
|
|
11716
11715
|
var t, r, n, a, o = this;
|
|
11717
|
-
return
|
|
11716
|
+
return SA(this, function(i) {
|
|
11718
11717
|
switch (i.label) {
|
|
11719
11718
|
case 0:
|
|
11720
11719
|
return t = Nu.isSameOrigin(A), r = !Wa(A) && this._options.useCORS === !0 && RA.SUPPORT_CORS_IMAGES && !t, n = !Wa(A) && !t && !Da(A) && typeof this._options.proxy == "string" && RA.SUPPORT_CORS_XHR && !r, !t && this._options.allowTaint === !1 && !Wa(A) && !Da(A) && !n && !r ? [
|
|
@@ -11819,12 +11818,12 @@ var iy = function(e, A) {
|
|
|
11819
11818
|
/** @class */
|
|
11820
11819
|
function() {
|
|
11821
11820
|
function e(A) {
|
|
11822
|
-
var t = A.styles, r = A.bounds, n = Ar(t.borderTopLeftRadius, r.width, r.height), a = n[0], o = n[1], i = Ar(t.borderTopRightRadius, r.width, r.height), l = i[0], s = i[1], c = Ar(t.borderBottomRightRadius, r.width, r.height), u = c[0], d = c[1],
|
|
11821
|
+
var t = A.styles, r = A.bounds, n = Ar(t.borderTopLeftRadius, r.width, r.height), a = n[0], o = n[1], i = Ar(t.borderTopRightRadius, r.width, r.height), l = i[0], s = i[1], c = Ar(t.borderBottomRightRadius, r.width, r.height), u = c[0], d = c[1], U = Ar(t.borderBottomLeftRadius, r.width, r.height), f = U[0], B = U[1], g = [];
|
|
11823
11822
|
g.push((a + l) / r.width), g.push((f + u) / r.width), g.push((o + B) / r.height), g.push((s + d) / r.height);
|
|
11824
|
-
var
|
|
11825
|
-
|
|
11826
|
-
var
|
|
11827
|
-
this.topLeftBorderDoubleOuterBox = a > 0 || o > 0 ? dA(r.left + T / 3, r.top + w / 3, a - T / 3, o - w / 3, aA.TOP_LEFT) : new H(r.left + T / 3, r.top + w / 3), this.topRightBorderDoubleOuterBox = a > 0 || o > 0 ? dA(r.left +
|
|
11823
|
+
var h = Math.max.apply(Math, g);
|
|
11824
|
+
h > 1 && (a /= h, o /= h, l /= h, s /= h, u /= h, d /= h, f /= h, B /= h);
|
|
11825
|
+
var p = r.width - l, Q = r.height - d, C = r.width - u, v = r.height - B, w = t.borderTopWidth, R = t.borderRightWidth, M = t.borderBottomWidth, T = t.borderLeftWidth, O = sA(t.paddingTop, A.bounds.width), D = sA(t.paddingRight, A.bounds.width), L = sA(t.paddingBottom, A.bounds.width), S = sA(t.paddingLeft, A.bounds.width);
|
|
11826
|
+
this.topLeftBorderDoubleOuterBox = a > 0 || o > 0 ? dA(r.left + T / 3, r.top + w / 3, a - T / 3, o - w / 3, aA.TOP_LEFT) : new H(r.left + T / 3, r.top + w / 3), this.topRightBorderDoubleOuterBox = a > 0 || o > 0 ? dA(r.left + p, r.top + w / 3, l - R / 3, s - w / 3, aA.TOP_RIGHT) : new H(r.left + r.width - R / 3, r.top + w / 3), this.bottomRightBorderDoubleOuterBox = u > 0 || d > 0 ? dA(r.left + C, r.top + Q, u - R / 3, d - M / 3, aA.BOTTOM_RIGHT) : new H(r.left + r.width - R / 3, r.top + r.height - M / 3), this.bottomLeftBorderDoubleOuterBox = f > 0 || B > 0 ? dA(r.left + T / 3, r.top + v, f - T / 3, B - M / 3, aA.BOTTOM_LEFT) : new H(r.left + T / 3, r.top + r.height - M / 3), this.topLeftBorderDoubleInnerBox = a > 0 || o > 0 ? dA(r.left + T * 2 / 3, r.top + w * 2 / 3, a - T * 2 / 3, o - w * 2 / 3, aA.TOP_LEFT) : new H(r.left + T * 2 / 3, r.top + w * 2 / 3), this.topRightBorderDoubleInnerBox = a > 0 || o > 0 ? dA(r.left + p, r.top + w * 2 / 3, l - R * 2 / 3, s - w * 2 / 3, aA.TOP_RIGHT) : new H(r.left + r.width - R * 2 / 3, r.top + w * 2 / 3), this.bottomRightBorderDoubleInnerBox = u > 0 || d > 0 ? dA(r.left + C, r.top + Q, u - R * 2 / 3, d - M * 2 / 3, aA.BOTTOM_RIGHT) : new H(r.left + r.width - R * 2 / 3, r.top + r.height - M * 2 / 3), this.bottomLeftBorderDoubleInnerBox = f > 0 || B > 0 ? dA(r.left + T * 2 / 3, r.top + v, f - T * 2 / 3, B - M * 2 / 3, aA.BOTTOM_LEFT) : new H(r.left + T * 2 / 3, r.top + r.height - M * 2 / 3), this.topLeftBorderStroke = a > 0 || o > 0 ? dA(r.left + T / 2, r.top + w / 2, a - T / 2, o - w / 2, aA.TOP_LEFT) : new H(r.left + T / 2, r.top + w / 2), this.topRightBorderStroke = a > 0 || o > 0 ? dA(r.left + p, r.top + w / 2, l - R / 2, s - w / 2, aA.TOP_RIGHT) : new H(r.left + r.width - R / 2, r.top + w / 2), this.bottomRightBorderStroke = u > 0 || d > 0 ? dA(r.left + C, r.top + Q, u - R / 2, d - M / 2, aA.BOTTOM_RIGHT) : new H(r.left + r.width - R / 2, r.top + r.height - M / 2), this.bottomLeftBorderStroke = f > 0 || B > 0 ? dA(r.left + T / 2, r.top + v, f - T / 2, B - M / 2, aA.BOTTOM_LEFT) : new H(r.left + T / 2, r.top + r.height - M / 2), this.topLeftBorderBox = a > 0 || o > 0 ? dA(r.left, r.top, a, o, aA.TOP_LEFT) : new H(r.left, r.top), this.topRightBorderBox = l > 0 || s > 0 ? dA(r.left + p, r.top, l, s, aA.TOP_RIGHT) : new H(r.left + r.width, r.top), this.bottomRightBorderBox = u > 0 || d > 0 ? dA(r.left + C, r.top + Q, u, d, aA.BOTTOM_RIGHT) : new H(r.left + r.width, r.top + r.height), this.bottomLeftBorderBox = f > 0 || B > 0 ? dA(r.left, r.top + v, f, B, aA.BOTTOM_LEFT) : new H(r.left, r.top + r.height), this.topLeftPaddingBox = a > 0 || o > 0 ? dA(r.left + T, r.top + w, Math.max(0, a - T), Math.max(0, o - w), aA.TOP_LEFT) : new H(r.left + T, r.top + w), this.topRightPaddingBox = l > 0 || s > 0 ? dA(r.left + Math.min(p, r.width - R), r.top + w, p > r.width + R ? 0 : Math.max(0, l - R), Math.max(0, s - w), aA.TOP_RIGHT) : new H(r.left + r.width - R, r.top + w), this.bottomRightPaddingBox = u > 0 || d > 0 ? dA(r.left + Math.min(C, r.width - T), r.top + Math.min(Q, r.height - M), Math.max(0, u - R), Math.max(0, d - M), aA.BOTTOM_RIGHT) : new H(r.left + r.width - R, r.top + r.height - M), this.bottomLeftPaddingBox = f > 0 || B > 0 ? dA(r.left + T, r.top + Math.min(v, r.height - M), Math.max(0, f - T), Math.max(0, B - M), aA.BOTTOM_LEFT) : new H(r.left + T, r.top + r.height - M), this.topLeftContentBox = a > 0 || o > 0 ? dA(r.left + T + S, r.top + w + O, Math.max(0, a - (T + S)), Math.max(0, o - (w + O)), aA.TOP_LEFT) : new H(r.left + T + S, r.top + w + O), this.topRightContentBox = l > 0 || s > 0 ? dA(r.left + Math.min(p, r.width + T + S), r.top + w + O, p > r.width + T + S ? 0 : l - T + S, s - (w + O), aA.TOP_RIGHT) : new H(r.left + r.width - (R + D), r.top + w + O), this.bottomRightContentBox = u > 0 || d > 0 ? dA(r.left + Math.min(C, r.width - (T + S)), r.top + Math.min(Q, r.height + w + O), Math.max(0, u - (R + D)), d - (M + L), aA.BOTTOM_RIGHT) : new H(r.left + r.width - (R + D), r.top + r.height - (M + L)), this.bottomLeftContentBox = f > 0 || B > 0 ? dA(r.left + T + S, r.top + v, Math.max(0, f - (T + S)), B - (M + L), aA.BOTTOM_LEFT) : new H(r.left + T + S, r.top + r.height - (M + L));
|
|
11828
11827
|
}
|
|
11829
11828
|
return e;
|
|
11830
11829
|
}()
|
|
@@ -12004,10 +12003,10 @@ var dA = function(e, A, t, r, n) {
|
|
|
12004
12003
|
return u > f.element.container.styles.zIndex.order ? (d = B, !1) : d > 0;
|
|
12005
12004
|
}), s.negativeZIndex.splice(d, 0, c);
|
|
12006
12005
|
} else if (u > 0) {
|
|
12007
|
-
var
|
|
12006
|
+
var U = 0;
|
|
12008
12007
|
s.positiveZIndex.some(function(f, B) {
|
|
12009
|
-
return u >= f.element.container.styles.zIndex.order ? (
|
|
12010
|
-
}), s.positiveZIndex.splice(
|
|
12008
|
+
return u >= f.element.container.styles.zIndex.order ? (U = B + 1, !1) : U > 0;
|
|
12009
|
+
}), s.positiveZIndex.splice(U, 0, c);
|
|
12011
12010
|
} else
|
|
12012
12011
|
s.zeroOrAutoZIndexOrTransformedOrOpacity.push(c);
|
|
12013
12012
|
} else
|
|
@@ -12121,19 +12120,19 @@ var dA = function(e, A, t, r, n) {
|
|
|
12121
12120
|
if (!l && !d)
|
|
12122
12121
|
return [t.width, t.height];
|
|
12123
12122
|
if (d && l) {
|
|
12124
|
-
var
|
|
12125
|
-
return [
|
|
12123
|
+
var U = c ? r : n * a, f = u ? n : r / a;
|
|
12124
|
+
return [U, f];
|
|
12126
12125
|
}
|
|
12127
12126
|
var B = c ? r : t.width, g = u ? n : t.height;
|
|
12128
12127
|
return [B, g];
|
|
12129
12128
|
}
|
|
12130
12129
|
if (l) {
|
|
12131
|
-
var
|
|
12132
|
-
return wA(o) ?
|
|
12130
|
+
var h = 0, p = 0;
|
|
12131
|
+
return wA(o) ? h = sA(o, t.width) : wA(i) && (p = sA(i, t.height)), gt(o) ? h = p * a : (!i || gt(i)) && (p = h / a), [h, p];
|
|
12133
12132
|
}
|
|
12134
|
-
var
|
|
12135
|
-
if (wA(o) ?
|
|
12136
|
-
return [
|
|
12133
|
+
var Q = null, C = null;
|
|
12134
|
+
if (wA(o) ? Q = sA(o, t.width) : i && wA(i) && (C = sA(i, t.height)), Q !== null && (!i || gt(i)) && (C = c && u ? Q / r * n : t.height), C !== null && gt(o) && (Q = c && u ? C / n * r : t.width), Q !== null && C !== null)
|
|
12135
|
+
return [Q, C];
|
|
12137
12136
|
throw new Error("Unable to calculate background-size for element");
|
|
12138
12137
|
}, pt = function(e, A) {
|
|
12139
12138
|
var t = e[A];
|
|
@@ -12217,7 +12216,7 @@ var dA = function(e, A, t, r, n) {
|
|
|
12217
12216
|
}, A.prototype.renderStack = function(t) {
|
|
12218
12217
|
return ZA(this, void 0, void 0, function() {
|
|
12219
12218
|
var r;
|
|
12220
|
-
return
|
|
12219
|
+
return SA(this, function(n) {
|
|
12221
12220
|
switch (n.label) {
|
|
12222
12221
|
case 0:
|
|
12223
12222
|
return r = t.element.container.styles, r.isVisible() ? [4, this.renderStackContent(t)] : [3, 2];
|
|
@@ -12233,7 +12232,7 @@ var dA = function(e, A, t, r, n) {
|
|
|
12233
12232
|
});
|
|
12234
12233
|
}, A.prototype.renderNode = function(t) {
|
|
12235
12234
|
return ZA(this, void 0, void 0, function() {
|
|
12236
|
-
return
|
|
12235
|
+
return SA(this, function(r) {
|
|
12237
12236
|
switch (r.label) {
|
|
12238
12237
|
case 0:
|
|
12239
12238
|
if (EA(
|
|
@@ -12277,17 +12276,17 @@ var dA = function(e, A, t, r, n) {
|
|
|
12277
12276
|
}, A.prototype.renderTextNode = function(t, r) {
|
|
12278
12277
|
return ZA(this, void 0, void 0, function() {
|
|
12279
12278
|
var n, a, o, i, l, s, c, u, d = this;
|
|
12280
|
-
return
|
|
12279
|
+
return SA(this, function(U) {
|
|
12281
12280
|
return n = this.createFontStyle(r), a = n[0], o = n[1], i = n[2], this.ctx.font = a, this.ctx.direction = r.direction === 1 ? "rtl" : "ltr", this.ctx.textAlign = "left", this.ctx.textBaseline = "alphabetic", l = this.fontMetrics.getMetrics(o, i), s = l.baseline, c = l.middle, u = r.paintOrder, t.textBounds.forEach(function(f) {
|
|
12282
12281
|
u.forEach(function(B) {
|
|
12283
12282
|
switch (B) {
|
|
12284
12283
|
case 0:
|
|
12285
12284
|
d.ctx.fillStyle = mA(r.color), d.renderTextWithLetterSpacing(f, r.letterSpacing, s);
|
|
12286
12285
|
var g = r.textShadow;
|
|
12287
|
-
g.length && f.text.trim().length && (g.slice(0).reverse().forEach(function(
|
|
12288
|
-
d.ctx.shadowColor = mA(
|
|
12289
|
-
}), d.ctx.shadowColor = "", d.ctx.shadowOffsetX = 0, d.ctx.shadowOffsetY = 0, d.ctx.shadowBlur = 0), r.textDecorationLine.length && (d.ctx.fillStyle = mA(r.textDecorationColor || r.color), r.textDecorationLine.forEach(function(
|
|
12290
|
-
switch (
|
|
12286
|
+
g.length && f.text.trim().length && (g.slice(0).reverse().forEach(function(h) {
|
|
12287
|
+
d.ctx.shadowColor = mA(h.color), d.ctx.shadowOffsetX = h.offsetX.number * d.options.scale, d.ctx.shadowOffsetY = h.offsetY.number * d.options.scale, d.ctx.shadowBlur = h.blur.number, d.renderTextWithLetterSpacing(f, r.letterSpacing, s);
|
|
12288
|
+
}), d.ctx.shadowColor = "", d.ctx.shadowOffsetX = 0, d.ctx.shadowOffsetY = 0, d.ctx.shadowBlur = 0), r.textDecorationLine.length && (d.ctx.fillStyle = mA(r.textDecorationColor || r.color), r.textDecorationLine.forEach(function(h) {
|
|
12289
|
+
switch (h) {
|
|
12291
12290
|
case 1:
|
|
12292
12291
|
d.ctx.fillRect(f.bounds.left, Math.round(f.bounds.top + s), f.bounds.width, 1);
|
|
12293
12292
|
break;
|
|
@@ -12318,8 +12317,8 @@ var dA = function(e, A, t, r, n) {
|
|
|
12318
12317
|
}
|
|
12319
12318
|
}, A.prototype.renderNodeContent = function(t) {
|
|
12320
12319
|
return ZA(this, void 0, void 0, function() {
|
|
12321
|
-
var r, n, a, o, i, l,
|
|
12322
|
-
return
|
|
12320
|
+
var r, n, a, o, i, l, p, p, s, c, u, d, C, U, f, v, B, g, h, p, Q, C, v;
|
|
12321
|
+
return SA(this, function(w) {
|
|
12323
12322
|
switch (w.label) {
|
|
12324
12323
|
case 0:
|
|
12325
12324
|
this.applyEffects(t.getEffects(
|
|
@@ -12339,7 +12338,7 @@ var dA = function(e, A, t, r, n) {
|
|
|
12339
12338
|
case 5:
|
|
12340
12339
|
return w.trys.push([5, 7, , 8]), [4, this.context.cache.match(r.src)];
|
|
12341
12340
|
case 6:
|
|
12342
|
-
return
|
|
12341
|
+
return p = w.sent(), this.renderReplacedElement(r, n, p), [3, 8];
|
|
12343
12342
|
case 7:
|
|
12344
12343
|
return w.sent(), this.context.logger.error("Error loading image " + r.src), [3, 8];
|
|
12345
12344
|
case 8:
|
|
@@ -12349,7 +12348,7 @@ var dA = function(e, A, t, r, n) {
|
|
|
12349
12348
|
case 9:
|
|
12350
12349
|
return w.trys.push([9, 11, , 12]), [4, this.context.cache.match(r.svg)];
|
|
12351
12350
|
case 10:
|
|
12352
|
-
return
|
|
12351
|
+
return p = w.sent(), this.renderReplacedElement(r, n, p), [3, 12];
|
|
12353
12352
|
case 11:
|
|
12354
12353
|
return w.sent(), this.context.logger.error("Error loading svg " + r.svg.substring(0, 255)), [3, 12];
|
|
12355
12354
|
case 12:
|
|
@@ -12373,7 +12372,7 @@ var dA = function(e, A, t, r, n) {
|
|
|
12373
12372
|
new H(r.bounds.left + u * 0.84, r.bounds.top + u * 0.34085),
|
|
12374
12373
|
new H(r.bounds.left + u * 0.39363, r.bounds.top + u * 0.79)
|
|
12375
12374
|
]), this.ctx.fillStyle = mA(As), this.ctx.fill(), this.ctx.restore()) : r.type === vn && r.checked && (this.ctx.save(), this.ctx.beginPath(), this.ctx.arc(r.bounds.left + u / 2, r.bounds.top + u / 2, u / 4, 0, Math.PI * 2, !0), this.ctx.fillStyle = mA(As), this.ctx.fill(), this.ctx.restore())), Gy(r) && r.value.length) {
|
|
12376
|
-
switch (d = this.createFontStyle(a), C = d[0],
|
|
12375
|
+
switch (d = this.createFontStyle(a), C = d[0], U = d[1], f = this.fontMetrics.getMetrics(C, U).baseline, this.ctx.font = C, this.ctx.fillStyle = mA(a.color), this.ctx.textBaseline = "alphabetic", this.ctx.textAlign = zy(r.styles.textAlign), v = In(r), B = 0, r.styles.textAlign) {
|
|
12377
12376
|
case 1:
|
|
12378
12377
|
B += v.width / 2;
|
|
12379
12378
|
break;
|
|
@@ -12396,15 +12395,15 @@ var dA = function(e, A, t, r, n) {
|
|
|
12396
12395
|
return [3, 20];
|
|
12397
12396
|
if (r.styles.listStyleImage === null)
|
|
12398
12397
|
return [3, 19];
|
|
12399
|
-
if (
|
|
12398
|
+
if (h = r.styles.listStyleImage, h.type !== 0)
|
|
12400
12399
|
return [3, 18];
|
|
12401
|
-
|
|
12400
|
+
p = void 0, Q = h.url, w.label = 15;
|
|
12402
12401
|
case 15:
|
|
12403
|
-
return w.trys.push([15, 17, , 18]), [4, this.context.cache.match(
|
|
12402
|
+
return w.trys.push([15, 17, , 18]), [4, this.context.cache.match(Q)];
|
|
12404
12403
|
case 16:
|
|
12405
|
-
return
|
|
12404
|
+
return p = w.sent(), this.ctx.drawImage(p, r.bounds.left - (p.width + 10), r.bounds.top), [3, 18];
|
|
12406
12405
|
case 17:
|
|
12407
|
-
return w.sent(), this.context.logger.error("Error loading list-style-image " +
|
|
12406
|
+
return w.sent(), this.context.logger.error("Error loading list-style-image " + Q), [3, 18];
|
|
12408
12407
|
case 18:
|
|
12409
12408
|
return [3, 20];
|
|
12410
12409
|
case 19:
|
|
@@ -12419,9 +12418,9 @@ var dA = function(e, A, t, r, n) {
|
|
|
12419
12418
|
});
|
|
12420
12419
|
}, A.prototype.renderStackContent = function(t) {
|
|
12421
12420
|
return ZA(this, void 0, void 0, function() {
|
|
12422
|
-
var r, n,
|
|
12423
|
-
return
|
|
12424
|
-
switch (
|
|
12421
|
+
var r, n, h, a, o, h, i, l, h, s, c, h, u, d, h, U, f, h, B, g, h;
|
|
12422
|
+
return SA(this, function(p) {
|
|
12423
|
+
switch (p.label) {
|
|
12425
12424
|
case 0:
|
|
12426
12425
|
if (EA(
|
|
12427
12426
|
t.element.container.flags,
|
|
@@ -12431,61 +12430,61 @@ var dA = function(e, A, t, r, n) {
|
|
|
12431
12430
|
debugger;
|
|
12432
12431
|
return [4, this.renderNodeBackgroundAndBorders(t.element)];
|
|
12433
12432
|
case 1:
|
|
12434
|
-
|
|
12433
|
+
p.sent(), r = 0, n = t.negativeZIndex, p.label = 2;
|
|
12435
12434
|
case 2:
|
|
12436
|
-
return r < n.length ? (
|
|
12435
|
+
return r < n.length ? (h = n[r], [4, this.renderStack(h)]) : [3, 5];
|
|
12437
12436
|
case 3:
|
|
12438
|
-
|
|
12437
|
+
p.sent(), p.label = 4;
|
|
12439
12438
|
case 4:
|
|
12440
12439
|
return r++, [3, 2];
|
|
12441
12440
|
case 5:
|
|
12442
12441
|
return [4, this.renderNodeContent(t.element)];
|
|
12443
12442
|
case 6:
|
|
12444
|
-
|
|
12443
|
+
p.sent(), a = 0, o = t.nonInlineLevel, p.label = 7;
|
|
12445
12444
|
case 7:
|
|
12446
|
-
return a < o.length ? (
|
|
12445
|
+
return a < o.length ? (h = o[a], [4, this.renderNode(h)]) : [3, 10];
|
|
12447
12446
|
case 8:
|
|
12448
|
-
|
|
12447
|
+
p.sent(), p.label = 9;
|
|
12449
12448
|
case 9:
|
|
12450
12449
|
return a++, [3, 7];
|
|
12451
12450
|
case 10:
|
|
12452
|
-
i = 0, l = t.nonPositionedFloats,
|
|
12451
|
+
i = 0, l = t.nonPositionedFloats, p.label = 11;
|
|
12453
12452
|
case 11:
|
|
12454
|
-
return i < l.length ? (
|
|
12453
|
+
return i < l.length ? (h = l[i], [4, this.renderStack(h)]) : [3, 14];
|
|
12455
12454
|
case 12:
|
|
12456
|
-
|
|
12455
|
+
p.sent(), p.label = 13;
|
|
12457
12456
|
case 13:
|
|
12458
12457
|
return i++, [3, 11];
|
|
12459
12458
|
case 14:
|
|
12460
|
-
s = 0, c = t.nonPositionedInlineLevel,
|
|
12459
|
+
s = 0, c = t.nonPositionedInlineLevel, p.label = 15;
|
|
12461
12460
|
case 15:
|
|
12462
|
-
return s < c.length ? (
|
|
12461
|
+
return s < c.length ? (h = c[s], [4, this.renderStack(h)]) : [3, 18];
|
|
12463
12462
|
case 16:
|
|
12464
|
-
|
|
12463
|
+
p.sent(), p.label = 17;
|
|
12465
12464
|
case 17:
|
|
12466
12465
|
return s++, [3, 15];
|
|
12467
12466
|
case 18:
|
|
12468
|
-
u = 0, d = t.inlineLevel,
|
|
12467
|
+
u = 0, d = t.inlineLevel, p.label = 19;
|
|
12469
12468
|
case 19:
|
|
12470
|
-
return u < d.length ? (
|
|
12469
|
+
return u < d.length ? (h = d[u], [4, this.renderNode(h)]) : [3, 22];
|
|
12471
12470
|
case 20:
|
|
12472
|
-
|
|
12471
|
+
p.sent(), p.label = 21;
|
|
12473
12472
|
case 21:
|
|
12474
12473
|
return u++, [3, 19];
|
|
12475
12474
|
case 22:
|
|
12476
|
-
|
|
12475
|
+
U = 0, f = t.zeroOrAutoZIndexOrTransformedOrOpacity, p.label = 23;
|
|
12477
12476
|
case 23:
|
|
12478
|
-
return
|
|
12477
|
+
return U < f.length ? (h = f[U], [4, this.renderStack(h)]) : [3, 26];
|
|
12479
12478
|
case 24:
|
|
12480
|
-
|
|
12479
|
+
p.sent(), p.label = 25;
|
|
12481
12480
|
case 25:
|
|
12482
|
-
return
|
|
12481
|
+
return U++, [3, 23];
|
|
12483
12482
|
case 26:
|
|
12484
|
-
B = 0, g = t.positiveZIndex,
|
|
12483
|
+
B = 0, g = t.positiveZIndex, p.label = 27;
|
|
12485
12484
|
case 27:
|
|
12486
|
-
return B < g.length ? (
|
|
12485
|
+
return B < g.length ? (h = g[B], [4, this.renderStack(h)]) : [3, 30];
|
|
12487
12486
|
case 28:
|
|
12488
|
-
|
|
12487
|
+
p.sent(), p.label = 29;
|
|
12489
12488
|
case 29:
|
|
12490
12489
|
return B++, [3, 27];
|
|
12491
12490
|
case 30:
|
|
@@ -12519,12 +12518,12 @@ var dA = function(e, A, t, r, n) {
|
|
|
12519
12518
|
}, A.prototype.renderBackgroundImage = function(t) {
|
|
12520
12519
|
return ZA(this, void 0, void 0, function() {
|
|
12521
12520
|
var r, n, a, o, i, l;
|
|
12522
|
-
return
|
|
12521
|
+
return SA(this, function(s) {
|
|
12523
12522
|
switch (s.label) {
|
|
12524
12523
|
case 0:
|
|
12525
12524
|
r = t.styles.backgroundImage.length - 1, n = function(c) {
|
|
12526
|
-
var u, d,
|
|
12527
|
-
return
|
|
12525
|
+
var u, d, U, O, G, q, S, P, M, f, O, G, q, S, P, B, g, h, p, Q, C, v, w, R, M, T, O, D, L, S, P, oA, G, q, rA, BA, cA, nA, X, z, IA, pA;
|
|
12526
|
+
return SA(this, function(fA) {
|
|
12528
12527
|
switch (fA.label) {
|
|
12529
12528
|
case 0:
|
|
12530
12529
|
if (c.type !== 0)
|
|
@@ -12537,13 +12536,13 @@ var dA = function(e, A, t, r, n) {
|
|
|
12537
12536
|
case 3:
|
|
12538
12537
|
return fA.sent(), a.context.logger.error("Error loading background-image " + d), [3, 4];
|
|
12539
12538
|
case 4:
|
|
12540
|
-
return u && (
|
|
12539
|
+
return u && (U = Ja(t, r, [
|
|
12541
12540
|
u.width,
|
|
12542
12541
|
u.height,
|
|
12543
12542
|
u.width / u.height
|
|
12544
|
-
]), O =
|
|
12543
|
+
]), O = U[0], G = U[1], q = U[2], S = U[3], P = U[4], M = a.ctx.createPattern(a.resizeImage(u, S, P), "repeat"), a.renderRepeat(O, M, G, q)), [3, 6];
|
|
12545
12544
|
case 5:
|
|
12546
|
-
IE(c) ? (f = Ja(t, r, [null, null, null]), O = f[0], G = f[1], q = f[2], S = f[3], P = f[4], B = vE(c.angle, S, P), g = B[0],
|
|
12545
|
+
IE(c) ? (f = Ja(t, r, [null, null, null]), O = f[0], G = f[1], q = f[2], S = f[3], P = f[4], B = vE(c.angle, S, P), g = B[0], h = B[1], p = B[2], Q = B[3], C = B[4], v = document.createElement("canvas"), v.width = S, v.height = P, w = v.getContext("2d"), R = w.createLinearGradient(h, Q, p, C), Hl(c.stops, g).forEach(function(hA) {
|
|
12547
12546
|
return R.addColorStop(hA.stop, mA(hA.color));
|
|
12548
12547
|
}), w.fillStyle = R, w.fillRect(0, 0, S, P), S > 0 && P > 0 && (M = a.ctx.createPattern(v, "repeat"), a.renderRepeat(O, M, G, q))) : NE(c) && (T = Ja(t, r, [
|
|
12549
12548
|
null,
|
|
@@ -12576,7 +12575,7 @@ var dA = function(e, A, t, r, n) {
|
|
|
12576
12575
|
});
|
|
12577
12576
|
}, A.prototype.renderSolidBorder = function(t, r, n) {
|
|
12578
12577
|
return ZA(this, void 0, void 0, function() {
|
|
12579
|
-
return
|
|
12578
|
+
return SA(this, function(a) {
|
|
12580
12579
|
return this.path(ds(n, r)), this.ctx.fillStyle = mA(t), this.ctx.fill(), [
|
|
12581
12580
|
2
|
|
12582
12581
|
/*return*/
|
|
@@ -12586,7 +12585,7 @@ var dA = function(e, A, t, r, n) {
|
|
|
12586
12585
|
}, A.prototype.renderDoubleBorder = function(t, r, n, a) {
|
|
12587
12586
|
return ZA(this, void 0, void 0, function() {
|
|
12588
12587
|
var o, i;
|
|
12589
|
-
return
|
|
12588
|
+
return SA(this, function(l) {
|
|
12590
12589
|
switch (l.label) {
|
|
12591
12590
|
case 0:
|
|
12592
12591
|
return r < 3 ? [4, this.renderSolidBorder(t, n, a)] : [3, 2];
|
|
@@ -12606,7 +12605,7 @@ var dA = function(e, A, t, r, n) {
|
|
|
12606
12605
|
}, A.prototype.renderNodeBackgroundAndBorders = function(t) {
|
|
12607
12606
|
return ZA(this, void 0, void 0, function() {
|
|
12608
12607
|
var r, n, a, o, i, l, s, c, u = this;
|
|
12609
|
-
return
|
|
12608
|
+
return SA(this, function(d) {
|
|
12610
12609
|
switch (d.label) {
|
|
12611
12610
|
case 0:
|
|
12612
12611
|
return this.applyEffects(t.getEffects(
|
|
@@ -12619,10 +12618,10 @@ var dA = function(e, A, t, r, n) {
|
|
|
12619
12618
|
{ style: r.borderLeftStyle, color: r.borderLeftColor, width: r.borderLeftWidth }
|
|
12620
12619
|
], o = Yy(pt(r.backgroundClip, 0), t.curves), n || r.boxShadow.length ? (this.ctx.save(), this.path(o), this.ctx.clip(), xe(r.backgroundColor) || (this.ctx.fillStyle = mA(r.backgroundColor), this.ctx.fill()), [4, this.renderBackgroundImage(t.container)]) : [3, 2];
|
|
12621
12620
|
case 1:
|
|
12622
|
-
d.sent(), this.ctx.restore(), r.boxShadow.slice(0).reverse().forEach(function(
|
|
12621
|
+
d.sent(), this.ctx.restore(), r.boxShadow.slice(0).reverse().forEach(function(U) {
|
|
12623
12622
|
u.ctx.save();
|
|
12624
|
-
var f = Vn(t.curves), B =
|
|
12625
|
-
|
|
12623
|
+
var f = Vn(t.curves), B = U.inset ? 0 : Ky, g = Sy(f, -B + (U.inset ? 1 : -1) * U.spread.number, (U.inset ? 1 : -1) * U.spread.number, U.spread.number * (U.inset ? -2 : 2), U.spread.number * (U.inset ? -2 : 2));
|
|
12624
|
+
U.inset ? (u.path(f), u.ctx.clip(), u.mask(g)) : (u.mask(f), u.ctx.clip(), u.path(g)), u.ctx.shadowOffsetX = U.offsetX.number + B, u.ctx.shadowOffsetY = U.offsetY.number, u.ctx.shadowColor = mA(U.color), u.ctx.shadowBlur = U.blur.number, u.ctx.fillStyle = U.inset ? mA(U.color) : "rgba(0,0,0,1)", u.ctx.fill(), u.ctx.restore();
|
|
12626
12625
|
}), d.label = 2;
|
|
12627
12626
|
case 2:
|
|
12628
12627
|
i = 0, l = 0, s = a, d.label = 3;
|
|
@@ -12670,9 +12669,9 @@ var dA = function(e, A, t, r, n) {
|
|
|
12670
12669
|
});
|
|
12671
12670
|
}, A.prototype.renderDashedDottedBorder = function(t, r, n, a, o) {
|
|
12672
12671
|
return ZA(this, void 0, void 0, function() {
|
|
12673
|
-
var i, l, s, c, u, d,
|
|
12674
|
-
return
|
|
12675
|
-
return this.ctx.save(), i = xy(a, n), l = ds(a, n), o === 2 && (this.path(l), this.ctx.clip()), qA(l[0]) ? (s = l[0].start.x, c = l[0].start.y) : (s = l[0].x, c = l[0].y), qA(l[1]) ? (u = l[1].end.x, d = l[1].end.y) : (u = l[1].x, d = l[1].y), n === 0 || n === 2 ?
|
|
12672
|
+
var i, l, s, c, u, d, U, f, B, g, h, p, Q, C, v, w, v, w;
|
|
12673
|
+
return SA(this, function(R) {
|
|
12674
|
+
return this.ctx.save(), i = xy(a, n), l = ds(a, n), o === 2 && (this.path(l), this.ctx.clip()), qA(l[0]) ? (s = l[0].start.x, c = l[0].start.y) : (s = l[0].x, c = l[0].y), qA(l[1]) ? (u = l[1].end.x, d = l[1].end.y) : (u = l[1].x, d = l[1].y), n === 0 || n === 2 ? U = Math.abs(s - u) : U = Math.abs(c - d), this.ctx.beginPath(), o === 3 ? this.formatPath(i) : this.formatPath(l.slice(0, 2)), f = r < 3 ? r * 3 : r * 2, B = r < 3 ? r * 2 : r, o === 3 && (f = r, B = r), g = !0, U <= f * 2 ? g = !1 : U <= f * 2 + B ? (h = U / (2 * f + B), f *= h, B *= h) : (p = Math.floor((U + B) / (f + B)), Q = (U - p * f) / (p - 1), C = (U - (p + 1) * f) / p, B = C <= 0 || Math.abs(B - Q) < Math.abs(B - C) ? Q : C), g && (o === 3 ? this.ctx.setLineDash([0, f + B]) : this.ctx.setLineDash([f, B])), o === 3 ? (this.ctx.lineCap = "round", this.ctx.lineWidth = r) : this.ctx.lineWidth = r * 2 + 1.1, this.ctx.strokeStyle = mA(t), this.ctx.stroke(), this.ctx.setLineDash([]), o === 2 && (qA(l[0]) && (v = l[3], w = l[0], this.ctx.beginPath(), this.formatPath([new H(v.end.x, v.end.y), new H(w.start.x, w.start.y)]), this.ctx.stroke()), qA(l[1]) && (v = l[1], w = l[2], this.ctx.beginPath(), this.formatPath([new H(v.end.x, v.end.y), new H(w.start.x, w.start.y)]), this.ctx.stroke())), this.ctx.restore(), [
|
|
12676
12675
|
2
|
|
12677
12676
|
/*return*/
|
|
12678
12677
|
];
|
|
@@ -12681,7 +12680,7 @@ var dA = function(e, A, t, r, n) {
|
|
|
12681
12680
|
}, A.prototype.render = function(t) {
|
|
12682
12681
|
return ZA(this, void 0, void 0, function() {
|
|
12683
12682
|
var r;
|
|
12684
|
-
return
|
|
12683
|
+
return SA(this, function(n) {
|
|
12685
12684
|
switch (n.label) {
|
|
12686
12685
|
case 0:
|
|
12687
12686
|
return this.options.backgroundColor && (this.ctx.fillStyle = mA(this.options.backgroundColor), this.ctx.fillRect(this.options.x, this.options.y, this.options.width, this.options.height)), r = My(t), [4, this.renderStack(r)];
|
|
@@ -12729,7 +12728,7 @@ var dA = function(e, A, t, r, n) {
|
|
|
12729
12728
|
return A.prototype.render = function(t) {
|
|
12730
12729
|
return ZA(this, void 0, void 0, function() {
|
|
12731
12730
|
var r, n;
|
|
12732
|
-
return
|
|
12731
|
+
return SA(this, function(a) {
|
|
12733
12732
|
switch (a.label) {
|
|
12734
12733
|
case 0:
|
|
12735
12734
|
return r = go(this.options.width * this.options.scale, this.options.height * this.options.scale, this.options.scale, this.options.scale, t), [4, _y(r)];
|
|
@@ -12789,8 +12788,8 @@ var dA = function(e, A, t, r, n) {
|
|
|
12789
12788
|
typeof window < "u" && Nu.setContext(window);
|
|
12790
12789
|
var eR = function(e, A) {
|
|
12791
12790
|
return ZA(void 0, void 0, void 0, function() {
|
|
12792
|
-
var t, r, n, a, o, i, l, s, c, u, d,
|
|
12793
|
-
return
|
|
12791
|
+
var t, r, n, a, o, i, l, s, c, u, d, U, f, B, g, h, p, Q, C, v, R, w, R, M, T, O, D, L, S, P, oA, G, q, rA, BA, cA, nA, X, z, IA;
|
|
12792
|
+
return SA(this, function(pA) {
|
|
12794
12793
|
switch (pA.label) {
|
|
12795
12794
|
case 0:
|
|
12796
12795
|
if (!e || typeof e != "object")
|
|
@@ -12817,23 +12816,23 @@ var eR = function(e, A) {
|
|
|
12817
12816
|
copyStyles: s
|
|
12818
12817
|
}, l.logger.debug("Starting document clone with size " + i.width + "x" + i.height + " scrolled to " + -i.left + "," + -i.top), u = new ss(l, e, c), d = u.clonedReferenceElement, d ? [4, u.toIFrame(t, i)] : [2, Promise.reject("Unable to find element in cloned iframe")];
|
|
12819
12818
|
case 1:
|
|
12820
|
-
return
|
|
12819
|
+
return U = pA.sent(), f = Fi(d) || ty(d) ? SF(d.ownerDocument) : jn(l, d), B = f.width, g = f.height, h = f.left, p = f.top, Q = tR(l, d, A.backgroundColor), C = {
|
|
12821
12820
|
canvas: A.canvas,
|
|
12822
|
-
backgroundColor:
|
|
12821
|
+
backgroundColor: Q,
|
|
12823
12822
|
scale: (BA = (rA = A.scale) !== null && rA !== void 0 ? rA : r.devicePixelRatio) !== null && BA !== void 0 ? BA : 1,
|
|
12824
|
-
x: ((cA = A.x) !== null && cA !== void 0 ? cA : 0) +
|
|
12825
|
-
y: ((nA = A.y) !== null && nA !== void 0 ? nA : 0) +
|
|
12823
|
+
x: ((cA = A.x) !== null && cA !== void 0 ? cA : 0) + h,
|
|
12824
|
+
y: ((nA = A.y) !== null && nA !== void 0 ? nA : 0) + p,
|
|
12826
12825
|
width: (X = A.width) !== null && X !== void 0 ? X : Math.ceil(B),
|
|
12827
12826
|
height: (z = A.height) !== null && z !== void 0 ? z : Math.ceil(g)
|
|
12828
12827
|
}, s ? (l.logger.debug("Document cloned, using foreign object rendering"), R = new Py(l, C), [4, R.render(d)]) : [3, 3];
|
|
12829
12828
|
case 2:
|
|
12830
12829
|
return v = pA.sent(), [3, 5];
|
|
12831
12830
|
case 3:
|
|
12832
|
-
return l.logger.debug("Document cloned, element located at " +
|
|
12831
|
+
return l.logger.debug("Document cloned, element located at " + h + "," + p + " with size " + B + "x" + g + " using computed rendering"), l.logger.debug("Starting DOM parsing"), w = Eu(l, d), Q === w.styles.backgroundColor && (w.styles.backgroundColor = Ee.TRANSPARENT), l.logger.debug("Starting renderer for element at " + C.x + "," + C.y + " with size " + C.width + "x" + C.height), R = new Ly(l, C), [4, R.render(w)];
|
|
12833
12832
|
case 4:
|
|
12834
12833
|
v = pA.sent(), pA.label = 5;
|
|
12835
12834
|
case 5:
|
|
12836
|
-
return (!((IA = A.removeContainer) !== null && IA !== void 0) || IA) && (ss.destroy(
|
|
12835
|
+
return (!((IA = A.removeContainer) !== null && IA !== void 0) || IA) && (ss.destroy(U) || l.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")), l.logger.debug("Finished rendering"), [2, v];
|
|
12837
12836
|
}
|
|
12838
12837
|
});
|
|
12839
12838
|
});
|
|
@@ -12862,7 +12861,7 @@ const rR = { class: "label-designer" }, nR = { class: "toolbar" }, aR = { class:
|
|
|
12862
12861
|
}, ZR = { class: "switch-input" }, sn = 0.05, kR = {
|
|
12863
12862
|
__name: "panels",
|
|
12864
12863
|
props: {
|
|
12865
|
-
|
|
12864
|
+
templateInfo: {
|
|
12866
12865
|
type: Object,
|
|
12867
12866
|
default: () => ({
|
|
12868
12867
|
graphData: {},
|
|
@@ -12893,7 +12892,7 @@ const rR = { class: "label-designer" }, nR = { class: "toolbar" }, aR = { class:
|
|
|
12893
12892
|
}
|
|
12894
12893
|
},
|
|
12895
12894
|
setup(e, { expose: A }) {
|
|
12896
|
-
const t = e, r =
|
|
12895
|
+
const t = e, r = Z({}), n = Z(0), a = Z([]), o = Z(1);
|
|
12897
12896
|
let i = 1;
|
|
12898
12897
|
const l = b(() => {
|
|
12899
12898
|
var E;
|
|
@@ -12902,8 +12901,8 @@ const rR = { class: "label-designer" }, nR = { class: "toolbar" }, aR = { class:
|
|
|
12902
12901
|
var E;
|
|
12903
12902
|
return ((E = r.value) == null ? void 0 : E.printHeight) || 0;
|
|
12904
12903
|
});
|
|
12905
|
-
|
|
12906
|
-
const c =
|
|
12904
|
+
Z(!1);
|
|
12905
|
+
const c = Z(!1), u = Z(!1), d = Z(/* @__PURE__ */ new Map()), U = Z(/* @__PURE__ */ new Map()), f = new Map(bc.map((E) => [E.type, E])), { selectedItems: B, selectItem: g, getCurrentSelected: h, clearSelection: p } = mF(), { dragging: Q, dragItem: C, startDrag: v } = CF({
|
|
12907
12906
|
scale: o,
|
|
12908
12907
|
canvasWidth: l,
|
|
12909
12908
|
canvasHeight: s,
|
|
@@ -12922,15 +12921,15 @@ const rR = { class: "label-designer" }, nR = { class: "toolbar" }, aR = { class:
|
|
|
12922
12921
|
}), { alignmentGuides: w, showGuides: R, updateAlignmentGuides: M, clearAlignmentGuides: T } = TF({
|
|
12923
12922
|
items: a,
|
|
12924
12923
|
dragItem: C,
|
|
12925
|
-
dragging:
|
|
12924
|
+
dragging: Q
|
|
12926
12925
|
}), { startResize: O } = EF(l, s, o, B), { startRotate: D } = vF();
|
|
12927
12926
|
FA(() => B.value, () => {
|
|
12928
12927
|
d.value.clear();
|
|
12929
12928
|
}, { deep: !0 });
|
|
12930
12929
|
const L = (E) => {
|
|
12931
12930
|
const F = `${E.id}_${E.props.x.toFixed(1)}_${E.props.y.toFixed(1)}_${E.props.width}_${E.props.height}_${E.props.rotation}`;
|
|
12932
|
-
if (
|
|
12933
|
-
return
|
|
12931
|
+
if (U.value.has(F))
|
|
12932
|
+
return U.value.get(F);
|
|
12934
12933
|
const $ = (E.props.rotation || 0) * Math.PI / 180, K = [
|
|
12935
12934
|
{ x: 0, y: 0 },
|
|
12936
12935
|
// top-left
|
|
@@ -12947,13 +12946,13 @@ const rR = { class: "label-designer" }, nR = { class: "toolbar" }, aR = { class:
|
|
|
12947
12946
|
y: Number((Ke + Y + E.props.y).toFixed(2))
|
|
12948
12947
|
};
|
|
12949
12948
|
});
|
|
12950
|
-
if (
|
|
12951
|
-
const lA =
|
|
12952
|
-
|
|
12949
|
+
if (U.value.set(F, y), U.value.size > 100) {
|
|
12950
|
+
const lA = U.value.keys().next().value;
|
|
12951
|
+
U.value.delete(lA);
|
|
12953
12952
|
}
|
|
12954
12953
|
return y;
|
|
12955
12954
|
}, S = (E) => {
|
|
12956
|
-
const F = L(E),
|
|
12955
|
+
const F = L(E), k = F.map((_) => _.x), $ = F.map((_) => _.y), K = Number(Math.min(...k).toFixed(2)), J = Number(Math.max(...k).toFixed(2)), Y = Number(Math.min(...$).toFixed(2)), y = Number(Math.max(...$).toFixed(2));
|
|
12957
12956
|
return {
|
|
12958
12957
|
minX: K,
|
|
12959
12958
|
maxX: J,
|
|
@@ -12965,35 +12964,35 @@ const rR = { class: "label-designer" }, nR = { class: "toolbar" }, aR = { class:
|
|
|
12965
12964
|
centerY: (Y + y) / 2
|
|
12966
12965
|
};
|
|
12967
12966
|
}, P = (E, F) => {
|
|
12968
|
-
const
|
|
12967
|
+
const k = S(E);
|
|
12969
12968
|
if (E.type === "horline" && F === "bottom") {
|
|
12970
12969
|
const J = parseFloat(E.props.LineWidth || "0.75") * 1.333 / 3.78;
|
|
12971
12970
|
return {
|
|
12972
|
-
top:
|
|
12971
|
+
top: k.minY + J + "mm"
|
|
12973
12972
|
};
|
|
12974
12973
|
}
|
|
12975
12974
|
if (E.type === "verline" && F === "right") {
|
|
12976
12975
|
const J = parseFloat(E.props.LineWidth || "0.75") * 1.333 / 3.78;
|
|
12977
12976
|
return {
|
|
12978
|
-
left:
|
|
12977
|
+
left: k.minX + J + "mm"
|
|
12979
12978
|
};
|
|
12980
12979
|
}
|
|
12981
12980
|
switch (F) {
|
|
12982
12981
|
case "left":
|
|
12983
12982
|
return {
|
|
12984
|
-
left:
|
|
12983
|
+
left: k.minX + "mm"
|
|
12985
12984
|
};
|
|
12986
12985
|
case "right":
|
|
12987
12986
|
return {
|
|
12988
|
-
left:
|
|
12987
|
+
left: k.maxX + "mm"
|
|
12989
12988
|
};
|
|
12990
12989
|
case "top":
|
|
12991
12990
|
return {
|
|
12992
|
-
top:
|
|
12991
|
+
top: k.minY + "mm"
|
|
12993
12992
|
};
|
|
12994
12993
|
case "bottom":
|
|
12995
12994
|
return {
|
|
12996
|
-
top:
|
|
12995
|
+
top: k.maxY + "mm"
|
|
12997
12996
|
};
|
|
12998
12997
|
default:
|
|
12999
12998
|
return {};
|
|
@@ -13003,20 +13002,20 @@ const rR = { class: "label-designer" }, nR = { class: "toolbar" }, aR = { class:
|
|
|
13003
13002
|
const E = document.querySelector(".canvas-container");
|
|
13004
13003
|
if (!E || !l.value || !s.value)
|
|
13005
13004
|
return;
|
|
13006
|
-
const F = E.getBoundingClientRect(),
|
|
13007
|
-
let K = F.width /
|
|
13008
|
-
K = K - 40 * K /
|
|
13005
|
+
const F = E.getBoundingClientRect(), k = pn(l.value), $ = pn(s.value);
|
|
13006
|
+
let K = F.width / k, J = F.height / $;
|
|
13007
|
+
K = K - 40 * K / k, J = J - 40 * J / $;
|
|
13009
13008
|
let Y = Math.min(K, J);
|
|
13010
13009
|
i = Math.max(0.8, Math.min(4, Y)), o.value = i = G(i, 1), setTimeout(() => n.value = 1, 100);
|
|
13011
13010
|
});
|
|
13012
13011
|
};
|
|
13013
13012
|
function G(E, F) {
|
|
13014
13013
|
E = E.toString();
|
|
13015
|
-
let
|
|
13016
|
-
return
|
|
13014
|
+
let k = E.indexOf(".");
|
|
13015
|
+
return k !== -1 ? E = E.substring(0, F + k + 1) : E = E.substring(0), Number(parseFloat(E).toFixed(F));
|
|
13017
13016
|
}
|
|
13018
13017
|
const q = (E) => f.get(E) || null, rA = (E) => {
|
|
13019
|
-
const F = B.value.indexOf(E),
|
|
13018
|
+
const F = B.value.indexOf(E), k = F === B.value.length - 1, $ = F !== -1, K = `${E.id}_${Math.round(E.props.x * 10)}_${Math.round(E.props.y * 10)}_${E.props.width}_${E.props.height}_${E.props.rotation}_${$}_${k}`;
|
|
13020
13019
|
if (d.value.has(K))
|
|
13021
13020
|
return d.value.get(K);
|
|
13022
13021
|
const J = {
|
|
@@ -13024,16 +13023,16 @@ const rR = { class: "label-designer" }, nR = { class: "toolbar" }, aR = { class:
|
|
|
13024
13023
|
height: E.props.height + "mm",
|
|
13025
13024
|
transform: `translate(${E.props.x}mm, ${E.props.y}mm) rotate(${E.props.rotation}deg)`
|
|
13026
13025
|
};
|
|
13027
|
-
if ($ ?
|
|
13026
|
+
if ($ ? k ? J.zIndex = 1e3 : J.zIndex = 999 : J.zIndex = 10, d.value.set(K, J), d.value.size > 200) {
|
|
13028
13027
|
const Y = d.value.keys().next().value;
|
|
13029
13028
|
d.value.delete(Y);
|
|
13030
13029
|
}
|
|
13031
13030
|
return J;
|
|
13032
13031
|
}, BA = (E) => {
|
|
13033
|
-
const F = B.value.some(($) => $.id === E.id),
|
|
13032
|
+
const F = B.value.some(($) => $.id === E.id), k = h() === E;
|
|
13034
13033
|
return {
|
|
13035
13034
|
"component-selected": F,
|
|
13036
|
-
"component-current": F &&
|
|
13035
|
+
"component-current": F && k,
|
|
13037
13036
|
"no-outline": F && (E.type === "horline" || E.type === "verline")
|
|
13038
13037
|
};
|
|
13039
13038
|
}, cA = (E, F) => {
|
|
@@ -13073,44 +13072,44 @@ const rR = { class: "label-designer" }, nR = { class: "toolbar" }, aR = { class:
|
|
|
13073
13072
|
const F = document.activeElement.tagName.toLowerCase();
|
|
13074
13073
|
if (F === "input" || F === "textarea")
|
|
13075
13074
|
return;
|
|
13076
|
-
const
|
|
13077
|
-
if (!
|
|
13075
|
+
const k = h();
|
|
13076
|
+
if (!k)
|
|
13078
13077
|
return;
|
|
13079
|
-
const $ = Number(
|
|
13080
|
-
let J =
|
|
13081
|
-
if (E.key === "ArrowLeft" ? (J = Number((
|
|
13078
|
+
const $ = Number(k.props.width) || 0, K = Number(k.props.height) || 0;
|
|
13079
|
+
let J = k.props.x, Y = k.props.y, y = !1;
|
|
13080
|
+
if (E.key === "ArrowLeft" ? (J = Number((k.props.x - sn).toFixed(2)), y = !0) : E.key === "ArrowRight" ? (J = Number((k.props.x + sn).toFixed(2)), y = !0) : E.key === "ArrowUp" ? (Y = Number((k.props.y - sn).toFixed(2)), y = !0) : E.key === "ArrowDown" && (Y = Number((k.props.y + sn).toFixed(2)), y = !0), y) {
|
|
13082
13081
|
const lA = l.value - $, _ = s.value - K;
|
|
13083
|
-
J < 0 ? J = 0 : J > lA && (J = lA), Y < 0 ? Y = 0 : Y > _ && (Y = _),
|
|
13082
|
+
J < 0 ? J = 0 : J > lA && (J = lA), Y < 0 ? Y = 0 : Y > _ && (Y = _), k.props.x = J, k.props.y = Y, E.preventDefault();
|
|
13084
13083
|
}
|
|
13085
13084
|
}
|
|
13086
|
-
const IA = ({ e: E, comp: F, previewDiv:
|
|
13085
|
+
const IA = ({ e: E, comp: F, previewDiv: k }) => {
|
|
13087
13086
|
var $, K;
|
|
13088
|
-
($ = E == null ? void 0 : E.dataTransfer) == null || $.setData("comp", JSON.stringify(F)), document.body.appendChild(
|
|
13087
|
+
($ = E == null ? void 0 : E.dataTransfer) == null || $.setData("comp", JSON.stringify(F)), document.body.appendChild(k), (K = E == null ? void 0 : E.dataTransfer) == null || K.setDragImage(k, 0, 0), setTimeout(() => document.body.removeChild(k), 0);
|
|
13089
13088
|
}, pA = async (E) => {
|
|
13090
13089
|
var Nr, mi, vi;
|
|
13091
13090
|
E.preventDefault();
|
|
13092
|
-
const F = JSON.parse(((mi = (Nr = E == null ? void 0 : E.dataTransfer) == null ? void 0 : Nr.getData) == null ? void 0 : mi.call(Nr, "comp")) || "{}") || {},
|
|
13093
|
-
if (!
|
|
13091
|
+
const F = JSON.parse(((mi = (Nr = E == null ? void 0 : E.dataTransfer) == null ? void 0 : Nr.getData) == null ? void 0 : mi.call(Nr, "comp")) || "{}") || {}, k = (F == null ? void 0 : F.type) || "";
|
|
13092
|
+
if (!k)
|
|
13094
13093
|
return;
|
|
13095
|
-
const $ = document.querySelector("#design").getBoundingClientRect(), K = (E.clientX - $.left) / o.value, J = (E.clientY - $.top) / o.value, Y = CA.value[
|
|
13094
|
+
const $ = document.querySelector("#design").getBoundingClientRect(), K = (E.clientX - $.left) / o.value, J = (E.clientY - $.top) / o.value, Y = CA.value[k] || {};
|
|
13096
13095
|
let y = il(K), lA = il(J);
|
|
13097
13096
|
const _ = Y.width, XA = Y.height, ce = l.value - _, Ke = s.value - XA;
|
|
13098
13097
|
y = Math.max(0, Math.min(y, ce)), lA = Math.max(0, Math.min(lA, Ke));
|
|
13099
13098
|
const { propertyPanel: DR, ...ku } = Y;
|
|
13100
13099
|
let Ir = { ...ku, x: Number(y.toFixed(2)), y: Number(lA.toFixed(2)), width: Number(_.toFixed(2)), height: Number(XA.toFixed(2)) };
|
|
13101
|
-
if ((vi = CA.value[
|
|
13102
|
-
const ia = at(CA.value[
|
|
13100
|
+
if ((vi = CA.value[k]) != null && vi.propertyPanel) {
|
|
13101
|
+
const ia = at(CA.value[k].propertyPanel) || {};
|
|
13103
13102
|
if (Ir = {
|
|
13104
13103
|
...Ir,
|
|
13105
13104
|
...ia
|
|
13106
|
-
},
|
|
13105
|
+
}, k === "horline" && ia.LineWidth) {
|
|
13107
13106
|
const Ou = parseFloat(ia.LineWidth) * 0.3528;
|
|
13108
13107
|
Ir.height = Number(Ou.toFixed(3));
|
|
13109
13108
|
}
|
|
13110
13109
|
}
|
|
13111
13110
|
const Ei = {
|
|
13112
13111
|
id: na(),
|
|
13113
|
-
type:
|
|
13112
|
+
type: k,
|
|
13114
13113
|
props: Ir
|
|
13115
13114
|
};
|
|
13116
13115
|
a.value.push(Ei), g(Ei);
|
|
@@ -13122,14 +13121,14 @@ const rR = { class: "label-designer" }, nR = { class: "toolbar" }, aR = { class:
|
|
|
13122
13121
|
return;
|
|
13123
13122
|
F = F.parentElement;
|
|
13124
13123
|
}
|
|
13125
|
-
|
|
13124
|
+
p();
|
|
13126
13125
|
}
|
|
13127
13126
|
const hA = (E, F) => {
|
|
13128
13127
|
if (B.value.length === 0) {
|
|
13129
13128
|
g(F), v(E, F);
|
|
13130
13129
|
return;
|
|
13131
13130
|
}
|
|
13132
|
-
if (
|
|
13131
|
+
if (h() === F) {
|
|
13133
13132
|
v(E, F);
|
|
13134
13133
|
return;
|
|
13135
13134
|
}
|
|
@@ -13139,19 +13138,19 @@ const rR = { class: "label-designer" }, nR = { class: "toolbar" }, aR = { class:
|
|
|
13139
13138
|
for (const K of d.value.keys())
|
|
13140
13139
|
K.includes(E) && F.push(K);
|
|
13141
13140
|
F.forEach((K) => d.value.delete(K));
|
|
13142
|
-
const
|
|
13143
|
-
for (const K of
|
|
13144
|
-
K.includes(E) &&
|
|
13145
|
-
if (
|
|
13141
|
+
const k = [];
|
|
13142
|
+
for (const K of U.value.keys())
|
|
13143
|
+
K.includes(E) && k.push(K);
|
|
13144
|
+
if (k.forEach((K) => U.value.delete(K)), d.value.clear(), U.value.clear(), a.value.find((K) => K.id === E) && (a.value = a.value.filter((K) => K.id !== E)), B.value.some((K) => K.id === E)) {
|
|
13146
13145
|
const K = B.value.filter((J) => J.id !== E);
|
|
13147
13146
|
B.value = K;
|
|
13148
13147
|
}
|
|
13149
13148
|
de(() => {
|
|
13150
13149
|
});
|
|
13151
13150
|
}, jA = (E) => {
|
|
13152
|
-
var
|
|
13151
|
+
var k;
|
|
13153
13152
|
const F = document.activeElement.tagName.toLowerCase();
|
|
13154
|
-
F === "input" || F === "textarea" || (E.key === "Delete" || E.key === "Backspace") && B.value.length > 0 && NA((
|
|
13153
|
+
F === "input" || F === "textarea" || (E.key === "Delete" || E.key === "Backspace") && B.value.length > 0 && NA((k = h()) == null ? void 0 : k.id);
|
|
13155
13154
|
}, { handleMouseWheel: se, handleInputChange: Je, adjustRotation: Wt } = RF(B, l, s), ot = () => {
|
|
13156
13155
|
setTimeout(() => {
|
|
13157
13156
|
const E = document.querySelector(".center-container");
|
|
@@ -13161,10 +13160,10 @@ const rR = { class: "label-designer" }, nR = { class: "toolbar" }, aR = { class:
|
|
|
13161
13160
|
E.style.height = `calc(100vh - ${F == null ? void 0 : F.top}px)`, oA();
|
|
13162
13161
|
}, 200);
|
|
13163
13162
|
};
|
|
13164
|
-
FA(() => t.
|
|
13163
|
+
FA(() => t.templateInfo, (E, F) => {
|
|
13165
13164
|
E !== F && (r.value = E || {}, a.value = (E == null ? void 0 : E.items) || [], ot());
|
|
13166
13165
|
}, { deep: !0, immediate: !0 });
|
|
13167
|
-
const { handleCopy: Vr, handlePaste: ne } = VF(a, B, l, s), CA =
|
|
13166
|
+
const { handleCopy: Vr, handlePaste: ne } = VF(a, B, l, s), CA = Z({}), ae = Z(!1), ve = async (E) => {
|
|
13168
13167
|
try {
|
|
13169
13168
|
ae.value = !1, CA.value = await zw(E), ae.value = !0;
|
|
13170
13169
|
} catch (F) {
|
|
@@ -13173,7 +13172,7 @@ const rR = { class: "label-designer" }, nR = { class: "toolbar" }, aR = { class:
|
|
|
13173
13172
|
};
|
|
13174
13173
|
FA(() => t.templateType, async (E) => {
|
|
13175
13174
|
try {
|
|
13176
|
-
await ve(E),
|
|
13175
|
+
await ve(E), p(), d.value.clear(), U.value.clear(), console.log("配置切换成功:", E);
|
|
13177
13176
|
} catch (F) {
|
|
13178
13177
|
console.error("配置切换失败:", F);
|
|
13179
13178
|
}
|
|
@@ -13189,11 +13188,11 @@ const rR = { class: "label-designer" }, nR = { class: "toolbar" }, aR = { class:
|
|
|
13189
13188
|
});
|
|
13190
13189
|
}
|
|
13191
13190
|
const aa = (E) => {
|
|
13192
|
-
var
|
|
13191
|
+
var k;
|
|
13193
13192
|
if (!CA.value || !CA.value[E])
|
|
13194
13193
|
return console.warn(`组件类型 ${E} 在当前配置中不存在`), {};
|
|
13195
13194
|
const F = CA.value[E] || {};
|
|
13196
|
-
return E === "image" && ((
|
|
13195
|
+
return E === "image" && ((k = t.config) != null && k.image) ? {
|
|
13197
13196
|
...F,
|
|
13198
13197
|
image: {
|
|
13199
13198
|
...F.image,
|
|
@@ -13207,9 +13206,9 @@ const rR = { class: "label-designer" }, nR = { class: "toolbar" }, aR = { class:
|
|
|
13207
13206
|
const E = NF(r.value.graphData) || "";
|
|
13208
13207
|
E && ((F = document.querySelector("#design")) == null || F.appendChild(E));
|
|
13209
13208
|
}, Ci = () => new Promise((E, F) => {
|
|
13210
|
-
|
|
13211
|
-
const
|
|
13212
|
-
|
|
13209
|
+
p(), JSON.parse(JSON.stringify(a.value));
|
|
13210
|
+
const k = JSON.parse(JSON.stringify(a.value));
|
|
13211
|
+
k == null || k.forEach((K) => {
|
|
13213
13212
|
var J, Y;
|
|
13214
13213
|
if (K.type == "text") {
|
|
13215
13214
|
const y = ((Y = (J = t.options) == null ? void 0 : J.fields) == null ? void 0 : Y.find((lA) => {
|
|
@@ -13218,7 +13217,7 @@ const rR = { class: "label-designer" }, nR = { class: "toolbar" }, aR = { class:
|
|
|
13218
13217
|
})) || {};
|
|
13219
13218
|
K.props.Text = K.props.Text || (y == null ? void 0 : y.label);
|
|
13220
13219
|
}
|
|
13221
|
-
}), [...
|
|
13220
|
+
}), [...k];
|
|
13222
13221
|
const $ = () => {
|
|
13223
13222
|
var Y;
|
|
13224
13223
|
const K = ((Y = document.querySelector("#design")) == null ? void 0 : Y.querySelectorAll("img")) || [], J = Array.from(K).map((y) => y.complete ? Promise.resolve() : new Promise((lA) => {
|
|
@@ -13272,7 +13271,7 @@ const rR = { class: "label-designer" }, nR = { class: "toolbar" }, aR = { class:
|
|
|
13272
13271
|
F(Y);
|
|
13273
13272
|
});
|
|
13274
13273
|
});
|
|
13275
|
-
}),
|
|
13274
|
+
}), bA = () => new Promise((E, F) => {
|
|
13276
13275
|
a.value.forEach(($) => {
|
|
13277
13276
|
if ($.type === "image" && !$.props.ImageSrc)
|
|
13278
13277
|
return dr.warning("图片控件请选择图片!"), F("图片控件请选择图片!");
|
|
@@ -13280,16 +13279,16 @@ const rR = { class: "label-designer" }, nR = { class: "toolbar" }, aR = { class:
|
|
|
13280
13279
|
});
|
|
13281
13280
|
return A({
|
|
13282
13281
|
// 获取JSON数据
|
|
13283
|
-
getJson: () =>
|
|
13282
|
+
getJson: () => bA().then(() => Tr()),
|
|
13284
13283
|
// 清空画布
|
|
13285
13284
|
clear: () => {
|
|
13286
|
-
a.value = [],
|
|
13285
|
+
a.value = [], p();
|
|
13287
13286
|
},
|
|
13288
13287
|
// 生成快照
|
|
13289
|
-
snapshot: () =>
|
|
13288
|
+
snapshot: () => bA().then(() => Ci())
|
|
13290
13289
|
}), (E, F) => {
|
|
13291
13290
|
var Y;
|
|
13292
|
-
const
|
|
13291
|
+
const k = QA("el-icon-refresh-left"), $ = QA("el-icon"), K = QA("el-icon-close"), J = QA("el-switch");
|
|
13293
13292
|
return V(), N("div", rR, [
|
|
13294
13293
|
m("div", nR, [
|
|
13295
13294
|
W(tF, {
|
|
@@ -13343,11 +13342,11 @@ const rR = { class: "label-designer" }, nR = { class: "toolbar" }, aR = { class:
|
|
|
13343
13342
|
class: "canvas",
|
|
13344
13343
|
style: AA(`width: ${l.value}mm; height: ${s.value}mm;`),
|
|
13345
13344
|
onDrop: pA,
|
|
13346
|
-
onDragover: F[1] || (F[1] =
|
|
13345
|
+
onDragover: F[1] || (F[1] = xA(() => {
|
|
13347
13346
|
}, ["prevent"])),
|
|
13348
13347
|
onPointerdown: fA
|
|
13349
13348
|
}, [
|
|
13350
|
-
I(
|
|
13349
|
+
I(Q) && I(C) ? (V(), N("div", BR, [
|
|
13351
13350
|
m("div", {
|
|
13352
13351
|
class: "drag-extend-line vertical",
|
|
13353
13352
|
style: AA(P(I(C), "left"))
|
|
@@ -13392,65 +13391,65 @@ const rR = { class: "label-designer" }, nR = { class: "toolbar" }, aR = { class:
|
|
|
13392
13391
|
class: _A(["canvas-item", BA(y)]),
|
|
13393
13392
|
style: AA(rA(y)),
|
|
13394
13393
|
"data-item-id": y.id,
|
|
13395
|
-
onMousedown:
|
|
13396
|
-
onClick:
|
|
13394
|
+
onMousedown: xA((_) => hA(_, y), ["stop"]),
|
|
13395
|
+
onClick: xA((_) => I(g)(y), ["stop"])
|
|
13397
13396
|
}, [
|
|
13398
|
-
I(
|
|
13397
|
+
I(h)() === y ? (V(), N(VA, { key: 0 }, [
|
|
13399
13398
|
y.props.lockAspectRatio ? tA("", !0) : (V(), N(VA, { key: 0 }, [
|
|
13400
13399
|
y.type !== "verline" && y.type !== "horline" ? (V(), N("div", {
|
|
13401
13400
|
key: 0,
|
|
13402
13401
|
class: "resize-handle right",
|
|
13403
13402
|
style: AA(cA(y, "right")),
|
|
13404
|
-
onMousedown:
|
|
13403
|
+
onMousedown: xA((_) => I(O)(_, y, "right"), ["stop"])
|
|
13405
13404
|
}, null, 44, gR)) : tA("", !0),
|
|
13406
13405
|
y.type !== "horline" ? (V(), N("div", {
|
|
13407
13406
|
key: 1,
|
|
13408
13407
|
class: "resize-handle bottom",
|
|
13409
13408
|
style: AA(cA(y, "bottom")),
|
|
13410
|
-
onMousedown:
|
|
13409
|
+
onMousedown: xA((_) => I(O)(_, y, "bottom"), ["stop"])
|
|
13411
13410
|
}, null, 44, UR)) : tA("", !0),
|
|
13412
13411
|
y.type !== "verline" ? (V(), N("div", {
|
|
13413
13412
|
key: 2,
|
|
13414
13413
|
class: "resize-handle left",
|
|
13415
13414
|
style: AA(cA(y, "left")),
|
|
13416
|
-
onMousedown:
|
|
13415
|
+
onMousedown: xA((_) => I(O)(_, y, "left"), ["stop"])
|
|
13417
13416
|
}, null, 44, pR)) : tA("", !0)
|
|
13418
13417
|
], 64)),
|
|
13419
13418
|
y.type !== "horline" && y.type !== "verline" ? (V(), N("div", {
|
|
13420
13419
|
key: 1,
|
|
13421
13420
|
class: "resize-handle top-left",
|
|
13422
13421
|
style: AA(cA(y, "top-left")),
|
|
13423
|
-
onMousedown:
|
|
13422
|
+
onMousedown: xA((_) => I(O)(_, y, "top-left"), ["stop"])
|
|
13424
13423
|
}, null, 44, QR)) : tA("", !0),
|
|
13425
13424
|
y.type !== "horline" && y.type !== "verline" ? (V(), N("div", {
|
|
13426
13425
|
key: 2,
|
|
13427
13426
|
class: "resize-handle bottom-right",
|
|
13428
13427
|
style: AA(cA(y, "bottom-right")),
|
|
13429
|
-
onMousedown:
|
|
13428
|
+
onMousedown: xA((_) => I(O)(_, y, "bottom-right"), ["stop"])
|
|
13430
13429
|
}, null, 44, wR)) : tA("", !0),
|
|
13431
13430
|
y.type !== "horline" && y.type !== "verline" ? (V(), N("div", {
|
|
13432
13431
|
key: 3,
|
|
13433
13432
|
class: "resize-handle bottom-left",
|
|
13434
13433
|
style: AA(cA(y, "bottom-left")),
|
|
13435
|
-
onMousedown:
|
|
13434
|
+
onMousedown: xA((_) => I(O)(_, y, "bottom-left"), ["stop"])
|
|
13436
13435
|
}, null, 44, FR)) : tA("", !0),
|
|
13437
13436
|
y.type !== "verline" ? (V(), N("div", {
|
|
13438
13437
|
key: 4,
|
|
13439
13438
|
class: "rotate-handle",
|
|
13440
|
-
onMousedown:
|
|
13439
|
+
onMousedown: xA((_) => I(D)(_, y), ["stop"])
|
|
13441
13440
|
}, [
|
|
13442
13441
|
W($, { size: "6" }, {
|
|
13443
13442
|
default: j(() => [
|
|
13444
|
-
W(
|
|
13443
|
+
W(k)
|
|
13445
13444
|
]),
|
|
13446
13445
|
_: 1
|
|
13447
13446
|
})
|
|
13448
13447
|
], 40, CR)) : tA("", !0),
|
|
13449
13448
|
m("div", {
|
|
13450
13449
|
class: "delete-btn",
|
|
13451
|
-
onMousedown: F[0] || (F[0] =
|
|
13450
|
+
onMousedown: F[0] || (F[0] = xA(() => {
|
|
13452
13451
|
}, ["stop"])),
|
|
13453
|
-
onClick:
|
|
13452
|
+
onClick: xA((_) => NA(y.id), ["stop"]),
|
|
13454
13453
|
title: "删除"
|
|
13455
13454
|
}, [
|
|
13456
13455
|
W($, { size: "6" }, {
|
|
@@ -13463,7 +13462,7 @@ const rR = { class: "label-designer" }, nR = { class: "toolbar" }, aR = { class:
|
|
|
13463
13462
|
], 64)) : tA("", !0),
|
|
13464
13463
|
y.props && ae.value ? (V(), vA(cr(((lA = q(y.type)) == null ? void 0 : lA.component) || null), {
|
|
13465
13464
|
key: `${y.id}-${y.type}`,
|
|
13466
|
-
modelValue: { ...y.props, __selected: I(
|
|
13465
|
+
modelValue: { ...y.props, __selected: I(h)() === y },
|
|
13467
13466
|
propsConfig: CA.value,
|
|
13468
13467
|
"onUpdate:modelValue": (_) => {
|
|
13469
13468
|
const { __selected: XA, ...ce } = _;
|
|
@@ -13490,12 +13489,12 @@ const rR = { class: "label-designer" }, nR = { class: "toolbar" }, aR = { class:
|
|
|
13490
13489
|
}, "-"),
|
|
13491
13490
|
GA(m("input", {
|
|
13492
13491
|
type: "number",
|
|
13493
|
-
"onUpdate:modelValue": F[3] || (F[3] = (y) => I(
|
|
13492
|
+
"onUpdate:modelValue": F[3] || (F[3] = (y) => I(h)().props.x = y),
|
|
13494
13493
|
onInput: F[4] || (F[4] = (y) => I(Je)("x", y.target.value))
|
|
13495
13494
|
}, null, 544), [
|
|
13496
13495
|
[
|
|
13497
13496
|
Ye,
|
|
13498
|
-
I(
|
|
13497
|
+
I(h)().props.x,
|
|
13499
13498
|
void 0,
|
|
13500
13499
|
{ number: !0 }
|
|
13501
13500
|
]
|
|
@@ -13513,12 +13512,12 @@ const rR = { class: "label-designer" }, nR = { class: "toolbar" }, aR = { class:
|
|
|
13513
13512
|
}, "-"),
|
|
13514
13513
|
GA(m("input", {
|
|
13515
13514
|
type: "number",
|
|
13516
|
-
"onUpdate:modelValue": F[7] || (F[7] = (y) => I(
|
|
13515
|
+
"onUpdate:modelValue": F[7] || (F[7] = (y) => I(h)().props.y = y),
|
|
13517
13516
|
onInput: F[8] || (F[8] = (y) => I(Je)("y", y.target.value))
|
|
13518
13517
|
}, null, 544), [
|
|
13519
13518
|
[
|
|
13520
13519
|
Ye,
|
|
13521
|
-
I(
|
|
13520
|
+
I(h)().props.y,
|
|
13522
13521
|
void 0,
|
|
13523
13522
|
{ number: !0 }
|
|
13524
13523
|
]
|
|
@@ -13528,7 +13527,7 @@ const rR = { class: "label-designer" }, nR = { class: "toolbar" }, aR = { class:
|
|
|
13528
13527
|
}, "+")
|
|
13529
13528
|
])
|
|
13530
13529
|
]),
|
|
13531
|
-
I(
|
|
13530
|
+
I(h)().type !== "verline" ? (V(), N("div", IR, [
|
|
13532
13531
|
F[27] || (F[27] = m("label", null, "宽度:", -1)),
|
|
13533
13532
|
m("div", NR, [
|
|
13534
13533
|
m("button", {
|
|
@@ -13536,12 +13535,12 @@ const rR = { class: "label-designer" }, nR = { class: "toolbar" }, aR = { class:
|
|
|
13536
13535
|
}, "-"),
|
|
13537
13536
|
GA(m("input", {
|
|
13538
13537
|
type: "number",
|
|
13539
|
-
"onUpdate:modelValue": F[11] || (F[11] = (y) => I(
|
|
13538
|
+
"onUpdate:modelValue": F[11] || (F[11] = (y) => I(h)().props.width = y),
|
|
13540
13539
|
onInput: F[12] || (F[12] = (y) => I(Je)("width", y.target.value))
|
|
13541
13540
|
}, null, 544), [
|
|
13542
13541
|
[
|
|
13543
13542
|
Ye,
|
|
13544
|
-
I(
|
|
13543
|
+
I(h)().props.width,
|
|
13545
13544
|
void 0,
|
|
13546
13545
|
{ number: !0 }
|
|
13547
13546
|
]
|
|
@@ -13551,7 +13550,7 @@ const rR = { class: "label-designer" }, nR = { class: "toolbar" }, aR = { class:
|
|
|
13551
13550
|
}, "+")
|
|
13552
13551
|
])
|
|
13553
13552
|
])) : tA("", !0),
|
|
13554
|
-
I(
|
|
13553
|
+
I(h)().type !== "horline" ? (V(), N("div", SR, [
|
|
13555
13554
|
F[28] || (F[28] = m("label", null, "高度:", -1)),
|
|
13556
13555
|
m("div", MR, [
|
|
13557
13556
|
m("button", {
|
|
@@ -13559,12 +13558,12 @@ const rR = { class: "label-designer" }, nR = { class: "toolbar" }, aR = { class:
|
|
|
13559
13558
|
}, "-"),
|
|
13560
13559
|
GA(m("input", {
|
|
13561
13560
|
type: "number",
|
|
13562
|
-
"onUpdate:modelValue": F[15] || (F[15] = (y) => I(
|
|
13561
|
+
"onUpdate:modelValue": F[15] || (F[15] = (y) => I(h)().props.height = y),
|
|
13563
13562
|
onInput: F[16] || (F[16] = (y) => I(Je)("height", y.target.value))
|
|
13564
13563
|
}, null, 544), [
|
|
13565
13564
|
[
|
|
13566
13565
|
Ye,
|
|
13567
|
-
I(
|
|
13566
|
+
I(h)().props.height,
|
|
13568
13567
|
void 0,
|
|
13569
13568
|
{ number: !0 }
|
|
13570
13569
|
]
|
|
@@ -13582,12 +13581,12 @@ const rR = { class: "label-designer" }, nR = { class: "toolbar" }, aR = { class:
|
|
|
13582
13581
|
}, "-"),
|
|
13583
13582
|
GA(m("input", {
|
|
13584
13583
|
type: "number",
|
|
13585
|
-
"onUpdate:modelValue": F[19] || (F[19] = (y) => I(
|
|
13584
|
+
"onUpdate:modelValue": F[19] || (F[19] = (y) => I(h)().props.rotation = y),
|
|
13586
13585
|
onInput: F[20] || (F[20] = (y) => I(Je)("rotation", y.target.value))
|
|
13587
13586
|
}, null, 544), [
|
|
13588
13587
|
[
|
|
13589
13588
|
Ye,
|
|
13590
|
-
I(
|
|
13589
|
+
I(h)().props.rotation,
|
|
13591
13590
|
void 0,
|
|
13592
13591
|
{ number: !0 }
|
|
13593
13592
|
]
|
|
@@ -13597,30 +13596,30 @@ const rR = { class: "label-designer" }, nR = { class: "toolbar" }, aR = { class:
|
|
|
13597
13596
|
}, "+")
|
|
13598
13597
|
])
|
|
13599
13598
|
]),
|
|
13600
|
-
I(
|
|
13599
|
+
I(h)().type !== "horline" ? (V(), N("div", xR, [
|
|
13601
13600
|
F[30] || (F[30] = m("label", null, "锁定宽高比:", -1)),
|
|
13602
13601
|
m("div", ZR, [
|
|
13603
13602
|
W(J, {
|
|
13604
|
-
modelValue: I(
|
|
13605
|
-
"onUpdate:modelValue": F[22] || (F[22] = (y) => I(
|
|
13603
|
+
modelValue: I(h)().props.lockAspectRatio,
|
|
13604
|
+
"onUpdate:modelValue": F[22] || (F[22] = (y) => I(h)().props.lockAspectRatio = y),
|
|
13606
13605
|
"active-value": !0,
|
|
13607
13606
|
"inactive-value": !1
|
|
13608
13607
|
}, null, 8, ["modelValue"])
|
|
13609
13608
|
])
|
|
13610
13609
|
])) : tA("", !0)
|
|
13611
13610
|
]),
|
|
13612
|
-
(V(), vA(cr(((Y = q(I(
|
|
13613
|
-
modelValue: I(
|
|
13614
|
-
"onUpdate:modelValue": F[23] || (F[23] = (y) => I(
|
|
13611
|
+
(V(), vA(cr(((Y = q(I(h)().type)) == null ? void 0 : Y.propertyPanel) || null), {
|
|
13612
|
+
modelValue: I(h)().props,
|
|
13613
|
+
"onUpdate:modelValue": F[23] || (F[23] = (y) => I(h)().props = y),
|
|
13615
13614
|
options: e.options,
|
|
13616
|
-
"props-config": aa(I(
|
|
13615
|
+
"props-config": aa(I(h)().type)
|
|
13617
13616
|
}, null, 8, ["modelValue", "options", "props-config"]))
|
|
13618
13617
|
], 64)) : tA("", !0)
|
|
13619
13618
|
])
|
|
13620
13619
|
]);
|
|
13621
13620
|
};
|
|
13622
13621
|
}
|
|
13623
|
-
}, OR = /* @__PURE__ */ yA(kR, [["__scopeId", "data-v-
|
|
13622
|
+
}, OR = /* @__PURE__ */ yA(kR, [["__scopeId", "data-v-79a1fcd7"]]);
|
|
13624
13623
|
const WR = {
|
|
13625
13624
|
__name: "index",
|
|
13626
13625
|
props: {
|
|
@@ -13641,81 +13640,100 @@ const WR = {
|
|
|
13641
13640
|
}
|
|
13642
13641
|
},
|
|
13643
13642
|
setup(e) {
|
|
13644
|
-
const A = Ze(), t = e, r =
|
|
13645
|
-
let
|
|
13646
|
-
return function(...
|
|
13647
|
-
const
|
|
13648
|
-
clearTimeout(
|
|
13643
|
+
const A = Ze(), t = e, r = Z(!1), n = Z({}), a = Z(), o = Z(0), i = Z(!1), l = (g, h) => {
|
|
13644
|
+
let p;
|
|
13645
|
+
return function(...C) {
|
|
13646
|
+
const v = () => {
|
|
13647
|
+
clearTimeout(p), g(...C);
|
|
13649
13648
|
};
|
|
13650
|
-
clearTimeout(
|
|
13649
|
+
clearTimeout(p), p = setTimeout(v, h);
|
|
13651
13650
|
};
|
|
13652
|
-
},
|
|
13651
|
+
}, s = Z({
|
|
13653
13652
|
rectTop: 0,
|
|
13654
13653
|
isInModal: !1
|
|
13655
|
-
}),
|
|
13656
|
-
if (!
|
|
13654
|
+
}), c = () => {
|
|
13655
|
+
if (!a.value)
|
|
13657
13656
|
return;
|
|
13658
|
-
const
|
|
13659
|
-
let
|
|
13660
|
-
if (
|
|
13661
|
-
|
|
13662
|
-
else if (
|
|
13663
|
-
const
|
|
13664
|
-
|
|
13657
|
+
const g = a.value.getBoundingClientRect(), h = d(a.value);
|
|
13658
|
+
let p = 0;
|
|
13659
|
+
if (g.top > 0)
|
|
13660
|
+
p = g.top;
|
|
13661
|
+
else if (h) {
|
|
13662
|
+
const Q = U(a.value);
|
|
13663
|
+
p = Q > 0 ? Q : 60;
|
|
13665
13664
|
} else {
|
|
13666
|
-
const
|
|
13667
|
-
|
|
13665
|
+
const Q = a.value.offsetTop;
|
|
13666
|
+
Q > 0 ? p = Q : p = 60;
|
|
13668
13667
|
}
|
|
13669
|
-
(
|
|
13670
|
-
rectTop:
|
|
13671
|
-
isInModal:
|
|
13668
|
+
(p !== s.value.rectTop || h !== s.value.isInModal) && (o.value = p, i.value = h, s.value = {
|
|
13669
|
+
rectTop: p,
|
|
13670
|
+
isInModal: h
|
|
13672
13671
|
});
|
|
13673
|
-
},
|
|
13674
|
-
let
|
|
13675
|
-
for (;
|
|
13676
|
-
if (
|
|
13672
|
+
}, u = l(c, 100), d = (g) => {
|
|
13673
|
+
let h = g.parentElement;
|
|
13674
|
+
for (; h; ) {
|
|
13675
|
+
if (h.classList && (h.classList.contains("el-dialog") || h.classList.contains("el-drawer") || h.classList.contains("sc-dialog")))
|
|
13677
13676
|
return !0;
|
|
13678
|
-
|
|
13677
|
+
h = h.parentElement;
|
|
13679
13678
|
}
|
|
13680
13679
|
return !1;
|
|
13681
|
-
},
|
|
13682
|
-
let
|
|
13683
|
-
for (;
|
|
13684
|
-
if (
|
|
13685
|
-
const
|
|
13686
|
-
return
|
|
13680
|
+
}, U = (g) => {
|
|
13681
|
+
let h = g.parentElement;
|
|
13682
|
+
for (; h; ) {
|
|
13683
|
+
if (h.classList && (h.classList.contains("el-dialog") || h.classList.contains("el-drawer") || h.classList.contains("sc-dialog"))) {
|
|
13684
|
+
const p = h.getBoundingClientRect();
|
|
13685
|
+
return p.top > 0 ? p.top : 60;
|
|
13687
13686
|
}
|
|
13688
|
-
|
|
13687
|
+
h = h.parentElement;
|
|
13689
13688
|
}
|
|
13690
13689
|
return 60;
|
|
13691
13690
|
};
|
|
13692
13691
|
Oe(() => {
|
|
13693
|
-
setTimeout(() =>
|
|
13694
|
-
window.removeEventListener("resize",
|
|
13692
|
+
setTimeout(() => c(), 100), setTimeout(() => c(), 300), window.addEventListener("resize", u), Ur(() => {
|
|
13693
|
+
window.removeEventListener("resize", u);
|
|
13695
13694
|
});
|
|
13696
|
-
}), FA(() => r.value, (
|
|
13697
|
-
|
|
13698
|
-
}), FA(() => t.templateData, async (
|
|
13699
|
-
r.value = (
|
|
13695
|
+
}), FA(() => r.value, (g) => {
|
|
13696
|
+
g && de(() => setTimeout(() => c(), 50));
|
|
13697
|
+
}), FA(() => t.templateData, async (g) => {
|
|
13698
|
+
r.value = (g == null ? void 0 : g.width) > 0 && (g == null ? void 0 : g.height) > 0, f();
|
|
13700
13699
|
}, { deep: !0, immediate: !0 });
|
|
13701
|
-
function
|
|
13702
|
-
|
|
13700
|
+
function f() {
|
|
13701
|
+
var h, p;
|
|
13702
|
+
const g = ((p = (h = t.templateData) == null ? void 0 : h.panels) == null ? void 0 : p[0]) || {};
|
|
13703
|
+
if (!g || Object.keys(g).length === 0) {
|
|
13704
|
+
n.value = { ...t.templateData };
|
|
13705
|
+
return;
|
|
13706
|
+
}
|
|
13707
|
+
n.value = {
|
|
13708
|
+
width: g.width || 0,
|
|
13709
|
+
height: g.height || 0,
|
|
13710
|
+
printWidth: g.printWidth || 0,
|
|
13711
|
+
printHeight: g.printHeight || 0,
|
|
13712
|
+
items: g.printElements || [],
|
|
13713
|
+
...t.templateData
|
|
13714
|
+
};
|
|
13703
13715
|
}
|
|
13704
|
-
|
|
13705
|
-
|
|
13716
|
+
function B(g) {
|
|
13717
|
+
A.exposed = g || {}, A.exposeProxy = g || {};
|
|
13718
|
+
}
|
|
13719
|
+
return (g, h) => {
|
|
13720
|
+
const p = qu("loading");
|
|
13706
13721
|
return GA((V(), N("div", {
|
|
13707
13722
|
ref_key: "templateDesignerRef",
|
|
13708
|
-
ref:
|
|
13709
|
-
class: _A(["template-designer", { "template-designer-border-top":
|
|
13710
|
-
style: AA({ height: "calc(100vh - " + (
|
|
13723
|
+
ref: a,
|
|
13724
|
+
class: _A(["template-designer", { "template-designer-border-top": i.value }]),
|
|
13725
|
+
style: AA({ height: "calc(100vh - " + (o.value + 1) + "px)" })
|
|
13711
13726
|
}, [
|
|
13712
|
-
r.value ? (V(), vA(cr($u(OR, { ...
|
|
13727
|
+
r.value ? (V(), vA(cr($u(OR, { ...g.$attrs, ...t, ref: B }, g.$slots)), {
|
|
13728
|
+
key: 0,
|
|
13729
|
+
"template-info": n.value
|
|
13730
|
+
}, null, 8, ["template-info"])) : tA("", !0)
|
|
13713
13731
|
], 6)), [
|
|
13714
|
-
[
|
|
13732
|
+
[p, !r.value]
|
|
13715
13733
|
]);
|
|
13716
13734
|
};
|
|
13717
13735
|
}
|
|
13718
|
-
}, Ka = /* @__PURE__ */ yA(WR, [["__scopeId", "data-v-
|
|
13736
|
+
}, Ka = /* @__PURE__ */ yA(WR, [["__scopeId", "data-v-dad1d3d0"]]);
|
|
13719
13737
|
Ka.install = (e) => {
|
|
13720
13738
|
e.component(Ka.name || "TemplateDesigner", Ka);
|
|
13721
13739
|
};
|