asai-vue-host 0.0.24 → 0.0.25
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/asai-vue-host.es.js +236 -236
- package/dist/asai-vue-host.umd.js +1 -1
- package/package.json +1 -1
package/dist/asai-vue-host.es.js
CHANGED
|
@@ -23,7 +23,7 @@ const Be = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
23
23
|
__proto__: null,
|
|
24
24
|
default: kt
|
|
25
25
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
26
|
-
function
|
|
26
|
+
function Se(t, e) {
|
|
27
27
|
function n(b, k) {
|
|
28
28
|
k?.classList?.contains(b) && k.classList.remove(b);
|
|
29
29
|
}
|
|
@@ -84,7 +84,7 @@ function xe(t, e) {
|
|
|
84
84
|
}
|
|
85
85
|
const fe = {}, jt = {
|
|
86
86
|
mounted(t, e) {
|
|
87
|
-
const { fnPThrottle: n, vtTouchInit: o, vtTouchDown: a, vtTouchUp: s } =
|
|
87
|
+
const { fnPThrottle: n, vtTouchInit: o, vtTouchDown: a, vtTouchUp: s } = Se(
|
|
88
88
|
t,
|
|
89
89
|
e.value
|
|
90
90
|
);
|
|
@@ -114,20 +114,20 @@ const fe = {}, jt = {
|
|
|
114
114
|
unmounted(t) {
|
|
115
115
|
typeof fe?.unmounted == "function" && fe.unmounted();
|
|
116
116
|
}
|
|
117
|
-
},
|
|
117
|
+
}, St = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
118
118
|
__proto__: null,
|
|
119
119
|
default: jt
|
|
120
|
-
}, Symbol.toStringTag, { value: "Module" })), ze = {},
|
|
120
|
+
}, Symbol.toStringTag, { value: "Module" })), ze = {}, xt = {
|
|
121
121
|
mounted(t, e) {
|
|
122
|
-
const { fnPThrottle: n, vtTouchInit: o, vtTouchDown: a, vtTouchUp: s } =
|
|
122
|
+
const { fnPThrottle: n, vtTouchInit: o, vtTouchDown: a, vtTouchUp: s } = Se(
|
|
123
123
|
t,
|
|
124
124
|
e.value
|
|
125
125
|
);
|
|
126
126
|
o(t);
|
|
127
127
|
let r = !1, c = { x: 0, y: 0 }, d = { x: 0, y: 0 }, i = null, f = 1;
|
|
128
|
-
const h = (e.value?.dom ? document.getElementById(e.value.dom) : "") || t, g = (e.value?.domarea ? document.getElementById(e.value.domarea) : "") || h, _ = (e.value?.dommask ? document.getElementById(e.value.dommask) : "") || (e.value?.ujt?.$global?.sys?.zoomid ? document.getElementById(e.value.ujt.$global.sys.zoomid) : "") || document.getElementById("asaizoomarea") || document.body, $ = () => _ && (e.value?.scale || e.value?.ujt?.$global?.scale) || 1, y = (
|
|
128
|
+
const h = (e.value?.dom ? document.getElementById(e.value.dom) : "") || t, g = (e.value?.domarea ? document.getElementById(e.value.domarea) : "") || h, _ = (e.value?.dommask ? document.getElementById(e.value.dommask) : "") || (e.value?.ujt?.$global?.sys?.zoomid ? document.getElementById(e.value.ujt.$global.sys.zoomid) : "") || document.getElementById("asaizoomarea") || document.body, $ = () => _ && (e.value?.scale || e.value?.ujt?.$global?.scale) || 1, y = (S) => {
|
|
129
129
|
if (!_) return;
|
|
130
|
-
if (a(t),
|
|
130
|
+
if (a(t), S.preventDefault(), f = $(), e.value?.pos)
|
|
131
131
|
d = e.value.pos;
|
|
132
132
|
else {
|
|
133
133
|
const P = window.getComputedStyle(g).transform?.split(", ");
|
|
@@ -144,16 +144,16 @@ const fe = {}, jt = {
|
|
|
144
144
|
};
|
|
145
145
|
}
|
|
146
146
|
r = !0, i = _.getBoundingClientRect();
|
|
147
|
-
let L,
|
|
148
|
-
L =
|
|
147
|
+
let L, x;
|
|
148
|
+
L = S.clientX, x = S.clientY, c = {
|
|
149
149
|
x: (L - i.left) / f - d.x,
|
|
150
|
-
y: (
|
|
151
|
-
}, h.setPointerCapture(
|
|
152
|
-
}, b = (
|
|
150
|
+
y: (x - i.top) / f - d.y
|
|
151
|
+
}, h.setPointerCapture(S.pointerId), document.addEventListener("pointermove", b), document.addEventListener("pointerup", k), document.addEventListener("pointercancel", k);
|
|
152
|
+
}, b = (S) => {
|
|
153
153
|
if (!r || !i) return;
|
|
154
|
-
let L,
|
|
155
|
-
L =
|
|
156
|
-
const w = (L - i.left) / f - c.x, P = (
|
|
154
|
+
let L, x;
|
|
155
|
+
L = S.clientX, x = S.clientY, f = $();
|
|
156
|
+
const w = (L - i.left) / f - c.x, P = (x - i.top) / f - c.y, C = _.offsetWidth - g.offsetWidth, O = _.offsetHeight - g.offsetHeight;
|
|
157
157
|
n(() => {
|
|
158
158
|
e.value.pos ? (e.value.pos.x = +Math.max(
|
|
159
159
|
0,
|
|
@@ -169,8 +169,8 @@ const fe = {}, jt = {
|
|
|
169
169
|
Math.min(P, O)
|
|
170
170
|
).toFixed(3)}px)`;
|
|
171
171
|
});
|
|
172
|
-
}, k = (
|
|
173
|
-
s(t),
|
|
172
|
+
}, k = (S) => {
|
|
173
|
+
s(t), S instanceof PointerEvent && h.hasPointerCapture(S.pointerId) && (r = !1, h.releasePointerCapture(S.pointerId)), document.removeEventListener("pointermove", b), document.removeEventListener("pointerup", k), document.removeEventListener("pointercancel", k);
|
|
174
174
|
};
|
|
175
175
|
h.addEventListener("pointerdown", y);
|
|
176
176
|
const M = () => i = null;
|
|
@@ -183,7 +183,7 @@ const fe = {}, jt = {
|
|
|
183
183
|
}
|
|
184
184
|
}, Pt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
185
185
|
__proto__: null,
|
|
186
|
-
default:
|
|
186
|
+
default: xt
|
|
187
187
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
188
188
|
function Ct(t) {
|
|
189
189
|
const e = window.event || t;
|
|
@@ -282,7 +282,7 @@ const At = {
|
|
|
282
282
|
default: zt
|
|
283
283
|
}, Symbol.toStringTag, { value: "Module" })), Ut = {
|
|
284
284
|
mounted(t, e) {
|
|
285
|
-
const { vtTouchInit: n, vtTouchDown: o, vtTouchUp: a } =
|
|
285
|
+
const { vtTouchInit: n, vtTouchDown: o, vtTouchUp: a } = Se(
|
|
286
286
|
t,
|
|
287
287
|
e.value
|
|
288
288
|
);
|
|
@@ -302,8 +302,8 @@ const At = {
|
|
|
302
302
|
if (!c) return;
|
|
303
303
|
let b = 0, k = 0;
|
|
304
304
|
y?.touches?.[0] ? (b = y.touches[0].clientX, k = y.touches[0].clientY) : (b = y.clientX, k = y.clientY);
|
|
305
|
-
const M = Math.abs(b - d),
|
|
306
|
-
(M > f ||
|
|
305
|
+
const M = Math.abs(b - d), S = Math.abs(k - i);
|
|
306
|
+
(M > f || S > f) && (r !== null && (clearTimeout(r), r = null), c = !1);
|
|
307
307
|
}
|
|
308
308
|
};
|
|
309
309
|
t.addEventListener("pointerdown", h), t.addEventListener("pointerup", g), t.addEventListener("pointercancel", g), t.addEventListener("pointerleave", g), t._pressHandlers = $;
|
|
@@ -317,7 +317,7 @@ const At = {
|
|
|
317
317
|
default: Ut
|
|
318
318
|
}, Symbol.toStringTag, { value: "Module" })), Le = {}, It = {
|
|
319
319
|
mounted(t, e) {
|
|
320
|
-
const { fnPThrottle: n, vtTouchInit: o, vtTouchDown: a, vtTouchUp: s } =
|
|
320
|
+
const { fnPThrottle: n, vtTouchInit: o, vtTouchDown: a, vtTouchUp: s } = Se(
|
|
321
321
|
t,
|
|
322
322
|
e.value
|
|
323
323
|
);
|
|
@@ -329,9 +329,9 @@ const At = {
|
|
|
329
329
|
height: r?.$global?.sys?.zoomheight || 1200
|
|
330
330
|
}, g = () => d || r?.$global?.scale || 1;
|
|
331
331
|
let _ = !1, $, y, b, k, M = c || { w: 0, h: 0 };
|
|
332
|
-
const
|
|
332
|
+
const S = (C) => ({ clientX: C.clientX, clientY: C.clientY }), L = (C) => {
|
|
333
333
|
a(t), C.preventDefault(), f = g(), _ = !0;
|
|
334
|
-
const { clientX: O, clientY: j } =
|
|
334
|
+
const { clientX: O, clientY: j } = S(C);
|
|
335
335
|
$ = O - window.scrollX, y = j - window.scrollY, b = t.offsetWidth, k = t.offsetHeight;
|
|
336
336
|
const R = window.getComputedStyle(t).transform?.split(", ");
|
|
337
337
|
if (R && R.length > 2) {
|
|
@@ -344,14 +344,14 @@ const At = {
|
|
|
344
344
|
i = { x: 0, y: 0 };
|
|
345
345
|
t.style.transform = `translate(${i.x}px,${i.y}px)`, C instanceof PointerEvent && t.setPointerCapture(C.pointerId), document.addEventListener(
|
|
346
346
|
"pointermove",
|
|
347
|
-
|
|
347
|
+
x
|
|
348
348
|
), document.addEventListener("pointerup", w), document.addEventListener(
|
|
349
349
|
"pointercancel",
|
|
350
350
|
w
|
|
351
351
|
);
|
|
352
|
-
},
|
|
352
|
+
}, x = (C) => {
|
|
353
353
|
_ && n(() => {
|
|
354
|
-
const { clientX: O, clientY: j } =
|
|
354
|
+
const { clientX: O, clientY: j } = S(C), T = (O - window.scrollX - $) / f, R = (j - window.scrollY - y) / f;
|
|
355
355
|
M.w = +Math.min(
|
|
356
356
|
Math.max(88, b + T),
|
|
357
357
|
h.width - i.x
|
|
@@ -363,7 +363,7 @@ const At = {
|
|
|
363
363
|
}, w = (C) => {
|
|
364
364
|
s(t), C instanceof PointerEvent && t.hasPointerCapture(C.pointerId) && t.releasePointerCapture(C.pointerId), _ = !1, document.removeEventListener(
|
|
365
365
|
"pointermove",
|
|
366
|
-
|
|
366
|
+
x
|
|
367
367
|
), document.removeEventListener(
|
|
368
368
|
"pointerup",
|
|
369
369
|
w
|
|
@@ -391,7 +391,7 @@ const At = {
|
|
|
391
391
|
}, Symbol.toStringTag, { value: "Module" })), Rt = {
|
|
392
392
|
// 指令挂载到元素上时调用
|
|
393
393
|
mounted(t, e) {
|
|
394
|
-
const { fnPThrottle: n, vtTouchInit: o, vtTouchDown: a, vtTouchUp: s } =
|
|
394
|
+
const { fnPThrottle: n, vtTouchInit: o, vtTouchDown: a, vtTouchUp: s } = Se(
|
|
395
395
|
t,
|
|
396
396
|
e.value
|
|
397
397
|
);
|
|
@@ -405,20 +405,20 @@ const At = {
|
|
|
405
405
|
function y() {
|
|
406
406
|
return typeof h == "function" ? h() : typeof h?.value == "number" ? h?.value : typeof h == "number" ? h : 100;
|
|
407
407
|
}
|
|
408
|
-
let b, k = 1, M = !1,
|
|
408
|
+
let b, k = 1, M = !1, S = 0, L = 0, x = 0, w = 0;
|
|
409
409
|
const P = (T) => {
|
|
410
410
|
if (b = document.getElementById(d), !b) {
|
|
411
411
|
console.error(`未找到 ID 为 ${d} 的元素`);
|
|
412
412
|
return;
|
|
413
413
|
}
|
|
414
|
-
a(t), T.preventDefault(), k = g(), M = !0, i ? (
|
|
414
|
+
a(t), T.preventDefault(), k = g(), M = !0, i ? (x = T.clientY, w = b.offsetHeight) : (S = T.clientX, L = b.offsetWidth), document.addEventListener("pointermove", C), document.addEventListener("pointerup", O);
|
|
415
415
|
}, C = (T) => {
|
|
416
416
|
M && n(() => {
|
|
417
417
|
if (i) {
|
|
418
|
-
const R = (
|
|
418
|
+
const R = (x - T.clientY) / k, B = Math.max(y(), w + R);
|
|
419
419
|
b.style.height = Math.min(B, _.height) + "px", b.style.minHeight = Math.min(B, _.height) + "px";
|
|
420
420
|
} else {
|
|
421
|
-
const R = (
|
|
421
|
+
const R = (S - T.clientX) / k, B = Math.max(y(), L + R);
|
|
422
422
|
b.style.width = Math.min(B, _.width) + "px", b.style.minWidth = Math.min(B, _.width) + "px";
|
|
423
423
|
}
|
|
424
424
|
});
|
|
@@ -1048,7 +1048,7 @@ const At = {
|
|
|
1048
1048
|
}).catch(I);
|
|
1049
1049
|
});
|
|
1050
1050
|
}
|
|
1051
|
-
function
|
|
1051
|
+
function S() {
|
|
1052
1052
|
return new Promise((z, I) => {
|
|
1053
1053
|
try {
|
|
1054
1054
|
n[t.opt.channel] = {
|
|
@@ -1091,7 +1091,7 @@ const At = {
|
|
|
1091
1091
|
function L() {
|
|
1092
1092
|
return Object.keys(n[t.opt.channel].rfdata.lang);
|
|
1093
1093
|
}
|
|
1094
|
-
function
|
|
1094
|
+
function x() {
|
|
1095
1095
|
return L().join("-");
|
|
1096
1096
|
}
|
|
1097
1097
|
function w() {
|
|
@@ -1099,7 +1099,7 @@ const At = {
|
|
|
1099
1099
|
model: t.opt.model,
|
|
1100
1100
|
channel: t.opt.channel
|
|
1101
1101
|
};
|
|
1102
|
-
return z.field =
|
|
1102
|
+
return z.field = x(), Object.assign(
|
|
1103
1103
|
z,
|
|
1104
1104
|
n[t.opt.channel]?.cfg?.map || {},
|
|
1105
1105
|
o.location?.query || {}
|
|
@@ -1301,9 +1301,9 @@ const At = {
|
|
|
1301
1301
|
const _e = ce[le].split(
|
|
1302
1302
|
a.data.asai.rulebook.bklist
|
|
1303
1303
|
);
|
|
1304
|
-
for (let
|
|
1305
|
-
const Re = _e[
|
|
1306
|
-
|
|
1304
|
+
for (let xe = 0; xe < _e.length; xe++) {
|
|
1305
|
+
const Re = _e[xe];
|
|
1306
|
+
xe === 0 ? (X = Re.split(a.data.asai.rulebook.bksn)[1].split(a.data.asai.rulebook.bkty)[0], await k({
|
|
1307
1307
|
...w(),
|
|
1308
1308
|
field: i(),
|
|
1309
1309
|
fd: i(),
|
|
@@ -1386,7 +1386,7 @@ const At = {
|
|
|
1386
1386
|
});
|
|
1387
1387
|
}
|
|
1388
1388
|
return {
|
|
1389
|
-
initChannel:
|
|
1389
|
+
initChannel: S,
|
|
1390
1390
|
initAddChannel: C,
|
|
1391
1391
|
setChannelClass: j,
|
|
1392
1392
|
setPage: B,
|
|
@@ -1655,8 +1655,8 @@ const At = {
|
|
|
1655
1655
|
`).split(a.novel.rule.bkchannel), f, h, g;
|
|
1656
1656
|
return i.forEach((_) => {
|
|
1657
1657
|
_ && _.split(a.novel.rule.bkclass).forEach((y, b) => {
|
|
1658
|
-
b == 0 ? (f = s(y, "ch"), f.cc = [], c.push(f)) : y.split(a.novel.rule.bklist).forEach((M,
|
|
1659
|
-
|
|
1658
|
+
b == 0 ? (f = s(y, "ch"), f.cc = [], c.push(f)) : y.split(a.novel.rule.bklist).forEach((M, S) => {
|
|
1659
|
+
S == 0 ? (h = s(M, "cl"), h.cc = [], f.cc.push(h)) : (g = s(M, "li"), h.cc.push(g));
|
|
1660
1660
|
});
|
|
1661
1661
|
});
|
|
1662
1662
|
}), c;
|
|
@@ -1858,7 +1858,7 @@ const At = {
|
|
|
1858
1858
|
n.setquery({ pc: T.data?.length }, 1);
|
|
1859
1859
|
});
|
|
1860
1860
|
}
|
|
1861
|
-
function
|
|
1861
|
+
function S(j) {
|
|
1862
1862
|
n.setquery({ pg: j || 1 }, 1), k(a.location.query?.pc || 0);
|
|
1863
1863
|
}
|
|
1864
1864
|
function L() {
|
|
@@ -1886,7 +1886,7 @@ const At = {
|
|
|
1886
1886
|
});
|
|
1887
1887
|
});
|
|
1888
1888
|
}
|
|
1889
|
-
function
|
|
1889
|
+
function x() {
|
|
1890
1890
|
i().then((j) => {
|
|
1891
1891
|
j && (typeof j == "string" && (j = JSON.parse(j)), o.channeluser.cur.us = j.us, o.channeluser.cur.pw = j.pw, o.channeluser.cur.lv = j.lv || 1);
|
|
1892
1892
|
}).catch((j) => {
|
|
@@ -1981,10 +1981,10 @@ const At = {
|
|
|
1981
1981
|
userEdit: b,
|
|
1982
1982
|
fetchContent: k,
|
|
1983
1983
|
editUser: L,
|
|
1984
|
-
initUser:
|
|
1984
|
+
initUser: x,
|
|
1985
1985
|
delUser: P,
|
|
1986
1986
|
addUser: O,
|
|
1987
|
-
setPage:
|
|
1987
|
+
setPage: S,
|
|
1988
1988
|
cmLvList: c
|
|
1989
1989
|
};
|
|
1990
1990
|
}, vn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -2070,7 +2070,7 @@ const At = {
|
|
|
2070
2070
|
$model: n.$GYS.$webmodel,
|
|
2071
2071
|
$fn: He.providefn.data
|
|
2072
2072
|
};
|
|
2073
|
-
o.$global.$cfg = n.$CFG, o.$fn.lo = (...f) => {
|
|
2073
|
+
o.$global.$cfg = n.$CFG, n.$GYS.ujt = o, o.$fn.lo = (...f) => {
|
|
2074
2074
|
if (o.$global.sys?.onconsole) {
|
|
2075
2075
|
if (!f?.[0])
|
|
2076
2076
|
o.$model.gysfn.log();
|
|
@@ -2245,22 +2245,22 @@ const At = {
|
|
|
2245
2245
|
function M() {
|
|
2246
2246
|
o.$fn.AsRouter.setRouter(o.$global.location);
|
|
2247
2247
|
}
|
|
2248
|
-
o.$fn.setquery = (
|
|
2249
|
-
let
|
|
2250
|
-
L ?
|
|
2248
|
+
o.$fn.setquery = (S = {}, L = 0) => {
|
|
2249
|
+
let x;
|
|
2250
|
+
L ? x = new URLSearchParams({
|
|
2251
2251
|
...o.$global.location.query || {},
|
|
2252
|
-
...
|
|
2253
|
-
}).toString() :
|
|
2252
|
+
...S || {}
|
|
2253
|
+
}).toString() : x = new URLSearchParams(S || {}).toString(), x ? x = o.$global.location.hash.split("?")[0] + "?" + x : x = o.$global.location.hash.split("?")[0], o.$fn.AsRouter.setHash(
|
|
2254
2254
|
o.$global.location,
|
|
2255
|
-
|
|
2255
|
+
x
|
|
2256
2256
|
), M();
|
|
2257
|
-
}, o.$fn.sethash = (
|
|
2257
|
+
}, o.$fn.sethash = (S = "") => {
|
|
2258
2258
|
o.$fn.AsRouter.setHash(
|
|
2259
2259
|
o.$global.location,
|
|
2260
|
-
|
|
2260
|
+
S
|
|
2261
2261
|
);
|
|
2262
|
-
}, o.$fn.exit = (
|
|
2263
|
-
o.$fn.As.localSet("as-user-info", ""), o.$global.user.info = null, o.$global.code.token = null,
|
|
2262
|
+
}, o.$fn.exit = (S = 0) => {
|
|
2263
|
+
o.$fn.As.localSet("as-user-info", ""), o.$global.user.info = null, o.$global.code.token = null, S && (o.$fn.sethash(""), o.$fn.As.localReload());
|
|
2264
2264
|
}, o.$fn.login = () => {
|
|
2265
2265
|
o.$fn.As.localSet("as-user-info", ""), o.$global.user.info = null, o.$fn.sethash(
|
|
2266
2266
|
o.$global.sys?.router?.config?.login || "user/login"
|
|
@@ -2292,8 +2292,8 @@ const At = {
|
|
|
2292
2292
|
typeof y == "object" && Object.entries(y).forEach(
|
|
2293
2293
|
([b, k]) => {
|
|
2294
2294
|
b === "rights" ? Object.entries(k).forEach(
|
|
2295
|
-
([M,
|
|
2296
|
-
|
|
2295
|
+
([M, S]) => {
|
|
2296
|
+
S && S.length && S.forEach((L) => {
|
|
2297
2297
|
o.$global.sys.router.rights[M].includes(L) || o.$global.sys.router.rights[M].push(L);
|
|
2298
2298
|
});
|
|
2299
2299
|
}
|
|
@@ -2339,10 +2339,10 @@ const At = {
|
|
|
2339
2339
|
...o,
|
|
2340
2340
|
$ujtasai: o
|
|
2341
2341
|
};
|
|
2342
|
-
},
|
|
2342
|
+
}, Sn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2343
2343
|
__proto__: null,
|
|
2344
2344
|
default: jn
|
|
2345
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2345
|
+
}, Symbol.toStringTag, { value: "Module" })), xn = (t) => {
|
|
2346
2346
|
const { $fn: e, $model: n, $global: o, $ws: a } = t;
|
|
2347
2347
|
a?.beat || (a.beat = {});
|
|
2348
2348
|
function s(r = "web", c = 0) {
|
|
@@ -2357,7 +2357,7 @@ const At = {
|
|
|
2357
2357
|
return { pingPong: s };
|
|
2358
2358
|
}, Pn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2359
2359
|
__proto__: null,
|
|
2360
|
-
default:
|
|
2360
|
+
default: xn
|
|
2361
2361
|
}, Symbol.toStringTag, { value: "Module" })), Cn = (t, e = "web") => {
|
|
2362
2362
|
const { $global: n, $fn: o } = t;
|
|
2363
2363
|
return o.ws[e] || (o.ws[e] = new o.AsaiWs({
|
|
@@ -2806,7 +2806,7 @@ const At = {
|
|
|
2806
2806
|
}), wo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2807
2807
|
__proto__: null,
|
|
2808
2808
|
default: ko
|
|
2809
|
-
}, Symbol.toStringTag, { value: "Module" })), jo = { class: "as-form-align as-form-line" },
|
|
2809
|
+
}, Symbol.toStringTag, { value: "Module" })), jo = { class: "as-form-align as-form-line" }, So = { class: "as-channel-btns" }, xo = /* @__PURE__ */ A({
|
|
2810
2810
|
__name: "ChannelEdit",
|
|
2811
2811
|
props: {
|
|
2812
2812
|
ujt: {},
|
|
@@ -2826,7 +2826,7 @@ const At = {
|
|
|
2826
2826
|
asaidata: l(o)[e.opt.channel].rfdata
|
|
2827
2827
|
}, null, 8, ["ujt", "asaidata"])
|
|
2828
2828
|
]),
|
|
2829
|
-
u("div",
|
|
2829
|
+
u("div", So, [
|
|
2830
2830
|
u("div", {
|
|
2831
2831
|
class: "li cur",
|
|
2832
2832
|
onPointerdown: c[0] || (c[0] = (i) => l(a)())
|
|
@@ -2837,7 +2837,7 @@ const At = {
|
|
|
2837
2837
|
}
|
|
2838
2838
|
}), Po = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2839
2839
|
__proto__: null,
|
|
2840
|
-
default:
|
|
2840
|
+
default: xo
|
|
2841
2841
|
}, Symbol.toStringTag, { value: "Module" })), Co = { class: "as-channel-class" }, Ao = { class: "as-channel-bar" }, Oo = { class: "as-channel-class-area" }, Mo = {
|
|
2842
2842
|
key: 0,
|
|
2843
2843
|
class: "as-channel-class-bar"
|
|
@@ -2855,7 +2855,7 @@ const At = {
|
|
|
2855
2855
|
return r(), $e(() => {
|
|
2856
2856
|
a[e.opt.channel] = null;
|
|
2857
2857
|
}), (d, i) => {
|
|
2858
|
-
const f = U("ChannelClass"), h = U("ChannelUpDown"), g = U("ChannelListSearch"), _ = U("PopBoxConfirm"), $ = U("ChannelList"), y = U("ChannelListPage"), b = U("ChannelOpt"), k = U("ChannelEdit"), M = U("ChannelShow"),
|
|
2858
|
+
const f = U("ChannelClass"), h = U("ChannelUpDown"), g = U("ChannelListSearch"), _ = U("PopBoxConfirm"), $ = U("ChannelList"), y = U("ChannelListPage"), b = U("ChannelOpt"), k = U("ChannelEdit"), M = U("ChannelShow"), S = U("ChannelAdd");
|
|
2859
2859
|
return l(a)[e.opt.channel].stat ? (p(), m("div", {
|
|
2860
2860
|
key: 0,
|
|
2861
2861
|
class: K(e.opt.tyindex == 1 ? "as-channel-column" : "as-channel-row")
|
|
@@ -2946,7 +2946,7 @@ const At = {
|
|
|
2946
2946
|
}, null, 8, ["ujt", "opt"])
|
|
2947
2947
|
])
|
|
2948
2948
|
]),
|
|
2949
|
-
W(
|
|
2949
|
+
W(S, {
|
|
2950
2950
|
ujt: t.ujt,
|
|
2951
2951
|
opt: t.opt
|
|
2952
2952
|
}, null, 8, ["ujt", "opt"])
|
|
@@ -3002,7 +3002,7 @@ const At = {
|
|
|
3002
3002
|
u("div", {
|
|
3003
3003
|
onPointerdown: y[0] || (y[0] = V(() => {
|
|
3004
3004
|
}, ["stop"])),
|
|
3005
|
-
onPointerup: V((
|
|
3005
|
+
onPointerup: V((S) => {
|
|
3006
3006
|
l(f)({
|
|
3007
3007
|
con: l(g)("ui.delconfirm"),
|
|
3008
3008
|
fn: () => {
|
|
@@ -3014,7 +3014,7 @@ const At = {
|
|
|
3014
3014
|
u("div", {
|
|
3015
3015
|
onPointerdown: y[1] || (y[1] = V(() => {
|
|
3016
3016
|
}, ["stop"])),
|
|
3017
|
-
onPointerup: V((
|
|
3017
|
+
onPointerup: V((S) => l(r)(k?.[l(h)()]), ["stop"])
|
|
3018
3018
|
}, v(l(g)("ui.edit") || "Edit"), 41, Yo)
|
|
3019
3019
|
])) : F("", !0)
|
|
3020
3020
|
]),
|
|
@@ -3310,7 +3310,7 @@ const At = {
|
|
|
3310
3310
|
}), ja = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3311
3311
|
__proto__: null,
|
|
3312
3312
|
default: wa
|
|
3313
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3313
|
+
}, Symbol.toStringTag, { value: "Module" })), Sa = { class: "as-channel-pos-area" }, xa = /* @__PURE__ */ A({
|
|
3314
3314
|
__name: "ChannelPos",
|
|
3315
3315
|
props: {
|
|
3316
3316
|
ujt: {},
|
|
@@ -3322,7 +3322,7 @@ const At = {
|
|
|
3322
3322
|
item: l(n).location.query,
|
|
3323
3323
|
option: { setChannelHash: l(s) }
|
|
3324
3324
|
}, () => [
|
|
3325
|
-
u("div",
|
|
3325
|
+
u("div", Sa, [
|
|
3326
3326
|
u("div", {
|
|
3327
3327
|
class: "as-channel-pos",
|
|
3328
3328
|
onPointerup: d[0] || (d[0] = V((i) => l(s)("class"), ["stop"]))
|
|
@@ -3348,7 +3348,7 @@ const At = {
|
|
|
3348
3348
|
])
|
|
3349
3349
|
], !0);
|
|
3350
3350
|
}
|
|
3351
|
-
}), Pa = /* @__PURE__ */ q(
|
|
3351
|
+
}), Pa = /* @__PURE__ */ q(xa, [["__scopeId", "data-v-fa9b2bca"]]), Ca = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3352
3352
|
__proto__: null,
|
|
3353
3353
|
default: Pa
|
|
3354
3354
|
}, Symbol.toStringTag, { value: "Module" })), Aa = { class: "as-form-align as-form-line" }, Oa = { class: "as-channel-btns" }, Ma = /* @__PURE__ */ A({
|
|
@@ -3485,10 +3485,10 @@ const At = {
|
|
|
3485
3485
|
try {
|
|
3486
3486
|
const y = i.value;
|
|
3487
3487
|
if (!y) return;
|
|
3488
|
-
const b = y.selectionStart !== null ? y.selectionStart : y.value.length, k = y.selectionEnd !== null ? y.selectionEnd : y.value.length, M = y.value,
|
|
3489
|
-
y.value =
|
|
3488
|
+
const b = y.selectionStart !== null ? y.selectionStart : y.value.length, k = y.selectionEnd !== null ? y.selectionEnd : y.value.length, M = y.value, S = M.substring(0, b) + $ + M.substring(k);
|
|
3489
|
+
y.value = S;
|
|
3490
3490
|
const L = b + $.length;
|
|
3491
|
-
y.setSelectionRange(L, L), y.dispatchEvent(new Event("input", { bubbles: !0 })), f.send.msg =
|
|
3491
|
+
y.setSelectionRange(L, L), y.dispatchEvent(new Event("input", { bubbles: !0 })), f.send.msg = S;
|
|
3492
3492
|
} catch {
|
|
3493
3493
|
const k = i.value.value + $;
|
|
3494
3494
|
i.value.value = k, i.value.dispatchEvent(new Event("input", { bubbles: !0 })), f.send.msg = k, setTimeout(() => {
|
|
@@ -3760,7 +3760,7 @@ const At = {
|
|
|
3760
3760
|
}), ws = /* @__PURE__ */ q(ks, [["__scopeId", "data-v-99ad2b76"]]), js = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3761
3761
|
__proto__: null,
|
|
3762
3762
|
default: ws
|
|
3763
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3763
|
+
}, Symbol.toStringTag, { value: "Module" })), Ss = { class: "as-chatopt-area" }, xs = ["onPointerdown"], Ps = { class: "as-chatopt-icon" }, Cs = { class: "as-chatopt-tit" }, As = { class: "as-chatopt-btns" }, Os = /* @__PURE__ */ A({
|
|
3764
3764
|
__name: "ChatRoomOpt",
|
|
3765
3765
|
props: {
|
|
3766
3766
|
ujt: {},
|
|
@@ -3791,7 +3791,7 @@ const At = {
|
|
|
3791
3791
|
function c(d = null) {
|
|
3792
3792
|
console.log(666.006, "setOptty", d), d ? (e.chatdata.optty = d[0], e.chatdata.optcomp = d[1]) : (e.chatdata.optty = 1, e.chatdata.optcomp = "");
|
|
3793
3793
|
}
|
|
3794
|
-
return (d, i) => (p(), m("div",
|
|
3794
|
+
return (d, i) => (p(), m("div", Ss, [
|
|
3795
3795
|
t.chatdata.optty == 1 ? (p(!0), m(E, { key: 0 }, ee(o.types, (f) => (p(), m("div", {
|
|
3796
3796
|
class: "as-chatopt-li",
|
|
3797
3797
|
onPointerdown: (h) => c(f),
|
|
@@ -3799,7 +3799,7 @@ const At = {
|
|
|
3799
3799
|
}, [
|
|
3800
3800
|
u("div", Ps, v(f[2]), 1),
|
|
3801
3801
|
u("div", Cs, v(l(n).lang.sys.chat[f[1]]), 1)
|
|
3802
|
-
], 40,
|
|
3802
|
+
], 40, xs))), 128)) : (p(), m(E, { key: 1 }, [
|
|
3803
3803
|
u("div", As, [
|
|
3804
3804
|
u("div", {
|
|
3805
3805
|
class: "as-chatopt-btn",
|
|
@@ -4043,13 +4043,13 @@ const At = {
|
|
|
4043
4043
|
if (!b)
|
|
4044
4044
|
return;
|
|
4045
4045
|
const k = b.value;
|
|
4046
|
-
let M,
|
|
4047
|
-
M = b.selectionStart,
|
|
4046
|
+
let M, S;
|
|
4047
|
+
M = b.selectionStart, S = b.selectionEnd, M == null && (M = k.length, S = k.length), r[y] && typeof r[y] == "function" ? r[y]({ key: y, elDom: b, elVal: k, startPos: M, endPos: S }) : r.default({
|
|
4048
4048
|
key: y,
|
|
4049
4049
|
elDom: b,
|
|
4050
4050
|
elVal: k,
|
|
4051
4051
|
startPos: M,
|
|
4052
|
-
endPos:
|
|
4052
|
+
endPos: S,
|
|
4053
4053
|
char: null,
|
|
4054
4054
|
onsuggest: o.keyboard.params.type === "monaco" && o.keyboard.opt?.pasteText ? 1 : 0
|
|
4055
4055
|
});
|
|
@@ -4091,18 +4091,18 @@ const At = {
|
|
|
4091
4091
|
u("div", Us, [
|
|
4092
4092
|
G((p(), m("div", Es, [
|
|
4093
4093
|
u("div", Is, [
|
|
4094
|
-
(p(!0), m(E, null, ee(c.value, (
|
|
4095
|
-
class: K(s.bd.Type ==
|
|
4096
|
-
key:
|
|
4097
|
-
onPointerdown: V((L) => s.bd.Type =
|
|
4098
|
-
}, v(l(o).lang.sys?.keyboard?.menu?.[
|
|
4094
|
+
(p(!0), m(E, null, ee(c.value, (S) => (p(), m("div", {
|
|
4095
|
+
class: K(s.bd.Type == S ? "active" : ""),
|
|
4096
|
+
key: S,
|
|
4097
|
+
onPointerdown: V((L) => s.bd.Type = S, ["stop"])
|
|
4098
|
+
}, v(l(o).lang.sys?.keyboard?.menu?.[S] || S), 43, Ds))), 128))
|
|
4099
4099
|
]),
|
|
4100
4100
|
u("div", Rs, [
|
|
4101
4101
|
u("div", null, v(l(o).lang.sys?.keyboard?.Drag || "Drag"), 1),
|
|
4102
4102
|
u("div", {
|
|
4103
4103
|
onPointerdown: b[0] || (b[0] = V(
|
|
4104
4104
|
//@ts-ignore
|
|
4105
|
-
(...
|
|
4105
|
+
(...S) => l(r).Hide && l(r).Hide(...S),
|
|
4106
4106
|
["stop"]
|
|
4107
4107
|
))
|
|
4108
4108
|
}, v(l(o).lang.sys?.keyboard?.Hide || "Hide"), 33)
|
|
@@ -4118,7 +4118,7 @@ const At = {
|
|
|
4118
4118
|
]),
|
|
4119
4119
|
l(o).keyboard.comps?.[s.bd.Type] ? (p(), m("div", {
|
|
4120
4120
|
key: 0,
|
|
4121
|
-
onPointerdown: b[1] || (b[1] = (
|
|
4121
|
+
onPointerdown: b[1] || (b[1] = (S) => h(s.bd.Type)),
|
|
4122
4122
|
class: "keyboard-comp"
|
|
4123
4123
|
}, [
|
|
4124
4124
|
(p(), Y(pe(d(l(o).keyboard.comps[s.bd.Type])), {
|
|
@@ -4126,7 +4126,7 @@ const At = {
|
|
|
4126
4126
|
onChange: l(o).pop["popkeyboard" + s.bd.Type]?.fn
|
|
4127
4127
|
}, null, 40, ["ujt", "onChange"]))
|
|
4128
4128
|
], 32)) : (p(), m("div", Fs, [
|
|
4129
|
-
(p(!0), m(E, null, ee(s.mapkeys[s.bd.Type], (
|
|
4129
|
+
(p(!0), m(E, null, ee(s.mapkeys[s.bd.Type], (S, L) => (p(), m("div", {
|
|
4130
4130
|
class: "keyboard-row",
|
|
4131
4131
|
key: "row" + L
|
|
4132
4132
|
}, [
|
|
@@ -4135,33 +4135,33 @@ const At = {
|
|
|
4135
4135
|
u("div", Hs, v(s.bd.zhs), 1),
|
|
4136
4136
|
s.bd?.zharr?.length ? (p(), m("div", Vs, [
|
|
4137
4137
|
u("div", qs, [
|
|
4138
|
-
(p(!0), m(E, null, ee(s.bd.zharr, (
|
|
4138
|
+
(p(!0), m(E, null, ee(s.bd.zharr, (x, w) => (p(), m("div", {
|
|
4139
4139
|
key: "zh" + w,
|
|
4140
4140
|
class: K(`askey zh-li${s.bd.zhindex == w ? " zh-cur" : ""}`),
|
|
4141
|
-
"data-key":
|
|
4142
|
-
}, v(
|
|
4141
|
+
"data-key": x
|
|
4142
|
+
}, v(x), 11, Bs))), 128))
|
|
4143
4143
|
])
|
|
4144
4144
|
])) : (p(), m("div", {
|
|
4145
4145
|
key: 1,
|
|
4146
4146
|
class: "zh-list-area",
|
|
4147
|
-
onPointerdown: b[2] || (b[2] = V((
|
|
4147
|
+
onPointerdown: b[2] || (b[2] = V((x) => s.bd.zhs = "", ["stop"]))
|
|
4148
4148
|
}, [
|
|
4149
4149
|
u("div", Ns, v(l(o).lang.sys?.keyboard?.pynomatch), 1)
|
|
4150
4150
|
], 32))
|
|
4151
4151
|
])) : (p(), m("div", Ys, [
|
|
4152
4152
|
u("div", Xs, v(l(o).lang.sys?.keyboard?.pyclick), 1)
|
|
4153
4153
|
]))
|
|
4154
|
-
], 64)) : (p(!0), m(E, { key: 1 }, ee(
|
|
4154
|
+
], 64)) : (p(!0), m(E, { key: 1 }, ee(S, (x, w) => (p(), m("div", {
|
|
4155
4155
|
class: "keyboard-item",
|
|
4156
|
-
key: "k" +
|
|
4157
|
-
style: Z({ width: `${
|
|
4156
|
+
key: "k" + x?.[0],
|
|
4157
|
+
style: Z({ width: `${x[1]}%` })
|
|
4158
4158
|
}, [
|
|
4159
|
-
|
|
4159
|
+
x[2] == 2 ? (p(), m(E, { key: 0 }, [], 64)) : x[3] ? (p(), m("button", {
|
|
4160
4160
|
key: 1,
|
|
4161
|
-
class: K(`askey keyboard-key${
|
|
4162
|
-
"data-key":
|
|
4163
|
-
}, v(l(o).lang.sys?.keyboard?.[
|
|
4164
|
-
se(v(l(o).lang.sys?.keyboard?.[
|
|
4161
|
+
class: K(`askey keyboard-key${x[2] ? " key-bg" : ""}${s.bd[x[3]] ? " active" : ""}`),
|
|
4162
|
+
"data-key": x[0]
|
|
4163
|
+
}, v(l(o).lang.sys?.keyboard?.[x[0]] || x[0]), 11, Ks)) : x[0] === "Drag" ? G((p(), m("button", Js, [
|
|
4164
|
+
se(v(l(o).lang.sys?.keyboard?.[x[0]] || x[0]), 1)
|
|
4165
4165
|
])), [
|
|
4166
4166
|
[M, {
|
|
4167
4167
|
ujt: t.ujt,
|
|
@@ -4170,42 +4170,42 @@ const At = {
|
|
|
4170
4170
|
dommask: "askeyboardmask",
|
|
4171
4171
|
scale: t.opt?.scale
|
|
4172
4172
|
}]
|
|
4173
|
-
]) : s.popkeys.includes(
|
|
4173
|
+
]) : s.popkeys.includes(x[0]) ? (p(), Y(k, {
|
|
4174
4174
|
key: 3,
|
|
4175
4175
|
ujt: t.ujt,
|
|
4176
|
-
id: "popkeyboard" +
|
|
4176
|
+
id: "popkeyboard" + x[0]
|
|
4177
4177
|
}, {
|
|
4178
4178
|
desarea: re(() => [
|
|
4179
4179
|
u("button", {
|
|
4180
|
-
class: K(`askey keyboard-key${
|
|
4181
|
-
"data-key":
|
|
4182
|
-
}, v(l(o).lang.sys?.keyboard?.[
|
|
4180
|
+
class: K(`askey keyboard-key${x[2] ? " key-bg" : ""}`),
|
|
4181
|
+
"data-key": x[0]
|
|
4182
|
+
}, v(l(o).lang.sys?.keyboard?.[x[0]] || (s.bd.Shift ? x[0].toUpperCase() : x[0])), 11, Gs)
|
|
4183
4183
|
]),
|
|
4184
4184
|
poparea: re(() => [
|
|
4185
|
-
l(o).keyboard?.comps?.[
|
|
4185
|
+
l(o).keyboard?.comps?.[x[0]] ? (p(), m("div", {
|
|
4186
4186
|
key: 0,
|
|
4187
4187
|
class: K(
|
|
4188
4188
|
"as-pop-keyboard" + (s.popkeysx.includes(
|
|
4189
|
-
|
|
4189
|
+
x[0]
|
|
4190
4190
|
) ? "-r" : "")
|
|
4191
4191
|
)
|
|
4192
4192
|
}, [
|
|
4193
4193
|
(p(), Y(pe(
|
|
4194
4194
|
d(
|
|
4195
|
-
l(o).keyboard.comps[
|
|
4195
|
+
l(o).keyboard.comps[x[0]]
|
|
4196
4196
|
)
|
|
4197
4197
|
), {
|
|
4198
4198
|
ujt: t.ujt,
|
|
4199
|
-
onChange: l(o).pop["popkeyboard" +
|
|
4199
|
+
onChange: l(o).pop["popkeyboard" + x[0]].fn
|
|
4200
4200
|
}, null, 40, ["ujt", "onChange"]))
|
|
4201
4201
|
], 2)) : (p(), m("div", Zs, "No component!"))
|
|
4202
4202
|
]),
|
|
4203
4203
|
_: 2
|
|
4204
4204
|
}, 1032, ["ujt", "id"])) : (p(), m("button", {
|
|
4205
4205
|
key: 4,
|
|
4206
|
-
class: K(`askey keyboard-key${
|
|
4207
|
-
"data-key":
|
|
4208
|
-
}, v(l(o).lang.sys?.keyboard?.[
|
|
4206
|
+
class: K(`askey keyboard-key${x[2] ? " key-bg" : ""}`),
|
|
4207
|
+
"data-key": x[0]
|
|
4208
|
+
}, v(l(o).lang.sys?.keyboard?.[x[0]] || (s.bd.Shift ? x[0].toUpperCase() : x[0])), 11, Qs))
|
|
4209
4209
|
], 4))), 128))
|
|
4210
4210
|
]))), 128))
|
|
4211
4211
|
]))
|
|
@@ -4350,7 +4350,7 @@ const At = {
|
|
|
4350
4350
|
}, Symbol.toStringTag, { value: "Module" })), yl = { class: "novel-reader" }, bl = { class: "reader-header" }, _l = { class: "header-content" }, $l = { class: "novel-title" }, kl = { class: "search-container" }, wl = { class: "search-input-wrapper" }, jl = {
|
|
4351
4351
|
key: 0,
|
|
4352
4352
|
class: "search-results"
|
|
4353
|
-
},
|
|
4353
|
+
}, Sl = ["onClick"], xl = { class: "result-title" }, Pl = ["innerHTML"], Cl = {
|
|
4354
4354
|
key: 1,
|
|
4355
4355
|
class: "no-results"
|
|
4356
4356
|
}, Al = { class: "reader-container" }, Ol = { class: "volume-list" }, Ml = { class: "sidebar-title" }, Tl = ["onClick"], zl = { class: "volume-title" }, Ll = { class: "chapter-list" }, Ul = ["onClick"], El = { class: "reader-content" }, Il = { class: "content-container" }, Dl = { class: "chapter-header" }, Rl = { class: "chapter-title" }, Fl = { class: "chapter-meta" }, Wl = { key: 0 }, Hl = { class: "reader-controls" }, Vl = ["disabled"], ql = { class: "font-controls" }, Bl = ["disabled"], Nl = { class: "font-size-display" }, Yl = ["disabled"], Xl = ["disabled"], Kl = {
|
|
@@ -4380,11 +4380,11 @@ const At = {
|
|
|
4380
4380
|
(J) => J.sn === g.value?.sn
|
|
4381
4381
|
)), b = H(() => y.value > 0), k = H(() => y.value < $.value.length - 1), M = () => {
|
|
4382
4382
|
r.value = !r.value;
|
|
4383
|
-
},
|
|
4383
|
+
}, S = () => {
|
|
4384
4384
|
c.value = !c.value, c.value || (i.value = "", _.value = []);
|
|
4385
4385
|
}, L = () => {
|
|
4386
4386
|
c.value = !1, i.value = "", _.value = [];
|
|
4387
|
-
},
|
|
4387
|
+
}, x = (J) => {
|
|
4388
4388
|
const oe = h.value.indexOf(J);
|
|
4389
4389
|
oe > -1 ? h.value.splice(oe, 1) : h.value.push(J);
|
|
4390
4390
|
}, w = (J) => {
|
|
@@ -4442,7 +4442,7 @@ const At = {
|
|
|
4442
4442
|
u("h1", $l, v(l(a)[0].ch), 1),
|
|
4443
4443
|
u("button", {
|
|
4444
4444
|
class: "search-toggle",
|
|
4445
|
-
onClick:
|
|
4445
|
+
onClick: S
|
|
4446
4446
|
}, [...oe[2] || (oe[2] = [
|
|
4447
4447
|
u("svg", {
|
|
4448
4448
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4495,12 +4495,12 @@ const At = {
|
|
|
4495
4495
|
class: "search-result-item",
|
|
4496
4496
|
onClick: (Me) => R(ae)
|
|
4497
4497
|
}, [
|
|
4498
|
-
u("div",
|
|
4498
|
+
u("div", xl, v(ae.li), 1),
|
|
4499
4499
|
u("div", {
|
|
4500
4500
|
class: "result-preview",
|
|
4501
4501
|
innerHTML: ae.preview
|
|
4502
4502
|
}, null, 8, Pl)
|
|
4503
|
-
], 8,
|
|
4503
|
+
], 8, Sl))), 128))
|
|
4504
4504
|
])) : i.value && _.value.length === 0 ? (p(), m("div", Cl, " 未找到相关内容 ")) : F("", !0)
|
|
4505
4505
|
])
|
|
4506
4506
|
], 2),
|
|
@@ -4516,7 +4516,7 @@ const At = {
|
|
|
4516
4516
|
}, [
|
|
4517
4517
|
u("div", {
|
|
4518
4518
|
class: "volume-header",
|
|
4519
|
-
onClick: (ue) =>
|
|
4519
|
+
onClick: (ue) => x(ae.sn)
|
|
4520
4520
|
}, [
|
|
4521
4521
|
u("h3", zl, v(ae.cl), 1),
|
|
4522
4522
|
u("span", {
|
|
@@ -4853,7 +4853,7 @@ const At = {
|
|
|
4853
4853
|
}), ji = /* @__PURE__ */ q(wi, [["__scopeId", "data-v-7f2d34d0"]]), Ue = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4854
4854
|
__proto__: null,
|
|
4855
4855
|
default: ji
|
|
4856
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
4856
|
+
}, Symbol.toStringTag, { value: "Module" })), Si = /* @__PURE__ */ A({
|
|
4857
4857
|
__name: "ChangeLang",
|
|
4858
4858
|
props: {
|
|
4859
4859
|
ujt: {},
|
|
@@ -4870,9 +4870,9 @@ const At = {
|
|
|
4870
4870
|
], !0)
|
|
4871
4871
|
], 32));
|
|
4872
4872
|
}
|
|
4873
|
-
}),
|
|
4873
|
+
}), xi = /* @__PURE__ */ q(Si, [["__scopeId", "data-v-3ff47800"]]), Pi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4874
4874
|
__proto__: null,
|
|
4875
|
-
default:
|
|
4875
|
+
default: xi
|
|
4876
4876
|
}, Symbol.toStringTag, { value: "Module" })), Ci = /* @__PURE__ */ A({
|
|
4877
4877
|
__name: "ChangeTheme",
|
|
4878
4878
|
props: {
|
|
@@ -4971,7 +4971,7 @@ const At = {
|
|
|
4971
4971
|
};
|
|
4972
4972
|
const R = (B) => {
|
|
4973
4973
|
requestAnimationFrame(() => {
|
|
4974
|
-
C === "move" ? M(B) :
|
|
4974
|
+
C === "move" ? M(B) : S(B);
|
|
4975
4975
|
});
|
|
4976
4976
|
};
|
|
4977
4977
|
window.addEventListener("mousemove", R), window.addEventListener("touchmove", R), window.addEventListener("mouseup", L), window.addEventListener("touchend", L);
|
|
@@ -4992,7 +4992,7 @@ const At = {
|
|
|
4992
4992
|
)
|
|
4993
4993
|
);
|
|
4994
4994
|
Object.assign(h.value, { x: B, y: J });
|
|
4995
|
-
},
|
|
4995
|
+
}, S = (C) => {
|
|
4996
4996
|
const O = window.event || C, j = O.touches ? O.touches[0] : O;
|
|
4997
4997
|
if (g.value.type !== "resize") return;
|
|
4998
4998
|
const T = j.clientX - g.value.startX, R = j.clientY - g.value.startY, B = g.value.direction;
|
|
@@ -5024,8 +5024,8 @@ const At = {
|
|
|
5024
5024
|
height: oe
|
|
5025
5025
|
});
|
|
5026
5026
|
}, L = () => {
|
|
5027
|
-
g.value.type = null, window.removeEventListener("mousemove", M), window.removeEventListener("touchmove", M), window.removeEventListener("mousemove",
|
|
5028
|
-
},
|
|
5027
|
+
g.value.type = null, window.removeEventListener("mousemove", M), window.removeEventListener("touchmove", M), window.removeEventListener("mousemove", S), window.removeEventListener("touchmove", S), window.removeEventListener("mouseup", L), window.removeEventListener("touchend", L);
|
|
5028
|
+
}, x = () => {
|
|
5029
5029
|
const C = i.value, O = C.naturalWidth / C.width, j = C.naturalHeight / C.height, T = Math.min(
|
|
5030
5030
|
h.value.width * O,
|
|
5031
5031
|
C.naturalWidth
|
|
@@ -5111,7 +5111,7 @@ const At = {
|
|
|
5111
5111
|
], 512),
|
|
5112
5112
|
u("div", Li, [
|
|
5113
5113
|
u("button", {
|
|
5114
|
-
onPointerdown:
|
|
5114
|
+
onPointerdown: x,
|
|
5115
5115
|
onTouchstart: O[10] || (O[10] = V(() => {
|
|
5116
5116
|
}, ["stop"]))
|
|
5117
5117
|
}, v(l(o).lg("asai.confirm")), 33),
|
|
@@ -5472,10 +5472,10 @@ const At = {
|
|
|
5472
5472
|
const $ = o.value, y = n.value.clientHeight;
|
|
5473
5473
|
let b = 0, k = e.items.length;
|
|
5474
5474
|
for (; b < k; ) {
|
|
5475
|
-
const
|
|
5476
|
-
g(
|
|
5475
|
+
const x = b + k >>> 1;
|
|
5476
|
+
g(x) <= $ ? b = x + 1 : k = x;
|
|
5477
5477
|
}
|
|
5478
|
-
const M = Math.max(0, b - 1),
|
|
5478
|
+
const M = Math.max(0, b - 1), S = Math.ceil(y / e.itemHeight) + e.buffer * 2, L = Math.min(e.items.length, M + S);
|
|
5479
5479
|
return { start: M, end: L };
|
|
5480
5480
|
}, h = H(() => {
|
|
5481
5481
|
const { start: $, end: y } = f();
|
|
@@ -5572,19 +5572,19 @@ const At = {
|
|
|
5572
5572
|
)
|
|
5573
5573
|
), h = H(
|
|
5574
5574
|
() => n.items.slice(i.value, f.value).map((b, k) => {
|
|
5575
|
-
const M = i.value + k,
|
|
5575
|
+
const M = i.value + k, S = g(M);
|
|
5576
5576
|
return {
|
|
5577
5577
|
index: M,
|
|
5578
5578
|
id: b.id || M,
|
|
5579
5579
|
data: b,
|
|
5580
|
-
offset:
|
|
5580
|
+
offset: S
|
|
5581
5581
|
};
|
|
5582
5582
|
})
|
|
5583
|
-
), g = (b) => n.items.slice(0, b).reduce((k, M,
|
|
5583
|
+
), g = (b) => n.items.slice(0, b).reduce((k, M, S) => k + d(S), 0), _ = (b) => {
|
|
5584
5584
|
let k = 0, M = n.items.length - 1;
|
|
5585
5585
|
for (; k <= M; ) {
|
|
5586
|
-
const
|
|
5587
|
-
g(
|
|
5586
|
+
const S = Math.floor((k + M) / 2);
|
|
5587
|
+
g(S) <= b ? k = S + 1 : M = S - 1;
|
|
5588
5588
|
}
|
|
5589
5589
|
return M;
|
|
5590
5590
|
}, $ = () => {
|
|
@@ -5593,8 +5593,8 @@ const At = {
|
|
|
5593
5593
|
});
|
|
5594
5594
|
}, y = () => {
|
|
5595
5595
|
o.value.querySelectorAll(".virtual-list-item").forEach((k, M) => {
|
|
5596
|
-
const
|
|
5597
|
-
s.value[
|
|
5596
|
+
const S = i.value + M;
|
|
5597
|
+
s.value[S] = k.offsetHeight;
|
|
5598
5598
|
});
|
|
5599
5599
|
};
|
|
5600
5600
|
return he(() => {
|
|
@@ -5688,10 +5688,10 @@ const At = {
|
|
|
5688
5688
|
D(o.$slots, "default")
|
|
5689
5689
|
], 4));
|
|
5690
5690
|
}
|
|
5691
|
-
}),
|
|
5691
|
+
}), Sr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5692
5692
|
__proto__: null,
|
|
5693
5693
|
default: jr
|
|
5694
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
5694
|
+
}, Symbol.toStringTag, { value: "Module" })), xr = /* @__PURE__ */ A({
|
|
5695
5695
|
__name: "AsaiFormLabel",
|
|
5696
5696
|
props: {
|
|
5697
5697
|
ujt: {},
|
|
@@ -5713,7 +5713,7 @@ const At = {
|
|
|
5713
5713
|
se(" " + v(t.asaidata.eq > 2 ? "," : ""), 1)
|
|
5714
5714
|
]));
|
|
5715
5715
|
}
|
|
5716
|
-
}), Pr = /* @__PURE__ */ q(
|
|
5716
|
+
}), Pr = /* @__PURE__ */ q(xr, [["__scopeId", "data-v-f7bf26e5"]]), Ke = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5717
5717
|
__proto__: null,
|
|
5718
5718
|
default: Pr
|
|
5719
5719
|
}, Symbol.toStringTag, { value: "Module" })), Cr = /* @__PURE__ */ A({
|
|
@@ -5865,7 +5865,7 @@ const At = {
|
|
|
5865
5865
|
function d() {
|
|
5866
5866
|
s.value && (s.value.innerHTML = e.formdata[e.formkey]);
|
|
5867
5867
|
}
|
|
5868
|
-
function i(
|
|
5868
|
+
function i(x, w = 0) {
|
|
5869
5869
|
const P = /* @__PURE__ */ new Set([
|
|
5870
5870
|
"a",
|
|
5871
5871
|
"figure",
|
|
@@ -5905,7 +5905,7 @@ const At = {
|
|
|
5905
5905
|
"style",
|
|
5906
5906
|
"controls",
|
|
5907
5907
|
"download"
|
|
5908
|
-
]), O = new DOMParser().parseFromString(
|
|
5908
|
+
]), O = new DOMParser().parseFromString(x, "text/html");
|
|
5909
5909
|
return Array.from(O.body.querySelectorAll("*")).reverse().forEach((j) => {
|
|
5910
5910
|
const T = j.tagName.toLowerCase();
|
|
5911
5911
|
if (!P.has(T))
|
|
@@ -5920,11 +5920,11 @@ const At = {
|
|
|
5920
5920
|
});
|
|
5921
5921
|
}), O.body.innerHTML;
|
|
5922
5922
|
}
|
|
5923
|
-
function f(
|
|
5923
|
+
function f(x, w = 0) {
|
|
5924
5924
|
try {
|
|
5925
5925
|
if (w)
|
|
5926
|
-
return
|
|
5927
|
-
const P = new URL(
|
|
5926
|
+
return x;
|
|
5927
|
+
const P = new URL(x, location.href);
|
|
5928
5928
|
if ([
|
|
5929
5929
|
"http:",
|
|
5930
5930
|
"https:",
|
|
@@ -5936,39 +5936,39 @@ const At = {
|
|
|
5936
5936
|
].includes(P.protocol))
|
|
5937
5937
|
return P.href;
|
|
5938
5938
|
} catch {
|
|
5939
|
-
return
|
|
5939
|
+
return x.startsWith("#") || !/:/.test(x) ? x : "";
|
|
5940
5940
|
}
|
|
5941
5941
|
return "";
|
|
5942
5942
|
}
|
|
5943
5943
|
function h() {
|
|
5944
|
-
const
|
|
5945
|
-
|
|
5944
|
+
const x = window.prompt("请输入链接地址");
|
|
5945
|
+
x && S("createLink", x);
|
|
5946
5946
|
}
|
|
5947
|
-
function g(
|
|
5948
|
-
a.value.accept = `${
|
|
5947
|
+
function g(x) {
|
|
5948
|
+
a.value.accept = `${x}/*`, be(() => a.value?.click());
|
|
5949
5949
|
}
|
|
5950
|
-
async function _(
|
|
5951
|
-
const w =
|
|
5950
|
+
async function _(x) {
|
|
5951
|
+
const w = x.target.files?.[0];
|
|
5952
5952
|
if (!w)
|
|
5953
5953
|
return;
|
|
5954
5954
|
let P, C = "";
|
|
5955
|
-
w.type.startsWith("image") ? (P = await $(w), C = `<img src="${P}" style="max-width:100%">`) : (w.size > 1024 * 1024 ? P = URL.createObjectURL(w) : P = await $(w), w.type.startsWith("video") ? C = `<video controls src="${P}" style="max-width:100%"></video>` : C = `<a href="${P}" download="${w.name}">${w.name}</a>`),
|
|
5955
|
+
w.type.startsWith("image") ? (P = await $(w), C = `<img src="${P}" style="max-width:100%">`) : (w.size > 1024 * 1024 ? P = URL.createObjectURL(w) : P = await $(w), w.type.startsWith("video") ? C = `<video controls src="${P}" style="max-width:100%"></video>` : C = `<a href="${P}" download="${w.name}">${w.name}</a>`), S("insertHTML", C);
|
|
5956
5956
|
}
|
|
5957
|
-
function $(
|
|
5957
|
+
function $(x) {
|
|
5958
5958
|
return new Promise((w, P) => {
|
|
5959
|
-
if (!
|
|
5959
|
+
if (!x)
|
|
5960
5960
|
return P(new Error("Invalid file"));
|
|
5961
5961
|
const C = new FileReader();
|
|
5962
5962
|
C.onload = (O) => {
|
|
5963
|
-
|
|
5963
|
+
x.type.startsWith("image/") ? y(O.target.result).then((j) => {
|
|
5964
5964
|
w(j);
|
|
5965
5965
|
}).catch((j) => {
|
|
5966
5966
|
P(j);
|
|
5967
5967
|
}) : w(O.target.result);
|
|
5968
|
-
}, C.onerror = () => P(new Error("File read failed")), C.readAsDataURL(
|
|
5968
|
+
}, C.onerror = () => P(new Error("File read failed")), C.readAsDataURL(x);
|
|
5969
5969
|
});
|
|
5970
5970
|
}
|
|
5971
|
-
function y(
|
|
5971
|
+
function y(x) {
|
|
5972
5972
|
return new Promise((w, P) => {
|
|
5973
5973
|
const C = new Image(), O = document.createElement("canvas"), j = O.getContext("2d", {
|
|
5974
5974
|
willReadFrequently: !1
|
|
@@ -5977,7 +5977,7 @@ const At = {
|
|
|
5977
5977
|
const R = () => {
|
|
5978
5978
|
T || (C.onload = C.onerror = null, C.src = "", O.width = O.height = 0, T = !0);
|
|
5979
5979
|
};
|
|
5980
|
-
C.crossOrigin = "anonymous", C.src =
|
|
5980
|
+
C.crossOrigin = "anonymous", C.src = x, C.onload = () => {
|
|
5981
5981
|
try {
|
|
5982
5982
|
const B = Math.min(o.img.maxWidth / C.width, 1);
|
|
5983
5983
|
O.width = B < 1 ? o.img.maxWidth : C.width, O.height = B < 1 ? C.height * B : C.height, j.imageSmoothingEnabled = !0, j.imageSmoothingQuality = "high", j.clearRect(0, 0, O.width, O.height), j.drawImage(C, 0, 0, O.width, O.height);
|
|
@@ -5994,8 +5994,8 @@ const At = {
|
|
|
5994
5994
|
};
|
|
5995
5995
|
});
|
|
5996
5996
|
}
|
|
5997
|
-
function b(
|
|
5998
|
-
|
|
5997
|
+
function b(x) {
|
|
5998
|
+
x.preventDefault(), Object.keys(o.imgurls).forEach((w) => {
|
|
5999
5999
|
y(o.imgurls[w]).then((P) => {
|
|
6000
6000
|
o.imgurls[w] == "1" && (o.imgurls[w] = "2", e.formdata[e.formkey].replaceAll(
|
|
6001
6001
|
o.imgurls[w],
|
|
@@ -6004,29 +6004,29 @@ const At = {
|
|
|
6004
6004
|
});
|
|
6005
6005
|
});
|
|
6006
6006
|
}
|
|
6007
|
-
function k(
|
|
6008
|
-
|
|
6009
|
-
const w =
|
|
6010
|
-
|
|
6007
|
+
function k(x) {
|
|
6008
|
+
x.preventDefault();
|
|
6009
|
+
const w = x.clipboardData?.getData("text/html") || "", P = i(w, 1) || x.clipboardData?.getData("text/plain") || "";
|
|
6010
|
+
S("insertHTML", P);
|
|
6011
6011
|
}
|
|
6012
|
-
function M(
|
|
6012
|
+
function M(x) {
|
|
6013
6013
|
s.value && (e.formdata[e.formkey] = i(
|
|
6014
6014
|
s.value.innerHTML
|
|
6015
6015
|
));
|
|
6016
6016
|
}
|
|
6017
|
-
function x
|
|
6018
|
-
s.value && document.execCommand(
|
|
6017
|
+
function S(x, w = null) {
|
|
6018
|
+
s.value && document.execCommand(x, !1, w);
|
|
6019
6019
|
}
|
|
6020
6020
|
function L() {
|
|
6021
6021
|
c.value++, c.value > 2 && (c.value = 0), be(d);
|
|
6022
6022
|
}
|
|
6023
|
-
return (
|
|
6023
|
+
return (x, w) => (p(), m("div", {
|
|
6024
6024
|
class: "as-richtext-area",
|
|
6025
6025
|
style: Z(e.asaidata.rule?.[e.formkey]?.style || {})
|
|
6026
6026
|
}, [
|
|
6027
6027
|
u("div", Mr, [
|
|
6028
6028
|
u("select", {
|
|
6029
|
-
onChange: w[0] || (w[0] = (P) =>
|
|
6029
|
+
onChange: w[0] || (w[0] = (P) => S("fontSize", P.target.value))
|
|
6030
6030
|
}, [
|
|
6031
6031
|
u("option", Tr, v(l(n).lang.richtexteditor.fontsize), 1),
|
|
6032
6032
|
(p(), m(E, null, ee(8, (P) => u("option", {
|
|
@@ -6035,7 +6035,7 @@ const At = {
|
|
|
6035
6035
|
}, v(P * (P - 1) + 8) + "px ", 9, zr)), 64))
|
|
6036
6036
|
], 32),
|
|
6037
6037
|
u("select", {
|
|
6038
|
-
onChange: w[1] || (w[1] = (P) =>
|
|
6038
|
+
onChange: w[1] || (w[1] = (P) => S("formatBlock", P.target.value))
|
|
6039
6039
|
}, [
|
|
6040
6040
|
u("option", Lr, v(l(n).lang.richtexteditor.paragraph), 1),
|
|
6041
6041
|
(p(), m(E, null, ee(6, (P) => u("option", {
|
|
@@ -6044,57 +6044,57 @@ const At = {
|
|
|
6044
6044
|
}, v(l(n).lang.richtexteditor.title) + v(P), 9, Ur)), 64))
|
|
6045
6045
|
], 32),
|
|
6046
6046
|
u("button", {
|
|
6047
|
-
onPointerdown: w[2] || (w[2] = (P) =>
|
|
6047
|
+
onPointerdown: w[2] || (w[2] = (P) => S("bold")),
|
|
6048
6048
|
title: l(n).lang.richtexteditor.bold
|
|
6049
6049
|
}, " B ", 40, Er),
|
|
6050
6050
|
u("button", {
|
|
6051
|
-
onPointerdown: w[3] || (w[3] = (P) =>
|
|
6051
|
+
onPointerdown: w[3] || (w[3] = (P) => S("underline")),
|
|
6052
6052
|
title: l(n).lang.richtexteditor.underline
|
|
6053
6053
|
}, " U ", 40, Ir),
|
|
6054
6054
|
u("button", {
|
|
6055
|
-
onPointerdown: w[4] || (w[4] = (P) =>
|
|
6055
|
+
onPointerdown: w[4] || (w[4] = (P) => S("italic")),
|
|
6056
6056
|
title: l(n).lang.richtexteditor.italic
|
|
6057
6057
|
}, " I ", 40, Dr),
|
|
6058
6058
|
u("button", {
|
|
6059
|
-
onPointerdown: w[5] || (w[5] = (P) =>
|
|
6059
|
+
onPointerdown: w[5] || (w[5] = (P) => S("strikethrough")),
|
|
6060
6060
|
title: l(n).lang.richtexteditor.strikethrough
|
|
6061
6061
|
}, " S ", 40, Rr),
|
|
6062
6062
|
u("input", {
|
|
6063
6063
|
type: "color",
|
|
6064
|
-
onInput: w[6] || (w[6] = (P) =>
|
|
6064
|
+
onInput: w[6] || (w[6] = (P) => S("foreColor", P.target.value)),
|
|
6065
6065
|
title: l(n).lang.richtexteditor.foreColor
|
|
6066
6066
|
}, null, 40, Fr),
|
|
6067
6067
|
u("input", {
|
|
6068
6068
|
type: "color",
|
|
6069
|
-
onInput: w[7] || (w[7] = (P) =>
|
|
6069
|
+
onInput: w[7] || (w[7] = (P) => S("backColor", P.target.value)),
|
|
6070
6070
|
title: l(n).lang.richtexteditor.backColor
|
|
6071
6071
|
}, null, 40, Wr),
|
|
6072
6072
|
u("button", {
|
|
6073
|
-
onPointerdown: w[8] || (w[8] = (P) =>
|
|
6073
|
+
onPointerdown: w[8] || (w[8] = (P) => S("insertOrderedList")),
|
|
6074
6074
|
title: l(n).lang.richtexteditor.insertOrderedList
|
|
6075
6075
|
}, " 有 ", 40, Hr),
|
|
6076
6076
|
u("button", {
|
|
6077
|
-
onPointerdown: w[9] || (w[9] = (P) =>
|
|
6077
|
+
onPointerdown: w[9] || (w[9] = (P) => S("insertUnorderedList")),
|
|
6078
6078
|
title: l(n).lang.richtexteditor.insertUnorderedList
|
|
6079
6079
|
}, " 无 ", 40, Vr),
|
|
6080
6080
|
u("button", {
|
|
6081
|
-
onPointerdown: w[10] || (w[10] = (P) =>
|
|
6081
|
+
onPointerdown: w[10] || (w[10] = (P) => S("justifyCenter")),
|
|
6082
6082
|
title: "居中"
|
|
6083
6083
|
}, " 中 ", 32),
|
|
6084
6084
|
u("button", {
|
|
6085
|
-
onPointerdown: w[11] || (w[11] = (P) =>
|
|
6085
|
+
onPointerdown: w[11] || (w[11] = (P) => S("justifyFull")),
|
|
6086
6086
|
title: "两端对齐"
|
|
6087
6087
|
}, " 两 ", 32),
|
|
6088
6088
|
u("button", {
|
|
6089
|
-
onPointerdown: w[12] || (w[12] = (P) =>
|
|
6089
|
+
onPointerdown: w[12] || (w[12] = (P) => S("justifyRight")),
|
|
6090
6090
|
title: "右对齐"
|
|
6091
6091
|
}, " 右 ", 32),
|
|
6092
6092
|
u("button", {
|
|
6093
|
-
onPointerdown: w[13] || (w[13] = (P) =>
|
|
6093
|
+
onPointerdown: w[13] || (w[13] = (P) => S("justifyLeft")),
|
|
6094
6094
|
title: "左对齐"
|
|
6095
6095
|
}, " 左 ", 32),
|
|
6096
6096
|
u("button", {
|
|
6097
|
-
onPointerdown: w[14] || (w[14] = (P) =>
|
|
6097
|
+
onPointerdown: w[14] || (w[14] = (P) => S("delete")),
|
|
6098
6098
|
title: "删除"
|
|
6099
6099
|
}, " 删 ", 32),
|
|
6100
6100
|
u("button", {
|
|
@@ -6102,7 +6102,7 @@ const At = {
|
|
|
6102
6102
|
title: "链接"
|
|
6103
6103
|
}, "链", 32),
|
|
6104
6104
|
u("button", {
|
|
6105
|
-
onPointerdown: w[16] || (w[16] = (P) =>
|
|
6105
|
+
onPointerdown: w[16] || (w[16] = (P) => S("unlink")),
|
|
6106
6106
|
title: "删除链接"
|
|
6107
6107
|
}, " 除 ", 32),
|
|
6108
6108
|
u("button", {
|
|
@@ -6485,25 +6485,25 @@ const At = {
|
|
|
6485
6485
|
})), f = H(
|
|
6486
6486
|
() => c.value.width > 0 && c.value.height > 0
|
|
6487
6487
|
), h = () => {
|
|
6488
|
-
const
|
|
6489
|
-
if (!
|
|
6488
|
+
const S = a.value, L = r.value;
|
|
6489
|
+
if (!S || !L) {
|
|
6490
6490
|
console.error("Image or container element not found.");
|
|
6491
6491
|
return;
|
|
6492
6492
|
}
|
|
6493
|
-
const
|
|
6493
|
+
const x = Math.min(L.clientWidth, S.naturalWidth), w = Math.min(L.clientHeight, S.naturalHeight), P = Math.min(x * 0.8, S.naturalWidth), C = Math.min(w * 0.8, S.naturalHeight);
|
|
6494
6494
|
c.value = {
|
|
6495
|
-
x: (
|
|
6495
|
+
x: (x - P) / 2,
|
|
6496
6496
|
y: (w - C) / 2,
|
|
6497
6497
|
width: P,
|
|
6498
6498
|
height: C,
|
|
6499
|
-
maxWidth:
|
|
6499
|
+
maxWidth: x,
|
|
6500
6500
|
maxHeight: w
|
|
6501
6501
|
}, console.log("Initial crop params:", c.value);
|
|
6502
|
-
}, g = (
|
|
6503
|
-
console.log("Interaction started:",
|
|
6504
|
-
const
|
|
6502
|
+
}, g = (S, L = null) => {
|
|
6503
|
+
console.log("Interaction started:", S, L);
|
|
6504
|
+
const x = window.event || x, w = x.touches ? x.touches[0] : x;
|
|
6505
6505
|
d.value = {
|
|
6506
|
-
type:
|
|
6506
|
+
type: S,
|
|
6507
6507
|
startX: w.clientX,
|
|
6508
6508
|
startY: w.clientY,
|
|
6509
6509
|
originalX: c.value.x,
|
|
@@ -6514,14 +6514,14 @@ const At = {
|
|
|
6514
6514
|
};
|
|
6515
6515
|
const P = (C) => {
|
|
6516
6516
|
requestAnimationFrame(() => {
|
|
6517
|
-
|
|
6517
|
+
S === "move" ? _(C) : $(C);
|
|
6518
6518
|
});
|
|
6519
6519
|
};
|
|
6520
6520
|
window.addEventListener("mousemove", P), window.addEventListener("touchmove", P), window.addEventListener("mouseup", y), window.addEventListener("touchend", y);
|
|
6521
|
-
}, _ = (
|
|
6522
|
-
const L = window.event ||
|
|
6521
|
+
}, _ = (S) => {
|
|
6522
|
+
const L = window.event || S, x = L.touches ? L.touches[0] : L;
|
|
6523
6523
|
if (d.value.type !== "move") return;
|
|
6524
|
-
const w =
|
|
6524
|
+
const w = x.clientX - d.value.startX, P = x.clientY - d.value.startY, C = Math.max(
|
|
6525
6525
|
0,
|
|
6526
6526
|
Math.min(
|
|
6527
6527
|
d.value.originalX + w,
|
|
@@ -6535,10 +6535,10 @@ const At = {
|
|
|
6535
6535
|
)
|
|
6536
6536
|
);
|
|
6537
6537
|
Object.assign(c.value, { x: C, y: O });
|
|
6538
|
-
}, $ = (
|
|
6539
|
-
const L = window.event ||
|
|
6538
|
+
}, $ = (S) => {
|
|
6539
|
+
const L = window.event || S, x = L.touches ? L.touches[0] : L;
|
|
6540
6540
|
if (d.value.type !== "resize") return;
|
|
6541
|
-
const w =
|
|
6541
|
+
const w = x.clientX - d.value.startX, P = x.clientY - d.value.startY, C = d.value.direction;
|
|
6542
6542
|
let O = d.value.originalWidth, j = d.value.originalHeight, T = d.value.originalX, R = d.value.originalY;
|
|
6543
6543
|
switch (C) {
|
|
6544
6544
|
case "tr":
|
|
@@ -6569,17 +6569,17 @@ const At = {
|
|
|
6569
6569
|
}, y = () => {
|
|
6570
6570
|
d.value.type = null, window.removeEventListener("mousemove", _), window.removeEventListener("touchmove", _), window.removeEventListener("mousemove", $), window.removeEventListener("touchmove", $), window.removeEventListener("mouseup", y), window.removeEventListener("touchend", y);
|
|
6571
6571
|
}, b = () => {
|
|
6572
|
-
const
|
|
6572
|
+
const S = a.value, L = S.naturalWidth / S.width, x = S.naturalHeight / S.height, w = Math.min(
|
|
6573
6573
|
c.value.width * L,
|
|
6574
|
-
|
|
6574
|
+
S.naturalWidth
|
|
6575
6575
|
), P = Math.min(
|
|
6576
|
-
c.value.height *
|
|
6577
|
-
|
|
6576
|
+
c.value.height * x,
|
|
6577
|
+
S.naturalHeight
|
|
6578
6578
|
), C = document.createElement("canvas");
|
|
6579
6579
|
C.width = w, C.height = P, C.getContext("2d").drawImage(
|
|
6580
|
-
|
|
6580
|
+
S,
|
|
6581
6581
|
c.value.x * L,
|
|
6582
|
-
c.value.y *
|
|
6582
|
+
c.value.y * x,
|
|
6583
6583
|
w,
|
|
6584
6584
|
P,
|
|
6585
6585
|
0,
|
|
@@ -6595,12 +6595,12 @@ const At = {
|
|
|
6595
6595
|
}
|
|
6596
6596
|
});
|
|
6597
6597
|
}, k = () => {
|
|
6598
|
-
const
|
|
6599
|
-
|
|
6598
|
+
const S = document.createElement("a");
|
|
6599
|
+
S.download = "cropped-image.png", S.href = o.value, S.click();
|
|
6600
6600
|
}, M = () => {
|
|
6601
6601
|
e.params.fn(o.value);
|
|
6602
6602
|
};
|
|
6603
|
-
return (
|
|
6603
|
+
return (S, L) => (p(), m("div", mc, [
|
|
6604
6604
|
o.value ? (p(), m("div", hc, [
|
|
6605
6605
|
u("img", {
|
|
6606
6606
|
ref_key: "cutImage",
|
|
@@ -6622,28 +6622,28 @@ const At = {
|
|
|
6622
6622
|
G(u("div", {
|
|
6623
6623
|
class: "as-img-crop-box",
|
|
6624
6624
|
style: Z(i.value),
|
|
6625
|
-
onMousedown: L[8] || (L[8] = V((
|
|
6626
|
-
onTouchstart: L[9] || (L[9] = V((
|
|
6625
|
+
onMousedown: L[8] || (L[8] = V((x) => g("move"), ["prevent"])),
|
|
6626
|
+
onTouchstart: L[9] || (L[9] = V((x) => g("move"), ["prevent"]))
|
|
6627
6627
|
}, [
|
|
6628
6628
|
u("div", {
|
|
6629
6629
|
class: "as-img-crop-handle top-left",
|
|
6630
|
-
onMousedown: L[0] || (L[0] = V((
|
|
6631
|
-
onTouchstart: L[1] || (L[1] = V((
|
|
6630
|
+
onMousedown: L[0] || (L[0] = V((x) => g("resize", "tl"), ["stop"])),
|
|
6631
|
+
onTouchstart: L[1] || (L[1] = V((x) => g("resize", "tl"), ["stop"]))
|
|
6632
6632
|
}, null, 32),
|
|
6633
6633
|
u("div", {
|
|
6634
6634
|
class: "as-img-crop-handle top-right",
|
|
6635
|
-
onMousedown: L[2] || (L[2] = V((
|
|
6636
|
-
onTouchstart: L[3] || (L[3] = V((
|
|
6635
|
+
onMousedown: L[2] || (L[2] = V((x) => g("resize", "tr"), ["stop"])),
|
|
6636
|
+
onTouchstart: L[3] || (L[3] = V((x) => g("resize", "tr"), ["stop"]))
|
|
6637
6637
|
}, null, 32),
|
|
6638
6638
|
u("div", {
|
|
6639
6639
|
class: "as-img-crop-handle bottom-left",
|
|
6640
|
-
onMousedown: L[4] || (L[4] = V((
|
|
6641
|
-
onTouchstart: L[5] || (L[5] = V((
|
|
6640
|
+
onMousedown: L[4] || (L[4] = V((x) => g("resize", "bl"), ["stop"])),
|
|
6641
|
+
onTouchstart: L[5] || (L[5] = V((x) => g("resize", "bl"), ["stop"]))
|
|
6642
6642
|
}, null, 32),
|
|
6643
6643
|
u("div", {
|
|
6644
6644
|
class: "as-img-crop-handle bottom-right",
|
|
6645
|
-
onMousedown: L[6] || (L[6] = V((
|
|
6646
|
-
onTouchstart: L[7] || (L[7] = V((
|
|
6645
|
+
onMousedown: L[6] || (L[6] = V((x) => g("resize", "br"), ["stop"])),
|
|
6646
|
+
onTouchstart: L[7] || (L[7] = V((x) => g("resize", "br"), ["stop"]))
|
|
6647
6647
|
}, null, 32)
|
|
6648
6648
|
], 36), [
|
|
6649
6649
|
[Ee, f.value]
|
|
@@ -6779,9 +6779,9 @@ const At = {
|
|
|
6779
6779
|
}, v(l(s) ? r.value?.[1] : r.value?.[0]), 3)
|
|
6780
6780
|
], 6));
|
|
6781
6781
|
}
|
|
6782
|
-
}),
|
|
6782
|
+
}), Sc = /* @__PURE__ */ q(jc, [["__scopeId", "data-v-702347fb"]]), xc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6783
6783
|
__proto__: null,
|
|
6784
|
-
default:
|
|
6784
|
+
default: Sc
|
|
6785
6785
|
}, Symbol.toStringTag, { value: "Module" })), Pc = {
|
|
6786
6786
|
key: 0,
|
|
6787
6787
|
class: "asf-input"
|
|
@@ -7105,7 +7105,7 @@ const At = {
|
|
|
7105
7105
|
}), wu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7106
7106
|
__proto__: null,
|
|
7107
7107
|
default: ku
|
|
7108
|
-
}, Symbol.toStringTag, { value: "Module" })), ju = { class: "as-page-area" },
|
|
7108
|
+
}, Symbol.toStringTag, { value: "Module" })), ju = { class: "as-page-area" }, Su = ["src"], xu = { class: "as-page-icon" }, Pu = {
|
|
7109
7109
|
class: "ico",
|
|
7110
7110
|
style: { "background-color": "var(--cz0)" }
|
|
7111
7111
|
}, Cu = {
|
|
@@ -7126,9 +7126,9 @@ const At = {
|
|
|
7126
7126
|
u("img", {
|
|
7127
7127
|
src: l(n).$cfg.logo,
|
|
7128
7128
|
width: "200"
|
|
7129
|
-
}, null, 8,
|
|
7129
|
+
}, null, 8, Su)
|
|
7130
7130
|
]),
|
|
7131
|
-
u("div",
|
|
7131
|
+
u("div", xu, [
|
|
7132
7132
|
u("div", Pu, [
|
|
7133
7133
|
W(s, {
|
|
7134
7134
|
color: "var(--cz8)",
|
|
@@ -7668,7 +7668,7 @@ const At = {
|
|
|
7668
7668
|
}), kd = /* @__PURE__ */ q($d, [["__scopeId", "data-v-6dbdffb6"]]), wd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7669
7669
|
__proto__: null,
|
|
7670
7670
|
default: kd
|
|
7671
|
-
}, Symbol.toStringTag, { value: "Module" })), jd = { class: "as-pop-drop-area" },
|
|
7671
|
+
}, Symbol.toStringTag, { value: "Module" })), jd = { class: "as-pop-drop-area" }, Sd = ["id"], xd = /* @__PURE__ */ A({
|
|
7672
7672
|
__name: "PopDrop",
|
|
7673
7673
|
props: {
|
|
7674
7674
|
ujt: {},
|
|
@@ -7727,7 +7727,7 @@ const At = {
|
|
|
7727
7727
|
se(v(l(n).pop[e.id].con || ""), 1)
|
|
7728
7728
|
], !0)
|
|
7729
7729
|
], 4)
|
|
7730
|
-
], 8,
|
|
7730
|
+
], 8, Sd)
|
|
7731
7731
|
], !0) : F("", !0),
|
|
7732
7732
|
l(n).pop[e.id].stat ? (p(), m("div", {
|
|
7733
7733
|
key: 2,
|
|
@@ -7737,7 +7737,7 @@ const At = {
|
|
|
7737
7737
|
}, null, 36)) : F("", !0)
|
|
7738
7738
|
], 2));
|
|
7739
7739
|
}
|
|
7740
|
-
}), Pd = /* @__PURE__ */ q(
|
|
7740
|
+
}), Pd = /* @__PURE__ */ q(xd, [["__scopeId", "data-v-9191c452"]]), Cd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7741
7741
|
__proto__: null,
|
|
7742
7742
|
default: Pd
|
|
7743
7743
|
}, Symbol.toStringTag, { value: "Module" })), Ad = /* @__PURE__ */ A({
|
|
@@ -8140,7 +8140,7 @@ const At = {
|
|
|
8140
8140
|
}), yp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
8141
8141
|
__proto__: null,
|
|
8142
8142
|
default: vp
|
|
8143
|
-
}, Symbol.toStringTag, { value: "Module" })), bp = { class: "as-user-area-manage" }, _p = { class: "as-user" }, $p = { key: 0 }, kp = ["value"], wp = { class: "as-user-btns" }, jp = { class: "as-user-dec" },
|
|
8143
|
+
}, Symbol.toStringTag, { value: "Module" })), bp = { class: "as-user-area-manage" }, _p = { class: "as-user" }, $p = { key: 0 }, kp = ["value"], wp = { class: "as-user-btns" }, jp = { class: "as-user-dec" }, Sp = { class: "as-user-btns" }, xp = /* @__PURE__ */ A({
|
|
8144
8144
|
__name: "UserEditManage",
|
|
8145
8145
|
props: {
|
|
8146
8146
|
ujt: {}
|
|
@@ -8186,7 +8186,7 @@ const At = {
|
|
|
8186
8186
|
])
|
|
8187
8187
|
], 64)) : (p(), m(E, { key: 1 }, [
|
|
8188
8188
|
u("div", jp, v(l(a).lg("channeluser.ui.nopower")), 1),
|
|
8189
|
-
u("div",
|
|
8189
|
+
u("div", Sp, [
|
|
8190
8190
|
D(d.$slots, "btn")
|
|
8191
8191
|
])
|
|
8192
8192
|
], 64))
|
|
@@ -8195,7 +8195,7 @@ const At = {
|
|
|
8195
8195
|
}
|
|
8196
8196
|
}), Pp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
8197
8197
|
__proto__: null,
|
|
8198
|
-
default:
|
|
8198
|
+
default: xp
|
|
8199
8199
|
}, Symbol.toStringTag, { value: "Module" })), Cp = { class: "as-user-area" }, Ap = { class: "as-user" }, Op = { class: "as-user-btns" }, Mp = /* @__PURE__ */ A({
|
|
8200
8200
|
__name: "UserExit",
|
|
8201
8201
|
props: {
|
|
@@ -8531,7 +8531,7 @@ const At = {
|
|
|
8531
8531
|
eager: !0,
|
|
8532
8532
|
files: /* @__PURE__ */ Object.assign({
|
|
8533
8533
|
"./asdirectives/v-dbpointerdown/index.ts": wt,
|
|
8534
|
-
"./asdirectives/v-drag/index.ts":
|
|
8534
|
+
"./asdirectives/v-drag/index.ts": St,
|
|
8535
8535
|
"./asdirectives/v-dragzoom/index.ts": Pt,
|
|
8536
8536
|
"./asdirectives/v-fullscreen/index.ts": Ot,
|
|
8537
8537
|
"./asdirectives/v-keyboard/index.ts": Tt,
|
|
@@ -8561,7 +8561,7 @@ const At = {
|
|
|
8561
8561
|
"./asengine/common/usePage.ts": hn,
|
|
8562
8562
|
"./asengine/common/useUser.ts": vn,
|
|
8563
8563
|
"./asengine/init/useInitApp.ts": bn,
|
|
8564
|
-
"./asengine/provide/useProvide.ts":
|
|
8564
|
+
"./asengine/provide/useProvide.ts": Sn,
|
|
8565
8565
|
"./asengine/ws/useBeat.ts": Pn,
|
|
8566
8566
|
"./asengine/ws/useWs.ts": An
|
|
8567
8567
|
})
|
|
@@ -8618,7 +8618,7 @@ const At = {
|
|
|
8618
8618
|
"./asui/common/VirtualList.vue": yr,
|
|
8619
8619
|
"./asui/common/VirtualListFresh.vue": $r,
|
|
8620
8620
|
"./asui/common/ZoomContainer.vue": wr,
|
|
8621
|
-
"./asui/common/ZoomContainerStyle.vue":
|
|
8621
|
+
"./asui/common/ZoomContainerStyle.vue": Sr,
|
|
8622
8622
|
"./asui/form/AsaiForm.vue": Be,
|
|
8623
8623
|
"./asui/form/AsaiFormLabel.vue": Ke,
|
|
8624
8624
|
"./asui/form/AsaiFormLi.vue": Je,
|
|
@@ -8631,7 +8631,7 @@ const At = {
|
|
|
8631
8631
|
"./asui/form/AsaiUploadImg.vue": ot,
|
|
8632
8632
|
"./asui/form/AsaiUploadImgCut.vue": at,
|
|
8633
8633
|
"./asui/form/AsaiUploadImgCutPop.vue": st,
|
|
8634
|
-
"./asui/formbase/AsfCheck.vue":
|
|
8634
|
+
"./asui/formbase/AsfCheck.vue": xc,
|
|
8635
8635
|
"./asui/formbase/AsfInput.vue": Uc,
|
|
8636
8636
|
"./asui/formbase/AsfSelect.vue": qc,
|
|
8637
8637
|
"./asui/formbase/AsfTextarea.vue": Kc,
|