@dimina-kit/devtools 0.4.0-dev.20260625063832 → 0.4.0-dev.20260630033804
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main/app/app.js +2 -0
- package/dist/main/index.bundle.js +241 -151
- package/dist/main/ipc/bridge-router.d.ts +21 -0
- package/dist/main/ipc/bridge-router.js +63 -3
- package/dist/main/services/automation/index.js +0 -1
- package/dist/main/services/elements-forward/index.js +81 -72
- package/dist/main/services/mcp/target-manager.d.ts +3 -3
- package/dist/main/services/views/miniapp-partition.d.ts +18 -8
- package/dist/main/services/views/miniapp-partition.js +34 -13
- package/dist/main/services/views/view-manager.js +76 -41
- package/dist/main/services/workbench-coi-server.d.ts +7 -0
- package/dist/main/services/workbench-coi-server.js +6 -0
- package/dist/main/services/workbench-context.d.ts +4 -2
- package/dist/main/services/workbench-context.js +1 -0
- package/dist/main/services/workspace/op-lock.d.ts +26 -0
- package/dist/main/services/workspace/op-lock.js +23 -0
- package/dist/main/services/workspace/workspace-service.d.ts +7 -0
- package/dist/main/services/workspace/workspace-service.js +197 -103
- package/dist/main/windows/service-host-window/create.d.ts +5 -1
- package/dist/main/windows/service-host-window/create.js +6 -3
- package/dist/native-host/render/render.js +485 -449
- package/dist/native-host/service/service.js +1 -1
- package/dist/renderer/assets/index-BMwmmaSp.js +46 -0
- package/dist/renderer/entries/main/index.html +1 -1
- package/dist/shared/types.d.ts +15 -0
- package/dist/vscode-workbench/assets/__vite-browser-external-B0DTNerG.js +1 -0
- package/dist/vscode-workbench/assets/__vite-browser-external-BuLjVMfN.js +1 -0
- package/dist/vscode-workbench/assets/__vite-browser-external-thkx7I19.js +1 -0
- package/dist/vscode-workbench/assets/{dist-SFZ2HNEz.js → dist-CS7SQP3K.js} +4 -4
- package/dist/vscode-workbench/assets/dist-VSgdjUlW.js +8 -0
- package/dist/vscode-workbench/assets/editor.worker-DmMg51ee.js +41 -0
- package/dist/vscode-workbench/assets/extensionHost.worker-BMpl1cpB.js +207 -0
- package/dist/vscode-workbench/assets/{iconv-lite-umd-izd5l6fa.js → iconv-lite-umd-D3q-1-o6.js} +1 -1
- package/dist/vscode-workbench/assets/{iconv-lite-umd-COfjYshr.js → iconv-lite-umd-Jn9RTrsv.js} +2 -2
- package/dist/vscode-workbench/assets/index-zjigpZ25.js +2842 -0
- package/dist/vscode-workbench/assets/{jschardet-Bf-VMK4F.js → jschardet-CjCVc2Gw.js} +1 -1
- package/dist/vscode-workbench/assets/{jschardet-Dh5TyKsQ.js → jschardet-Cu4ufeHq.js} +1 -1
- package/dist/vscode-workbench/assets/{layout.contribution.darwin-cz2ttHTW.js → layout.contribution.darwin-CoH1BZtz.js} +1 -1
- package/dist/vscode-workbench/assets/{layout.contribution.linux-fEtdzbcY.js → layout.contribution.linux-Di2FF-CG.js} +1 -1
- package/dist/vscode-workbench/assets/{layout.contribution.win-BFyOKI8c.js → layout.contribution.win-moiNStil.js} +1 -1
- package/dist/vscode-workbench/assets/{main-Bh8TI5LP.js → main-DzHL45xo.js} +4 -4
- package/dist/vscode-workbench/assets/{main2-Bds9Fhfn.js → main2-CWVd-Hyp.js} +1 -1
- package/dist/vscode-workbench/assets/{worker-D9ti6A0r.js → worker-CRTb-Arc.js} +7 -7
- package/dist/vscode-workbench/assets/{worker-DQtXDXIZ.js → worker-CVB8WPuM.js} +2 -2
- package/dist/vscode-workbench/index.html +1 -4
- package/package.json +8 -38
- package/dist/renderer/assets/index-6XUSo6Su.js +0 -46
- package/dist/vscode-workbench/assets/__vite-browser-external-BUwiolNy.js +0 -1
- package/dist/vscode-workbench/assets/__vite-browser-external-CmG9GjjO.js +0 -1
- package/dist/vscode-workbench/assets/__vite-browser-external-DGJPTKLg.js +0 -1
- package/dist/vscode-workbench/assets/_commonjsHelpers-qcUHfnrg.js +0 -1
- package/dist/vscode-workbench/assets/chunk-B3K2TuZy.js +0 -1
- package/dist/vscode-workbench/assets/chunk-DECur_0Z.js +0 -1
- package/dist/vscode-workbench/assets/dist-tesJ1Kd2.js +0 -8
- package/dist/vscode-workbench/assets/editor.worker-BC1qOyXG.js +0 -41
- package/dist/vscode-workbench/assets/extension.api-BWA2aPAU.js +0 -1
- package/dist/vscode-workbench/assets/extensionHost.worker-Dvu35anN.js +0 -207
- package/dist/vscode-workbench/assets/index-CQ5xP0pp.js +0 -1656
- package/dist/vscode-workbench/assets/localExtensionHost-Ccz7QUdA.js +0 -1188
- package/dist/vscode-workbench/assets/main-BDgdQmvs.js +0 -4
- package/dist/vscode-workbench/assets/main2-DwfDVleQ.js +0 -1
- package/dist/vscode-workbench/assets/preload-helper-xBbMyY7u.js +0 -1
- /package/dist/vscode-workbench/assets/{_.contribution-C9aS_G-o.js → _.contribution-B46wcGKQ.js} +0 -0
- /package/dist/vscode-workbench/assets/{_commonjsHelpers-BPKu-ps5.js → _commonjsHelpers-DMmVv2OA.js} +0 -0
|
@@ -364,7 +364,7 @@ var T = new class e {
|
|
|
364
364
|
}
|
|
365
365
|
}();
|
|
366
366
|
//#endregion
|
|
367
|
-
//#region ../../node_modules/.pnpm/@vue+shared@3.5.
|
|
367
|
+
//#region ../../node_modules/.pnpm/@vue+shared@3.5.39/node_modules/@vue/shared/dist/shared.esm-bundler.js
|
|
368
368
|
// @__NO_SIDE_EFFECTS__
|
|
369
369
|
function le(e) {
|
|
370
370
|
let t = /* @__PURE__ */ Object.create(null);
|
|
@@ -459,7 +459,7 @@ function ut(e) {
|
|
|
459
459
|
return e == null ? "initial" : typeof e == "string" ? e === "" ? " " : e : ((typeof e != "number" || !Number.isFinite(e)) && process.env.NODE_ENV !== "production" && console.warn("[Vue warn] Invalid value used for CSS binding. Expected a string or a finite number but received:", e), String(e));
|
|
460
460
|
}
|
|
461
461
|
//#endregion
|
|
462
|
-
//#region ../../node_modules/.pnpm/@vue+reactivity@3.5.
|
|
462
|
+
//#region ../../node_modules/.pnpm/@vue+reactivity@3.5.39/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js
|
|
463
463
|
function dt(e, ...t) {
|
|
464
464
|
console.warn(`[Vue warn] ${e}`, ...t);
|
|
465
465
|
}
|
|
@@ -945,7 +945,7 @@ var rn = class {
|
|
|
945
945
|
if (!/* @__PURE__ */ Pn(n) && !/* @__PURE__ */ Nn(n) && (i = /* @__PURE__ */ I(i), n = /* @__PURE__ */ I(n)), !a && /* @__PURE__ */ zn(i) && !/* @__PURE__ */ zn(n)) return r ? (process.env.NODE_ENV !== "production" && dt(`Set operation on key "${String(t)}" failed: target is readonly.`, e[t]), !0) : (i.value = n, !0);
|
|
946
946
|
}
|
|
947
947
|
let o = a ? Number(t) < e.length : k(e, t), s = Reflect.set(e, t, n, /* @__PURE__ */ zn(e) ? e : r);
|
|
948
|
-
return e === /* @__PURE__ */ I(r) && (o ? Ie(n, i) && Ut(e, "set", t, n, i) : Ut(e, "add", t, n)), s;
|
|
948
|
+
return e === /* @__PURE__ */ I(r) && s && (o ? Ie(n, i) && Ut(e, "set", t, n, i) : Ut(e, "add", t, n)), s;
|
|
949
949
|
}
|
|
950
950
|
deleteProperty(e, t) {
|
|
951
951
|
let n = k(e, t), r = e[t], i = Reflect.deleteProperty(e, t);
|
|
@@ -1289,7 +1289,7 @@ function Zn(e, t = Infinity, n) {
|
|
|
1289
1289
|
return e;
|
|
1290
1290
|
}
|
|
1291
1291
|
//#endregion
|
|
1292
|
-
//#region ../../node_modules/.pnpm/@vue+runtime-core@3.5.
|
|
1292
|
+
//#region ../../node_modules/.pnpm/@vue+runtime-core@3.5.39/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js
|
|
1293
1293
|
var Qn = [];
|
|
1294
1294
|
function $n(e) {
|
|
1295
1295
|
Qn.push(e);
|
|
@@ -1790,17 +1790,17 @@ var yi = /* @__PURE__ */ new WeakMap(), bi = /* @__PURE__ */ Symbol("_vte"), xi
|
|
|
1790
1790
|
let p = t.target = e.target, h = t.targetAnchor = e.targetAnchor, g = Si(e.props), _ = g ? n : p, b = g ? r : h;
|
|
1791
1791
|
if (o === "svg" || wi(p) ? o = "svg" : (o === "mathml" || Ti(p)) && (o = "mathml"), y ? (f(e.dynamicChildren, y, _, i, a, o, s), Qo(e, t, process.env.NODE_ENV === "production")) : c || d(e, t, _, b, i, a, o, s, !1), v) g ? t.props && e.props && t.props.to !== e.props.to && (t.props.to = e.props.to) : Oi(t, n, r, l, 1);
|
|
1792
1792
|
else if ((t.props && t.props.to) !== (e.props && e.props.to)) {
|
|
1793
|
-
let e =
|
|
1794
|
-
e ? Oi(t, e, null, l, 0) : process.env.NODE_ENV !== "production" && z("Invalid Teleport target on update:", p, `(${typeof p})`);
|
|
1793
|
+
let e = Ei(t.props, m);
|
|
1794
|
+
e ? (t.target = e, Oi(t, e, null, l, 0)) : process.env.NODE_ENV !== "production" && z("Invalid Teleport target on update:", p, `(${typeof p})`);
|
|
1795
1795
|
} else g && Oi(t, p, h, l, 1);
|
|
1796
1796
|
ji(t, v);
|
|
1797
1797
|
}
|
|
1798
1798
|
},
|
|
1799
1799
|
remove(e, t, n, { um: r, o: { remove: i } }, a) {
|
|
1800
|
-
let { shapeFlag: o, children: s, anchor: c, targetStart: l, targetAnchor: u, target: d, props: f } = e, p =
|
|
1801
|
-
if (
|
|
1800
|
+
let { shapeFlag: o, children: s, anchor: c, targetStart: l, targetAnchor: u, target: d, props: f } = e, p = Si(f), m = a || !p, h = yi.get(e);
|
|
1801
|
+
if (h && (h.flags |= 8, yi.delete(e)), d && (i(l), i(u)), a && i(c), !h && (p || d) && o & 16) for (let e = 0; e < s.length; e++) {
|
|
1802
1802
|
let i = s[e];
|
|
1803
|
-
r(i, t, n,
|
|
1803
|
+
r(i, t, n, m, !!i.dynamicChildren);
|
|
1804
1804
|
}
|
|
1805
1805
|
},
|
|
1806
1806
|
move: Oi,
|
|
@@ -1892,8 +1892,14 @@ function Bi(e, t, n, r, i = !1) {
|
|
|
1892
1892
|
m(l, e.k) && (l.value = null), e.k && (u[e.k] = null);
|
|
1893
1893
|
}
|
|
1894
1894
|
}
|
|
1895
|
-
if (j(c))
|
|
1896
|
-
|
|
1895
|
+
if (j(c)) {
|
|
1896
|
+
jt();
|
|
1897
|
+
try {
|
|
1898
|
+
lr(c, s, 12, [o, u]);
|
|
1899
|
+
} finally {
|
|
1900
|
+
Mt();
|
|
1901
|
+
}
|
|
1902
|
+
} else {
|
|
1897
1903
|
let t = M(c), r = /* @__PURE__ */ zn(c);
|
|
1898
1904
|
if (t || r) {
|
|
1899
1905
|
let s = () => {
|
|
@@ -2459,7 +2465,7 @@ function Za(e, t, n = !1) {
|
|
|
2459
2465
|
return !a && !s ? (N(e) && r.set(e, null), null) : (A(a) ? a.forEach((e) => o[e] = null) : O(o, a), N(e) && r.set(e, o), o);
|
|
2460
2466
|
}
|
|
2461
2467
|
function Qa(e, t) {
|
|
2462
|
-
return !e || !pe(t) ? !1 : (t = t.slice(2).replace(/Once$/, ""), k(e, t[0].toLowerCase() + t.slice(1)) || k(e, Ne(t)) || k(e, t));
|
|
2468
|
+
return !e || !pe(t) ? !1 : (t = t.slice(2), t = t === "Once" ? t : t.replace(/Once$/, ""), k(e, t[0].toLowerCase() + t.slice(1)) || k(e, Ne(t)) || k(e, t));
|
|
2463
2469
|
}
|
|
2464
2470
|
var $a = !1;
|
|
2465
2471
|
function eo() {
|
|
@@ -2914,7 +2920,7 @@ function Jo(e, t) {
|
|
|
2914
2920
|
let { patchFlag: l, dynamicChildren: d, dirs: f } = t;
|
|
2915
2921
|
l |= e.patchFlag & 16;
|
|
2916
2922
|
let p = e.props || D, m = t.props || D, h;
|
|
2917
|
-
if (n && Xo(n, !1), (h = m.onVnodeBeforeUpdate) && Us(h, n, t, e), f && di(t, e, n, "beforeUpdate"), n && Xo(n, !0), process.env.NODE_ENV !== "production" && jr && (l = 0, s = !1, d = null), (p.innerHTML && m.innerHTML == null || p.textContent && m.textContent == null) && u(c, ""), d ? (re(e.dynamicChildren, d, c, n, r, Yo(t, i), o), process.env.NODE_ENV !== "production" && Qo(e, t)) : s || ce(e, t, c, null, n, r, Yo(t, i), o, !1), l > 0) {
|
|
2923
|
+
if (n && Xo(n, !1), (h = m.onVnodeBeforeUpdate) && Us(h, n, t, e), f && di(t, e, n, "beforeUpdate"), n && Xo(n, !0), (process.env.NODE_ENV !== "production" && jr || d && (!e.dynamicChildren || e.dynamicChildren.length !== d.length)) && (l = 0, s = !1, d = null), (p.innerHTML && m.innerHTML == null || p.textContent && m.textContent == null) && u(c, ""), d ? (re(e.dynamicChildren, d, c, n, r, Yo(t, i), o), process.env.NODE_ENV !== "production" && Qo(e, t)) : s || ce(e, t, c, null, n, r, Yo(t, i), o, !1), l > 0) {
|
|
2918
2924
|
if (l & 16) w(c, p, m, n, i);
|
|
2919
2925
|
else if (l & 2 && p.class !== m.class && a(c, "class", null, m.class, i), l & 4 && a(c, "style", p.style, m.style, i), l & 8) {
|
|
2920
2926
|
let e = t.dynamicProps;
|
|
@@ -3542,10 +3548,16 @@ function Hs(e, t) {
|
|
|
3542
3548
|
let r = t._;
|
|
3543
3549
|
!r && !mo(t) ? t._ctx = ai : r === 3 && ai && (ai.slots._ === 1 ? t._ = 1 : (t._ = 2, e.patchFlag |= 1024));
|
|
3544
3550
|
}
|
|
3545
|
-
else j(t)
|
|
3546
|
-
|
|
3547
|
-
|
|
3548
|
-
|
|
3551
|
+
else if (j(t)) {
|
|
3552
|
+
if (r & 65) {
|
|
3553
|
+
Hs(e, { default: t });
|
|
3554
|
+
return;
|
|
3555
|
+
}
|
|
3556
|
+
t = {
|
|
3557
|
+
default: t,
|
|
3558
|
+
_ctx: ai
|
|
3559
|
+
}, n = 32;
|
|
3560
|
+
} else t = String(t), r & 64 ? (n = 16, t = [Rs(t)]) : n = 8;
|
|
3549
3561
|
e.children = t, e.shapeFlag |= n;
|
|
3550
3562
|
}
|
|
3551
3563
|
function J(...e) {
|
|
@@ -3959,10 +3971,10 @@ function bc() {
|
|
|
3959
3971
|
}
|
|
3960
3972
|
window.devtoolsFormatters ? window.devtoolsFormatters.push(i) : window.devtoolsFormatters = [i];
|
|
3961
3973
|
}
|
|
3962
|
-
var xc = "3.5.
|
|
3974
|
+
var xc = "3.5.39", Sc = process.env.NODE_ENV === "production" ? de : z;
|
|
3963
3975
|
process.env.NODE_ENV, process.env.NODE_ENV;
|
|
3964
3976
|
//#endregion
|
|
3965
|
-
//#region ../../node_modules/.pnpm/@vue+runtime-dom@3.5.
|
|
3977
|
+
//#region ../../node_modules/.pnpm/@vue+runtime-dom@3.5.39/node_modules/@vue/runtime-dom/dist/runtime-dom.esm-bundler.js
|
|
3966
3978
|
var Cc = void 0, wc = typeof window < "u" && window.trustedTypes;
|
|
3967
3979
|
if (wc) try {
|
|
3968
3980
|
Cc = /* @__PURE__ */ wc.createPolicy("vue", { createHTML: (e) => e });
|
|
@@ -4170,24 +4182,20 @@ function el(e, t, n, r) {
|
|
|
4170
4182
|
var tl = /* @__PURE__ */ Symbol("_vei");
|
|
4171
4183
|
function nl(e, t, n, r, i = null) {
|
|
4172
4184
|
let a = e[tl] || (e[tl] = {}), o = a[t];
|
|
4173
|
-
if (r && o) o.value = process.env.NODE_ENV === "production" ? r :
|
|
4185
|
+
if (r && o) o.value = process.env.NODE_ENV === "production" ? r : ul(r, t);
|
|
4174
4186
|
else {
|
|
4175
|
-
let [n, s] =
|
|
4176
|
-
r ? $c(e, n, a[t] =
|
|
4187
|
+
let [n, s] = al(t);
|
|
4188
|
+
r ? $c(e, n, a[t] = ll(process.env.NODE_ENV === "production" ? r : ul(r, t), i), s) : o && (el(e, n, o, s), a[t] = void 0);
|
|
4177
4189
|
}
|
|
4178
4190
|
}
|
|
4179
|
-
var rl = /(?:Once|Passive|Capture)$/;
|
|
4180
|
-
function
|
|
4181
|
-
let t;
|
|
4182
|
-
|
|
4183
|
-
t = {};
|
|
4184
|
-
let n;
|
|
4185
|
-
for (; n = e.match(rl);) e = e.slice(0, e.length - n[0].length), t[n[0].toLowerCase()] = !0;
|
|
4186
|
-
}
|
|
4191
|
+
var rl = /(Once|Passive|Capture)$/, il = /^on:?(?:Once|Passive|Capture)$/;
|
|
4192
|
+
function al(e) {
|
|
4193
|
+
let t, n;
|
|
4194
|
+
for (; (n = e.match(rl)) && !il.test(e);) t ||= {}, e = e.slice(0, e.length - n[1].length), t[n[1].toLowerCase()] = !0;
|
|
4187
4195
|
return [e[2] === ":" ? e.slice(3) : Ne(e.slice(2)), t];
|
|
4188
4196
|
}
|
|
4189
|
-
var
|
|
4190
|
-
function
|
|
4197
|
+
var ol = 0, sl = /* @__PURE__ */ Promise.resolve(), cl = () => ol ||= (sl.then(() => ol = 0), Date.now());
|
|
4198
|
+
function ll(e, t) {
|
|
4191
4199
|
let n = (e) => {
|
|
4192
4200
|
if (!e._vts) e._vts = Date.now();
|
|
4193
4201
|
else if (e._vts <= n.attached) return;
|
|
@@ -4204,37 +4212,37 @@ function cl(e, t) {
|
|
|
4204
4212
|
}
|
|
4205
4213
|
} else ur(r, t, 5, [e]);
|
|
4206
4214
|
};
|
|
4207
|
-
return n.value = e, n.attached =
|
|
4215
|
+
return n.value = e, n.attached = cl(), n;
|
|
4208
4216
|
}
|
|
4209
|
-
function
|
|
4217
|
+
function ul(e, t) {
|
|
4210
4218
|
return j(e) || A(e) ? e : (Sc(`Wrong type passed as event handler to ${t} - did you forget @ or : in front of your prop?
|
|
4211
4219
|
Expected function or array of functions, received type ${typeof e}.`), de);
|
|
4212
4220
|
}
|
|
4213
|
-
var
|
|
4221
|
+
var dl = (e) => e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) > 96 && e.charCodeAt(2) < 123, fl = (e, t, n, r, i, a) => {
|
|
4214
4222
|
let o = i === "svg";
|
|
4215
|
-
t === "class" ? Mc(e, r, o) : t === "style" ? Hc(e, n, r) : pe(t) ? me(t) || nl(e, t, n, r, a) : (t[0] === "." ? (t = t.slice(1), !0) : t[0] === "^" ? (t = t.slice(1), !1) :
|
|
4223
|
+
t === "class" ? Mc(e, r, o) : t === "style" ? Hc(e, n, r) : pe(t) ? me(t) || nl(e, t, n, r, a) : (t[0] === "." ? (t = t.slice(1), !0) : t[0] === "^" ? (t = t.slice(1), !1) : pl(e, t, r, o)) ? (Qc(e, t, r), !e.tagName.includes("-") && (t === "value" || t === "checked" || t === "selected") && Zc(e, t, r, o, a, t !== "value")) : e._isVueCE && (ml(e, t) || e._def.__asyncLoader && (/[A-Z]/.test(t) || !M(r))) ? Qc(e, je(t), r, a, t) : (t === "true-value" ? e._trueValue = r : t === "false-value" && (e._falseValue = r), Zc(e, t, r, o));
|
|
4216
4224
|
};
|
|
4217
|
-
function
|
|
4218
|
-
if (r) return !!(t === "innerHTML" || t === "textContent" || t in e &&
|
|
4225
|
+
function pl(e, t, n, r) {
|
|
4226
|
+
if (r) return !!(t === "innerHTML" || t === "textContent" || t in e && dl(t) && j(n));
|
|
4219
4227
|
if (t === "spellcheck" || t === "draggable" || t === "translate" || t === "autocorrect" || t === "sandbox" && e.tagName === "IFRAME" || t === "form" || t === "list" && e.tagName === "INPUT" || t === "type" && e.tagName === "TEXTAREA") return !1;
|
|
4220
4228
|
if (t === "width" || t === "height") {
|
|
4221
4229
|
let t = e.tagName;
|
|
4222
4230
|
if (t === "IMG" || t === "VIDEO" || t === "CANVAS" || t === "SOURCE") return !1;
|
|
4223
4231
|
}
|
|
4224
|
-
return
|
|
4232
|
+
return dl(t) && M(n) ? !1 : t in e;
|
|
4225
4233
|
}
|
|
4226
|
-
function
|
|
4234
|
+
function ml(e, t) {
|
|
4227
4235
|
let n = e._def.props;
|
|
4228
4236
|
if (!n) return !1;
|
|
4229
4237
|
let r = je(t);
|
|
4230
4238
|
return Array.isArray(n) ? n.some((e) => je(e) === r) : Object.keys(n).some((e) => je(e) === r);
|
|
4231
4239
|
}
|
|
4232
|
-
var
|
|
4240
|
+
var hl = [
|
|
4233
4241
|
"ctrl",
|
|
4234
4242
|
"shift",
|
|
4235
4243
|
"alt",
|
|
4236
4244
|
"meta"
|
|
4237
|
-
],
|
|
4245
|
+
], gl = {
|
|
4238
4246
|
stop: (e) => e.stopPropagation(),
|
|
4239
4247
|
prevent: (e) => e.preventDefault(),
|
|
4240
4248
|
self: (e) => e.target !== e.currentTarget,
|
|
@@ -4245,45 +4253,45 @@ var ml = [
|
|
|
4245
4253
|
left: (e) => "button" in e && e.button !== 0,
|
|
4246
4254
|
middle: (e) => "button" in e && e.button !== 1,
|
|
4247
4255
|
right: (e) => "button" in e && e.button !== 2,
|
|
4248
|
-
exact: (e, t) =>
|
|
4249
|
-
},
|
|
4256
|
+
exact: (e, t) => hl.some((n) => e[`${n}Key`] && !t.includes(n))
|
|
4257
|
+
}, _l = (e, t) => {
|
|
4250
4258
|
if (!e) return e;
|
|
4251
4259
|
let n = e._withMods ||= {}, r = t.join(".");
|
|
4252
4260
|
return n[r] || (n[r] = ((n, ...r) => {
|
|
4253
4261
|
for (let e = 0; e < t.length; e++) {
|
|
4254
|
-
let r =
|
|
4262
|
+
let r = gl[t[e]];
|
|
4255
4263
|
if (r && r(n, t)) return;
|
|
4256
4264
|
}
|
|
4257
4265
|
return e(n, ...r);
|
|
4258
4266
|
}));
|
|
4259
|
-
},
|
|
4260
|
-
function
|
|
4261
|
-
return
|
|
4267
|
+
}, vl = /* @__PURE__ */ O({ patchProp: fl }, Ac), yl;
|
|
4268
|
+
function bl() {
|
|
4269
|
+
return yl ||= qo(vl);
|
|
4262
4270
|
}
|
|
4263
|
-
var
|
|
4264
|
-
let t =
|
|
4265
|
-
process.env.NODE_ENV !== "production" && (
|
|
4271
|
+
var xl = ((...e) => {
|
|
4272
|
+
let t = bl().createApp(...e);
|
|
4273
|
+
process.env.NODE_ENV !== "production" && (Cl(t), wl(t));
|
|
4266
4274
|
let { mount: n } = t;
|
|
4267
4275
|
return t.mount = (e) => {
|
|
4268
|
-
let r =
|
|
4276
|
+
let r = Tl(e);
|
|
4269
4277
|
if (!r) return;
|
|
4270
4278
|
let i = t._component;
|
|
4271
4279
|
!j(i) && !i.render && !i.template && (i.template = r.innerHTML), r.nodeType === 1 && (r.textContent = "");
|
|
4272
|
-
let a = n(r, !1,
|
|
4280
|
+
let a = n(r, !1, Sl(r));
|
|
4273
4281
|
return r instanceof Element && (r.removeAttribute("v-cloak"), r.setAttribute("data-v-app", "")), a;
|
|
4274
4282
|
}, t;
|
|
4275
4283
|
});
|
|
4276
|
-
function
|
|
4284
|
+
function Sl(e) {
|
|
4277
4285
|
if (e instanceof SVGElement) return "svg";
|
|
4278
4286
|
if (typeof MathMLElement == "function" && e instanceof MathMLElement) return "mathml";
|
|
4279
4287
|
}
|
|
4280
|
-
function
|
|
4288
|
+
function Cl(e) {
|
|
4281
4289
|
Object.defineProperty(e.config, "isNativeTag", {
|
|
4282
4290
|
value: (e) => Qe(e) || $e(e) || et(e),
|
|
4283
4291
|
writable: !1
|
|
4284
4292
|
});
|
|
4285
4293
|
}
|
|
4286
|
-
function
|
|
4294
|
+
function wl(e) {
|
|
4287
4295
|
if (cc()) {
|
|
4288
4296
|
let t = e.config.isCustomElement;
|
|
4289
4297
|
Object.defineProperty(e.config, "isCustomElement", {
|
|
@@ -4305,7 +4313,7 @@ function Cl(e) {
|
|
|
4305
4313
|
});
|
|
4306
4314
|
}
|
|
4307
4315
|
}
|
|
4308
|
-
function
|
|
4316
|
+
function Tl(e) {
|
|
4309
4317
|
if (M(e)) {
|
|
4310
4318
|
let t = document.querySelector(e);
|
|
4311
4319
|
return process.env.NODE_ENV !== "production" && !t && Sc(`Failed to mount app: mount target selector "${e}" returned null.`), t;
|
|
@@ -4313,56 +4321,56 @@ function wl(e) {
|
|
|
4313
4321
|
return process.env.NODE_ENV !== "production" && window.ShadowRoot && e instanceof window.ShadowRoot && e.mode === "closed" && Sc("mounting on a ShadowRoot with `{mode: \"closed\"}` may lead to unpredictable bugs"), e;
|
|
4314
4322
|
}
|
|
4315
4323
|
//#endregion
|
|
4316
|
-
//#region ../../node_modules/.pnpm/vue@3.5.
|
|
4317
|
-
function
|
|
4324
|
+
//#region ../../node_modules/.pnpm/vue@3.5.39_typescript@6.0.3/node_modules/vue/dist/vue.runtime.esm-bundler.js
|
|
4325
|
+
function El() {
|
|
4318
4326
|
bc();
|
|
4319
4327
|
}
|
|
4320
|
-
process.env.NODE_ENV !== "production" &&
|
|
4328
|
+
process.env.NODE_ENV !== "production" && El();
|
|
4321
4329
|
//#endregion
|
|
4322
4330
|
//#region ../components/dist/components.js
|
|
4323
|
-
var
|
|
4331
|
+
var Dl = Object.defineProperty, X = (e, t) => {
|
|
4324
4332
|
let n = {};
|
|
4325
|
-
for (var r in e)
|
|
4333
|
+
for (var r in e) Dl(n, r, {
|
|
4326
4334
|
get: e[r],
|
|
4327
4335
|
enumerable: !0
|
|
4328
4336
|
});
|
|
4329
|
-
return t ||
|
|
4337
|
+
return t || Dl(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
4330
4338
|
};
|
|
4331
|
-
function
|
|
4339
|
+
function Ol(e) {
|
|
4332
4340
|
return typeof e == "function";
|
|
4333
4341
|
}
|
|
4334
|
-
function
|
|
4342
|
+
function kl(e) {
|
|
4335
4343
|
return typeof e == "string";
|
|
4336
4344
|
}
|
|
4337
|
-
function
|
|
4345
|
+
function Al() {
|
|
4338
4346
|
return Math.random().toString(36).slice(2, 7);
|
|
4339
4347
|
}
|
|
4340
|
-
function
|
|
4348
|
+
function jl(e) {
|
|
4341
4349
|
return new Promise((t) => {
|
|
4342
4350
|
setTimeout(() => {
|
|
4343
4351
|
t();
|
|
4344
4352
|
}, e);
|
|
4345
4353
|
});
|
|
4346
4354
|
}
|
|
4347
|
-
function
|
|
4355
|
+
function Ml(e) {
|
|
4348
4356
|
return e.toLowerCase().replace(/-(.)/g, (e, t) => t.toUpperCase());
|
|
4349
4357
|
}
|
|
4350
|
-
function
|
|
4358
|
+
function Nl(e) {
|
|
4351
4359
|
return e.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase();
|
|
4352
4360
|
}
|
|
4353
|
-
function
|
|
4361
|
+
function Pl(e, t) {
|
|
4354
4362
|
if (!e) return;
|
|
4355
4363
|
let n = {};
|
|
4356
4364
|
for (let r in e) {
|
|
4357
4365
|
if (!r.startsWith("data-")) continue;
|
|
4358
|
-
let i =
|
|
4366
|
+
let i = Ml(r.replace(/^data-/, ""));
|
|
4359
4367
|
n[i] = t(e[r]);
|
|
4360
4368
|
}
|
|
4361
4369
|
return n;
|
|
4362
4370
|
}
|
|
4363
|
-
var
|
|
4371
|
+
var Fl = typeof window < "u" && typeof navigator < "u", Il = Fl && /Android/i.test(navigator.userAgent), Ll = Fl && /iPad|iPhone|iPod/.test(navigator.userAgent), Rl = Fl && /OpenHarmony|harmony/.test(navigator.userAgent), zl = Fl && !/Android|iPad|iPhone|iPod|OpenHarmony|harmony|Mobile/.test(navigator.userAgent);
|
|
4364
4372
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
4365
|
-
function
|
|
4373
|
+
function Bl(e, t) {
|
|
4366
4374
|
if (t.startsWith("/")) return t.slice(1);
|
|
4367
4375
|
let n = e.split("/"), r = t.split("/");
|
|
4368
4376
|
for (let e of r) {
|
|
@@ -4371,21 +4379,21 @@ function zl(e, t) {
|
|
|
4371
4379
|
}
|
|
4372
4380
|
return n.join("/");
|
|
4373
4381
|
}
|
|
4374
|
-
function
|
|
4375
|
-
let n = e.split("/").slice(0, -1).join("/"), r = t.split("?"), i = r[0], a = r[1], o =
|
|
4382
|
+
function Vl(e, t) {
|
|
4383
|
+
let n = e.split("/").slice(0, -1).join("/"), r = t.split("?"), i = r[0], a = r[1], o = Bl(n, i);
|
|
4376
4384
|
return a && (o += `?${a}`), o;
|
|
4377
4385
|
}
|
|
4378
|
-
var
|
|
4379
|
-
function Hl(e) {
|
|
4380
|
-
return Ol(e) ? e.replace(Vl, (e, t) => `${Number(t)}rem`) : e;
|
|
4381
|
-
}
|
|
4386
|
+
var Hl = /([+-]?\d+(?:\.\d+)?)rpx/g;
|
|
4382
4387
|
function Ul(e) {
|
|
4383
|
-
return
|
|
4388
|
+
return kl(e) ? e.replace(Hl, (e, t) => `${Number(t)}rem`) : e;
|
|
4384
4389
|
}
|
|
4385
4390
|
function Wl(e) {
|
|
4391
|
+
return typeof e == "number" && Number.isFinite(e) && !Number.isNaN(e) ? `${e}px` : e;
|
|
4392
|
+
}
|
|
4393
|
+
function Gl(e) {
|
|
4386
4394
|
return `${e}deg`;
|
|
4387
4395
|
}
|
|
4388
|
-
var
|
|
4396
|
+
var Kl = {
|
|
4389
4397
|
matrix(e) {
|
|
4390
4398
|
return `matrix(${e.join(", ")})`;
|
|
4391
4399
|
},
|
|
@@ -4393,22 +4401,22 @@ var Gl = {
|
|
|
4393
4401
|
return `matrix3d(${e.join(", ")})`;
|
|
4394
4402
|
},
|
|
4395
4403
|
rotate(e) {
|
|
4396
|
-
let [t] = e.map(
|
|
4404
|
+
let [t] = e.map(Gl);
|
|
4397
4405
|
return `rotate(${t})`;
|
|
4398
4406
|
},
|
|
4399
4407
|
rotate3d(e) {
|
|
4400
|
-
return e[3] =
|
|
4408
|
+
return e[3] = Gl(e[3]), `rotate3d(${e.join(", ")})`;
|
|
4401
4409
|
},
|
|
4402
4410
|
rotateX(e) {
|
|
4403
|
-
let [t] = e.map(
|
|
4411
|
+
let [t] = e.map(Gl);
|
|
4404
4412
|
return `rotateX(${t})`;
|
|
4405
4413
|
},
|
|
4406
4414
|
rotateY(e) {
|
|
4407
|
-
let [t] = e.map(
|
|
4415
|
+
let [t] = e.map(Gl);
|
|
4408
4416
|
return `rotateY(${t})`;
|
|
4409
4417
|
},
|
|
4410
4418
|
rotateZ(e) {
|
|
4411
|
-
let [t] = e.map(
|
|
4419
|
+
let [t] = e.map(Gl);
|
|
4412
4420
|
return `rotateZ(${t})`;
|
|
4413
4421
|
},
|
|
4414
4422
|
scale(e) {
|
|
@@ -4427,36 +4435,36 @@ var Gl = {
|
|
|
4427
4435
|
return `scaleZ(${e[0]})`;
|
|
4428
4436
|
},
|
|
4429
4437
|
skew(e) {
|
|
4430
|
-
return `skew(${e.map(
|
|
4438
|
+
return `skew(${e.map(Gl).join(", ")})`;
|
|
4431
4439
|
},
|
|
4432
4440
|
skewX(e) {
|
|
4433
|
-
let [t] = e.map(
|
|
4441
|
+
let [t] = e.map(Gl);
|
|
4434
4442
|
return `skewX(${t})`;
|
|
4435
4443
|
},
|
|
4436
4444
|
skewY(e) {
|
|
4437
|
-
let [t] = e.map(
|
|
4445
|
+
let [t] = e.map(Gl);
|
|
4438
4446
|
return `skewY(${t})`;
|
|
4439
4447
|
},
|
|
4440
4448
|
translate(e) {
|
|
4441
|
-
return `translate(${e.map(
|
|
4449
|
+
return `translate(${e.map(Wl).join(", ")})`;
|
|
4442
4450
|
},
|
|
4443
4451
|
translate3d(e) {
|
|
4444
|
-
return `translate3d(${e.map(
|
|
4452
|
+
return `translate3d(${e.map(Wl).join(", ")})`;
|
|
4445
4453
|
},
|
|
4446
4454
|
translateX(e) {
|
|
4447
|
-
let [t] = e.map(
|
|
4455
|
+
let [t] = e.map(Wl);
|
|
4448
4456
|
return `translateX(${t})`;
|
|
4449
4457
|
},
|
|
4450
4458
|
translateY(e) {
|
|
4451
|
-
let [t] = e.map(
|
|
4459
|
+
let [t] = e.map(Wl);
|
|
4452
4460
|
return `translateY(${t})`;
|
|
4453
4461
|
},
|
|
4454
4462
|
translateZ(e) {
|
|
4455
|
-
let [t] = e.map(
|
|
4463
|
+
let [t] = e.map(Wl);
|
|
4456
4464
|
return `translateZ(${t})`;
|
|
4457
4465
|
}
|
|
4458
4466
|
};
|
|
4459
|
-
function
|
|
4467
|
+
function ql(e) {
|
|
4460
4468
|
let { animates: t, option: n } = e, r = n.transformOrigin, i = n.transition;
|
|
4461
4469
|
if (r === void 0 || i === void 0) return {
|
|
4462
4470
|
transformOrigin: "",
|
|
@@ -4471,7 +4479,7 @@ function Kl(e) {
|
|
|
4471
4479
|
o[e] = t;
|
|
4472
4480
|
} else {
|
|
4473
4481
|
let { type: e, args: t } = n;
|
|
4474
|
-
|
|
4482
|
+
Ol(Kl[e]) ? a.push(Kl[e](t)) : console.warn(`[Common] SDK inner warning (Transform Handler not found animation type: ${e})`);
|
|
4475
4483
|
}
|
|
4476
4484
|
}
|
|
4477
4485
|
return {
|
|
@@ -4488,36 +4496,36 @@ function Kl(e) {
|
|
|
4488
4496
|
}
|
|
4489
4497
|
};
|
|
4490
4498
|
}
|
|
4491
|
-
var
|
|
4492
|
-
function
|
|
4499
|
+
var Jl = {}, Yl = 1, Xl = 2;
|
|
4500
|
+
function Zl(e, t, n) {
|
|
4493
4501
|
if (typeof e != "string") throw TypeError("require args must be a string");
|
|
4494
|
-
let r =
|
|
4502
|
+
let r = Jl[e];
|
|
4495
4503
|
if (!r) throw Error(`module ${e} not found`);
|
|
4496
|
-
if (r.status ===
|
|
4497
|
-
r.status =
|
|
4504
|
+
if (r.status === Yl) {
|
|
4505
|
+
r.status = Xl;
|
|
4498
4506
|
let t = { exports: {} }, i;
|
|
4499
4507
|
try {
|
|
4500
|
-
r.factory && (i = r.factory.call(null,
|
|
4508
|
+
r.factory && (i = r.factory.call(null, Zl, t, t.exports));
|
|
4501
4509
|
} catch (t) {
|
|
4502
|
-
r.status =
|
|
4510
|
+
r.status = Yl;
|
|
4503
4511
|
let i = `
|
|
4504
4512
|
name: ${t.name}
|
|
4505
4513
|
msg: ${t.message}
|
|
4506
4514
|
stack:
|
|
4507
4515
|
${t.stack}
|
|
4508
4516
|
`;
|
|
4509
|
-
console.error(`require ${e} error: ${i}`),
|
|
4517
|
+
console.error(`require ${e} error: ${i}`), Ol(n) && n({
|
|
4510
4518
|
mod: e,
|
|
4511
4519
|
errMsg: t.message
|
|
4512
4520
|
});
|
|
4513
4521
|
}
|
|
4514
4522
|
r.exports = t.exports === void 0 ? i : t.exports;
|
|
4515
4523
|
}
|
|
4516
|
-
return
|
|
4524
|
+
return Ol(t) && t(r.exports), r.exports;
|
|
4517
4525
|
}
|
|
4518
|
-
|
|
4526
|
+
Zl.async = async (e) => new Promise((t, n) => {
|
|
4519
4527
|
try {
|
|
4520
|
-
t(
|
|
4528
|
+
t(Zl(e));
|
|
4521
4529
|
} catch (t) {
|
|
4522
4530
|
n(/* @__PURE__ */ Error(`${t.message}: Failed to initialize asynchronous loading for module '${e}'`));
|
|
4523
4531
|
}
|
|
@@ -4525,7 +4533,7 @@ Xl.async = async (e) => new Promise((t, n) => {
|
|
|
4525
4533
|
constructor() {
|
|
4526
4534
|
this.callbacks = {};
|
|
4527
4535
|
}
|
|
4528
|
-
store(e, t, n =
|
|
4536
|
+
store(e, t, n = Al()) {
|
|
4529
4537
|
if (t) {
|
|
4530
4538
|
for (let [t, n] of Object.entries(this.callbacks)) if (n.callback === e) return t;
|
|
4531
4539
|
}
|
|
@@ -4537,7 +4545,7 @@ Xl.async = async (e) => new Promise((t, n) => {
|
|
|
4537
4545
|
invoke(e, t) {
|
|
4538
4546
|
if (e === void 0) return;
|
|
4539
4547
|
let n = this.callbacks[e];
|
|
4540
|
-
n &&
|
|
4548
|
+
n && Ol(n.callback) && (n.callback(t), n.keep || delete this.callbacks[e]);
|
|
4541
4549
|
}
|
|
4542
4550
|
remove(e) {
|
|
4543
4551
|
e ? Object.keys(this.callbacks).forEach((t) => {
|
|
@@ -4547,7 +4555,7 @@ Xl.async = async (e) => new Promise((t, n) => {
|
|
|
4547
4555
|
});
|
|
4548
4556
|
}
|
|
4549
4557
|
}();
|
|
4550
|
-
var
|
|
4558
|
+
var Ql = Date.now();
|
|
4551
4559
|
function Z() {
|
|
4552
4560
|
let e = V("bridgeId"), t = V("path"), n = V(t), r, i, a = Js().vnode.slotScopeIds;
|
|
4553
4561
|
if (a?.length) {
|
|
@@ -4566,7 +4574,7 @@ function Z() {
|
|
|
4566
4574
|
path: i
|
|
4567
4575
|
};
|
|
4568
4576
|
}
|
|
4569
|
-
function
|
|
4577
|
+
function $l(e) {
|
|
4570
4578
|
let t = (e) => {
|
|
4571
4579
|
let t = window.getComputedStyle(e), n = t.overflowY, r = t.overflowX;
|
|
4572
4580
|
return (n === "auto" || n === "scroll") && e.scrollHeight > e.clientHeight || (r === "auto" || r === "scroll") && e.scrollWidth > e.clientWidth;
|
|
@@ -4581,7 +4589,7 @@ function Q(e, { event: t, detail: n, info: r, success: i }) {
|
|
|
4581
4589
|
if (!r.attrs) return;
|
|
4582
4590
|
let a = r.attrs[`bind${e}`] || r.attrs[`bind:${e}`], o = r.attrs[`catch${e}`] || r.attrs[`catch:${e}`];
|
|
4583
4591
|
if (o) {
|
|
4584
|
-
t && (t.stopPropagation(), e.startsWith("touch") && (
|
|
4592
|
+
t && (t.stopPropagation(), e.startsWith("touch") && ($l(t.target) || t.preventDefault())), eu(o, {
|
|
4585
4593
|
type: e,
|
|
4586
4594
|
detail: n,
|
|
4587
4595
|
info: r,
|
|
@@ -4590,7 +4598,7 @@ function Q(e, { event: t, detail: n, info: r, success: i }) {
|
|
|
4590
4598
|
});
|
|
4591
4599
|
return;
|
|
4592
4600
|
}
|
|
4593
|
-
a &&
|
|
4601
|
+
a && eu(a, {
|
|
4594
4602
|
type: e,
|
|
4595
4603
|
detail: n,
|
|
4596
4604
|
info: r,
|
|
@@ -4598,7 +4606,7 @@ function Q(e, { event: t, detail: n, info: r, success: i }) {
|
|
|
4598
4606
|
event: t
|
|
4599
4607
|
});
|
|
4600
4608
|
}
|
|
4601
|
-
function
|
|
4609
|
+
function eu(e, { type: t, detail: n = {}, info: r, success: i, event: a = {} }) {
|
|
4602
4610
|
let { bridgeId: o, moduleId: s } = r, { currentTarget: c, target: l, pageX: u, pageY: d, changedTouches: f = [], touches: p = [] } = a;
|
|
4603
4611
|
u !== void 0 && d !== void 0 && (n.x = u, n.y = d);
|
|
4604
4612
|
let m = c ? {
|
|
@@ -4628,7 +4636,7 @@ function $l(e, { type: t, detail: n = {}, info: r, success: i, event: a = {} })
|
|
|
4628
4636
|
success: g,
|
|
4629
4637
|
event: {
|
|
4630
4638
|
type: t,
|
|
4631
|
-
timeStamp: Date.now() -
|
|
4639
|
+
timeStamp: Date.now() - Ql,
|
|
4632
4640
|
detail: n,
|
|
4633
4641
|
currentTarget: m,
|
|
4634
4642
|
target: h,
|
|
@@ -4656,7 +4664,7 @@ function $l(e, { type: t, detail: n = {}, info: r, success: i, event: a = {} })
|
|
|
4656
4664
|
}
|
|
4657
4665
|
});
|
|
4658
4666
|
}
|
|
4659
|
-
function
|
|
4667
|
+
function tu(e, { params: t, bridgeId: n }) {
|
|
4660
4668
|
window.__message.invoke({
|
|
4661
4669
|
type: "invokeAPI",
|
|
4662
4670
|
target: "container",
|
|
@@ -4667,65 +4675,65 @@ function eu(e, { params: t, bridgeId: n }) {
|
|
|
4667
4675
|
}
|
|
4668
4676
|
});
|
|
4669
4677
|
}
|
|
4670
|
-
function
|
|
4678
|
+
function nu(e, t) {
|
|
4671
4679
|
let n = (e) => {
|
|
4672
4680
|
t?.(e);
|
|
4673
4681
|
};
|
|
4674
4682
|
return window.__message.on(e, n), () => window.__message.off(e, n);
|
|
4675
4683
|
}
|
|
4676
|
-
function
|
|
4684
|
+
function ru(e, t) {
|
|
4677
4685
|
window.__message.off(e, t);
|
|
4678
4686
|
}
|
|
4679
|
-
function
|
|
4687
|
+
function iu(e, t = "tap") {
|
|
4680
4688
|
let n = e.attrs || {};
|
|
4681
4689
|
return !!(n[`bind${t}`] || n[`bind:${t}`] || n[`catch${t}`] || n[`catch:${t}`]);
|
|
4682
4690
|
}
|
|
4683
|
-
function
|
|
4691
|
+
function au(e, t = "tap") {
|
|
4684
4692
|
let n = e.attrs || {};
|
|
4685
4693
|
return !!(n[`catch${t}`] || n[`catch:${t}`]);
|
|
4686
4694
|
}
|
|
4687
|
-
function
|
|
4695
|
+
function ou(e, t) {
|
|
4688
4696
|
if (!e) return 0;
|
|
4689
4697
|
let n = e.getBoundingClientRect(), r = window.visualViewport;
|
|
4690
4698
|
return (r ? r.height : window.innerHeight) - n.bottom - (t ? n.height : 0);
|
|
4691
4699
|
}
|
|
4692
4700
|
function $(e) {
|
|
4693
|
-
return e.__tagName =
|
|
4694
|
-
|
|
4701
|
+
return e.__tagName = Nl(e.__name), e.install = (t) => {
|
|
4702
|
+
cu(t, e);
|
|
4695
4703
|
}, e;
|
|
4696
4704
|
}
|
|
4697
|
-
var
|
|
4698
|
-
function
|
|
4699
|
-
e.component(
|
|
4705
|
+
var su = "dd-";
|
|
4706
|
+
function cu(e, t) {
|
|
4707
|
+
e.component(su + t.__tagName, t);
|
|
4700
4708
|
}
|
|
4701
|
-
function
|
|
4709
|
+
function lu(e) {
|
|
4702
4710
|
if (typeof e != "object" || !e) return e;
|
|
4703
|
-
if (Array.isArray(e)) return e.map((e) =>
|
|
4711
|
+
if (Array.isArray(e)) return e.map((e) => lu(e));
|
|
4704
4712
|
let t = {};
|
|
4705
4713
|
for (let n in e) if (Object.prototype.hasOwnProperty.call(e, n)) {
|
|
4706
4714
|
let r = e[n];
|
|
4707
|
-
/* @__PURE__ */ zn(r) ? t[n] = R(r) : /* @__PURE__ */ Mn(r) ? t[n] = /* @__PURE__ */ I(r) : typeof r == "object" && r ? t[n] =
|
|
4715
|
+
/* @__PURE__ */ zn(r) ? t[n] = R(r) : /* @__PURE__ */ Mn(r) ? t[n] = /* @__PURE__ */ I(r) : typeof r == "object" && r ? t[n] = lu(r) : t[n] = r;
|
|
4708
4716
|
}
|
|
4709
4717
|
return t;
|
|
4710
4718
|
}
|
|
4711
|
-
function
|
|
4719
|
+
function uu(e, t, n) {
|
|
4712
4720
|
let r = e.split(/\s+/).filter(Boolean), i = n.split(/\s+/).filter(Boolean), a = [];
|
|
4713
4721
|
for (let e of r) e === t ? a.push(...i) : a.push(e);
|
|
4714
4722
|
return [...new Set(a)].join(" ");
|
|
4715
4723
|
}
|
|
4716
|
-
var
|
|
4724
|
+
var du = {
|
|
4717
4725
|
__name: "Block",
|
|
4718
4726
|
setup(e) {
|
|
4719
4727
|
return Z(), (e, t) => U(e.$slots, "default");
|
|
4720
4728
|
}
|
|
4721
|
-
},
|
|
4729
|
+
}, fu = /* @__PURE__ */ X({ default: () => pu }), pu = $(du), mu = [
|
|
4722
4730
|
"id",
|
|
4723
4731
|
"type",
|
|
4724
4732
|
"size",
|
|
4725
4733
|
"loading",
|
|
4726
4734
|
"plain",
|
|
4727
4735
|
"disabled"
|
|
4728
|
-
],
|
|
4736
|
+
], hu = {
|
|
4729
4737
|
__name: "Button",
|
|
4730
4738
|
props: {
|
|
4731
4739
|
id: { type: String },
|
|
@@ -4798,10 +4806,10 @@ var uu = {
|
|
|
4798
4806
|
}));
|
|
4799
4807
|
}
|
|
4800
4808
|
async function l() {
|
|
4801
|
-
t.disabled || (await
|
|
4809
|
+
t.disabled || (await jl(t.hoverStartTime), a.value = !0);
|
|
4802
4810
|
}
|
|
4803
4811
|
async function u() {
|
|
4804
|
-
t.disabled || (await
|
|
4812
|
+
t.disabled || (await jl(t.hoverStayTime), a.value = !1);
|
|
4805
4813
|
}
|
|
4806
4814
|
return (t, o) => (G(), K("span", J({ id: e.id }, t.$attrs, {
|
|
4807
4815
|
class: ["dd-button", [
|
|
@@ -4820,9 +4828,9 @@ var uu = {
|
|
|
4820
4828
|
onClick: c,
|
|
4821
4829
|
onMousedown: l,
|
|
4822
4830
|
onMouseup: u
|
|
4823
|
-
}), [U(t.$slots, "default")], 16,
|
|
4831
|
+
}), [U(t.$slots, "default")], 16, mu));
|
|
4824
4832
|
}
|
|
4825
|
-
},
|
|
4833
|
+
}, gu = /* @__PURE__ */ X({ default: () => _u }), _u = $(hu), vu = "native/camera", yu = {
|
|
4826
4834
|
__name: "Camera",
|
|
4827
4835
|
props: {
|
|
4828
4836
|
mode: {
|
|
@@ -4865,19 +4873,19 @@ var uu = {
|
|
|
4865
4873
|
}
|
|
4866
4874
|
},
|
|
4867
4875
|
setup(e) {
|
|
4868
|
-
return Z(), (e, t) => R(
|
|
4876
|
+
return Z(), (e, t) => R(zl) ? (G(), K("div", J({ key: 0 }, e.$attrs, { class: "dd-camera dd-camera-desktop" }), " 未找到摄像头 ", 16)) : R(Ll) ? (G(), K("div", J({ key: 1 }, e.$attrs, { class: "dd-camera" }), [...t[0] ||= [q("div", { class: "dd-camera-container" }, [q("div", { style: {
|
|
4869
4877
|
width: "101%",
|
|
4870
4878
|
height: "101%"
|
|
4871
|
-
} })], -1)]], 16)) : R(
|
|
4879
|
+
} })], -1)]], 16)) : R(Il) ? (G(), K("embed", J({ key: 2 }, e.$attrs, {
|
|
4872
4880
|
class: "dd-camera",
|
|
4873
4881
|
type: "application/view",
|
|
4874
|
-
comp_type:
|
|
4875
|
-
}), null, 16)) : R(
|
|
4882
|
+
comp_type: vu
|
|
4883
|
+
}), null, 16)) : R(Rl) ? (G(), K("embed", J({ key: 3 }, e.$attrs, {
|
|
4876
4884
|
class: "dd-camera",
|
|
4877
|
-
type:
|
|
4885
|
+
type: vu
|
|
4878
4886
|
}), null, 16)) : zs("", !0);
|
|
4879
4887
|
}
|
|
4880
|
-
},
|
|
4888
|
+
}, bu = /* @__PURE__ */ X({ default: () => xu }), xu = $(yu), Su = { class: "dd-checkbox-wrapper" }, Cu = {
|
|
4881
4889
|
__name: "Checkbox",
|
|
4882
4890
|
props: {
|
|
4883
4891
|
id: { type: String },
|
|
@@ -4907,7 +4915,7 @@ var uu = {
|
|
|
4907
4915
|
return (t, n) => (G(), K("div", J(t.$attrs, {
|
|
4908
4916
|
class: "dd-checkbox",
|
|
4909
4917
|
onClick: o
|
|
4910
|
-
}), [q("div",
|
|
4918
|
+
}), [q("div", Su, [q("div", {
|
|
4911
4919
|
class: qe(["dd-checkbox-input", {
|
|
4912
4920
|
"dd-checkbox-input-checked": R(i),
|
|
4913
4921
|
"dd-checkbox-input-disabled": e.disabled
|
|
@@ -4915,7 +4923,7 @@ var uu = {
|
|
|
4915
4923
|
style: P(R(a))
|
|
4916
4924
|
}, null, 6)])], 16));
|
|
4917
4925
|
}
|
|
4918
|
-
},
|
|
4926
|
+
}, wu = /* @__PURE__ */ X({ default: () => Tu }), Tu = $(Cu), Eu = ["id"], Du = {
|
|
4919
4927
|
__name: "CheckboxGroup",
|
|
4920
4928
|
props: {
|
|
4921
4929
|
id: { type: String },
|
|
@@ -4938,17 +4946,17 @@ var uu = {
|
|
|
4938
4946
|
return B("selected", r), B("selectValue", i), (t, n) => (G(), K("div", J({ id: e.id }, t.$attrs, {
|
|
4939
4947
|
class: "dd-checkbox-group",
|
|
4940
4948
|
onClick: o
|
|
4941
|
-
}), [U(t.$slots, "default")], 16,
|
|
4949
|
+
}), [U(t.$slots, "default")], 16, Eu));
|
|
4942
4950
|
}
|
|
4943
|
-
},
|
|
4944
|
-
function
|
|
4951
|
+
}, Ou = /* @__PURE__ */ X({ default: () => ku }), ku = $(Du);
|
|
4952
|
+
function Au(e, t) {
|
|
4945
4953
|
H(() => {
|
|
4946
4954
|
e.value && e.value.addEventListener("click", t);
|
|
4947
4955
|
}), ea(() => {
|
|
4948
4956
|
e.value && e.value.removeEventListener("click", t);
|
|
4949
4957
|
});
|
|
4950
4958
|
}
|
|
4951
|
-
function
|
|
4959
|
+
function ju(e, t, n = 350, r = 10) {
|
|
4952
4960
|
let i = /* @__PURE__ */ L(null), a = /* @__PURE__ */ L({
|
|
4953
4961
|
x: 0,
|
|
4954
4962
|
y: 0
|
|
@@ -4973,7 +4981,7 @@ function Au(e, t, n = 350, r = 10) {
|
|
|
4973
4981
|
}
|
|
4974
4982
|
function l(t) {
|
|
4975
4983
|
let n = t.touches[0], c = Math.abs(n.clientX - a.value.x), l = Math.abs(n.clientY - a.value.y);
|
|
4976
|
-
if ((c > r || l > r) && (o.value = !0, i.value &&= (clearTimeout(i.value), null)),
|
|
4984
|
+
if ((c > r || l > r) && (o.value = !0, i.value &&= (clearTimeout(i.value), null)), au(e, "touchmove")) {
|
|
4977
4985
|
if (s.value === "off") {
|
|
4978
4986
|
t.cancelable && t.preventDefault();
|
|
4979
4987
|
return;
|
|
@@ -5007,14 +5015,14 @@ function Au(e, t, n = 350, r = 10) {
|
|
|
5007
5015
|
info: e
|
|
5008
5016
|
});
|
|
5009
5017
|
}
|
|
5010
|
-
let p =
|
|
5018
|
+
let p = au(e, "touchstart"), m = au(e, "touchmove"), h = au(e, "touchend"), g = au(e, "touchcancel");
|
|
5011
5019
|
H(() => {
|
|
5012
5020
|
t.value && (t.value.addEventListener("touchstart", c, { passive: !p }), t.value.addEventListener("touchmove", l, { passive: !m }), t.value.addEventListener("touchend", d, { passive: !h }), t.value.addEventListener("touchcancel", f, { passive: !g }));
|
|
5013
5021
|
}), ea(() => {
|
|
5014
5022
|
t.value && (t.value.removeEventListener("touchstart", c, { passive: !p }), t.value.removeEventListener("touchmove", l, { passive: !m }), t.value.removeEventListener("touchend", d, { passive: !h }), t.value.removeEventListener("touchcancel", f, { passive: !g }));
|
|
5015
5023
|
});
|
|
5016
5024
|
}
|
|
5017
|
-
var
|
|
5025
|
+
var Mu = ["src", "loading"], Nu = {
|
|
5018
5026
|
__name: "Image",
|
|
5019
5027
|
props: {
|
|
5020
5028
|
src: {
|
|
@@ -5088,12 +5096,12 @@ var ju = ["src", "loading"], Mu = {
|
|
|
5088
5096
|
detail: { errMsg: t.src }
|
|
5089
5097
|
});
|
|
5090
5098
|
}
|
|
5091
|
-
return
|
|
5099
|
+
return iu(o, "tap") && Au(a, (e) => {
|
|
5092
5100
|
t.disabled || (t.hoverStopPropagation && e.stopPropagation(), Q("tap", {
|
|
5093
5101
|
event: e,
|
|
5094
5102
|
info: o
|
|
5095
5103
|
}));
|
|
5096
|
-
}), (
|
|
5104
|
+
}), (iu(o, "touchstart") || iu(o, "touchmove") || iu(o, "touchend") || iu(o, "touchcancel") || iu(o, "longpress")) && ju(o, a), (n, o) => (G(), K("span", J({
|
|
5097
5105
|
ref_key: "conRef",
|
|
5098
5106
|
ref: a
|
|
5099
5107
|
}, n.$attrs, { class: "dd-image" }), [q("img", {
|
|
@@ -5106,9 +5114,9 @@ var ju = ["src", "loading"], Mu = {
|
|
|
5106
5114
|
loading: t.lazyLoad ? "lazy" : "eager",
|
|
5107
5115
|
onLoad: c,
|
|
5108
5116
|
onError: u
|
|
5109
|
-
}, null, 42,
|
|
5117
|
+
}, null, 42, Mu)], 16));
|
|
5110
5118
|
}
|
|
5111
|
-
},
|
|
5119
|
+
}, Pu = {
|
|
5112
5120
|
__name: "CoverImage",
|
|
5113
5121
|
props: { src: {
|
|
5114
5122
|
type: String,
|
|
@@ -5116,11 +5124,11 @@ var ju = ["src", "loading"], Mu = {
|
|
|
5116
5124
|
} },
|
|
5117
5125
|
setup(e) {
|
|
5118
5126
|
let t = e;
|
|
5119
|
-
return Z(), (e, n) => (G(), Es(
|
|
5127
|
+
return Z(), (e, n) => (G(), Es(Nu, J(e.$attrs, { src: t.src }), null, 16, ["src"]));
|
|
5120
5128
|
}
|
|
5121
|
-
},
|
|
5122
|
-
function
|
|
5123
|
-
let r = n.filter((t) =>
|
|
5129
|
+
}, Fu = /* @__PURE__ */ X({ default: () => Iu }), Iu = $(Pu);
|
|
5130
|
+
function Lu(e, t, n) {
|
|
5131
|
+
let r = n.filter((t) => iu(e, t));
|
|
5124
5132
|
if (!r.length) return;
|
|
5125
5133
|
let i = /* @__PURE__ */ new Map();
|
|
5126
5134
|
H(() => {
|
|
@@ -5139,29 +5147,29 @@ function Iu(e, t, n) {
|
|
|
5139
5147
|
}), i.clear());
|
|
5140
5148
|
});
|
|
5141
5149
|
}
|
|
5142
|
-
var
|
|
5150
|
+
var Ru = {
|
|
5143
5151
|
__name: "View",
|
|
5144
5152
|
setup(e) {
|
|
5145
5153
|
let t = Z(), n = /* @__PURE__ */ L(null);
|
|
5146
|
-
return
|
|
5154
|
+
return iu(t, "tap") && Au(n, (e) => {
|
|
5147
5155
|
Q("tap", {
|
|
5148
5156
|
event: e,
|
|
5149
5157
|
info: t
|
|
5150
5158
|
});
|
|
5151
|
-
}), (
|
|
5159
|
+
}), (iu(t, "touchstart") || iu(t, "touchmove") || iu(t, "touchend") || iu(t, "touchcancel") || iu(t, "longpress")) && ju(t, n), Lu(t, n, ["transitionend", "animationend"]), (e, t) => (G(), K("div", J({
|
|
5152
5160
|
ref_key: "viewRef",
|
|
5153
5161
|
ref: n
|
|
5154
5162
|
}, e.$attrs, { class: "dd-view" }), [U(e.$slots, "default")], 16));
|
|
5155
5163
|
}
|
|
5156
|
-
},
|
|
5164
|
+
}, zu = {
|
|
5157
5165
|
__name: "CoverView",
|
|
5158
5166
|
setup(e) {
|
|
5159
|
-
return Z(), (e, t) => (G(), Es(
|
|
5167
|
+
return Z(), (e, t) => (G(), Es(Ru, Je(Fs(e.$attrs)), {
|
|
5160
5168
|
default: ci(() => [U(e.$slots, "default")]),
|
|
5161
5169
|
_: 3
|
|
5162
5170
|
}, 16));
|
|
5163
5171
|
}
|
|
5164
|
-
},
|
|
5172
|
+
}, Bu = /* @__PURE__ */ X({ default: () => Vu }), Vu = $(zu), Hu = {
|
|
5165
5173
|
__name: "Form",
|
|
5166
5174
|
props: {
|
|
5167
5175
|
reportSubmit: {
|
|
@@ -5194,7 +5202,7 @@ var Lu = {
|
|
|
5194
5202
|
}
|
|
5195
5203
|
return B("formEvent", i), (e, t) => (G(), K("span", Je(Fs(e.$attrs)), [U(e.$slots, "default")], 16));
|
|
5196
5204
|
}
|
|
5197
|
-
},
|
|
5205
|
+
}, Uu = /* @__PURE__ */ X({ default: () => Wu }), Wu = $(Hu), Gu = ["title"], Ku = {
|
|
5198
5206
|
__name: "Icon",
|
|
5199
5207
|
props: {
|
|
5200
5208
|
type: {
|
|
@@ -5246,21 +5254,21 @@ var Lu = {
|
|
|
5246
5254
|
}
|
|
5247
5255
|
}), i = /(?:\d+px|\d+rem)$/, a = Y(() => {
|
|
5248
5256
|
let e;
|
|
5249
|
-
return e = t.size ?
|
|
5257
|
+
return e = t.size ? Ul(t.size) : "23px", i.test(e) || (e += "px"), e;
|
|
5250
5258
|
}), o = Y(() => t.color || "initial");
|
|
5251
5259
|
return (e, t) => (G(), K("i", J(e.$attrs, {
|
|
5252
5260
|
title: R(r),
|
|
5253
5261
|
class: ["dd-icon", R(n)]
|
|
5254
|
-
}), null, 16,
|
|
5262
|
+
}), null, 16, Gu));
|
|
5255
5263
|
}
|
|
5256
|
-
},
|
|
5264
|
+
}, qu = /* @__PURE__ */ X({ default: () => Ju }), Ju = $(Ku), Yu = /* @__PURE__ */ X({ default: () => Xu }), Xu = $(Nu), Zu = [
|
|
5257
5265
|
"id",
|
|
5258
5266
|
"type",
|
|
5259
5267
|
"inputmode",
|
|
5260
5268
|
"maxlength",
|
|
5261
5269
|
"value",
|
|
5262
5270
|
"disabled"
|
|
5263
|
-
],
|
|
5271
|
+
], Qu = {
|
|
5264
5272
|
__name: "Input",
|
|
5265
5273
|
props: {
|
|
5266
5274
|
id: { type: String },
|
|
@@ -5382,7 +5390,7 @@ var Lu = {
|
|
|
5382
5390
|
let t = n.placeholderStyle.match(/font-size:([^;]+)/);
|
|
5383
5391
|
t && (e = t[1].trim());
|
|
5384
5392
|
} else n.placeholderStyle && typeof n.placeholderStyle == "object" && Object.prototype.hasOwnProperty.call(n.placeholderStyle, "font-size") && (e = n.placeholderStyle["font-size"]);
|
|
5385
|
-
return e ?
|
|
5393
|
+
return e ? Ul(e) : "inherit";
|
|
5386
5394
|
})(),
|
|
5387
5395
|
fontWeight: (() => {
|
|
5388
5396
|
if (typeof n.placeholderStyle == "string") {
|
|
@@ -5394,7 +5402,7 @@ var Lu = {
|
|
|
5394
5402
|
})), c = V("collectFormValue", void 0);
|
|
5395
5403
|
c?.(n.name, n.value);
|
|
5396
5404
|
let l = /* @__PURE__ */ L(n.value), u = Y(() => l.value === void 0 || l.value === null || l.value === "" || typeof l.value == "string" && l.value.length === 0), d = /* @__PURE__ */ L(null), f = /* @__PURE__ */ L(null), p = { mounted: async (e) => {
|
|
5397
|
-
n.autoFocus && (
|
|
5405
|
+
n.autoFocus && (zl && await jl(540), e.focus());
|
|
5398
5406
|
} };
|
|
5399
5407
|
hi([() => n.focus, () => n.value], ([e, t], [, n]) => {
|
|
5400
5408
|
e && d.value.focus(), n !== t && (l.value = t);
|
|
@@ -5430,11 +5438,11 @@ var Lu = {
|
|
|
5430
5438
|
event: e,
|
|
5431
5439
|
info: h,
|
|
5432
5440
|
detail: { value: t }
|
|
5433
|
-
}), !
|
|
5441
|
+
}), !zl && n.adjustPosition) {
|
|
5434
5442
|
let e = m.value;
|
|
5435
5443
|
if (!e) return;
|
|
5436
|
-
let t =
|
|
5437
|
-
|
|
5444
|
+
let t = ou(e, !0);
|
|
5445
|
+
tu("adjustPosition", {
|
|
5438
5446
|
bridgeId: h.bridgeId,
|
|
5439
5447
|
params: { bottom: t }
|
|
5440
5448
|
});
|
|
@@ -5472,24 +5480,24 @@ var Lu = {
|
|
|
5472
5480
|
value: R(l),
|
|
5473
5481
|
disabled: e.disabled,
|
|
5474
5482
|
onKeydown: g
|
|
5475
|
-
}, null, 40,
|
|
5483
|
+
}, null, 40, Zu), [[p]]), ui(q("div", {
|
|
5476
5484
|
class: qe(["dd-input-placeholder", e.placeholderClass]),
|
|
5477
5485
|
style: P(R(s))
|
|
5478
5486
|
}, st(e.placeholder), 7), [[Fc, R(u)]])], 16));
|
|
5479
5487
|
}
|
|
5480
|
-
},
|
|
5488
|
+
}, $u = /* @__PURE__ */ X({ default: () => ed }), ed = $(Qu), td = {
|
|
5481
5489
|
__name: "KeyboardAccessory",
|
|
5482
5490
|
setup(e) {
|
|
5483
5491
|
return (e, t) => U(e.$slots, "default");
|
|
5484
5492
|
}
|
|
5485
|
-
},
|
|
5493
|
+
}, nd = /* @__PURE__ */ X({ default: () => rd }), rd = $(td), id = ["for"], ad = {
|
|
5486
5494
|
__name: "Label",
|
|
5487
5495
|
props: { for: { type: String } },
|
|
5488
5496
|
setup(e) {
|
|
5489
5497
|
let t = e;
|
|
5490
|
-
return (e, n) => (G(), K("label", J(e.$attrs, { for: t.for }), [U(e.$slots, "default")], 16,
|
|
5498
|
+
return (e, n) => (G(), K("label", J(e.$attrs, { for: t.for }), [U(e.$slots, "default")], 16, id));
|
|
5491
5499
|
}
|
|
5492
|
-
},
|
|
5500
|
+
}, od = /* @__PURE__ */ X({ default: () => sd }), sd = $(ad), cd = ["id"], ld = "native/map", ud = {
|
|
5493
5501
|
__name: "Map",
|
|
5494
5502
|
props: {
|
|
5495
5503
|
id: {
|
|
@@ -5593,15 +5601,15 @@ var Lu = {
|
|
|
5593
5601
|
() => t.showLocation
|
|
5594
5602
|
], ([e, r, i, a, o, s, c, l, u], [d, f, p, m, h, g, _, v, y]) => {
|
|
5595
5603
|
let b = {
|
|
5596
|
-
type:
|
|
5604
|
+
type: ld,
|
|
5597
5605
|
id: t.id
|
|
5598
5606
|
};
|
|
5599
|
-
i !== p && (b.scale = i), a !== m && (b.markers = a), o !== h && (b.polyline = o), s !== g && (b.polygons = s), c !== _ && (b.circles = c), l === v ? (e !== d || r !== f) && (b.longitude = e, b.latitude = r) : (b.includePoints = l, b.longitude = e, b.latitude = r), u !== y && (b.showLocation = u),
|
|
5607
|
+
i !== p && (b.scale = i), a !== m && (b.markers = a), o !== h && (b.polyline = o), s !== g && (b.polygons = s), c !== _ && (b.circles = c), l === v ? (e !== d || r !== f) && (b.longitude = e, b.latitude = r) : (b.includePoints = l, b.longitude = e, b.latitude = r), u !== y && (b.showLocation = u), tu("propsUpdate", {
|
|
5600
5608
|
bridgeId: n.bridgeId,
|
|
5601
5609
|
params: b
|
|
5602
5610
|
});
|
|
5603
5611
|
}), Xi(() => {
|
|
5604
|
-
|
|
5612
|
+
nu("bindcallouttap", (e) => {
|
|
5605
5613
|
Q("callouttap", {
|
|
5606
5614
|
type: "callouttap",
|
|
5607
5615
|
info: n,
|
|
@@ -5612,7 +5620,7 @@ var Lu = {
|
|
|
5612
5620
|
latitude: e.latitude
|
|
5613
5621
|
}
|
|
5614
5622
|
});
|
|
5615
|
-
}),
|
|
5623
|
+
}), nu("bindmarkertap", (e) => {
|
|
5616
5624
|
Q("markertap", {
|
|
5617
5625
|
type: "markertap",
|
|
5618
5626
|
info: n,
|
|
@@ -5623,22 +5631,22 @@ var Lu = {
|
|
|
5623
5631
|
latitude: e.latitude
|
|
5624
5632
|
}
|
|
5625
5633
|
});
|
|
5626
|
-
}),
|
|
5634
|
+
}), nu("bindregionchange", (e) => {
|
|
5627
5635
|
Q("regionchange", {
|
|
5628
5636
|
type: "regionchange",
|
|
5629
5637
|
info: n,
|
|
5630
5638
|
detail: e
|
|
5631
5639
|
});
|
|
5632
|
-
}),
|
|
5640
|
+
}), nu("bindtap", (e) => {
|
|
5633
5641
|
Q("tap", {
|
|
5634
5642
|
type: "tap",
|
|
5635
5643
|
info: n,
|
|
5636
5644
|
detail: { markerId: e.markerId }
|
|
5637
5645
|
});
|
|
5638
|
-
}),
|
|
5646
|
+
}), tu("componentMount", {
|
|
5639
5647
|
bridgeId: n.bridgeId,
|
|
5640
5648
|
params: {
|
|
5641
|
-
type:
|
|
5649
|
+
type: ld,
|
|
5642
5650
|
id: t.id,
|
|
5643
5651
|
longitude: t.longitude,
|
|
5644
5652
|
latitude: t.latitude,
|
|
@@ -5652,10 +5660,10 @@ var Lu = {
|
|
|
5652
5660
|
}
|
|
5653
5661
|
});
|
|
5654
5662
|
}), $i(() => {
|
|
5655
|
-
|
|
5663
|
+
tu("componentUnmount", {
|
|
5656
5664
|
bridgeId: n.bridgeId,
|
|
5657
5665
|
params: {
|
|
5658
|
-
type:
|
|
5666
|
+
type: ld,
|
|
5659
5667
|
id: t.id,
|
|
5660
5668
|
longitude: t.longitude,
|
|
5661
5669
|
latitude: t.latitude,
|
|
@@ -5667,23 +5675,23 @@ var Lu = {
|
|
|
5667
5675
|
includePoints: t.includePoints,
|
|
5668
5676
|
showLocation: t.showLocation
|
|
5669
5677
|
}
|
|
5670
|
-
}),
|
|
5671
|
-
}), (t, n) => R(
|
|
5678
|
+
}), ru("bindcallouttap"), ru("bindmarkertap"), ru("bindregionchange"), ru("bindtap");
|
|
5679
|
+
}), (t, n) => R(zl) ? (G(), K("div", J({ key: 0 }, t.$attrs, { class: "dd-map dd-map-desktop" }), " 未实现组件 ", 16)) : R(Ll) ? (G(), K("div", J({ key: 1 }, t.$attrs, { class: "dd-map" }), [...n[0] ||= [q("div", { class: "dd-map-container" }, [q("div", { style: {
|
|
5672
5680
|
width: "101%",
|
|
5673
5681
|
height: "101%"
|
|
5674
|
-
} })], -1)]], 16)) : R(
|
|
5682
|
+
} })], -1)]], 16)) : R(Il) ? (G(), K("embed", J({ key: 2 }, t.$attrs, {
|
|
5675
5683
|
class: "dd-map",
|
|
5676
5684
|
type: "application/view",
|
|
5677
|
-
comp_type:
|
|
5678
|
-
}), null, 16)) : R(
|
|
5685
|
+
comp_type: ld
|
|
5686
|
+
}), null, 16)) : R(Rl) ? (G(), K("embed", J({
|
|
5679
5687
|
key: 3,
|
|
5680
5688
|
id: e.id
|
|
5681
5689
|
}, t.$attrs, {
|
|
5682
5690
|
class: "dd-map",
|
|
5683
|
-
type:
|
|
5684
|
-
}), null, 16,
|
|
5691
|
+
type: ld
|
|
5692
|
+
}), null, 16, cd)) : zs("", !0);
|
|
5685
5693
|
}
|
|
5686
|
-
},
|
|
5694
|
+
}, dd = /* @__PURE__ */ X({ default: () => fd }), fd = $(ud), pd = {
|
|
5687
5695
|
__name: "MovableArea",
|
|
5688
5696
|
props: { scaleArea: {
|
|
5689
5697
|
type: Boolean,
|
|
@@ -5703,7 +5711,7 @@ var Lu = {
|
|
|
5703
5711
|
onClick: n
|
|
5704
5712
|
}), [U(e.$slots, "default")], 16));
|
|
5705
5713
|
}
|
|
5706
|
-
},
|
|
5714
|
+
}, md = /* @__PURE__ */ X({ default: () => hd }), hd = $(pd), gd = {
|
|
5707
5715
|
__name: "MovableView",
|
|
5708
5716
|
props: {
|
|
5709
5717
|
direction: {
|
|
@@ -5892,7 +5900,7 @@ var Lu = {
|
|
|
5892
5900
|
})
|
|
5893
5901
|
}, [U(t.$slots, "default")], 4)], 16));
|
|
5894
5902
|
}
|
|
5895
|
-
},
|
|
5903
|
+
}, _d = /* @__PURE__ */ X({ default: () => vd }), vd = $(gd), yd = {
|
|
5896
5904
|
__name: "NavigationBar",
|
|
5897
5905
|
props: {
|
|
5898
5906
|
title: {
|
|
@@ -5934,10 +5942,10 @@ var Lu = {
|
|
|
5934
5942
|
setup(e) {
|
|
5935
5943
|
let t = e, n = Z();
|
|
5936
5944
|
return H(() => {
|
|
5937
|
-
|
|
5945
|
+
tu("setNavigationBarTitle", {
|
|
5938
5946
|
bridgeId: n.bridgeId,
|
|
5939
5947
|
params: { title: t.title }
|
|
5940
|
-
}),
|
|
5948
|
+
}), tu("setNavigationBarColor", {
|
|
5941
5949
|
bridgeId: n.bridgeId,
|
|
5942
5950
|
params: {
|
|
5943
5951
|
frontColor: t.frontColor,
|
|
@@ -5950,7 +5958,7 @@ var Lu = {
|
|
|
5950
5958
|
});
|
|
5951
5959
|
}), (e, t) => U(e.$slots, "default");
|
|
5952
5960
|
}
|
|
5953
|
-
},
|
|
5961
|
+
}, bd = /* @__PURE__ */ X({ default: () => xd }), xd = $(yd), Sd = {
|
|
5954
5962
|
__name: "Navigator",
|
|
5955
5963
|
props: {
|
|
5956
5964
|
target: {
|
|
@@ -5998,52 +6006,52 @@ var Lu = {
|
|
|
5998
6006
|
setup(e) {
|
|
5999
6007
|
let t = e, n = /* @__PURE__ */ L(!1);
|
|
6000
6008
|
async function r(e) {
|
|
6001
|
-
t.hoverStopPropagation && e.stopPropagation(), await
|
|
6009
|
+
t.hoverStopPropagation && e.stopPropagation(), await jl(t.hoverStartTime), n.value = !0;
|
|
6002
6010
|
}
|
|
6003
6011
|
async function i() {
|
|
6004
|
-
await
|
|
6012
|
+
await jl(t.hoverStayTime), n.value = !1;
|
|
6005
6013
|
}
|
|
6006
6014
|
let a = Z();
|
|
6007
6015
|
function o() {
|
|
6008
6016
|
let { openType: e, target: n, url: r, redirect: i } = t;
|
|
6009
6017
|
if (!r?.includes("javascript:")) {
|
|
6010
6018
|
if (i) {
|
|
6011
|
-
|
|
6019
|
+
tu("redirectTo", {
|
|
6012
6020
|
bridgeId: a.bridgeId,
|
|
6013
|
-
params: { url:
|
|
6021
|
+
params: { url: Vl(a.path, r) }
|
|
6014
6022
|
});
|
|
6015
6023
|
return;
|
|
6016
6024
|
}
|
|
6017
6025
|
switch (e) {
|
|
6018
6026
|
case "navigate":
|
|
6019
|
-
|
|
6027
|
+
tu("navigateTo", {
|
|
6020
6028
|
bridgeId: a.bridgeId,
|
|
6021
|
-
params: { url:
|
|
6029
|
+
params: { url: Vl(a.path, r) }
|
|
6022
6030
|
});
|
|
6023
6031
|
break;
|
|
6024
6032
|
case "redirect":
|
|
6025
|
-
|
|
6033
|
+
tu("redirectTo", {
|
|
6026
6034
|
bridgeId: a.bridgeId,
|
|
6027
|
-
params: { url:
|
|
6035
|
+
params: { url: Vl(a.path, r) }
|
|
6028
6036
|
});
|
|
6029
6037
|
break;
|
|
6030
6038
|
case "switchTab":
|
|
6031
|
-
|
|
6039
|
+
tu("switchTab", {
|
|
6032
6040
|
bridgeId: a.bridgeId,
|
|
6033
|
-
params: { url:
|
|
6041
|
+
params: { url: Vl(a.path, r) }
|
|
6034
6042
|
});
|
|
6035
6043
|
break;
|
|
6036
6044
|
case "reLaunch":
|
|
6037
|
-
|
|
6045
|
+
tu("reLaunch", {
|
|
6038
6046
|
bridgeId: a.bridgeId,
|
|
6039
|
-
params: { url:
|
|
6047
|
+
params: { url: Vl(a.path, r) }
|
|
6040
6048
|
});
|
|
6041
6049
|
break;
|
|
6042
6050
|
case "navigateBack":
|
|
6043
|
-
|
|
6051
|
+
tu("navigateBack", { bridgeId: a.bridgeId });
|
|
6044
6052
|
break;
|
|
6045
6053
|
case "exit":
|
|
6046
|
-
n === "miniProgram" &&
|
|
6054
|
+
n === "miniProgram" && tu("exit", { bridgeId: a.bridgeId });
|
|
6047
6055
|
break;
|
|
6048
6056
|
}
|
|
6049
6057
|
}
|
|
@@ -6055,13 +6063,13 @@ var Lu = {
|
|
|
6055
6063
|
onMouseup: i
|
|
6056
6064
|
}), [U(t.$slots, "default")], 16));
|
|
6057
6065
|
}
|
|
6058
|
-
},
|
|
6066
|
+
}, Cd = /* @__PURE__ */ X({ default: () => wd }), wd = $(Sd), Td = {
|
|
6059
6067
|
__name: "OpenData",
|
|
6060
6068
|
props: {},
|
|
6061
6069
|
setup(e) {
|
|
6062
6070
|
return (e, t) => (G(), K("div", Je(Fs(e.$attrs)), null, 16));
|
|
6063
6071
|
}
|
|
6064
|
-
},
|
|
6072
|
+
}, Ed = /* @__PURE__ */ X({ default: () => Dd }), Dd = $(Td), Od = {
|
|
6065
6073
|
__name: "PageMeta",
|
|
6066
6074
|
props: {
|
|
6067
6075
|
backgroundTextStyle: {
|
|
@@ -6110,10 +6118,10 @@ var Lu = {
|
|
|
6110
6118
|
setup(e) {
|
|
6111
6119
|
let t = e, n = Z();
|
|
6112
6120
|
return H(() => {
|
|
6113
|
-
|
|
6121
|
+
tu("setBackgroundTextStyle", {
|
|
6114
6122
|
bridgeId: n.bridgeId,
|
|
6115
6123
|
params: { textStyle: t.backgroundTextStyle }
|
|
6116
|
-
}),
|
|
6124
|
+
}), tu("setBackgroundColor", {
|
|
6117
6125
|
bridgeId: n.bridgeId,
|
|
6118
6126
|
params: {
|
|
6119
6127
|
backgroundColor: t.backgroundColor,
|
|
@@ -6123,11 +6131,11 @@ var Lu = {
|
|
|
6123
6131
|
});
|
|
6124
6132
|
}), (e, t) => U(e.$slots, "default");
|
|
6125
6133
|
}
|
|
6126
|
-
},
|
|
6134
|
+
}, kd = /* @__PURE__ */ X({ default: () => Ad }), Ad = $(Od), jd = (e, t) => {
|
|
6127
6135
|
let n = e.__vccOpts || e;
|
|
6128
6136
|
for (let [e, r] of t) n[e] = r;
|
|
6129
6137
|
return n;
|
|
6130
|
-
},
|
|
6138
|
+
}, Md = { class: "dd-picker-column" }, Nd = 44, Pd = /*#__PURE__*/ jd({
|
|
6131
6139
|
__name: "PickerColumn",
|
|
6132
6140
|
props: {
|
|
6133
6141
|
options: {
|
|
@@ -6153,36 +6161,36 @@ var Lu = {
|
|
|
6153
6161
|
});
|
|
6154
6162
|
let l = () => {
|
|
6155
6163
|
if (!i.value) return;
|
|
6156
|
-
let e = -a.value *
|
|
6164
|
+
let e = -a.value * Nd;
|
|
6157
6165
|
i.value.style.transform = `translateY(${e}px)`, i.value.style.transition = "transform 0.3s ease";
|
|
6158
6166
|
}, u = (e) => {
|
|
6159
6167
|
c.value = !0, o.value = e.touches[0].clientY, s.value = e.touches[0].clientY, i.value && (i.value.style.transition = "none");
|
|
6160
6168
|
}, d = (e) => {
|
|
6161
6169
|
if (!c.value) return;
|
|
6162
6170
|
e.preventDefault(), s.value = e.touches[0].clientY;
|
|
6163
|
-
let t = s.value - o.value, n = -a.value *
|
|
6171
|
+
let t = s.value - o.value, n = -a.value * Nd + t;
|
|
6164
6172
|
i.value && (i.value.style.transform = `translateY(${n}px)`);
|
|
6165
6173
|
}, f = (e) => {
|
|
6166
6174
|
if (!c.value) return;
|
|
6167
6175
|
c.value = !1;
|
|
6168
|
-
let t = s.value - o.value, i = Math.round(t /
|
|
6176
|
+
let t = s.value - o.value, i = Math.round(t / Nd), u = a.value - i;
|
|
6169
6177
|
u = Math.max(0, Math.min(u, n.options.length - 1)), u !== a.value && (a.value = u, r("change", e, u)), l();
|
|
6170
6178
|
}, p = (e) => {
|
|
6171
6179
|
c.value = !0, o.value = e.clientY, s.value = e.clientY, i.value && (i.value.style.transition = "none");
|
|
6172
6180
|
let t = (e) => {
|
|
6173
6181
|
if (!c.value) return;
|
|
6174
6182
|
s.value = e.clientY;
|
|
6175
|
-
let t = s.value - o.value, n = -a.value *
|
|
6183
|
+
let t = s.value - o.value, n = -a.value * Nd + t;
|
|
6176
6184
|
i.value && (i.value.style.transform = `translateY(${n}px)`);
|
|
6177
6185
|
}, u = (e) => {
|
|
6178
6186
|
if (!c.value) return;
|
|
6179
6187
|
c.value = !1;
|
|
6180
|
-
let i = s.value - o.value, d = Math.round(i /
|
|
6188
|
+
let i = s.value - o.value, d = Math.round(i / Nd), f = a.value - d;
|
|
6181
6189
|
f = Math.max(0, Math.min(f, n.options.length - 1)), f !== a.value && (a.value = f, r("change", e, f)), l(), document.removeEventListener("mousemove", t), document.removeEventListener("mouseup", u);
|
|
6182
6190
|
};
|
|
6183
6191
|
document.addEventListener("mousemove", t), document.addEventListener("mouseup", u);
|
|
6184
6192
|
};
|
|
6185
|
-
return (t, n) => (G(), K("div",
|
|
6193
|
+
return (t, n) => (G(), K("div", Md, [
|
|
6186
6194
|
n[0] ||= q("div", { class: "dd-picker-column-mask" }, null, -1),
|
|
6187
6195
|
n[1] ||= q("div", { class: "dd-picker-column-indicator" }, null, -1),
|
|
6188
6196
|
q("div", {
|
|
@@ -6199,16 +6207,16 @@ var Lu = {
|
|
|
6199
6207
|
}, st(e), 3))), 128))], 544)
|
|
6200
6208
|
]));
|
|
6201
6209
|
}
|
|
6202
|
-
}, [["__scopeId", "data-v-61501610"]]),
|
|
6210
|
+
}, [["__scopeId", "data-v-61501610"]]), Fd = { class: "dd-picker-header" }, Id = { class: "dd-picker-title" }, Ld = { class: "dd-picker-body" }, Rd = {
|
|
6203
6211
|
key: 1,
|
|
6204
6212
|
class: "dd-picker-columns"
|
|
6205
|
-
},
|
|
6213
|
+
}, zd = {
|
|
6206
6214
|
key: 2,
|
|
6207
6215
|
class: "dd-picker-columns"
|
|
6208
|
-
},
|
|
6216
|
+
}, Bd = {
|
|
6209
6217
|
key: 3,
|
|
6210
6218
|
class: "dd-picker-columns"
|
|
6211
|
-
},
|
|
6219
|
+
}, Vd = {
|
|
6212
6220
|
__name: "Picker",
|
|
6213
6221
|
props: {
|
|
6214
6222
|
headerText: { type: String },
|
|
@@ -6376,22 +6384,22 @@ var Lu = {
|
|
|
6376
6384
|
}, [q("div", {
|
|
6377
6385
|
class: "dd-picker-container",
|
|
6378
6386
|
onClick: d
|
|
6379
|
-
}, [q("div",
|
|
6387
|
+
}, [q("div", Fd, [
|
|
6380
6388
|
q("div", {
|
|
6381
6389
|
class: "dd-picker-action dd-picker-cancel",
|
|
6382
6390
|
onClick: s
|
|
6383
6391
|
}, "取消"),
|
|
6384
|
-
q("div",
|
|
6392
|
+
q("div", Id, st(e.headerText || ""), 1),
|
|
6385
6393
|
q("div", {
|
|
6386
6394
|
class: "dd-picker-action dd-picker-confirm",
|
|
6387
6395
|
onClick: l
|
|
6388
6396
|
}, "确定")
|
|
6389
|
-
]), q("div",
|
|
6397
|
+
]), q("div", Ld, [e.mode === "selector" ? (G(), Es(Pd, {
|
|
6390
6398
|
key: 0,
|
|
6391
6399
|
options: R(f),
|
|
6392
6400
|
value: R(i),
|
|
6393
6401
|
onChange: _
|
|
6394
|
-
}, null, 8, ["options", "value"])) : e.mode === "multiSelector" ? (G(), K("div",
|
|
6402
|
+
}, null, 8, ["options", "value"])) : e.mode === "multiSelector" ? (G(), K("div", Rd, [(G(!0), K(W, null, pa(R(f), (e, t) => (G(), Es(Pd, {
|
|
6395
6403
|
key: `column-${t}`,
|
|
6396
6404
|
options: e,
|
|
6397
6405
|
value: R(a)[t] ?? 0,
|
|
@@ -6400,7 +6408,7 @@ var Lu = {
|
|
|
6400
6408
|
"options",
|
|
6401
6409
|
"value",
|
|
6402
6410
|
"onChange"
|
|
6403
|
-
]))), 128))])) : e.mode === "time" ? (G(), K("div",
|
|
6411
|
+
]))), 128))])) : e.mode === "time" ? (G(), K("div", zd, [(G(!0), K(W, null, pa(R(f), (e, t) => (G(), Es(Pd, {
|
|
6404
6412
|
key: t,
|
|
6405
6413
|
options: e,
|
|
6406
6414
|
value: v(t),
|
|
@@ -6409,7 +6417,7 @@ var Lu = {
|
|
|
6409
6417
|
"options",
|
|
6410
6418
|
"value",
|
|
6411
6419
|
"onChange"
|
|
6412
|
-
]))), 128))])) : e.mode === "date" ? (G(), K("div",
|
|
6420
|
+
]))), 128))])) : e.mode === "date" ? (G(), K("div", Bd, [(G(!0), K(W, null, pa(R(f), (e, t) => (G(), Es(Pd, {
|
|
6413
6421
|
key: t,
|
|
6414
6422
|
options: e,
|
|
6415
6423
|
value: b(t),
|
|
@@ -6420,7 +6428,7 @@ var Lu = {
|
|
|
6420
6428
|
"onChange"
|
|
6421
6429
|
]))), 128))])) : zs("", !0)])])])) : zs("", !0)], 64));
|
|
6422
6430
|
}
|
|
6423
|
-
},
|
|
6431
|
+
}, Hd = /* @__PURE__ */ X({ default: () => Ud }), Ud = $(Vd), Wd = {
|
|
6424
6432
|
__name: "PickerView",
|
|
6425
6433
|
props: {
|
|
6426
6434
|
value: { type: Array },
|
|
@@ -6455,10 +6463,10 @@ var Lu = {
|
|
|
6455
6463
|
ref: r
|
|
6456
6464
|
}, e.$attrs, { class: "dd-picker-view" }), [U(e.$slots, "default")], 16));
|
|
6457
6465
|
}
|
|
6458
|
-
},
|
|
6466
|
+
}, Gd = /* @__PURE__ */ X({ default: () => Kd }), Kd = $(Wd), qd = {
|
|
6459
6467
|
"aria-label": "上下滚动进行选择",
|
|
6460
6468
|
"aria-dropeffect": "move"
|
|
6461
|
-
},
|
|
6469
|
+
}, Jd = {
|
|
6462
6470
|
__name: "PickerViewColumn",
|
|
6463
6471
|
setup(e) {
|
|
6464
6472
|
let t = /* @__PURE__ */ L(null), n = /* @__PURE__ */ L(null), r = /* @__PURE__ */ L(null), i = /* @__PURE__ */ L(0), a = /* @__PURE__ */ L("0.2s"), o = V("pickerItemStyle", {}), s = V("pickerEvent", void 0), c = V("getPickerHeight", () => 0), l = V("getItemIndex", () => 0)(), u = V("setPickerValue", void 0), d = V("itemValue", Array.from({ length: l }).fill(0)), f = /* @__PURE__ */ L(o.indicatorClass), p = /* @__PURE__ */ L(o.maskClass), m = /* @__PURE__ */ L("34px"), h = !1, g = 0, _ = 0, v = wa(), y = v.default ? Math.max(v.default()[0].children.length - 1, 0) : 0, b = /* @__PURE__ */ L(Math.min(d[l], y)), x = 0;
|
|
@@ -6486,7 +6494,7 @@ var Lu = {
|
|
|
6486
6494
|
Array.from(l).forEach((e) => {
|
|
6487
6495
|
e.style.height = `${x}px`;
|
|
6488
6496
|
}), r.value.style.paddingTop = `${s}px`, a.value = "0s", i.value = -b.value * x;
|
|
6489
|
-
}), (e, o) => (G(), K("div", J(e.$attrs, { class: "dd-picker-view-column" }), [q("div",
|
|
6497
|
+
}), (e, o) => (G(), K("div", J(e.$attrs, { class: "dd-picker-view-column" }), [q("div", qd, [
|
|
6490
6498
|
q("div", {
|
|
6491
6499
|
ref_key: "maskRef",
|
|
6492
6500
|
ref: n,
|
|
@@ -6506,17 +6514,17 @@ var Lu = {
|
|
|
6506
6514
|
transform: `translateY(${R(i)}px)`
|
|
6507
6515
|
}),
|
|
6508
6516
|
onTouchstart: S,
|
|
6509
|
-
onTouchmove:
|
|
6510
|
-
onTouchend:
|
|
6517
|
+
onTouchmove: _l(ee, ["prevent"]),
|
|
6518
|
+
onTouchend: _l(te, ["prevent"]),
|
|
6511
6519
|
onTouchcancel: te,
|
|
6512
6520
|
onMousedown: S,
|
|
6513
|
-
onMousemove:
|
|
6521
|
+
onMousemove: _l(ee, ["prevent"]),
|
|
6514
6522
|
onMouseup: te,
|
|
6515
6523
|
onMouseleave: te
|
|
6516
6524
|
}, [U(e.$slots, "default")], 36)
|
|
6517
6525
|
])], 16));
|
|
6518
6526
|
}
|
|
6519
|
-
},
|
|
6527
|
+
}, Yd = /* @__PURE__ */ X({ default: () => Xd }), Xd = $(Jd), Zd = ["aria-valuenow"], Qd = ["hidden"], $d = {
|
|
6520
6528
|
__name: "Progress",
|
|
6521
6529
|
props: {
|
|
6522
6530
|
percent: {
|
|
@@ -6577,7 +6585,7 @@ var Lu = {
|
|
|
6577
6585
|
setup(e) {
|
|
6578
6586
|
let t = e, n = Y(() => t.active ? 0 : `${t.percent}%`), r = Y(() => `${Number(t.duration) * Number(t.percent)}ms`), i = /* @__PURE__ */ L(null);
|
|
6579
6587
|
return H(async () => {
|
|
6580
|
-
t.active && (
|
|
6588
|
+
t.active && (zl && await jl(540), i.value.style.setProperty("--percent", `${t.percent}%`));
|
|
6581
6589
|
}), (t, a) => (G(), K("div", J(t.$attrs, { class: "dd-progress" }), [q("div", {
|
|
6582
6590
|
class: "dd-progress-bar",
|
|
6583
6591
|
"aria-label": "",
|
|
@@ -6596,13 +6604,13 @@ var Lu = {
|
|
|
6596
6604
|
"--duration": R(r),
|
|
6597
6605
|
backgroundColor: e.activeColor || e.color
|
|
6598
6606
|
})
|
|
6599
|
-
}, null, 4)], 12,
|
|
6607
|
+
}, null, 4)], 12, Zd), q("p", {
|
|
6600
6608
|
class: "dd-progress-info",
|
|
6601
6609
|
style: P({ fontSize: e.fontSize }),
|
|
6602
6610
|
hidden: !e.showInfo
|
|
6603
|
-
}, st(e.percent) + "% ", 13,
|
|
6611
|
+
}, st(e.percent) + "% ", 13, Qd)], 16));
|
|
6604
6612
|
}
|
|
6605
|
-
},
|
|
6613
|
+
}, ef = /* @__PURE__ */ X({ default: () => tf }), tf = $($d), nf = { class: "dd-radio-wrapper" }, rf = {
|
|
6606
6614
|
__name: "Radio",
|
|
6607
6615
|
props: {
|
|
6608
6616
|
id: { type: String },
|
|
@@ -6642,7 +6650,7 @@ var Lu = {
|
|
|
6642
6650
|
return (t, n) => (G(), K("div", J(t.$attrs, {
|
|
6643
6651
|
class: "dd-radio",
|
|
6644
6652
|
onClick: c
|
|
6645
|
-
}), [q("div",
|
|
6653
|
+
}), [q("div", nf, [q("div", {
|
|
6646
6654
|
class: qe(["dd-radio-input", {
|
|
6647
6655
|
"dd-radio-input-checked": R(i),
|
|
6648
6656
|
"dd-radio-input-disabled": e.disabled
|
|
@@ -6650,7 +6658,7 @@ var Lu = {
|
|
|
6650
6658
|
style: P(R(a))
|
|
6651
6659
|
}, null, 6), U(t.$slots, "default")])], 16));
|
|
6652
6660
|
}
|
|
6653
|
-
},
|
|
6661
|
+
}, af = /* @__PURE__ */ X({ default: () => of }), of = $(rf), sf = ["id"], cf = {
|
|
6654
6662
|
__name: "RadioGroup",
|
|
6655
6663
|
props: {
|
|
6656
6664
|
id: { type: String },
|
|
@@ -6669,9 +6677,9 @@ var Lu = {
|
|
|
6669
6677
|
detail: { value: r.value }
|
|
6670
6678
|
});
|
|
6671
6679
|
}
|
|
6672
|
-
return B("selected", r), B("selectValue", i), B("handleValueChange", o), (t, n) => (G(), K("div", J({ id: e.id }, t.$attrs, { class: "dd-radio-group" }), [U(t.$slots, "default")], 16,
|
|
6680
|
+
return B("selected", r), B("selectValue", i), B("handleValueChange", o), (t, n) => (G(), K("div", J({ id: e.id }, t.$attrs, { class: "dd-radio-group" }), [U(t.$slots, "default")], 16, sf));
|
|
6673
6681
|
}
|
|
6674
|
-
},
|
|
6682
|
+
}, lf = /* @__PURE__ */ X({ default: () => uf }), uf = $(cf), df = ["innerHTML"], ff = {
|
|
6675
6683
|
__name: "RichText",
|
|
6676
6684
|
props: {
|
|
6677
6685
|
nodes: {
|
|
@@ -6732,9 +6740,9 @@ var Lu = {
|
|
|
6732
6740
|
}), (t, r) => (G(), K("div", J(t.$attrs, {
|
|
6733
6741
|
class: { "dd-rich-text": e.userSelect },
|
|
6734
6742
|
innerHTML: R(n)
|
|
6735
|
-
}), null, 16,
|
|
6743
|
+
}), null, 16, df));
|
|
6736
6744
|
}
|
|
6737
|
-
},
|
|
6745
|
+
}, pf = /* @__PURE__ */ X({ default: () => mf }), mf = $(ff), hf = {
|
|
6738
6746
|
__name: "RootPortal",
|
|
6739
6747
|
props: { enable: {
|
|
6740
6748
|
type: Boolean,
|
|
@@ -6759,7 +6767,7 @@ var Lu = {
|
|
|
6759
6767
|
style: R(i)
|
|
6760
6768
|
}, t.$attrs), [U(t.$slots, "default")], 16)])) : (G(), K("div", J({ key: 0 }, t.$attrs, { class: "dd-root-portal-disabled" }), [U(t.$slots, "default")], 16));
|
|
6761
6769
|
}
|
|
6762
|
-
},
|
|
6770
|
+
}, gf = /* @__PURE__ */ X({ default: () => _f }), _f = $(hf), vf = {
|
|
6763
6771
|
__name: "ScrollView",
|
|
6764
6772
|
props: {
|
|
6765
6773
|
scrollX: {
|
|
@@ -6908,10 +6916,10 @@ var Lu = {
|
|
|
6908
6916
|
onTouchmove: l
|
|
6909
6917
|
}), [U(e.$slots, "default")], 16));
|
|
6910
6918
|
}
|
|
6911
|
-
},
|
|
6919
|
+
}, yf = /* @__PURE__ */ X({ default: () => bf }), bf = $(vf), xf = ["id"], Sf = { class: "dd-slider-wrapper" }, Cf = ["hidden"], wf = {
|
|
6912
6920
|
"parse-text-content": "",
|
|
6913
6921
|
style: { width: "3ch" }
|
|
6914
|
-
},
|
|
6922
|
+
}, Tf = {
|
|
6915
6923
|
__name: "Slider",
|
|
6916
6924
|
props: {
|
|
6917
6925
|
id: { type: String },
|
|
@@ -7022,7 +7030,7 @@ var Lu = {
|
|
|
7022
7030
|
window.addEventListener("mousemove", p), window.addEventListener("mouseup", h), window.addEventListener("touchmove", p, { passive: !1 }), window.addEventListener("touchend", h), window.addEventListener("touchcancel", h);
|
|
7023
7031
|
}), $i(() => {
|
|
7024
7032
|
window.removeEventListener("mousemove", p), window.removeEventListener("mouseup", h), window.removeEventListener("touchmove", p), window.removeEventListener("touchend", h), window.removeEventListener("touchcancel", h);
|
|
7025
|
-
}), (t, i) => (G(), K("div", J({ id: e.id }, t.$attrs, { class: "dd-slider" }), [q("div",
|
|
7033
|
+
}), (t, i) => (G(), K("div", J({ id: e.id }, t.$attrs, { class: "dd-slider" }), [q("div", Sf, [q("div", {
|
|
7026
7034
|
ref_key: "sliderHandle",
|
|
7027
7035
|
ref: a,
|
|
7028
7036
|
class: "dd-slider-tap-area",
|
|
@@ -7052,9 +7060,9 @@ var Lu = {
|
|
|
7052
7060
|
], 4)], 512), q("span", {
|
|
7053
7061
|
class: "dd-slider-value",
|
|
7054
7062
|
hidden: !e.showValue
|
|
7055
|
-
}, [q("p",
|
|
7063
|
+
}, [q("p", wf, st(R(o)), 1)], 8, Cf)])], 16, xf));
|
|
7056
7064
|
}
|
|
7057
|
-
},
|
|
7065
|
+
}, Ef = /* @__PURE__ */ X({ default: () => Df }), Df = $(Tf), Of = ["aria-label"], kf = ["data-dot-index"], Af = {
|
|
7058
7066
|
__name: "Swiper",
|
|
7059
7067
|
props: {
|
|
7060
7068
|
indicatorDots: {
|
|
@@ -7190,7 +7198,7 @@ var Lu = {
|
|
|
7190
7198
|
}
|
|
7191
7199
|
function pe() {
|
|
7192
7200
|
if (!f.value || !p.value) return;
|
|
7193
|
-
let e = t.previousMargin ?
|
|
7201
|
+
let e = t.previousMargin ? Ul(t.previousMargin) : "", n = t.nextMargin ? Ul(t.nextMargin) : "", r = `${Math.abs(100 / T.value)}%`;
|
|
7194
7202
|
t.vertical ? (f.value.style.left = 0, f.value.style.right = 0, f.value.style.top = e, f.value.style.bottom = n, p.value.style.width = "100%", p.value.style.height = r) : (f.value.style.left = e, f.value.style.right = n, f.value.style.top = 0, f.value.style.bottom = 0, p.value.style.height = "100%", p.value.style.width = r);
|
|
7195
7203
|
}
|
|
7196
7204
|
function me(e) {
|
|
@@ -7392,9 +7400,9 @@ var Lu = {
|
|
|
7392
7400
|
"data-dot-index": e - 1,
|
|
7393
7401
|
class: qe(["dd-swiper-dot", { "dd-swiper-dot-active": D(e - 1) }]),
|
|
7394
7402
|
style: P(ue(e - 1))
|
|
7395
|
-
}, null, 14,
|
|
7403
|
+
}, null, 14, kf))), 128))], 2)) : zs("", !0)], 44, Of)], 16));
|
|
7396
7404
|
}
|
|
7397
|
-
},
|
|
7405
|
+
}, jf = /* @__PURE__ */ X({ default: () => Mf }), Mf = $(Af), Nf = ["item-id"], Pf = {
|
|
7398
7406
|
__name: "SwiperItem",
|
|
7399
7407
|
props: {
|
|
7400
7408
|
itemId: { type: String },
|
|
@@ -7408,9 +7416,9 @@ var Lu = {
|
|
|
7408
7416
|
return (e, n) => (G(), K("div", J(e.$attrs, {
|
|
7409
7417
|
class: "dd-swiper-item",
|
|
7410
7418
|
"item-id": t.itemId
|
|
7411
|
-
}), [U(e.$slots, "default")], 16,
|
|
7419
|
+
}), [U(e.$slots, "default")], 16, Nf));
|
|
7412
7420
|
}
|
|
7413
|
-
},
|
|
7421
|
+
}, Ff = /* @__PURE__ */ X({ default: () => If }), If = $(Pf), Lf = ["id"], Rf = ["id"], zf = {
|
|
7414
7422
|
__name: "Switch",
|
|
7415
7423
|
props: {
|
|
7416
7424
|
id: { type: String },
|
|
@@ -7461,7 +7469,7 @@ var Lu = {
|
|
|
7461
7469
|
}), [q("i", {
|
|
7462
7470
|
class: "dd-checkbox-input-inner",
|
|
7463
7471
|
style: P(R(i))
|
|
7464
|
-
}, null, 4)], 16,
|
|
7472
|
+
}, null, 4)], 16, Lf)) : (G(), K("div", J({
|
|
7465
7473
|
key: 1,
|
|
7466
7474
|
id: e.id
|
|
7467
7475
|
}, t.$attrs, {
|
|
@@ -7470,9 +7478,9 @@ var Lu = {
|
|
|
7470
7478
|
}), [q("i", {
|
|
7471
7479
|
class: "dd-switch-input-inner",
|
|
7472
7480
|
style: P(R(i))
|
|
7473
|
-
}, null, 4)], 16,
|
|
7481
|
+
}, null, 4)], 16, Rf));
|
|
7474
7482
|
}
|
|
7475
|
-
},
|
|
7483
|
+
}, Bf = /* @__PURE__ */ X({ default: () => Vf }), Vf = $(zf), Hf = {
|
|
7476
7484
|
__name: "Template",
|
|
7477
7485
|
props: {
|
|
7478
7486
|
is: {
|
|
@@ -7488,7 +7496,7 @@ var Lu = {
|
|
|
7488
7496
|
data: R(r)
|
|
7489
7497
|
})), null, 16));
|
|
7490
7498
|
}
|
|
7491
|
-
},
|
|
7499
|
+
}, Uf = /* @__PURE__ */ X({ default: () => Wf }), Wf = $(Hf), Gf = {
|
|
7492
7500
|
__name: "Text",
|
|
7493
7501
|
props: {
|
|
7494
7502
|
userSelect: {
|
|
@@ -7533,7 +7541,7 @@ var Lu = {
|
|
|
7533
7541
|
}
|
|
7534
7542
|
});
|
|
7535
7543
|
let i = Z();
|
|
7536
|
-
return
|
|
7544
|
+
return iu(i, "tap") && Au(n, (e) => {
|
|
7537
7545
|
t.disabled || (t.hoverStopPropagation && e.stopPropagation(), Q("tap", {
|
|
7538
7546
|
event: e,
|
|
7539
7547
|
info: i
|
|
@@ -7543,11 +7551,11 @@ var Lu = {
|
|
|
7543
7551
|
ref: n
|
|
7544
7552
|
}, t.$attrs, { class: ["dd-text", { "dd-text-selectable": e.userSelect }] }), [U(t.$slots, "default")], 16));
|
|
7545
7553
|
}
|
|
7546
|
-
},
|
|
7554
|
+
}, Kf = /* @__PURE__ */ X({ default: () => qf }), qf = $(Gf), Jf = [
|
|
7547
7555
|
"id",
|
|
7548
7556
|
"value",
|
|
7549
7557
|
"disabled"
|
|
7550
|
-
],
|
|
7558
|
+
], Yf = {
|
|
7551
7559
|
__name: "Textarea",
|
|
7552
7560
|
props: {
|
|
7553
7561
|
id: { type: String },
|
|
@@ -7682,7 +7690,7 @@ var Lu = {
|
|
|
7682
7690
|
let t = n.placeholderStyle.match(/font-size:([^;]+)/);
|
|
7683
7691
|
t && (e = t[1].trim());
|
|
7684
7692
|
} else n.placeholderStyle && typeof n.placeholderStyle == "object" && Object.prototype.hasOwnProperty.call(n.placeholderStyle, "font-size") && (e = n.placeholderStyle["font-size"]);
|
|
7685
|
-
return e ?
|
|
7693
|
+
return e ? Ul(e) : "inherit";
|
|
7686
7694
|
})(),
|
|
7687
7695
|
fontWeight: (() => {
|
|
7688
7696
|
if (typeof n.placeholderStyle == "string") {
|
|
@@ -7694,7 +7702,7 @@ var Lu = {
|
|
|
7694
7702
|
})), a = V("collectFormValue", void 0);
|
|
7695
7703
|
a?.(n.name, n.value);
|
|
7696
7704
|
let o = /* @__PURE__ */ L(null), s = /* @__PURE__ */ L(null), c = /* @__PURE__ */ L(n.value), l = Y(() => c.value === void 0 || c.value === null || c.value === "" || typeof c.value == "string" && c.value.length === 0), u = { mounted: async (e) => {
|
|
7697
|
-
n.autoFocus && (
|
|
7705
|
+
n.autoFocus && (zl && await jl(540), e.focus());
|
|
7698
7706
|
} };
|
|
7699
7707
|
hi([() => n.focus, () => n.value], ([e, t], [, n]) => {
|
|
7700
7708
|
e && o.value.focus(), n !== t && (c.value = t);
|
|
@@ -7730,11 +7738,11 @@ var Lu = {
|
|
|
7730
7738
|
event: e,
|
|
7731
7739
|
info: f,
|
|
7732
7740
|
detail: { value: t }
|
|
7733
|
-
}), !
|
|
7741
|
+
}), !zl && n.adjustPosition) {
|
|
7734
7742
|
let e = d.value;
|
|
7735
7743
|
if (!e) return;
|
|
7736
|
-
let t =
|
|
7737
|
-
|
|
7744
|
+
let t = ou(e);
|
|
7745
|
+
tu("adjustPosition", {
|
|
7738
7746
|
bridgeId: f.bridgeId,
|
|
7739
7747
|
params: { bottom: t }
|
|
7740
7748
|
});
|
|
@@ -7773,17 +7781,17 @@ var Lu = {
|
|
|
7773
7781
|
value: R(c),
|
|
7774
7782
|
disabled: e.disabled,
|
|
7775
7783
|
onKeydown: p
|
|
7776
|
-
}, null, 40,
|
|
7784
|
+
}, null, 40, Jf), [[u]]), ui(q("div", {
|
|
7777
7785
|
class: qe(["dd-textarea-placeholder", e.placeholderClass]),
|
|
7778
7786
|
style: P(R(i))
|
|
7779
7787
|
}, st(e.placeholder), 7), [[Fc, R(l)]])], 16));
|
|
7780
7788
|
}
|
|
7781
|
-
},
|
|
7782
|
-
function
|
|
7789
|
+
}, Xf = /* @__PURE__ */ X({ default: () => Zf }), Zf = $(Yf), Qf = "[data-dimina-native-id][data-dimina-native-type]", $f = /* @__PURE__ */ new Map(), ep = /* @__PURE__ */ new Map(), tp = [], np = !1, rp = null, ip = 0;
|
|
7790
|
+
function ap() {
|
|
7783
7791
|
return window.DiminaNativeComponentBridge;
|
|
7784
7792
|
}
|
|
7785
|
-
function
|
|
7786
|
-
let t = document.elementFromPoint(e.clientX, e.clientY)?.closest?.(
|
|
7793
|
+
function op(e) {
|
|
7794
|
+
let t = document.elementFromPoint(e.clientX, e.clientY)?.closest?.(Qf);
|
|
7787
7795
|
if (!t) return null;
|
|
7788
7796
|
let n = t.dataset.diminaNativeId, r = t.dataset.diminaNativeType;
|
|
7789
7797
|
return !n || !r ? null : {
|
|
@@ -7791,41 +7799,41 @@ function ap(e) {
|
|
|
7791
7799
|
type: r
|
|
7792
7800
|
};
|
|
7793
7801
|
}
|
|
7794
|
-
function op(e) {
|
|
7795
|
-
if ($f.has(e)) return $f.get(e);
|
|
7796
|
-
let t = ep.length ? ep.shift() : rp++;
|
|
7797
|
-
return $f.set(e, t), t;
|
|
7798
|
-
}
|
|
7799
7802
|
function sp(e) {
|
|
7800
|
-
|
|
7803
|
+
if (ep.has(e)) return ep.get(e);
|
|
7804
|
+
let t = tp.length ? tp.shift() : ip++;
|
|
7805
|
+
return ep.set(e, t), t;
|
|
7801
7806
|
}
|
|
7802
7807
|
function cp(e) {
|
|
7808
|
+
ep.has(e) && (tp.push(ep.get(e)), ep.delete(e));
|
|
7809
|
+
}
|
|
7810
|
+
function lp(e) {
|
|
7803
7811
|
let t = String(e.identifier);
|
|
7804
7812
|
return {
|
|
7805
7813
|
touchIdentifier: t,
|
|
7806
|
-
id:
|
|
7814
|
+
id: sp(t),
|
|
7807
7815
|
clientX: e.clientX,
|
|
7808
7816
|
clientY: e.clientY,
|
|
7809
7817
|
pageX: e.pageX,
|
|
7810
7818
|
pageY: e.pageY
|
|
7811
7819
|
};
|
|
7812
7820
|
}
|
|
7813
|
-
function
|
|
7821
|
+
function up(e) {
|
|
7814
7822
|
for (let t of e) {
|
|
7815
7823
|
let e = String(t.identifier);
|
|
7816
|
-
|
|
7824
|
+
$f.has(e) && $f.set(e, lp(t));
|
|
7817
7825
|
}
|
|
7818
7826
|
}
|
|
7819
|
-
function
|
|
7820
|
-
let n =
|
|
7821
|
-
!n?.dispatchTouch || !
|
|
7827
|
+
function dp(e, t) {
|
|
7828
|
+
let n = ap();
|
|
7829
|
+
!n?.dispatchTouch || !rp || !$f.size || n.dispatchTouch(JSON.stringify({
|
|
7822
7830
|
action: e,
|
|
7823
7831
|
actionPointerId: t,
|
|
7824
|
-
targetId:
|
|
7825
|
-
targetType:
|
|
7832
|
+
targetId: rp.id,
|
|
7833
|
+
targetType: rp.type,
|
|
7826
7834
|
viewportWidth: window.innerWidth,
|
|
7827
7835
|
viewportHeight: window.innerHeight,
|
|
7828
|
-
pointers: Array.from(
|
|
7836
|
+
pointers: Array.from($f.values()).map((e) => ({
|
|
7829
7837
|
id: e.id,
|
|
7830
7838
|
clientX: e.clientX,
|
|
7831
7839
|
clientY: e.clientY,
|
|
@@ -7834,59 +7842,59 @@ function up(e, t) {
|
|
|
7834
7842
|
}))
|
|
7835
7843
|
}));
|
|
7836
7844
|
}
|
|
7837
|
-
function
|
|
7845
|
+
function fp(e) {
|
|
7838
7846
|
e.preventDefault(), e.stopImmediatePropagation();
|
|
7839
7847
|
}
|
|
7840
|
-
function
|
|
7841
|
-
if (!
|
|
7848
|
+
function pp(e) {
|
|
7849
|
+
if (!ap()?.dispatchTouch) return;
|
|
7842
7850
|
let t = !1;
|
|
7843
7851
|
for (let n of e.changedTouches) {
|
|
7844
|
-
let r =
|
|
7845
|
-
if (!r ||
|
|
7846
|
-
|
|
7847
|
-
let i =
|
|
7848
|
-
|
|
7852
|
+
let r = rp || op(n);
|
|
7853
|
+
if (!r || rp && r.id !== rp.id) continue;
|
|
7854
|
+
rp = r, up(e.touches);
|
|
7855
|
+
let i = lp(n);
|
|
7856
|
+
$f.set(i.touchIdentifier, i), dp($f.size === 1 ? "down" : "pointerDown", i.id), t = !0;
|
|
7849
7857
|
}
|
|
7850
|
-
t &&
|
|
7851
|
-
}
|
|
7852
|
-
function pp(e) {
|
|
7853
|
-
!np || !Qf.size || (lp(e.touches), up("move", -1), dp(e));
|
|
7858
|
+
t && fp(e);
|
|
7854
7859
|
}
|
|
7855
7860
|
function mp(e) {
|
|
7856
|
-
|
|
7861
|
+
!rp || !$f.size || (up(e.touches), dp("move", -1), fp(e));
|
|
7862
|
+
}
|
|
7863
|
+
function hp(e) {
|
|
7864
|
+
if (!rp || !$f.size) return;
|
|
7857
7865
|
let t = !1;
|
|
7858
|
-
|
|
7866
|
+
up(e.touches);
|
|
7859
7867
|
for (let n of e.changedTouches) {
|
|
7860
7868
|
let e = String(n.identifier);
|
|
7861
|
-
if (
|
|
7862
|
-
let r =
|
|
7863
|
-
|
|
7869
|
+
if (!$f.has(e)) continue;
|
|
7870
|
+
let r = lp(n);
|
|
7871
|
+
$f.set(e, r), dp($f.size === 1 ? "up" : "pointerUp", r.id), $f.delete(e), cp(e), t = !0;
|
|
7864
7872
|
}
|
|
7865
|
-
|
|
7873
|
+
$f.size || (rp = null), t && fp(e);
|
|
7866
7874
|
}
|
|
7867
|
-
function
|
|
7868
|
-
if (!(!
|
|
7869
|
-
|
|
7870
|
-
for (let e of
|
|
7871
|
-
|
|
7875
|
+
function gp(e) {
|
|
7876
|
+
if (!(!rp || !$f.size)) {
|
|
7877
|
+
up(e.touches), dp("cancel", -1);
|
|
7878
|
+
for (let e of $f.keys()) cp(e);
|
|
7879
|
+
$f.clear(), rp = null, fp(e);
|
|
7872
7880
|
}
|
|
7873
7881
|
}
|
|
7874
|
-
function
|
|
7875
|
-
!
|
|
7882
|
+
function _p() {
|
|
7883
|
+
!Il || np || typeof document > "u" || (np = !0, document.addEventListener("touchstart", pp, {
|
|
7876
7884
|
capture: !0,
|
|
7877
7885
|
passive: !1
|
|
7878
|
-
}), document.addEventListener("touchmove",
|
|
7886
|
+
}), document.addEventListener("touchmove", mp, {
|
|
7879
7887
|
capture: !0,
|
|
7880
7888
|
passive: !1
|
|
7881
|
-
}), document.addEventListener("touchend",
|
|
7889
|
+
}), document.addEventListener("touchend", hp, {
|
|
7882
7890
|
capture: !0,
|
|
7883
7891
|
passive: !1
|
|
7884
|
-
}), document.addEventListener("touchcancel",
|
|
7892
|
+
}), document.addEventListener("touchcancel", gp, {
|
|
7885
7893
|
capture: !0,
|
|
7886
7894
|
passive: !1
|
|
7887
7895
|
}));
|
|
7888
7896
|
}
|
|
7889
|
-
var
|
|
7897
|
+
var vp = ["id", "data-dimina-native-id"], yp = ["id"], bp = ["id"], xp = [
|
|
7890
7898
|
"id",
|
|
7891
7899
|
"src",
|
|
7892
7900
|
"controls",
|
|
@@ -7894,7 +7902,7 @@ var _p = ["id", "data-dimina-native-id"], vp = ["id"], yp = ["id"], bp = [
|
|
|
7894
7902
|
"loop",
|
|
7895
7903
|
"muted",
|
|
7896
7904
|
"poster"
|
|
7897
|
-
],
|
|
7905
|
+
], Sp = "native/video", Cp = {
|
|
7898
7906
|
__name: "Video",
|
|
7899
7907
|
props: {
|
|
7900
7908
|
id: {
|
|
@@ -8029,7 +8037,7 @@ var _p = ["id", "data-dimina-native-id"], vp = ["id"], yp = ["id"], bp = [
|
|
|
8029
8037
|
}
|
|
8030
8038
|
},
|
|
8031
8039
|
setup(e) {
|
|
8032
|
-
let t = e, n = /* @__PURE__ */ L(), r = Z(), i = Y(() =>
|
|
8040
|
+
let t = e, n = /* @__PURE__ */ L(), r = Z(), i = Y(() => Il || Ll || Rl), a = 0, o = "", s = [], c;
|
|
8033
8041
|
function l() {
|
|
8034
8042
|
let e = n.value;
|
|
8035
8043
|
if (!e) return {};
|
|
@@ -8049,7 +8057,7 @@ var _p = ["id", "data-dimina-native-id"], vp = ["id"], yp = ["id"], bp = [
|
|
|
8049
8057
|
}
|
|
8050
8058
|
function u() {
|
|
8051
8059
|
return {
|
|
8052
|
-
type:
|
|
8060
|
+
type: Sp,
|
|
8053
8061
|
id: t.id,
|
|
8054
8062
|
src: t.src,
|
|
8055
8063
|
controls: t.controls,
|
|
@@ -8087,7 +8095,7 @@ var _p = ["id", "data-dimina-native-id"], vp = ["id"], yp = ["id"], bp = [
|
|
|
8087
8095
|
};
|
|
8088
8096
|
}
|
|
8089
8097
|
function d(e) {
|
|
8090
|
-
i.value &&
|
|
8098
|
+
i.value && tu(e, {
|
|
8091
8099
|
bridgeId: r.bridgeId,
|
|
8092
8100
|
params: u()
|
|
8093
8101
|
});
|
|
@@ -8105,7 +8113,7 @@ var _p = ["id", "data-dimina-native-id"], vp = ["id"], yp = ["id"], bp = [
|
|
|
8105
8113
|
});
|
|
8106
8114
|
}
|
|
8107
8115
|
function m(e, n, i = (e) => e) {
|
|
8108
|
-
let a =
|
|
8116
|
+
let a = nu(e, (e) => {
|
|
8109
8117
|
e.id === t.id && Q(n, {
|
|
8110
8118
|
type: n,
|
|
8111
8119
|
info: r,
|
|
@@ -8150,10 +8158,10 @@ var _p = ["id", "data-dimina-native-id"], vp = ["id"], yp = ["id"], bp = [
|
|
|
8150
8158
|
}
|
|
8151
8159
|
}
|
|
8152
8160
|
function g() {
|
|
8153
|
-
let e =
|
|
8161
|
+
let e = nu("videoContext", (e) => {
|
|
8154
8162
|
if (e.id === t.id) {
|
|
8155
8163
|
if (i.value) {
|
|
8156
|
-
|
|
8164
|
+
tu("videoContext", {
|
|
8157
8165
|
bridgeId: r.bridgeId,
|
|
8158
8166
|
params: e
|
|
8159
8167
|
});
|
|
@@ -8172,7 +8180,7 @@ var _p = ["id", "data-dimina-native-id"], vp = ["id"], yp = ["id"], bp = [
|
|
|
8172
8180
|
});
|
|
8173
8181
|
}
|
|
8174
8182
|
return H(() => {
|
|
8175
|
-
g(), i.value && (
|
|
8183
|
+
g(), i.value && (Il && _p(), m("bindplay", "play"), m("bindpause", "pause"), m("bindended", "ended"), m("bindwaiting", "waiting"), m("binderror", "error"), m("bindloadedmetadata", "loadedmetadata"), m("bindfullscreenchange", "fullscreenchange"), m("bindprogress", "progress"), m("bindcontrolstoggle", "controlstoggle"), m("bindenterpictureinpicture", "enterpictureinpicture"), m("bindleavepictureinpicture", "leavepictureinpicture"), m("bindtimeupdate", "timeupdate", (e) => ({
|
|
8176
8184
|
currentTime: e.currentTime,
|
|
8177
8185
|
duration: e.duration
|
|
8178
8186
|
})), xr(() => {
|
|
@@ -8212,7 +8220,7 @@ var _p = ["id", "data-dimina-native-id"], vp = ["id"], yp = ["id"], bp = [
|
|
|
8212
8220
|
t.referrerPolicy
|
|
8213
8221
|
], () => d("propsUpdate")), $i(() => {
|
|
8214
8222
|
a && cancelAnimationFrame(a), c?.disconnect(), window.removeEventListener("resize", p), d("componentUnmount"), s.splice(0).forEach((e) => e());
|
|
8215
|
-
}), (t, r) => R(
|
|
8223
|
+
}), (t, r) => R(Il) ? (G(), K("embed", J({
|
|
8216
8224
|
key: 0,
|
|
8217
8225
|
id: e.id,
|
|
8218
8226
|
ref_key: "rootRef",
|
|
@@ -8224,8 +8232,8 @@ var _p = ["id", "data-dimina-native-id"], vp = ["id"], yp = ["id"], bp = [
|
|
|
8224
8232
|
"data-dimina-native-type": "native/video",
|
|
8225
8233
|
"data-dimina-native-id": e.id,
|
|
8226
8234
|
type: "application/view",
|
|
8227
|
-
comp_type:
|
|
8228
|
-
}), null, 16,
|
|
8235
|
+
comp_type: Sp
|
|
8236
|
+
}), null, 16, vp)) : R(Ll) ? (G(), K("div", J({
|
|
8229
8237
|
key: 1,
|
|
8230
8238
|
id: e.id,
|
|
8231
8239
|
ref_key: "rootRef",
|
|
@@ -8233,15 +8241,15 @@ var _p = ["id", "data-dimina-native-id"], vp = ["id"], yp = ["id"], bp = [
|
|
|
8233
8241
|
}, t.$attrs, { class: "dd-video" }), [...r[7] ||= [q("div", { class: "dd-video-container" }, [q("div", { style: {
|
|
8234
8242
|
width: "101%",
|
|
8235
8243
|
height: "101%"
|
|
8236
|
-
} })], -1)]], 16,
|
|
8244
|
+
} })], -1)]], 16, yp)) : R(Rl) ? (G(), K("embed", J({
|
|
8237
8245
|
key: 2,
|
|
8238
8246
|
id: e.id,
|
|
8239
8247
|
ref_key: "rootRef",
|
|
8240
8248
|
ref: n
|
|
8241
8249
|
}, t.$attrs, {
|
|
8242
8250
|
class: "dd-video",
|
|
8243
|
-
type:
|
|
8244
|
-
}), null, 16,
|
|
8251
|
+
type: Sp
|
|
8252
|
+
}), null, 16, bp)) : R(zl) ? (G(), K("video", J({
|
|
8245
8253
|
key: 3,
|
|
8246
8254
|
id: e.id,
|
|
8247
8255
|
ref_key: "rootRef",
|
|
@@ -8269,9 +8277,9 @@ var _p = ["id", "data-dimina-native-id"], vp = ["id"], yp = ["id"], bp = [
|
|
|
8269
8277
|
currentTime: e.target?.currentTime || 0,
|
|
8270
8278
|
duration: e.target?.duration || 0
|
|
8271
8279
|
})
|
|
8272
|
-
}), null, 16,
|
|
8280
|
+
}), null, 16, xp)) : (G(), K("div", J({ key: 4 }, t.$attrs, { class: "dd-video dd-video-placeholder" }), " 未实现组件 ", 16));
|
|
8273
8281
|
}
|
|
8274
|
-
},
|
|
8282
|
+
}, wp = /* @__PURE__ */ X({ default: () => Tp }), Tp = $(Cp), Ep = /* @__PURE__ */ X({ default: () => Dp }), Dp = $(Ru), Op = ["src"], kp = ["id"], Ap = "$1�$2", jp = "native/webview", Mp = {
|
|
8275
8283
|
__name: "WebView",
|
|
8276
8284
|
props: {
|
|
8277
8285
|
id: {
|
|
@@ -8281,29 +8289,29 @@ var _p = ["id", "data-dimina-native-id"], vp = ["id"], yp = ["id"], bp = [
|
|
|
8281
8289
|
src: { type: String }
|
|
8282
8290
|
},
|
|
8283
8291
|
setup(e) {
|
|
8284
|
-
let t = e, n = /(?:[^\x21\x25\x26-\x3B\x3D\x3F-\x5B\x5D\x5F\x7E]|%(?:[^0-9A-F]|[0-9A-F][^0-9A-F]|$))+/gi, r = /(^|[^\uD800-\uDBFF])[\uDC00-\uDFFF]|[\uD800-\uDBFF]([^\uDC00-\uDFFF]|$)/g, i = Y(() => String(t.src).replace(r,
|
|
8292
|
+
let t = e, n = /(?:[^\x21\x25\x26-\x3B\x3D\x3F-\x5B\x5D\x5F\x7E]|%(?:[^0-9A-F]|[0-9A-F][^0-9A-F]|$))+/gi, r = /(^|[^\uD800-\uDBFF])[\uDC00-\uDFFF]|[\uD800-\uDBFF]([^\uDC00-\uDFFF]|$)/g, i = Y(() => String(t.src).replace(r, Ap).replace(n, encodeURI)), a = Z(), o = a.attrs;
|
|
8285
8293
|
function s() {
|
|
8286
8294
|
let e = {};
|
|
8287
8295
|
for (let t in o) (t.startsWith("bind") || t.startsWith("catch")) && (e[t.replace(/^(?:bind:|bind|catch:|catch)/, "")] = o[t]);
|
|
8288
8296
|
return e;
|
|
8289
8297
|
}
|
|
8290
8298
|
return hi([() => t.src, () => t.id], ([e, t]) => {
|
|
8291
|
-
|
|
8299
|
+
tu("propsUpdate", {
|
|
8292
8300
|
bridgeId: a.bridgeId,
|
|
8293
8301
|
params: {
|
|
8294
|
-
type:
|
|
8302
|
+
type: jp,
|
|
8295
8303
|
src: e,
|
|
8296
8304
|
id: t
|
|
8297
8305
|
}
|
|
8298
8306
|
});
|
|
8299
8307
|
}), Xi(() => {
|
|
8300
|
-
|
|
8308
|
+
nu("bindmessage", (e) => {
|
|
8301
8309
|
Q("message", {
|
|
8302
8310
|
type: "message",
|
|
8303
8311
|
info: a,
|
|
8304
8312
|
detail: { data: e.data }
|
|
8305
8313
|
});
|
|
8306
|
-
}),
|
|
8314
|
+
}), nu("bindload", (e) => {
|
|
8307
8315
|
Q("load", {
|
|
8308
8316
|
type: "load",
|
|
8309
8317
|
info: a,
|
|
@@ -8312,7 +8320,7 @@ var _p = ["id", "data-dimina-native-id"], vp = ["id"], yp = ["id"], bp = [
|
|
|
8312
8320
|
id: e.id
|
|
8313
8321
|
}
|
|
8314
8322
|
});
|
|
8315
|
-
}),
|
|
8323
|
+
}), nu("binderror", (e) => {
|
|
8316
8324
|
Q("error", {
|
|
8317
8325
|
type: "error",
|
|
8318
8326
|
info: a,
|
|
@@ -8322,10 +8330,10 @@ var _p = ["id", "data-dimina-native-id"], vp = ["id"], yp = ["id"], bp = [
|
|
|
8322
8330
|
id: e.id
|
|
8323
8331
|
}
|
|
8324
8332
|
});
|
|
8325
|
-
}),
|
|
8333
|
+
}), tu("componentMount", {
|
|
8326
8334
|
bridgeId: a.bridgeId,
|
|
8327
8335
|
params: {
|
|
8328
|
-
type:
|
|
8336
|
+
type: jp,
|
|
8329
8337
|
url: i.value,
|
|
8330
8338
|
id: t.id,
|
|
8331
8339
|
attributes: {
|
|
@@ -8337,27 +8345,27 @@ var _p = ["id", "data-dimina-native-id"], vp = ["id"], yp = ["id"], bp = [
|
|
|
8337
8345
|
}
|
|
8338
8346
|
});
|
|
8339
8347
|
}), $i(() => {
|
|
8340
|
-
|
|
8348
|
+
tu("componentUnmount", {
|
|
8341
8349
|
bridgeId: a.bridgeId,
|
|
8342
8350
|
params: {
|
|
8343
|
-
type:
|
|
8351
|
+
type: jp,
|
|
8344
8352
|
url: i.value,
|
|
8345
8353
|
id: t.id
|
|
8346
8354
|
}
|
|
8347
|
-
}),
|
|
8348
|
-
}), (t, n) => R(
|
|
8355
|
+
}), ru("bindmessage"), ru("bindload"), ru("binderror");
|
|
8356
|
+
}), (t, n) => R(zl) ? (G(), K("iframe", J({ key: 0 }, t.$attrs, {
|
|
8349
8357
|
class: "dd-web-view dd-web-view-pc",
|
|
8350
|
-
type:
|
|
8358
|
+
type: jp,
|
|
8351
8359
|
src: R(i)
|
|
8352
|
-
}), null, 16,
|
|
8360
|
+
}), null, 16, Op)) : (G(), K("embed", J({
|
|
8353
8361
|
key: 1,
|
|
8354
8362
|
id: e.id
|
|
8355
8363
|
}, t.$attrs, {
|
|
8356
8364
|
class: "dd-web-view",
|
|
8357
|
-
type:
|
|
8358
|
-
}), null, 16,
|
|
8365
|
+
type: jp
|
|
8366
|
+
}), null, 16, kp));
|
|
8359
8367
|
}
|
|
8360
|
-
},
|
|
8368
|
+
}, Np = /* @__PURE__ */ X({ default: () => Pp }), Pp = $(Mp), Fp = {
|
|
8361
8369
|
__name: "Wrapper",
|
|
8362
8370
|
props: { name: { type: String } },
|
|
8363
8371
|
setup(e) {
|
|
@@ -8383,113 +8391,113 @@ var _p = ["id", "data-dimina-native-id"], vp = ["id"], yp = ["id"], bp = [
|
|
|
8383
8391
|
_: 3
|
|
8384
8392
|
}, 16));
|
|
8385
8393
|
}
|
|
8386
|
-
},
|
|
8387
|
-
"./component/block/index.js":
|
|
8388
|
-
"./component/button/index.js":
|
|
8389
|
-
"./component/camera/index.js":
|
|
8390
|
-
"./component/checkbox/index.js":
|
|
8391
|
-
"./component/checkbox-group/index.js":
|
|
8392
|
-
"./component/cover-image/index.js":
|
|
8393
|
-
"./component/cover-view/index.js":
|
|
8394
|
-
"./component/form/index.js":
|
|
8395
|
-
"./component/icon/index.js":
|
|
8396
|
-
"./component/image/index.js":
|
|
8397
|
-
"./component/input/index.js":
|
|
8398
|
-
"./component/keyboard-accessory/index.js":
|
|
8399
|
-
"./component/label/index.js":
|
|
8400
|
-
"./component/map/index.js":
|
|
8401
|
-
"./component/movable-area/index.js":
|
|
8402
|
-
"./component/movable-view/index.js":
|
|
8403
|
-
"./component/navigation-bar/index.js":
|
|
8404
|
-
"./component/navigator/index.js":
|
|
8405
|
-
"./component/open-data/index.js":
|
|
8406
|
-
"./component/page-meta/index.js":
|
|
8407
|
-
"./component/picker/index.js":
|
|
8408
|
-
"./component/picker-view/index.js":
|
|
8409
|
-
"./component/picker-view-column/index.js":
|
|
8410
|
-
"./component/progress/index.js":
|
|
8411
|
-
"./component/radio/index.js":
|
|
8412
|
-
"./component/radio-group/index.js":
|
|
8413
|
-
"./component/rich-text/index.js":
|
|
8414
|
-
"./component/root-portal/index.js":
|
|
8415
|
-
"./component/scroll-view/index.js":
|
|
8416
|
-
"./component/slider/index.js":
|
|
8417
|
-
"./component/swiper/index.js":
|
|
8418
|
-
"./component/swiper-item/index.js":
|
|
8419
|
-
"./component/switch/index.js":
|
|
8420
|
-
"./component/template/index.js":
|
|
8421
|
-
"./component/text/index.js":
|
|
8422
|
-
"./component/textarea/index.js":
|
|
8423
|
-
"./component/video/index.js":
|
|
8424
|
-
"./component/view/index.js":
|
|
8425
|
-
"./component/web-view/index.js":
|
|
8426
|
-
"./component/wrapper/index.js":
|
|
8394
|
+
}, Ip = /* @__PURE__ */ X({ default: () => Lp }), Lp = $(Fp), Rp = Object.values(/* @__PURE__ */ Object.assign({
|
|
8395
|
+
"./component/block/index.js": fu,
|
|
8396
|
+
"./component/button/index.js": gu,
|
|
8397
|
+
"./component/camera/index.js": bu,
|
|
8398
|
+
"./component/checkbox/index.js": wu,
|
|
8399
|
+
"./component/checkbox-group/index.js": Ou,
|
|
8400
|
+
"./component/cover-image/index.js": Fu,
|
|
8401
|
+
"./component/cover-view/index.js": Bu,
|
|
8402
|
+
"./component/form/index.js": Uu,
|
|
8403
|
+
"./component/icon/index.js": qu,
|
|
8404
|
+
"./component/image/index.js": Yu,
|
|
8405
|
+
"./component/input/index.js": $u,
|
|
8406
|
+
"./component/keyboard-accessory/index.js": nd,
|
|
8407
|
+
"./component/label/index.js": od,
|
|
8408
|
+
"./component/map/index.js": dd,
|
|
8409
|
+
"./component/movable-area/index.js": md,
|
|
8410
|
+
"./component/movable-view/index.js": _d,
|
|
8411
|
+
"./component/navigation-bar/index.js": bd,
|
|
8412
|
+
"./component/navigator/index.js": Cd,
|
|
8413
|
+
"./component/open-data/index.js": Ed,
|
|
8414
|
+
"./component/page-meta/index.js": kd,
|
|
8415
|
+
"./component/picker/index.js": Hd,
|
|
8416
|
+
"./component/picker-view/index.js": Gd,
|
|
8417
|
+
"./component/picker-view-column/index.js": Yd,
|
|
8418
|
+
"./component/progress/index.js": ef,
|
|
8419
|
+
"./component/radio/index.js": af,
|
|
8420
|
+
"./component/radio-group/index.js": lf,
|
|
8421
|
+
"./component/rich-text/index.js": pf,
|
|
8422
|
+
"./component/root-portal/index.js": gf,
|
|
8423
|
+
"./component/scroll-view/index.js": yf,
|
|
8424
|
+
"./component/slider/index.js": Ef,
|
|
8425
|
+
"./component/swiper/index.js": jf,
|
|
8426
|
+
"./component/swiper-item/index.js": Ff,
|
|
8427
|
+
"./component/switch/index.js": Bf,
|
|
8428
|
+
"./component/template/index.js": Uf,
|
|
8429
|
+
"./component/text/index.js": Kf,
|
|
8430
|
+
"./component/textarea/index.js": Xf,
|
|
8431
|
+
"./component/video/index.js": wp,
|
|
8432
|
+
"./component/view/index.js": Ep,
|
|
8433
|
+
"./component/web-view/index.js": Np,
|
|
8434
|
+
"./component/wrapper/index.js": Ip
|
|
8427
8435
|
})).map((e) => e.default);
|
|
8428
|
-
function
|
|
8436
|
+
function zp(e, t) {
|
|
8429
8437
|
if (!t?.actions?.length) return;
|
|
8430
8438
|
let n = 0, r = t.actions;
|
|
8431
8439
|
function i() {
|
|
8432
8440
|
if (n >= r.length) return;
|
|
8433
|
-
let t = r[n], a =
|
|
8441
|
+
let t = r[n], a = ql(t), o = e.animate(a.keyframes, a.options);
|
|
8434
8442
|
o.onfinish = () => {
|
|
8435
8443
|
n++, i();
|
|
8436
8444
|
};
|
|
8437
8445
|
}
|
|
8438
8446
|
i();
|
|
8439
8447
|
}
|
|
8440
|
-
function
|
|
8441
|
-
let r =
|
|
8448
|
+
function Bp(e, t, n) {
|
|
8449
|
+
let r = Ul(t);
|
|
8442
8450
|
n ? e.style.cssText += r : e.style.cssText = r;
|
|
8443
8451
|
}
|
|
8444
|
-
function
|
|
8445
|
-
e._ds =
|
|
8452
|
+
function Vp(e, t) {
|
|
8453
|
+
e._ds = Pl(t.ctx.attrs, lu);
|
|
8446
8454
|
}
|
|
8447
|
-
function
|
|
8455
|
+
function Hp(e, t, n) {
|
|
8448
8456
|
let r = n.ctx;
|
|
8449
8457
|
if (t.props && Array.isArray(r.provides.externalClasses)) for (let n of r.provides.externalClasses) {
|
|
8450
|
-
let r = t.props[
|
|
8451
|
-
r && (e.className =
|
|
8458
|
+
let r = t.props[Ml(n)];
|
|
8459
|
+
r && (e.className = uu(e.className, n, r), e.hasAttribute(t.sId) || e.setAttribute(t.sId, ""));
|
|
8452
8460
|
}
|
|
8453
8461
|
}
|
|
8454
|
-
function
|
|
8462
|
+
function Up(e) {
|
|
8455
8463
|
return e.directive("c-style", {
|
|
8456
8464
|
mounted(e, t) {
|
|
8457
|
-
|
|
8465
|
+
Bp(e, t.value, !0);
|
|
8458
8466
|
},
|
|
8459
8467
|
updated(e, t) {
|
|
8460
|
-
|
|
8468
|
+
Bp(e, t.value, !1);
|
|
8461
8469
|
}
|
|
8462
8470
|
}), e.directive("c-animation", {
|
|
8463
8471
|
mounted(e, t) {
|
|
8464
|
-
|
|
8472
|
+
zp(e, t.value);
|
|
8465
8473
|
},
|
|
8466
8474
|
updated(e, t) {
|
|
8467
|
-
|
|
8475
|
+
zp(e, t.value);
|
|
8468
8476
|
}
|
|
8469
8477
|
}), e.directive("c-data", {
|
|
8470
8478
|
mounted(e, t, n) {
|
|
8471
|
-
|
|
8479
|
+
Vp(e, n);
|
|
8472
8480
|
},
|
|
8473
8481
|
updated(e, t, n) {
|
|
8474
|
-
|
|
8482
|
+
Vp(e, n);
|
|
8475
8483
|
}
|
|
8476
8484
|
}), e.directive("c-class", {
|
|
8477
8485
|
mounted(e, t, n) {
|
|
8478
|
-
|
|
8486
|
+
Hp(e, t.instance, n);
|
|
8479
8487
|
},
|
|
8480
8488
|
updated(e, t, n) {
|
|
8481
|
-
|
|
8489
|
+
Hp(e, t.instance, n);
|
|
8482
8490
|
}
|
|
8483
8491
|
}), e.directive("c-prop-bindings", { mounted(e, t) {
|
|
8484
8492
|
e._propBindings = t.value || {};
|
|
8485
|
-
} }),
|
|
8486
|
-
t.mixins = [{ inheritAttrs: !1 }],
|
|
8493
|
+
} }), Rp.forEach((t) => {
|
|
8494
|
+
t.mixins = [{ inheritAttrs: !1 }], cu(e, t);
|
|
8487
8495
|
});
|
|
8488
8496
|
}
|
|
8489
|
-
|
|
8497
|
+
Rp.map((e) => e.__tagName);
|
|
8490
8498
|
//#endregion
|
|
8491
8499
|
//#region src/core/runtime.js
|
|
8492
|
-
var
|
|
8500
|
+
var Wp = {
|
|
8493
8501
|
_Fragment: W,
|
|
8494
8502
|
_createTextVNode: Rs,
|
|
8495
8503
|
_createVNode: Ns,
|
|
@@ -8509,7 +8517,7 @@ var Up = {
|
|
|
8509
8517
|
_toDisplayString: st,
|
|
8510
8518
|
_withCtx: ci,
|
|
8511
8519
|
_withDirectives: ui
|
|
8512
|
-
},
|
|
8520
|
+
}, Gp = "dimina-canvas-node", Kp = {
|
|
8513
8521
|
Int8Array,
|
|
8514
8522
|
Uint8Array,
|
|
8515
8523
|
Uint8ClampedArray,
|
|
@@ -8520,15 +8528,15 @@ var Up = {
|
|
|
8520
8528
|
Float32Array,
|
|
8521
8529
|
Float64Array
|
|
8522
8530
|
};
|
|
8523
|
-
function
|
|
8531
|
+
function qp(e) {
|
|
8524
8532
|
return e?.tagName?.toLowerCase() === "canvas";
|
|
8525
8533
|
}
|
|
8526
|
-
var
|
|
8534
|
+
var Jp = new class {
|
|
8527
8535
|
constructor() {
|
|
8528
8536
|
this.app = null, this.pageId = null, this.instance = /* @__PURE__ */ new Map(), this.moduleIds = /* @__PURE__ */ new WeakMap(), this.setupData = /* @__PURE__ */ new Map(), this.initializedModules = /* @__PURE__ */ new Set(), this.preInitUpdates = /* @__PURE__ */ new Map(), this.intersectionObservers = /* @__PURE__ */ new Map(), this.canvasNodes = /* @__PURE__ */ new Map(), this.canvasResources = /* @__PURE__ */ new Map(), this.canvasRafIds = /* @__PURE__ */ new Map(), this._pendingSetups = /* @__PURE__ */ new Map(), this._instanceWaiters = /* @__PURE__ */ new Map(), this.handleBeforeUnload = this.handleBeforeUnload.bind(this), this.installVueRuntimeHelpers(), window.addEventListener("beforeunload", this.handleBeforeUnload);
|
|
8529
8537
|
}
|
|
8530
8538
|
installVueRuntimeHelpers(e = window) {
|
|
8531
|
-
Object.assign(e,
|
|
8539
|
+
Object.assign(e, Wp);
|
|
8532
8540
|
}
|
|
8533
8541
|
handleBeforeUnload() {
|
|
8534
8542
|
if (this.intersectionObservers.size > 0) {
|
|
@@ -8547,7 +8555,7 @@ var qp = new class {
|
|
|
8547
8555
|
pageId: r,
|
|
8548
8556
|
query: i
|
|
8549
8557
|
});
|
|
8550
|
-
this.app != null && this.app.unmount(), this.app =
|
|
8558
|
+
this.app != null && this.app.unmount(), this.app = xl(a.app), this.app.use(Up), this.registerTplComponentsByPath(e.pagePath, t), this.app.mount(document.body);
|
|
8551
8559
|
}
|
|
8552
8560
|
registerTplComponentsByPath(e, t, n = /* @__PURE__ */ new Set()) {
|
|
8553
8561
|
if (n.has(e)) return;
|
|
@@ -8729,11 +8737,11 @@ var qp = new class {
|
|
|
8729
8737
|
parentId: p,
|
|
8730
8738
|
eventAttr: v,
|
|
8731
8739
|
targetInfo: {
|
|
8732
|
-
dataset: x(a,
|
|
8740
|
+
dataset: x(a, lu),
|
|
8733
8741
|
id: a.id,
|
|
8734
8742
|
class: a.class
|
|
8735
8743
|
},
|
|
8736
|
-
properties:
|
|
8744
|
+
properties: lu(i),
|
|
8737
8745
|
propBindings: null
|
|
8738
8746
|
}
|
|
8739
8747
|
});
|
|
@@ -8775,7 +8783,7 @@ var qp = new class {
|
|
|
8775
8783
|
let te = /* @__PURE__ */ Dn({});
|
|
8776
8784
|
o.setupData.set(h, te);
|
|
8777
8785
|
let C = !0;
|
|
8778
|
-
hi(() =>
|
|
8786
|
+
hi(() => lu(i), (e, r = {}) => {
|
|
8779
8787
|
if (Object.assign(te, e), C) {
|
|
8780
8788
|
C = !1;
|
|
8781
8789
|
return;
|
|
@@ -8886,7 +8894,7 @@ var qp = new class {
|
|
|
8886
8894
|
canvas: e,
|
|
8887
8895
|
contexts: /* @__PURE__ */ new Map()
|
|
8888
8896
|
}), {
|
|
8889
|
-
__diminaNodeType:
|
|
8897
|
+
__diminaNodeType: Gp,
|
|
8890
8898
|
nodeId: n,
|
|
8891
8899
|
type: t,
|
|
8892
8900
|
width: e.width || a || 300,
|
|
@@ -8908,7 +8916,7 @@ var qp = new class {
|
|
|
8908
8916
|
if (e.__canvasResourceId) return this.canvasResources.get(e.__canvasResourceId);
|
|
8909
8917
|
if (e.__canvasNodeId) return this.canvasNodes.get(e.__canvasNodeId)?.canvas;
|
|
8910
8918
|
if (e.__canvasTypedArray) {
|
|
8911
|
-
let t =
|
|
8919
|
+
let t = Kp[e.__canvasTypedArray];
|
|
8912
8920
|
if (t) return new t(e.data || []);
|
|
8913
8921
|
if (e.__canvasTypedArray === "DataView") return new DataView(new Uint8Array(e.data || []).buffer);
|
|
8914
8922
|
}
|
|
@@ -8925,7 +8933,7 @@ var qp = new class {
|
|
|
8925
8933
|
}
|
|
8926
8934
|
getCanvasImage(e) {
|
|
8927
8935
|
let t = this.getCanvasResource(e);
|
|
8928
|
-
return t || (t = new Image(), this.setCanvasResource(e, t)), t;
|
|
8936
|
+
return t || (t = new Image(), t.crossOrigin = "anonymous", this.setCanvasResource(e, t)), t;
|
|
8929
8937
|
}
|
|
8930
8938
|
executeCanvasOperation(e, t, n) {
|
|
8931
8939
|
switch (t.op) {
|
|
@@ -8973,6 +8981,23 @@ var qp = new class {
|
|
|
8973
8981
|
}, e.src = t.src;
|
|
8974
8982
|
break;
|
|
8975
8983
|
}
|
|
8984
|
+
case "getImageData": {
|
|
8985
|
+
let e = this.getCanvasResource(t.contextId);
|
|
8986
|
+
if (e) {
|
|
8987
|
+
let r = e.getImageData(t.x, t.y, t.width, t.height);
|
|
8988
|
+
this.triggerCallback(n, t.callback, {
|
|
8989
|
+
data: Array.from(r.data),
|
|
8990
|
+
width: r.width,
|
|
8991
|
+
height: r.height
|
|
8992
|
+
});
|
|
8993
|
+
}
|
|
8994
|
+
break;
|
|
8995
|
+
}
|
|
8996
|
+
case "toDataURL": {
|
|
8997
|
+
let r = t.mimeType || "image/png", i = t.quality === void 0 ? e.canvas.toDataURL(r) : e.canvas.toDataURL(r, t.quality);
|
|
8998
|
+
this.triggerCallback(n, t.callback, i);
|
|
8999
|
+
break;
|
|
9000
|
+
}
|
|
8976
9001
|
default: console.warn("[system]", "[render]", `Unsupported canvas node operation: ${t.op}`);
|
|
8977
9002
|
}
|
|
8978
9003
|
}
|
|
@@ -9073,7 +9098,7 @@ var qp = new class {
|
|
|
9073
9098
|
i[e] = r.getPropertyValue(e) || "";
|
|
9074
9099
|
}), n.computedStyle = i;
|
|
9075
9100
|
}
|
|
9076
|
-
return t.node && (n.node =
|
|
9101
|
+
return t.node && (n.node = qp(e) ? this.registerCanvasNode(e) : null), n;
|
|
9077
9102
|
}
|
|
9078
9103
|
getElementRect(e) {
|
|
9079
9104
|
return e.getBoundingClientRect();
|
|
@@ -9203,11 +9228,22 @@ var qp = new class {
|
|
|
9203
9228
|
this.ensureCanvasResolution(d);
|
|
9204
9229
|
let n = a || d.width, f = o || d.height, p = document.createElement("canvas");
|
|
9205
9230
|
p.width = s || n, p.height = c || f, p.getContext("2d").drawImage(d, r, i, n, f, 0, 0, p.width, p.height);
|
|
9206
|
-
let m = l === "jpg" || l === "jpeg" ? "image/jpeg" : "image/png", h =
|
|
9207
|
-
|
|
9208
|
-
|
|
9209
|
-
|
|
9210
|
-
|
|
9231
|
+
let m = l === "jpg" || l === "jpeg" ? "image/jpeg" : "image/png", h = p.toDataURL(m, u);
|
|
9232
|
+
T.invoke({
|
|
9233
|
+
type: "invokeAPI",
|
|
9234
|
+
target: "container",
|
|
9235
|
+
body: {
|
|
9236
|
+
name: "saveCanvasTempFile",
|
|
9237
|
+
bridgeId: e,
|
|
9238
|
+
params: {
|
|
9239
|
+
dataURL: h,
|
|
9240
|
+
fileType: l,
|
|
9241
|
+
success: t.success,
|
|
9242
|
+
fail: t.fail,
|
|
9243
|
+
complete: t.complete
|
|
9244
|
+
}
|
|
9245
|
+
}
|
|
9246
|
+
});
|
|
9211
9247
|
} catch (n) {
|
|
9212
9248
|
this.triggerCanvasFailure(e, t, `canvasToTempFilePath:fail ${n.message}`);
|
|
9213
9249
|
}
|
|
@@ -9300,7 +9336,7 @@ var qp = new class {
|
|
|
9300
9336
|
t && (t.forEach((e) => e.disconnect()), this.intersectionObservers.delete(e));
|
|
9301
9337
|
}
|
|
9302
9338
|
addPerformanceObserver() {}
|
|
9303
|
-
}(),
|
|
9339
|
+
}(), Yp = new class {
|
|
9304
9340
|
constructor() {
|
|
9305
9341
|
console.log("[system]", "[render]", "init"), this.env = ce, this.message = T, window.__message = T, window.__callback = ie, this.init();
|
|
9306
9342
|
}
|
|
@@ -9316,7 +9352,7 @@ var qp = new class {
|
|
|
9316
9352
|
});
|
|
9317
9353
|
}), this.message.on("firstRender", (e) => {
|
|
9318
9354
|
let { bridgeId: t, pageId: n, pagePath: r, initialProps: i, query: a } = e;
|
|
9319
|
-
se.setInitialData(i),
|
|
9355
|
+
se.setInitialData(i), Jp.firstRender({
|
|
9320
9356
|
pagePath: r,
|
|
9321
9357
|
pageId: n,
|
|
9322
9358
|
bridgeId: t,
|
|
@@ -9324,14 +9360,14 @@ var qp = new class {
|
|
|
9324
9360
|
});
|
|
9325
9361
|
}), this.message.on("u", (e) => {
|
|
9326
9362
|
queueMicrotask(() => {
|
|
9327
|
-
|
|
9363
|
+
Jp.updateModule(e);
|
|
9328
9364
|
});
|
|
9329
9365
|
}), this.message.on("ub", (e) => {
|
|
9330
9366
|
queueMicrotask(() => {
|
|
9331
|
-
|
|
9367
|
+
Jp.updateModules(e);
|
|
9332
9368
|
});
|
|
9333
9369
|
}), this.message.on("invokeAPI", (e) => {
|
|
9334
|
-
|
|
9370
|
+
Jp[e.name](e);
|
|
9335
9371
|
}), this.message.on("triggerCallback", (e) => {
|
|
9336
9372
|
let { success: t, data: n } = e;
|
|
9337
9373
|
t && ie.invoke(t, n);
|
|
@@ -9339,4 +9375,4 @@ var qp = new class {
|
|
|
9339
9375
|
}
|
|
9340
9376
|
}();
|
|
9341
9377
|
//#endregion
|
|
9342
|
-
export {
|
|
9378
|
+
export { Yp as default };
|