asai-vue-host 0.0.19 → 0.0.20
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.css +1 -1
- package/dist/asai-vue-host.es.js +762 -760
- package/dist/asai-vue-host.umd.js +5 -5
- package/package.json +1 -1
package/dist/asai-vue-host.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { computed as q, inject as
|
|
1
|
+
import { computed as q, inject as Ve, reactive as me, provide as ht, defineComponent as C, createBlock as X, openBlock as p, resolveDynamicComponent as pe, unref as i, resolveComponent as U, createElementBlock as m, normalizeClass as J, 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 R, onUnmounted as $e, onMounted as he, withCtx as re, withModifiers as V, vModelText as ue, vModelSelect as we, createTextVNode as se, ref as Y, nextTick as be, watch as Oe, withKeys as gt, createStaticVNode as qe, useCssVars as ge, normalizeStyle as Z, defineAsyncComponent as ke, vShow as Ie, Teleport as Ae, shallowReactive as vt, onUpdated as yt, isRef as Pe, vModelDynamic as Te, KeepAlive as bt, createSlots as _t } from "vue";
|
|
2
2
|
const Be = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3
3
|
__proto__: null,
|
|
4
4
|
get default() {
|
|
@@ -24,50 +24,50 @@ const Be = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
24
24
|
default: $t
|
|
25
25
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
26
26
|
function xe(t, e) {
|
|
27
|
-
function n(
|
|
28
|
-
k?.classList?.contains(
|
|
27
|
+
function n(_, k) {
|
|
28
|
+
k?.classList?.contains(_) && k.classList.remove(_);
|
|
29
29
|
}
|
|
30
|
-
function o(
|
|
31
|
-
k?.classList?.contains(
|
|
30
|
+
function o(_, k) {
|
|
31
|
+
k?.classList?.contains(_) || k.classList.add(_);
|
|
32
32
|
}
|
|
33
|
-
function a(
|
|
34
|
-
o("touch-none",
|
|
33
|
+
function a(_) {
|
|
34
|
+
o("touch-none", _);
|
|
35
35
|
}
|
|
36
|
-
function s(
|
|
37
|
-
n("touch-none",
|
|
36
|
+
function s(_) {
|
|
37
|
+
n("touch-none", _);
|
|
38
38
|
}
|
|
39
|
-
function l(
|
|
40
|
-
const k = window.event ||
|
|
39
|
+
function l(_) {
|
|
40
|
+
const k = window.event || _;
|
|
41
41
|
return k?.preventDefault(), k?.stopPropagation(), !0;
|
|
42
42
|
}
|
|
43
|
-
function r(
|
|
44
|
-
const k = window.event ||
|
|
43
|
+
function r(_) {
|
|
44
|
+
const k = window.event || _;
|
|
45
45
|
k.cancelable && (k?.preventDefault(), k?.stopPropagation());
|
|
46
46
|
}
|
|
47
|
-
function d(
|
|
47
|
+
function d(_) {
|
|
48
48
|
e.timeout || (e.timeout = requestAnimationFrame(() => {
|
|
49
|
-
|
|
49
|
+
_(), cancelAnimationFrame(e.timeout), e.timeout = null;
|
|
50
50
|
}));
|
|
51
51
|
}
|
|
52
52
|
function c() {
|
|
53
53
|
return "ontouchstart" in window || navigator.maxTouchPoints;
|
|
54
54
|
}
|
|
55
|
-
function f(
|
|
56
|
-
c() && e.touchstat !== 1 && (
|
|
55
|
+
function f(_) {
|
|
56
|
+
c() && e.touchstat !== 1 && (_.addEventListener("touchstart", b, !0), e.touchstat = 1);
|
|
57
57
|
}
|
|
58
|
-
function h(
|
|
59
|
-
c() && e.touchstat !== 2 && (
|
|
58
|
+
function h(_) {
|
|
59
|
+
c() && e.touchstat !== 2 && (_.addEventListener("touchmove", l), a(_), e.touchstat = 2);
|
|
60
60
|
}
|
|
61
|
-
function g(
|
|
62
|
-
c() && e.touchstat !== 3 && (
|
|
61
|
+
function g(_) {
|
|
62
|
+
c() && e.touchstat !== 3 && (_.removeEventListener("touchmove", l), s(_), e.touchstat = 3);
|
|
63
63
|
}
|
|
64
|
-
function _
|
|
64
|
+
function b(_) {
|
|
65
65
|
document.body.addEventListener("touchmove", $), document.body.addEventListener("touchend", y), e.dragttm = Date.now();
|
|
66
66
|
}
|
|
67
|
-
function $(
|
|
67
|
+
function $(_) {
|
|
68
68
|
e.dragttm && Date.now() - e.dragttm < 1e3 && (e.dragtstat = 2);
|
|
69
69
|
}
|
|
70
|
-
function y(
|
|
70
|
+
function y(_) {
|
|
71
71
|
document.body.removeEventListener("touchmove", $), document.body.removeEventListener("touchend", y), e.dragtstat = 0;
|
|
72
72
|
}
|
|
73
73
|
return {
|
|
@@ -94,17 +94,17 @@ const fe = {}, wt = {
|
|
|
94
94
|
const h = ($) => {
|
|
95
95
|
console.log("handleDown", fe, $), a(t), l = !0;
|
|
96
96
|
const y = fe.dragAreaDom.getBoundingClientRect();
|
|
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",
|
|
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", b);
|
|
98
98
|
}, g = ($) => {
|
|
99
99
|
n(() => {
|
|
100
100
|
if (l) {
|
|
101
101
|
c = $.clientX - r, f = $.clientY - d;
|
|
102
|
-
const y = window.innerWidth - fe.dragAreaDom.offsetWidth,
|
|
103
|
-
c = Math.max(0, Math.min(c, y)), f = Math.max(0, Math.min(f,
|
|
102
|
+
const y = window.innerWidth - fe.dragAreaDom.offsetWidth, _ = window.innerHeight - fe.dragAreaDom.offsetHeight;
|
|
103
|
+
c = Math.max(0, Math.min(c, y)), f = Math.max(0, Math.min(f, _)), fe.dragAreaDom.style.transform = `translate(${c}px, ${f}px)`;
|
|
104
104
|
}
|
|
105
105
|
});
|
|
106
|
-
},
|
|
107
|
-
l = !1, t.style.cursor = "grab", s(t), document.removeEventListener("pointermove", g), document.removeEventListener("pointerup",
|
|
106
|
+
}, b = () => {
|
|
107
|
+
l = !1, t.style.cursor = "grab", s(t), document.removeEventListener("pointermove", g), document.removeEventListener("pointerup", b);
|
|
108
108
|
};
|
|
109
109
|
t.addEventListener("pointerdown", h), fe.unmounted = () => {
|
|
110
110
|
t.removeEventListener("pointerdown", h);
|
|
@@ -125,17 +125,17 @@ const fe = {}, wt = {
|
|
|
125
125
|
);
|
|
126
126
|
o(t);
|
|
127
127
|
let l = !1, r = { x: 0, y: 0 }, d = { x: 0, y: 0 }, c = null, f = 1;
|
|
128
|
-
const h = (e.value?.dom ? document.getElementById(e.value.dom) : "") || t, g = (e.value?.domarea ? document.getElementById(e.value.domarea) : "") || h,
|
|
129
|
-
if (!
|
|
128
|
+
const h = (e.value?.dom ? document.getElementById(e.value.dom) : "") || t, g = (e.value?.domarea ? document.getElementById(e.value.domarea) : "") || h, b = (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, $ = () => b && (e.value?.scale || e.value?.ujt?.$global?.scale) || 1, y = (x) => {
|
|
129
|
+
if (!b) return;
|
|
130
130
|
if (a(t), x.preventDefault(), f = $(), e.value?.pos)
|
|
131
131
|
d = e.value.pos;
|
|
132
132
|
else {
|
|
133
133
|
const S = window.getComputedStyle(g).transform?.split(", ");
|
|
134
134
|
if (S.length > 2) {
|
|
135
|
-
const
|
|
135
|
+
const A = S.pop().slice(0, -1) || 0, M = S.pop() || 0;
|
|
136
136
|
d = {
|
|
137
137
|
x: parseFloat(M),
|
|
138
|
-
y: parseFloat(
|
|
138
|
+
y: parseFloat(A)
|
|
139
139
|
};
|
|
140
140
|
} else
|
|
141
141
|
d = {
|
|
@@ -143,39 +143,39 @@ const fe = {}, wt = {
|
|
|
143
143
|
y: 0
|
|
144
144
|
};
|
|
145
145
|
}
|
|
146
|
-
l = !0, c =
|
|
146
|
+
l = !0, c = b.getBoundingClientRect();
|
|
147
147
|
let L, w;
|
|
148
148
|
L = x.clientX, w = x.clientY, r = {
|
|
149
149
|
x: (L - c.left) / f - d.x,
|
|
150
150
|
y: (w - c.top) / f - d.y
|
|
151
|
-
}, h.setPointerCapture(x.pointerId), document.addEventListener("pointermove",
|
|
152
|
-
},
|
|
151
|
+
}, h.setPointerCapture(x.pointerId), document.addEventListener("pointermove", _), document.addEventListener("pointerup", k), document.addEventListener("pointercancel", k);
|
|
152
|
+
}, _ = (x) => {
|
|
153
153
|
if (!l || !c) return;
|
|
154
154
|
let L, w;
|
|
155
155
|
L = x.clientX, w = x.clientY, f = $();
|
|
156
|
-
const j = (L - c.left) / f - r.x, S = (w - c.top) / f - r.y,
|
|
156
|
+
const j = (L - c.left) / f - r.x, S = (w - c.top) / f - r.y, A = b.offsetWidth - g.offsetWidth, M = b.offsetHeight - g.offsetHeight;
|
|
157
157
|
n(() => {
|
|
158
158
|
e.value.pos ? (e.value.pos.x = +Math.max(
|
|
159
159
|
0,
|
|
160
|
-
Math.min(j,
|
|
160
|
+
Math.min(j, A)
|
|
161
161
|
).toFixed(3), e.value.pos.y = +Math.max(
|
|
162
162
|
0,
|
|
163
163
|
Math.min(S, M)
|
|
164
164
|
).toFixed(3)) : g.style.transform = `translate(${+Math.max(
|
|
165
165
|
0,
|
|
166
|
-
Math.min(j,
|
|
166
|
+
Math.min(j, A)
|
|
167
167
|
).toFixed(3)}px,${+Math.max(
|
|
168
168
|
0,
|
|
169
169
|
Math.min(S, M)
|
|
170
170
|
).toFixed(3)}px)`;
|
|
171
171
|
});
|
|
172
172
|
}, k = (x) => {
|
|
173
|
-
s(t), x instanceof PointerEvent && h.hasPointerCapture(x.pointerId) && (l = !1, h.releasePointerCapture(x.pointerId)), document.removeEventListener("pointermove",
|
|
173
|
+
s(t), x instanceof PointerEvent && h.hasPointerCapture(x.pointerId) && (l = !1, h.releasePointerCapture(x.pointerId)), document.removeEventListener("pointermove", _), document.removeEventListener("pointerup", k), document.removeEventListener("pointercancel", k);
|
|
174
174
|
};
|
|
175
175
|
h.addEventListener("pointerdown", y);
|
|
176
|
-
const
|
|
177
|
-
window.addEventListener("resize",
|
|
178
|
-
h.removeEventListener("pointerdown", y), window.removeEventListener("resize",
|
|
176
|
+
const O = () => c = null;
|
|
177
|
+
window.addEventListener("resize", O), ze.unmounted = () => {
|
|
178
|
+
h.removeEventListener("pointerdown", y), window.removeEventListener("resize", O);
|
|
179
179
|
};
|
|
180
180
|
},
|
|
181
181
|
unmounted(t) {
|
|
@@ -200,77 +200,79 @@ const Ct = {
|
|
|
200
200
|
}
|
|
201
201
|
e.value.type === 2 ? t.addEventListener("dblclick", n) : t.addEventListener("click", n);
|
|
202
202
|
}
|
|
203
|
-
},
|
|
203
|
+
}, At = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
204
204
|
__proto__: null,
|
|
205
205
|
default: Ct
|
|
206
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
206
|
+
}, Symbol.toStringTag, { value: "Module" })), ie = {}, Ot = {
|
|
207
207
|
mounted(t, e) {
|
|
208
208
|
const { $global: n, $model: o } = e.value?.ujt || {};
|
|
209
209
|
if (n?.sys?.onkeyboard) {
|
|
210
210
|
let a = function() {
|
|
211
211
|
n.keyboard.params || (n.keyboard.params = {});
|
|
212
|
-
}, s = function(
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
);
|
|
212
|
+
}, s = function(g) {
|
|
213
|
+
g?.setAttribute("inputmode", "none"), g?.style?.setProperty("ime-mode", "disabled", "important");
|
|
214
|
+
}, l = function(g) {
|
|
215
|
+
g?.removeAttribute("inputmode"), g?.style?.setProperty("ime-mode", "normal", "important");
|
|
216
|
+
}, r = function(g) {
|
|
217
|
+
s(g), n.keyboard.params.ot && (n.keyboard.params.ot.fndscb = () => {
|
|
218
|
+
l(g), n.keyboard.params.ot.fndscb = null;
|
|
219
219
|
});
|
|
220
|
-
},
|
|
220
|
+
}, d = function(g) {
|
|
221
|
+
ie.monacoDom = g.target.closest(".askey-luaeditor"), ie.monacoDivDom = ie.monacoDom.querySelector(
|
|
222
|
+
".native-edit-context"
|
|
223
|
+
), r(ie.monacoDivDom), ie.monacoHoverDom = ie.monacoDom.querySelector(".monaco-hover"), r(ie.monacoHoverDom), ie.monacoTextareaDom = ie.monacoDom.querySelector("textarea"), r(ie.monacoTextareaDom);
|
|
224
|
+
}, c = function(g) {
|
|
221
225
|
return o.data.sys.keyboard?.nokeytypes?.some(
|
|
222
|
-
(
|
|
226
|
+
(b) => g.target?.closest(b)
|
|
223
227
|
);
|
|
224
|
-
},
|
|
228
|
+
}, f = function(g) {
|
|
225
229
|
return Object.keys(
|
|
226
230
|
o.data.sys.keyboard?.askeytypes || {}
|
|
227
|
-
)?.find((
|
|
228
|
-
},
|
|
229
|
-
if (n.keyboard.params?.ot?.fnnumcb?.(), n.keyboard.params?.ot?.fndscb?.(), a(), e.value?.auto && (n.keyboard.areastyle.x =
|
|
231
|
+
)?.find((b) => g.target?.closest(b));
|
|
232
|
+
}, h = function(g) {
|
|
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"))
|
|
230
234
|
n.keyboard.params.ot.portaskeyboard = !0;
|
|
231
|
-
else if (
|
|
232
|
-
|
|
233
|
-
".native-edit-context"
|
|
234
|
-
), re.monacoDomText = re.monacoDom.querySelector("textarea"), s(re.monacoDomText), e.value?.style && (n.keyboard.params.ot.style = e.value.style), Object.assign(n.keyboard.params, {
|
|
235
|
+
else if (g.target?.closest(".askey-luaeditor"))
|
|
236
|
+
d(g), e.value?.style && (n.keyboard.params.ot.style = e.value.style), Object.assign(n.keyboard.params, {
|
|
235
237
|
type: "monaco",
|
|
236
|
-
el:
|
|
238
|
+
el: ie.monacoTextareaDom
|
|
237
239
|
}), n.keyboard.showkeyboard = ".askey-luaeditor";
|
|
238
240
|
else if (["textarea", "text", "number", "password"].includes(
|
|
239
|
-
|
|
240
|
-
) && !
|
|
241
|
-
if (
|
|
242
|
-
n.keyboard.showkeyboard = ".askey-number", n.keyboard.params.ot.isnumber = !0,
|
|
243
|
-
let
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
),
|
|
241
|
+
g.target?.type
|
|
242
|
+
) && !g.target?.disabled) {
|
|
243
|
+
if (ie.monacoDivDom = g.target, r(ie.monacoDivDom), ie.monacoDivDom.type === "number") {
|
|
244
|
+
n.keyboard.showkeyboard = ".askey-number", n.keyboard.params.ot.isnumber = !0, ie.monacoDivDom.type = "text";
|
|
245
|
+
let b = requestAnimationFrame(() => {
|
|
246
|
+
ie.monacoDivDom.setSelectionRange(
|
|
247
|
+
ie.monacoDivDom?.value?.length || 0,
|
|
248
|
+
ie.monacoDivDom?.value?.length || 0
|
|
249
|
+
), ie.monacoDivDom.focus(), cancelAnimationFrame(b);
|
|
248
250
|
});
|
|
249
251
|
n.keyboard.params.ot.fnnumcb = () => {
|
|
250
|
-
|
|
252
|
+
ie.monacoDivDom.type = "number";
|
|
251
253
|
};
|
|
252
254
|
} else {
|
|
253
|
-
const
|
|
254
|
-
|
|
255
|
+
const b = f(g);
|
|
256
|
+
b ? n.keyboard.showkeyboard = b : n.keyboard.showkeyboard = ".askey-default";
|
|
255
257
|
}
|
|
256
258
|
e.value?.style && (n.keyboard.params.ot.style = e.value.style), Object.assign(n.keyboard.params, {
|
|
257
|
-
type:
|
|
258
|
-
el:
|
|
259
|
+
type: ie.monacoDivDom.type,
|
|
260
|
+
el: ie.monacoDivDom || t
|
|
259
261
|
});
|
|
260
262
|
} else
|
|
261
263
|
n.keyboard.params = {}, n.keyboard.showkeyboard = "";
|
|
262
264
|
};
|
|
263
|
-
a(), t.addEventListener("pointerdown",
|
|
264
|
-
t.removeEventListener("pointerdown",
|
|
265
|
+
a(), t.addEventListener("pointerdown", h), ie.unmounted = () => {
|
|
266
|
+
t.removeEventListener("pointerdown", h);
|
|
265
267
|
};
|
|
266
268
|
}
|
|
267
269
|
},
|
|
268
270
|
unmounted(t) {
|
|
269
|
-
typeof
|
|
271
|
+
typeof ie?.unmounted == "function" && ie.unmounted();
|
|
270
272
|
}
|
|
271
273
|
}, Mt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
272
274
|
__proto__: null,
|
|
273
|
-
default:
|
|
275
|
+
default: Ot
|
|
274
276
|
}, Symbol.toStringTag, { value: "Module" })), Tt = {
|
|
275
277
|
mounted(t, e) {
|
|
276
278
|
e?.value?.right || t?.classList && !t.classList?.contains("asailevel") && t.classList.add("asailevel");
|
|
@@ -298,10 +300,10 @@ const Ct = {
|
|
|
298
300
|
up: g,
|
|
299
301
|
move: (y) => {
|
|
300
302
|
if (!r) return;
|
|
301
|
-
let
|
|
302
|
-
y?.touches?.[0] ? (
|
|
303
|
-
const
|
|
304
|
-
(
|
|
303
|
+
let _ = 0, k = 0;
|
|
304
|
+
y?.touches?.[0] ? (_ = y.touches[0].clientX, k = y.touches[0].clientY) : (_ = y.clientX, k = y.clientY);
|
|
305
|
+
const O = Math.abs(_ - d), x = Math.abs(k - c);
|
|
306
|
+
(O > f || x > f) && (l !== null && (clearTimeout(l), l = null), r = !1);
|
|
305
307
|
}
|
|
306
308
|
};
|
|
307
309
|
t.addEventListener("pointerdown", h), t.addEventListener("pointerup", g), t.addEventListener("pointercancel", g), t.addEventListener("pointerleave", g), t._pressHandlers = $;
|
|
@@ -313,7 +315,7 @@ const Ct = {
|
|
|
313
315
|
}, Ut = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
314
316
|
__proto__: null,
|
|
315
317
|
default: Lt
|
|
316
|
-
}, Symbol.toStringTag, { value: "Module" })), Le = {},
|
|
318
|
+
}, Symbol.toStringTag, { value: "Module" })), Le = {}, It = {
|
|
317
319
|
mounted(t, e) {
|
|
318
320
|
const { fnPThrottle: n, vtTouchInit: o, vtTouchDown: a, vtTouchUp: s } = xe(
|
|
319
321
|
t,
|
|
@@ -326,40 +328,40 @@ const Ct = {
|
|
|
326
328
|
width: l?.$global?.sys?.zoomwidth || 1920,
|
|
327
329
|
height: l?.$global?.sys?.zoomheight || 1200
|
|
328
330
|
}, g = () => d || l?.$global?.scale || 1;
|
|
329
|
-
let
|
|
330
|
-
const x = (
|
|
331
|
-
a(t),
|
|
332
|
-
const { clientX: M, clientY: z } = x(
|
|
333
|
-
$ = M - window.scrollX, y = z - window.scrollY,
|
|
334
|
-
const
|
|
335
|
-
if (
|
|
336
|
-
const
|
|
331
|
+
let b = !1, $, y, _, k, O = r || { w: 0, h: 0 };
|
|
332
|
+
const x = (A) => ({ clientX: A.clientX, clientY: A.clientY }), L = (A) => {
|
|
333
|
+
a(t), A.preventDefault(), f = g(), b = !0;
|
|
334
|
+
const { clientX: M, clientY: z } = x(A);
|
|
335
|
+
$ = M - window.scrollX, y = z - window.scrollY, _ = t.offsetWidth, k = t.offsetHeight;
|
|
336
|
+
const I = window.getComputedStyle(t).transform?.split(", ");
|
|
337
|
+
if (I && I.length > 2) {
|
|
338
|
+
const H = I.pop().slice(0, -1), N = I.pop();
|
|
337
339
|
c = {
|
|
338
340
|
x: parseFloat(N),
|
|
339
|
-
y: parseFloat(
|
|
341
|
+
y: parseFloat(H)
|
|
340
342
|
};
|
|
341
343
|
} else
|
|
342
344
|
c = { x: 0, y: 0 };
|
|
343
|
-
t.style.transform = `translate(${c.x}px,${c.y}px)`,
|
|
345
|
+
t.style.transform = `translate(${c.x}px,${c.y}px)`, A instanceof PointerEvent && t.setPointerCapture(A.pointerId), document.addEventListener(
|
|
344
346
|
"pointermove",
|
|
345
347
|
w
|
|
346
348
|
), document.addEventListener("pointerup", j), document.addEventListener(
|
|
347
349
|
"pointercancel",
|
|
348
350
|
j
|
|
349
351
|
);
|
|
350
|
-
}, w = (
|
|
351
|
-
|
|
352
|
-
const { clientX: M, clientY: z } = x(
|
|
353
|
-
|
|
354
|
-
Math.max(88,
|
|
352
|
+
}, w = (A) => {
|
|
353
|
+
b && n(() => {
|
|
354
|
+
const { clientX: M, clientY: z } = x(A), P = (M - window.scrollX - $) / f, I = (z - window.scrollY - y) / f;
|
|
355
|
+
O.w = +Math.min(
|
|
356
|
+
Math.max(88, _ + P),
|
|
355
357
|
h.width - c.x
|
|
356
|
-
).toFixed(3),
|
|
357
|
-
Math.max(58, k +
|
|
358
|
+
).toFixed(3), O.h = +Math.min(
|
|
359
|
+
Math.max(58, k + I),
|
|
358
360
|
h.height - c.y
|
|
359
|
-
).toFixed(3), t.style.width =
|
|
361
|
+
).toFixed(3), t.style.width = O.w + "px", t.style.height = O.h + "px";
|
|
360
362
|
});
|
|
361
|
-
}, j = (
|
|
362
|
-
s(t),
|
|
363
|
+
}, j = (A) => {
|
|
364
|
+
s(t), A instanceof PointerEvent && t.hasPointerCapture(A.pointerId) && t.releasePointerCapture(A.pointerId), b = !1, document.removeEventListener(
|
|
363
365
|
"pointermove",
|
|
364
366
|
w
|
|
365
367
|
), document.removeEventListener(
|
|
@@ -383,9 +385,9 @@ const Ct = {
|
|
|
383
385
|
unmounted(t) {
|
|
384
386
|
typeof Le?.unmounted == "function" && Le.unmounted();
|
|
385
387
|
}
|
|
386
|
-
},
|
|
388
|
+
}, Et = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
387
389
|
__proto__: null,
|
|
388
|
-
default:
|
|
390
|
+
default: It
|
|
389
391
|
}, Symbol.toStringTag, { value: "Module" })), Dt = {
|
|
390
392
|
// 指令挂载到元素上时调用
|
|
391
393
|
mounted(t, e) {
|
|
@@ -394,34 +396,34 @@ const Ct = {
|
|
|
394
396
|
e.value
|
|
395
397
|
);
|
|
396
398
|
o(t);
|
|
397
|
-
const { ujt: l, scale: r, id: d, type: c, cut: f, min: h } = e.value, g = () => r || l?.$global?.scale || 1,
|
|
399
|
+
const { ujt: l, scale: r, id: d, type: c, cut: f, min: h } = e.value, g = () => r || l?.$global?.scale || 1, b = {
|
|
398
400
|
width: l?.$global?.sys?.zoomwidth || 1920,
|
|
399
401
|
height: l?.$global?.sys?.zoomheight || 1200
|
|
400
402
|
};
|
|
401
403
|
let $ = f || 0;
|
|
402
|
-
c ?
|
|
404
|
+
c ? b.height = b.height - $ : b.width = b.width - $;
|
|
403
405
|
function y() {
|
|
404
406
|
return typeof h == "function" ? h() : typeof h?.value == "number" ? h?.value : typeof h == "number" ? h : 100;
|
|
405
407
|
}
|
|
406
|
-
let
|
|
408
|
+
let _, k = 1, O = !1, x = 0, L = 0, w = 0, j = 0;
|
|
407
409
|
const S = (P) => {
|
|
408
|
-
if (
|
|
410
|
+
if (_ = document.getElementById(d), !_) {
|
|
409
411
|
console.error(`未找到 ID 为 ${d} 的元素`);
|
|
410
412
|
return;
|
|
411
413
|
}
|
|
412
|
-
a(t), P.preventDefault(), k = g(),
|
|
413
|
-
},
|
|
414
|
-
|
|
414
|
+
a(t), P.preventDefault(), k = g(), O = !0, c ? (w = P.clientY, j = _.offsetHeight) : (x = P.clientX, L = _.offsetWidth), document.addEventListener("pointermove", A), document.addEventListener("pointerup", M);
|
|
415
|
+
}, A = (P) => {
|
|
416
|
+
O && n(() => {
|
|
415
417
|
if (c) {
|
|
416
|
-
const
|
|
417
|
-
|
|
418
|
+
const I = (w - P.clientY) / k, H = Math.max(y(), j + I);
|
|
419
|
+
_.style.height = Math.min(H, b.height) + "px", _.style.minHeight = Math.min(H, b.height) + "px";
|
|
418
420
|
} else {
|
|
419
|
-
const
|
|
420
|
-
|
|
421
|
+
const I = (x - P.clientX) / k, H = Math.max(y(), L + I);
|
|
422
|
+
_.style.width = Math.min(H, b.width) + "px", _.style.minWidth = Math.min(H, b.width) + "px";
|
|
421
423
|
}
|
|
422
424
|
});
|
|
423
425
|
}, M = () => {
|
|
424
|
-
|
|
426
|
+
O = !1, s(t), document.removeEventListener("pointermove", A), document.removeEventListener("pointerup", M);
|
|
425
427
|
};
|
|
426
428
|
t.addEventListener("pointerdown", S);
|
|
427
429
|
const z = () => {
|
|
@@ -461,14 +463,14 @@ const Ct = {
|
|
|
461
463
|
}, Wt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
462
464
|
__proto__: null,
|
|
463
465
|
default: Ft
|
|
464
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
466
|
+
}, Symbol.toStringTag, { value: "Module" })), Ht = {
|
|
465
467
|
mounted(t, e) {
|
|
466
468
|
const { ujt: n, lv: o } = e?.value || {}, { $global: a } = n;
|
|
467
469
|
o && a?.user?.info?.lv < o && t?.classList && !t.classList?.contains("asailevel") && t.classList.add("asailevel");
|
|
468
470
|
}
|
|
469
|
-
},
|
|
471
|
+
}, Vt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
470
472
|
__proto__: null,
|
|
471
|
-
default:
|
|
473
|
+
default: Ht
|
|
472
474
|
}, Symbol.toStringTag, { value: "Module" })), qt = (t, e = "webserver") => {
|
|
473
475
|
const { $model: n, $global: o, $fn: a } = t;
|
|
474
476
|
return a.api[e] || (a.api[e] = new a.AsaiApi({
|
|
@@ -987,7 +989,7 @@ const Ct = {
|
|
|
987
989
|
function g() {
|
|
988
990
|
return n[t.opt.channel].cfg.map.content || "content";
|
|
989
991
|
}
|
|
990
|
-
function
|
|
992
|
+
function b() {
|
|
991
993
|
return n[t.opt.channel].cfg.map.title || "title";
|
|
992
994
|
}
|
|
993
995
|
function $(T, D, K = {}) {
|
|
@@ -1026,7 +1028,7 @@ const Ct = {
|
|
|
1026
1028
|
}).catch(Q);
|
|
1027
1029
|
});
|
|
1028
1030
|
}
|
|
1029
|
-
function
|
|
1031
|
+
function _(T, D = {}) {
|
|
1030
1032
|
return y("/select/", T, D);
|
|
1031
1033
|
}
|
|
1032
1034
|
function k() {
|
|
@@ -1042,13 +1044,13 @@ const Ct = {
|
|
|
1042
1044
|
}).catch(D);
|
|
1043
1045
|
});
|
|
1044
1046
|
}
|
|
1045
|
-
function
|
|
1047
|
+
function O() {
|
|
1046
1048
|
return new Promise((T, D) => {
|
|
1047
1049
|
try {
|
|
1048
1050
|
n[t.opt.channel] = {
|
|
1049
1051
|
stat: 0,
|
|
1050
1052
|
fetch: z,
|
|
1051
|
-
setpage:
|
|
1053
|
+
setpage: I,
|
|
1052
1054
|
cmPageList: [],
|
|
1053
1055
|
dbtype: "file"
|
|
1054
1056
|
}, k().then((K) => {
|
|
@@ -1110,7 +1112,7 @@ const Ct = {
|
|
|
1110
1112
|
}
|
|
1111
1113
|
);
|
|
1112
1114
|
}
|
|
1113
|
-
function
|
|
1115
|
+
function A(T) {
|
|
1114
1116
|
if (T)
|
|
1115
1117
|
try {
|
|
1116
1118
|
De(T).then((D) => {
|
|
@@ -1123,11 +1125,11 @@ const Ct = {
|
|
|
1123
1125
|
e.setquery({ fl: T }), n[t.opt.channel].fetch(0), t.opt.tyhash ? ne("list", D) : S();
|
|
1124
1126
|
}
|
|
1125
1127
|
function z(T = 1, D = 0) {
|
|
1126
|
-
return
|
|
1128
|
+
return _(
|
|
1127
1129
|
{
|
|
1128
1130
|
...w(),
|
|
1129
1131
|
svty: D,
|
|
1130
|
-
fd: t?.opt?.fd || c() + "-" +
|
|
1132
|
+
fd: t?.opt?.fd || c() + "-" + b(),
|
|
1131
1133
|
ps: n[t.opt.channel].cmPageSize,
|
|
1132
1134
|
...o.location?.query
|
|
1133
1135
|
},
|
|
@@ -1140,7 +1142,7 @@ const Ct = {
|
|
|
1140
1142
|
});
|
|
1141
1143
|
}
|
|
1142
1144
|
function P(T = 1) {
|
|
1143
|
-
T ||
|
|
1145
|
+
T || _(
|
|
1144
1146
|
{
|
|
1145
1147
|
...w(),
|
|
1146
1148
|
fd: c(),
|
|
@@ -1156,16 +1158,16 @@ const Ct = {
|
|
|
1156
1158
|
e.setquery({ pc: D?.length || "" }, 1);
|
|
1157
1159
|
});
|
|
1158
1160
|
}
|
|
1159
|
-
function
|
|
1161
|
+
function I(T) {
|
|
1160
1162
|
e.setquery({ pg: T || 1 }, 1), z(o.location.query?.pc || 0);
|
|
1161
1163
|
}
|
|
1162
|
-
function
|
|
1164
|
+
function H(T) {
|
|
1163
1165
|
y("/delete/" + T + j()).then((D) => {
|
|
1164
1166
|
z(0, 1);
|
|
1165
1167
|
});
|
|
1166
1168
|
}
|
|
1167
1169
|
function N(T, D = 0) {
|
|
1168
|
-
t.opt.tyhash && ne("edit", D), e.setquery({ show: T, showty: "1" }, 1),
|
|
1170
|
+
t.opt.tyhash && ne("edit", D), e.setquery({ show: T, showty: "1" }, 1), A(T);
|
|
1169
1171
|
}
|
|
1170
1172
|
function ae(T) {
|
|
1171
1173
|
o.pop["popconfirm" + t.opt.channel].stat = 1, o.pop["popconfirm" + t.opt.channel].full = 2, o.pop["popconfirm" + t.opt.channel].con = T.con, o.pop["popconfirm" + t.opt.channel].fn = T.fn;
|
|
@@ -1185,13 +1187,13 @@ const Ct = {
|
|
|
1185
1187
|
showty: ""
|
|
1186
1188
|
},
|
|
1187
1189
|
1
|
|
1188
|
-
),
|
|
1190
|
+
), A(T[c()]);
|
|
1189
1191
|
}
|
|
1190
1192
|
function Me() {
|
|
1191
1193
|
!o.location.query.ssty && o.location.query.ss && (o.location.query.ssty = n[t.opt.channel]?.cfg.sss?.[1]), e.setquery({ pg: 1 }, 1), n[t.opt.channel].fetch(0);
|
|
1192
1194
|
}
|
|
1193
1195
|
function lt(T = 0, D = null) {
|
|
1194
|
-
if (
|
|
1196
|
+
if (Ee()) {
|
|
1195
1197
|
const K = D || n[t.opt.channel].rfdata.data;
|
|
1196
1198
|
$(
|
|
1197
1199
|
"/insert/" + K[c()] + j(),
|
|
@@ -1208,7 +1210,7 @@ const Ct = {
|
|
|
1208
1210
|
function it() {
|
|
1209
1211
|
return Object.entries(n[t.opt.channel].rfdata.rule).filter((T) => T[1]?.require).map((T) => T[0]);
|
|
1210
1212
|
}
|
|
1211
|
-
function
|
|
1213
|
+
function Ee() {
|
|
1212
1214
|
const T = it();
|
|
1213
1215
|
if (T.length) {
|
|
1214
1216
|
for (let D = 0; D < T.length; D++)
|
|
@@ -1231,7 +1233,7 @@ const Ct = {
|
|
|
1231
1233
|
);
|
|
1232
1234
|
}
|
|
1233
1235
|
function rt(T = 0, D = null) {
|
|
1234
|
-
if (
|
|
1236
|
+
if (Ee()) {
|
|
1235
1237
|
const K = D || n[t.opt.channel].rfdata.data;
|
|
1236
1238
|
$(
|
|
1237
1239
|
"/update/" + K[c()] + "/" + j(),
|
|
@@ -1250,7 +1252,7 @@ const Ct = {
|
|
|
1250
1252
|
let T = function(ce, le) {
|
|
1251
1253
|
return n[t.opt.channel].cfg.imex.keys[le] && ce[n[t.opt.channel].cfg.imex.keys[le]] || "";
|
|
1252
1254
|
};
|
|
1253
|
-
const D = await
|
|
1255
|
+
const D = await _({
|
|
1254
1256
|
...w(),
|
|
1255
1257
|
fd: n[t.opt.channel].cfg.imex.keys.filter((ce) => ce).join("-"),
|
|
1256
1258
|
sx: "",
|
|
@@ -1297,7 +1299,7 @@ const Ct = {
|
|
|
1297
1299
|
);
|
|
1298
1300
|
for (let Se = 0; Se < _e.length; Se++) {
|
|
1299
1301
|
const Re = _e[Se];
|
|
1300
|
-
Se === 0 ? (K = Re.split(a.data.asai.rulebook.bksn)[1].split(a.data.asai.rulebook.bkty)[0], await
|
|
1302
|
+
Se === 0 ? (K = Re.split(a.data.asai.rulebook.bksn)[1].split(a.data.asai.rulebook.bkty)[0], await _({
|
|
1301
1303
|
...w(),
|
|
1302
1304
|
field: c(),
|
|
1303
1305
|
fd: c(),
|
|
@@ -1374,16 +1376,16 @@ const Ct = {
|
|
|
1374
1376
|
});
|
|
1375
1377
|
}
|
|
1376
1378
|
return {
|
|
1377
|
-
initChannel:
|
|
1379
|
+
initChannel: O,
|
|
1378
1380
|
initAddChannel: S,
|
|
1379
1381
|
setChannelClass: M,
|
|
1380
|
-
delItem:
|
|
1382
|
+
delItem: H,
|
|
1381
1383
|
editItem: N,
|
|
1382
|
-
readItem:
|
|
1384
|
+
readItem: A,
|
|
1383
1385
|
optConfirm: ae,
|
|
1384
|
-
setPage:
|
|
1386
|
+
setPage: I,
|
|
1385
1387
|
setShow: de,
|
|
1386
|
-
channelSelect:
|
|
1388
|
+
channelSelect: _,
|
|
1387
1389
|
fetchContent: z,
|
|
1388
1390
|
searchSubmit: Me,
|
|
1389
1391
|
readContent: De,
|
|
@@ -1397,7 +1399,7 @@ const Ct = {
|
|
|
1397
1399
|
getSnKey: c,
|
|
1398
1400
|
getPwKey: f,
|
|
1399
1401
|
getClassKey: h,
|
|
1400
|
-
getTitleKey:
|
|
1402
|
+
getTitleKey: b,
|
|
1401
1403
|
getContentKey: g,
|
|
1402
1404
|
channelLang: l,
|
|
1403
1405
|
channelLogin: dt,
|
|
@@ -1541,10 +1543,10 @@ const Ct = {
|
|
|
1541
1543
|
let c = a.novel.muzu.replaceAll(`\r
|
|
1542
1544
|
`, `
|
|
1543
1545
|
`).split(a.novel.rule.bkchannel), f, h, g;
|
|
1544
|
-
return c.forEach((
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
x == 0 ? (h = s(
|
|
1546
|
+
return c.forEach((b) => {
|
|
1547
|
+
b && b.split(a.novel.rule.bkclass).forEach((y, _) => {
|
|
1548
|
+
_ == 0 ? (f = s(y, "ch"), f.cc = [], r.push(f)) : y.split(a.novel.rule.bklist).forEach((O, x) => {
|
|
1549
|
+
x == 0 ? (h = s(O, "cl"), h.cc = [], f.cc.push(h)) : (g = s(O, "li"), h.cc.push(g));
|
|
1548
1550
|
});
|
|
1549
1551
|
});
|
|
1550
1552
|
}), r;
|
|
@@ -1574,9 +1576,9 @@ const Ct = {
|
|
|
1574
1576
|
const { ujt: e } = t, { $fn: n, $db: o, $global: a } = t.ujt, { initToken: s, userLoginWs: l, getOnline: r } = n.useInitUser(
|
|
1575
1577
|
e,
|
|
1576
1578
|
"webserver"
|
|
1577
|
-
), d = q(() => Object.entries(n.lg("channeluser.lv")).filter((
|
|
1579
|
+
), d = q(() => Object.entries(n.lg("channeluser.lv")).filter((I) => a.user.info?.lv > I[0]));
|
|
1578
1580
|
function c() {
|
|
1579
|
-
return new Promise((P,
|
|
1581
|
+
return new Promise((P, I) => {
|
|
1580
1582
|
try {
|
|
1581
1583
|
o.channeluser?.stat ? P() : (o.channeluser = {
|
|
1582
1584
|
cur: {
|
|
@@ -1592,34 +1594,34 @@ const Ct = {
|
|
|
1592
1594
|
lang: q(() => a.lang.channeluser.data)
|
|
1593
1595
|
}
|
|
1594
1596
|
}, n.initmodel("sys/channel/channeluser.json").then(
|
|
1595
|
-
(
|
|
1596
|
-
Object.assign(o.channeluser,
|
|
1597
|
+
(H) => {
|
|
1598
|
+
Object.assign(o.channeluser, H), o.channeluser.stat = 1, P();
|
|
1597
1599
|
}
|
|
1598
1600
|
));
|
|
1599
|
-
} catch (
|
|
1600
|
-
|
|
1601
|
+
} catch (H) {
|
|
1602
|
+
I(H);
|
|
1601
1603
|
}
|
|
1602
1604
|
});
|
|
1603
1605
|
}
|
|
1604
1606
|
function f() {
|
|
1605
|
-
return new Promise((P,
|
|
1607
|
+
return new Promise((P, I) => {
|
|
1606
1608
|
o.channeluser.cur.us ? n.api.webserver.apiGet(
|
|
1607
1609
|
"/api/user/userinfo/select/" + o.channeluser.cur.us + "/",
|
|
1608
1610
|
"",
|
|
1609
1611
|
{
|
|
1610
1612
|
mm: 1
|
|
1611
1613
|
}
|
|
1612
|
-
).then((
|
|
1613
|
-
|
|
1614
|
+
).then((H) => {
|
|
1615
|
+
H.data[0]?.[Object.keys(
|
|
1614
1616
|
a.lang?.[o.channeluser?.sn]?.data
|
|
1615
1617
|
)?.[1]] ? P(
|
|
1616
|
-
|
|
1618
|
+
H.data[0]?.[Object.keys(
|
|
1617
1619
|
a.lang?.[o.channeluser?.sn]?.data
|
|
1618
1620
|
)?.[1]]
|
|
1619
|
-
) :
|
|
1620
|
-
}).catch((
|
|
1621
|
-
|
|
1622
|
-
}) :
|
|
1621
|
+
) : I();
|
|
1622
|
+
}).catch((H) => {
|
|
1623
|
+
I(H);
|
|
1624
|
+
}) : I();
|
|
1623
1625
|
});
|
|
1624
1626
|
}
|
|
1625
1627
|
function h() {
|
|
@@ -1643,11 +1645,11 @@ const Ct = {
|
|
|
1643
1645
|
P.us && (a.user.info = {
|
|
1644
1646
|
us: P.us,
|
|
1645
1647
|
lv: P.lv || 1
|
|
1646
|
-
}, s(), l().then((
|
|
1647
|
-
|
|
1648
|
+
}, s(), l().then((I) => {
|
|
1649
|
+
b();
|
|
1648
1650
|
}));
|
|
1649
1651
|
}
|
|
1650
|
-
function
|
|
1652
|
+
function b(P) {
|
|
1651
1653
|
n.As.localSet(
|
|
1652
1654
|
"as-user-info",
|
|
1653
1655
|
n.AsAES.enc(n.As.toStr(a.user.info))
|
|
@@ -1658,8 +1660,8 @@ const Ct = {
|
|
|
1658
1660
|
}
|
|
1659
1661
|
function $() {
|
|
1660
1662
|
f().then((P) => {
|
|
1661
|
-
const
|
|
1662
|
-
o.channeluser.cur.pw ===
|
|
1663
|
+
const I = JSON.parse(P);
|
|
1664
|
+
o.channeluser.cur.pw === I.pw ? g(I) : a.msg.fn({
|
|
1663
1665
|
type: "err",
|
|
1664
1666
|
tit: n.lg("channeluser.msg.passworderr")
|
|
1665
1667
|
});
|
|
@@ -1677,7 +1679,7 @@ const Ct = {
|
|
|
1677
1679
|
n.sethash(""), n.As.localReload();
|
|
1678
1680
|
}, 1e3);
|
|
1679
1681
|
}
|
|
1680
|
-
function
|
|
1682
|
+
function _(P) {
|
|
1681
1683
|
return P.pw = o.channeluser.cur.pwn, n.api.webserver.apiPost(
|
|
1682
1684
|
"/api/user/userinfo/update/" + P.us + "/",
|
|
1683
1685
|
{
|
|
@@ -1688,12 +1690,12 @@ const Ct = {
|
|
|
1688
1690
|
{
|
|
1689
1691
|
mm: 1
|
|
1690
1692
|
}
|
|
1691
|
-
).then((
|
|
1693
|
+
).then((I) => {
|
|
1692
1694
|
a.msg.fn({
|
|
1693
1695
|
type: "ok",
|
|
1694
1696
|
con: n.lg("channeluser.msg.editok", [P.us])
|
|
1695
1697
|
});
|
|
1696
|
-
}).catch((
|
|
1698
|
+
}).catch((I) => {
|
|
1697
1699
|
a.msg.fn({
|
|
1698
1700
|
type: "err",
|
|
1699
1701
|
con: n.lg("channeluser.msg.editerr", [P.us])
|
|
@@ -1702,8 +1704,8 @@ const Ct = {
|
|
|
1702
1704
|
}
|
|
1703
1705
|
function k() {
|
|
1704
1706
|
o.channeluser.cur.pwn && o.channeluser.cur.pwn === o.channeluser.cur.pwnn ? f().then((P) => {
|
|
1705
|
-
const
|
|
1706
|
-
o.channeluser.cur.pw ===
|
|
1707
|
+
const I = JSON.parse(P);
|
|
1708
|
+
o.channeluser.cur.pw === I.pw ? (I.pw = o.channeluser.cur.pwn, _(I)) : a.msg.fn({
|
|
1707
1709
|
type: "err",
|
|
1708
1710
|
tit: n.lg("channeluser.msg.passworderr")
|
|
1709
1711
|
});
|
|
@@ -1719,14 +1721,14 @@ const Ct = {
|
|
|
1719
1721
|
con: n.lg("channeluser.msg.passwordtips")
|
|
1720
1722
|
});
|
|
1721
1723
|
}
|
|
1722
|
-
function
|
|
1724
|
+
function O(P = 1, I = 0) {
|
|
1723
1725
|
n.api.webserver.apiGet("/api/user/userinfo/selectlist/", {
|
|
1724
|
-
svty:
|
|
1726
|
+
svty: I,
|
|
1725
1727
|
fd: "us-lv",
|
|
1726
1728
|
ps: o.channeluser.cmPageSize,
|
|
1727
1729
|
...a.location?.query
|
|
1728
|
-
}).then((
|
|
1729
|
-
o.channeluser.list =
|
|
1730
|
+
}).then((H) => {
|
|
1731
|
+
o.channeluser.list = H.data, x(P);
|
|
1730
1732
|
});
|
|
1731
1733
|
}
|
|
1732
1734
|
function x(P = 1) {
|
|
@@ -1738,12 +1740,12 @@ const Ct = {
|
|
|
1738
1740
|
pc: 0,
|
|
1739
1741
|
pg: 0,
|
|
1740
1742
|
ps: Number(o.channeluser.config?.pmax) || 1e4
|
|
1741
|
-
}).then((
|
|
1742
|
-
n.setquery({ pc:
|
|
1743
|
+
}).then((I) => {
|
|
1744
|
+
n.setquery({ pc: I.data?.length }, 1);
|
|
1743
1745
|
});
|
|
1744
1746
|
}
|
|
1745
1747
|
function L(P) {
|
|
1746
|
-
n.setquery({ pg: P || 1 }, 1),
|
|
1748
|
+
n.setquery({ pg: P || 1 }, 1), O(a.location.query?.pc || 0);
|
|
1747
1749
|
}
|
|
1748
1750
|
function w() {
|
|
1749
1751
|
return n.api.webserver.apiPost(
|
|
@@ -1760,7 +1762,7 @@ const Ct = {
|
|
|
1760
1762
|
con: n.lg("channeluser.msg.editok", [
|
|
1761
1763
|
o.channeluser.cur.us
|
|
1762
1764
|
])
|
|
1763
|
-
}),
|
|
1765
|
+
}), O(1, 0), a.pop.popedituser.stat = 0;
|
|
1764
1766
|
}).catch((P) => {
|
|
1765
1767
|
a.msg.fn({
|
|
1766
1768
|
type: "err",
|
|
@@ -1789,7 +1791,7 @@ const Ct = {
|
|
|
1789
1791
|
tit: n.lg("channeluser.msg.delok", [
|
|
1790
1792
|
o.channeluser.cur.us
|
|
1791
1793
|
])
|
|
1792
|
-
}),
|
|
1794
|
+
}), O(0, 1);
|
|
1793
1795
|
}).catch((P) => {
|
|
1794
1796
|
o.channeluser.cur.msg = n.lg("channeluser.msg.delerr", [
|
|
1795
1797
|
o.channeluser.cur.us
|
|
@@ -1799,25 +1801,25 @@ const Ct = {
|
|
|
1799
1801
|
});
|
|
1800
1802
|
});
|
|
1801
1803
|
}
|
|
1802
|
-
function
|
|
1803
|
-
return new Promise((
|
|
1804
|
+
function A(P = "") {
|
|
1805
|
+
return new Promise((I, H) => {
|
|
1804
1806
|
P && (o.channeluser.cur.us = P), f().then((N) => {
|
|
1805
1807
|
N && (typeof N == "string" && (N = JSON.parse(N)), a.user.info.lv > N.lv && a.user.info.us != N.us ? S().then(() => {
|
|
1806
|
-
|
|
1808
|
+
I();
|
|
1807
1809
|
}) : (o.channeluser.cur.msg = n.lg(
|
|
1808
1810
|
"channeluser.msg.delerr",
|
|
1809
1811
|
[o.channeluser.cur.us]
|
|
1810
1812
|
), a.msg.fn({
|
|
1811
1813
|
type: "err",
|
|
1812
1814
|
tit: o.channeluser.cur.msg
|
|
1813
|
-
}),
|
|
1815
|
+
}), H()));
|
|
1814
1816
|
}).catch((N) => {
|
|
1815
1817
|
a.msg.fn({
|
|
1816
1818
|
type: "err",
|
|
1817
1819
|
tit: n.lg("channeluser.msg.delerr", [
|
|
1818
1820
|
o.channeluser.cur.us
|
|
1819
1821
|
])
|
|
1820
|
-
}),
|
|
1822
|
+
}), H(N);
|
|
1821
1823
|
});
|
|
1822
1824
|
});
|
|
1823
1825
|
}
|
|
@@ -1835,7 +1837,7 @@ const Ct = {
|
|
|
1835
1837
|
con: n.lg("channeluser.msg.regok", [
|
|
1836
1838
|
o.channeluser.cur.us
|
|
1837
1839
|
])
|
|
1838
|
-
}),
|
|
1840
|
+
}), O(0, 1);
|
|
1839
1841
|
}).catch((P) => {
|
|
1840
1842
|
a.msg.fn({
|
|
1841
1843
|
type: "err",
|
|
@@ -1863,11 +1865,11 @@ const Ct = {
|
|
|
1863
1865
|
userLogin: $,
|
|
1864
1866
|
userExit: y,
|
|
1865
1867
|
userEdit: k,
|
|
1866
|
-
fetchContent:
|
|
1868
|
+
fetchContent: O,
|
|
1867
1869
|
getOnline: r,
|
|
1868
1870
|
editUser: w,
|
|
1869
1871
|
initUser: j,
|
|
1870
|
-
delUser:
|
|
1872
|
+
delUser: A,
|
|
1871
1873
|
addUser: z,
|
|
1872
1874
|
setPage: L,
|
|
1873
1875
|
cmLvList: d,
|
|
@@ -1879,7 +1881,7 @@ const Ct = {
|
|
|
1879
1881
|
}, Symbol.toStringTag, { value: "Module" })), hn = (t) => {
|
|
1880
1882
|
const { $fn: e, $model: n, $db: o, $dbwork: a, $global: s } = t;
|
|
1881
1883
|
function l(r = "testkdd") {
|
|
1882
|
-
const d =
|
|
1884
|
+
const d = Ve("$vueProxy");
|
|
1883
1885
|
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, h) => e.api.webserver.apiPost(
|
|
1884
1886
|
"/api/asaijson/manage/update/?path=./webclient/webmodel/sys/setting/" + f + ".json",
|
|
1885
1887
|
h
|
|
@@ -1913,27 +1915,27 @@ const Ct = {
|
|
|
1913
1915
|
{
|
|
1914
1916
|
ty: "publish/web"
|
|
1915
1917
|
},
|
|
1916
|
-
(
|
|
1917
|
-
|
|
1918
|
+
(b) => {
|
|
1919
|
+
b?.db?.exit && (n.exit(), n.sethash(
|
|
1918
1920
|
a.sys?.router?.config?.login || "user/login"
|
|
1919
|
-
)),
|
|
1920
|
-
"asai.hostmsg." +
|
|
1921
|
-
|
|
1922
|
-
) ||
|
|
1923
|
-
}) :
|
|
1921
|
+
)), b?.db?.lang && (b.db.langpm ? b.db.con = n.lg(
|
|
1922
|
+
"asai.hostmsg." + b.db.lang,
|
|
1923
|
+
b.db.langpm
|
|
1924
|
+
) || b.db.con : b.db.con = n.lg("asai.hostmsg." + b.db.lang) || b.db.con), b?.db === "pong" ? n.ws.web.wsApi("ping").then(($) => {
|
|
1925
|
+
}) : b?.db?.con && a.msg.fn(b.db);
|
|
1924
1926
|
}
|
|
1925
1927
|
), n.ws.web?.wsApi({
|
|
1926
1928
|
ty: "user/login",
|
|
1927
1929
|
db: a.user.info
|
|
1928
|
-
}).then((
|
|
1929
|
-
h(
|
|
1930
|
-
}).catch((
|
|
1930
|
+
}).then((b) => {
|
|
1931
|
+
h(b);
|
|
1932
|
+
}).catch((b) => {
|
|
1931
1933
|
a.msg.fn({
|
|
1932
1934
|
type: "err",
|
|
1933
1935
|
con: n.lg("channeluser.msg.loginerr", [
|
|
1934
1936
|
a.user.info.us
|
|
1935
1937
|
])
|
|
1936
|
-
}), g(
|
|
1938
|
+
}), g(b);
|
|
1937
1939
|
});
|
|
1938
1940
|
});
|
|
1939
1941
|
}
|
|
@@ -1949,8 +1951,8 @@ const Ct = {
|
|
|
1949
1951
|
function r() {
|
|
1950
1952
|
return new Promise((h, g) => {
|
|
1951
1953
|
try {
|
|
1952
|
-
let
|
|
1953
|
-
|
|
1954
|
+
let b = n.As?.localGet("as-user-code");
|
|
1955
|
+
b ? (b = n.As.toObj(b), a.code.pri = b[0], a.code.pub = b[1], h()) : n.api[e]?.apiGet("/api/init/code/").then(($) => {
|
|
1954
1956
|
a.code.pri = $.data[0], a.code.pub = $.data[1], n.As.localSet(
|
|
1955
1957
|
"as-user-code",
|
|
1956
1958
|
n.As.toStr($.data)
|
|
@@ -1958,8 +1960,8 @@ const Ct = {
|
|
|
1958
1960
|
}).catch(($) => {
|
|
1959
1961
|
g($);
|
|
1960
1962
|
});
|
|
1961
|
-
} catch (
|
|
1962
|
-
g(
|
|
1963
|
+
} catch (b) {
|
|
1964
|
+
g(b);
|
|
1963
1965
|
}
|
|
1964
1966
|
});
|
|
1965
1967
|
}
|
|
@@ -1973,11 +1975,11 @@ const Ct = {
|
|
|
1973
1975
|
!a.code.token && a.code.pri && n.As.localGet("as-user-info") && (a.user.info = n.As.toObj(
|
|
1974
1976
|
n.AsAES.dec(n.As.localGet("as-user-info"))
|
|
1975
1977
|
), d()), h();
|
|
1976
|
-
}).catch((
|
|
1977
|
-
g(
|
|
1978
|
+
}).catch((b) => {
|
|
1979
|
+
g(b);
|
|
1978
1980
|
});
|
|
1979
|
-
} catch (
|
|
1980
|
-
g(
|
|
1981
|
+
} catch (b) {
|
|
1982
|
+
g(b);
|
|
1981
1983
|
}
|
|
1982
1984
|
});
|
|
1983
1985
|
}
|
|
@@ -1986,14 +1988,14 @@ const Ct = {
|
|
|
1986
1988
|
a.user.online = 0;
|
|
1987
1989
|
try {
|
|
1988
1990
|
c().then(() => {
|
|
1989
|
-
a.code.token && s().then((
|
|
1991
|
+
a.code.token && s().then((b) => {
|
|
1990
1992
|
a.user.online = 1, h();
|
|
1991
1993
|
});
|
|
1992
|
-
}).catch((
|
|
1993
|
-
g(
|
|
1994
|
+
}).catch((b) => {
|
|
1995
|
+
g(b);
|
|
1994
1996
|
});
|
|
1995
|
-
} catch (
|
|
1996
|
-
g(
|
|
1997
|
+
} catch (b) {
|
|
1998
|
+
g(b);
|
|
1997
1999
|
}
|
|
1998
2000
|
});
|
|
1999
2001
|
}
|
|
@@ -2046,30 +2048,30 @@ const Ct = {
|
|
|
2046
2048
|
rooms: {}
|
|
2047
2049
|
}
|
|
2048
2050
|
}
|
|
2049
|
-
}),
|
|
2051
|
+
}), He = {
|
|
2050
2052
|
providefn: { data: { api: {}, ws: {}, workers: {} } }
|
|
2051
2053
|
}, wn = (t) => {
|
|
2052
2054
|
const { AsaiJsAs: e } = t, n = window;
|
|
2053
|
-
Object.assign(
|
|
2055
|
+
Object.assign(He.providefn.data, { ...e, ...t });
|
|
2054
2056
|
const o = {
|
|
2055
2057
|
$db: bn.providedb.data,
|
|
2056
2058
|
$dbwork: _n.providedbwork.data,
|
|
2057
2059
|
$ws: kn.providews.data,
|
|
2058
2060
|
$global: $n.provideglobal.data,
|
|
2059
2061
|
$model: n.$GYS.$webmodel,
|
|
2060
|
-
$fn:
|
|
2062
|
+
$fn: He.providefn.data
|
|
2061
2063
|
};
|
|
2062
2064
|
n.$GYS.ujt = o, o.$fn.lo = (...f) => {
|
|
2063
2065
|
if (o.$global.sys?.onconsole) {
|
|
2064
2066
|
if (!f?.[0])
|
|
2065
2067
|
o.$model.gysfn.log();
|
|
2066
2068
|
else if (f.length > 0) {
|
|
2067
|
-
let h = "", g = "",
|
|
2069
|
+
let h = "", g = "", b = "";
|
|
2068
2070
|
if (f[1] && typeof f[1] == "string") {
|
|
2069
|
-
const [$, y, ...
|
|
2070
|
-
g = y,
|
|
2071
|
+
const [$, y, ..._] = f;
|
|
2072
|
+
g = y, b = _, Array.isArray(f[0]) && f[0].length === 2 ? h = s(f[0][0], f[0][1], "12px") : typeof f[0] == "number" && (h = a($, 12));
|
|
2071
2073
|
}
|
|
2072
|
-
h ? console.log("%c" + g, h, ...
|
|
2074
|
+
h ? console.log("%c" + g, h, ...b) : console.log(...f);
|
|
2073
2075
|
}
|
|
2074
2076
|
}
|
|
2075
2077
|
}, o.$model.gysfn.log = () => (console.log(
|
|
@@ -2120,10 +2122,10 @@ const Ct = {
|
|
|
2120
2122
|
const { fetchPublic: r } = o.$fn.AsaiModel("./webmodel/");
|
|
2121
2123
|
o.$fn.initmodel = r, o.$fn.startLink = () => new Promise((f, h) => {
|
|
2122
2124
|
o.$fn.initmodel("sys/server.json").then((g) => {
|
|
2123
|
-
const
|
|
2125
|
+
const b = { api: {}, ws: {} };
|
|
2124
2126
|
["api", "ws"].forEach(($) => {
|
|
2125
2127
|
Object.keys(g?.[$] || {}).forEach((y) => {
|
|
2126
|
-
y != "default" && (
|
|
2128
|
+
y != "default" && (b[$][y] = {
|
|
2127
2129
|
...g[$][y],
|
|
2128
2130
|
url: o.$fn.As.getUrlByCfg(
|
|
2129
2131
|
g[$][y],
|
|
@@ -2133,8 +2135,8 @@ const Ct = {
|
|
|
2133
2135
|
});
|
|
2134
2136
|
}), o.$fn.As.localSet(
|
|
2135
2137
|
"as-link",
|
|
2136
|
-
JSON.stringify(
|
|
2137
|
-
), o.$global.link =
|
|
2138
|
+
JSON.stringify(b)
|
|
2139
|
+
), o.$global.link = b, f(o.$global.link);
|
|
2138
2140
|
}).catch((g) => {
|
|
2139
2141
|
h(g);
|
|
2140
2142
|
});
|
|
@@ -2145,14 +2147,14 @@ const Ct = {
|
|
|
2145
2147
|
);
|
|
2146
2148
|
}, o.$fn.initLink = (f = 0) => new Promise((h, g) => {
|
|
2147
2149
|
if (f)
|
|
2148
|
-
o.$fn.startLink().then((
|
|
2149
|
-
h(
|
|
2150
|
-
}).catch((
|
|
2151
|
-
g(
|
|
2150
|
+
o.$fn.startLink().then((b) => {
|
|
2151
|
+
h(b);
|
|
2152
|
+
}).catch((b) => {
|
|
2153
|
+
g(b);
|
|
2152
2154
|
});
|
|
2153
2155
|
else {
|
|
2154
|
-
let
|
|
2155
|
-
|
|
2156
|
+
let b = o.$fn.As.localGet("as-link");
|
|
2157
|
+
b ? (o.$global.link = JSON.parse(b), o.$global.link?.api && o.$global.link?.ws ? h(o.$global.link) : o.$fn.startLink().then(($) => {
|
|
2156
2158
|
h($);
|
|
2157
2159
|
}).catch(($) => {
|
|
2158
2160
|
g($);
|
|
@@ -2169,69 +2171,69 @@ const Ct = {
|
|
|
2169
2171
|
return;
|
|
2170
2172
|
let g = d.get(f);
|
|
2171
2173
|
g || (g = f.split("."), d.set(f, g));
|
|
2172
|
-
const
|
|
2173
|
-
(
|
|
2174
|
+
const b = g.reduce(
|
|
2175
|
+
(_, k) => _?.[k],
|
|
2174
2176
|
o.$global.lang
|
|
2175
2177
|
);
|
|
2176
|
-
if (!h || h.length === 0) return
|
|
2178
|
+
if (!h || h.length === 0) return b;
|
|
2177
2179
|
const $ = Array.isArray(h) ? h : [h];
|
|
2178
|
-
return
|
|
2180
|
+
return b?.replace(
|
|
2179
2181
|
c,
|
|
2180
|
-
(
|
|
2181
|
-
const
|
|
2182
|
-
return $[
|
|
2182
|
+
(_, k) => {
|
|
2183
|
+
const O = parseInt(k, 10) - 1;
|
|
2184
|
+
return $[O] ?? _;
|
|
2183
2185
|
}
|
|
2184
2186
|
);
|
|
2185
2187
|
}, o.$fn.changetheme = (f = "") => new Promise((h, g) => {
|
|
2186
2188
|
try {
|
|
2187
|
-
let
|
|
2188
|
-
o.$global?.sys?.local?.theme ?
|
|
2189
|
+
let b = "";
|
|
2190
|
+
o.$global?.sys?.local?.theme ? b = o.$fn.As.localGet(
|
|
2189
2191
|
o.$global?.sys?.local?.theme
|
|
2190
|
-
) || o.$model.data.sys.settingtheme.theme || o.$model.data.sys.configdata.theme[0] :
|
|
2192
|
+
) || o.$model.data.sys.settingtheme.theme || o.$model.data.sys.configdata.theme[0] : b = o.$model.data.sys.settingtheme.theme || o.$model.data.sys.configdata.theme[0], f && b === f ? h() : (f === "auto" ? b = b == o.$model.data.sys.configdata.theme[0] ? o.$model.data.sys.configdata.theme[1] : o.$model.data.sys.configdata.theme[0] : f && (b = f), o.$global?.sys?.local?.theme && o.$fn.As.localSet(
|
|
2191
2193
|
o.$global?.sys?.local?.theme,
|
|
2192
|
-
|
|
2193
|
-
)),
|
|
2194
|
+
b
|
|
2195
|
+
)), b && o.$global?.config?.theme !== b && (o.$global?.config?.theme && document?.body?.classList?.contains(
|
|
2194
2196
|
o.$global.config.theme
|
|
2195
2197
|
) && document.body.classList.remove(
|
|
2196
2198
|
o.$global.config.theme
|
|
2197
|
-
), o.$global.config.theme =
|
|
2198
|
-
} catch (
|
|
2199
|
-
g(
|
|
2199
|
+
), o.$global.config.theme = b), document?.body?.classList?.contains(b) || document.body.classList.add(b), h();
|
|
2200
|
+
} catch (b) {
|
|
2201
|
+
g(b);
|
|
2200
2202
|
}
|
|
2201
2203
|
}), o.$fn.initlang = (f = "") => {
|
|
2202
2204
|
let h = "";
|
|
2203
|
-
return o.$global?.sys?.local?.lang ? h = f || o.$fn.As.localGet(o.$global?.sys?.local?.lang) || o.$model.data.sys.settinglang.lang || o.$model.data.sys.configdata.lang[0] : h = f || o.$model.data.sys.settinglang.lang || o.$model.data.sys.configdata.lang[0], o.$global?.lang || (o.$global.lang = {}), new Promise((g,
|
|
2205
|
+
return o.$global?.sys?.local?.lang ? h = f || o.$fn.As.localGet(o.$global?.sys?.local?.lang) || o.$model.data.sys.settinglang.lang || o.$model.data.sys.configdata.lang[0] : h = f || o.$model.data.sys.settinglang.lang || o.$model.data.sys.configdata.lang[0], o.$global?.lang || (o.$global.lang = {}), new Promise((g, b) => {
|
|
2204
2206
|
o.$fn.initmodel("lang/dirlang.json", h + "/").then(($) => {
|
|
2205
2207
|
Object.assign(o.$global.lang, $), g(o.$global.lang);
|
|
2206
2208
|
}).catch(($) => {
|
|
2207
|
-
|
|
2209
|
+
b($);
|
|
2208
2210
|
});
|
|
2209
2211
|
});
|
|
2210
2212
|
}, o.$fn.changelang = (f = "") => {
|
|
2211
2213
|
let h = "";
|
|
2212
|
-
return o.$global?.sys?.local?.lang ? h = o.$fn.As.localGet(o.$global?.sys?.local?.lang) || o.$model.data.sys.settinglang.lang || o.$model.data.sys.configdata.lang[0] : h = o.$global.config.langcur || o.$model.data.sys.settinglang.lang || o.$model.data.sys.configdata.lang[0], new Promise((g,
|
|
2214
|
+
return o.$global?.sys?.local?.lang ? h = o.$fn.As.localGet(o.$global?.sys?.local?.lang) || o.$model.data.sys.settinglang.lang || o.$model.data.sys.configdata.lang[0] : h = o.$global.config.langcur || o.$model.data.sys.settinglang.lang || o.$model.data.sys.configdata.lang[0], new Promise((g, b) => {
|
|
2213
2215
|
f && h === f && o.$global?.lang ? g(h) : (f === "auto" ? h = h == o.$model.data.sys.configdata.lang[0] ? o.$model.data.sys.configdata.lang[1] : o.$model.data.sys.configdata.lang[0] : f && (h = f), o.$global?.sys?.local?.lang && o.$fn.As.localSet(
|
|
2214
2216
|
o.$global?.sys?.local?.lang,
|
|
2215
2217
|
h
|
|
2216
2218
|
), o.$global?.sys?.local?.lang || !o.$global.config.lang ? (o.$global.config.lang = h, o.$fn.initlang(h).then(($) => {
|
|
2217
2219
|
g(h);
|
|
2218
2220
|
}).catch(($) => {
|
|
2219
|
-
|
|
2221
|
+
b($);
|
|
2220
2222
|
})) : g(h));
|
|
2221
2223
|
});
|
|
2222
2224
|
}, o.$fn.initweb = async (f) => {
|
|
2223
2225
|
try {
|
|
2224
2226
|
let h = function() {
|
|
2225
|
-
const { protocol: $, hostname: y, port:
|
|
2227
|
+
const { protocol: $, hostname: y, port: _, hash: k } = n.location;
|
|
2226
2228
|
o.$global.location = {
|
|
2227
2229
|
protocol: $,
|
|
2228
2230
|
hostname: y,
|
|
2229
|
-
port:
|
|
2231
|
+
port: _,
|
|
2230
2232
|
hash: k.replace("#", ""),
|
|
2231
2233
|
comps: [],
|
|
2232
2234
|
query: {}
|
|
2233
|
-
}, o.$fn.AsRouter.initHash(o.$global.location),
|
|
2234
|
-
function
|
|
2235
|
+
}, o.$fn.AsRouter.initHash(o.$global.location), O();
|
|
2236
|
+
function O() {
|
|
2235
2237
|
o.$fn.AsRouter.setRouter(o.$global.location);
|
|
2236
2238
|
}
|
|
2237
2239
|
o.$fn.setquery = (x = {}, L = 0) => {
|
|
@@ -2242,7 +2244,7 @@ const Ct = {
|
|
|
2242
2244
|
}).toString() : w = new URLSearchParams(x || {}).toString(), w ? w = o.$global.location.hash.split("?")[0] + "?" + w : w = o.$global.location.hash.split("?")[0], o.$fn.AsRouter.setHash(
|
|
2243
2245
|
o.$global.location,
|
|
2244
2246
|
w
|
|
2245
|
-
),
|
|
2247
|
+
), O();
|
|
2246
2248
|
}, o.$fn.sethash = (x = "") => {
|
|
2247
2249
|
o.$fn.AsRouter.setHash(
|
|
2248
2250
|
o.$global.location,
|
|
@@ -2267,11 +2269,11 @@ const Ct = {
|
|
|
2267
2269
|
}), o.$model.data.sys = await o.$fn.initmodel(
|
|
2268
2270
|
"sys/dirmodel.json"
|
|
2269
2271
|
);
|
|
2270
|
-
const
|
|
2272
|
+
const b = await o.$fn.initmodel(
|
|
2271
2273
|
"sys/dirglobal.json"
|
|
2272
2274
|
);
|
|
2273
|
-
if (o.$global.sys = {}, Object.keys(
|
|
2274
|
-
Object.assign(o.$global.sys,
|
|
2275
|
+
if (o.$global.sys = {}, Object.keys(b).forEach(($) => {
|
|
2276
|
+
Object.assign(o.$global.sys, b[$]);
|
|
2275
2277
|
}), o.$model.data.sys.configrouter) {
|
|
2276
2278
|
o.$global.sys.router = o.$model.data.sys.configrouter;
|
|
2277
2279
|
for (let $ = 0; $ < o.$global.sys.router.config.models.length; $++) {
|
|
@@ -2279,15 +2281,15 @@ const Ct = {
|
|
|
2279
2281
|
o.$global.sys.router.config.models[$] + "/configrouter.json"
|
|
2280
2282
|
);
|
|
2281
2283
|
typeof y == "object" && Object.entries(y).forEach(
|
|
2282
|
-
([
|
|
2283
|
-
|
|
2284
|
-
([
|
|
2284
|
+
([_, k]) => {
|
|
2285
|
+
_ === "rights" ? Object.entries(k).forEach(
|
|
2286
|
+
([O, x]) => {
|
|
2285
2287
|
x && x.length && x.forEach((L) => {
|
|
2286
|
-
o.$global.sys.router.rights[
|
|
2288
|
+
o.$global.sys.router.rights[O].includes(L) || o.$global.sys.router.rights[O].push(L);
|
|
2287
2289
|
});
|
|
2288
2290
|
}
|
|
2289
2291
|
) : Object.assign(
|
|
2290
|
-
o.$global.sys.router[
|
|
2292
|
+
o.$global.sys.router[_],
|
|
2291
2293
|
k
|
|
2292
2294
|
);
|
|
2293
2295
|
}
|
|
@@ -2360,7 +2362,7 @@ const Ct = {
|
|
|
2360
2362
|
}, Cn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2361
2363
|
__proto__: null,
|
|
2362
2364
|
default: Pn
|
|
2363
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2365
|
+
}, Symbol.toStringTag, { value: "Module" })), An = /* @__PURE__ */ C({
|
|
2364
2366
|
__name: "AsaiComponent",
|
|
2365
2367
|
props: {
|
|
2366
2368
|
ujt: {}
|
|
@@ -2373,9 +2375,9 @@ const Ct = {
|
|
|
2373
2375
|
) ? i(o).location?.hasharr?.[0] : "") || i(o).sys?.router?.config?.models?.[0]]
|
|
2374
2376
|
), { ujt: t.ujt }, null, 8, ["ujt"]));
|
|
2375
2377
|
}
|
|
2376
|
-
}),
|
|
2378
|
+
}), On = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2377
2379
|
__proto__: null,
|
|
2378
|
-
default:
|
|
2380
|
+
default: An
|
|
2379
2381
|
}, Symbol.toStringTag, { value: "Module" })), Mn = /* @__PURE__ */ C({
|
|
2380
2382
|
__name: "AsaiWebServer",
|
|
2381
2383
|
props: {
|
|
@@ -2454,10 +2456,10 @@ const Ct = {
|
|
|
2454
2456
|
], 2);
|
|
2455
2457
|
};
|
|
2456
2458
|
}
|
|
2457
|
-
}), Xe = /* @__PURE__ */ B(Un, [["__scopeId", "data-v-2fe346c2"]]),
|
|
2459
|
+
}), Xe = /* @__PURE__ */ B(Un, [["__scopeId", "data-v-2fe346c2"]]), In = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2458
2460
|
__proto__: null,
|
|
2459
2461
|
default: Xe
|
|
2460
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2462
|
+
}, Symbol.toStringTag, { value: "Module" })), En = {
|
|
2461
2463
|
key: 0,
|
|
2462
2464
|
id: "asaiweb"
|
|
2463
2465
|
}, Dn = { id: "teleportpopbox" }, Rn = /* @__PURE__ */ C({
|
|
@@ -2467,7 +2469,7 @@ const Ct = {
|
|
|
2467
2469
|
ujt: {}
|
|
2468
2470
|
},
|
|
2469
2471
|
setup(t) {
|
|
2470
|
-
const e = t, n =
|
|
2472
|
+
const e = t, n = Ve("$vueProxy"), { $global: o, $fn: a, $model: s } = e.ujt;
|
|
2471
2473
|
s.appmodules = e.appmodules, a.initweb(n).then(() => {
|
|
2472
2474
|
a.useApi(e.ujt, "webserver"), a.useWs(e.ujt, "web");
|
|
2473
2475
|
let r = [
|
|
@@ -2506,7 +2508,7 @@ const Ct = {
|
|
|
2506
2508
|
});
|
|
2507
2509
|
}), (r, d) => {
|
|
2508
2510
|
const c = U("AsaiWebServerUserOnline"), f = U("PopMsg"), h = U("PopBoxConfirm"), g = ve("keyboard");
|
|
2509
|
-
return i(o).stat.webclient ? (p(), m("div",
|
|
2511
|
+
return i(o).stat.webclient ? (p(), m("div", En, [
|
|
2510
2512
|
l.value === 0 ? (p(), X(Ne, {
|
|
2511
2513
|
key: 0,
|
|
2512
2514
|
ujt: t.ujt
|
|
@@ -2539,7 +2541,7 @@ const Ct = {
|
|
|
2539
2541
|
}), Fn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2540
2542
|
__proto__: null,
|
|
2541
2543
|
default: Rn
|
|
2542
|
-
}, Symbol.toStringTag, { value: "Module" })), Wn = { class: "app-area" },
|
|
2544
|
+
}, Symbol.toStringTag, { value: "Module" })), Wn = { class: "app-area" }, Hn = { class: "app-menu-area" }, Vn = ["onPointerup"], qn = { class: "menu-text" }, Bn = { class: "app-login" }, Nn = /* @__PURE__ */ C({
|
|
2543
2545
|
__name: "AsaiWebItemDefault",
|
|
2544
2546
|
props: {
|
|
2545
2547
|
ujt: {}
|
|
@@ -2557,14 +2559,14 @@ const Ct = {
|
|
|
2557
2559
|
width: "200"
|
|
2558
2560
|
})
|
|
2559
2561
|
], -1)),
|
|
2560
|
-
u("div",
|
|
2561
|
-
(p(!0), m(
|
|
2562
|
+
u("div", Hn, [
|
|
2563
|
+
(p(!0), m(E, null, ee(a.value, (d) => (p(), m("div", {
|
|
2562
2564
|
class: J(`app-menu${d.type === "module" ? " module" : ""}`),
|
|
2563
2565
|
key: d.value,
|
|
2564
2566
|
onPointerup: (c) => i(o).sethash(d.value === "views" ? "" : d.value)
|
|
2565
2567
|
}, [
|
|
2566
2568
|
u("span", qn, v(d.label), 1)
|
|
2567
|
-
], 42,
|
|
2569
|
+
], 42, Vn))), 128))
|
|
2568
2570
|
]),
|
|
2569
2571
|
u("div", Bn, [
|
|
2570
2572
|
W(r, { ujt: t.ujt }, null, 8, ["ujt"])
|
|
@@ -2629,7 +2631,7 @@ const Ct = {
|
|
|
2629
2631
|
const e = t, { $global: n, $fn: o } = e.ujt;
|
|
2630
2632
|
return o.initrouter(), (a, s) => {
|
|
2631
2633
|
const l = U("MenuShowFix"), r = U("UserCard");
|
|
2632
|
-
return p(), m(
|
|
2634
|
+
return p(), m(E, null, [
|
|
2633
2635
|
W(l, {
|
|
2634
2636
|
ujt: t.ujt,
|
|
2635
2637
|
menus: i(n).url[i(n).module.value]
|
|
@@ -2642,7 +2644,7 @@ const Ct = {
|
|
|
2642
2644
|
})
|
|
2643
2645
|
], -1)),
|
|
2644
2646
|
u("div", Qn, [
|
|
2645
|
-
(p(!0), m(
|
|
2647
|
+
(p(!0), m(E, null, ee(i(n).url[i(n).module.value], (d) => (p(), m("div", {
|
|
2646
2648
|
class: J(`app-menu${d.type === "module" ? " module" : ""}`),
|
|
2647
2649
|
key: d.value,
|
|
2648
2650
|
onPointerup: (c) => i(o).sethash(d.value === "views" ? "" : d.value)
|
|
@@ -2669,7 +2671,7 @@ const Ct = {
|
|
|
2669
2671
|
const e = t, { $global: n, $fn: o } = e.ujt;
|
|
2670
2672
|
return o.initrouter(), (a, s) => {
|
|
2671
2673
|
const l = U("MenuShowFix"), r = U("RouterView");
|
|
2672
|
-
return p(), m(
|
|
2674
|
+
return p(), m(E, null, [
|
|
2673
2675
|
W(l, {
|
|
2674
2676
|
ujt: t.ujt,
|
|
2675
2677
|
menus: i(n).url[i(n).module.value]
|
|
@@ -2753,7 +2755,7 @@ const Ct = {
|
|
|
2753
2755
|
},
|
|
2754
2756
|
setup(t) {
|
|
2755
2757
|
const e = t, { $fn: n, $global: o, $db: a } = e.ujt, { setChannelClass: s, getClassKey: l } = n.useChannel(e);
|
|
2756
|
-
return (r, d) => (p(!0), m(
|
|
2758
|
+
return (r, d) => (p(!0), m(E, null, ee(Object.entries(
|
|
2757
2759
|
i(a)[e.opt.channel].rfdata.rule?.[i(l)()]?.[i(l)() + "data"] || { asai: "All" }
|
|
2758
2760
|
), (c) => R(r.$slots, "default", {
|
|
2759
2761
|
key: c[0],
|
|
@@ -2807,10 +2809,10 @@ const Ct = {
|
|
|
2807
2809
|
}, Symbol.toStringTag, { value: "Module" })), wo = { class: "as-channel-class" }, jo = { class: "as-channel-bar" }, xo = { class: "as-channel-class-area" }, So = {
|
|
2808
2810
|
key: 0,
|
|
2809
2811
|
class: "as-channel-class-bar"
|
|
2810
|
-
}, Po = { class: "as-channel-list" }, Co = { class: "as-channel-bar" },
|
|
2812
|
+
}, Po = { class: "as-channel-list" }, Co = { class: "as-channel-bar" }, Ao = ["id"], Oo = {
|
|
2811
2813
|
key: 0,
|
|
2812
2814
|
class: "as-channel-page"
|
|
2813
|
-
}, Mo = { class: "as-channel-show" }, To = { class: "as-channel-bar" }, zo = { class: "as-channel-opt" }, Lo = { class: "as-channel-bar" }, Uo = { class: "as-channel-opt" },
|
|
2815
|
+
}, Mo = { class: "as-channel-show" }, To = { class: "as-channel-bar" }, zo = { class: "as-channel-opt" }, Lo = { class: "as-channel-bar" }, Uo = { class: "as-channel-opt" }, Io = { class: "as-channel-bar" }, Eo = { class: "as-channel-opt" }, Do = /* @__PURE__ */ C({
|
|
2814
2816
|
__name: "ChannelIndex",
|
|
2815
2817
|
props: {
|
|
2816
2818
|
ujt: {},
|
|
@@ -2821,7 +2823,7 @@ const Ct = {
|
|
|
2821
2823
|
return l(), $e(() => {
|
|
2822
2824
|
a[e.opt.channel] = null;
|
|
2823
2825
|
}), (d, c) => {
|
|
2824
|
-
const f = U("ChannelClass"), h = U("ChannelUpDown"), g = U("ChannelListSearch"),
|
|
2826
|
+
const f = U("ChannelClass"), h = U("ChannelUpDown"), g = U("ChannelListSearch"), b = U("PopBoxConfirm"), $ = U("ChannelList"), y = U("ChannelListPage"), _ = U("ChannelOpt"), k = U("ChannelEdit"), O = U("ChannelShow"), x = U("ChannelAdd");
|
|
2825
2827
|
return i(a)[e.opt.channel].stat ? (p(), m("div", {
|
|
2826
2828
|
key: 0,
|
|
2827
2829
|
class: J(e.opt.tyindex == 1 ? "as-channel-column" : "as-channel-row")
|
|
@@ -2855,7 +2857,7 @@ const Ct = {
|
|
|
2855
2857
|
class: "as-channel-list-area as-list-nth",
|
|
2856
2858
|
id: "popconfirm" + e.opt.channel + "area"
|
|
2857
2859
|
}, [
|
|
2858
|
-
W(
|
|
2860
|
+
W(b, {
|
|
2859
2861
|
ujt: t.ujt,
|
|
2860
2862
|
id: "popconfirm" + e.opt.channel
|
|
2861
2863
|
}, null, 8, ["ujt", "id"]),
|
|
@@ -2863,8 +2865,8 @@ const Ct = {
|
|
|
2863
2865
|
ujt: t.ujt,
|
|
2864
2866
|
opt: t.opt
|
|
2865
2867
|
}, null, 8, ["ujt", "opt"])
|
|
2866
|
-
], 8,
|
|
2867
|
-
i(a)[e.opt.channel].cmPageList.length > 1 ? (p(), m("div",
|
|
2868
|
+
], 8, Ao),
|
|
2869
|
+
i(a)[e.opt.channel].cmPageList.length > 1 ? (p(), m("div", Oo, [
|
|
2868
2870
|
W(y, {
|
|
2869
2871
|
ujt: t.ujt,
|
|
2870
2872
|
opt: t.opt
|
|
@@ -2872,12 +2874,12 @@ const Ct = {
|
|
|
2872
2874
|
])) : F("", !0)
|
|
2873
2875
|
]),
|
|
2874
2876
|
u("div", Mo, [
|
|
2875
|
-
i(o).location.query?.show ? (p(), m(
|
|
2876
|
-
i(o).location.query?.showty ? (p(), m(
|
|
2877
|
+
i(o).location.query?.show ? (p(), m(E, { key: 0 }, [
|
|
2878
|
+
i(o).location.query?.showty ? (p(), m(E, { key: 0 }, [
|
|
2877
2879
|
u("div", To, [
|
|
2878
2880
|
u("h1", null, v(i(s).data.asai.rulebook.contentedit) + " " + v(i(r)("ui.edit") || "Edit"), 1),
|
|
2879
2881
|
u("div", zo, [
|
|
2880
|
-
W(
|
|
2882
|
+
W(_, {
|
|
2881
2883
|
ujt: t.ujt,
|
|
2882
2884
|
opt: t.opt
|
|
2883
2885
|
}, null, 8, ["ujt", "opt"])
|
|
@@ -2887,26 +2889,26 @@ const Ct = {
|
|
|
2887
2889
|
ujt: t.ujt,
|
|
2888
2890
|
opt: t.opt
|
|
2889
2891
|
}, null, 8, ["ujt", "opt"])
|
|
2890
|
-
], 64)) : (p(), m(
|
|
2892
|
+
], 64)) : (p(), m(E, { key: 1 }, [
|
|
2891
2893
|
u("div", Lo, [
|
|
2892
2894
|
u("h1", null, v(i(s).data.asai.rulebook.contentshow) + " " + v(i(r)("ui.show") || "Show"), 1),
|
|
2893
2895
|
u("div", Uo, [
|
|
2894
|
-
W(
|
|
2896
|
+
W(_, {
|
|
2895
2897
|
ujt: t.ujt,
|
|
2896
2898
|
opt: t.opt
|
|
2897
2899
|
}, null, 8, ["ujt", "opt"])
|
|
2898
2900
|
])
|
|
2899
2901
|
]),
|
|
2900
|
-
W(
|
|
2902
|
+
W(O, {
|
|
2901
2903
|
ujt: t.ujt,
|
|
2902
2904
|
opt: t.opt
|
|
2903
2905
|
}, null, 8, ["ujt", "opt"])
|
|
2904
2906
|
], 64))
|
|
2905
|
-
], 64)) : (p(), m(
|
|
2906
|
-
u("div",
|
|
2907
|
+
], 64)) : (p(), m(E, { key: 1 }, [
|
|
2908
|
+
u("div", Io, [
|
|
2907
2909
|
u("h1", null, v(i(s).data.asai.rulebook.new) + " " + v(i(r)("ui.add") || "Add"), 1),
|
|
2908
|
-
u("div",
|
|
2909
|
-
W(
|
|
2910
|
+
u("div", Eo, [
|
|
2911
|
+
W(_, {
|
|
2910
2912
|
ujt: t.ujt,
|
|
2911
2913
|
opt: t.opt
|
|
2912
2914
|
}, null, 8, ["ujt", "opt"])
|
|
@@ -2927,7 +2929,7 @@ const Ct = {
|
|
|
2927
2929
|
}, Symbol.toStringTag, { value: "Module" })), Fo = {
|
|
2928
2930
|
key: 0,
|
|
2929
2931
|
class: "btns"
|
|
2930
|
-
}, Wo = ["onPointerup"],
|
|
2932
|
+
}, Wo = ["onPointerup"], Ho = ["onPointerup"], Vo = /* @__PURE__ */ C({
|
|
2931
2933
|
__name: "ChannelList",
|
|
2932
2934
|
props: {
|
|
2933
2935
|
ujt: {},
|
|
@@ -2948,27 +2950,27 @@ const Ct = {
|
|
|
2948
2950
|
he(() => {
|
|
2949
2951
|
c(0), r(a.location.query?.show);
|
|
2950
2952
|
}), o[e.opt.channel].cmPageSize = q(() => Number(a.location.query?.ps) || o[e.opt.channel].cfg.config?.ps || 5);
|
|
2951
|
-
const { getPageList:
|
|
2952
|
-
return o[e.opt.channel].cmPageList = q(() =>
|
|
2953
|
-
const
|
|
2954
|
-
return p(!0), m(
|
|
2955
|
-
key: "list" + (k?.[i(h)()] ||
|
|
2953
|
+
const { getPageList: b } = n.usePage(e);
|
|
2954
|
+
return o[e.opt.channel].cmPageList = q(() => b(o[e.opt?.channel]?.cmPageSize)), ($, y) => {
|
|
2955
|
+
const _ = U("ChannelListType");
|
|
2956
|
+
return p(!0), m(E, null, ee(i(o)[e.opt.channel].contentList, (k, O) => R($.$slots, "default", {
|
|
2957
|
+
key: "list" + (k?.[i(h)()] || O),
|
|
2956
2958
|
item: k,
|
|
2957
2959
|
option: { setShow: i(d), delItem: i(s), editItem: i(l), optConfirm: i(f) }
|
|
2958
2960
|
}, () => [
|
|
2959
|
-
W(
|
|
2961
|
+
W(_, {
|
|
2960
2962
|
ujt: t.ujt,
|
|
2961
2963
|
opt: t.opt,
|
|
2962
2964
|
pm: t.pm,
|
|
2963
2965
|
item: k,
|
|
2964
2966
|
option: { setShow: i(d), delItem: i(s), editItem: i(l), optConfirm: i(f) }
|
|
2965
2967
|
}, {
|
|
2966
|
-
btns:
|
|
2968
|
+
btns: re(() => [
|
|
2967
2969
|
3 < i(a).user?.info?.lv ? (p(), m("div", Fo, [
|
|
2968
2970
|
u("div", {
|
|
2969
|
-
onPointerdown: y[0] || (y[0] =
|
|
2971
|
+
onPointerdown: y[0] || (y[0] = V(() => {
|
|
2970
2972
|
}, ["stop"])),
|
|
2971
|
-
onPointerup:
|
|
2973
|
+
onPointerup: V((x) => {
|
|
2972
2974
|
i(f)({
|
|
2973
2975
|
con: i(g)("ui.delconfirm"),
|
|
2974
2976
|
fn: () => {
|
|
@@ -2978,10 +2980,10 @@ const Ct = {
|
|
|
2978
2980
|
}, ["stop"])
|
|
2979
2981
|
}, v(i(g)("ui.del") || "Del"), 41, Wo),
|
|
2980
2982
|
u("div", {
|
|
2981
|
-
onPointerdown: y[1] || (y[1] =
|
|
2983
|
+
onPointerdown: y[1] || (y[1] = V(() => {
|
|
2982
2984
|
}, ["stop"])),
|
|
2983
|
-
onPointerup:
|
|
2984
|
-
}, v(i(g)("ui.edit") || "Edit"), 41,
|
|
2985
|
+
onPointerup: V((x) => i(l)(k?.[i(h)()]), ["stop"])
|
|
2986
|
+
}, v(i(g)("ui.edit") || "Edit"), 41, Ho)
|
|
2985
2987
|
])) : F("", !0)
|
|
2986
2988
|
]),
|
|
2987
2989
|
_: 2
|
|
@@ -2991,7 +2993,7 @@ const Ct = {
|
|
|
2991
2993
|
}
|
|
2992
2994
|
}), qo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2993
2995
|
__proto__: null,
|
|
2994
|
-
default:
|
|
2996
|
+
default: Vo
|
|
2995
2997
|
}, Symbol.toStringTag, { value: "Module" })), Bo = ["onPointerup"], No = /* @__PURE__ */ C({
|
|
2996
2998
|
__name: "ChannelListPage",
|
|
2997
2999
|
props: {
|
|
@@ -3000,15 +3002,15 @@ const Ct = {
|
|
|
3000
3002
|
},
|
|
3001
3003
|
setup(t) {
|
|
3002
3004
|
const e = t, { $db: n, $global: o } = e.ujt;
|
|
3003
|
-
return (a, s) => i(n)[e.opt.channel].cmPageList.length > 1 ? (p(!0), m(
|
|
3005
|
+
return (a, s) => i(n)[e.opt.channel].cmPageList.length > 1 ? (p(!0), m(E, { key: 0 }, ee(i(n)[e.opt.channel].cmPageList, (l) => R(a.$slots, "default", {
|
|
3004
3006
|
key: "listpage" + (l || ""),
|
|
3005
3007
|
item: l,
|
|
3006
3008
|
option: {}
|
|
3007
3009
|
}, () => [
|
|
3008
3010
|
u("div", {
|
|
3009
|
-
onPointerdown: s[0] || (s[0] =
|
|
3011
|
+
onPointerdown: s[0] || (s[0] = V(() => {
|
|
3010
3012
|
}, ["stop"])),
|
|
3011
|
-
onPointerup:
|
|
3013
|
+
onPointerup: V((r) => i(n)[e.opt.channel]?.setpage(l), ["stop"]),
|
|
3012
3014
|
class: J(
|
|
3013
3015
|
l == i(o).location.query?.pg || l == 1 && !i(o).location.query?.pg ? "as-channel-active" : ""
|
|
3014
3016
|
)
|
|
@@ -3049,7 +3051,7 @@ const Ct = {
|
|
|
3049
3051
|
G(u("select", {
|
|
3050
3052
|
"onUpdate:modelValue": d[2] || (d[2] = (c) => i(o).location.query.ssty = c)
|
|
3051
3053
|
}, [
|
|
3052
|
-
(p(!0), m(
|
|
3054
|
+
(p(!0), m(E, null, ee(i(n)[e.opt.channel].cfg.sss, (c) => (p(), m("option", {
|
|
3053
3055
|
key: c,
|
|
3054
3056
|
value: c === "asai" ? void 0 : c
|
|
3055
3057
|
}, v(c === "asai" ? i(l)("ui.sss") || "Table" : i(n)[e.opt.channel].rfdata?.lang?.[c]), 9, Zo))), 128))
|
|
@@ -3059,7 +3061,7 @@ const Ct = {
|
|
|
3059
3061
|
G(u("select", {
|
|
3060
3062
|
"onUpdate:modelValue": d[3] || (d[3] = (c) => i(o).location.query.sx = c)
|
|
3061
3063
|
}, [
|
|
3062
|
-
(p(!0), m(
|
|
3064
|
+
(p(!0), m(E, null, ee(i(n)[e.opt.channel].cfg.sxs, (c) => (p(), m("option", {
|
|
3063
3065
|
key: c,
|
|
3064
3066
|
value: c === "asai" ? void 0 : c
|
|
3065
3067
|
}, v(c === "asai" ? i(l)("ui.sxs") || "Sort" : i(n)[e.opt.channel].rfdata?.lang?.[c]), 9, Qo))), 128))
|
|
@@ -3069,7 +3071,7 @@ const Ct = {
|
|
|
3069
3071
|
G(u("select", {
|
|
3070
3072
|
"onUpdate:modelValue": d[4] || (d[4] = (c) => i(o).location.query.sxty = c)
|
|
3071
3073
|
}, [
|
|
3072
|
-
(p(!0), m(
|
|
3074
|
+
(p(!0), m(E, null, ee(i(l)("ui.sxtys") || [], (c, f) => (p(), m("option", {
|
|
3073
3075
|
key: "sxty" + f,
|
|
3074
3076
|
value: f == 0 ? void 0 : f.toString()
|
|
3075
3077
|
}, v(c), 9, ea))), 128))
|
|
@@ -3098,7 +3100,7 @@ const Ct = {
|
|
|
3098
3100
|
a.list = r.data;
|
|
3099
3101
|
}), (r, d) => {
|
|
3100
3102
|
const c = U("ChannelListType");
|
|
3101
|
-
return p(!0), m(
|
|
3103
|
+
return p(!0), m(E, null, ee(a.list, (f, h) => R(r.$slots, "default", {
|
|
3102
3104
|
key: "list" + (f?.[r.getSnKey()] || h),
|
|
3103
3105
|
item: f,
|
|
3104
3106
|
option: { setShow: i(l) }
|
|
@@ -3133,9 +3135,9 @@ const Ct = {
|
|
|
3133
3135
|
u("div", {
|
|
3134
3136
|
class: "li",
|
|
3135
3137
|
title: t.item?.[i(a)()] || "",
|
|
3136
|
-
onPointerdown: r[0] || (r[0] =
|
|
3138
|
+
onPointerdown: r[0] || (r[0] = V(() => {
|
|
3137
3139
|
}, ["stop"])),
|
|
3138
|
-
onPointerup: r[1] || (r[1] =
|
|
3140
|
+
onPointerup: r[1] || (r[1] = V((d) => t.option?.setShow(t.item), ["stop"]))
|
|
3139
3141
|
}, v(t.item?.[i(a)()] || ""), 41, sa),
|
|
3140
3142
|
R(l.$slots, "btns")
|
|
3141
3143
|
], 2));
|
|
@@ -3160,7 +3162,7 @@ const Ct = {
|
|
|
3160
3162
|
u("div", {
|
|
3161
3163
|
class: "li",
|
|
3162
3164
|
title: t.item?.[i(a)()] || "",
|
|
3163
|
-
onPointerup: r[0] || (r[0] =
|
|
3165
|
+
onPointerup: r[0] || (r[0] = V((d) => t.option?.setShow(t.item), ["stop"]))
|
|
3164
3166
|
}, [
|
|
3165
3167
|
t.item?.img ? (p(), m("img", {
|
|
3166
3168
|
key: 0,
|
|
@@ -3205,7 +3207,7 @@ const Ct = {
|
|
|
3205
3207
|
item: t.item,
|
|
3206
3208
|
option: t.option
|
|
3207
3209
|
}, {
|
|
3208
|
-
btns:
|
|
3210
|
+
btns: re(() => [
|
|
3209
3211
|
R(s.$slots, "btns")
|
|
3210
3212
|
]),
|
|
3211
3213
|
_: 3
|
|
@@ -3291,24 +3293,24 @@ const Ct = {
|
|
|
3291
3293
|
u("div", _a, [
|
|
3292
3294
|
u("div", {
|
|
3293
3295
|
class: "as-channel-pos",
|
|
3294
|
-
onPointerup: d[0] || (d[0] =
|
|
3296
|
+
onPointerup: d[0] || (d[0] = V((c) => i(s)("class"), ["stop"]))
|
|
3295
3297
|
}, v(i(l)("ui.class") || "Class"), 33),
|
|
3296
3298
|
u("div", {
|
|
3297
3299
|
class: "as-channel-pos",
|
|
3298
|
-
onPointerup: d[1] || (d[1] =
|
|
3300
|
+
onPointerup: d[1] || (d[1] = V((c) => i(s)("list"), ["stop"]))
|
|
3299
3301
|
}, v(i(l)("ui.list") || "List"), 33),
|
|
3300
3302
|
u("div", {
|
|
3301
3303
|
class: "as-channel-pos",
|
|
3302
|
-
onPointerup: d[2] || (d[2] =
|
|
3304
|
+
onPointerup: d[2] || (d[2] = V((c) => i(s)("add"), ["stop"]))
|
|
3303
3305
|
}, v(i(l)("ui.add") || "Add"), 33),
|
|
3304
|
-
i(a)[e.opt.channel]?.cfg?.url?.reg ? (p(), m(
|
|
3306
|
+
i(a)[e.opt.channel]?.cfg?.url?.reg ? (p(), m(E, { key: 0 }, [
|
|
3305
3307
|
u("div", {
|
|
3306
3308
|
class: "as-channel-pos",
|
|
3307
|
-
onPointerup: d[3] || (d[3] =
|
|
3309
|
+
onPointerup: d[3] || (d[3] = V((c) => i(s)("reg"), ["stop"]))
|
|
3308
3310
|
}, v(i(o).lg("channeluser.ui.reg")), 33),
|
|
3309
3311
|
u("div", {
|
|
3310
3312
|
class: "as-channel-pos",
|
|
3311
|
-
onPointerup: d[4] || (d[4] =
|
|
3313
|
+
onPointerup: d[4] || (d[4] = V((c) => i(s)("login"), ["stop"]))
|
|
3312
3314
|
}, v(i(o).lg("channeluser.ui.login")), 33)
|
|
3313
3315
|
], 64)) : F("", !0)
|
|
3314
3316
|
])
|
|
@@ -3349,7 +3351,7 @@ const Ct = {
|
|
|
3349
3351
|
}), Pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3350
3352
|
__proto__: null,
|
|
3351
3353
|
default: Sa
|
|
3352
|
-
}, Symbol.toStringTag, { value: "Module" })), Ca = { class: "as-form-show" },
|
|
3354
|
+
}, Symbol.toStringTag, { value: "Module" })), Ca = { class: "as-form-show" }, Aa = /* @__PURE__ */ C({
|
|
3353
3355
|
__name: "ChannelShow",
|
|
3354
3356
|
props: {
|
|
3355
3357
|
ujt: {},
|
|
@@ -3372,9 +3374,9 @@ const Ct = {
|
|
|
3372
3374
|
]);
|
|
3373
3375
|
};
|
|
3374
3376
|
}
|
|
3375
|
-
}),
|
|
3377
|
+
}), Oa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3376
3378
|
__proto__: null,
|
|
3377
|
-
default:
|
|
3379
|
+
default: Aa
|
|
3378
3380
|
}, Symbol.toStringTag, { value: "Module" })), Ma = { class: "as-channel-io" }, Ta = /* @__PURE__ */ C({
|
|
3379
3381
|
__name: "ChannelUpDown",
|
|
3380
3382
|
props: {
|
|
@@ -3398,7 +3400,7 @@ const Ct = {
|
|
|
3398
3400
|
opt: { accept: ".txt" },
|
|
3399
3401
|
onOnUpload: l
|
|
3400
3402
|
}, {
|
|
3401
|
-
default:
|
|
3403
|
+
default: re(() => [
|
|
3402
3404
|
se(v(i(o).lang.asai.upload), 1)
|
|
3403
3405
|
]),
|
|
3404
3406
|
_: 1
|
|
@@ -3414,7 +3416,7 @@ const Ct = {
|
|
|
3414
3416
|
}), za = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3415
3417
|
__proto__: null,
|
|
3416
3418
|
default: Ta
|
|
3417
|
-
}, Symbol.toStringTag, { value: "Module" })), La = { class: "as-chat-room" }, Ua = { class: "as-chat-header" },
|
|
3419
|
+
}, Symbol.toStringTag, { value: "Module" })), La = { class: "as-chat-room" }, Ua = { class: "as-chat-header" }, Ia = { class: "as-chat-tit" }, Ea = { class: "as-chat-con" }, Da = { class: "chat-message-content" }, Ra = { class: "chat-message-us" }, Fa = { class: "chat-message-bubble" }, Wa = ["src"], Ha = ["src"], Va = { class: "as-chat-footer" }, qa = { class: "as-chat-pop-area" }, Ba = {
|
|
3418
3420
|
key: 0,
|
|
3419
3421
|
class: "as-chat-pop"
|
|
3420
3422
|
}, Na = { class: "as-chat-footer-main" }, Ya = { class: "as-chat-opt" }, Xa = { class: "as-chat-input" }, Ka = ["placeholder"], Ja = {
|
|
@@ -3451,9 +3453,9 @@ const Ct = {
|
|
|
3451
3453
|
try {
|
|
3452
3454
|
const y = c.value;
|
|
3453
3455
|
if (!y) return;
|
|
3454
|
-
const
|
|
3456
|
+
const _ = y.selectionStart !== null ? y.selectionStart : y.value.length, k = y.selectionEnd !== null ? y.selectionEnd : y.value.length, O = y.value, x = O.substring(0, _) + $ + O.substring(k);
|
|
3455
3457
|
y.value = x;
|
|
3456
|
-
const L =
|
|
3458
|
+
const L = _ + $.length;
|
|
3457
3459
|
y.setSelectionRange(L, L), y.dispatchEvent(new Event("input", { bubbles: !0 })), f.send.msg = x;
|
|
3458
3460
|
} catch {
|
|
3459
3461
|
const k = c.value.value + $;
|
|
@@ -3469,13 +3471,13 @@ const Ct = {
|
|
|
3469
3471
|
function h() {
|
|
3470
3472
|
s(r, l, f.send, "");
|
|
3471
3473
|
}
|
|
3472
|
-
const g =
|
|
3474
|
+
const g = Oe(
|
|
3473
3475
|
() => o.rooms?.[r]?.length,
|
|
3474
3476
|
($, y) => {
|
|
3475
|
-
$ != y &&
|
|
3477
|
+
$ != y && b();
|
|
3476
3478
|
}
|
|
3477
3479
|
);
|
|
3478
|
-
function
|
|
3480
|
+
function b() {
|
|
3479
3481
|
d.value && d.value.scrollTop > f.chatDomHeight - f.Inclusion && be(() => {
|
|
3480
3482
|
d.value && (f.chatDomHeight = d.value.scrollHeight, d.value.scrollTop = f.chatDomHeight);
|
|
3481
3483
|
});
|
|
@@ -3483,7 +3485,7 @@ const Ct = {
|
|
|
3483
3485
|
return je(() => {
|
|
3484
3486
|
g();
|
|
3485
3487
|
}), ($, y) => {
|
|
3486
|
-
const
|
|
3488
|
+
const _ = U("ChatRoomOpt");
|
|
3487
3489
|
return p(), m("div", La, [
|
|
3488
3490
|
u("div", Ua, [
|
|
3489
3491
|
R($.$slots, "chatheader", {
|
|
@@ -3493,7 +3495,7 @@ const Ct = {
|
|
|
3493
3495
|
room: t.room
|
|
3494
3496
|
}
|
|
3495
3497
|
}, () => [
|
|
3496
|
-
u("div",
|
|
3498
|
+
u("div", Ia, v(t.room?.lang?.chat || i(a).lang.sys.chat.chat), 1)
|
|
3497
3499
|
], !0)
|
|
3498
3500
|
]),
|
|
3499
3501
|
u("div", {
|
|
@@ -3508,9 +3510,9 @@ const Ct = {
|
|
|
3508
3510
|
room: t.room
|
|
3509
3511
|
}
|
|
3510
3512
|
}, () => [
|
|
3511
|
-
u("div",
|
|
3512
|
-
(p(!0), m(
|
|
3513
|
-
key:
|
|
3513
|
+
u("div", Ea, [
|
|
3514
|
+
(p(!0), m(E, null, ee(i(o).rooms[i(r)], (k, O) => (p(), m("div", {
|
|
3515
|
+
key: O,
|
|
3514
3516
|
class: J(["chat-message", { self: f.send.us === k.us }])
|
|
3515
3517
|
}, [
|
|
3516
3518
|
u("div", Da, [
|
|
@@ -3526,7 +3528,7 @@ const Ct = {
|
|
|
3526
3528
|
style: { "max-width": "100%" },
|
|
3527
3529
|
src: k.msg,
|
|
3528
3530
|
controls: ""
|
|
3529
|
-
}, null, 8,
|
|
3531
|
+
}, null, 8, Ha)) : (p(), m(E, { key: 2 }, [
|
|
3530
3532
|
se(v(k.msg), 1)
|
|
3531
3533
|
], 64))
|
|
3532
3534
|
])
|
|
@@ -3535,10 +3537,10 @@ const Ct = {
|
|
|
3535
3537
|
])
|
|
3536
3538
|
], !0)
|
|
3537
3539
|
], 512),
|
|
3538
|
-
u("div",
|
|
3540
|
+
u("div", Va, [
|
|
3539
3541
|
u("div", qa, [
|
|
3540
3542
|
f.optty ? (p(), m("div", Ba, [
|
|
3541
|
-
W(
|
|
3543
|
+
W(_, {
|
|
3542
3544
|
ujt: t.ujt,
|
|
3543
3545
|
room: t.room,
|
|
3544
3546
|
chatdata: f
|
|
@@ -3658,7 +3660,7 @@ const Ct = {
|
|
|
3658
3660
|
class: "as-emoji-area",
|
|
3659
3661
|
onPointerdown: o
|
|
3660
3662
|
}, [
|
|
3661
|
-
(p(!0), m(
|
|
3663
|
+
(p(!0), m(E, null, ee(n.value, (l, r) => (p(), m("i", {
|
|
3662
3664
|
key: "emoji_" + r,
|
|
3663
3665
|
class: "as-emoji-item"
|
|
3664
3666
|
}, v(l), 1))), 128))
|
|
@@ -3758,14 +3760,14 @@ const Ct = {
|
|
|
3758
3760
|
console.log(666.006, "setOptty", d), d ? (e.chatdata.optty = d[0], e.chatdata.optcomp = d[1]) : (e.chatdata.optty = 1, e.chatdata.optcomp = "");
|
|
3759
3761
|
}
|
|
3760
3762
|
return (d, c) => (p(), m("div", _s, [
|
|
3761
|
-
t.chatdata.optty == 1 ? (p(!0), m(
|
|
3763
|
+
t.chatdata.optty == 1 ? (p(!0), m(E, { key: 0 }, ee(o.types, (f) => (p(), m("div", {
|
|
3762
3764
|
class: "as-chatopt-li",
|
|
3763
3765
|
onPointerdown: (h) => r(f),
|
|
3764
3766
|
key: "li" + f[0]
|
|
3765
3767
|
}, [
|
|
3766
3768
|
u("div", ks, v(f[2]), 1),
|
|
3767
3769
|
u("div", ws, v(i(n).lang.sys.chat[f[1]]), 1)
|
|
3768
|
-
], 40, $s))), 128)) : (p(), m(
|
|
3770
|
+
], 40, $s))), 128)) : (p(), m(E, { key: 1 }, [
|
|
3769
3771
|
u("div", js, [
|
|
3770
3772
|
u("div", {
|
|
3771
3773
|
class: "as-chatopt-btn",
|
|
@@ -3781,7 +3783,7 @@ const Ct = {
|
|
|
3781
3783
|
ujt: t.ujt,
|
|
3782
3784
|
room: t.room,
|
|
3783
3785
|
mediadata: t.chatdata
|
|
3784
|
-
}, null, 8, ["ujt", "room", "mediadata"])) : (p(), m(
|
|
3786
|
+
}, null, 8, ["ujt", "room", "mediadata"])) : (p(), m(E, { key: 1 }, [
|
|
3785
3787
|
se(v(i(n).lang.sys.chat.optNoComp), 1)
|
|
3786
3788
|
], 64))
|
|
3787
3789
|
], 64))
|
|
@@ -3805,8 +3807,8 @@ const Ct = {
|
|
|
3805
3807
|
};
|
|
3806
3808
|
}
|
|
3807
3809
|
return { initKeyboard: n };
|
|
3808
|
-
},
|
|
3809
|
-
const { $global: n, $fn: o, $model: a } = t, s = {}, l = (c, f, h, g = null,
|
|
3810
|
+
}, As = (t, e) => {
|
|
3811
|
+
const { $global: n, $fn: o, $model: a } = t, s = {}, l = (c, f, h, g = null, b = null) => {
|
|
3810
3812
|
if (e.keyMap.bd.Type == "Chinese" && g === "left") {
|
|
3811
3813
|
e.keyMap.bd.zhindex < 1 ? e.keyMap.bd.zhindex = 0 : e.keyMap.bd.zhindex--;
|
|
3812
3814
|
return;
|
|
@@ -3828,12 +3830,12 @@ const Ct = {
|
|
|
3828
3830
|
const {
|
|
3829
3831
|
endColumn: $,
|
|
3830
3832
|
endLineNumber: y,
|
|
3831
|
-
startColumn:
|
|
3833
|
+
startColumn: _,
|
|
3832
3834
|
startLineNumber: k
|
|
3833
3835
|
} = a.lua.editor.getSelection();
|
|
3834
|
-
($ !==
|
|
3836
|
+
($ !== _ || y !== k) && n.keyboard.opt?.backText();
|
|
3835
3837
|
}
|
|
3836
|
-
n.keyboard.opt?.insertText(g,
|
|
3838
|
+
n.keyboard.opt?.insertText(g, b);
|
|
3837
3839
|
return;
|
|
3838
3840
|
}
|
|
3839
3841
|
}
|
|
@@ -3952,19 +3954,19 @@ const Ct = {
|
|
|
3952
3954
|
};
|
|
3953
3955
|
};
|
|
3954
3956
|
}), { keysFun: s, updateInputValue: l, handleInsertChar: r };
|
|
3955
|
-
},
|
|
3957
|
+
}, Os = { class: "keyboard-area" }, Ms = { class: "keyboard-top" }, Ts = { class: "keyboard-menu" }, zs = ["onPointerdown"], Ls = { class: "keyboard-opt" }, Us = {
|
|
3956
3958
|
key: 1,
|
|
3957
3959
|
class: "keyboard-list"
|
|
3958
|
-
},
|
|
3960
|
+
}, Is = {
|
|
3959
3961
|
key: 0,
|
|
3960
3962
|
class: "keyboard-zh"
|
|
3961
|
-
},
|
|
3963
|
+
}, Es = { class: "zh-keys" }, Ds = {
|
|
3962
3964
|
key: 0,
|
|
3963
3965
|
class: "zh-list-area"
|
|
3964
|
-
}, Rs = { class: "zh-list" }, Fs = ["data-key"], Ws = { class: "zh-desc" },
|
|
3966
|
+
}, Rs = { class: "zh-list" }, Fs = ["data-key"], Ws = { class: "zh-desc" }, Hs = {
|
|
3965
3967
|
key: 1,
|
|
3966
3968
|
class: "keyboard-zh"
|
|
3967
|
-
},
|
|
3969
|
+
}, Vs = { class: "zh-desc" }, qs = ["data-key"], Bs = {
|
|
3968
3970
|
key: 2,
|
|
3969
3971
|
class: "keyboard-key key-bg"
|
|
3970
3972
|
}, Ns = ["data-key"], Ys = { key: 1 }, Xs = ["data-key"], Ks = /* @__PURE__ */ C({
|
|
@@ -3985,11 +3987,11 @@ const Ct = {
|
|
|
3985
3987
|
a3e79982: s.cfg.theme.bg3,
|
|
3986
3988
|
v05498808: s.cfg.theme.fs
|
|
3987
3989
|
}));
|
|
3988
|
-
const e = t, { $model: n, $global: o } = e.ujt, { initKeyboard: a } = Cs(e.ujt), s = me({ ...a() }), { keysFun: l } =
|
|
3989
|
-
|
|
3990
|
+
const e = t, { $model: n, $global: o } = e.ujt, { initKeyboard: a } = Cs(e.ujt), s = me({ ...a() }), { keysFun: l } = As(e.ujt, { keyMap: s });
|
|
3991
|
+
Oe(
|
|
3990
3992
|
() => o.keyboard.showkeyboard,
|
|
3991
|
-
(y,
|
|
3992
|
-
y && y !==
|
|
3993
|
+
(y, _) => {
|
|
3994
|
+
y && y !== _ && f();
|
|
3993
3995
|
}
|
|
3994
3996
|
);
|
|
3995
3997
|
const r = q(() => s.askeytypes[o.keyboard.showkeyboard || ".askey-default"] || s.askeytypes[".askey-default"]);
|
|
@@ -4005,48 +4007,48 @@ const Ct = {
|
|
|
4005
4007
|
}, 10);
|
|
4006
4008
|
});
|
|
4007
4009
|
}, h = async (y) => {
|
|
4008
|
-
const
|
|
4009
|
-
if (!
|
|
4010
|
+
const _ = o.keyboard.params?.el;
|
|
4011
|
+
if (!_)
|
|
4010
4012
|
return;
|
|
4011
|
-
const k =
|
|
4012
|
-
let
|
|
4013
|
-
|
|
4013
|
+
const k = _.value;
|
|
4014
|
+
let O, x;
|
|
4015
|
+
O = _.selectionStart, x = _.selectionEnd, O == null && (O = k.length, x = k.length), l[y] && typeof l[y] == "function" ? l[y]({ key: y, elDom: _, elVal: k, startPos: O, endPos: x }) : l.default({
|
|
4014
4016
|
key: y,
|
|
4015
|
-
elDom:
|
|
4017
|
+
elDom: _,
|
|
4016
4018
|
elVal: k,
|
|
4017
|
-
startPos:
|
|
4019
|
+
startPos: O,
|
|
4018
4020
|
endPos: x,
|
|
4019
4021
|
char: null,
|
|
4020
4022
|
onsuggest: o.keyboard.params.type === "monaco" && o.keyboard.opt?.pasteText ? 1 : 0
|
|
4021
4023
|
});
|
|
4022
4024
|
}, g = (y) => {
|
|
4023
|
-
const
|
|
4024
|
-
for (const [k,
|
|
4025
|
+
const _ = [];
|
|
4026
|
+
for (const [k, O] of Object.entries(
|
|
4025
4027
|
n.data?.sys?.chinese || {}
|
|
4026
4028
|
))
|
|
4027
|
-
k.startsWith(y) &&
|
|
4028
|
-
return
|
|
4029
|
-
},
|
|
4029
|
+
k.startsWith(y) && _.push(...O);
|
|
4030
|
+
return _;
|
|
4031
|
+
}, b = (y, _) => {
|
|
4030
4032
|
let k = !1;
|
|
4031
|
-
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 && l[y] || (s.bd.zhs && (s.bd.zhs = ""), s.bd.zharr?.length && (
|
|
4033
|
+
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 && l[y] || (s.bd.zhs && (s.bd.zhs = ""), s.bd.zharr?.length && (_.classList.contains("zh-li") || (y = s.bd.zharr[0] + y), s.bd.zhs = "", s.bd.zhindex = 0, s.bd.zharr = []))), !k && h(y);
|
|
4032
4034
|
}, $ = (y) => {
|
|
4033
|
-
const
|
|
4034
|
-
if (!
|
|
4035
|
-
const k =
|
|
4035
|
+
const _ = y.target;
|
|
4036
|
+
if (!_.classList.contains("askey")) return;
|
|
4037
|
+
const k = _.dataset.key;
|
|
4036
4038
|
if (!k) return;
|
|
4037
4039
|
y.preventDefault(), y.stopPropagation();
|
|
4038
|
-
let
|
|
4040
|
+
let O = _.classList.contains("zh-li");
|
|
4039
4041
|
switch (y.type) {
|
|
4040
4042
|
case "pointerdown":
|
|
4041
|
-
!
|
|
4043
|
+
!O && b(k, _);
|
|
4042
4044
|
break;
|
|
4043
4045
|
case "pointerup":
|
|
4044
|
-
|
|
4046
|
+
O && b(k, _);
|
|
4045
4047
|
break;
|
|
4046
4048
|
}
|
|
4047
4049
|
};
|
|
4048
|
-
return (y,
|
|
4049
|
-
const k = U("PopDrop"),
|
|
4050
|
+
return (y, _) => {
|
|
4051
|
+
const k = U("PopDrop"), O = ve("dragzoom");
|
|
4050
4052
|
return p(), m("div", {
|
|
4051
4053
|
class: "keyboard-container",
|
|
4052
4054
|
id: "keyboardarea",
|
|
@@ -4054,19 +4056,19 @@ const Ct = {
|
|
|
4054
4056
|
onPointerup: $,
|
|
4055
4057
|
onPointercancel: $
|
|
4056
4058
|
}, [
|
|
4057
|
-
u("div",
|
|
4059
|
+
u("div", Os, [
|
|
4058
4060
|
G((p(), m("div", Ms, [
|
|
4059
4061
|
u("div", Ts, [
|
|
4060
|
-
(p(!0), m(
|
|
4062
|
+
(p(!0), m(E, null, ee(r.value, (x) => (p(), m("div", {
|
|
4061
4063
|
class: J(s.bd.Type == x ? "active" : ""),
|
|
4062
4064
|
key: x,
|
|
4063
|
-
onPointerdown:
|
|
4065
|
+
onPointerdown: V((L) => s.bd.Type = x, ["stop"])
|
|
4064
4066
|
}, v(i(o).lang.sys?.keyboard?.menu?.[x] || x), 43, zs))), 128))
|
|
4065
4067
|
]),
|
|
4066
4068
|
u("div", Ls, [
|
|
4067
4069
|
u("div", null, v(i(o).lang.sys?.keyboard?.Drag || "Drag"), 1),
|
|
4068
4070
|
u("div", {
|
|
4069
|
-
onPointerdown:
|
|
4071
|
+
onPointerdown: _[0] || (_[0] = V(
|
|
4070
4072
|
//@ts-ignore
|
|
4071
4073
|
(...x) => i(l).Hide && i(l).Hide(...x),
|
|
4072
4074
|
["stop"]
|
|
@@ -4074,7 +4076,7 @@ const Ct = {
|
|
|
4074
4076
|
}, v(i(o).lang.sys?.keyboard?.Hide || "Hide"), 33)
|
|
4075
4077
|
])
|
|
4076
4078
|
])), [
|
|
4077
|
-
[
|
|
4079
|
+
[O, {
|
|
4078
4080
|
ujt: t.ujt,
|
|
4079
4081
|
pos: i(o).keyboard.areastyle,
|
|
4080
4082
|
domarea: "askeyboardarea",
|
|
@@ -4084,7 +4086,7 @@ const Ct = {
|
|
|
4084
4086
|
]),
|
|
4085
4087
|
i(o).keyboard.comps?.[s.bd.Type] ? (p(), m("div", {
|
|
4086
4088
|
key: 0,
|
|
4087
|
-
onPointerdown:
|
|
4089
|
+
onPointerdown: _[1] || (_[1] = (x) => h(s.bd.Type)),
|
|
4088
4090
|
class: "keyboard-comp"
|
|
4089
4091
|
}, [
|
|
4090
4092
|
(p(), X(pe(d(i(o).keyboard.comps[s.bd.Type])), {
|
|
@@ -4092,16 +4094,16 @@ const Ct = {
|
|
|
4092
4094
|
onChange: i(o).pop["popkeyboard" + s.bd.Type]?.fn
|
|
4093
4095
|
}, null, 40, ["ujt", "onChange"]))
|
|
4094
4096
|
], 32)) : (p(), m("div", Us, [
|
|
4095
|
-
(p(!0), m(
|
|
4097
|
+
(p(!0), m(E, null, ee(s.mapkeys[s.bd.Type], (x, L) => (p(), m("div", {
|
|
4096
4098
|
class: "keyboard-row",
|
|
4097
4099
|
key: "row" + L
|
|
4098
4100
|
}, [
|
|
4099
|
-
s.bd.Type === "Chinese" && L === 0 ? (p(), m(
|
|
4100
|
-
s.bd.zhs ? (p(), m("div",
|
|
4101
|
-
u("div",
|
|
4101
|
+
s.bd.Type === "Chinese" && L === 0 ? (p(), m(E, { key: 0 }, [
|
|
4102
|
+
s.bd.zhs ? (p(), m("div", Is, [
|
|
4103
|
+
u("div", Es, v(s.bd.zhs), 1),
|
|
4102
4104
|
s.bd?.zharr?.length ? (p(), m("div", Ds, [
|
|
4103
4105
|
u("div", Rs, [
|
|
4104
|
-
(p(!0), m(
|
|
4106
|
+
(p(!0), m(E, null, ee(s.bd.zharr, (w, j) => (p(), m("div", {
|
|
4105
4107
|
key: "zh" + j,
|
|
4106
4108
|
class: J(`askey zh-li${s.bd.zhindex == j ? " zh-cur" : ""}`),
|
|
4107
4109
|
"data-key": w
|
|
@@ -4110,26 +4112,26 @@ const Ct = {
|
|
|
4110
4112
|
])) : (p(), m("div", {
|
|
4111
4113
|
key: 1,
|
|
4112
4114
|
class: "zh-list-area",
|
|
4113
|
-
onPointerdown:
|
|
4115
|
+
onPointerdown: _[2] || (_[2] = V((w) => s.bd.zhs = "", ["stop"]))
|
|
4114
4116
|
}, [
|
|
4115
4117
|
u("div", Ws, v(i(o).lang.sys?.keyboard?.pynomatch), 1)
|
|
4116
4118
|
], 32))
|
|
4117
|
-
])) : (p(), m("div",
|
|
4118
|
-
u("div",
|
|
4119
|
+
])) : (p(), m("div", Hs, [
|
|
4120
|
+
u("div", Vs, v(i(o).lang.sys?.keyboard?.pyclick), 1)
|
|
4119
4121
|
]))
|
|
4120
|
-
], 64)) : (p(!0), m(
|
|
4122
|
+
], 64)) : (p(!0), m(E, { key: 1 }, ee(x, (w, j) => (p(), m("div", {
|
|
4121
4123
|
class: "keyboard-item",
|
|
4122
4124
|
key: "k" + w?.[0],
|
|
4123
4125
|
style: Z({ width: `${w[1]}%` })
|
|
4124
4126
|
}, [
|
|
4125
|
-
w[2] == 2 ? (p(), m(
|
|
4127
|
+
w[2] == 2 ? (p(), m(E, { key: 0 }, [], 64)) : w[3] ? (p(), m("button", {
|
|
4126
4128
|
key: 1,
|
|
4127
4129
|
class: J(`askey keyboard-key${w[2] ? " key-bg" : ""}${s.bd[w[3]] ? " active" : ""}`),
|
|
4128
4130
|
"data-key": w[0]
|
|
4129
4131
|
}, v(i(o).lang.sys?.keyboard?.[w[0]] || w[0]), 11, qs)) : w[0] === "Drag" ? G((p(), m("button", Bs, [
|
|
4130
4132
|
se(v(i(o).lang.sys?.keyboard?.[w[0]] || w[0]), 1)
|
|
4131
4133
|
])), [
|
|
4132
|
-
[
|
|
4134
|
+
[O, {
|
|
4133
4135
|
ujt: t.ujt,
|
|
4134
4136
|
pos: i(o).keyboard.areastyle,
|
|
4135
4137
|
domarea: "askeyboardarea",
|
|
@@ -4141,13 +4143,13 @@ const Ct = {
|
|
|
4141
4143
|
ujt: t.ujt,
|
|
4142
4144
|
id: "popkeyboard" + w[0]
|
|
4143
4145
|
}, {
|
|
4144
|
-
desarea:
|
|
4146
|
+
desarea: re(() => [
|
|
4145
4147
|
u("button", {
|
|
4146
4148
|
class: J(`askey keyboard-key${w[2] ? " key-bg" : ""}`),
|
|
4147
4149
|
"data-key": w[0]
|
|
4148
4150
|
}, v(i(o).lang.sys?.keyboard?.[w[0]] || (s.bd.Shift ? w[0].toUpperCase() : w[0])), 11, Ns)
|
|
4149
4151
|
]),
|
|
4150
|
-
poparea:
|
|
4152
|
+
poparea: re(() => [
|
|
4151
4153
|
i(o).keyboard?.comps?.[w[0]] ? (p(), m("div", {
|
|
4152
4154
|
key: 0,
|
|
4153
4155
|
class: J(
|
|
@@ -4271,22 +4273,22 @@ const Ct = {
|
|
|
4271
4273
|
l();
|
|
4272
4274
|
}), (c, f) => s.link ? (p(), m("div", tl, [
|
|
4273
4275
|
u("div", nl, [
|
|
4274
|
-
(p(!0), m(
|
|
4276
|
+
(p(!0), m(E, null, ee(s.link, (h, g) => (p(), m("div", {
|
|
4275
4277
|
class: "as-link-type",
|
|
4276
4278
|
key: "type" + g
|
|
4277
4279
|
}, [
|
|
4278
4280
|
u("div", ol, v(i(n).lang.sys.link.class[g]), 1),
|
|
4279
|
-
(p(!0), m(
|
|
4281
|
+
(p(!0), m(E, null, ee(h, (b, $) => (p(), m(E, {
|
|
4280
4282
|
key: "key" + $
|
|
4281
4283
|
}, [
|
|
4282
|
-
|
|
4284
|
+
b?.close ? F("", !0) : (p(), m("div", al, [
|
|
4283
4285
|
u("div", sl, v(i(n).lang.sys.link[$]) + ": ", 1),
|
|
4284
4286
|
u("div", ll, [
|
|
4285
4287
|
G(u("input", {
|
|
4286
4288
|
type: "text",
|
|
4287
|
-
"onUpdate:modelValue": (y) =>
|
|
4289
|
+
"onUpdate:modelValue": (y) => b.url = y
|
|
4288
4290
|
}, null, 8, il), [
|
|
4289
|
-
[ue,
|
|
4291
|
+
[ue, b.url]
|
|
4290
4292
|
])
|
|
4291
4293
|
]),
|
|
4292
4294
|
g == "ws" ? (p(), m("div", rl, v(i(a)?.[$]?.open ? "☑" : "☒"), 1)) : F("", !0)
|
|
@@ -4319,7 +4321,7 @@ const Ct = {
|
|
|
4319
4321
|
}, _l = ["onClick"], $l = { class: "result-title" }, kl = ["innerHTML"], wl = {
|
|
4320
4322
|
key: 1,
|
|
4321
4323
|
class: "no-results"
|
|
4322
|
-
}, jl = { class: "reader-container" }, xl = { class: "volume-list" }, Sl = { class: "sidebar-title" }, Pl = ["onClick"], Cl = { class: "volume-title" },
|
|
4324
|
+
}, jl = { class: "reader-container" }, xl = { class: "volume-list" }, Sl = { class: "sidebar-title" }, Pl = ["onClick"], Cl = { class: "volume-title" }, Al = { class: "chapter-list" }, Ol = ["onClick"], Ml = { class: "reader-content" }, Tl = { class: "content-container" }, zl = { class: "chapter-header" }, Ll = { class: "chapter-title" }, Ul = { class: "chapter-meta" }, Il = { key: 0 }, El = { class: "reader-controls" }, Dl = ["disabled"], Rl = { class: "font-controls" }, Fl = ["disabled"], Wl = { class: "font-size-display" }, Hl = ["disabled"], Vl = ["disabled"], ql = {
|
|
4323
4325
|
key: 0,
|
|
4324
4326
|
class: "mobile-fab"
|
|
4325
4327
|
}, Bl = /* @__PURE__ */ C({
|
|
@@ -4342,14 +4344,14 @@ const Ct = {
|
|
|
4342
4344
|
return N = $.value?.find(
|
|
4343
4345
|
(ae) => ae.sn === n.location.query?.id
|
|
4344
4346
|
), N?.sn || (N = a.value[0].cc[0].cc[0]), N;
|
|
4345
|
-
}),
|
|
4347
|
+
}), b = Y([]), $ = q(() => a.value[0].cc.flatMap((N) => N.cc)), y = q(() => $.value.findIndex(
|
|
4346
4348
|
(N) => N.sn === g.value?.sn
|
|
4347
|
-
)),
|
|
4349
|
+
)), _ = q(() => y.value > 0), k = q(() => y.value < $.value.length - 1), O = () => {
|
|
4348
4350
|
l.value = !l.value;
|
|
4349
4351
|
}, x = () => {
|
|
4350
|
-
r.value = !r.value, r.value || (c.value = "",
|
|
4352
|
+
r.value = !r.value, r.value || (c.value = "", b.value = []);
|
|
4351
4353
|
}, L = () => {
|
|
4352
|
-
r.value = !1, c.value = "",
|
|
4354
|
+
r.value = !1, c.value = "", b.value = [];
|
|
4353
4355
|
}, w = (N) => {
|
|
4354
4356
|
const ae = h.value.indexOf(N);
|
|
4355
4357
|
ae > -1 ? h.value.splice(ae, 1) : h.value.push(N);
|
|
@@ -4359,7 +4361,7 @@ const Ct = {
|
|
|
4359
4361
|
y.value > 0 && o.setquery({
|
|
4360
4362
|
id: $.value[y.value - 1].sn
|
|
4361
4363
|
});
|
|
4362
|
-
},
|
|
4364
|
+
}, A = () => {
|
|
4363
4365
|
y.value < $.value.length - 1 && o.setquery({
|
|
4364
4366
|
id: $.value[y.value + 1].sn
|
|
4365
4367
|
});
|
|
@@ -4371,10 +4373,10 @@ const Ct = {
|
|
|
4371
4373
|
o.As.debounce(() => {
|
|
4372
4374
|
const N = c.value.trim();
|
|
4373
4375
|
if (!N) {
|
|
4374
|
-
|
|
4376
|
+
b.value = [];
|
|
4375
4377
|
return;
|
|
4376
4378
|
}
|
|
4377
|
-
|
|
4379
|
+
b.value = $.value?.filter((ae) => ae.co.includes(N)).slice(0, 100).map((ae) => {
|
|
4378
4380
|
const ne = ae.co.split(N);
|
|
4379
4381
|
return {
|
|
4380
4382
|
sn: ae.sn,
|
|
@@ -4385,23 +4387,23 @@ const Ct = {
|
|
|
4385
4387
|
};
|
|
4386
4388
|
});
|
|
4387
4389
|
}, s.tm);
|
|
4388
|
-
},
|
|
4390
|
+
}, I = (N) => {
|
|
4389
4391
|
N?.sn && (o.setquery({
|
|
4390
4392
|
id: N.sn
|
|
4391
|
-
}), r.value = !1, c.value = "",
|
|
4392
|
-
},
|
|
4393
|
+
}), r.value = !1, c.value = "", b.value = []);
|
|
4394
|
+
}, H = () => {
|
|
4393
4395
|
d.value = window.innerWidth <= 768;
|
|
4394
4396
|
};
|
|
4395
4397
|
return he(() => {
|
|
4396
|
-
|
|
4398
|
+
H(), window.addEventListener("resize", H), a.value[0].cc.length > 0 && h.value.push(a.value[0].cc[0].sn);
|
|
4397
4399
|
}), je(() => {
|
|
4398
|
-
window.removeEventListener("resize",
|
|
4400
|
+
window.removeEventListener("resize", H);
|
|
4399
4401
|
}), (N, ae) => (p(), m("div", fl, [
|
|
4400
4402
|
u("header", ml, [
|
|
4401
4403
|
u("div", hl, [
|
|
4402
4404
|
u("button", {
|
|
4403
4405
|
class: "menu-toggle",
|
|
4404
|
-
onClick:
|
|
4406
|
+
onClick: O
|
|
4405
4407
|
}, [...ae[1] || (ae[1] = [
|
|
4406
4408
|
u("span", { class: "hamburger-icon" }, null, -1)
|
|
4407
4409
|
])]),
|
|
@@ -4455,11 +4457,11 @@ const Ct = {
|
|
|
4455
4457
|
onClick: L
|
|
4456
4458
|
}, "×")
|
|
4457
4459
|
]),
|
|
4458
|
-
|
|
4459
|
-
(p(!0), m(
|
|
4460
|
+
b.value.length > 0 ? (p(), m("div", bl, [
|
|
4461
|
+
(p(!0), m(E, null, ee(b.value, (ne, de) => (p(), m("div", {
|
|
4460
4462
|
key: de,
|
|
4461
4463
|
class: "search-result-item",
|
|
4462
|
-
onClick: (Me) =>
|
|
4464
|
+
onClick: (Me) => I(ne)
|
|
4463
4465
|
}, [
|
|
4464
4466
|
u("div", $l, v(ne.li), 1),
|
|
4465
4467
|
u("div", {
|
|
@@ -4467,7 +4469,7 @@ const Ct = {
|
|
|
4467
4469
|
innerHTML: ne.preview
|
|
4468
4470
|
}, null, 8, kl)
|
|
4469
4471
|
], 8, _l))), 128))
|
|
4470
|
-
])) : c.value &&
|
|
4472
|
+
])) : c.value && b.value.length === 0 ? (p(), m("div", wl, " 未找到相关内容 ")) : F("", !0)
|
|
4471
4473
|
])
|
|
4472
4474
|
], 2),
|
|
4473
4475
|
u("div", jl, [
|
|
@@ -4476,7 +4478,7 @@ const Ct = {
|
|
|
4476
4478
|
}, [
|
|
4477
4479
|
u("div", xl, [
|
|
4478
4480
|
u("h2", Sl, v(i(a)[0].ch), 1),
|
|
4479
|
-
(p(!0), m(
|
|
4481
|
+
(p(!0), m(E, null, ee(i(a)[0].cc, (ne) => (p(), m("div", {
|
|
4480
4482
|
key: ne.sn,
|
|
4481
4483
|
class: "volume-item"
|
|
4482
4484
|
}, [
|
|
@@ -4493,16 +4495,16 @@ const Ct = {
|
|
|
4493
4495
|
}])
|
|
4494
4496
|
}, " ▼ ", 2)
|
|
4495
4497
|
], 8, Pl),
|
|
4496
|
-
G(u("ul",
|
|
4497
|
-
(p(!0), m(
|
|
4498
|
+
G(u("ul", Al, [
|
|
4499
|
+
(p(!0), m(E, null, ee(ne.cc, (de) => (p(), m("li", {
|
|
4498
4500
|
key: de.sn,
|
|
4499
4501
|
class: J(["chapter-item", {
|
|
4500
4502
|
active: g.value?.sn === de.sn
|
|
4501
4503
|
}]),
|
|
4502
4504
|
onClick: (Me) => j(de)
|
|
4503
|
-
}, v(de.li), 11,
|
|
4505
|
+
}, v(de.li), 11, Ol))), 128))
|
|
4504
4506
|
], 512), [
|
|
4505
|
-
[
|
|
4507
|
+
[Ie, h.value.includes(ne.sn)]
|
|
4506
4508
|
])
|
|
4507
4509
|
]))), 128))
|
|
4508
4510
|
])
|
|
@@ -4513,8 +4515,8 @@ const Ct = {
|
|
|
4513
4515
|
u("h2", Ll, v(g.value.li), 1),
|
|
4514
4516
|
u("div", Ul, [
|
|
4515
4517
|
u("span", null, " 第" + v(y.value + 1) + "章 ", 1),
|
|
4516
|
-
(p(!0), m(
|
|
4517
|
-
g.value[ne] && !["co", "li", "sn", "ty"].includes(ne) ? (p(), m("span",
|
|
4518
|
+
(p(!0), m(E, null, ee(Object.keys(g.value), (ne) => (p(), m(E, null, [
|
|
4519
|
+
g.value[ne] && !["co", "li", "sn", "ty"].includes(ne) ? (p(), m("span", Il, v(g.value[ne]), 1)) : F("", !0)
|
|
4518
4520
|
], 64))), 256))
|
|
4519
4521
|
])
|
|
4520
4522
|
]),
|
|
@@ -4522,11 +4524,11 @@ const Ct = {
|
|
|
4522
4524
|
class: "chapter-content",
|
|
4523
4525
|
style: Z({ fontSize: f.value + "px" })
|
|
4524
4526
|
}, v(g.value.co), 5),
|
|
4525
|
-
u("div",
|
|
4527
|
+
u("div", El, [
|
|
4526
4528
|
u("button", {
|
|
4527
4529
|
class: "control-btn prev-next-btn",
|
|
4528
4530
|
onClick: S,
|
|
4529
|
-
disabled: !
|
|
4531
|
+
disabled: !_.value
|
|
4530
4532
|
}, " 上一章 ", 8, Dl),
|
|
4531
4533
|
u("div", Rl, [
|
|
4532
4534
|
u("button", {
|
|
@@ -4539,13 +4541,13 @@ const Ct = {
|
|
|
4539
4541
|
class: "font-btn",
|
|
4540
4542
|
onClick: M,
|
|
4541
4543
|
disabled: f.value >= 24
|
|
4542
|
-
}, " A+ ", 8,
|
|
4544
|
+
}, " A+ ", 8, Hl)
|
|
4543
4545
|
]),
|
|
4544
4546
|
u("button", {
|
|
4545
4547
|
class: "control-btn prev-next-btn",
|
|
4546
|
-
onClick:
|
|
4548
|
+
onClick: A,
|
|
4547
4549
|
disabled: !k.value
|
|
4548
|
-
}, " 下一章 ", 8,
|
|
4550
|
+
}, " 下一章 ", 8, Vl)
|
|
4549
4551
|
])
|
|
4550
4552
|
])
|
|
4551
4553
|
])
|
|
@@ -4553,7 +4555,7 @@ const Ct = {
|
|
|
4553
4555
|
d.value ? (p(), m("div", ql, [
|
|
4554
4556
|
u("button", {
|
|
4555
4557
|
class: "fab-btn",
|
|
4556
|
-
onClick:
|
|
4558
|
+
onClick: O
|
|
4557
4559
|
}, [...ae[3] || (ae[3] = [
|
|
4558
4560
|
u("svg", {
|
|
4559
4561
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4863,7 +4865,7 @@ const Ct = {
|
|
|
4863
4865
|
}, Symbol.toStringTag, { value: "Module" })), Si = { class: "container" }, Pi = {
|
|
4864
4866
|
key: 0,
|
|
4865
4867
|
class: "preview-wrapper"
|
|
4866
|
-
}, Ci = ["src"],
|
|
4868
|
+
}, Ci = ["src"], Ai = { class: "controls" }, Oi = {
|
|
4867
4869
|
key: 0,
|
|
4868
4870
|
class: "result-preview"
|
|
4869
4871
|
}, Mi = ["src"], Ti = /* @__PURE__ */ C({
|
|
@@ -4878,8 +4880,8 @@ const Ct = {
|
|
|
4878
4880
|
get() {
|
|
4879
4881
|
return n.modelValue;
|
|
4880
4882
|
},
|
|
4881
|
-
set(
|
|
4882
|
-
s("update:modelValue",
|
|
4883
|
+
set(A) {
|
|
4884
|
+
s("update:modelValue", A);
|
|
4883
4885
|
}
|
|
4884
4886
|
}), r = Y(""), d = Y(""), c = Y(null), f = Y(null), h = Y({
|
|
4885
4887
|
x: 0,
|
|
@@ -4897,36 +4899,36 @@ const Ct = {
|
|
|
4897
4899
|
originalWidth: 0,
|
|
4898
4900
|
originalHeight: 0,
|
|
4899
4901
|
direction: null
|
|
4900
|
-
}),
|
|
4902
|
+
}), b = q(() => ({
|
|
4901
4903
|
transform: `translate(${h.value.x}px, ${h.value.y}px)`,
|
|
4902
4904
|
width: `${h.value.width}px`,
|
|
4903
4905
|
height: `${h.value.height}px`
|
|
4904
4906
|
})), $ = q(
|
|
4905
4907
|
() => h.value.width > 0 && h.value.height > 0
|
|
4906
|
-
), y = (
|
|
4907
|
-
const M =
|
|
4908
|
+
), y = (A) => {
|
|
4909
|
+
const M = A.target.files[0];
|
|
4908
4910
|
if (!M) return;
|
|
4909
4911
|
const z = new FileReader();
|
|
4910
4912
|
z.onload = (P) => {
|
|
4911
4913
|
r.value = P.target.result, d.value = "";
|
|
4912
4914
|
}, z.readAsDataURL(M);
|
|
4913
|
-
},
|
|
4914
|
-
const
|
|
4915
|
-
if (!
|
|
4915
|
+
}, _ = () => {
|
|
4916
|
+
const A = c.value, M = f.value;
|
|
4917
|
+
if (!A || !M)
|
|
4916
4918
|
return;
|
|
4917
|
-
const z = Math.min(M.clientWidth,
|
|
4919
|
+
const z = Math.min(M.clientWidth, A.naturalWidth), P = Math.min(M.clientHeight, A.naturalHeight), I = Math.min(z * 0.8, A.naturalWidth), H = Math.min(P * 0.8, A.naturalHeight);
|
|
4918
4920
|
h.value = {
|
|
4919
|
-
x: (z -
|
|
4920
|
-
y: (P -
|
|
4921
|
-
width:
|
|
4922
|
-
height:
|
|
4921
|
+
x: (z - I) / 2,
|
|
4922
|
+
y: (P - H) / 2,
|
|
4923
|
+
width: I,
|
|
4924
|
+
height: H,
|
|
4923
4925
|
maxWidth: z,
|
|
4924
4926
|
maxHeight: P
|
|
4925
4927
|
};
|
|
4926
|
-
}, k = (
|
|
4928
|
+
}, k = (A, M = null) => {
|
|
4927
4929
|
const z = window.event || z, P = z.touches ? z.touches[0] : z;
|
|
4928
4930
|
g.value = {
|
|
4929
|
-
type:
|
|
4931
|
+
type: A,
|
|
4930
4932
|
startX: P.clientX,
|
|
4931
4933
|
startY: P.clientY,
|
|
4932
4934
|
originalX: h.value.x,
|
|
@@ -4935,16 +4937,16 @@ const Ct = {
|
|
|
4935
4937
|
originalHeight: h.value.height,
|
|
4936
4938
|
direction: M
|
|
4937
4939
|
};
|
|
4938
|
-
const
|
|
4940
|
+
const I = (H) => {
|
|
4939
4941
|
requestAnimationFrame(() => {
|
|
4940
|
-
|
|
4942
|
+
A === "move" ? O(H) : x(H);
|
|
4941
4943
|
});
|
|
4942
4944
|
};
|
|
4943
|
-
window.addEventListener("mousemove",
|
|
4944
|
-
},
|
|
4945
|
-
const M = window.event ||
|
|
4945
|
+
window.addEventListener("mousemove", I), window.addEventListener("touchmove", I), window.addEventListener("mouseup", L), window.addEventListener("touchend", L);
|
|
4946
|
+
}, O = (A) => {
|
|
4947
|
+
const M = window.event || A, z = M.touches ? M.touches[0] : M;
|
|
4946
4948
|
if (g.value.type !== "move") return;
|
|
4947
|
-
const P = z.clientX - g.value.startX,
|
|
4949
|
+
const P = z.clientX - g.value.startX, I = z.clientY - g.value.startY, H = Math.max(
|
|
4948
4950
|
0,
|
|
4949
4951
|
Math.min(
|
|
4950
4952
|
g.value.originalX + P,
|
|
@@ -4953,17 +4955,17 @@ const Ct = {
|
|
|
4953
4955
|
), N = Math.max(
|
|
4954
4956
|
0,
|
|
4955
4957
|
Math.min(
|
|
4956
|
-
g.value.originalY +
|
|
4958
|
+
g.value.originalY + I,
|
|
4957
4959
|
h.value.maxHeight - h.value.height
|
|
4958
4960
|
)
|
|
4959
4961
|
);
|
|
4960
|
-
Object.assign(h.value, { x:
|
|
4961
|
-
}, x = (
|
|
4962
|
-
const M = window.event ||
|
|
4962
|
+
Object.assign(h.value, { x: H, y: N });
|
|
4963
|
+
}, x = (A) => {
|
|
4964
|
+
const M = window.event || A, z = M.touches ? M.touches[0] : M;
|
|
4963
4965
|
if (g.value.type !== "resize") return;
|
|
4964
|
-
const P = z.clientX - g.value.startX,
|
|
4966
|
+
const P = z.clientX - g.value.startX, I = z.clientY - g.value.startY, H = g.value.direction;
|
|
4965
4967
|
let N = g.value.originalWidth, ae = g.value.originalHeight, ne = g.value.originalX, de = g.value.originalY;
|
|
4966
|
-
switch (
|
|
4968
|
+
switch (H) {
|
|
4967
4969
|
case "tr":
|
|
4968
4970
|
N = Math.max(
|
|
4969
4971
|
100,
|
|
@@ -4971,16 +4973,16 @@ const Ct = {
|
|
|
4971
4973
|
g.value.originalWidth + P,
|
|
4972
4974
|
h.value.maxWidth - ne
|
|
4973
4975
|
)
|
|
4974
|
-
), ae = Math.max(100, g.value.originalHeight -
|
|
4976
|
+
), ae = Math.max(100, g.value.originalHeight - I), de = Math.max(0, g.value.originalY + I);
|
|
4975
4977
|
break;
|
|
4976
4978
|
case "tl":
|
|
4977
|
-
N = Math.max(100, g.value.originalWidth - P), ae = Math.max(100, g.value.originalHeight -
|
|
4979
|
+
N = Math.max(100, g.value.originalWidth - P), ae = Math.max(100, g.value.originalHeight - I), ne = Math.max(0, g.value.originalX + P), de = Math.max(0, g.value.originalY + I);
|
|
4978
4980
|
break;
|
|
4979
4981
|
case "br":
|
|
4980
|
-
N = Math.max(100, g.value.originalWidth + P), ae = Math.max(100, g.value.originalHeight +
|
|
4982
|
+
N = Math.max(100, g.value.originalWidth + P), ae = Math.max(100, g.value.originalHeight + I);
|
|
4981
4983
|
break;
|
|
4982
4984
|
case "bl":
|
|
4983
|
-
N = Math.max(100, g.value.originalWidth - P), ae = Math.max(100, g.value.originalHeight +
|
|
4985
|
+
N = Math.max(100, g.value.originalWidth - P), ae = Math.max(100, g.value.originalHeight + I), ne = Math.max(0, g.value.originalX + P);
|
|
4984
4986
|
break;
|
|
4985
4987
|
}
|
|
4986
4988
|
N = Math.min(N, h.value.maxWidth - ne), ae = Math.min(ae, h.value.maxHeight - de), Object.assign(h.value, {
|
|
@@ -4990,39 +4992,39 @@ const Ct = {
|
|
|
4990
4992
|
height: ae
|
|
4991
4993
|
});
|
|
4992
4994
|
}, L = () => {
|
|
4993
|
-
g.value.type = null, window.removeEventListener("mousemove",
|
|
4995
|
+
g.value.type = null, window.removeEventListener("mousemove", O), window.removeEventListener("touchmove", O), window.removeEventListener("mousemove", x), window.removeEventListener("touchmove", x), window.removeEventListener("mouseup", L), window.removeEventListener("touchend", L);
|
|
4994
4996
|
}, w = () => {
|
|
4995
|
-
const
|
|
4997
|
+
const A = c.value, M = A.naturalWidth / A.width, z = A.naturalHeight / A.height, P = Math.min(
|
|
4996
4998
|
h.value.width * M,
|
|
4997
|
-
|
|
4998
|
-
),
|
|
4999
|
+
A.naturalWidth
|
|
5000
|
+
), I = Math.min(
|
|
4999
5001
|
h.value.height * z,
|
|
5000
|
-
|
|
5001
|
-
),
|
|
5002
|
-
|
|
5003
|
-
|
|
5002
|
+
A.naturalHeight
|
|
5003
|
+
), H = document.createElement("canvas");
|
|
5004
|
+
H.width = P, H.height = I, H.getContext("2d").drawImage(
|
|
5005
|
+
A,
|
|
5004
5006
|
h.value.x * M,
|
|
5005
5007
|
h.value.y * z,
|
|
5006
5008
|
P,
|
|
5007
|
-
|
|
5009
|
+
I,
|
|
5008
5010
|
0,
|
|
5009
5011
|
0,
|
|
5010
5012
|
P,
|
|
5011
|
-
|
|
5012
|
-
), d.value =
|
|
5013
|
+
I
|
|
5014
|
+
), d.value = H.toDataURL("image/png", 0.9);
|
|
5013
5015
|
}, j = () => {
|
|
5014
|
-
const
|
|
5015
|
-
|
|
5016
|
+
const A = document.createElement("a");
|
|
5017
|
+
A.download = "cropped-image.png", A.href = d.value, A.click();
|
|
5016
5018
|
}, S = () => {
|
|
5017
|
-
const
|
|
5019
|
+
const A = d.value.split(",")[1], M = o.As.Uuid();
|
|
5018
5020
|
o.api.webserver.apiPost(
|
|
5019
5021
|
"/api/asaifile/manage/upbase64/?path=" + a.sys.path.updir + M + ".png",
|
|
5020
|
-
|
|
5022
|
+
A
|
|
5021
5023
|
).then((z) => {
|
|
5022
5024
|
l.value = z.data;
|
|
5023
5025
|
});
|
|
5024
5026
|
};
|
|
5025
|
-
return (
|
|
5027
|
+
return (A, M) => (p(), m("div", Si, [
|
|
5026
5028
|
u("input", {
|
|
5027
5029
|
type: "file",
|
|
5028
5030
|
accept: "image/*",
|
|
@@ -5038,63 +5040,63 @@ const Ct = {
|
|
|
5038
5040
|
ref_key: "previewImage",
|
|
5039
5041
|
ref: c,
|
|
5040
5042
|
src: r.value,
|
|
5041
|
-
onLoad:
|
|
5043
|
+
onLoad: _
|
|
5042
5044
|
}, null, 40, Ci),
|
|
5043
5045
|
G(u("div", {
|
|
5044
5046
|
class: "crop-box",
|
|
5045
|
-
style: Z(
|
|
5046
|
-
onPointerdown: M[8] || (M[8] =
|
|
5047
|
-
onTouchstart: M[9] || (M[9] =
|
|
5047
|
+
style: Z(b.value),
|
|
5048
|
+
onPointerdown: M[8] || (M[8] = V((z) => k("move"), ["prevent"])),
|
|
5049
|
+
onTouchstart: M[9] || (M[9] = V(() => {
|
|
5048
5050
|
}, ["prevent"]))
|
|
5049
5051
|
}, [
|
|
5050
5052
|
u("div", {
|
|
5051
5053
|
class: "crop-handle top-left",
|
|
5052
|
-
onPointerdown: M[0] || (M[0] =
|
|
5053
|
-
onTouchstart: M[1] || (M[1] =
|
|
5054
|
+
onPointerdown: M[0] || (M[0] = V((z) => k("resize", "tl"), ["stop"])),
|
|
5055
|
+
onTouchstart: M[1] || (M[1] = V(() => {
|
|
5054
5056
|
}, ["stop"]))
|
|
5055
5057
|
}, null, 32),
|
|
5056
5058
|
u("div", {
|
|
5057
5059
|
class: "crop-handle top-right",
|
|
5058
|
-
onPointerdown: M[2] || (M[2] =
|
|
5059
|
-
onTouchstart: M[3] || (M[3] =
|
|
5060
|
+
onPointerdown: M[2] || (M[2] = V((z) => k("resize", "tr"), ["stop"])),
|
|
5061
|
+
onTouchstart: M[3] || (M[3] = V(() => {
|
|
5060
5062
|
}, ["stop"]))
|
|
5061
5063
|
}, null, 32),
|
|
5062
5064
|
u("div", {
|
|
5063
5065
|
class: "crop-handle bottom-left",
|
|
5064
|
-
onPointerdown: M[4] || (M[4] =
|
|
5065
|
-
onTouchstart: M[5] || (M[5] =
|
|
5066
|
+
onPointerdown: M[4] || (M[4] = V((z) => k("resize", "bl"), ["stop"])),
|
|
5067
|
+
onTouchstart: M[5] || (M[5] = V(() => {
|
|
5066
5068
|
}, ["stop"]))
|
|
5067
5069
|
}, null, 32),
|
|
5068
5070
|
u("div", {
|
|
5069
5071
|
class: "crop-handle bottom-right",
|
|
5070
|
-
onPointerdown: M[6] || (M[6] =
|
|
5071
|
-
onTouchstart: M[7] || (M[7] =
|
|
5072
|
+
onPointerdown: M[6] || (M[6] = V((z) => k("resize", "br"), ["stop"])),
|
|
5073
|
+
onTouchstart: M[7] || (M[7] = V(() => {
|
|
5072
5074
|
}, ["stop"]))
|
|
5073
5075
|
}, null, 32)
|
|
5074
5076
|
], 36), [
|
|
5075
|
-
[
|
|
5077
|
+
[Ie, $.value]
|
|
5076
5078
|
])
|
|
5077
5079
|
], 512),
|
|
5078
|
-
u("div",
|
|
5080
|
+
u("div", Ai, [
|
|
5079
5081
|
u("button", {
|
|
5080
5082
|
onPointerdown: w,
|
|
5081
|
-
onTouchstart: M[10] || (M[10] =
|
|
5083
|
+
onTouchstart: M[10] || (M[10] = V(() => {
|
|
5082
5084
|
}, ["stop"]))
|
|
5083
5085
|
}, v(i(o).lg("asai.confirm")), 33),
|
|
5084
5086
|
d.value ? (p(), m("button", {
|
|
5085
5087
|
key: 0,
|
|
5086
5088
|
onPointerdown: j,
|
|
5087
|
-
onTouchstart: M[11] || (M[11] =
|
|
5089
|
+
onTouchstart: M[11] || (M[11] = V(() => {
|
|
5088
5090
|
}, ["stop"]))
|
|
5089
5091
|
}, v(i(o).lg("asai.download")), 33)) : F("", !0),
|
|
5090
5092
|
d.value ? (p(), m("button", {
|
|
5091
5093
|
key: 1,
|
|
5092
5094
|
onPointerdown: S,
|
|
5093
|
-
onTouchstart: M[12] || (M[12] =
|
|
5095
|
+
onTouchstart: M[12] || (M[12] = V(() => {
|
|
5094
5096
|
}, ["stop"]))
|
|
5095
5097
|
}, v(i(o).lg("asai.upload")), 33)) : F("", !0)
|
|
5096
5098
|
]),
|
|
5097
|
-
d.value ? (p(), m("div",
|
|
5099
|
+
d.value ? (p(), m("div", Oi, [
|
|
5098
5100
|
u("img", { src: d.value }, null, 8, Mi)
|
|
5099
5101
|
])) : F("", !0)
|
|
5100
5102
|
])) : F("", !0)
|
|
@@ -5103,10 +5105,10 @@ const Ct = {
|
|
|
5103
5105
|
}), zi = /* @__PURE__ */ B(Ti, [["__scopeId", "data-v-4bd56bcb"]]), Li = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5104
5106
|
__proto__: null,
|
|
5105
5107
|
default: zi
|
|
5106
|
-
}, Symbol.toStringTag, { value: "Module" })), Ui = { class: "as-json-area as-form-line" },
|
|
5108
|
+
}, Symbol.toStringTag, { value: "Module" })), Ui = { class: "as-json-area as-form-line" }, Ii = {
|
|
5107
5109
|
key: 0,
|
|
5108
5110
|
class: "as-json-tit"
|
|
5109
|
-
},
|
|
5111
|
+
}, Ei = ["value"], Di = { class: "as-json-main" }, Ri = {
|
|
5110
5112
|
key: 1,
|
|
5111
5113
|
class: "as-json-btns"
|
|
5112
5114
|
}, Fi = /* @__PURE__ */ C({
|
|
@@ -5140,7 +5142,7 @@ const Ct = {
|
|
|
5140
5142
|
return (l, r) => {
|
|
5141
5143
|
const d = U("AsaiForm");
|
|
5142
5144
|
return p(), m("div", Ui, [
|
|
5143
|
-
t.asaidata.btn ? (p(), m("div",
|
|
5145
|
+
t.asaidata.btn ? (p(), m("div", Ii, [
|
|
5144
5146
|
u("button", {
|
|
5145
5147
|
onPointerdown: r[0] || (r[0] = (c) => o())
|
|
5146
5148
|
}, v(i(n).lg("asai.read")), 33),
|
|
@@ -5154,9 +5156,9 @@ const Ct = {
|
|
|
5154
5156
|
key: 0,
|
|
5155
5157
|
"onUpdate:modelValue": r[2] || (r[2] = (c) => t.asaidata.path = c)
|
|
5156
5158
|
}, [
|
|
5157
|
-
(p(!0), m(
|
|
5159
|
+
(p(!0), m(E, null, ee(t.asaidata.list, (c) => (p(), m("option", {
|
|
5158
5160
|
value: c.value
|
|
5159
|
-
}, v(c.label), 9,
|
|
5161
|
+
}, v(c.label), 9, Ei))), 256))
|
|
5160
5162
|
], 512)), [
|
|
5161
5163
|
[we, t.asaidata.path]
|
|
5162
5164
|
]) : F("", !0)
|
|
@@ -5168,7 +5170,7 @@ const Ct = {
|
|
|
5168
5170
|
"onUpdate:modelValue": r[3] || (r[3] = (c) => t.asaidata.data = c)
|
|
5169
5171
|
}, null, 512)), [
|
|
5170
5172
|
[ue, t.asaidata.data]
|
|
5171
|
-
]) : (p(), m(
|
|
5173
|
+
]) : (p(), m(E, { key: 1 }, [
|
|
5172
5174
|
se(v(t.asaidata.eq > 1 ? Array.isArray(t.asaidata) ? "[" : "{" : "") + " ", 1),
|
|
5173
5175
|
W(d, {
|
|
5174
5176
|
ujt: t.ujt,
|
|
@@ -5188,10 +5190,10 @@ const Ct = {
|
|
|
5188
5190
|
]);
|
|
5189
5191
|
};
|
|
5190
5192
|
}
|
|
5191
|
-
}), Wi = /* @__PURE__ */ B(Fi, [["__scopeId", "data-v-2a3e294c"]]),
|
|
5193
|
+
}), Wi = /* @__PURE__ */ B(Fi, [["__scopeId", "data-v-2a3e294c"]]), Hi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5192
5194
|
__proto__: null,
|
|
5193
5195
|
default: Wi
|
|
5194
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
5196
|
+
}, Symbol.toStringTag, { value: "Module" })), Vi = {
|
|
5195
5197
|
key: 0,
|
|
5196
5198
|
class: "as-ed-dir"
|
|
5197
5199
|
}, qi = {
|
|
@@ -5239,8 +5241,8 @@ const Ct = {
|
|
|
5239
5241
|
}
|
|
5240
5242
|
e.cval.setapikeys(e.cval.apikeys);
|
|
5241
5243
|
}
|
|
5242
|
-
return (l, r) => o.value === "object" ? (p(), m("div",
|
|
5243
|
-
t.ckey !== "publishlist" ? (p(), m(
|
|
5244
|
+
return (l, r) => o.value === "object" ? (p(), m("div", Vi, [
|
|
5245
|
+
t.ckey !== "publishlist" ? (p(), m(E, { key: 0 }, [
|
|
5244
5246
|
n[t.ckey] ? (p(), m("div", {
|
|
5245
5247
|
key: 1,
|
|
5246
5248
|
class: "as-ed-mg",
|
|
@@ -5251,7 +5253,7 @@ const Ct = {
|
|
|
5251
5253
|
onPointerdown: r[0] || (r[0] = (d) => a(t.ckey))
|
|
5252
5254
|
}, " + " + v(t.ckey), 33)),
|
|
5253
5255
|
n[t.ckey] ? (p(), m("div", qi, [
|
|
5254
|
-
(p(!0), m(
|
|
5256
|
+
(p(!0), m(E, null, ee(Object.keys(t.cdata[t.ckey]), (d) => (p(), m("div", {
|
|
5255
5257
|
class: "as-ed-for-item",
|
|
5256
5258
|
key: d
|
|
5257
5259
|
}, [
|
|
@@ -5264,7 +5266,7 @@ const Ct = {
|
|
|
5264
5266
|
])
|
|
5265
5267
|
]))), 128))
|
|
5266
5268
|
])) : F("", !0)
|
|
5267
|
-
], 64)) : (p(!0), m(
|
|
5269
|
+
], 64)) : (p(!0), m(E, { key: 1 }, ee(Object.keys(t.cdata[t.ckey]), (d) => (p(), m("div", {
|
|
5268
5270
|
class: "as-ed-for-item",
|
|
5269
5271
|
key: d
|
|
5270
5272
|
}, [
|
|
@@ -5280,7 +5282,7 @@ const Ct = {
|
|
|
5280
5282
|
onPointerdown: a
|
|
5281
5283
|
}, "+ " + v(t.ckey), 33),
|
|
5282
5284
|
u("div", Yi, [
|
|
5283
|
-
(p(!0), m(
|
|
5285
|
+
(p(!0), m(E, null, ee(t.cdata[t.ckey], (d, c) => (p(), m("div", {
|
|
5284
5286
|
class: "as-ed-for-item",
|
|
5285
5287
|
key: c
|
|
5286
5288
|
}, [
|
|
@@ -5329,7 +5331,7 @@ const Ct = {
|
|
|
5329
5331
|
},
|
|
5330
5332
|
...e.menus || []
|
|
5331
5333
|
]);
|
|
5332
|
-
return (r, d) => !i(o).sys || i(o).sys.devlevel > 1 ? (p(), X(
|
|
5334
|
+
return (r, d) => !i(o).sys || i(o).sys.devlevel > 1 ? (p(), X(Ae, {
|
|
5333
5335
|
key: 0,
|
|
5334
5336
|
to: "#teleportpopbox"
|
|
5335
5337
|
}, [
|
|
@@ -5343,7 +5345,7 @@ const Ct = {
|
|
|
5343
5345
|
u("ul", {
|
|
5344
5346
|
class: J(["as-floating-menus", { open: a.value }])
|
|
5345
5347
|
}, [
|
|
5346
|
-
(p(!0), m(
|
|
5348
|
+
(p(!0), m(E, null, ee(l.value, (c, f) => (p(), m("li", {
|
|
5347
5349
|
key: "menu" + f,
|
|
5348
5350
|
class: J(`${c.type === "module" ? "module " : ""}${c.value && i(o).location.hash.includes(c.value) ? "active" : ""}`),
|
|
5349
5351
|
onPointerup: (h) => c.value ? i(n).sethash(c.value) : c?.fn?.()
|
|
@@ -5364,7 +5366,7 @@ const Ct = {
|
|
|
5364
5366
|
setup(t) {
|
|
5365
5367
|
const e = t, { $fn: n } = e.ujt;
|
|
5366
5368
|
return (o, a) => (p(), m("div", sr, [
|
|
5367
|
-
(p(!0), m(
|
|
5369
|
+
(p(!0), m(E, null, ee(t.menus, (s) => (p(), m("div", {
|
|
5368
5370
|
class: "app-menu",
|
|
5369
5371
|
onPointerdown: a[0] || (a[0] = (l) => i(n).sethash("item.value"))
|
|
5370
5372
|
}, v(s.label), 33))), 256))
|
|
@@ -5394,7 +5396,7 @@ const Ct = {
|
|
|
5394
5396
|
return ke(() => Promise.resolve().then(() => Ue));
|
|
5395
5397
|
}
|
|
5396
5398
|
};
|
|
5397
|
-
const l =
|
|
5399
|
+
const l = Oe(
|
|
5398
5400
|
() => a.location.comps[e.ty],
|
|
5399
5401
|
(r, d) => {
|
|
5400
5402
|
r && r !== d && (s.comp = o.getcomp(r));
|
|
@@ -5428,7 +5430,7 @@ const Ct = {
|
|
|
5428
5430
|
const e = t, n = Y(null), o = Y(0), a = Y(0), s = Y(0), l = Y(
|
|
5429
5431
|
new Array(e.items.length).fill(Math.round(e.itemHeight))
|
|
5430
5432
|
), r = /* @__PURE__ */ new Map(), d = q(() => Math.round(
|
|
5431
|
-
e.items.reduce(($, y,
|
|
5433
|
+
e.items.reduce(($, y, _) => $ + c(_), 0)
|
|
5432
5434
|
)), c = ($) => $ < 0 || $ >= e.items.length ? 0 : Math.round(l.value[$] ?? e.itemHeight), f = () => {
|
|
5433
5435
|
if (!n.value)
|
|
5434
5436
|
return {
|
|
@@ -5436,22 +5438,22 @@ const Ct = {
|
|
|
5436
5438
|
end: Math.min(e.items.length, e.buffer * 3)
|
|
5437
5439
|
};
|
|
5438
5440
|
const $ = o.value, y = n.value.clientHeight;
|
|
5439
|
-
let
|
|
5440
|
-
for (;
|
|
5441
|
-
const w =
|
|
5442
|
-
g(w) <= $ ?
|
|
5441
|
+
let _ = 0, k = e.items.length;
|
|
5442
|
+
for (; _ < k; ) {
|
|
5443
|
+
const w = _ + k >>> 1;
|
|
5444
|
+
g(w) <= $ ? _ = w + 1 : k = w;
|
|
5443
5445
|
}
|
|
5444
|
-
const
|
|
5445
|
-
return { start:
|
|
5446
|
+
const O = Math.max(0, _ - 1), x = Math.ceil(y / e.itemHeight) + e.buffer * 2, L = Math.min(e.items.length, O + x);
|
|
5447
|
+
return { start: O, end: L };
|
|
5446
5448
|
}, h = q(() => {
|
|
5447
5449
|
const { start: $, end: y } = f();
|
|
5448
|
-
return e.items.slice($, y).map((
|
|
5449
|
-
const
|
|
5450
|
+
return e.items.slice($, y).map((_, k) => {
|
|
5451
|
+
const O = $ + k;
|
|
5450
5452
|
return {
|
|
5451
|
-
index:
|
|
5452
|
-
id:
|
|
5453
|
-
data:
|
|
5454
|
-
offset: g(
|
|
5453
|
+
index: O,
|
|
5454
|
+
id: _.id || O,
|
|
5455
|
+
data: _,
|
|
5456
|
+
offset: g(O)
|
|
5455
5457
|
};
|
|
5456
5458
|
});
|
|
5457
5459
|
}), g = ($) => {
|
|
@@ -5460,22 +5462,22 @@ const Ct = {
|
|
|
5460
5462
|
let y = $ - 1;
|
|
5461
5463
|
for (; y > 0 && !r.has(y); )
|
|
5462
5464
|
y--;
|
|
5463
|
-
let
|
|
5464
|
-
for (let
|
|
5465
|
-
|
|
5466
|
-
const k = Math.round(
|
|
5465
|
+
let _ = y > 0 ? r.get(y) : 0;
|
|
5466
|
+
for (let O = y; O < $; O++)
|
|
5467
|
+
_ += c(O);
|
|
5468
|
+
const k = Math.round(_);
|
|
5467
5469
|
return r.set($, k), k;
|
|
5468
|
-
},
|
|
5470
|
+
}, b = () => {
|
|
5469
5471
|
a.value && cancelAnimationFrame(a.value), a.value = requestAnimationFrame(() => {
|
|
5470
5472
|
n.value && (o.value = Math.round(n.value.scrollTop), s.value && clearTimeout(s.value), s.value = window.setTimeout(() => {
|
|
5471
|
-
const { start: $, end: y } = f(),
|
|
5473
|
+
const { start: $, end: y } = f(), _ = e.buffer * 2;
|
|
5472
5474
|
for (const k of r.keys())
|
|
5473
|
-
(k < $ -
|
|
5475
|
+
(k < $ - _ || k > y + _) && r.delete(k);
|
|
5474
5476
|
}, 150));
|
|
5475
5477
|
});
|
|
5476
5478
|
};
|
|
5477
5479
|
return he(() => {
|
|
5478
|
-
n.value &&
|
|
5480
|
+
n.value && b(), Oe(
|
|
5479
5481
|
() => e.items.length,
|
|
5480
5482
|
($) => {
|
|
5481
5483
|
$ > l.value.length ? l.value = [
|
|
@@ -5490,7 +5492,7 @@ const Ct = {
|
|
|
5490
5492
|
a.value && cancelAnimationFrame(a.value), s.value && clearTimeout(s.value);
|
|
5491
5493
|
}), ($, y) => (p(), m("div", {
|
|
5492
5494
|
class: "virtual-list-container",
|
|
5493
|
-
onScroll:
|
|
5495
|
+
onScroll: b,
|
|
5494
5496
|
ref_key: "container",
|
|
5495
5497
|
ref: n,
|
|
5496
5498
|
style: { height: "100%" }
|
|
@@ -5499,12 +5501,12 @@ const Ct = {
|
|
|
5499
5501
|
class: "virtual-list-wrapper",
|
|
5500
5502
|
style: Z({ height: d.value + "px" })
|
|
5501
5503
|
}, [
|
|
5502
|
-
(p(!0), m(
|
|
5504
|
+
(p(!0), m(E, null, ee(h.value, (_) => (p(), m("div", {
|
|
5503
5505
|
class: "virtual-list-item",
|
|
5504
|
-
key: "as" +
|
|
5505
|
-
style: Z({ transform: `translateY(${
|
|
5506
|
+
key: "as" + _.index,
|
|
5507
|
+
style: Z({ transform: `translateY(${_.offset}px)` })
|
|
5506
5508
|
}, [
|
|
5507
|
-
R($.$slots, "default", { item:
|
|
5509
|
+
R($.$slots, "default", { item: _ }, void 0, !0)
|
|
5508
5510
|
], 4))), 128))
|
|
5509
5511
|
], 4)
|
|
5510
5512
|
], 544));
|
|
@@ -5529,37 +5531,37 @@ const Ct = {
|
|
|
5529
5531
|
}
|
|
5530
5532
|
},
|
|
5531
5533
|
setup(t, { expose: e }) {
|
|
5532
|
-
const n = t, o = Y(null), a = Y(0), s = Y([]), l = Y(10), r = q(() => n.items.reduce((
|
|
5533
|
-
() => Math.max(0,
|
|
5534
|
+
const n = t, o = Y(null), a = Y(0), s = Y([]), l = Y(10), r = q(() => n.items.reduce((_, k, O) => _ + d(O), 0)), d = (_) => s.value[_] || n.itemHeight, c = q(
|
|
5535
|
+
() => Math.max(0, b(a.value) - n.buffer)
|
|
5534
5536
|
), f = q(
|
|
5535
5537
|
() => Math.min(
|
|
5536
5538
|
n.items.length,
|
|
5537
5539
|
c.value + l.value + n.buffer * 2
|
|
5538
5540
|
)
|
|
5539
5541
|
), h = q(
|
|
5540
|
-
() => n.items.slice(c.value, f.value).map((
|
|
5541
|
-
const
|
|
5542
|
+
() => n.items.slice(c.value, f.value).map((_, k) => {
|
|
5543
|
+
const O = c.value + k, x = g(O);
|
|
5542
5544
|
return {
|
|
5543
|
-
index:
|
|
5544
|
-
id:
|
|
5545
|
-
data:
|
|
5545
|
+
index: O,
|
|
5546
|
+
id: _.id || O,
|
|
5547
|
+
data: _,
|
|
5546
5548
|
offset: x
|
|
5547
5549
|
};
|
|
5548
5550
|
})
|
|
5549
|
-
), g = (
|
|
5550
|
-
let k = 0,
|
|
5551
|
-
for (; k <=
|
|
5552
|
-
const x = Math.floor((k +
|
|
5553
|
-
g(x) <=
|
|
5551
|
+
), g = (_) => n.items.slice(0, _).reduce((k, O, x) => k + d(x), 0), b = (_) => {
|
|
5552
|
+
let k = 0, O = n.items.length - 1;
|
|
5553
|
+
for (; k <= O; ) {
|
|
5554
|
+
const x = Math.floor((k + O) / 2);
|
|
5555
|
+
g(x) <= _ ? k = x + 1 : O = x - 1;
|
|
5554
5556
|
}
|
|
5555
|
-
return
|
|
5557
|
+
return O;
|
|
5556
5558
|
}, $ = () => {
|
|
5557
5559
|
requestAnimationFrame(() => {
|
|
5558
5560
|
a.value = o.value?.scrollTop;
|
|
5559
5561
|
});
|
|
5560
5562
|
}, y = () => {
|
|
5561
|
-
o.value.querySelectorAll(".virtual-list-item").forEach((k,
|
|
5562
|
-
const x = c.value +
|
|
5563
|
+
o.value.querySelectorAll(".virtual-list-item").forEach((k, O) => {
|
|
5564
|
+
const x = c.value + O;
|
|
5563
5565
|
s.value[x] = k.offsetHeight;
|
|
5564
5566
|
});
|
|
5565
5567
|
};
|
|
@@ -5575,7 +5577,7 @@ const Ct = {
|
|
|
5575
5577
|
}
|
|
5576
5578
|
}), yt(() => {
|
|
5577
5579
|
y();
|
|
5578
|
-
}), (
|
|
5580
|
+
}), (_, k) => (p(), m("div", {
|
|
5579
5581
|
class: "virtual-list-container",
|
|
5580
5582
|
onScroll: $,
|
|
5581
5583
|
ref_key: "container",
|
|
@@ -5585,12 +5587,12 @@ const Ct = {
|
|
|
5585
5587
|
class: "virtual-list-wrapper",
|
|
5586
5588
|
style: Z({ height: r.value + "px" })
|
|
5587
5589
|
}, [
|
|
5588
|
-
(p(!0), m(
|
|
5590
|
+
(p(!0), m(E, null, ee(h.value, (O) => (p(), m("div", {
|
|
5589
5591
|
class: "virtual-list-item",
|
|
5590
|
-
key: "as" +
|
|
5591
|
-
style: Z({ transform: `translateY(${
|
|
5592
|
+
key: "as" + O.index,
|
|
5593
|
+
style: Z({ transform: `translateY(${O.offset}px)` })
|
|
5592
5594
|
}, [
|
|
5593
|
-
R(
|
|
5595
|
+
R(_.$slots, "default", { item: O }, void 0, !0)
|
|
5594
5596
|
], 4))), 128))
|
|
5595
5597
|
], 4)
|
|
5596
5598
|
], 544));
|
|
@@ -5693,14 +5695,14 @@ const Ct = {
|
|
|
5693
5695
|
const e = t;
|
|
5694
5696
|
return (n, o) => {
|
|
5695
5697
|
const a = U("AsaiFormObject"), s = U("AsaiInput");
|
|
5696
|
-
return p(!0), m(
|
|
5698
|
+
return p(!0), m(E, null, ee(e.formdata, (l, r) => (p(), m(E, null, [
|
|
5697
5699
|
t.asaidata?.cmComp && t.asaidata?.cmComp(r) ? (p(), X(pe(t.asaidata.cmComp(r)), {
|
|
5698
5700
|
key: 0,
|
|
5699
5701
|
ujt: t.ujt,
|
|
5700
5702
|
asaidata: t.asaidata,
|
|
5701
5703
|
formdata: t.formdata,
|
|
5702
5704
|
formkey: r
|
|
5703
|
-
}, null, 8, ["ujt", "asaidata", "formdata", "formkey"])) : typeof l == "object" ? (p(), m(
|
|
5705
|
+
}, null, 8, ["ujt", "asaidata", "formdata", "formkey"])) : typeof l == "object" ? (p(), m(E, { key: 1 }, [
|
|
5704
5706
|
t.asaidata?.cmComp && t.asaidata?.cmComp("object") ? (p(), X(pe(t.asaidata.cmComp("object")), {
|
|
5705
5707
|
key: 0,
|
|
5706
5708
|
ujt: t.ujt,
|
|
@@ -5753,7 +5755,7 @@ const Ct = {
|
|
|
5753
5755
|
ujt: t.ujt,
|
|
5754
5756
|
asaidata: t.asaidata,
|
|
5755
5757
|
formdata: e.formdata[t.formkey]
|
|
5756
|
-
}, null, 8, ["ujt", "asaidata", "formdata"])) : (p(), m(
|
|
5758
|
+
}, null, 8, ["ujt", "asaidata", "formdata"])) : (p(), m(E, { key: 1 }, [
|
|
5757
5759
|
se("...")
|
|
5758
5760
|
], 64)),
|
|
5759
5761
|
se(" " + v(t.asaidata.eq > 1 ? Array.isArray(e.formdata[t.formkey]) ? "]" : "}" : "") + v(t.asaidata.eq > 2 ? "," : ""), 1)
|
|
@@ -5781,7 +5783,7 @@ const Ct = {
|
|
|
5781
5783
|
formdata: t.formdata,
|
|
5782
5784
|
formkey: t.formkey
|
|
5783
5785
|
}, {
|
|
5784
|
-
default:
|
|
5786
|
+
default: re(() => [
|
|
5785
5787
|
se(v(typeof e.formdata[t.formkey] == "string" && t.asaidata.eq > 2 ? '"' : "") + " ", 1),
|
|
5786
5788
|
e.asaidata.rule?.[t.formkey]?.type === "checkbox" || typeof e.formdata[t.formkey] == "boolean" ? (p(), X(a, {
|
|
5787
5789
|
key: 0,
|
|
@@ -5811,7 +5813,7 @@ const Ct = {
|
|
|
5811
5813
|
}), Ze = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5812
5814
|
__proto__: null,
|
|
5813
5815
|
default: xr
|
|
5814
|
-
}, Symbol.toStringTag, { value: "Module" })), Sr = { class: "as-richtext-toolbar" }, Pr = { value: "" }, Cr = ["value"],
|
|
5816
|
+
}, Symbol.toStringTag, { value: "Module" })), Sr = { class: "as-richtext-toolbar" }, Pr = { value: "" }, Cr = ["value"], Ar = { value: "p" }, Or = ["value"], Mr = ["title"], Tr = ["title"], zr = ["title"], Lr = ["title"], Ur = ["title"], Ir = ["title"], Er = ["title"], Dr = ["title"], Rr = { class: "as-richtext-content" }, Fr = ["placeholder"], Wr = /* @__PURE__ */ C({
|
|
5815
5817
|
__name: "AsaiRichEditor",
|
|
5816
5818
|
props: {
|
|
5817
5819
|
ujt: {},
|
|
@@ -5861,7 +5863,7 @@ const Ct = {
|
|
|
5861
5863
|
"section",
|
|
5862
5864
|
"article",
|
|
5863
5865
|
"div"
|
|
5864
|
-
]),
|
|
5866
|
+
]), A = /* @__PURE__ */ new Set([
|
|
5865
5867
|
"href",
|
|
5866
5868
|
"src",
|
|
5867
5869
|
"alt",
|
|
@@ -5876,12 +5878,12 @@ const Ct = {
|
|
|
5876
5878
|
const P = z.tagName.toLowerCase();
|
|
5877
5879
|
if (!S.has(P))
|
|
5878
5880
|
return z.remove();
|
|
5879
|
-
j && P == "img" && z?.src && !o.imgurls?.[z.src] && (z.setAttribute("crossOrigin", "anonymous"), o.imgurls[z.src] = "1"), Array.from(z.attributes).forEach(({ name:
|
|
5880
|
-
if (!
|
|
5881
|
-
return z.removeAttribute(
|
|
5882
|
-
if (["href", "src"].includes(
|
|
5883
|
-
const N = f(
|
|
5884
|
-
N ? z.setAttribute(
|
|
5881
|
+
j && P == "img" && z?.src && !o.imgurls?.[z.src] && (z.setAttribute("crossOrigin", "anonymous"), o.imgurls[z.src] = "1"), Array.from(z.attributes).forEach(({ name: I, value: H }) => {
|
|
5882
|
+
if (!A.has(I))
|
|
5883
|
+
return z.removeAttribute(I);
|
|
5884
|
+
if (["href", "src"].includes(I)) {
|
|
5885
|
+
const N = f(H, j);
|
|
5886
|
+
N ? z.setAttribute(I, N) : z.removeAttribute(I);
|
|
5885
5887
|
}
|
|
5886
5888
|
});
|
|
5887
5889
|
}), M.body.innerHTML;
|
|
@@ -5913,54 +5915,54 @@ const Ct = {
|
|
|
5913
5915
|
function g(w) {
|
|
5914
5916
|
a.value.accept = `${w}/*`, be(() => a.value?.click());
|
|
5915
5917
|
}
|
|
5916
|
-
async function
|
|
5918
|
+
async function b(w) {
|
|
5917
5919
|
const j = w.target.files?.[0];
|
|
5918
5920
|
if (!j)
|
|
5919
5921
|
return;
|
|
5920
|
-
let S,
|
|
5921
|
-
j.type.startsWith("image") ? (S = await $(j),
|
|
5922
|
+
let S, A = "";
|
|
5923
|
+
j.type.startsWith("image") ? (S = await $(j), A = `<img src="${S}" style="max-width:100%">`) : (j.size > 1024 * 1024 ? S = URL.createObjectURL(j) : S = await $(j), j.type.startsWith("video") ? A = `<video controls src="${S}" style="max-width:100%"></video>` : A = `<a href="${S}" download="${j.name}">${j.name}</a>`), x("insertHTML", A);
|
|
5922
5924
|
}
|
|
5923
5925
|
function $(w) {
|
|
5924
5926
|
return new Promise((j, S) => {
|
|
5925
5927
|
if (!w)
|
|
5926
5928
|
return S(new Error("Invalid file"));
|
|
5927
|
-
const
|
|
5928
|
-
|
|
5929
|
+
const A = new FileReader();
|
|
5930
|
+
A.onload = (M) => {
|
|
5929
5931
|
w.type.startsWith("image/") ? y(M.target.result).then((z) => {
|
|
5930
5932
|
j(z);
|
|
5931
5933
|
}).catch((z) => {
|
|
5932
5934
|
S(z);
|
|
5933
5935
|
}) : j(M.target.result);
|
|
5934
|
-
},
|
|
5936
|
+
}, A.onerror = () => S(new Error("File read failed")), A.readAsDataURL(w);
|
|
5935
5937
|
});
|
|
5936
5938
|
}
|
|
5937
5939
|
function y(w) {
|
|
5938
5940
|
return new Promise((j, S) => {
|
|
5939
|
-
const
|
|
5941
|
+
const A = new Image(), M = document.createElement("canvas"), z = M.getContext("2d", {
|
|
5940
5942
|
willReadFrequently: !1
|
|
5941
5943
|
});
|
|
5942
5944
|
let P = !1;
|
|
5943
|
-
const
|
|
5944
|
-
P || (
|
|
5945
|
+
const I = () => {
|
|
5946
|
+
P || (A.onload = A.onerror = null, A.src = "", M.width = M.height = 0, P = !0);
|
|
5945
5947
|
};
|
|
5946
|
-
|
|
5948
|
+
A.crossOrigin = "anonymous", A.src = w, A.onload = () => {
|
|
5947
5949
|
try {
|
|
5948
|
-
const
|
|
5949
|
-
M.width =
|
|
5950
|
+
const H = Math.min(o.img.maxWidth / A.width, 1);
|
|
5951
|
+
M.width = H < 1 ? o.img.maxWidth : A.width, M.height = H < 1 ? A.height * H : A.height, z.imageSmoothingEnabled = !0, z.imageSmoothingQuality = "high", z.clearRect(0, 0, M.width, M.height), z.drawImage(A, 0, 0, M.width, M.height);
|
|
5950
5952
|
const N = M.toDataURL(
|
|
5951
5953
|
"image/jpeg",
|
|
5952
5954
|
o.img.quality
|
|
5953
5955
|
);
|
|
5954
|
-
|
|
5955
|
-
} catch (
|
|
5956
|
-
|
|
5956
|
+
I(), j(N);
|
|
5957
|
+
} catch (H) {
|
|
5958
|
+
I(), S(H);
|
|
5957
5959
|
}
|
|
5958
|
-
},
|
|
5959
|
-
|
|
5960
|
+
}, A.onerror = (H) => {
|
|
5961
|
+
I(), S(new Error("Image load failed"));
|
|
5960
5962
|
};
|
|
5961
5963
|
});
|
|
5962
5964
|
}
|
|
5963
|
-
function
|
|
5965
|
+
function _(w) {
|
|
5964
5966
|
w.preventDefault(), Object.keys(o.imgurls).forEach((j) => {
|
|
5965
5967
|
y(o.imgurls[j]).then((S) => {
|
|
5966
5968
|
o.imgurls[j] == "1" && (o.imgurls[j] = "2", e.formdata[e.formkey].replaceAll(
|
|
@@ -5975,7 +5977,7 @@ const Ct = {
|
|
|
5975
5977
|
const j = w.clipboardData?.getData("text/html") || "", S = c(j, 1) || w.clipboardData?.getData("text/plain") || "";
|
|
5976
5978
|
x("insertHTML", S);
|
|
5977
5979
|
}
|
|
5978
|
-
function
|
|
5980
|
+
function O(w) {
|
|
5979
5981
|
s.value && (e.formdata[e.formkey] = c(
|
|
5980
5982
|
s.value.innerHTML
|
|
5981
5983
|
));
|
|
@@ -5995,7 +5997,7 @@ const Ct = {
|
|
|
5995
5997
|
onChange: j[0] || (j[0] = (S) => x("fontSize", S.target.value))
|
|
5996
5998
|
}, [
|
|
5997
5999
|
u("option", Pr, v(i(n).lang.richtexteditor.fontsize), 1),
|
|
5998
|
-
(p(), m(
|
|
6000
|
+
(p(), m(E, null, ee(8, (S) => u("option", {
|
|
5999
6001
|
key: "size" + S,
|
|
6000
6002
|
value: S * (S - 1) + 8
|
|
6001
6003
|
}, v(S * (S - 1) + 8) + "px ", 9, Cr)), 64))
|
|
@@ -6003,11 +6005,11 @@ const Ct = {
|
|
|
6003
6005
|
u("select", {
|
|
6004
6006
|
onChange: j[1] || (j[1] = (S) => x("formatBlock", S.target.value))
|
|
6005
6007
|
}, [
|
|
6006
|
-
u("option",
|
|
6007
|
-
(p(), m(
|
|
6008
|
+
u("option", Ar, v(i(n).lang.richtexteditor.paragraph), 1),
|
|
6009
|
+
(p(), m(E, null, ee(6, (S) => u("option", {
|
|
6008
6010
|
key: "h" + S,
|
|
6009
6011
|
value: "h" + S
|
|
6010
|
-
}, v(i(n).lang.richtexteditor.title) + v(S), 9,
|
|
6012
|
+
}, v(i(n).lang.richtexteditor.title) + v(S), 9, Or)), 64))
|
|
6011
6013
|
], 32),
|
|
6012
6014
|
u("button", {
|
|
6013
6015
|
onPointerdown: j[2] || (j[2] = (S) => x("bold")),
|
|
@@ -6034,11 +6036,11 @@ const Ct = {
|
|
|
6034
6036
|
type: "color",
|
|
6035
6037
|
onInput: j[7] || (j[7] = (S) => x("backColor", S.target.value)),
|
|
6036
6038
|
title: i(n).lang.richtexteditor.backColor
|
|
6037
|
-
}, null, 40,
|
|
6039
|
+
}, null, 40, Ir),
|
|
6038
6040
|
u("button", {
|
|
6039
6041
|
onPointerdown: j[8] || (j[8] = (S) => x("insertOrderedList")),
|
|
6040
6042
|
title: i(n).lang.richtexteditor.insertOrderedList
|
|
6041
|
-
}, " 有 ", 40,
|
|
6043
|
+
}, " 有 ", 40, Er),
|
|
6042
6044
|
u("button", {
|
|
6043
6045
|
onPointerdown: j[9] || (j[9] = (S) => x("insertUnorderedList")),
|
|
6044
6046
|
title: i(n).lang.richtexteditor.insertUnorderedList
|
|
@@ -6084,7 +6086,7 @@ const Ct = {
|
|
|
6084
6086
|
title: "文件"
|
|
6085
6087
|
}, "📎", 32),
|
|
6086
6088
|
u("button", {
|
|
6087
|
-
onPointerdown:
|
|
6089
|
+
onPointerdown: _,
|
|
6088
6090
|
title: "上传"
|
|
6089
6091
|
}, "上", 32),
|
|
6090
6092
|
u("button", {
|
|
@@ -6100,7 +6102,7 @@ const Ct = {
|
|
|
6100
6102
|
ref: s,
|
|
6101
6103
|
contenteditable: "true",
|
|
6102
6104
|
onPaste: k,
|
|
6103
|
-
onInput:
|
|
6105
|
+
onInput: O
|
|
6104
6106
|
}, null, 36)) : F("", !0),
|
|
6105
6107
|
r.value > 0 ? G((p(), m("textarea", {
|
|
6106
6108
|
key: 1,
|
|
@@ -6118,14 +6120,14 @@ const Ct = {
|
|
|
6118
6120
|
ref: a,
|
|
6119
6121
|
type: "file",
|
|
6120
6122
|
hidden: "",
|
|
6121
|
-
onChange:
|
|
6123
|
+
onChange: b
|
|
6122
6124
|
}, null, 544)
|
|
6123
6125
|
], 4));
|
|
6124
6126
|
}
|
|
6125
|
-
}),
|
|
6127
|
+
}), Hr = /* @__PURE__ */ B(Wr, [["__scopeId", "data-v-91fc208c"]]), Qe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6126
6128
|
__proto__: null,
|
|
6127
|
-
default:
|
|
6128
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
6129
|
+
default: Hr
|
|
6130
|
+
}, Symbol.toStringTag, { value: "Module" })), Vr = /* @__PURE__ */ C({
|
|
6129
6131
|
__name: "AsaiSelect",
|
|
6130
6132
|
props: {
|
|
6131
6133
|
ujt: {},
|
|
@@ -6145,7 +6147,7 @@ const Ct = {
|
|
|
6145
6147
|
formdata: t.formdata,
|
|
6146
6148
|
formkey: t.formkey
|
|
6147
6149
|
}, {
|
|
6148
|
-
default:
|
|
6150
|
+
default: re(() => [
|
|
6149
6151
|
W(l, {
|
|
6150
6152
|
ujt: t.ujt,
|
|
6151
6153
|
opt: { selectdata: o.value },
|
|
@@ -6159,7 +6161,7 @@ const Ct = {
|
|
|
6159
6161
|
}
|
|
6160
6162
|
}), et = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6161
6163
|
__proto__: null,
|
|
6162
|
-
default:
|
|
6164
|
+
default: Vr
|
|
6163
6165
|
}, Symbol.toStringTag, { value: "Module" })), qr = ["accept"], Br = { key: 0 }, Nr = ["src", "alt", "title"], Yr = ["title"], Xr = ["title"], Kr = /* @__PURE__ */ C({
|
|
6164
6166
|
__name: "AsaiUpBinary",
|
|
6165
6167
|
props: {
|
|
@@ -6198,7 +6200,7 @@ const Ct = {
|
|
|
6198
6200
|
formdata: t.formdata,
|
|
6199
6201
|
formkey: t.formkey
|
|
6200
6202
|
}, {
|
|
6201
|
-
default:
|
|
6203
|
+
default: re(() => [
|
|
6202
6204
|
t.asaidata?.rule?.[t.formkey]?.accept ? (p(), m("input", {
|
|
6203
6205
|
key: 0,
|
|
6204
6206
|
accept: t.asaidata?.rule?.[t.formkey]?.accept,
|
|
@@ -6217,7 +6219,7 @@ const Ct = {
|
|
|
6217
6219
|
}, null, 544)),
|
|
6218
6220
|
u("div", {
|
|
6219
6221
|
class: "as-upload-image",
|
|
6220
|
-
onClickOnce:
|
|
6222
|
+
onClickOnce: V(c, ["stop", "prevent"])
|
|
6221
6223
|
}, [
|
|
6222
6224
|
e.formdata[t.formkey] ? (p(), m("div", Br, [
|
|
6223
6225
|
t.asaidata?.rule?.[t.formkey]?.accept?.startsWith("image/") ? (p(), m("img", {
|
|
@@ -6271,11 +6273,11 @@ const Ct = {
|
|
|
6271
6273
|
"Content-Type": "application/json"
|
|
6272
6274
|
}
|
|
6273
6275
|
}
|
|
6274
|
-
).then((
|
|
6275
|
-
r.value = "", e.formdata[e.formkey] =
|
|
6276
|
+
).then((b) => {
|
|
6277
|
+
r.value = "", e.formdata[e.formkey] = b.data;
|
|
6276
6278
|
});
|
|
6277
|
-
} catch (
|
|
6278
|
-
r.value = n.lg("asai.fail") + " " +
|
|
6279
|
+
} catch (b) {
|
|
6280
|
+
r.value = n.lg("asai.fail") + " " + b.message;
|
|
6279
6281
|
}
|
|
6280
6282
|
}, h.readAsDataURL(l.value);
|
|
6281
6283
|
}
|
|
@@ -6291,10 +6293,10 @@ const Ct = {
|
|
|
6291
6293
|
formdata: t.formdata,
|
|
6292
6294
|
formkey: t.formkey
|
|
6293
6295
|
}, {
|
|
6294
|
-
default:
|
|
6296
|
+
default: re(() => [
|
|
6295
6297
|
u("div", {
|
|
6296
6298
|
class: "as-upload-image",
|
|
6297
|
-
onPointerdown:
|
|
6299
|
+
onPointerdown: V(c, ["prevent"])
|
|
6298
6300
|
}, [
|
|
6299
6301
|
e.formdata[t.formkey] ? (p(), m("div", Gr, [
|
|
6300
6302
|
t.asaidata?.rule?.[t.formkey]?.accept?.startsWith("image/") ? (p(), m("img", {
|
|
@@ -6377,19 +6379,19 @@ const Ct = {
|
|
|
6377
6379
|
o.pop.popupload.stat = 1, o.pop.popupload.tit = n.lg("asai.upload"), o.pop.popupload.params = f;
|
|
6378
6380
|
}
|
|
6379
6381
|
return (f, h) => {
|
|
6380
|
-
const g = U("AsaiUploadImgCutPop"),
|
|
6381
|
-
return p(), m(
|
|
6382
|
+
const g = U("AsaiUploadImgCutPop"), b = U("AsaiFormLabel");
|
|
6383
|
+
return p(), m(E, null, [
|
|
6382
6384
|
W(g, { ujt: t.ujt }, null, 8, ["ujt"]),
|
|
6383
|
-
W(
|
|
6385
|
+
W(b, {
|
|
6384
6386
|
ujt: t.ujt,
|
|
6385
6387
|
asaidata: t.asaidata,
|
|
6386
6388
|
formdata: t.formdata,
|
|
6387
6389
|
formkey: t.formkey
|
|
6388
6390
|
}, {
|
|
6389
|
-
default:
|
|
6391
|
+
default: re(() => [
|
|
6390
6392
|
u("div", {
|
|
6391
6393
|
class: "as-upload-image",
|
|
6392
|
-
onPointerdown:
|
|
6394
|
+
onPointerdown: V(d, ["prevent"])
|
|
6393
6395
|
}, [
|
|
6394
6396
|
e.formdata[t.formkey] ? (p(), m("div", ac, [
|
|
6395
6397
|
u("img", {
|
|
@@ -6456,12 +6458,12 @@ const Ct = {
|
|
|
6456
6458
|
console.error("Image or container element not found.");
|
|
6457
6459
|
return;
|
|
6458
6460
|
}
|
|
6459
|
-
const w = Math.min(L.clientWidth, x.naturalWidth), j = Math.min(L.clientHeight, x.naturalHeight), S = Math.min(w * 0.8, x.naturalWidth),
|
|
6461
|
+
const w = Math.min(L.clientWidth, x.naturalWidth), j = Math.min(L.clientHeight, x.naturalHeight), S = Math.min(w * 0.8, x.naturalWidth), A = Math.min(j * 0.8, x.naturalHeight);
|
|
6460
6462
|
r.value = {
|
|
6461
6463
|
x: (w - S) / 2,
|
|
6462
|
-
y: (j -
|
|
6464
|
+
y: (j - A) / 2,
|
|
6463
6465
|
width: S,
|
|
6464
|
-
height:
|
|
6466
|
+
height: A,
|
|
6465
6467
|
maxWidth: w,
|
|
6466
6468
|
maxHeight: j
|
|
6467
6469
|
}, console.log("Initial crop params:", r.value);
|
|
@@ -6478,16 +6480,16 @@ const Ct = {
|
|
|
6478
6480
|
originalHeight: r.value.height,
|
|
6479
6481
|
direction: L
|
|
6480
6482
|
};
|
|
6481
|
-
const S = (
|
|
6483
|
+
const S = (A) => {
|
|
6482
6484
|
requestAnimationFrame(() => {
|
|
6483
|
-
x === "move" ?
|
|
6485
|
+
x === "move" ? b(A) : $(A);
|
|
6484
6486
|
});
|
|
6485
6487
|
};
|
|
6486
6488
|
window.addEventListener("mousemove", S), window.addEventListener("touchmove", S), window.addEventListener("mouseup", y), window.addEventListener("touchend", y);
|
|
6487
|
-
},
|
|
6489
|
+
}, b = (x) => {
|
|
6488
6490
|
const L = window.event || x, w = L.touches ? L.touches[0] : L;
|
|
6489
6491
|
if (d.value.type !== "move") return;
|
|
6490
|
-
const j = w.clientX - d.value.startX, S = w.clientY - d.value.startY,
|
|
6492
|
+
const j = w.clientX - d.value.startX, S = w.clientY - d.value.startY, A = Math.max(
|
|
6491
6493
|
0,
|
|
6492
6494
|
Math.min(
|
|
6493
6495
|
d.value.originalX + j,
|
|
@@ -6500,13 +6502,13 @@ const Ct = {
|
|
|
6500
6502
|
r.value.maxHeight - r.value.height
|
|
6501
6503
|
)
|
|
6502
6504
|
);
|
|
6503
|
-
Object.assign(r.value, { x:
|
|
6505
|
+
Object.assign(r.value, { x: A, y: M });
|
|
6504
6506
|
}, $ = (x) => {
|
|
6505
6507
|
const L = window.event || x, w = L.touches ? L.touches[0] : L;
|
|
6506
6508
|
if (d.value.type !== "resize") return;
|
|
6507
|
-
const j = w.clientX - d.value.startX, S = w.clientY - d.value.startY,
|
|
6508
|
-
let M = d.value.originalWidth, z = d.value.originalHeight, P = d.value.originalX,
|
|
6509
|
-
switch (
|
|
6509
|
+
const j = w.clientX - d.value.startX, S = w.clientY - d.value.startY, A = d.value.direction;
|
|
6510
|
+
let M = d.value.originalWidth, z = d.value.originalHeight, P = d.value.originalX, I = d.value.originalY;
|
|
6511
|
+
switch (A) {
|
|
6510
6512
|
case "tr":
|
|
6511
6513
|
M = Math.max(
|
|
6512
6514
|
100,
|
|
@@ -6514,10 +6516,10 @@ const Ct = {
|
|
|
6514
6516
|
d.value.originalWidth + j,
|
|
6515
6517
|
r.value.maxWidth - P
|
|
6516
6518
|
)
|
|
6517
|
-
), z = Math.max(100, d.value.originalHeight - S),
|
|
6519
|
+
), z = Math.max(100, d.value.originalHeight - S), I = Math.max(0, d.value.originalY + S);
|
|
6518
6520
|
break;
|
|
6519
6521
|
case "tl":
|
|
6520
|
-
M = Math.max(100, d.value.originalWidth - j), z = Math.max(100, d.value.originalHeight - S), P = Math.max(0, d.value.originalX + j),
|
|
6522
|
+
M = Math.max(100, d.value.originalWidth - j), z = Math.max(100, d.value.originalHeight - S), P = Math.max(0, d.value.originalX + j), I = Math.max(0, d.value.originalY + S);
|
|
6521
6523
|
break;
|
|
6522
6524
|
case "br":
|
|
6523
6525
|
M = Math.max(100, d.value.originalWidth + j), z = Math.max(100, d.value.originalHeight + S);
|
|
@@ -6526,23 +6528,23 @@ const Ct = {
|
|
|
6526
6528
|
M = Math.max(100, d.value.originalWidth - j), z = Math.max(100, d.value.originalHeight + S), P = Math.max(0, d.value.originalX + j);
|
|
6527
6529
|
break;
|
|
6528
6530
|
}
|
|
6529
|
-
M = Math.min(M, r.value.maxWidth - P), z = Math.min(z, r.value.maxHeight -
|
|
6531
|
+
M = Math.min(M, r.value.maxWidth - P), z = Math.min(z, r.value.maxHeight - I), Object.assign(r.value, {
|
|
6530
6532
|
x: P,
|
|
6531
|
-
y:
|
|
6533
|
+
y: I,
|
|
6532
6534
|
width: M,
|
|
6533
6535
|
height: z
|
|
6534
6536
|
}), console.log("Resized crop params:", r.value);
|
|
6535
6537
|
}, y = () => {
|
|
6536
|
-
d.value.type = null, window.removeEventListener("mousemove",
|
|
6537
|
-
},
|
|
6538
|
+
d.value.type = null, window.removeEventListener("mousemove", b), window.removeEventListener("touchmove", b), window.removeEventListener("mousemove", $), window.removeEventListener("touchmove", $), window.removeEventListener("mouseup", y), window.removeEventListener("touchend", y);
|
|
6539
|
+
}, _ = () => {
|
|
6538
6540
|
const x = a.value, L = x.naturalWidth / x.width, w = x.naturalHeight / x.height, j = Math.min(
|
|
6539
6541
|
r.value.width * L,
|
|
6540
6542
|
x.naturalWidth
|
|
6541
6543
|
), S = Math.min(
|
|
6542
6544
|
r.value.height * w,
|
|
6543
6545
|
x.naturalHeight
|
|
6544
|
-
),
|
|
6545
|
-
|
|
6546
|
+
), A = document.createElement("canvas");
|
|
6547
|
+
A.width = j, A.height = S, A.getContext("2d").drawImage(
|
|
6546
6548
|
x,
|
|
6547
6549
|
r.value.x * L,
|
|
6548
6550
|
r.value.y * w,
|
|
@@ -6552,18 +6554,18 @@ const Ct = {
|
|
|
6552
6554
|
0,
|
|
6553
6555
|
j,
|
|
6554
6556
|
S
|
|
6555
|
-
), o.value =
|
|
6557
|
+
), o.value = A.toDataURL("image/png", 0.9), e.params.asaidata?.rule?.[e.params?.formkey]?.data && be(() => {
|
|
6556
6558
|
let z = e.params.asaidata.rule[e.params.formkey].data, P = {};
|
|
6557
6559
|
if (z.width < j || z.height < S) {
|
|
6558
6560
|
z.height / S > z.width / j ? (P.width = z.width, P.height = S * z.width / j) : (P.width = j * z.height / S, P.height = z.height);
|
|
6559
|
-
const
|
|
6560
|
-
|
|
6561
|
+
const I = s.value, H = document.createElement("canvas");
|
|
6562
|
+
H.width = P.width, H.height = P.height, H.getContext("2d").drawImage(I, 0, 0, P.width, P.height), o.value = H.toDataURL("image/png", 0.9);
|
|
6561
6563
|
}
|
|
6562
6564
|
});
|
|
6563
6565
|
}, k = () => {
|
|
6564
6566
|
const x = document.createElement("a");
|
|
6565
6567
|
x.download = "cropped-image.png", x.href = o.value, x.click();
|
|
6566
|
-
},
|
|
6568
|
+
}, O = () => {
|
|
6567
6569
|
e.params.fn(o.value);
|
|
6568
6570
|
};
|
|
6569
6571
|
return (x, L) => (p(), m("div", cc, [
|
|
@@ -6588,40 +6590,40 @@ const Ct = {
|
|
|
6588
6590
|
G(u("div", {
|
|
6589
6591
|
class: "as-img-crop-box",
|
|
6590
6592
|
style: Z(c.value),
|
|
6591
|
-
onMousedown: L[8] || (L[8] =
|
|
6592
|
-
onTouchstart: L[9] || (L[9] =
|
|
6593
|
+
onMousedown: L[8] || (L[8] = V((w) => g("move"), ["prevent"])),
|
|
6594
|
+
onTouchstart: L[9] || (L[9] = V((w) => g("move"), ["prevent"]))
|
|
6593
6595
|
}, [
|
|
6594
6596
|
u("div", {
|
|
6595
6597
|
class: "as-img-crop-handle top-left",
|
|
6596
|
-
onMousedown: L[0] || (L[0] =
|
|
6597
|
-
onTouchstart: L[1] || (L[1] =
|
|
6598
|
+
onMousedown: L[0] || (L[0] = V((w) => g("resize", "tl"), ["stop"])),
|
|
6599
|
+
onTouchstart: L[1] || (L[1] = V((w) => g("resize", "tl"), ["stop"]))
|
|
6598
6600
|
}, null, 32),
|
|
6599
6601
|
u("div", {
|
|
6600
6602
|
class: "as-img-crop-handle top-right",
|
|
6601
|
-
onMousedown: L[2] || (L[2] =
|
|
6602
|
-
onTouchstart: L[3] || (L[3] =
|
|
6603
|
+
onMousedown: L[2] || (L[2] = V((w) => g("resize", "tr"), ["stop"])),
|
|
6604
|
+
onTouchstart: L[3] || (L[3] = V((w) => g("resize", "tr"), ["stop"]))
|
|
6603
6605
|
}, null, 32),
|
|
6604
6606
|
u("div", {
|
|
6605
6607
|
class: "as-img-crop-handle bottom-left",
|
|
6606
|
-
onMousedown: L[4] || (L[4] =
|
|
6607
|
-
onTouchstart: L[5] || (L[5] =
|
|
6608
|
+
onMousedown: L[4] || (L[4] = V((w) => g("resize", "bl"), ["stop"])),
|
|
6609
|
+
onTouchstart: L[5] || (L[5] = V((w) => g("resize", "bl"), ["stop"]))
|
|
6608
6610
|
}, null, 32),
|
|
6609
6611
|
u("div", {
|
|
6610
6612
|
class: "as-img-crop-handle bottom-right",
|
|
6611
|
-
onMousedown: L[6] || (L[6] =
|
|
6612
|
-
onTouchstart: L[7] || (L[7] =
|
|
6613
|
+
onMousedown: L[6] || (L[6] = V((w) => g("resize", "br"), ["stop"])),
|
|
6614
|
+
onTouchstart: L[7] || (L[7] = V((w) => g("resize", "br"), ["stop"]))
|
|
6613
6615
|
}, null, 32)
|
|
6614
6616
|
], 36), [
|
|
6615
|
-
[
|
|
6617
|
+
[Ie, f.value]
|
|
6616
6618
|
])
|
|
6617
6619
|
], 512)),
|
|
6618
6620
|
u("div", fc, [
|
|
6619
|
-
o.value ? (p(), m(
|
|
6621
|
+
o.value ? (p(), m(E, { key: 0 }, [
|
|
6620
6622
|
u("button", { onPointerdown: k }, "下载图片", 32),
|
|
6621
|
-
u("button", { onPointerdown:
|
|
6623
|
+
u("button", { onPointerdown: O }, "确认上传", 32)
|
|
6622
6624
|
], 64)) : (p(), m("button", {
|
|
6623
6625
|
key: 1,
|
|
6624
|
-
onPointerdown:
|
|
6626
|
+
onPointerdown: _
|
|
6625
6627
|
}, "确认裁剪", 32))
|
|
6626
6628
|
])
|
|
6627
6629
|
]));
|
|
@@ -6642,7 +6644,7 @@ const Ct = {
|
|
|
6642
6644
|
ujt: t.ujt,
|
|
6643
6645
|
id: "popupload"
|
|
6644
6646
|
}, {
|
|
6645
|
-
default:
|
|
6647
|
+
default: re(() => [
|
|
6646
6648
|
i(n).pop.popupload.stat ? (p(), X(s, {
|
|
6647
6649
|
key: 0,
|
|
6648
6650
|
ujt: t.ujt,
|
|
@@ -6808,13 +6810,13 @@ const Ct = {
|
|
|
6808
6810
|
])
|
|
6809
6811
|
]));
|
|
6810
6812
|
}
|
|
6811
|
-
}),
|
|
6813
|
+
}), Ac = /* @__PURE__ */ B(Cc, [["__scopeId", "data-v-2ec76414"]]), Oc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6812
6814
|
__proto__: null,
|
|
6813
|
-
default:
|
|
6815
|
+
default: Ac
|
|
6814
6816
|
}, Symbol.toStringTag, { value: "Module" })), Mc = { class: "asf-select" }, Tc = { class: "asf-select-cur-val" }, zc = { class: "asf-select-list-area" }, Lc = {
|
|
6815
6817
|
key: 0,
|
|
6816
6818
|
class: "asf-select-list"
|
|
6817
|
-
}, Uc = { class: "asf-select-empty" },
|
|
6819
|
+
}, Uc = { class: "asf-select-empty" }, Ic = ["data-val"], Ec = /* @__PURE__ */ C({
|
|
6818
6820
|
__name: "AsfSelect",
|
|
6819
6821
|
props: {
|
|
6820
6822
|
ujt: {},
|
|
@@ -6824,7 +6826,7 @@ const Ct = {
|
|
|
6824
6826
|
emits: ["update:modelValue"],
|
|
6825
6827
|
setup(t, { emit: e }) {
|
|
6826
6828
|
ge((f) => ({
|
|
6827
|
-
|
|
6829
|
+
v64710026: l.value
|
|
6828
6830
|
}));
|
|
6829
6831
|
const n = t, { $global: o } = n.ujt, a = e;
|
|
6830
6832
|
let s = q({
|
|
@@ -6863,21 +6865,21 @@ const Ct = {
|
|
|
6863
6865
|
style: Z(n.opt?.stylelist || {}),
|
|
6864
6866
|
onPointerdown: c
|
|
6865
6867
|
}, [
|
|
6866
|
-
(p(!0), m(
|
|
6868
|
+
(p(!0), m(E, null, ee(n.opt?.selectdata, (g) => (p(), m("div", {
|
|
6867
6869
|
class: J(`asf-select-li${i(s) == g[0] ? "-active" : ""}`),
|
|
6868
6870
|
"data-val": g[0],
|
|
6869
6871
|
key: "sel" + g[0]
|
|
6870
|
-
}, v(g[1]), 11,
|
|
6872
|
+
}, v(g[1]), 11, Ic))), 128))
|
|
6871
6873
|
], 38)) : (p(), m("div", Lc, [
|
|
6872
6874
|
u("div", Uc, v(i(o).lang.asai.empty), 1)
|
|
6873
6875
|
]))
|
|
6874
6876
|
])
|
|
6875
6877
|
]));
|
|
6876
6878
|
}
|
|
6877
|
-
}), Dc = /* @__PURE__ */ B(
|
|
6879
|
+
}), Dc = /* @__PURE__ */ B(Ec, [["__scopeId", "data-v-208e596f"]]), Rc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6878
6880
|
__proto__: null,
|
|
6879
6881
|
default: Dc
|
|
6880
|
-
}, Symbol.toStringTag, { value: "Module" })), Fc = { class: "asf-textarea" }, Wc = ["placeholder", "readonly"],
|
|
6882
|
+
}, Symbol.toStringTag, { value: "Module" })), Fc = { class: "asf-textarea" }, Wc = ["placeholder", "readonly"], Hc = /* @__PURE__ */ C({
|
|
6881
6883
|
__name: "AsfTextarea",
|
|
6882
6884
|
props: {
|
|
6883
6885
|
ujt: {},
|
|
@@ -6910,9 +6912,9 @@ const Ct = {
|
|
|
6910
6912
|
])
|
|
6911
6913
|
]));
|
|
6912
6914
|
}
|
|
6913
|
-
}),
|
|
6915
|
+
}), Vc = /* @__PURE__ */ B(Hc, [["__scopeId", "data-v-a16fb158"]]), qc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6914
6916
|
__proto__: null,
|
|
6915
|
-
default:
|
|
6917
|
+
default: Vc
|
|
6916
6918
|
}, Symbol.toStringTag, { value: "Module" })), Bc = { class: "as-page-area" }, Nc = { class: "as-page-icon" }, Yc = {
|
|
6917
6919
|
class: "ico",
|
|
6918
6920
|
style: { "background-color": "var(--cz0)" }
|
|
@@ -7152,10 +7154,10 @@ const Ct = {
|
|
|
7152
7154
|
}), Su = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7153
7155
|
__proto__: null,
|
|
7154
7156
|
default: xu
|
|
7155
|
-
}, Symbol.toStringTag, { value: "Module" })), Pu = { class: "as-page-area" }, Cu = { class: "as-page-icon" },
|
|
7157
|
+
}, Symbol.toStringTag, { value: "Module" })), Pu = { class: "as-page-area" }, Cu = { class: "as-page-icon" }, Au = {
|
|
7156
7158
|
class: "ico",
|
|
7157
7159
|
style: { "background-color": "var(--cz0)" }
|
|
7158
|
-
},
|
|
7160
|
+
}, Ou = {
|
|
7159
7161
|
class: "tit",
|
|
7160
7162
|
style: { color: "var(--cz8)" }
|
|
7161
7163
|
}, Mu = /* @__PURE__ */ C({
|
|
@@ -7177,14 +7179,14 @@ const Ct = {
|
|
|
7177
7179
|
})
|
|
7178
7180
|
], -1)),
|
|
7179
7181
|
u("div", Cu, [
|
|
7180
|
-
u("div",
|
|
7182
|
+
u("div", Au, [
|
|
7181
7183
|
W(s, {
|
|
7182
7184
|
color: "var(--cz8)",
|
|
7183
7185
|
height: "88px",
|
|
7184
7186
|
src: "asai/server"
|
|
7185
7187
|
})
|
|
7186
7188
|
]),
|
|
7187
|
-
u("div",
|
|
7189
|
+
u("div", Ou, v(i(n).lang?.asai?.page?.loadws), 1)
|
|
7188
7190
|
]),
|
|
7189
7191
|
u("h3", null, v(e.type), 1),
|
|
7190
7192
|
W(l, { ujt: t.ujt }, null, 8, ["ujt"])
|
|
@@ -7195,7 +7197,7 @@ const Ct = {
|
|
|
7195
7197
|
}), Tu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7196
7198
|
__proto__: null,
|
|
7197
7199
|
default: Mu
|
|
7198
|
-
}, Symbol.toStringTag, { value: "Module" })), zu = ["id"], Lu = ["id"], Uu = ["id"],
|
|
7200
|
+
}, Symbol.toStringTag, { value: "Module" })), zu = ["id"], Lu = ["id"], Uu = ["id"], Iu = /* @__PURE__ */ C({
|
|
7199
7201
|
__name: "PopBoxMask",
|
|
7200
7202
|
props: {
|
|
7201
7203
|
ujt: {},
|
|
@@ -7225,8 +7227,8 @@ const Ct = {
|
|
|
7225
7227
|
...l
|
|
7226
7228
|
}, a.value === "auto" && (l["background-color"] = "rgba(0, 0, 0, 0.3)"), l;
|
|
7227
7229
|
});
|
|
7228
|
-
return (l, r) => i(n).pop[e.id].full == 2 ? (p(), m(
|
|
7229
|
-
i(n).pop[e.id].stat ? (p(), X(
|
|
7230
|
+
return (l, r) => i(n).pop[e.id].full == 2 ? (p(), m(E, { key: 0 }, [
|
|
7231
|
+
i(n).pop[e.id].stat ? (p(), X(Ae, {
|
|
7230
7232
|
key: 0,
|
|
7231
7233
|
to: "#teleportpopbox"
|
|
7232
7234
|
}, [
|
|
@@ -7238,8 +7240,8 @@ const Ct = {
|
|
|
7238
7240
|
R(l.$slots, "default", {}, void 0, !0)
|
|
7239
7241
|
], 12, zu)
|
|
7240
7242
|
])) : F("", !0)
|
|
7241
|
-
], 64)) : i(n).pop[e.id].full == 1 ? (p(), m(
|
|
7242
|
-
i(n).pop[e.id].stat ? (p(), X(
|
|
7243
|
+
], 64)) : i(n).pop[e.id].full == 1 ? (p(), m(E, { key: 1 }, [
|
|
7244
|
+
i(n).pop[e.id].stat ? (p(), X(Ae, {
|
|
7243
7245
|
key: 0,
|
|
7244
7246
|
to: "#teleportpopbox"
|
|
7245
7247
|
}, [
|
|
@@ -7255,7 +7257,7 @@ const Ct = {
|
|
|
7255
7257
|
], 4)
|
|
7256
7258
|
], 8, Lu)
|
|
7257
7259
|
])) : F("", !0)
|
|
7258
|
-
], 64)) : (p(), m(
|
|
7260
|
+
], 64)) : (p(), m(E, { key: 2 }, [
|
|
7259
7261
|
i(n).pop[e.id].stat ? (p(), m("div", {
|
|
7260
7262
|
key: 0,
|
|
7261
7263
|
class: "as-pop-box-mask-0",
|
|
@@ -7266,7 +7268,7 @@ const Ct = {
|
|
|
7266
7268
|
], 12, Uu)) : F("", !0)
|
|
7267
7269
|
], 64));
|
|
7268
7270
|
}
|
|
7269
|
-
}),
|
|
7271
|
+
}), Eu = /* @__PURE__ */ B(Iu, [["__scopeId", "data-v-425022d6"]]), Du = { class: "as-pop-content-txt" }, Ru = {
|
|
7270
7272
|
key: 0,
|
|
7271
7273
|
class: "as-pop-content-btns"
|
|
7272
7274
|
}, Fu = ["onPointerup"], Wu = /* @__PURE__ */ C({
|
|
@@ -7280,7 +7282,7 @@ const Ct = {
|
|
|
7280
7282
|
const s = {};
|
|
7281
7283
|
return n.pop[e.id]?.nooverflow || (s.overflow = n.pop[e.id]?.conoverflow || "auto"), s;
|
|
7282
7284
|
});
|
|
7283
|
-
return (s, l) => (p(), m(
|
|
7285
|
+
return (s, l) => (p(), m(E, null, [
|
|
7284
7286
|
u("div", {
|
|
7285
7287
|
class: "as-pop-content",
|
|
7286
7288
|
style: Z(a.value)
|
|
@@ -7290,20 +7292,20 @@ const Ct = {
|
|
|
7290
7292
|
], !0)
|
|
7291
7293
|
], 4),
|
|
7292
7294
|
i(n).pop[e.id]?.btns?.length ? (p(), m("div", Ru, [
|
|
7293
|
-
(p(!0), m(
|
|
7295
|
+
(p(!0), m(E, null, ee(i(n).pop[e.id].btns, (r, d) => (p(), m(E, null, [
|
|
7294
7296
|
r.fn ? (p(), m("div", {
|
|
7295
7297
|
key: 0,
|
|
7296
|
-
onTouchstart: l[0] || (l[0] =
|
|
7298
|
+
onTouchstart: l[0] || (l[0] = V(
|
|
7297
7299
|
//@ts-ignore
|
|
7298
7300
|
(...c) => i(o).As.eStop && i(o).As.eStop(...c),
|
|
7299
7301
|
["stop"]
|
|
7300
7302
|
)),
|
|
7301
|
-
onPointerdown: l[1] || (l[1] =
|
|
7303
|
+
onPointerdown: l[1] || (l[1] = V(
|
|
7302
7304
|
//@ts-ignore
|
|
7303
7305
|
(...c) => i(o).As.eStop && i(o).As.eStop(...c),
|
|
7304
7306
|
["stop"]
|
|
7305
7307
|
)),
|
|
7306
|
-
onPointerup:
|
|
7308
|
+
onPointerup: V((c) => r.fn(), ["stop"]),
|
|
7307
7309
|
class: J(d ? "" : "cur"),
|
|
7308
7310
|
style: Z(`${r.bg ? `background-color: ${r.bg};` : ""}`)
|
|
7309
7311
|
}, v(r.nm), 47, Fu)) : (p(), m("div", {
|
|
@@ -7315,7 +7317,7 @@ const Ct = {
|
|
|
7315
7317
|
])) : F("", !0)
|
|
7316
7318
|
], 64));
|
|
7317
7319
|
}
|
|
7318
|
-
}),
|
|
7320
|
+
}), Hu = /* @__PURE__ */ B(Wu, [["__scopeId", "data-v-5b386073"]]), Vu = { class: "as-pop-bar" }, qu = {
|
|
7319
7321
|
key: 0,
|
|
7320
7322
|
class: "as-pop-opts"
|
|
7321
7323
|
}, Bu = /* @__PURE__ */ C({
|
|
@@ -7331,8 +7333,8 @@ const Ct = {
|
|
|
7331
7333
|
}
|
|
7332
7334
|
return (a, s) => {
|
|
7333
7335
|
const l = U("AsSvg");
|
|
7334
|
-
return p(), m(
|
|
7335
|
-
u("div",
|
|
7336
|
+
return p(), m(E, null, [
|
|
7337
|
+
u("div", Vu, [
|
|
7336
7338
|
i(n).pop[e.id].ico ? (p(), X(l, {
|
|
7337
7339
|
key: 0,
|
|
7338
7340
|
color: "var(--ch8)",
|
|
@@ -7343,7 +7345,7 @@ const Ct = {
|
|
|
7343
7345
|
]),
|
|
7344
7346
|
i(n).pop[e.id]?.noclose ? F("", !0) : (p(), m("div", qu, [
|
|
7345
7347
|
u("div", {
|
|
7346
|
-
onPointerdown: s[0] || (s[0] =
|
|
7348
|
+
onPointerdown: s[0] || (s[0] = V((r) => o(), ["stop", "prevent"]))
|
|
7347
7349
|
}, "×", 32)
|
|
7348
7350
|
]))
|
|
7349
7351
|
], 64);
|
|
@@ -7426,7 +7428,7 @@ const Ct = {
|
|
|
7426
7428
|
const e = t, { $global: n } = e.ujt;
|
|
7427
7429
|
return (o, a) => {
|
|
7428
7430
|
const s = ve("drag"), l = ve("dragzoom");
|
|
7429
|
-
return i(n).pop[e.id].notit ? (p(), m(
|
|
7431
|
+
return i(n).pop[e.id].notit ? (p(), m(E, { key: 0 }, [], 64)) : i(n).pop[e.id].nodrag ? (p(), m("div", {
|
|
7430
7432
|
key: 1,
|
|
7431
7433
|
class: "as-pop-drag-bar",
|
|
7432
7434
|
id: "popbar" + t.id
|
|
@@ -7491,23 +7493,23 @@ const Ct = {
|
|
|
7491
7493
|
const e = t, { $global: n } = e.ujt;
|
|
7492
7494
|
return e.id || (e.id = "popdefault"), n.pop[e.id] || (n.pop[e.id] = {}), e.full && !n.pop[e.id].full && (n.pop[e.id].full = e.full), e.maskstyle && !n.pop[e.id].maskstyle && (n.pop[e.id].maskstyle = e.maskstyle), e.popstyle && !n.pop[e.id].popstyle && (n.pop[e.id].popstyle = e.popstyle), $e(() => {
|
|
7493
7495
|
n.pop[e.id] = {};
|
|
7494
|
-
}), (o, a) => i(n).pop[e.id].stat ? (p(), X(
|
|
7496
|
+
}), (o, a) => i(n).pop[e.id].stat ? (p(), X(Eu, {
|
|
7495
7497
|
key: 0,
|
|
7496
7498
|
ujt: t.ujt,
|
|
7497
7499
|
id: t.id
|
|
7498
7500
|
}, {
|
|
7499
|
-
default:
|
|
7501
|
+
default: re(() => [
|
|
7500
7502
|
(p(), X(bt, null, [
|
|
7501
7503
|
W(Gu, {
|
|
7502
7504
|
ujt: t.ujt,
|
|
7503
7505
|
id: t.id
|
|
7504
7506
|
}, {
|
|
7505
|
-
default:
|
|
7507
|
+
default: re(() => [
|
|
7506
7508
|
W(od, {
|
|
7507
7509
|
ujt: t.ujt,
|
|
7508
7510
|
id: t.id
|
|
7509
7511
|
}, {
|
|
7510
|
-
default:
|
|
7512
|
+
default: re(() => [
|
|
7511
7513
|
W(Nu, {
|
|
7512
7514
|
ujt: t.ujt,
|
|
7513
7515
|
id: t.id
|
|
@@ -7515,11 +7517,11 @@ const Ct = {
|
|
|
7515
7517
|
]),
|
|
7516
7518
|
_: 1
|
|
7517
7519
|
}, 8, ["ujt", "id"]),
|
|
7518
|
-
W(
|
|
7520
|
+
W(Hu, {
|
|
7519
7521
|
ujt: t.ujt,
|
|
7520
7522
|
id: t.id
|
|
7521
7523
|
}, {
|
|
7522
|
-
default:
|
|
7524
|
+
default: re(() => [
|
|
7523
7525
|
R(o.$slots, "default")
|
|
7524
7526
|
]),
|
|
7525
7527
|
_: 3
|
|
@@ -7610,7 +7612,7 @@ const Ct = {
|
|
|
7610
7612
|
popstyle: t.popstyle,
|
|
7611
7613
|
maskstyle: t.maskstyle
|
|
7612
7614
|
}, {
|
|
7613
|
-
default:
|
|
7615
|
+
default: re(() => [
|
|
7614
7616
|
R(a.$slots, "default", {}, () => [
|
|
7615
7617
|
u("div", rd, [
|
|
7616
7618
|
u("p", null, v(i(o).lg("asai.confirmpassword")), 1),
|
|
@@ -7672,7 +7674,7 @@ const Ct = {
|
|
|
7672
7674
|
R(o.$slots, "desarea", {}, () => [
|
|
7673
7675
|
u("div", {
|
|
7674
7676
|
class: "as-pop-drop-des",
|
|
7675
|
-
onPointerdown: a[0] || (a[0] =
|
|
7677
|
+
onPointerdown: a[0] || (a[0] = V((s) => i(n).pop[e.id].stat = i(n).pop[e.id].stat ? 0 : 1, ["stop"]))
|
|
7676
7678
|
}, [
|
|
7677
7679
|
R(o.$slots, "des", {}, () => [
|
|
7678
7680
|
se(v(i(n).pop[e.id].des || ""), 1)
|
|
@@ -7698,7 +7700,7 @@ const Ct = {
|
|
|
7698
7700
|
key: 2,
|
|
7699
7701
|
class: "as-pop-drop-mask",
|
|
7700
7702
|
style: Z(i(n).pop[e.id].maskstyle),
|
|
7701
|
-
onPointerdown: a[1] || (a[1] =
|
|
7703
|
+
onPointerdown: a[1] || (a[1] = V((s) => i(n).pop[e.id].stat = 0, ["stop"]))
|
|
7702
7704
|
}, null, 36)) : F("", !0)
|
|
7703
7705
|
], 2));
|
|
7704
7706
|
}
|
|
@@ -7729,7 +7731,7 @@ const Ct = {
|
|
|
7729
7731
|
"background-color": "rgba(0, 0, 0, 0.02)"
|
|
7730
7732
|
}), $e(() => {
|
|
7731
7733
|
n.pop[e.id] = {};
|
|
7732
|
-
}), (o, a) => i(n).pop[e.id].stat ? (p(), m(
|
|
7734
|
+
}), (o, a) => i(n).pop[e.id].stat ? (p(), m(E, { key: 0 }, [
|
|
7733
7735
|
u("div", {
|
|
7734
7736
|
class: "as-pop-mod-mask",
|
|
7735
7737
|
style: Z(i(n).pop[e.id].maskstyle),
|
|
@@ -7788,14 +7790,14 @@ const Ct = {
|
|
|
7788
7790
|
key: 0,
|
|
7789
7791
|
class: "as-pop-msg-area",
|
|
7790
7792
|
style: Z(i(n).msg.data?.maskstyle || {}),
|
|
7791
|
-
onPointerdown: r[0] || (r[0] =
|
|
7793
|
+
onPointerdown: r[0] || (r[0] = V(() => {
|
|
7792
7794
|
}, ["stop"])),
|
|
7793
|
-
onPointerup: r[1] || (r[1] =
|
|
7795
|
+
onPointerup: r[1] || (r[1] = V((d) => s(), ["stop"])),
|
|
7794
7796
|
onTouchstart: r[2] || (r[2] = //@ts-ignore
|
|
7795
7797
|
(...d) => i(o).As.eStop && i(o).As.eStop(...d))
|
|
7796
7798
|
}, [
|
|
7797
7799
|
u("div", _d, [
|
|
7798
|
-
(p(!0), m(
|
|
7800
|
+
(p(!0), m(E, null, ee(i(n).msg.data, (d) => (p(), m("div", $d, [
|
|
7799
7801
|
u("div", {
|
|
7800
7802
|
class: J("as-pop-msg" + (d?.type || ""))
|
|
7801
7803
|
}, [
|
|
@@ -7814,10 +7816,10 @@ const Ct = {
|
|
|
7814
7816
|
}), Pd = /* @__PURE__ */ B(Sd, [["__scopeId", "data-v-14e3f5d8"]]), Cd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7815
7817
|
__proto__: null,
|
|
7816
7818
|
default: Pd
|
|
7817
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
7819
|
+
}, Symbol.toStringTag, { value: "Module" })), Ad = {
|
|
7818
7820
|
key: 0,
|
|
7819
7821
|
class: "as-pop-msg-tit"
|
|
7820
|
-
},
|
|
7822
|
+
}, Od = {
|
|
7821
7823
|
key: 1,
|
|
7822
7824
|
class: "as-pop-msg-con"
|
|
7823
7825
|
}, Md = {
|
|
@@ -7869,8 +7871,8 @@ const Ct = {
|
|
|
7869
7871
|
u("div", {
|
|
7870
7872
|
class: J("as-pop-msg" + (s.value?.type || ""))
|
|
7871
7873
|
}, [
|
|
7872
|
-
s.value?.tit ? (p(), m("div",
|
|
7873
|
-
s.value?.con ? (p(), m("div",
|
|
7874
|
+
s.value?.tit ? (p(), m("div", Ad, v(s.value.tit), 1)) : F("", !0),
|
|
7875
|
+
s.value?.con ? (p(), m("div", Od, v(s.value.con), 1)) : F("", !0),
|
|
7874
7876
|
s.value?.tm ? (p(), m("div", Md, " [" + v(s.value.tm) + "] ", 1)) : F("", !0)
|
|
7875
7877
|
], 2)
|
|
7876
7878
|
], 36)) : F("", !0);
|
|
@@ -7878,7 +7880,7 @@ const Ct = {
|
|
|
7878
7880
|
}), zd = /* @__PURE__ */ B(Td, [["__scopeId", "data-v-07098c49"]]), Ld = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7879
7881
|
__proto__: null,
|
|
7880
7882
|
default: zd
|
|
7881
|
-
}, Symbol.toStringTag, { value: "Module" })), Ud = ["id"],
|
|
7883
|
+
}, Symbol.toStringTag, { value: "Module" })), Ud = ["id"], Id = /* @__PURE__ */ C({
|
|
7882
7884
|
__name: "PopTip",
|
|
7883
7885
|
props: {
|
|
7884
7886
|
ujt: {},
|
|
@@ -7909,20 +7911,20 @@ const Ct = {
|
|
|
7909
7911
|
}, [
|
|
7910
7912
|
u("div", {
|
|
7911
7913
|
class: "as-pop-tip-des",
|
|
7912
|
-
onPointerdown:
|
|
7914
|
+
onPointerdown: V(a, ["stop"])
|
|
7913
7915
|
}, [
|
|
7914
7916
|
R(l.$slots, "des", {}, () => [
|
|
7915
7917
|
se(v(i(n).pop[e.id].des || ""), 1)
|
|
7916
7918
|
], !0)
|
|
7917
7919
|
], 32),
|
|
7918
|
-
i(n).pop[e.id].stat ? (p(), X(
|
|
7920
|
+
i(n).pop[e.id].stat ? (p(), X(Ae, {
|
|
7919
7921
|
key: 0,
|
|
7920
7922
|
to: "#teleportpopbox"
|
|
7921
7923
|
}, [
|
|
7922
7924
|
u("div", {
|
|
7923
7925
|
class: "as-pop-tip-mask",
|
|
7924
7926
|
style: Z(i(n).pop[e.id].maskstyle),
|
|
7925
|
-
onPointerdown: r[1] || (r[1] =
|
|
7927
|
+
onPointerdown: r[1] || (r[1] = V((d) => s(), ["stop"])),
|
|
7926
7928
|
onTouchstart: r[2] || (r[2] = //@ts-ignore
|
|
7927
7929
|
(...d) => i(o).As.eStop && i(o).As.eStop(...d))
|
|
7928
7930
|
}, [
|
|
@@ -7930,7 +7932,7 @@ const Ct = {
|
|
|
7930
7932
|
class: "as-pop-tip-pop",
|
|
7931
7933
|
id: "pop" + t.id,
|
|
7932
7934
|
style: Z(i(n).pop[e.id].popstyle),
|
|
7933
|
-
onPointerdown: r[0] || (r[0] =
|
|
7935
|
+
onPointerdown: r[0] || (r[0] = V(() => {
|
|
7934
7936
|
}, ["stop"]))
|
|
7935
7937
|
}, [
|
|
7936
7938
|
R(l.$slots, "pop", {}, () => [
|
|
@@ -7941,13 +7943,13 @@ const Ct = {
|
|
|
7941
7943
|
])) : F("", !0)
|
|
7942
7944
|
], 2));
|
|
7943
7945
|
}
|
|
7944
|
-
}),
|
|
7946
|
+
}), Ed = /* @__PURE__ */ B(Id, [["__scopeId", "data-v-f1bf172c"]]), Dd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7945
7947
|
__proto__: null,
|
|
7946
|
-
default:
|
|
7948
|
+
default: Ed
|
|
7947
7949
|
}, Symbol.toStringTag, { value: "Module" })), Rd = {
|
|
7948
7950
|
key: 0,
|
|
7949
7951
|
class: "as-pop-tipconfirm-pop"
|
|
7950
|
-
}, Fd = { class: "as-pop-tipconfirm-content" }, Wd = { class: "as-pop-tipconfirm-btns" },
|
|
7952
|
+
}, Fd = { class: "as-pop-tipconfirm-content" }, Wd = { class: "as-pop-tipconfirm-btns" }, Hd = /* @__PURE__ */ C({
|
|
7951
7953
|
__name: "PopTipConfirm",
|
|
7952
7954
|
props: {
|
|
7953
7955
|
ujt: {},
|
|
@@ -7964,10 +7966,10 @@ const Ct = {
|
|
|
7964
7966
|
ujt: t.ujt,
|
|
7965
7967
|
id: t.id
|
|
7966
7968
|
}, {
|
|
7967
|
-
des:
|
|
7969
|
+
des: re(() => [
|
|
7968
7970
|
R(o.$slots, "des", {}, void 0, !0)
|
|
7969
7971
|
]),
|
|
7970
|
-
pop:
|
|
7972
|
+
pop: re(() => [
|
|
7971
7973
|
i(n).pop[t.id].stat ? (p(), m("div", Rd, [
|
|
7972
7974
|
u("div", Fd, [
|
|
7973
7975
|
R(o.$slots, "pop", {}, void 0, !0)
|
|
@@ -7988,9 +7990,9 @@ const Ct = {
|
|
|
7988
7990
|
}, 8, ["ujt", "id"]);
|
|
7989
7991
|
};
|
|
7990
7992
|
}
|
|
7991
|
-
}),
|
|
7993
|
+
}), Vd = /* @__PURE__ */ B(Hd, [["__scopeId", "data-v-526e2ae5"]]), qd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7992
7994
|
__proto__: null,
|
|
7993
|
-
default:
|
|
7995
|
+
default: Vd
|
|
7994
7996
|
}, Symbol.toStringTag, { value: "Module" })), Bd = {
|
|
7995
7997
|
key: 0,
|
|
7996
7998
|
class: "as-usercard"
|
|
@@ -8119,7 +8121,7 @@ const Ct = {
|
|
|
8119
8121
|
u("div", null, v(i(a).lg("channeluser.data.us")) + ":", 1),
|
|
8120
8122
|
se(" " + v(i(n).channeluser.cur.us), 1)
|
|
8121
8123
|
]),
|
|
8122
|
-
i(n).channeluser.cur.lv < i(o).user?.info?.lv || i(n).channeluser.cur.us === i(o).user?.info?.us ? (p(), m(
|
|
8124
|
+
i(n).channeluser.cur.lv < i(o).user?.info?.lv || i(n).channeluser.cur.us === i(o).user?.info?.us ? (p(), m(E, { key: 0 }, [
|
|
8123
8125
|
u("label", null, [
|
|
8124
8126
|
u("div", null, v(i(a).lg("channeluser.data.pw")) + ":", 1),
|
|
8125
8127
|
G(u("input", {
|
|
@@ -8134,7 +8136,7 @@ const Ct = {
|
|
|
8134
8136
|
G(u("select", {
|
|
8135
8137
|
"onUpdate:modelValue": c[1] || (c[1] = (f) => i(n).channeluser.cur.lv = f)
|
|
8136
8138
|
}, [
|
|
8137
|
-
(p(!0), m(
|
|
8139
|
+
(p(!0), m(E, null, ee(i(r), (f) => (p(), m("option", {
|
|
8138
8140
|
key: "lv" + f[0],
|
|
8139
8141
|
value: +f[0]
|
|
8140
8142
|
}, v(f[1]), 9, up))), 128))
|
|
@@ -8149,7 +8151,7 @@ const Ct = {
|
|
|
8149
8151
|
}, v(i(a).lg("channeluser.ui.edit")), 33),
|
|
8150
8152
|
R(d.$slots, "btn")
|
|
8151
8153
|
])
|
|
8152
|
-
], 64)) : (p(), m(
|
|
8154
|
+
], 64)) : (p(), m(E, { key: 1 }, [
|
|
8153
8155
|
u("div", pp, v(i(a).lg("channeluser.ui.nopower")), 1),
|
|
8154
8156
|
u("div", fp, [
|
|
8155
8157
|
R(d.$slots, "btn")
|
|
@@ -8186,7 +8188,7 @@ const Ct = {
|
|
|
8186
8188
|
}), _p = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
8187
8189
|
__proto__: null,
|
|
8188
8190
|
default: bp
|
|
8189
|
-
}, Symbol.toStringTag, { value: "Module" })), $p = { class: "as-user-area-manage" }, kp = { class: "as-user" }, wp = { class: "as-user-list as-list-nth" }, jp = { class: "tit" }, xp = { class: "li" }, Sp = { class: "lis" }, Pp = { class: "btns" }, Cp = { class: "li" },
|
|
8191
|
+
}, Symbol.toStringTag, { value: "Module" })), $p = { class: "as-user-area-manage" }, kp = { class: "as-user" }, wp = { class: "as-user-list as-list-nth" }, jp = { class: "tit" }, xp = { class: "li" }, Sp = { class: "lis" }, Pp = { class: "btns" }, Cp = { class: "li" }, Ap = { class: "lis" }, Op = {
|
|
8190
8192
|
key: 0,
|
|
8191
8193
|
class: "btns"
|
|
8192
8194
|
}, Mp = ["onPointerdown"], Tp = ["onPointerdown"], zp = {
|
|
@@ -8214,19 +8216,19 @@ const Ct = {
|
|
|
8214
8216
|
}
|
|
8215
8217
|
const f = q(() => (o?.channeluser?.list || []).filter((h) => +h?.lv <= +a.user?.info?.lv));
|
|
8216
8218
|
return (h, g) => {
|
|
8217
|
-
const
|
|
8218
|
-
return p(), m(
|
|
8219
|
+
const b = U("UserEditManage"), $ = U("PopBox"), y = U("ChannelListSearch"), _ = U("ChannelListPage");
|
|
8220
|
+
return p(), m(E, null, [
|
|
8219
8221
|
W($, {
|
|
8220
8222
|
ujt: t.ujt,
|
|
8221
8223
|
id: "popedituser",
|
|
8222
8224
|
full: 1
|
|
8223
8225
|
}, {
|
|
8224
|
-
default:
|
|
8225
|
-
i(a).pop.popedituser.stat ? (p(), X(
|
|
8226
|
+
default: re(() => [
|
|
8227
|
+
i(a).pop.popedituser.stat ? (p(), X(b, {
|
|
8226
8228
|
key: 0,
|
|
8227
8229
|
ujt: t.ujt
|
|
8228
8230
|
}, {
|
|
8229
|
-
btn:
|
|
8231
|
+
btn: re(() => [
|
|
8230
8232
|
u("div", {
|
|
8231
8233
|
onPointerdown: g[0] || (g[0] = (k) => i(a).pop.popedituser.stat = 0)
|
|
8232
8234
|
}, v(i(n).lg("asai.close")), 33)
|
|
@@ -8251,21 +8253,21 @@ const Ct = {
|
|
|
8251
8253
|
u("div", Sp, v(i(a).lang.channeluser.data.lv), 1),
|
|
8252
8254
|
u("div", Pp, v(i(a).lang.asai.opt), 1)
|
|
8253
8255
|
]),
|
|
8254
|
-
(p(!0), m(
|
|
8256
|
+
(p(!0), m(E, null, ee(f.value, (k) => (p(), m("div", null, [
|
|
8255
8257
|
u("div", Cp, v(k.us), 1),
|
|
8256
|
-
u("div",
|
|
8257
|
-
+k.lv < i(a).user?.info?.lv ? (p(), m("div",
|
|
8258
|
+
u("div", Ap, v(i(a).lang.channeluser.lv[k.lv]), 1),
|
|
8259
|
+
+k.lv < i(a).user?.info?.lv ? (p(), m("div", Op, [
|
|
8258
8260
|
u("div", {
|
|
8259
|
-
onPointerdown: (
|
|
8261
|
+
onPointerdown: (O) => c(k)
|
|
8260
8262
|
}, v(i(n).lg("channeluser.ui.edit")), 41, Mp),
|
|
8261
8263
|
u("div", {
|
|
8262
|
-
onPointerdown: (
|
|
8264
|
+
onPointerdown: (O) => d(k)
|
|
8263
8265
|
}, v(i(n).lg("channeluser.ui.del")), 41, Tp)
|
|
8264
8266
|
])) : (p(), m("div", zp, "-"))
|
|
8265
8267
|
]))), 256))
|
|
8266
8268
|
]),
|
|
8267
8269
|
i(o).channeluser?.cmPageList?.length > 1 ? (p(), m("div", Lp, [
|
|
8268
|
-
W(
|
|
8270
|
+
W(_, {
|
|
8269
8271
|
ujt: t.ujt,
|
|
8270
8272
|
opt: { channel: "channeluser", model: "asai", ty: 1 }
|
|
8271
8273
|
}, null, 8, ["ujt"])
|
|
@@ -8275,17 +8277,17 @@ const Ct = {
|
|
|
8275
8277
|
], 64);
|
|
8276
8278
|
};
|
|
8277
8279
|
}
|
|
8278
|
-
}),
|
|
8280
|
+
}), Ip = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
8279
8281
|
__proto__: null,
|
|
8280
8282
|
default: Up
|
|
8281
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
8283
|
+
}, Symbol.toStringTag, { value: "Module" })), Ep = { class: "as-user-area" }, Dp = { class: "as-user" }, Rp = { class: "as-user-btns" }, Fp = /* @__PURE__ */ C({
|
|
8282
8284
|
__name: "UserLogin",
|
|
8283
8285
|
props: {
|
|
8284
8286
|
ujt: {}
|
|
8285
8287
|
},
|
|
8286
8288
|
setup(t) {
|
|
8287
8289
|
const e = t, { $db: n, $fn: o, $global: a } = e.ujt, { userLogin: s } = o.useUser(e);
|
|
8288
|
-
return (l, r) => (p(), m("div",
|
|
8290
|
+
return (l, r) => (p(), m("div", Ep, [
|
|
8289
8291
|
u("div", Dp, [
|
|
8290
8292
|
R(l.$slots, "tit"),
|
|
8291
8293
|
R(l.$slots, "form", {
|
|
@@ -8322,7 +8324,7 @@ const Ct = {
|
|
|
8322
8324
|
}), Wp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
8323
8325
|
__proto__: null,
|
|
8324
8326
|
default: Fp
|
|
8325
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
8327
|
+
}, Symbol.toStringTag, { value: "Module" })), Hp = { class: "as-user-btns" }, Vp = /* @__PURE__ */ C({
|
|
8326
8328
|
__name: "UserManage",
|
|
8327
8329
|
props: {
|
|
8328
8330
|
ujt: {},
|
|
@@ -8336,18 +8338,18 @@ const Ct = {
|
|
|
8336
8338
|
}
|
|
8337
8339
|
return (r, d) => {
|
|
8338
8340
|
const c = U("UserRegManage"), f = U("PopBox"), h = U("UserListManage");
|
|
8339
|
-
return p(), m(
|
|
8341
|
+
return p(), m(E, null, [
|
|
8340
8342
|
W(f, {
|
|
8341
8343
|
ujt: t.ujt,
|
|
8342
8344
|
id: "popadduser",
|
|
8343
8345
|
full: 1
|
|
8344
8346
|
}, {
|
|
8345
|
-
default:
|
|
8347
|
+
default: re(() => [
|
|
8346
8348
|
i(a).pop.popadduser?.stat ? (p(), X(c, {
|
|
8347
8349
|
key: 0,
|
|
8348
8350
|
ujt: t.ujt
|
|
8349
8351
|
}, {
|
|
8350
|
-
btn:
|
|
8352
|
+
btn: re(() => [
|
|
8351
8353
|
u("div", {
|
|
8352
8354
|
onPointerdown: d[0] || (d[0] = (g) => i(a).pop.popadduser.stat = 0)
|
|
8353
8355
|
}, v(i(n).lg("asai.close")), 33)
|
|
@@ -8362,8 +8364,8 @@ const Ct = {
|
|
|
8362
8364
|
ujt: t.ujt,
|
|
8363
8365
|
showtype: t.showtype
|
|
8364
8366
|
}, _t({
|
|
8365
|
-
btn:
|
|
8366
|
-
u("div",
|
|
8367
|
+
btn: re(() => [
|
|
8368
|
+
u("div", Hp, [
|
|
8367
8369
|
u("div", {
|
|
8368
8370
|
class: "cur",
|
|
8369
8371
|
onPointerdown: d[1] || (d[1] = (g) => l())
|
|
@@ -8382,7 +8384,7 @@ const Ct = {
|
|
|
8382
8384
|
}, [
|
|
8383
8385
|
t.showtype ? void 0 : {
|
|
8384
8386
|
name: "tit",
|
|
8385
|
-
fn:
|
|
8387
|
+
fn: re(() => [
|
|
8386
8388
|
u("h1", null, v(i(n).lg("channeluser.ui.list")), 1)
|
|
8387
8389
|
]),
|
|
8388
8390
|
key: "0"
|
|
@@ -8393,7 +8395,7 @@ const Ct = {
|
|
|
8393
8395
|
}
|
|
8394
8396
|
}), qp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
8395
8397
|
__proto__: null,
|
|
8396
|
-
default:
|
|
8398
|
+
default: Vp
|
|
8397
8399
|
}, Symbol.toStringTag, { value: "Module" })), Bp = { class: "as-user-area" }, Np = { class: "as-user" }, Yp = { class: "as-user-btns" }, Xp = /* @__PURE__ */ C({
|
|
8398
8400
|
__name: "UserReg",
|
|
8399
8401
|
props: {
|
|
@@ -8468,7 +8470,7 @@ const Ct = {
|
|
|
8468
8470
|
G(u("select", {
|
|
8469
8471
|
"onUpdate:modelValue": r[2] || (r[2] = (d) => i(n).channeluser.cur.lv = d)
|
|
8470
8472
|
}, [
|
|
8471
|
-
(p(!0), m(
|
|
8473
|
+
(p(!0), m(E, null, ee(i(s), (d) => (p(), m("option", {
|
|
8472
8474
|
key: "lv" + d[0],
|
|
8473
8475
|
value: +d[0]
|
|
8474
8476
|
}, v(d[1]), 9, Zp))), 128))
|
|
@@ -8498,14 +8500,14 @@ const Ct = {
|
|
|
8498
8500
|
"./asdirectives/v-dbpointerdown/index.ts": kt,
|
|
8499
8501
|
"./asdirectives/v-drag/index.ts": jt,
|
|
8500
8502
|
"./asdirectives/v-dragzoom/index.ts": St,
|
|
8501
|
-
"./asdirectives/v-fullscreen/index.ts":
|
|
8503
|
+
"./asdirectives/v-fullscreen/index.ts": At,
|
|
8502
8504
|
"./asdirectives/v-keyboard/index.ts": Mt,
|
|
8503
8505
|
"./asdirectives/v-levelread/index.ts": zt,
|
|
8504
8506
|
"./asdirectives/v-longpress/index.ts": Ut,
|
|
8505
|
-
"./asdirectives/v-popresizezoom/index.ts":
|
|
8507
|
+
"./asdirectives/v-popresizezoom/index.ts": Et,
|
|
8506
8508
|
"./asdirectives/v-resizeflexwidthzoom/index.ts": Rt,
|
|
8507
8509
|
"./asdirectives/v-scrollbottom/index.ts": Wt,
|
|
8508
|
-
"./asdirectives/v-userlevel/index.ts":
|
|
8510
|
+
"./asdirectives/v-userlevel/index.ts": Vt
|
|
8509
8511
|
})
|
|
8510
8512
|
}), e.loadts({
|
|
8511
8513
|
app: t,
|
|
@@ -8535,7 +8537,7 @@ const Ct = {
|
|
|
8535
8537
|
app: t,
|
|
8536
8538
|
eager: !0,
|
|
8537
8539
|
files: /* @__PURE__ */ Object.assign({
|
|
8538
|
-
"./asui/app/AsaiComponent.vue":
|
|
8540
|
+
"./asui/app/AsaiComponent.vue": On,
|
|
8539
8541
|
"./asui/app/AsaiInitPage.vue": Fn,
|
|
8540
8542
|
"./asui/app/AsaiWebItemDefault.vue": Yn,
|
|
8541
8543
|
"./asui/app/AsaiWebItemIndex.vue": Kn,
|
|
@@ -8544,7 +8546,7 @@ const Ct = {
|
|
|
8544
8546
|
"./asui/app/AsaiWebModuleIndex.vue": io,
|
|
8545
8547
|
"./asui/app/AsaiWebServer.vue": Tn,
|
|
8546
8548
|
"./asui/app/AsaiWebServerNode.vue": Ln,
|
|
8547
|
-
"./asui/app/AsaiWebServerUser.vue":
|
|
8549
|
+
"./asui/app/AsaiWebServerUser.vue": In,
|
|
8548
8550
|
"./asui/app/AsaiWebServerUserOnline.vue": uo,
|
|
8549
8551
|
"./asui/channel/ChannelAdd.vue": ho,
|
|
8550
8552
|
"./asui/channel/ChannelClass.vue": yo,
|
|
@@ -8559,7 +8561,7 @@ const Ct = {
|
|
|
8559
8561
|
"./asui/channel/ChannelOpt.vue": ba,
|
|
8560
8562
|
"./asui/channel/ChannelPos.vue": wa,
|
|
8561
8563
|
"./asui/channel/ChannelReg.vue": Pa,
|
|
8562
|
-
"./asui/channel/ChannelShow.vue":
|
|
8564
|
+
"./asui/channel/ChannelShow.vue": Oa,
|
|
8563
8565
|
"./asui/channel/ChannelUpDown.vue": za,
|
|
8564
8566
|
"./asui/chat/ChatRoom.vue": es,
|
|
8565
8567
|
"./asui/chat/ChatRoomOpt.vue": Ps,
|
|
@@ -8575,7 +8577,7 @@ const Ct = {
|
|
|
8575
8577
|
"./asui/common/ChangeLang.vue": ki,
|
|
8576
8578
|
"./asui/common/ChangeTheme.vue": xi,
|
|
8577
8579
|
"./asui/common/ImgUploadCut.vue": Li,
|
|
8578
|
-
"./asui/common/JsonEditor.vue":
|
|
8580
|
+
"./asui/common/JsonEditor.vue": Hi,
|
|
8579
8581
|
"./asui/common/JsonTree.vue": Gi,
|
|
8580
8582
|
"./asui/common/MenuShowFix.vue": ar,
|
|
8581
8583
|
"./asui/common/RouterMap.vue": rr,
|
|
@@ -8597,7 +8599,7 @@ const Ct = {
|
|
|
8597
8599
|
"./asui/form/AsaiUploadImgCut.vue": at,
|
|
8598
8600
|
"./asui/form/AsaiUploadImgCutPop.vue": st,
|
|
8599
8601
|
"./asui/formbase/AsfCheck.vue": $c,
|
|
8600
|
-
"./asui/formbase/AsfInput.vue":
|
|
8602
|
+
"./asui/formbase/AsfInput.vue": Oc,
|
|
8601
8603
|
"./asui/formbase/AsfSelect.vue": Rc,
|
|
8602
8604
|
"./asui/formbase/AsfTextarea.vue": qc,
|
|
8603
8605
|
"./asui/page/PageErr.vue": Jc,
|
|
@@ -8621,7 +8623,7 @@ const Ct = {
|
|
|
8621
8623
|
"./asui/user/UserEdit.vue": lp,
|
|
8622
8624
|
"./asui/user/UserEditManage.vue": hp,
|
|
8623
8625
|
"./asui/user/UserExit.vue": _p,
|
|
8624
|
-
"./asui/user/UserListManage.vue":
|
|
8626
|
+
"./asui/user/UserListManage.vue": Ip,
|
|
8625
8627
|
"./asui/user/UserLogin.vue": Wp,
|
|
8626
8628
|
"./asui/user/UserManage.vue": qp,
|
|
8627
8629
|
"./asui/user/UserReg.vue": Kp,
|