asai-vue-host 0.2.56 → 0.2.57
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/{AsaiInitPage-DgXqvFU2.mjs → AsaiInitPage-CyZi4FaH.mjs} +11 -32
- package/dist/AsaiWebServerNode-BOTvLJke.mjs +38 -0
- package/dist/AsaiWebServerUser-LaJmfssq.mjs +38 -0
- package/dist/AsaiWebServerUserOnline-Y4Vm60d6.mjs +38 -0
- package/dist/{PageErr-yoa4-vee.mjs → PageErr-D-sxK1Ej.mjs} +2 -2
- package/dist/PageLoadServer-_f8otQMk.mjs +33 -0
- package/dist/{PageLoadUserToken-B-M2qIWA.mjs → PageLoadUserToken-COisXxiM.mjs} +5 -5
- package/dist/{PageLoadUserTokenOnline-BXkSpE6U.mjs → PageLoadUserTokenOnline-C4poWeJs.mjs} +10 -10
- package/dist/asai-vue-host.css +1 -1
- package/dist/asai-vue-host.es.js +104 -104
- package/dist/asai-vue-host.umd.js +3 -3
- package/package.json +1 -1
- package/dist/AsaiWebServerNode-DGw4XSsC.mjs +0 -34
- package/dist/AsaiWebServerUser-D5LFY5_v.mjs +0 -34
- package/dist/AsaiWebServerUserOnline-HH2IjFtz.mjs +0 -34
- package/dist/PageLoadServer-CUq5nJdZ.mjs +0 -33
|
@@ -10,18 +10,13 @@ const L = /* @__PURE__ */ E({
|
|
|
10
10
|
b.appmodules = a.appmodules;
|
|
11
11
|
function m() {
|
|
12
12
|
let e = s.As?.localGet("as-user-code");
|
|
13
|
-
e && (e = s.As.toObj(e), r.code.pri = e[0], r.code.pub = e[1]), r.code.pri && s.As.localGet("as-user-info") && (r.user.info = s.As.toObj(
|
|
14
|
-
s.AsAES.dec(s.As.localGet("as-user-info"))
|
|
15
|
-
)), s.inittoken();
|
|
13
|
+
e && (e = s.As.toObj(e), r.code.pri = e[0], r.code.pub = e[1]), r.code.pri && s.As.localGet("as-user-info") && (r.user.info = s.As.toObj(s.AsAES.dec(s.As.localGet("as-user-info")))), s.inittoken();
|
|
16
14
|
}
|
|
17
15
|
function w() {
|
|
18
|
-
r?.sys?.onwebws && s.ws.web.wsWatch(
|
|
19
|
-
|
|
20
|
-
(e)
|
|
21
|
-
|
|
22
|
-
}) : e?.db?.bs ? j(e.db.bs) : e?.db?.con && r.msg.fn(e.db);
|
|
23
|
-
}
|
|
24
|
-
);
|
|
16
|
+
r?.sys?.onwebws && s.ws.web.wsWatch({ ty: "publish/web" }, (e) => {
|
|
17
|
+
e?.db?.exit && s.exit(), e?.db?.lang && (e.db.langpm ? e.db.con = s.lg("asai.hostmsg." + e.db.lang, e.db.langpm) || e.db.con : e.db.con = s.lg("asai.hostmsg." + e.db.lang) || e.db.con), e?.db === "pong" ? s.ws.web.wsApi("ping").then((n) => {
|
|
18
|
+
}) : e?.db?.bs ? j(e.db.bs) : e?.db?.con && r.msg.fn(e.db);
|
|
19
|
+
});
|
|
25
20
|
}
|
|
26
21
|
function j(e) {
|
|
27
22
|
if (Array.isArray(e) && e[0]?.[0])
|
|
@@ -32,15 +27,7 @@ const L = /* @__PURE__ */ E({
|
|
|
32
27
|
} catch {
|
|
33
28
|
}
|
|
34
29
|
}
|
|
35
|
-
r.rlv = S(() => !r.location.hash || r.location.hash == "/" || r.sys?.router?.rights?.lv0?.find(
|
|
36
|
-
(e) => r.location.hash.includes(e)
|
|
37
|
-
) ? 0 : r.sys?.router?.rights?.lv1?.find(
|
|
38
|
-
(e) => r.location.hash.includes(e)
|
|
39
|
-
) ? 1 : r.sys?.router?.rights?.lv2?.find(
|
|
40
|
-
(e) => r.location.hash.includes(e)
|
|
41
|
-
) ? 2 : r.sys?.router?.rights?.lv3?.find(
|
|
42
|
-
(e) => r.location.hash.includes(e)
|
|
43
|
-
) ? 3 : r.sys?.router?.config?.lv);
|
|
30
|
+
r.rlv = S(() => !r.location.hash || r.location.hash == "/" || r.sys?.router?.rights?.lv0?.find((e) => r.location.hash.includes(e)) ? 0 : r.sys?.router?.rights?.lv1?.find((e) => r.location.hash.includes(e)) ? 1 : r.sys?.router?.rights?.lv2?.find((e) => r.location.hash.includes(e)) ? 2 : r.sys?.router?.rights?.lv3?.find((e) => r.location.hash.includes(e)) ? 3 : r.sys?.router?.config?.lv || 0);
|
|
44
31
|
function h(e, n) {
|
|
45
32
|
try {
|
|
46
33
|
console.error(n + " Error:", e);
|
|
@@ -61,15 +48,13 @@ const L = /* @__PURE__ */ E({
|
|
|
61
48
|
return C(() => {
|
|
62
49
|
s.initweb(g).then(() => {
|
|
63
50
|
let e = [];
|
|
64
|
-
if (s?.useApi?.(a.ujt, "web"), r?.sys?.tyrobot && (s.useApi(a.ujt, r.sys.tyrobot), s.useWs(a.ujt, r.sys.tyrobot)), m(), r?.sys?.onwebws && (s.useWs(a.ujt, "web"), e.push(
|
|
65
|
-
s.ws.web
|
|
51
|
+
if (s?.useApi?.(a.ujt, "web"), r?.sys?.tyrobot && (s.useApi?.(a.ujt, r.sys.tyrobot), s.useWs?.(a.ujt, r.sys.tyrobot)), m(), r?.sys?.onwebws && (s.useWs?.(a.ujt, "web"), e.push(
|
|
52
|
+
s.ws.web?.init?.().then(() => {
|
|
66
53
|
w();
|
|
67
54
|
})
|
|
68
55
|
)), r?.sys?.local?.lang || e.push(
|
|
69
56
|
s.initmodel("/sys/setting/settinglang.json").then((n) => {
|
|
70
|
-
typeof n?.data == "string" ? r.config.langcur = JSON.parse(
|
|
71
|
-
n?.data || "{}"
|
|
72
|
-
)?.lang : r.config.langcur = (n?.data || {})?.lang;
|
|
57
|
+
typeof n?.data == "string" ? r.config.langcur = JSON.parse(n?.data || "{}")?.lang : r.config.langcur = (n?.data || {})?.lang;
|
|
73
58
|
})
|
|
74
59
|
), r?.sys?.aes?.lv && !r.sys.aesfns && s.AsaiVueAES?.useAES) {
|
|
75
60
|
const { toAES: n, fromAES: t } = s.AsaiVueAES.useAES(a.ujt);
|
|
@@ -79,20 +64,14 @@ const L = /* @__PURE__ */ E({
|
|
|
79
64
|
s.changelang(r.config.langcur).then((n) => {
|
|
80
65
|
!window?.$CFG?.title && r.lang.configweb?.webtit && (document.title = r.lang.configweb?.webtit), r.stat.webclient = 1, r.sys.catcherror && (o.catchErrorUnhandledrejection = (l) => {
|
|
81
66
|
h(l, "Unhandledrejection");
|
|
82
|
-
}, window?.addEventListener?.(
|
|
83
|
-
"unhandledrejection",
|
|
84
|
-
o.catchErrorUnhandledrejection
|
|
85
|
-
), o.catchErrorCatch = (l) => {
|
|
67
|
+
}, window?.addEventListener?.("unhandledrejection", o.catchErrorUnhandledrejection), o.catchErrorCatch = (l) => {
|
|
86
68
|
h(l, "Catch");
|
|
87
69
|
}, window?.addEventListener?.("error", o.catchErrorCatch));
|
|
88
70
|
});
|
|
89
71
|
});
|
|
90
72
|
});
|
|
91
73
|
}), U(() => {
|
|
92
|
-
s.offweb(), r.sys.catcherror && (o.catchErrorUnhandledrejection && (window.removeEventListener(
|
|
93
|
-
"unhandledrejection",
|
|
94
|
-
o.catchErrorUnhandledrejection
|
|
95
|
-
), o.catchErrorUnhandledrejection = null), o.catchErrorCatch && (window.removeEventListener("error", o.catchErrorCatch), o.catchErrorCatch = null)), r?.sys?.onwebws || s.ws.web.wsWatchOff({
|
|
74
|
+
s.offweb(), r.sys.catcherror && (o.catchErrorUnhandledrejection && (window.removeEventListener("unhandledrejection", o.catchErrorUnhandledrejection), o.catchErrorUnhandledrejection = null), o.catchErrorCatch && (window.removeEventListener("error", o.catchErrorCatch), o.catchErrorCatch = null)), r?.sys?.onwebws || s.ws.web.wsWatchOff({
|
|
96
75
|
ty: "publish/web"
|
|
97
76
|
});
|
|
98
77
|
}), (e, n) => {
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { defineComponent as u, resolveComponent as i, createElementBlock as m, openBlock as t, normalizeClass as p, unref as a, createBlock as c, createCommentVNode as d, resolveDynamicComponent as b } from "vue";
|
|
2
|
+
import { _ as f } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
3
|
+
const h = /* @__PURE__ */ u({
|
|
4
|
+
__name: "AsaiWebServerNode",
|
|
5
|
+
props: {
|
|
6
|
+
ujt: {}
|
|
7
|
+
},
|
|
8
|
+
setup(n) {
|
|
9
|
+
const s = n, { $fn: o, $global: e } = s.ujt;
|
|
10
|
+
if (o.useChannelUser) {
|
|
11
|
+
const { initChannelUserToken: r } = o.useChannelUser({
|
|
12
|
+
ujt: s.ujt,
|
|
13
|
+
opt: { channel: e?.sys?.sysdb?.user?.channel || "channeluser" }
|
|
14
|
+
});
|
|
15
|
+
r().catch(() => {
|
|
16
|
+
o.login();
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
return (r, j) => {
|
|
20
|
+
const l = i("AsaiComponent");
|
|
21
|
+
return t(), m("div", {
|
|
22
|
+
id: "asaiwebservernode",
|
|
23
|
+
class: p("asaiweb asaiweb" + a(e).location?.hasharr?.[0])
|
|
24
|
+
}, [
|
|
25
|
+
a(e).code.pub ? (t(), c(l, {
|
|
26
|
+
key: 0,
|
|
27
|
+
ujt: n.ujt
|
|
28
|
+
}, null, 8, ["ujt"])) : a(e).pagebusy ? d("", !0) : (t(), c(b("PageLoadServer"), {
|
|
29
|
+
key: 1,
|
|
30
|
+
ujt: n.ujt
|
|
31
|
+
}, null, 8, ["ujt"]))
|
|
32
|
+
], 2);
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
}), v = /* @__PURE__ */ f(h, [["__scopeId", "data-v-fc74998b"]]);
|
|
36
|
+
export {
|
|
37
|
+
v as default
|
|
38
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { defineComponent as u, resolveComponent as i, createElementBlock as m, openBlock as s, normalizeClass as p, unref as t, createBlock as c, createCommentVNode as d, resolveDynamicComponent as h } from "vue";
|
|
2
|
+
import { _ as j } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
3
|
+
const C = /* @__PURE__ */ u({
|
|
4
|
+
__name: "AsaiWebServerUser",
|
|
5
|
+
props: {
|
|
6
|
+
ujt: {}
|
|
7
|
+
},
|
|
8
|
+
setup(n) {
|
|
9
|
+
const a = n, { $fn: o, $global: e } = a.ujt;
|
|
10
|
+
if (o.useChannelUser) {
|
|
11
|
+
const { initChannelUserToken: r } = o.useChannelUser({
|
|
12
|
+
ujt: a.ujt,
|
|
13
|
+
opt: { channel: e?.sys?.sysdb?.user?.channel || "channeluser" }
|
|
14
|
+
});
|
|
15
|
+
r().catch(() => {
|
|
16
|
+
o.login();
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
return (r, b) => {
|
|
20
|
+
const l = i("AsaiComponent");
|
|
21
|
+
return s(), m("div", {
|
|
22
|
+
id: "asaiwebserveruser",
|
|
23
|
+
class: p("asaiweb asaiweb" + t(e).location?.hasharr?.[0])
|
|
24
|
+
}, [
|
|
25
|
+
t(e).code.token ? (s(), c(l, {
|
|
26
|
+
key: 0,
|
|
27
|
+
ujt: n.ujt
|
|
28
|
+
}, null, 8, ["ujt"])) : t(e).pagebusy ? d("", !0) : (s(), c(h("PageLoadUserToken"), {
|
|
29
|
+
key: 1,
|
|
30
|
+
ujt: n.ujt
|
|
31
|
+
}, null, 8, ["ujt"]))
|
|
32
|
+
], 2);
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
}), k = /* @__PURE__ */ j(C, [["__scopeId", "data-v-d2483ecb"]]);
|
|
36
|
+
export {
|
|
37
|
+
k as default
|
|
38
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { defineComponent as i, resolveComponent as u, createElementBlock as m, openBlock as t, normalizeClass as p, unref as n, createBlock as c, createCommentVNode as d, resolveDynamicComponent as f } from "vue";
|
|
2
|
+
import { _ as h } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
3
|
+
const j = /* @__PURE__ */ i({
|
|
4
|
+
__name: "AsaiWebServerUserOnline",
|
|
5
|
+
props: {
|
|
6
|
+
ujt: {}
|
|
7
|
+
},
|
|
8
|
+
setup(o) {
|
|
9
|
+
const a = o, { $fn: s, $global: e } = a.ujt;
|
|
10
|
+
if (s.useChannelUser) {
|
|
11
|
+
const { initChannelUserOnline: r } = s.useChannelUser({
|
|
12
|
+
ujt: a.ujt,
|
|
13
|
+
opt: { channel: e?.sys?.sysdb?.user?.channel || "channeluser" }
|
|
14
|
+
});
|
|
15
|
+
r().catch(() => {
|
|
16
|
+
s.login();
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
return (r, C) => {
|
|
20
|
+
const l = u("AsaiComponent");
|
|
21
|
+
return t(), m("div", {
|
|
22
|
+
id: "asaiwebserveruseronline",
|
|
23
|
+
class: p("asaiweb asaiweb" + n(e).location?.hasharr?.[0])
|
|
24
|
+
}, [
|
|
25
|
+
n(e).code.token && n(e).user.online ? (t(), c(l, {
|
|
26
|
+
key: 0,
|
|
27
|
+
ujt: o.ujt
|
|
28
|
+
}, null, 8, ["ujt"])) : n(e).pagebusy ? d("", !0) : (t(), c(f("PageLoadUserTokenOnline"), {
|
|
29
|
+
key: 1,
|
|
30
|
+
ujt: o.ujt
|
|
31
|
+
}, null, 8, ["ujt"]))
|
|
32
|
+
], 2);
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
}), k = /* @__PURE__ */ h(j, [["__scopeId", "data-v-13dc3fec"]]);
|
|
36
|
+
export {
|
|
37
|
+
k as default
|
|
38
|
+
};
|
|
@@ -15,7 +15,7 @@ const c = { class: "as-load-area" }, p = ["src"], g = {
|
|
|
15
15
|
return (u, e) => (i(), r("div", c, [
|
|
16
16
|
t("img", {
|
|
17
17
|
onDblclick: e[0] || (e[0] = (a) => s()),
|
|
18
|
-
src: l(o).$CFG
|
|
18
|
+
src: l(o).$CFG?.logo,
|
|
19
19
|
width: "200"
|
|
20
20
|
}, null, 40, p),
|
|
21
21
|
e[2] || (e[2] = t("div", { class: "as-load-icon" }, [
|
|
@@ -28,7 +28,7 @@ const c = { class: "as-load-area" }, p = ["src"], g = {
|
|
|
28
28
|
class: "as-load-msg",
|
|
29
29
|
onClick: e[1] || (e[1] = (a) => l(o)?.location?.reload())
|
|
30
30
|
}, [
|
|
31
|
-
t("div", g, d(l(o).$GYS
|
|
31
|
+
t("div", g, d(l(o).$GYS?.$webmodel?.lang?.[l(o).$GYS?.$webmodel.lang.langty]?.pageerr), 1)
|
|
32
32
|
])
|
|
33
33
|
]));
|
|
34
34
|
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { defineComponent as u, resolveComponent as a, createElementBlock as _, openBlock as g, createElementVNode as e, unref as o, createVNode as l, toDisplayString as m } from "vue";
|
|
2
|
+
const p = { class: "as-load-area" }, v = ["src"], f = { class: "as-load-icon" }, j = { class: "as-load-msg" }, h = {
|
|
3
|
+
class: "tit",
|
|
4
|
+
style: { color: "var(--cy8)" }
|
|
5
|
+
}, $ = /* @__PURE__ */ u({
|
|
6
|
+
__name: "PageLoadServer",
|
|
7
|
+
props: {
|
|
8
|
+
ujt: {}
|
|
9
|
+
},
|
|
10
|
+
setup(t) {
|
|
11
|
+
const c = t, { $fn: i, $global: s } = c.ujt;
|
|
12
|
+
return (y, n) => {
|
|
13
|
+
const r = a("AsPageBusyGif"), d = a("AsReset");
|
|
14
|
+
return g(), _("div", p, [
|
|
15
|
+
e("img", {
|
|
16
|
+
onDblclick: n[0] || (n[0] = (A) => o(i).As.localInit()),
|
|
17
|
+
src: o(s).$cfg.logo,
|
|
18
|
+
width: "200"
|
|
19
|
+
}, null, 40, v),
|
|
20
|
+
e("div", f, [
|
|
21
|
+
l(r, { ujt: t.ujt }, null, 8, ["ujt"])
|
|
22
|
+
]),
|
|
23
|
+
e("div", j, [
|
|
24
|
+
e("div", h, m(o(s).lang.asai?.page?.loadserver || "Loading server..."), 1),
|
|
25
|
+
l(d, { ujt: t.ujt }, null, 8, ["ujt"])
|
|
26
|
+
])
|
|
27
|
+
]);
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
export {
|
|
32
|
+
$ as default
|
|
33
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as u, resolveComponent as a, createElementBlock as _, openBlock as
|
|
2
|
-
const p = { class: "as-load-area" }, f = ["src"], j = { class: "as-load-icon" }, v = { class: "as-load-msg" },
|
|
1
|
+
import { defineComponent as u, resolveComponent as a, createElementBlock as _, openBlock as g, createElementVNode as t, unref as o, createVNode as l, toDisplayString as m } from "vue";
|
|
2
|
+
const p = { class: "as-load-area" }, f = ["src"], j = { class: "as-load-icon" }, v = { class: "as-load-msg" }, k = {
|
|
3
3
|
class: "tit",
|
|
4
4
|
style: { color: "var(--cz8)" }
|
|
5
5
|
}, B = /* @__PURE__ */ u({
|
|
@@ -9,9 +9,9 @@ const p = { class: "as-load-area" }, f = ["src"], j = { class: "as-load-icon" },
|
|
|
9
9
|
},
|
|
10
10
|
setup(e) {
|
|
11
11
|
const c = e, { $fn: i, $global: s } = c.ujt;
|
|
12
|
-
return (
|
|
12
|
+
return (h, n) => {
|
|
13
13
|
const r = a("AsPageBusyGif"), d = a("AsReset");
|
|
14
|
-
return
|
|
14
|
+
return g(), _("div", p, [
|
|
15
15
|
t("img", {
|
|
16
16
|
onDblclick: n[0] || (n[0] = (A) => o(i).As.localInit()),
|
|
17
17
|
src: o(s).$cfg.logo,
|
|
@@ -21,7 +21,7 @@ const p = { class: "as-load-area" }, f = ["src"], j = { class: "as-load-icon" },
|
|
|
21
21
|
l(r, { ujt: e.ujt }, null, 8, ["ujt"])
|
|
22
22
|
]),
|
|
23
23
|
t("div", v, [
|
|
24
|
-
t("div",
|
|
24
|
+
t("div", k, m(o(s).lang.asai?.page?.loadusertoken || "Loading user token..."), 1),
|
|
25
25
|
l(d, { ujt: e.ujt }, null, 8, ["ujt"])
|
|
26
26
|
])
|
|
27
27
|
]);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as u, resolveComponent as l, createElementBlock as _, openBlock as
|
|
1
|
+
import { defineComponent as u, resolveComponent as l, createElementBlock as _, openBlock as g, createElementVNode as e, unref as t, createVNode as a, toDisplayString as m } from "vue";
|
|
2
2
|
const p = { class: "as-load-area" }, f = ["src"], j = { class: "as-load-icon" }, v = { class: "as-load-msg" }, h = {
|
|
3
3
|
class: "tit",
|
|
4
4
|
style: { color: "var(--cy8)" }
|
|
@@ -7,22 +7,22 @@ const p = { class: "as-load-area" }, f = ["src"], j = { class: "as-load-icon" },
|
|
|
7
7
|
props: {
|
|
8
8
|
ujt: {}
|
|
9
9
|
},
|
|
10
|
-
setup(
|
|
11
|
-
const c =
|
|
12
|
-
return (
|
|
10
|
+
setup(o) {
|
|
11
|
+
const c = o, { $fn: i, $global: s } = c.ujt;
|
|
12
|
+
return (k, n) => {
|
|
13
13
|
const r = l("AsPageBusyGif"), d = l("AsReset");
|
|
14
|
-
return
|
|
14
|
+
return g(), _("div", p, [
|
|
15
15
|
e("img", {
|
|
16
|
-
onDblclick: n[0] || (n[0] = (
|
|
17
|
-
src:
|
|
16
|
+
onDblclick: n[0] || (n[0] = (y) => t(i).As.localInit()),
|
|
17
|
+
src: t(s).$cfg.logo,
|
|
18
18
|
width: "200"
|
|
19
19
|
}, null, 40, f),
|
|
20
20
|
e("div", j, [
|
|
21
|
-
a(r, { ujt:
|
|
21
|
+
a(r, { ujt: o.ujt }, null, 8, ["ujt"])
|
|
22
22
|
]),
|
|
23
23
|
e("div", v, [
|
|
24
|
-
e("div", h,
|
|
25
|
-
a(d, { ujt:
|
|
24
|
+
e("div", h, m(t(s).lang.asai?.page?.loaduseronline || "Loading user token online..."), 1),
|
|
25
|
+
a(d, { ujt: o.ujt }, null, 8, ["ujt"])
|
|
26
26
|
])
|
|
27
27
|
]);
|
|
28
28
|
};
|
package/dist/asai-vue-host.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@charset "UTF-8";.app-area[data-v-bba548d2]{display:flex;flex-direction:column;height:calc(100% - 60px);padding:20px}.app-area .app-menu-area[data-v-bba548d2]{flex-grow:1;display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:20px;padding:20px;align-content:flex-start;overflow-y:auto;max-height:100%;scrollbar-width:thin;scrollbar-color:var(--cv5) var(--cv1)}.app-area .app-menu-area[data-v-bba548d2]::-webkit-scrollbar{width:8px}.app-area .app-menu-area[data-v-bba548d2]::-webkit-scrollbar-track{background:var(--cv1);border-radius:4px}.app-area .app-menu-area[data-v-bba548d2]::-webkit-scrollbar-thumb{background-color:var(--cv5);border-radius:4px}.app-area .app-menu-area .module[data-v-bba548d2]{background:var(--cu6)!important;color:var(--cr0)!important}.app-area .app-menu-area .app-menu[data-v-bba548d2]{display:flex;align-items:center;justify-content:center;min-height:var(--sa1);background:linear-gradient(135deg,var(--cv0) 0%,var(--cv1) 100%);color:var(--cv8);border-radius:12px;cursor:pointer;transition:all .3s ease;box-shadow:0 4px 6px #0000001a;padding:var(--sa0);position:relative;overflow:hidden}.app-area .app-menu-area .app-menu[data-v-bba548d2]:before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background:#ffffff1a;opacity:0;transition:opacity .3s ease}.app-area .app-menu-area .app-menu[data-v-bba548d2]:hover{transform:translateY(-5px);box-shadow:0 12px 20px #00000026}.app-area .app-menu-area .app-menu[data-v-bba548d2]:hover:before{opacity:1}.app-area .app-menu-area .app-menu[data-v-bba548d2]:active{transform:translateY(0)}.app-area .app-menu-area .app-menu .menu-text[data-v-bba548d2]{font-size:var(--sa0);font-weight:500;text-align:center;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;direction:rtl;padding:0 10px}.app-area .app-logo[data-v-bba548d2]{height:auto;padding:20px 10px;display:flex;justify-content:center}.app-area .app-logo img[data-v-bba548d2]{max-width:100%;height:auto}.app-area .app-login[data-v-bba548d2]{height:auto;padding:20px 10px;display:flex;justify-content:flex-end}@media (max-width: 768px){.app-area .app-menu-area[data-v-bba548d2]{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:15px;padding:15px}.app-area .app-menu-area .app-menu[data-v-bba548d2]{min-height:70px}.app-area .app-menu-area .app-menu .menu-text[data-v-bba548d2]{font-size:var(--sa0)}}@media (max-width: 480px){.app-area[data-v-bba548d2]{padding:10px}.app-area .app-menu-area[data-v-bba548d2]{grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:10px;padding:10px}.app-area .app-menu-area .app-menu[data-v-bba548d2]{min-height:60px;padding:10px}.app-area .app-menu-area .app-menu .menu-text[data-v-bba548d2]{font-size:var(--sa0)}}#asaiwebserver[data-v-7d8d7f46]{width:100%;height:100%;overflow:hidden}#asaiwebservernode[data-v-
|
|
1
|
+
@charset "UTF-8";.app-area[data-v-bba548d2]{display:flex;flex-direction:column;height:calc(100% - 60px);padding:20px}.app-area .app-menu-area[data-v-bba548d2]{flex-grow:1;display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:20px;padding:20px;align-content:flex-start;overflow-y:auto;max-height:100%;scrollbar-width:thin;scrollbar-color:var(--cv5) var(--cv1)}.app-area .app-menu-area[data-v-bba548d2]::-webkit-scrollbar{width:8px}.app-area .app-menu-area[data-v-bba548d2]::-webkit-scrollbar-track{background:var(--cv1);border-radius:4px}.app-area .app-menu-area[data-v-bba548d2]::-webkit-scrollbar-thumb{background-color:var(--cv5);border-radius:4px}.app-area .app-menu-area .module[data-v-bba548d2]{background:var(--cu6)!important;color:var(--cr0)!important}.app-area .app-menu-area .app-menu[data-v-bba548d2]{display:flex;align-items:center;justify-content:center;min-height:var(--sa1);background:linear-gradient(135deg,var(--cv0) 0%,var(--cv1) 100%);color:var(--cv8);border-radius:12px;cursor:pointer;transition:all .3s ease;box-shadow:0 4px 6px #0000001a;padding:var(--sa0);position:relative;overflow:hidden}.app-area .app-menu-area .app-menu[data-v-bba548d2]:before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background:#ffffff1a;opacity:0;transition:opacity .3s ease}.app-area .app-menu-area .app-menu[data-v-bba548d2]:hover{transform:translateY(-5px);box-shadow:0 12px 20px #00000026}.app-area .app-menu-area .app-menu[data-v-bba548d2]:hover:before{opacity:1}.app-area .app-menu-area .app-menu[data-v-bba548d2]:active{transform:translateY(0)}.app-area .app-menu-area .app-menu .menu-text[data-v-bba548d2]{font-size:var(--sa0);font-weight:500;text-align:center;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;direction:rtl;padding:0 10px}.app-area .app-logo[data-v-bba548d2]{height:auto;padding:20px 10px;display:flex;justify-content:center}.app-area .app-logo img[data-v-bba548d2]{max-width:100%;height:auto}.app-area .app-login[data-v-bba548d2]{height:auto;padding:20px 10px;display:flex;justify-content:flex-end}@media (max-width: 768px){.app-area .app-menu-area[data-v-bba548d2]{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:15px;padding:15px}.app-area .app-menu-area .app-menu[data-v-bba548d2]{min-height:70px}.app-area .app-menu-area .app-menu .menu-text[data-v-bba548d2]{font-size:var(--sa0)}}@media (max-width: 480px){.app-area[data-v-bba548d2]{padding:10px}.app-area .app-menu-area[data-v-bba548d2]{grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:10px;padding:10px}.app-area .app-menu-area .app-menu[data-v-bba548d2]{min-height:60px;padding:10px}.app-area .app-menu-area .app-menu .menu-text[data-v-bba548d2]{font-size:var(--sa0)}}#asaiwebserver[data-v-7d8d7f46]{width:100%;height:100%;overflow:hidden}#asaiwebservernode[data-v-fc74998b],#asaiwebserveruser[data-v-d2483ecb],#asaiwebserveruseronline[data-v-13dc3fec]{width:100%;height:100vh;overflow:hidden}.as-pagebusy-area[data-v-3b86e9a1]{cursor:not-allowed;display:flex;flex-direction:column;align-items:center;justify-content:center;width:100vw;height:100vh;background-color:#0000001a;position:fixed;inset:0;z-index:var(--v2189716e)}.as-pagebusy-area .as-pagebusy-close[data-v-3b86e9a1]{position:absolute;right:0;top:0;display:inline-block;width:10px;height:10px;cursor:none}.as-pagebusy-area .as-pagebusy[data-v-3b86e9a1]{display:inline-flex;justify-content:center;align-items:center;flex-direction:column;background-color:#ffffff4d;max-width:80%;padding:20px 40px;border-radius:20px;box-shadow:0 8px 24px #0000001a}.as-pagebusy-area .as-pagebusy .as-pagebusy-v[data-v-3b86e9a1]{padding-top:20px;color:var(--cu8);text-align:center}.as-load-gif[data-v-c5bf2081],.as-load-gif[data-v-c5bf2081]:after{border-top-color:var(--cv4);border-right-color:var(--cv6);border-bottom-color:var(--cv8)}.a3d-wrapper[data-v-4d1d2b0e]{perspective:1800px;width:calc(var(--cube-size) * 2);height:calc(var(--cube-size) * 2);display:inline-flex;justify-content:center;align-items:center;contain:layout paint;overflow:visible}.a3d[data-v-4d1d2b0e]{width:var(--cube-size);height:var(--cube-size);position:relative;transform-style:preserve-3d;transform-origin:center center;transform:translateZ(0) rotateX(20deg) rotateY(20deg);animation:a3d-rotate-4d1d2b0e 4s linear infinite;will-change:transform;backface-visibility:visible}.a3d-face[data-v-4d1d2b0e]{position:absolute;top:0;left:0;width:100%;height:100%;border-radius:8px;backface-visibility:visible;box-shadow:0 0 10px #0000000d inset}.a3d-face-front[data-v-4d1d2b0e]{transform:translateZ(var(--half-size));border:1px solid rgba(198,67,69,.85);background:linear-gradient(135deg,#c6434533,#c6434566)}.a3d-face-back[data-v-4d1d2b0e]{transform:translateZ(calc(-1 * var(--half-size))) rotateY(180deg);border:1px solid rgba(198,67,69,.85);background:linear-gradient(135deg,#c6434533,#c6434566)}.a3d-face-left[data-v-4d1d2b0e]{transform:translate(calc(-1 * var(--half-size))) rotateY(-90deg);border:1px solid rgba(76,198,72,.85);background:linear-gradient(135deg,#4cc64833,#4cc64866)}.a3d-face-right[data-v-4d1d2b0e]{transform:translate(var(--half-size)) rotateY(90deg);border:1px solid rgba(76,198,72,.85);background:linear-gradient(135deg,#4cc64833,#4cc64866)}.a3d-face-top[data-v-4d1d2b0e]{transform:translateY(calc(-1 * var(--half-size))) rotateX(90deg);border:1px solid rgba(109,136,233,.85);background:linear-gradient(135deg,#6d88e933,#6d88e966)}.a3d-face-bottom[data-v-4d1d2b0e]{transform:translateY(var(--half-size)) rotateX(-90deg);border:1px solid rgba(109,136,233,.85);background:linear-gradient(135deg,#6d88e933,#6d88e966)}@keyframes a3d-rotate-4d1d2b0e{0%{transform:rotateX(20deg) rotateY(20deg) rotate(0)}25%{transform:rotateX(110deg) rotateY(110deg) rotate(90deg)}50%{transform:rotateX(200deg) rotateY(200deg) rotate(180deg)}75%{transform:rotateX(290deg) rotateY(290deg) rotate(270deg)}to{transform:rotateX(380deg) rotateY(380deg) rotate(360deg)}}.as-usercard[data-v-a12ce8ac]{display:inline-flex}.as-usercard>div[data-v-a12ce8ac]{text-align:center;border:1px solid var(--cu4);color:var(--cu6);border-radius:var(--radius);margin:0 10px;padding:5px 12px;cursor:pointer}.as-usercard>div[data-v-a12ce8ac]:hover{background-color:var(--cu2)}.as-icon[data-v-d9bafe22]{line-height:0;display:inline-block}.as-icon .as-icon-filter[data-v-d9bafe22]{font-style:normal;overflow:hidden;display:inline-flex;align-items:center;justify-content:center}.as-icon .as-icon-filter>img[data-v-d9bafe22]{position:relative;display:inline-block}.as-icon .as-icon-mask[data-v-d9bafe22]{display:inline-block;mask-size:100% 100%;-webkit-mask-size:100% 100%;mask-position:center center;-webkit-mask-position:center center;mask-repeat:no-repeat;-webkit-mask-repeat:no-repeat;vertical-align:middle}.as-floating-menu[data-v-162e1725]{position:fixed;bottom:20px;left:20px;z-index:9999}.as-floating-button[data-v-162e1725]{background-color:var(--cu8);color:var(--cr0);border:none;border-radius:50%;width:40px;height:40px;font-size:var(--sa3);cursor:pointer;transition:background-color .3s ease}.as-floating-button[data-v-162e1725]:hover{background-color:var(--cv8);color:var(--cv0)}.as-floating-menus[data-v-162e1725]{font-size:var(--sa0);background-color:var(--cu8);color:var(--cr0);box-shadow:var(--shadow);border-radius:var(--radius);min-width:200px;max-width:calc(100vw - 120px);max-height:calc(100vh - 120px);list-style-type:none;margin:0;padding:0;position:fixed;bottom:66px;left:0;opacity:0;visibility:hidden;transform:translateY(-10px);transition:all .3s ease;overflow-y:auto}.as-floating-menus.open[data-v-162e1725]{opacity:1;visibility:visible;transform:translateY(0)}.as-floating-menus li[data-v-162e1725]{color:var(--cv0);padding:10px 20px;text-decoration:none;display:block;transition:color .3s ease;cursor:pointer}.as-floating-menus li.module[data-v-162e1725]{background-color:var(--cu6);color:var(--cr0)}.as-floating-menus li.active[data-v-162e1725],.as-floating-menus li[data-v-162e1725]:hover{background-color:var(--cv8);color:var(--cv0)}.as-floating-menus li.active[data-v-162e1725]{font-weight:700}.app-menu-area[data-v-6d15bb32]{display:block;width:100%}.app-menu-area .app-menu[data-v-6d15bb32]{display:inline-flex;align-items:center;justify-content:center;width:100px;height:80px;background-color:beige;margin:3px;cursor:pointer}.virtual-list-container[data-v-b613b7a8]{height:100%;overflow-y:auto;position:relative;contain:layout size;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;transform:translateZ(0);backface-visibility:hidden}.virtual-list-wrapper[data-v-b613b7a8]{position:relative;width:100%}.virtual-list-item[data-v-b613b7a8]{position:absolute;left:0;right:0;box-sizing:border-box;will-change:transform}.page-404[data-v-999cd3d9]{display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;height:100%;background-color:var(--cr0);color:var(--cu6);text-align:center}.page-404 .content[data-v-999cd3d9]{flex:1;display:flex;flex-direction:column;justify-content:center;align-items:center;max-width:600px;padding:20px}.page-404 .content .error-code[data-v-999cd3d9]{font-size:8rem;font-weight:800;line-height:1;margin-bottom:20px;color:var(--cv0);text-shadow:4px 4px 0 var(--cv6)}@media (max-width: 768px){.page-404 .content .error-code[data-v-999cd3d9]{font-size:6rem}}@media (max-width: 480px){.page-404 .content .error-code[data-v-999cd3d9]{font-size:4rem}}.page-404 .content .title[data-v-999cd3d9]{font-size:2rem;font-weight:600;margin-bottom:15px;color:var(--cu8)}@media (max-width: 768px){.page-404 .content .title[data-v-999cd3d9]{font-size:1.75rem}}.page-404 .content .description[data-v-999cd3d9]{font-size:1.1rem;margin-bottom:30px;color:var(--cu6);line-height:1.6}@media (max-width: 768px){.page-404 .content .description[data-v-999cd3d9]{font-size:1rem}}.page-404 .footer[data-v-999cd3d9]{margin-top:auto;padding:20px}
|
package/dist/asai-vue-host.es.js
CHANGED
|
@@ -144,20 +144,20 @@ const C = {
|
|
|
144
144
|
treeToMap(t, o = {}) {
|
|
145
145
|
const e = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map();
|
|
146
146
|
if (!t) return { nodeMap: e, depthMap: i };
|
|
147
|
-
const l = o.id || "id", c = o.ch || "ch", d = o.ft,
|
|
148
|
-
let n, s,
|
|
147
|
+
const l = o.id || "id", c = o.ch || "ch", d = o.ft, u = o.ftk, h = o.fty === 1, y = typeof d == "string" && d.length > 0 && u, $ = [{ [c]: t }], w = [0];
|
|
148
|
+
let n, s, a;
|
|
149
149
|
for (; $.length; ) {
|
|
150
|
-
if (n = $.pop(), s = w.pop(),
|
|
150
|
+
if (n = $.pop(), s = w.pop(), a = n[l], s > 0)
|
|
151
151
|
if (y) {
|
|
152
|
-
const
|
|
153
|
-
(h ? !p : p) && (e.set(
|
|
152
|
+
const f = n[u], p = typeof f == "string" && f.includes(d);
|
|
153
|
+
(h ? !p : p) && (e.set(a, n), i.set(a, s));
|
|
154
154
|
} else
|
|
155
|
-
e.set(
|
|
156
|
-
const
|
|
157
|
-
if (
|
|
158
|
-
const
|
|
159
|
-
for (let p =
|
|
160
|
-
$.push(
|
|
155
|
+
e.set(a, n), i.set(a, s);
|
|
156
|
+
const r = n[c];
|
|
157
|
+
if (r && r.length > 0) {
|
|
158
|
+
const f = s + 1;
|
|
159
|
+
for (let p = r.length - 1; p >= 0; p--)
|
|
160
|
+
$.push(r[p]), w.push(f);
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
163
|
return { nodeMap: e, depthMap: i };
|
|
@@ -245,8 +245,8 @@ const C = {
|
|
|
245
245
|
try {
|
|
246
246
|
const l = o.split(".");
|
|
247
247
|
let c = t;
|
|
248
|
-
for (let
|
|
249
|
-
const h = l[
|
|
248
|
+
for (let u = 0; u < l.length - 1; u++) {
|
|
249
|
+
const h = l[u];
|
|
250
250
|
if (c[h] === void 0 || typeof c[h] != "object" || c[h] === null)
|
|
251
251
|
if (i)
|
|
252
252
|
c[h] = {};
|
|
@@ -285,8 +285,8 @@ const C = {
|
|
|
285
285
|
let e = "", i;
|
|
286
286
|
o ? (typeof o == "string" && (o = Number(o)), o < 9999999999 ? o = o * 1e3 : o > 9999999999999 && (o = o / 1e3), i = new Date(o)) : i = /* @__PURE__ */ new Date();
|
|
287
287
|
const [l, c] = t > 9 ? t + "" : "0" + t;
|
|
288
|
-
function d(
|
|
289
|
-
return +l <=
|
|
288
|
+
function d(u) {
|
|
289
|
+
return +l <= u && +c >= u;
|
|
290
290
|
}
|
|
291
291
|
return d(1) && (e += ("00" + i.getFullYear()).slice(-4) + "-"), d(2) && (e += ("00" + (i.getMonth() + 1)).slice(-2) + "-"), d(3) && (e += ("00" + i.getDate()).slice(-2) + " "), d(4) && (e += ("00" + i.getHours()).slice(-2) + ":"), d(5) && (e += ("00" + i.getMinutes()).slice(-2) + ":"), d(6) && (e += ("00" + i.getSeconds()).slice(-2) + "."), d(7) && (e += ("000" + i.getMilliseconds()).slice(-3) + " "), d(9) ? e.replace(/\D/g, "") : e && e.substring(0, e.length - 1);
|
|
292
292
|
},
|
|
@@ -417,7 +417,7 @@ const C = {
|
|
|
417
417
|
default: L
|
|
418
418
|
}, Symbol.toStringTag, { value: "Module" })), P = {
|
|
419
419
|
// 保存监听器引用
|
|
420
|
-
webpath: window?.$CFG?.webpath || "
|
|
420
|
+
webpath: window?.$CFG?.webpath || "/",
|
|
421
421
|
_hashChangeListener: null,
|
|
422
422
|
_popstateListener: null,
|
|
423
423
|
initHash(t = {}) {
|
|
@@ -482,10 +482,10 @@ const C = {
|
|
|
482
482
|
default: P
|
|
483
483
|
}, Symbol.toStringTag, { value: "Module" })), x = (t) => {
|
|
484
484
|
const { $fn: o, $model: e, $db: i, $dbwork: l, $global: c } = t;
|
|
485
|
-
function d(
|
|
485
|
+
function d(u = "testkdd") {
|
|
486
486
|
const h = _("$vueProxy");
|
|
487
|
-
h?.$installplugs?.(
|
|
488
|
-
c?.sys?.local?.lang ?
|
|
487
|
+
h?.$installplugs?.(u), h?.["$engine" + u] && (Object.assign(o, h["$engine" + u]), h?.["$engineuse" + u] && Object.assign(o, h["$engineuse" + u])), e[u] || (e[u] = {}), l[u] || (l[u] = {}), i[u] || (i[u] = {}), o.setconfig = ($, w) => o.apisys.apiPost("/api/asaijson/manage/update/?path=./webclient/webmodel/sys/setting/" + $ + ".json", w), o.changelangpro = ($ = "") => o.changelang(c.config.langcur || $).then((w) => {
|
|
488
|
+
c?.sys?.local?.lang ? u && o.ws?.[u] && o.ws[u].wsSend({
|
|
489
489
|
id: "1",
|
|
490
490
|
ty: "common/setlanguage",
|
|
491
491
|
db: w
|
|
@@ -495,8 +495,8 @@ const C = {
|
|
|
495
495
|
});
|
|
496
496
|
const y = [o.initlang(c.config.langcur || "")];
|
|
497
497
|
return y.push(
|
|
498
|
-
o.initmodel(
|
|
499
|
-
$ && Object.assign(e[
|
|
498
|
+
o.initmodel(u + "/dirmodel.json").then(($) => {
|
|
499
|
+
$ && Object.assign(e[u], $);
|
|
500
500
|
})
|
|
501
501
|
), Promise.all(y);
|
|
502
502
|
}
|
|
@@ -547,35 +547,35 @@ const C = {
|
|
|
547
547
|
providefn: { data: { api: {}, ws: {}, wssys: null, workers: {} } }
|
|
548
548
|
}, I = (t = null) => {
|
|
549
549
|
const o = window;
|
|
550
|
-
Object.assign(A.providefn.data, t?.plugs || {});
|
|
550
|
+
Object.assign(A.providefn.data, t?.plugs || {}), o.$GYS || (o.$GYS = {});
|
|
551
551
|
const e = {
|
|
552
552
|
$db: D.providedb.data,
|
|
553
553
|
$dbwork: j.providedbwork.data,
|
|
554
554
|
$ws: F.providews.data,
|
|
555
555
|
$global: W.provideglobal.data,
|
|
556
|
-
$model: o.$GYS
|
|
556
|
+
$model: o.$GYS?.$webmodel || { webmodels: ["views", "webmain"] },
|
|
557
557
|
$fn: A.providefn.data
|
|
558
558
|
};
|
|
559
|
-
e.$global.$cfg = o.$CFG || {}, o.$GYS.ujt = e, e.$fn.lo = (...n) => {
|
|
559
|
+
e?.$model?.gysfn || (e.$model.gysfn = {}), e.$global.$cfg = o.$CFG || {}, o.$GYS.ujt = e, e.$fn.lo = (...n) => {
|
|
560
560
|
if (e.$global.sys?.onconsole) {
|
|
561
561
|
if (!n?.[0])
|
|
562
562
|
e.$model.gysfn.log();
|
|
563
563
|
else if (n.length > 0) {
|
|
564
|
-
let s = "",
|
|
564
|
+
let s = "", a = "", r = "";
|
|
565
565
|
if (n[1] && typeof n[1] == "string") {
|
|
566
|
-
const [
|
|
567
|
-
|
|
566
|
+
const [f, p, ...g] = n;
|
|
567
|
+
a = p, r = g, Array.isArray(n[0]) && n[0].length === 2 ? s = l(n[0][0], n[0][1], "12px") : typeof n[0] == "number" && (s = i(f, 12));
|
|
568
568
|
}
|
|
569
|
-
s ? console.log("%c" +
|
|
569
|
+
s ? console.log("%c" + a, s, ...r) : console.log(...n);
|
|
570
570
|
}
|
|
571
571
|
}
|
|
572
572
|
}, e.$model.gysfn.log = () => (console.log("%c$fn", i(6, 18), c(e.$fn), e.$fn), console.log("%c$model", i(5, 18), c(e.$model), e.$model), console.log("%c$global", i(4, 18), c(e.$global), e.$global), console.log("%c$ws", i(3, 18), c(e.$ws), e.$ws), console.log("%c$db", i(2, 18), c(e.$db), e.$db), console.log("%c$dbwork", i(1, 18), c(e.$dbwork), e.$dbwork), "Web Model Log。");
|
|
573
573
|
function i(n, s = 18) {
|
|
574
|
-
let
|
|
575
|
-
return n === 1 ?
|
|
574
|
+
let a = "";
|
|
575
|
+
return n === 1 ? a = l("black", "pink", s + "px") : n === 2 ? a = l("black", "cyan", s + "px") : n === 3 ? a = l("black", "yellow", s + "px") : n === 4 ? a = l("white", "blue", s + "px") : n === 5 ? a = l("white", "red", s + "px") : n === 6 ? a = l("white", "green", s + "px") : n === 7 && (a = l("white", "purple", s + "px")), a;
|
|
576
576
|
}
|
|
577
|
-
function l(n, s,
|
|
578
|
-
return "font-size:" +
|
|
577
|
+
function l(n, s, a = "18px") {
|
|
578
|
+
return "font-size:" + a + ";font-weight:bold;border-radius:20px;padding:0 10px;color:" + n + ";background-color:" + s + ";";
|
|
579
579
|
}
|
|
580
580
|
function c(n) {
|
|
581
581
|
try {
|
|
@@ -587,48 +587,48 @@ const C = {
|
|
|
587
587
|
function d(n = {}) {
|
|
588
588
|
e.$global.pop.popdefaultconfirm && (e.$global.pop.popdefaultconfirm.stat = 1, e.$global.pop.popdefaultconfirm.full = 1, e.$global.pop.popdefaultconfirm.notit = 1, Object.assign(e.$global.pop.popdefaultconfirm, n));
|
|
589
589
|
}
|
|
590
|
-
function
|
|
590
|
+
function u(n = {}) {
|
|
591
591
|
e.$global.pop.popdefaultconfirmpass && (e.$global.pop.popdefaultconfirmpass.stat = 1, e.$global.pop.popdefaultconfirmpass.full = 1, e.$global.pop.popdefaultconfirmpass.notit = 1, Object.assign(e.$global.pop.popdefaultconfirmpass, n));
|
|
592
592
|
}
|
|
593
|
-
e.$fn.popConfirm = d, e.$fn.popConfirmPass =
|
|
593
|
+
e.$fn.popConfirm = d, e.$fn.popConfirmPass = u, e.$fn.getWebPath = (n = "") => {
|
|
594
594
|
const s = e?.$global?.$cfg?.webpath || "./";
|
|
595
595
|
return n && !n.startsWith("http") && !n.startsWith(s) ? s + n : n;
|
|
596
596
|
};
|
|
597
597
|
const { fetchPublic: h } = e.$fn?.AsaiModel(e.$fn.getWebPath("webmodel/"));
|
|
598
598
|
e.$fn.initmodel = h, e.$fn.startLink = () => new Promise((n, s) => {
|
|
599
|
-
e.$fn.initmodel("sys/server.json").then((
|
|
600
|
-
const
|
|
601
|
-
["api", "ws"].forEach((
|
|
602
|
-
Object.keys(
|
|
603
|
-
let g =
|
|
604
|
-
g && typeof g == "string" && (g =
|
|
599
|
+
e.$fn.initmodel("sys/server.json").then((a) => {
|
|
600
|
+
const r = { api: {}, ws: {} };
|
|
601
|
+
["api", "ws"].forEach((f) => {
|
|
602
|
+
Object.keys(a?.[f] || {}).forEach((p) => {
|
|
603
|
+
let g = a[f][p];
|
|
604
|
+
g && typeof g == "string" && (g = r[f][g]), g || (g = a[f].default), r[f][p] = {
|
|
605
605
|
...g,
|
|
606
|
-
url: e.$fn.As.getUrlByCfg(g,
|
|
606
|
+
url: e.$fn.As.getUrlByCfg(g, f == "ws" ? 1 : 0)
|
|
607
607
|
};
|
|
608
608
|
});
|
|
609
|
-
}), e.$fn.As.localSet("as-link", JSON.stringify(
|
|
610
|
-
}).catch((
|
|
611
|
-
s(
|
|
609
|
+
}), e.$fn.As.localSet("as-link", JSON.stringify(r)), e.$global.link = r, n(e.$global.link);
|
|
610
|
+
}).catch((a) => {
|
|
611
|
+
s(a);
|
|
612
612
|
});
|
|
613
613
|
}), e.$fn.saveLink = (n) => {
|
|
614
614
|
e.$global.link = n, e.$fn.As.localSet("as-link", JSON.stringify(e.$global.link));
|
|
615
|
-
}, e.$fn.initLink = (n = 0) => new Promise((s,
|
|
615
|
+
}, e.$fn.initLink = (n = 0) => new Promise((s, a) => {
|
|
616
616
|
if (n)
|
|
617
|
-
e.$fn.startLink().then((
|
|
618
|
-
s(
|
|
619
|
-
}).catch((
|
|
620
|
-
r
|
|
617
|
+
e.$fn.startLink().then((r) => {
|
|
618
|
+
s(r);
|
|
619
|
+
}).catch((r) => {
|
|
620
|
+
a(r);
|
|
621
621
|
});
|
|
622
622
|
else {
|
|
623
|
-
let
|
|
624
|
-
|
|
625
|
-
s(
|
|
626
|
-
}).catch((
|
|
627
|
-
|
|
628
|
-
})) : e.$fn.startLink().then((
|
|
629
|
-
s(
|
|
630
|
-
}).catch((
|
|
631
|
-
|
|
623
|
+
let r = e.$fn.As.localGet("as-link");
|
|
624
|
+
r ? (e.$global.link = JSON.parse(r), e.$global.link?.api && e.$global.link?.ws && e.$global.link?.ws?.default ? s(e.$global.link) : e.$fn.startLink().then((f) => {
|
|
625
|
+
s(f);
|
|
626
|
+
}).catch((f) => {
|
|
627
|
+
a(f);
|
|
628
|
+
})) : e.$fn.startLink().then((f) => {
|
|
629
|
+
s(f);
|
|
630
|
+
}).catch((f) => {
|
|
631
|
+
a(f);
|
|
632
632
|
});
|
|
633
633
|
}
|
|
634
634
|
});
|
|
@@ -636,32 +636,32 @@ const C = {
|
|
|
636
636
|
e.$fn.lg = (n, s) => {
|
|
637
637
|
if (typeof n != "string" || !n)
|
|
638
638
|
return;
|
|
639
|
-
let
|
|
640
|
-
|
|
641
|
-
const
|
|
642
|
-
if (!s || s.length === 0) return
|
|
643
|
-
const
|
|
644
|
-
return
|
|
639
|
+
let a = y.get(n);
|
|
640
|
+
a || (a = n.split("."), y.set(n, a));
|
|
641
|
+
const r = a.reduce((g, b) => g?.[b], e.$global.lang);
|
|
642
|
+
if (!s || s.length === 0) return r;
|
|
643
|
+
const f = Array.isArray(s) ? s : [s];
|
|
644
|
+
return r?.replace($, (g, b) => {
|
|
645
645
|
const m = parseInt(b, 10) - 1;
|
|
646
|
-
return
|
|
646
|
+
return f[m] ?? g;
|
|
647
647
|
});
|
|
648
648
|
}, e.$fn.initlang = (n = "") => {
|
|
649
649
|
let s = "";
|
|
650
|
-
return e.$global?.sys?.local?.lang ? s = n || e.$fn.As.localGet(e.$global?.sys?.local?.lang) || e.$model.data
|
|
651
|
-
e.$fn.initmodel("lang/dirlang.json", s + "/").then((
|
|
652
|
-
Object.assign(e.$global.lang,
|
|
653
|
-
}).catch((
|
|
654
|
-
|
|
650
|
+
return e.$global?.sys?.local?.lang ? s = n || e.$fn.As.localGet(e.$global?.sys?.local?.lang) || e.$model.data?.sys?.settinglang?.lang || e.$model.data?.sys?.sysconfig?.lang[0] : s = n || e.$model.data?.sys?.settinglang?.lang || e.$model.data?.sys?.sysconfig?.lang[0], e.$global?.lang || (e.$global.lang = {}), new Promise((a, r) => {
|
|
651
|
+
e.$fn.initmodel("lang/dirlang.json", s + "/").then((f) => {
|
|
652
|
+
Object.assign(e.$global.lang, f), a(e.$global.lang);
|
|
653
|
+
}).catch((f) => {
|
|
654
|
+
r(f);
|
|
655
655
|
});
|
|
656
656
|
});
|
|
657
657
|
}, e.$fn.changelang = (n = "") => {
|
|
658
658
|
let s = "";
|
|
659
|
-
return e.$global?.sys?.local?.lang ? s = e.$fn.As.localGet(e.$global?.sys?.local?.lang) || e.$model.data
|
|
660
|
-
n && s === n && e.$global?.lang ?
|
|
661
|
-
|
|
662
|
-
}).catch((
|
|
663
|
-
|
|
664
|
-
})) :
|
|
659
|
+
return e.$global?.sys?.local?.lang ? s = e.$fn.As.localGet(e.$global?.sys?.local?.lang) || e.$model.data?.sys?.settinglang?.lang || e.$model.data?.sys?.sysconfig?.lang[0] : s = e.$global.config.langcur || e.$model.data?.sys?.settinglang?.lang || e.$model.data?.sys?.sysconfig?.lang[0], new Promise((a, r) => {
|
|
660
|
+
n && s === n && e.$global?.lang ? a(s) : (n === "auto" ? s = s == e.$model.data?.sys?.sysconfig?.lang[0] ? e.$model.data?.sys?.sysconfig?.lang[1] : e.$model.data?.sys?.sysconfig?.lang[0] : n && (s = n), e.$global?.sys?.local?.lang && e.$fn.As.localSet(e.$global?.sys?.local?.lang, s), e.$global?.sys?.local?.lang || !e.$global.config.lang ? (e.$global.config.lang = s, e.$fn.initlang(s).then((f) => {
|
|
661
|
+
a(s);
|
|
662
|
+
}).catch((f) => {
|
|
663
|
+
r(f);
|
|
664
|
+
})) : a(s));
|
|
665
665
|
});
|
|
666
666
|
}, e.$fn.initver = () => {
|
|
667
667
|
if (e.$global.sys?.webver) {
|
|
@@ -676,10 +676,10 @@ const C = {
|
|
|
676
676
|
}, e.$fn.initweb = async (n) => {
|
|
677
677
|
try {
|
|
678
678
|
let s = function() {
|
|
679
|
-
const { protocol:
|
|
679
|
+
const { protocol: r, hostname: f, port: p, hash: g } = o.location;
|
|
680
680
|
e.$global.location = {
|
|
681
|
-
protocol:
|
|
682
|
-
hostname:
|
|
681
|
+
protocol: r,
|
|
682
|
+
hostname: f,
|
|
683
683
|
port: p,
|
|
684
684
|
hash: g.replace("#", ""),
|
|
685
685
|
comps: [],
|
|
@@ -703,18 +703,18 @@ const C = {
|
|
|
703
703
|
};
|
|
704
704
|
};
|
|
705
705
|
Object.assign(e.$fn, n.$fns || {}), Object.assign(e.$fn, n.$engineasai || {}), Object.assign(e.$fn, n.$engineasailib || {});
|
|
706
|
-
for (let
|
|
707
|
-
n["$engineasai" +
|
|
708
|
-
const
|
|
709
|
-
if (e.$global.sys = {}, Object.keys(
|
|
710
|
-
Object.assign(e.$global.sys, r
|
|
706
|
+
for (let r = 0; r < 3; r++)
|
|
707
|
+
n["$engineasai" + r] && Object.assign(e.$fn, n["$engineasai" + r]);
|
|
708
|
+
const a = await e.$fn.initmodel("sys/dirglobal.json");
|
|
709
|
+
if (e.$global.sys = {}, Object.keys(a).forEach((r) => {
|
|
710
|
+
Object.assign(e.$global.sys, a[r]);
|
|
711
711
|
}), e.$fn.initver())
|
|
712
712
|
return;
|
|
713
|
-
if (e.$model.data.sys = await e.$fn.initmodel("sys/dirmodel.json"), e.$model.data
|
|
714
|
-
e.$global.sys.router = e.$model.data
|
|
715
|
-
for (let
|
|
716
|
-
const
|
|
717
|
-
typeof
|
|
713
|
+
if (e.$model?.data || (e.$model.data = {}), e.$model.data.sys = await e.$fn.initmodel("sys/dirmodel.json"), e.$model.data?.sys?.configrouter) {
|
|
714
|
+
e.$global.sys.router = e.$model.data?.sys?.configrouter;
|
|
715
|
+
for (let r = 0; r < e.$model?.webmodels?.length; r++) {
|
|
716
|
+
const f = await e.$fn.initmodel(e.$model?.webmodels?.[r] + "/configrouter.json");
|
|
717
|
+
typeof f == "object" && Object.entries(f).forEach(([p, g]) => {
|
|
718
718
|
p === "rights" ? Object.entries(g).forEach(([b, m]) => {
|
|
719
719
|
m && m.length && m.forEach((v) => {
|
|
720
720
|
e.$global.sys.router.rights[b].includes(v) || e.$global.sys.router.rights[b].push(v);
|
|
@@ -743,9 +743,9 @@ const C = {
|
|
|
743
743
|
...[
|
|
744
744
|
...Object.keys(e.$model.comps)?.map((s) => {
|
|
745
745
|
if (n.test(s)) {
|
|
746
|
-
const
|
|
747
|
-
if (
|
|
748
|
-
return
|
|
746
|
+
const a = s.match(n);
|
|
747
|
+
if (a)
|
|
748
|
+
return a[1];
|
|
749
749
|
}
|
|
750
750
|
return "";
|
|
751
751
|
}).filter((s) => s)
|
|
@@ -758,28 +758,28 @@ const C = {
|
|
|
758
758
|
}
|
|
759
759
|
}, e.$fn.inittoken = () => {
|
|
760
760
|
e.$global.code.pri && e.$global.user.info?.us && (e.$global.code.token = e.$fn.AsCode.asencode(e.$global.user.info?.us, e.$global.code.pri) + "##" + e.$fn.AsCode.asencode(e.$global.user.info?.lv || 0, e.$global.code.pri) + "##" + e.$global.code.pub);
|
|
761
|
-
}, e.$fn.gettoken = (n = 0) => e.$global?.code?.token ? e.$global.code.token : e.$global?.code?.pub && n ? e.$global?.code?.token || "####" + e.$global.code.pub : "", e.$fn.logSave = (n = null) => new Promise((s,
|
|
762
|
-
Array.isArray(n) && (n = n?.map?.((
|
|
763
|
-
`) || ""), e?.$fn?.apisys?.apiPost("/api/asailog/manage/addclient/", n).then(s).catch(
|
|
761
|
+
}, e.$fn.gettoken = (n = 0) => e.$global?.code?.token ? e.$global.code.token : e.$global?.code?.pub && n ? e.$global?.code?.token || "####" + e.$global.code.pub : "", e.$fn.logSave = (n = null) => new Promise((s, a) => {
|
|
762
|
+
Array.isArray(n) && (n = n?.map?.((r) => typeof r == "object" ? JSON.stringify(r) : r)?.join(`
|
|
763
|
+
`) || ""), e?.$fn?.apisys?.apiPost("/api/asailog/manage/addclient/", n).then(s).catch(a);
|
|
764
764
|
});
|
|
765
765
|
function w(n = /* @__PURE__ */ new Date()) {
|
|
766
|
-
const s = (
|
|
766
|
+
const s = (a, r = 2) => String(a).padStart(r, "0");
|
|
767
767
|
return `${s(n.getHours())}:${s(n.getMinutes())}:${s(n.getSeconds())}.${s(n.getMilliseconds(), 3)}`;
|
|
768
768
|
}
|
|
769
|
-
return e.$fn.$log = (n = null) => new Promise((s,
|
|
769
|
+
return e.$fn.$log = (n = null) => new Promise((s, a) => {
|
|
770
770
|
if (n) {
|
|
771
|
-
const
|
|
772
|
-
e?.$fn?.lo?.(7, "log",
|
|
771
|
+
const r = `[${w()}] ${e.$global?.user?.info?.us || ""}-${n}`;
|
|
772
|
+
e?.$fn?.lo?.(7, "log", r), e?.$global?.sys?.onweblog && e.$fn.logSave(r).then(s).catch(a), s();
|
|
773
773
|
} else
|
|
774
774
|
s();
|
|
775
775
|
}), e.$fn.checkOnline = () => new Promise((n, s) => {
|
|
776
776
|
if (e?.$global?.sys?.onwebws && e?.$global?.sys?.onckuseronline)
|
|
777
777
|
try {
|
|
778
|
-
typeof e?.$fn?.ws?.web?.wsApi == "function" ? e.$fn.ws.web.wsApi("ping")?.then((
|
|
779
|
-
|
|
778
|
+
typeof e?.$fn?.ws?.web?.wsApi == "function" ? e.$fn.ws.web.wsApi("ping")?.then((a) => {
|
|
779
|
+
a == "pong" ? n(a) : s(a);
|
|
780
780
|
}).catch(s) : s();
|
|
781
|
-
} catch (
|
|
782
|
-
s(
|
|
781
|
+
} catch (a) {
|
|
782
|
+
s(a);
|
|
783
783
|
}
|
|
784
784
|
else
|
|
785
785
|
n();
|
|
@@ -801,7 +801,7 @@ const C = {
|
|
|
801
801
|
loadfn: o.loadfn,
|
|
802
802
|
app: t,
|
|
803
803
|
eager: !1,
|
|
804
|
-
files: /* @__PURE__ */ Object.assign({ "./asui/app/AsaiComponent.vue": () => import("./AsaiComponent-kBTWtDn_.mjs"), "./asui/app/AsaiInitPage.vue": () => import("./AsaiInitPage-
|
|
804
|
+
files: /* @__PURE__ */ Object.assign({ "./asui/app/AsaiComponent.vue": () => import("./AsaiComponent-kBTWtDn_.mjs"), "./asui/app/AsaiInitPage.vue": () => import("./AsaiInitPage-CyZi4FaH.mjs"), "./asui/app/AsaiWebItemDefault.vue": () => import("./AsaiWebItemDefault-DmogFxYv.mjs"), "./asui/app/AsaiWebItemIndex.vue": () => import("./AsaiWebItemIndex-BJu3WSmh.mjs"), "./asui/app/AsaiWebModule.vue": () => import("./AsaiWebModule-CpUCjy9U.mjs"), "./asui/app/AsaiWebModuleDefault.vue": () => import("./AsaiWebModuleDefault-GaNtfrAV.mjs"), "./asui/app/AsaiWebModuleIndex.vue": () => import("./AsaiWebModuleIndex-DAM6AsNG.mjs"), "./asui/app/AsaiWebServer.vue": () => import("./AsaiWebServer-DiONV5Ko.mjs"), "./asui/app/AsaiWebServerNode.vue": () => import("./AsaiWebServerNode-BOTvLJke.mjs"), "./asui/app/AsaiWebServerUser.vue": () => import("./AsaiWebServerUser-LaJmfssq.mjs"), "./asui/app/AsaiWebServerUserOnline.vue": () => import("./AsaiWebServerUserOnline-Y4Vm60d6.mjs"), "./asui/common/AsPageBusy.vue": () => import("./AsPageBusy-B_7qKMBg.mjs"), "./asui/common/AsPageBusyGif.vue": () => import("./AsPageBusyGif-BeO4ftmK.mjs"), "./asui/common/AsReset.vue": () => import("./AsReset-BwIfbGYA.mjs"), "./asui/common/AsSvg.vue": () => import("./AsSvg-CJmt5E9y.mjs"), "./asui/common/MenuShowFix.vue": () => import("./MenuShowFix-BVvpPnyn.mjs"), "./asui/common/RouterMap.vue": () => import("./RouterMap-MZx9UGoA.mjs"), "./asui/common/RouterView.vue": () => import("./RouterView-C6zR7Mtu.mjs"), "./asui/common/VirtualList.vue": () => import("./VirtualList-BZLMdQuR.mjs"), "./asui/page/PageErr.vue": () => import("./PageErr-D-sxK1Ej.mjs"), "./asui/page/PageLoadClient.vue": () => import("./PageLoadClient-p3m-9ZT6.mjs"), "./asui/page/PageLoadErr.vue": () => import("./PageLoadErr-B9gRqsS7.mjs"), "./asui/page/PageLoadServer.vue": () => import("./PageLoadServer-_f8otQMk.mjs"), "./asui/page/PageLoadUserToken.vue": () => import("./PageLoadUserToken-COisXxiM.mjs"), "./asui/page/PageLoadUserTokenOnline.vue": () => import("./PageLoadUserTokenOnline-C4poWeJs.mjs"), "./asui/page/PageLoadWs.vue": () => import("./PageLoadWs-lrg51L6x.mjs") })
|
|
805
805
|
});
|
|
806
806
|
}
|
|
807
807
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
(function(S,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(S=typeof globalThis<"u"?globalThis:S||self,e(S["asai-vue-host"]={},S.Vue))})(this,(function(S,e){"use strict";const E=Object.freeze(Object.defineProperty({__proto__:null,default:{getUrlByCfg(o=null,n=0){return o?.url?o.url:o?.port?(n?window.location.protocol.includes("s")?"wss:":"ws:":window.location.protocol)+"//"+window.location.hostname+":"+o.port:n?window.location.origin.replace("http","ws"):window.location.origin},arrLenMax(o,n,t=0){return o.length>n&&(t?o.splice(n,o.length-n):o.splice(0,o.length-n)),o},cookiesSetByEncodeURI(o,n,t=0,s="/"){let l="";if(t){const i=new Date;i.setTime(i.getTime()+t),l="; expires="+i.toUTCString()}document.cookie=o+"="+encodeURIComponent(n)+l+"; path="+(s||"/")},cookiesSet(o,n,t=0,s="/"){try{let l="";if(t){const i=new Date;i.setTime(i.getTime()+t),l="; expires="+i.toUTCString()}document.cookie=o+"="+n+l+"; path="+(s||"/")}catch{}},cookiesGet(o){try{const n=document.cookie;if(!n)return"";const t=n.match(new RegExp(`(^| )${o}=([^;]*)(;|$)`));return t&&t[2]?decodeURIComponent(t[2]):""}catch(n){return console.error("cookiesGet error:",n),""}},cookiesDel(o){this.cookiesSetByEncodeURI(o,"",-1e3)},cookiesClear(){const o=document.cookie.split("; ");for(let n=0;n<o.length;n++){const t=o[n],s=t.indexOf("="),l=s>-1?t.substring(0,s):t;document.cookie=l+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/"}},readFile(o=null,n=0){return new Promise((t,s)=>{if(o){const l=new FileReader;n?l.readAsText(o):l.readAsDataURL(o),l.onload=()=>{t(l.result)}}else s()})},apiJsonp(o,n){try{const t=window,s=`asaiJsonp_${Date.now()}_${Math.random().toString(36).slice(2)}`;t[s]=i=>{n&&n(i),delete t[s]};const l=document.createElement("script");l.src=`${o}&callback=${s}`,l.type="text/javascript",l.async=!0,l.onload=()=>{document.body.removeChild(l)},l.onerror=()=>{document.body.removeChild(l),delete t[s],n&&n("ERROR")},document.body.appendChild(l)}catch{n&&n("ERROR")}},localTime(o,n=0){if(n){const t=JSON.parse(this.localGet("astime")||"{}");t[o]=n,localStorage.setItem("astime",JSON.stringify(t))}else{const t=JSON.parse(this.localGet("astime")||"{}");if(t[o])return t[o]}return 0},localSet(o,n,t=localStorage){try{typeof n=="object"?t.setItem(o,JSON.stringify(n)):t.setItem(o,String(n))}catch(s){console.error("localSet error:",s)}},localGet(o,n=localStorage){try{return n.getItem(o)}catch{}return""},localRemove(o,n=localStorage){try{return n.removeItem(o)}catch{}},localClears(o=null,n=localStorage){if(o?.length){let t;for(let s in n)t=o.find(l=>s.startsWith(l)),t&&this.localRemove(s,n)}else this.localClear(n)},localClear(o=localStorage){o.clear()},localInit(o=localStorage){this.localClear(o),location.replace("/#"),this.localReload()},localReload(){location.reload()},getPath(o="-"){return o?.replace(/[^a-zA-Z0-9.\-_\\\/]/g,"")},getName(o="-"){return o?.replace(/[^a-zA-Z0-9.\-_]/g,"")},eStop(o){const n=window.event||o;return n?.preventDefault(),n?.stopPropagation(),!0},treeToMap(o,n={}){const t=new Map,s=new Map;if(!o)return{nodeMap:t,depthMap:s};const l=n.id||"id",i=n.ch||"ch",f=n.ft,u=n.ftk,m=n.fty===1,g=typeof f=="string"&&f.length>0&&u,_=[{[i]:o}],$=[0];let a,r,c;for(;_.length;){if(a=_.pop(),r=$.pop(),c=a[l],r>0)if(g){const p=a[u],h=typeof p=="string"&&p.includes(f);(m?!h:h)&&(t.set(c,a),s.set(c,r))}else t.set(c,a),s.set(c,r);const d=a[i];if(d&&d.length>0){const p=r+1;for(let h=d.length-1;h>=0;h--)_.push(d[h]),$.push(p)}}return{nodeMap:t,depthMap:s}},fullScreen(o=""){const n=o?document.getElementById(o):document.documentElement||document.body,t=n.requestFullScreen||n.webkitRequestFullScreen||n.mozRequestFullScreen||n.msRequestFullScreen;if(t)t.call(n);else{const{ActiveXObject:s}=window;if(typeof s<"u"){const l=new s("WScript.Shell");l!==null&&l.SendKeys("{F11}")}}},fullScreenExit(){const o=document?.exitFullscreen;if(o)document.fullscreenElement!==null&&o.call(document);else{const{ActiveXObject:n}=window;if(typeof n<"u"){const t=new n("WScript.Shell");t!==null&&t.SendKeys("{F11}")}}},fullScreenDo(o=null){document.fullscreenElement?this.fullScreenExit():this.fullScreen(),o&&o()},toNums(o,n=0){return o&&Object.keys(o).forEach(t=>{typeof o[t]=="number"&&(o[t]=this.toNum(o[t],n))}),o},toNum(o,n=0){return typeof o!="number"&&typeof o=="string"&&(o=Number(o)),Number.isNaN(o)&&(o=0),o&&n&&(o=Math.round(o*10**n)/10**n),o},toObj(o){try{return o&&typeof o=="string"?JSON.parse(o):o}catch{return{err:"不是JSON格式数据"}}},toStr(o){if(typeof o=="string")return o;try{return JSON.stringify(o)}catch{const t=[];return JSON.stringify(o,(s,l)=>{if(typeof l=="object"&&l!==null){if(t.indexOf(l)!==-1)return;t.push(l)}return l})}},toArr(o,n=0){if(o){if(Array.isArray(o))return o;if(typeof o=="object")return Object.entries(o)}return n?[]:null},setObjValByPath(o,n,t,s=0){try{const l=n.split(".");let i=o;for(let u=0;u<l.length-1;u++){const m=l[u];if(i[m]===void 0||typeof i[m]!="object"||i[m]===null)if(s)i[m]={};else return!1;i=i[m]}const f=l[l.length-1];return i[f]=t,!0}catch{return!1}},isValidFileName(o){if(!o||o.length===0)return!1;const n=o.length;for(let s=0;s<n;s++){const l=o.charCodeAt(s);if(l<=31||l===92||l===47||l===58||l===42||l===63||l===34||l===60||l===62||l===124)return!1}const t=o.charCodeAt(n-1);return!(t===32||t===46)},getTime(o=6,n=0){let t="",s;n?(typeof n=="string"&&(n=Number(n)),n<9999999999?n=n*1e3:n>9999999999999&&(n=n/1e3),s=new Date(n)):s=new Date;const[l,i]=o>9?o+"":"0"+o;function f(u){return+l<=u&&+i>=u}return f(1)&&(t+=("00"+s.getFullYear()).slice(-4)+"-"),f(2)&&(t+=("00"+(s.getMonth()+1)).slice(-2)+"-"),f(3)&&(t+=("00"+s.getDate()).slice(-2)+" "),f(4)&&(t+=("00"+s.getHours()).slice(-2)+":"),f(5)&&(t+=("00"+s.getMinutes()).slice(-2)+":"),f(6)&&(t+=("00"+s.getSeconds()).slice(-2)+"."),f(7)&&(t+=("000"+s.getMilliseconds()).slice(-3)+" "),f(9)?t.replace(/\D/g,""):t&&t.substring(0,t.length-1)},toFormTime(o=0){return this.getTime(6,o).replace(" ","T")},fromFormTime(o="",n=1){const t=o?new Date(o).getTime():new Date().getTime();return Math.floor(t/n)},Uuid(o="",n=0,t=32){return[o.slice(-3),Date.now().toString(36).slice(-9),n.toString(36),crypto.getRandomValues(new Uint8Array(6)).reduce((l,i)=>l+(i&15).toString(t),"")].join("").slice(0,16)},downloadTxt(o="",n=""){if(o){typeof o=="object"&&(o=JSON.stringify(o));const t=document.createElement("a");t.style.display="none";const s=new Blob([o],{type:"application/octet-stream;charset=utf-8"}),l=URL.createObjectURL(s);t.href=l,t.setAttribute("download",n),document.body.appendChild(t),t.click(),document.body.removeChild(t),URL.revokeObjectURL(l)}},downloadFile(o="",n=""){const t=document.createElement("a");t.href=o,n?t.download=n:t.download=o.slice(o.lastIndexOf("/")+1),document.body.appendChild(t),t.click(),document.body.removeChild(t)},debounce(o,n){n?.timeout&&(clearTimeout(n.timeout),n.timeout=null),n?.immediate?(n.timeout||o(),n.timeout=setTimeout(()=>{n.timeout=null},n.wait)):n.timeout=setTimeout(()=>{o(),clearTimeout(n.timeout),n.timeout=null},n.wait)},throttle(o,n){n?.timeout&&(clearTimeout(n.timeout),n.timeout=null),n?.immediate?(n.endtime=new Date().valueOf(),n.endtime-n.starttime>n.wait&&(o(),n.starttime=n.endtime)):n&&!n?.timeout&&(n.timeout=setTimeout(()=>{o(),clearTimeout(n.timeout),n.timeout=null},n.wait))},async copyToClipboard(o){try{return this.localSet("as-clipboard",o),!0}catch(n){throw n}},async readFromClipboard(){try{return this.localGet("as-clipboard")||""}catch(o){throw o}},DeepClone(o,n=new WeakMap){if(o===null||typeof o!="object")return o;if(n.has(o))return n.get(o);if(o instanceof Date)return new Date(o);if(o instanceof RegExp)return new RegExp(o.source,o.flags);if(o instanceof Map){const s=new Map;return n.set(o,s),o.forEach((l,i)=>{s.set(this.DeepClone(i,n),this.DeepClone(l,n))}),s}if(o instanceof Set){const s=new Set;return n.set(o,s),o.forEach(l=>{s.add(this.DeepClone(l,n))}),s}const t=Array.isArray(o)?[]:{};n.set(o,t);for(let s in o)o.hasOwnProperty(s)&&(t[s]=this.DeepClone(o[s],n));return t}}},Symbol.toStringTag,{value:"Module"})),B=Object.freeze(Object.defineProperty({__proto__:null,default:{base64Encode(o){return btoa(unescape(encodeURIComponent(o)))},base64Decode(o){try{return decodeURIComponent(escape(atob(o)))}catch(n){return console.error("base64Decode error:",n),""}},simpleEncrypt(o,n=3){return o.split("").map(t=>String.fromCharCode(t.charCodeAt(0)+n)).join("")},simpleDecrypt(o,n=3){return o.split("").map(t=>String.fromCharCode(t.charCodeAt(0)-n)).join("")},enc(o){const n=this.simpleEncrypt(o,5);return this.base64Encode(n)},dec(o){const n=this.base64Decode(o);return this.simpleDecrypt(n,5)}}},Symbol.toStringTag,{value:"Module"})),P={webpath:window?.$CFG?.webpath||"./",_hashChangeListener:null,_popstateListener:null,initHash(o={}){this.webpath.startsWith("/")?(this._popstateListener=(n=null)=>{o.hash=window.location.pathname||"",this.setRouter(o)},this._popstateListener(),window.addEventListener("popstate",this._popstateListener)):(this._hashChangeListener=(n=null)=>{o.hash=window.location.hash?.replace("#","")||"",this.setRouter(o)},window.addEventListener("hashchange",this._hashChangeListener))},offHash(){this.webpath.startsWith("/")?this._popstateListener&&(window.removeEventListener("popstate",this._popstateListener),this._popstateListener=null):this._hashChangeListener&&(window.removeEventListener("hashchange",this._hashChangeListener),this._hashChangeListener=null)},setHref(o){window.location.href=o},getHref(){return window?.location?.href},setHash(o={},n=""){n&&!n.startsWith("/")&&(n=`/${n}`),o.hash=n||"",this.webpath.startsWith("/")?(window.history.pushState({},"",o.hash),this.setRouter(o)):window.location.hash=o.hash},getQuery(o={},n=""){return o.query={},n=n||window?.location?.search?.substring(1)||"",n&&n.split("&").forEach(t=>{const[s,l]=t.split("=");s&&l&&(o.query[s]=decodeURIComponent(l))}),o.query},getHasharr(o){let n=o.hash;if(o.hasharr=[],n){n.startsWith("/")&&(n=n.slice(1));const[t,s]=n.split("?");let l=t?.split("/")||[];for(;l.length>0&&l[l.length-1]==="";)l.pop();o.hasharr=l,this.getQuery(o,s)}return o.hasharr},setRouter(o){this.getHasharr(o);const n=o.hasharr||[],t=o.hasharr?.length||0;if(o.comps=[],t>0){let s="";for(let l=0;l<t;l++)s=`${s}${n[l]}/`,l==t-1?o.comps[l]=`${s}default`:o.comps[l]=`${s}index`}return o.comps?.length||(o.comps[0]="default"),o.comps},setTitle(o="",n=null){const s=!window?.$CFG?.title&&n?.$global?.lang?.sys?.webtit?n?.$global?.lang?.sys?.webtit:"";o?document.title=`${o}${s?" - "+s:""}`:document.title=`${s}`}},O=Object.freeze(Object.defineProperty({__proto__:null,default:P},Symbol.toStringTag,{value:"Module"})),N=Object.freeze(Object.defineProperty({__proto__:null,default:o=>{const{$fn:n,$model:t,$db:s,$dbwork:l,$global:i}=o;function f(u="testkdd"){const m=e.inject("$vueProxy");m?.$installplugs?.(u),m?.["$engine"+u]&&(Object.assign(n,m["$engine"+u]),m?.["$engineuse"+u]&&Object.assign(n,m["$engineuse"+u])),t[u]||(t[u]={}),l[u]||(l[u]={}),s[u]||(s[u]={}),n.setconfig=(_,$)=>n.apisys.apiPost("/api/asaijson/manage/update/?path=./webclient/webmodel/sys/setting/"+_+".json",$),n.changelangpro=(_="")=>n.changelang(i.config.langcur||_).then($=>{i?.sys?.local?.lang?u&&n.ws?.[u]&&n.ws[u].wsSend({id:"1",ty:"common/setlanguage",db:$}):n.setconfig("settinglang",{lang:_})});const g=[n.initlang(i.config.langcur||"")];return g.push(n.initmodel(u+"/dirmodel.json").then(_=>{_&&Object.assign(t[u],_)})),Promise.all(g)}return{initAppModel:f}}},Symbol.toStringTag,{value:"Module"})),V=e.reactive({providedb:{data:{}}}),M=e.reactive({providedbwork:{data:{}}}),x=e.reactive({provideglobal:{data:{sys:null,wd:{w:0,h:0},config:{theme:"theme-light",lang:"",langcur:""},theme:"",stat:{webclient:0,web:0,cocontrol:0},user:{info:null,online:0},code:{pri:null,pub:null,token:""},location:{},pop:{},url:{},module:{value:"",label:""},keyboard:{comps:{},areastyle:{},opt:{},csskeyboard:"",showkeyboard:!1}}}}),T=e.reactive({providews:{data:{rooms:{},wssys:{}}}}),C={providefn:{data:{api:{},ws:{},wssys:null,workers:{}}}},R=Object.freeze(Object.defineProperty({__proto__:null,default:(o=null)=>{const n=window;Object.assign(C.providefn.data,o?.plugs||{});const t={$db:V.providedb.data,$dbwork:M.providedbwork.data,$ws:T.providews.data,$global:x.provideglobal.data,$model:n.$GYS.$webmodel,$fn:C.providefn.data};t.$global.$cfg=n.$CFG||{},n.$GYS.ujt=t,t.$fn.lo=(...a)=>{if(t.$global.sys?.onconsole){if(!a?.[0])t.$model.gysfn.log();else if(a.length>0){let r="",c="",d="";if(a[1]&&typeof a[1]=="string"){const[p,h,...b]=a;c=h,d=b,Array.isArray(a[0])&&a[0].length===2?r=l(a[0][0],a[0][1],"12px"):typeof a[0]=="number"&&(r=s(p,12))}r?console.log("%c"+c,r,...d):console.log(...a)}}},t.$model.gysfn.log=()=>(console.log("%c$fn",s(6,18),i(t.$fn),t.$fn),console.log("%c$model",s(5,18),i(t.$model),t.$model),console.log("%c$global",s(4,18),i(t.$global),t.$global),console.log("%c$ws",s(3,18),i(t.$ws),t.$ws),console.log("%c$db",s(2,18),i(t.$db),t.$db),console.log("%c$dbwork",s(1,18),i(t.$dbwork),t.$dbwork),"Web Model Log。");function s(a,r=18){let c="";return a===1?c=l("black","pink",r+"px"):a===2?c=l("black","cyan",r+"px"):a===3?c=l("black","yellow",r+"px"):a===4?c=l("white","blue",r+"px"):a===5?c=l("white","red",r+"px"):a===6?c=l("white","green",r+"px"):a===7&&(c=l("white","purple",r+"px")),c}function l(a,r,c="18px"){return"font-size:"+c+";font-weight:bold;border-radius:20px;padding:0 10px;color:"+a+";background-color:"+r+";"}function i(a){try{return"size=>"+((a&&JSON.stringify(a)?.length)/1024).toFixed(3)+"KB"}catch{return""}}function f(a={}){t.$global.pop.popdefaultconfirm&&(t.$global.pop.popdefaultconfirm.stat=1,t.$global.pop.popdefaultconfirm.full=1,t.$global.pop.popdefaultconfirm.notit=1,Object.assign(t.$global.pop.popdefaultconfirm,a))}function u(a={}){t.$global.pop.popdefaultconfirmpass&&(t.$global.pop.popdefaultconfirmpass.stat=1,t.$global.pop.popdefaultconfirmpass.full=1,t.$global.pop.popdefaultconfirmpass.notit=1,Object.assign(t.$global.pop.popdefaultconfirmpass,a))}t.$fn.popConfirm=f,t.$fn.popConfirmPass=u,t.$fn.getWebPath=(a="")=>{const r=t?.$global?.$cfg?.webpath||"./";return a&&!a.startsWith("http")&&!a.startsWith(r)?r+a:a};const{fetchPublic:m}=t.$fn?.AsaiModel(t.$fn.getWebPath("webmodel/"));t.$fn.initmodel=m,t.$fn.startLink=()=>new Promise((a,r)=>{t.$fn.initmodel("sys/server.json").then(c=>{const d={api:{},ws:{}};["api","ws"].forEach(p=>{Object.keys(c?.[p]||{}).forEach(h=>{let b=c[p][h];b&&typeof b=="string"&&(b=d[p][b]),b||(b=c[p].default),d[p][h]={...b,url:t.$fn.As.getUrlByCfg(b,p=="ws"?1:0)}})}),t.$fn.As.localSet("as-link",JSON.stringify(d)),t.$global.link=d,a(t.$global.link)}).catch(c=>{r(c)})}),t.$fn.saveLink=a=>{t.$global.link=a,t.$fn.As.localSet("as-link",JSON.stringify(t.$global.link))},t.$fn.initLink=(a=0)=>new Promise((r,c)=>{if(a)t.$fn.startLink().then(d=>{r(d)}).catch(d=>{c(d)});else{let d=t.$fn.As.localGet("as-link");d?(t.$global.link=JSON.parse(d),t.$global.link?.api&&t.$global.link?.ws&&t.$global.link?.ws?.default?r(t.$global.link):t.$fn.startLink().then(p=>{r(p)}).catch(p=>{c(p)})):t.$fn.startLink().then(p=>{r(p)}).catch(p=>{c(p)})}});const g=new Map,_=/\$(\d+)/g;t.$fn.lg=(a,r)=>{if(typeof a!="string"||!a)return;let c=g.get(a);c||(c=a.split("."),g.set(a,c));const d=c.reduce((b,y)=>b?.[y],t.$global.lang);if(!r||r.length===0)return d;const p=Array.isArray(r)?r:[r];return d?.replace(_,(b,y)=>{const k=parseInt(y,10)-1;return p[k]??b})},t.$fn.initlang=(a="")=>{let r="";return t.$global?.sys?.local?.lang?r=a||t.$fn.As.localGet(t.$global?.sys?.local?.lang)||t.$model.data.sys.settinglang?.lang||t.$model.data.sys.sysconfig?.lang[0]:r=a||t.$model.data.sys.settinglang?.lang||t.$model.data.sys.sysconfig?.lang[0],t.$global?.lang||(t.$global.lang={}),new Promise((c,d)=>{t.$fn.initmodel("lang/dirlang.json",r+"/").then(p=>{Object.assign(t.$global.lang,p),c(t.$global.lang)}).catch(p=>{d(p)})})},t.$fn.changelang=(a="")=>{let r="";return t.$global?.sys?.local?.lang?r=t.$fn.As.localGet(t.$global?.sys?.local?.lang)||t.$model.data.sys.settinglang?.lang||t.$model.data.sys.sysconfig?.lang[0]:r=t.$global.config.langcur||t.$model.data.sys.settinglang?.lang||t.$model.data.sys.sysconfig?.lang[0],new Promise((c,d)=>{a&&r===a&&t.$global?.lang?c(r):(a==="auto"?r=r==t.$model.data.sys.sysconfig?.lang[0]?t.$model.data.sys.sysconfig?.lang[1]:t.$model.data.sys.sysconfig?.lang[0]:a&&(r=a),t.$global?.sys?.local?.lang&&t.$fn.As.localSet(t.$global?.sys?.local?.lang,r),t.$global?.sys?.local?.lang||!t.$global.config.lang?(t.$global.config.lang=r,t.$fn.initlang(r).then(p=>{c(r)}).catch(p=>{d(p)})):c(r))})},t.$fn.initver=()=>{if(t.$global.sys?.webver){const a=t.$fn.As.localGet("as-web-ver");if(a){if(t.$global.sys?.webver!==a)return t.$fn.As.localInit(),!0}else t.$fn.As.localSet("as-web-ver",t.$global.sys?.webver||"")}return!1},t.$fn.initweb=async a=>{try{let r=function(){const{protocol:d,hostname:p,port:h,hash:b}=n.location;t.$global.location={protocol:d,hostname:p,port:h,hash:b.replace("#",""),comps:[],query:{}},t.$fn.AsRouter.initHash(t.$global.location),y();function y(){t.$fn.AsRouter.setRouter(t.$global.location)}t.$fn.setquery=(k={},A=0)=>{let j;A?j=new URLSearchParams({...t.$global.location.query||{},...k||{}}).toString():j=new URLSearchParams(k||{}).toString(),j?j=t.$global.location.hash.split("?")[0]+"?"+j:j=t.$global.location.hash.split("?")[0],t.$fn.AsRouter.setHash(t.$global.location,j),y()},t.$fn.sethash=(k="")=>{t.$fn.AsRouter.setHash(t.$global.location,k)},t.$fn.exit=(k=0)=>{t.$fn.As.localSet("as-user-info",""),t.$global.user.info=null,t.$global.code.token=null,k&&(t.$fn.sethash(""),t.$fn.As.localReload())},t.$fn.login=()=>{t.$fn.As.localSet("as-user-info",""),t.$global.user.info=null,t.$fn.sethash(t.$global.sys?.router?.config?.login||"user/login")}};Object.assign(t.$fn,a.$fns||{}),Object.assign(t.$fn,a.$engineasai||{}),Object.assign(t.$fn,a.$engineasailib||{});for(let d=0;d<3;d++)a["$engineasai"+d]&&Object.assign(t.$fn,a["$engineasai"+d]);const c=await t.$fn.initmodel("sys/dirglobal.json");if(t.$global.sys={},Object.keys(c).forEach(d=>{Object.assign(t.$global.sys,c[d])}),t.$fn.initver())return;if(t.$model.data.sys=await t.$fn.initmodel("sys/dirmodel.json"),t.$model.data.sys.configrouter){t.$global.sys.router=t.$model.data.sys.configrouter;for(let d=0;d<t.$model?.webmodels?.length;d++){const p=await t.$fn.initmodel(t.$model?.webmodels?.[d]+"/configrouter.json");typeof p=="object"&&Object.entries(p).forEach(([h,b])=>{h==="rights"?Object.entries(b).forEach(([y,k])=>{k&&k.length&&k.forEach(A=>{t.$global.sys.router.rights[y].includes(A)||t.$global.sys.router.rights[y].push(A)})}):Object.assign(t.$global.sys.router[h],b)})}}t.$fn.lo(),await t.$fn.initLink(),r()}catch(r){console.error("initUser error:",r)}},t.$fn.offweb=()=>{t.$fn.AsRouter.offHash()},t.$fn.initrouter=()=>{if(t.$global?.sys?.devlevel&&!t.$global.url[t.$global.module.value]){t.$global.url[t.$global.module.value]=[],t.$global.url[t.$global.module.value].push(...Object.keys(t.$model.appmodules.indexRouters).map(r=>({value:r,label:r,type:"module"})));const a=/^\.\/(.*?)\/default\.vue$/;t.$global.url[t.$global.module.value].push(...[...Object.keys(t.$model.comps)?.map(r=>{if(a.test(r)){const c=r.match(a);if(c)return c[1]}return""}).filter(r=>r)].map(r=>({value:r,label:r})))}},t.$fn.inittoken=()=>{t.$global.code.pri&&t.$global.user.info?.us&&(t.$global.code.token=t.$fn.AsCode.asencode(t.$global.user.info?.us,t.$global.code.pri)+"##"+t.$fn.AsCode.asencode(t.$global.user.info?.lv||0,t.$global.code.pri)+"##"+t.$global.code.pub)},t.$fn.gettoken=(a=0)=>t.$global?.code?.token?t.$global.code.token:t.$global?.code?.pub&&a?t.$global?.code?.token||"####"+t.$global.code.pub:"",t.$fn.logSave=(a=null)=>new Promise((r,c)=>{Array.isArray(a)&&(a=a?.map?.(d=>typeof d=="object"?JSON.stringify(d):d)?.join(`
|
|
2
|
-
`)||""),t?.$fn?.apisys?.apiPost("/api/asailog/manage/addclient/",a).then(r).catch(c)});function $(a=new Date){const r=(c,d=2)=>String(c).padStart(d,"0");return`${r(a.getHours())}:${r(a.getMinutes())}:${r(a.getSeconds())}.${r(a.getMilliseconds(),3)}`}return t.$fn.$log=(a=null)=>new Promise((r,c)=>{if(a){const d=`[${$()}] ${t.$global?.user?.info?.us||""}-${a}`;t?.$fn?.lo?.(7,"log",d),t?.$global?.sys?.onweblog&&t.$fn.logSave(d).then(r).catch(c),r()}else r()}),t.$fn.checkOnline=()=>new Promise((a,r)=>{if(t?.$global?.sys?.onwebws&&t?.$global?.sys?.onckuseronline)try{typeof t?.$fn?.ws?.web?.wsApi=="function"?t.$fn.ws.web.wsApi("ping")?.then(c=>{c=="pong"?a(c):r(c)}).catch(r):r()}catch(c){r(c)}else a()}),e.provide("$ujtasai",t),{...t,$ujtasai:t}}},Symbol.toStringTag,{value:"Module"})),
|
|
3
|
-
`+c,console.error(c),l.$log(c),s?.msg?.fn?.({type:"err",con:c})),a.preventDefault()}catch(c){console.error("Try Error:",c)}}const $=e.reactive({catchErrorUnhandledrejection:null,catchErrorCatch:null});return e.onMounted(()=>{l.initweb(t).then(()=>{let a=[];if(l?.useApi?.(n.ujt,"web"),s?.sys?.tyrobot&&(l.useApi(n.ujt,s.sys.tyrobot),l.useWs(n.ujt,s.sys.tyrobot)),u(),s?.sys?.onwebws&&(l.useWs(n.ujt,"web"),a.push(l.ws.web.init().then(()=>{m()}))),s?.sys?.local?.lang||a.push(l.initmodel("/sys/setting/settinglang.json").then(r=>{typeof r?.data=="string"?s.config.langcur=JSON.parse(r?.data||"{}")?.lang:s.config.langcur=(r?.data||{})?.lang})),s?.sys?.aes?.lv&&!s.sys.aesfns&&l.AsaiVueAES?.useAES){const{toAES:r,fromAES:c}=l.AsaiVueAES.useAES(n.ujt);s.sys.aesfns={allaes:s.sys.aes.lv>1,toAES:r,fromAES:c}}Promise.all(a).then(()=>{l.changelang(s.config.langcur).then(r=>{!window?.$CFG?.title&&s.lang.configweb?.webtit&&(document.title=s.lang.configweb?.webtit),s.stat.webclient=1,s.sys.catcherror&&($.catchErrorUnhandledrejection=d=>{_(d,"Unhandledrejection")},window?.addEventListener?.("unhandledrejection",$.catchErrorUnhandledrejection),$.catchErrorCatch=d=>{_(d,"Catch")},window?.addEventListener?.("error",$.catchErrorCatch))})})})}),e.onBeforeUnmount(()=>{l.offweb(),s.sys.catcherror&&($.catchErrorUnhandledrejection&&(window.removeEventListener("unhandledrejection",$.catchErrorUnhandledrejection),$.catchErrorUnhandledrejection=null),$.catchErrorCatch&&(window.removeEventListener("error",$.catchErrorCatch),$.catchErrorCatch=null)),s?.sys?.onwebws||l.ws.web.wsWatchOff({ty:"publish/web"})}),(a,r)=>{const c=e.resolveComponent("AsaiWebServer"),d=e.resolveComponent("AsaiWebServerNode"),p=e.resolveComponent("AsaiWebServerUser"),h=e.resolveComponent("AsaiWebServerUserOnline");return e.unref(s).stat.webclient?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.unref(s).rlv===0?(e.openBlock(),e.createBlock(c,{key:0,ujt:o.ujt},null,8,["ujt"])):e.unref(s).rlv===1?(e.openBlock(),e.createBlock(d,{key:1,ujt:o.ujt},null,8,["ujt"])):e.unref(s).rlv===2?(e.openBlock(),e.createBlock(p,{key:2,ujt:o.ujt},null,8,["ujt"])):(e.openBlock(),e.createBlock(h,{key:3,ujt:o.ujt},null,8,["ujt"]))],64)):(e.openBlock(),e.createBlock(e.resolveDynamicComponent("PageLoadClient"),{key:1,ujt:o.ujt},null,8,["ujt"]))}}})},Symbol.toStringTag,{value:"Module"})),z={class:"app-area"},I={class:"app-logo"},U=["src"],F={class:"app-menu-area"},G=["onPointerup"],H={class:"menu-text"},v={class:"app-login"},J=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"AsaiWebItemDefault",props:{ujt:{}},setup(o){const n=o,{$global:t,$fn:s}=n.ujt,l=e.computed(()=>t.url?.[t.module.value]?.filter(i=>i.type==="module"||("/"+i.value+"/").startsWith(t.location.hash))||[]);return(i,f)=>{const u=e.resolveComponent("AsReset");return e.openBlock(),e.createElementBlock("div",z,[e.createElementVNode("div",I,[e.createElementVNode("img",{src:e.unref(t).$cfg.logo,width:"200"},null,8,U)]),e.createElementVNode("div",F,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,m=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`app-menu${m.type==="module"?" module":""}`),key:m.value,onPointerup:g=>e.unref(s).sethash(m.value==="views"?"":m.value)},[e.createElementVNode("span",H,e.toDisplayString(m.label),1)],42,G))),128))]),e.createElementVNode("div",v,[e.createVNode(u,{ujt:o.ujt},null,8,["ujt"])])])}}})},Symbol.toStringTag,{value:"Module"})),q=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"AsaiWebItemIndex",props:{ujt:{},ty:{}},setup(o){return(n,t)=>{const s=e.resolveComponent("RouterView");return e.openBlock(),e.createBlock(s,{ujt:o.ujt,ty:o.ty||2},null,8,["ujt","ty"])}}})},Symbol.toStringTag,{value:"Module"})),K=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"AsaiWebModule",props:{ujt:{},module:{},ty:{}},setup(o){const n=o,{$global:t,$fn:s}=n.ujt;Object.assign(t.module,n.module),n.module?.ws&&s.useWs(n.ujt,t.module.value);const{initAppModel:l}=s.useInitApp(n.ujt);return t.stat[t.module.value]=0,l(t.module.value).then(i=>{t.stat[t.module.value]=1}),(i,f)=>{const u=e.resolveComponent("RouterView");return n.module?.value&&e.unref(t).stat[n.module.value]?(e.openBlock(),e.createBlock(u,{key:0,ujt:o.ujt,ty:o.ty||0},null,8,["ujt","ty"])):e.unref(t).pagebusy?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.resolveDynamicComponent("PageLoadErr"),{key:1,ujt:o.ujt},null,8,["ujt"]))}}})},Symbol.toStringTag,{value:"Module"})),Y={class:"app-area"},X={class:"app-logo"},Z=["src"],Q={class:"app-menu-area"},ee=["onPointerup"],te={class:"menu-text"},oe={class:"app-login"},ne=e.defineComponent({__name:"AsaiWebModuleDefault",props:{ujt:{}},setup(o){const n=o,{$global:t,$fn:s}=n.ujt;return s.initrouter(),(l,i)=>{const f=e.resolveComponent("MenuShowFix"),u=e.resolveComponent("AsReset");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(f,{ujt:o.ujt,menus:e.unref(t).url[e.unref(t).module.value]},null,8,["ujt","menus"]),e.createElementVNode("div",Y,[e.createElementVNode("div",X,[e.createElementVNode("img",{src:e.unref(t).$cfg.logo,width:"200"},null,8,Z)]),e.createElementVNode("div",Q,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(t).url[e.unref(t).module.value],m=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`app-menu${m.type==="module"?" module":""}`),key:m.value,onPointerup:g=>e.unref(s).sethash(m.value==="views"?"":m.value)},[e.createElementVNode("span",te,e.toDisplayString(m.label),1)],42,ee))),128))]),e.createElementVNode("div",oe,[e.createVNode(u,{ujt:o.ujt},null,8,["ujt"])])])],64)}}}),w=(o,n)=>{const t=o.__vccOpts||o;for(const[s,l]of n)t[s]=l;return t},se=Object.freeze(Object.defineProperty({__proto__:null,default:w(ne,[["__scopeId","data-v-bba548d2"]])},Symbol.toStringTag,{value:"Module"})),le=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"AsaiWebModuleIndex",props:{ujt:{},ty:{}},setup(o){const n=o,{$global:t,$fn:s}=n.ujt;return s.initrouter(),(l,i)=>{const f=e.resolveComponent("MenuShowFix"),u=e.resolveComponent("RouterView");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(f,{ujt:o.ujt,menus:e.unref(t).url[e.unref(t).module.value]},null,8,["ujt","menus"]),e.unref(t).stat[e.unref(t).module.value]?(e.openBlock(),e.createBlock(u,{key:0,ujt:o.ujt,ty:o.ty||1},null,8,["ujt","ty"])):e.createCommentVNode("",!0)],64)}}})},Symbol.toStringTag,{value:"Module"})),ae=Object.freeze(Object.defineProperty({__proto__:null,default:w(e.defineComponent({__name:"AsaiWebServer",props:{ujt:{}},setup(o){const n=o,{$global:t}=n.ujt;return(s,l)=>{const i=e.resolveComponent("AsaiComponent");return e.openBlock(),e.createElementBlock("div",{id:"asaiwebserver",class:e.normalizeClass("asaiweb asaiweb"+(e.unref(t).location?.hasharr?.[0]||"default"))},[e.createVNode(i,{ujt:o.ujt},null,8,["ujt"])],2)}}}),[["__scopeId","data-v-7d8d7f46"]])},Symbol.toStringTag,{value:"Module"})),re=Object.freeze(Object.defineProperty({__proto__:null,default:w(e.defineComponent({__name:"AsaiWebServerNode",props:{ujt:{}},setup(o){const n=o,{$fn:t,$global:s}=n.ujt,{initChannelUserToken:l}=t.useChannelUser({ujt:n.ujt,opt:{channel:s?.sys?.sysdb?.user?.channel||"channeluser"}});return l().catch(()=>{t.login()}),(i,f)=>{const u=e.resolveComponent("AsaiComponent");return e.openBlock(),e.createElementBlock("div",{id:"asaiwebservernode",class:e.normalizeClass("asaiweb asaiweb"+e.unref(s).location?.hasharr?.[0])},[e.unref(s).code.pub?(e.openBlock(),e.createBlock(u,{key:0,ujt:o.ujt},null,8,["ujt"])):e.unref(s).pagebusy?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.resolveDynamicComponent("PageLoadServer"),{key:1,ujt:o.ujt},null,8,["ujt"]))],2)}}}),[["__scopeId","data-v-316455f4"]])},Symbol.toStringTag,{value:"Module"})),ie=Object.freeze(Object.defineProperty({__proto__:null,default:w(e.defineComponent({__name:"AsaiWebServerUser",props:{ujt:{}},setup(o){const n=o,{$fn:t,$global:s}=n.ujt,{initChannelUserToken:l}=t.useChannelUser({ujt:n.ujt,opt:{channel:s?.sys?.sysdb?.user?.channel||"channeluser"}});return l().catch(()=>{t.login()}),(i,f)=>{const u=e.resolveComponent("AsaiComponent");return e.openBlock(),e.createElementBlock("div",{id:"asaiwebserveruser",class:e.normalizeClass("asaiweb asaiweb"+e.unref(s).location?.hasharr?.[0])},[e.unref(s).code.token?(e.openBlock(),e.createBlock(u,{key:0,ujt:o.ujt},null,8,["ujt"])):e.unref(s).pagebusy?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.resolveDynamicComponent("PageLoadUserToken"),{key:1,ujt:o.ujt},null,8,["ujt"]))],2)}}}),[["__scopeId","data-v-a4bd06af"]])},Symbol.toStringTag,{value:"Module"})),ce=Object.freeze(Object.defineProperty({__proto__:null,default:w(e.defineComponent({__name:"AsaiWebServerUserOnline",props:{ujt:{}},setup(o){const n=o,{$fn:t,$global:s}=n.ujt,{initChannelUserOnline:l}=t.useChannelUser({ujt:n.ujt,opt:{channel:s?.sys?.sysdb?.user?.channel||"channeluser"}});return l().catch(()=>{t.login()}),(i,f)=>{const u=e.resolveComponent("AsaiComponent");return e.openBlock(),e.createElementBlock("div",{id:"asaiwebserveruseronline",class:e.normalizeClass("asaiweb asaiweb"+e.unref(s).location?.hasharr?.[0])},[e.unref(s).code.token&&e.unref(s).user.online?(e.openBlock(),e.createBlock(u,{key:0,ujt:o.ujt},null,8,["ujt"])):e.unref(s).pagebusy?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.resolveDynamicComponent("PageLoadUserTokenOnline"),{key:1,ujt:o.ujt},null,8,["ujt"]))],2)}}}),[["__scopeId","data-v-6cc1e64b"]])},Symbol.toStringTag,{value:"Module"})),de={key:0,class:"as-pagebusy-area touch-none"},ue={class:"as-pagebusy"},fe={key:0,class:"as-pagebusy-v"},pe=Object.freeze(Object.defineProperty({__proto__:null,default:w(e.defineComponent({__name:"AsPageBusy",props:{ujt:{}},setup(o){e.useCssVars(f=>({v2189716e:l.value}));const n=o,{$global:t,$fn:s}=n.ujt,l=e.computed(()=>t.pagebusy?.zindex||9999);function i(){s.popConfirm({con:t.lang.asai.resetconfirm,zindex:l.value+1,fn:()=>{t.pagebusy=null,s.As.localInit()}})}return(f,u)=>{const m=e.resolveComponent("AsPageBusyGif"),g=e.resolveDirective("dbpointerdown");return e.unref(t).pagebusy?e.withDirectives((e.openBlock(),e.createElementBlock("div",de,[e.createElementVNode("div",{class:"as-pagebusy-close",onClick:u[0]||(u[0]=e.withModifiers(_=>i(),["stop"]))}),e.createElementVNode("div",ue,[e.createVNode(m,{ujt:o.ujt},null,8,["ujt"]),e.unref(t).pagebusy?.v?(e.openBlock(),e.createElementBlock("div",fe,e.toDisplayString(e.unref(t).pagebusy?.v),1)):e.createCommentVNode("",!0)])])),[[g,()=>{e.unref(t).pagebusy?.keep||i()}]]):e.createCommentVNode("",!0)}}}),[["__scopeId","data-v-3b86e9a1"]])},Symbol.toStringTag,{value:"Module"})),me=w(e.defineComponent({__name:"AsLoadingCircle",props:{ujt:{type:Object,default:()=>({})},size:{type:Number,default:68,validator:o=>o>0}},setup(o){return(n,t)=>(e.openBlock(),e.createElementBlock("div",{class:"as-load-gif",style:e.normalizeStyle({width:o.size+"px",height:o.size+"px"})},null,4))}}),[["__scopeId","data-v-c5bf2081"]]),ge=w(e.defineComponent({__name:"AsLoadingA3d",props:{ujt:{type:Object,default:()=>({})},size:{type:Number,default:68,validator:o=>o>0}},setup(o){return(n,t)=>(e.openBlock(),e.createElementBlock("div",{class:"a3d-wrapper",style:e.normalizeStyle({"--cube-size":`${o.size}px`,"--half-size":`${o.size/2}px`})},[...t[0]||(t[0]=[e.createStaticVNode('<div class="a3d" data-v-4d1d2b0e><div class="a3d-face a3d-face-front" data-v-4d1d2b0e></div><div class="a3d-face a3d-face-back" data-v-4d1d2b0e></div><div class="a3d-face a3d-face-left" data-v-4d1d2b0e></div><div class="a3d-face a3d-face-right" data-v-4d1d2b0e></div><div class="a3d-face a3d-face-top" data-v-4d1d2b0e></div><div class="a3d-face a3d-face-bottom" data-v-4d1d2b0e></div></div>',1)])],4))}}),[["__scopeId","data-v-4d1d2b0e"]]),he=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"AsPageBusyGif",props:{ujt:{},opt:{}},setup(o){const n=o,{$global:t}=n.ujt;return(s,l)=>o.opt?.ty||e.unref(t).pagebusy?.ty?(e.openBlock(),e.createBlock(ge,{key:0,size:o.opt?.size||e.unref(t).pagebusy?.size,ujt:o.ujt},null,8,["size","ujt"])):(e.openBlock(),e.createBlock(me,{key:1,size:o.opt?.size||e.unref(t).pagebusy?.size,ujt:o.ujt},null,8,["size","ujt"]))}})},Symbol.toStringTag,{value:"Module"})),be={key:0,class:"as-usercard"},_e=Object.freeze(Object.defineProperty({__proto__:null,default:w(e.defineComponent({__name:"AsReset",props:{ujt:{},type:{}},setup(o){const n=o,{$fn:t,$global:s}=n.ujt,l={};return(i,f)=>{const u=e.resolveComponent("AsSvg");return e.renderSlot(i.$slots,"default",{item:{},option:l},()=>[e.unref(s).lang?.asai?.usercard?(e.openBlock(),e.createElementBlock("div",be,[e.createElementVNode("div",{onClick:f[0]||(f[0]=m=>e.unref(t).login())},[e.createVNode(u,{color:"var(--cu6)",height:"26px",src:"asai/login"}),e.createTextVNode(" "+e.toDisplayString(e.unref(s).lang.asai.usercard?.login),1)]),e.createElementVNode("div",{onClick:f[1]||(f[1]=m=>e.unref(t).As.localInit()),title:"ctrl+shift+r"},[e.createVNode(u,{color:"var(--cu6)",height:"26px",src:"asai/reset"}),e.createTextVNode(" "+e.toDisplayString(e.unref(s).lang.asai.usercard?.reset),1)])])):e.createCommentVNode("",!0)],!0)}}}),[["__scopeId","data-v-a12ce8ac"]])},Symbol.toStringTag,{value:"Module"})),$e={class:"as-icon"},ye={key:0,class:"as-icon-filter"},we=["src"],ke=Object.freeze(Object.defineProperty({__proto__:null,default:w(e.defineComponent({__name:"AsSvg",props:{src:{type:String,default:""},height:{type:String,default:"24px"},width:{type:String,default:""},color:{type:String,default:"var(--cv8)"},showtype:{type:String,default:"mask"},webty:{type:String,default:""}},setup(o){const n=o,t=window?.$CFG?.webpath||"./";let s=e.ref("");const l=e.computed(()=>s.value?t+"webmodel/files/"+(n.webty??+n.webty+"/")+"svg/"+s.value+".svg":n.src.startsWith("http")||n.src.endsWith(".svg")||n.src.endsWith(".png")?n.src:t+"webmodel/files/"+(n.webty??+n.webty+"/")+"svg/"+n.src+".svg");function i(){s.value="default"}function f(){return{width:`${n.width?n.width:n.height}`,height:`${n.height?n.height:n.width}`,"background-color":`${n.color}`,"mask-image":`url('${l.value}')`,"-webkit-mask-image":`url('${l.value}')`}}function u(){return n.width?{transform:"translateX(-100%)",filter:`drop-shadow(${n.width} 0 ${n.color})`,width:`${n.width}`}:{transform:"translateY(-100%)",filter:`drop-shadow(0 ${n.height} ${n.color})`,height:`${n.height}`}}return(m,g)=>(e.openBlock(),e.createElementBlock("i",$e,[o.showtype==="filter"?(e.openBlock(),e.createElementBlock("i",ye,[e.createElementVNode("img",{style:e.normalizeStyle(u()),src:l.value,onError:g[0]||(g[0]=_=>i())},null,44,we)])):(e.openBlock(),e.createElementBlock("i",{key:1,class:"as-icon-mask",style:e.normalizeStyle(f())},null,4))]))}}),[["__scopeId","data-v-d9bafe22"]])},Symbol.toStringTag,{value:"Module"})),je={class:"as-floating-menu"},Se={key:0},Ae={key:1},Ce=["onPointerup"],Ee=Object.freeze(Object.defineProperty({__proto__:null,default:w(e.defineComponent({__name:"MenuShowFix",props:{ujt:{},menus:{}},setup(o){const n=o,{$fn:t,$global:s}=n.ujt,l=e.ref(!1);function i(){l.value=!l.value}const f=e.computed(()=>[{value:"/",label:t.lg("asai.home"),type:"module"},{fn:()=>s.theme.c=s.theme.c==="d"?"l":"d",label:t.lg("asai.theme"),type:"module"},{fn:()=>s.theme.s=s.theme.s==="b"?"n":"b",label:t.lg("asai.size"),type:"module"},{fn:()=>t.changelang("auto"),label:t.lg("asai.langs.default"),type:"module"},...n.menus||[]]);return(u,m)=>!e.unref(s).sys||e.unref(s).sys.devlevel>1?(e.openBlock(),e.createBlock(e.Teleport,{key:0,to:"#teleportpopbox"},[e.createElementVNode("div",je,[e.createElementVNode("button",{class:"as-floating-button",onClick:i},[l.value?(e.openBlock(),e.createElementBlock("span",Se,"×")):(e.openBlock(),e.createElementBlock("span",Ae,"☰"))]),e.createElementVNode("ul",{class:e.normalizeClass(["as-floating-menus",{open:l.value}])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,(g,_)=>(e.openBlock(),e.createElementBlock("li",{key:"menu"+_,class:e.normalizeClass(`${g.type==="module"?"module ":""}${g.value&&e.unref(s).location.hash.includes(g.value)?"active":""}`),onPointerup:$=>g.value?e.unref(t).sethash(g.value):g?.fn?.()},e.toDisplayString(_+1)+". "+e.toDisplayString(g.label||g.value),43,Ce))),128))],2)])])):e.createCommentVNode("",!0)}}),[["__scopeId","data-v-162e1725"]])},Symbol.toStringTag,{value:"Module"})),Be={class:"app-menu-area"},Pe=Object.freeze(Object.defineProperty({__proto__:null,default:w(e.defineComponent({__name:"RouterMap",props:{ujt:{},menus:{}},setup(o){const n=o,{$fn:t}=n.ujt;return(s,l)=>(e.openBlock(),e.createElementBlock("div",Be,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.menus,i=>(e.openBlock(),e.createElementBlock("div",{class:"app-menu",onClick:l[0]||(l[0]=f=>e.unref(t).sethash("item.value"))},e.toDisplayString(i.label),1))),256))]))}}),[["__scopeId","data-v-6d15bb32"]])},Symbol.toStringTag,{value:"Module"})),Oe={key:0,class:"loading"},Ne={key:1,class:"error"},Ve=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"RouterView",props:{ujt:{},ty:{}},setup(o){const n=o,{$model:t,$fn:s,$global:l}=n.ujt,i=e.shallowReactive({comp:null}),f=e.ref(!1),u=e.ref(null);s.getcomp=async g=>{f.value=!0,u.value=null;try{try{return e.defineAsyncComponent(t.comps[`./${g}.vue`])}catch(_){if(g&&g.endsWith("/default"))return e.defineAsyncComponent(t.comps[`./${g.slice(0,-8)}.vue`]);throw _}}catch(_){return u.value=_,e.defineAsyncComponent(()=>Promise.resolve().then(()=>kt))}finally{f.value=!1}};const m=e.watch(()=>l.location.comps[n.ty],async(g,_)=>{g&&g!==_&&(i.comp=await s.getcomp(g))},{immediate:!0});return e.onBeforeUnmount(()=>{m&&m.stop()}),(g,_)=>f.value?(e.openBlock(),e.createElementBlock("div",Oe,"Loading...")):u.value?(e.openBlock(),e.createElementBlock("div",Ne,"Component load error")):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(i).comp),{key:2,ujt:o.ujt},null,8,["ujt"]))}})},Symbol.toStringTag,{value:"Module"})),Me=Object.freeze(Object.defineProperty({__proto__:null,default:w(e.defineComponent({__name:"VirtualList",props:{items:{type:Array,required:!0},itemHeight:{type:Number,default:50},buffer:{type:Number,default:5}},setup(o){const n=o,t=e.ref(null),s=e.ref(0),l=e.ref(0),i=e.ref(0),f=e.ref(new Array(n.items.length).fill(Math.round(n.itemHeight))),u=new Map,m=e.computed(()=>Math.round(n.items.reduce((d,p,h)=>d+g(h),0))),g=d=>d<0||d>=n.items.length?0:Math.round(f.value[d]??n.itemHeight),_=()=>{if(!t.value)return{start:0,end:Math.min(n.items.length,n.buffer*3)};const d=s.value,p=t.value.clientHeight;let h=0,b=n.items.length;for(;h<b;){const j=h+b>>>1;a(j)<=d?h=j+1:b=j}const y=Math.max(0,h-1),k=Math.ceil(p/n.itemHeight)+n.buffer*2,A=Math.min(n.items.length,y+k);return{start:y,end:A}},$=e.computed(()=>{const{start:d,end:p}=_();return n.items.slice(d,p).map((h,b)=>{const y=d+b;return{index:y,id:h.id||y,data:h,offset:a(y)}})}),a=d=>{if(d<=0)return 0;if(u.has(d))return u.get(d);let p=d-1;for(;p>0&&!u.has(p);)p--;let h=p>0?u.get(p):0;for(let y=p;y<d;y++)h+=g(y);const b=Math.round(h);return u.set(d,b),b},r=()=>{l.value&&cancelAnimationFrame(l.value),l.value=requestAnimationFrame(()=>{t.value&&(s.value=Math.round(t.value.scrollTop),i.value&&clearTimeout(i.value),i.value=window.setTimeout(()=>{const{start:d,end:p}=_(),h=n.buffer*2;for(const b of u.keys())(b<d-h||b>p+h)&&u.delete(b)},150))})};let c=null;return e.onMounted(()=>{t.value&&r(),c=e.watch(()=>n.items.length,d=>{d>f.value.length?f.value=[...f.value,...new Array(d-f.value.length).fill(Math.round(n.itemHeight))]:d<f.value.length&&(f.value=f.value.slice(0,d)),u.clear()})}),e.onBeforeUnmount(()=>{c&&c.stop(),l.value&&cancelAnimationFrame(l.value),i.value&&clearTimeout(i.value)}),(d,p)=>(e.openBlock(),e.createElementBlock("div",{class:"virtual-list-container",onScroll:r,ref_key:"container",ref:t,style:{height:"100%"}},[e.createElementVNode("div",{class:"virtual-list-wrapper",style:e.normalizeStyle({height:m.value+"px"})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList($.value,h=>(e.openBlock(),e.createElementBlock("div",{class:"virtual-list-item",key:"as"+h.index,style:e.normalizeStyle({transform:`translateY(${h.offset}px)`})},[e.renderSlot(d.$slots,"default",{item:h},void 0,!0)],4))),128))],4)],544))}}),[["__scopeId","data-v-b613b7a8"]])},Symbol.toStringTag,{value:"Module"})),xe={class:"as-load-area"},Te=["src"],Re={class:"tit",style:{color:"var(--cz8)"}},We=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"PageErr",props:{ujt:{}},setup(o){const n=window;function t(){n?.localStorage?.clear(),n?.location?.reload()}return(s,l)=>(e.openBlock(),e.createElementBlock("div",xe,[e.createElementVNode("img",{onDblclick:l[0]||(l[0]=i=>t()),src:e.unref(n).$CFG.logo,width:"200"},null,40,Te),l[2]||(l[2]=e.createElementVNode("div",{class:"as-load-icon"},[e.createElementVNode("div",{class:"as-load-gif",style:{width:"68px",height:"68px"}})],-1)),e.createElementVNode("div",{class:"as-load-msg",onClick:l[1]||(l[1]=i=>e.unref(n)?.location?.reload())},[e.createElementVNode("div",Re,e.toDisplayString(e.unref(n).$GYS.$webmodel.lang[e.unref(n).$GYS.$webmodel.lang.langty].pageerr),1)])]))}})},Symbol.toStringTag,{value:"Module"})),Le={class:"as-load-area"},De=["src"],ze=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"PageLoadClient",props:{ujt:{}},setup(o){const n=e.ref("");e.onMounted(()=>{const s=window;n.value=s?.$CFG?.logo||""});function t(){const s=window;try{s?.localStorage?.clear()}catch{console.warn("Failed to clear localStorage")}s?.location?.reload()}return(s,l)=>(e.openBlock(),e.createElementBlock("div",Le,[n.value?(e.openBlock(),e.createElementBlock("img",{key:0,onDblclick:l[0]||(l[0]=i=>t()),src:n.value,width:"200"},null,40,De)):e.createCommentVNode("",!0),l[2]||(l[2]=e.createElementVNode("div",{class:"as-load-icon"},[e.createElementVNode("div",{class:"as-load-gif",style:{width:"68px",height:"68px"}})],-1)),e.createElementVNode("div",{class:"as-load-msg",onClick:l[1]||(l[1]=i=>t())},"Loading...")]))}})},Symbol.toStringTag,{value:"Module"})),Ie={class:"as-load-area"},Ue=["src"],Fe={class:"as-load-icon"},Ge={class:"as-load-msg"},He={class:"tit",style:{color:"var(--cz8)"}},ve=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"PageLoadErr",props:{ujt:{},type:{}},setup(o){const n=o,{$fn:t,$global:s}=n.ujt;return(l,i)=>{const f=e.resolveComponent("AsPageBusyGif"),u=e.resolveComponent("AsReset");return e.openBlock(),e.createElementBlock("div",Ie,[e.createElementVNode("img",{onDblclick:i[0]||(i[0]=m=>e.unref(t).As.localInit()),src:e.unref(s).$cfg.logo,width:"200"},null,40,Ue),e.createElementVNode("div",Fe,[e.createVNode(f,{ujt:o.ujt},null,8,["ujt"])]),e.createElementVNode("div",Ge,[e.createElementVNode("div",He,e.toDisplayString(e.unref(s).lang?.asai?.page?.loadws),1),e.createElementVNode("h3",null,e.toDisplayString(n.type),1),e.createVNode(u,{ujt:o.ujt},null,8,["ujt"])])])}}})},Symbol.toStringTag,{value:"Module"})),Je={class:"as-load-area"},qe=["src"],Ke={class:"as-load-icon"},Ye={class:"as-load-msg"},Xe={class:"tit",style:{color:"var(--cy8)"}},Ze=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"PageLoadServer",props:{ujt:{}},setup(o){const n=o,{$fn:t,$global:s}=n.ujt;return(l,i)=>{const f=e.resolveComponent("AsPageBusyGif"),u=e.resolveComponent("AsReset");return e.openBlock(),e.createElementBlock("div",Je,[e.createElementVNode("img",{onDblclick:i[0]||(i[0]=m=>e.unref(t).As.localInit()),src:e.unref(s).$cfg.logo,width:"200"},null,40,qe),e.createElementVNode("div",Ke,[e.createVNode(f,{ujt:o.ujt},null,8,["ujt"])]),e.createElementVNode("div",Ye,[e.createElementVNode("div",Xe,e.toDisplayString(e.unref(s).lang.asai.page.loadserver),1),e.createVNode(u,{ujt:o.ujt},null,8,["ujt"])])])}}})},Symbol.toStringTag,{value:"Module"})),Qe={class:"as-load-area"},et=["src"],tt={class:"as-load-icon"},ot={class:"as-load-msg"},nt={class:"tit",style:{color:"var(--cz8)"}},st=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"PageLoadUserToken",props:{ujt:{}},setup(o){const n=o,{$fn:t,$global:s}=n.ujt;return(l,i)=>{const f=e.resolveComponent("AsPageBusyGif"),u=e.resolveComponent("AsReset");return e.openBlock(),e.createElementBlock("div",Qe,[e.createElementVNode("img",{onDblclick:i[0]||(i[0]=m=>e.unref(t).As.localInit()),src:e.unref(s).$cfg.logo,width:"200"},null,40,et),e.createElementVNode("div",tt,[e.createVNode(f,{ujt:o.ujt},null,8,["ujt"])]),e.createElementVNode("div",ot,[e.createElementVNode("div",nt,e.toDisplayString(e.unref(s).lang.asai.page.loadusertoken),1),e.createVNode(u,{ujt:o.ujt},null,8,["ujt"])])])}}})},Symbol.toStringTag,{value:"Module"})),lt={class:"as-load-area"},at=["src"],rt={class:"as-load-icon"},it={class:"as-load-msg"},ct={class:"tit",style:{color:"var(--cy8)"}},dt=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"PageLoadUserTokenOnline",props:{ujt:{}},setup(o){const n=o,{$fn:t,$global:s}=n.ujt;return(l,i)=>{const f=e.resolveComponent("AsPageBusyGif"),u=e.resolveComponent("AsReset");return e.openBlock(),e.createElementBlock("div",lt,[e.createElementVNode("img",{onDblclick:i[0]||(i[0]=m=>e.unref(t).As.localInit()),src:e.unref(s).$cfg.logo,width:"200"},null,40,at),e.createElementVNode("div",rt,[e.createVNode(f,{ujt:o.ujt},null,8,["ujt"])]),e.createElementVNode("div",it,[e.createElementVNode("div",ct,e.toDisplayString(e.unref(s).lang.asai.page.loaduseronline),1),e.createVNode(u,{ujt:o.ujt},null,8,["ujt"])])])}}})},Symbol.toStringTag,{value:"Module"})),ut={class:"as-load-area"},ft=["src"],pt={class:"as-load-icon"},mt={class:"as-load-msg"},gt={class:"tit",style:{color:"var(--cz8)"}},ht=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"PageLoadWs",props:{ujt:{},type:{}},setup(o){const n=o,{$fn:t,$global:s}=n.ujt;return(l,i)=>{const f=e.resolveComponent("AsPageBusyGif"),u=e.resolveComponent("AsReset");return e.openBlock(),e.createElementBlock("div",ut,[e.createElementVNode("img",{onDblclick:i[0]||(i[0]=m=>e.unref(t).As.localInit()),src:e.unref(s).$cfg.logo,width:"200"},null,40,ft),e.createElementVNode("div",pt,[e.createVNode(f,{ujt:o.ujt},null,8,["ujt"])]),e.createElementVNode("div",mt,[e.createElementVNode("div",gt,e.toDisplayString(e.unref(s).lang?.asai?.page?.loadws),1),e.createElementVNode("h3",null,e.toDisplayString(n.type),1),e.createVNode(u,{ujt:o.ujt},null,8,["ujt"])])])}}})},Symbol.toStringTag,{value:"Module"})),bt={class:"page-404"},_t={class:"content"},$t={key:0,class:"title"},yt={class:"description"},wt={class:"footer"},kt=Object.freeze(Object.defineProperty({__proto__:null,default:w(e.defineComponent({__name:"Asai404",props:{ujt:{}},setup(o){const n=o,{$global:t}=n.ujt;return(s,l)=>{const i=e.resolveComponent("AsReset");return e.openBlock(),e.createElementBlock("div",bt,[e.createElementVNode("div",_t,[l[0]||(l[0]=e.createElementVNode("div",{class:"error-code"},"404",-1)),e.unref(t).lang?.asai?.page?.page404?(e.openBlock(),e.createElementBlock("h1",$t,e.toDisplayString(e.unref(t).lang?.asai?.page?.page404||"页面未找到"),1)):e.createCommentVNode("",!0),e.createElementVNode("p",yt,e.toDisplayString(e.unref(t).lang?.asai?.page?.reason404||"Sorry, Page not found!"),1)]),e.createElementVNode("div",wt,[e.createVNode(i,{ujt:o.ujt},null,8,["ujt"])])])}}}),[["__scopeId","data-v-999cd3d9"]])},Symbol.toStringTag,{value:"Module"}));S.default=W,Object.defineProperties(S,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
|
|
1
|
+
(function(S,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(S=typeof globalThis<"u"?globalThis:S||self,e(S["asai-vue-host"]={},S.Vue))})(this,(function(S,e){"use strict";const E=Object.freeze(Object.defineProperty({__proto__:null,default:{getUrlByCfg(o=null,n=0){return o?.url?o.url:o?.port?(n?window.location.protocol.includes("s")?"wss:":"ws:":window.location.protocol)+"//"+window.location.hostname+":"+o.port:n?window.location.origin.replace("http","ws"):window.location.origin},arrLenMax(o,n,t=0){return o.length>n&&(t?o.splice(n,o.length-n):o.splice(0,o.length-n)),o},cookiesSetByEncodeURI(o,n,t=0,s="/"){let l="";if(t){const i=new Date;i.setTime(i.getTime()+t),l="; expires="+i.toUTCString()}document.cookie=o+"="+encodeURIComponent(n)+l+"; path="+(s||"/")},cookiesSet(o,n,t=0,s="/"){try{let l="";if(t){const i=new Date;i.setTime(i.getTime()+t),l="; expires="+i.toUTCString()}document.cookie=o+"="+n+l+"; path="+(s||"/")}catch{}},cookiesGet(o){try{const n=document.cookie;if(!n)return"";const t=n.match(new RegExp(`(^| )${o}=([^;]*)(;|$)`));return t&&t[2]?decodeURIComponent(t[2]):""}catch(n){return console.error("cookiesGet error:",n),""}},cookiesDel(o){this.cookiesSetByEncodeURI(o,"",-1e3)},cookiesClear(){const o=document.cookie.split("; ");for(let n=0;n<o.length;n++){const t=o[n],s=t.indexOf("="),l=s>-1?t.substring(0,s):t;document.cookie=l+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/"}},readFile(o=null,n=0){return new Promise((t,s)=>{if(o){const l=new FileReader;n?l.readAsText(o):l.readAsDataURL(o),l.onload=()=>{t(l.result)}}else s()})},apiJsonp(o,n){try{const t=window,s=`asaiJsonp_${Date.now()}_${Math.random().toString(36).slice(2)}`;t[s]=i=>{n&&n(i),delete t[s]};const l=document.createElement("script");l.src=`${o}&callback=${s}`,l.type="text/javascript",l.async=!0,l.onload=()=>{document.body.removeChild(l)},l.onerror=()=>{document.body.removeChild(l),delete t[s],n&&n("ERROR")},document.body.appendChild(l)}catch{n&&n("ERROR")}},localTime(o,n=0){if(n){const t=JSON.parse(this.localGet("astime")||"{}");t[o]=n,localStorage.setItem("astime",JSON.stringify(t))}else{const t=JSON.parse(this.localGet("astime")||"{}");if(t[o])return t[o]}return 0},localSet(o,n,t=localStorage){try{typeof n=="object"?t.setItem(o,JSON.stringify(n)):t.setItem(o,String(n))}catch(s){console.error("localSet error:",s)}},localGet(o,n=localStorage){try{return n.getItem(o)}catch{}return""},localRemove(o,n=localStorage){try{return n.removeItem(o)}catch{}},localClears(o=null,n=localStorage){if(o?.length){let t;for(let s in n)t=o.find(l=>s.startsWith(l)),t&&this.localRemove(s,n)}else this.localClear(n)},localClear(o=localStorage){o.clear()},localInit(o=localStorage){this.localClear(o),location.replace("/#"),this.localReload()},localReload(){location.reload()},getPath(o="-"){return o?.replace(/[^a-zA-Z0-9.\-_\\\/]/g,"")},getName(o="-"){return o?.replace(/[^a-zA-Z0-9.\-_]/g,"")},eStop(o){const n=window.event||o;return n?.preventDefault(),n?.stopPropagation(),!0},treeToMap(o,n={}){const t=new Map,s=new Map;if(!o)return{nodeMap:t,depthMap:s};const l=n.id||"id",i=n.ch||"ch",f=n.ft,u=n.ftk,m=n.fty===1,g=typeof f=="string"&&f.length>0&&u,_=[{[i]:o}],$=[0];let a,r,c;for(;_.length;){if(a=_.pop(),r=$.pop(),c=a[l],r>0)if(g){const p=a[u],h=typeof p=="string"&&p.includes(f);(m?!h:h)&&(t.set(c,a),s.set(c,r))}else t.set(c,a),s.set(c,r);const d=a[i];if(d&&d.length>0){const p=r+1;for(let h=d.length-1;h>=0;h--)_.push(d[h]),$.push(p)}}return{nodeMap:t,depthMap:s}},fullScreen(o=""){const n=o?document.getElementById(o):document.documentElement||document.body,t=n.requestFullScreen||n.webkitRequestFullScreen||n.mozRequestFullScreen||n.msRequestFullScreen;if(t)t.call(n);else{const{ActiveXObject:s}=window;if(typeof s<"u"){const l=new s("WScript.Shell");l!==null&&l.SendKeys("{F11}")}}},fullScreenExit(){const o=document?.exitFullscreen;if(o)document.fullscreenElement!==null&&o.call(document);else{const{ActiveXObject:n}=window;if(typeof n<"u"){const t=new n("WScript.Shell");t!==null&&t.SendKeys("{F11}")}}},fullScreenDo(o=null){document.fullscreenElement?this.fullScreenExit():this.fullScreen(),o&&o()},toNums(o,n=0){return o&&Object.keys(o).forEach(t=>{typeof o[t]=="number"&&(o[t]=this.toNum(o[t],n))}),o},toNum(o,n=0){return typeof o!="number"&&typeof o=="string"&&(o=Number(o)),Number.isNaN(o)&&(o=0),o&&n&&(o=Math.round(o*10**n)/10**n),o},toObj(o){try{return o&&typeof o=="string"?JSON.parse(o):o}catch{return{err:"不是JSON格式数据"}}},toStr(o){if(typeof o=="string")return o;try{return JSON.stringify(o)}catch{const t=[];return JSON.stringify(o,(s,l)=>{if(typeof l=="object"&&l!==null){if(t.indexOf(l)!==-1)return;t.push(l)}return l})}},toArr(o,n=0){if(o){if(Array.isArray(o))return o;if(typeof o=="object")return Object.entries(o)}return n?[]:null},setObjValByPath(o,n,t,s=0){try{const l=n.split(".");let i=o;for(let u=0;u<l.length-1;u++){const m=l[u];if(i[m]===void 0||typeof i[m]!="object"||i[m]===null)if(s)i[m]={};else return!1;i=i[m]}const f=l[l.length-1];return i[f]=t,!0}catch{return!1}},isValidFileName(o){if(!o||o.length===0)return!1;const n=o.length;for(let s=0;s<n;s++){const l=o.charCodeAt(s);if(l<=31||l===92||l===47||l===58||l===42||l===63||l===34||l===60||l===62||l===124)return!1}const t=o.charCodeAt(n-1);return!(t===32||t===46)},getTime(o=6,n=0){let t="",s;n?(typeof n=="string"&&(n=Number(n)),n<9999999999?n=n*1e3:n>9999999999999&&(n=n/1e3),s=new Date(n)):s=new Date;const[l,i]=o>9?o+"":"0"+o;function f(u){return+l<=u&&+i>=u}return f(1)&&(t+=("00"+s.getFullYear()).slice(-4)+"-"),f(2)&&(t+=("00"+(s.getMonth()+1)).slice(-2)+"-"),f(3)&&(t+=("00"+s.getDate()).slice(-2)+" "),f(4)&&(t+=("00"+s.getHours()).slice(-2)+":"),f(5)&&(t+=("00"+s.getMinutes()).slice(-2)+":"),f(6)&&(t+=("00"+s.getSeconds()).slice(-2)+"."),f(7)&&(t+=("000"+s.getMilliseconds()).slice(-3)+" "),f(9)?t.replace(/\D/g,""):t&&t.substring(0,t.length-1)},toFormTime(o=0){return this.getTime(6,o).replace(" ","T")},fromFormTime(o="",n=1){const t=o?new Date(o).getTime():new Date().getTime();return Math.floor(t/n)},Uuid(o="",n=0,t=32){return[o.slice(-3),Date.now().toString(36).slice(-9),n.toString(36),crypto.getRandomValues(new Uint8Array(6)).reduce((l,i)=>l+(i&15).toString(t),"")].join("").slice(0,16)},downloadTxt(o="",n=""){if(o){typeof o=="object"&&(o=JSON.stringify(o));const t=document.createElement("a");t.style.display="none";const s=new Blob([o],{type:"application/octet-stream;charset=utf-8"}),l=URL.createObjectURL(s);t.href=l,t.setAttribute("download",n),document.body.appendChild(t),t.click(),document.body.removeChild(t),URL.revokeObjectURL(l)}},downloadFile(o="",n=""){const t=document.createElement("a");t.href=o,n?t.download=n:t.download=o.slice(o.lastIndexOf("/")+1),document.body.appendChild(t),t.click(),document.body.removeChild(t)},debounce(o,n){n?.timeout&&(clearTimeout(n.timeout),n.timeout=null),n?.immediate?(n.timeout||o(),n.timeout=setTimeout(()=>{n.timeout=null},n.wait)):n.timeout=setTimeout(()=>{o(),clearTimeout(n.timeout),n.timeout=null},n.wait)},throttle(o,n){n?.timeout&&(clearTimeout(n.timeout),n.timeout=null),n?.immediate?(n.endtime=new Date().valueOf(),n.endtime-n.starttime>n.wait&&(o(),n.starttime=n.endtime)):n&&!n?.timeout&&(n.timeout=setTimeout(()=>{o(),clearTimeout(n.timeout),n.timeout=null},n.wait))},async copyToClipboard(o){try{return this.localSet("as-clipboard",o),!0}catch(n){throw n}},async readFromClipboard(){try{return this.localGet("as-clipboard")||""}catch(o){throw o}},DeepClone(o,n=new WeakMap){if(o===null||typeof o!="object")return o;if(n.has(o))return n.get(o);if(o instanceof Date)return new Date(o);if(o instanceof RegExp)return new RegExp(o.source,o.flags);if(o instanceof Map){const s=new Map;return n.set(o,s),o.forEach((l,i)=>{s.set(this.DeepClone(i,n),this.DeepClone(l,n))}),s}if(o instanceof Set){const s=new Set;return n.set(o,s),o.forEach(l=>{s.add(this.DeepClone(l,n))}),s}const t=Array.isArray(o)?[]:{};n.set(o,t);for(let s in o)o.hasOwnProperty(s)&&(t[s]=this.DeepClone(o[s],n));return t}}},Symbol.toStringTag,{value:"Module"})),B=Object.freeze(Object.defineProperty({__proto__:null,default:{base64Encode(o){return btoa(unescape(encodeURIComponent(o)))},base64Decode(o){try{return decodeURIComponent(escape(atob(o)))}catch(n){return console.error("base64Decode error:",n),""}},simpleEncrypt(o,n=3){return o.split("").map(t=>String.fromCharCode(t.charCodeAt(0)+n)).join("")},simpleDecrypt(o,n=3){return o.split("").map(t=>String.fromCharCode(t.charCodeAt(0)-n)).join("")},enc(o){const n=this.simpleEncrypt(o,5);return this.base64Encode(n)},dec(o){const n=this.base64Decode(o);return this.simpleDecrypt(n,5)}}},Symbol.toStringTag,{value:"Module"})),P={webpath:window?.$CFG?.webpath||"/",_hashChangeListener:null,_popstateListener:null,initHash(o={}){this.webpath.startsWith("/")?(this._popstateListener=(n=null)=>{o.hash=window.location.pathname||"",this.setRouter(o)},this._popstateListener(),window.addEventListener("popstate",this._popstateListener)):(this._hashChangeListener=(n=null)=>{o.hash=window.location.hash?.replace("#","")||"",this.setRouter(o)},window.addEventListener("hashchange",this._hashChangeListener))},offHash(){this.webpath.startsWith("/")?this._popstateListener&&(window.removeEventListener("popstate",this._popstateListener),this._popstateListener=null):this._hashChangeListener&&(window.removeEventListener("hashchange",this._hashChangeListener),this._hashChangeListener=null)},setHref(o){window.location.href=o},getHref(){return window?.location?.href},setHash(o={},n=""){n&&!n.startsWith("/")&&(n=`/${n}`),o.hash=n||"",this.webpath.startsWith("/")?(window.history.pushState({},"",o.hash),this.setRouter(o)):window.location.hash=o.hash},getQuery(o={},n=""){return o.query={},n=n||window?.location?.search?.substring(1)||"",n&&n.split("&").forEach(t=>{const[s,l]=t.split("=");s&&l&&(o.query[s]=decodeURIComponent(l))}),o.query},getHasharr(o){let n=o.hash;if(o.hasharr=[],n){n.startsWith("/")&&(n=n.slice(1));const[t,s]=n.split("?");let l=t?.split("/")||[];for(;l.length>0&&l[l.length-1]==="";)l.pop();o.hasharr=l,this.getQuery(o,s)}return o.hasharr},setRouter(o){this.getHasharr(o);const n=o.hasharr||[],t=o.hasharr?.length||0;if(o.comps=[],t>0){let s="";for(let l=0;l<t;l++)s=`${s}${n[l]}/`,l==t-1?o.comps[l]=`${s}default`:o.comps[l]=`${s}index`}return o.comps?.length||(o.comps[0]="default"),o.comps},setTitle(o="",n=null){const s=!window?.$CFG?.title&&n?.$global?.lang?.sys?.webtit?n?.$global?.lang?.sys?.webtit:"";o?document.title=`${o}${s?" - "+s:""}`:document.title=`${s}`}},O=Object.freeze(Object.defineProperty({__proto__:null,default:P},Symbol.toStringTag,{value:"Module"})),N=Object.freeze(Object.defineProperty({__proto__:null,default:o=>{const{$fn:n,$model:t,$db:s,$dbwork:l,$global:i}=o;function f(u="testkdd"){const m=e.inject("$vueProxy");m?.$installplugs?.(u),m?.["$engine"+u]&&(Object.assign(n,m["$engine"+u]),m?.["$engineuse"+u]&&Object.assign(n,m["$engineuse"+u])),t[u]||(t[u]={}),l[u]||(l[u]={}),s[u]||(s[u]={}),n.setconfig=(_,$)=>n.apisys.apiPost("/api/asaijson/manage/update/?path=./webclient/webmodel/sys/setting/"+_+".json",$),n.changelangpro=(_="")=>n.changelang(i.config.langcur||_).then($=>{i?.sys?.local?.lang?u&&n.ws?.[u]&&n.ws[u].wsSend({id:"1",ty:"common/setlanguage",db:$}):n.setconfig("settinglang",{lang:_})});const g=[n.initlang(i.config.langcur||"")];return g.push(n.initmodel(u+"/dirmodel.json").then(_=>{_&&Object.assign(t[u],_)})),Promise.all(g)}return{initAppModel:f}}},Symbol.toStringTag,{value:"Module"})),V=e.reactive({providedb:{data:{}}}),M=e.reactive({providedbwork:{data:{}}}),x=e.reactive({provideglobal:{data:{sys:null,wd:{w:0,h:0},config:{theme:"theme-light",lang:"",langcur:""},theme:"",stat:{webclient:0,web:0,cocontrol:0},user:{info:null,online:0},code:{pri:null,pub:null,token:""},location:{},pop:{},url:{},module:{value:"",label:""},keyboard:{comps:{},areastyle:{},opt:{},csskeyboard:"",showkeyboard:!1}}}}),T=e.reactive({providews:{data:{rooms:{},wssys:{}}}}),C={providefn:{data:{api:{},ws:{},wssys:null,workers:{}}}},R=Object.freeze(Object.defineProperty({__proto__:null,default:(o=null)=>{const n=window;Object.assign(C.providefn.data,o?.plugs||{}),n.$GYS||(n.$GYS={});const t={$db:V.providedb.data,$dbwork:M.providedbwork.data,$ws:T.providews.data,$global:x.provideglobal.data,$model:n.$GYS?.$webmodel||{webmodels:["views","webmain"]},$fn:C.providefn.data};t?.$model?.gysfn||(t.$model.gysfn={}),t.$global.$cfg=n.$CFG||{},n.$GYS.ujt=t,t.$fn.lo=(...a)=>{if(t.$global.sys?.onconsole){if(!a?.[0])t.$model.gysfn.log();else if(a.length>0){let r="",c="",d="";if(a[1]&&typeof a[1]=="string"){const[p,h,...b]=a;c=h,d=b,Array.isArray(a[0])&&a[0].length===2?r=l(a[0][0],a[0][1],"12px"):typeof a[0]=="number"&&(r=s(p,12))}r?console.log("%c"+c,r,...d):console.log(...a)}}},t.$model.gysfn.log=()=>(console.log("%c$fn",s(6,18),i(t.$fn),t.$fn),console.log("%c$model",s(5,18),i(t.$model),t.$model),console.log("%c$global",s(4,18),i(t.$global),t.$global),console.log("%c$ws",s(3,18),i(t.$ws),t.$ws),console.log("%c$db",s(2,18),i(t.$db),t.$db),console.log("%c$dbwork",s(1,18),i(t.$dbwork),t.$dbwork),"Web Model Log。");function s(a,r=18){let c="";return a===1?c=l("black","pink",r+"px"):a===2?c=l("black","cyan",r+"px"):a===3?c=l("black","yellow",r+"px"):a===4?c=l("white","blue",r+"px"):a===5?c=l("white","red",r+"px"):a===6?c=l("white","green",r+"px"):a===7&&(c=l("white","purple",r+"px")),c}function l(a,r,c="18px"){return"font-size:"+c+";font-weight:bold;border-radius:20px;padding:0 10px;color:"+a+";background-color:"+r+";"}function i(a){try{return"size=>"+((a&&JSON.stringify(a)?.length)/1024).toFixed(3)+"KB"}catch{return""}}function f(a={}){t.$global.pop.popdefaultconfirm&&(t.$global.pop.popdefaultconfirm.stat=1,t.$global.pop.popdefaultconfirm.full=1,t.$global.pop.popdefaultconfirm.notit=1,Object.assign(t.$global.pop.popdefaultconfirm,a))}function u(a={}){t.$global.pop.popdefaultconfirmpass&&(t.$global.pop.popdefaultconfirmpass.stat=1,t.$global.pop.popdefaultconfirmpass.full=1,t.$global.pop.popdefaultconfirmpass.notit=1,Object.assign(t.$global.pop.popdefaultconfirmpass,a))}t.$fn.popConfirm=f,t.$fn.popConfirmPass=u,t.$fn.getWebPath=(a="")=>{const r=t?.$global?.$cfg?.webpath||"./";return a&&!a.startsWith("http")&&!a.startsWith(r)?r+a:a};const{fetchPublic:m}=t.$fn?.AsaiModel(t.$fn.getWebPath("webmodel/"));t.$fn.initmodel=m,t.$fn.startLink=()=>new Promise((a,r)=>{t.$fn.initmodel("sys/server.json").then(c=>{const d={api:{},ws:{}};["api","ws"].forEach(p=>{Object.keys(c?.[p]||{}).forEach(h=>{let b=c[p][h];b&&typeof b=="string"&&(b=d[p][b]),b||(b=c[p].default),d[p][h]={...b,url:t.$fn.As.getUrlByCfg(b,p=="ws"?1:0)}})}),t.$fn.As.localSet("as-link",JSON.stringify(d)),t.$global.link=d,a(t.$global.link)}).catch(c=>{r(c)})}),t.$fn.saveLink=a=>{t.$global.link=a,t.$fn.As.localSet("as-link",JSON.stringify(t.$global.link))},t.$fn.initLink=(a=0)=>new Promise((r,c)=>{if(a)t.$fn.startLink().then(d=>{r(d)}).catch(d=>{c(d)});else{let d=t.$fn.As.localGet("as-link");d?(t.$global.link=JSON.parse(d),t.$global.link?.api&&t.$global.link?.ws&&t.$global.link?.ws?.default?r(t.$global.link):t.$fn.startLink().then(p=>{r(p)}).catch(p=>{c(p)})):t.$fn.startLink().then(p=>{r(p)}).catch(p=>{c(p)})}});const g=new Map,_=/\$(\d+)/g;t.$fn.lg=(a,r)=>{if(typeof a!="string"||!a)return;let c=g.get(a);c||(c=a.split("."),g.set(a,c));const d=c.reduce((b,y)=>b?.[y],t.$global.lang);if(!r||r.length===0)return d;const p=Array.isArray(r)?r:[r];return d?.replace(_,(b,y)=>{const k=parseInt(y,10)-1;return p[k]??b})},t.$fn.initlang=(a="")=>{let r="";return t.$global?.sys?.local?.lang?r=a||t.$fn.As.localGet(t.$global?.sys?.local?.lang)||t.$model.data?.sys?.settinglang?.lang||t.$model.data?.sys?.sysconfig?.lang[0]:r=a||t.$model.data?.sys?.settinglang?.lang||t.$model.data?.sys?.sysconfig?.lang[0],t.$global?.lang||(t.$global.lang={}),new Promise((c,d)=>{t.$fn.initmodel("lang/dirlang.json",r+"/").then(p=>{Object.assign(t.$global.lang,p),c(t.$global.lang)}).catch(p=>{d(p)})})},t.$fn.changelang=(a="")=>{let r="";return t.$global?.sys?.local?.lang?r=t.$fn.As.localGet(t.$global?.sys?.local?.lang)||t.$model.data?.sys?.settinglang?.lang||t.$model.data?.sys?.sysconfig?.lang[0]:r=t.$global.config.langcur||t.$model.data?.sys?.settinglang?.lang||t.$model.data?.sys?.sysconfig?.lang[0],new Promise((c,d)=>{a&&r===a&&t.$global?.lang?c(r):(a==="auto"?r=r==t.$model.data?.sys?.sysconfig?.lang[0]?t.$model.data?.sys?.sysconfig?.lang[1]:t.$model.data?.sys?.sysconfig?.lang[0]:a&&(r=a),t.$global?.sys?.local?.lang&&t.$fn.As.localSet(t.$global?.sys?.local?.lang,r),t.$global?.sys?.local?.lang||!t.$global.config.lang?(t.$global.config.lang=r,t.$fn.initlang(r).then(p=>{c(r)}).catch(p=>{d(p)})):c(r))})},t.$fn.initver=()=>{if(t.$global.sys?.webver){const a=t.$fn.As.localGet("as-web-ver");if(a){if(t.$global.sys?.webver!==a)return t.$fn.As.localInit(),!0}else t.$fn.As.localSet("as-web-ver",t.$global.sys?.webver||"")}return!1},t.$fn.initweb=async a=>{try{let r=function(){const{protocol:d,hostname:p,port:h,hash:b}=n.location;t.$global.location={protocol:d,hostname:p,port:h,hash:b.replace("#",""),comps:[],query:{}},t.$fn.AsRouter.initHash(t.$global.location),y();function y(){t.$fn.AsRouter.setRouter(t.$global.location)}t.$fn.setquery=(k={},A=0)=>{let j;A?j=new URLSearchParams({...t.$global.location.query||{},...k||{}}).toString():j=new URLSearchParams(k||{}).toString(),j?j=t.$global.location.hash.split("?")[0]+"?"+j:j=t.$global.location.hash.split("?")[0],t.$fn.AsRouter.setHash(t.$global.location,j),y()},t.$fn.sethash=(k="")=>{t.$fn.AsRouter.setHash(t.$global.location,k)},t.$fn.exit=(k=0)=>{t.$fn.As.localSet("as-user-info",""),t.$global.user.info=null,t.$global.code.token=null,k&&(t.$fn.sethash(""),t.$fn.As.localReload())},t.$fn.login=()=>{t.$fn.As.localSet("as-user-info",""),t.$global.user.info=null,t.$fn.sethash(t.$global.sys?.router?.config?.login||"user/login")}};Object.assign(t.$fn,a.$fns||{}),Object.assign(t.$fn,a.$engineasai||{}),Object.assign(t.$fn,a.$engineasailib||{});for(let d=0;d<3;d++)a["$engineasai"+d]&&Object.assign(t.$fn,a["$engineasai"+d]);const c=await t.$fn.initmodel("sys/dirglobal.json");if(t.$global.sys={},Object.keys(c).forEach(d=>{Object.assign(t.$global.sys,c[d])}),t.$fn.initver())return;if(t.$model?.data||(t.$model.data={}),t.$model.data.sys=await t.$fn.initmodel("sys/dirmodel.json"),t.$model.data?.sys?.configrouter){t.$global.sys.router=t.$model.data?.sys?.configrouter;for(let d=0;d<t.$model?.webmodels?.length;d++){const p=await t.$fn.initmodel(t.$model?.webmodels?.[d]+"/configrouter.json");typeof p=="object"&&Object.entries(p).forEach(([h,b])=>{h==="rights"?Object.entries(b).forEach(([y,k])=>{k&&k.length&&k.forEach(A=>{t.$global.sys.router.rights[y].includes(A)||t.$global.sys.router.rights[y].push(A)})}):Object.assign(t.$global.sys.router[h],b)})}}t.$fn.lo(),await t.$fn.initLink(),r()}catch(r){console.error("initUser error:",r)}},t.$fn.offweb=()=>{t.$fn.AsRouter.offHash()},t.$fn.initrouter=()=>{if(t.$global?.sys?.devlevel&&!t.$global.url[t.$global.module.value]){t.$global.url[t.$global.module.value]=[],t.$global.url[t.$global.module.value].push(...Object.keys(t.$model.appmodules.indexRouters).map(r=>({value:r,label:r,type:"module"})));const a=/^\.\/(.*?)\/default\.vue$/;t.$global.url[t.$global.module.value].push(...[...Object.keys(t.$model.comps)?.map(r=>{if(a.test(r)){const c=r.match(a);if(c)return c[1]}return""}).filter(r=>r)].map(r=>({value:r,label:r})))}},t.$fn.inittoken=()=>{t.$global.code.pri&&t.$global.user.info?.us&&(t.$global.code.token=t.$fn.AsCode.asencode(t.$global.user.info?.us,t.$global.code.pri)+"##"+t.$fn.AsCode.asencode(t.$global.user.info?.lv||0,t.$global.code.pri)+"##"+t.$global.code.pub)},t.$fn.gettoken=(a=0)=>t.$global?.code?.token?t.$global.code.token:t.$global?.code?.pub&&a?t.$global?.code?.token||"####"+t.$global.code.pub:"",t.$fn.logSave=(a=null)=>new Promise((r,c)=>{Array.isArray(a)&&(a=a?.map?.(d=>typeof d=="object"?JSON.stringify(d):d)?.join(`
|
|
2
|
+
`)||""),t?.$fn?.apisys?.apiPost("/api/asailog/manage/addclient/",a).then(r).catch(c)});function $(a=new Date){const r=(c,d=2)=>String(c).padStart(d,"0");return`${r(a.getHours())}:${r(a.getMinutes())}:${r(a.getSeconds())}.${r(a.getMilliseconds(),3)}`}return t.$fn.$log=(a=null)=>new Promise((r,c)=>{if(a){const d=`[${$()}] ${t.$global?.user?.info?.us||""}-${a}`;t?.$fn?.lo?.(7,"log",d),t?.$global?.sys?.onweblog&&t.$fn.logSave(d).then(r).catch(c),r()}else r()}),t.$fn.checkOnline=()=>new Promise((a,r)=>{if(t?.$global?.sys?.onwebws&&t?.$global?.sys?.onckuseronline)try{typeof t?.$fn?.ws?.web?.wsApi=="function"?t.$fn.ws.web.wsApi("ping")?.then(c=>{c=="pong"?a(c):r(c)}).catch(r):r()}catch(c){r(c)}else a()}),e.provide("$ujtasai",t),{...t,$ujtasai:t}}},Symbol.toStringTag,{value:"Module"})),L={install(o,n){n.loadts({app:o,key:"$engineasai",eager:!0,files:Object.assign({"./asengine/common/As.ts":E,"./asengine/common/AsAES copy.ts":B,"./asengine/common/AsRouter.ts":O,"./asengine/init/useInitApp.ts":N,"./asengine/provide/useProvide.ts":R})}),n.loadvue({loadfn:n.loadfn,app:o,eager:!1,files:Object.assign({"./asui/app/AsaiComponent.vue":()=>Promise.resolve().then(()=>W),"./asui/app/AsaiInitPage.vue":()=>Promise.resolve().then(()=>D),"./asui/app/AsaiWebItemDefault.vue":()=>Promise.resolve().then(()=>J),"./asui/app/AsaiWebItemIndex.vue":()=>Promise.resolve().then(()=>q),"./asui/app/AsaiWebModule.vue":()=>Promise.resolve().then(()=>Y),"./asui/app/AsaiWebModuleDefault.vue":()=>Promise.resolve().then(()=>se),"./asui/app/AsaiWebModuleIndex.vue":()=>Promise.resolve().then(()=>le),"./asui/app/AsaiWebServer.vue":()=>Promise.resolve().then(()=>ae),"./asui/app/AsaiWebServerNode.vue":()=>Promise.resolve().then(()=>re),"./asui/app/AsaiWebServerUser.vue":()=>Promise.resolve().then(()=>ie),"./asui/app/AsaiWebServerUserOnline.vue":()=>Promise.resolve().then(()=>ce),"./asui/common/AsPageBusy.vue":()=>Promise.resolve().then(()=>pe),"./asui/common/AsPageBusyGif.vue":()=>Promise.resolve().then(()=>he),"./asui/common/AsReset.vue":()=>Promise.resolve().then(()=>_e),"./asui/common/AsSvg.vue":()=>Promise.resolve().then(()=>ke),"./asui/common/MenuShowFix.vue":()=>Promise.resolve().then(()=>Ee),"./asui/common/RouterMap.vue":()=>Promise.resolve().then(()=>Pe),"./asui/common/RouterView.vue":()=>Promise.resolve().then(()=>Ve),"./asui/common/VirtualList.vue":()=>Promise.resolve().then(()=>Me),"./asui/page/PageErr.vue":()=>Promise.resolve().then(()=>Le),"./asui/page/PageLoadClient.vue":()=>Promise.resolve().then(()=>ze),"./asui/page/PageLoadErr.vue":()=>Promise.resolve().then(()=>He),"./asui/page/PageLoadServer.vue":()=>Promise.resolve().then(()=>Ze),"./asui/page/PageLoadUserToken.vue":()=>Promise.resolve().then(()=>st),"./asui/page/PageLoadUserTokenOnline.vue":()=>Promise.resolve().then(()=>dt),"./asui/page/PageLoadWs.vue":()=>Promise.resolve().then(()=>ht)})})}},W=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"AsaiComponent",props:{ujt:{}},setup(o){const n=o,{$model:t,$global:s}=n.ujt,l=e.computed(()=>t.appmodules.indexRouters[(t?.webmodels?.includes(s.location?.hasharr?.[0])?s.location?.hasharr?.[0]:"")||t?.webmodels?.[0]]);return(i,f)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.value),{ujt:o.ujt},null,8,["ujt"]))}})},Symbol.toStringTag,{value:"Module"})),D=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"AsaiInitPage",props:{appmodules:{},ujt:{}},setup(o){const n=o,t=e.inject("$vueProxy"),{$global:s,$fn:l,$model:i,$ws:f}=n.ujt;i.appmodules=n.appmodules;function u(){let a=l.As?.localGet("as-user-code");a&&(a=l.As.toObj(a),s.code.pri=a[0],s.code.pub=a[1]),s.code.pri&&l.As.localGet("as-user-info")&&(s.user.info=l.As.toObj(l.AsAES.dec(l.As.localGet("as-user-info")))),l.inittoken()}function m(){s?.sys?.onwebws&&l.ws.web.wsWatch({ty:"publish/web"},a=>{a?.db?.exit&&l.exit(),a?.db?.lang&&(a.db.langpm?a.db.con=l.lg("asai.hostmsg."+a.db.lang,a.db.langpm)||a.db.con:a.db.con=l.lg("asai.hostmsg."+a.db.lang)||a.db.con),a?.db==="pong"?l.ws.web.wsApi("ping").then(r=>{}):a?.db?.bs?g(a.db.bs):a?.db?.con&&s.msg.fn(a.db)})}function g(a){if(Array.isArray(a)&&a[0]?.[0])try{a.forEach(r=>{l.As.setObjValByPath(f.wssys,r[0],r[1])})}catch{}}s.rlv=e.computed(()=>!s.location.hash||s.location.hash=="/"||s.sys?.router?.rights?.lv0?.find(a=>s.location.hash.includes(a))?0:s.sys?.router?.rights?.lv1?.find(a=>s.location.hash.includes(a))?1:s.sys?.router?.rights?.lv2?.find(a=>s.location.hash.includes(a))?2:s.sys?.router?.rights?.lv3?.find(a=>s.location.hash.includes(a))?3:s.sys?.router?.config?.lv||0);function _(a,r){try{console.error(r+" Error:",a);let c="";a?.error?.stack&&typeof a?.error?.stack=="string"?c=a.error.stack:a?.error?.message&&typeof a?.error?.message=="string"?c=a.error.message:a?.message&&typeof a?.message=="string"?c=a.message:a?.reason?.message&&typeof a?.reason?.message=="string"?c=a.reason.message:a?.reason&&typeof a?.reason=="string"?c=a.reason:a&&typeof a=="string"&&(c=a),c&&(c="Web "+r+` Error:
|
|
3
|
+
`+c,console.error(c),l.$log(c),s?.msg?.fn?.({type:"err",con:c})),a.preventDefault()}catch(c){console.error("Try Error:",c)}}const $=e.reactive({catchErrorUnhandledrejection:null,catchErrorCatch:null});return e.onMounted(()=>{l.initweb(t).then(()=>{let a=[];if(l?.useApi?.(n.ujt,"web"),s?.sys?.tyrobot&&(l.useApi?.(n.ujt,s.sys.tyrobot),l.useWs?.(n.ujt,s.sys.tyrobot)),u(),s?.sys?.onwebws&&(l.useWs?.(n.ujt,"web"),a.push(l.ws.web?.init?.().then(()=>{m()}))),s?.sys?.local?.lang||a.push(l.initmodel("/sys/setting/settinglang.json").then(r=>{typeof r?.data=="string"?s.config.langcur=JSON.parse(r?.data||"{}")?.lang:s.config.langcur=(r?.data||{})?.lang})),s?.sys?.aes?.lv&&!s.sys.aesfns&&l.AsaiVueAES?.useAES){const{toAES:r,fromAES:c}=l.AsaiVueAES.useAES(n.ujt);s.sys.aesfns={allaes:s.sys.aes.lv>1,toAES:r,fromAES:c}}Promise.all(a).then(()=>{l.changelang(s.config.langcur).then(r=>{!window?.$CFG?.title&&s.lang.configweb?.webtit&&(document.title=s.lang.configweb?.webtit),s.stat.webclient=1,s.sys.catcherror&&($.catchErrorUnhandledrejection=d=>{_(d,"Unhandledrejection")},window?.addEventListener?.("unhandledrejection",$.catchErrorUnhandledrejection),$.catchErrorCatch=d=>{_(d,"Catch")},window?.addEventListener?.("error",$.catchErrorCatch))})})})}),e.onBeforeUnmount(()=>{l.offweb(),s.sys.catcherror&&($.catchErrorUnhandledrejection&&(window.removeEventListener("unhandledrejection",$.catchErrorUnhandledrejection),$.catchErrorUnhandledrejection=null),$.catchErrorCatch&&(window.removeEventListener("error",$.catchErrorCatch),$.catchErrorCatch=null)),s?.sys?.onwebws||l.ws.web.wsWatchOff({ty:"publish/web"})}),(a,r)=>{const c=e.resolveComponent("AsaiWebServer"),d=e.resolveComponent("AsaiWebServerNode"),p=e.resolveComponent("AsaiWebServerUser"),h=e.resolveComponent("AsaiWebServerUserOnline");return e.unref(s).stat.webclient?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.unref(s).rlv===0?(e.openBlock(),e.createBlock(c,{key:0,ujt:o.ujt},null,8,["ujt"])):e.unref(s).rlv===1?(e.openBlock(),e.createBlock(d,{key:1,ujt:o.ujt},null,8,["ujt"])):e.unref(s).rlv===2?(e.openBlock(),e.createBlock(p,{key:2,ujt:o.ujt},null,8,["ujt"])):(e.openBlock(),e.createBlock(h,{key:3,ujt:o.ujt},null,8,["ujt"]))],64)):(e.openBlock(),e.createBlock(e.resolveDynamicComponent("PageLoadClient"),{key:1,ujt:o.ujt},null,8,["ujt"]))}}})},Symbol.toStringTag,{value:"Module"})),z={class:"app-area"},I={class:"app-logo"},U=["src"],F={class:"app-menu-area"},G=["onPointerup"],v={class:"menu-text"},H={class:"app-login"},J=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"AsaiWebItemDefault",props:{ujt:{}},setup(o){const n=o,{$global:t,$fn:s}=n.ujt,l=e.computed(()=>t.url?.[t.module.value]?.filter(i=>i.type==="module"||("/"+i.value+"/").startsWith(t.location.hash))||[]);return(i,f)=>{const u=e.resolveComponent("AsReset");return e.openBlock(),e.createElementBlock("div",z,[e.createElementVNode("div",I,[e.createElementVNode("img",{src:e.unref(t).$cfg.logo,width:"200"},null,8,U)]),e.createElementVNode("div",F,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,m=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`app-menu${m.type==="module"?" module":""}`),key:m.value,onPointerup:g=>e.unref(s).sethash(m.value==="views"?"":m.value)},[e.createElementVNode("span",v,e.toDisplayString(m.label),1)],42,G))),128))]),e.createElementVNode("div",H,[e.createVNode(u,{ujt:o.ujt},null,8,["ujt"])])])}}})},Symbol.toStringTag,{value:"Module"})),q=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"AsaiWebItemIndex",props:{ujt:{},ty:{}},setup(o){return(n,t)=>{const s=e.resolveComponent("RouterView");return e.openBlock(),e.createBlock(s,{ujt:o.ujt,ty:o.ty||2},null,8,["ujt","ty"])}}})},Symbol.toStringTag,{value:"Module"})),Y=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"AsaiWebModule",props:{ujt:{},module:{},ty:{}},setup(o){const n=o,{$global:t,$fn:s}=n.ujt;Object.assign(t.module,n.module),n.module?.ws&&s.useWs(n.ujt,t.module.value);const{initAppModel:l}=s.useInitApp(n.ujt);return t.stat[t.module.value]=0,l(t.module.value).then(i=>{t.stat[t.module.value]=1}),(i,f)=>{const u=e.resolveComponent("RouterView");return n.module?.value&&e.unref(t).stat[n.module.value]?(e.openBlock(),e.createBlock(u,{key:0,ujt:o.ujt,ty:o.ty||0},null,8,["ujt","ty"])):e.unref(t).pagebusy?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.resolveDynamicComponent("PageLoadErr"),{key:1,ujt:o.ujt},null,8,["ujt"]))}}})},Symbol.toStringTag,{value:"Module"})),K={class:"app-area"},X={class:"app-logo"},Z=["src"],Q={class:"app-menu-area"},ee=["onPointerup"],te={class:"menu-text"},oe={class:"app-login"},ne=e.defineComponent({__name:"AsaiWebModuleDefault",props:{ujt:{}},setup(o){const n=o,{$global:t,$fn:s}=n.ujt;return s.initrouter(),(l,i)=>{const f=e.resolveComponent("MenuShowFix"),u=e.resolveComponent("AsReset");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(f,{ujt:o.ujt,menus:e.unref(t).url[e.unref(t).module.value]},null,8,["ujt","menus"]),e.createElementVNode("div",K,[e.createElementVNode("div",X,[e.createElementVNode("img",{src:e.unref(t).$cfg.logo,width:"200"},null,8,Z)]),e.createElementVNode("div",Q,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(t).url[e.unref(t).module.value],m=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`app-menu${m.type==="module"?" module":""}`),key:m.value,onPointerup:g=>e.unref(s).sethash(m.value==="views"?"":m.value)},[e.createElementVNode("span",te,e.toDisplayString(m.label),1)],42,ee))),128))]),e.createElementVNode("div",oe,[e.createVNode(u,{ujt:o.ujt},null,8,["ujt"])])])],64)}}}),w=(o,n)=>{const t=o.__vccOpts||o;for(const[s,l]of n)t[s]=l;return t},se=Object.freeze(Object.defineProperty({__proto__:null,default:w(ne,[["__scopeId","data-v-bba548d2"]])},Symbol.toStringTag,{value:"Module"})),le=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"AsaiWebModuleIndex",props:{ujt:{},ty:{}},setup(o){const n=o,{$global:t,$fn:s}=n.ujt;return s.initrouter(),(l,i)=>{const f=e.resolveComponent("MenuShowFix"),u=e.resolveComponent("RouterView");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(f,{ujt:o.ujt,menus:e.unref(t).url[e.unref(t).module.value]},null,8,["ujt","menus"]),e.unref(t).stat[e.unref(t).module.value]?(e.openBlock(),e.createBlock(u,{key:0,ujt:o.ujt,ty:o.ty||1},null,8,["ujt","ty"])):e.createCommentVNode("",!0)],64)}}})},Symbol.toStringTag,{value:"Module"})),ae=Object.freeze(Object.defineProperty({__proto__:null,default:w(e.defineComponent({__name:"AsaiWebServer",props:{ujt:{}},setup(o){const n=o,{$global:t}=n.ujt;return(s,l)=>{const i=e.resolveComponent("AsaiComponent");return e.openBlock(),e.createElementBlock("div",{id:"asaiwebserver",class:e.normalizeClass("asaiweb asaiweb"+(e.unref(t).location?.hasharr?.[0]||"default"))},[e.createVNode(i,{ujt:o.ujt},null,8,["ujt"])],2)}}}),[["__scopeId","data-v-7d8d7f46"]])},Symbol.toStringTag,{value:"Module"})),re=Object.freeze(Object.defineProperty({__proto__:null,default:w(e.defineComponent({__name:"AsaiWebServerNode",props:{ujt:{}},setup(o){const n=o,{$fn:t,$global:s}=n.ujt;if(t.useChannelUser){const{initChannelUserToken:l}=t.useChannelUser({ujt:n.ujt,opt:{channel:s?.sys?.sysdb?.user?.channel||"channeluser"}});l().catch(()=>{t.login()})}return(l,i)=>{const f=e.resolveComponent("AsaiComponent");return e.openBlock(),e.createElementBlock("div",{id:"asaiwebservernode",class:e.normalizeClass("asaiweb asaiweb"+e.unref(s).location?.hasharr?.[0])},[e.unref(s).code.pub?(e.openBlock(),e.createBlock(f,{key:0,ujt:o.ujt},null,8,["ujt"])):e.unref(s).pagebusy?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.resolveDynamicComponent("PageLoadServer"),{key:1,ujt:o.ujt},null,8,["ujt"]))],2)}}}),[["__scopeId","data-v-fc74998b"]])},Symbol.toStringTag,{value:"Module"})),ie=Object.freeze(Object.defineProperty({__proto__:null,default:w(e.defineComponent({__name:"AsaiWebServerUser",props:{ujt:{}},setup(o){const n=o,{$fn:t,$global:s}=n.ujt;if(t.useChannelUser){const{initChannelUserToken:l}=t.useChannelUser({ujt:n.ujt,opt:{channel:s?.sys?.sysdb?.user?.channel||"channeluser"}});l().catch(()=>{t.login()})}return(l,i)=>{const f=e.resolveComponent("AsaiComponent");return e.openBlock(),e.createElementBlock("div",{id:"asaiwebserveruser",class:e.normalizeClass("asaiweb asaiweb"+e.unref(s).location?.hasharr?.[0])},[e.unref(s).code.token?(e.openBlock(),e.createBlock(f,{key:0,ujt:o.ujt},null,8,["ujt"])):e.unref(s).pagebusy?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.resolveDynamicComponent("PageLoadUserToken"),{key:1,ujt:o.ujt},null,8,["ujt"]))],2)}}}),[["__scopeId","data-v-d2483ecb"]])},Symbol.toStringTag,{value:"Module"})),ce=Object.freeze(Object.defineProperty({__proto__:null,default:w(e.defineComponent({__name:"AsaiWebServerUserOnline",props:{ujt:{}},setup(o){const n=o,{$fn:t,$global:s}=n.ujt;if(t.useChannelUser){const{initChannelUserOnline:l}=t.useChannelUser({ujt:n.ujt,opt:{channel:s?.sys?.sysdb?.user?.channel||"channeluser"}});l().catch(()=>{t.login()})}return(l,i)=>{const f=e.resolveComponent("AsaiComponent");return e.openBlock(),e.createElementBlock("div",{id:"asaiwebserveruseronline",class:e.normalizeClass("asaiweb asaiweb"+e.unref(s).location?.hasharr?.[0])},[e.unref(s).code.token&&e.unref(s).user.online?(e.openBlock(),e.createBlock(f,{key:0,ujt:o.ujt},null,8,["ujt"])):e.unref(s).pagebusy?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.resolveDynamicComponent("PageLoadUserTokenOnline"),{key:1,ujt:o.ujt},null,8,["ujt"]))],2)}}}),[["__scopeId","data-v-13dc3fec"]])},Symbol.toStringTag,{value:"Module"})),de={key:0,class:"as-pagebusy-area touch-none"},ue={class:"as-pagebusy"},fe={key:0,class:"as-pagebusy-v"},pe=Object.freeze(Object.defineProperty({__proto__:null,default:w(e.defineComponent({__name:"AsPageBusy",props:{ujt:{}},setup(o){e.useCssVars(f=>({v2189716e:l.value}));const n=o,{$global:t,$fn:s}=n.ujt,l=e.computed(()=>t.pagebusy?.zindex||9999);function i(){s.popConfirm({con:t.lang.asai.resetconfirm,zindex:l.value+1,fn:()=>{t.pagebusy=null,s.As.localInit()}})}return(f,u)=>{const m=e.resolveComponent("AsPageBusyGif"),g=e.resolveDirective("dbpointerdown");return e.unref(t).pagebusy?e.withDirectives((e.openBlock(),e.createElementBlock("div",de,[e.createElementVNode("div",{class:"as-pagebusy-close",onClick:u[0]||(u[0]=e.withModifiers(_=>i(),["stop"]))}),e.createElementVNode("div",ue,[e.createVNode(m,{ujt:o.ujt},null,8,["ujt"]),e.unref(t).pagebusy?.v?(e.openBlock(),e.createElementBlock("div",fe,e.toDisplayString(e.unref(t).pagebusy?.v),1)):e.createCommentVNode("",!0)])])),[[g,()=>{e.unref(t).pagebusy?.keep||i()}]]):e.createCommentVNode("",!0)}}}),[["__scopeId","data-v-3b86e9a1"]])},Symbol.toStringTag,{value:"Module"})),me=w(e.defineComponent({__name:"AsLoadingCircle",props:{ujt:{type:Object,default:()=>({})},size:{type:Number,default:68,validator:o=>o>0}},setup(o){return(n,t)=>(e.openBlock(),e.createElementBlock("div",{class:"as-load-gif",style:e.normalizeStyle({width:o.size+"px",height:o.size+"px"})},null,4))}}),[["__scopeId","data-v-c5bf2081"]]),ge=w(e.defineComponent({__name:"AsLoadingA3d",props:{ujt:{type:Object,default:()=>({})},size:{type:Number,default:68,validator:o=>o>0}},setup(o){return(n,t)=>(e.openBlock(),e.createElementBlock("div",{class:"a3d-wrapper",style:e.normalizeStyle({"--cube-size":`${o.size}px`,"--half-size":`${o.size/2}px`})},[...t[0]||(t[0]=[e.createStaticVNode('<div class="a3d" data-v-4d1d2b0e><div class="a3d-face a3d-face-front" data-v-4d1d2b0e></div><div class="a3d-face a3d-face-back" data-v-4d1d2b0e></div><div class="a3d-face a3d-face-left" data-v-4d1d2b0e></div><div class="a3d-face a3d-face-right" data-v-4d1d2b0e></div><div class="a3d-face a3d-face-top" data-v-4d1d2b0e></div><div class="a3d-face a3d-face-bottom" data-v-4d1d2b0e></div></div>',1)])],4))}}),[["__scopeId","data-v-4d1d2b0e"]]),he=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"AsPageBusyGif",props:{ujt:{},opt:{}},setup(o){const n=o,{$global:t}=n.ujt;return(s,l)=>o.opt?.ty||e.unref(t).pagebusy?.ty?(e.openBlock(),e.createBlock(ge,{key:0,size:o.opt?.size||e.unref(t).pagebusy?.size,ujt:o.ujt},null,8,["size","ujt"])):(e.openBlock(),e.createBlock(me,{key:1,size:o.opt?.size||e.unref(t).pagebusy?.size,ujt:o.ujt},null,8,["size","ujt"]))}})},Symbol.toStringTag,{value:"Module"})),be={key:0,class:"as-usercard"},_e=Object.freeze(Object.defineProperty({__proto__:null,default:w(e.defineComponent({__name:"AsReset",props:{ujt:{},type:{}},setup(o){const n=o,{$fn:t,$global:s}=n.ujt,l={};return(i,f)=>{const u=e.resolveComponent("AsSvg");return e.renderSlot(i.$slots,"default",{item:{},option:l},()=>[e.unref(s).lang?.asai?.usercard?(e.openBlock(),e.createElementBlock("div",be,[e.createElementVNode("div",{onClick:f[0]||(f[0]=m=>e.unref(t).login())},[e.createVNode(u,{color:"var(--cu6)",height:"26px",src:"asai/login"}),e.createTextVNode(" "+e.toDisplayString(e.unref(s).lang.asai.usercard?.login),1)]),e.createElementVNode("div",{onClick:f[1]||(f[1]=m=>e.unref(t).As.localInit()),title:"ctrl+shift+r"},[e.createVNode(u,{color:"var(--cu6)",height:"26px",src:"asai/reset"}),e.createTextVNode(" "+e.toDisplayString(e.unref(s).lang.asai.usercard?.reset),1)])])):e.createCommentVNode("",!0)],!0)}}}),[["__scopeId","data-v-a12ce8ac"]])},Symbol.toStringTag,{value:"Module"})),$e={class:"as-icon"},ye={key:0,class:"as-icon-filter"},we=["src"],ke=Object.freeze(Object.defineProperty({__proto__:null,default:w(e.defineComponent({__name:"AsSvg",props:{src:{type:String,default:""},height:{type:String,default:"24px"},width:{type:String,default:""},color:{type:String,default:"var(--cv8)"},showtype:{type:String,default:"mask"},webty:{type:String,default:""}},setup(o){const n=o,t=window?.$CFG?.webpath||"./";let s=e.ref("");const l=e.computed(()=>s.value?t+"webmodel/files/"+(n.webty??+n.webty+"/")+"svg/"+s.value+".svg":n.src.startsWith("http")||n.src.endsWith(".svg")||n.src.endsWith(".png")?n.src:t+"webmodel/files/"+(n.webty??+n.webty+"/")+"svg/"+n.src+".svg");function i(){s.value="default"}function f(){return{width:`${n.width?n.width:n.height}`,height:`${n.height?n.height:n.width}`,"background-color":`${n.color}`,"mask-image":`url('${l.value}')`,"-webkit-mask-image":`url('${l.value}')`}}function u(){return n.width?{transform:"translateX(-100%)",filter:`drop-shadow(${n.width} 0 ${n.color})`,width:`${n.width}`}:{transform:"translateY(-100%)",filter:`drop-shadow(0 ${n.height} ${n.color})`,height:`${n.height}`}}return(m,g)=>(e.openBlock(),e.createElementBlock("i",$e,[o.showtype==="filter"?(e.openBlock(),e.createElementBlock("i",ye,[e.createElementVNode("img",{style:e.normalizeStyle(u()),src:l.value,onError:g[0]||(g[0]=_=>i())},null,44,we)])):(e.openBlock(),e.createElementBlock("i",{key:1,class:"as-icon-mask",style:e.normalizeStyle(f())},null,4))]))}}),[["__scopeId","data-v-d9bafe22"]])},Symbol.toStringTag,{value:"Module"})),je={class:"as-floating-menu"},Se={key:0},Ae={key:1},Ce=["onPointerup"],Ee=Object.freeze(Object.defineProperty({__proto__:null,default:w(e.defineComponent({__name:"MenuShowFix",props:{ujt:{},menus:{}},setup(o){const n=o,{$fn:t,$global:s}=n.ujt,l=e.ref(!1);function i(){l.value=!l.value}const f=e.computed(()=>[{value:"/",label:t.lg("asai.home"),type:"module"},{fn:()=>s.theme.c=s.theme.c==="d"?"l":"d",label:t.lg("asai.theme"),type:"module"},{fn:()=>s.theme.s=s.theme.s==="b"?"n":"b",label:t.lg("asai.size"),type:"module"},{fn:()=>t.changelang("auto"),label:t.lg("asai.langs.default"),type:"module"},...n.menus||[]]);return(u,m)=>!e.unref(s).sys||e.unref(s).sys.devlevel>1?(e.openBlock(),e.createBlock(e.Teleport,{key:0,to:"#teleportpopbox"},[e.createElementVNode("div",je,[e.createElementVNode("button",{class:"as-floating-button",onClick:i},[l.value?(e.openBlock(),e.createElementBlock("span",Se,"×")):(e.openBlock(),e.createElementBlock("span",Ae,"☰"))]),e.createElementVNode("ul",{class:e.normalizeClass(["as-floating-menus",{open:l.value}])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,(g,_)=>(e.openBlock(),e.createElementBlock("li",{key:"menu"+_,class:e.normalizeClass(`${g.type==="module"?"module ":""}${g.value&&e.unref(s).location.hash.includes(g.value)?"active":""}`),onPointerup:$=>g.value?e.unref(t).sethash(g.value):g?.fn?.()},e.toDisplayString(_+1)+". "+e.toDisplayString(g.label||g.value),43,Ce))),128))],2)])])):e.createCommentVNode("",!0)}}),[["__scopeId","data-v-162e1725"]])},Symbol.toStringTag,{value:"Module"})),Be={class:"app-menu-area"},Pe=Object.freeze(Object.defineProperty({__proto__:null,default:w(e.defineComponent({__name:"RouterMap",props:{ujt:{},menus:{}},setup(o){const n=o,{$fn:t}=n.ujt;return(s,l)=>(e.openBlock(),e.createElementBlock("div",Be,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.menus,i=>(e.openBlock(),e.createElementBlock("div",{class:"app-menu",onClick:l[0]||(l[0]=f=>e.unref(t).sethash("item.value"))},e.toDisplayString(i.label),1))),256))]))}}),[["__scopeId","data-v-6d15bb32"]])},Symbol.toStringTag,{value:"Module"})),Oe={key:0,class:"loading"},Ne={key:1,class:"error"},Ve=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"RouterView",props:{ujt:{},ty:{}},setup(o){const n=o,{$model:t,$fn:s,$global:l}=n.ujt,i=e.shallowReactive({comp:null}),f=e.ref(!1),u=e.ref(null);s.getcomp=async g=>{f.value=!0,u.value=null;try{try{return e.defineAsyncComponent(t.comps[`./${g}.vue`])}catch(_){if(g&&g.endsWith("/default"))return e.defineAsyncComponent(t.comps[`./${g.slice(0,-8)}.vue`]);throw _}}catch(_){return u.value=_,e.defineAsyncComponent(()=>Promise.resolve().then(()=>kt))}finally{f.value=!1}};const m=e.watch(()=>l.location.comps[n.ty],async(g,_)=>{g&&g!==_&&(i.comp=await s.getcomp(g))},{immediate:!0});return e.onBeforeUnmount(()=>{m&&m.stop()}),(g,_)=>f.value?(e.openBlock(),e.createElementBlock("div",Oe,"Loading...")):u.value?(e.openBlock(),e.createElementBlock("div",Ne,"Component load error")):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(i).comp),{key:2,ujt:o.ujt},null,8,["ujt"]))}})},Symbol.toStringTag,{value:"Module"})),Me=Object.freeze(Object.defineProperty({__proto__:null,default:w(e.defineComponent({__name:"VirtualList",props:{items:{type:Array,required:!0},itemHeight:{type:Number,default:50},buffer:{type:Number,default:5}},setup(o){const n=o,t=e.ref(null),s=e.ref(0),l=e.ref(0),i=e.ref(0),f=e.ref(new Array(n.items.length).fill(Math.round(n.itemHeight))),u=new Map,m=e.computed(()=>Math.round(n.items.reduce((d,p,h)=>d+g(h),0))),g=d=>d<0||d>=n.items.length?0:Math.round(f.value[d]??n.itemHeight),_=()=>{if(!t.value)return{start:0,end:Math.min(n.items.length,n.buffer*3)};const d=s.value,p=t.value.clientHeight;let h=0,b=n.items.length;for(;h<b;){const j=h+b>>>1;a(j)<=d?h=j+1:b=j}const y=Math.max(0,h-1),k=Math.ceil(p/n.itemHeight)+n.buffer*2,A=Math.min(n.items.length,y+k);return{start:y,end:A}},$=e.computed(()=>{const{start:d,end:p}=_();return n.items.slice(d,p).map((h,b)=>{const y=d+b;return{index:y,id:h.id||y,data:h,offset:a(y)}})}),a=d=>{if(d<=0)return 0;if(u.has(d))return u.get(d);let p=d-1;for(;p>0&&!u.has(p);)p--;let h=p>0?u.get(p):0;for(let y=p;y<d;y++)h+=g(y);const b=Math.round(h);return u.set(d,b),b},r=()=>{l.value&&cancelAnimationFrame(l.value),l.value=requestAnimationFrame(()=>{t.value&&(s.value=Math.round(t.value.scrollTop),i.value&&clearTimeout(i.value),i.value=window.setTimeout(()=>{const{start:d,end:p}=_(),h=n.buffer*2;for(const b of u.keys())(b<d-h||b>p+h)&&u.delete(b)},150))})};let c=null;return e.onMounted(()=>{t.value&&r(),c=e.watch(()=>n.items.length,d=>{d>f.value.length?f.value=[...f.value,...new Array(d-f.value.length).fill(Math.round(n.itemHeight))]:d<f.value.length&&(f.value=f.value.slice(0,d)),u.clear()})}),e.onBeforeUnmount(()=>{c&&c.stop(),l.value&&cancelAnimationFrame(l.value),i.value&&clearTimeout(i.value)}),(d,p)=>(e.openBlock(),e.createElementBlock("div",{class:"virtual-list-container",onScroll:r,ref_key:"container",ref:t,style:{height:"100%"}},[e.createElementVNode("div",{class:"virtual-list-wrapper",style:e.normalizeStyle({height:m.value+"px"})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList($.value,h=>(e.openBlock(),e.createElementBlock("div",{class:"virtual-list-item",key:"as"+h.index,style:e.normalizeStyle({transform:`translateY(${h.offset}px)`})},[e.renderSlot(d.$slots,"default",{item:h},void 0,!0)],4))),128))],4)],544))}}),[["__scopeId","data-v-b613b7a8"]])},Symbol.toStringTag,{value:"Module"})),xe={class:"as-load-area"},Te=["src"],Re={class:"tit",style:{color:"var(--cz8)"}},Le=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"PageErr",props:{ujt:{}},setup(o){const n=window;function t(){n?.localStorage?.clear(),n?.location?.reload()}return(s,l)=>(e.openBlock(),e.createElementBlock("div",xe,[e.createElementVNode("img",{onDblclick:l[0]||(l[0]=i=>t()),src:e.unref(n).$CFG?.logo,width:"200"},null,40,Te),l[2]||(l[2]=e.createElementVNode("div",{class:"as-load-icon"},[e.createElementVNode("div",{class:"as-load-gif",style:{width:"68px",height:"68px"}})],-1)),e.createElementVNode("div",{class:"as-load-msg",onClick:l[1]||(l[1]=i=>e.unref(n)?.location?.reload())},[e.createElementVNode("div",Re,e.toDisplayString(e.unref(n).$GYS?.$webmodel?.lang?.[e.unref(n).$GYS?.$webmodel.lang.langty]?.pageerr),1)])]))}})},Symbol.toStringTag,{value:"Module"})),We={class:"as-load-area"},De=["src"],ze=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"PageLoadClient",props:{ujt:{}},setup(o){const n=e.ref("");e.onMounted(()=>{const s=window;n.value=s?.$CFG?.logo||""});function t(){const s=window;try{s?.localStorage?.clear()}catch{console.warn("Failed to clear localStorage")}s?.location?.reload()}return(s,l)=>(e.openBlock(),e.createElementBlock("div",We,[n.value?(e.openBlock(),e.createElementBlock("img",{key:0,onDblclick:l[0]||(l[0]=i=>t()),src:n.value,width:"200"},null,40,De)):e.createCommentVNode("",!0),l[2]||(l[2]=e.createElementVNode("div",{class:"as-load-icon"},[e.createElementVNode("div",{class:"as-load-gif",style:{width:"68px",height:"68px"}})],-1)),e.createElementVNode("div",{class:"as-load-msg",onClick:l[1]||(l[1]=i=>t())},"Loading...")]))}})},Symbol.toStringTag,{value:"Module"})),Ie={class:"as-load-area"},Ue=["src"],Fe={class:"as-load-icon"},Ge={class:"as-load-msg"},ve={class:"tit",style:{color:"var(--cz8)"}},He=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"PageLoadErr",props:{ujt:{},type:{}},setup(o){const n=o,{$fn:t,$global:s}=n.ujt;return(l,i)=>{const f=e.resolveComponent("AsPageBusyGif"),u=e.resolveComponent("AsReset");return e.openBlock(),e.createElementBlock("div",Ie,[e.createElementVNode("img",{onDblclick:i[0]||(i[0]=m=>e.unref(t).As.localInit()),src:e.unref(s).$cfg.logo,width:"200"},null,40,Ue),e.createElementVNode("div",Fe,[e.createVNode(f,{ujt:o.ujt},null,8,["ujt"])]),e.createElementVNode("div",Ge,[e.createElementVNode("div",ve,e.toDisplayString(e.unref(s).lang?.asai?.page?.loadws),1),e.createElementVNode("h3",null,e.toDisplayString(n.type),1),e.createVNode(u,{ujt:o.ujt},null,8,["ujt"])])])}}})},Symbol.toStringTag,{value:"Module"})),Je={class:"as-load-area"},qe=["src"],Ye={class:"as-load-icon"},Ke={class:"as-load-msg"},Xe={class:"tit",style:{color:"var(--cy8)"}},Ze=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"PageLoadServer",props:{ujt:{}},setup(o){const n=o,{$fn:t,$global:s}=n.ujt;return(l,i)=>{const f=e.resolveComponent("AsPageBusyGif"),u=e.resolveComponent("AsReset");return e.openBlock(),e.createElementBlock("div",Je,[e.createElementVNode("img",{onDblclick:i[0]||(i[0]=m=>e.unref(t).As.localInit()),src:e.unref(s).$cfg.logo,width:"200"},null,40,qe),e.createElementVNode("div",Ye,[e.createVNode(f,{ujt:o.ujt},null,8,["ujt"])]),e.createElementVNode("div",Ke,[e.createElementVNode("div",Xe,e.toDisplayString(e.unref(s).lang.asai?.page?.loadserver||"Loading server..."),1),e.createVNode(u,{ujt:o.ujt},null,8,["ujt"])])])}}})},Symbol.toStringTag,{value:"Module"})),Qe={class:"as-load-area"},et=["src"],tt={class:"as-load-icon"},ot={class:"as-load-msg"},nt={class:"tit",style:{color:"var(--cz8)"}},st=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"PageLoadUserToken",props:{ujt:{}},setup(o){const n=o,{$fn:t,$global:s}=n.ujt;return(l,i)=>{const f=e.resolveComponent("AsPageBusyGif"),u=e.resolveComponent("AsReset");return e.openBlock(),e.createElementBlock("div",Qe,[e.createElementVNode("img",{onDblclick:i[0]||(i[0]=m=>e.unref(t).As.localInit()),src:e.unref(s).$cfg.logo,width:"200"},null,40,et),e.createElementVNode("div",tt,[e.createVNode(f,{ujt:o.ujt},null,8,["ujt"])]),e.createElementVNode("div",ot,[e.createElementVNode("div",nt,e.toDisplayString(e.unref(s).lang.asai?.page?.loadusertoken||"Loading user token..."),1),e.createVNode(u,{ujt:o.ujt},null,8,["ujt"])])])}}})},Symbol.toStringTag,{value:"Module"})),lt={class:"as-load-area"},at=["src"],rt={class:"as-load-icon"},it={class:"as-load-msg"},ct={class:"tit",style:{color:"var(--cy8)"}},dt=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"PageLoadUserTokenOnline",props:{ujt:{}},setup(o){const n=o,{$fn:t,$global:s}=n.ujt;return(l,i)=>{const f=e.resolveComponent("AsPageBusyGif"),u=e.resolveComponent("AsReset");return e.openBlock(),e.createElementBlock("div",lt,[e.createElementVNode("img",{onDblclick:i[0]||(i[0]=m=>e.unref(t).As.localInit()),src:e.unref(s).$cfg.logo,width:"200"},null,40,at),e.createElementVNode("div",rt,[e.createVNode(f,{ujt:o.ujt},null,8,["ujt"])]),e.createElementVNode("div",it,[e.createElementVNode("div",ct,e.toDisplayString(e.unref(s).lang.asai?.page?.loaduseronline||"Loading user token online..."),1),e.createVNode(u,{ujt:o.ujt},null,8,["ujt"])])])}}})},Symbol.toStringTag,{value:"Module"})),ut={class:"as-load-area"},ft=["src"],pt={class:"as-load-icon"},mt={class:"as-load-msg"},gt={class:"tit",style:{color:"var(--cz8)"}},ht=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"PageLoadWs",props:{ujt:{},type:{}},setup(o){const n=o,{$fn:t,$global:s}=n.ujt;return(l,i)=>{const f=e.resolveComponent("AsPageBusyGif"),u=e.resolveComponent("AsReset");return e.openBlock(),e.createElementBlock("div",ut,[e.createElementVNode("img",{onDblclick:i[0]||(i[0]=m=>e.unref(t).As.localInit()),src:e.unref(s).$cfg.logo,width:"200"},null,40,ft),e.createElementVNode("div",pt,[e.createVNode(f,{ujt:o.ujt},null,8,["ujt"])]),e.createElementVNode("div",mt,[e.createElementVNode("div",gt,e.toDisplayString(e.unref(s).lang?.asai?.page?.loadws),1),e.createElementVNode("h3",null,e.toDisplayString(n.type),1),e.createVNode(u,{ujt:o.ujt},null,8,["ujt"])])])}}})},Symbol.toStringTag,{value:"Module"})),bt={class:"page-404"},_t={class:"content"},$t={key:0,class:"title"},yt={class:"description"},wt={class:"footer"},kt=Object.freeze(Object.defineProperty({__proto__:null,default:w(e.defineComponent({__name:"Asai404",props:{ujt:{}},setup(o){const n=o,{$global:t}=n.ujt;return(s,l)=>{const i=e.resolveComponent("AsReset");return e.openBlock(),e.createElementBlock("div",bt,[e.createElementVNode("div",_t,[l[0]||(l[0]=e.createElementVNode("div",{class:"error-code"},"404",-1)),e.unref(t).lang?.asai?.page?.page404?(e.openBlock(),e.createElementBlock("h1",$t,e.toDisplayString(e.unref(t).lang?.asai?.page?.page404||"页面未找到"),1)):e.createCommentVNode("",!0),e.createElementVNode("p",yt,e.toDisplayString(e.unref(t).lang?.asai?.page?.reason404||"Sorry, Page not found!"),1)]),e.createElementVNode("div",wt,[e.createVNode(i,{ujt:o.ujt},null,8,["ujt"])])])}}}),[["__scopeId","data-v-999cd3d9"]])},Symbol.toStringTag,{value:"Module"}));S.default=L,Object.defineProperties(S,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
|
package/package.json
CHANGED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { defineComponent as u, resolveComponent as i, createElementBlock as m, openBlock as o, normalizeClass as p, unref as t, createBlock as r, createCommentVNode as d, resolveDynamicComponent as j } from "vue";
|
|
2
|
-
import { _ as b } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
3
|
-
const f = /* @__PURE__ */ u({
|
|
4
|
-
__name: "AsaiWebServerNode",
|
|
5
|
-
props: {
|
|
6
|
-
ujt: {}
|
|
7
|
-
},
|
|
8
|
-
setup(n) {
|
|
9
|
-
const a = n, { $fn: s, $global: e } = a.ujt, { initChannelUserToken: c } = s.useChannelUser({
|
|
10
|
-
ujt: a.ujt,
|
|
11
|
-
opt: { channel: e?.sys?.sysdb?.user?.channel || "channeluser" }
|
|
12
|
-
});
|
|
13
|
-
return c().catch(() => {
|
|
14
|
-
s.login();
|
|
15
|
-
}), (h, C) => {
|
|
16
|
-
const l = i("AsaiComponent");
|
|
17
|
-
return o(), m("div", {
|
|
18
|
-
id: "asaiwebservernode",
|
|
19
|
-
class: p("asaiweb asaiweb" + t(e).location?.hasharr?.[0])
|
|
20
|
-
}, [
|
|
21
|
-
t(e).code.pub ? (o(), r(l, {
|
|
22
|
-
key: 0,
|
|
23
|
-
ujt: n.ujt
|
|
24
|
-
}, null, 8, ["ujt"])) : t(e).pagebusy ? d("", !0) : (o(), r(j("PageLoadServer"), {
|
|
25
|
-
key: 1,
|
|
26
|
-
ujt: n.ujt
|
|
27
|
-
}, null, 8, ["ujt"]))
|
|
28
|
-
], 2);
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
}), k = /* @__PURE__ */ b(f, [["__scopeId", "data-v-316455f4"]]);
|
|
32
|
-
export {
|
|
33
|
-
k as default
|
|
34
|
-
};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { defineComponent as u, resolveComponent as i, createElementBlock as m, openBlock as o, normalizeClass as p, unref as t, createBlock as r, createCommentVNode as d, resolveDynamicComponent as j } from "vue";
|
|
2
|
-
import { _ as b } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
3
|
-
const f = /* @__PURE__ */ u({
|
|
4
|
-
__name: "AsaiWebServerUser",
|
|
5
|
-
props: {
|
|
6
|
-
ujt: {}
|
|
7
|
-
},
|
|
8
|
-
setup(n) {
|
|
9
|
-
const s = n, { $fn: a, $global: e } = s.ujt, { initChannelUserToken: c } = a.useChannelUser({
|
|
10
|
-
ujt: s.ujt,
|
|
11
|
-
opt: { channel: e?.sys?.sysdb?.user?.channel || "channeluser" }
|
|
12
|
-
});
|
|
13
|
-
return c().catch(() => {
|
|
14
|
-
a.login();
|
|
15
|
-
}), (h, C) => {
|
|
16
|
-
const l = i("AsaiComponent");
|
|
17
|
-
return o(), m("div", {
|
|
18
|
-
id: "asaiwebserveruser",
|
|
19
|
-
class: p("asaiweb asaiweb" + t(e).location?.hasharr?.[0])
|
|
20
|
-
}, [
|
|
21
|
-
t(e).code.token ? (o(), r(l, {
|
|
22
|
-
key: 0,
|
|
23
|
-
ujt: n.ujt
|
|
24
|
-
}, null, 8, ["ujt"])) : t(e).pagebusy ? d("", !0) : (o(), r(j("PageLoadUserToken"), {
|
|
25
|
-
key: 1,
|
|
26
|
-
ujt: n.ujt
|
|
27
|
-
}, null, 8, ["ujt"]))
|
|
28
|
-
], 2);
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
}), v = /* @__PURE__ */ b(f, [["__scopeId", "data-v-a4bd06af"]]);
|
|
32
|
-
export {
|
|
33
|
-
v as default
|
|
34
|
-
};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { defineComponent as i, resolveComponent as u, createElementBlock as m, openBlock as t, normalizeClass as p, unref as n, createBlock as r, createCommentVNode as d, resolveDynamicComponent as j } from "vue";
|
|
2
|
-
import { _ as b } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
3
|
-
const h = /* @__PURE__ */ i({
|
|
4
|
-
__name: "AsaiWebServerUserOnline",
|
|
5
|
-
props: {
|
|
6
|
-
ujt: {}
|
|
7
|
-
},
|
|
8
|
-
setup(o) {
|
|
9
|
-
const s = o, { $fn: a, $global: e } = s.ujt, { initChannelUserOnline: c } = a.useChannelUser({
|
|
10
|
-
ujt: s.ujt,
|
|
11
|
-
opt: { channel: e?.sys?.sysdb?.user?.channel || "channeluser" }
|
|
12
|
-
});
|
|
13
|
-
return c().catch(() => {
|
|
14
|
-
a.login();
|
|
15
|
-
}), (C, _) => {
|
|
16
|
-
const l = u("AsaiComponent");
|
|
17
|
-
return t(), m("div", {
|
|
18
|
-
id: "asaiwebserveruseronline",
|
|
19
|
-
class: p("asaiweb asaiweb" + n(e).location?.hasharr?.[0])
|
|
20
|
-
}, [
|
|
21
|
-
n(e).code.token && n(e).user.online ? (t(), r(l, {
|
|
22
|
-
key: 0,
|
|
23
|
-
ujt: o.ujt
|
|
24
|
-
}, null, 8, ["ujt"])) : n(e).pagebusy ? d("", !0) : (t(), r(j("PageLoadUserTokenOnline"), {
|
|
25
|
-
key: 1,
|
|
26
|
-
ujt: o.ujt
|
|
27
|
-
}, null, 8, ["ujt"]))
|
|
28
|
-
], 2);
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
}), v = /* @__PURE__ */ b(h, [["__scopeId", "data-v-6cc1e64b"]]);
|
|
32
|
-
export {
|
|
33
|
-
v as default
|
|
34
|
-
};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { defineComponent as u, resolveComponent as a, createElementBlock as _, openBlock as m, createElementVNode as t, unref as o, createVNode as l, toDisplayString as g } from "vue";
|
|
2
|
-
const p = { class: "as-load-area" }, f = ["src"], v = { class: "as-load-icon" }, j = { class: "as-load-msg" }, h = {
|
|
3
|
-
class: "tit",
|
|
4
|
-
style: { color: "var(--cy8)" }
|
|
5
|
-
}, $ = /* @__PURE__ */ u({
|
|
6
|
-
__name: "PageLoadServer",
|
|
7
|
-
props: {
|
|
8
|
-
ujt: {}
|
|
9
|
-
},
|
|
10
|
-
setup(e) {
|
|
11
|
-
const c = e, { $fn: i, $global: s } = c.ujt;
|
|
12
|
-
return (y, n) => {
|
|
13
|
-
const r = a("AsPageBusyGif"), d = a("AsReset");
|
|
14
|
-
return m(), _("div", p, [
|
|
15
|
-
t("img", {
|
|
16
|
-
onDblclick: n[0] || (n[0] = (A) => o(i).As.localInit()),
|
|
17
|
-
src: o(s).$cfg.logo,
|
|
18
|
-
width: "200"
|
|
19
|
-
}, null, 40, f),
|
|
20
|
-
t("div", v, [
|
|
21
|
-
l(r, { ujt: e.ujt }, null, 8, ["ujt"])
|
|
22
|
-
]),
|
|
23
|
-
t("div", j, [
|
|
24
|
-
t("div", h, g(o(s).lang.asai.page.loadserver), 1),
|
|
25
|
-
l(d, { ujt: e.ujt }, null, 8, ["ujt"])
|
|
26
|
-
])
|
|
27
|
-
]);
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
export {
|
|
32
|
-
$ as default
|
|
33
|
-
};
|