gp-designer 1.0.52 → 1.0.53
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +2 -1
- package/dist/gp-designer.es.js +247 -242
- package/dist/gp-designer.umd.js +8 -8
- package/dist/spa/topic/css/common.css +641 -618
- package/dist/spa/topic/html/001.html +5 -0
- package/dist/spa/topic/js/index.js +23 -0
- package/dist/spa/topic/js/jquery-3.6.0.min.js +2 -0
- package/dist/spa/topic/js/jquery.1.10.2.js +6 -0
- package/dist/spa/topic/js/swiper-bundle.min.js +14 -0
- package/dist/spa/topic/js/swiper.min.4.4.1.js +3758 -0
- package/dist/style.css +2 -2
- package/package.json +1 -1
package/dist/gp-designer.es.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { defineComponent as ve, computed as Ge, ref as z, watch as ee, resolveComponent as p0, openBlock as G, createElementBlock as Y, Fragment as xt, createBlock as We, resolveDynamicComponent as C0, mergeProps as m0, unref as fA, withModifiers as WA, withCtx as As, createTextVNode as na, toDisplayString as VA, renderList as Sn, createElementVNode as b, createCommentVNode as
|
1
|
+
import { defineComponent as ve, computed as Ge, ref as z, watch as ee, resolveComponent as p0, openBlock as G, createElementBlock as Y, Fragment as xt, createBlock as We, resolveDynamicComponent as C0, mergeProps as m0, unref as fA, withModifiers as WA, withCtx as As, createTextVNode as na, toDisplayString as VA, renderList as Sn, createElementVNode as b, createCommentVNode as j, normalizeClass as Za, toRaw as Ho, Transition as w0, renderSlot as Er, reactive as T0, createApp as b0, h as Ni, withDirectives as ge, vModelSelect as Di, vModelText as Re, createVNode as Xe, toRefs as U0, onMounted as Q0, nextTick as Oi, normalizeStyle as sa, vModelCheckbox as F0 } from "vue";
|
2
2
|
var uA;
|
3
3
|
(function(A) {
|
4
4
|
A.Root = "root", A.Text = "text", A.Directive = "directive", A.Comment = "comment", A.Script = "script", A.Style = "style", A.Tag = "tag", A.CDATA = "cdata", A.Doctype = "doctype";
|
@@ -756,14 +756,14 @@ const Po = Mo(/["&\u00A0]/g, /* @__PURE__ */ new Map([
|
|
756
756
|
"plaintext",
|
757
757
|
"noscript"
|
758
758
|
]);
|
759
|
-
function
|
759
|
+
function j0(A) {
|
760
760
|
return A.replace(/"/g, """);
|
761
761
|
}
|
762
|
-
function
|
762
|
+
function $0(A, e) {
|
763
763
|
var t;
|
764
764
|
if (!A)
|
765
765
|
return;
|
766
|
-
const r = ((t = e.encodeEntities) !== null && t !== void 0 ? t : e.decodeEntities) === !1 ?
|
766
|
+
const r = ((t = e.encodeEntities) !== null && t !== void 0 ? t : e.decodeEntities) === !1 ? j0 : e.xmlMode || e.encodeEntities !== "utf8" ? Ro : Po;
|
767
767
|
return Object.keys(A).map((n) => {
|
768
768
|
var s, a;
|
769
769
|
const u = (s = A[n]) !== null && s !== void 0 ? s : "";
|
@@ -832,7 +832,7 @@ function ef(A, e) {
|
|
832
832
|
var t;
|
833
833
|
e.xmlMode === "foreign" && (A.name = (t = W0.get(A.name)) !== null && t !== void 0 ? t : A.name, A.parent && z0.has(A.parent.name) && (e = { ...e, xmlMode: !1 })), !e.xmlMode && Af.has(A.name) && (e = { ...e, xmlMode: "foreign" });
|
834
834
|
let r = `<${A.name}`;
|
835
|
-
const n =
|
835
|
+
const n = $0(A.attribs, e);
|
836
836
|
return n && (r += ` ${n}`), A.children.length === 0 && (e.xmlMode ? (
|
837
837
|
// In XML mode or foreign mode, and user hasn't explicitly turned off self-closing tags
|
838
838
|
e.selfClosingTags !== !1
|
@@ -1230,7 +1230,7 @@ function oa(A, e) {
|
|
1230
1230
|
};
|
1231
1231
|
return A.xml ? (t._useHtmlParser2 = !0, t.xmlMode = !0, A.xml !== !0 && Object.assign(t, A.xml)) : A.xmlMode && (t._useHtmlParser2 = !0), t;
|
1232
1232
|
}
|
1233
|
-
function
|
1233
|
+
function jo(A, e, t) {
|
1234
1234
|
return A ? A(e ?? A._root.children, null, void 0, t).toString() : "";
|
1235
1235
|
}
|
1236
1236
|
function Sf(A, e) {
|
@@ -1241,11 +1241,11 @@ function Lf(A, e) {
|
|
1241
1241
|
...this === null || this === void 0 ? void 0 : this._options,
|
1242
1242
|
...oa(e)
|
1243
1243
|
};
|
1244
|
-
return
|
1244
|
+
return jo(this, t, r);
|
1245
1245
|
}
|
1246
1246
|
function Hf(A) {
|
1247
1247
|
const e = { ...this._options, xmlMode: !0 };
|
1248
|
-
return
|
1248
|
+
return jo(this, A, e);
|
1249
1249
|
}
|
1250
1250
|
function Lr(A) {
|
1251
1251
|
const e = A ?? (this ? this.root() : []);
|
@@ -1264,7 +1264,7 @@ function xf(A, e, t = typeof e == "boolean" ? e : !1) {
|
|
1264
1264
|
function Nf() {
|
1265
1265
|
return this(this._root);
|
1266
1266
|
}
|
1267
|
-
function
|
1267
|
+
function $o(A, e) {
|
1268
1268
|
if (e === A)
|
1269
1269
|
return !1;
|
1270
1270
|
let t = e;
|
@@ -1297,7 +1297,7 @@ function ki(A) {
|
|
1297
1297
|
}
|
1298
1298
|
const Rf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
1299
1299
|
__proto__: null,
|
1300
|
-
contains:
|
1300
|
+
contains: $o,
|
1301
1301
|
extract: Df,
|
1302
1302
|
html: Lf,
|
1303
1303
|
merge: Of,
|
@@ -1602,7 +1602,7 @@ function tc(A, e) {
|
|
1602
1602
|
}
|
1603
1603
|
return this;
|
1604
1604
|
}
|
1605
|
-
const
|
1605
|
+
const jf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
1606
1606
|
__proto__: null,
|
1607
1607
|
addClass: Ac,
|
1608
1608
|
attr: Kf,
|
@@ -1622,7 +1622,7 @@ var yA;
|
|
1622
1622
|
(function(A) {
|
1623
1623
|
A.Any = "any", A.Element = "element", A.End = "end", A.Equals = "equals", A.Exists = "exists", A.Hyphen = "hyphen", A.Not = "not", A.Start = "start";
|
1624
1624
|
})(yA || (yA = {}));
|
1625
|
-
const Vi = /^[^\\#]?(?:\\(?:[\da-f]{1,6}\s?|.)|[\w\-\u00b0-\uFFFF])+/,
|
1625
|
+
const Vi = /^[^\\#]?(?:\\(?:[\da-f]{1,6}\s?|.)|[\w\-\u00b0-\uFFFF])+/, $f = /\\([\da-f]{1,6}\s?|(\s)|.)/gi, Zf = /* @__PURE__ */ new Map([
|
1626
1626
|
[126, yA.Element],
|
1627
1627
|
[94, yA.Start],
|
1628
1628
|
[36, yA.End],
|
@@ -1662,8 +1662,8 @@ function eh(A, e, t) {
|
|
1662
1662
|
String.fromCharCode(r >> 10 | 55296, r & 1023 | 56320)
|
1663
1663
|
);
|
1664
1664
|
}
|
1665
|
-
function
|
1666
|
-
return A.replace(
|
1665
|
+
function $t(A) {
|
1666
|
+
return A.replace($f, eh);
|
1667
1667
|
}
|
1668
1668
|
function Is(A) {
|
1669
1669
|
return A === 39 || A === 34;
|
@@ -1684,7 +1684,7 @@ function rc(A, e, t) {
|
|
1684
1684
|
if (!C)
|
1685
1685
|
throw new Error(`Expected name, found ${e.slice(t)}`);
|
1686
1686
|
const [p] = C;
|
1687
|
-
return t += h + p.length,
|
1687
|
+
return t += h + p.length, $t(p);
|
1688
1688
|
}
|
1689
1689
|
function s(h) {
|
1690
1690
|
for (t += h; t < e.length && Yi(e.charCodeAt(t)); )
|
@@ -1698,7 +1698,7 @@ function rc(A, e, t) {
|
|
1698
1698
|
e.charCodeAt(t) === 40 && !u(t) ? C++ : e.charCodeAt(t) === 41 && !u(t) && C--;
|
1699
1699
|
if (C)
|
1700
1700
|
throw new Error("Parenthesis not matched");
|
1701
|
-
return
|
1701
|
+
return $t(e.slice(h, t - 1));
|
1702
1702
|
}
|
1703
1703
|
function u(h) {
|
1704
1704
|
let C = 0;
|
@@ -1789,12 +1789,12 @@ function rc(A, e, t) {
|
|
1789
1789
|
E += 1;
|
1790
1790
|
if (e.charCodeAt(E) !== L)
|
1791
1791
|
throw new Error("Attribute value didn't end");
|
1792
|
-
v =
|
1792
|
+
v = $t(e.slice(t + 1, E)), t = E + 1;
|
1793
1793
|
} else {
|
1794
1794
|
const L = t;
|
1795
1795
|
for (; t < e.length && (!Yi(e.charCodeAt(t)) && e.charCodeAt(t) !== 93 || u(t)); )
|
1796
1796
|
t += 1;
|
1797
|
-
v =
|
1797
|
+
v = $t(e.slice(L, t));
|
1798
1798
|
}
|
1799
1799
|
s(0);
|
1800
1800
|
const k = e.charCodeAt(t) | 32;
|
@@ -1837,7 +1837,7 @@ function rc(A, e, t) {
|
|
1837
1837
|
const w = p.charCodeAt(0);
|
1838
1838
|
w === p.charCodeAt(p.length - 1) && Is(w) && (p = p.slice(1, -1));
|
1839
1839
|
}
|
1840
|
-
p =
|
1840
|
+
p = $t(p);
|
1841
1841
|
}
|
1842
1842
|
r.push({ type: X.Pseudo, name: C, data: p });
|
1843
1843
|
break;
|
@@ -2094,7 +2094,7 @@ function lh(A) {
|
|
2094
2094
|
function qr(A) {
|
2095
2095
|
return lh(ch(A));
|
2096
2096
|
}
|
2097
|
-
function
|
2097
|
+
function jr(A, e) {
|
2098
2098
|
return (t) => {
|
2099
2099
|
const r = e.getParent(t);
|
2100
2100
|
return r != null && e.isTag(r) && A(t);
|
@@ -2115,7 +2115,7 @@ const fa = {
|
|
2115
2115
|
// Location specific methods
|
2116
2116
|
"nth-child"(A, e, { adapter: t, equals: r }) {
|
2117
2117
|
const n = qr(e);
|
2118
|
-
return n === tA.falseFunc ? tA.falseFunc : n === tA.trueFunc ?
|
2118
|
+
return n === tA.falseFunc ? tA.falseFunc : n === tA.trueFunc ? jr(A, t) : function(a) {
|
2119
2119
|
const u = t.getSiblings(a);
|
2120
2120
|
let o = 0;
|
2121
2121
|
for (let c = 0; c < u.length && !r(a, u[c]); c++)
|
@@ -2125,7 +2125,7 @@ const fa = {
|
|
2125
2125
|
},
|
2126
2126
|
"nth-last-child"(A, e, { adapter: t, equals: r }) {
|
2127
2127
|
const n = qr(e);
|
2128
|
-
return n === tA.falseFunc ? tA.falseFunc : n === tA.trueFunc ?
|
2128
|
+
return n === tA.falseFunc ? tA.falseFunc : n === tA.trueFunc ? jr(A, t) : function(a) {
|
2129
2129
|
const u = t.getSiblings(a);
|
2130
2130
|
let o = 0;
|
2131
2131
|
for (let c = u.length - 1; c >= 0 && !r(a, u[c]); c--)
|
@@ -2135,7 +2135,7 @@ const fa = {
|
|
2135
2135
|
},
|
2136
2136
|
"nth-of-type"(A, e, { adapter: t, equals: r }) {
|
2137
2137
|
const n = qr(e);
|
2138
|
-
return n === tA.falseFunc ? tA.falseFunc : n === tA.trueFunc ?
|
2138
|
+
return n === tA.falseFunc ? tA.falseFunc : n === tA.trueFunc ? jr(A, t) : function(a) {
|
2139
2139
|
const u = t.getSiblings(a);
|
2140
2140
|
let o = 0;
|
2141
2141
|
for (let c = 0; c < u.length; c++) {
|
@@ -2149,7 +2149,7 @@ const fa = {
|
|
2149
2149
|
},
|
2150
2150
|
"nth-last-of-type"(A, e, { adapter: t, equals: r }) {
|
2151
2151
|
const n = qr(e);
|
2152
|
-
return n === tA.falseFunc ? tA.falseFunc : n === tA.trueFunc ?
|
2152
|
+
return n === tA.falseFunc ? tA.falseFunc : n === tA.trueFunc ? jr(A, t) : function(a) {
|
2153
2153
|
const u = t.getSiblings(a);
|
2154
2154
|
let o = 0;
|
2155
2155
|
for (let c = u.length - 1; c >= 0; c--) {
|
@@ -2721,7 +2721,7 @@ function xh(A) {
|
|
2721
2721
|
return this._make([]);
|
2722
2722
|
if (typeof A != "string") {
|
2723
2723
|
const e = Ne(A) ? A.toArray() : [A], t = this.toArray();
|
2724
|
-
return this._make(e.filter((r) => t.some((n) =>
|
2724
|
+
return this._make(e.filter((r) => t.some((n) => $o(n, r))));
|
2725
2725
|
}
|
2726
2726
|
return this._findBySelector(A, Number.POSITIVE_INFINITY);
|
2727
2727
|
}
|
@@ -2831,7 +2831,7 @@ function qh(A) {
|
|
2831
2831
|
++e;
|
2832
2832
|
return this;
|
2833
2833
|
}
|
2834
|
-
function
|
2834
|
+
function jh(A) {
|
2835
2835
|
let e = [];
|
2836
2836
|
for (let t = 0; t < this.length; t++) {
|
2837
2837
|
const r = this[t], n = A.call(r, t, r);
|
@@ -2844,7 +2844,7 @@ function Kr(A) {
|
|
2844
2844
|
return A === e;
|
2845
2845
|
};
|
2846
2846
|
}
|
2847
|
-
function
|
2847
|
+
function $h(A) {
|
2848
2848
|
var e;
|
2849
2849
|
return this._make(Ei(this.toArray(), A, this.options.xmlMode, (e = this._root) === null || e === void 0 ? void 0 : e[0]));
|
2850
2850
|
}
|
@@ -2917,7 +2917,7 @@ const ld = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2917
2917
|
each: qh,
|
2918
2918
|
end: ud,
|
2919
2919
|
eq: rd,
|
2920
|
-
filter:
|
2920
|
+
filter: $h,
|
2921
2921
|
filterArray: Ei,
|
2922
2922
|
find: xh,
|
2923
2923
|
first: ed,
|
@@ -2926,7 +2926,7 @@ const ld = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2926
2926
|
index: ad,
|
2927
2927
|
is: Zh,
|
2928
2928
|
last: td,
|
2929
|
-
map:
|
2929
|
+
map: jh,
|
2930
2930
|
next: Ph,
|
2931
2931
|
nextAll: kh,
|
2932
2932
|
nextUntil: Kh,
|
@@ -3258,14 +3258,14 @@ function Dd(A) {
|
|
3258
3258
|
const Od = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
3259
3259
|
__proto__: null,
|
3260
3260
|
css: xd
|
3261
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
3261
|
+
}, Symbol.toStringTag, { value: "Module" })), ji = "input,select,textarea,keygen", Rd = /%20/g, $i = /\r?\n/g;
|
3262
3262
|
function Md() {
|
3263
3263
|
return this.serializeArray().map((t) => `${encodeURIComponent(t.name)}=${encodeURIComponent(t.value)}`).join("&").replace(Rd, "+");
|
3264
3264
|
}
|
3265
3265
|
function Pd() {
|
3266
3266
|
return this.map((A, e) => {
|
3267
3267
|
const t = this._make(e);
|
3268
|
-
return q(e) && e.name === "form" ? t.find(
|
3268
|
+
return q(e) && e.name === "form" ? t.find(ji).toArray() : t.filter(ji).toArray();
|
3269
3269
|
}).filter(
|
3270
3270
|
// Verify elements have a name (`attr.name`) and are not disabled (`:enabled`)
|
3271
3271
|
'[name!=""]:enabled:not(:submit, :button, :image, :reset, :file):matches([checked], :not(:checkbox, :radio))'
|
@@ -3277,9 +3277,9 @@ function Pd() {
|
|
3277
3277
|
* We trim replace any line endings (e.g. `\r` or `\r\n` with `\r\n`) to guarantee consistency across platforms
|
3278
3278
|
* These can occur inside of `<textarea>'s`
|
3279
3279
|
*/
|
3280
|
-
{ name: n, value: a.replace(
|
3280
|
+
{ name: n, value: a.replace($i, `\r
|
3281
3281
|
`) }
|
3282
|
-
)) : { name: n, value: s.replace(
|
3282
|
+
)) : { name: n, value: s.replace($i, `\r
|
3283
3283
|
`) };
|
3284
3284
|
}).toArray();
|
3285
3285
|
}
|
@@ -3333,7 +3333,7 @@ class Gr {
|
|
3333
3333
|
Gr.prototype.cheerio = "[cheerio object]";
|
3334
3334
|
Gr.prototype.splice = Array.prototype.splice;
|
3335
3335
|
Gr.prototype[Symbol.iterator] = Array.prototype[Symbol.iterator];
|
3336
|
-
Object.assign(Gr.prototype,
|
3336
|
+
Object.assign(Gr.prototype, jf, ld, Hd, Od, kd, Vd);
|
3337
3337
|
function Yd(A, e) {
|
3338
3338
|
return function t(r, n, s = !0) {
|
3339
3339
|
if (r == null)
|
@@ -3445,7 +3445,7 @@ var d;
|
|
3445
3445
|
(function(A) {
|
3446
3446
|
A[A.EOF = -1] = "EOF", A[A.NULL = 0] = "NULL", A[A.TABULATION = 9] = "TABULATION", A[A.CARRIAGE_RETURN = 13] = "CARRIAGE_RETURN", A[A.LINE_FEED = 10] = "LINE_FEED", A[A.FORM_FEED = 12] = "FORM_FEED", A[A.SPACE = 32] = "SPACE", A[A.EXCLAMATION_MARK = 33] = "EXCLAMATION_MARK", A[A.QUOTATION_MARK = 34] = "QUOTATION_MARK", A[A.AMPERSAND = 38] = "AMPERSAND", A[A.APOSTROPHE = 39] = "APOSTROPHE", A[A.HYPHEN_MINUS = 45] = "HYPHEN_MINUS", A[A.SOLIDUS = 47] = "SOLIDUS", A[A.DIGIT_0 = 48] = "DIGIT_0", A[A.DIGIT_9 = 57] = "DIGIT_9", A[A.SEMICOLON = 59] = "SEMICOLON", A[A.LESS_THAN_SIGN = 60] = "LESS_THAN_SIGN", A[A.EQUALS_SIGN = 61] = "EQUALS_SIGN", A[A.GREATER_THAN_SIGN = 62] = "GREATER_THAN_SIGN", A[A.QUESTION_MARK = 63] = "QUESTION_MARK", A[A.LATIN_CAPITAL_A = 65] = "LATIN_CAPITAL_A", A[A.LATIN_CAPITAL_Z = 90] = "LATIN_CAPITAL_Z", A[A.RIGHT_SQUARE_BRACKET = 93] = "RIGHT_SQUARE_BRACKET", A[A.GRAVE_ACCENT = 96] = "GRAVE_ACCENT", A[A.LATIN_SMALL_A = 97] = "LATIN_SMALL_A", A[A.LATIN_SMALL_Z = 122] = "LATIN_SMALL_Z";
|
3447
3447
|
})(d || (d = {}));
|
3448
|
-
const
|
3448
|
+
const jA = {
|
3449
3449
|
DASH_DASH: "--",
|
3450
3450
|
CDATA_START: "[CDATA[",
|
3451
3451
|
DOCTYPE: "doctype",
|
@@ -3472,10 +3472,10 @@ var T;
|
|
3472
3472
|
(function(A) {
|
3473
3473
|
A.controlCharacterInInputStream = "control-character-in-input-stream", A.noncharacterInInputStream = "noncharacter-in-input-stream", A.surrogateInInputStream = "surrogate-in-input-stream", A.nonVoidHtmlElementStartTagWithTrailingSolidus = "non-void-html-element-start-tag-with-trailing-solidus", A.endTagWithAttributes = "end-tag-with-attributes", A.endTagWithTrailingSolidus = "end-tag-with-trailing-solidus", A.unexpectedSolidusInTag = "unexpected-solidus-in-tag", A.unexpectedNullCharacter = "unexpected-null-character", A.unexpectedQuestionMarkInsteadOfTagName = "unexpected-question-mark-instead-of-tag-name", A.invalidFirstCharacterOfTagName = "invalid-first-character-of-tag-name", A.unexpectedEqualsSignBeforeAttributeName = "unexpected-equals-sign-before-attribute-name", A.missingEndTagName = "missing-end-tag-name", A.unexpectedCharacterInAttributeName = "unexpected-character-in-attribute-name", A.unknownNamedCharacterReference = "unknown-named-character-reference", A.missingSemicolonAfterCharacterReference = "missing-semicolon-after-character-reference", A.unexpectedCharacterAfterDoctypeSystemIdentifier = "unexpected-character-after-doctype-system-identifier", A.unexpectedCharacterInUnquotedAttributeValue = "unexpected-character-in-unquoted-attribute-value", A.eofBeforeTagName = "eof-before-tag-name", A.eofInTag = "eof-in-tag", A.missingAttributeValue = "missing-attribute-value", A.missingWhitespaceBetweenAttributes = "missing-whitespace-between-attributes", A.missingWhitespaceAfterDoctypePublicKeyword = "missing-whitespace-after-doctype-public-keyword", A.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers = "missing-whitespace-between-doctype-public-and-system-identifiers", A.missingWhitespaceAfterDoctypeSystemKeyword = "missing-whitespace-after-doctype-system-keyword", A.missingQuoteBeforeDoctypePublicIdentifier = "missing-quote-before-doctype-public-identifier", A.missingQuoteBeforeDoctypeSystemIdentifier = "missing-quote-before-doctype-system-identifier", A.missingDoctypePublicIdentifier = "missing-doctype-public-identifier", A.missingDoctypeSystemIdentifier = "missing-doctype-system-identifier", A.abruptDoctypePublicIdentifier = "abrupt-doctype-public-identifier", A.abruptDoctypeSystemIdentifier = "abrupt-doctype-system-identifier", A.cdataInHtmlContent = "cdata-in-html-content", A.incorrectlyOpenedComment = "incorrectly-opened-comment", A.eofInScriptHtmlCommentLikeText = "eof-in-script-html-comment-like-text", A.eofInDoctype = "eof-in-doctype", A.nestedComment = "nested-comment", A.abruptClosingOfEmptyComment = "abrupt-closing-of-empty-comment", A.eofInComment = "eof-in-comment", A.incorrectlyClosedComment = "incorrectly-closed-comment", A.eofInCdata = "eof-in-cdata", A.absenceOfDigitsInNumericCharacterReference = "absence-of-digits-in-numeric-character-reference", A.nullCharacterReference = "null-character-reference", A.surrogateCharacterReference = "surrogate-character-reference", A.characterReferenceOutsideUnicodeRange = "character-reference-outside-unicode-range", A.controlCharacterReference = "control-character-reference", A.noncharacterCharacterReference = "noncharacter-character-reference", A.missingWhitespaceBeforeDoctypeName = "missing-whitespace-before-doctype-name", A.missingDoctypeName = "missing-doctype-name", A.invalidCharacterSequenceAfterDoctypeName = "invalid-character-sequence-after-doctype-name", A.duplicateAttribute = "duplicate-attribute", A.nonConformingDoctype = "non-conforming-doctype", A.missingDoctype = "missing-doctype", A.misplacedDoctype = "misplaced-doctype", A.endTagWithoutMatchingOpenElement = "end-tag-without-matching-open-element", A.closingOfElementWithOpenChildElements = "closing-of-element-with-open-child-elements", A.disallowedContentInNoscriptInHead = "disallowed-content-in-noscript-in-head", A.openElementsLeftAfterEof = "open-elements-left-after-eof", A.abandonedHeadElementChild = "abandoned-head-element-child", A.misplacedStartTagForHeadElement = "misplaced-start-tag-for-head-element", A.nestedNoscriptInHead = "nested-noscript-in-head", A.eofInElementThatCanContainOnlyText = "eof-in-element-that-can-contain-only-text";
|
3474
3474
|
})(T || (T = {}));
|
3475
|
-
const
|
3476
|
-
class
|
3475
|
+
const jd = 65536;
|
3476
|
+
class $d {
|
3477
3477
|
constructor(e) {
|
3478
|
-
this.handler = e, this.html = "", this.pos = -1, this.lastGapPos = -2, this.gapStack = [], this.skipNextNewLine = !1, this.lastChunkWritten = !1, this.endOfChunkHit = !1, this.bufferWaterline =
|
3478
|
+
this.handler = e, this.html = "", this.pos = -1, this.lastGapPos = -2, this.gapStack = [], this.skipNextNewLine = !1, this.lastChunkWritten = !1, this.endOfChunkHit = !1, this.bufferWaterline = jd, this.isEol = !1, this.lineStartPos = 0, this.droppedBufferSize = 0, this.line = 1, this.lastErrOffset = -1;
|
3479
3479
|
}
|
3480
3480
|
/** The column on the current line. If we just saw a gap (eg. a surrogate pair), return the index before. */
|
3481
3481
|
get col() {
|
@@ -3842,7 +3842,7 @@ function Pe(A) {
|
|
3842
3842
|
function Zi(A) {
|
3843
3843
|
return Pe(A) || tB(A);
|
3844
3844
|
}
|
3845
|
-
function
|
3845
|
+
function $r(A) {
|
3846
3846
|
return A + 32;
|
3847
3847
|
}
|
3848
3848
|
function Fc(A) {
|
@@ -3856,7 +3856,7 @@ function nB(A) {
|
|
3856
3856
|
}
|
3857
3857
|
let sB = class {
|
3858
3858
|
constructor(e, t) {
|
3859
|
-
this.options = e, this.handler = t, this.paused = !1, this.inLoop = !1, this.inForeignNode = !1, this.lastStartTagName = "", this.active = !1, this.state = B.DATA, this.returnState = B.DATA, this.entityStartPos = 0, this.consumedAfterSnapshot = -1, this.currentCharacterToken = null, this.currentToken = null, this.currentAttr = { name: "", value: "" }, this.preprocessor = new
|
3859
|
+
this.options = e, this.handler = t, this.paused = !1, this.inLoop = !1, this.inForeignNode = !1, this.lastStartTagName = "", this.active = !1, this.state = B.DATA, this.returnState = B.DATA, this.entityStartPos = 0, this.consumedAfterSnapshot = -1, this.currentCharacterToken = null, this.currentToken = null, this.currentAttr = { name: "", value: "" }, this.preprocessor = new $d(t), this.currentLocation = this.getCurrentLocation(-1), this.entityDecoder = new si(ni, (r, n) => {
|
3860
3860
|
this.preprocessor.pos = this.entityStartPos + n - 1, this._flushCodePointConsumedAsCharacterReference(r);
|
3861
3861
|
}, t.onParseError ? {
|
3862
3862
|
missingSemicolonAfterCharacterReference: () => {
|
@@ -4549,7 +4549,7 @@ let sB = class {
|
|
4549
4549
|
break;
|
4550
4550
|
}
|
4551
4551
|
default:
|
4552
|
-
t.tagName += String.fromCodePoint(or(e) ?
|
4552
|
+
t.tagName += String.fromCodePoint(or(e) ? $r(e) : e);
|
4553
4553
|
}
|
4554
4554
|
}
|
4555
4555
|
// RCDATA less-than sign state
|
@@ -4731,9 +4731,9 @@ let sB = class {
|
|
4731
4731
|
// Script data double escape start state
|
4732
4732
|
//------------------------------------------------------------------
|
4733
4733
|
_stateScriptDataDoubleEscapeStart(e) {
|
4734
|
-
if (this.preprocessor.startsWith(
|
4734
|
+
if (this.preprocessor.startsWith(jA.SCRIPT, !1) && zi(this.preprocessor.peek(jA.SCRIPT.length))) {
|
4735
4735
|
this._emitCodePoint(e);
|
4736
|
-
for (let t = 0; t <
|
4736
|
+
for (let t = 0; t < jA.SCRIPT.length; t++)
|
4737
4737
|
this._emitCodePoint(this._consume());
|
4738
4738
|
this.state = B.SCRIPT_DATA_DOUBLE_ESCAPED;
|
4739
4739
|
} else this._ensureHibernation() || (this.state = B.SCRIPT_DATA_ESCAPED, this._stateScriptDataEscaped(e));
|
@@ -4822,9 +4822,9 @@ let sB = class {
|
|
4822
4822
|
// Script data double escape end state
|
4823
4823
|
//------------------------------------------------------------------
|
4824
4824
|
_stateScriptDataDoubleEscapeEnd(e) {
|
4825
|
-
if (this.preprocessor.startsWith(
|
4825
|
+
if (this.preprocessor.startsWith(jA.SCRIPT, !1) && zi(this.preprocessor.peek(jA.SCRIPT.length))) {
|
4826
4826
|
this._emitCodePoint(e);
|
4827
|
-
for (let t = 0; t <
|
4827
|
+
for (let t = 0; t < jA.SCRIPT.length; t++)
|
4828
4828
|
this._emitCodePoint(this._consume());
|
4829
4829
|
this.state = B.SCRIPT_DATA_ESCAPED;
|
4830
4830
|
} else this._ensureHibernation() || (this.state = B.SCRIPT_DATA_DOUBLE_ESCAPED, this._stateScriptDataDoubleEscaped(e));
|
@@ -4881,7 +4881,7 @@ let sB = class {
|
|
4881
4881
|
break;
|
4882
4882
|
}
|
4883
4883
|
default:
|
4884
|
-
this.currentAttr.name += String.fromCodePoint(or(e) ?
|
4884
|
+
this.currentAttr.name += String.fromCodePoint(or(e) ? $r(e) : e);
|
4885
4885
|
}
|
4886
4886
|
}
|
4887
4887
|
// After attribute name state
|
@@ -5093,7 +5093,7 @@ let sB = class {
|
|
5093
5093
|
// Markup declaration open state
|
5094
5094
|
//------------------------------------------------------------------
|
5095
5095
|
_stateMarkupDeclarationOpen(e) {
|
5096
|
-
this._consumeSequenceIfMatch(
|
5096
|
+
this._consumeSequenceIfMatch(jA.DASH_DASH, !0) ? (this._createCommentToken(jA.DASH_DASH.length + 1), this.state = B.COMMENT_START) : this._consumeSequenceIfMatch(jA.DOCTYPE, !1) ? (this.currentLocation = this.getCurrentLocation(jA.DOCTYPE.length + 1), this.state = B.DOCTYPE) : this._consumeSequenceIfMatch(jA.CDATA_START, !0) ? this.inForeignNode ? this.state = B.CDATA_SECTION : (this._err(T.cdataInHtmlContent), this._createCommentToken(jA.CDATA_START.length + 1), this.currentToken.data = "[CDATA[", this.state = B.BOGUS_COMMENT) : this._ensureHibernation() || (this._err(T.incorrectlyOpenedComment), this._createCommentToken(2), this.state = B.BOGUS_COMMENT, this._stateBogusComment(e));
|
5097
5097
|
}
|
5098
5098
|
// Comment start state
|
5099
5099
|
//------------------------------------------------------------------
|
@@ -5283,7 +5283,7 @@ let sB = class {
|
|
5283
5283
|
//------------------------------------------------------------------
|
5284
5284
|
_stateBeforeDoctypeName(e) {
|
5285
5285
|
if (or(e))
|
5286
|
-
this._createDoctypeToken(String.fromCharCode(
|
5286
|
+
this._createDoctypeToken(String.fromCharCode($r(e))), this.state = B.DOCTYPE_NAME;
|
5287
5287
|
else
|
5288
5288
|
switch (e) {
|
5289
5289
|
case d.SPACE:
|
@@ -5336,7 +5336,7 @@ let sB = class {
|
|
5336
5336
|
break;
|
5337
5337
|
}
|
5338
5338
|
default:
|
5339
|
-
t.name += String.fromCodePoint(or(e) ?
|
5339
|
+
t.name += String.fromCodePoint(or(e) ? $r(e) : e);
|
5340
5340
|
}
|
5341
5341
|
}
|
5342
5342
|
// After DOCTYPE name state
|
@@ -5358,7 +5358,7 @@ let sB = class {
|
|
5358
5358
|
break;
|
5359
5359
|
}
|
5360
5360
|
default:
|
5361
|
-
this._consumeSequenceIfMatch(
|
5361
|
+
this._consumeSequenceIfMatch(jA.PUBLIC, !1) ? this.state = B.AFTER_DOCTYPE_PUBLIC_KEYWORD : this._consumeSequenceIfMatch(jA.SYSTEM, !1) ? this.state = B.AFTER_DOCTYPE_SYSTEM_KEYWORD : this._ensureHibernation() || (this._err(T.invalidCharacterSequenceAfterDoctypeName), t.forceQuirks = !0, this.state = B.BOGUS_DOCTYPE, this._stateBogusDoctype(e));
|
5362
5362
|
}
|
5363
5363
|
}
|
5364
5364
|
// After DOCTYPE public keyword state
|
@@ -7151,7 +7151,7 @@ let xc = class {
|
|
7151
7151
|
break;
|
7152
7152
|
}
|
7153
7153
|
case g.IN_HEAD_NO_SCRIPT: {
|
7154
|
-
|
7154
|
+
jB(this, e);
|
7155
7155
|
break;
|
7156
7156
|
}
|
7157
7157
|
case g.AFTER_HEAD: {
|
@@ -7187,7 +7187,7 @@ let xc = class {
|
|
7187
7187
|
break;
|
7188
7188
|
}
|
7189
7189
|
case g.IN_CELL: {
|
7190
|
-
|
7190
|
+
$g(this, e);
|
7191
7191
|
break;
|
7192
7192
|
}
|
7193
7193
|
case g.IN_SELECT: {
|
@@ -7248,7 +7248,7 @@ let xc = class {
|
|
7248
7248
|
break;
|
7249
7249
|
}
|
7250
7250
|
case g.IN_HEAD_NO_SCRIPT: {
|
7251
|
-
|
7251
|
+
$B(this, e);
|
7252
7252
|
break;
|
7253
7253
|
}
|
7254
7254
|
case g.AFTER_HEAD: {
|
@@ -7276,7 +7276,7 @@ let xc = class {
|
|
7276
7276
|
break;
|
7277
7277
|
}
|
7278
7278
|
case g.IN_COLUMN_GROUP: {
|
7279
|
-
|
7279
|
+
jg(this, e);
|
7280
7280
|
break;
|
7281
7281
|
}
|
7282
7282
|
case g.IN_TABLE_BODY: {
|
@@ -7613,7 +7613,7 @@ function bt(A, e) {
|
|
7613
7613
|
function wr(A, e) {
|
7614
7614
|
A.openElements.pop(), A.insertionMode = g.AFTER_HEAD, A._processToken(e);
|
7615
7615
|
}
|
7616
|
-
function
|
7616
|
+
function jB(A, e) {
|
7617
7617
|
switch (e.tagID) {
|
7618
7618
|
case i.HTML: {
|
7619
7619
|
YA(A, e);
|
@@ -7637,7 +7637,7 @@ function $B(A, e) {
|
|
7637
7637
|
Tr(A, e);
|
7638
7638
|
}
|
7639
7639
|
}
|
7640
|
-
function
|
7640
|
+
function $B(A, e) {
|
7641
7641
|
switch (e.tagID) {
|
7642
7642
|
case i.NOSCRIPT: {
|
7643
7643
|
A.openElements.pop(), A.insertionMode = g.IN_HEAD;
|
@@ -8404,7 +8404,7 @@ function wi(A, e) {
|
|
8404
8404
|
kn(A, e);
|
8405
8405
|
}
|
8406
8406
|
}
|
8407
|
-
function
|
8407
|
+
function jg(A, e) {
|
8408
8408
|
switch (e.tagID) {
|
8409
8409
|
case i.COLGROUP: {
|
8410
8410
|
A.openElements.currentTagId === i.COLGROUP && (A.openElements.pop(), A.insertionMode = g.IN_TABLE);
|
@@ -8522,7 +8522,7 @@ function Vc(A, e) {
|
|
8522
8522
|
Nr(A, e);
|
8523
8523
|
}
|
8524
8524
|
}
|
8525
|
-
function
|
8525
|
+
function $g(A, e) {
|
8526
8526
|
const t = e.tagID;
|
8527
8527
|
Gc.has(t) ? (A.openElements.hasInTableScope(i.TD) || A.openElements.hasInTableScope(i.TH)) && (A._closeTableCell(), fs(A, e)) : YA(A, e);
|
8528
8528
|
}
|
@@ -8793,17 +8793,17 @@ function BE(A, e) {
|
|
8793
8793
|
const gE = { treeAdapter: xe, scriptingEnabled: !0 };
|
8794
8794
|
function EE(A, e) {
|
8795
8795
|
const t = { ...gE, ...e };
|
8796
|
-
return
|
8796
|
+
return jc(A, t);
|
8797
8797
|
}
|
8798
8798
|
function pE(A, e) {
|
8799
8799
|
let t = "";
|
8800
8800
|
const r = e.treeAdapter.isElementNode(A) && e.treeAdapter.getTagName(A) === m.TEMPLATE && e.treeAdapter.getNamespaceURI(A) === U.HTML ? e.treeAdapter.getTemplateContent(A) : A, n = e.treeAdapter.getChildNodes(r);
|
8801
8801
|
if (n)
|
8802
8802
|
for (const s of n)
|
8803
|
-
t +=
|
8803
|
+
t += jc(s, e);
|
8804
8804
|
return t;
|
8805
8805
|
}
|
8806
|
-
function
|
8806
|
+
function jc(A, e) {
|
8807
8807
|
return e.treeAdapter.isElementNode(A) ? CE(A, e) : e.treeAdapter.isTextNode(A) ? wE(A, e) : e.treeAdapter.isCommentNode(A) ? TE(A, e) : e.treeAdapter.isDocumentTypeNode(A) ? bE(A, e) : "";
|
8808
8808
|
}
|
8809
8809
|
function CE(A, e) {
|
@@ -9783,12 +9783,12 @@ const RE = ["onClick"], ME = {
|
|
9783
9783
|
const t = A, r = e, n = Ge(() => t.selectedElement === t.element), s = Ge(() => t.hoveredElement === t.element), a = z(!1), u = z(!1), o = z(""), c = Ge(() => t.element.rule.minText || 0), l = Ge(() => t.element.rule.maxText || 1 / 0), f = (H) => {
|
9784
9784
|
let D = "";
|
9785
9785
|
if (H.children && H.children.length && H.children[0].type === Z.Block) {
|
9786
|
-
const
|
9787
|
-
Math.min(
|
9786
|
+
const $ = H.children[0].rule.flexColumn || H.children[0].rule.mobileFlexColumn;
|
9787
|
+
Math.min($, H.children.length) && (D += " flex pc:justify-center flex-wrap ", H.children[0].rule.mobileFlexColumn ? D += " justify-center " : D += " gp-designer-m-swiper swiper-wrapper justify-normal ");
|
9788
9788
|
}
|
9789
9789
|
if (H.type === Z.Block) {
|
9790
|
-
const
|
9791
|
-
(J ||
|
9790
|
+
const $ = H.rule.flexColumn, J = H.rule.mobileFlexColumn;
|
9791
|
+
(J || $) && (D += " box-border "), J > 1 && J <= 12 ? D += ` basis-1/${J} ` : J == 1 ? D += " basis-full " : J || (D += " gp-designer-m-swiper-slide swiper-slide "), $ > 1 && $ <= 12 ? D += ` pc:basis-1/${$} ` : $ == 1 && (D += " pc:basis-full ");
|
9792
9792
|
}
|
9793
9793
|
return D;
|
9794
9794
|
};
|
@@ -9818,9 +9818,9 @@ const RE = ["onClick"], ME = {
|
|
9818
9818
|
a.value = !1, r("contentUpdated", Q());
|
9819
9819
|
}
|
9820
9820
|
function Q() {
|
9821
|
-
function H(
|
9821
|
+
function H($) {
|
9822
9822
|
var S;
|
9823
|
-
const J =
|
9823
|
+
const J = $, bA = J.rule.isThemeColor && J.type == Z.Text ? pe.THEME_TEXT_COLOR_CLASS : J.rule.isThemeColor && J.type == Z.Button ? pe.THEME_BUTTON_COLOR_CLASS : J.rule.isThemeColor && J.type == Z.Icon ? pe.THEME_ICON_COLOR_CLASS : "";
|
9824
9824
|
bA ? J.attrs.class = J.attrs.class ? J.attrs.class + " " + bA : bA : J.attrs.class = (S = J.attrs.class) == null ? void 0 : S.replace(
|
9825
9825
|
new RegExp(
|
9826
9826
|
`${pe.THEME_TEXT_COLOR_CLASS}|${pe.THEME_BUTTON_COLOR_CLASS}|${pe.THEME_ICON_COLOR_CLASS}`,
|
@@ -9832,26 +9832,26 @@ const RE = ["onClick"], ME = {
|
|
9832
9832
|
class: J.attrs.class || ""
|
9833
9833
|
}, ie = f(J);
|
9834
9834
|
ie && (_A.class += " " + ie);
|
9835
|
-
const re = Object.entries(
|
9836
|
-
return `${Wr}${
|
9835
|
+
const re = Object.entries($.attrs || {}).filter(([O, V]) => O !== "class").map(([O, V]) => `${O}="${V}"`).join(" "), jt = Object.entries(_A || {}).map(([O, V]) => `${O}="${V}"`).join(" "), Wr = `<${$.tag}${re ? " " + re : ""}${jt ? " " + jt : ""}>`, Jr = `</${$.tag}>`, F = ($.children || []).map((O) => H(O)).join("");
|
9836
|
+
return `${Wr}${$.editText || $.text || ""}${F}${Jr}`;
|
9837
9837
|
}
|
9838
9838
|
return H(t.element);
|
9839
9839
|
}
|
9840
9840
|
function N(H) {
|
9841
9841
|
var bA;
|
9842
9842
|
H.stopPropagation();
|
9843
|
-
const D = H.target,
|
9844
|
-
if (
|
9843
|
+
const D = H.target, $ = ((bA = D.firstChild) == null ? void 0 : bA.nodeType) === Node.TEXT_NODE && D.firstChild.nodeValue || "";
|
9844
|
+
if ($.length < c.value) {
|
9845
9845
|
u.value = !0, o.value = `最少输入 ${c.value} 个字符`;
|
9846
9846
|
return;
|
9847
|
-
} else if (
|
9847
|
+
} else if ($.length > l.value) {
|
9848
9848
|
u.value = !0, o.value = `最多输入 ${l.value} 个字符`;
|
9849
9849
|
return;
|
9850
9850
|
} else
|
9851
9851
|
u.value = !1, o.value = "";
|
9852
|
-
r("updateText", { element: t.element, newText:
|
9852
|
+
r("updateText", { element: t.element, newText: $ }), r("contentUpdated", Q());
|
9853
9853
|
const J = Ho(t.element);
|
9854
|
-
J.editText =
|
9854
|
+
J.editText = $;
|
9855
9855
|
}
|
9856
9856
|
function k(H) {
|
9857
9857
|
r("updateText", H), r("contentUpdated", Q());
|
@@ -9909,22 +9909,22 @@ const RE = ["onClick"], ME = {
|
|
9909
9909
|
const H = f(t.element);
|
9910
9910
|
return t.element.css = H, H;
|
9911
9911
|
}), XA = (H, D) => {
|
9912
|
-
D.children && D.children.length && D.children[0].type === Z.Block && D.children.map((
|
9913
|
-
|
9912
|
+
D.children && D.children.length && D.children[0].type === Z.Block && D.children.map(($) => {
|
9913
|
+
$.rule.flexColumn = H;
|
9914
9914
|
}), r("updateElementRule", D);
|
9915
9915
|
}, LA = Ge(() => {
|
9916
9916
|
let H = "";
|
9917
9917
|
if (t.mode === "design") {
|
9918
9918
|
const D = t.element;
|
9919
9919
|
if (D.type === Z.Block) {
|
9920
|
-
const
|
9921
|
-
|
9920
|
+
const $ = D.rule.flexColumn;
|
9921
|
+
$ > 1 && $ <= 12 && (H += `flex-basis: calc(100% / ${$} - 10px);`);
|
9922
9922
|
}
|
9923
9923
|
}
|
9924
9924
|
return H;
|
9925
9925
|
});
|
9926
9926
|
return (H, D) => {
|
9927
|
-
const
|
9927
|
+
const $ = p0("ElementRenderer", !0);
|
9928
9928
|
return G(), Y(xt, null, [
|
9929
9929
|
(G(), We(C0(t.element.tag), m0({
|
9930
9930
|
class: [
|
@@ -9962,7 +9962,7 @@ const RE = ["onClick"], ME = {
|
|
9962
9962
|
default: As(() => [
|
9963
9963
|
na(VA(t.element.text), 1),
|
9964
9964
|
t.element.children && t.element.children.length ? (G(), Y(xt, { key: 0 }, [
|
9965
|
-
(G(!0), Y(xt, null, Sn(t.element.children, (J, bA) => (G(), We(
|
9965
|
+
(G(!0), Y(xt, null, Sn(t.element.children, (J, bA) => (G(), We($, {
|
9966
9966
|
"show-margin": A.showMargin,
|
9967
9967
|
key: bA,
|
9968
9968
|
r: A.r,
|
@@ -10082,31 +10082,30 @@ const RE = ["onClick"], ME = {
|
|
10082
10082
|
})
|
10083
10083
|
], -1)
|
10084
10084
|
]))
|
10085
|
-
])) :
|
10085
|
+
])) : j("", !0),
|
10086
10086
|
t.element.children && t.element.children.length && t.element.children[0].type === fA(Z).Block && t.element.children[0].rule && t.element.children[0].rule.flexColumns && t.element.children[0].rule.flexColumns.length > 0 ? (G(), Y("div", {
|
10087
10087
|
key: 1,
|
10088
10088
|
"date-action": "1",
|
10089
10089
|
contenteditable: "false",
|
10090
10090
|
onClick: D[1] || (D[1] = WA(() => {
|
10091
10091
|
}, ["stop"])),
|
10092
|
-
class: "hover:z-10 z-1 flex space-x-1 flex-none flex-nowrap overflow-visible absolute right-0 -top-6
|
10092
|
+
class: "hover:z-10 z-1 flex space-x-1 flex-none flex-nowrap overflow-visible absolute right-0 -top-6 items-center"
|
10093
10093
|
}, [
|
10094
|
-
D[11] || (D[11] = b("span", { class: "text-gray-500" }, "布局", -1)),
|
10095
10094
|
(G(!0), Y(xt, null, Sn(t.element.children[0].rule.flexColumns, (J, bA) => (G(), Y("button", {
|
10096
10095
|
class: Za([
|
10097
|
-
"text-xs w-6 h-6 flex-none content-center items-center bg-purple-400/80 text-white rounded hover:bg-purple-600",
|
10096
|
+
"text-xs w-6 h-6 flex-none content-center items-center justify-center bg-purple-400/80 text-white rounded hover:bg-purple-600",
|
10098
10097
|
t.element.children[0].rule.flexColumn === J ? "bg-purple-700" : ""
|
10099
10098
|
]),
|
10100
10099
|
onClick: WA(() => XA(J, t.element), ["stop"])
|
10101
10100
|
}, VA(J), 11, RE))), 256))
|
10102
|
-
])) :
|
10103
|
-
], 64)) :
|
10101
|
+
])) : j("", !0)
|
10102
|
+
], 64)) : j("", !0),
|
10104
10103
|
t.element.type === fA(Z).Icon ? (G(), Y("div", {
|
10105
10104
|
key: 1,
|
10106
10105
|
class: "cursor-pointer rounded-sm w-5 h-5 flex justify-center items-center absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 text-sm text-gray-50 z-10 bg-black/80 hover:bg-black",
|
10107
10106
|
contenteditable: "false",
|
10108
10107
|
onClick: D[2] || (D[2] = WA(() => BA(t.element), ["stop"]))
|
10109
|
-
}, D[
|
10108
|
+
}, D[11] || (D[11] = [
|
10110
10109
|
b("svg", {
|
10111
10110
|
xmlns: "http://www.w3.org/2000/svg",
|
10112
10111
|
width: "1em",
|
@@ -10130,11 +10129,11 @@ const RE = ["onClick"], ME = {
|
|
10130
10129
|
d: "m320 255.79l-64-64l-64 64m64 192.42V207.79"
|
10131
10130
|
})
|
10132
10131
|
], -1)
|
10133
|
-
]))) :
|
10132
|
+
]))) : j("", !0)
|
10134
10133
|
]),
|
10135
10134
|
_: 1
|
10136
10135
|
}, 16, ["class", "style", "contenteditable"])),
|
10137
|
-
t.element.type == fA(Z).Text && u.value ? (G(), Y("div", ME, VA(o.value), 1)) :
|
10136
|
+
t.element.type == fA(Z).Text && u.value ? (G(), Y("div", ME, VA(o.value), 1)) : j("", !0),
|
10138
10137
|
t.element.type === fA(Z).Image ? (G(), Y("div", {
|
10139
10138
|
key: 1,
|
10140
10139
|
class: "cursor-pointer rounded-sm flex justify-center items-center absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 text-sm text-gray-50 z-10 bg-black/80 hover:bg-black",
|
@@ -10145,7 +10144,7 @@ const RE = ["onClick"], ME = {
|
|
10145
10144
|
b("div", {
|
10146
10145
|
class: "p-1",
|
10147
10146
|
onClick: D[5] || (D[5] = WA(() => gA(t.element), ["stop"]))
|
10148
|
-
}, D[
|
10147
|
+
}, D[12] || (D[12] = [
|
10149
10148
|
b("svg", {
|
10150
10149
|
xmlns: "http://www.w3.org/2000/svg",
|
10151
10150
|
width: "1em",
|
@@ -10170,7 +10169,7 @@ const RE = ["onClick"], ME = {
|
|
10170
10169
|
})
|
10171
10170
|
], -1)
|
10172
10171
|
]))
|
10173
|
-
])) :
|
10172
|
+
])) : j("", !0)
|
10174
10173
|
], 64);
|
10175
10174
|
};
|
10176
10175
|
}
|
@@ -10179,7 +10178,7 @@ const RE = ["onClick"], ME = {
|
|
10179
10178
|
for (const [r, n] of e)
|
10180
10179
|
t[r] = n;
|
10181
10180
|
return t;
|
10182
|
-
}, kE = /* @__PURE__ */ at(PE, [["__scopeId", "data-v-
|
10181
|
+
}, kE = /* @__PURE__ */ at(PE, [["__scopeId", "data-v-205f2181"]]), KE = ve({
|
10183
10182
|
name: "GpCheckbox",
|
10184
10183
|
props: {
|
10185
10184
|
modelValue: {
|
@@ -10264,10 +10263,10 @@ const Ar = /* @__PURE__ */ at(KE, [["render", WE], ["__scopeId", "data-v-68b8f27
|
|
10264
10263
|
}), qE = {
|
10265
10264
|
key: 0,
|
10266
10265
|
class: "gp-message"
|
10267
|
-
},
|
10266
|
+
}, jE = {
|
10268
10267
|
key: 0,
|
10269
10268
|
class: "mr-2"
|
10270
|
-
},
|
10269
|
+
}, $E = {
|
10271
10270
|
key: 0,
|
10272
10271
|
class: "text-green-500"
|
10273
10272
|
}, ZE = {
|
@@ -10287,21 +10286,21 @@ function ep(A, e, t, r, n, s) {
|
|
10287
10286
|
b("div", {
|
10288
10287
|
class: Za([A.typeClass, "message-content"])
|
10289
10288
|
}, [
|
10290
|
-
A.icon ? (G(), Y("span",
|
10289
|
+
A.icon ? (G(), Y("span", jE, [
|
10291
10290
|
Er(A.$slots, "icon", {}, () => [
|
10292
|
-
A.type === "success" ? (G(), Y("span",
|
10293
|
-
A.type === "error" ? (G(), Y("span", ZE, "✖")) :
|
10294
|
-
A.type === "info" ? (G(), Y("span", zE, "ℹ")) :
|
10295
|
-
A.type === "warning" ? (G(), Y("span", Ap, "⚠")) :
|
10291
|
+
A.type === "success" ? (G(), Y("span", $E, "✔")) : j("", !0),
|
10292
|
+
A.type === "error" ? (G(), Y("span", ZE, "✖")) : j("", !0),
|
10293
|
+
A.type === "info" ? (G(), Y("span", zE, "ℹ")) : j("", !0),
|
10294
|
+
A.type === "warning" ? (G(), Y("span", Ap, "⚠")) : j("", !0)
|
10296
10295
|
], !0)
|
10297
|
-
])) :
|
10296
|
+
])) : j("", !0),
|
10298
10297
|
b("span", null, VA(A.message), 1),
|
10299
10298
|
b("button", {
|
10300
10299
|
class: "close-btn hover:text-gray-800 font-bold",
|
10301
10300
|
onClick: e[0] || (e[0] = (...a) => A.closeMessage && A.closeMessage(...a))
|
10302
10301
|
}, " × ")
|
10303
10302
|
], 2)
|
10304
|
-
])) :
|
10303
|
+
])) : j("", !0)
|
10305
10304
|
]),
|
10306
10305
|
_: 3
|
10307
10306
|
});
|
@@ -10341,13 +10340,13 @@ const rp = () => {
|
|
10341
10340
|
(t) => Ni(tp, {
|
10342
10341
|
key: t.id,
|
10343
10342
|
...t.options,
|
10344
|
-
onClose: () =>
|
10343
|
+
onClose: () => $c(t.id)
|
10345
10344
|
})
|
10346
10345
|
)
|
10347
10346
|
);
|
10348
10347
|
}
|
10349
10348
|
}), xs.mount(A);
|
10350
|
-
},
|
10349
|
+
}, $c = (A) => {
|
10351
10350
|
const e = Mt.findIndex((t) => t.id === A);
|
10352
10351
|
e !== -1 && Mt.splice(e, 1);
|
10353
10352
|
};
|
@@ -10359,7 +10358,7 @@ const eA = (A) => {
|
|
10359
10358
|
id: e,
|
10360
10359
|
options: A
|
10361
10360
|
}), setTimeout(() => {
|
10362
|
-
|
10361
|
+
$c(e);
|
10363
10362
|
}, A.duration || 3e3);
|
10364
10363
|
};
|
10365
10364
|
eA.success = (A, e = 3e3, t = !0) => {
|
@@ -10459,7 +10458,7 @@ const ap = { class: "text-sm" }, ip = { key: 0 }, up = { key: 0 }, op = { class:
|
|
10459
10458
|
n.value.text !== void 0 ? (G(), Y("div", up, [
|
10460
10459
|
u[15] || (u[15] = b("label", { class: "block" }, "内容", -1)),
|
10461
10460
|
b("div", op, VA(n.value.text || "-"), 1)
|
10462
|
-
])) :
|
10461
|
+
])) : j("", !0),
|
10463
10462
|
b("div", null, [
|
10464
10463
|
u[16] || (u[16] = b("label", { class: "block mt-4" }, "节点", -1)),
|
10465
10464
|
b("div", cp, VA(n.value.xpath), 1)
|
@@ -10490,7 +10489,7 @@ const ap = { class: "text-sm" }, ip = { key: 0 }, up = { key: 0 }, op = { class:
|
|
10490
10489
|
}, null, 512), [
|
10491
10490
|
[Re, n.value.rule.minText]
|
10492
10491
|
])
|
10493
|
-
])) :
|
10492
|
+
])) : j("", !0),
|
10494
10493
|
n.value.type == fA(Z).Text ? (G(), Y("div", fp, [
|
10495
10494
|
u[20] || (u[20] = b("label", { class: "block mt-4" }, "最大文本长度", -1)),
|
10496
10495
|
ge(b("input", {
|
@@ -10499,7 +10498,7 @@ const ap = { class: "text-sm" }, ip = { key: 0 }, up = { key: 0 }, op = { class:
|
|
10499
10498
|
}, null, 512), [
|
10500
10499
|
[Re, n.value.rule.maxText]
|
10501
10500
|
])
|
10502
|
-
])) :
|
10501
|
+
])) : j("", !0),
|
10503
10502
|
n.value.type == fA(Z).Image ? (G(), Y("div", hp, [
|
10504
10503
|
u[21] || (u[21] = b("label", { class: "block mt-4" }, "是否裁剪", -1)),
|
10505
10504
|
Xe(Ar, {
|
@@ -10508,7 +10507,7 @@ const ap = { class: "text-sm" }, ip = { key: 0 }, up = { key: 0 }, op = { class:
|
|
10508
10507
|
"onUpdate:modelValue": u[3] || (u[3] = (o) => n.value.rule.crop = o),
|
10509
10508
|
label: "是"
|
10510
10509
|
}, null, 8, ["modelValue"])
|
10511
|
-
])) :
|
10510
|
+
])) : j("", !0),
|
10512
10511
|
n.value.type == fA(Z).Image ? (G(), Y("div", dp, [
|
10513
10512
|
u[22] || (u[22] = b("label", { class: "block mt-4" }, "图片宽度", -1)),
|
10514
10513
|
ge(b("input", {
|
@@ -10517,7 +10516,7 @@ const ap = { class: "text-sm" }, ip = { key: 0 }, up = { key: 0 }, op = { class:
|
|
10517
10516
|
}, null, 512), [
|
10518
10517
|
[Re, n.value.rule.minImageWidth]
|
10519
10518
|
])
|
10520
|
-
])) :
|
10519
|
+
])) : j("", !0),
|
10521
10520
|
n.value.type == fA(Z).Image ? (G(), Y("div", Bp, [
|
10522
10521
|
u[23] || (u[23] = b("label", { class: "block mt-4" }, "图片高度", -1)),
|
10523
10522
|
ge(b("input", {
|
@@ -10526,7 +10525,7 @@ const ap = { class: "text-sm" }, ip = { key: 0 }, up = { key: 0 }, op = { class:
|
|
10526
10525
|
}, null, 512), [
|
10527
10526
|
[Re, n.value.rule.maxImageHeight]
|
10528
10527
|
])
|
10529
|
-
])) :
|
10528
|
+
])) : j("", !0),
|
10530
10529
|
n.value.type == fA(Z).Block ? (G(), Y("div", gp, [
|
10531
10530
|
u[24] || (u[24] = b("label", { class: "block mt-4" }, "块最小数量", -1)),
|
10532
10531
|
ge(b("input", {
|
@@ -10535,7 +10534,7 @@ const ap = { class: "text-sm" }, ip = { key: 0 }, up = { key: 0 }, op = { class:
|
|
10535
10534
|
}, null, 512), [
|
10536
10535
|
[Re, n.value.rule.minBlock]
|
10537
10536
|
])
|
10538
|
-
])) :
|
10537
|
+
])) : j("", !0),
|
10539
10538
|
n.value.type == fA(Z).Block ? (G(), Y("div", Ep, [
|
10540
10539
|
u[25] || (u[25] = b("label", { class: "block mt-4" }, "块最大数量", -1)),
|
10541
10540
|
ge(b("input", {
|
@@ -10544,7 +10543,7 @@ const ap = { class: "text-sm" }, ip = { key: 0 }, up = { key: 0 }, op = { class:
|
|
10544
10543
|
}, null, 512), [
|
10545
10544
|
[Re, n.value.rule.maxBlock]
|
10546
10545
|
])
|
10547
|
-
])) :
|
10546
|
+
])) : j("", !0),
|
10548
10547
|
n.value.type == fA(Z).Block ? (G(), Y("div", pp, [
|
10549
10548
|
u[27] || (u[27] = b("label", { class: "block mt-4" }, "PC端每行列数", -1)),
|
10550
10549
|
ge(b("select", {
|
@@ -10567,7 +10566,7 @@ const ap = { class: "text-sm" }, ip = { key: 0 }, up = { key: 0 }, op = { class:
|
|
10567
10566
|
]), 512), [
|
10568
10567
|
[Di, n.value.rule.flexColumns]
|
10569
10568
|
])
|
10570
|
-
])) :
|
10569
|
+
])) : j("", !0),
|
10571
10570
|
n.value.type == fA(Z).Block ? (G(), Y("div", Cp, [
|
10572
10571
|
u[28] || (u[28] = b("label", { class: "block mt-4" }, "移动端每行列数", -1)),
|
10573
10572
|
ge(b("input", {
|
@@ -10576,7 +10575,7 @@ const ap = { class: "text-sm" }, ip = { key: 0 }, up = { key: 0 }, op = { class:
|
|
10576
10575
|
}, null, 512), [
|
10577
10576
|
[Re, n.value.rule.mobileFlexColumn]
|
10578
10577
|
])
|
10579
|
-
])) :
|
10578
|
+
])) : j("", !0),
|
10580
10579
|
n.value.type == fA(Z).Text || n.value.type == fA(Z).Icon || n.value.type == fA(Z).Button ? (G(), Y("div", mp, [
|
10581
10580
|
u[29] || (u[29] = b("label", { class: "block mt-4" }, "主题色", -1)),
|
10582
10581
|
Xe(Ar, {
|
@@ -10585,7 +10584,7 @@ const ap = { class: "text-sm" }, ip = { key: 0 }, up = { key: 0 }, op = { class:
|
|
10585
10584
|
"onUpdate:modelValue": u[10] || (u[10] = (o) => n.value.rule.isThemeColor = o),
|
10586
10585
|
label: "是"
|
10587
10586
|
}, null, 8, ["modelValue"])
|
10588
|
-
])) :
|
10587
|
+
])) : j("", !0),
|
10589
10588
|
b("div", null, [
|
10590
10589
|
u[30] || (u[30] = b("label", { class: "block mt-4" }, "是否必填", -1)),
|
10591
10590
|
Xe(Ar, {
|
@@ -10612,7 +10611,7 @@ const ap = { class: "text-sm" }, ip = { key: 0 }, up = { key: 0 }, op = { class:
|
|
10612
10611
|
"onUpdate:modelValue": u[13] || (u[13] = (o) => n.value.rule.openMeiqia = o),
|
10613
10612
|
label: "是"
|
10614
10613
|
}, null, 8, ["modelValue"])
|
10615
|
-
])) :
|
10614
|
+
])) : j("", !0),
|
10616
10615
|
n.value.type == fA(Z).Link || n.value.type == fA(Z).Button ? (G(), Y("div", Tp, [
|
10617
10616
|
u[33] || (u[33] = b("label", { class: "block mt-4" }, "链接", -1)),
|
10618
10617
|
ge(b("input", {
|
@@ -10621,8 +10620,8 @@ const ap = { class: "text-sm" }, ip = { key: 0 }, up = { key: 0 }, op = { class:
|
|
10621
10620
|
}, null, 512), [
|
10622
10621
|
[Re, n.value.rule.linkUrl]
|
10623
10622
|
])
|
10624
|
-
])) :
|
10625
|
-
])) :
|
10623
|
+
])) : j("", !0)
|
10624
|
+
])) : j("", !0),
|
10626
10625
|
b("button", {
|
10627
10626
|
onClick: s,
|
10628
10627
|
class: "mt-4 p-2 bg-green-500 text-white rounded"
|
@@ -10826,7 +10825,7 @@ function Nt(A) {
|
|
10826
10825
|
return !1;
|
10827
10826
|
}
|
10828
10827
|
}
|
10829
|
-
function
|
10828
|
+
function $A(A) {
|
10830
10829
|
return typeof A == "function";
|
10831
10830
|
}
|
10832
10831
|
var Vp = Array.prototype.slice;
|
@@ -10834,7 +10833,7 @@ function ul(A) {
|
|
10834
10833
|
return Array.from ? Array.from(A) : Vp.call(A);
|
10835
10834
|
}
|
10836
10835
|
function vA(A, e) {
|
10837
|
-
return A &&
|
10836
|
+
return A && $A(e) && (Array.isArray(A) || nA(A.length) ? ul(A).forEach(function(t, r) {
|
10838
10837
|
e.call(A, t, r, A);
|
10839
10838
|
}) : wt(A) && Object.keys(A).forEach(function(t) {
|
10840
10839
|
e.call(A, A[t], t, A);
|
@@ -10854,7 +10853,7 @@ function Pt(A) {
|
|
10854
10853
|
return Yp.test(A) ? Math.round(A * e) / e : A;
|
10855
10854
|
}
|
10856
10855
|
var Xp = /^width|height|left|top|marginLeft|marginTop$/;
|
10857
|
-
function
|
10856
|
+
function je(A, e) {
|
10858
10857
|
var t = A.style;
|
10859
10858
|
vA(e, function(r, n) {
|
10860
10859
|
Xp.test(n) && nA(r) && (r = "".concat(r, "px")), t[n] = r;
|
@@ -10979,7 +10978,7 @@ function ue(A, e, t) {
|
|
10979
10978
|
}
|
10980
10979
|
function kt(A, e, t) {
|
10981
10980
|
var r;
|
10982
|
-
return
|
10981
|
+
return $A(Event) && $A(CustomEvent) ? r = new CustomEvent(e, {
|
10983
10982
|
detail: t,
|
10984
10983
|
bubbles: !0,
|
10985
10984
|
cancelable: !0
|
@@ -10992,9 +10991,9 @@ function ll(A) {
|
|
10992
10991
|
top: e.top + (window.pageYOffset - document.documentElement.clientTop)
|
10993
10992
|
};
|
10994
10993
|
}
|
10995
|
-
var Ds = Ie.location,
|
10994
|
+
var Ds = Ie.location, jp = /^(\w+:)\/\/([^:/?#]*):?(\d*)/i;
|
10996
10995
|
function yu(A) {
|
10997
|
-
var e = A.match(
|
10996
|
+
var e = A.match(jp);
|
10998
10997
|
return e !== null && (e[1] !== Ds.protocol || e[2] !== Ds.hostname || e[3] !== Ds.port);
|
10999
10998
|
}
|
11000
10999
|
function Su(A) {
|
@@ -11011,7 +11010,7 @@ function Ur(A) {
|
|
11011
11010
|
transform: u
|
11012
11011
|
};
|
11013
11012
|
}
|
11014
|
-
function
|
11013
|
+
function $p(A) {
|
11015
11014
|
var e = Zc({}, A), t = 0;
|
11016
11015
|
return vA(A, function(r, n) {
|
11017
11016
|
delete e[n], vA(e, function(s) {
|
@@ -11040,7 +11039,7 @@ function Zp(A) {
|
|
11040
11039
|
pageY: t
|
11041
11040
|
};
|
11042
11041
|
}
|
11043
|
-
function
|
11042
|
+
function $e(A) {
|
11044
11043
|
var e = A.aspectRatio, t = A.height, r = A.width, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "contain", s = _u(r), a = _u(t);
|
11045
11044
|
if (s && a) {
|
11046
11045
|
var u = t * e;
|
@@ -11068,23 +11067,23 @@ function zp(A) {
|
|
11068
11067
|
};
|
11069
11068
|
}
|
11070
11069
|
function AC(A, e, t, r) {
|
11071
|
-
var n = e.aspectRatio, s = e.naturalWidth, a = e.naturalHeight, u = e.rotate, o = u === void 0 ? 0 : u, c = e.scaleX, l = c === void 0 ? 1 : c, f = e.scaleY, h = f === void 0 ? 1 : f, C = t.aspectRatio, p = t.naturalWidth, w = t.naturalHeight, I = r.fillColor, v = I === void 0 ? "transparent" : I, Q = r.imageSmoothingEnabled, N = Q === void 0 ? !0 : Q, k = r.imageSmoothingQuality, L = k === void 0 ? "low" : k, E = r.maxWidth, x = E === void 0 ? 1 / 0 : E, K = r.maxHeight, M = K === void 0 ? 1 / 0 : K, sA = r.minWidth, BA = sA === void 0 ? 0 : sA, gA = r.minHeight, AA = gA === void 0 ? 0 : gA, aA = document.createElement("canvas"), cA = aA.getContext("2d"), dA =
|
11070
|
+
var n = e.aspectRatio, s = e.naturalWidth, a = e.naturalHeight, u = e.rotate, o = u === void 0 ? 0 : u, c = e.scaleX, l = c === void 0 ? 1 : c, f = e.scaleY, h = f === void 0 ? 1 : f, C = t.aspectRatio, p = t.naturalWidth, w = t.naturalHeight, I = r.fillColor, v = I === void 0 ? "transparent" : I, Q = r.imageSmoothingEnabled, N = Q === void 0 ? !0 : Q, k = r.imageSmoothingQuality, L = k === void 0 ? "low" : k, E = r.maxWidth, x = E === void 0 ? 1 / 0 : E, K = r.maxHeight, M = K === void 0 ? 1 / 0 : K, sA = r.minWidth, BA = sA === void 0 ? 0 : sA, gA = r.minHeight, AA = gA === void 0 ? 0 : gA, aA = document.createElement("canvas"), cA = aA.getContext("2d"), dA = $e({
|
11072
11071
|
aspectRatio: C,
|
11073
11072
|
width: x,
|
11074
11073
|
height: M
|
11075
|
-
}), TA =
|
11074
|
+
}), TA = $e({
|
11076
11075
|
aspectRatio: C,
|
11077
11076
|
width: BA,
|
11078
11077
|
height: AA
|
11079
|
-
}, "cover"), XA = Math.min(dA.width, Math.max(TA.width, p)), LA = Math.min(dA.height, Math.max(TA.height, w)), H =
|
11078
|
+
}, "cover"), XA = Math.min(dA.width, Math.max(TA.width, p)), LA = Math.min(dA.height, Math.max(TA.height, w)), H = $e({
|
11080
11079
|
aspectRatio: n,
|
11081
11080
|
width: x,
|
11082
11081
|
height: M
|
11083
|
-
}), D =
|
11082
|
+
}), D = $e({
|
11084
11083
|
aspectRatio: n,
|
11085
11084
|
width: BA,
|
11086
11085
|
height: AA
|
11087
|
-
}, "cover"),
|
11086
|
+
}, "cover"), $ = Math.min(H.width, Math.max(D.width, s)), J = Math.min(H.height, Math.max(D.height, a)), bA = [-$ / 2, -J / 2, $, J];
|
11088
11087
|
return aA.width = Pt(XA), aA.height = Pt(LA), cA.fillStyle = v, cA.fillRect(0, 0, XA, LA), cA.save(), cA.translate(XA / 2, LA / 2), cA.rotate(o * Math.PI / 180), cA.scale(l, h), cA.imageSmoothingEnabled = N, cA.imageSmoothingQuality = L, cA.drawImage.apply(cA, [A].concat(Al(bA.map(function(_A) {
|
11089
11088
|
return Math.floor(Pt(_A));
|
11090
11089
|
})))), cA.restore(), aA;
|
@@ -11186,7 +11185,7 @@ var iC = {
|
|
11186
11185
|
width: Math.max(r.offsetWidth, s >= 0 ? s : al),
|
11187
11186
|
height: Math.max(r.offsetHeight, a >= 0 ? a : il)
|
11188
11187
|
};
|
11189
|
-
this.containerData = u,
|
11188
|
+
this.containerData = u, je(n, {
|
11190
11189
|
width: u.width,
|
11191
11190
|
height: u.height
|
11192
11191
|
}), DA(e, zA), Fe(n, zA);
|
@@ -11209,7 +11208,7 @@ var iC = {
|
|
11209
11208
|
if (e) {
|
11210
11209
|
var l = Number(r.minCanvasWidth) || 0, f = Number(r.minCanvasHeight) || 0;
|
11211
11210
|
u > 1 ? (l = Math.max(l, n.width), f = Math.max(f, n.height), u === 3 && (f * o > l ? l = f * o : f = l / o)) : u > 0 && (l ? l = Math.max(l, c ? a.width : 0) : f ? f = Math.max(f, c ? a.height : 0) : c && (l = a.width, f = a.height, f * o > l ? l = f * o : f = l / o));
|
11212
|
-
var h =
|
11211
|
+
var h = $e({
|
11213
11212
|
aspectRatio: o,
|
11214
11213
|
width: l,
|
11215
11214
|
height: f
|
@@ -11233,7 +11232,7 @@ var iC = {
|
|
11233
11232
|
}), a = s.width, u = s.height, o = r.width * (a / r.naturalWidth), c = r.height * (u / r.naturalHeight);
|
11234
11233
|
r.left -= (o - r.width) / 2, r.top -= (c - r.height) / 2, r.width = o, r.height = c, r.aspectRatio = a / u, r.naturalWidth = a, r.naturalHeight = u, this.limitCanvas(!0, !1);
|
11235
11234
|
}
|
11236
|
-
(r.width > r.maxWidth || r.width < r.minWidth) && (r.left = r.oldLeft), (r.height > r.maxHeight || r.height < r.minHeight) && (r.top = r.oldTop), r.width = Math.min(Math.max(r.width, r.minWidth), r.maxWidth), r.height = Math.min(Math.max(r.height, r.minHeight), r.maxHeight), this.limitCanvas(!1, !0), r.left = Math.min(Math.max(r.left, r.minLeft), r.maxLeft), r.top = Math.min(Math.max(r.top, r.minTop), r.maxTop), r.oldLeft = r.left, r.oldTop = r.top,
|
11235
|
+
(r.width > r.maxWidth || r.width < r.minWidth) && (r.left = r.oldLeft), (r.height > r.maxHeight || r.height < r.minHeight) && (r.top = r.oldTop), r.width = Math.min(Math.max(r.width, r.minWidth), r.maxWidth), r.height = Math.min(Math.max(r.height, r.minHeight), r.maxHeight), this.limitCanvas(!1, !0), r.left = Math.min(Math.max(r.left, r.minLeft), r.maxLeft), r.top = Math.min(Math.max(r.top, r.minTop), r.maxTop), r.oldLeft = r.left, r.oldTop = r.top, je(this.canvas, wA({
|
11237
11236
|
width: r.width,
|
11238
11237
|
height: r.height
|
11239
11238
|
}, Ur({
|
@@ -11248,7 +11247,7 @@ var iC = {
|
|
11248
11247
|
height: s,
|
11249
11248
|
left: (t.width - n) / 2,
|
11250
11249
|
top: (t.height - s) / 2
|
11251
|
-
}),
|
11250
|
+
}), je(this.image, wA({
|
11252
11251
|
width: r.width,
|
11253
11252
|
height: r.height
|
11254
11253
|
}, Ur(wA({
|
@@ -11273,7 +11272,7 @@ var iC = {
|
|
11273
11272
|
},
|
11274
11273
|
renderCropBox: function() {
|
11275
11274
|
var e = this.options, t = this.containerData, r = this.cropBoxData;
|
11276
|
-
(r.width > r.maxWidth || r.width < r.minWidth) && (r.left = r.oldLeft), (r.height > r.maxHeight || r.height < r.minHeight) && (r.top = r.oldTop), r.width = Math.min(Math.max(r.width, r.minWidth), r.maxWidth), r.height = Math.min(Math.max(r.height, r.minHeight), r.maxHeight), this.limitCropBox(!1, !0), r.left = Math.min(Math.max(r.left, r.minLeft), r.maxLeft), r.top = Math.min(Math.max(r.top, r.minTop), r.maxTop), r.oldLeft = r.left, r.oldTop = r.top, e.movable && e.cropBoxMovable && Or(this.face, Dr, r.width >= t.width && r.height >= t.height ? tl : Ui),
|
11275
|
+
(r.width > r.maxWidth || r.width < r.minWidth) && (r.left = r.oldLeft), (r.height > r.maxHeight || r.height < r.minHeight) && (r.top = r.oldTop), r.width = Math.min(Math.max(r.width, r.minWidth), r.maxWidth), r.height = Math.min(Math.max(r.height, r.minHeight), r.maxHeight), this.limitCropBox(!1, !0), r.left = Math.min(Math.max(r.left, r.minLeft), r.maxLeft), r.top = Math.min(Math.max(r.top, r.minTop), r.maxTop), r.oldLeft = r.left, r.oldTop = r.top, e.movable && e.cropBoxMovable && Or(this.face, Dr, r.width >= t.width && r.height >= t.height ? tl : Ui), je(this.cropBox, wA({
|
11277
11276
|
width: r.width,
|
11278
11277
|
height: r.height
|
11279
11278
|
}, Ur({
|
@@ -11302,7 +11301,7 @@ var iC = {
|
|
11302
11301
|
resetPreview: function() {
|
11303
11302
|
vA(this.previews, function(e) {
|
11304
11303
|
var t = va(e, zr);
|
11305
|
-
|
11304
|
+
je(e, {
|
11306
11305
|
width: t.width,
|
11307
11306
|
height: t.height
|
11308
11307
|
}), e.innerHTML = t.html, qp(e, zr);
|
@@ -11310,7 +11309,7 @@ var iC = {
|
|
11310
11309
|
},
|
11311
11310
|
preview: function() {
|
11312
11311
|
var e = this.imageData, t = this.canvasData, r = this.cropBoxData, n = r.width, s = r.height, a = e.width, u = e.height, o = r.left - t.left - e.left, c = r.top - t.top - e.top;
|
11313
|
-
!this.cropped || this.disabled || (
|
11312
|
+
!this.cropped || this.disabled || (je(this.viewBoxImage, wA({
|
11314
11313
|
width: a,
|
11315
11314
|
height: u
|
11316
11315
|
}, Ur(wA({
|
@@ -11318,10 +11317,10 @@ var iC = {
|
|
11318
11317
|
translateY: -c
|
11319
11318
|
}, e)))), vA(this.previews, function(l) {
|
11320
11319
|
var f = va(l, zr), h = f.width, C = f.height, p = h, w = C, I = 1;
|
11321
|
-
n && (I = h / n, w = s * I), s && w > C && (I = C / s, p = n * I, w = C),
|
11320
|
+
n && (I = h / n, w = s * I), s && w > C && (I = C / s, p = n * I, w = C), je(l, {
|
11322
11321
|
width: p,
|
11323
11322
|
height: w
|
11324
|
-
}),
|
11323
|
+
}), je(l.getElementsByTagName("img")[0], wA({
|
11325
11324
|
width: a * I,
|
11326
11325
|
height: u * I
|
11327
11326
|
}, Ur(wA({
|
@@ -11333,14 +11332,14 @@ var iC = {
|
|
11333
11332
|
}, oC = {
|
11334
11333
|
bind: function() {
|
11335
11334
|
var e = this.element, t = this.options, r = this.cropper;
|
11336
|
-
|
11335
|
+
$A(t.cropstart) && ue(e, Fa, t.cropstart), $A(t.cropmove) && ue(e, Qa, t.cropmove), $A(t.cropend) && ue(e, Ua, t.cropend), $A(t.crop) && ue(e, ba, t.crop), $A(t.zoom) && ue(e, Ia, t.zoom), ue(r, wu, this.onCropStart = this.cropStart.bind(this)), t.zoomable && t.zoomOnWheel && ue(r, Fu, this.onWheel = this.wheel.bind(this), {
|
11337
11336
|
passive: !1,
|
11338
11337
|
capture: !0
|
11339
11338
|
}), t.toggleDragModeOnDblclick && ue(r, mu, this.onDblclick = this.dblclick.bind(this)), ue(e.ownerDocument, Tu, this.onCropMove = this.cropMove.bind(this)), ue(e.ownerDocument, bu, this.onCropEnd = this.cropEnd.bind(this)), t.responsive && ue(window, Qu, this.onResize = this.resize.bind(this));
|
11340
11339
|
},
|
11341
11340
|
unbind: function() {
|
11342
11341
|
var e = this.element, t = this.options, r = this.cropper;
|
11343
|
-
|
11342
|
+
$A(t.cropstart) && Be(e, Fa, t.cropstart), $A(t.cropmove) && Be(e, Qa, t.cropmove), $A(t.cropend) && Be(e, Ua, t.cropend), $A(t.crop) && Be(e, ba, t.crop), $A(t.zoom) && Be(e, Ia, t.zoom), Be(r, wu, this.onCropStart), t.zoomable && t.zoomOnWheel && Be(r, Fu, this.onWheel, {
|
11344
11343
|
passive: !1,
|
11345
11344
|
capture: !0
|
11346
11345
|
}), t.toggleDragModeOnDblclick && Be(r, mu, this.onDblclick), Be(e.ownerDocument, Tu, this.onCropMove), Be(e.ownerDocument, bu, this.onCropEnd), t.responsive && Be(window, Qu, this.onResize);
|
@@ -11507,7 +11506,7 @@ var iC = {
|
|
11507
11506
|
this.move(E.x, E.y), N = !1;
|
11508
11507
|
break;
|
11509
11508
|
case rl:
|
11510
|
-
this.zoom(
|
11509
|
+
this.zoom($p(a), e), N = !1;
|
11511
11510
|
break;
|
11512
11511
|
case el:
|
11513
11512
|
if (!E.x || !E.y) {
|
@@ -11783,15 +11782,15 @@ var iC = {
|
|
11783
11782
|
return r;
|
11784
11783
|
var n = this.getData(e.rounded), s = n.x, a = n.y, u = n.width, o = n.height, c = r.width / Math.floor(t.naturalWidth);
|
11785
11784
|
c !== 1 && (s *= c, a *= c, u *= c, o *= c);
|
11786
|
-
var l = u / o, f =
|
11785
|
+
var l = u / o, f = $e({
|
11787
11786
|
aspectRatio: l,
|
11788
11787
|
width: e.maxWidth || 1 / 0,
|
11789
11788
|
height: e.maxHeight || 1 / 0
|
11790
|
-
}), h =
|
11789
|
+
}), h = $e({
|
11791
11790
|
aspectRatio: l,
|
11792
11791
|
width: e.minWidth || 0,
|
11793
11792
|
height: e.minHeight || 0
|
11794
|
-
}, "cover"), C =
|
11793
|
+
}, "cover"), C = $e({
|
11795
11794
|
aspectRatio: l,
|
11796
11795
|
width: e.width || (c !== 1 ? r.width : u),
|
11797
11796
|
height: e.height || (c !== 1 ? r.height : o)
|
@@ -11932,7 +11931,7 @@ var iC = {
|
|
11932
11931
|
var t = this.element, r = this.options, n = this.image, s = t.parentNode, a = document.createElement("div");
|
11933
11932
|
a.innerHTML = kp;
|
11934
11933
|
var u = a.querySelector(".".concat(mA, "-container")), o = u.querySelector(".".concat(mA, "-canvas")), c = u.querySelector(".".concat(mA, "-drag-box")), l = u.querySelector(".".concat(mA, "-crop-box")), f = l.querySelector(".".concat(mA, "-face"));
|
11935
|
-
this.container = s, this.cropper = u, this.canvas = o, this.dragBox = c, this.cropBox = l, this.viewBox = u.querySelector(".".concat(mA, "-view-box")), this.face = f, o.appendChild(n), DA(t, zA), s.insertBefore(u, t.nextSibling), Fe(n, Cu), this.initPreview(), this.bind(), r.initialAspectRatio = Math.max(0, r.initialAspectRatio) || NaN, r.aspectRatio = Math.max(0, r.aspectRatio) || NaN, r.viewMode = Math.max(0, Math.min(3, Math.round(r.viewMode))) || 0, DA(l, zA), r.guides || DA(l.getElementsByClassName("".concat(mA, "-dashed")), zA), r.center || DA(l.getElementsByClassName("".concat(mA, "-center")), zA), r.background && DA(u, "".concat(mA, "-bg")), r.highlight || DA(f, Hp), r.cropBoxMovable && (DA(f, Ta), Or(f, Dr, Ui)), r.cropBoxResizable || (DA(l.getElementsByClassName("".concat(mA, "-line")), zA), DA(l.getElementsByClassName("".concat(mA, "-point")), zA)), this.render(), this.ready = !0, this.setDragMode(r.dragMode), r.autoCrop && this.crop(), this.setData(r.data),
|
11934
|
+
this.container = s, this.cropper = u, this.canvas = o, this.dragBox = c, this.cropBox = l, this.viewBox = u.querySelector(".".concat(mA, "-view-box")), this.face = f, o.appendChild(n), DA(t, zA), s.insertBefore(u, t.nextSibling), Fe(n, Cu), this.initPreview(), this.bind(), r.initialAspectRatio = Math.max(0, r.initialAspectRatio) || NaN, r.aspectRatio = Math.max(0, r.aspectRatio) || NaN, r.viewMode = Math.max(0, Math.min(3, Math.round(r.viewMode))) || 0, DA(l, zA), r.guides || DA(l.getElementsByClassName("".concat(mA, "-dashed")), zA), r.center || DA(l.getElementsByClassName("".concat(mA, "-center")), zA), r.background && DA(u, "".concat(mA, "-bg")), r.highlight || DA(f, Hp), r.cropBoxMovable && (DA(f, Ta), Or(f, Dr, Ui)), r.cropBoxResizable || (DA(l.getElementsByClassName("".concat(mA, "-line")), zA), DA(l.getElementsByClassName("".concat(mA, "-point")), zA)), this.render(), this.ready = !0, this.setDragMode(r.dragMode), r.autoCrop && this.crop(), this.setData(r.data), $A(r.ready) && ue(t, Uu, r.ready, {
|
11936
11935
|
once: !0
|
11937
11936
|
}), kt(t, Uu);
|
11938
11937
|
}
|
@@ -12138,7 +12137,7 @@ const BC = {
|
|
12138
12137
|
b("div", QC, [
|
12139
12138
|
b("div", FC, [
|
12140
12139
|
b("div", IC, [
|
12141
|
-
c.value.image ?
|
12140
|
+
c.value.image ? j("", !0) : (G(), Y("div", vC, " 请上传图片 ")),
|
12142
12141
|
b("img", {
|
12143
12142
|
id: "imgId",
|
12144
12143
|
src: c.value.image,
|
@@ -12169,7 +12168,7 @@ const BC = {
|
|
12169
12168
|
])
|
12170
12169
|
])
|
12171
12170
|
])
|
12172
|
-
])) :
|
12171
|
+
])) : j("", !0);
|
12173
12172
|
};
|
12174
12173
|
}
|
12175
12174
|
}), NC = ve({
|
@@ -12238,7 +12237,7 @@ function kC(A, e, t, r, n, s) {
|
|
12238
12237
|
}, [
|
12239
12238
|
b("div", DC, [
|
12240
12239
|
b("div", OC, [
|
12241
|
-
A.title ? (G(), Y("h3", RC, VA(A.title), 1)) :
|
12240
|
+
A.title ? (G(), Y("h3", RC, VA(A.title), 1)) : j("", !0),
|
12242
12241
|
Er(A.$slots, "header"),
|
12243
12242
|
A.showCloseButton ? (G(), Y("button", {
|
12244
12243
|
key: 1,
|
@@ -12258,7 +12257,7 @@ function kC(A, e, t, r, n, s) {
|
|
12258
12257
|
"clip-rule": "evenodd"
|
12259
12258
|
})
|
12260
12259
|
], -1)
|
12261
|
-
]))) :
|
12260
|
+
]))) : j("", !0)
|
12262
12261
|
]),
|
12263
12262
|
b("div", MC, [
|
12264
12263
|
Er(A.$slots, "default")
|
@@ -12269,16 +12268,16 @@ function kC(A, e, t, r, n, s) {
|
|
12269
12268
|
key: 0,
|
12270
12269
|
class: "px-4 py-2 text-sm font-medium text-gray-700 bg-gray-100 rounded hover:bg-gray-200",
|
12271
12270
|
onClick: e[1] || (e[1] = (...a) => A.onCancel && A.onCancel(...a))
|
12272
|
-
}, VA(A.cancelText), 1)) :
|
12271
|
+
}, VA(A.cancelText), 1)) : j("", !0),
|
12273
12272
|
A.showOkButton ? (G(), Y("button", {
|
12274
12273
|
key: 1,
|
12275
12274
|
class: "px-4 py-2 text-sm font-medium text-white bg-blue-600 rounded hover:bg-blue-700",
|
12276
12275
|
onClick: e[2] || (e[2] = (...a) => A.onOk && A.onOk(...a))
|
12277
|
-
}, VA(A.okText), 1)) :
|
12276
|
+
}, VA(A.okText), 1)) : j("", !0)
|
12278
12277
|
])
|
12279
|
-
])) :
|
12278
|
+
])) : j("", !0)
|
12280
12279
|
])
|
12281
|
-
])) :
|
12280
|
+
])) : j("", !0);
|
12282
12281
|
}
|
12283
12282
|
const KC = /* @__PURE__ */ at(NC, [["render", kC]]), GC = { class: "p-4 flex flex-wrap max-h-[500px] overflow-y-auto w-[640px]" }, VC = ["onClick"], YC = /* @__PURE__ */ ve({
|
12284
12283
|
__name: "GpIcon",
|
@@ -12419,7 +12418,7 @@ const KC = /* @__PURE__ */ at(NC, [["render", kC]]), GC = { class: "p-4 flex fle
|
|
12419
12418
|
}), WC = { class: "upload-wrapper" }, JC = ["accept", "multiple"], qC = {
|
12420
12419
|
key: 1,
|
12421
12420
|
class: "file-list mt-4"
|
12422
|
-
},
|
12421
|
+
}, jC = { class: "flex items-center space-x-4" }, $C = ["src"], ZC = ["onClick"];
|
12423
12422
|
function zC(A, e, t, r, n, s) {
|
12424
12423
|
return G(), Y("div", WC, [
|
12425
12424
|
A.isShow ? (G(), Y("div", {
|
@@ -12432,7 +12431,7 @@ function zC(A, e, t, r, n, s) {
|
|
12432
12431
|
b("div", { class: "text-gray-400 text-lg text-center" }, " 点击或拖拽上传图片 ")
|
12433
12432
|
], -1))
|
12434
12433
|
], !0)
|
12435
|
-
])) :
|
12434
|
+
])) : j("", !0),
|
12436
12435
|
b("input", {
|
12437
12436
|
type: "file",
|
12438
12437
|
ref: "inputRef",
|
@@ -12446,13 +12445,13 @@ function zC(A, e, t, r, n, s) {
|
|
12446
12445
|
key: a.uid,
|
12447
12446
|
class: "file-item flex items-center justify-between p-2 border rounded mb-2"
|
12448
12447
|
}, [
|
12449
|
-
b("div",
|
12448
|
+
b("div", jC, [
|
12450
12449
|
a.thumbUrl ? (G(), Y("img", {
|
12451
12450
|
key: 0,
|
12452
12451
|
src: a.thumbUrl,
|
12453
12452
|
alt: "preview",
|
12454
12453
|
class: "w-12 h-12 object-cover rounded"
|
12455
|
-
}, null, 8,
|
12454
|
+
}, null, 8, $C)) : j("", !0),
|
12456
12455
|
b("span", null, VA(a.name), 1)
|
12457
12456
|
]),
|
12458
12457
|
b("div", null, [
|
@@ -12462,7 +12461,7 @@ function zC(A, e, t, r, n, s) {
|
|
12462
12461
|
}, " 删除 ", 8, ZC)
|
12463
12462
|
])
|
12464
12463
|
]))), 128))
|
12465
|
-
])) :
|
12464
|
+
])) : j("", !0)
|
12466
12465
|
]);
|
12467
12466
|
}
|
12468
12467
|
const Am = /* @__PURE__ */ at(XC, [["render", zC], ["__scopeId", "data-v-08babff9"]]);
|
@@ -12852,7 +12851,7 @@ var mm = "KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF
|
|
12852
12851
|
return { done: !0, value: null };
|
12853
12852
|
}
|
12854
12853
|
};
|
12855
|
-
}, Om = 1, Rm = 2, Yr = 4, Vu = 8, Vn = 10, Yu = 47, Qr = 92, Mm = 9, Pm = 32, cn = 34, ir = 61, km = 35, Km = 36, Gm = 37, ln = 39, fn = 40, ur = 41, Vm = 95, Ae = 45, Ym = 33, Xm = 60, Wm = 62, Jm = 64, qm = 91,
|
12854
|
+
}, Om = 1, Rm = 2, Yr = 4, Vu = 8, Vn = 10, Yu = 47, Qr = 92, Mm = 9, Pm = 32, cn = 34, ir = 61, km = 35, Km = 36, Gm = 37, ln = 39, fn = 40, ur = 41, Vm = 95, Ae = 45, Ym = 33, Xm = 60, Wm = 62, Jm = 64, qm = 91, jm = 93, $m = 61, Zm = 123, hn = 63, zm = 125, Xu = 124, A1 = 126, e1 = 128, Wu = 65533, Ks = 42, Bt = 43, t1 = 44, r1 = 58, n1 = 59, Mr = 46, s1 = 0, a1 = 8, i1 = 11, u1 = 14, o1 = 31, c1 = 127, Te = -1, wl = 48, Tl = 97, bl = 101, l1 = 102, f1 = 117, h1 = 122, Ul = 65, Ql = 69, Fl = 70, d1 = 85, B1 = 90, GA = function(A) {
|
12856
12855
|
return A >= wl && A <= 57;
|
12857
12856
|
}, g1 = function(A) {
|
12858
12857
|
return A >= 55296 && A <= 57343;
|
@@ -13048,9 +13047,9 @@ var mm = "KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF
|
|
13048
13047
|
if (Ye(e, this.peekCodePoint(0)))
|
13049
13048
|
return this.reconsumeCodePoint(e), this.consumeIdentLikeToken();
|
13050
13049
|
break;
|
13051
|
-
case $m:
|
13052
|
-
return P1;
|
13053
13050
|
case jm:
|
13051
|
+
return P1;
|
13052
|
+
case $m:
|
13054
13053
|
if (this.peekCodePoint(0) === ir)
|
13055
13054
|
return this.consumeCodePoint(), I1;
|
13056
13055
|
break;
|
@@ -13445,7 +13444,7 @@ var mm = "KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF
|
|
13445
13444
|
return e === 3 ? A.number / 100 * t : Math.round(A.number / 100 * t);
|
13446
13445
|
}
|
13447
13446
|
return 0;
|
13448
|
-
},
|
13447
|
+
}, ju = function(A, e) {
|
13449
13448
|
var t = e.filter(Yt);
|
13450
13449
|
if (t.length === 3) {
|
13451
13450
|
var r = t.map(qu), n = r[0], s = r[1], a = r[2];
|
@@ -13460,17 +13459,17 @@ var mm = "KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF
|
|
13460
13459
|
function Vs(A, e, t) {
|
13461
13460
|
return t < 0 && (t += 1), t >= 1 && (t -= 1), t < 1 / 6 ? (e - A) * t * 6 + A : t < 1 / 2 ? e : t < 2 / 3 ? (e - A) * 6 * (2 / 3 - t) + A : A;
|
13462
13461
|
}
|
13463
|
-
var
|
13462
|
+
var $u = function(A, e) {
|
13464
13463
|
var t = e.filter(Yt), r = t[0], n = t[1], s = t[2], a = t[3], u = (r.type === 17 ? he(r.number) : gs.parse(A, r)) / (Math.PI * 2), o = IA(n) ? n.number / 100 : 0, c = IA(s) ? s.number / 100 : 0, l = typeof a < "u" && IA(a) ? EA(a, 1) : 1;
|
13465
13464
|
if (o === 0)
|
13466
13465
|
return At(c * 255, c * 255, c * 255, 1);
|
13467
13466
|
var f = c <= 0.5 ? c * (o + 1) : c + o - c * o, h = c * 2 - f, C = Vs(h, f, u + 1 / 3), p = Vs(h, f, u), w = Vs(h, f, u - 1 / 3);
|
13468
13467
|
return At(C * 255, p * 255, w * 255, l);
|
13469
13468
|
}, V1 = {
|
13470
|
-
hsl:
|
13471
|
-
hsla:
|
13472
|
-
rgb:
|
13473
|
-
rgba:
|
13469
|
+
hsl: $u,
|
13470
|
+
hsla: $u,
|
13471
|
+
rgb: ju,
|
13472
|
+
rgba: ju
|
13474
13473
|
}, Fr = function(A, e) {
|
13475
13474
|
return et.parse(A, vl.create(e).parseComponentValue());
|
13476
13475
|
}, De = {
|
@@ -13726,7 +13725,7 @@ var ju = function(A, e) {
|
|
13726
13725
|
break;
|
13727
13726
|
}
|
13728
13727
|
return Array.isArray(A.size) && (s = EA(A.size[0], r), a = A.size.length === 2 ? EA(A.size[1], n) : s), [s, a];
|
13729
|
-
},
|
13728
|
+
}, j1 = function(A, e) {
|
13730
13729
|
var t = he(180), r = [];
|
13731
13730
|
return _e(e).forEach(function(n, s) {
|
13732
13731
|
if (s === 0) {
|
@@ -13768,7 +13767,7 @@ var ju = function(A, e) {
|
|
13768
13767
|
type: 1
|
13769
13768
|
/* LINEAR_GRADIENT */
|
13770
13769
|
};
|
13771
|
-
},
|
13770
|
+
}, $1 = function(A, e) {
|
13772
13771
|
var t = he(180), r = [], n = 1, s = 0, a = 3, u = [];
|
13773
13772
|
return _e(e).forEach(function(o, c) {
|
13774
13773
|
var l = o[0];
|
@@ -13940,7 +13939,7 @@ function ew(A) {
|
|
13940
13939
|
return !(A.type === 20 && A.value === "none") && (A.type !== 18 || !!Yl[A.name]);
|
13941
13940
|
}
|
13942
13941
|
var Yl = {
|
13943
|
-
"linear-gradient":
|
13942
|
+
"linear-gradient": j1,
|
13944
13943
|
"-moz-linear-gradient": En,
|
13945
13944
|
"-ms-linear-gradient": En,
|
13946
13945
|
"-o-linear-gradient": En,
|
@@ -13950,7 +13949,7 @@ var Yl = {
|
|
13950
13949
|
"-ms-radial-gradient": pn,
|
13951
13950
|
"-o-radial-gradient": pn,
|
13952
13951
|
"-webkit-radial-gradient": pn,
|
13953
|
-
"-webkit-gradient":
|
13952
|
+
"-webkit-gradient": $1
|
13954
13953
|
}, tw = {
|
13955
13954
|
name: "background-image",
|
13956
13955
|
initialValue: "none",
|
@@ -14512,14 +14511,14 @@ var Sw = {
|
|
14512
14511
|
}
|
14513
14512
|
return null;
|
14514
14513
|
}
|
14515
|
-
},
|
14514
|
+
}, jw = function(A) {
|
14516
14515
|
var e = A.filter(function(t) {
|
14517
14516
|
return t.type === 17;
|
14518
14517
|
}).map(function(t) {
|
14519
14518
|
return t.number;
|
14520
14519
|
});
|
14521
14520
|
return e.length === 6 ? e : null;
|
14522
|
-
},
|
14521
|
+
}, $w = function(A) {
|
14523
14522
|
var e = A.filter(function(o) {
|
14524
14523
|
return o.type === 17;
|
14525
14524
|
}).map(function(o) {
|
@@ -14531,8 +14530,8 @@ var Sw = {
|
|
14531
14530
|
var a = e[12], u = e[13];
|
14532
14531
|
return e[14], e[15], e.length === 16 ? [t, r, n, s, a, u] : null;
|
14533
14532
|
}, Zw = {
|
14534
|
-
matrix:
|
14535
|
-
matrix3d:
|
14533
|
+
matrix: jw,
|
14534
|
+
matrix3d: $w
|
14536
14535
|
}, eo = {
|
14537
14536
|
type: 16,
|
14538
14537
|
number: 50,
|
@@ -15057,7 +15056,7 @@ var FT = function(A) {
|
|
15057
15056
|
), ao = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", KT = typeof Uint8Array > "u" ? [] : new Uint8Array(256);
|
15058
15057
|
for (var mn = 0; mn < ao.length; mn++)
|
15059
15058
|
KT[ao.charCodeAt(mn)] = mn;
|
15060
|
-
var GT = 1, Ws = 2, Js = 3, io = 4, uo = 5, VT = 7, oo = 8, qs = 9,
|
15059
|
+
var GT = 1, Ws = 2, Js = 3, io = 4, uo = 5, VT = 7, oo = 8, qs = 9, js = 10, co = 11, lo = 12, fo = 13, ho = 14, $s = 15, YT = function(A) {
|
15061
15060
|
for (var e = [], t = 0, r = A.length; t < r; ) {
|
15062
15061
|
var n = A.charCodeAt(t++);
|
15063
15062
|
if (n >= 55296 && n <= 56319 && t < r) {
|
@@ -15088,7 +15087,7 @@ var GT = 1, Ws = 2, Js = 3, io = 4, uo = 5, VT = 7, oo = 8, qs = 9, $s = 10, co
|
|
15088
15087
|
return oe;
|
15089
15088
|
if (s === Ws || s === Js || s === io || a === Ws || a === Js || a === io)
|
15090
15089
|
return Zs;
|
15091
|
-
if (s === oo && [oo, qs, co, lo].indexOf(a) !== -1 || (s === co || s === qs) && (a === qs || a ===
|
15090
|
+
if (s === oo && [oo, qs, co, lo].indexOf(a) !== -1 || (s === co || s === qs) && (a === qs || a === js) || (s === lo || s === js) && a === js || a === fo || a === uo || a === VT || s === GT)
|
15092
15091
|
return oe;
|
15093
15092
|
if (s === fo && a === ho) {
|
15094
15093
|
for (; n === uo; )
|
@@ -15096,14 +15095,14 @@ var GT = 1, Ws = 2, Js = 3, io = 4, uo = 5, VT = 7, oo = 8, qs = 9, $s = 10, co
|
|
15096
15095
|
if (n === ho)
|
15097
15096
|
return oe;
|
15098
15097
|
}
|
15099
|
-
if (s ===
|
15100
|
-
for (var u = 0; n ===
|
15098
|
+
if (s === $s && a === $s) {
|
15099
|
+
for (var u = 0; n === $s; )
|
15101
15100
|
u++, n = e[--r];
|
15102
15101
|
if (u % 2 === 0)
|
15103
15102
|
return oe;
|
15104
15103
|
}
|
15105
15104
|
return Zs;
|
15106
|
-
},
|
15105
|
+
}, jT = function(A) {
|
15107
15106
|
var e = YT(A), t = e.length, r = 0, n = 0, s = e.map(JT);
|
15108
15107
|
return {
|
15109
15108
|
next: function() {
|
@@ -15118,8 +15117,8 @@ var GT = 1, Ws = 2, Js = 3, io = 4, uo = 5, VT = 7, oo = 8, qs = 9, $s = 10, co
|
|
15118
15117
|
return { done: !0, value: null };
|
15119
15118
|
}
|
15120
15119
|
};
|
15121
|
-
},
|
15122
|
-
for (var e =
|
15120
|
+
}, $T = function(A) {
|
15121
|
+
for (var e = jT(A), t = [], r; !(r = e.next()).done; )
|
15123
15122
|
r.value && t.push(r.value.slice());
|
15124
15123
|
return t;
|
15125
15124
|
}, ZT = function(A) {
|
@@ -15285,7 +15284,7 @@ var GT = 1, Ws = 2, Js = 3, io = 4, uo = 5, VT = 7, oo = 8, qs = 9, $s = 10, co
|
|
15285
15284
|
return t.segment;
|
15286
15285
|
});
|
15287
15286
|
}
|
15288
|
-
return
|
15287
|
+
return $T(A);
|
15289
15288
|
}, ab = function(A, e) {
|
15290
15289
|
if (PA.SUPPORT_NATIVE_TEXT_SEGMENTATION) {
|
15291
15290
|
var t = new Intl.Segmenter(void 0, {
|
@@ -15353,7 +15352,7 @@ var GT = 1, Ws = 2, Js = 3, io = 4, uo = 5, VT = 7, oo = 8, qs = 9, $s = 10, co
|
|
15353
15352
|
}
|
15354
15353
|
return e;
|
15355
15354
|
}(ye)
|
15356
|
-
),
|
15355
|
+
), jl = (
|
15357
15356
|
/** @class */
|
15358
15357
|
function(A) {
|
15359
15358
|
me(e, A);
|
@@ -15363,7 +15362,7 @@ var GT = 1, Ws = 2, Js = 3, io = 4, uo = 5, VT = 7, oo = 8, qs = 9, $s = 10, co
|
|
15363
15362
|
}
|
15364
15363
|
return e;
|
15365
15364
|
}(ye)
|
15366
|
-
),
|
15365
|
+
), $l = (
|
15367
15366
|
/** @class */
|
15368
15367
|
function(A) {
|
15369
15368
|
me(e, A);
|
@@ -15475,10 +15474,10 @@ var GT = 1, Ws = 2, Js = 3, io = 4, uo = 5, VT = 7, oo = 8, qs = 9, $s = 10, co
|
|
15475
15474
|
});
|
15476
15475
|
else {
|
15477
15476
|
var a = e0(A, n);
|
15478
|
-
a.styles.isVisible() && (mb(n, a, r) ? a.flags |= 4 : wb(a.styles) && (a.flags |= 2), Cb.indexOf(n.tagName) !== -1 && (a.flags |= 8), t.elements.push(a), n.slot, n.shadowRoot ? _n(A, n.shadowRoot, a, r) : !qn(n) && !n0(n) &&
|
15477
|
+
a.styles.isVisible() && (mb(n, a, r) ? a.flags |= 4 : wb(a.styles) && (a.flags |= 2), Cb.indexOf(n.tagName) !== -1 && (a.flags |= 8), t.elements.push(a), n.slot, n.shadowRoot ? _n(A, n.shadowRoot, a, r) : !qn(n) && !n0(n) && !jn(n) && _n(A, n, a, r));
|
15479
15478
|
}
|
15480
15479
|
}, e0 = function(A, e) {
|
15481
|
-
return Ja(e) ? new Jl(A, e) : s0(e) ? new ql(A, e) : n0(e) ? new
|
15480
|
+
return Ja(e) ? new Jl(A, e) : s0(e) ? new ql(A, e) : n0(e) ? new jl(A, e) : Tb(e) ? new $l(A, e) : bb(e) ? new Xa(A, e) : Ub(e) ? new Li(A, e) : jn(e) ? new Zl(A, e) : qn(e) ? new zl(A, e) : a0(e) ? new A0(A, e) : new ye(A, e);
|
15482
15481
|
}, t0 = function(A, e) {
|
15483
15482
|
var t = e0(A, e);
|
15484
15483
|
return t.flags |= 4, _n(A, e, t, t), t;
|
@@ -15520,7 +15519,7 @@ var GT = 1, Ws = 2, Js = 3, io = 4, uo = 5, VT = 7, oo = 8, qs = 9, $s = 10, co
|
|
15520
15519
|
return A.tagName === "SCRIPT";
|
15521
15520
|
}, qn = function(A) {
|
15522
15521
|
return A.tagName === "TEXTAREA";
|
15523
|
-
},
|
15522
|
+
}, jn = function(A) {
|
15524
15523
|
return A.tagName === "SELECT";
|
15525
15524
|
}, i0 = function(A) {
|
15526
15525
|
return A.tagName === "SLOT";
|
@@ -16063,7 +16062,7 @@ var GT = 1, Ws = 2, Js = 3, io = 4, uo = 5, VT = 7, oo = 8, qs = 9, $s = 10, co
|
|
16063
16062
|
var o = this.counters.parse(new ro(this.context, s)), c = this.resolvePseudoContent(e, n, a, _r.BEFORE);
|
16064
16063
|
wo(e) && (t = !0), Co(e) || this.cloneChildNodes(e, n, t), c && n.insertBefore(c, n.firstChild);
|
16065
16064
|
var l = this.resolvePseudoContent(e, n, u, _r.AFTER);
|
16066
|
-
return l && n.appendChild(l), this.counters.pop(o), (s && (this.options.copyStyles || yn(e)) && !a0(e) || t) && Aa(s, n), (e.scrollTop !== 0 || e.scrollLeft !== 0) && this.scrolledElements.push([n, e.scrollLeft, e.scrollTop]), (qn(e) ||
|
16065
|
+
return l && n.appendChild(l), this.counters.pop(o), (s && (this.options.copyStyles || yn(e)) && !a0(e) || t) && Aa(s, n), (e.scrollTop !== 0 || e.scrollLeft !== 0) && this.scrolledElements.push([n, e.scrollLeft, e.scrollTop]), (qn(e) || jn(e)) && (qn(n) || jn(n)) && (n.value = e.value), n;
|
16067
16066
|
}
|
16068
16067
|
return e.cloneNode(!1);
|
16069
16068
|
}, A.prototype.resolvePseudoContent = function(e, t, r, n) {
|
@@ -16109,8 +16108,8 @@ var GT = 1, Ws = 2, Js = 3, io = 4, uo = 5, VT = 7, oo = 8, qs = 9, $s = 10, co
|
|
16109
16108
|
default:
|
16110
16109
|
c.appendChild(u.createTextNode(f.value));
|
16111
16110
|
}
|
16112
|
-
}), c.className = qa + " " +
|
16113
|
-
var l = n === _r.BEFORE ? " " + qa : " " +
|
16111
|
+
}), c.className = qa + " " + ja;
|
16112
|
+
var l = n === _r.BEFORE ? " " + qa : " " + ja;
|
16114
16113
|
return yn(t) ? t.className.baseValue += l : t.className += l, c;
|
16115
16114
|
}
|
16116
16115
|
}
|
@@ -16171,12 +16170,12 @@ var yb = function(A, e) {
|
|
16171
16170
|
}, Ob = function(A) {
|
16172
16171
|
var e = A[0], t = A[1], r = A[2];
|
16173
16172
|
e.scrollLeft = t, e.scrollTop = r;
|
16174
|
-
}, Rb = ":before", Mb = ":after", qa = "___html2canvas___pseudoelement_before",
|
16173
|
+
}, Rb = ":before", Mb = ":after", qa = "___html2canvas___pseudoelement_before", ja = "___html2canvas___pseudoelement_after", vo = `{
|
16175
16174
|
content: "" !important;
|
16176
16175
|
display: none !important;
|
16177
16176
|
}`, Pb = function(A) {
|
16178
16177
|
kb(A, "." + qa + Rb + vo + `
|
16179
|
-
.` +
|
16178
|
+
.` + ja + Mb + vo);
|
16180
16179
|
}, kb = function(A, e) {
|
16181
16180
|
var t = A.ownerDocument;
|
16182
16181
|
if (t) {
|
@@ -16343,9 +16342,9 @@ var pA = function(A, e, t, r, n) {
|
|
16343
16342
|
default:
|
16344
16343
|
return new wn(new R(o, c), new R(o - a, c), new R(A, e + u), new R(A, e));
|
16345
16344
|
}
|
16346
|
-
},
|
16345
|
+
}, $n = function(A) {
|
16347
16346
|
return [A.topLeftBorderBox, A.topRightBorderBox, A.bottomRightBorderBox, A.bottomLeftBorderBox];
|
16348
|
-
},
|
16347
|
+
}, jb = function(A) {
|
16349
16348
|
return [
|
16350
16349
|
A.topLeftContentBox,
|
16351
16350
|
A.topRightContentBox,
|
@@ -16359,7 +16358,7 @@ var pA = function(A, e, t, r, n) {
|
|
16359
16358
|
A.bottomRightPaddingBox,
|
16360
16359
|
A.bottomLeftPaddingBox
|
16361
16360
|
];
|
16362
|
-
},
|
16361
|
+
}, $b = (
|
16363
16362
|
/** @class */
|
16364
16363
|
/* @__PURE__ */ function() {
|
16365
16364
|
function A(e, t, r) {
|
@@ -16421,10 +16420,10 @@ var pA = function(A, e, t, r, n) {
|
|
16421
16420
|
function A(e, t) {
|
16422
16421
|
if (this.container = e, this.parent = t, this.effects = [], this.curves = new qb(this.container), this.container.styles.opacity < 1 && this.effects.push(new Zb(this.container.styles.opacity)), this.container.styles.transform !== null) {
|
16423
16422
|
var r = this.container.bounds.left + this.container.styles.transformOrigin[0].number, n = this.container.bounds.top + this.container.styles.transformOrigin[1].number, s = this.container.styles.transform;
|
16424
|
-
this.effects.push(new
|
16423
|
+
this.effects.push(new $b(r, n, s));
|
16425
16424
|
}
|
16426
16425
|
if (this.container.styles.overflowX !== 0) {
|
16427
|
-
var a =
|
16426
|
+
var a = $n(this.curves), u = Zn(this.curves);
|
16428
16427
|
_o(a, u) ? this.effects.push(new Tn(
|
16429
16428
|
a,
|
16430
16429
|
6
|
@@ -16455,7 +16454,7 @@ var pA = function(A, e, t, r, n) {
|
|
16455
16454
|
3
|
16456
16455
|
/* FIXED */
|
16457
16456
|
].indexOf(r.container.styles.position) === -1, r.container.styles.overflowX !== 0) {
|
16458
|
-
var a =
|
16457
|
+
var a = $n(r.curves), u = Zn(r.curves);
|
16459
16458
|
_o(a, u) || n.unshift(new Tn(
|
16460
16459
|
u,
|
16461
16460
|
6
|
@@ -16471,7 +16470,7 @@ var pA = function(A, e, t, r, n) {
|
|
16471
16470
|
});
|
16472
16471
|
}, A;
|
16473
16472
|
}()
|
16474
|
-
),
|
16473
|
+
), $a = function(A, e, t, r) {
|
16475
16474
|
A.container.elements.forEach(function(n) {
|
16476
16475
|
var s = SA(
|
16477
16476
|
n.flags,
|
@@ -16510,9 +16509,9 @@ var pA = function(A, e, t, r, n) {
|
|
16510
16509
|
c.zeroOrAutoZIndexOrTransformedOrOpacity.push(l);
|
16511
16510
|
} else
|
16512
16511
|
n.styles.isFloating() ? c.nonPositionedFloats.push(l) : c.nonPositionedInlineLevel.push(l);
|
16513
|
-
|
16512
|
+
$a(u, l, s ? l : t, o);
|
16514
16513
|
} else
|
16515
|
-
n.styles.isInlineLevel() ? e.inlineLevel.push(u) : e.nonInlineLevel.push(u),
|
16514
|
+
n.styles.isInlineLevel() ? e.inlineLevel.push(u) : e.nonInlineLevel.push(u), $a(u, e, t, o);
|
16516
16515
|
SA(
|
16517
16516
|
n.flags,
|
16518
16517
|
8
|
@@ -16522,11 +16521,11 @@ var pA = function(A, e, t, r, n) {
|
|
16522
16521
|
}, d0 = function(A, e) {
|
16523
16522
|
for (var t = A instanceof Xa ? A.start : 1, r = A instanceof Xa ? A.reversed : !1, n = 0; n < e.length; n++) {
|
16524
16523
|
var s = e[n];
|
16525
|
-
s.container instanceof
|
16524
|
+
s.container instanceof $l && typeof s.container.value == "number" && s.container.value !== 0 && (t = s.container.value), s.listValue = Pr(t, s.container.styles.listStyleType, !0), t += r ? -1 : 1;
|
16526
16525
|
}
|
16527
16526
|
}, tU = function(A) {
|
16528
16527
|
var e = new h0(A, null), t = new f0(e), r = [];
|
16529
|
-
return
|
16528
|
+
return $a(e, t, t, r), d0(e.container, r), t;
|
16530
16529
|
}, yo = function(A, e) {
|
16531
16530
|
switch (e) {
|
16532
16531
|
case 0:
|
@@ -16840,7 +16839,7 @@ var pA = function(A, e, t, r, n) {
|
|
16840
16839
|
case 7:
|
16841
16840
|
return E.sent(), this.context.logger.error("Error loading image " + r.src), [3, 8];
|
16842
16841
|
case 8:
|
16843
|
-
if (r instanceof ql && this.renderReplacedElement(r, n, r.canvas), !(r instanceof
|
16842
|
+
if (r instanceof ql && this.renderReplacedElement(r, n, r.canvas), !(r instanceof jl)) return [3, 12];
|
16844
16843
|
E.label = 9;
|
16845
16844
|
case 9:
|
16846
16845
|
return E.trys.push([9, 11, , 12]), [4, this.context.cache.match(r.svg)];
|
@@ -17016,7 +17015,7 @@ var pA = function(A, e, t, r, n) {
|
|
17016
17015
|
switch (c.label) {
|
17017
17016
|
case 0:
|
17018
17017
|
r = t.styles.backgroundImage.length - 1, n = function(l) {
|
17019
|
-
var f, h, C, sA, dA, TA, AA, aA, K, p, sA, dA, TA, AA, aA, w, I, v, Q, N, k, L, E, x, K, M, sA, BA, gA, AA, aA, cA, dA, TA, XA, LA, H, D,
|
17018
|
+
var f, h, C, sA, dA, TA, AA, aA, K, p, sA, dA, TA, AA, aA, w, I, v, Q, N, k, L, E, x, K, M, sA, BA, gA, AA, aA, cA, dA, TA, XA, LA, H, D, $, J, bA, _A;
|
17020
17019
|
return KA(this, function(ie) {
|
17021
17020
|
switch (ie.label) {
|
17022
17021
|
case 0:
|
@@ -17043,7 +17042,7 @@ var pA = function(A, e, t, r, n) {
|
|
17043
17042
|
null
|
17044
17043
|
]), sA = M[0], BA = M[1], gA = M[2], AA = M[3], aA = M[4], cA = l.position.length === 0 ? [vi] : l.position, dA = EA(cA[0], AA), TA = EA(cA[cA.length - 1], aA), XA = q1(l, dA, TA, AA, aA), LA = XA[0], H = XA[1], LA > 0 && H > 0 && (D = s.ctx.createRadialGradient(BA + dA, gA + TA, 0, BA + dA, gA + TA, LA), Zu(l.stops, LA * 2).forEach(function(re) {
|
17045
17044
|
return D.addColorStop(re.stop, xA(re.color));
|
17046
|
-
}), s.path(sA), s.ctx.fillStyle = D, LA !== H ? (
|
17045
|
+
}), s.path(sA), s.ctx.fillStyle = D, LA !== H ? ($ = t.bounds.left + 0.5 * t.bounds.width, J = t.bounds.top + 0.5 * t.bounds.height, bA = H / LA, _A = 1 / bA, s.ctx.save(), s.ctx.translate($, J), s.ctx.transform(1, 0, 0, bA, 0, 0), s.ctx.translate(-$, -J), s.ctx.fillRect(BA, _A * (gA - J) + J, AA, aA * _A), s.ctx.restore()) : s.ctx.fill())), ie.label = 6;
|
17047
17046
|
case 6:
|
17048
17047
|
return r--, [
|
17049
17048
|
2
|
@@ -17113,7 +17112,7 @@ var pA = function(A, e, t, r, n) {
|
|
17113
17112
|
case 1:
|
17114
17113
|
h.sent(), this.ctx.restore(), r.boxShadow.slice(0).reverse().forEach(function(C) {
|
17115
17114
|
f.ctx.save();
|
17116
|
-
var p =
|
17115
|
+
var p = $n(t.curves), w = C.inset ? 0 : fU, I = eU(p, -w + (C.inset ? 1 : -1) * C.spread.number, (C.inset ? 1 : -1) * C.spread.number, C.spread.number * (C.inset ? -2 : 2), C.spread.number * (C.inset ? -2 : 2));
|
17117
17116
|
C.inset ? (f.path(p), f.ctx.clip(), f.mask(I)) : (f.mask(p), f.ctx.clip(), f.path(I)), f.ctx.shadowOffsetX = C.offsetX.number + w, f.ctx.shadowOffsetY = C.offsetY.number, f.ctx.shadowColor = xA(C.color), f.ctx.shadowBlur = C.blur.number, f.ctx.fillStyle = C.inset ? xA(C.color) : "rgba(0,0,0,1)", f.ctx.fill(), f.ctx.restore();
|
17118
17117
|
}), h.label = 2;
|
17119
17118
|
case 2:
|
@@ -17189,9 +17188,9 @@ var pA = function(A, e, t, r, n) {
|
|
17189
17188
|
}, BU = function(A, e) {
|
17190
17189
|
switch (A) {
|
17191
17190
|
case 0:
|
17192
|
-
return
|
17191
|
+
return $n(e);
|
17193
17192
|
case 2:
|
17194
|
-
return
|
17193
|
+
return jb(e);
|
17195
17194
|
case 1:
|
17196
17195
|
default:
|
17197
17196
|
return Zn(e);
|
@@ -17281,7 +17280,7 @@ var pA = function(A, e, t, r, n) {
|
|
17281
17280
|
typeof window < "u" && c0.setContext(window);
|
17282
17281
|
var UU = function(A, e) {
|
17283
17282
|
return JA(void 0, void 0, void 0, function() {
|
17284
|
-
var t, r, n, s, a, u, o, c, l, f, h, C, p, w, I, v, Q, N, k, L, x, E, x, K, M, sA, BA, gA, AA, aA, cA, dA, TA, XA, LA, H, D,
|
17283
|
+
var t, r, n, s, a, u, o, c, l, f, h, C, p, w, I, v, Q, N, k, L, x, E, x, K, M, sA, BA, gA, AA, aA, cA, dA, TA, XA, LA, H, D, $, J, bA;
|
17285
17284
|
return KA(this, function(_A) {
|
17286
17285
|
switch (_A.label) {
|
17287
17286
|
case 0:
|
@@ -17315,7 +17314,7 @@ var UU = function(A, e) {
|
|
17315
17314
|
scale: (LA = (XA = e.scale) !== null && XA !== void 0 ? XA : r.devicePixelRatio) !== null && LA !== void 0 ? LA : 1,
|
17316
17315
|
x: ((H = e.x) !== null && H !== void 0 ? H : 0) + v,
|
17317
17316
|
y: ((D = e.y) !== null && D !== void 0 ? D : 0) + Q,
|
17318
|
-
width: (
|
17317
|
+
width: ($ = e.width) !== null && $ !== void 0 ? $ : Math.ceil(w),
|
17319
17318
|
height: (J = e.height) !== null && J !== void 0 ? J : Math.ceil(I)
|
17320
17319
|
}, c ? (o.logger.debug("Document cloned, using foreign object rendering"), x = new CU(o, k), [4, x.render(h)]) : [3, 3];
|
17321
17320
|
case 2:
|
@@ -17359,24 +17358,30 @@ const FU = ve({
|
|
17359
17358
|
},
|
17360
17359
|
setup(A) {
|
17361
17360
|
const e = z(null), t = z(), r = () => {
|
17362
|
-
var
|
17361
|
+
var C;
|
17363
17362
|
const s = e.value;
|
17364
17363
|
if (!s) return;
|
17365
|
-
const a = s.contentDocument || ((
|
17364
|
+
const a = s.contentDocument || ((C = s.contentWindow) == null ? void 0 : C.document);
|
17366
17365
|
if (!a) return;
|
17367
17366
|
a.open(), a.write("<!DOCTYPE html><html><head></head><body></body></html>"), a.close();
|
17368
17367
|
const u = a.head;
|
17369
|
-
A.cssFiles.forEach((
|
17370
|
-
const
|
17371
|
-
|
17368
|
+
A.cssFiles.forEach((p) => {
|
17369
|
+
const w = a.createElement("link");
|
17370
|
+
w.rel = "stylesheet", w.href = p, u.appendChild(w);
|
17372
17371
|
});
|
17373
17372
|
const o = a.createElement("link");
|
17374
17373
|
o.rel = "stylesheet", o.href = "/src/style.css", u.appendChild(o);
|
17375
|
-
const c = a.
|
17376
|
-
c.
|
17377
|
-
|
17378
|
-
|
17379
|
-
|
17374
|
+
const c = a.createElement("script");
|
17375
|
+
c.src = "/spa/topic/js/jquery-3.6.0.min.js", c.async = !1, u.appendChild(c);
|
17376
|
+
const l = a.createElement("script");
|
17377
|
+
l.src = "/spa/topic/js/swiper-bundle.min.js", l.async = !1, u.appendChild(l);
|
17378
|
+
const f = a.createElement("script");
|
17379
|
+
f.src = "/spa/topic/js/index.js", f.async = !1, u.appendChild(f);
|
17380
|
+
const h = a.body;
|
17381
|
+
h.innerHTML = A.htmlContent, A.jsFiles.forEach((p) => {
|
17382
|
+
const w = a.createElement("script");
|
17383
|
+
w.src = p, w.async = !1, h.appendChild(w);
|
17384
|
+
}), t.value = h, Oi(() => {
|
17380
17385
|
});
|
17381
17386
|
};
|
17382
17387
|
ee(t, (s) => {
|
@@ -17440,7 +17445,7 @@ function IU(A, e, t, r, n, s) {
|
|
17440
17445
|
}, null, 4)
|
17441
17446
|
]);
|
17442
17447
|
}
|
17443
|
-
const Lo = /* @__PURE__ */ at(FU, [["render", IU], ["__scopeId", "data-v-
|
17448
|
+
const Lo = /* @__PURE__ */ at(FU, [["render", IU], ["__scopeId", "data-v-27037f5b"]]), vU = { class: "flex gp-dsigner" }, _U = {
|
17444
17449
|
key: 0,
|
17445
17450
|
class: "flex items-center justify-between border-b"
|
17446
17451
|
}, yU = { class: "text-lg font-bold p-2" }, SU = { class: "text-sm font-thin text-gray-500" }, LU = { class: "flex-1 overflow-auto" }, HU = {
|
@@ -17755,15 +17760,15 @@ const Lo = /* @__PURE__ */ at(FU, [["render", IU], ["__scopeId", "data-v-ab380cb
|
|
17755
17760
|
V.success && (S.attrs.src = V.file.url, l.value = (/* @__PURE__ */ new Date()).getTime().toString());
|
17756
17761
|
}) : (S.attrs.src = O.thumbUrl, l.value = (/* @__PURE__ */ new Date()).getTime().toString()));
|
17757
17762
|
}
|
17758
|
-
const
|
17763
|
+
const $ = z(r.previewWidth), J = z(360);
|
17759
17764
|
let bA = z(!1), _A = z(""), ie = 0, re = 0;
|
17760
|
-
function
|
17761
|
-
_A.value = F, bA.value = !0, ie = event.clientX, F === "preview" ? re =
|
17765
|
+
function jt(F) {
|
17766
|
+
_A.value = F, bA.value = !0, ie = event.clientX, F === "preview" ? re = $.value : F === "structure" && (re = J.value), window.addEventListener("mousemove", Wr), window.addEventListener("mouseup", Jr);
|
17762
17767
|
}
|
17763
17768
|
function Wr(F) {
|
17764
17769
|
if (!bA.value) return;
|
17765
17770
|
const S = F.clientX - ie;
|
17766
|
-
_A.value === "preview" ?
|
17771
|
+
_A.value === "preview" ? $.value = Math.max(200, re + S) : _A.value === "structure" && (J.value = Math.max(200, re - S));
|
17767
17772
|
}
|
17768
17773
|
function Jr() {
|
17769
17774
|
bA.value = !1, _A.value = "", window.removeEventListener("mousemove", Wr), window.removeEventListener("mouseup", Jr);
|
@@ -17774,18 +17779,18 @@ const Lo = /* @__PURE__ */ at(FU, [["render", IU], ["__scopeId", "data-v-ab380cb
|
|
17774
17779
|
F.preview ? (G(), Y("div", {
|
17775
17780
|
key: 0,
|
17776
17781
|
class: "border-l overflow-auto resize-area",
|
17777
|
-
style: sa({ width:
|
17782
|
+
style: sa({ width: $.value + "px" })
|
17778
17783
|
}, [
|
17779
17784
|
F.showTitle ? (G(), Y("div", _U, [
|
17780
17785
|
b("h2", yU, [
|
17781
17786
|
S[4] || (S[4] = na(" 实时预览 ")),
|
17782
|
-
b("span", SU, VA(
|
17787
|
+
b("span", SU, VA($.value) + "px", 1)
|
17783
17788
|
]),
|
17784
17789
|
b("div", {
|
17785
17790
|
onClick: S[0] || (S[0] = () => N()),
|
17786
17791
|
class: "p-2 cursor-pointer text-blue-500"
|
17787
17792
|
}, " 封面 ")
|
17788
|
-
])) :
|
17793
|
+
])) : j("", !0),
|
17789
17794
|
b("div", null, [
|
17790
17795
|
o.value ? (G(), We(Lo, {
|
17791
17796
|
key: 0,
|
@@ -17805,12 +17810,12 @@ const Lo = /* @__PURE__ */ at(FU, [["render", IU], ["__scopeId", "data-v-ab380cb
|
|
17805
17810
|
ref: p
|
17806
17811
|
}, null, 8, ["css-files", "js-files", "html-content"]))
|
17807
17812
|
])
|
17808
|
-
], 4)) :
|
17813
|
+
], 4)) : j("", !0),
|
17809
17814
|
F.preview ? (G(), Y("div", {
|
17810
17815
|
key: 1,
|
17811
17816
|
class: "resizer",
|
17812
|
-
onMousedown: S[1] || (S[1] = (O) =>
|
17813
|
-
}, null, 32)) :
|
17817
|
+
onMousedown: S[1] || (S[1] = (O) => jt("preview"))
|
17818
|
+
}, null, 32)) : j("", !0),
|
17814
17819
|
b("div", LU, [
|
17815
17820
|
F.showTitle ? (G(), Y("div", HU, [
|
17816
17821
|
S[6] || (S[6] = b("h2", { class: "text-lg font-bold" }, "结构渲染", -1)),
|
@@ -17825,7 +17830,7 @@ const Lo = /* @__PURE__ */ at(FU, [["render", IU], ["__scopeId", "data-v-ab380cb
|
|
17825
17830
|
]),
|
17826
17831
|
S[5] || (S[5] = b("label", { for: "showMargin" }, "间距", -1))
|
17827
17832
|
])
|
17828
|
-
])) :
|
17833
|
+
])) : j("", !0),
|
17829
17834
|
b("div", NU, [
|
17830
17835
|
a.value ? (G(), We(kE, {
|
17831
17836
|
key: 0,
|
@@ -17847,14 +17852,14 @@ const Lo = /* @__PURE__ */ at(FU, [["render", IU], ["__scopeId", "data-v-ab380cb
|
|
17847
17852
|
onBlockAction: cA,
|
17848
17853
|
onAddIcon: dA,
|
17849
17854
|
onUpdateElementRule: M
|
17850
|
-
}, null, 8, ["upload-by-file", "cropper", "icon", "upload", "mode", "icons", "r", "show-margin", "element", "selectedElement", "hoveredElement"])) :
|
17855
|
+
}, null, 8, ["upload-by-file", "cropper", "icon", "upload", "mode", "icons", "r", "show-margin", "element", "selectedElement", "hoveredElement"])) : j("", !0)
|
17851
17856
|
])
|
17852
17857
|
]),
|
17853
17858
|
c.value == "design" ? (G(), Y("div", {
|
17854
17859
|
key: 2,
|
17855
17860
|
class: "resizer",
|
17856
|
-
onMousedown: S[3] || (S[3] = (O) =>
|
17857
|
-
}, null, 32)) :
|
17861
|
+
onMousedown: S[3] || (S[3] = (O) => jt("structure"))
|
17862
|
+
}, null, 32)) : j("", !0),
|
17858
17863
|
c.value == "design" ? (G(), Y("div", {
|
17859
17864
|
key: 3,
|
17860
17865
|
class: "resize-area",
|
@@ -17864,16 +17869,16 @@ const Lo = /* @__PURE__ */ at(FU, [["render", IU], ["__scopeId", "data-v-ab380cb
|
|
17864
17869
|
F.showTitle ? (G(), Y("h2", OU, [
|
17865
17870
|
S[7] || (S[7] = na(" 节点属性 ")),
|
17866
17871
|
b("span", RU, VA(J.value) + "px", 1)
|
17867
|
-
])) :
|
17872
|
+
])) : j("", !0),
|
17868
17873
|
b("div", MU, [
|
17869
17874
|
w.value ? (G(), We(Up, {
|
17870
17875
|
key: 0,
|
17871
17876
|
element: w.value,
|
17872
17877
|
onUpdateElement: K
|
17873
|
-
}, null, 8, ["element"])) :
|
17878
|
+
}, null, 8, ["element"])) : j("", !0)
|
17874
17879
|
])
|
17875
17880
|
])
|
17876
|
-
], 4)) :
|
17881
|
+
], 4)) : j("", !0),
|
17877
17882
|
Xe(xC, {
|
17878
17883
|
ref_key: "cropperRef",
|
17879
17884
|
ref: f,
|