asai-vue-host 0.0.10 → 0.0.12
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/asengine/provide/provideglobal.d.ts +4 -0
- package/dist/asai-vue-host/asui/common/AsKeyBoard.vue.d.ts +1 -1
- package/dist/asai-vue-host/asui/common/AsKeyBoardVue.vue.d.ts +1 -1
- package/dist/asai-vue-host.css +1 -1
- package/dist/asai-vue-host.es.js +737 -738
- package/dist/asai-vue-host.umd.js +3 -3
- package/package.json +1 -1
package/dist/asai-vue-host.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { computed as X, inject as We, reactive as me, provide as ft, defineComponent as A, createBlock as Y, openBlock as f, resolveDynamicComponent as pe, unref as i, resolveComponent as E, createElementBlock as m, normalizeClass as J, createVNode as W, onBeforeUnmount as we, Fragment as I, createElementVNode as
|
|
1
|
+
import { computed as X, inject as We, reactive as me, provide as ft, defineComponent as A, createBlock as Y, openBlock as f, resolveDynamicComponent as pe, unref as i, resolveComponent as E, createElementBlock as m, normalizeClass as J, createVNode as W, onBeforeUnmount as we, Fragment as I, createElementVNode as u, renderList as Q, toDisplayString as g, createCommentVNode as R, renderSlot as D, onUnmounted as _e, onMounted as he, withCtx as le, withModifiers as q, withDirectives as G, vModelText as ce, vModelSelect as be, createTextVNode as ae, ref as V, nextTick as ge, watch as Oe, withKeys as mt, resolveDirective as ve, createStaticVNode as He, useCssVars as je, normalizeStyle as Z, defineAsyncComponent as ke, vShow as Le, Teleport as Ce, shallowReactive as ht, onUpdated as gt, vModelDynamic as vt, KeepAlive as yt, createSlots as bt } from "vue";
|
|
2
2
|
const qe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3
3
|
__proto__: null,
|
|
4
4
|
get default() {
|
|
@@ -49,17 +49,17 @@ function Se(t, e) {
|
|
|
49
49
|
b(), cancelAnimationFrame(e.timeout), e.timeout = null;
|
|
50
50
|
}));
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function c() {
|
|
53
53
|
return "ontouchstart" in window || navigator.maxTouchPoints;
|
|
54
54
|
}
|
|
55
55
|
function p(b) {
|
|
56
|
-
|
|
56
|
+
c() && e.touchstat !== 1 && (b.addEventListener("touchstart", _, !0), e.touchstat = 1);
|
|
57
57
|
}
|
|
58
58
|
function h(b) {
|
|
59
|
-
|
|
59
|
+
c() && e.touchstat !== 2 && (b.addEventListener("touchmove", l), a(b), e.touchstat = 2);
|
|
60
60
|
}
|
|
61
61
|
function v(b) {
|
|
62
|
-
|
|
62
|
+
c() && e.touchstat !== 3 && (b.removeEventListener("touchmove", l), s(b), e.touchstat = 3);
|
|
63
63
|
}
|
|
64
64
|
function _(b) {
|
|
65
65
|
document.body.addEventListener("touchmove", $), document.body.addEventListener("touchend", y), e.dragttm = Date.now();
|
|
@@ -72,7 +72,7 @@ function Se(t, e) {
|
|
|
72
72
|
}
|
|
73
73
|
return {
|
|
74
74
|
eStop: l,
|
|
75
|
-
canTouch:
|
|
75
|
+
canTouch: c,
|
|
76
76
|
eStopTouch: r,
|
|
77
77
|
setTouchNone: a,
|
|
78
78
|
setTouchAuto: s,
|
|
@@ -89,7 +89,7 @@ const fe = {}, kt = {
|
|
|
89
89
|
e.value
|
|
90
90
|
);
|
|
91
91
|
o(t);
|
|
92
|
-
let l = !1, r = 0, d = 0,
|
|
92
|
+
let l = !1, r = 0, d = 0, c = 0, p = 0;
|
|
93
93
|
typeof e.value.domarea == "string" ? fe.dragAreaDom = document.getElementById(e.value.domarea) : fe.dragAreaDom = t;
|
|
94
94
|
const h = ($) => {
|
|
95
95
|
console.log("handleDown", fe, $), a(t), l = !0;
|
|
@@ -98,9 +98,9 @@ const fe = {}, kt = {
|
|
|
98
98
|
}, v = ($) => {
|
|
99
99
|
n(() => {
|
|
100
100
|
if (l) {
|
|
101
|
-
|
|
101
|
+
c = $.clientX - r, p = $.clientY - d;
|
|
102
102
|
const y = window.innerWidth - fe.dragAreaDom.offsetWidth, b = window.innerHeight - fe.dragAreaDom.offsetHeight;
|
|
103
|
-
|
|
103
|
+
c = Math.max(0, Math.min(c, y)), p = Math.max(0, Math.min(p, b)), fe.dragAreaDom.style.transform = `translate(${c}px, ${p}px)`;
|
|
104
104
|
}
|
|
105
105
|
});
|
|
106
106
|
}, _ = () => {
|
|
@@ -124,7 +124,7 @@ const fe = {}, kt = {
|
|
|
124
124
|
e.value
|
|
125
125
|
);
|
|
126
126
|
o(t);
|
|
127
|
-
let l = !1, r = { x: 0, y: 0 }, d = { x: 0, y: 0 },
|
|
127
|
+
let l = !1, r = { x: 0, y: 0 }, d = { x: 0, y: 0 }, c = null, p = 1;
|
|
128
128
|
const h = (e.value?.dom ? document.getElementById(e.value.dom) : "") || t, v = (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
130
|
if (a(t), S.preventDefault(), p = $(), e.value?.pos)
|
|
@@ -143,17 +143,17 @@ const fe = {}, kt = {
|
|
|
143
143
|
y: 0
|
|
144
144
|
};
|
|
145
145
|
}
|
|
146
|
-
l = !0,
|
|
146
|
+
l = !0, c = _.getBoundingClientRect();
|
|
147
147
|
let L, w;
|
|
148
148
|
L = S.clientX, w = S.clientY, r = {
|
|
149
|
-
x: (L -
|
|
150
|
-
y: (w -
|
|
149
|
+
x: (L - c.left) / p - d.x,
|
|
150
|
+
y: (w - c.top) / p - d.y
|
|
151
151
|
}, h.setPointerCapture(S.pointerId), document.addEventListener("pointermove", b), document.addEventListener("pointerup", k), document.addEventListener("pointercancel", k);
|
|
152
152
|
}, b = (S) => {
|
|
153
|
-
if (!l || !
|
|
153
|
+
if (!l || !c) return;
|
|
154
154
|
let L, w;
|
|
155
155
|
L = S.clientX, w = S.clientY, p = $();
|
|
156
|
-
const j = (L -
|
|
156
|
+
const j = (L - c.left) / p - r.x, x = (w - c.top) / p - r.y, C = _.offsetWidth - v.offsetWidth, M = _.offsetHeight - v.offsetHeight;
|
|
157
157
|
n(() => {
|
|
158
158
|
e.value.pos ? (e.value.pos.x = +Math.max(
|
|
159
159
|
0,
|
|
@@ -173,7 +173,7 @@ const fe = {}, kt = {
|
|
|
173
173
|
s(t), S instanceof PointerEvent && h.hasPointerCapture(S.pointerId) && (l = !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
|
-
const O = () =>
|
|
176
|
+
const O = () => c = null;
|
|
177
177
|
window.addEventListener("resize", O), Me.unmounted = () => {
|
|
178
178
|
h.removeEventListener("pointerdown", y), window.removeEventListener("resize", O);
|
|
179
179
|
};
|
|
@@ -222,7 +222,7 @@ const Pt = {
|
|
|
222
222
|
}, r = function(p, h) {
|
|
223
223
|
return h?.find((v) => p.target?.closest(v));
|
|
224
224
|
}, d = function(p) {
|
|
225
|
-
if (n.keyboard.params?.ot?.fnnumcb?.(), n.keyboard.params?.ot?.fndscb?.(), a(), e.value?.auto && (n.keyboard.areastyle.x = p.clientX, n.keyboard.areastyle.y = p.clientY), n.keyboard.params.ot = {}, !l(
|
|
225
|
+
if (n.keyboard.params?.ot?.fnnumcb?.(), n.keyboard.params?.ot?.fndscb?.(), a(), e.value?.auto && (n.keyboard.areastyle.x = p.clientX + (e.value?.auto?.x || 0), n.keyboard.areastyle.y = p.clientY + (e.value?.auto?.y || 0)), n.keyboard.params.ot = {}, !l(
|
|
226
226
|
p,
|
|
227
227
|
o.data.sys.keyboard.showkeyboard?.nokeytypes
|
|
228
228
|
)) if (p.target?.closest(".portaskeyboard"))
|
|
@@ -249,7 +249,7 @@ const Pt = {
|
|
|
249
249
|
re.keyboardDom.type = "number";
|
|
250
250
|
};
|
|
251
251
|
} else {
|
|
252
|
-
const h = r(p,
|
|
252
|
+
const h = r(p, c);
|
|
253
253
|
h ? n.keyboard.showkeyboard = h : n.keyboard.showkeyboard = ".askey-default";
|
|
254
254
|
}
|
|
255
255
|
e.value?.style && (n.keyboard.params.ot.style = e.value.style), Object.assign(n.keyboard.params, {
|
|
@@ -259,7 +259,7 @@ const Pt = {
|
|
|
259
259
|
} else
|
|
260
260
|
n.keyboard.params = {}, n.keyboard.showkeyboard = "";
|
|
261
261
|
};
|
|
262
|
-
const
|
|
262
|
+
const c = Object.keys(
|
|
263
263
|
o.data.sys.keyboard.showkeyboard?.askeytypes || {}
|
|
264
264
|
);
|
|
265
265
|
a(), t.addEventListener("pointerdown", d), re.unmounted = () => {
|
|
@@ -288,9 +288,9 @@ const Pt = {
|
|
|
288
288
|
);
|
|
289
289
|
n(t);
|
|
290
290
|
const s = e.value.long ? 1e3 : 500;
|
|
291
|
-
let l = null, r = !1, d = 0,
|
|
291
|
+
let l = null, r = !1, d = 0, c = 0;
|
|
292
292
|
const p = 10, h = (y) => {
|
|
293
|
-
o(t), e.value.prevent && y.preventDefault(), r = !0, y?.touches?.[0] ? (d = y.touches[0].clientX,
|
|
293
|
+
o(t), e.value.prevent && y.preventDefault(), r = !0, y?.touches?.[0] ? (d = y.touches[0].clientX, c = y.touches[0].clientY) : (d = y.clientX, c = y.clientY), e.value.press && e.value.press(y), l = window.setTimeout(() => {
|
|
294
294
|
r && e.value.hold && e.value.hold(y);
|
|
295
295
|
}, s);
|
|
296
296
|
}, v = (y) => {
|
|
@@ -302,7 +302,7 @@ const Pt = {
|
|
|
302
302
|
if (!r) 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 O = Math.abs(b - d), S = Math.abs(k -
|
|
305
|
+
const O = Math.abs(b - d), S = Math.abs(k - c);
|
|
306
306
|
(O > p || S > p) && (l !== null && (clearTimeout(l), l = null), r = !1);
|
|
307
307
|
}
|
|
308
308
|
};
|
|
@@ -323,7 +323,7 @@ const Pt = {
|
|
|
323
323
|
);
|
|
324
324
|
o(t);
|
|
325
325
|
const { ujt: l, size: r, scale: d } = e.value;
|
|
326
|
-
let
|
|
326
|
+
let c = { x: 0, y: 0 }, p;
|
|
327
327
|
const h = {
|
|
328
328
|
width: l?.$global?.sys?.zoomwidth || 1920,
|
|
329
329
|
height: l?.$global?.sys?.zoomheight || 1200
|
|
@@ -336,13 +336,13 @@ const Pt = {
|
|
|
336
336
|
const U = window.getComputedStyle(t).transform?.split(", ");
|
|
337
337
|
if (U && U.length > 2) {
|
|
338
338
|
const H = U.pop().slice(0, -1), B = U.pop();
|
|
339
|
-
|
|
339
|
+
c = {
|
|
340
340
|
x: parseFloat(B),
|
|
341
341
|
y: parseFloat(H)
|
|
342
342
|
};
|
|
343
343
|
} else
|
|
344
|
-
|
|
345
|
-
t.style.transform = `translate(${
|
|
344
|
+
c = { x: 0, y: 0 };
|
|
345
|
+
t.style.transform = `translate(${c.x}px,${c.y}px)`, C instanceof PointerEvent && t.setPointerCapture(C.pointerId), document.addEventListener(
|
|
346
346
|
"pointermove",
|
|
347
347
|
w
|
|
348
348
|
), document.addEventListener("pointerup", j), document.addEventListener(
|
|
@@ -354,10 +354,10 @@ const Pt = {
|
|
|
354
354
|
const { clientX: M, clientY: z } = S(C), P = (M - window.scrollX - $) / p, U = (z - window.scrollY - y) / p;
|
|
355
355
|
O.w = Math.min(
|
|
356
356
|
Math.max(88, b + P),
|
|
357
|
-
h.width -
|
|
357
|
+
h.width - c.x
|
|
358
358
|
), O.h = Math.min(
|
|
359
359
|
Math.max(58, k + U),
|
|
360
|
-
h.height -
|
|
360
|
+
h.height - c.y
|
|
361
361
|
), t.style.width = O.w + "px", t.style.height = O.h + "px";
|
|
362
362
|
});
|
|
363
363
|
}, j = (C) => {
|
|
@@ -396,12 +396,12 @@ const Pt = {
|
|
|
396
396
|
e.value
|
|
397
397
|
);
|
|
398
398
|
o(t);
|
|
399
|
-
const { ujt: l, scale: r, id: d, type:
|
|
399
|
+
const { ujt: l, scale: r, id: d, type: c, cut: p, min: h } = e.value, v = () => r || l?.$global?.scale || 1, _ = {
|
|
400
400
|
width: l?.$global?.sys?.zoomwidth || 1920,
|
|
401
401
|
height: l?.$global?.sys?.zoomheight || 1200
|
|
402
402
|
};
|
|
403
403
|
let $ = p || 0;
|
|
404
|
-
|
|
404
|
+
c ? _.height = _.height - $ : _.width = _.width - $;
|
|
405
405
|
function y() {
|
|
406
406
|
return typeof h == "function" ? h() : typeof h?.value == "number" ? h?.value : typeof h == "number" ? h : 100;
|
|
407
407
|
}
|
|
@@ -411,10 +411,10 @@ const Pt = {
|
|
|
411
411
|
console.error(`未找到 ID 为 ${d} 的元素`);
|
|
412
412
|
return;
|
|
413
413
|
}
|
|
414
|
-
a(t), P.preventDefault(), k = v(), O = !0,
|
|
414
|
+
a(t), P.preventDefault(), k = v(), O = !0, c ? (w = P.clientY, j = b.offsetHeight) : (S = P.clientX, L = b.offsetWidth), document.addEventListener("pointermove", C), document.addEventListener("pointerup", M);
|
|
415
415
|
}, C = (P) => {
|
|
416
416
|
O && n(() => {
|
|
417
|
-
if (
|
|
417
|
+
if (c) {
|
|
418
418
|
const U = (w - P.clientY) / k, H = Math.max(y(), j + U);
|
|
419
419
|
b.style.height = Math.min(H, _.height) + "px", b.style.minHeight = Math.min(H, _.height) + "px";
|
|
420
420
|
} else {
|
|
@@ -801,11 +801,11 @@ const Pt = {
|
|
|
801
801
|
let a = "";
|
|
802
802
|
for (let s = 0; s < n; s++) {
|
|
803
803
|
const l = Math.round(Math.random() * 1e3) % o, r = Number(l.toString().slice(-1)) + 1, d = o - r;
|
|
804
|
-
let
|
|
805
|
-
const p =
|
|
806
|
-
|
|
807
|
-
const h =
|
|
808
|
-
|
|
804
|
+
let c = t.codePointAt(s);
|
|
805
|
+
const p = c % d;
|
|
806
|
+
c = (c - p) / d;
|
|
807
|
+
const h = c % d;
|
|
808
|
+
c = (c - h) / d, a += e[c % d + r] + e[h + r] + e[p + r] + e.charAt(l);
|
|
809
809
|
}
|
|
810
810
|
return a;
|
|
811
811
|
},
|
|
@@ -977,7 +977,7 @@ const Pt = {
|
|
|
977
977
|
function d() {
|
|
978
978
|
return Object.keys(n[t.opt.channel].rfdata.rule);
|
|
979
979
|
}
|
|
980
|
-
function
|
|
980
|
+
function c() {
|
|
981
981
|
return n[t.opt.channel].cfg.map.sn || "sn";
|
|
982
982
|
}
|
|
983
983
|
function p() {
|
|
@@ -1095,7 +1095,7 @@ const Pt = {
|
|
|
1095
1095
|
{
|
|
1096
1096
|
...w(),
|
|
1097
1097
|
svty: F,
|
|
1098
|
-
fd: t?.opt?.fd ||
|
|
1098
|
+
fd: t?.opt?.fd || c() + "-" + _(),
|
|
1099
1099
|
ps: n[t.opt.channel].cmPageSize,
|
|
1100
1100
|
...o.location?.query
|
|
1101
1101
|
},
|
|
@@ -1108,7 +1108,7 @@ const Pt = {
|
|
|
1108
1108
|
T || b(
|
|
1109
1109
|
{
|
|
1110
1110
|
...w(),
|
|
1111
|
-
fd:
|
|
1111
|
+
fd: c(),
|
|
1112
1112
|
...o.location?.query,
|
|
1113
1113
|
sx: "",
|
|
1114
1114
|
sxty: "",
|
|
@@ -1146,11 +1146,11 @@ const Pt = {
|
|
|
1146
1146
|
function ue(T, F = 0) {
|
|
1147
1147
|
t.opt.tyhash && te("show", F), e.setquery(
|
|
1148
1148
|
{
|
|
1149
|
-
show: T[
|
|
1149
|
+
show: T[c()],
|
|
1150
1150
|
showty: ""
|
|
1151
1151
|
},
|
|
1152
1152
|
1
|
|
1153
|
-
), C(T[
|
|
1153
|
+
), C(T[c()]);
|
|
1154
1154
|
}
|
|
1155
1155
|
function Ae() {
|
|
1156
1156
|
!o.location.query.ssty && o.location.query.ss && (o.location.query.ssty = n[t.opt.channel]?.cfg.sss?.[1]), e.setquery({ pg: 1 }, 1), n[t.opt.channel].fetch(0);
|
|
@@ -1159,7 +1159,7 @@ const Pt = {
|
|
|
1159
1159
|
if (Ue()) {
|
|
1160
1160
|
const K = F || n[t.opt.channel].rfdata.data;
|
|
1161
1161
|
$(
|
|
1162
|
-
"/insert/" + K[
|
|
1162
|
+
"/insert/" + K[c()] + j(),
|
|
1163
1163
|
K,
|
|
1164
1164
|
n[t.opt.channel].cfg?.api?.opt || {}
|
|
1165
1165
|
).then((se) => {
|
|
@@ -1199,7 +1199,7 @@ const Pt = {
|
|
|
1199
1199
|
if (Ue()) {
|
|
1200
1200
|
const K = F || n[t.opt.channel].rfdata.data;
|
|
1201
1201
|
$(
|
|
1202
|
-
"/update/" + K[
|
|
1202
|
+
"/update/" + K[c()] + "/" + j(),
|
|
1203
1203
|
K,
|
|
1204
1204
|
n[t.opt.channel].cfg?.api?.opt || {}
|
|
1205
1205
|
).then((se) => {
|
|
@@ -1264,15 +1264,15 @@ const Pt = {
|
|
|
1264
1264
|
const Ie = ye[xe];
|
|
1265
1265
|
xe === 0 ? (K = Ie.split(a.data.asai.rulebook.bksn)[1].split(a.data.asai.rulebook.bkty)[0], await b({
|
|
1266
1266
|
...w(),
|
|
1267
|
-
field:
|
|
1268
|
-
fd:
|
|
1267
|
+
field: c(),
|
|
1268
|
+
fd: c(),
|
|
1269
1269
|
ps: 9999999,
|
|
1270
1270
|
fl: K
|
|
1271
1271
|
}).then((De) => {
|
|
1272
1272
|
const Re = De?.data?.data || De?.data;
|
|
1273
1273
|
if (Array.isArray(Re)) {
|
|
1274
1274
|
const dt = Re.map(
|
|
1275
|
-
(pt) => pt[
|
|
1275
|
+
(pt) => pt[c()]
|
|
1276
1276
|
);
|
|
1277
1277
|
se.push(...dt || []);
|
|
1278
1278
|
}
|
|
@@ -1286,7 +1286,7 @@ const Pt = {
|
|
|
1286
1286
|
a.data.asai.rulebook.bkds
|
|
1287
1287
|
), F(ee, 4, oe[0]), oe = oe[1].split(
|
|
1288
1288
|
a.data.asai.rulebook.bkco
|
|
1289
|
-
), F(ee, 5, oe[0]), F(ee, 6, oe[1]), se.includes(ee[
|
|
1289
|
+
), F(ee, 5, oe[0]), F(ee, 6, oe[1]), se.includes(ee[c()]) ? n[t.opt.channel].cfg?.imex?.type == 1 && await $(
|
|
1290
1290
|
"/update/" + ee[n[t.opt.channel].cfg.imex.keys[1]] + j(),
|
|
1291
1291
|
ee
|
|
1292
1292
|
) : await $(
|
|
@@ -1302,16 +1302,16 @@ const Pt = {
|
|
|
1302
1302
|
return new Promise((K, se) => {
|
|
1303
1303
|
const ee = T || n[t.opt.channel].rfdata.data;
|
|
1304
1304
|
y(
|
|
1305
|
-
"/select/" + ee[
|
|
1305
|
+
"/select/" + ee[c()] + "/",
|
|
1306
1306
|
w(),
|
|
1307
1307
|
n[t.opt.channel].cfg?.api?.opt || {}
|
|
1308
1308
|
).then((oe) => {
|
|
1309
|
-
oe.data?.[0]?.[
|
|
1309
|
+
oe.data?.[0]?.[c()] === ee[c()] && oe.data?.[0]?.[p()] === ee[p()] ? (F?.go && n[t.opt.channel].cfg?.url?.login && e.AsRouter.setHref(
|
|
1310
1310
|
n[t.opt.channel].cfg?.url?.login
|
|
1311
1311
|
), K(oe)) : (!F?.nomsg && o.msg.fn({
|
|
1312
1312
|
type: "err",
|
|
1313
|
-
con: e.lg("asai.faillogin", ee[
|
|
1314
|
-
}), se(e.lg("asai.faillogin", ee[
|
|
1313
|
+
con: e.lg("asai.faillogin", ee[c()])
|
|
1314
|
+
}), se(e.lg("asai.faillogin", ee[c()])));
|
|
1315
1315
|
});
|
|
1316
1316
|
});
|
|
1317
1317
|
}
|
|
@@ -1319,15 +1319,15 @@ const Pt = {
|
|
|
1319
1319
|
return new Promise((K, se) => {
|
|
1320
1320
|
const ee = T || n[t.opt.channel].rfdata.data;
|
|
1321
1321
|
y(
|
|
1322
|
-
"/select/" + ee[
|
|
1323
|
-
{ ...w(), field:
|
|
1322
|
+
"/select/" + ee[c()] + "/",
|
|
1323
|
+
{ ...w(), field: c() },
|
|
1324
1324
|
n[t.opt.channel].cfg?.api?.opt || {}
|
|
1325
1325
|
).then((oe) => {
|
|
1326
|
-
oe.data?.[0]?.[
|
|
1326
|
+
oe.data?.[0]?.[c()] ? (!F?.nomsg && o.msg.fn({
|
|
1327
1327
|
type: "err",
|
|
1328
|
-
con: e.lg("asai.checkhas", ee[
|
|
1329
|
-
}), se(e.lg("asai.checkhas", ee[
|
|
1330
|
-
"/insert/" + ee[
|
|
1328
|
+
con: e.lg("asai.checkhas", ee[c()])
|
|
1329
|
+
}), se(e.lg("asai.checkhas", ee[c()]))) : $(
|
|
1330
|
+
"/insert/" + ee[c()] + j(),
|
|
1331
1331
|
ee,
|
|
1332
1332
|
n[t.opt.channel].cfg?.api?.opt || {}
|
|
1333
1333
|
).then((de) => {
|
|
@@ -1359,7 +1359,7 @@ const Pt = {
|
|
|
1359
1359
|
channelDownload: it,
|
|
1360
1360
|
channelUpload: rt,
|
|
1361
1361
|
getChannelKeys: d,
|
|
1362
|
-
getSnKey:
|
|
1362
|
+
getSnKey: c,
|
|
1363
1363
|
getPwKey: p,
|
|
1364
1364
|
getClassKey: h,
|
|
1365
1365
|
getTitleKey: _,
|
|
@@ -1376,8 +1376,8 @@ const Pt = {
|
|
|
1376
1376
|
function o(d) {
|
|
1377
1377
|
return e.ws[d] == null ? (e.useWs(t.ujt, d), e.ws[d].init()) : Promise.resolve();
|
|
1378
1378
|
}
|
|
1379
|
-
function a(d,
|
|
1380
|
-
return n.rooms[d] == null ? (n.rooms[d] = [], e.ws[
|
|
1379
|
+
function a(d, c, p = null) {
|
|
1380
|
+
return n.rooms[d] == null ? (n.rooms[d] = [], e.ws[c].wsWatch(
|
|
1381
1381
|
{
|
|
1382
1382
|
ty: "chat/web" + d + "broadcast"
|
|
1383
1383
|
},
|
|
@@ -1386,24 +1386,24 @@ const Pt = {
|
|
|
1386
1386
|
}
|
|
1387
1387
|
), !0) : !1;
|
|
1388
1388
|
}
|
|
1389
|
-
function s(d,
|
|
1390
|
-
o(
|
|
1389
|
+
function s(d, c, p = null) {
|
|
1390
|
+
o(c).then(() => {
|
|
1391
1391
|
Array.isArray(d) ? d.forEach((h) => {
|
|
1392
|
-
a(h,
|
|
1393
|
-
}) : typeof d == "string" && a(d,
|
|
1392
|
+
a(h, c, p);
|
|
1393
|
+
}) : typeof d == "string" && a(d, c, p);
|
|
1394
1394
|
});
|
|
1395
1395
|
}
|
|
1396
|
-
function l(d,
|
|
1396
|
+
function l(d, c) {
|
|
1397
1397
|
Array.isArray(d) ? d.forEach((p) => {
|
|
1398
|
-
e.ws[
|
|
1398
|
+
e.ws[c].wsWatchOff({
|
|
1399
1399
|
ty: "chat/web" + p + "broadcast"
|
|
1400
1400
|
});
|
|
1401
|
-
}) : typeof d == "string" && e.ws[
|
|
1401
|
+
}) : typeof d == "string" && e.ws[c].wsWatchOff({
|
|
1402
1402
|
ty: "chat/web" + d + "broadcast"
|
|
1403
1403
|
});
|
|
1404
1404
|
}
|
|
1405
|
-
function r(d,
|
|
1406
|
-
return p.msg ? e.ws[
|
|
1405
|
+
function r(d, c, p, h = "") {
|
|
1406
|
+
return p.msg ? e.ws[c].wsApi({
|
|
1407
1407
|
ty: "chat/web" + d + "send",
|
|
1408
1408
|
db: p
|
|
1409
1409
|
}).then(() => {
|
|
@@ -1424,13 +1424,13 @@ const Pt = {
|
|
|
1424
1424
|
mediaFn: null,
|
|
1425
1425
|
mediaView: null
|
|
1426
1426
|
}, n = 0) => {
|
|
1427
|
-
function o(
|
|
1427
|
+
function o(c) {
|
|
1428
1428
|
return new Promise((p, h) => {
|
|
1429
1429
|
const v = new FileReader();
|
|
1430
1430
|
v.onload = () => {
|
|
1431
1431
|
p(v.result);
|
|
1432
1432
|
}, v.onerror = h, v.readAsDataURL(
|
|
1433
|
-
new Blob(
|
|
1433
|
+
new Blob(c, {
|
|
1434
1434
|
type: "audio/webm"
|
|
1435
1435
|
})
|
|
1436
1436
|
);
|
|
@@ -1439,21 +1439,21 @@ const Pt = {
|
|
|
1439
1439
|
async function a() {
|
|
1440
1440
|
try {
|
|
1441
1441
|
e.mediaWorking = !0;
|
|
1442
|
-
const
|
|
1442
|
+
const c = {
|
|
1443
1443
|
audio: {
|
|
1444
1444
|
echoCancellation: !0,
|
|
1445
1445
|
noiseSuppression: !0,
|
|
1446
1446
|
sampleRate: 44100
|
|
1447
1447
|
}
|
|
1448
1448
|
};
|
|
1449
|
-
n && (
|
|
1449
|
+
n && (c.video = {
|
|
1450
1450
|
width: { ideal: 1280 },
|
|
1451
1451
|
height: { ideal: 720 },
|
|
1452
1452
|
frameRate: { ideal: 30 },
|
|
1453
1453
|
facingMode: "user"
|
|
1454
1454
|
// 使用前置摄像头
|
|
1455
1455
|
});
|
|
1456
|
-
const p = await navigator.mediaDevices.getUserMedia(
|
|
1456
|
+
const p = await navigator.mediaDevices.getUserMedia(c);
|
|
1457
1457
|
e.mediaNew = new MediaRecorder(p, {
|
|
1458
1458
|
mimeType: n ? "video/webm;codecs=vp9,opus" : "audio/webm;codecs=opus"
|
|
1459
1459
|
}), e.mediaNew.stream && e.mediaFnView && e.mediaFnView(e.mediaNew.stream), e.mediaChunks = [], e.mediaNew.ondataavailable = (h) => {
|
|
@@ -1463,19 +1463,19 @@ const Pt = {
|
|
|
1463
1463
|
e.mediaChunks
|
|
1464
1464
|
), e.mediaFn && e.mediaFn(e.mediaBase64));
|
|
1465
1465
|
}, e.mediaNew.start(100);
|
|
1466
|
-
} catch (
|
|
1467
|
-
console.error("无法访问麦克风或摄像头:",
|
|
1466
|
+
} catch (c) {
|
|
1467
|
+
console.error("无法访问麦克风或摄像头:", c), alert("无法访问麦克风或摄像头,请检查权限设置");
|
|
1468
1468
|
}
|
|
1469
1469
|
}
|
|
1470
1470
|
function s() {
|
|
1471
|
-
e.mediaNew && e.mediaWorking && (e.mediaNew.stop(), e.mediaNew.stream.getTracks().forEach((
|
|
1471
|
+
e.mediaNew && e.mediaWorking && (e.mediaNew.stop(), e.mediaNew.stream.getTracks().forEach((c) => c.stop()), e.mediaWorking = !1);
|
|
1472
1472
|
}
|
|
1473
|
-
function l(
|
|
1473
|
+
function l(c) {
|
|
1474
1474
|
e.mediaPress != null && (clearInterval(e.mediaPress), e.mediaPress = null), a();
|
|
1475
1475
|
}
|
|
1476
|
-
function r(
|
|
1476
|
+
function r(c) {
|
|
1477
1477
|
}
|
|
1478
|
-
function d(
|
|
1478
|
+
function d(c) {
|
|
1479
1479
|
s(), e.mediaPress != null && (clearInterval(e.mediaPress), e.mediaPress = null);
|
|
1480
1480
|
}
|
|
1481
1481
|
return {
|
|
@@ -1492,21 +1492,21 @@ const Pt = {
|
|
|
1492
1492
|
}, Symbol.toStringTag, { value: "Module" })), rn = (t) => {
|
|
1493
1493
|
const { $fn: e, $db: n, $global: o, $model: a } = t.ujt;
|
|
1494
1494
|
function s(r, d) {
|
|
1495
|
-
const
|
|
1495
|
+
const c = {};
|
|
1496
1496
|
let p = r.split(a.novel.rule.bksn);
|
|
1497
|
-
|
|
1497
|
+
c[d] = p[0], p = p[1].split(a.novel.rule.bkty), c.sn = p[0], p = p[1].split(a.novel.rule.bktm), c.ty = p[0], p = p[1].split(a.novel.rule.bktmg);
|
|
1498
1498
|
try {
|
|
1499
|
-
|
|
1499
|
+
c.tm = p[0]?.length > 3 ? e.As.getTime(6, new Date(p[0])) : "", p = p[1].split(a.novel.rule.bkdesc), c.tg = p[0]?.length > 3 ? e.As.getTime(6, new Date(p[0])) : "";
|
|
1500
1500
|
} catch {
|
|
1501
1501
|
}
|
|
1502
|
-
return d === "li" ? (p = p[1].split(a.novel.rule.bkcontent),
|
|
1502
|
+
return d === "li" ? (p = p[1].split(a.novel.rule.bkcontent), c.ds = p[0], c.co = p[1]) : c.ds = p[1], c;
|
|
1503
1503
|
}
|
|
1504
1504
|
return { cmNovelData: X(() => {
|
|
1505
1505
|
const r = [];
|
|
1506
|
-
let
|
|
1506
|
+
let c = a.novel.muzu.replaceAll(`\r
|
|
1507
1507
|
`, `
|
|
1508
1508
|
`).split(a.novel.rule.bkchannel), p, h, v;
|
|
1509
|
-
return
|
|
1509
|
+
return c.forEach((_) => {
|
|
1510
1510
|
_ && _.split(a.novel.rule.bkclass).forEach((y, b) => {
|
|
1511
1511
|
b == 0 ? (p = s(y, "ch"), p.cc = [], r.push(p)) : y.split(a.novel.rule.bklist).forEach((O, S) => {
|
|
1512
1512
|
S == 0 ? (h = s(O, "cl"), h.cc = [], p.cc.push(h)) : (v = s(O, "li"), h.cc.push(v));
|
|
@@ -1528,7 +1528,7 @@ const Pt = {
|
|
|
1528
1528
|
), r = Math.max(l - Math.floor(o / 2), 1), d = r + o - 1;
|
|
1529
1529
|
return d > s && (d = s, r = Math.max(d - o + 1, 1)), Array.from(
|
|
1530
1530
|
{ length: d - r + 1 },
|
|
1531
|
-
(
|
|
1531
|
+
(c, p) => r + p
|
|
1532
1532
|
);
|
|
1533
1533
|
}
|
|
1534
1534
|
return { getPageList: n };
|
|
@@ -1540,7 +1540,7 @@ const Pt = {
|
|
|
1540
1540
|
e,
|
|
1541
1541
|
"webserver"
|
|
1542
1542
|
), d = X(() => Object.entries(n.lg("channeluser.lv")).filter((U) => a.user.info?.lv > U[0]));
|
|
1543
|
-
function
|
|
1543
|
+
function c() {
|
|
1544
1544
|
return new Promise((P, U) => {
|
|
1545
1545
|
try {
|
|
1546
1546
|
o.channeluser?.stat ? P() : (o.channeluser = {
|
|
@@ -1823,7 +1823,7 @@ const Pt = {
|
|
|
1823
1823
|
});
|
|
1824
1824
|
}
|
|
1825
1825
|
return {
|
|
1826
|
-
initUserChannel:
|
|
1826
|
+
initUserChannel: c,
|
|
1827
1827
|
userReg: h,
|
|
1828
1828
|
userLogin: $,
|
|
1829
1829
|
userExit: y,
|
|
@@ -1859,12 +1859,12 @@ const Pt = {
|
|
|
1859
1859
|
}), e.changethemepro = (p = "") => s?.sys?.local?.theme ? e.changetheme(p) : e.setconfig("settingtheme", {
|
|
1860
1860
|
theme: p
|
|
1861
1861
|
});
|
|
1862
|
-
const
|
|
1863
|
-
return
|
|
1862
|
+
const c = [e.initlang(s.config.langcur || "")];
|
|
1863
|
+
return c.push(
|
|
1864
1864
|
e.initmodel(r + "/dirmodel.json").then((p) => {
|
|
1865
1865
|
p && Object.assign(n[r], p);
|
|
1866
1866
|
})
|
|
1867
|
-
), Promise.all(
|
|
1867
|
+
), Promise.all(c);
|
|
1868
1868
|
}
|
|
1869
1869
|
return { initAppModel: l };
|
|
1870
1870
|
}, hn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -1931,7 +1931,7 @@ const Pt = {
|
|
|
1931
1931
|
function d() {
|
|
1932
1932
|
a.user.info?.us && (a.code.token = n.AsCode.asencode(a.user.info?.us, a.code.pri) + "##" + n.AsCode.asencode(a.user.info?.lv, a.code.pri) + "##" + a.code.pub);
|
|
1933
1933
|
}
|
|
1934
|
-
function
|
|
1934
|
+
function c() {
|
|
1935
1935
|
return new Promise((h, v) => {
|
|
1936
1936
|
try {
|
|
1937
1937
|
r().then(() => {
|
|
@@ -1950,7 +1950,7 @@ const Pt = {
|
|
|
1950
1950
|
return new Promise((h, v) => {
|
|
1951
1951
|
a.user.online = 0;
|
|
1952
1952
|
try {
|
|
1953
|
-
|
|
1953
|
+
c().then(() => {
|
|
1954
1954
|
a.code.token && s().then((_) => {
|
|
1955
1955
|
a.user.online = 1, h();
|
|
1956
1956
|
});
|
|
@@ -1964,7 +1964,7 @@ const Pt = {
|
|
|
1964
1964
|
}
|
|
1965
1965
|
return {
|
|
1966
1966
|
initServer: r,
|
|
1967
|
-
initUserToken:
|
|
1967
|
+
initUserToken: c,
|
|
1968
1968
|
initToken: d,
|
|
1969
1969
|
initUserOnline: p,
|
|
1970
1970
|
userLoginWs: s,
|
|
@@ -1985,6 +1985,7 @@ const Pt = {
|
|
|
1985
1985
|
provideglobal: {
|
|
1986
1986
|
data: {
|
|
1987
1987
|
sys: null,
|
|
1988
|
+
wd: { w: 0, h: 0 },
|
|
1988
1989
|
config: {
|
|
1989
1990
|
theme: "theme-light",
|
|
1990
1991
|
lang: "",
|
|
@@ -2127,7 +2128,7 @@ const Pt = {
|
|
|
2127
2128
|
});
|
|
2128
2129
|
}
|
|
2129
2130
|
});
|
|
2130
|
-
const d = /* @__PURE__ */ new Map(),
|
|
2131
|
+
const d = /* @__PURE__ */ new Map(), c = /\$(\d+)/g;
|
|
2131
2132
|
return o.$fn.lg = (p, h) => {
|
|
2132
2133
|
if (typeof p != "string" || !p)
|
|
2133
2134
|
return;
|
|
@@ -2140,7 +2141,7 @@ const Pt = {
|
|
|
2140
2141
|
if (!h || h.length === 0) return _;
|
|
2141
2142
|
const $ = Array.isArray(h) ? h : [h];
|
|
2142
2143
|
return _?.replace(
|
|
2143
|
-
|
|
2144
|
+
c,
|
|
2144
2145
|
(b, k) => {
|
|
2145
2146
|
const O = parseInt(k, 10) - 1;
|
|
2146
2147
|
return $[O] ?? b;
|
|
@@ -2466,7 +2467,7 @@ const Pt = {
|
|
|
2466
2467
|
ty: "publish/web"
|
|
2467
2468
|
});
|
|
2468
2469
|
}), (r, d) => {
|
|
2469
|
-
const
|
|
2470
|
+
const c = E("AsaiWebServerUserOnline"), p = E("PopMsg"), h = E("PopBoxConfirm");
|
|
2470
2471
|
return f(), m(I, null, [
|
|
2471
2472
|
i(o).stat.webclient ? (f(), m(I, { key: 0 }, [
|
|
2472
2473
|
l.value === 0 ? (f(), Y(Be, {
|
|
@@ -2478,7 +2479,7 @@ const Pt = {
|
|
|
2478
2479
|
}, null, 8, ["ujt"])) : l.value === 2 ? (f(), Y(Ne, {
|
|
2479
2480
|
key: 2,
|
|
2480
2481
|
ujt: t.ujt
|
|
2481
|
-
}, null, 8, ["ujt"])) : (f(), Y(
|
|
2482
|
+
}, null, 8, ["ujt"])) : (f(), Y(c, {
|
|
2482
2483
|
key: 3,
|
|
2483
2484
|
ujt: t.ujt
|
|
2484
2485
|
}, null, 8, ["ujt"]))
|
|
@@ -2486,7 +2487,7 @@ const Pt = {
|
|
|
2486
2487
|
key: 1,
|
|
2487
2488
|
ujt: t.ujt
|
|
2488
2489
|
}, null, 8, ["ujt"])),
|
|
2489
|
-
d[0] || (d[0] =
|
|
2490
|
+
d[0] || (d[0] = u("div", { id: "popteleport" }, null, -1)),
|
|
2490
2491
|
W(p, { ujt: t.ujt }, null, 8, ["ujt"]),
|
|
2491
2492
|
W(h, {
|
|
2492
2493
|
ujt: t.ujt,
|
|
@@ -2510,22 +2511,22 @@ const Pt = {
|
|
|
2510
2511
|
return (s, l) => {
|
|
2511
2512
|
const r = E("UserCard");
|
|
2512
2513
|
return f(), m("div", Dn, [
|
|
2513
|
-
l[0] || (l[0] =
|
|
2514
|
-
|
|
2514
|
+
l[0] || (l[0] = u("div", { class: "app-logo" }, [
|
|
2515
|
+
u("img", {
|
|
2515
2516
|
src: "./webmodel/files/img/logo.png",
|
|
2516
2517
|
width: "200"
|
|
2517
2518
|
})
|
|
2518
2519
|
], -1)),
|
|
2519
|
-
|
|
2520
|
+
u("div", Rn, [
|
|
2520
2521
|
(f(!0), m(I, null, Q(a.value, (d) => (f(), m("div", {
|
|
2521
2522
|
class: J(`app-menu${d.type === "module" ? " module" : ""}`),
|
|
2522
2523
|
key: d.value,
|
|
2523
|
-
onPointerup: (
|
|
2524
|
+
onPointerup: (c) => i(o).sethash(d.value === "views" ? "" : d.value)
|
|
2524
2525
|
}, [
|
|
2525
|
-
|
|
2526
|
+
u("span", Wn, g(d.label), 1)
|
|
2526
2527
|
], 42, Fn))), 128))
|
|
2527
2528
|
]),
|
|
2528
|
-
|
|
2529
|
+
u("div", Hn, [
|
|
2529
2530
|
W(r, { ujt: t.ujt }, null, 8, ["ujt"])
|
|
2530
2531
|
])
|
|
2531
2532
|
]);
|
|
@@ -2593,23 +2594,23 @@ const Pt = {
|
|
|
2593
2594
|
ujt: t.ujt,
|
|
2594
2595
|
menus: i(n).url[i(n).module.value]
|
|
2595
2596
|
}, null, 8, ["ujt", "menus"]),
|
|
2596
|
-
|
|
2597
|
-
s[0] || (s[0] =
|
|
2598
|
-
|
|
2597
|
+
u("div", Kn, [
|
|
2598
|
+
s[0] || (s[0] = u("div", { class: "app-logo" }, [
|
|
2599
|
+
u("img", {
|
|
2599
2600
|
src: "./webmodel/files/img/logo.png",
|
|
2600
2601
|
width: "200"
|
|
2601
2602
|
})
|
|
2602
2603
|
], -1)),
|
|
2603
|
-
|
|
2604
|
+
u("div", Jn, [
|
|
2604
2605
|
(f(!0), m(I, null, Q(i(n).url[i(n).module.value], (d) => (f(), m("div", {
|
|
2605
2606
|
class: J(`app-menu${d.type === "module" ? " module" : ""}`),
|
|
2606
2607
|
key: d.value,
|
|
2607
|
-
onPointerup: (
|
|
2608
|
+
onPointerup: (c) => i(o).sethash(d.value === "views" ? "" : d.value)
|
|
2608
2609
|
}, [
|
|
2609
|
-
|
|
2610
|
+
u("span", Qn, g(d.label), 1)
|
|
2610
2611
|
], 42, Gn))), 128))
|
|
2611
2612
|
]),
|
|
2612
|
-
|
|
2613
|
+
u("div", Zn, [
|
|
2613
2614
|
W(r, { ujt: t.ujt }, null, 8, ["ujt"])
|
|
2614
2615
|
])
|
|
2615
2616
|
])
|
|
@@ -2681,19 +2682,19 @@ const Pt = {
|
|
|
2681
2682
|
setup(t) {
|
|
2682
2683
|
const e = t, { $fn: n, $db: o } = e.ujt, { addContent: a, initAddChannel: s, channelLang: l } = n.useChannel(e);
|
|
2683
2684
|
return s(), (r, d) => {
|
|
2684
|
-
const
|
|
2685
|
+
const c = E("AsaiForm");
|
|
2685
2686
|
return D(r.$slots, "default", {
|
|
2686
2687
|
item: i(o)[e.opt.channel],
|
|
2687
2688
|
option: { addContent: i(a) }
|
|
2688
2689
|
}, () => [
|
|
2689
|
-
|
|
2690
|
-
W(
|
|
2690
|
+
u("div", ro, [
|
|
2691
|
+
W(c, {
|
|
2691
2692
|
ujt: t.ujt,
|
|
2692
2693
|
asaidata: i(o)[e.opt.channel].rfdata
|
|
2693
2694
|
}, null, 8, ["ujt", "asaidata"])
|
|
2694
2695
|
]),
|
|
2695
|
-
|
|
2696
|
-
|
|
2696
|
+
u("div", co, [
|
|
2697
|
+
u("div", {
|
|
2697
2698
|
class: "li cur",
|
|
2698
2699
|
onPointerdown: d[0] || (d[0] = (p) => i(a)())
|
|
2699
2700
|
}, g(i(l)("ui.add") || "Add"), 33)
|
|
@@ -2714,18 +2715,18 @@ const Pt = {
|
|
|
2714
2715
|
const e = t, { $fn: n, $global: o, $db: a } = e.ujt, { setChannelClass: s, getClassKey: l } = n.useChannel(e);
|
|
2715
2716
|
return (r, d) => (f(!0), m(I, null, Q(Object.entries(
|
|
2716
2717
|
i(a)[e.opt.channel].rfdata.rule?.[i(l)()]?.[i(l)() + "data"] || { asai: "All" }
|
|
2717
|
-
), (
|
|
2718
|
-
key:
|
|
2719
|
-
item:
|
|
2718
|
+
), (c) => D(r.$slots, "default", {
|
|
2719
|
+
key: c[0],
|
|
2720
|
+
item: c,
|
|
2720
2721
|
option: { setChannelClass: i(s) }
|
|
2721
2722
|
}, () => [
|
|
2722
|
-
|
|
2723
|
-
title:
|
|
2723
|
+
u("div", {
|
|
2724
|
+
title: c[1] || "",
|
|
2724
2725
|
class: J({
|
|
2725
|
-
cur:
|
|
2726
|
+
cur: c[0] === i(o).location.query?.fl || c[0] === "asai" && !i(o).location.query?.fl
|
|
2726
2727
|
}),
|
|
2727
|
-
onPointerdown: (p) => i(s)(
|
|
2728
|
-
}, g(
|
|
2728
|
+
onPointerdown: (p) => i(s)(c[0] === "asai" ? "" : c[0])
|
|
2729
|
+
}, g(c[1]), 43, fo)
|
|
2729
2730
|
])), 128));
|
|
2730
2731
|
}
|
|
2731
2732
|
}), ho = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -2745,16 +2746,16 @@ const Pt = {
|
|
|
2745
2746
|
item: i(o)[e.opt.channel],
|
|
2746
2747
|
option: { editContent: i(a) }
|
|
2747
2748
|
}, () => [
|
|
2748
|
-
|
|
2749
|
+
u("div", go, [
|
|
2749
2750
|
W(d, {
|
|
2750
2751
|
ujt: t.ujt,
|
|
2751
2752
|
asaidata: i(o)[e.opt.channel].rfdata
|
|
2752
2753
|
}, null, 8, ["ujt", "asaidata"])
|
|
2753
2754
|
]),
|
|
2754
|
-
|
|
2755
|
-
|
|
2755
|
+
u("div", vo, [
|
|
2756
|
+
u("div", {
|
|
2756
2757
|
class: "li cur",
|
|
2757
|
-
onPointerdown: r[0] || (r[0] = (
|
|
2758
|
+
onPointerdown: r[0] || (r[0] = (c) => i(a)())
|
|
2758
2759
|
}, g(i(s)("ui.edit") || "Edit"), 33)
|
|
2759
2760
|
])
|
|
2760
2761
|
]);
|
|
@@ -2779,17 +2780,17 @@ const Pt = {
|
|
|
2779
2780
|
const e = t, { $fn: n, $global: o, $db: a, $model: s } = e.ujt, { initChannel: l, channelLang: r } = n.useChannel(e);
|
|
2780
2781
|
return l(), _e(() => {
|
|
2781
2782
|
a[e.opt.channel] = null;
|
|
2782
|
-
}), (d,
|
|
2783
|
+
}), (d, c) => {
|
|
2783
2784
|
const p = E("ChannelClass"), h = E("ChannelUpDown"), v = E("ChannelListSearch"), _ = E("PopBoxConfirm"), $ = E("ChannelList"), y = E("ChannelListPage"), b = E("ChannelOpt"), k = E("ChannelEdit"), O = E("ChannelShow"), S = E("ChannelAdd");
|
|
2784
2785
|
return i(a)[e.opt.channel].stat ? (f(), m("div", {
|
|
2785
2786
|
key: 0,
|
|
2786
2787
|
class: J(e.opt.tyindex == 1 ? "as-channel-column" : "as-channel-row")
|
|
2787
2788
|
}, [
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2789
|
+
u("div", _o, [
|
|
2790
|
+
u("div", $o, [
|
|
2791
|
+
u("h1", null, g(i(s).data.asai.rulebook.listclass) + " " + g(i(r)("ui.class") || "Class"), 1)
|
|
2791
2792
|
]),
|
|
2792
|
-
|
|
2793
|
+
u("div", ko, [
|
|
2793
2794
|
W(p, {
|
|
2794
2795
|
ujt: t.ujt,
|
|
2795
2796
|
opt: t.opt
|
|
@@ -2802,15 +2803,15 @@ const Pt = {
|
|
|
2802
2803
|
}, null, 8, ["ujt", "opt"])
|
|
2803
2804
|
])) : R("", !0)
|
|
2804
2805
|
]),
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
|
|
2806
|
+
u("div", jo, [
|
|
2807
|
+
u("div", So, [
|
|
2808
|
+
u("h1", null, g(i(s).data.asai.rulebook.listcontent) + " " + g(i(r)("ui.list") || "List"), 1)
|
|
2808
2809
|
]),
|
|
2809
2810
|
W(v, {
|
|
2810
2811
|
ujt: t.ujt,
|
|
2811
2812
|
opt: t.opt
|
|
2812
2813
|
}, null, 8, ["ujt", "opt"]),
|
|
2813
|
-
|
|
2814
|
+
u("div", {
|
|
2814
2815
|
class: "as-channel-list-area as-list-nth",
|
|
2815
2816
|
id: "popconfirm" + e.opt.channel + "area"
|
|
2816
2817
|
}, [
|
|
@@ -2830,12 +2831,12 @@ const Pt = {
|
|
|
2830
2831
|
}, null, 8, ["ujt", "opt"])
|
|
2831
2832
|
])) : R("", !0)
|
|
2832
2833
|
]),
|
|
2833
|
-
|
|
2834
|
+
u("div", Co, [
|
|
2834
2835
|
i(o).location.query?.show ? (f(), m(I, { key: 0 }, [
|
|
2835
2836
|
i(o).location.query?.showty ? (f(), m(I, { key: 0 }, [
|
|
2836
|
-
|
|
2837
|
-
|
|
2838
|
-
|
|
2837
|
+
u("div", Oo, [
|
|
2838
|
+
u("h1", null, g(i(s).data.asai.rulebook.contentedit) + " " + g(i(r)("ui.edit") || "Edit"), 1),
|
|
2839
|
+
u("div", Ao, [
|
|
2839
2840
|
W(b, {
|
|
2840
2841
|
ujt: t.ujt,
|
|
2841
2842
|
opt: t.opt
|
|
@@ -2847,9 +2848,9 @@ const Pt = {
|
|
|
2847
2848
|
opt: t.opt
|
|
2848
2849
|
}, null, 8, ["ujt", "opt"])
|
|
2849
2850
|
], 64)) : (f(), m(I, { key: 1 }, [
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2851
|
+
u("div", Mo, [
|
|
2852
|
+
u("h1", null, g(i(s).data.asai.rulebook.contentshow) + " " + g(i(r)("ui.show") || "Show"), 1),
|
|
2853
|
+
u("div", To, [
|
|
2853
2854
|
W(b, {
|
|
2854
2855
|
ujt: t.ujt,
|
|
2855
2856
|
opt: t.opt
|
|
@@ -2862,9 +2863,9 @@ const Pt = {
|
|
|
2862
2863
|
}, null, 8, ["ujt", "opt"])
|
|
2863
2864
|
], 64))
|
|
2864
2865
|
], 64)) : (f(), m(I, { key: 1 }, [
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2866
|
+
u("div", zo, [
|
|
2867
|
+
u("h1", null, g(i(s).data.asai.rulebook.new) + " " + g(i(r)("ui.add") || "Add"), 1),
|
|
2868
|
+
u("div", Lo, [
|
|
2868
2869
|
W(b, {
|
|
2869
2870
|
ujt: t.ujt,
|
|
2870
2871
|
opt: t.opt
|
|
@@ -2899,13 +2900,13 @@ const Pt = {
|
|
|
2899
2900
|
editItem: l,
|
|
2900
2901
|
readItem: r,
|
|
2901
2902
|
setShow: d,
|
|
2902
|
-
fetchContent:
|
|
2903
|
+
fetchContent: c,
|
|
2903
2904
|
optConfirm: p,
|
|
2904
2905
|
getSnKey: h,
|
|
2905
2906
|
channelLang: v
|
|
2906
2907
|
} = n.useChannel(e);
|
|
2907
2908
|
he(() => {
|
|
2908
|
-
|
|
2909
|
+
c(0), r(a.location.query?.show);
|
|
2909
2910
|
}), o[e.opt.channel].cmPageSize = X(() => Number(a.location.query?.ps) || o[e.opt.channel].cfg.config?.ps || 5);
|
|
2910
2911
|
const { getPageList: _ } = n.usePage(e);
|
|
2911
2912
|
return o[e.opt.channel].cmPageList = X(() => _(o[e.opt?.channel]?.cmPageSize)), ($, y) => {
|
|
@@ -2924,7 +2925,7 @@ const Pt = {
|
|
|
2924
2925
|
}, {
|
|
2925
2926
|
btns: le(() => [
|
|
2926
2927
|
3 < i(a).user?.info?.lv ? (f(), m("div", Io, [
|
|
2927
|
-
|
|
2928
|
+
u("div", {
|
|
2928
2929
|
onPointerdown: y[0] || (y[0] = q(() => {
|
|
2929
2930
|
}, ["stop"])),
|
|
2930
2931
|
onPointerup: q((S) => {
|
|
@@ -2936,7 +2937,7 @@ const Pt = {
|
|
|
2936
2937
|
});
|
|
2937
2938
|
}, ["stop"])
|
|
2938
2939
|
}, g(i(v)("ui.del") || "Del"), 41, Do),
|
|
2939
|
-
|
|
2940
|
+
u("div", {
|
|
2940
2941
|
onPointerdown: y[1] || (y[1] = q(() => {
|
|
2941
2942
|
}, ["stop"])),
|
|
2942
2943
|
onPointerup: q((S) => i(l)(k?.[i(h)()]), ["stop"])
|
|
@@ -2964,7 +2965,7 @@ const Pt = {
|
|
|
2964
2965
|
item: l,
|
|
2965
2966
|
option: {}
|
|
2966
2967
|
}, () => [
|
|
2967
|
-
|
|
2968
|
+
u("div", {
|
|
2968
2969
|
onPointerdown: s[0] || (s[0] = q(() => {
|
|
2969
2970
|
}, ["stop"])),
|
|
2970
2971
|
onPointerup: q((r) => i(n)[e.opt.channel]?.setpage(l), ["stop"]),
|
|
@@ -2993,45 +2994,45 @@ const Pt = {
|
|
|
2993
2994
|
option: { searchSubmit: i(s) }
|
|
2994
2995
|
}, () => [
|
|
2995
2996
|
e.opt?.channel && i(n)[e.opt.channel].cfg.sxs?.length ? (f(), m("div", Vo, [
|
|
2996
|
-
|
|
2997
|
-
G(
|
|
2998
|
-
"onUpdate:modelValue": d[0] || (d[0] = (
|
|
2997
|
+
u("div", No, [
|
|
2998
|
+
G(u("input", {
|
|
2999
|
+
"onUpdate:modelValue": d[0] || (d[0] = (c) => i(o).location.query.ss = c),
|
|
2999
3000
|
placeholder: i(a).lg("asai.searchtips")
|
|
3000
3001
|
}, null, 8, Yo), [
|
|
3001
3002
|
[ce, i(o).location.query.ss]
|
|
3002
3003
|
]),
|
|
3003
|
-
|
|
3004
|
-
onPointerdown: d[1] || (d[1] = (
|
|
3004
|
+
u("button", {
|
|
3005
|
+
onPointerdown: d[1] || (d[1] = (c) => i(s)())
|
|
3005
3006
|
}, g(i(a).lg("asai.search")), 33)
|
|
3006
3007
|
]),
|
|
3007
|
-
|
|
3008
|
-
G(
|
|
3009
|
-
"onUpdate:modelValue": d[2] || (d[2] = (
|
|
3008
|
+
u("div", Xo, [
|
|
3009
|
+
G(u("select", {
|
|
3010
|
+
"onUpdate:modelValue": d[2] || (d[2] = (c) => i(o).location.query.ssty = c)
|
|
3010
3011
|
}, [
|
|
3011
|
-
(f(!0), m(I, null, Q(i(n)[e.opt.channel].cfg.sss, (
|
|
3012
|
-
key:
|
|
3013
|
-
value:
|
|
3014
|
-
}, g(
|
|
3012
|
+
(f(!0), m(I, null, Q(i(n)[e.opt.channel].cfg.sss, (c) => (f(), m("option", {
|
|
3013
|
+
key: c,
|
|
3014
|
+
value: c === "asai" ? void 0 : c
|
|
3015
|
+
}, g(c === "asai" ? i(l)("ui.sss") || "Table" : i(n)[e.opt.channel].rfdata?.lang?.[c]), 9, Ko))), 128))
|
|
3015
3016
|
], 512), [
|
|
3016
3017
|
[be, i(o).location.query.ssty]
|
|
3017
3018
|
]),
|
|
3018
|
-
G(
|
|
3019
|
-
"onUpdate:modelValue": d[3] || (d[3] = (
|
|
3019
|
+
G(u("select", {
|
|
3020
|
+
"onUpdate:modelValue": d[3] || (d[3] = (c) => i(o).location.query.sx = c)
|
|
3020
3021
|
}, [
|
|
3021
|
-
(f(!0), m(I, null, Q(i(n)[e.opt.channel].cfg.sxs, (
|
|
3022
|
-
key:
|
|
3023
|
-
value:
|
|
3024
|
-
}, g(
|
|
3022
|
+
(f(!0), m(I, null, Q(i(n)[e.opt.channel].cfg.sxs, (c) => (f(), m("option", {
|
|
3023
|
+
key: c,
|
|
3024
|
+
value: c === "asai" ? void 0 : c
|
|
3025
|
+
}, g(c === "asai" ? i(l)("ui.sxs") || "Sort" : i(n)[e.opt.channel].rfdata?.lang?.[c]), 9, Jo))), 128))
|
|
3025
3026
|
], 512), [
|
|
3026
3027
|
[be, i(o).location.query.sx]
|
|
3027
3028
|
]),
|
|
3028
|
-
G(
|
|
3029
|
-
"onUpdate:modelValue": d[4] || (d[4] = (
|
|
3029
|
+
G(u("select", {
|
|
3030
|
+
"onUpdate:modelValue": d[4] || (d[4] = (c) => i(o).location.query.sxty = c)
|
|
3030
3031
|
}, [
|
|
3031
|
-
(f(!0), m(I, null, Q(i(l)("ui.sxtys") || [], (
|
|
3032
|
+
(f(!0), m(I, null, Q(i(l)("ui.sxtys") || [], (c, p) => (f(), m("option", {
|
|
3032
3033
|
key: "sxty" + p,
|
|
3033
3034
|
value: p == 0 ? void 0 : p.toString()
|
|
3034
|
-
}, g(
|
|
3035
|
+
}, g(c), 9, Go))), 128))
|
|
3035
3036
|
], 512), [
|
|
3036
3037
|
[be, i(o).location.query.sxty]
|
|
3037
3038
|
])
|
|
@@ -3056,13 +3057,13 @@ const Pt = {
|
|
|
3056
3057
|
return s(e.pm).then((r) => {
|
|
3057
3058
|
a.list = r.data;
|
|
3058
3059
|
}), (r, d) => {
|
|
3059
|
-
const
|
|
3060
|
+
const c = E("ChannelListType");
|
|
3060
3061
|
return f(!0), m(I, null, Q(a.list, (p, h) => D(r.$slots, "default", {
|
|
3061
3062
|
key: "list" + (p?.[r.getSnKey()] || h),
|
|
3062
3063
|
item: p,
|
|
3063
3064
|
option: { setShow: i(l) }
|
|
3064
3065
|
}, () => [
|
|
3065
|
-
W(
|
|
3066
|
+
W(c, {
|
|
3066
3067
|
ujt: t.ujt,
|
|
3067
3068
|
opt: t.opt,
|
|
3068
3069
|
pm: t.pm,
|
|
@@ -3089,7 +3090,7 @@ const Pt = {
|
|
|
3089
3090
|
return (l, r) => (f(), m("div", {
|
|
3090
3091
|
class: J(`list${t.item?.[i(s)()] && i(n).location.query?.show === t.item?.[i(s)()] ? " cur" : ""}`)
|
|
3091
3092
|
}, [
|
|
3092
|
-
|
|
3093
|
+
u("div", {
|
|
3093
3094
|
class: "li",
|
|
3094
3095
|
title: t.item?.[i(a)()] || "",
|
|
3095
3096
|
onPointerdown: r[0] || (r[0] = q(() => {
|
|
@@ -3116,7 +3117,7 @@ const Pt = {
|
|
|
3116
3117
|
return (l, r) => (f(), m("div", {
|
|
3117
3118
|
class: J(`pic${t.item?.[i(s)()] && i(n).location.query?.show === t.item?.[i(s)()] ? " cur" : ""}`)
|
|
3118
3119
|
}, [
|
|
3119
|
-
|
|
3120
|
+
u("div", {
|
|
3120
3121
|
class: "li",
|
|
3121
3122
|
title: t.item?.[i(a)()] || "",
|
|
3122
3123
|
onPointerup: r[0] || (r[0] = q((d) => t.option?.setShow(t.item), ["stop"]))
|
|
@@ -3187,16 +3188,16 @@ const Pt = {
|
|
|
3187
3188
|
item: i(o)[e.opt.channel],
|
|
3188
3189
|
option: { channelLogin: i(a), channelLang: i(s) }
|
|
3189
3190
|
}, () => [
|
|
3190
|
-
|
|
3191
|
+
u("div", da, [
|
|
3191
3192
|
W(d, {
|
|
3192
3193
|
ujt: t.ujt,
|
|
3193
3194
|
asaidata: i(o)[e.opt.channel].rfdata
|
|
3194
3195
|
}, null, 8, ["ujt", "asaidata"])
|
|
3195
3196
|
]),
|
|
3196
|
-
|
|
3197
|
-
|
|
3197
|
+
u("div", pa, [
|
|
3198
|
+
u("div", {
|
|
3198
3199
|
class: "li cur",
|
|
3199
|
-
onPointerdown: r[0] || (r[0] = (
|
|
3200
|
+
onPointerdown: r[0] || (r[0] = (c) => i(a)())
|
|
3200
3201
|
}, g(i(n).lg("channeluser.ui.login")), 33)
|
|
3201
3202
|
])
|
|
3202
3203
|
]);
|
|
@@ -3222,11 +3223,11 @@ const Pt = {
|
|
|
3222
3223
|
item: {},
|
|
3223
3224
|
option: { toggleShow: a }
|
|
3224
3225
|
}, () => [
|
|
3225
|
-
|
|
3226
|
+
u("div", {
|
|
3226
3227
|
class: "as-channel-opt-class",
|
|
3227
3228
|
onPointerdown: l[0] || (l[0] = (r) => a(".as-channel-class"))
|
|
3228
3229
|
}, " ☰ " + g(i(o)("ui.class") || "Class"), 33),
|
|
3229
|
-
|
|
3230
|
+
u("div", {
|
|
3230
3231
|
class: "as-channel-opt-list",
|
|
3231
3232
|
onPointerdown: l[1] || (l[1] = (r) => a(".as-channel-list"))
|
|
3232
3233
|
}, " ☰ " + g(i(o)("ui.list") || "List"), 33)
|
|
@@ -3247,27 +3248,27 @@ const Pt = {
|
|
|
3247
3248
|
item: i(n).location.query,
|
|
3248
3249
|
option: { setChannelHash: i(s) }
|
|
3249
3250
|
}, () => [
|
|
3250
|
-
|
|
3251
|
-
|
|
3251
|
+
u("div", va, [
|
|
3252
|
+
u("div", {
|
|
3252
3253
|
class: "as-channel-pos",
|
|
3253
|
-
onPointerup: d[0] || (d[0] = q((
|
|
3254
|
+
onPointerup: d[0] || (d[0] = q((c) => i(s)("class"), ["stop"]))
|
|
3254
3255
|
}, g(i(l)("ui.class") || "Class"), 33),
|
|
3255
|
-
|
|
3256
|
+
u("div", {
|
|
3256
3257
|
class: "as-channel-pos",
|
|
3257
|
-
onPointerup: d[1] || (d[1] = q((
|
|
3258
|
+
onPointerup: d[1] || (d[1] = q((c) => i(s)("list"), ["stop"]))
|
|
3258
3259
|
}, g(i(l)("ui.list") || "List"), 33),
|
|
3259
|
-
|
|
3260
|
+
u("div", {
|
|
3260
3261
|
class: "as-channel-pos",
|
|
3261
|
-
onPointerup: d[2] || (d[2] = q((
|
|
3262
|
+
onPointerup: d[2] || (d[2] = q((c) => i(s)("add"), ["stop"]))
|
|
3262
3263
|
}, g(i(l)("ui.add") || "Add"), 33),
|
|
3263
3264
|
i(a)[e.opt.channel]?.cfg?.url?.reg ? (f(), m(I, { key: 0 }, [
|
|
3264
|
-
|
|
3265
|
+
u("div", {
|
|
3265
3266
|
class: "as-channel-pos",
|
|
3266
|
-
onPointerup: d[3] || (d[3] = q((
|
|
3267
|
+
onPointerup: d[3] || (d[3] = q((c) => i(s)("reg"), ["stop"]))
|
|
3267
3268
|
}, g(i(o).lg("channeluser.ui.reg")), 33),
|
|
3268
|
-
|
|
3269
|
+
u("div", {
|
|
3269
3270
|
class: "as-channel-pos",
|
|
3270
|
-
onPointerup: d[4] || (d[4] = q((
|
|
3271
|
+
onPointerup: d[4] || (d[4] = q((c) => i(s)("login"), ["stop"]))
|
|
3271
3272
|
}, g(i(o).lg("channeluser.ui.login")), 33)
|
|
3272
3273
|
], 64)) : R("", !0)
|
|
3273
3274
|
])
|
|
@@ -3285,19 +3286,19 @@ const Pt = {
|
|
|
3285
3286
|
setup(t) {
|
|
3286
3287
|
const e = t, { $fn: n, $db: o } = e.ujt, { channelReg: a, initAddChannel: s, channelLang: l } = n.useChannel(e);
|
|
3287
3288
|
return s(), (r, d) => {
|
|
3288
|
-
const
|
|
3289
|
+
const c = E("AsaiForm");
|
|
3289
3290
|
return D(r.$slots, "default", {
|
|
3290
3291
|
item: i(o)[e.opt.channel],
|
|
3291
3292
|
option: { channelReg: i(a), channelLang: i(l) }
|
|
3292
3293
|
}, () => [
|
|
3293
|
-
|
|
3294
|
-
W(
|
|
3294
|
+
u("div", $a, [
|
|
3295
|
+
W(c, {
|
|
3295
3296
|
ujt: t.ujt,
|
|
3296
3297
|
asaidata: i(o)[e.opt.channel].rfdata
|
|
3297
3298
|
}, null, 8, ["ujt", "asaidata"])
|
|
3298
3299
|
]),
|
|
3299
|
-
|
|
3300
|
-
|
|
3300
|
+
u("div", ka, [
|
|
3301
|
+
u("div", {
|
|
3301
3302
|
class: "li cur",
|
|
3302
3303
|
onPointerdown: d[0] || (d[0] = (p) => i(a)())
|
|
3303
3304
|
}, g(i(n).lg("channeluser.ui.reg")), 33)
|
|
@@ -3322,7 +3323,7 @@ const Pt = {
|
|
|
3322
3323
|
item: i(n)[e.opt.channel],
|
|
3323
3324
|
option: {}
|
|
3324
3325
|
}, () => [
|
|
3325
|
-
|
|
3326
|
+
u("div", Sa, [
|
|
3326
3327
|
W(s, {
|
|
3327
3328
|
ujt: t.ujt,
|
|
3328
3329
|
asaidata: i(n)[e.opt.channel].rfdata
|
|
@@ -3346,13 +3347,13 @@ const Pt = {
|
|
|
3346
3347
|
a(r);
|
|
3347
3348
|
}
|
|
3348
3349
|
return (r, d) => {
|
|
3349
|
-
const
|
|
3350
|
+
const c = E("AsUploadTxt");
|
|
3350
3351
|
return D(r.$slots, "default", {
|
|
3351
3352
|
item: {},
|
|
3352
3353
|
option: { onUpload: l, channelUpload: i(a), channelDownload: i(s) }
|
|
3353
3354
|
}, () => [
|
|
3354
|
-
|
|
3355
|
-
W(
|
|
3355
|
+
u("button", Ca, [
|
|
3356
|
+
W(c, {
|
|
3356
3357
|
ujt: t.ujt,
|
|
3357
3358
|
opt: { accept: ".txt" },
|
|
3358
3359
|
onOnUpload: l
|
|
@@ -3363,7 +3364,7 @@ const Pt = {
|
|
|
3363
3364
|
_: 1
|
|
3364
3365
|
}, 8, ["ujt"])
|
|
3365
3366
|
]),
|
|
3366
|
-
|
|
3367
|
+
u("button", {
|
|
3367
3368
|
class: "as-channel-io",
|
|
3368
3369
|
onPointerdown: d[0] || (d[0] = (p) => i(s)())
|
|
3369
3370
|
}, g(i(o).lang.asai.download), 33)
|
|
@@ -3386,7 +3387,7 @@ const Pt = {
|
|
|
3386
3387
|
room: {}
|
|
3387
3388
|
},
|
|
3388
3389
|
setup(t) {
|
|
3389
|
-
const e = t, { $fn: n, $ws: o, $global: a } = e.ujt, { sendChatRoom: s } = n.useChatRoom(e), l = e?.room?.wsname || "web", r = e?.room?.roomname || "asai", d = V(null),
|
|
3390
|
+
const e = t, { $fn: n, $ws: o, $global: a } = e.ujt, { sendChatRoom: s } = n.useChatRoom(e), l = e?.room?.wsname || "web", r = e?.room?.roomname || "asai", d = V(null), c = V(null), p = me({
|
|
3390
3391
|
mediaPress: null,
|
|
3391
3392
|
mediaNew: null,
|
|
3392
3393
|
mediaChunks: [],
|
|
@@ -3406,18 +3407,18 @@ const Pt = {
|
|
|
3406
3407
|
}, p.optFn = () => {
|
|
3407
3408
|
p.optty = p.optty > 0 ? 0 : 1, p.send.ty = p.optty ? p.optty : 0, p.send.ty || (p.send.msg = "");
|
|
3408
3409
|
}, p.insertFn = ($) => {
|
|
3409
|
-
|
|
3410
|
+
c.value && (c.value.focus(), ge(() => {
|
|
3410
3411
|
try {
|
|
3411
|
-
const y =
|
|
3412
|
+
const y = c.value;
|
|
3412
3413
|
if (!y) return;
|
|
3413
3414
|
const b = y.selectionStart !== null ? y.selectionStart : y.value.length, k = y.selectionEnd !== null ? y.selectionEnd : y.value.length, O = y.value, S = O.substring(0, b) + $ + O.substring(k);
|
|
3414
3415
|
y.value = S;
|
|
3415
3416
|
const L = b + $.length;
|
|
3416
3417
|
y.setSelectionRange(L, L), y.dispatchEvent(new Event("input", { bubbles: !0 })), p.send.msg = S;
|
|
3417
3418
|
} catch {
|
|
3418
|
-
const k =
|
|
3419
|
-
|
|
3420
|
-
|
|
3419
|
+
const k = c.value.value + $;
|
|
3420
|
+
c.value.value = k, c.value.dispatchEvent(new Event("input", { bubbles: !0 })), p.send.msg = k, setTimeout(() => {
|
|
3421
|
+
c.value && c.value.setSelectionRange(
|
|
3421
3422
|
k.length,
|
|
3422
3423
|
k.length
|
|
3423
3424
|
);
|
|
@@ -3444,7 +3445,7 @@ const Pt = {
|
|
|
3444
3445
|
}), ($, y) => {
|
|
3445
3446
|
const b = E("ChatRoomOpt");
|
|
3446
3447
|
return f(), m("div", Ma, [
|
|
3447
|
-
|
|
3448
|
+
u("div", Ta, [
|
|
3448
3449
|
D($.$slots, "chatheader", {
|
|
3449
3450
|
opt: {
|
|
3450
3451
|
chatlist: i(o).rooms[i(r)],
|
|
@@ -3452,10 +3453,10 @@ const Pt = {
|
|
|
3452
3453
|
room: t.room
|
|
3453
3454
|
}
|
|
3454
3455
|
}, () => [
|
|
3455
|
-
|
|
3456
|
+
u("div", za, g(t.room?.lang?.chat || i(a).lang.sys.chat.chat), 1)
|
|
3456
3457
|
], !0)
|
|
3457
3458
|
]),
|
|
3458
|
-
|
|
3459
|
+
u("div", {
|
|
3459
3460
|
class: "as-chat-body",
|
|
3460
3461
|
ref_key: "chatContainer",
|
|
3461
3462
|
ref: d
|
|
@@ -3467,14 +3468,14 @@ const Pt = {
|
|
|
3467
3468
|
room: t.room
|
|
3468
3469
|
}
|
|
3469
3470
|
}, () => [
|
|
3470
|
-
|
|
3471
|
+
u("div", La, [
|
|
3471
3472
|
(f(!0), m(I, null, Q(i(o).rooms[i(r)], (k, O) => (f(), m("div", {
|
|
3472
3473
|
key: O,
|
|
3473
3474
|
class: J(["chat-message", { self: p.send.us === k.us }])
|
|
3474
3475
|
}, [
|
|
3475
|
-
|
|
3476
|
-
|
|
3477
|
-
|
|
3476
|
+
u("div", Ua, [
|
|
3477
|
+
u("div", Ea, g(k.us), 1),
|
|
3478
|
+
u("div", Ia, [
|
|
3478
3479
|
k.ty == 4 ? (f(), m("video", {
|
|
3479
3480
|
key: 0,
|
|
3480
3481
|
style: { "max-width": "100%" },
|
|
@@ -3494,8 +3495,8 @@ const Pt = {
|
|
|
3494
3495
|
])
|
|
3495
3496
|
], !0)
|
|
3496
3497
|
], 512),
|
|
3497
|
-
|
|
3498
|
-
|
|
3498
|
+
u("div", Fa, [
|
|
3499
|
+
u("div", Wa, [
|
|
3499
3500
|
p.optty ? (f(), m("div", Ha, [
|
|
3500
3501
|
W(b, {
|
|
3501
3502
|
ujt: t.ujt,
|
|
@@ -3511,18 +3512,18 @@ const Pt = {
|
|
|
3511
3512
|
room: t.room
|
|
3512
3513
|
}
|
|
3513
3514
|
}, () => [
|
|
3514
|
-
|
|
3515
|
-
|
|
3516
|
-
|
|
3515
|
+
u("div", qa, [
|
|
3516
|
+
u("div", Ba, [
|
|
3517
|
+
u("button", {
|
|
3517
3518
|
onClick: y[0] || (y[0] = //@ts-ignore
|
|
3518
3519
|
(...k) => p.optFn && p.optFn(...k))
|
|
3519
3520
|
}, g(t.room?.lang?.opt || i(a).lang.sys.chat.opt), 1)
|
|
3520
3521
|
]),
|
|
3521
|
-
|
|
3522
|
+
u("div", Va, [
|
|
3522
3523
|
p.send.ty < 3 ? G((f(), m("input", {
|
|
3523
3524
|
key: 0,
|
|
3524
3525
|
ref_key: "inputDom",
|
|
3525
|
-
ref:
|
|
3526
|
+
ref: c,
|
|
3526
3527
|
type: "text",
|
|
3527
3528
|
"onUpdate:modelValue": y[1] || (y[1] = (k) => p.send.msg = k),
|
|
3528
3529
|
placeholder: t.room?.lang?.placeholder || i(a).lang.sys.chat.placeholder,
|
|
@@ -3531,8 +3532,8 @@ const Pt = {
|
|
|
3531
3532
|
[ce, p.send.msg]
|
|
3532
3533
|
]) : (f(), m("div", Ya, g(p.mediaWorking ? p.send.ty == 4 ? "正在录像..." : "正在录音..." : "等待操作..."), 1))
|
|
3533
3534
|
]),
|
|
3534
|
-
|
|
3535
|
-
|
|
3535
|
+
u("div", Xa, [
|
|
3536
|
+
u("button", { onClick: h }, g(t.room?.lang?.send || i(a).lang.sys.chat.send), 1)
|
|
3536
3537
|
])
|
|
3537
3538
|
])
|
|
3538
3539
|
], !0)
|
|
@@ -3559,9 +3560,9 @@ const Pt = {
|
|
|
3559
3560
|
e.mediadata
|
|
3560
3561
|
), l = V(null);
|
|
3561
3562
|
return e.mediadata.mediaView = l, (r, d) => {
|
|
3562
|
-
const
|
|
3563
|
+
const c = ve("longpress");
|
|
3563
3564
|
return f(), m("div", Qa, [
|
|
3564
|
-
|
|
3565
|
+
u("div", Za, [
|
|
3565
3566
|
t.mediadata.mediaWorking ? (f(), m("audio", {
|
|
3566
3567
|
key: 0,
|
|
3567
3568
|
class: "as-media-working",
|
|
@@ -3583,12 +3584,12 @@ const Pt = {
|
|
|
3583
3584
|
G((f(), m("div", {
|
|
3584
3585
|
class: J(["record-button", { recording: t.mediadata.mediaWorking }])
|
|
3585
3586
|
}, [
|
|
3586
|
-
|
|
3587
|
+
u("span", ts, g(t.mediadata.mediaWorking ? "松开结束" : "长按录音"), 1),
|
|
3587
3588
|
t.mediadata.mediaWorking ? (f(), m("div", ns, [...d[0] || (d[0] = [
|
|
3588
3589
|
He('<div class="recording-indicator" data-v-18c80c90><div class="pulse" data-v-18c80c90></div><div class="pulse pulse-2" data-v-18c80c90></div><div class="pulse pulse-3" data-v-18c80c90></div></div><div class="audio-bars" data-v-18c80c90><div class="bar" data-v-18c80c90></div><div class="bar" data-v-18c80c90></div><div class="bar" data-v-18c80c90></div><div class="bar" data-v-18c80c90></div><div class="bar" data-v-18c80c90></div></div>', 2)
|
|
3589
3590
|
])])) : R("", !0)
|
|
3590
3591
|
], 2)), [
|
|
3591
|
-
[
|
|
3592
|
+
[c, {
|
|
3592
3593
|
press: i(o),
|
|
3593
3594
|
hold: i(a),
|
|
3594
3595
|
release: i(s)
|
|
@@ -3645,9 +3646,9 @@ const Pt = {
|
|
|
3645
3646
|
return e.mediadata.mediaFnView = async (r) => {
|
|
3646
3647
|
l.value.srcObject = r, await l.value.play();
|
|
3647
3648
|
}, (r, d) => {
|
|
3648
|
-
const
|
|
3649
|
+
const c = ve("longpress");
|
|
3649
3650
|
return f(), m("div", cs, [
|
|
3650
|
-
|
|
3651
|
+
u("div", us, [
|
|
3651
3652
|
t.mediadata.mediaWorking ? (f(), m("video", {
|
|
3652
3653
|
key: 0,
|
|
3653
3654
|
class: "as-media-working",
|
|
@@ -3668,12 +3669,12 @@ const Pt = {
|
|
|
3668
3669
|
G((f(), m("div", {
|
|
3669
3670
|
class: J(["record-button", { recording: t.mediadata.mediaWorking }])
|
|
3670
3671
|
}, [
|
|
3671
|
-
|
|
3672
|
+
u("span", ps, g(t.mediadata.mediaWorking ? "松开结束" : "长按录音"), 1),
|
|
3672
3673
|
t.mediadata.mediaWorking ? (f(), m("div", fs, [...d[0] || (d[0] = [
|
|
3673
3674
|
He('<div class="recording-indicator" data-v-99ad2b76><div class="pulse" data-v-99ad2b76></div><div class="pulse pulse-2" data-v-99ad2b76></div><div class="pulse pulse-3" data-v-99ad2b76></div></div><div class="audio-bars" data-v-99ad2b76><div class="bar" data-v-99ad2b76></div><div class="bar" data-v-99ad2b76></div><div class="bar" data-v-99ad2b76></div><div class="bar" data-v-99ad2b76></div><div class="bar" data-v-99ad2b76></div></div>', 2)
|
|
3674
3675
|
])])) : R("", !0)
|
|
3675
3676
|
], 2)), [
|
|
3676
|
-
[
|
|
3677
|
+
[c, {
|
|
3677
3678
|
press: i(o),
|
|
3678
3679
|
hold: i(a),
|
|
3679
3680
|
release: i(s)
|
|
@@ -3705,8 +3706,8 @@ const Pt = {
|
|
|
3705
3706
|
"./_comps/VedioRecorder.vue": gs
|
|
3706
3707
|
});
|
|
3707
3708
|
function s(d) {
|
|
3708
|
-
const
|
|
3709
|
-
return
|
|
3709
|
+
const c = d.match(/([^\\/]+)(?=\.vue$)/);
|
|
3710
|
+
return c ? c[1] : null;
|
|
3710
3711
|
}
|
|
3711
3712
|
for (let d in a)
|
|
3712
3713
|
a[s(d) || d] = a[d], delete a[d];
|
|
@@ -3716,23 +3717,23 @@ const Pt = {
|
|
|
3716
3717
|
function r(d = null) {
|
|
3717
3718
|
console.log(666.006, "setOptty", d), d ? (e.chatdata.optty = d[0], e.chatdata.optcomp = d[1]) : (e.chatdata.optty = 1, e.chatdata.optcomp = "");
|
|
3718
3719
|
}
|
|
3719
|
-
return (d,
|
|
3720
|
+
return (d, c) => (f(), m("div", vs, [
|
|
3720
3721
|
t.chatdata.optty == 1 ? (f(!0), m(I, { key: 0 }, Q(o.types, (p) => (f(), m("div", {
|
|
3721
3722
|
class: "as-chatopt-li",
|
|
3722
3723
|
onPointerdown: (h) => r(p),
|
|
3723
3724
|
key: "li" + p[0]
|
|
3724
3725
|
}, [
|
|
3725
|
-
|
|
3726
|
-
|
|
3726
|
+
u("div", bs, g(p[2]), 1),
|
|
3727
|
+
u("div", _s, g(i(n).lang.sys.chat[p[1]]), 1)
|
|
3727
3728
|
], 40, ys))), 128)) : (f(), m(I, { key: 1 }, [
|
|
3728
|
-
|
|
3729
|
-
|
|
3729
|
+
u("div", $s, [
|
|
3730
|
+
u("div", {
|
|
3730
3731
|
class: "as-chatopt-btn",
|
|
3731
|
-
onPointerdown:
|
|
3732
|
+
onPointerdown: c[0] || (c[0] = (p) => r())
|
|
3732
3733
|
}, g(i(n).lang.sys.chat.optBack), 33),
|
|
3733
|
-
|
|
3734
|
+
u("div", {
|
|
3734
3735
|
class: "as-chatopt-btn",
|
|
3735
|
-
onPointerdown:
|
|
3736
|
+
onPointerdown: c[1] || (c[1] = (p) => t.chatdata.optFn())
|
|
3736
3737
|
}, g(i(n).lang.sys.chat.optClose), 33)
|
|
3737
3738
|
]),
|
|
3738
3739
|
t.chatdata.optcomp ? (f(), Y(pe(l(t.chatdata.optcomp)), {
|
|
@@ -3765,7 +3766,7 @@ const Pt = {
|
|
|
3765
3766
|
}
|
|
3766
3767
|
return { initKeyboard: n };
|
|
3767
3768
|
}, xs = (t, e) => {
|
|
3768
|
-
const { $global: n, $fn: o, $model: a } = t, s = {}, l = (
|
|
3769
|
+
const { $global: n, $fn: o, $model: a } = t, s = {}, l = (c, p, h, v = null, _ = null) => {
|
|
3769
3770
|
if (e.keyMap.bd.Type == "Chinese" && v === "left") {
|
|
3770
3771
|
e.keyMap.bd.zhindex < 1 ? e.keyMap.bd.zhindex = 0 : e.keyMap.bd.zhindex--;
|
|
3771
3772
|
return;
|
|
@@ -3796,84 +3797,83 @@ const Pt = {
|
|
|
3796
3797
|
return;
|
|
3797
3798
|
}
|
|
3798
3799
|
}
|
|
3799
|
-
|
|
3800
|
+
c.value = p, e.keyMap.bd.pos = h, c.dispatchEvent(new Event("input", { bubbles: !0 }));
|
|
3800
3801
|
try {
|
|
3801
|
-
|
|
3802
|
+
c.focus(), c.setSelectionRange(h, h);
|
|
3802
3803
|
} catch {
|
|
3803
3804
|
n.keyboard.params?.ot?.fnnumcb?.();
|
|
3804
3805
|
}
|
|
3805
|
-
}, r = (
|
|
3806
|
-
|
|
3807
|
-
const p =
|
|
3806
|
+
}, r = (c = {}) => {
|
|
3807
|
+
c.char = c.char || (e.keyMap.bd.Shift ? c.key.toUpperCase() : c.key);
|
|
3808
|
+
const p = c.elVal.slice(0, c.startPos) + c.char + c.elVal.slice(c.endPos);
|
|
3808
3809
|
return l(
|
|
3809
|
-
|
|
3810
|
+
c.elDom,
|
|
3810
3811
|
p,
|
|
3811
|
-
|
|
3812
|
-
|
|
3813
|
-
|
|
3814
|
-
),
|
|
3812
|
+
c.startPos + c.char.length,
|
|
3813
|
+
c.char,
|
|
3814
|
+
c.onsuggest
|
|
3815
|
+
), c.elDom.focus(), p;
|
|
3815
3816
|
};
|
|
3816
|
-
s.default = (
|
|
3817
|
-
n.keyboard.params.ot.isnumber && !/[0-9.-]/.test(
|
|
3818
|
-
}, s.Backspace = (
|
|
3819
|
-
const p =
|
|
3820
|
-
l(
|
|
3821
|
-
}, s.Left = (
|
|
3817
|
+
s.default = (c = {}) => {
|
|
3818
|
+
n.keyboard.params.ot.isnumber && !/[0-9.-]/.test(c.key) || r(c);
|
|
3819
|
+
}, s.Backspace = (c = {}) => {
|
|
3820
|
+
const p = c.startPos === c.endPos ? c.startPos - 1 : c.startPos, h = c.elVal.slice(0, p) + c.elVal.slice(c.endPos);
|
|
3821
|
+
l(c.elDom, h, p, 0);
|
|
3822
|
+
}, s.Left = (c = {}) => {
|
|
3822
3823
|
l(
|
|
3823
|
-
|
|
3824
|
-
|
|
3825
|
-
|
|
3824
|
+
c.elDom,
|
|
3825
|
+
c.elVal,
|
|
3826
|
+
c.startPos - 1 > 0 ? c.startPos - 1 : 0,
|
|
3826
3827
|
"left"
|
|
3827
3828
|
);
|
|
3828
|
-
}, s.Right = (
|
|
3829
|
+
}, s.Right = (c = {}) => {
|
|
3829
3830
|
l(
|
|
3830
|
-
|
|
3831
|
-
|
|
3832
|
-
|
|
3831
|
+
c.elDom,
|
|
3832
|
+
c.elVal,
|
|
3833
|
+
c.endPos + 1 > c.elVal.length ? c.elVal.length : c.endPos + 1,
|
|
3833
3834
|
"right"
|
|
3834
3835
|
);
|
|
3835
|
-
}, s.Enter = (
|
|
3836
|
-
r({ ...
|
|
3836
|
+
}, s.Enter = (c = {}) => {
|
|
3837
|
+
r({ ...c, char: `
|
|
3837
3838
|
` });
|
|
3838
|
-
}, s.Shift = (
|
|
3839
|
+
}, s.Shift = (c = {}) => {
|
|
3839
3840
|
e.keyMap.bd.Shift = !e.keyMap.bd.Shift;
|
|
3840
|
-
}, s.Ctrl = (
|
|
3841
|
+
}, s.Ctrl = (c = {}) => {
|
|
3841
3842
|
e.keyMap.bd.Ctrl = !e.keyMap.bd.Ctrl;
|
|
3842
|
-
}, s.Hide = (
|
|
3843
|
+
}, s.Hide = (c = {}) => {
|
|
3843
3844
|
n.keyboard.params?.ot?.fndscb(), n.keyboard.showkeyboard = "", n.keyboard.params = null;
|
|
3844
|
-
}, s.Drag = (
|
|
3845
|
-
}, s.Space = (
|
|
3846
|
-
e.keyMap.bd.Ctrl ? (n.keyboard.areastyle = {}, e.keyMap.bd.Shift = !1, e.keyMap.bd.Ctrl = !1) : r({ ...
|
|
3847
|
-
}, s.
|
|
3848
|
-
|
|
3849
|
-
|
|
3850
|
-
|
|
3851
|
-
|
|
3852
|
-
return;
|
|
3853
|
-
}
|
|
3854
|
-
await o.As.copyToClipboard(
|
|
3855
|
-
u.elVal.slice(u.startPos, u.endPos)
|
|
3856
|
-
);
|
|
3857
|
-
} catch (p) {
|
|
3858
|
-
console.error("copy fail: ", p);
|
|
3845
|
+
}, s.Drag = (c = {}) => {
|
|
3846
|
+
}, s.Space = (c = {}) => {
|
|
3847
|
+
e.keyMap.bd.Ctrl ? (n.keyboard.areastyle = {}, e.keyMap.bd.Shift = !1, e.keyMap.bd.Ctrl = !1) : r({ ...c, char: " " });
|
|
3848
|
+
}, s.Cut = async (c = {}) => {
|
|
3849
|
+
try {
|
|
3850
|
+
if (n.keyboard.params.type === "monaco" && n.keyboard.opt?.copyText && n.keyboard.opt?.backText) {
|
|
3851
|
+
n.keyboard.opt?.copyText(), n.keyboard.opt?.backText();
|
|
3852
|
+
return;
|
|
3859
3853
|
}
|
|
3860
|
-
|
|
3861
|
-
|
|
3862
|
-
|
|
3854
|
+
await o.As.copyToClipboard(
|
|
3855
|
+
c.elVal.slice(c.startPos, c.endPos)
|
|
3856
|
+
), await s.Backspace(c);
|
|
3857
|
+
} catch (p) {
|
|
3858
|
+
console.error("copy fail: ", p);
|
|
3859
|
+
}
|
|
3860
|
+
}, s.x = async (c = {}) => {
|
|
3861
|
+
e.keyMap.bd.Ctrl ? await s.Cut(c) : r(c);
|
|
3862
|
+
}, s.Copy = async (c = {}) => {
|
|
3863
3863
|
try {
|
|
3864
3864
|
if (n.keyboard.params.type === "monaco" && n.keyboard.opt?.copyText) {
|
|
3865
3865
|
n.keyboard.opt?.copyText();
|
|
3866
3866
|
return;
|
|
3867
3867
|
}
|
|
3868
3868
|
await o.As.copyToClipboard(
|
|
3869
|
-
|
|
3869
|
+
c.elVal.slice(c.startPos, c.endPos)
|
|
3870
3870
|
);
|
|
3871
3871
|
} catch (p) {
|
|
3872
3872
|
console.error("copy fail: ", p);
|
|
3873
3873
|
}
|
|
3874
|
-
}, s.c = async (
|
|
3875
|
-
e.keyMap.bd.Ctrl ? await s.Copy(
|
|
3876
|
-
}, s.Paste = async (
|
|
3874
|
+
}, s.c = async (c = {}) => {
|
|
3875
|
+
e.keyMap.bd.Ctrl ? await s.Copy(c) : r(c);
|
|
3876
|
+
}, s.Paste = async (c = {}) => {
|
|
3877
3877
|
try {
|
|
3878
3878
|
if (n.keyboard.params.type === "monaco" && n.keyboard.opt?.pasteText) {
|
|
3879
3879
|
n.keyboard.opt?.pasteText();
|
|
@@ -3881,31 +3881,31 @@ const Pt = {
|
|
|
3881
3881
|
}
|
|
3882
3882
|
const p = await o.As.readFromClipboard();
|
|
3883
3883
|
r({
|
|
3884
|
-
...
|
|
3884
|
+
...c,
|
|
3885
3885
|
char: p
|
|
3886
3886
|
});
|
|
3887
3887
|
} catch (p) {
|
|
3888
3888
|
console.error("paste fail: ", p);
|
|
3889
3889
|
}
|
|
3890
|
-
}, s.v = async (
|
|
3891
|
-
e.keyMap.bd.Ctrl ? await s.Paste(
|
|
3892
|
-
}, s["▲"] = async (
|
|
3893
|
-
const h =
|
|
3894
|
-
h ?
|
|
3895
|
-
}, s["▼"] = async (
|
|
3896
|
-
const h =
|
|
3897
|
-
h ?
|
|
3890
|
+
}, s.v = async (c = {}) => {
|
|
3891
|
+
e.keyMap.bd.Ctrl ? await s.Paste(c) : r(c);
|
|
3892
|
+
}, s["▲"] = async (c = {}) => {
|
|
3893
|
+
const h = c.elVal.split(".")[1]?.length || 0;
|
|
3894
|
+
h ? c.elVal = (+c.elVal + 1 / Math.pow(10, h)).toFixed(h) : c.elVal++, l(c.elDom, c.elVal, c.startPos, 0);
|
|
3895
|
+
}, s["▼"] = async (c = {}) => {
|
|
3896
|
+
const h = c.elVal.split(".")[1]?.length || 0;
|
|
3897
|
+
h ? c.elVal = (+c.elVal - 1 / Math.pow(10, h)).toFixed(h) : c.elVal--, l(c.elDom, c.elVal, c.startPos, 0);
|
|
3898
3898
|
};
|
|
3899
|
-
function d(
|
|
3900
|
-
n.pop["popkeyboard" +
|
|
3899
|
+
function d(c = {}) {
|
|
3900
|
+
n.pop["popkeyboard" + c.key].stat = 1;
|
|
3901
3901
|
}
|
|
3902
|
-
return e.keyMap.popkeys.forEach((
|
|
3903
|
-
|
|
3904
|
-
d(p), n.pop["popkeyboard" +
|
|
3905
|
-
s.default({ ...p, key: h }), n.pop["popkeyboard" +
|
|
3902
|
+
return e.keyMap.popkeys.forEach((c) => {
|
|
3903
|
+
c.startsWith("pop") ? s[c] = (p = {}) => {
|
|
3904
|
+
d(p), n.pop["popkeyboard" + c].fn = (h) => {
|
|
3905
|
+
s.default({ ...p, key: h }), n.pop["popkeyboard" + c].stat = 0;
|
|
3906
3906
|
};
|
|
3907
|
-
} : s[
|
|
3908
|
-
n.pop["popkeyboard" +
|
|
3907
|
+
} : s[c] = (p = {}) => {
|
|
3908
|
+
n.pop["popkeyboard" + c] = {
|
|
3909
3909
|
fn: (h) => {
|
|
3910
3910
|
s.default({ ...p, key: h });
|
|
3911
3911
|
}
|
|
@@ -3925,25 +3925,25 @@ const Pt = {
|
|
|
3925
3925
|
key: 1,
|
|
3926
3926
|
class: "keyboard-zh"
|
|
3927
3927
|
}, Fs = { class: "zh-desc" }, Ws = ["data-key"], Hs = {
|
|
3928
|
-
key:
|
|
3928
|
+
key: 2,
|
|
3929
3929
|
class: "keyboard-key key-bg"
|
|
3930
3930
|
}, qs = ["data-key"], Bs = { key: 1 }, Vs = ["data-key"], Ns = /* @__PURE__ */ A({
|
|
3931
3931
|
__name: "AsKeyBoard",
|
|
3932
3932
|
props: {
|
|
3933
3933
|
ujt: {},
|
|
3934
|
-
|
|
3934
|
+
opt: {}
|
|
3935
3935
|
},
|
|
3936
3936
|
setup(t) {
|
|
3937
3937
|
je((y) => ({
|
|
3938
|
-
|
|
3939
|
-
|
|
3940
|
-
|
|
3941
|
-
|
|
3942
|
-
|
|
3943
|
-
|
|
3944
|
-
|
|
3945
|
-
|
|
3946
|
-
|
|
3938
|
+
v2f8056c3: s.cfg.theme.bg1,
|
|
3939
|
+
v2f80676e: s.cfg.theme.fsd,
|
|
3940
|
+
b29ce1a4: s.cfg.theme.bg,
|
|
3941
|
+
b29ce056: s.cfg.theme.gs,
|
|
3942
|
+
b29ce072: s.cfg.theme.ge,
|
|
3943
|
+
v2f8056c4: s.cfg.theme.bg2,
|
|
3944
|
+
v2f805706: s.cfg.theme.bgt,
|
|
3945
|
+
v2f8056c5: s.cfg.theme.bg3,
|
|
3946
|
+
b29ce094: s.cfg.theme.fs
|
|
3947
3947
|
}));
|
|
3948
3948
|
const e = t, { $model: n, $global: o } = e.ujt, { initKeyboard: a } = Ss(e.ujt), s = me({ ...a() }), { keysFun: l } = xs(e.ujt, { keyMap: s });
|
|
3949
3949
|
Oe(
|
|
@@ -3956,12 +3956,12 @@ const Pt = {
|
|
|
3956
3956
|
function d(y) {
|
|
3957
3957
|
return y?.default ? y.default : ke(y);
|
|
3958
3958
|
}
|
|
3959
|
-
const
|
|
3959
|
+
const c = () => {
|
|
3960
3960
|
o.keyboard.params?.el && (s.bd.pos = o.keyboard.params.el.selectionStart || 0);
|
|
3961
3961
|
}, p = () => {
|
|
3962
3962
|
ge(() => {
|
|
3963
3963
|
setTimeout(() => {
|
|
3964
|
-
|
|
3964
|
+
c(), s.bd.Type = r?.value?.[0];
|
|
3965
3965
|
}, 10);
|
|
3966
3966
|
});
|
|
3967
3967
|
}, h = async (y) => {
|
|
@@ -4014,18 +4014,18 @@ const Pt = {
|
|
|
4014
4014
|
onPointerup: $,
|
|
4015
4015
|
onPointercancel: $
|
|
4016
4016
|
}, [
|
|
4017
|
-
|
|
4017
|
+
u("div", Ps, [
|
|
4018
4018
|
G((f(), m("div", Cs, [
|
|
4019
|
-
|
|
4019
|
+
u("div", Os, [
|
|
4020
4020
|
(f(!0), m(I, null, Q(r.value, (S) => (f(), m("div", {
|
|
4021
4021
|
class: J(s.bd.Type == S ? "active" : ""),
|
|
4022
4022
|
key: S,
|
|
4023
4023
|
onPointerdown: q((L) => s.bd.Type = S, ["stop"])
|
|
4024
4024
|
}, g(i(o).lang.sys?.keyboard?.menu?.[S] || S), 43, As))), 128))
|
|
4025
4025
|
]),
|
|
4026
|
-
|
|
4027
|
-
|
|
4028
|
-
|
|
4026
|
+
u("div", Ms, [
|
|
4027
|
+
u("div", null, g(i(o).lang.sys?.keyboard?.Drag || "Drag"), 1),
|
|
4028
|
+
u("div", {
|
|
4029
4029
|
onPointerdown: b[0] || (b[0] = q(
|
|
4030
4030
|
//@ts-ignore
|
|
4031
4031
|
(...S) => i(l).Hide && i(l).Hide(...S),
|
|
@@ -4039,7 +4039,7 @@ const Pt = {
|
|
|
4039
4039
|
pos: i(o).keyboard.areastyle,
|
|
4040
4040
|
domarea: "askeyboardarea",
|
|
4041
4041
|
dommask: "askeyboardmask",
|
|
4042
|
-
scale: t.scale
|
|
4042
|
+
scale: t.opt?.scale
|
|
4043
4043
|
}]
|
|
4044
4044
|
]),
|
|
4045
4045
|
i(o).keyboard.comps?.[s.bd.Type] ? (f(), m("div", {
|
|
@@ -4058,9 +4058,9 @@ const Pt = {
|
|
|
4058
4058
|
}, [
|
|
4059
4059
|
s.bd.Type === "Chinese" && L === 0 ? (f(), m(I, { key: 0 }, [
|
|
4060
4060
|
s.bd.zhs ? (f(), m("div", zs, [
|
|
4061
|
-
|
|
4061
|
+
u("div", Ls, g(s.bd.zhs), 1),
|
|
4062
4062
|
s.bd?.zharr?.length ? (f(), m("div", Us, [
|
|
4063
|
-
|
|
4063
|
+
u("div", Es, [
|
|
4064
4064
|
(f(!0), m(I, null, Q(s.bd.zharr, (w, j) => (f(), m("div", {
|
|
4065
4065
|
key: "zh" + j,
|
|
4066
4066
|
class: J(`askey zh-li${s.bd.zhindex == j ? " zh-cur" : ""}`),
|
|
@@ -4072,18 +4072,18 @@ const Pt = {
|
|
|
4072
4072
|
class: "zh-list-area",
|
|
4073
4073
|
onPointerdown: b[2] || (b[2] = q((w) => s.bd.zhs = "", ["stop"]))
|
|
4074
4074
|
}, [
|
|
4075
|
-
|
|
4075
|
+
u("div", Ds, g(i(o).lang.sys?.keyboard?.pynomatch), 1)
|
|
4076
4076
|
], 32))
|
|
4077
4077
|
])) : (f(), m("div", Rs, [
|
|
4078
|
-
|
|
4078
|
+
u("div", Fs, g(i(o).lang.sys?.keyboard?.pyclick), 1)
|
|
4079
4079
|
]))
|
|
4080
|
-
], 64)) : (f(!0), m(I, { key: 1 }, Q(S, (w) => (f(), m("div", {
|
|
4080
|
+
], 64)) : (f(!0), m(I, { key: 1 }, Q(S, (w, j) => (f(), m("div", {
|
|
4081
4081
|
class: "keyboard-item",
|
|
4082
|
-
key:
|
|
4082
|
+
key: "k" + j,
|
|
4083
4083
|
style: Z({ width: `${w[1]}%` })
|
|
4084
4084
|
}, [
|
|
4085
|
-
w[3] ? (f(), m("button", {
|
|
4086
|
-
key:
|
|
4085
|
+
w[2] == 2 ? (f(), m(I, { key: 0 }, [], 64)) : w[3] ? (f(), m("button", {
|
|
4086
|
+
key: 1,
|
|
4087
4087
|
class: J(`askey keyboard-key${w[2] ? " key-bg" : ""}${s.bd[w[3]] ? " active" : ""}`),
|
|
4088
4088
|
"data-key": w[0]
|
|
4089
4089
|
}, g(i(o).lang.sys?.keyboard?.[w[0]] || w[0]), 11, Ws)) : w[0] === "Drag" ? G((f(), m("button", Hs, [
|
|
@@ -4094,15 +4094,15 @@ const Pt = {
|
|
|
4094
4094
|
pos: i(o).keyboard.areastyle,
|
|
4095
4095
|
domarea: "askeyboardarea",
|
|
4096
4096
|
dommask: "askeyboardmask",
|
|
4097
|
-
scale: t.scale
|
|
4097
|
+
scale: t.opt?.scale
|
|
4098
4098
|
}]
|
|
4099
4099
|
]) : s.popkeys.includes(w[0]) ? (f(), Y(k, {
|
|
4100
|
-
key:
|
|
4100
|
+
key: 3,
|
|
4101
4101
|
ujt: t.ujt,
|
|
4102
4102
|
id: "popkeyboard" + w[0]
|
|
4103
4103
|
}, {
|
|
4104
4104
|
desarea: le(() => [
|
|
4105
|
-
|
|
4105
|
+
u("button", {
|
|
4106
4106
|
class: J(`askey keyboard-key${w[2] ? " key-bg" : ""}`),
|
|
4107
4107
|
"data-key": w[0]
|
|
4108
4108
|
}, g(i(o).lang.sys?.keyboard?.[w[0]] || (s.bd.Shift ? w[0].toUpperCase() : w[0])), 11, qs)
|
|
@@ -4128,7 +4128,7 @@ const Pt = {
|
|
|
4128
4128
|
]),
|
|
4129
4129
|
_: 2
|
|
4130
4130
|
}, 1032, ["ujt", "id"])) : (f(), m("button", {
|
|
4131
|
-
key:
|
|
4131
|
+
key: 4,
|
|
4132
4132
|
class: J(`askey keyboard-key${w[2] ? " key-bg" : ""}`),
|
|
4133
4133
|
"data-key": w[0]
|
|
4134
4134
|
}, g(i(o).lang.sys?.keyboard?.[w[0]] || (s.bd.Shift ? w[0].toUpperCase() : w[0])), 11, Vs))
|
|
@@ -4139,62 +4139,63 @@ const Pt = {
|
|
|
4139
4139
|
], 32);
|
|
4140
4140
|
};
|
|
4141
4141
|
}
|
|
4142
|
-
}), Ys = /* @__PURE__ */ N(Ns, [["__scopeId", "data-v-
|
|
4142
|
+
}), Ys = /* @__PURE__ */ N(Ns, [["__scopeId", "data-v-3cd86883"]]), Xs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4143
4143
|
__proto__: null,
|
|
4144
4144
|
default: Ys
|
|
4145
4145
|
}, Symbol.toStringTag, { value: "Module" })), Ks = /* @__PURE__ */ A({
|
|
4146
4146
|
__name: "AsKeyBoardVue",
|
|
4147
4147
|
props: {
|
|
4148
4148
|
ujt: {},
|
|
4149
|
-
|
|
4149
|
+
opt: {}
|
|
4150
4150
|
},
|
|
4151
4151
|
setup(t) {
|
|
4152
|
-
const e = t, { $global: n, $model: o } = e.ujt, a = X(() => {
|
|
4153
|
-
|
|
4154
|
-
|
|
4155
|
-
|
|
4156
|
-
|
|
4157
|
-
|
|
4158
|
-
|
|
4159
|
-
|
|
4160
|
-
|
|
4161
|
-
|
|
4162
|
-
}), s = X(() => {
|
|
4152
|
+
const e = t, { $global: n, $model: o } = e.ujt, a = X(() => e.opt?.pos?.auto ? {
|
|
4153
|
+
width: n.wd?.w,
|
|
4154
|
+
height: n.wd?.h
|
|
4155
|
+
} : {
|
|
4156
|
+
width: o.data.sys.keyboard.cfg?.size?.mw,
|
|
4157
|
+
height: o.data.sys.keyboard.cfg?.size?.mh
|
|
4158
|
+
}), s = X(() => n.keyboard.params?.ot?.style?.area ? n.keyboard.params.ot.style.area : {
|
|
4159
|
+
width: a.value.width + "px",
|
|
4160
|
+
height: a.value.height + "px"
|
|
4161
|
+
}), l = X(() => {
|
|
4163
4162
|
if (n.keyboard.params?.ot?.style?.main)
|
|
4164
4163
|
return n.keyboard.params.ot.style.main;
|
|
4165
4164
|
{
|
|
4166
|
-
const
|
|
4167
|
-
maxWidth:
|
|
4168
|
-
maxHeight:
|
|
4165
|
+
const r = {
|
|
4166
|
+
maxWidth: a.value.width,
|
|
4167
|
+
maxHeight: a.value.height
|
|
4169
4168
|
};
|
|
4170
|
-
return n.keyboard.areastyle?.w == null && (n.keyboard.areastyle.w = o.data.sys.keyboard.cfg
|
|
4169
|
+
return n.keyboard.areastyle?.w == null && (n.keyboard.areastyle.w = o.data.sys.keyboard.cfg?.size?.w), n.keyboard.areastyle?.h == null && (n.keyboard.areastyle.h = o.data.sys.keyboard.cfg?.size?.h), n.keyboard.areastyle?.x == null && (!e.opt?.pos?.auto || a.value.width) && (n.keyboard.areastyle.x = (r.maxWidth - n.keyboard.areastyle.w) / 2 + e.opt?.pos?.x), n.keyboard.areastyle?.y == null && (!e.opt?.pos?.auto || a.value.height) && (n.keyboard.areastyle.y = r.maxHeight - n.keyboard.areastyle.h + e.opt?.pos?.y), r.maxWidth += "px", r.maxHeight += "px", r.transform = `translate(${n.keyboard.areastyle.x}px, ${n.keyboard.areastyle.y}px)`, r.width = n.keyboard.areastyle.w + "px", r.height = n.keyboard.areastyle.h + "px", r;
|
|
4171
4170
|
}
|
|
4172
4171
|
});
|
|
4173
|
-
return (
|
|
4174
|
-
|
|
4172
|
+
return he(() => {
|
|
4173
|
+
e.opt?.pos?.auto && (n.wd.w = document?.documentElement?.clientWidth || document?.body?.clientWidth, n.wd.h = document?.documentElement?.clientHeight || document?.body?.clientHeight);
|
|
4174
|
+
}), (r, d) => {
|
|
4175
|
+
const c = E("AsKeyBoard"), p = ve("popresizezoom");
|
|
4175
4176
|
return f(), m("div", {
|
|
4176
|
-
style: Z(
|
|
4177
|
+
style: Z(s.value),
|
|
4177
4178
|
id: "askeyboardmask"
|
|
4178
4179
|
}, [
|
|
4179
4180
|
G((f(), m("div", {
|
|
4180
4181
|
id: "askeyboardarea",
|
|
4181
|
-
style: Z(
|
|
4182
|
+
style: Z(l.value)
|
|
4182
4183
|
}, [
|
|
4183
|
-
W(
|
|
4184
|
+
W(c, {
|
|
4184
4185
|
ujt: t.ujt,
|
|
4185
|
-
|
|
4186
|
-
}, null, 8, ["ujt", "
|
|
4186
|
+
opt: t.opt
|
|
4187
|
+
}, null, 8, ["ujt", "opt"])
|
|
4187
4188
|
], 4)), [
|
|
4188
|
-
[
|
|
4189
|
+
[p, {
|
|
4189
4190
|
ujt: t.ujt,
|
|
4190
4191
|
size: i(n).keyboard.areastyle,
|
|
4191
|
-
scale: t.scale
|
|
4192
|
+
scale: t.opt?.scale
|
|
4192
4193
|
}]
|
|
4193
4194
|
])
|
|
4194
4195
|
], 4);
|
|
4195
4196
|
};
|
|
4196
4197
|
}
|
|
4197
|
-
}), Js = /* @__PURE__ */ N(Ks, [["__scopeId", "data-v-
|
|
4198
|
+
}), Js = /* @__PURE__ */ N(Ks, [["__scopeId", "data-v-edc5ecd7"]]), Gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4198
4199
|
__proto__: null,
|
|
4199
4200
|
default: Js
|
|
4200
4201
|
}, Symbol.toStringTag, { value: "Module" })), Qs = {
|
|
@@ -4222,26 +4223,26 @@ const Pt = {
|
|
|
4222
4223
|
o.saveLink(s.link);
|
|
4223
4224
|
}
|
|
4224
4225
|
function d() {
|
|
4225
|
-
o.startLink().then((
|
|
4226
|
+
o.startLink().then((c) => {
|
|
4226
4227
|
l();
|
|
4227
4228
|
});
|
|
4228
4229
|
}
|
|
4229
4230
|
return he(() => {
|
|
4230
4231
|
l();
|
|
4231
|
-
}), (
|
|
4232
|
-
|
|
4232
|
+
}), (c, p) => s.link ? (f(), m("div", Qs, [
|
|
4233
|
+
u("div", Zs, [
|
|
4233
4234
|
(f(!0), m(I, null, Q(s.link, (h, v) => (f(), m("div", {
|
|
4234
4235
|
class: "as-link-type",
|
|
4235
4236
|
key: "type" + v
|
|
4236
4237
|
}, [
|
|
4237
|
-
|
|
4238
|
+
u("div", el, g(i(n).lang.sys.link.class[v]), 1),
|
|
4238
4239
|
(f(!0), m(I, null, Q(h, (_, $) => (f(), m(I, {
|
|
4239
4240
|
key: "key" + $
|
|
4240
4241
|
}, [
|
|
4241
4242
|
_?.close ? R("", !0) : (f(), m("div", tl, [
|
|
4242
|
-
|
|
4243
|
-
|
|
4244
|
-
G(
|
|
4243
|
+
u("div", nl, g(i(n).lang.sys.link[$]) + ": ", 1),
|
|
4244
|
+
u("div", ol, [
|
|
4245
|
+
G(u("input", {
|
|
4245
4246
|
type: "text",
|
|
4246
4247
|
"onUpdate:modelValue": (y) => _.url = y
|
|
4247
4248
|
}, null, 8, al), [
|
|
@@ -4253,16 +4254,16 @@ const Pt = {
|
|
|
4253
4254
|
], 64))), 128))
|
|
4254
4255
|
]))), 128))
|
|
4255
4256
|
]),
|
|
4256
|
-
|
|
4257
|
-
|
|
4257
|
+
u("div", ll, [
|
|
4258
|
+
u("div", {
|
|
4258
4259
|
class: "btn",
|
|
4259
4260
|
onPointerdown: p[0] || (p[0] = (h) => r())
|
|
4260
4261
|
}, "确认修改", 32),
|
|
4261
|
-
|
|
4262
|
+
u("div", {
|
|
4262
4263
|
class: "btn",
|
|
4263
4264
|
onPointerdown: p[1] || (p[1] = (h) => d())
|
|
4264
4265
|
}, "恢复默认", 32),
|
|
4265
|
-
|
|
4266
|
+
u("div", {
|
|
4266
4267
|
class: "btn",
|
|
4267
4268
|
onPointerdown: p[2] || (p[2] = (h) => l())
|
|
4268
4269
|
}, "取消修改", 32)
|
|
@@ -4296,7 +4297,7 @@ const Pt = {
|
|
|
4296
4297
|
wait: 300,
|
|
4297
4298
|
immediate: !1
|
|
4298
4299
|
}
|
|
4299
|
-
}), l = V(!1), r = V(!1), d = V(!1),
|
|
4300
|
+
}), l = V(!1), r = V(!1), d = V(!1), c = V(""), p = V(16), h = V([]), v = X(() => {
|
|
4300
4301
|
let B = {};
|
|
4301
4302
|
return B = $.value?.find(
|
|
4302
4303
|
(ne) => ne.sn === n.location.query?.id
|
|
@@ -4306,9 +4307,9 @@ const Pt = {
|
|
|
4306
4307
|
)), b = X(() => y.value > 0), k = X(() => y.value < $.value.length - 1), O = () => {
|
|
4307
4308
|
l.value = !l.value;
|
|
4308
4309
|
}, S = () => {
|
|
4309
|
-
r.value = !r.value, r.value || (
|
|
4310
|
+
r.value = !r.value, r.value || (c.value = "", _.value = []);
|
|
4310
4311
|
}, L = () => {
|
|
4311
|
-
r.value = !1,
|
|
4312
|
+
r.value = !1, c.value = "", _.value = [];
|
|
4312
4313
|
}, w = (B) => {
|
|
4313
4314
|
const ne = h.value.indexOf(B);
|
|
4314
4315
|
ne > -1 ? h.value.splice(ne, 1) : h.value.push(B);
|
|
@@ -4328,7 +4329,7 @@ const Pt = {
|
|
|
4328
4329
|
p.value > 12 && (p.value -= 1);
|
|
4329
4330
|
}, P = () => {
|
|
4330
4331
|
o.As.debounce(() => {
|
|
4331
|
-
const B =
|
|
4332
|
+
const B = c.value.trim();
|
|
4332
4333
|
if (!B) {
|
|
4333
4334
|
_.value = [];
|
|
4334
4335
|
return;
|
|
@@ -4347,7 +4348,7 @@ const Pt = {
|
|
|
4347
4348
|
}, U = (B) => {
|
|
4348
4349
|
B?.sn && (o.setquery({
|
|
4349
4350
|
id: B.sn
|
|
4350
|
-
}), r.value = !1,
|
|
4351
|
+
}), r.value = !1, c.value = "", _.value = []);
|
|
4351
4352
|
}, H = () => {
|
|
4352
4353
|
d.value = window.innerWidth <= 768;
|
|
4353
4354
|
};
|
|
@@ -4356,20 +4357,20 @@ const Pt = {
|
|
|
4356
4357
|
}), we(() => {
|
|
4357
4358
|
window.removeEventListener("resize", H);
|
|
4358
4359
|
}), (B, ne) => (f(), m("div", ul, [
|
|
4359
|
-
|
|
4360
|
-
|
|
4361
|
-
|
|
4360
|
+
u("header", dl, [
|
|
4361
|
+
u("div", pl, [
|
|
4362
|
+
u("button", {
|
|
4362
4363
|
class: "menu-toggle",
|
|
4363
4364
|
onClick: O
|
|
4364
4365
|
}, [...ne[1] || (ne[1] = [
|
|
4365
|
-
|
|
4366
|
+
u("span", { class: "hamburger-icon" }, null, -1)
|
|
4366
4367
|
])]),
|
|
4367
|
-
|
|
4368
|
-
|
|
4368
|
+
u("h1", fl, g(i(a)[0].ch), 1),
|
|
4369
|
+
u("button", {
|
|
4369
4370
|
class: "search-toggle",
|
|
4370
4371
|
onClick: S
|
|
4371
4372
|
}, [...ne[2] || (ne[2] = [
|
|
4372
|
-
|
|
4373
|
+
u("svg", {
|
|
4373
4374
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4374
4375
|
width: "24",
|
|
4375
4376
|
height: "24",
|
|
@@ -4380,12 +4381,12 @@ const Pt = {
|
|
|
4380
4381
|
"stroke-linecap": "round",
|
|
4381
4382
|
"stroke-linejoin": "round"
|
|
4382
4383
|
}, [
|
|
4383
|
-
|
|
4384
|
+
u("circle", {
|
|
4384
4385
|
cx: "11",
|
|
4385
4386
|
cy: "11",
|
|
4386
4387
|
r: "8"
|
|
4387
4388
|
}),
|
|
4388
|
-
|
|
4389
|
+
u("line", {
|
|
4389
4390
|
x1: "21",
|
|
4390
4391
|
y1: "21",
|
|
4391
4392
|
x2: "16.65",
|
|
@@ -4395,21 +4396,21 @@ const Pt = {
|
|
|
4395
4396
|
])])
|
|
4396
4397
|
])
|
|
4397
4398
|
]),
|
|
4398
|
-
|
|
4399
|
+
u("div", {
|
|
4399
4400
|
class: J(["search-panel", { active: r.value }])
|
|
4400
4401
|
}, [
|
|
4401
|
-
|
|
4402
|
-
|
|
4403
|
-
G(
|
|
4402
|
+
u("div", ml, [
|
|
4403
|
+
u("div", hl, [
|
|
4404
|
+
G(u("input", {
|
|
4404
4405
|
type: "text",
|
|
4405
|
-
"onUpdate:modelValue": ne[0] || (ne[0] = (te) =>
|
|
4406
|
+
"onUpdate:modelValue": ne[0] || (ne[0] = (te) => c.value = te),
|
|
4406
4407
|
placeholder: "搜索小说内容...",
|
|
4407
4408
|
class: "search-input",
|
|
4408
4409
|
onInput: P
|
|
4409
4410
|
}, null, 544), [
|
|
4410
|
-
[ce,
|
|
4411
|
+
[ce, c.value]
|
|
4411
4412
|
]),
|
|
4412
|
-
|
|
4413
|
+
u("button", {
|
|
4413
4414
|
class: "close-search",
|
|
4414
4415
|
onClick: L
|
|
4415
4416
|
}, "×")
|
|
@@ -4420,31 +4421,31 @@ const Pt = {
|
|
|
4420
4421
|
class: "search-result-item",
|
|
4421
4422
|
onClick: (Ae) => U(te)
|
|
4422
4423
|
}, [
|
|
4423
|
-
|
|
4424
|
-
|
|
4424
|
+
u("div", yl, g(te.li), 1),
|
|
4425
|
+
u("div", {
|
|
4425
4426
|
class: "result-preview",
|
|
4426
4427
|
innerHTML: te.preview
|
|
4427
4428
|
}, null, 8, bl)
|
|
4428
4429
|
], 8, vl))), 128))
|
|
4429
|
-
])) :
|
|
4430
|
+
])) : c.value && _.value.length === 0 ? (f(), m("div", _l, " 未找到相关内容 ")) : R("", !0)
|
|
4430
4431
|
])
|
|
4431
4432
|
], 2),
|
|
4432
|
-
|
|
4433
|
-
|
|
4433
|
+
u("div", $l, [
|
|
4434
|
+
u("aside", {
|
|
4434
4435
|
class: J(["sidebar", { active: l.value }])
|
|
4435
4436
|
}, [
|
|
4436
|
-
|
|
4437
|
-
|
|
4437
|
+
u("div", kl, [
|
|
4438
|
+
u("h2", wl, g(i(a)[0].ch), 1),
|
|
4438
4439
|
(f(!0), m(I, null, Q(i(a)[0].cc, (te) => (f(), m("div", {
|
|
4439
4440
|
key: te.sn,
|
|
4440
4441
|
class: "volume-item"
|
|
4441
4442
|
}, [
|
|
4442
|
-
|
|
4443
|
+
u("div", {
|
|
4443
4444
|
class: "volume-header",
|
|
4444
4445
|
onClick: (ue) => w(te.sn)
|
|
4445
4446
|
}, [
|
|
4446
|
-
|
|
4447
|
-
|
|
4447
|
+
u("h3", Sl, g(te.cl), 1),
|
|
4448
|
+
u("span", {
|
|
4448
4449
|
class: J(["toggle-icon", {
|
|
4449
4450
|
expanded: h.value.includes(
|
|
4450
4451
|
te.sn
|
|
@@ -4452,7 +4453,7 @@ const Pt = {
|
|
|
4452
4453
|
}])
|
|
4453
4454
|
}, " ▼ ", 2)
|
|
4454
4455
|
], 8, jl),
|
|
4455
|
-
G(
|
|
4456
|
+
G(u("ul", xl, [
|
|
4456
4457
|
(f(!0), m(I, null, Q(te.cc, (ue) => (f(), m("li", {
|
|
4457
4458
|
key: ue.sn,
|
|
4458
4459
|
class: J(["chapter-item", {
|
|
@@ -4466,41 +4467,41 @@ const Pt = {
|
|
|
4466
4467
|
]))), 128))
|
|
4467
4468
|
])
|
|
4468
4469
|
], 2),
|
|
4469
|
-
|
|
4470
|
-
|
|
4471
|
-
|
|
4472
|
-
|
|
4473
|
-
|
|
4474
|
-
|
|
4470
|
+
u("main", Cl, [
|
|
4471
|
+
u("div", Ol, [
|
|
4472
|
+
u("div", Al, [
|
|
4473
|
+
u("h2", Ml, g(v.value.li), 1),
|
|
4474
|
+
u("div", Tl, [
|
|
4475
|
+
u("span", null, " 第" + g(y.value + 1) + "章 ", 1),
|
|
4475
4476
|
(f(!0), m(I, null, Q(Object.keys(v.value), (te) => (f(), m(I, null, [
|
|
4476
4477
|
v.value[te] && !["co", "li", "sn", "ty"].includes(te) ? (f(), m("span", zl, g(v.value[te]), 1)) : R("", !0)
|
|
4477
4478
|
], 64))), 256))
|
|
4478
4479
|
])
|
|
4479
4480
|
]),
|
|
4480
|
-
|
|
4481
|
+
u("div", {
|
|
4481
4482
|
class: "chapter-content",
|
|
4482
4483
|
style: Z({ fontSize: p.value + "px" })
|
|
4483
4484
|
}, g(v.value.co), 5),
|
|
4484
|
-
|
|
4485
|
-
|
|
4485
|
+
u("div", Ll, [
|
|
4486
|
+
u("button", {
|
|
4486
4487
|
class: "control-btn prev-next-btn",
|
|
4487
4488
|
onClick: x,
|
|
4488
4489
|
disabled: !b.value
|
|
4489
4490
|
}, " 上一章 ", 8, Ul),
|
|
4490
|
-
|
|
4491
|
-
|
|
4491
|
+
u("div", El, [
|
|
4492
|
+
u("button", {
|
|
4492
4493
|
class: "font-btn",
|
|
4493
4494
|
onClick: z,
|
|
4494
4495
|
disabled: p.value <= 12
|
|
4495
4496
|
}, " A- ", 8, Il),
|
|
4496
|
-
|
|
4497
|
-
|
|
4497
|
+
u("span", Dl, g(p.value) + "px", 1),
|
|
4498
|
+
u("button", {
|
|
4498
4499
|
class: "font-btn",
|
|
4499
4500
|
onClick: M,
|
|
4500
4501
|
disabled: p.value >= 24
|
|
4501
4502
|
}, " A+ ", 8, Rl)
|
|
4502
4503
|
]),
|
|
4503
|
-
|
|
4504
|
+
u("button", {
|
|
4504
4505
|
class: "control-btn prev-next-btn",
|
|
4505
4506
|
onClick: C,
|
|
4506
4507
|
disabled: !k.value
|
|
@@ -4510,11 +4511,11 @@ const Pt = {
|
|
|
4510
4511
|
])
|
|
4511
4512
|
]),
|
|
4512
4513
|
d.value ? (f(), m("div", Wl, [
|
|
4513
|
-
|
|
4514
|
+
u("button", {
|
|
4514
4515
|
class: "fab-btn",
|
|
4515
4516
|
onClick: O
|
|
4516
4517
|
}, [...ne[3] || (ne[3] = [
|
|
4517
|
-
|
|
4518
|
+
u("svg", {
|
|
4518
4519
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4519
4520
|
width: "24",
|
|
4520
4521
|
height: "24",
|
|
@@ -4525,19 +4526,19 @@ const Pt = {
|
|
|
4525
4526
|
"stroke-linecap": "round",
|
|
4526
4527
|
"stroke-linejoin": "round"
|
|
4527
4528
|
}, [
|
|
4528
|
-
|
|
4529
|
+
u("line", {
|
|
4529
4530
|
x1: "3",
|
|
4530
4531
|
y1: "12",
|
|
4531
4532
|
x2: "21",
|
|
4532
4533
|
y2: "12"
|
|
4533
4534
|
}),
|
|
4534
|
-
|
|
4535
|
+
u("line", {
|
|
4535
4536
|
x1: "3",
|
|
4536
4537
|
y1: "6",
|
|
4537
4538
|
x2: "21",
|
|
4538
4539
|
y2: "6"
|
|
4539
4540
|
}),
|
|
4540
|
-
|
|
4541
|
+
u("line", {
|
|
4541
4542
|
x1: "3",
|
|
4542
4543
|
y1: "18",
|
|
4543
4544
|
x2: "21",
|
|
@@ -4567,7 +4568,7 @@ const Pt = {
|
|
|
4567
4568
|
return (a, s) => {
|
|
4568
4569
|
const l = ve("dbpointerdown");
|
|
4569
4570
|
return i(n).pagebusy ? G((f(), m("div", Vl, [
|
|
4570
|
-
|
|
4571
|
+
u("div", {
|
|
4571
4572
|
class: "as-pagebusy-spin",
|
|
4572
4573
|
style: Z({
|
|
4573
4574
|
width: "68px",
|
|
@@ -4575,7 +4576,7 @@ const Pt = {
|
|
|
4575
4576
|
...i(n).pagebusy?.style || {}
|
|
4576
4577
|
})
|
|
4577
4578
|
}, null, 4),
|
|
4578
|
-
|
|
4579
|
+
u("div", Nl, g(i(n).pagebusy?.v), 1)
|
|
4579
4580
|
])), [
|
|
4580
4581
|
[
|
|
4581
4582
|
l,
|
|
@@ -4649,10 +4650,10 @@ const Pt = {
|
|
|
4649
4650
|
}
|
|
4650
4651
|
return (r, d) => (f(), m("i", Jl, [
|
|
4651
4652
|
t.showtype === "filter" ? (f(), m("i", Gl, [
|
|
4652
|
-
|
|
4653
|
+
u("img", {
|
|
4653
4654
|
style: Z(l()),
|
|
4654
4655
|
src: o.value,
|
|
4655
|
-
onError: d[0] || (d[0] = (
|
|
4656
|
+
onError: d[0] || (d[0] = (c) => a())
|
|
4656
4657
|
}, null, 44, Ql)
|
|
4657
4658
|
])) : (f(), m("i", {
|
|
4658
4659
|
key: 1,
|
|
@@ -4674,24 +4675,24 @@ const Pt = {
|
|
|
4674
4675
|
setup(t, { emit: e }) {
|
|
4675
4676
|
const n = t, { $fn: o } = n.ujt, a = e, s = V(null);
|
|
4676
4677
|
function l(d) {
|
|
4677
|
-
const
|
|
4678
|
-
!n.opt?.size ||
|
|
4678
|
+
const c = d.target.files[0];
|
|
4679
|
+
!n.opt?.size || c.size <= n.opt?.size ? o.As.readFile(c).then((p) => {
|
|
4679
4680
|
o.api.webserver.apiPost(
|
|
4680
4681
|
`/api/asaifile/manage/upbase64/?path=${n.opt.path}`,
|
|
4681
4682
|
p
|
|
4682
4683
|
).then((h) => {
|
|
4683
|
-
a("onUpload", h?.data,
|
|
4684
|
+
a("onUpload", h?.data, c), s.value.value = "";
|
|
4684
4685
|
});
|
|
4685
|
-
}) : (a("onUpload", "",
|
|
4686
|
+
}) : (a("onUpload", "", c), s.value.value = "");
|
|
4686
4687
|
}
|
|
4687
4688
|
function r() {
|
|
4688
4689
|
s.value.click();
|
|
4689
4690
|
}
|
|
4690
|
-
return (d,
|
|
4691
|
+
return (d, c) => (f(), m("div", {
|
|
4691
4692
|
class: "as-upload-file",
|
|
4692
|
-
onPointerdown:
|
|
4693
|
+
onPointerdown: c[0] || (c[0] = (p) => r())
|
|
4693
4694
|
}, [
|
|
4694
|
-
|
|
4695
|
+
u("input", {
|
|
4695
4696
|
hidden: "",
|
|
4696
4697
|
ref_key: "rfUploadDom",
|
|
4697
4698
|
ref: s,
|
|
@@ -4717,25 +4718,25 @@ const Pt = {
|
|
|
4717
4718
|
setup(t, { emit: e }) {
|
|
4718
4719
|
const n = t, { $fn: o } = n.ujt, a = e, s = V(null);
|
|
4719
4720
|
function l(d) {
|
|
4720
|
-
const
|
|
4721
|
-
if (
|
|
4722
|
-
if (!n.opt?.size ||
|
|
4721
|
+
const c = d.target.files[0];
|
|
4722
|
+
if (c)
|
|
4723
|
+
if (!n.opt?.size || c.size <= n.opt?.size) {
|
|
4723
4724
|
const p = new FileReader();
|
|
4724
4725
|
p.onload = (h) => {
|
|
4725
4726
|
const v = h.target?.result;
|
|
4726
|
-
a("onUpload", v,
|
|
4727
|
-
}, p.readAsText(
|
|
4727
|
+
a("onUpload", v, c), s.value.value = "";
|
|
4728
|
+
}, p.readAsText(c);
|
|
4728
4729
|
} else
|
|
4729
|
-
a("onUpload", "",
|
|
4730
|
+
a("onUpload", "", c), s.value.value = "";
|
|
4730
4731
|
}
|
|
4731
4732
|
function r() {
|
|
4732
4733
|
s.value.click();
|
|
4733
4734
|
}
|
|
4734
|
-
return (d,
|
|
4735
|
+
return (d, c) => (f(), m("div", {
|
|
4735
4736
|
class: "as-upload-txt",
|
|
4736
|
-
onPointerdown:
|
|
4737
|
+
onPointerdown: c[0] || (c[0] = (p) => r())
|
|
4737
4738
|
}, [
|
|
4738
|
-
|
|
4739
|
+
u("input", {
|
|
4739
4740
|
hidden: "",
|
|
4740
4741
|
ref_key: "rfUploadDom",
|
|
4741
4742
|
ref: s,
|
|
@@ -4764,12 +4765,12 @@ const Pt = {
|
|
|
4764
4765
|
return (o, a) => {
|
|
4765
4766
|
const s = E("UserCard");
|
|
4766
4767
|
return f(), m("div", ui, [
|
|
4767
|
-
|
|
4768
|
-
a[0] || (a[0] =
|
|
4768
|
+
u("div", di, [
|
|
4769
|
+
a[0] || (a[0] = u("div", { class: "error-code" }, "404", -1)),
|
|
4769
4770
|
i(n).lang?.asai?.page?.page404 ? (f(), m("h1", pi, g(i(n).lang?.asai?.page?.page404 || "页面未找到"), 1)) : R("", !0),
|
|
4770
|
-
|
|
4771
|
+
u("p", fi, g(i(n).lang?.asai?.page?.reason404 || "Sorry, Page not found!"), 1)
|
|
4771
4772
|
]),
|
|
4772
|
-
|
|
4773
|
+
u("div", mi, [
|
|
4773
4774
|
W(s, { ujt: t.ujt }, null, 8, ["ujt"])
|
|
4774
4775
|
])
|
|
4775
4776
|
]);
|
|
@@ -4840,7 +4841,7 @@ const Pt = {
|
|
|
4840
4841
|
set(C) {
|
|
4841
4842
|
s("update:modelValue", C);
|
|
4842
4843
|
}
|
|
4843
|
-
}), r = V(""), d = V(""),
|
|
4844
|
+
}), r = V(""), d = V(""), c = V(null), p = V(null), h = V({
|
|
4844
4845
|
x: 0,
|
|
4845
4846
|
y: 0,
|
|
4846
4847
|
width: 0,
|
|
@@ -4870,7 +4871,7 @@ const Pt = {
|
|
|
4870
4871
|
r.value = P.target.result, d.value = "";
|
|
4871
4872
|
}, z.readAsDataURL(M);
|
|
4872
4873
|
}, b = () => {
|
|
4873
|
-
const C =
|
|
4874
|
+
const C = c.value, M = p.value;
|
|
4874
4875
|
if (!C || !M)
|
|
4875
4876
|
return;
|
|
4876
4877
|
const z = Math.min(M.clientWidth, C.naturalWidth), P = Math.min(M.clientHeight, C.naturalHeight), U = Math.min(z * 0.8, C.naturalWidth), H = Math.min(P * 0.8, C.naturalHeight);
|
|
@@ -4951,7 +4952,7 @@ const Pt = {
|
|
|
4951
4952
|
}, L = () => {
|
|
4952
4953
|
v.value.type = null, window.removeEventListener("mousemove", O), window.removeEventListener("touchmove", O), window.removeEventListener("mousemove", S), window.removeEventListener("touchmove", S), window.removeEventListener("mouseup", L), window.removeEventListener("touchend", L);
|
|
4953
4954
|
}, w = () => {
|
|
4954
|
-
const C =
|
|
4955
|
+
const C = c.value, M = C.naturalWidth / C.width, z = C.naturalHeight / C.height, P = Math.min(
|
|
4955
4956
|
h.value.width * M,
|
|
4956
4957
|
C.naturalWidth
|
|
4957
4958
|
), U = Math.min(
|
|
@@ -4982,49 +4983,49 @@ const Pt = {
|
|
|
4982
4983
|
});
|
|
4983
4984
|
};
|
|
4984
4985
|
return (C, M) => (f(), m("div", wi, [
|
|
4985
|
-
|
|
4986
|
+
u("input", {
|
|
4986
4987
|
type: "file",
|
|
4987
4988
|
accept: "image/*",
|
|
4988
4989
|
onChange: y
|
|
4989
4990
|
}, null, 32),
|
|
4990
4991
|
r.value ? (f(), m("div", ji, [
|
|
4991
|
-
|
|
4992
|
+
u("div", {
|
|
4992
4993
|
class: "preview-container",
|
|
4993
4994
|
ref_key: "previewContainer",
|
|
4994
4995
|
ref: p
|
|
4995
4996
|
}, [
|
|
4996
|
-
|
|
4997
|
+
u("img", {
|
|
4997
4998
|
ref_key: "previewImage",
|
|
4998
|
-
ref:
|
|
4999
|
+
ref: c,
|
|
4999
5000
|
src: r.value,
|
|
5000
5001
|
onLoad: b
|
|
5001
5002
|
}, null, 40, Si),
|
|
5002
|
-
G(
|
|
5003
|
+
G(u("div", {
|
|
5003
5004
|
class: "crop-box",
|
|
5004
5005
|
style: Z(_.value),
|
|
5005
5006
|
onPointerdown: M[8] || (M[8] = q((z) => k("move"), ["prevent"])),
|
|
5006
5007
|
onTouchstart: M[9] || (M[9] = q(() => {
|
|
5007
5008
|
}, ["prevent"]))
|
|
5008
5009
|
}, [
|
|
5009
|
-
|
|
5010
|
+
u("div", {
|
|
5010
5011
|
class: "crop-handle top-left",
|
|
5011
5012
|
onPointerdown: M[0] || (M[0] = q((z) => k("resize", "tl"), ["stop"])),
|
|
5012
5013
|
onTouchstart: M[1] || (M[1] = q(() => {
|
|
5013
5014
|
}, ["stop"]))
|
|
5014
5015
|
}, null, 32),
|
|
5015
|
-
|
|
5016
|
+
u("div", {
|
|
5016
5017
|
class: "crop-handle top-right",
|
|
5017
5018
|
onPointerdown: M[2] || (M[2] = q((z) => k("resize", "tr"), ["stop"])),
|
|
5018
5019
|
onTouchstart: M[3] || (M[3] = q(() => {
|
|
5019
5020
|
}, ["stop"]))
|
|
5020
5021
|
}, null, 32),
|
|
5021
|
-
|
|
5022
|
+
u("div", {
|
|
5022
5023
|
class: "crop-handle bottom-left",
|
|
5023
5024
|
onPointerdown: M[4] || (M[4] = q((z) => k("resize", "bl"), ["stop"])),
|
|
5024
5025
|
onTouchstart: M[5] || (M[5] = q(() => {
|
|
5025
5026
|
}, ["stop"]))
|
|
5026
5027
|
}, null, 32),
|
|
5027
|
-
|
|
5028
|
+
u("div", {
|
|
5028
5029
|
class: "crop-handle bottom-right",
|
|
5029
5030
|
onPointerdown: M[6] || (M[6] = q((z) => k("resize", "br"), ["stop"])),
|
|
5030
5031
|
onTouchstart: M[7] || (M[7] = q(() => {
|
|
@@ -5034,8 +5035,8 @@ const Pt = {
|
|
|
5034
5035
|
[Le, $.value]
|
|
5035
5036
|
])
|
|
5036
5037
|
], 512),
|
|
5037
|
-
|
|
5038
|
-
|
|
5038
|
+
u("div", xi, [
|
|
5039
|
+
u("button", {
|
|
5039
5040
|
onPointerdown: w,
|
|
5040
5041
|
onTouchstart: M[10] || (M[10] = q(() => {
|
|
5041
5042
|
}, ["stop"]))
|
|
@@ -5054,7 +5055,7 @@ const Pt = {
|
|
|
5054
5055
|
}, g(i(o).lg("asai.upload")), 33)) : R("", !0)
|
|
5055
5056
|
]),
|
|
5056
5057
|
d.value ? (f(), m("div", Pi, [
|
|
5057
|
-
|
|
5058
|
+
u("img", { src: d.value }, null, 8, Ci)
|
|
5058
5059
|
])) : R("", !0)
|
|
5059
5060
|
])) : R("", !0)
|
|
5060
5061
|
]));
|
|
@@ -5100,31 +5101,31 @@ const Pt = {
|
|
|
5100
5101
|
const d = E("AsaiForm");
|
|
5101
5102
|
return f(), m("div", Ti, [
|
|
5102
5103
|
t.asaidata.btn ? (f(), m("div", zi, [
|
|
5103
|
-
|
|
5104
|
-
onPointerdown: r[0] || (r[0] = (
|
|
5104
|
+
u("button", {
|
|
5105
|
+
onPointerdown: r[0] || (r[0] = (c) => o())
|
|
5105
5106
|
}, g(i(n).lg("asai.read")), 33),
|
|
5106
|
-
G(
|
|
5107
|
+
G(u("input", {
|
|
5107
5108
|
type: "text",
|
|
5108
|
-
"onUpdate:modelValue": r[1] || (r[1] = (
|
|
5109
|
+
"onUpdate:modelValue": r[1] || (r[1] = (c) => t.asaidata.path = c)
|
|
5109
5110
|
}, null, 512), [
|
|
5110
5111
|
[ce, t.asaidata.path]
|
|
5111
5112
|
]),
|
|
5112
5113
|
t.asaidata.list?.length ? G((f(), m("select", {
|
|
5113
5114
|
key: 0,
|
|
5114
|
-
"onUpdate:modelValue": r[2] || (r[2] = (
|
|
5115
|
+
"onUpdate:modelValue": r[2] || (r[2] = (c) => t.asaidata.path = c)
|
|
5115
5116
|
}, [
|
|
5116
|
-
(f(!0), m(I, null, Q(t.asaidata.list, (
|
|
5117
|
-
value:
|
|
5118
|
-
}, g(
|
|
5117
|
+
(f(!0), m(I, null, Q(t.asaidata.list, (c) => (f(), m("option", {
|
|
5118
|
+
value: c.value
|
|
5119
|
+
}, g(c.label), 9, Li))), 256))
|
|
5119
5120
|
], 512)), [
|
|
5120
5121
|
[be, t.asaidata.path]
|
|
5121
5122
|
]) : R("", !0)
|
|
5122
5123
|
])) : R("", !0),
|
|
5123
|
-
|
|
5124
|
+
u("div", Ui, [
|
|
5124
5125
|
t.asaidata.ty == "txt" ? G((f(), m("textarea", {
|
|
5125
5126
|
key: 0,
|
|
5126
5127
|
class: "as-json-txt",
|
|
5127
|
-
"onUpdate:modelValue": r[3] || (r[3] = (
|
|
5128
|
+
"onUpdate:modelValue": r[3] || (r[3] = (c) => t.asaidata.data = c)
|
|
5128
5129
|
}, null, 512)), [
|
|
5129
5130
|
[ce, t.asaidata.data]
|
|
5130
5131
|
]) : (f(), m(I, { key: 1 }, [
|
|
@@ -5137,11 +5138,11 @@ const Pt = {
|
|
|
5137
5138
|
], 64))
|
|
5138
5139
|
]),
|
|
5139
5140
|
t.asaidata.btn ? (f(), m("div", Ei, [
|
|
5140
|
-
|
|
5141
|
-
onPointerdown: r[4] || (r[4] = (
|
|
5141
|
+
u("button", {
|
|
5142
|
+
onPointerdown: r[4] || (r[4] = (c) => s())
|
|
5142
5143
|
}, g(i(n).lg("asai.submit")), 33),
|
|
5143
|
-
|
|
5144
|
-
onPointerdown: r[5] || (r[5] = (
|
|
5144
|
+
u("button", {
|
|
5145
|
+
onPointerdown: r[5] || (r[5] = (c) => a())
|
|
5145
5146
|
}, g(i(n).lg("asai.del")), 33)
|
|
5146
5147
|
])) : R("", !0)
|
|
5147
5148
|
]);
|
|
@@ -5214,7 +5215,7 @@ const Pt = {
|
|
|
5214
5215
|
class: "as-ed-for-item",
|
|
5215
5216
|
key: d
|
|
5216
5217
|
}, [
|
|
5217
|
-
|
|
5218
|
+
u("div", Hi, [
|
|
5218
5219
|
W(Pe, {
|
|
5219
5220
|
cval: t.cval,
|
|
5220
5221
|
ckey: d,
|
|
@@ -5234,19 +5235,19 @@ const Pt = {
|
|
|
5234
5235
|
}, null, 8, ["cval", "ckey", "cdata"])
|
|
5235
5236
|
]))), 128))
|
|
5236
5237
|
])) : o.value === "array" ? (f(), m("div", qi, [
|
|
5237
|
-
|
|
5238
|
+
u("div", {
|
|
5238
5239
|
class: "as-ed-mg",
|
|
5239
5240
|
onPointerdown: a
|
|
5240
5241
|
}, "+ " + g(t.ckey), 33),
|
|
5241
|
-
|
|
5242
|
-
(f(!0), m(I, null, Q(t.cdata[t.ckey], (d,
|
|
5242
|
+
u("div", Bi, [
|
|
5243
|
+
(f(!0), m(I, null, Q(t.cdata[t.ckey], (d, c) => (f(), m("div", {
|
|
5243
5244
|
class: "as-ed-for-item",
|
|
5244
|
-
key:
|
|
5245
|
+
key: c
|
|
5245
5246
|
}, [
|
|
5246
|
-
|
|
5247
|
+
u("div", Vi, [
|
|
5247
5248
|
W(Pe, {
|
|
5248
5249
|
cval: t.cval,
|
|
5249
|
-
ckey:
|
|
5250
|
+
ckey: c,
|
|
5250
5251
|
cdata: t.cdata[t.ckey]
|
|
5251
5252
|
}, null, 8, ["cval", "ckey", "cdata"])
|
|
5252
5253
|
])
|
|
@@ -5292,21 +5293,21 @@ const Pt = {
|
|
|
5292
5293
|
key: 0,
|
|
5293
5294
|
to: "#popteleport"
|
|
5294
5295
|
}, [
|
|
5295
|
-
|
|
5296
|
-
|
|
5296
|
+
u("div", Ki, [
|
|
5297
|
+
u("button", {
|
|
5297
5298
|
class: "as-floating-button",
|
|
5298
5299
|
onPointerdown: s
|
|
5299
5300
|
}, [
|
|
5300
5301
|
a.value ? (f(), m("span", Ji, "×")) : (f(), m("span", Gi, "☰"))
|
|
5301
5302
|
], 32),
|
|
5302
|
-
|
|
5303
|
+
u("ul", {
|
|
5303
5304
|
class: J(["as-floating-menus", { open: a.value }])
|
|
5304
5305
|
}, [
|
|
5305
|
-
(f(!0), m(I, null, Q(l.value, (
|
|
5306
|
+
(f(!0), m(I, null, Q(l.value, (c, p) => (f(), m("li", {
|
|
5306
5307
|
key: "menu" + p,
|
|
5307
|
-
class: J(`${
|
|
5308
|
-
onPointerup: (h) =>
|
|
5309
|
-
}, g(p + 1) + ". " + g(
|
|
5308
|
+
class: J(`${c.type === "module" ? "module " : ""}${c.value && i(o).location.hash.includes(c.value) ? "active" : ""}`),
|
|
5309
|
+
onPointerup: (h) => c.value ? i(n).sethash(c.value) : c?.fn?.()
|
|
5310
|
+
}, g(p + 1) + ". " + g(c.label || c.value), 43, Qi))), 128))
|
|
5310
5311
|
], 2)
|
|
5311
5312
|
])
|
|
5312
5313
|
])) : R("", !0);
|
|
@@ -5387,8 +5388,8 @@ const Pt = {
|
|
|
5387
5388
|
const e = t, n = V(null), o = V(0), a = V(0), s = V(0), l = V(
|
|
5388
5389
|
new Array(e.items.length).fill(Math.round(e.itemHeight))
|
|
5389
5390
|
), r = /* @__PURE__ */ new Map(), d = X(() => Math.round(
|
|
5390
|
-
e.items.reduce(($, y, b) => $ +
|
|
5391
|
-
)),
|
|
5391
|
+
e.items.reduce(($, y, b) => $ + c(b), 0)
|
|
5392
|
+
)), c = ($) => $ < 0 || $ >= e.items.length ? 0 : Math.round(l.value[$] ?? e.itemHeight), p = () => {
|
|
5392
5393
|
if (!n.value)
|
|
5393
5394
|
return {
|
|
5394
5395
|
start: 0,
|
|
@@ -5421,7 +5422,7 @@ const Pt = {
|
|
|
5421
5422
|
y--;
|
|
5422
5423
|
let b = y > 0 ? r.get(y) : 0;
|
|
5423
5424
|
for (let O = y; O < $; O++)
|
|
5424
|
-
b +=
|
|
5425
|
+
b += c(O);
|
|
5425
5426
|
const k = Math.round(b);
|
|
5426
5427
|
return r.set($, k), k;
|
|
5427
5428
|
}, _ = () => {
|
|
@@ -5454,7 +5455,7 @@ const Pt = {
|
|
|
5454
5455
|
ref: n,
|
|
5455
5456
|
style: { height: "100%" }
|
|
5456
5457
|
}, [
|
|
5457
|
-
|
|
5458
|
+
u("div", {
|
|
5458
5459
|
class: "virtual-list-wrapper",
|
|
5459
5460
|
style: Z({ height: d.value + "px" })
|
|
5460
5461
|
}, [
|
|
@@ -5488,16 +5489,16 @@ const Pt = {
|
|
|
5488
5489
|
}
|
|
5489
5490
|
},
|
|
5490
5491
|
setup(t, { expose: e }) {
|
|
5491
|
-
const n = t, o = V(null), a = V(0), s = V([]), l = V(10), r = X(() => n.items.reduce((b, k, O) => b + d(O), 0)), d = (b) => s.value[b] || n.itemHeight,
|
|
5492
|
+
const n = t, o = V(null), a = V(0), s = V([]), l = V(10), r = X(() => n.items.reduce((b, k, O) => b + d(O), 0)), d = (b) => s.value[b] || n.itemHeight, c = X(
|
|
5492
5493
|
() => Math.max(0, _(a.value) - n.buffer)
|
|
5493
5494
|
), p = X(
|
|
5494
5495
|
() => Math.min(
|
|
5495
5496
|
n.items.length,
|
|
5496
|
-
|
|
5497
|
+
c.value + l.value + n.buffer * 2
|
|
5497
5498
|
)
|
|
5498
5499
|
), h = X(
|
|
5499
|
-
() => n.items.slice(
|
|
5500
|
-
const O =
|
|
5500
|
+
() => n.items.slice(c.value, p.value).map((b, k) => {
|
|
5501
|
+
const O = c.value + k, S = v(O);
|
|
5501
5502
|
return {
|
|
5502
5503
|
index: O,
|
|
5503
5504
|
id: b.id || O,
|
|
@@ -5518,7 +5519,7 @@ const Pt = {
|
|
|
5518
5519
|
});
|
|
5519
5520
|
}, y = () => {
|
|
5520
5521
|
o.value.querySelectorAll(".virtual-list-item").forEach((k, O) => {
|
|
5521
|
-
const S =
|
|
5522
|
+
const S = c.value + O;
|
|
5522
5523
|
s.value[S] = k.offsetHeight;
|
|
5523
5524
|
});
|
|
5524
5525
|
};
|
|
@@ -5540,23 +5541,21 @@ const Pt = {
|
|
|
5540
5541
|
ref_key: "container",
|
|
5541
5542
|
ref: o
|
|
5542
5543
|
}, [
|
|
5543
|
-
|
|
5544
|
+
u("div", {
|
|
5544
5545
|
class: "virtual-list-wrapper",
|
|
5545
5546
|
style: Z({ height: r.value + "px" })
|
|
5546
5547
|
}, [
|
|
5547
5548
|
(f(!0), m(I, null, Q(h.value, (O) => (f(), m("div", {
|
|
5548
5549
|
class: "virtual-list-item",
|
|
5549
|
-
key: O.
|
|
5550
|
-
style: Z({ transform: `translateY(${O.offset}px)` })
|
|
5551
|
-
ref_for: !0,
|
|
5552
|
-
ref: "items"
|
|
5550
|
+
key: "as" + O.index,
|
|
5551
|
+
style: Z({ transform: `translateY(${O.offset}px)` })
|
|
5553
5552
|
}, [
|
|
5554
5553
|
D(b.$slots, "default", { item: O }, void 0, !0)
|
|
5555
5554
|
], 4))), 128))
|
|
5556
5555
|
], 4)
|
|
5557
5556
|
], 544));
|
|
5558
5557
|
}
|
|
5559
|
-
}), pr = /* @__PURE__ */ N(dr, [["__scopeId", "data-v-
|
|
5558
|
+
}), pr = /* @__PURE__ */ N(dr, [["__scopeId", "data-v-20307bae"]]), fr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5560
5559
|
__proto__: null,
|
|
5561
5560
|
default: pr
|
|
5562
5561
|
}, Symbol.toStringTag, { value: "Module" })), mr = /* @__PURE__ */ A({
|
|
@@ -5588,7 +5587,7 @@ const Pt = {
|
|
|
5588
5587
|
ge(s), window.addEventListener("resize", l);
|
|
5589
5588
|
}), _e(() => {
|
|
5590
5589
|
window.removeEventListener("resize", l), clearTimeout(a);
|
|
5591
|
-
}), (d,
|
|
5590
|
+
}), (d, c) => (f(), m("div", {
|
|
5592
5591
|
ref_key: "containerRef",
|
|
5593
5592
|
ref: o,
|
|
5594
5593
|
class: "zoom-container",
|
|
@@ -5687,7 +5686,7 @@ const Pt = {
|
|
|
5687
5686
|
key: 0,
|
|
5688
5687
|
class: J(`${t.asaidata.ic ? "as-form-obj" : ""}`)
|
|
5689
5688
|
}, [
|
|
5690
|
-
|
|
5689
|
+
u("span", {
|
|
5691
5690
|
class: J(`${t.asaidata.ic > 1 ? n.value ? "as-form-ico-close" : "as-form-ico-open" : ""}`),
|
|
5692
5691
|
onPointerdown: a[0] || (a[0] = (l) => n.value = !n.value)
|
|
5693
5692
|
}, g(t.asaidata.eq > 2 ? '"' : "") + g(e.asaidata?.lang && e.asaidata?.lang[t.formkey] || t.formkey) + g(t.asaidata.eq > 2 ? '"' : "") + g(t.asaidata.eq ? ":" : ""), 35),
|
|
@@ -5727,7 +5726,7 @@ const Pt = {
|
|
|
5727
5726
|
}, {
|
|
5728
5727
|
default: le(() => [
|
|
5729
5728
|
ae(g(typeof e.formdata[t.formkey] == "string" && t.asaidata.eq > 2 ? '"' : "") + " ", 1),
|
|
5730
|
-
G(
|
|
5729
|
+
G(u("input", {
|
|
5731
5730
|
type: e.asaidata.rule?.[t.formkey]?.type || (typeof e.formdata[t.formkey] == "boolean" ? "checkbox" : typeof e.formdata[t.formkey] == "number" ? "number" : "string"),
|
|
5732
5731
|
max: e.asaidata.rule?.[t.formkey]?.max,
|
|
5733
5732
|
min: e.asaidata.rule?.[t.formkey]?.min,
|
|
@@ -5764,7 +5763,7 @@ const Pt = {
|
|
|
5764
5763
|
function d() {
|
|
5765
5764
|
s.value && (s.value.innerHTML = e.formdata[e.formkey]);
|
|
5766
5765
|
}
|
|
5767
|
-
function
|
|
5766
|
+
function c(w, j = 0) {
|
|
5768
5767
|
const x = /* @__PURE__ */ new Set([
|
|
5769
5768
|
"a",
|
|
5770
5769
|
"figure",
|
|
@@ -5905,11 +5904,11 @@ const Pt = {
|
|
|
5905
5904
|
}
|
|
5906
5905
|
function k(w) {
|
|
5907
5906
|
w.preventDefault();
|
|
5908
|
-
const j = w.clipboardData?.getData("text/html") || "", x =
|
|
5907
|
+
const j = w.clipboardData?.getData("text/html") || "", x = c(j, 1) || w.clipboardData?.getData("text/plain") || "";
|
|
5909
5908
|
S("insertHTML", x);
|
|
5910
5909
|
}
|
|
5911
5910
|
function O(w) {
|
|
5912
|
-
s.value && (e.formdata[e.formkey] =
|
|
5911
|
+
s.value && (e.formdata[e.formkey] = c(
|
|
5913
5912
|
s.value.innerHTML
|
|
5914
5913
|
));
|
|
5915
5914
|
}
|
|
@@ -5923,109 +5922,109 @@ const Pt = {
|
|
|
5923
5922
|
class: "as-richtext-area",
|
|
5924
5923
|
style: Z(e.asaidata.rule?.[e.formkey]?.style || {})
|
|
5925
5924
|
}, [
|
|
5926
|
-
|
|
5927
|
-
|
|
5925
|
+
u("div", kr, [
|
|
5926
|
+
u("select", {
|
|
5928
5927
|
onChange: j[0] || (j[0] = (x) => S("fontSize", x.target.value))
|
|
5929
5928
|
}, [
|
|
5930
|
-
|
|
5931
|
-
(f(), m(I, null, Q(8, (x) =>
|
|
5929
|
+
u("option", wr, g(i(n).lang.richtexteditor.fontsize), 1),
|
|
5930
|
+
(f(), m(I, null, Q(8, (x) => u("option", {
|
|
5932
5931
|
key: "size" + x,
|
|
5933
5932
|
value: x * (x - 1) + 8
|
|
5934
5933
|
}, g(x * (x - 1) + 8) + "px ", 9, jr)), 64))
|
|
5935
5934
|
], 32),
|
|
5936
|
-
|
|
5935
|
+
u("select", {
|
|
5937
5936
|
onChange: j[1] || (j[1] = (x) => S("formatBlock", x.target.value))
|
|
5938
5937
|
}, [
|
|
5939
|
-
|
|
5940
|
-
(f(), m(I, null, Q(6, (x) =>
|
|
5938
|
+
u("option", Sr, g(i(n).lang.richtexteditor.paragraph), 1),
|
|
5939
|
+
(f(), m(I, null, Q(6, (x) => u("option", {
|
|
5941
5940
|
key: "h" + x,
|
|
5942
5941
|
value: "h" + x
|
|
5943
5942
|
}, g(i(n).lang.richtexteditor.title) + g(x), 9, xr)), 64))
|
|
5944
5943
|
], 32),
|
|
5945
|
-
|
|
5944
|
+
u("button", {
|
|
5946
5945
|
onPointerdown: j[2] || (j[2] = (x) => S("bold")),
|
|
5947
5946
|
title: i(n).lang.richtexteditor.bold
|
|
5948
5947
|
}, " B ", 40, Pr),
|
|
5949
|
-
|
|
5948
|
+
u("button", {
|
|
5950
5949
|
onPointerdown: j[3] || (j[3] = (x) => S("underline")),
|
|
5951
5950
|
title: i(n).lang.richtexteditor.underline
|
|
5952
5951
|
}, " U ", 40, Cr),
|
|
5953
|
-
|
|
5952
|
+
u("button", {
|
|
5954
5953
|
onPointerdown: j[4] || (j[4] = (x) => S("italic")),
|
|
5955
5954
|
title: i(n).lang.richtexteditor.italic
|
|
5956
5955
|
}, " I ", 40, Or),
|
|
5957
|
-
|
|
5956
|
+
u("button", {
|
|
5958
5957
|
onPointerdown: j[5] || (j[5] = (x) => S("strikethrough")),
|
|
5959
5958
|
title: i(n).lang.richtexteditor.strikethrough
|
|
5960
5959
|
}, " S ", 40, Ar),
|
|
5961
|
-
|
|
5960
|
+
u("input", {
|
|
5962
5961
|
type: "color",
|
|
5963
5962
|
onInput: j[6] || (j[6] = (x) => S("foreColor", x.target.value)),
|
|
5964
5963
|
title: i(n).lang.richtexteditor.foreColor
|
|
5965
5964
|
}, null, 40, Mr),
|
|
5966
|
-
|
|
5965
|
+
u("input", {
|
|
5967
5966
|
type: "color",
|
|
5968
5967
|
onInput: j[7] || (j[7] = (x) => S("backColor", x.target.value)),
|
|
5969
5968
|
title: i(n).lang.richtexteditor.backColor
|
|
5970
5969
|
}, null, 40, Tr),
|
|
5971
|
-
|
|
5970
|
+
u("button", {
|
|
5972
5971
|
onPointerdown: j[8] || (j[8] = (x) => S("insertOrderedList")),
|
|
5973
5972
|
title: i(n).lang.richtexteditor.insertOrderedList
|
|
5974
5973
|
}, " 有 ", 40, zr),
|
|
5975
|
-
|
|
5974
|
+
u("button", {
|
|
5976
5975
|
onPointerdown: j[9] || (j[9] = (x) => S("insertUnorderedList")),
|
|
5977
5976
|
title: i(n).lang.richtexteditor.insertUnorderedList
|
|
5978
5977
|
}, " 无 ", 40, Lr),
|
|
5979
|
-
|
|
5978
|
+
u("button", {
|
|
5980
5979
|
onPointerdown: j[10] || (j[10] = (x) => S("justifyCenter")),
|
|
5981
5980
|
title: "居中"
|
|
5982
5981
|
}, " 中 ", 32),
|
|
5983
|
-
|
|
5982
|
+
u("button", {
|
|
5984
5983
|
onPointerdown: j[11] || (j[11] = (x) => S("justifyFull")),
|
|
5985
5984
|
title: "两端对齐"
|
|
5986
5985
|
}, " 两 ", 32),
|
|
5987
|
-
|
|
5986
|
+
u("button", {
|
|
5988
5987
|
onPointerdown: j[12] || (j[12] = (x) => S("justifyRight")),
|
|
5989
5988
|
title: "右对齐"
|
|
5990
5989
|
}, " 右 ", 32),
|
|
5991
|
-
|
|
5990
|
+
u("button", {
|
|
5992
5991
|
onPointerdown: j[13] || (j[13] = (x) => S("justifyLeft")),
|
|
5993
5992
|
title: "左对齐"
|
|
5994
5993
|
}, " 左 ", 32),
|
|
5995
|
-
|
|
5994
|
+
u("button", {
|
|
5996
5995
|
onPointerdown: j[14] || (j[14] = (x) => S("delete")),
|
|
5997
5996
|
title: "删除"
|
|
5998
5997
|
}, " 删 ", 32),
|
|
5999
|
-
|
|
5998
|
+
u("button", {
|
|
6000
5999
|
onPointerdown: j[15] || (j[15] = (x) => h()),
|
|
6001
6000
|
title: "链接"
|
|
6002
6001
|
}, "链", 32),
|
|
6003
|
-
|
|
6002
|
+
u("button", {
|
|
6004
6003
|
onPointerdown: j[16] || (j[16] = (x) => S("unlink")),
|
|
6005
6004
|
title: "删除链接"
|
|
6006
6005
|
}, " 除 ", 32),
|
|
6007
|
-
|
|
6006
|
+
u("button", {
|
|
6008
6007
|
onPointerdown: j[17] || (j[17] = (x) => v("image")),
|
|
6009
6008
|
title: "图片"
|
|
6010
6009
|
}, "🖼️", 32),
|
|
6011
|
-
|
|
6010
|
+
u("button", {
|
|
6012
6011
|
onPointerdown: j[18] || (j[18] = (x) => v("video")),
|
|
6013
6012
|
title: "视频"
|
|
6014
6013
|
}, "🎬", 32),
|
|
6015
|
-
|
|
6014
|
+
u("button", {
|
|
6016
6015
|
onPointerdown: j[19] || (j[19] = (x) => v("file")),
|
|
6017
6016
|
title: "文件"
|
|
6018
6017
|
}, "📎", 32),
|
|
6019
|
-
|
|
6018
|
+
u("button", {
|
|
6020
6019
|
onPointerdown: b,
|
|
6021
6020
|
title: "上传"
|
|
6022
6021
|
}, "上", 32),
|
|
6023
|
-
|
|
6022
|
+
u("button", {
|
|
6024
6023
|
onPointerdown: j[20] || (j[20] = (x) => L()),
|
|
6025
6024
|
title: "切换"
|
|
6026
6025
|
}, "HTML", 32)
|
|
6027
6026
|
]),
|
|
6028
|
-
|
|
6027
|
+
u("div", Ur, [
|
|
6029
6028
|
r.value != 1 ? (f(), m("div", {
|
|
6030
6029
|
key: 0,
|
|
6031
6030
|
style: Z({ width: r.value > 1 ? "50%" : "100%" }),
|
|
@@ -6046,7 +6045,7 @@ const Pt = {
|
|
|
6046
6045
|
[ce, e.formdata[e.formkey]]
|
|
6047
6046
|
]) : R("", !0)
|
|
6048
6047
|
]),
|
|
6049
|
-
|
|
6048
|
+
u("input", {
|
|
6050
6049
|
ref_key: "fileInput",
|
|
6051
6050
|
ref: a,
|
|
6052
6051
|
type: "file",
|
|
@@ -6079,7 +6078,7 @@ const Pt = {
|
|
|
6079
6078
|
formkey: t.formkey
|
|
6080
6079
|
}, {
|
|
6081
6080
|
default: le(() => [
|
|
6082
|
-
G(
|
|
6081
|
+
G(u("select", {
|
|
6083
6082
|
"onUpdate:modelValue": s[0] || (s[0] = (r) => e.formdata[t.formkey] = r)
|
|
6084
6083
|
}, [
|
|
6085
6084
|
(f(!0), m(I, null, Q(o.value, (r) => (f(), m("option", {
|
|
@@ -6124,7 +6123,7 @@ const Pt = {
|
|
|
6124
6123
|
}
|
|
6125
6124
|
}
|
|
6126
6125
|
};
|
|
6127
|
-
function
|
|
6126
|
+
function c() {
|
|
6128
6127
|
s.value.click();
|
|
6129
6128
|
}
|
|
6130
6129
|
return (p, h) => {
|
|
@@ -6152,9 +6151,9 @@ const Pt = {
|
|
|
6152
6151
|
hidden: "",
|
|
6153
6152
|
onChange: d
|
|
6154
6153
|
}, null, 544)),
|
|
6155
|
-
|
|
6154
|
+
u("div", {
|
|
6156
6155
|
class: "as-upload-image",
|
|
6157
|
-
onClickOnce: q(
|
|
6156
|
+
onClickOnce: q(c, ["stop", "prevent"])
|
|
6158
6157
|
}, [
|
|
6159
6158
|
e.formdata[t.formkey] ? (f(), m("div", Hr, [
|
|
6160
6159
|
t.asaidata?.rule?.[t.formkey]?.accept?.startsWith("image/") ? (f(), m("img", {
|
|
@@ -6217,7 +6216,7 @@ const Pt = {
|
|
|
6217
6216
|
}, h.readAsDataURL(l.value);
|
|
6218
6217
|
}
|
|
6219
6218
|
};
|
|
6220
|
-
function
|
|
6219
|
+
function c() {
|
|
6221
6220
|
s.value.click();
|
|
6222
6221
|
}
|
|
6223
6222
|
return (p, h) => {
|
|
@@ -6229,9 +6228,9 @@ const Pt = {
|
|
|
6229
6228
|
formkey: t.formkey
|
|
6230
6229
|
}, {
|
|
6231
6230
|
default: le(() => [
|
|
6232
|
-
|
|
6231
|
+
u("div", {
|
|
6233
6232
|
class: "as-upload-image",
|
|
6234
|
-
onPointerdown: q(
|
|
6233
|
+
onPointerdown: q(c, ["prevent"])
|
|
6235
6234
|
}, [
|
|
6236
6235
|
e.formdata[t.formkey] ? (f(), m("div", Xr, [
|
|
6237
6236
|
t.asaidata?.rule?.[t.formkey]?.accept?.startsWith("image/") ? (f(), m("img", {
|
|
@@ -6292,7 +6291,7 @@ const Pt = {
|
|
|
6292
6291
|
const h = new FileReader();
|
|
6293
6292
|
h.onload = async () => {
|
|
6294
6293
|
try {
|
|
6295
|
-
|
|
6294
|
+
c({
|
|
6296
6295
|
base64Data: h.result,
|
|
6297
6296
|
asaidata: e.asaidata,
|
|
6298
6297
|
formdata: e.formdata,
|
|
@@ -6310,7 +6309,7 @@ const Pt = {
|
|
|
6310
6309
|
function d() {
|
|
6311
6310
|
a.value.click();
|
|
6312
6311
|
}
|
|
6313
|
-
function
|
|
6312
|
+
function c(p) {
|
|
6314
6313
|
o.pop.popupload.stat = 1, o.pop.popupload.tit = n.lg("asai.upload"), o.pop.popupload.params = p;
|
|
6315
6314
|
}
|
|
6316
6315
|
return (p, h) => {
|
|
@@ -6324,12 +6323,12 @@ const Pt = {
|
|
|
6324
6323
|
formkey: t.formkey
|
|
6325
6324
|
}, {
|
|
6326
6325
|
default: le(() => [
|
|
6327
|
-
|
|
6326
|
+
u("div", {
|
|
6328
6327
|
class: "as-upload-image",
|
|
6329
6328
|
onPointerdown: q(d, ["prevent"])
|
|
6330
6329
|
}, [
|
|
6331
6330
|
e.formdata[t.formkey] ? (f(), m("div", tc, [
|
|
6332
|
-
|
|
6331
|
+
u("img", {
|
|
6333
6332
|
src: e.formdata[t.formkey]
|
|
6334
6333
|
}, null, 8, nc)
|
|
6335
6334
|
])) : (f(), m("div", {
|
|
@@ -6338,7 +6337,7 @@ const Pt = {
|
|
|
6338
6337
|
title: l.value
|
|
6339
6338
|
}, g(l.value), 11, oc))
|
|
6340
6339
|
], 32),
|
|
6341
|
-
|
|
6340
|
+
u("input", {
|
|
6342
6341
|
accept: "image/*",
|
|
6343
6342
|
ref_key: "rfInputFile",
|
|
6344
6343
|
ref: a,
|
|
@@ -6381,7 +6380,7 @@ const Pt = {
|
|
|
6381
6380
|
originalWidth: 0,
|
|
6382
6381
|
originalHeight: 0,
|
|
6383
6382
|
direction: null
|
|
6384
|
-
}),
|
|
6383
|
+
}), c = X(() => ({
|
|
6385
6384
|
transform: `translate(${r.value.x}px, ${r.value.y}px)`,
|
|
6386
6385
|
width: `${r.value.width}px`,
|
|
6387
6386
|
height: `${r.value.height}px`
|
|
@@ -6505,7 +6504,7 @@ const Pt = {
|
|
|
6505
6504
|
};
|
|
6506
6505
|
return (S, L) => (f(), m("div", lc, [
|
|
6507
6506
|
o.value ? (f(), m("div", ic, [
|
|
6508
|
-
|
|
6507
|
+
u("img", {
|
|
6509
6508
|
ref_key: "cutImage",
|
|
6510
6509
|
ref: s,
|
|
6511
6510
|
src: o.value
|
|
@@ -6516,34 +6515,34 @@ const Pt = {
|
|
|
6516
6515
|
ref_key: "previewContainer",
|
|
6517
6516
|
ref: l
|
|
6518
6517
|
}, [
|
|
6519
|
-
|
|
6518
|
+
u("img", {
|
|
6520
6519
|
ref_key: "previewImage",
|
|
6521
6520
|
ref: a,
|
|
6522
6521
|
src: e.params.base64Data,
|
|
6523
6522
|
onLoad: h
|
|
6524
6523
|
}, null, 40, cc),
|
|
6525
|
-
G(
|
|
6524
|
+
G(u("div", {
|
|
6526
6525
|
class: "as-img-crop-box",
|
|
6527
|
-
style: Z(
|
|
6526
|
+
style: Z(c.value),
|
|
6528
6527
|
onMousedown: L[8] || (L[8] = q((w) => v("move"), ["prevent"])),
|
|
6529
6528
|
onTouchstart: L[9] || (L[9] = q((w) => v("move"), ["prevent"]))
|
|
6530
6529
|
}, [
|
|
6531
|
-
|
|
6530
|
+
u("div", {
|
|
6532
6531
|
class: "as-img-crop-handle top-left",
|
|
6533
6532
|
onMousedown: L[0] || (L[0] = q((w) => v("resize", "tl"), ["stop"])),
|
|
6534
6533
|
onTouchstart: L[1] || (L[1] = q((w) => v("resize", "tl"), ["stop"]))
|
|
6535
6534
|
}, null, 32),
|
|
6536
|
-
|
|
6535
|
+
u("div", {
|
|
6537
6536
|
class: "as-img-crop-handle top-right",
|
|
6538
6537
|
onMousedown: L[2] || (L[2] = q((w) => v("resize", "tr"), ["stop"])),
|
|
6539
6538
|
onTouchstart: L[3] || (L[3] = q((w) => v("resize", "tr"), ["stop"]))
|
|
6540
6539
|
}, null, 32),
|
|
6541
|
-
|
|
6540
|
+
u("div", {
|
|
6542
6541
|
class: "as-img-crop-handle bottom-left",
|
|
6543
6542
|
onMousedown: L[4] || (L[4] = q((w) => v("resize", "bl"), ["stop"])),
|
|
6544
6543
|
onTouchstart: L[5] || (L[5] = q((w) => v("resize", "bl"), ["stop"]))
|
|
6545
6544
|
}, null, 32),
|
|
6546
|
-
|
|
6545
|
+
u("div", {
|
|
6547
6546
|
class: "as-img-crop-handle bottom-right",
|
|
6548
6547
|
onMousedown: L[6] || (L[6] = q((w) => v("resize", "br"), ["stop"])),
|
|
6549
6548
|
onTouchstart: L[7] || (L[7] = q((w) => v("resize", "br"), ["stop"]))
|
|
@@ -6552,10 +6551,10 @@ const Pt = {
|
|
|
6552
6551
|
[Le, p.value]
|
|
6553
6552
|
])
|
|
6554
6553
|
], 512)),
|
|
6555
|
-
|
|
6554
|
+
u("div", uc, [
|
|
6556
6555
|
o.value ? (f(), m(I, { key: 0 }, [
|
|
6557
|
-
|
|
6558
|
-
|
|
6556
|
+
u("button", { onPointerdown: k }, "下载图片", 32),
|
|
6557
|
+
u("button", { onPointerdown: O }, "确认上传", 32)
|
|
6559
6558
|
], 64)) : (f(), m("button", {
|
|
6560
6559
|
key: 1,
|
|
6561
6560
|
onPointerdown: b
|
|
@@ -6657,22 +6656,22 @@ const Pt = {
|
|
|
6657
6656
|
return (n, o) => {
|
|
6658
6657
|
const a = E("AsSvg");
|
|
6659
6658
|
return f(), m("div", gc, [
|
|
6660
|
-
|
|
6661
|
-
o[0] || (o[0] =
|
|
6662
|
-
|
|
6659
|
+
u("div", null, [
|
|
6660
|
+
o[0] || (o[0] = u("div", null, [
|
|
6661
|
+
u("img", {
|
|
6663
6662
|
src: "./webmodel/files/img/logo.png",
|
|
6664
6663
|
width: "200"
|
|
6665
6664
|
})
|
|
6666
6665
|
], -1)),
|
|
6667
|
-
|
|
6668
|
-
|
|
6666
|
+
u("div", vc, [
|
|
6667
|
+
u("div", yc, [
|
|
6669
6668
|
W(a, {
|
|
6670
6669
|
color: "var(--cz8)",
|
|
6671
6670
|
height: "88px",
|
|
6672
6671
|
src: "asai/page"
|
|
6673
6672
|
})
|
|
6674
6673
|
]),
|
|
6675
|
-
|
|
6674
|
+
u("div", bc, g(i(e).$GYS.$webmodel.lang[i(e).$GYS.$webmodel.lang.langty].pageerr), 1)
|
|
6676
6675
|
])
|
|
6677
6676
|
])
|
|
6678
6677
|
]);
|
|
@@ -6690,15 +6689,15 @@ const Pt = {
|
|
|
6690
6689
|
return (e, n) => {
|
|
6691
6690
|
const o = E("AsSvg"), a = E("UserCard");
|
|
6692
6691
|
return f(), m("div", kc, [
|
|
6693
|
-
|
|
6694
|
-
n[0] || (n[0] =
|
|
6695
|
-
|
|
6692
|
+
u("div", null, [
|
|
6693
|
+
n[0] || (n[0] = u("div", null, [
|
|
6694
|
+
u("img", {
|
|
6696
6695
|
src: "./webmodel/files/img/logo.png",
|
|
6697
6696
|
width: "200"
|
|
6698
6697
|
})
|
|
6699
6698
|
], -1)),
|
|
6700
|
-
|
|
6701
|
-
|
|
6699
|
+
u("div", wc, [
|
|
6700
|
+
u("div", jc, [
|
|
6702
6701
|
W(o, {
|
|
6703
6702
|
color: "var(--ch4)",
|
|
6704
6703
|
height: "88px",
|
|
@@ -6731,24 +6730,24 @@ const Pt = {
|
|
|
6731
6730
|
return (o, a) => {
|
|
6732
6731
|
const s = E("AsSvg"), l = E("UserCard");
|
|
6733
6732
|
return f(), m("div", Cc, [
|
|
6734
|
-
|
|
6735
|
-
a[0] || (a[0] =
|
|
6736
|
-
|
|
6733
|
+
u("div", null, [
|
|
6734
|
+
a[0] || (a[0] = u("div", null, [
|
|
6735
|
+
u("img", {
|
|
6737
6736
|
src: "./webmodel/files/img/logo.png",
|
|
6738
6737
|
width: "200"
|
|
6739
6738
|
})
|
|
6740
6739
|
], -1)),
|
|
6741
|
-
|
|
6742
|
-
|
|
6740
|
+
u("div", Oc, [
|
|
6741
|
+
u("div", Ac, [
|
|
6743
6742
|
W(s, {
|
|
6744
6743
|
color: "var(--cz8)",
|
|
6745
6744
|
height: "88px",
|
|
6746
6745
|
src: "asai/server"
|
|
6747
6746
|
})
|
|
6748
6747
|
]),
|
|
6749
|
-
|
|
6748
|
+
u("div", Mc, g(i(n).lang?.asai?.page?.loadws), 1)
|
|
6750
6749
|
]),
|
|
6751
|
-
|
|
6750
|
+
u("h3", null, g(e.type), 1),
|
|
6752
6751
|
W(l, { ujt: t.ujt }, null, 8, ["ujt"])
|
|
6753
6752
|
])
|
|
6754
6753
|
]);
|
|
@@ -6773,22 +6772,22 @@ const Pt = {
|
|
|
6773
6772
|
return (o, a) => {
|
|
6774
6773
|
const s = E("AsSvg"), l = E("UserCard");
|
|
6775
6774
|
return f(), m("div", Lc, [
|
|
6776
|
-
|
|
6777
|
-
a[0] || (a[0] =
|
|
6778
|
-
|
|
6775
|
+
u("div", null, [
|
|
6776
|
+
a[0] || (a[0] = u("div", null, [
|
|
6777
|
+
u("img", {
|
|
6779
6778
|
src: "./webmodel/files/img/logo.png",
|
|
6780
6779
|
width: "200"
|
|
6781
6780
|
})
|
|
6782
6781
|
], -1)),
|
|
6783
|
-
|
|
6784
|
-
|
|
6782
|
+
u("div", Uc, [
|
|
6783
|
+
u("div", Ec, [
|
|
6785
6784
|
W(s, {
|
|
6786
6785
|
color: "var(--cy8)",
|
|
6787
6786
|
height: "88px",
|
|
6788
6787
|
src: "asai/web"
|
|
6789
6788
|
})
|
|
6790
6789
|
]),
|
|
6791
|
-
|
|
6790
|
+
u("div", Ic, g(i(n).lang.asai.page.loadserver), 1)
|
|
6792
6791
|
]),
|
|
6793
6792
|
W(l, { ujt: t.ujt }, null, 8, ["ujt"])
|
|
6794
6793
|
])
|
|
@@ -6814,22 +6813,22 @@ const Pt = {
|
|
|
6814
6813
|
return (o, a) => {
|
|
6815
6814
|
const s = E("AsSvg"), l = E("UserCard");
|
|
6816
6815
|
return f(), m("div", Fc, [
|
|
6817
|
-
|
|
6818
|
-
a[0] || (a[0] =
|
|
6819
|
-
|
|
6816
|
+
u("div", null, [
|
|
6817
|
+
a[0] || (a[0] = u("div", null, [
|
|
6818
|
+
u("img", {
|
|
6820
6819
|
src: "./webmodel/files/img/logo.png",
|
|
6821
6820
|
width: "200"
|
|
6822
6821
|
})
|
|
6823
6822
|
], -1)),
|
|
6824
|
-
|
|
6825
|
-
|
|
6823
|
+
u("div", Wc, [
|
|
6824
|
+
u("div", Hc, [
|
|
6826
6825
|
W(s, {
|
|
6827
6826
|
color: "var(--cz8)",
|
|
6828
6827
|
height: "88px",
|
|
6829
6828
|
src: "asai/user"
|
|
6830
6829
|
})
|
|
6831
6830
|
]),
|
|
6832
|
-
|
|
6831
|
+
u("div", qc, g(i(n).lang.asai.page.loadusertoken), 1)
|
|
6833
6832
|
]),
|
|
6834
6833
|
W(l, { ujt: t.ujt }, null, 8, ["ujt"])
|
|
6835
6834
|
])
|
|
@@ -6855,22 +6854,22 @@ const Pt = {
|
|
|
6855
6854
|
return (o, a) => {
|
|
6856
6855
|
const s = E("AsSvg"), l = E("UserCard");
|
|
6857
6856
|
return f(), m("div", Nc, [
|
|
6858
|
-
|
|
6859
|
-
a[0] || (a[0] =
|
|
6860
|
-
|
|
6857
|
+
u("div", null, [
|
|
6858
|
+
a[0] || (a[0] = u("div", null, [
|
|
6859
|
+
u("img", {
|
|
6861
6860
|
src: "./webmodel/files/img/logo.png",
|
|
6862
6861
|
width: "200"
|
|
6863
6862
|
})
|
|
6864
6863
|
], -1)),
|
|
6865
|
-
|
|
6866
|
-
|
|
6864
|
+
u("div", Yc, [
|
|
6865
|
+
u("div", Xc, [
|
|
6867
6866
|
W(s, {
|
|
6868
6867
|
color: "var(--cy8)",
|
|
6869
6868
|
height: "88px",
|
|
6870
6869
|
src: "asai/user"
|
|
6871
6870
|
})
|
|
6872
6871
|
]),
|
|
6873
|
-
|
|
6872
|
+
u("div", Kc, g(i(n).lang.asai.page.loaduseronline), 1)
|
|
6874
6873
|
]),
|
|
6875
6874
|
W(l, { ujt: t.ujt }, null, 8, ["ujt"])
|
|
6876
6875
|
])
|
|
@@ -6897,24 +6896,24 @@ const Pt = {
|
|
|
6897
6896
|
return (o, a) => {
|
|
6898
6897
|
const s = E("AsSvg"), l = E("UserCard");
|
|
6899
6898
|
return f(), m("div", Qc, [
|
|
6900
|
-
|
|
6901
|
-
a[0] || (a[0] =
|
|
6902
|
-
|
|
6899
|
+
u("div", null, [
|
|
6900
|
+
a[0] || (a[0] = u("div", null, [
|
|
6901
|
+
u("img", {
|
|
6903
6902
|
src: "./webmodel/files/img/logo.png",
|
|
6904
6903
|
width: "200"
|
|
6905
6904
|
})
|
|
6906
6905
|
], -1)),
|
|
6907
|
-
|
|
6908
|
-
|
|
6906
|
+
u("div", Zc, [
|
|
6907
|
+
u("div", eu, [
|
|
6909
6908
|
W(s, {
|
|
6910
6909
|
color: "var(--cz8)",
|
|
6911
6910
|
height: "88px",
|
|
6912
6911
|
src: "asai/server"
|
|
6913
6912
|
})
|
|
6914
6913
|
]),
|
|
6915
|
-
|
|
6914
|
+
u("div", tu, g(i(n).lang?.asai?.page?.loadws), 1)
|
|
6916
6915
|
]),
|
|
6917
|
-
|
|
6916
|
+
u("h3", null, g(e.type), 1),
|
|
6918
6917
|
W(l, { ujt: t.ujt }, null, 8, ["ujt"])
|
|
6919
6918
|
])
|
|
6920
6919
|
]);
|
|
@@ -6958,7 +6957,7 @@ const Pt = {
|
|
|
6958
6957
|
key: 0,
|
|
6959
6958
|
to: "#popteleport"
|
|
6960
6959
|
}, [
|
|
6961
|
-
|
|
6960
|
+
u("div", {
|
|
6962
6961
|
class: "as-pop-box-mask-2",
|
|
6963
6962
|
style: Z(s.value),
|
|
6964
6963
|
id: "popmask" + t.id
|
|
@@ -6971,11 +6970,11 @@ const Pt = {
|
|
|
6971
6970
|
key: 0,
|
|
6972
6971
|
to: "#popteleport"
|
|
6973
6972
|
}, [
|
|
6974
|
-
|
|
6973
|
+
u("div", {
|
|
6975
6974
|
class: "as-pop-box-mask-1",
|
|
6976
6975
|
id: "popmask" + t.id
|
|
6977
6976
|
}, [
|
|
6978
|
-
|
|
6977
|
+
u("div", {
|
|
6979
6978
|
class: "as-pop-box-mask-zoom",
|
|
6980
6979
|
style: Z(s.value)
|
|
6981
6980
|
}, [
|
|
@@ -7009,12 +7008,12 @@ const Pt = {
|
|
|
7009
7008
|
return n.pop[e.id]?.nooverflow || (s.overflow = n.pop[e.id]?.conoverflow || "auto"), s;
|
|
7010
7009
|
});
|
|
7011
7010
|
return (s, l) => (f(), m(I, null, [
|
|
7012
|
-
|
|
7011
|
+
u("div", {
|
|
7013
7012
|
class: "as-pop-content",
|
|
7014
7013
|
style: Z(a.value)
|
|
7015
7014
|
}, [
|
|
7016
7015
|
D(s.$slots, "default", {}, () => [
|
|
7017
|
-
|
|
7016
|
+
u("div", cu, g(i(n).pop[e.id]?.con || ""), 1)
|
|
7018
7017
|
], !0)
|
|
7019
7018
|
], 4),
|
|
7020
7019
|
i(n).pop[e.id]?.btns?.length ? (f(), m("div", uu, [
|
|
@@ -7023,15 +7022,15 @@ const Pt = {
|
|
|
7023
7022
|
key: 0,
|
|
7024
7023
|
onTouchstart: l[0] || (l[0] = q(
|
|
7025
7024
|
//@ts-ignore
|
|
7026
|
-
(...
|
|
7025
|
+
(...c) => i(o).As.eStop && i(o).As.eStop(...c),
|
|
7027
7026
|
["stop"]
|
|
7028
7027
|
)),
|
|
7029
7028
|
onPointerdown: l[1] || (l[1] = q(
|
|
7030
7029
|
//@ts-ignore
|
|
7031
|
-
(...
|
|
7030
|
+
(...c) => i(o).As.eStop && i(o).As.eStop(...c),
|
|
7032
7031
|
["stop"]
|
|
7033
7032
|
)),
|
|
7034
|
-
onPointerup: q((
|
|
7033
|
+
onPointerup: q((c) => r.fn(), ["stop"]),
|
|
7035
7034
|
class: J(d ? "" : "cur"),
|
|
7036
7035
|
style: Z(`${r.bg ? `background-color: ${r.bg};` : ""}`)
|
|
7037
7036
|
}, g(r.nm), 47, du)) : (f(), m("div", {
|
|
@@ -7060,7 +7059,7 @@ const Pt = {
|
|
|
7060
7059
|
return (a, s) => {
|
|
7061
7060
|
const l = E("AsSvg");
|
|
7062
7061
|
return f(), m(I, null, [
|
|
7063
|
-
|
|
7062
|
+
u("div", mu, [
|
|
7064
7063
|
i(n).pop[e.id].ico ? (f(), Y(l, {
|
|
7065
7064
|
key: 0,
|
|
7066
7065
|
color: "var(--ch8)",
|
|
@@ -7070,7 +7069,7 @@ const Pt = {
|
|
|
7070
7069
|
ae(" " + g(i(n).pop[e.id].tit || ""), 1)
|
|
7071
7070
|
]),
|
|
7072
7071
|
i(n).pop[e.id]?.noclose ? R("", !0) : (f(), m("div", hu, [
|
|
7073
|
-
|
|
7072
|
+
u("div", {
|
|
7074
7073
|
onPointerdown: s[0] || (s[0] = q((r) => o(), ["stop", "prevent"]))
|
|
7075
7074
|
}, "×", 32)
|
|
7076
7075
|
]))
|
|
@@ -7340,10 +7339,10 @@ const Pt = {
|
|
|
7340
7339
|
}, {
|
|
7341
7340
|
default: le(() => [
|
|
7342
7341
|
D(a.$slots, "default", {}, () => [
|
|
7343
|
-
|
|
7344
|
-
|
|
7345
|
-
|
|
7346
|
-
G(
|
|
7342
|
+
u("div", zu, [
|
|
7343
|
+
u("p", null, g(i(o).lg("asai.confirmpassword")), 1),
|
|
7344
|
+
u("p", null, [
|
|
7345
|
+
G(u("input", {
|
|
7347
7346
|
type: "password",
|
|
7348
7347
|
"show-password": "",
|
|
7349
7348
|
"onUpdate:modelValue": s[0] || (s[0] = (r) => i(n).pop[e.id].pass = r)
|
|
@@ -7386,8 +7385,8 @@ const Pt = {
|
|
|
7386
7385
|
class: J(i(n).pop[e.id]?.css + " as-pop-drop")
|
|
7387
7386
|
}, [
|
|
7388
7387
|
i(n).pop[e.id].stat && i(n).pop[e.id].popstyle?.top != 0 ? D(o.$slots, "poparea", { key: 0 }, () => [
|
|
7389
|
-
|
|
7390
|
-
|
|
7388
|
+
u("div", Iu, [
|
|
7389
|
+
u("div", {
|
|
7391
7390
|
class: "as-pop-drop-pop",
|
|
7392
7391
|
style: Z(i(n).pop[e.id].popstyle)
|
|
7393
7392
|
}, [
|
|
@@ -7398,7 +7397,7 @@ const Pt = {
|
|
|
7398
7397
|
])
|
|
7399
7398
|
], !0) : R("", !0),
|
|
7400
7399
|
D(o.$slots, "desarea", {}, () => [
|
|
7401
|
-
|
|
7400
|
+
u("div", {
|
|
7402
7401
|
class: "as-pop-drop-des",
|
|
7403
7402
|
onPointerdown: a[0] || (a[0] = q((s) => i(n).pop[e.id].stat = i(n).pop[e.id].stat ? 0 : 1, ["stop"]))
|
|
7404
7403
|
}, [
|
|
@@ -7408,11 +7407,11 @@ const Pt = {
|
|
|
7408
7407
|
], 32)
|
|
7409
7408
|
], !0),
|
|
7410
7409
|
i(n).pop[e.id].stat && i(n).pop[e.id].popstyle?.top == 0 ? D(o.$slots, "poparea", { key: 1 }, () => [
|
|
7411
|
-
|
|
7410
|
+
u("div", {
|
|
7412
7411
|
class: "as-pop-drop-area",
|
|
7413
7412
|
id: "pop" + t.id
|
|
7414
7413
|
}, [
|
|
7415
|
-
|
|
7414
|
+
u("div", {
|
|
7416
7415
|
class: "as-pop-drop-pop",
|
|
7417
7416
|
style: Z(i(n).pop[e.id].popstyle)
|
|
7418
7417
|
}, [
|
|
@@ -7458,12 +7457,12 @@ const Pt = {
|
|
|
7458
7457
|
}), _e(() => {
|
|
7459
7458
|
n.pop[e.id] = {};
|
|
7460
7459
|
}), (o, a) => i(n).pop[e.id].stat ? (f(), m(I, { key: 0 }, [
|
|
7461
|
-
|
|
7460
|
+
u("div", {
|
|
7462
7461
|
class: "as-pop-mod-mask",
|
|
7463
7462
|
style: Z(i(n).pop[e.id].maskstyle),
|
|
7464
7463
|
onPointerdown: a[0] || (a[0] = (s) => i(n).pop[e.id].stat = 0)
|
|
7465
7464
|
}, null, 36),
|
|
7466
|
-
|
|
7465
|
+
u("div", {
|
|
7467
7466
|
class: "as-pop-mod-pop",
|
|
7468
7467
|
style: Z(i(n).pop[e.id].popstyle)
|
|
7469
7468
|
}, [
|
|
@@ -7522,9 +7521,9 @@ const Pt = {
|
|
|
7522
7521
|
onTouchstart: r[2] || (r[2] = //@ts-ignore
|
|
7523
7522
|
(...d) => i(o).As.eStop && i(o).As.eStop(...d))
|
|
7524
7523
|
}, [
|
|
7525
|
-
|
|
7524
|
+
u("div", Vu, [
|
|
7526
7525
|
(f(!0), m(I, null, Q(i(n).msg.data, (d) => (f(), m("div", Nu, [
|
|
7527
|
-
|
|
7526
|
+
u("div", {
|
|
7528
7527
|
class: J("as-pop-msg" + (d?.type || ""))
|
|
7529
7528
|
}, [
|
|
7530
7529
|
d?.tit ? (f(), m("div", Yu, g(d.tit), 1)) : R("", !0),
|
|
@@ -7533,7 +7532,7 @@ const Pt = {
|
|
|
7533
7532
|
], 2)
|
|
7534
7533
|
]))), 256))
|
|
7535
7534
|
]),
|
|
7536
|
-
|
|
7535
|
+
u("div", {
|
|
7537
7536
|
class: "as-pop-msg-btn",
|
|
7538
7537
|
title: i(n)?.lang?.asai?.clear
|
|
7539
7538
|
}, "×", 8, Ju)
|
|
@@ -7562,7 +7561,7 @@ const Pt = {
|
|
|
7562
7561
|
let l = function(r) {
|
|
7563
7562
|
let d = null;
|
|
7564
7563
|
if (r === 1 ? n?.msg?.data?.length && (d = n.msg.data.shift()) : (!n?.msg?.data?.length || !n?.msg?.data?.find(
|
|
7565
|
-
(
|
|
7564
|
+
(c) => c.con === r.con && c.tit === r.tit
|
|
7566
7565
|
)) && (r.tm = o.As.getTime(), n.msg.data.push(r)), o.As.localSet(n.msg.key, n.msg.data), d)
|
|
7567
7566
|
return d;
|
|
7568
7567
|
};
|
|
@@ -7594,7 +7593,7 @@ const Pt = {
|
|
|
7594
7593
|
(...d) => i(o).As.eStop && i(o).As.eStop(...d)),
|
|
7595
7594
|
style: Z(s.value?.maskstyle || {})
|
|
7596
7595
|
}, [
|
|
7597
|
-
|
|
7596
|
+
u("div", {
|
|
7598
7597
|
class: J("as-pop-msg" + (s.value?.type || ""))
|
|
7599
7598
|
}, [
|
|
7600
7599
|
s.value?.tit ? (f(), m("div", ed, g(s.value.tit), 1)) : R("", !0),
|
|
@@ -7635,7 +7634,7 @@ const Pt = {
|
|
|
7635
7634
|
}), (l, r) => (f(), m("div", {
|
|
7636
7635
|
class: J(i(n).pop[e.id]?.css + " as-pop-tip")
|
|
7637
7636
|
}, [
|
|
7638
|
-
|
|
7637
|
+
u("div", {
|
|
7639
7638
|
class: "as-pop-tip-des",
|
|
7640
7639
|
onPointerdown: q(a, ["stop"])
|
|
7641
7640
|
}, [
|
|
@@ -7647,14 +7646,14 @@ const Pt = {
|
|
|
7647
7646
|
key: 0,
|
|
7648
7647
|
to: "#popteleport"
|
|
7649
7648
|
}, [
|
|
7650
|
-
|
|
7649
|
+
u("div", {
|
|
7651
7650
|
class: "as-pop-tip-mask",
|
|
7652
7651
|
style: Z(i(n).pop[e.id].maskstyle),
|
|
7653
7652
|
onPointerdown: r[1] || (r[1] = q((d) => s(), ["stop"])),
|
|
7654
7653
|
onTouchstart: r[2] || (r[2] = //@ts-ignore
|
|
7655
7654
|
(...d) => i(o).As.eStop && i(o).As.eStop(...d))
|
|
7656
7655
|
}, [
|
|
7657
|
-
|
|
7656
|
+
u("div", {
|
|
7658
7657
|
class: "as-pop-tip-pop",
|
|
7659
7658
|
id: "pop" + t.id,
|
|
7660
7659
|
style: Z(i(n).pop[e.id].popstyle),
|
|
@@ -7697,15 +7696,15 @@ const Pt = {
|
|
|
7697
7696
|
]),
|
|
7698
7697
|
pop: le(() => [
|
|
7699
7698
|
i(n).pop[t.id].stat ? (f(), m("div", ud, [
|
|
7700
|
-
|
|
7699
|
+
u("div", dd, [
|
|
7701
7700
|
D(o.$slots, "pop", {}, void 0, !0)
|
|
7702
7701
|
]),
|
|
7703
|
-
|
|
7702
|
+
u("div", pd, [
|
|
7704
7703
|
e.fn ? (f(), m("div", {
|
|
7705
7704
|
key: 0,
|
|
7706
7705
|
onPointerdown: a[0] || (a[0] = (l) => e.fn())
|
|
7707
7706
|
}, g(i(n)?.lang?.asai?.confirm), 33)) : R("", !0),
|
|
7708
|
-
|
|
7707
|
+
u("div", {
|
|
7709
7708
|
onPointerdown: a[1] || (a[1] = (l) => i(n).pop[t.id].stat = 0),
|
|
7710
7709
|
class: "cur"
|
|
7711
7710
|
}, g(i(n)?.lang?.asai?.cancel), 33)
|
|
@@ -7733,7 +7732,7 @@ const Pt = {
|
|
|
7733
7732
|
return a(), (s, l) => {
|
|
7734
7733
|
const r = E("AsSvg");
|
|
7735
7734
|
return i(o).lang?.asai?.usercard ? (f(), m("div", gd, [
|
|
7736
|
-
|
|
7735
|
+
u("div", {
|
|
7737
7736
|
onPointerdown: l[0] || (l[0] = (d) => i(n).sethash(i(o).sys?.router?.config?.login || "user/login"))
|
|
7738
7737
|
}, [
|
|
7739
7738
|
W(r, {
|
|
@@ -7743,7 +7742,7 @@ const Pt = {
|
|
|
7743
7742
|
}),
|
|
7744
7743
|
ae(" " + g(i(o).lang.asai.usercard?.login), 1)
|
|
7745
7744
|
], 32),
|
|
7746
|
-
|
|
7745
|
+
u("div", {
|
|
7747
7746
|
class: "cur",
|
|
7748
7747
|
onPointerdown: l[1] || (l[1] = (d) => i(n).As.localInit()),
|
|
7749
7748
|
title: "ctrl+shift+r"
|
|
@@ -7769,10 +7768,10 @@ const Pt = {
|
|
|
7769
7768
|
setup(t) {
|
|
7770
7769
|
const e = t, { $db: n, $fn: o } = e.ujt, { delUser: a } = o.useUser(e);
|
|
7771
7770
|
return a(), (s, l) => (f(), m("div", _d, [
|
|
7772
|
-
|
|
7771
|
+
u("div", $d, [
|
|
7773
7772
|
i(n).channeluser.cur.msg ? (f(), m("h1", kd, g(i(n).channeluser.cur.msg), 1)) : (f(), m("h1", wd, g(i(o).lg("channeluser.ui.delok")), 1)),
|
|
7774
|
-
|
|
7775
|
-
|
|
7773
|
+
u("div", jd, [
|
|
7774
|
+
u("div", {
|
|
7776
7775
|
class: "cur",
|
|
7777
7776
|
onPointerdown: l[0] || (l[0] = (r) => i(o).sethash("user/manage/list/"))
|
|
7778
7777
|
}, g(i(o).lg("channeluser.ui.list")), 33)
|
|
@@ -7791,37 +7790,37 @@ const Pt = {
|
|
|
7791
7790
|
setup(t) {
|
|
7792
7791
|
const e = t, { $db: n, $fn: o } = e.ujt, { userEdit: a } = o.useUser(e);
|
|
7793
7792
|
return (s, l) => (f(), m("div", Pd, [
|
|
7794
|
-
|
|
7793
|
+
u("div", Cd, [
|
|
7795
7794
|
D(s.$slots, "tit"),
|
|
7796
|
-
|
|
7797
|
-
|
|
7798
|
-
G(
|
|
7795
|
+
u("label", null, [
|
|
7796
|
+
u("div", null, g(i(o).lg("channeluser.ui.pw")) + ":", 1),
|
|
7797
|
+
G(u("input", {
|
|
7799
7798
|
type: "password",
|
|
7800
7799
|
"onUpdate:modelValue": l[0] || (l[0] = (r) => i(n).channeluser.cur.pw = r)
|
|
7801
7800
|
}, null, 512), [
|
|
7802
7801
|
[ce, i(n).channeluser.cur.pw]
|
|
7803
7802
|
])
|
|
7804
7803
|
]),
|
|
7805
|
-
|
|
7806
|
-
|
|
7807
|
-
G(
|
|
7804
|
+
u("label", null, [
|
|
7805
|
+
u("div", null, g(i(o).lg("channeluser.ui.pwn")) + ":", 1),
|
|
7806
|
+
G(u("input", {
|
|
7808
7807
|
type: "password",
|
|
7809
7808
|
"onUpdate:modelValue": l[1] || (l[1] = (r) => i(n).channeluser.cur.pwn = r)
|
|
7810
7809
|
}, null, 512), [
|
|
7811
7810
|
[ce, i(n).channeluser.cur.pwn]
|
|
7812
7811
|
])
|
|
7813
7812
|
]),
|
|
7814
|
-
|
|
7815
|
-
|
|
7816
|
-
G(
|
|
7813
|
+
u("label", null, [
|
|
7814
|
+
u("div", null, g(i(o).lg("channeluser.ui.pwnn")) + ":", 1),
|
|
7815
|
+
G(u("input", {
|
|
7817
7816
|
type: "password",
|
|
7818
7817
|
"onUpdate:modelValue": l[2] || (l[2] = (r) => i(n).channeluser.cur.pwnn = r)
|
|
7819
7818
|
}, null, 512), [
|
|
7820
7819
|
[ce, i(n).channeluser.cur.pwnn]
|
|
7821
7820
|
])
|
|
7822
7821
|
]),
|
|
7823
|
-
|
|
7824
|
-
|
|
7822
|
+
u("div", Od, [
|
|
7823
|
+
u("div", {
|
|
7825
7824
|
class: "cur",
|
|
7826
7825
|
onPointerdown: l[3] || (l[3] = (r) => i(a)())
|
|
7827
7826
|
}, g(i(o).lg("channeluser.ui.edit")), 33),
|
|
@@ -7840,27 +7839,27 @@ const Pt = {
|
|
|
7840
7839
|
},
|
|
7841
7840
|
setup(t) {
|
|
7842
7841
|
const e = t, { $db: n, $global: o, $fn: a } = e.ujt, { editUser: s, initUser: l, cmLvList: r } = a.useUser(e);
|
|
7843
|
-
return l(), (d,
|
|
7844
|
-
|
|
7842
|
+
return l(), (d, c) => (f(), m("div", Td, [
|
|
7843
|
+
u("div", zd, [
|
|
7845
7844
|
D(d.$slots, "tit"),
|
|
7846
|
-
|
|
7847
|
-
|
|
7845
|
+
u("label", null, [
|
|
7846
|
+
u("div", null, g(i(a).lg("channeluser.data.us")) + ":", 1),
|
|
7848
7847
|
ae(" " + g(i(n).channeluser.cur.us), 1)
|
|
7849
7848
|
]),
|
|
7850
7849
|
i(n).channeluser.cur.lv < i(o).user?.info?.lv || i(n).channeluser.cur.us === i(o).user?.info?.us ? (f(), m(I, { key: 0 }, [
|
|
7851
|
-
|
|
7852
|
-
|
|
7853
|
-
G(
|
|
7850
|
+
u("label", null, [
|
|
7851
|
+
u("div", null, g(i(a).lg("channeluser.data.pw")) + ":", 1),
|
|
7852
|
+
G(u("input", {
|
|
7854
7853
|
type: "password",
|
|
7855
|
-
"onUpdate:modelValue":
|
|
7854
|
+
"onUpdate:modelValue": c[0] || (c[0] = (p) => i(n).channeluser.cur.pw = p)
|
|
7856
7855
|
}, null, 512), [
|
|
7857
7856
|
[ce, i(n).channeluser.cur.pw]
|
|
7858
7857
|
])
|
|
7859
7858
|
]),
|
|
7860
7859
|
i(n).channeluser.cur.us !== i(o).user?.info?.us ? (f(), m("label", Ld, [
|
|
7861
|
-
|
|
7862
|
-
G(
|
|
7863
|
-
"onUpdate:modelValue":
|
|
7860
|
+
u("div", null, g(i(a).lg("channeluser.data.lv")) + ":", 1),
|
|
7861
|
+
G(u("select", {
|
|
7862
|
+
"onUpdate:modelValue": c[1] || (c[1] = (p) => i(n).channeluser.cur.lv = p)
|
|
7864
7863
|
}, [
|
|
7865
7864
|
(f(!0), m(I, null, Q(i(r), (p) => (f(), m("option", {
|
|
7866
7865
|
key: "lv" + p[0],
|
|
@@ -7870,16 +7869,16 @@ const Pt = {
|
|
|
7870
7869
|
[be, i(n).channeluser.cur.lv]
|
|
7871
7870
|
])
|
|
7872
7871
|
])) : R("", !0),
|
|
7873
|
-
|
|
7874
|
-
|
|
7872
|
+
u("div", Ed, [
|
|
7873
|
+
u("div", {
|
|
7875
7874
|
class: "cur",
|
|
7876
|
-
onPointerdown:
|
|
7875
|
+
onPointerdown: c[2] || (c[2] = (p) => i(s)())
|
|
7877
7876
|
}, g(i(a).lg("channeluser.ui.edit")), 33),
|
|
7878
7877
|
D(d.$slots, "btn")
|
|
7879
7878
|
])
|
|
7880
7879
|
], 64)) : (f(), m(I, { key: 1 }, [
|
|
7881
|
-
|
|
7882
|
-
|
|
7880
|
+
u("div", Id, g(i(a).lg("channeluser.ui.nopower")), 1),
|
|
7881
|
+
u("div", Dd, [
|
|
7883
7882
|
D(d.$slots, "btn")
|
|
7884
7883
|
])
|
|
7885
7884
|
], 64))
|
|
@@ -7897,10 +7896,10 @@ const Pt = {
|
|
|
7897
7896
|
setup(t) {
|
|
7898
7897
|
const e = t, { $fn: n, $global: o } = e.ujt, { userExit: a } = n.useUser(e);
|
|
7899
7898
|
return a(), (s, l) => (f(), m("div", Wd, [
|
|
7900
|
-
|
|
7899
|
+
u("div", Hd, [
|
|
7901
7900
|
D(s.$slots, "tit"),
|
|
7902
|
-
|
|
7903
|
-
|
|
7901
|
+
u("div", qd, [
|
|
7902
|
+
u("div", {
|
|
7904
7903
|
class: "cur",
|
|
7905
7904
|
onPointerdown: l[0] || (l[0] = (r) => i(n).sethash(
|
|
7906
7905
|
i(o).sys?.router?.config?.login || "user/login"
|
|
@@ -7937,7 +7936,7 @@ const Pt = {
|
|
|
7937
7936
|
function d(h) {
|
|
7938
7937
|
o.channeluser.cur.us = "", o.channeluser.cur.pw = "", o.channeluser.cur.lv = 0, a.pop.popdefaultconfirm.stat = 1, a.pop.popdefaultconfirm.full = 1, a.pop.popdefaultconfirm.con = a.lang.channeluser.ui.del + " " + h.us, a.pop.popdefaultconfirm.fn = () => r(h.us);
|
|
7939
7938
|
}
|
|
7940
|
-
function
|
|
7939
|
+
function c(h) {
|
|
7941
7940
|
n.setquery({ us: h.us }, 1), o.channeluser.cur.us = h.us, o.channeluser.cur.pw = h.pw, o.channeluser.cur.lv = h.lv, a.pop.popedituser.stat = 1, a.pop.popedituser.tit = a.lang.channeluser.ui.edit + " " + h.us;
|
|
7942
7941
|
}
|
|
7943
7942
|
const p = X(() => (o?.channeluser?.list || []).filter((h) => +h?.lv <= +a.user?.info?.lv));
|
|
@@ -7955,7 +7954,7 @@ const Pt = {
|
|
|
7955
7954
|
ujt: t.ujt
|
|
7956
7955
|
}, {
|
|
7957
7956
|
btn: le(() => [
|
|
7958
|
-
|
|
7957
|
+
u("div", {
|
|
7959
7958
|
onPointerdown: v[0] || (v[0] = (k) => i(a).pop.popedituser.stat = 0)
|
|
7960
7959
|
}, g(i(n).lg("asai.close")), 33)
|
|
7961
7960
|
]),
|
|
@@ -7964,8 +7963,8 @@ const Pt = {
|
|
|
7964
7963
|
]),
|
|
7965
7964
|
_: 1
|
|
7966
7965
|
}, 8, ["ujt"]),
|
|
7967
|
-
|
|
7968
|
-
|
|
7966
|
+
u("div", Nd, [
|
|
7967
|
+
u("div", Yd, [
|
|
7969
7968
|
D(h.$slots, "tit"),
|
|
7970
7969
|
D(h.$slots, "btn"),
|
|
7971
7970
|
t.showtype ? R("", !0) : (f(), Y(y, {
|
|
@@ -7973,20 +7972,20 @@ const Pt = {
|
|
|
7973
7972
|
ujt: t.ujt,
|
|
7974
7973
|
opt: { channel: "channeluser", model: "asai", ty: 1 }
|
|
7975
7974
|
}, null, 8, ["ujt"])),
|
|
7976
|
-
|
|
7977
|
-
|
|
7978
|
-
|
|
7979
|
-
|
|
7980
|
-
|
|
7975
|
+
u("div", Xd, [
|
|
7976
|
+
u("div", Kd, [
|
|
7977
|
+
u("div", Jd, g(i(a).lang.channeluser.data.us), 1),
|
|
7978
|
+
u("div", Gd, g(i(a).lang.channeluser.data.lv), 1),
|
|
7979
|
+
u("div", Qd, g(i(a).lang.asai.opt), 1)
|
|
7981
7980
|
]),
|
|
7982
7981
|
(f(!0), m(I, null, Q(p.value, (k) => (f(), m("div", null, [
|
|
7983
|
-
|
|
7984
|
-
|
|
7982
|
+
u("div", Zd, g(k.us), 1),
|
|
7983
|
+
u("div", ep, g(i(a).lang.channeluser.lv[k.lv]), 1),
|
|
7985
7984
|
+k.lv < i(a).user?.info?.lv ? (f(), m("div", tp, [
|
|
7986
|
-
|
|
7987
|
-
onPointerdown: (O) =>
|
|
7985
|
+
u("div", {
|
|
7986
|
+
onPointerdown: (O) => c(k)
|
|
7988
7987
|
}, g(i(n).lg("channeluser.ui.edit")), 41, np),
|
|
7989
|
-
|
|
7988
|
+
u("div", {
|
|
7990
7989
|
onPointerdown: (O) => d(k)
|
|
7991
7990
|
}, g(i(n).lg("channeluser.ui.del")), 41, op)
|
|
7992
7991
|
])) : (f(), m("div", ap, "-"))
|
|
@@ -8014,30 +8013,30 @@ const Pt = {
|
|
|
8014
8013
|
setup(t) {
|
|
8015
8014
|
const e = t, { $db: n, $fn: o, $global: a } = e.ujt, { userLogin: s } = o.useUser(e);
|
|
8016
8015
|
return (l, r) => (f(), m("div", rp, [
|
|
8017
|
-
|
|
8016
|
+
u("div", cp, [
|
|
8018
8017
|
D(l.$slots, "tit"),
|
|
8019
8018
|
D(l.$slots, "form", {
|
|
8020
8019
|
opt: { userLogin: i(s) }
|
|
8021
8020
|
}, () => [
|
|
8022
|
-
|
|
8023
|
-
|
|
8024
|
-
G(
|
|
8021
|
+
u("label", null, [
|
|
8022
|
+
u("div", null, g(i(a).lang.channeluser.data.us) + ":", 1),
|
|
8023
|
+
G(u("input", {
|
|
8025
8024
|
"onUpdate:modelValue": r[0] || (r[0] = (d) => i(n).channeluser.cur.us = d)
|
|
8026
8025
|
}, null, 512), [
|
|
8027
8026
|
[ce, i(n).channeluser.cur.us]
|
|
8028
8027
|
])
|
|
8029
8028
|
]),
|
|
8030
|
-
|
|
8031
|
-
|
|
8032
|
-
G(
|
|
8029
|
+
u("label", null, [
|
|
8030
|
+
u("div", null, g(i(a).lang.channeluser.data.pw) + ":", 1),
|
|
8031
|
+
G(u("input", {
|
|
8033
8032
|
type: "password",
|
|
8034
8033
|
"onUpdate:modelValue": r[1] || (r[1] = (d) => i(n).channeluser.cur.pw = d)
|
|
8035
8034
|
}, null, 512), [
|
|
8036
8035
|
[ce, i(n).channeluser.cur.pw]
|
|
8037
8036
|
])
|
|
8038
8037
|
]),
|
|
8039
|
-
|
|
8040
|
-
|
|
8038
|
+
u("div", up, [
|
|
8039
|
+
u("div", {
|
|
8041
8040
|
class: "cur",
|
|
8042
8041
|
onPointerdown: r[2] || (r[2] = (d) => i(s)())
|
|
8043
8042
|
}, g(i(a).lang.channeluser.ui.login), 33),
|
|
@@ -8063,7 +8062,7 @@ const Pt = {
|
|
|
8063
8062
|
o.channeluser.cur.us = "", o.channeluser.cur.pw = "", o.channeluser.cur.lv = 0, a.pop.popadduser.stat = 1, a.pop.popadduser.tit = a.lang.channeluser.ui.add;
|
|
8064
8063
|
}
|
|
8065
8064
|
return (r, d) => {
|
|
8066
|
-
const
|
|
8065
|
+
const c = E("UserRegManage"), p = E("PopBox"), h = E("UserListManage");
|
|
8067
8066
|
return f(), m(I, null, [
|
|
8068
8067
|
W(p, {
|
|
8069
8068
|
ujt: t.ujt,
|
|
@@ -8071,12 +8070,12 @@ const Pt = {
|
|
|
8071
8070
|
full: 1
|
|
8072
8071
|
}, {
|
|
8073
8072
|
default: le(() => [
|
|
8074
|
-
i(a).pop.popadduser?.stat ? (f(), Y(
|
|
8073
|
+
i(a).pop.popadduser?.stat ? (f(), Y(c, {
|
|
8075
8074
|
key: 0,
|
|
8076
8075
|
ujt: t.ujt
|
|
8077
8076
|
}, {
|
|
8078
8077
|
btn: le(() => [
|
|
8079
|
-
|
|
8078
|
+
u("div", {
|
|
8080
8079
|
onPointerdown: d[0] || (d[0] = (v) => i(a).pop.popadduser.stat = 0)
|
|
8081
8080
|
}, g(i(n).lg("asai.close")), 33)
|
|
8082
8081
|
]),
|
|
@@ -8091,8 +8090,8 @@ const Pt = {
|
|
|
8091
8090
|
showtype: t.showtype
|
|
8092
8091
|
}, bt({
|
|
8093
8092
|
btn: le(() => [
|
|
8094
|
-
|
|
8095
|
-
|
|
8093
|
+
u("div", fp, [
|
|
8094
|
+
u("div", {
|
|
8096
8095
|
class: "cur",
|
|
8097
8096
|
onPointerdown: d[1] || (d[1] = (v) => l())
|
|
8098
8097
|
}, g(i(n).lg("channeluser.ui.add")), 33),
|
|
@@ -8111,7 +8110,7 @@ const Pt = {
|
|
|
8111
8110
|
t.showtype ? void 0 : {
|
|
8112
8111
|
name: "tit",
|
|
8113
8112
|
fn: le(() => [
|
|
8114
|
-
|
|
8113
|
+
u("h1", null, g(i(n).lg("channeluser.ui.list")), 1)
|
|
8115
8114
|
]),
|
|
8116
8115
|
key: "0"
|
|
8117
8116
|
}
|
|
@@ -8130,27 +8129,27 @@ const Pt = {
|
|
|
8130
8129
|
setup(t) {
|
|
8131
8130
|
const e = t, { $db: n, $fn: o } = e.ujt, { userReg: a } = o.useUser(e);
|
|
8132
8131
|
return (s, l) => (f(), m("div", gp, [
|
|
8133
|
-
|
|
8132
|
+
u("div", vp, [
|
|
8134
8133
|
D(s.$slots, "tit"),
|
|
8135
|
-
|
|
8136
|
-
|
|
8137
|
-
G(
|
|
8134
|
+
u("label", null, [
|
|
8135
|
+
u("div", null, g(i(o).lg("channeluser.data.us")) + ":", 1),
|
|
8136
|
+
G(u("input", {
|
|
8138
8137
|
"onUpdate:modelValue": l[0] || (l[0] = (r) => i(n).channeluser.cur.us = r)
|
|
8139
8138
|
}, null, 512), [
|
|
8140
8139
|
[ce, i(n).channeluser.cur.us]
|
|
8141
8140
|
])
|
|
8142
8141
|
]),
|
|
8143
|
-
|
|
8144
|
-
|
|
8145
|
-
G(
|
|
8142
|
+
u("label", null, [
|
|
8143
|
+
u("div", null, g(i(o).lg("channeluser.data.pw")) + ":", 1),
|
|
8144
|
+
G(u("input", {
|
|
8146
8145
|
type: "password",
|
|
8147
8146
|
"onUpdate:modelValue": l[1] || (l[1] = (r) => i(n).channeluser.cur.pw = r)
|
|
8148
8147
|
}, null, 512), [
|
|
8149
8148
|
[ce, i(n).channeluser.cur.pw]
|
|
8150
8149
|
])
|
|
8151
8150
|
]),
|
|
8152
|
-
|
|
8153
|
-
|
|
8151
|
+
u("div", yp, [
|
|
8152
|
+
u("div", {
|
|
8154
8153
|
class: "cur",
|
|
8155
8154
|
onPointerdown: l[2] || (l[2] = (r) => i(a)())
|
|
8156
8155
|
}, g(i(o).lg("channeluser.ui.reg")), 33),
|
|
@@ -8170,20 +8169,20 @@ const Pt = {
|
|
|
8170
8169
|
setup(t) {
|
|
8171
8170
|
const e = t, { $db: n, $fn: o } = e.ujt, { addUser: a, cmLvList: s } = o.useUser(e);
|
|
8172
8171
|
return n.channeluser.cur.us = "", n.channeluser.cur.pw = "", n.channeluser.cur.lv = 3, (l, r) => (f(), m("div", $p, [
|
|
8173
|
-
|
|
8172
|
+
u("div", kp, [
|
|
8174
8173
|
D(l.$slots, "tit"),
|
|
8175
|
-
|
|
8176
|
-
|
|
8177
|
-
G(
|
|
8174
|
+
u("label", null, [
|
|
8175
|
+
u("div", null, g(i(o).lg("channeluser.data.us")) + ":", 1),
|
|
8176
|
+
G(u("input", {
|
|
8178
8177
|
autocomplete: "off",
|
|
8179
8178
|
"onUpdate:modelValue": r[0] || (r[0] = (d) => i(n).channeluser.cur.us = d)
|
|
8180
8179
|
}, null, 512), [
|
|
8181
8180
|
[ce, i(n).channeluser.cur.us]
|
|
8182
8181
|
])
|
|
8183
8182
|
]),
|
|
8184
|
-
|
|
8185
|
-
|
|
8186
|
-
G(
|
|
8183
|
+
u("label", null, [
|
|
8184
|
+
u("div", null, g(i(o).lg("channeluser.data.pw")) + ":", 1),
|
|
8185
|
+
G(u("input", {
|
|
8187
8186
|
autocomplete: "off",
|
|
8188
8187
|
type: "password",
|
|
8189
8188
|
"onUpdate:modelValue": r[1] || (r[1] = (d) => i(n).channeluser.cur.pw = d)
|
|
@@ -8191,9 +8190,9 @@ const Pt = {
|
|
|
8191
8190
|
[ce, i(n).channeluser.cur.pw]
|
|
8192
8191
|
])
|
|
8193
8192
|
]),
|
|
8194
|
-
|
|
8195
|
-
|
|
8196
|
-
G(
|
|
8193
|
+
u("label", null, [
|
|
8194
|
+
u("div", null, g(i(o).lg("channeluser.data.lv")) + ":", 1),
|
|
8195
|
+
G(u("select", {
|
|
8197
8196
|
"onUpdate:modelValue": r[2] || (r[2] = (d) => i(n).channeluser.cur.lv = d)
|
|
8198
8197
|
}, [
|
|
8199
8198
|
(f(!0), m(I, null, Q(i(s), (d) => (f(), m("option", {
|
|
@@ -8204,8 +8203,8 @@ const Pt = {
|
|
|
8204
8203
|
[be, i(n).channeluser.cur.lv]
|
|
8205
8204
|
])
|
|
8206
8205
|
]),
|
|
8207
|
-
|
|
8208
|
-
|
|
8206
|
+
u("div", jp, [
|
|
8207
|
+
u("div", {
|
|
8209
8208
|
class: "cur",
|
|
8210
8209
|
onPointerdown: r[3] || (r[3] = (d) => i(a)())
|
|
8211
8210
|
}, g(i(o).lg("channeluser.ui.add")), 33),
|