asai-vue-host 0.0.22 → 0.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/asai-vue-host.es.js +470 -456
- package/dist/asai-vue-host.umd.js +1 -1
- package/package.json +1 -1
package/dist/asai-vue-host.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { computed as H, inject as Ve, reactive as me, provide as gt, defineComponent as A, createBlock as Y, openBlock as p, resolveDynamicComponent as pe, unref as l, resolveComponent as U, createElementBlock as
|
|
1
|
+
import { computed as H, inject as Ve, reactive as me, provide as gt, defineComponent as A, createBlock as Y, openBlock as p, resolveDynamicComponent as pe, unref as l, resolveComponent as U, createElementBlock as h, normalizeClass as K, createVNode as W, onBeforeUnmount as je, resolveDirective as ve, createElementVNode as u, withDirectives as G, Fragment as E, renderList as ee, toDisplayString as v, createCommentVNode as F, renderSlot as D, onUnmounted as $e, onMounted as he, withCtx as re, withModifiers as V, vModelText as de, vModelSelect as we, createTextVNode as se, ref as N, nextTick as be, watch as Oe, withKeys as vt, createStaticVNode as qe, useCssVars as ge, normalizeStyle as Z, defineAsyncComponent as ke, vShow as Ee, Teleport as Ae, shallowReactive as yt, onUpdated as bt, isRef as Pe, vModelDynamic as Te, KeepAlive as _t, createSlots as $t } from "vue";
|
|
2
2
|
const Be = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3
3
|
__proto__: null,
|
|
4
4
|
get default() {
|
|
@@ -55,7 +55,7 @@ function xe(t, e) {
|
|
|
55
55
|
function f(b) {
|
|
56
56
|
c() && e.touchstat !== 1 && (b.addEventListener("touchstart", _, !0), e.touchstat = 1);
|
|
57
57
|
}
|
|
58
|
-
function
|
|
58
|
+
function m(b) {
|
|
59
59
|
c() && e.touchstat !== 2 && (b.addEventListener("touchmove", i), a(b), e.touchstat = 2);
|
|
60
60
|
}
|
|
61
61
|
function g(b) {
|
|
@@ -78,7 +78,7 @@ function xe(t, e) {
|
|
|
78
78
|
setTouchAuto: s,
|
|
79
79
|
fnPThrottle: d,
|
|
80
80
|
vtTouchInit: f,
|
|
81
|
-
vtTouchDown:
|
|
81
|
+
vtTouchDown: m,
|
|
82
82
|
vtTouchUp: g
|
|
83
83
|
};
|
|
84
84
|
}
|
|
@@ -91,7 +91,7 @@ const fe = {}, jt = {
|
|
|
91
91
|
o(t);
|
|
92
92
|
let i = !1, r = 0, d = 0, c = 0, f = 0;
|
|
93
93
|
typeof e.value.domarea == "string" ? fe.dragAreaDom = document.getElementById(e.value.domarea) : fe.dragAreaDom = t;
|
|
94
|
-
const
|
|
94
|
+
const m = ($) => {
|
|
95
95
|
console.log("handleDown", fe, $), a(t), i = !0;
|
|
96
96
|
const y = fe.dragAreaDom.getBoundingClientRect();
|
|
97
97
|
fe.dragAreaDom.style.position = "absolute", fe.dragAreaDom.style.transform = `translate(${y.x}px, ${y.y}px)`, r = $.clientX - y.x, d = $.clientY - y.y, t.style.cursor = "grabbing", document.addEventListener("pointermove", g), document.addEventListener("pointerup", _);
|
|
@@ -106,8 +106,8 @@ const fe = {}, jt = {
|
|
|
106
106
|
}, _ = () => {
|
|
107
107
|
i = !1, t.style.cursor = "grab", s(t), document.removeEventListener("pointermove", g), document.removeEventListener("pointerup", _);
|
|
108
108
|
};
|
|
109
|
-
t.addEventListener("pointerdown",
|
|
110
|
-
t.removeEventListener("pointerdown",
|
|
109
|
+
t.addEventListener("pointerdown", m), fe.unmounted = () => {
|
|
110
|
+
t.removeEventListener("pointerdown", m);
|
|
111
111
|
};
|
|
112
112
|
},
|
|
113
113
|
// 在卸载时清理事件监听
|
|
@@ -125,7 +125,7 @@ const fe = {}, jt = {
|
|
|
125
125
|
);
|
|
126
126
|
o(t);
|
|
127
127
|
let i = !1, r = { x: 0, y: 0 }, d = { x: 0, y: 0 }, c = null, f = 1;
|
|
128
|
-
const
|
|
128
|
+
const m = (e.value?.dom ? document.getElementById(e.value.dom) : "") || t, g = (e.value?.domarea ? document.getElementById(e.value.domarea) : "") || m, _ = (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 = (x) => {
|
|
129
129
|
if (!_) return;
|
|
130
130
|
if (a(t), x.preventDefault(), f = $(), e.value?.pos)
|
|
131
131
|
d = e.value.pos;
|
|
@@ -148,7 +148,7 @@ const fe = {}, jt = {
|
|
|
148
148
|
L = x.clientX, S = x.clientY, r = {
|
|
149
149
|
x: (L - c.left) / f - d.x,
|
|
150
150
|
y: (S - c.top) / f - d.y
|
|
151
|
-
},
|
|
151
|
+
}, m.setPointerCapture(x.pointerId), document.addEventListener("pointermove", b), document.addEventListener("pointerup", k), document.addEventListener("pointercancel", k);
|
|
152
152
|
}, b = (x) => {
|
|
153
153
|
if (!i || !c) return;
|
|
154
154
|
let L, S;
|
|
@@ -170,12 +170,12 @@ const fe = {}, jt = {
|
|
|
170
170
|
).toFixed(3)}px)`;
|
|
171
171
|
});
|
|
172
172
|
}, k = (x) => {
|
|
173
|
-
s(t), x instanceof PointerEvent &&
|
|
173
|
+
s(t), x instanceof PointerEvent && m.hasPointerCapture(x.pointerId) && (i = !1, m.releasePointerCapture(x.pointerId)), document.removeEventListener("pointermove", b), document.removeEventListener("pointerup", k), document.removeEventListener("pointercancel", k);
|
|
174
174
|
};
|
|
175
|
-
|
|
175
|
+
m.addEventListener("pointerdown", y);
|
|
176
176
|
const M = () => c = null;
|
|
177
177
|
window.addEventListener("resize", M), ze.unmounted = () => {
|
|
178
|
-
|
|
178
|
+
m.removeEventListener("pointerdown", y), window.removeEventListener("resize", M);
|
|
179
179
|
};
|
|
180
180
|
},
|
|
181
181
|
unmounted(t) {
|
|
@@ -229,7 +229,7 @@ const At = {
|
|
|
229
229
|
return Object.keys(
|
|
230
230
|
o.data.sys.keyboard?.askeytypes || {}
|
|
231
231
|
)?.find((_) => g.target?.closest(_));
|
|
232
|
-
},
|
|
232
|
+
}, m = function(g) {
|
|
233
233
|
if (n.keyboard.params?.ot?.fnnumcb?.(), n.keyboard.params?.ot?.fndscb?.(), a(), e.value?.auto && (n.keyboard.areastyle.x = g.clientX + (e.value?.auto?.x || 0), n.keyboard.areastyle.y = g.clientY + (e.value?.auto?.y || 0)), n.keyboard.params.ot = {}, !c(g)) if (g.target?.closest(".portaskeyboard"))
|
|
234
234
|
n.keyboard.params.ot.portaskeyboard = !0;
|
|
235
235
|
else if (g.target?.closest(".askey-luaeditor"))
|
|
@@ -262,8 +262,8 @@ const At = {
|
|
|
262
262
|
} else
|
|
263
263
|
n.keyboard.params = {}, n.keyboard.showkeyboard = "";
|
|
264
264
|
};
|
|
265
|
-
a(), t.addEventListener("pointerdown",
|
|
266
|
-
t.removeEventListener("pointerdown",
|
|
265
|
+
a(), t.addEventListener("pointerdown", m), ie.unmounted = () => {
|
|
266
|
+
t.removeEventListener("pointerdown", m);
|
|
267
267
|
};
|
|
268
268
|
}
|
|
269
269
|
},
|
|
@@ -289,14 +289,14 @@ const At = {
|
|
|
289
289
|
n(t);
|
|
290
290
|
const s = e.value.long ? 1e3 : 500;
|
|
291
291
|
let i = null, r = !1, d = 0, c = 0;
|
|
292
|
-
const f = 10,
|
|
292
|
+
const f = 10, m = (y) => {
|
|
293
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), i = window.setTimeout(() => {
|
|
294
294
|
r && e.value.hold && e.value.hold(y);
|
|
295
295
|
}, s);
|
|
296
296
|
}, g = (y) => {
|
|
297
297
|
a(t), i !== null && (clearTimeout(i), i = null), r && (e.value.release && e.value.release(y), r = !1);
|
|
298
298
|
}, $ = {
|
|
299
|
-
down:
|
|
299
|
+
down: m,
|
|
300
300
|
up: g,
|
|
301
301
|
move: (y) => {
|
|
302
302
|
if (!r) return;
|
|
@@ -306,7 +306,7 @@ const At = {
|
|
|
306
306
|
(M > f || x > f) && (i !== null && (clearTimeout(i), i = null), r = !1);
|
|
307
307
|
}
|
|
308
308
|
};
|
|
309
|
-
t.addEventListener("pointerdown",
|
|
309
|
+
t.addEventListener("pointerdown", m), t.addEventListener("pointerup", g), t.addEventListener("pointercancel", g), t.addEventListener("pointerleave", g), t._pressHandlers = $;
|
|
310
310
|
},
|
|
311
311
|
unmounted(t) {
|
|
312
312
|
const e = t._pressHandlers;
|
|
@@ -324,7 +324,7 @@ const At = {
|
|
|
324
324
|
o(t);
|
|
325
325
|
const { ujt: i, size: r, scale: d } = e.value;
|
|
326
326
|
let c = { x: 0, y: 0 }, f;
|
|
327
|
-
const
|
|
327
|
+
const m = {
|
|
328
328
|
width: i?.$global?.sys?.zoomwidth || 1920,
|
|
329
329
|
height: i?.$global?.sys?.zoomheight || 1200
|
|
330
330
|
}, g = () => d || i?.$global?.scale || 1;
|
|
@@ -354,10 +354,10 @@ const At = {
|
|
|
354
354
|
const { clientX: O, clientY: j } = x(C), T = (O - window.scrollX - $) / f, R = (j - window.scrollY - y) / f;
|
|
355
355
|
M.w = +Math.min(
|
|
356
356
|
Math.max(88, b + T),
|
|
357
|
-
|
|
357
|
+
m.width - c.x
|
|
358
358
|
).toFixed(3), M.h = +Math.min(
|
|
359
359
|
Math.max(58, k + R),
|
|
360
|
-
|
|
360
|
+
m.height - c.y
|
|
361
361
|
).toFixed(3), t.style.width = M.w + "px", t.style.height = M.h + "px";
|
|
362
362
|
});
|
|
363
363
|
}, w = (C) => {
|
|
@@ -396,14 +396,14 @@ const At = {
|
|
|
396
396
|
e.value
|
|
397
397
|
);
|
|
398
398
|
o(t);
|
|
399
|
-
const { ujt: i, scale: r, id: d, type: c, cut: f, min:
|
|
399
|
+
const { ujt: i, scale: r, id: d, type: c, cut: f, min: m } = e.value, g = () => r || i?.$global?.scale || 1, _ = {
|
|
400
400
|
width: i?.$global?.sys?.zoomwidth || 1920,
|
|
401
401
|
height: i?.$global?.sys?.zoomheight || 1200
|
|
402
402
|
};
|
|
403
403
|
let $ = f || 0;
|
|
404
404
|
c ? _.height = _.height - $ : _.width = _.width - $;
|
|
405
405
|
function y() {
|
|
406
|
-
return typeof
|
|
406
|
+
return typeof m == "function" ? m() : typeof m?.value == "number" ? m?.value : typeof m == "number" ? m : 100;
|
|
407
407
|
}
|
|
408
408
|
let b, k = 1, M = !1, x = 0, L = 0, S = 0, w = 0;
|
|
409
409
|
const P = (T) => {
|
|
@@ -804,8 +804,8 @@ const At = {
|
|
|
804
804
|
let c = t.codePointAt(s);
|
|
805
805
|
const f = c % d;
|
|
806
806
|
c = (c - f) / d;
|
|
807
|
-
const
|
|
808
|
-
c = (c -
|
|
807
|
+
const m = c % d;
|
|
808
|
+
c = (c - m) / d, a += e[c % d + r] + e[m + r] + e[f + r] + e.charAt(i);
|
|
809
809
|
}
|
|
810
810
|
return a;
|
|
811
811
|
},
|
|
@@ -984,7 +984,7 @@ const At = {
|
|
|
984
984
|
function f() {
|
|
985
985
|
return n[t.opt.channel].cfg.map.lv || "lv";
|
|
986
986
|
}
|
|
987
|
-
function
|
|
987
|
+
function m() {
|
|
988
988
|
return n[t.opt.channel].cfg.map.pw || "pw";
|
|
989
989
|
}
|
|
990
990
|
function g() {
|
|
@@ -1347,7 +1347,7 @@ const At = {
|
|
|
1347
1347
|
w(),
|
|
1348
1348
|
n[t.opt.channel].cfg?.api?.opt || {}
|
|
1349
1349
|
).then((te) => {
|
|
1350
|
-
te?.[0]?.[c()] === Q[c()] && te?.[0]?.[
|
|
1350
|
+
te?.[0]?.[c()] === Q[c()] && te?.[0]?.[m()] === Q[m()] ? (I?.go && n[t.opt.channel].cfg?.url?.login && e.AsRouter.setHref(
|
|
1351
1351
|
n[t.opt.channel].cfg?.url?.login
|
|
1352
1352
|
), o.user.info = {
|
|
1353
1353
|
us: te[0][c()],
|
|
@@ -1412,7 +1412,7 @@ const At = {
|
|
|
1412
1412
|
getChannelKeys: d,
|
|
1413
1413
|
getSnKey: c,
|
|
1414
1414
|
getLvKey: f,
|
|
1415
|
-
getPwKey:
|
|
1415
|
+
getPwKey: m,
|
|
1416
1416
|
getClassKey: g,
|
|
1417
1417
|
getTitleKey: $,
|
|
1418
1418
|
getContentKey: _,
|
|
@@ -1426,14 +1426,14 @@ const At = {
|
|
|
1426
1426
|
}, Symbol.toStringTag, { value: "Module" })), sn = (t) => {
|
|
1427
1427
|
const { $fn: e, $db: n, $global: o } = t.ujt;
|
|
1428
1428
|
function a(f = "webserver") {
|
|
1429
|
-
return new Promise((
|
|
1429
|
+
return new Promise((m, g) => {
|
|
1430
1430
|
try {
|
|
1431
1431
|
let _ = e.As?.localGet("as-user-code");
|
|
1432
|
-
_ ? (_ = e.As.toObj(_), o.code.pri = _[0], o.code.pub = _[1],
|
|
1432
|
+
_ ? (_ = e.As.toObj(_), o.code.pri = _[0], o.code.pub = _[1], m()) : e.api[f]?.apiGet("/api/init/code/").then(($) => {
|
|
1433
1433
|
o.code.pri = $.data[0], o.code.pub = $.data[1], e.As.localSet(
|
|
1434
1434
|
"as-user-code",
|
|
1435
1435
|
e.As.toStr($.data)
|
|
1436
|
-
),
|
|
1436
|
+
), m();
|
|
1437
1437
|
}).catch(($) => {
|
|
1438
1438
|
g($);
|
|
1439
1439
|
});
|
|
@@ -1448,7 +1448,7 @@ const At = {
|
|
|
1448
1448
|
));
|
|
1449
1449
|
}
|
|
1450
1450
|
function i() {
|
|
1451
|
-
return new Promise((f,
|
|
1451
|
+
return new Promise((f, m) => {
|
|
1452
1452
|
try {
|
|
1453
1453
|
o.code.token ? f(o.code.token) : a().then(() => {
|
|
1454
1454
|
s(), o.code.pri && o.user.info?.us ? (o.code.token = e.AsCode.asencode(
|
|
@@ -1457,39 +1457,39 @@ const At = {
|
|
|
1457
1457
|
) + "##" + e.AsCode.asencode(
|
|
1458
1458
|
o.user.info?.lv || 0,
|
|
1459
1459
|
o.code.pri
|
|
1460
|
-
) + "##" + o.code.pub, f(o.code.token)) :
|
|
1460
|
+
) + "##" + o.code.pub, f(o.code.token)) : m("");
|
|
1461
1461
|
}).catch((g) => {
|
|
1462
|
-
|
|
1462
|
+
m(g);
|
|
1463
1463
|
});
|
|
1464
1464
|
} catch (g) {
|
|
1465
|
-
|
|
1465
|
+
m(g);
|
|
1466
1466
|
}
|
|
1467
1467
|
});
|
|
1468
1468
|
}
|
|
1469
1469
|
function r() {
|
|
1470
|
-
return new Promise((f,
|
|
1470
|
+
return new Promise((f, m) => {
|
|
1471
1471
|
try {
|
|
1472
1472
|
i().then(() => {
|
|
1473
1473
|
o.code.token ? d("web").then((g) => {
|
|
1474
1474
|
f();
|
|
1475
1475
|
}).catch((g) => {
|
|
1476
|
-
|
|
1477
|
-
}) :
|
|
1476
|
+
m(g);
|
|
1477
|
+
}) : m();
|
|
1478
1478
|
}).catch((g) => {
|
|
1479
|
-
|
|
1479
|
+
m(g);
|
|
1480
1480
|
});
|
|
1481
1481
|
} catch (g) {
|
|
1482
|
-
|
|
1482
|
+
m(g);
|
|
1483
1483
|
}
|
|
1484
1484
|
});
|
|
1485
1485
|
}
|
|
1486
1486
|
function d(f = "web") {
|
|
1487
|
-
return new Promise((
|
|
1487
|
+
return new Promise((m, g) => {
|
|
1488
1488
|
o.user.online = 0, e.ws[f]?.wsApi({
|
|
1489
1489
|
ty: "user/login",
|
|
1490
1490
|
db: o.user.info
|
|
1491
1491
|
}).then((_) => {
|
|
1492
|
-
_.db ? (o.user.online = 1,
|
|
1492
|
+
_.db ? (o.user.online = 1, m(_)) : e.exit();
|
|
1493
1493
|
}).catch((_) => {
|
|
1494
1494
|
o.msg.fn({
|
|
1495
1495
|
type: "err",
|
|
@@ -1504,8 +1504,8 @@ const At = {
|
|
|
1504
1504
|
return e.ws[f].wsApi({
|
|
1505
1505
|
ty: "user/online",
|
|
1506
1506
|
db: ""
|
|
1507
|
-
}).then((
|
|
1508
|
-
n[t.opt.channel].onlinelist =
|
|
1507
|
+
}).then((m) => {
|
|
1508
|
+
n[t.opt.channel].onlinelist = m.db;
|
|
1509
1509
|
});
|
|
1510
1510
|
}
|
|
1511
1511
|
return {
|
|
@@ -1528,15 +1528,15 @@ const At = {
|
|
|
1528
1528
|
{
|
|
1529
1529
|
ty: "chat/web" + d + "broadcast"
|
|
1530
1530
|
},
|
|
1531
|
-
(
|
|
1532
|
-
n.rooms[d].push(...
|
|
1531
|
+
(m) => {
|
|
1532
|
+
n.rooms[d].push(...m.db), f && f();
|
|
1533
1533
|
}
|
|
1534
1534
|
), !0) : !1;
|
|
1535
1535
|
}
|
|
1536
1536
|
function s(d, c, f = null) {
|
|
1537
1537
|
o(c).then(() => {
|
|
1538
|
-
Array.isArray(d) ? d.forEach((
|
|
1539
|
-
a(
|
|
1538
|
+
Array.isArray(d) ? d.forEach((m) => {
|
|
1539
|
+
a(m, c, f);
|
|
1540
1540
|
}) : typeof d == "string" && a(d, c, f);
|
|
1541
1541
|
});
|
|
1542
1542
|
}
|
|
@@ -1549,12 +1549,12 @@ const At = {
|
|
|
1549
1549
|
ty: "chat/web" + d + "broadcast"
|
|
1550
1550
|
});
|
|
1551
1551
|
}
|
|
1552
|
-
function r(d, c, f,
|
|
1552
|
+
function r(d, c, f, m = "") {
|
|
1553
1553
|
return f.msg ? e.ws[c].wsApi({
|
|
1554
1554
|
ty: "chat/web" + d + "send",
|
|
1555
1555
|
db: f
|
|
1556
1556
|
}).then(() => {
|
|
1557
|
-
f.msg =
|
|
1557
|
+
f.msg = m || "";
|
|
1558
1558
|
}) : Promise.resolve();
|
|
1559
1559
|
}
|
|
1560
1560
|
return { initChatRoom: s, offChatRoom: i, sendChatRoom: r };
|
|
@@ -1572,11 +1572,11 @@ const At = {
|
|
|
1572
1572
|
mediaView: null
|
|
1573
1573
|
}, n = 0) => {
|
|
1574
1574
|
function o(c) {
|
|
1575
|
-
return new Promise((f,
|
|
1575
|
+
return new Promise((f, m) => {
|
|
1576
1576
|
const g = new FileReader();
|
|
1577
1577
|
g.onload = () => {
|
|
1578
1578
|
f(g.result);
|
|
1579
|
-
}, g.onerror =
|
|
1579
|
+
}, g.onerror = m, g.readAsDataURL(
|
|
1580
1580
|
new Blob(c, {
|
|
1581
1581
|
type: "audio/webm"
|
|
1582
1582
|
})
|
|
@@ -1603,8 +1603,8 @@ const At = {
|
|
|
1603
1603
|
const f = await navigator.mediaDevices.getUserMedia(c);
|
|
1604
1604
|
e.mediaNew = new MediaRecorder(f, {
|
|
1605
1605
|
mimeType: n ? "video/webm;codecs=vp9,opus" : "audio/webm;codecs=opus"
|
|
1606
|
-
}), e.mediaNew.stream && e.mediaFnView && e.mediaFnView(e.mediaNew.stream), e.mediaChunks = [], e.mediaNew.ondataavailable = (
|
|
1607
|
-
|
|
1606
|
+
}), e.mediaNew.stream && e.mediaFnView && e.mediaFnView(e.mediaNew.stream), e.mediaChunks = [], e.mediaNew.ondataavailable = (m) => {
|
|
1607
|
+
m.data.size > 0 && e.mediaChunks.push(m.data);
|
|
1608
1608
|
}, e.mediaNew.onstop = async () => {
|
|
1609
1609
|
e.mediaChunks.length != 0 && (e.mediaBase64 = await o(
|
|
1610
1610
|
e.mediaChunks
|
|
@@ -1652,11 +1652,11 @@ const At = {
|
|
|
1652
1652
|
const r = [];
|
|
1653
1653
|
let c = a.novel.muzu.replaceAll(`\r
|
|
1654
1654
|
`, `
|
|
1655
|
-
`).split(a.novel.rule.bkchannel), f,
|
|
1655
|
+
`).split(a.novel.rule.bkchannel), f, m, g;
|
|
1656
1656
|
return c.forEach((_) => {
|
|
1657
1657
|
_ && _.split(a.novel.rule.bkclass).forEach((y, b) => {
|
|
1658
1658
|
b == 0 ? (f = s(y, "ch"), f.cc = [], r.push(f)) : y.split(a.novel.rule.bklist).forEach((M, x) => {
|
|
1659
|
-
x == 0 ? (
|
|
1659
|
+
x == 0 ? (m = s(M, "cl"), m.cc = [], f.cc.push(m)) : (g = s(M, "li"), m.cc.push(g));
|
|
1660
1660
|
});
|
|
1661
1661
|
});
|
|
1662
1662
|
}), r;
|
|
@@ -1751,7 +1751,7 @@ const At = {
|
|
|
1751
1751
|
});
|
|
1752
1752
|
});
|
|
1753
1753
|
}
|
|
1754
|
-
function
|
|
1754
|
+
function m(j) {
|
|
1755
1755
|
j.us && (a.user.info = {
|
|
1756
1756
|
us: j.us,
|
|
1757
1757
|
lv: j.lv || 1
|
|
@@ -1775,7 +1775,7 @@ const At = {
|
|
|
1775
1775
|
function _() {
|
|
1776
1776
|
c().then((j) => {
|
|
1777
1777
|
const T = JSON.parse(j);
|
|
1778
|
-
o.channeluser.cur.pw === T.pw ?
|
|
1778
|
+
o.channeluser.cur.pw === T.pw ? m(T) : a.msg.fn({
|
|
1779
1779
|
type: "err",
|
|
1780
1780
|
tit: n.lg("channeluser.msg.passworderr")
|
|
1781
1781
|
});
|
|
@@ -1994,14 +1994,14 @@ const At = {
|
|
|
1994
1994
|
const { $fn: e, $model: n, $db: o, $dbwork: a, $global: s } = t;
|
|
1995
1995
|
function i(r = "testkdd") {
|
|
1996
1996
|
const d = Ve("$vueProxy");
|
|
1997
|
-
d?.$installplugs(r), d?.["$engine" + r] && (Object.assign(e, d["$engine" + r]), d?.["$engineuse" + r] && Object.assign(e, d["$engineuse" + r])), n[r] || (n[r] = {}), a[r] || (a[r] = {}), o[r] || (o[r] = {}), e.setconfig = (f,
|
|
1997
|
+
d?.$installplugs(r), d?.["$engine" + r] && (Object.assign(e, d["$engine" + r]), d?.["$engineuse" + r] && Object.assign(e, d["$engineuse" + r])), n[r] || (n[r] = {}), a[r] || (a[r] = {}), o[r] || (o[r] = {}), e.setconfig = (f, m) => e.api.webserver.apiPost(
|
|
1998
1998
|
"/api/asaijson/manage/update/?path=./webclient/webmodel/sys/setting/" + f + ".json",
|
|
1999
|
-
|
|
2000
|
-
), e.changelangpro = (f = "") => e.changelang(s.config.langcur || f).then((
|
|
1999
|
+
m
|
|
2000
|
+
), e.changelangpro = (f = "") => e.changelang(s.config.langcur || f).then((m) => {
|
|
2001
2001
|
s?.sys?.local?.lang ? r && e.ws?.[r] && e.ws[r].wsSend({
|
|
2002
2002
|
id: "1",
|
|
2003
2003
|
ty: "common/setlanguage",
|
|
2004
|
-
db:
|
|
2004
|
+
db: m
|
|
2005
2005
|
}) : e.setconfig("settinglang", {
|
|
2006
2006
|
lang: f
|
|
2007
2007
|
});
|
|
@@ -2075,12 +2075,12 @@ const At = {
|
|
|
2075
2075
|
if (!f?.[0])
|
|
2076
2076
|
o.$model.gysfn.log();
|
|
2077
2077
|
else if (f.length > 0) {
|
|
2078
|
-
let
|
|
2078
|
+
let m = "", g = "", _ = "";
|
|
2079
2079
|
if (f[1] && typeof f[1] == "string") {
|
|
2080
2080
|
const [$, y, ...b] = f;
|
|
2081
|
-
g = y, _ = b, Array.isArray(f[0]) && f[0].length === 2 ?
|
|
2081
|
+
g = y, _ = b, Array.isArray(f[0]) && f[0].length === 2 ? m = s(f[0][0], f[0][1], "12px") : typeof f[0] == "number" && (m = a($, 12));
|
|
2082
2082
|
}
|
|
2083
|
-
|
|
2083
|
+
m ? console.log("%c" + g, m, ..._) : console.log(...f);
|
|
2084
2084
|
}
|
|
2085
2085
|
}
|
|
2086
2086
|
}, o.$model.gysfn.log = () => (console.log(
|
|
@@ -2114,12 +2114,12 @@ const At = {
|
|
|
2114
2114
|
i(o.$dbwork),
|
|
2115
2115
|
o.$dbwork
|
|
2116
2116
|
), "Web Model Log。");
|
|
2117
|
-
function a(f,
|
|
2117
|
+
function a(f, m = 18) {
|
|
2118
2118
|
let g = "";
|
|
2119
|
-
return f === 1 ? g = s("black", "pink",
|
|
2119
|
+
return f === 1 ? g = s("black", "pink", m + "px") : f === 2 ? g = s("black", "cyan", m + "px") : f === 3 ? g = s("black", "yellow", m + "px") : f === 4 ? g = s("white", "blue", m + "px") : f === 5 ? g = s("white", "red", m + "px") : f === 6 && (g = s("white", "green", m + "px")), g;
|
|
2120
2120
|
}
|
|
2121
|
-
function s(f,
|
|
2122
|
-
return "font-size:" + g + ";font-weight:bold;border-radius:20px;padding:0 10px;color:" + f + ";background-color:" +
|
|
2121
|
+
function s(f, m, g = "18px") {
|
|
2122
|
+
return "font-size:" + g + ";font-weight:bold;border-radius:20px;padding:0 10px;color:" + f + ";background-color:" + m + ";";
|
|
2123
2123
|
}
|
|
2124
2124
|
function i(f) {
|
|
2125
2125
|
try {
|
|
@@ -2129,7 +2129,7 @@ const At = {
|
|
|
2129
2129
|
}
|
|
2130
2130
|
}
|
|
2131
2131
|
const { fetchPublic: r } = o.$fn.AsaiModel("./webmodel/");
|
|
2132
|
-
o.$fn.initmodel = r, o.$fn.startLink = () => new Promise((f,
|
|
2132
|
+
o.$fn.initmodel = r, o.$fn.startLink = () => new Promise((f, m) => {
|
|
2133
2133
|
o.$fn.initmodel("sys/server.json").then((g) => {
|
|
2134
2134
|
const _ = { api: {}, ws: {} };
|
|
2135
2135
|
["api", "ws"].forEach(($) => {
|
|
@@ -2147,35 +2147,35 @@ const At = {
|
|
|
2147
2147
|
JSON.stringify(_)
|
|
2148
2148
|
), o.$global.link = _, f(o.$global.link);
|
|
2149
2149
|
}).catch((g) => {
|
|
2150
|
-
|
|
2150
|
+
m(g);
|
|
2151
2151
|
});
|
|
2152
2152
|
}), o.$fn.saveLink = (f) => {
|
|
2153
2153
|
o.$global.link = f, o.$fn.As.localSet(
|
|
2154
2154
|
"as-link",
|
|
2155
2155
|
JSON.stringify(o.$global.link)
|
|
2156
2156
|
);
|
|
2157
|
-
}, o.$fn.initLink = (f = 0) => new Promise((
|
|
2157
|
+
}, o.$fn.initLink = (f = 0) => new Promise((m, g) => {
|
|
2158
2158
|
if (f)
|
|
2159
2159
|
o.$fn.startLink().then((_) => {
|
|
2160
|
-
|
|
2160
|
+
m(_);
|
|
2161
2161
|
}).catch((_) => {
|
|
2162
2162
|
g(_);
|
|
2163
2163
|
});
|
|
2164
2164
|
else {
|
|
2165
2165
|
let _ = o.$fn.As.localGet("as-link");
|
|
2166
|
-
_ ? (o.$global.link = JSON.parse(_), o.$global.link?.api && o.$global.link?.ws ?
|
|
2167
|
-
|
|
2166
|
+
_ ? (o.$global.link = JSON.parse(_), o.$global.link?.api && o.$global.link?.ws ? m(o.$global.link) : o.$fn.startLink().then(($) => {
|
|
2167
|
+
m($);
|
|
2168
2168
|
}).catch(($) => {
|
|
2169
2169
|
g($);
|
|
2170
2170
|
})) : o.$fn.startLink().then(($) => {
|
|
2171
|
-
|
|
2171
|
+
m($);
|
|
2172
2172
|
}).catch(($) => {
|
|
2173
2173
|
g($);
|
|
2174
2174
|
});
|
|
2175
2175
|
}
|
|
2176
2176
|
});
|
|
2177
2177
|
const d = /* @__PURE__ */ new Map(), c = /\$(\d+)/g;
|
|
2178
|
-
return o.$fn.lg = (f,
|
|
2178
|
+
return o.$fn.lg = (f, m) => {
|
|
2179
2179
|
if (typeof f != "string" || !f)
|
|
2180
2180
|
return;
|
|
2181
2181
|
let g = d.get(f);
|
|
@@ -2184,8 +2184,8 @@ const At = {
|
|
|
2184
2184
|
(b, k) => b?.[k],
|
|
2185
2185
|
o.$global.lang
|
|
2186
2186
|
);
|
|
2187
|
-
if (!
|
|
2188
|
-
const $ = Array.isArray(
|
|
2187
|
+
if (!m || m.length === 0) return _;
|
|
2188
|
+
const $ = Array.isArray(m) ? m : [m];
|
|
2189
2189
|
return _?.replace(
|
|
2190
2190
|
c,
|
|
2191
2191
|
(b, k) => {
|
|
@@ -2193,46 +2193,46 @@ const At = {
|
|
|
2193
2193
|
return $[M] ?? b;
|
|
2194
2194
|
}
|
|
2195
2195
|
);
|
|
2196
|
-
}, o.$fn.changetheme = (f = "") => new Promise((
|
|
2196
|
+
}, o.$fn.changetheme = (f = "") => new Promise((m, g) => {
|
|
2197
2197
|
try {
|
|
2198
2198
|
let _ = "";
|
|
2199
2199
|
o.$global?.sys?.local?.theme ? _ = o.$fn.As.localGet(
|
|
2200
2200
|
o.$global?.sys?.local?.theme
|
|
2201
|
-
) || o.$model.data.sys.settingtheme.theme || o.$model.data.sys.configdata.theme[0] : _ = o.$model.data.sys.settingtheme.theme || o.$model.data.sys.configdata.theme[0], f && _ === f ?
|
|
2201
|
+
) || o.$model.data.sys.settingtheme.theme || o.$model.data.sys.configdata.theme[0] : _ = o.$model.data.sys.settingtheme.theme || o.$model.data.sys.configdata.theme[0], f && _ === f ? m() : (f === "auto" ? _ = _ == o.$model.data.sys.configdata.theme[0] ? o.$model.data.sys.configdata.theme[1] : o.$model.data.sys.configdata.theme[0] : f && (_ = f), o.$global?.sys?.local?.theme && o.$fn.As.localSet(
|
|
2202
2202
|
o.$global?.sys?.local?.theme,
|
|
2203
2203
|
_
|
|
2204
2204
|
)), _ && o.$global?.config?.theme !== _ && (o.$global?.config?.theme && document?.body?.classList?.contains(
|
|
2205
2205
|
o.$global.config.theme
|
|
2206
2206
|
) && document.body.classList.remove(
|
|
2207
2207
|
o.$global.config.theme
|
|
2208
|
-
), o.$global.config.theme = _), document?.body?.classList?.contains(_) || document.body.classList.add(_),
|
|
2208
|
+
), o.$global.config.theme = _), document?.body?.classList?.contains(_) || document.body.classList.add(_), m();
|
|
2209
2209
|
} catch (_) {
|
|
2210
2210
|
g(_);
|
|
2211
2211
|
}
|
|
2212
2212
|
}), o.$fn.initlang = (f = "") => {
|
|
2213
|
-
let
|
|
2214
|
-
return o.$global?.sys?.local?.lang ?
|
|
2215
|
-
o.$fn.initmodel("lang/dirlang.json",
|
|
2213
|
+
let m = "";
|
|
2214
|
+
return o.$global?.sys?.local?.lang ? m = f || o.$fn.As.localGet(o.$global?.sys?.local?.lang) || o.$model.data.sys.settinglang.lang || o.$model.data.sys.configdata.lang[0] : m = f || o.$model.data.sys.settinglang.lang || o.$model.data.sys.configdata.lang[0], o.$global?.lang || (o.$global.lang = {}), new Promise((g, _) => {
|
|
2215
|
+
o.$fn.initmodel("lang/dirlang.json", m + "/").then(($) => {
|
|
2216
2216
|
Object.assign(o.$global.lang, $), g(o.$global.lang);
|
|
2217
2217
|
}).catch(($) => {
|
|
2218
2218
|
_($);
|
|
2219
2219
|
});
|
|
2220
2220
|
});
|
|
2221
2221
|
}, o.$fn.changelang = (f = "") => {
|
|
2222
|
-
let
|
|
2223
|
-
return o.$global?.sys?.local?.lang ?
|
|
2224
|
-
f &&
|
|
2222
|
+
let m = "";
|
|
2223
|
+
return o.$global?.sys?.local?.lang ? m = o.$fn.As.localGet(o.$global?.sys?.local?.lang) || o.$model.data.sys.settinglang.lang || o.$model.data.sys.configdata.lang[0] : m = o.$global.config.langcur || o.$model.data.sys.settinglang.lang || o.$model.data.sys.configdata.lang[0], new Promise((g, _) => {
|
|
2224
|
+
f && m === f && o.$global?.lang ? g(m) : (f === "auto" ? m = m == o.$model.data.sys.configdata.lang[0] ? o.$model.data.sys.configdata.lang[1] : o.$model.data.sys.configdata.lang[0] : f && (m = f), o.$global?.sys?.local?.lang && o.$fn.As.localSet(
|
|
2225
2225
|
o.$global?.sys?.local?.lang,
|
|
2226
|
-
|
|
2227
|
-
), o.$global?.sys?.local?.lang || !o.$global.config.lang ? (o.$global.config.lang =
|
|
2228
|
-
g(
|
|
2226
|
+
m
|
|
2227
|
+
), o.$global?.sys?.local?.lang || !o.$global.config.lang ? (o.$global.config.lang = m, o.$fn.initlang(m).then(($) => {
|
|
2228
|
+
g(m);
|
|
2229
2229
|
}).catch(($) => {
|
|
2230
2230
|
_($);
|
|
2231
|
-
})) : g(
|
|
2231
|
+
})) : g(m));
|
|
2232
2232
|
});
|
|
2233
2233
|
}, o.$fn.initweb = async (f) => {
|
|
2234
2234
|
try {
|
|
2235
|
-
let
|
|
2235
|
+
let m = function() {
|
|
2236
2236
|
const { protocol: $, hostname: y, port: b, hash: k } = n.location;
|
|
2237
2237
|
o.$global.location = {
|
|
2238
2238
|
protocol: $,
|
|
@@ -2305,31 +2305,31 @@ const At = {
|
|
|
2305
2305
|
);
|
|
2306
2306
|
}
|
|
2307
2307
|
}
|
|
2308
|
-
o.$fn.lo(), await o.$fn.initLink(), await o.$fn.changetheme(),
|
|
2309
|
-
} catch (
|
|
2310
|
-
console.error(666.003,
|
|
2308
|
+
o.$fn.lo(), await o.$fn.initLink(), await o.$fn.changetheme(), m();
|
|
2309
|
+
} catch (m) {
|
|
2310
|
+
console.error(666.003, m);
|
|
2311
2311
|
}
|
|
2312
2312
|
}, o.$fn.initrouter = () => {
|
|
2313
2313
|
if (o.$global?.sys?.devlevel && !o.$global.url[o.$global.module.value]) {
|
|
2314
2314
|
const f = /^\.\/(.*?)\/default\.vue$/;
|
|
2315
2315
|
o.$global.url[o.$global.module.value] = [
|
|
2316
|
-
...Object.keys(o.$model.comps)?.map((
|
|
2317
|
-
if (f.test(
|
|
2318
|
-
const g =
|
|
2316
|
+
...Object.keys(o.$model.comps)?.map((m) => {
|
|
2317
|
+
if (f.test(m)) {
|
|
2318
|
+
const g = m.match(f);
|
|
2319
2319
|
if (g)
|
|
2320
2320
|
return g[1];
|
|
2321
2321
|
}
|
|
2322
2322
|
return "";
|
|
2323
|
-
}).filter((
|
|
2324
|
-
].map((
|
|
2325
|
-
value:
|
|
2326
|
-
label:
|
|
2323
|
+
}).filter((m) => m)
|
|
2324
|
+
].map((m) => ({
|
|
2325
|
+
value: m,
|
|
2326
|
+
label: m
|
|
2327
2327
|
// label: el.slice(el.lastIndexOf('/') + 1),
|
|
2328
2328
|
})), o.$global.url[o.$global.module.value].push(
|
|
2329
2329
|
...Object.keys(o.$model.appmodules.indexRouters).map(
|
|
2330
|
-
(
|
|
2331
|
-
value:
|
|
2332
|
-
label:
|
|
2330
|
+
(m) => ({
|
|
2331
|
+
value: m,
|
|
2332
|
+
label: m,
|
|
2333
2333
|
type: "module"
|
|
2334
2334
|
})
|
|
2335
2335
|
)
|
|
@@ -2396,7 +2396,7 @@ const At = {
|
|
|
2396
2396
|
const e = t, { $global: n } = e.ujt;
|
|
2397
2397
|
return (o, a) => {
|
|
2398
2398
|
const s = U("AsaiComponent");
|
|
2399
|
-
return p(),
|
|
2399
|
+
return p(), h("div", {
|
|
2400
2400
|
id: "asaiwebserver",
|
|
2401
2401
|
class: K(
|
|
2402
2402
|
"asaiweb asaiweb" + (l(n).location?.hasharr?.[0] || "default")
|
|
@@ -2426,7 +2426,7 @@ const At = {
|
|
|
2426
2426
|
});
|
|
2427
2427
|
return a(), (s, i) => {
|
|
2428
2428
|
const r = U("AsaiComponent");
|
|
2429
|
-
return p(),
|
|
2429
|
+
return p(), h("div", {
|
|
2430
2430
|
id: "asaiwebservernode",
|
|
2431
2431
|
class: K("asaiweb asaiweb" + l(o).location?.hasharr?.[0])
|
|
2432
2432
|
}, [
|
|
@@ -2455,7 +2455,7 @@ const At = {
|
|
|
2455
2455
|
});
|
|
2456
2456
|
return a(), (s, i) => {
|
|
2457
2457
|
const r = U("AsaiComponent");
|
|
2458
|
-
return p(),
|
|
2458
|
+
return p(), h("div", {
|
|
2459
2459
|
id: "asaiwebserveruser",
|
|
2460
2460
|
class: K("asaiweb asaiweb" + l(o).location?.hasharr?.[0])
|
|
2461
2461
|
}, [
|
|
@@ -2485,24 +2485,38 @@ const At = {
|
|
|
2485
2485
|
const e = t, n = Ve("$vueProxy"), { $global: o, $fn: a, $model: s } = e.ujt;
|
|
2486
2486
|
s.appmodules = e.appmodules;
|
|
2487
2487
|
function i() {
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
2488
|
+
return new Promise((d, c) => {
|
|
2489
|
+
a.useWs(e.ujt, "web");
|
|
2490
|
+
const { initChannelUserToken: f } = a.useChannelUser({
|
|
2491
|
+
ujt: e.ujt,
|
|
2492
|
+
opt: { channel: "channeluser" }
|
|
2493
|
+
});
|
|
2494
|
+
f().then(() => {
|
|
2495
|
+
a.ws.web.init().then(() => {
|
|
2496
|
+
a.ws.web.wsWatch(
|
|
2497
|
+
{
|
|
2498
|
+
ty: "publish/web"
|
|
2499
|
+
},
|
|
2500
|
+
(m) => {
|
|
2501
|
+
m?.db?.exit && (a.exit(), a.sethash(
|
|
2502
|
+
o.sys?.router?.config?.login || "user/login"
|
|
2503
|
+
)), m?.db?.lang && (m.db.langpm ? m.db.con = a.lg(
|
|
2504
|
+
"asai.hostmsg." + m.db.lang,
|
|
2505
|
+
m.db.langpm
|
|
2506
|
+
) || m.db.con : m.db.con = a.lg(
|
|
2507
|
+
"asai.hostmsg." + m.db.lang
|
|
2508
|
+
) || m.db.con), m?.db === "pong" ? a.ws.web.wsApi("ping").then((g) => {
|
|
2509
|
+
}) : m?.db?.con && o.msg.fn(m.db);
|
|
2510
|
+
}
|
|
2511
|
+
), d();
|
|
2512
|
+
}).catch(c);
|
|
2513
|
+
}).catch(c);
|
|
2514
|
+
});
|
|
2497
2515
|
}
|
|
2498
2516
|
a.initweb(n).then(() => {
|
|
2499
|
-
a.useApi(e.ujt, "webserver")
|
|
2517
|
+
a.useApi(e.ujt, "webserver");
|
|
2500
2518
|
let d = [];
|
|
2501
|
-
o?.sys?.onuserws && d.push(
|
|
2502
|
-
a.ws.web.init().then(() => {
|
|
2503
|
-
i();
|
|
2504
|
-
})
|
|
2505
|
-
), o?.sys?.local?.lang || d.push(
|
|
2519
|
+
o?.sys?.onuserws && d.push(i()), o?.sys?.local?.lang || d.push(
|
|
2506
2520
|
a.api.webserver.apiGet(
|
|
2507
2521
|
"/api/asaifile/manage/once/?path=./webclient/webmodel/sys/setting/settinglang.json"
|
|
2508
2522
|
).then((c) => {
|
|
@@ -2530,8 +2544,8 @@ const At = {
|
|
|
2530
2544
|
ty: "publish/web"
|
|
2531
2545
|
});
|
|
2532
2546
|
}), (d, c) => {
|
|
2533
|
-
const f = U("AsaiWebServerUserOnline"),
|
|
2534
|
-
return l(o).stat.webclient ? (p(),
|
|
2547
|
+
const f = U("AsaiWebServerUserOnline"), m = U("PopMsg"), g = U("PopBoxConfirm"), _ = ve("keyboard");
|
|
2548
|
+
return l(o).stat.webclient ? (p(), h("div", Dn, [
|
|
2535
2549
|
r.value === 0 ? (p(), Y(Ne, {
|
|
2536
2550
|
key: 0,
|
|
2537
2551
|
ujt: t.ujt
|
|
@@ -2546,8 +2560,8 @@ const At = {
|
|
|
2546
2560
|
ujt: t.ujt
|
|
2547
2561
|
}, null, 8, ["ujt"])),
|
|
2548
2562
|
c[0] || (c[0] = u("div", { id: "teleportasai" }, null, -1)),
|
|
2549
|
-
G((p(),
|
|
2550
|
-
W(
|
|
2563
|
+
G((p(), h("div", Rn, [
|
|
2564
|
+
W(m, { ujt: t.ujt }, null, 8, ["ujt"]),
|
|
2551
2565
|
W(g, {
|
|
2552
2566
|
ujt: t.ujt,
|
|
2553
2567
|
id: "popdefaultconfirm"
|
|
@@ -2575,7 +2589,7 @@ const At = {
|
|
|
2575
2589
|
));
|
|
2576
2590
|
return (s, i) => {
|
|
2577
2591
|
const r = U("UserCard");
|
|
2578
|
-
return p(),
|
|
2592
|
+
return p(), h("div", Hn, [
|
|
2579
2593
|
u("div", Vn, [
|
|
2580
2594
|
u("img", {
|
|
2581
2595
|
src: l(n).$cfg.logo,
|
|
@@ -2583,7 +2597,7 @@ const At = {
|
|
|
2583
2597
|
}, null, 8, qn)
|
|
2584
2598
|
]),
|
|
2585
2599
|
u("div", Bn, [
|
|
2586
|
-
(p(!0),
|
|
2600
|
+
(p(!0), h(E, null, ee(a.value, (d) => (p(), h("div", {
|
|
2587
2601
|
class: K(`app-menu${d.type === "module" ? " module" : ""}`),
|
|
2588
2602
|
key: d.value,
|
|
2589
2603
|
onPointerup: (c) => l(o).sethash(d.value === "views" ? "" : d.value)
|
|
@@ -2654,7 +2668,7 @@ const At = {
|
|
|
2654
2668
|
const e = t, { $global: n, $fn: o } = e.ujt;
|
|
2655
2669
|
return o.initrouter(), (a, s) => {
|
|
2656
2670
|
const i = U("MenuShowFix"), r = U("UserCard");
|
|
2657
|
-
return p(),
|
|
2671
|
+
return p(), h(E, null, [
|
|
2658
2672
|
W(i, {
|
|
2659
2673
|
ujt: t.ujt,
|
|
2660
2674
|
menus: l(n).url[l(n).module.value]
|
|
@@ -2667,7 +2681,7 @@ const At = {
|
|
|
2667
2681
|
}, null, 8, oo)
|
|
2668
2682
|
]),
|
|
2669
2683
|
u("div", ao, [
|
|
2670
|
-
(p(!0),
|
|
2684
|
+
(p(!0), h(E, null, ee(l(n).url[l(n).module.value], (d) => (p(), h("div", {
|
|
2671
2685
|
class: K(`app-menu${d.type === "module" ? " module" : ""}`),
|
|
2672
2686
|
key: d.value,
|
|
2673
2687
|
onPointerup: (c) => l(o).sethash(d.value === "views" ? "" : d.value)
|
|
@@ -2694,7 +2708,7 @@ const At = {
|
|
|
2694
2708
|
const e = t, { $global: n, $fn: o } = e.ujt;
|
|
2695
2709
|
return o.initrouter(), (a, s) => {
|
|
2696
2710
|
const i = U("MenuShowFix"), r = U("RouterView");
|
|
2697
|
-
return p(),
|
|
2711
|
+
return p(), h(E, null, [
|
|
2698
2712
|
W(i, {
|
|
2699
2713
|
ujt: t.ujt,
|
|
2700
2714
|
menus: l(n).url[l(n).module.value]
|
|
@@ -2722,7 +2736,7 @@ const At = {
|
|
|
2722
2736
|
});
|
|
2723
2737
|
return a(), (s, i) => {
|
|
2724
2738
|
const r = U("AsaiComponent");
|
|
2725
|
-
return p(),
|
|
2739
|
+
return p(), h("div", {
|
|
2726
2740
|
id: "asaiwebserveruseronline",
|
|
2727
2741
|
class: K("asaiweb asaiweb" + l(o).location?.hasharr?.[0])
|
|
2728
2742
|
}, [
|
|
@@ -2781,7 +2795,7 @@ const At = {
|
|
|
2781
2795
|
},
|
|
2782
2796
|
setup(t) {
|
|
2783
2797
|
const e = t, { $fn: n, $global: o, $db: a } = e.ujt, { setChannelClass: s, getClassKey: i } = n.useChannel(e);
|
|
2784
|
-
return (r, d) => (p(!0),
|
|
2798
|
+
return (r, d) => (p(!0), h(E, null, ee(Object.entries(
|
|
2785
2799
|
l(a)[e.opt.channel].rfdata.rule?.[l(i)()]?.[l(i)() + "data"] || { asai: "All" }
|
|
2786
2800
|
), (c) => D(r.$slots, "default", {
|
|
2787
2801
|
key: c[0],
|
|
@@ -2849,8 +2863,8 @@ const At = {
|
|
|
2849
2863
|
return i(), $e(() => {
|
|
2850
2864
|
a[e.opt.channel] = null;
|
|
2851
2865
|
}), (d, c) => {
|
|
2852
|
-
const f = U("ChannelClass"),
|
|
2853
|
-
return l(a)[e.opt.channel].stat ? (p(),
|
|
2866
|
+
const f = U("ChannelClass"), m = U("ChannelUpDown"), g = U("ChannelListSearch"), _ = U("PopBoxConfirm"), $ = U("ChannelList"), y = U("ChannelListPage"), b = U("ChannelOpt"), k = U("ChannelEdit"), M = U("ChannelShow"), x = U("ChannelAdd");
|
|
2867
|
+
return l(a)[e.opt.channel].stat ? (p(), h("div", {
|
|
2854
2868
|
key: 0,
|
|
2855
2869
|
class: K(e.opt.tyindex == 1 ? "as-channel-column" : "as-channel-row")
|
|
2856
2870
|
}, [
|
|
@@ -2864,8 +2878,8 @@ const At = {
|
|
|
2864
2878
|
opt: t.opt
|
|
2865
2879
|
}, null, 8, ["ujt", "opt"])
|
|
2866
2880
|
]),
|
|
2867
|
-
l(a)[e.opt.channel].cfg?.imex?.keys?.length === 8 ? (p(),
|
|
2868
|
-
W(
|
|
2881
|
+
l(a)[e.opt.channel].cfg?.imex?.keys?.length === 8 ? (p(), h("div", Mo, [
|
|
2882
|
+
W(m, {
|
|
2869
2883
|
ujt: t.ujt,
|
|
2870
2884
|
opt: t.opt
|
|
2871
2885
|
}, null, 8, ["ujt", "opt"])
|
|
@@ -2892,7 +2906,7 @@ const At = {
|
|
|
2892
2906
|
opt: t.opt
|
|
2893
2907
|
}, null, 8, ["ujt", "opt"])
|
|
2894
2908
|
], 8, Lo),
|
|
2895
|
-
l(a)[e.opt.channel].cmPageList.length > 1 ? (p(),
|
|
2909
|
+
l(a)[e.opt.channel].cmPageList.length > 1 ? (p(), h("div", Uo, [
|
|
2896
2910
|
W(y, {
|
|
2897
2911
|
ujt: t.ujt,
|
|
2898
2912
|
opt: t.opt
|
|
@@ -2900,8 +2914,8 @@ const At = {
|
|
|
2900
2914
|
])) : F("", !0)
|
|
2901
2915
|
]),
|
|
2902
2916
|
u("div", Eo, [
|
|
2903
|
-
l(o).location.query?.show ? (p(),
|
|
2904
|
-
l(o).location.query?.showty ? (p(),
|
|
2917
|
+
l(o).location.query?.show ? (p(), h(E, { key: 0 }, [
|
|
2918
|
+
l(o).location.query?.showty ? (p(), h(E, { key: 0 }, [
|
|
2905
2919
|
u("div", Io, [
|
|
2906
2920
|
u("h1", null, v(l(s).data.asai.rulebook.contentedit) + " " + v(l(r)("ui.edit") || "Edit"), 1),
|
|
2907
2921
|
u("div", Do, [
|
|
@@ -2915,7 +2929,7 @@ const At = {
|
|
|
2915
2929
|
ujt: t.ujt,
|
|
2916
2930
|
opt: t.opt
|
|
2917
2931
|
}, null, 8, ["ujt", "opt"])
|
|
2918
|
-
], 64)) : (p(),
|
|
2932
|
+
], 64)) : (p(), h(E, { key: 1 }, [
|
|
2919
2933
|
u("div", Ro, [
|
|
2920
2934
|
u("h1", null, v(l(s).data.asai.rulebook.contentshow) + " " + v(l(r)("ui.show") || "Show"), 1),
|
|
2921
2935
|
u("div", Fo, [
|
|
@@ -2930,7 +2944,7 @@ const At = {
|
|
|
2930
2944
|
opt: t.opt
|
|
2931
2945
|
}, null, 8, ["ujt", "opt"])
|
|
2932
2946
|
], 64))
|
|
2933
|
-
], 64)) : (p(),
|
|
2947
|
+
], 64)) : (p(), h(E, { key: 1 }, [
|
|
2934
2948
|
u("div", Wo, [
|
|
2935
2949
|
u("h1", null, v(l(s).data.asai.rulebook.new) + " " + v(l(r)("ui.add") || "Add"), 1),
|
|
2936
2950
|
u("div", Ho, [
|
|
@@ -2970,7 +2984,7 @@ const At = {
|
|
|
2970
2984
|
setShow: d,
|
|
2971
2985
|
fetchContent: c,
|
|
2972
2986
|
optConfirm: f,
|
|
2973
|
-
getSnKey:
|
|
2987
|
+
getSnKey: m,
|
|
2974
2988
|
channelLang: g
|
|
2975
2989
|
} = n.useChannel(e);
|
|
2976
2990
|
he(() => {
|
|
@@ -2979,8 +2993,8 @@ const At = {
|
|
|
2979
2993
|
const { getPageList: _ } = n.usePage(e);
|
|
2980
2994
|
return o[e.opt.channel].cmPageList = H(() => _(o[e.opt?.channel]?.cmPageSize)), ($, y) => {
|
|
2981
2995
|
const b = U("ChannelListType");
|
|
2982
|
-
return p(!0),
|
|
2983
|
-
key: "list" + (k?.[l(
|
|
2996
|
+
return p(!0), h(E, null, ee(l(o)[e.opt.channel].contentList, (k, M) => D($.$slots, "default", {
|
|
2997
|
+
key: "list" + (k?.[l(m)()] || M),
|
|
2984
2998
|
item: k,
|
|
2985
2999
|
option: { setShow: l(d), delItem: l(s), editItem: l(i), optConfirm: l(f) }
|
|
2986
3000
|
}, () => [
|
|
@@ -2992,7 +3006,7 @@ const At = {
|
|
|
2992
3006
|
option: { setShow: l(d), delItem: l(s), editItem: l(i), optConfirm: l(f) }
|
|
2993
3007
|
}, {
|
|
2994
3008
|
btns: re(() => [
|
|
2995
|
-
3 < l(a).user?.info?.lv ? (p(),
|
|
3009
|
+
3 < l(a).user?.info?.lv ? (p(), h("div", Bo, [
|
|
2996
3010
|
u("div", {
|
|
2997
3011
|
onPointerdown: y[0] || (y[0] = V(() => {
|
|
2998
3012
|
}, ["stop"])),
|
|
@@ -3000,7 +3014,7 @@ const At = {
|
|
|
3000
3014
|
l(f)({
|
|
3001
3015
|
con: l(g)("ui.delconfirm"),
|
|
3002
3016
|
fn: () => {
|
|
3003
|
-
l(s)(k?.[l(
|
|
3017
|
+
l(s)(k?.[l(m)()]);
|
|
3004
3018
|
}
|
|
3005
3019
|
});
|
|
3006
3020
|
}, ["stop"])
|
|
@@ -3008,7 +3022,7 @@ const At = {
|
|
|
3008
3022
|
u("div", {
|
|
3009
3023
|
onPointerdown: y[1] || (y[1] = V(() => {
|
|
3010
3024
|
}, ["stop"])),
|
|
3011
|
-
onPointerup: V((x) => l(i)(k?.[l(
|
|
3025
|
+
onPointerup: V((x) => l(i)(k?.[l(m)()]), ["stop"])
|
|
3012
3026
|
}, v(l(g)("ui.edit") || "Edit"), 41, Yo)
|
|
3013
3027
|
])) : F("", !0)
|
|
3014
3028
|
]),
|
|
@@ -3028,7 +3042,7 @@ const At = {
|
|
|
3028
3042
|
},
|
|
3029
3043
|
setup(t) {
|
|
3030
3044
|
const e = t, { $db: n, $global: o } = e.ujt;
|
|
3031
|
-
return (a, s) => l(n)[e.opt.channel].cmPageList.length > 1 ? (p(!0),
|
|
3045
|
+
return (a, s) => l(n)[e.opt.channel].cmPageList.length > 1 ? (p(!0), h(E, { key: 0 }, ee(l(n)[e.opt.channel].cmPageList, (i) => D(a.$slots, "default", {
|
|
3032
3046
|
key: "listpage" + (i || ""),
|
|
3033
3047
|
item: i,
|
|
3034
3048
|
option: {}
|
|
@@ -3061,7 +3075,7 @@ const At = {
|
|
|
3061
3075
|
item: l(o).location.query,
|
|
3062
3076
|
option: { searchSubmit: l(s) }
|
|
3063
3077
|
}, () => [
|
|
3064
|
-
e.opt?.channel && l(n)[e.opt.channel].cfg.sxs?.length ? (p(),
|
|
3078
|
+
e.opt?.channel && l(n)[e.opt.channel].cfg.sxs?.length ? (p(), h("div", Qo, [
|
|
3065
3079
|
u("div", ea, [
|
|
3066
3080
|
G(u("input", {
|
|
3067
3081
|
"onUpdate:modelValue": d[0] || (d[0] = (c) => l(o).location.query.ss = c),
|
|
@@ -3077,7 +3091,7 @@ const At = {
|
|
|
3077
3091
|
G(u("select", {
|
|
3078
3092
|
"onUpdate:modelValue": d[2] || (d[2] = (c) => l(o).location.query.ssty = c)
|
|
3079
3093
|
}, [
|
|
3080
|
-
(p(!0),
|
|
3094
|
+
(p(!0), h(E, null, ee(l(n)[e.opt.channel].cfg.sss, (c) => (p(), h("option", {
|
|
3081
3095
|
key: c,
|
|
3082
3096
|
value: c === "asai" ? void 0 : c
|
|
3083
3097
|
}, v(c === "asai" ? l(i)("ui.sss") || "Table" : l(n)[e.opt.channel].rfdata?.lang?.[c]), 9, oa))), 128))
|
|
@@ -3087,7 +3101,7 @@ const At = {
|
|
|
3087
3101
|
G(u("select", {
|
|
3088
3102
|
"onUpdate:modelValue": d[3] || (d[3] = (c) => l(o).location.query.sx = c)
|
|
3089
3103
|
}, [
|
|
3090
|
-
(p(!0),
|
|
3104
|
+
(p(!0), h(E, null, ee(l(n)[e.opt.channel].cfg.sxs, (c) => (p(), h("option", {
|
|
3091
3105
|
key: c,
|
|
3092
3106
|
value: c === "asai" ? void 0 : c
|
|
3093
3107
|
}, v(c === "asai" ? l(i)("ui.sxs") || "Sort" : l(n)[e.opt.channel].rfdata?.lang?.[c]), 9, aa))), 128))
|
|
@@ -3097,7 +3111,7 @@ const At = {
|
|
|
3097
3111
|
G(u("select", {
|
|
3098
3112
|
"onUpdate:modelValue": d[4] || (d[4] = (c) => l(o).location.query.sxty = c)
|
|
3099
3113
|
}, [
|
|
3100
|
-
(p(!0),
|
|
3114
|
+
(p(!0), h(E, null, ee(l(i)("ui.sxtys") || [], (c, f) => (p(), h("option", {
|
|
3101
3115
|
key: "sxty" + f,
|
|
3102
3116
|
value: f == 0 ? void 0 : f.toString()
|
|
3103
3117
|
}, v(c), 9, sa))), 128))
|
|
@@ -3126,8 +3140,8 @@ const At = {
|
|
|
3126
3140
|
a.list = r.data;
|
|
3127
3141
|
}), (r, d) => {
|
|
3128
3142
|
const c = U("ChannelListType");
|
|
3129
|
-
return p(!0),
|
|
3130
|
-
key: "list" + (f?.[r.getSnKey()] ||
|
|
3143
|
+
return p(!0), h(E, null, ee(a.list, (f, m) => D(r.$slots, "default", {
|
|
3144
|
+
key: "list" + (f?.[r.getSnKey()] || m),
|
|
3131
3145
|
item: f,
|
|
3132
3146
|
option: { setShow: l(i) }
|
|
3133
3147
|
}, () => [
|
|
@@ -3155,7 +3169,7 @@ const At = {
|
|
|
3155
3169
|
},
|
|
3156
3170
|
setup(t) {
|
|
3157
3171
|
const e = t, { $global: n, $fn: o } = e.ujt, { getTitleKey: a, getSnKey: s } = o.useChannel(e);
|
|
3158
|
-
return (i, r) => (p(),
|
|
3172
|
+
return (i, r) => (p(), h("div", {
|
|
3159
3173
|
class: K(`list${t.item?.[l(s)()] && l(n).location.query?.show === t.item?.[l(s)()] ? " cur" : ""}`)
|
|
3160
3174
|
}, [
|
|
3161
3175
|
u("div", {
|
|
@@ -3182,7 +3196,7 @@ const At = {
|
|
|
3182
3196
|
},
|
|
3183
3197
|
setup(t) {
|
|
3184
3198
|
const e = t, { $global: n, $fn: o } = e.ujt, { getTitleKey: a, getSnKey: s } = o.useChannel(e);
|
|
3185
|
-
return (i, r) => (p(),
|
|
3199
|
+
return (i, r) => (p(), h("div", {
|
|
3186
3200
|
class: K(`pic${t.item?.[l(s)()] && l(n).location.query?.show === t.item?.[l(s)()] ? " cur" : ""}`)
|
|
3187
3201
|
}, [
|
|
3188
3202
|
u("div", {
|
|
@@ -3190,7 +3204,7 @@ const At = {
|
|
|
3190
3204
|
title: t.item?.[l(a)()] || "",
|
|
3191
3205
|
onPointerup: r[0] || (r[0] = V((d) => t.option?.setShow(t.item), ["stop"]))
|
|
3192
3206
|
}, [
|
|
3193
|
-
t.item?.img ? (p(),
|
|
3207
|
+
t.item?.img ? (p(), h("img", {
|
|
3194
3208
|
key: 0,
|
|
3195
3209
|
src: t.item.img,
|
|
3196
3210
|
alt: t.item?.[l(a)()] || ""
|
|
@@ -3329,7 +3343,7 @@ const At = {
|
|
|
3329
3343
|
class: "as-channel-pos",
|
|
3330
3344
|
onPointerup: d[2] || (d[2] = V((c) => l(s)("add"), ["stop"]))
|
|
3331
3345
|
}, v(l(i)("ui.add") || "Add"), 33),
|
|
3332
|
-
l(a)[e.opt.channel]?.cfg?.url?.reg ? (p(),
|
|
3346
|
+
l(a)[e.opt.channel]?.cfg?.url?.reg ? (p(), h(E, { key: 0 }, [
|
|
3333
3347
|
u("div", {
|
|
3334
3348
|
class: "as-channel-pos",
|
|
3335
3349
|
onPointerup: d[3] || (d[3] = V((c) => l(s)("reg"), ["stop"]))
|
|
@@ -3494,7 +3508,7 @@ const At = {
|
|
|
3494
3508
|
}
|
|
3495
3509
|
}));
|
|
3496
3510
|
};
|
|
3497
|
-
function
|
|
3511
|
+
function m() {
|
|
3498
3512
|
s(r, i, f.send, "");
|
|
3499
3513
|
}
|
|
3500
3514
|
const g = Oe(
|
|
@@ -3512,7 +3526,7 @@ const At = {
|
|
|
3512
3526
|
g();
|
|
3513
3527
|
}), ($, y) => {
|
|
3514
3528
|
const b = U("ChatRoomOpt");
|
|
3515
|
-
return p(),
|
|
3529
|
+
return p(), h("div", Ra, [
|
|
3516
3530
|
u("div", Fa, [
|
|
3517
3531
|
D($.$slots, "chatheader", {
|
|
3518
3532
|
opt: {
|
|
@@ -3537,24 +3551,24 @@ const At = {
|
|
|
3537
3551
|
}
|
|
3538
3552
|
}, () => [
|
|
3539
3553
|
u("div", Ha, [
|
|
3540
|
-
(p(!0),
|
|
3554
|
+
(p(!0), h(E, null, ee(l(o).rooms[l(r)], (k, M) => (p(), h("div", {
|
|
3541
3555
|
key: M,
|
|
3542
3556
|
class: K(["chat-message", { self: f.send.us === k.us }])
|
|
3543
3557
|
}, [
|
|
3544
3558
|
u("div", Va, [
|
|
3545
3559
|
u("div", qa, v(k.us), 1),
|
|
3546
3560
|
u("div", Ba, [
|
|
3547
|
-
k.ty == 4 ? (p(),
|
|
3561
|
+
k.ty == 4 ? (p(), h("video", {
|
|
3548
3562
|
key: 0,
|
|
3549
3563
|
style: { "max-width": "100%" },
|
|
3550
3564
|
src: k.msg,
|
|
3551
3565
|
controls: ""
|
|
3552
|
-
}, null, 8, Na)) : k.ty == 3 ? (p(),
|
|
3566
|
+
}, null, 8, Na)) : k.ty == 3 ? (p(), h("audio", {
|
|
3553
3567
|
key: 1,
|
|
3554
3568
|
style: { "max-width": "100%" },
|
|
3555
3569
|
src: k.msg,
|
|
3556
3570
|
controls: ""
|
|
3557
|
-
}, null, 8, Ya)) : (p(),
|
|
3571
|
+
}, null, 8, Ya)) : (p(), h(E, { key: 2 }, [
|
|
3558
3572
|
se(v(k.msg), 1)
|
|
3559
3573
|
], 64))
|
|
3560
3574
|
])
|
|
@@ -3565,7 +3579,7 @@ const At = {
|
|
|
3565
3579
|
], 512),
|
|
3566
3580
|
u("div", Xa, [
|
|
3567
3581
|
u("div", Ka, [
|
|
3568
|
-
f.optty ? (p(),
|
|
3582
|
+
f.optty ? (p(), h("div", Ja, [
|
|
3569
3583
|
W(b, {
|
|
3570
3584
|
ujt: t.ujt,
|
|
3571
3585
|
room: t.room,
|
|
@@ -3588,20 +3602,20 @@ const At = {
|
|
|
3588
3602
|
}, v(t.room?.lang?.opt || l(a).lang.sys.chat.opt), 1)
|
|
3589
3603
|
]),
|
|
3590
3604
|
u("div", Qa, [
|
|
3591
|
-
f.send.ty < 3 ? G((p(),
|
|
3605
|
+
f.send.ty < 3 ? G((p(), h("input", {
|
|
3592
3606
|
key: 0,
|
|
3593
3607
|
ref_key: "inputDom",
|
|
3594
3608
|
ref: c,
|
|
3595
3609
|
type: "text",
|
|
3596
3610
|
"onUpdate:modelValue": y[1] || (y[1] = (k) => f.send.msg = k),
|
|
3597
3611
|
placeholder: t.room?.lang?.placeholder || l(a).lang.sys.chat.placeholder,
|
|
3598
|
-
onKeyup: vt(
|
|
3612
|
+
onKeyup: vt(m, ["enter"])
|
|
3599
3613
|
}, null, 40, es)), [
|
|
3600
3614
|
[de, f.send.msg]
|
|
3601
|
-
]) : (p(),
|
|
3615
|
+
]) : (p(), h("div", ts, v(f.mediaWorking ? f.send.ty == 4 ? "正在录像..." : "正在录音..." : "等待操作..."), 1))
|
|
3602
3616
|
]),
|
|
3603
3617
|
u("div", ns, [
|
|
3604
|
-
u("button", { onClick:
|
|
3618
|
+
u("button", { onClick: m }, v(t.room?.lang?.send || l(a).lang.sys.chat.send), 1)
|
|
3605
3619
|
])
|
|
3606
3620
|
])
|
|
3607
3621
|
], !0)
|
|
@@ -3629,9 +3643,9 @@ const At = {
|
|
|
3629
3643
|
), i = N(null);
|
|
3630
3644
|
return e.mediadata.mediaView = i, (r, d) => {
|
|
3631
3645
|
const c = ve("longpress");
|
|
3632
|
-
return p(),
|
|
3646
|
+
return p(), h("div", ls, [
|
|
3633
3647
|
u("div", is, [
|
|
3634
|
-
t.mediadata.mediaWorking ? (p(),
|
|
3648
|
+
t.mediadata.mediaWorking ? (p(), h("audio", {
|
|
3635
3649
|
key: 0,
|
|
3636
3650
|
class: "as-media-working",
|
|
3637
3651
|
ref_key: "mediaView",
|
|
@@ -3640,7 +3654,7 @@ const At = {
|
|
|
3640
3654
|
playsinline: "",
|
|
3641
3655
|
muted: "",
|
|
3642
3656
|
controls: ""
|
|
3643
|
-
}, null, 512)) : (p(),
|
|
3657
|
+
}, null, 512)) : (p(), h("audio", {
|
|
3644
3658
|
key: 1,
|
|
3645
3659
|
class: "as-media-show",
|
|
3646
3660
|
src: t.mediadata.mediaBase64,
|
|
@@ -3649,11 +3663,11 @@ const At = {
|
|
|
3649
3663
|
controls: ""
|
|
3650
3664
|
}, null, 8, rs))
|
|
3651
3665
|
]),
|
|
3652
|
-
G((p(),
|
|
3666
|
+
G((p(), h("div", {
|
|
3653
3667
|
class: K(["record-button", { recording: t.mediadata.mediaWorking }])
|
|
3654
3668
|
}, [
|
|
3655
3669
|
u("span", cs, v(t.mediadata.mediaWorking ? "松开结束" : "长按录音"), 1),
|
|
3656
|
-
t.mediadata.mediaWorking ? (p(),
|
|
3670
|
+
t.mediadata.mediaWorking ? (p(), h("div", us, [...d[0] || (d[0] = [
|
|
3657
3671
|
qe('<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)
|
|
3658
3672
|
])])) : F("", !0)
|
|
3659
3673
|
], 2)), [
|
|
@@ -3682,11 +3696,11 @@ const At = {
|
|
|
3682
3696
|
const s = a.target.textContent;
|
|
3683
3697
|
console.log(s), e.mediadata?.insertFn?.(s);
|
|
3684
3698
|
}
|
|
3685
|
-
return (a, s) => (p(),
|
|
3699
|
+
return (a, s) => (p(), h("div", {
|
|
3686
3700
|
class: "as-emoji-area",
|
|
3687
3701
|
onPointerdown: o
|
|
3688
3702
|
}, [
|
|
3689
|
-
(p(!0),
|
|
3703
|
+
(p(!0), h(E, null, ee(n.value, (i, r) => (p(), h("i", {
|
|
3690
3704
|
key: "emoji_" + r,
|
|
3691
3705
|
class: "as-emoji-item"
|
|
3692
3706
|
}, v(i), 1))), 128))
|
|
@@ -3715,9 +3729,9 @@ const At = {
|
|
|
3715
3729
|
i.value.srcObject = r, await i.value.play();
|
|
3716
3730
|
}, (r, d) => {
|
|
3717
3731
|
const c = ve("longpress");
|
|
3718
|
-
return p(),
|
|
3732
|
+
return p(), h("div", vs, [
|
|
3719
3733
|
u("div", ys, [
|
|
3720
|
-
t.mediadata.mediaWorking ? (p(),
|
|
3734
|
+
t.mediadata.mediaWorking ? (p(), h("video", {
|
|
3721
3735
|
key: 0,
|
|
3722
3736
|
class: "as-media-working",
|
|
3723
3737
|
ref_key: "mediaView",
|
|
@@ -3725,7 +3739,7 @@ const At = {
|
|
|
3725
3739
|
autoplay: "",
|
|
3726
3740
|
playsinline: "",
|
|
3727
3741
|
muted: ""
|
|
3728
|
-
}, null, 512)) : (p(),
|
|
3742
|
+
}, null, 512)) : (p(), h("video", {
|
|
3729
3743
|
key: 1,
|
|
3730
3744
|
class: "as-media-show",
|
|
3731
3745
|
src: t.mediadata.mediaBase64,
|
|
@@ -3734,11 +3748,11 @@ const At = {
|
|
|
3734
3748
|
controls: ""
|
|
3735
3749
|
}, null, 8, bs))
|
|
3736
3750
|
]),
|
|
3737
|
-
G((p(),
|
|
3751
|
+
G((p(), h("div", {
|
|
3738
3752
|
class: K(["record-button", { recording: t.mediadata.mediaWorking }])
|
|
3739
3753
|
}, [
|
|
3740
3754
|
u("span", _s, v(t.mediadata.mediaWorking ? "松开结束" : "长按录音"), 1),
|
|
3741
|
-
t.mediadata.mediaWorking ? (p(),
|
|
3755
|
+
t.mediadata.mediaWorking ? (p(), h("div", $s, [...d[0] || (d[0] = [
|
|
3742
3756
|
qe('<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)
|
|
3743
3757
|
])])) : F("", !0)
|
|
3744
3758
|
], 2)), [
|
|
@@ -3785,15 +3799,15 @@ const At = {
|
|
|
3785
3799
|
function r(d = null) {
|
|
3786
3800
|
console.log(666.006, "setOptty", d), d ? (e.chatdata.optty = d[0], e.chatdata.optcomp = d[1]) : (e.chatdata.optty = 1, e.chatdata.optcomp = "");
|
|
3787
3801
|
}
|
|
3788
|
-
return (d, c) => (p(),
|
|
3789
|
-
t.chatdata.optty == 1 ? (p(!0),
|
|
3802
|
+
return (d, c) => (p(), h("div", xs, [
|
|
3803
|
+
t.chatdata.optty == 1 ? (p(!0), h(E, { key: 0 }, ee(o.types, (f) => (p(), h("div", {
|
|
3790
3804
|
class: "as-chatopt-li",
|
|
3791
|
-
onPointerdown: (
|
|
3805
|
+
onPointerdown: (m) => r(f),
|
|
3792
3806
|
key: "li" + f[0]
|
|
3793
3807
|
}, [
|
|
3794
3808
|
u("div", Ps, v(f[2]), 1),
|
|
3795
3809
|
u("div", Cs, v(l(n).lang.sys.chat[f[1]]), 1)
|
|
3796
|
-
], 40, Ss))), 128)) : (p(),
|
|
3810
|
+
], 40, Ss))), 128)) : (p(), h(E, { key: 1 }, [
|
|
3797
3811
|
u("div", As, [
|
|
3798
3812
|
u("div", {
|
|
3799
3813
|
class: "as-chatopt-btn",
|
|
@@ -3809,7 +3823,7 @@ const At = {
|
|
|
3809
3823
|
ujt: t.ujt,
|
|
3810
3824
|
room: t.room,
|
|
3811
3825
|
mediadata: t.chatdata
|
|
3812
|
-
}, null, 8, ["ujt", "room", "mediadata"])) : (p(),
|
|
3826
|
+
}, null, 8, ["ujt", "room", "mediadata"])) : (p(), h(E, { key: 1 }, [
|
|
3813
3827
|
se(v(l(n).lang.sys.chat.optNoComp), 1)
|
|
3814
3828
|
], 64))
|
|
3815
3829
|
], 64))
|
|
@@ -3834,7 +3848,7 @@ const At = {
|
|
|
3834
3848
|
}
|
|
3835
3849
|
return { initKeyboard: n };
|
|
3836
3850
|
}, Ls = (t, e) => {
|
|
3837
|
-
const { $global: n, $fn: o, $model: a } = t, s = {}, i = (c, f,
|
|
3851
|
+
const { $global: n, $fn: o, $model: a } = t, s = {}, i = (c, f, m, g = null, _ = null) => {
|
|
3838
3852
|
if (e.keyMap.bd.Type == "Chinese" && g === "left") {
|
|
3839
3853
|
e.keyMap.bd.zhindex < 1 ? e.keyMap.bd.zhindex = 0 : e.keyMap.bd.zhindex--;
|
|
3840
3854
|
return;
|
|
@@ -3865,9 +3879,9 @@ const At = {
|
|
|
3865
3879
|
return;
|
|
3866
3880
|
}
|
|
3867
3881
|
}
|
|
3868
|
-
c.value = f, e.keyMap.bd.pos =
|
|
3882
|
+
c.value = f, e.keyMap.bd.pos = m, c.dispatchEvent(new Event("input", { bubbles: !0 }));
|
|
3869
3883
|
try {
|
|
3870
|
-
c.focus(), c.setSelectionRange(
|
|
3884
|
+
c.focus(), c.setSelectionRange(m, m);
|
|
3871
3885
|
} catch {
|
|
3872
3886
|
n.keyboard.params?.ot?.fnnumcb?.();
|
|
3873
3887
|
}
|
|
@@ -3885,8 +3899,8 @@ const At = {
|
|
|
3885
3899
|
s.default = (c = {}) => {
|
|
3886
3900
|
n.keyboard.params.ot.isnumber && !/[0-9.-]/.test(c.key) || r(c);
|
|
3887
3901
|
}, s.Backspace = (c = {}) => {
|
|
3888
|
-
const f = c.startPos === c.endPos ? c.startPos - 1 : c.startPos,
|
|
3889
|
-
i(c.elDom,
|
|
3902
|
+
const f = c.startPos === c.endPos ? c.startPos - 1 : c.startPos, m = c.elVal.slice(0, f) + c.elVal.slice(c.endPos);
|
|
3903
|
+
i(c.elDom, m, f, 0);
|
|
3890
3904
|
}, s.Left = (c = {}) => {
|
|
3891
3905
|
i(
|
|
3892
3906
|
c.elDom,
|
|
@@ -3958,24 +3972,24 @@ const At = {
|
|
|
3958
3972
|
}, s.v = async (c = {}) => {
|
|
3959
3973
|
e.keyMap.bd.Ctrl ? await s.Paste(c) : r(c);
|
|
3960
3974
|
}, s["▲"] = async (c = {}) => {
|
|
3961
|
-
const
|
|
3962
|
-
|
|
3975
|
+
const m = c.elVal.split(".")[1]?.length || 0;
|
|
3976
|
+
m ? c.elVal = (+c.elVal + 1 / Math.pow(10, m)).toFixed(m) : c.elVal++, i(c.elDom, c.elVal, c.startPos, 0);
|
|
3963
3977
|
}, s["▼"] = async (c = {}) => {
|
|
3964
|
-
const
|
|
3965
|
-
|
|
3978
|
+
const m = c.elVal.split(".")[1]?.length || 0;
|
|
3979
|
+
m ? c.elVal = (+c.elVal - 1 / Math.pow(10, m)).toFixed(m) : c.elVal--, i(c.elDom, c.elVal, c.startPos, 0);
|
|
3966
3980
|
};
|
|
3967
3981
|
function d(c = {}) {
|
|
3968
3982
|
n.pop["popkeyboard" + c.key].stat = 1;
|
|
3969
3983
|
}
|
|
3970
3984
|
return e.keyMap.popkeys.forEach((c) => {
|
|
3971
3985
|
c.startsWith("pop") ? s[c] = (f = {}) => {
|
|
3972
|
-
d(f), n.pop["popkeyboard" + c].fn = (
|
|
3973
|
-
s.default({ ...f, key:
|
|
3986
|
+
d(f), n.pop["popkeyboard" + c].fn = (m) => {
|
|
3987
|
+
s.default({ ...f, key: m }), n.pop["popkeyboard" + c].stat = 0;
|
|
3974
3988
|
};
|
|
3975
3989
|
} : s[c] = (f = {}) => {
|
|
3976
3990
|
n.pop["popkeyboard" + c] = {
|
|
3977
|
-
fn: (
|
|
3978
|
-
s.default({ ...f, key:
|
|
3991
|
+
fn: (m) => {
|
|
3992
|
+
s.default({ ...f, key: m });
|
|
3979
3993
|
}
|
|
3980
3994
|
};
|
|
3981
3995
|
};
|
|
@@ -4032,7 +4046,7 @@ const At = {
|
|
|
4032
4046
|
c(), s.bd.Type = r?.value?.[0];
|
|
4033
4047
|
}, 10);
|
|
4034
4048
|
});
|
|
4035
|
-
},
|
|
4049
|
+
}, m = async (y) => {
|
|
4036
4050
|
const b = o.keyboard.params?.el;
|
|
4037
4051
|
if (!b)
|
|
4038
4052
|
return;
|
|
@@ -4056,7 +4070,7 @@ const At = {
|
|
|
4056
4070
|
return b;
|
|
4057
4071
|
}, _ = (y, b) => {
|
|
4058
4072
|
let k = !1;
|
|
4059
|
-
s.bd.Type === "Chinese" && (y === "Backspace" ? (s.bd.zhs && (s.bd.zhs = s.bd.zhs.slice(0, -1), s.bd.zharr = g(s.bd.zhs), k = !0), s.bd.zhs || (s.bd.zharr = [], s.bd.zhindex = 0)) : ["Space", "Enter"].includes(y) ? s.bd.zharr?.length && (y = s.bd.zharr[s.bd.zhindex], s.bd.zhs = "", s.bd.zhindex = 0, s.bd.zharr = []) : "qwertyuiopasdfghjklzxcvbnm".includes(y) ? (s.bd.zhs += y, s.bd.zharr = g(s.bd.zhs), s.bd.zhindex = 0, k = !0) : y?.length > 1 && i[y] || (s.bd.zhs && (s.bd.zhs = ""), s.bd.zharr?.length && (b.classList.contains("zh-li") || (y = s.bd.zharr[0] + y), s.bd.zhs = "", s.bd.zhindex = 0, s.bd.zharr = []))), !k &&
|
|
4073
|
+
s.bd.Type === "Chinese" && (y === "Backspace" ? (s.bd.zhs && (s.bd.zhs = s.bd.zhs.slice(0, -1), s.bd.zharr = g(s.bd.zhs), k = !0), s.bd.zhs || (s.bd.zharr = [], s.bd.zhindex = 0)) : ["Space", "Enter"].includes(y) ? s.bd.zharr?.length && (y = s.bd.zharr[s.bd.zhindex], s.bd.zhs = "", s.bd.zhindex = 0, s.bd.zharr = []) : "qwertyuiopasdfghjklzxcvbnm".includes(y) ? (s.bd.zhs += y, s.bd.zharr = g(s.bd.zhs), s.bd.zhindex = 0, k = !0) : y?.length > 1 && i[y] || (s.bd.zhs && (s.bd.zhs = ""), s.bd.zharr?.length && (b.classList.contains("zh-li") || (y = s.bd.zharr[0] + y), s.bd.zhs = "", s.bd.zhindex = 0, s.bd.zharr = []))), !k && m(y);
|
|
4060
4074
|
}, $ = (y) => {
|
|
4061
4075
|
const b = y.target;
|
|
4062
4076
|
if (!b.classList.contains("askey")) return;
|
|
@@ -4075,7 +4089,7 @@ const At = {
|
|
|
4075
4089
|
};
|
|
4076
4090
|
return (y, b) => {
|
|
4077
4091
|
const k = U("PopDrop"), M = ve("dragzoom");
|
|
4078
|
-
return p(),
|
|
4092
|
+
return p(), h("div", {
|
|
4079
4093
|
class: "keyboard-container",
|
|
4080
4094
|
id: "keyboardarea",
|
|
4081
4095
|
onPointerdown: $,
|
|
@@ -4083,9 +4097,9 @@ const At = {
|
|
|
4083
4097
|
onPointercancel: $
|
|
4084
4098
|
}, [
|
|
4085
4099
|
u("div", Us, [
|
|
4086
|
-
G((p(),
|
|
4100
|
+
G((p(), h("div", Es, [
|
|
4087
4101
|
u("div", Is, [
|
|
4088
|
-
(p(!0),
|
|
4102
|
+
(p(!0), h(E, null, ee(r.value, (x) => (p(), h("div", {
|
|
4089
4103
|
class: K(s.bd.Type == x ? "active" : ""),
|
|
4090
4104
|
key: x,
|
|
4091
4105
|
onPointerdown: V((L) => s.bd.Type = x, ["stop"])
|
|
@@ -4110,51 +4124,51 @@ const At = {
|
|
|
4110
4124
|
scale: t.opt?.scale
|
|
4111
4125
|
}]
|
|
4112
4126
|
]),
|
|
4113
|
-
l(o).keyboard.comps?.[s.bd.Type] ? (p(),
|
|
4127
|
+
l(o).keyboard.comps?.[s.bd.Type] ? (p(), h("div", {
|
|
4114
4128
|
key: 0,
|
|
4115
|
-
onPointerdown: b[1] || (b[1] = (x) =>
|
|
4129
|
+
onPointerdown: b[1] || (b[1] = (x) => m(s.bd.Type)),
|
|
4116
4130
|
class: "keyboard-comp"
|
|
4117
4131
|
}, [
|
|
4118
4132
|
(p(), Y(pe(d(l(o).keyboard.comps[s.bd.Type])), {
|
|
4119
4133
|
ujt: t.ujt,
|
|
4120
4134
|
onChange: l(o).pop["popkeyboard" + s.bd.Type]?.fn
|
|
4121
4135
|
}, null, 40, ["ujt", "onChange"]))
|
|
4122
|
-
], 32)) : (p(),
|
|
4123
|
-
(p(!0),
|
|
4136
|
+
], 32)) : (p(), h("div", Fs, [
|
|
4137
|
+
(p(!0), h(E, null, ee(s.mapkeys[s.bd.Type], (x, L) => (p(), h("div", {
|
|
4124
4138
|
class: "keyboard-row",
|
|
4125
4139
|
key: "row" + L
|
|
4126
4140
|
}, [
|
|
4127
|
-
s.bd.Type === "Chinese" && L === 0 ? (p(),
|
|
4128
|
-
s.bd.zhs ? (p(),
|
|
4141
|
+
s.bd.Type === "Chinese" && L === 0 ? (p(), h(E, { key: 0 }, [
|
|
4142
|
+
s.bd.zhs ? (p(), h("div", Ws, [
|
|
4129
4143
|
u("div", Hs, v(s.bd.zhs), 1),
|
|
4130
|
-
s.bd?.zharr?.length ? (p(),
|
|
4144
|
+
s.bd?.zharr?.length ? (p(), h("div", Vs, [
|
|
4131
4145
|
u("div", qs, [
|
|
4132
|
-
(p(!0),
|
|
4146
|
+
(p(!0), h(E, null, ee(s.bd.zharr, (S, w) => (p(), h("div", {
|
|
4133
4147
|
key: "zh" + w,
|
|
4134
4148
|
class: K(`askey zh-li${s.bd.zhindex == w ? " zh-cur" : ""}`),
|
|
4135
4149
|
"data-key": S
|
|
4136
4150
|
}, v(S), 11, Bs))), 128))
|
|
4137
4151
|
])
|
|
4138
|
-
])) : (p(),
|
|
4152
|
+
])) : (p(), h("div", {
|
|
4139
4153
|
key: 1,
|
|
4140
4154
|
class: "zh-list-area",
|
|
4141
4155
|
onPointerdown: b[2] || (b[2] = V((S) => s.bd.zhs = "", ["stop"]))
|
|
4142
4156
|
}, [
|
|
4143
4157
|
u("div", Ns, v(l(o).lang.sys?.keyboard?.pynomatch), 1)
|
|
4144
4158
|
], 32))
|
|
4145
|
-
])) : (p(),
|
|
4159
|
+
])) : (p(), h("div", Ys, [
|
|
4146
4160
|
u("div", Xs, v(l(o).lang.sys?.keyboard?.pyclick), 1)
|
|
4147
4161
|
]))
|
|
4148
|
-
], 64)) : (p(!0),
|
|
4162
|
+
], 64)) : (p(!0), h(E, { key: 1 }, ee(x, (S, w) => (p(), h("div", {
|
|
4149
4163
|
class: "keyboard-item",
|
|
4150
4164
|
key: "k" + S?.[0],
|
|
4151
4165
|
style: Z({ width: `${S[1]}%` })
|
|
4152
4166
|
}, [
|
|
4153
|
-
S[2] == 2 ? (p(),
|
|
4167
|
+
S[2] == 2 ? (p(), h(E, { key: 0 }, [], 64)) : S[3] ? (p(), h("button", {
|
|
4154
4168
|
key: 1,
|
|
4155
4169
|
class: K(`askey keyboard-key${S[2] ? " key-bg" : ""}${s.bd[S[3]] ? " active" : ""}`),
|
|
4156
4170
|
"data-key": S[0]
|
|
4157
|
-
}, v(l(o).lang.sys?.keyboard?.[S[0]] || S[0]), 11, Ks)) : S[0] === "Drag" ? G((p(),
|
|
4171
|
+
}, v(l(o).lang.sys?.keyboard?.[S[0]] || S[0]), 11, Ks)) : S[0] === "Drag" ? G((p(), h("button", Js, [
|
|
4158
4172
|
se(v(l(o).lang.sys?.keyboard?.[S[0]] || S[0]), 1)
|
|
4159
4173
|
])), [
|
|
4160
4174
|
[M, {
|
|
@@ -4176,7 +4190,7 @@ const At = {
|
|
|
4176
4190
|
}, v(l(o).lang.sys?.keyboard?.[S[0]] || (s.bd.Shift ? S[0].toUpperCase() : S[0])), 11, Gs)
|
|
4177
4191
|
]),
|
|
4178
4192
|
poparea: re(() => [
|
|
4179
|
-
l(o).keyboard?.comps?.[S[0]] ? (p(),
|
|
4193
|
+
l(o).keyboard?.comps?.[S[0]] ? (p(), h("div", {
|
|
4180
4194
|
key: 0,
|
|
4181
4195
|
class: K(
|
|
4182
4196
|
"as-pop-keyboard" + (s.popkeysx.includes(
|
|
@@ -4192,10 +4206,10 @@ const At = {
|
|
|
4192
4206
|
ujt: t.ujt,
|
|
4193
4207
|
onChange: l(o).pop["popkeyboard" + S[0]].fn
|
|
4194
4208
|
}, null, 40, ["ujt", "onChange"]))
|
|
4195
|
-
], 2)) : (p(),
|
|
4209
|
+
], 2)) : (p(), h("div", Zs, "No component!"))
|
|
4196
4210
|
]),
|
|
4197
4211
|
_: 2
|
|
4198
|
-
}, 1032, ["ujt", "id"])) : (p(),
|
|
4212
|
+
}, 1032, ["ujt", "id"])) : (p(), h("button", {
|
|
4199
4213
|
key: 4,
|
|
4200
4214
|
class: K(`askey keyboard-key${S[2] ? " key-bg" : ""}`),
|
|
4201
4215
|
"data-key": S[0]
|
|
@@ -4241,11 +4255,11 @@ const At = {
|
|
|
4241
4255
|
e.opt?.pos?.auto && (n.wd.w = document?.documentElement?.clientWidth || document?.body?.clientWidth, n.wd.h = document?.documentElement?.clientHeight || document?.body?.clientHeight);
|
|
4242
4256
|
}), (r, d) => {
|
|
4243
4257
|
const c = U("AsKeyBoard"), f = ve("popresizezoom");
|
|
4244
|
-
return p(),
|
|
4258
|
+
return p(), h("div", {
|
|
4245
4259
|
style: Z(s.value),
|
|
4246
4260
|
id: "askeyboardmask"
|
|
4247
4261
|
}, [
|
|
4248
|
-
G((p(),
|
|
4262
|
+
G((p(), h("div", {
|
|
4249
4263
|
id: "askeyboardarea",
|
|
4250
4264
|
style: Z(i.value)
|
|
4251
4265
|
}, [
|
|
@@ -4297,17 +4311,17 @@ const At = {
|
|
|
4297
4311
|
}
|
|
4298
4312
|
return he(() => {
|
|
4299
4313
|
i();
|
|
4300
|
-
}), (c, f) => s.link ? (p(),
|
|
4314
|
+
}), (c, f) => s.link ? (p(), h("div", ll, [
|
|
4301
4315
|
u("div", il, [
|
|
4302
|
-
(p(!0),
|
|
4316
|
+
(p(!0), h(E, null, ee(s.link, (m, g) => (p(), h("div", {
|
|
4303
4317
|
class: "as-link-type",
|
|
4304
4318
|
key: "type" + g
|
|
4305
4319
|
}, [
|
|
4306
4320
|
u("div", rl, v(l(n).lang.sys.link.class[g]), 1),
|
|
4307
|
-
(p(!0),
|
|
4321
|
+
(p(!0), h(E, null, ee(m, (_, $) => (p(), h(E, {
|
|
4308
4322
|
key: "key" + $
|
|
4309
4323
|
}, [
|
|
4310
|
-
_?.close ? F("", !0) : (p(),
|
|
4324
|
+
_?.close ? F("", !0) : (p(), h("div", cl, [
|
|
4311
4325
|
u("div", ul, v(l(n).lang.sys.link[$]) + ": ", 1),
|
|
4312
4326
|
u("div", dl, [
|
|
4313
4327
|
G(u("input", {
|
|
@@ -4317,7 +4331,7 @@ const At = {
|
|
|
4317
4331
|
[de, _.url]
|
|
4318
4332
|
])
|
|
4319
4333
|
]),
|
|
4320
|
-
g == "ws" ? (p(),
|
|
4334
|
+
g == "ws" ? (p(), h("div", fl, v(l(a)?.[$]?.open ? "☑" : "☒"), 1)) : F("", !0)
|
|
4321
4335
|
]))
|
|
4322
4336
|
], 64))), 128))
|
|
4323
4337
|
]))), 128))
|
|
@@ -4325,15 +4339,15 @@ const At = {
|
|
|
4325
4339
|
u("div", ml, [
|
|
4326
4340
|
u("div", {
|
|
4327
4341
|
class: "btn",
|
|
4328
|
-
onPointerdown: f[0] || (f[0] = (
|
|
4342
|
+
onPointerdown: f[0] || (f[0] = (m) => r())
|
|
4329
4343
|
}, "确认修改", 32),
|
|
4330
4344
|
u("div", {
|
|
4331
4345
|
class: "btn",
|
|
4332
|
-
onPointerdown: f[1] || (f[1] = (
|
|
4346
|
+
onPointerdown: f[1] || (f[1] = (m) => d())
|
|
4333
4347
|
}, "恢复默认", 32),
|
|
4334
4348
|
u("div", {
|
|
4335
4349
|
class: "btn",
|
|
4336
|
-
onPointerdown: f[2] || (f[2] = (
|
|
4350
|
+
onPointerdown: f[2] || (f[2] = (m) => i())
|
|
4337
4351
|
}, "取消修改", 32)
|
|
4338
4352
|
])
|
|
4339
4353
|
])) : F("", !0);
|
|
@@ -4365,7 +4379,7 @@ const At = {
|
|
|
4365
4379
|
wait: 300,
|
|
4366
4380
|
immediate: !1
|
|
4367
4381
|
}
|
|
4368
|
-
}), i = N(!1), r = N(!1), d = N(!1), c = N(""), f = N(16),
|
|
4382
|
+
}), i = N(!1), r = N(!1), d = N(!1), c = N(""), f = N(16), m = N([]), g = H(() => {
|
|
4369
4383
|
let J = {};
|
|
4370
4384
|
return J = $.value?.find(
|
|
4371
4385
|
(oe) => oe.sn === n.location.query?.id
|
|
@@ -4379,8 +4393,8 @@ const At = {
|
|
|
4379
4393
|
}, L = () => {
|
|
4380
4394
|
r.value = !1, c.value = "", _.value = [];
|
|
4381
4395
|
}, S = (J) => {
|
|
4382
|
-
const oe =
|
|
4383
|
-
oe > -1 ?
|
|
4396
|
+
const oe = m.value.indexOf(J);
|
|
4397
|
+
oe > -1 ? m.value.splice(oe, 1) : m.value.push(J);
|
|
4384
4398
|
}, w = (J) => {
|
|
4385
4399
|
o.setquery({ id: J.sn }), i.value = !1;
|
|
4386
4400
|
}, P = () => {
|
|
@@ -4421,10 +4435,10 @@ const At = {
|
|
|
4421
4435
|
d.value = window.innerWidth <= 768;
|
|
4422
4436
|
};
|
|
4423
4437
|
return he(() => {
|
|
4424
|
-
B(), window.addEventListener("resize", B), a.value[0].cc.length > 0 &&
|
|
4438
|
+
B(), window.addEventListener("resize", B), a.value[0].cc.length > 0 && m.value.push(a.value[0].cc[0].sn);
|
|
4425
4439
|
}), je(() => {
|
|
4426
4440
|
window.removeEventListener("resize", B);
|
|
4427
|
-
}), (J, oe) => (p(),
|
|
4441
|
+
}), (J, oe) => (p(), h("div", yl, [
|
|
4428
4442
|
u("header", bl, [
|
|
4429
4443
|
u("div", _l, [
|
|
4430
4444
|
u("button", {
|
|
@@ -4483,8 +4497,8 @@ const At = {
|
|
|
4483
4497
|
onClick: L
|
|
4484
4498
|
}, "×")
|
|
4485
4499
|
]),
|
|
4486
|
-
_.value.length > 0 ? (p(),
|
|
4487
|
-
(p(!0),
|
|
4500
|
+
_.value.length > 0 ? (p(), h("div", jl, [
|
|
4501
|
+
(p(!0), h(E, null, ee(_.value, (ae, ue) => (p(), h("div", {
|
|
4488
4502
|
key: ue,
|
|
4489
4503
|
class: "search-result-item",
|
|
4490
4504
|
onClick: (Me) => R(ae)
|
|
@@ -4495,7 +4509,7 @@ const At = {
|
|
|
4495
4509
|
innerHTML: ae.preview
|
|
4496
4510
|
}, null, 8, Pl)
|
|
4497
4511
|
], 8, xl))), 128))
|
|
4498
|
-
])) : c.value && _.value.length === 0 ? (p(),
|
|
4512
|
+
])) : c.value && _.value.length === 0 ? (p(), h("div", Cl, " 未找到相关内容 ")) : F("", !0)
|
|
4499
4513
|
])
|
|
4500
4514
|
], 2),
|
|
4501
4515
|
u("div", Al, [
|
|
@@ -4504,7 +4518,7 @@ const At = {
|
|
|
4504
4518
|
}, [
|
|
4505
4519
|
u("div", Ol, [
|
|
4506
4520
|
u("h2", Ml, v(l(a)[0].ch), 1),
|
|
4507
|
-
(p(!0),
|
|
4521
|
+
(p(!0), h(E, null, ee(l(a)[0].cc, (ae) => (p(), h("div", {
|
|
4508
4522
|
key: ae.sn,
|
|
4509
4523
|
class: "volume-item"
|
|
4510
4524
|
}, [
|
|
@@ -4515,14 +4529,14 @@ const At = {
|
|
|
4515
4529
|
u("h3", zl, v(ae.cl), 1),
|
|
4516
4530
|
u("span", {
|
|
4517
4531
|
class: K(["toggle-icon", {
|
|
4518
|
-
expanded:
|
|
4532
|
+
expanded: m.value.includes(
|
|
4519
4533
|
ae.sn
|
|
4520
4534
|
)
|
|
4521
4535
|
}])
|
|
4522
4536
|
}, " ▼ ", 2)
|
|
4523
4537
|
], 8, Tl),
|
|
4524
4538
|
G(u("ul", Ll, [
|
|
4525
|
-
(p(!0),
|
|
4539
|
+
(p(!0), h(E, null, ee(ae.cc, (ue) => (p(), h("li", {
|
|
4526
4540
|
key: ue.sn,
|
|
4527
4541
|
class: K(["chapter-item", {
|
|
4528
4542
|
active: g.value?.sn === ue.sn
|
|
@@ -4530,7 +4544,7 @@ const At = {
|
|
|
4530
4544
|
onClick: (Me) => w(ue)
|
|
4531
4545
|
}, v(ue.li), 11, Ul))), 128))
|
|
4532
4546
|
], 512), [
|
|
4533
|
-
[Ee,
|
|
4547
|
+
[Ee, m.value.includes(ae.sn)]
|
|
4534
4548
|
])
|
|
4535
4549
|
]))), 128))
|
|
4536
4550
|
])
|
|
@@ -4541,8 +4555,8 @@ const At = {
|
|
|
4541
4555
|
u("h2", Rl, v(g.value.li), 1),
|
|
4542
4556
|
u("div", Fl, [
|
|
4543
4557
|
u("span", null, " 第" + v(y.value + 1) + "章 ", 1),
|
|
4544
|
-
(p(!0),
|
|
4545
|
-
g.value[ae] && !["co", "li", "sn", "ty"].includes(ae) ? (p(),
|
|
4558
|
+
(p(!0), h(E, null, ee(Object.keys(g.value), (ae) => (p(), h(E, null, [
|
|
4559
|
+
g.value[ae] && !["co", "li", "sn", "ty"].includes(ae) ? (p(), h("span", Wl, v(g.value[ae]), 1)) : F("", !0)
|
|
4546
4560
|
], 64))), 256))
|
|
4547
4561
|
])
|
|
4548
4562
|
]),
|
|
@@ -4578,7 +4592,7 @@ const At = {
|
|
|
4578
4592
|
])
|
|
4579
4593
|
])
|
|
4580
4594
|
]),
|
|
4581
|
-
d.value ? (p(),
|
|
4595
|
+
d.value ? (p(), h("div", Kl, [
|
|
4582
4596
|
u("button", {
|
|
4583
4597
|
class: "fab-btn",
|
|
4584
4598
|
onClick: M
|
|
@@ -4635,7 +4649,7 @@ const At = {
|
|
|
4635
4649
|
const e = t, { $global: n } = e.ujt, o = H(() => n.pagebusy?.zindex || 9999);
|
|
4636
4650
|
return (a, s) => {
|
|
4637
4651
|
const i = ve("dbpointerdown");
|
|
4638
|
-
return l(n).pagebusy ? G((p(),
|
|
4652
|
+
return l(n).pagebusy ? G((p(), h("div", Ql, [
|
|
4639
4653
|
u("div", {
|
|
4640
4654
|
class: "as-pagebusy-spin",
|
|
4641
4655
|
style: Z({
|
|
@@ -4716,14 +4730,14 @@ const At = {
|
|
|
4716
4730
|
height: `${e.height}`
|
|
4717
4731
|
};
|
|
4718
4732
|
}
|
|
4719
|
-
return (r, d) => (p(),
|
|
4720
|
-
t.showtype === "filter" ? (p(),
|
|
4733
|
+
return (r, d) => (p(), h("i", ai, [
|
|
4734
|
+
t.showtype === "filter" ? (p(), h("i", si, [
|
|
4721
4735
|
u("img", {
|
|
4722
4736
|
style: Z(i()),
|
|
4723
4737
|
src: o.value,
|
|
4724
4738
|
onError: d[0] || (d[0] = (c) => a())
|
|
4725
4739
|
}, null, 44, li)
|
|
4726
|
-
])) : (p(),
|
|
4740
|
+
])) : (p(), h("i", {
|
|
4727
4741
|
key: 1,
|
|
4728
4742
|
class: "as-icon-mask",
|
|
4729
4743
|
style: Z(s())
|
|
@@ -4748,15 +4762,15 @@ const At = {
|
|
|
4748
4762
|
o.api.webserver.apiPost(
|
|
4749
4763
|
`/api/asaifile/manage/upbase64/?path=${n.opt.path}`,
|
|
4750
4764
|
f
|
|
4751
|
-
).then((
|
|
4752
|
-
a("onUpload",
|
|
4765
|
+
).then((m) => {
|
|
4766
|
+
a("onUpload", m?.data, c), s.value.value = "";
|
|
4753
4767
|
});
|
|
4754
4768
|
}) : (a("onUpload", "", c), s.value.value = "");
|
|
4755
4769
|
}
|
|
4756
4770
|
function r() {
|
|
4757
4771
|
s.value.click();
|
|
4758
4772
|
}
|
|
4759
|
-
return (d, c) => (p(),
|
|
4773
|
+
return (d, c) => (p(), h("div", {
|
|
4760
4774
|
class: "as-upload-file",
|
|
4761
4775
|
onPointerdown: c[0] || (c[0] = (f) => r())
|
|
4762
4776
|
}, [
|
|
@@ -4790,8 +4804,8 @@ const At = {
|
|
|
4790
4804
|
if (c)
|
|
4791
4805
|
if (!n.opt?.size || c.size <= n.opt?.size) {
|
|
4792
4806
|
const f = new FileReader();
|
|
4793
|
-
f.onload = (
|
|
4794
|
-
const g =
|
|
4807
|
+
f.onload = (m) => {
|
|
4808
|
+
const g = m.target?.result;
|
|
4795
4809
|
a("onUpload", g, c), s.value.value = "";
|
|
4796
4810
|
}, f.readAsText(c);
|
|
4797
4811
|
} else
|
|
@@ -4800,7 +4814,7 @@ const At = {
|
|
|
4800
4814
|
function r() {
|
|
4801
4815
|
s.value.click();
|
|
4802
4816
|
}
|
|
4803
|
-
return (d, c) => (p(),
|
|
4817
|
+
return (d, c) => (p(), h("div", {
|
|
4804
4818
|
class: "as-upload-txt",
|
|
4805
4819
|
onPointerdown: c[0] || (c[0] = (f) => r())
|
|
4806
4820
|
}, [
|
|
@@ -4832,10 +4846,10 @@ const At = {
|
|
|
4832
4846
|
const e = t, { $global: n } = e.ujt;
|
|
4833
4847
|
return (o, a) => {
|
|
4834
4848
|
const s = U("UserCard");
|
|
4835
|
-
return p(),
|
|
4849
|
+
return p(), h("div", yi, [
|
|
4836
4850
|
u("div", bi, [
|
|
4837
4851
|
a[0] || (a[0] = u("div", { class: "error-code" }, "404", -1)),
|
|
4838
|
-
l(n).lang?.asai?.page?.page404 ? (p(),
|
|
4852
|
+
l(n).lang?.asai?.page?.page404 ? (p(), h("h1", _i, v(l(n).lang?.asai?.page?.page404 || "页面未找到"), 1)) : F("", !0),
|
|
4839
4853
|
u("p", $i, v(l(n).lang?.asai?.page?.reason404 || "Sorry, Page not found!"), 1)
|
|
4840
4854
|
]),
|
|
4841
4855
|
u("div", ki, [
|
|
@@ -4855,7 +4869,7 @@ const At = {
|
|
|
4855
4869
|
},
|
|
4856
4870
|
setup(t) {
|
|
4857
4871
|
const e = t, { $fn: n } = e.ujt;
|
|
4858
|
-
return (o, a) => (p(),
|
|
4872
|
+
return (o, a) => (p(), h("div", {
|
|
4859
4873
|
class: "as-lang",
|
|
4860
4874
|
onPointerdown: a[0] || (a[0] = (s) => t.fn ? t.fn() : l(n).changelang("auto"))
|
|
4861
4875
|
}, [
|
|
@@ -4874,7 +4888,7 @@ const At = {
|
|
|
4874
4888
|
},
|
|
4875
4889
|
setup(t) {
|
|
4876
4890
|
const e = t, { $fn: n, $global: o } = e.ujt;
|
|
4877
|
-
return (a, s) => (p(),
|
|
4891
|
+
return (a, s) => (p(), h("div", {
|
|
4878
4892
|
class: "as-theme",
|
|
4879
4893
|
onPointerdown: s[0] || (s[0] = (i) => l(n).changetheme("auto"))
|
|
4880
4894
|
}, [
|
|
@@ -4909,7 +4923,7 @@ const At = {
|
|
|
4909
4923
|
set(C) {
|
|
4910
4924
|
s("update:modelValue", C);
|
|
4911
4925
|
}
|
|
4912
|
-
}), r = N(""), d = N(""), c = N(null), f = N(null),
|
|
4926
|
+
}), r = N(""), d = N(""), c = N(null), f = N(null), m = N({
|
|
4913
4927
|
x: 0,
|
|
4914
4928
|
y: 0,
|
|
4915
4929
|
width: 0,
|
|
@@ -4926,11 +4940,11 @@ const At = {
|
|
|
4926
4940
|
originalHeight: 0,
|
|
4927
4941
|
direction: null
|
|
4928
4942
|
}), _ = H(() => ({
|
|
4929
|
-
transform: `translate(${
|
|
4930
|
-
width: `${
|
|
4931
|
-
height: `${
|
|
4943
|
+
transform: `translate(${m.value.x}px, ${m.value.y}px)`,
|
|
4944
|
+
width: `${m.value.width}px`,
|
|
4945
|
+
height: `${m.value.height}px`
|
|
4932
4946
|
})), $ = H(
|
|
4933
|
-
() =>
|
|
4947
|
+
() => m.value.width > 0 && m.value.height > 0
|
|
4934
4948
|
), y = (C) => {
|
|
4935
4949
|
const O = C.target.files[0];
|
|
4936
4950
|
if (!O) return;
|
|
@@ -4943,7 +4957,7 @@ const At = {
|
|
|
4943
4957
|
if (!C || !O)
|
|
4944
4958
|
return;
|
|
4945
4959
|
const j = Math.min(O.clientWidth, C.naturalWidth), T = Math.min(O.clientHeight, C.naturalHeight), R = Math.min(j * 0.8, C.naturalWidth), B = Math.min(T * 0.8, C.naturalHeight);
|
|
4946
|
-
|
|
4960
|
+
m.value = {
|
|
4947
4961
|
x: (j - R) / 2,
|
|
4948
4962
|
y: (T - B) / 2,
|
|
4949
4963
|
width: R,
|
|
@@ -4957,10 +4971,10 @@ const At = {
|
|
|
4957
4971
|
type: C,
|
|
4958
4972
|
startX: T.clientX,
|
|
4959
4973
|
startY: T.clientY,
|
|
4960
|
-
originalX:
|
|
4961
|
-
originalY:
|
|
4962
|
-
originalWidth:
|
|
4963
|
-
originalHeight:
|
|
4974
|
+
originalX: m.value.x,
|
|
4975
|
+
originalY: m.value.y,
|
|
4976
|
+
originalWidth: m.value.width,
|
|
4977
|
+
originalHeight: m.value.height,
|
|
4964
4978
|
direction: O
|
|
4965
4979
|
};
|
|
4966
4980
|
const R = (B) => {
|
|
@@ -4976,16 +4990,16 @@ const At = {
|
|
|
4976
4990
|
0,
|
|
4977
4991
|
Math.min(
|
|
4978
4992
|
g.value.originalX + T,
|
|
4979
|
-
|
|
4993
|
+
m.value.maxWidth - m.value.width
|
|
4980
4994
|
)
|
|
4981
4995
|
), J = Math.max(
|
|
4982
4996
|
0,
|
|
4983
4997
|
Math.min(
|
|
4984
4998
|
g.value.originalY + R,
|
|
4985
|
-
|
|
4999
|
+
m.value.maxHeight - m.value.height
|
|
4986
5000
|
)
|
|
4987
5001
|
);
|
|
4988
|
-
Object.assign(
|
|
5002
|
+
Object.assign(m.value, { x: B, y: J });
|
|
4989
5003
|
}, x = (C) => {
|
|
4990
5004
|
const O = window.event || C, j = O.touches ? O.touches[0] : O;
|
|
4991
5005
|
if (g.value.type !== "resize") return;
|
|
@@ -4997,7 +5011,7 @@ const At = {
|
|
|
4997
5011
|
100,
|
|
4998
5012
|
Math.min(
|
|
4999
5013
|
g.value.originalWidth + T,
|
|
5000
|
-
|
|
5014
|
+
m.value.maxWidth - ae
|
|
5001
5015
|
)
|
|
5002
5016
|
), oe = Math.max(100, g.value.originalHeight - R), ue = Math.max(0, g.value.originalY + R);
|
|
5003
5017
|
break;
|
|
@@ -5011,7 +5025,7 @@ const At = {
|
|
|
5011
5025
|
J = Math.max(100, g.value.originalWidth - T), oe = Math.max(100, g.value.originalHeight + R), ae = Math.max(0, g.value.originalX + T);
|
|
5012
5026
|
break;
|
|
5013
5027
|
}
|
|
5014
|
-
J = Math.min(J,
|
|
5028
|
+
J = Math.min(J, m.value.maxWidth - ae), oe = Math.min(oe, m.value.maxHeight - ue), Object.assign(m.value, {
|
|
5015
5029
|
x: ae,
|
|
5016
5030
|
y: ue,
|
|
5017
5031
|
width: J,
|
|
@@ -5021,16 +5035,16 @@ const At = {
|
|
|
5021
5035
|
g.value.type = null, window.removeEventListener("mousemove", M), window.removeEventListener("touchmove", M), window.removeEventListener("mousemove", x), window.removeEventListener("touchmove", x), window.removeEventListener("mouseup", L), window.removeEventListener("touchend", L);
|
|
5022
5036
|
}, S = () => {
|
|
5023
5037
|
const C = c.value, O = C.naturalWidth / C.width, j = C.naturalHeight / C.height, T = Math.min(
|
|
5024
|
-
|
|
5038
|
+
m.value.width * O,
|
|
5025
5039
|
C.naturalWidth
|
|
5026
5040
|
), R = Math.min(
|
|
5027
|
-
|
|
5041
|
+
m.value.height * j,
|
|
5028
5042
|
C.naturalHeight
|
|
5029
5043
|
), B = document.createElement("canvas");
|
|
5030
5044
|
B.width = T, B.height = R, B.getContext("2d").drawImage(
|
|
5031
5045
|
C,
|
|
5032
|
-
|
|
5033
|
-
|
|
5046
|
+
m.value.x * O,
|
|
5047
|
+
m.value.y * j,
|
|
5034
5048
|
T,
|
|
5035
5049
|
R,
|
|
5036
5050
|
0,
|
|
@@ -5050,13 +5064,13 @@ const At = {
|
|
|
5050
5064
|
i.value = j.data;
|
|
5051
5065
|
});
|
|
5052
5066
|
};
|
|
5053
|
-
return (C, O) => (p(),
|
|
5067
|
+
return (C, O) => (p(), h("div", Mi, [
|
|
5054
5068
|
u("input", {
|
|
5055
5069
|
type: "file",
|
|
5056
5070
|
accept: "image/*",
|
|
5057
5071
|
onChange: y
|
|
5058
5072
|
}, null, 32),
|
|
5059
|
-
r.value ? (p(),
|
|
5073
|
+
r.value ? (p(), h("div", Ti, [
|
|
5060
5074
|
u("div", {
|
|
5061
5075
|
class: "preview-container",
|
|
5062
5076
|
ref_key: "previewContainer",
|
|
@@ -5109,20 +5123,20 @@ const At = {
|
|
|
5109
5123
|
onTouchstart: O[10] || (O[10] = V(() => {
|
|
5110
5124
|
}, ["stop"]))
|
|
5111
5125
|
}, v(l(o).lg("asai.confirm")), 33),
|
|
5112
|
-
d.value ? (p(),
|
|
5126
|
+
d.value ? (p(), h("button", {
|
|
5113
5127
|
key: 0,
|
|
5114
5128
|
onPointerdown: w,
|
|
5115
5129
|
onTouchstart: O[11] || (O[11] = V(() => {
|
|
5116
5130
|
}, ["stop"]))
|
|
5117
5131
|
}, v(l(o).lg("asai.download")), 33)) : F("", !0),
|
|
5118
|
-
d.value ? (p(),
|
|
5132
|
+
d.value ? (p(), h("button", {
|
|
5119
5133
|
key: 1,
|
|
5120
5134
|
onPointerdown: P,
|
|
5121
5135
|
onTouchstart: O[12] || (O[12] = V(() => {
|
|
5122
5136
|
}, ["stop"]))
|
|
5123
5137
|
}, v(l(o).lg("asai.upload")), 33)) : F("", !0)
|
|
5124
5138
|
]),
|
|
5125
|
-
d.value ? (p(),
|
|
5139
|
+
d.value ? (p(), h("div", Ui, [
|
|
5126
5140
|
u("img", { src: d.value }, null, 8, Ei)
|
|
5127
5141
|
])) : F("", !0)
|
|
5128
5142
|
])) : F("", !0)
|
|
@@ -5167,8 +5181,8 @@ const At = {
|
|
|
5167
5181
|
}
|
|
5168
5182
|
return (i, r) => {
|
|
5169
5183
|
const d = U("AsaiForm");
|
|
5170
|
-
return p(),
|
|
5171
|
-
t.asaidata.btn ? (p(),
|
|
5184
|
+
return p(), h("div", Fi, [
|
|
5185
|
+
t.asaidata.btn ? (p(), h("div", Wi, [
|
|
5172
5186
|
u("button", {
|
|
5173
5187
|
onPointerdown: r[0] || (r[0] = (c) => o())
|
|
5174
5188
|
}, v(l(n).lg("asai.read")), 33),
|
|
@@ -5178,11 +5192,11 @@ const At = {
|
|
|
5178
5192
|
}, null, 512), [
|
|
5179
5193
|
[de, t.asaidata.path]
|
|
5180
5194
|
]),
|
|
5181
|
-
t.asaidata.list?.length ? G((p(),
|
|
5195
|
+
t.asaidata.list?.length ? G((p(), h("select", {
|
|
5182
5196
|
key: 0,
|
|
5183
5197
|
"onUpdate:modelValue": r[2] || (r[2] = (c) => t.asaidata.path = c)
|
|
5184
5198
|
}, [
|
|
5185
|
-
(p(!0),
|
|
5199
|
+
(p(!0), h(E, null, ee(t.asaidata.list, (c) => (p(), h("option", {
|
|
5186
5200
|
value: c.value
|
|
5187
5201
|
}, v(c.label), 9, Hi))), 256))
|
|
5188
5202
|
], 512)), [
|
|
@@ -5190,13 +5204,13 @@ const At = {
|
|
|
5190
5204
|
]) : F("", !0)
|
|
5191
5205
|
])) : F("", !0),
|
|
5192
5206
|
u("div", Vi, [
|
|
5193
|
-
t.asaidata.ty == "txt" ? G((p(),
|
|
5207
|
+
t.asaidata.ty == "txt" ? G((p(), h("textarea", {
|
|
5194
5208
|
key: 0,
|
|
5195
5209
|
class: "as-json-txt",
|
|
5196
5210
|
"onUpdate:modelValue": r[3] || (r[3] = (c) => t.asaidata.data = c)
|
|
5197
5211
|
}, null, 512)), [
|
|
5198
5212
|
[de, t.asaidata.data]
|
|
5199
|
-
]) : (p(),
|
|
5213
|
+
]) : (p(), h(E, { key: 1 }, [
|
|
5200
5214
|
se(v(t.asaidata.eq > 1 ? Array.isArray(t.asaidata) ? "[" : "{" : "") + " ", 1),
|
|
5201
5215
|
W(d, {
|
|
5202
5216
|
ujt: t.ujt,
|
|
@@ -5205,7 +5219,7 @@ const At = {
|
|
|
5205
5219
|
se(" " + v(t.asaidata.eq > 1 ? Array.isArray(t.asaidata) ? "]" : "}" : ""), 1)
|
|
5206
5220
|
], 64))
|
|
5207
5221
|
]),
|
|
5208
|
-
t.asaidata.btn ? (p(),
|
|
5222
|
+
t.asaidata.btn ? (p(), h("div", qi, [
|
|
5209
5223
|
u("button", {
|
|
5210
5224
|
onPointerdown: r[4] || (r[4] = (c) => s())
|
|
5211
5225
|
}, v(l(n).lg("asai.submit")), 33),
|
|
@@ -5267,19 +5281,19 @@ const At = {
|
|
|
5267
5281
|
}
|
|
5268
5282
|
e.cval.setapikeys(e.cval.apikeys);
|
|
5269
5283
|
}
|
|
5270
|
-
return (i, r) => o.value === "object" ? (p(),
|
|
5271
|
-
t.ckey !== "publishlist" ? (p(),
|
|
5272
|
-
n[t.ckey] ? (p(),
|
|
5284
|
+
return (i, r) => o.value === "object" ? (p(), h("div", Xi, [
|
|
5285
|
+
t.ckey !== "publishlist" ? (p(), h(E, { key: 0 }, [
|
|
5286
|
+
n[t.ckey] ? (p(), h("div", {
|
|
5273
5287
|
key: 1,
|
|
5274
5288
|
class: "as-ed-mg",
|
|
5275
5289
|
onPointerdown: r[1] || (r[1] = (d) => a(t.ckey))
|
|
5276
|
-
}, " - " + v(t.ckey), 33)) : (p(),
|
|
5290
|
+
}, " - " + v(t.ckey), 33)) : (p(), h("div", {
|
|
5277
5291
|
key: 0,
|
|
5278
5292
|
class: "as-ed-mg",
|
|
5279
5293
|
onPointerdown: r[0] || (r[0] = (d) => a(t.ckey))
|
|
5280
5294
|
}, " + " + v(t.ckey), 33)),
|
|
5281
|
-
n[t.ckey] ? (p(),
|
|
5282
|
-
(p(!0),
|
|
5295
|
+
n[t.ckey] ? (p(), h("div", Ki, [
|
|
5296
|
+
(p(!0), h(E, null, ee(Object.keys(t.cdata[t.ckey]), (d) => (p(), h("div", {
|
|
5283
5297
|
class: "as-ed-for-item",
|
|
5284
5298
|
key: d
|
|
5285
5299
|
}, [
|
|
@@ -5292,7 +5306,7 @@ const At = {
|
|
|
5292
5306
|
])
|
|
5293
5307
|
]))), 128))
|
|
5294
5308
|
])) : F("", !0)
|
|
5295
|
-
], 64)) : (p(!0),
|
|
5309
|
+
], 64)) : (p(!0), h(E, { key: 1 }, ee(Object.keys(t.cdata[t.ckey]), (d) => (p(), h("div", {
|
|
5296
5310
|
class: "as-ed-for-item",
|
|
5297
5311
|
key: d
|
|
5298
5312
|
}, [
|
|
@@ -5302,13 +5316,13 @@ const At = {
|
|
|
5302
5316
|
cdata: t.cdata[t.ckey]
|
|
5303
5317
|
}, null, 8, ["cval", "ckey", "cdata"])
|
|
5304
5318
|
]))), 128))
|
|
5305
|
-
])) : o.value === "array" ? (p(),
|
|
5319
|
+
])) : o.value === "array" ? (p(), h("div", Gi, [
|
|
5306
5320
|
u("div", {
|
|
5307
5321
|
class: "as-ed-mg",
|
|
5308
5322
|
onPointerdown: a
|
|
5309
5323
|
}, "+ " + v(t.ckey), 33),
|
|
5310
5324
|
u("div", Zi, [
|
|
5311
|
-
(p(!0),
|
|
5325
|
+
(p(!0), h(E, null, ee(t.cdata[t.ckey], (d, c) => (p(), h("div", {
|
|
5312
5326
|
class: "as-ed-for-item",
|
|
5313
5327
|
key: c
|
|
5314
5328
|
}, [
|
|
@@ -5321,13 +5335,13 @@ const At = {
|
|
|
5321
5335
|
])
|
|
5322
5336
|
]))), 128))
|
|
5323
5337
|
])
|
|
5324
|
-
])) : o.value === "path" ? (p(),
|
|
5338
|
+
])) : o.value === "path" ? (p(), h("div", {
|
|
5325
5339
|
key: 2,
|
|
5326
5340
|
class: K(
|
|
5327
5341
|
e.cval.apikeys.includes(e.cdata[e.ckey]["@path"]) ? "as-ed-path-cur" : "as-ed-path"
|
|
5328
5342
|
),
|
|
5329
5343
|
onPointerdown: r[2] || (r[2] = (d) => s())
|
|
5330
|
-
}, v(t.ckey), 35)) : (p(),
|
|
5344
|
+
}, v(t.ckey), 35)) : (p(), h("span", er, v(t.ckey), 1));
|
|
5331
5345
|
}
|
|
5332
5346
|
}), Ce = /* @__PURE__ */ q(tr, [["__scopeId", "data-v-f916f007"]]), nr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5333
5347
|
__proto__: null,
|
|
@@ -5366,15 +5380,15 @@ const At = {
|
|
|
5366
5380
|
class: "as-floating-button",
|
|
5367
5381
|
onPointerdown: s
|
|
5368
5382
|
}, [
|
|
5369
|
-
a.value ? (p(),
|
|
5383
|
+
a.value ? (p(), h("span", ar, "×")) : (p(), h("span", sr, "☰"))
|
|
5370
5384
|
], 32),
|
|
5371
5385
|
u("ul", {
|
|
5372
5386
|
class: K(["as-floating-menus", { open: a.value }])
|
|
5373
5387
|
}, [
|
|
5374
|
-
(p(!0),
|
|
5388
|
+
(p(!0), h(E, null, ee(i.value, (c, f) => (p(), h("li", {
|
|
5375
5389
|
key: "menu" + f,
|
|
5376
5390
|
class: K(`${c.type === "module" ? "module " : ""}${c.value && l(o).location.hash.includes(c.value) ? "active" : ""}`),
|
|
5377
|
-
onPointerup: (
|
|
5391
|
+
onPointerup: (m) => c.value ? l(n).sethash(c.value) : c?.fn?.()
|
|
5378
5392
|
}, v(f + 1) + ". " + v(c.label || c.value), 43, lr))), 128))
|
|
5379
5393
|
], 2)
|
|
5380
5394
|
])
|
|
@@ -5391,8 +5405,8 @@ const At = {
|
|
|
5391
5405
|
},
|
|
5392
5406
|
setup(t) {
|
|
5393
5407
|
const e = t, { $fn: n } = e.ujt;
|
|
5394
|
-
return (o, a) => (p(),
|
|
5395
|
-
(p(!0),
|
|
5408
|
+
return (o, a) => (p(), h("div", ur, [
|
|
5409
|
+
(p(!0), h(E, null, ee(t.menus, (s) => (p(), h("div", {
|
|
5396
5410
|
class: "app-menu",
|
|
5397
5411
|
onPointerdown: a[0] || (a[0] = (i) => l(n).sethash("item.value"))
|
|
5398
5412
|
}, v(s.label), 33))), 256))
|
|
@@ -5471,7 +5485,7 @@ const At = {
|
|
|
5471
5485
|
}
|
|
5472
5486
|
const M = Math.max(0, b - 1), x = Math.ceil(y / e.itemHeight) + e.buffer * 2, L = Math.min(e.items.length, M + x);
|
|
5473
5487
|
return { start: M, end: L };
|
|
5474
|
-
},
|
|
5488
|
+
}, m = H(() => {
|
|
5475
5489
|
const { start: $, end: y } = f();
|
|
5476
5490
|
return e.items.slice($, y).map((b, k) => {
|
|
5477
5491
|
const M = $ + k;
|
|
@@ -5516,7 +5530,7 @@ const At = {
|
|
|
5516
5530
|
);
|
|
5517
5531
|
}), je(() => {
|
|
5518
5532
|
a.value && cancelAnimationFrame(a.value), s.value && clearTimeout(s.value);
|
|
5519
|
-
}), ($, y) => (p(),
|
|
5533
|
+
}), ($, y) => (p(), h("div", {
|
|
5520
5534
|
class: "virtual-list-container",
|
|
5521
5535
|
onScroll: _,
|
|
5522
5536
|
ref_key: "container",
|
|
@@ -5527,7 +5541,7 @@ const At = {
|
|
|
5527
5541
|
class: "virtual-list-wrapper",
|
|
5528
5542
|
style: Z({ height: d.value + "px" })
|
|
5529
5543
|
}, [
|
|
5530
|
-
(p(!0),
|
|
5544
|
+
(p(!0), h(E, null, ee(m.value, (b) => (p(), h("div", {
|
|
5531
5545
|
class: "virtual-list-item",
|
|
5532
5546
|
key: "as" + b.index,
|
|
5533
5547
|
style: Z({ transform: `translateY(${b.offset}px)` })
|
|
@@ -5564,7 +5578,7 @@ const At = {
|
|
|
5564
5578
|
n.items.length,
|
|
5565
5579
|
c.value + i.value + n.buffer * 2
|
|
5566
5580
|
)
|
|
5567
|
-
),
|
|
5581
|
+
), m = H(
|
|
5568
5582
|
() => n.items.slice(c.value, f.value).map((b, k) => {
|
|
5569
5583
|
const M = c.value + k, x = g(M);
|
|
5570
5584
|
return {
|
|
@@ -5603,7 +5617,7 @@ const At = {
|
|
|
5603
5617
|
}
|
|
5604
5618
|
}), bt(() => {
|
|
5605
5619
|
y();
|
|
5606
|
-
}), (b, k) => (p(),
|
|
5620
|
+
}), (b, k) => (p(), h("div", {
|
|
5607
5621
|
class: "virtual-list-container",
|
|
5608
5622
|
onScroll: $,
|
|
5609
5623
|
ref_key: "container",
|
|
@@ -5613,7 +5627,7 @@ const At = {
|
|
|
5613
5627
|
class: "virtual-list-wrapper",
|
|
5614
5628
|
style: Z({ height: r.value + "px" })
|
|
5615
5629
|
}, [
|
|
5616
|
-
(p(!0),
|
|
5630
|
+
(p(!0), h(E, null, ee(m.value, (M) => (p(), h("div", {
|
|
5617
5631
|
class: "virtual-list-item",
|
|
5618
5632
|
key: "as" + M.index,
|
|
5619
5633
|
style: Z({ transform: `translateY(${M.offset}px)` })
|
|
@@ -5655,7 +5669,7 @@ const At = {
|
|
|
5655
5669
|
be(s), window.addEventListener("resize", i);
|
|
5656
5670
|
}), $e(() => {
|
|
5657
5671
|
window.removeEventListener("resize", i), clearTimeout(a);
|
|
5658
|
-
}), (r, d) => (p(),
|
|
5672
|
+
}), (r, d) => (p(), h("div", {
|
|
5659
5673
|
ref_key: "containerRef",
|
|
5660
5674
|
ref: o,
|
|
5661
5675
|
class: "zoom-container",
|
|
@@ -5675,7 +5689,7 @@ const At = {
|
|
|
5675
5689
|
},
|
|
5676
5690
|
setup(t) {
|
|
5677
5691
|
const e = t, { $global: n } = e.ujt;
|
|
5678
|
-
return (o, a) => (p(),
|
|
5692
|
+
return (o, a) => (p(), h("div", {
|
|
5679
5693
|
class: "zoom-container-style",
|
|
5680
5694
|
style: Z(l(n).cmscale)
|
|
5681
5695
|
}, [
|
|
@@ -5695,11 +5709,11 @@ const At = {
|
|
|
5695
5709
|
},
|
|
5696
5710
|
setup(t) {
|
|
5697
5711
|
const e = t;
|
|
5698
|
-
return (n, o) => (p(),
|
|
5699
|
-
Array.isArray(e.formdata) ? (p(),
|
|
5712
|
+
return (n, o) => (p(), h("label", null, [
|
|
5713
|
+
Array.isArray(e.formdata) ? (p(), h("span", {
|
|
5700
5714
|
key: 0,
|
|
5701
5715
|
class: K(`${t.asaidata.ic > 1 ? "as-form-ico-arr" : ""}${t.asaidata?.rule?.[t.formkey]?.require ? " as-form-ico-require" : ""}`)
|
|
5702
|
-
}, null, 2)) : (p(),
|
|
5716
|
+
}, null, 2)) : (p(), h("span", {
|
|
5703
5717
|
key: 1,
|
|
5704
5718
|
class: K(`${t.asaidata.ic > 1 ? "as-form-ico" : ""}${t.asaidata?.rule?.[t.formkey]?.require ? " as-form-ico-require" : ""}`)
|
|
5705
5719
|
}, v(t.asaidata.eq > 2 ? '"' : "") + v(e.asaidata?.lang?.[t.formkey] || t.formkey) + v(t.asaidata.eq > 2 ? '"' : "") + v(t.asaidata.eq ? ":" : ""), 3)),
|
|
@@ -5721,14 +5735,14 @@ const At = {
|
|
|
5721
5735
|
const e = t;
|
|
5722
5736
|
return (n, o) => {
|
|
5723
5737
|
const a = U("AsaiFormObject"), s = U("AsaiInput");
|
|
5724
|
-
return p(!0),
|
|
5738
|
+
return p(!0), h(E, null, ee(e.formdata, (i, r) => (p(), h(E, null, [
|
|
5725
5739
|
t.asaidata?.cmComp && t.asaidata?.cmComp(r) ? (p(), Y(pe(t.asaidata.cmComp(r)), {
|
|
5726
5740
|
key: 0,
|
|
5727
5741
|
ujt: t.ujt,
|
|
5728
5742
|
asaidata: t.asaidata,
|
|
5729
5743
|
formdata: t.formdata,
|
|
5730
5744
|
formkey: r
|
|
5731
|
-
}, null, 8, ["ujt", "asaidata", "formdata", "formkey"])) : typeof i == "object" ? (p(),
|
|
5745
|
+
}, null, 8, ["ujt", "asaidata", "formdata", "formkey"])) : typeof i == "object" ? (p(), h(E, { key: 1 }, [
|
|
5732
5746
|
t.asaidata?.cmComp && t.asaidata?.cmComp("object") ? (p(), Y(pe(t.asaidata.cmComp("object")), {
|
|
5733
5747
|
key: 0,
|
|
5734
5748
|
ujt: t.ujt,
|
|
@@ -5767,7 +5781,7 @@ const At = {
|
|
|
5767
5781
|
const e = t, n = N(!0);
|
|
5768
5782
|
return (o, a) => {
|
|
5769
5783
|
const s = U("AsaiFormLi");
|
|
5770
|
-
return typeof e.formdata[t.formkey] == "object" ? (p(),
|
|
5784
|
+
return typeof e.formdata[t.formkey] == "object" ? (p(), h("div", {
|
|
5771
5785
|
key: 0,
|
|
5772
5786
|
class: K(`${t.asaidata.ic ? "as-form-obj" : ""}`)
|
|
5773
5787
|
}, [
|
|
@@ -5781,7 +5795,7 @@ const At = {
|
|
|
5781
5795
|
ujt: t.ujt,
|
|
5782
5796
|
asaidata: t.asaidata,
|
|
5783
5797
|
formdata: e.formdata[t.formkey]
|
|
5784
|
-
}, null, 8, ["ujt", "asaidata", "formdata"])) : (p(),
|
|
5798
|
+
}, null, 8, ["ujt", "asaidata", "formdata"])) : (p(), h(E, { key: 1 }, [
|
|
5785
5799
|
se("...")
|
|
5786
5800
|
], 64)),
|
|
5787
5801
|
se(" " + v(t.asaidata.eq > 1 ? Array.isArray(e.formdata[t.formkey]) ? "]" : "}" : "") + v(t.asaidata.eq > 2 ? "," : ""), 1)
|
|
@@ -5934,7 +5948,7 @@ const At = {
|
|
|
5934
5948
|
}
|
|
5935
5949
|
return "";
|
|
5936
5950
|
}
|
|
5937
|
-
function
|
|
5951
|
+
function m() {
|
|
5938
5952
|
const S = window.prompt("请输入链接地址");
|
|
5939
5953
|
S && x("createLink", S);
|
|
5940
5954
|
}
|
|
@@ -6014,7 +6028,7 @@ const At = {
|
|
|
6014
6028
|
function L() {
|
|
6015
6029
|
r.value++, r.value > 2 && (r.value = 0), be(d);
|
|
6016
6030
|
}
|
|
6017
|
-
return (S, w) => (p(),
|
|
6031
|
+
return (S, w) => (p(), h("div", {
|
|
6018
6032
|
class: "as-richtext-area",
|
|
6019
6033
|
style: Z(e.asaidata.rule?.[e.formkey]?.style || {})
|
|
6020
6034
|
}, [
|
|
@@ -6023,7 +6037,7 @@ const At = {
|
|
|
6023
6037
|
onChange: w[0] || (w[0] = (P) => x("fontSize", P.target.value))
|
|
6024
6038
|
}, [
|
|
6025
6039
|
u("option", Tr, v(l(n).lang.richtexteditor.fontsize), 1),
|
|
6026
|
-
(p(),
|
|
6040
|
+
(p(), h(E, null, ee(8, (P) => u("option", {
|
|
6027
6041
|
key: "size" + P,
|
|
6028
6042
|
value: P * (P - 1) + 8
|
|
6029
6043
|
}, v(P * (P - 1) + 8) + "px ", 9, zr)), 64))
|
|
@@ -6032,7 +6046,7 @@ const At = {
|
|
|
6032
6046
|
onChange: w[1] || (w[1] = (P) => x("formatBlock", P.target.value))
|
|
6033
6047
|
}, [
|
|
6034
6048
|
u("option", Lr, v(l(n).lang.richtexteditor.paragraph), 1),
|
|
6035
|
-
(p(),
|
|
6049
|
+
(p(), h(E, null, ee(6, (P) => u("option", {
|
|
6036
6050
|
key: "h" + P,
|
|
6037
6051
|
value: "h" + P
|
|
6038
6052
|
}, v(l(n).lang.richtexteditor.title) + v(P), 9, Ur)), 64))
|
|
@@ -6092,7 +6106,7 @@ const At = {
|
|
|
6092
6106
|
title: "删除"
|
|
6093
6107
|
}, " 删 ", 32),
|
|
6094
6108
|
u("button", {
|
|
6095
|
-
onPointerdown: w[15] || (w[15] = (P) =>
|
|
6109
|
+
onPointerdown: w[15] || (w[15] = (P) => m()),
|
|
6096
6110
|
title: "链接"
|
|
6097
6111
|
}, "链", 32),
|
|
6098
6112
|
u("button", {
|
|
@@ -6121,7 +6135,7 @@ const At = {
|
|
|
6121
6135
|
}, "HTML", 32)
|
|
6122
6136
|
]),
|
|
6123
6137
|
u("div", qr, [
|
|
6124
|
-
r.value != 1 ? (p(),
|
|
6138
|
+
r.value != 1 ? (p(), h("div", {
|
|
6125
6139
|
key: 0,
|
|
6126
6140
|
style: Z({ width: r.value > 1 ? "50%" : "100%" }),
|
|
6127
6141
|
ref_key: "rfRichEditor",
|
|
@@ -6130,7 +6144,7 @@ const At = {
|
|
|
6130
6144
|
onPaste: k,
|
|
6131
6145
|
onInput: M
|
|
6132
6146
|
}, null, 36)) : F("", !0),
|
|
6133
|
-
r.value > 0 ? G((p(),
|
|
6147
|
+
r.value > 0 ? G((p(), h("textarea", {
|
|
6134
6148
|
key: 1,
|
|
6135
6149
|
placeholder: e?.opt?.placeholder || "",
|
|
6136
6150
|
ref_key: "rfRichCode",
|
|
@@ -6207,18 +6221,18 @@ const At = {
|
|
|
6207
6221
|
n.api.webserver.apiUpload(
|
|
6208
6222
|
"/api/asaifile/manage/upbinary/?path=" + o.sys.path.updir + e.asaidata?.rule?.[e.formkey]?.filename || n.As.getName(i.value.name),
|
|
6209
6223
|
i.value
|
|
6210
|
-
).then((
|
|
6211
|
-
r.value = "", e.formdata[e.formkey] =
|
|
6224
|
+
).then((m) => {
|
|
6225
|
+
r.value = "", e.formdata[e.formkey] = m.data;
|
|
6212
6226
|
});
|
|
6213
|
-
} catch (
|
|
6214
|
-
r.value = n.lg("asai.fail") + " " +
|
|
6227
|
+
} catch (m) {
|
|
6228
|
+
r.value = n.lg("asai.fail") + " " + m.message;
|
|
6215
6229
|
}
|
|
6216
6230
|
}
|
|
6217
6231
|
};
|
|
6218
6232
|
function c() {
|
|
6219
6233
|
s.value.click();
|
|
6220
6234
|
}
|
|
6221
|
-
return (f,
|
|
6235
|
+
return (f, m) => {
|
|
6222
6236
|
const g = U("AsaiFormLabel");
|
|
6223
6237
|
return p(), Y(g, {
|
|
6224
6238
|
ujt: t.ujt,
|
|
@@ -6227,7 +6241,7 @@ const At = {
|
|
|
6227
6241
|
formkey: t.formkey
|
|
6228
6242
|
}, {
|
|
6229
6243
|
default: re(() => [
|
|
6230
|
-
t.asaidata?.rule?.[t.formkey]?.accept ? (p(),
|
|
6244
|
+
t.asaidata?.rule?.[t.formkey]?.accept ? (p(), h("input", {
|
|
6231
6245
|
key: 0,
|
|
6232
6246
|
accept: t.asaidata?.rule?.[t.formkey]?.accept,
|
|
6233
6247
|
ref_key: "rfInputFile",
|
|
@@ -6235,7 +6249,7 @@ const At = {
|
|
|
6235
6249
|
type: "file",
|
|
6236
6250
|
hidden: "",
|
|
6237
6251
|
onChange: d
|
|
6238
|
-
}, null, 40, Kr)) : (p(),
|
|
6252
|
+
}, null, 40, Kr)) : (p(), h("input", {
|
|
6239
6253
|
key: 1,
|
|
6240
6254
|
ref_key: "rfInputFile",
|
|
6241
6255
|
ref: s,
|
|
@@ -6247,18 +6261,18 @@ const At = {
|
|
|
6247
6261
|
class: "as-upload-image",
|
|
6248
6262
|
onClickOnce: V(c, ["stop", "prevent"])
|
|
6249
6263
|
}, [
|
|
6250
|
-
e.formdata[t.formkey] ? (p(),
|
|
6251
|
-
t.asaidata?.rule?.[t.formkey]?.accept?.startsWith("image/") ? (p(),
|
|
6264
|
+
e.formdata[t.formkey] ? (p(), h("div", Jr, [
|
|
6265
|
+
t.asaidata?.rule?.[t.formkey]?.accept?.startsWith("image/") ? (p(), h("img", {
|
|
6252
6266
|
key: 0,
|
|
6253
6267
|
src: l(n).As.getUrlByCfg(l(o).link.api.webserver) + "/" + e.formdata[t.formkey],
|
|
6254
6268
|
alt: e.formdata[t.formkey],
|
|
6255
6269
|
title: e.formdata[t.formkey]
|
|
6256
|
-
}, null, 8, Gr)) : (p(),
|
|
6270
|
+
}, null, 8, Gr)) : (p(), h("div", {
|
|
6257
6271
|
key: 1,
|
|
6258
6272
|
class: "as-upload-tit",
|
|
6259
6273
|
title: e.formdata[t.formkey]
|
|
6260
6274
|
}, v(e.formdata[t.formkey]), 9, Zr))
|
|
6261
|
-
])) : (p(),
|
|
6275
|
+
])) : (p(), h("div", {
|
|
6262
6276
|
key: 1,
|
|
6263
6277
|
class: K(r.value === "+" ? "" : "as-upload-tit"),
|
|
6264
6278
|
title: r.value
|
|
@@ -6287,9 +6301,9 @@ const At = {
|
|
|
6287
6301
|
r.value = n.lg("asai.fail");
|
|
6288
6302
|
return;
|
|
6289
6303
|
}
|
|
6290
|
-
const
|
|
6291
|
-
|
|
6292
|
-
const g =
|
|
6304
|
+
const m = new FileReader();
|
|
6305
|
+
m.onload = async () => {
|
|
6306
|
+
const g = m.result.split(",")[1];
|
|
6293
6307
|
try {
|
|
6294
6308
|
n.api.webserver.apiPost(
|
|
6295
6309
|
"/api/asaifile/manage/upbase64/?path=" + o.sys.path.updir + n.As.getName(i.value.name),
|
|
@@ -6305,13 +6319,13 @@ const At = {
|
|
|
6305
6319
|
} catch (_) {
|
|
6306
6320
|
r.value = n.lg("asai.fail") + " " + _.message;
|
|
6307
6321
|
}
|
|
6308
|
-
},
|
|
6322
|
+
}, m.readAsDataURL(i.value);
|
|
6309
6323
|
}
|
|
6310
6324
|
};
|
|
6311
6325
|
function c() {
|
|
6312
6326
|
s.value.click();
|
|
6313
6327
|
}
|
|
6314
|
-
return (f,
|
|
6328
|
+
return (f, m) => {
|
|
6315
6329
|
const g = U("AsaiFormLabel");
|
|
6316
6330
|
return p(), Y(g, {
|
|
6317
6331
|
ujt: t.ujt,
|
|
@@ -6324,24 +6338,24 @@ const At = {
|
|
|
6324
6338
|
class: "as-upload-image",
|
|
6325
6339
|
onPointerdown: V(c, ["prevent"])
|
|
6326
6340
|
}, [
|
|
6327
|
-
e.formdata[t.formkey] ? (p(),
|
|
6328
|
-
t.asaidata?.rule?.[t.formkey]?.accept?.startsWith("image/") ? (p(),
|
|
6341
|
+
e.formdata[t.formkey] ? (p(), h("div", nc, [
|
|
6342
|
+
t.asaidata?.rule?.[t.formkey]?.accept?.startsWith("image/") ? (p(), h("img", {
|
|
6329
6343
|
key: 0,
|
|
6330
6344
|
src: l(n).As.getUrlByCfg(l(o).link.api.webserver) + "/" + e.formdata[t.formkey],
|
|
6331
6345
|
alt: e.formdata[t.formkey],
|
|
6332
6346
|
title: e.formdata[t.formkey]
|
|
6333
|
-
}, null, 8, oc)) : (p(),
|
|
6347
|
+
}, null, 8, oc)) : (p(), h("div", {
|
|
6334
6348
|
key: 1,
|
|
6335
6349
|
class: "as-upload-tit",
|
|
6336
6350
|
title: e.formdata[t.formkey]
|
|
6337
6351
|
}, v(e.formdata[t.formkey]), 9, ac))
|
|
6338
|
-
])) : (p(),
|
|
6352
|
+
])) : (p(), h("div", {
|
|
6339
6353
|
key: 1,
|
|
6340
6354
|
class: K(r.value === "+" ? "" : "as-upload-tit"),
|
|
6341
6355
|
title: r.value
|
|
6342
6356
|
}, v(r.value), 11, sc))
|
|
6343
6357
|
], 32),
|
|
6344
|
-
t.asaidata?.rule?.[t.formkey]?.accept ? (p(),
|
|
6358
|
+
t.asaidata?.rule?.[t.formkey]?.accept ? (p(), h("input", {
|
|
6345
6359
|
key: 0,
|
|
6346
6360
|
accept: t.asaidata?.rule?.[t.formkey]?.accept,
|
|
6347
6361
|
ref_key: "rfInputFile",
|
|
@@ -6349,7 +6363,7 @@ const At = {
|
|
|
6349
6363
|
type: "file",
|
|
6350
6364
|
hidden: "",
|
|
6351
6365
|
onChange: d
|
|
6352
|
-
}, null, 40, lc)) : (p(),
|
|
6366
|
+
}, null, 40, lc)) : (p(), h("input", {
|
|
6353
6367
|
key: 1,
|
|
6354
6368
|
ref_key: "rfInputFile",
|
|
6355
6369
|
ref: s,
|
|
@@ -6380,11 +6394,11 @@ const At = {
|
|
|
6380
6394
|
i.value = n.lg("asai.fail");
|
|
6381
6395
|
return;
|
|
6382
6396
|
}
|
|
6383
|
-
const
|
|
6384
|
-
|
|
6397
|
+
const m = new FileReader();
|
|
6398
|
+
m.onload = async () => {
|
|
6385
6399
|
try {
|
|
6386
6400
|
c({
|
|
6387
|
-
base64Data:
|
|
6401
|
+
base64Data: m.result,
|
|
6388
6402
|
asaidata: e.asaidata,
|
|
6389
6403
|
formdata: e.formdata,
|
|
6390
6404
|
formkey: e.formkey,
|
|
@@ -6395,7 +6409,7 @@ const At = {
|
|
|
6395
6409
|
} catch (g) {
|
|
6396
6410
|
i.value = n.lg("asai.fail") + " " + g.message;
|
|
6397
6411
|
}
|
|
6398
|
-
},
|
|
6412
|
+
}, m.readAsDataURL(s.value);
|
|
6399
6413
|
}
|
|
6400
6414
|
};
|
|
6401
6415
|
function d() {
|
|
@@ -6404,9 +6418,9 @@ const At = {
|
|
|
6404
6418
|
function c(f) {
|
|
6405
6419
|
o.pop.popupload.stat = 1, o.pop.popupload.tit = n.lg("asai.upload"), o.pop.popupload.params = f;
|
|
6406
6420
|
}
|
|
6407
|
-
return (f,
|
|
6421
|
+
return (f, m) => {
|
|
6408
6422
|
const g = U("AsaiUploadImgCutPop"), _ = U("AsaiFormLabel");
|
|
6409
|
-
return p(),
|
|
6423
|
+
return p(), h(E, null, [
|
|
6410
6424
|
W(g, { ujt: t.ujt }, null, 8, ["ujt"]),
|
|
6411
6425
|
W(_, {
|
|
6412
6426
|
ujt: t.ujt,
|
|
@@ -6419,11 +6433,11 @@ const At = {
|
|
|
6419
6433
|
class: "as-upload-image",
|
|
6420
6434
|
onPointerdown: V(d, ["prevent"])
|
|
6421
6435
|
}, [
|
|
6422
|
-
e.formdata[t.formkey] ? (p(),
|
|
6436
|
+
e.formdata[t.formkey] ? (p(), h("div", cc, [
|
|
6423
6437
|
u("img", {
|
|
6424
6438
|
src: e.formdata[t.formkey]
|
|
6425
6439
|
}, null, 8, uc)
|
|
6426
|
-
])) : (p(),
|
|
6440
|
+
])) : (p(), h("div", {
|
|
6427
6441
|
key: 1,
|
|
6428
6442
|
class: K(i.value === "+" ? "" : "as-upload-tit"),
|
|
6429
6443
|
title: i.value
|
|
@@ -6478,7 +6492,7 @@ const At = {
|
|
|
6478
6492
|
height: `${r.value.height}px`
|
|
6479
6493
|
})), f = H(
|
|
6480
6494
|
() => r.value.width > 0 && r.value.height > 0
|
|
6481
|
-
),
|
|
6495
|
+
), m = () => {
|
|
6482
6496
|
const x = a.value, L = i.value;
|
|
6483
6497
|
if (!x || !L) {
|
|
6484
6498
|
console.error("Image or container element not found.");
|
|
@@ -6594,14 +6608,14 @@ const At = {
|
|
|
6594
6608
|
}, M = () => {
|
|
6595
6609
|
e.params.fn(o.value);
|
|
6596
6610
|
};
|
|
6597
|
-
return (x, L) => (p(),
|
|
6598
|
-
o.value ? (p(),
|
|
6611
|
+
return (x, L) => (p(), h("div", mc, [
|
|
6612
|
+
o.value ? (p(), h("div", hc, [
|
|
6599
6613
|
u("img", {
|
|
6600
6614
|
ref_key: "cutImage",
|
|
6601
6615
|
ref: s,
|
|
6602
6616
|
src: o.value
|
|
6603
6617
|
}, null, 8, gc)
|
|
6604
|
-
])) : (p(),
|
|
6618
|
+
])) : (p(), h("div", {
|
|
6605
6619
|
key: 1,
|
|
6606
6620
|
class: "as-img-cut",
|
|
6607
6621
|
ref_key: "previewContainer",
|
|
@@ -6611,7 +6625,7 @@ const At = {
|
|
|
6611
6625
|
ref_key: "previewImage",
|
|
6612
6626
|
ref: a,
|
|
6613
6627
|
src: e.params.base64Data,
|
|
6614
|
-
onLoad:
|
|
6628
|
+
onLoad: m
|
|
6615
6629
|
}, null, 40, vc),
|
|
6616
6630
|
G(u("div", {
|
|
6617
6631
|
class: "as-img-crop-box",
|
|
@@ -6644,10 +6658,10 @@ const At = {
|
|
|
6644
6658
|
])
|
|
6645
6659
|
], 512)),
|
|
6646
6660
|
u("div", yc, [
|
|
6647
|
-
o.value ? (p(),
|
|
6661
|
+
o.value ? (p(), h(E, { key: 0 }, [
|
|
6648
6662
|
u("button", { onPointerdown: k }, "下载图片", 32),
|
|
6649
6663
|
u("button", { onPointerdown: M }, "确认上传", 32)
|
|
6650
|
-
], 64)) : (p(),
|
|
6664
|
+
], 64)) : (p(), h("button", {
|
|
6651
6665
|
key: 1,
|
|
6652
6666
|
onPointerdown: b
|
|
6653
6667
|
}, "确认裁剪", 32))
|
|
@@ -6723,7 +6737,7 @@ const At = {
|
|
|
6723
6737
|
n = null;
|
|
6724
6738
|
}), (i, r) => {
|
|
6725
6739
|
const d = U("AsaiFormLi");
|
|
6726
|
-
return p(),
|
|
6740
|
+
return p(), h("div", kc, [
|
|
6727
6741
|
W(d, {
|
|
6728
6742
|
ujt: t.ujt,
|
|
6729
6743
|
asaidata: t.asaidata,
|
|
@@ -6760,7 +6774,7 @@ const At = {
|
|
|
6760
6774
|
function d(c) {
|
|
6761
6775
|
s.value == !1 ? s.value = !0 : s.value = !1;
|
|
6762
6776
|
}
|
|
6763
|
-
return (c, f) => (p(),
|
|
6777
|
+
return (c, f) => (p(), h("div", {
|
|
6764
6778
|
class: K(`asf-check${l(s) ? "-ck" : ""}`),
|
|
6765
6779
|
style: Z(n.opt?.style || {}),
|
|
6766
6780
|
onClick: d
|
|
@@ -6807,7 +6821,7 @@ const At = {
|
|
|
6807
6821
|
}
|
|
6808
6822
|
});
|
|
6809
6823
|
const s = H(() => n?.opt?.height || "var(--fs2)");
|
|
6810
|
-
return (i, r) => t.opt?.max ? (p(),
|
|
6824
|
+
return (i, r) => t.opt?.max ? (p(), h("div", Pc, [
|
|
6811
6825
|
G(u("input", {
|
|
6812
6826
|
style: Z(n.opt?.style || {}),
|
|
6813
6827
|
type: t.opt?.type || "number",
|
|
@@ -6817,7 +6831,7 @@ const At = {
|
|
|
6817
6831
|
}, null, 12, Cc), [
|
|
6818
6832
|
[Te, l(a)]
|
|
6819
6833
|
])
|
|
6820
|
-
])) : t.opt?.maxlength ? (p(),
|
|
6834
|
+
])) : t.opt?.maxlength ? (p(), h("div", Ac, [
|
|
6821
6835
|
G(u("input", {
|
|
6822
6836
|
style: Z(n.opt?.style || {}),
|
|
6823
6837
|
type: t.opt?.type || "text",
|
|
@@ -6826,7 +6840,7 @@ const At = {
|
|
|
6826
6840
|
}, null, 12, Oc), [
|
|
6827
6841
|
[Te, l(a)]
|
|
6828
6842
|
])
|
|
6829
|
-
])) : (p(),
|
|
6843
|
+
])) : (p(), h("div", Mc, [
|
|
6830
6844
|
G(u("input", {
|
|
6831
6845
|
style: Z(n.opt?.style || {}),
|
|
6832
6846
|
type: t.opt?.type || "text",
|
|
@@ -6851,7 +6865,7 @@ const At = {
|
|
|
6851
6865
|
},
|
|
6852
6866
|
emits: ["update:modelValue"],
|
|
6853
6867
|
setup(t, { emit: e }) {
|
|
6854
|
-
ge((
|
|
6868
|
+
ge((m) => ({
|
|
6855
6869
|
v4105d2e4: i.value
|
|
6856
6870
|
}));
|
|
6857
6871
|
const n = t, { $global: o } = n.ujt, a = e;
|
|
@@ -6859,20 +6873,20 @@ const At = {
|
|
|
6859
6873
|
get() {
|
|
6860
6874
|
return n.modelValue;
|
|
6861
6875
|
},
|
|
6862
|
-
set(
|
|
6863
|
-
a("update:modelValue",
|
|
6876
|
+
set(m) {
|
|
6877
|
+
a("update:modelValue", m);
|
|
6864
6878
|
}
|
|
6865
6879
|
});
|
|
6866
6880
|
const i = H(() => n?.opt?.height || "var(--fs2)"), r = H(() => Array.isArray(n.opt?.selectdata) ? n.opt?.selectdata : typeof n.opt?.selectdata == "object" ? Object.entries(n.opt?.selectdata || {}) : []), d = me({
|
|
6867
6881
|
up: !1
|
|
6868
6882
|
});
|
|
6869
|
-
function c(
|
|
6870
|
-
|
|
6883
|
+
function c(m) {
|
|
6884
|
+
m.clientY > 299 ? d.up = !0 : d.up = !1;
|
|
6871
6885
|
}
|
|
6872
|
-
function f(
|
|
6873
|
-
typeof s.value == "number" ? s.value = +(
|
|
6886
|
+
function f(m) {
|
|
6887
|
+
typeof s.value == "number" ? s.value = +(m.target?.dataset?.val || 0) : s.value = m.target?.dataset?.val;
|
|
6874
6888
|
}
|
|
6875
|
-
return (
|
|
6889
|
+
return (m, g) => (p(), h("div", Ec, [
|
|
6876
6890
|
u("div", {
|
|
6877
6891
|
class: "asf-select-cur",
|
|
6878
6892
|
tabindex: "0",
|
|
@@ -6885,18 +6899,18 @@ const At = {
|
|
|
6885
6899
|
g[0] || (g[0] = u("div", { class: "asf-select-cur-ic" }, null, -1))
|
|
6886
6900
|
], 36),
|
|
6887
6901
|
u("div", Dc, [
|
|
6888
|
-
r.value?.length ? (p(),
|
|
6902
|
+
r.value?.length ? (p(), h("div", {
|
|
6889
6903
|
key: 1,
|
|
6890
6904
|
class: K(`asf-select-list${r.value?.length > 10 ? "2" : r.value?.length > 2 ? "1" : ""}${d.up ? " asf-select-up" : ""}`),
|
|
6891
6905
|
style: Z(n.opt?.stylelist || {}),
|
|
6892
6906
|
onPointerdown: f
|
|
6893
6907
|
}, [
|
|
6894
|
-
(p(!0),
|
|
6908
|
+
(p(!0), h(E, null, ee(r.value, (_) => (p(), h("div", {
|
|
6895
6909
|
class: K(`asf-select-li${l(s) == _[0] ? "-active" : ""}`),
|
|
6896
6910
|
"data-val": _[0],
|
|
6897
6911
|
key: "sel" + _[0]
|
|
6898
6912
|
}, v(_[1]), 11, Wc))), 128))
|
|
6899
|
-
], 38)) : (p(),
|
|
6913
|
+
], 38)) : (p(), h("div", Rc, [
|
|
6900
6914
|
u("div", Fc, v(l(o).lang.asai.empty), 1)
|
|
6901
6915
|
]))
|
|
6902
6916
|
])
|
|
@@ -6927,7 +6941,7 @@ const At = {
|
|
|
6927
6941
|
}
|
|
6928
6942
|
});
|
|
6929
6943
|
const s = H(() => n?.opt?.height || "var(--fs2)");
|
|
6930
|
-
return (i, r) => (p(),
|
|
6944
|
+
return (i, r) => (p(), h("div", Bc, [
|
|
6931
6945
|
G(u("textarea", {
|
|
6932
6946
|
style: Z(n.opt?.style || {}),
|
|
6933
6947
|
"onUpdate:modelValue": r[0] || (r[0] = (d) => Pe(a) ? a.value = d : a = d),
|
|
@@ -6956,7 +6970,7 @@ const At = {
|
|
|
6956
6970
|
const e = window;
|
|
6957
6971
|
return (n, o) => {
|
|
6958
6972
|
const a = U("AsSvg");
|
|
6959
|
-
return p(),
|
|
6973
|
+
return p(), h("div", Jc, [
|
|
6960
6974
|
u("div", null, [
|
|
6961
6975
|
u("div", null, [
|
|
6962
6976
|
u("img", {
|
|
@@ -6990,7 +7004,7 @@ const At = {
|
|
|
6990
7004
|
const e = window;
|
|
6991
7005
|
return (n, o) => {
|
|
6992
7006
|
const a = U("AsSvg"), s = U("UserCard");
|
|
6993
|
-
return p(),
|
|
7007
|
+
return p(), h("div", ou, [
|
|
6994
7008
|
u("div", null, [
|
|
6995
7009
|
u("div", null, [
|
|
6996
7010
|
u("img", {
|
|
@@ -7031,7 +7045,7 @@ const At = {
|
|
|
7031
7045
|
const e = t, { $global: n } = e.ujt;
|
|
7032
7046
|
return (o, a) => {
|
|
7033
7047
|
const s = U("AsSvg"), i = U("UserCard");
|
|
7034
|
-
return p(),
|
|
7048
|
+
return p(), h("div", uu, [
|
|
7035
7049
|
u("div", null, [
|
|
7036
7050
|
u("div", null, [
|
|
7037
7051
|
u("img", {
|
|
@@ -7073,7 +7087,7 @@ const At = {
|
|
|
7073
7087
|
const e = t, { $global: n } = e.ujt;
|
|
7074
7088
|
return (o, a) => {
|
|
7075
7089
|
const s = U("AsSvg"), i = U("UserCard");
|
|
7076
|
-
return p(),
|
|
7090
|
+
return p(), h("div", vu, [
|
|
7077
7091
|
u("div", null, [
|
|
7078
7092
|
u("div", null, [
|
|
7079
7093
|
u("img", {
|
|
@@ -7114,7 +7128,7 @@ const At = {
|
|
|
7114
7128
|
const e = t, { $global: n } = e.ujt;
|
|
7115
7129
|
return (o, a) => {
|
|
7116
7130
|
const s = U("AsSvg"), i = U("UserCard");
|
|
7117
|
-
return p(),
|
|
7131
|
+
return p(), h("div", ju, [
|
|
7118
7132
|
u("div", null, [
|
|
7119
7133
|
u("div", null, [
|
|
7120
7134
|
u("img", {
|
|
@@ -7155,7 +7169,7 @@ const At = {
|
|
|
7155
7169
|
const e = t, { $global: n } = e.ujt;
|
|
7156
7170
|
return (o, a) => {
|
|
7157
7171
|
const s = U("AsSvg"), i = U("UserCard");
|
|
7158
|
-
return p(),
|
|
7172
|
+
return p(), h("div", Mu, [
|
|
7159
7173
|
u("div", null, [
|
|
7160
7174
|
u("div", null, [
|
|
7161
7175
|
u("img", {
|
|
@@ -7197,7 +7211,7 @@ const At = {
|
|
|
7197
7211
|
const e = t, { $global: n } = e.ujt;
|
|
7198
7212
|
return (o, a) => {
|
|
7199
7213
|
const s = U("AsSvg"), i = U("UserCard");
|
|
7200
|
-
return p(),
|
|
7214
|
+
return p(), h("div", Du, [
|
|
7201
7215
|
u("div", null, [
|
|
7202
7216
|
u("div", null, [
|
|
7203
7217
|
u("img", {
|
|
@@ -7254,7 +7268,7 @@ const At = {
|
|
|
7254
7268
|
...i
|
|
7255
7269
|
}, a.value === "auto" && (i["background-color"] = "rgba(0, 0, 0, 0.3)"), i;
|
|
7256
7270
|
});
|
|
7257
|
-
return (i, r) => l(n).pop[e.id].full == 2 ? (p(),
|
|
7271
|
+
return (i, r) => l(n).pop[e.id].full == 2 ? (p(), h(E, { key: 0 }, [
|
|
7258
7272
|
l(n).pop[e.id].stat ? (p(), Y(Ae, {
|
|
7259
7273
|
key: 0,
|
|
7260
7274
|
to: "#teleportpopbox"
|
|
@@ -7267,7 +7281,7 @@ const At = {
|
|
|
7267
7281
|
D(i.$slots, "default", {}, void 0, !0)
|
|
7268
7282
|
], 12, Bu)
|
|
7269
7283
|
])) : F("", !0)
|
|
7270
|
-
], 64)) : l(n).pop[e.id].full == 1 ? (p(),
|
|
7284
|
+
], 64)) : l(n).pop[e.id].full == 1 ? (p(), h(E, { key: 1 }, [
|
|
7271
7285
|
l(n).pop[e.id].stat ? (p(), Y(Ae, {
|
|
7272
7286
|
key: 0,
|
|
7273
7287
|
to: "#teleportpopbox"
|
|
@@ -7284,8 +7298,8 @@ const At = {
|
|
|
7284
7298
|
], 4)
|
|
7285
7299
|
], 8, Nu)
|
|
7286
7300
|
])) : F("", !0)
|
|
7287
|
-
], 64)) : (p(),
|
|
7288
|
-
l(n).pop[e.id].stat ? (p(),
|
|
7301
|
+
], 64)) : (p(), h(E, { key: 2 }, [
|
|
7302
|
+
l(n).pop[e.id].stat ? (p(), h("div", {
|
|
7289
7303
|
key: 0,
|
|
7290
7304
|
class: "as-pop-box-mask-0",
|
|
7291
7305
|
style: Z(s.value),
|
|
@@ -7309,7 +7323,7 @@ const At = {
|
|
|
7309
7323
|
const s = {};
|
|
7310
7324
|
return n.pop[e.id]?.nooverflow || (s.overflow = n.pop[e.id]?.conoverflow || "auto"), s;
|
|
7311
7325
|
});
|
|
7312
|
-
return (s, i) => (p(),
|
|
7326
|
+
return (s, i) => (p(), h(E, null, [
|
|
7313
7327
|
u("div", {
|
|
7314
7328
|
class: "as-pop-content",
|
|
7315
7329
|
style: Z(a.value)
|
|
@@ -7318,9 +7332,9 @@ const At = {
|
|
|
7318
7332
|
u("div", Ju, v(l(n).pop[e.id]?.con || ""), 1)
|
|
7319
7333
|
], !0)
|
|
7320
7334
|
], 4),
|
|
7321
|
-
l(n).pop[e.id]?.btns?.length ? (p(),
|
|
7322
|
-
(p(!0),
|
|
7323
|
-
r.fn ? (p(),
|
|
7335
|
+
l(n).pop[e.id]?.btns?.length ? (p(), h("div", Gu, [
|
|
7336
|
+
(p(!0), h(E, null, ee(l(n).pop[e.id].btns, (r, d) => (p(), h(E, null, [
|
|
7337
|
+
r.fn ? (p(), h("div", {
|
|
7324
7338
|
key: 0,
|
|
7325
7339
|
onTouchstart: i[0] || (i[0] = V(
|
|
7326
7340
|
//@ts-ignore
|
|
@@ -7335,7 +7349,7 @@ const At = {
|
|
|
7335
7349
|
onPointerup: V((c) => r.fn(), ["stop"]),
|
|
7336
7350
|
class: K(d ? "" : "cur"),
|
|
7337
7351
|
style: Z(`${r.bg ? `background-color: ${r.bg};` : ""}`)
|
|
7338
|
-
}, v(r.nm), 47, Zu)) : (p(),
|
|
7352
|
+
}, v(r.nm), 47, Zu)) : (p(), h("div", {
|
|
7339
7353
|
key: 1,
|
|
7340
7354
|
class: K(d ? "nofn" : "cur nofn"),
|
|
7341
7355
|
style: Z(`${r.bg ? `background-color: ${r.bg};` : ""}`)
|
|
@@ -7360,7 +7374,7 @@ const At = {
|
|
|
7360
7374
|
}
|
|
7361
7375
|
return (a, s) => {
|
|
7362
7376
|
const i = U("AsSvg");
|
|
7363
|
-
return p(),
|
|
7377
|
+
return p(), h(E, null, [
|
|
7364
7378
|
u("div", td, [
|
|
7365
7379
|
l(n).pop[e.id].ico ? (p(), Y(i, {
|
|
7366
7380
|
key: 0,
|
|
@@ -7370,7 +7384,7 @@ const At = {
|
|
|
7370
7384
|
}, null, 8, ["src"])) : F("", !0),
|
|
7371
7385
|
se(" " + v(l(n).pop[e.id].tit || ""), 1)
|
|
7372
7386
|
]),
|
|
7373
|
-
l(n).pop[e.id]?.noclose ? F("", !0) : (p(),
|
|
7387
|
+
l(n).pop[e.id]?.noclose ? F("", !0) : (p(), h("div", nd, [
|
|
7374
7388
|
u("div", {
|
|
7375
7389
|
onPointerdown: s[0] || (s[0] = V((r) => o(), ["stop", "prevent"]))
|
|
7376
7390
|
}, "×", 32)
|
|
@@ -7417,14 +7431,14 @@ const At = {
|
|
|
7417
7431
|
});
|
|
7418
7432
|
return (i, r) => {
|
|
7419
7433
|
const d = ve("popresizezoom");
|
|
7420
|
-
return l(n).pop[e.id].noresize ? (p(),
|
|
7434
|
+
return l(n).pop[e.id].noresize ? (p(), h("div", {
|
|
7421
7435
|
key: 0,
|
|
7422
7436
|
class: "as-pop-area",
|
|
7423
7437
|
style: Z(s.value),
|
|
7424
7438
|
id: "pop" + t.id
|
|
7425
7439
|
}, [
|
|
7426
7440
|
D(i.$slots, "default", {}, void 0, !0)
|
|
7427
|
-
], 12, sd)) : l(n).pop[e.id].full == 2 ? G((p(),
|
|
7441
|
+
], 12, sd)) : l(n).pop[e.id].full == 2 ? G((p(), h("div", {
|
|
7428
7442
|
key: 1,
|
|
7429
7443
|
class: "as-pop-area",
|
|
7430
7444
|
style: Z(s.value),
|
|
@@ -7433,7 +7447,7 @@ const At = {
|
|
|
7433
7447
|
D(i.$slots, "default", {}, void 0, !0)
|
|
7434
7448
|
], 12, ld)), [
|
|
7435
7449
|
[d, { ujt: t.ujt, scale: 1 }]
|
|
7436
|
-
]) : G((p(),
|
|
7450
|
+
]) : G((p(), h("div", {
|
|
7437
7451
|
key: 2,
|
|
7438
7452
|
class: "as-pop-area",
|
|
7439
7453
|
style: Z(s.value),
|
|
@@ -7455,13 +7469,13 @@ const At = {
|
|
|
7455
7469
|
const e = t, { $global: n } = e.ujt;
|
|
7456
7470
|
return (o, a) => {
|
|
7457
7471
|
const s = ve("drag"), i = ve("dragzoom");
|
|
7458
|
-
return l(n).pop[e.id].notit ? (p(),
|
|
7472
|
+
return l(n).pop[e.id].notit ? (p(), h(E, { key: 0 }, [], 64)) : l(n).pop[e.id].nodrag ? (p(), h("div", {
|
|
7459
7473
|
key: 1,
|
|
7460
7474
|
class: "as-pop-drag-bar",
|
|
7461
7475
|
id: "popbar" + t.id
|
|
7462
7476
|
}, [
|
|
7463
7477
|
D(o.$slots, "default", {}, void 0, !0)
|
|
7464
|
-
], 8, ud)) : l(n).pop[e.id].full == 2 ? G((p(),
|
|
7478
|
+
], 8, ud)) : l(n).pop[e.id].full == 2 ? G((p(), h("div", {
|
|
7465
7479
|
key: 2,
|
|
7466
7480
|
class: "as-pop-drag-bar",
|
|
7467
7481
|
id: "popbar" + t.id
|
|
@@ -7472,7 +7486,7 @@ const At = {
|
|
|
7472
7486
|
domarea: "pop" + t.id,
|
|
7473
7487
|
dommask: "popmask" + t.id
|
|
7474
7488
|
}]
|
|
7475
|
-
]) : l(n).pop[e.id].full == 1 ? G((p(),
|
|
7489
|
+
]) : l(n).pop[e.id].full == 1 ? G((p(), h("div", {
|
|
7476
7490
|
key: 3,
|
|
7477
7491
|
class: "as-pop-drag-bar",
|
|
7478
7492
|
id: "popbar" + t.id
|
|
@@ -7488,7 +7502,7 @@ const At = {
|
|
|
7488
7502
|
// dragarea: 'pop' + id,
|
|
7489
7503
|
// },
|
|
7490
7504
|
}]
|
|
7491
|
-
]) : G((p(),
|
|
7505
|
+
]) : G((p(), h("div", {
|
|
7492
7506
|
key: 4,
|
|
7493
7507
|
class: "as-pop-drag-bar",
|
|
7494
7508
|
id: "popbar" + t.id
|
|
@@ -7683,7 +7697,7 @@ const At = {
|
|
|
7683
7697
|
right: 0
|
|
7684
7698
|
}), n.pop[e.id]?.maskstyle || (e?.maskstyle ? n.pop[e.id].maskstyle = e.maskstyle : n.pop[e.id].maskstyle = {}), $e(() => {
|
|
7685
7699
|
n.pop[e.id] = {};
|
|
7686
|
-
}), (o, a) => (p(),
|
|
7700
|
+
}), (o, a) => (p(), h("div", {
|
|
7687
7701
|
class: K(l(n).pop[e.id]?.css + " as-pop-drop")
|
|
7688
7702
|
}, [
|
|
7689
7703
|
l(n).pop[e.id].stat && l(n).pop[e.id].popstyle?.top != 0 ? D(o.$slots, "poparea", { key: 0 }, () => [
|
|
@@ -7723,7 +7737,7 @@ const At = {
|
|
|
7723
7737
|
], 4)
|
|
7724
7738
|
], 8, xd)
|
|
7725
7739
|
], !0) : F("", !0),
|
|
7726
|
-
l(n).pop[e.id].stat ? (p(),
|
|
7740
|
+
l(n).pop[e.id].stat ? (p(), h("div", {
|
|
7727
7741
|
key: 2,
|
|
7728
7742
|
class: "as-pop-drop-mask",
|
|
7729
7743
|
style: Z(l(n).pop[e.id].maskstyle),
|
|
@@ -7758,7 +7772,7 @@ const At = {
|
|
|
7758
7772
|
"background-color": "rgba(0, 0, 0, 0.02)"
|
|
7759
7773
|
}), $e(() => {
|
|
7760
7774
|
n.pop[e.id] = {};
|
|
7761
|
-
}), (o, a) => l(n).pop[e.id].stat ? (p(),
|
|
7775
|
+
}), (o, a) => l(n).pop[e.id].stat ? (p(), h(E, { key: 0 }, [
|
|
7762
7776
|
u("div", {
|
|
7763
7777
|
class: "as-pop-mod-mask",
|
|
7764
7778
|
style: Z(l(n).pop[e.id].maskstyle),
|
|
@@ -7813,7 +7827,7 @@ const At = {
|
|
|
7813
7827
|
}
|
|
7814
7828
|
return je(() => {
|
|
7815
7829
|
s();
|
|
7816
|
-
}), (i, r) => l(n).msg.data?.length ? (p(),
|
|
7830
|
+
}), (i, r) => l(n).msg.data?.length ? (p(), h("div", {
|
|
7817
7831
|
key: 0,
|
|
7818
7832
|
class: "as-pop-msg-area",
|
|
7819
7833
|
style: Z(l(n).msg.data?.maskstyle || {}),
|
|
@@ -7824,13 +7838,13 @@ const At = {
|
|
|
7824
7838
|
(...d) => l(o).As.eStop && l(o).As.eStop(...d))
|
|
7825
7839
|
}, [
|
|
7826
7840
|
u("div", Td, [
|
|
7827
|
-
(p(!0),
|
|
7841
|
+
(p(!0), h(E, null, ee(l(n).msg.data, (d) => (p(), h("div", zd, [
|
|
7828
7842
|
u("div", {
|
|
7829
7843
|
class: K("as-pop-msg" + (d?.type || ""))
|
|
7830
7844
|
}, [
|
|
7831
|
-
d?.tit ? (p(),
|
|
7832
|
-
d?.con ? (p(),
|
|
7833
|
-
d?.tm ? (p(),
|
|
7845
|
+
d?.tit ? (p(), h("div", Ld, v(d.tit), 1)) : F("", !0),
|
|
7846
|
+
d?.con ? (p(), h("div", Ud, v(d.con), 1)) : F("", !0),
|
|
7847
|
+
d?.tm ? (p(), h("div", Ed, " [" + v(d.tm) + "] ", 1)) : F("", !0)
|
|
7834
7848
|
], 2)
|
|
7835
7849
|
]))), 256))
|
|
7836
7850
|
]),
|
|
@@ -7887,7 +7901,7 @@ const At = {
|
|
|
7887
7901
|
const i = o.As.toObj(o.As.localGet(n.msg.key));
|
|
7888
7902
|
i && (n.msg.data = i);
|
|
7889
7903
|
}
|
|
7890
|
-
return (i, r) => s.value ? (p(),
|
|
7904
|
+
return (i, r) => s.value ? (p(), h("div", {
|
|
7891
7905
|
key: 0,
|
|
7892
7906
|
class: "as-pop-msg-area",
|
|
7893
7907
|
onPointerdown: r[0] || (r[0] = (d) => a()),
|
|
@@ -7898,9 +7912,9 @@ const At = {
|
|
|
7898
7912
|
u("div", {
|
|
7899
7913
|
class: K("as-pop-msg" + (s.value?.type || ""))
|
|
7900
7914
|
}, [
|
|
7901
|
-
s.value?.tit ? (p(),
|
|
7902
|
-
s.value?.con ? (p(),
|
|
7903
|
-
s.value?.tm ? (p(),
|
|
7915
|
+
s.value?.tit ? (p(), h("div", Wd, v(s.value.tit), 1)) : F("", !0),
|
|
7916
|
+
s.value?.con ? (p(), h("div", Hd, v(s.value.con), 1)) : F("", !0),
|
|
7917
|
+
s.value?.tm ? (p(), h("div", Vd, " [" + v(s.value.tm) + "] ", 1)) : F("", !0)
|
|
7904
7918
|
], 2)
|
|
7905
7919
|
], 36)) : F("", !0);
|
|
7906
7920
|
}
|
|
@@ -7933,7 +7947,7 @@ const At = {
|
|
|
7933
7947
|
}
|
|
7934
7948
|
return $e(() => {
|
|
7935
7949
|
n.pop[e.id] = {};
|
|
7936
|
-
}), (i, r) => (p(),
|
|
7950
|
+
}), (i, r) => (p(), h("div", {
|
|
7937
7951
|
class: K(l(n).pop[e.id]?.css + " as-pop-tip")
|
|
7938
7952
|
}, [
|
|
7939
7953
|
u("div", {
|
|
@@ -7997,12 +8011,12 @@ const At = {
|
|
|
7997
8011
|
D(o.$slots, "des", {}, void 0, !0)
|
|
7998
8012
|
]),
|
|
7999
8013
|
pop: re(() => [
|
|
8000
|
-
l(n).pop[t.id].stat ? (p(),
|
|
8014
|
+
l(n).pop[t.id].stat ? (p(), h("div", Gd, [
|
|
8001
8015
|
u("div", Zd, [
|
|
8002
8016
|
D(o.$slots, "pop", {}, void 0, !0)
|
|
8003
8017
|
]),
|
|
8004
8018
|
u("div", Qd, [
|
|
8005
|
-
e.fn ? (p(),
|
|
8019
|
+
e.fn ? (p(), h("div", {
|
|
8006
8020
|
key: 0,
|
|
8007
8021
|
onPointerdown: a[0] || (a[0] = (i) => e.fn())
|
|
8008
8022
|
}, v(l(n)?.lang?.asai?.confirm), 33)) : F("", !0),
|
|
@@ -8033,7 +8047,7 @@ const At = {
|
|
|
8033
8047
|
const e = t, { $fn: n, $global: o } = e.ujt;
|
|
8034
8048
|
return (a, s) => {
|
|
8035
8049
|
const i = U("AsSvg");
|
|
8036
|
-
return l(o).lang?.asai?.usercard ? (p(),
|
|
8050
|
+
return l(o).lang?.asai?.usercard ? (p(), h("div", op, [
|
|
8037
8051
|
u("div", {
|
|
8038
8052
|
onPointerdown: s[0] || (s[0] = (r) => l(n).sethash(l(o).sys?.router?.config?.login || "user/login"))
|
|
8039
8053
|
}, [
|
|
@@ -8069,9 +8083,9 @@ const At = {
|
|
|
8069
8083
|
},
|
|
8070
8084
|
setup(t) {
|
|
8071
8085
|
const e = t, { $db: n, $fn: o } = e.ujt, { delUser: a } = o.useUser(e);
|
|
8072
|
-
return a(), (s, i) => (p(),
|
|
8086
|
+
return a(), (s, i) => (p(), h("div", ip, [
|
|
8073
8087
|
u("div", rp, [
|
|
8074
|
-
l(n).channeluser.cur.msg ? (p(),
|
|
8088
|
+
l(n).channeluser.cur.msg ? (p(), h("h1", cp, v(l(n).channeluser.cur.msg), 1)) : (p(), h("h1", up, v(l(o).lg("channeluser.ui.delok")), 1)),
|
|
8075
8089
|
u("div", dp, [
|
|
8076
8090
|
u("div", {
|
|
8077
8091
|
class: "cur",
|
|
@@ -8091,7 +8105,7 @@ const At = {
|
|
|
8091
8105
|
},
|
|
8092
8106
|
setup(t) {
|
|
8093
8107
|
const e = t, { $db: n, $fn: o } = e.ujt, { userEdit: a } = o.useUser(e);
|
|
8094
|
-
return (s, i) => (p(),
|
|
8108
|
+
return (s, i) => (p(), h("div", mp, [
|
|
8095
8109
|
u("div", hp, [
|
|
8096
8110
|
D(s.$slots, "tit"),
|
|
8097
8111
|
u("label", null, [
|
|
@@ -8141,14 +8155,14 @@ const At = {
|
|
|
8141
8155
|
},
|
|
8142
8156
|
setup(t) {
|
|
8143
8157
|
const e = t, { $db: n, $global: o, $fn: a } = e.ujt, { editUser: s, initUser: i, cmLvList: r } = a.useUser(e);
|
|
8144
|
-
return i(), (d, c) => (p(),
|
|
8158
|
+
return i(), (d, c) => (p(), h("div", bp, [
|
|
8145
8159
|
u("div", _p, [
|
|
8146
8160
|
D(d.$slots, "tit"),
|
|
8147
8161
|
u("label", null, [
|
|
8148
8162
|
u("div", null, v(l(a).lg("channeluser.data.us")) + ":", 1),
|
|
8149
8163
|
se(" " + v(l(n).channeluser.cur.us), 1)
|
|
8150
8164
|
]),
|
|
8151
|
-
l(n).channeluser.cur.lv < l(o).user?.info?.lv || l(n).channeluser.cur.us === l(o).user?.info?.us ? (p(),
|
|
8165
|
+
l(n).channeluser.cur.lv < l(o).user?.info?.lv || l(n).channeluser.cur.us === l(o).user?.info?.us ? (p(), h(E, { key: 0 }, [
|
|
8152
8166
|
u("label", null, [
|
|
8153
8167
|
u("div", null, v(l(a).lg("channeluser.data.pw")) + ":", 1),
|
|
8154
8168
|
G(u("input", {
|
|
@@ -8158,12 +8172,12 @@ const At = {
|
|
|
8158
8172
|
[de, l(n).channeluser.cur.pw]
|
|
8159
8173
|
])
|
|
8160
8174
|
]),
|
|
8161
|
-
l(n).channeluser.cur.us !== l(o).user?.info?.us ? (p(),
|
|
8175
|
+
l(n).channeluser.cur.us !== l(o).user?.info?.us ? (p(), h("label", $p, [
|
|
8162
8176
|
u("div", null, v(l(a).lg("channeluser.data.lv")) + ":", 1),
|
|
8163
8177
|
G(u("select", {
|
|
8164
8178
|
"onUpdate:modelValue": c[1] || (c[1] = (f) => l(n).channeluser.cur.lv = f)
|
|
8165
8179
|
}, [
|
|
8166
|
-
(p(!0),
|
|
8180
|
+
(p(!0), h(E, null, ee(l(r), (f) => (p(), h("option", {
|
|
8167
8181
|
key: "lv" + f[0],
|
|
8168
8182
|
value: +f[0]
|
|
8169
8183
|
}, v(f[1]), 9, kp))), 128))
|
|
@@ -8178,7 +8192,7 @@ const At = {
|
|
|
8178
8192
|
}, v(l(a).lg("channeluser.ui.edit")), 33),
|
|
8179
8193
|
D(d.$slots, "btn")
|
|
8180
8194
|
])
|
|
8181
|
-
], 64)) : (p(),
|
|
8195
|
+
], 64)) : (p(), h(E, { key: 1 }, [
|
|
8182
8196
|
u("div", jp, v(l(a).lg("channeluser.ui.nopower")), 1),
|
|
8183
8197
|
u("div", xp, [
|
|
8184
8198
|
D(d.$slots, "btn")
|
|
@@ -8197,7 +8211,7 @@ const At = {
|
|
|
8197
8211
|
},
|
|
8198
8212
|
setup(t) {
|
|
8199
8213
|
const e = t, { $fn: n, $global: o } = e.ujt, { userExit: a } = n.useUser(e);
|
|
8200
|
-
return a(), (s, i) => (p(),
|
|
8214
|
+
return a(), (s, i) => (p(), h("div", Cp, [
|
|
8201
8215
|
u("div", Ap, [
|
|
8202
8216
|
D(s.$slots, "tit"),
|
|
8203
8217
|
u("div", Op, [
|
|
@@ -8235,16 +8249,16 @@ const At = {
|
|
|
8235
8249
|
o.channeluser.fetch = s, o.channeluser.setpage = i, he(() => {
|
|
8236
8250
|
s(0);
|
|
8237
8251
|
}), o.channeluser.cmPageSize = H(() => Number(a.location.query?.ps) || o.channeluser.config?.ps || 5);
|
|
8238
|
-
function d(
|
|
8239
|
-
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 + " " +
|
|
8252
|
+
function d(m) {
|
|
8253
|
+
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 + " " + m.us, a.pop.popdefaultconfirm.fn = () => r(m.us);
|
|
8240
8254
|
}
|
|
8241
|
-
function c(
|
|
8242
|
-
n.setquery({ us:
|
|
8255
|
+
function c(m) {
|
|
8256
|
+
n.setquery({ us: m.us }, 1), o.channeluser.cur.us = m.us, o.channeluser.cur.pw = m.pw, o.channeluser.cur.lv = m.lv, a.pop.popedituser.stat = 1, a.pop.popedituser.tit = a.lang.channeluser.ui.edit + " " + m.us;
|
|
8243
8257
|
}
|
|
8244
|
-
const f = H(() => (o?.channeluser?.list || []).filter((
|
|
8245
|
-
return (
|
|
8258
|
+
const f = H(() => (o?.channeluser?.list || []).filter((m) => +m?.lv <= +a.user?.info?.lv));
|
|
8259
|
+
return (m, g) => {
|
|
8246
8260
|
const _ = U("UserEditManage"), $ = U("PopBox"), y = U("ChannelListSearch"), b = U("ChannelListPage");
|
|
8247
|
-
return p(),
|
|
8261
|
+
return p(), h(E, null, [
|
|
8248
8262
|
W($, {
|
|
8249
8263
|
ujt: t.ujt,
|
|
8250
8264
|
id: "popedituser",
|
|
@@ -8267,8 +8281,8 @@ const At = {
|
|
|
8267
8281
|
}, 8, ["ujt"]),
|
|
8268
8282
|
u("div", zp, [
|
|
8269
8283
|
u("div", Lp, [
|
|
8270
|
-
D(
|
|
8271
|
-
D(
|
|
8284
|
+
D(m.$slots, "tit"),
|
|
8285
|
+
D(m.$slots, "btn"),
|
|
8272
8286
|
t.showtype ? F("", !0) : (p(), Y(y, {
|
|
8273
8287
|
key: 0,
|
|
8274
8288
|
ujt: t.ujt,
|
|
@@ -8280,20 +8294,20 @@ const At = {
|
|
|
8280
8294
|
u("div", Dp, v(l(a).lang.channeluser.data.lv), 1),
|
|
8281
8295
|
u("div", Rp, v(l(a).lang.asai.opt), 1)
|
|
8282
8296
|
]),
|
|
8283
|
-
(p(!0),
|
|
8297
|
+
(p(!0), h(E, null, ee(f.value, (k) => (p(), h("div", null, [
|
|
8284
8298
|
u("div", Fp, v(k.us), 1),
|
|
8285
8299
|
u("div", Wp, v(l(a).lang.channeluser.lv[k.lv]), 1),
|
|
8286
|
-
+k.lv < l(a).user?.info?.lv ? (p(),
|
|
8300
|
+
+k.lv < l(a).user?.info?.lv ? (p(), h("div", Hp, [
|
|
8287
8301
|
u("div", {
|
|
8288
8302
|
onPointerdown: (M) => c(k)
|
|
8289
8303
|
}, v(l(n).lg("channeluser.ui.edit")), 41, Vp),
|
|
8290
8304
|
u("div", {
|
|
8291
8305
|
onPointerdown: (M) => d(k)
|
|
8292
8306
|
}, v(l(n).lg("channeluser.ui.del")), 41, qp)
|
|
8293
|
-
])) : (p(),
|
|
8307
|
+
])) : (p(), h("div", Bp, "-"))
|
|
8294
8308
|
]))), 256))
|
|
8295
8309
|
]),
|
|
8296
|
-
l(o).channeluser?.cmPageList?.length > 1 ? (p(),
|
|
8310
|
+
l(o).channeluser?.cmPageList?.length > 1 ? (p(), h("div", Np, [
|
|
8297
8311
|
W(b, {
|
|
8298
8312
|
ujt: t.ujt,
|
|
8299
8313
|
opt: { channel: "channeluser", model: "asai", ty: 1 }
|
|
@@ -8314,7 +8328,7 @@ const At = {
|
|
|
8314
8328
|
},
|
|
8315
8329
|
setup(t) {
|
|
8316
8330
|
const e = t, { $db: n, $fn: o, $global: a } = e.ujt, { userLogin: s } = o.useUser(e);
|
|
8317
|
-
return (i, r) => (p(),
|
|
8331
|
+
return (i, r) => (p(), h("div", Kp, [
|
|
8318
8332
|
u("div", Jp, [
|
|
8319
8333
|
D(i.$slots, "tit"),
|
|
8320
8334
|
D(i.$slots, "form", {
|
|
@@ -8364,8 +8378,8 @@ const At = {
|
|
|
8364
8378
|
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;
|
|
8365
8379
|
}
|
|
8366
8380
|
return (r, d) => {
|
|
8367
|
-
const c = U("UserRegManage"), f = U("PopBox"),
|
|
8368
|
-
return p(),
|
|
8381
|
+
const c = U("UserRegManage"), f = U("PopBox"), m = U("UserListManage");
|
|
8382
|
+
return p(), h(E, null, [
|
|
8369
8383
|
W(f, {
|
|
8370
8384
|
ujt: t.ujt,
|
|
8371
8385
|
id: "popadduser",
|
|
@@ -8386,7 +8400,7 @@ const At = {
|
|
|
8386
8400
|
]),
|
|
8387
8401
|
_: 1
|
|
8388
8402
|
}, 8, ["ujt"]),
|
|
8389
|
-
l(o).channeluser?.stat ? (p(), Y(
|
|
8403
|
+
l(o).channeluser?.stat ? (p(), Y(m, {
|
|
8390
8404
|
key: 0,
|
|
8391
8405
|
ujt: t.ujt,
|
|
8392
8406
|
showtype: t.showtype
|
|
@@ -8397,11 +8411,11 @@ const At = {
|
|
|
8397
8411
|
class: "cur",
|
|
8398
8412
|
onPointerdown: d[1] || (d[1] = (g) => i())
|
|
8399
8413
|
}, v(l(n).lg("channeluser.ui.add")), 33),
|
|
8400
|
-
t.showtype ? F("", !0) : (p(),
|
|
8414
|
+
t.showtype ? F("", !0) : (p(), h("div", {
|
|
8401
8415
|
key: 0,
|
|
8402
8416
|
onPointerdown: d[2] || (d[2] = (g) => l(n).sethash(""))
|
|
8403
8417
|
}, v(l(n).lg("asai.index")), 33)),
|
|
8404
|
-
t.showtype ? F("", !0) : (p(),
|
|
8418
|
+
t.showtype ? F("", !0) : (p(), h("div", {
|
|
8405
8419
|
key: 1,
|
|
8406
8420
|
onPointerdown: d[3] || (d[3] = (g) => l(n).sethash("user/exit/"))
|
|
8407
8421
|
}, v(l(n).lg("channeluser.ui.exit")), 33))
|
|
@@ -8430,7 +8444,7 @@ const At = {
|
|
|
8430
8444
|
},
|
|
8431
8445
|
setup(t) {
|
|
8432
8446
|
const e = t, { $db: n, $fn: o } = e.ujt, { userReg: a } = o.useUser(e);
|
|
8433
|
-
return (s, i) => (p(),
|
|
8447
|
+
return (s, i) => (p(), h("div", of, [
|
|
8434
8448
|
u("div", af, [
|
|
8435
8449
|
D(s.$slots, "tit"),
|
|
8436
8450
|
u("label", null, [
|
|
@@ -8470,7 +8484,7 @@ const At = {
|
|
|
8470
8484
|
},
|
|
8471
8485
|
setup(t) {
|
|
8472
8486
|
const e = t, { $db: n, $fn: o } = e.ujt, { addUser: a, cmLvList: s } = o.useUser(e);
|
|
8473
|
-
return n.channeluser.cur.us = "", n.channeluser.cur.pw = "", n.channeluser.cur.lv = 3, (i, r) => (p(),
|
|
8487
|
+
return n.channeluser.cur.us = "", n.channeluser.cur.pw = "", n.channeluser.cur.lv = 3, (i, r) => (p(), h("div", cf, [
|
|
8474
8488
|
u("div", uf, [
|
|
8475
8489
|
D(i.$slots, "tit"),
|
|
8476
8490
|
u("label", null, [
|
|
@@ -8497,7 +8511,7 @@ const At = {
|
|
|
8497
8511
|
G(u("select", {
|
|
8498
8512
|
"onUpdate:modelValue": r[2] || (r[2] = (d) => l(n).channeluser.cur.lv = d)
|
|
8499
8513
|
}, [
|
|
8500
|
-
(p(!0),
|
|
8514
|
+
(p(!0), h(E, null, ee(l(s), (d) => (p(), h("option", {
|
|
8501
8515
|
key: "lv" + d[0],
|
|
8502
8516
|
value: +d[0]
|
|
8503
8517
|
}, v(d[1]), 9, df))), 128))
|