@skyservice-developers/vue-dev-kit 1.2.0 → 1.2.2
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/vue2/style.css +1 -1
- package/dist/vue2/vue-dev-kit.cjs +1 -1
- package/dist/vue2/vue-dev-kit.js +16 -21
- package/dist/vue3/style.css +1 -1
- package/dist/vue3/vue-dev-kit.cjs +1 -1
- package/dist/vue3/vue-dev-kit.js +211 -213
- package/package.json +1 -1
- package/src/vue2/components/Dialog.vue +1 -1
- package/src/vue2/components/DialogModal.vue +1 -1
- package/src/vue2/components/DialogNext.vue +36 -25
- package/src/vue2/components/Modal.vue +13 -5
- package/src/vue3/components/Dialog.vue +1 -1
- package/src/vue3/components/DialogModal.vue +1 -1
- package/src/vue3/components/DialogNext.vue +48 -37
- package/src/vue3/components/Header.vue +0 -1
- package/src/vue3/components/Modal.vue +15 -10
package/dist/vue3/vue-dev-kit.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { ref as U, computed as
|
|
1
|
+
import { ref as U, computed as L, onMounted as Q, onUnmounted as de, openBlock as k, createElementBlock as _, createElementVNode as u, createCommentVNode as A, normalizeClass as D, renderSlot as N, toDisplayString as z, Fragment as Qe, renderList as Je, useSlots as Ue, watch as ye, nextTick as qe, createBlock as J, Teleport as ke, createVNode as xe, Transition as _e, withCtx as F, normalizeStyle as Ee, createTextVNode as je, resolveDynamicComponent as et, createSlots as tt, withModifiers as it } from "vue";
|
|
2
2
|
var ot = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
3
3
|
function at(n) {
|
|
4
4
|
return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
|
|
5
5
|
}
|
|
6
|
-
var
|
|
6
|
+
var ge = { exports: {} };
|
|
7
7
|
(function(n, S) {
|
|
8
|
-
(function(m,
|
|
9
|
-
var x = "1.0.41",
|
|
8
|
+
(function(m, d) {
|
|
9
|
+
var x = "1.0.41", h = "", O = "?", v = "function", g = "undefined", E = "object", C = "string", M = "major", o = "model", a = "name", i = "type", e = "vendor", t = "version", b = "architecture", P = "console", l = "mobile", s = "tablet", T = "smarttv", B = "wearable", X = "embedded", ue = 500, te = "Amazon", q = "Apple", Te = "ASUS", Se = "BlackBerry", ie = "Browser", oe = "Chrome", Ge = "Edge", ae = "Firefox", ne = "Google", Oe = "Honor", Ae = "Huawei", We = "Lenovo", le = "LG", ce = "Microsoft", be = "Motorola", we = "Nvidia", Be = "OnePlus", H = "Opera", me = "OPPO", G = "Samsung", Ce = "Sharp", W = "Sony", fe = "Xiaomi", ve = "Zebra", Me = "Facebook", ze = "Chromium OS", Ne = "Mac OS", Ve = " Browser", Ke = function(w, f) {
|
|
10
10
|
var c = {};
|
|
11
11
|
for (var y in w)
|
|
12
12
|
f[y] && f[y].length % 2 === 0 ? c[y] = f[y].concat(w[y]) : c[y] = w[y];
|
|
@@ -15,32 +15,32 @@ var he = { exports: {} };
|
|
|
15
15
|
for (var f = {}, c = 0; c < w.length; c++)
|
|
16
16
|
f[w[c].toUpperCase()] = w[c];
|
|
17
17
|
return f;
|
|
18
|
-
},
|
|
18
|
+
}, Le = function(w, f) {
|
|
19
19
|
return typeof w === C ? K(f).indexOf(K(w)) !== -1 : !1;
|
|
20
20
|
}, K = function(w) {
|
|
21
21
|
return w.toLowerCase();
|
|
22
22
|
}, Ye = function(w) {
|
|
23
|
-
return typeof w === C ? w.replace(/[^\d\.]/g,
|
|
23
|
+
return typeof w === C ? w.replace(/[^\d\.]/g, h).split(".")[0] : d;
|
|
24
24
|
}, pe = function(w, f) {
|
|
25
25
|
if (typeof w === C)
|
|
26
|
-
return w = w.replace(/^\s\s*/,
|
|
26
|
+
return w = w.replace(/^\s\s*/, h), typeof f === g ? w : w.substring(0, ue);
|
|
27
27
|
}, Y = function(w, f) {
|
|
28
|
-
for (var c = 0, y, $,
|
|
29
|
-
var
|
|
30
|
-
for (y = $ = 0; y <
|
|
31
|
-
if (r =
|
|
32
|
-
for (
|
|
33
|
-
I = r[++$], p = Ie[
|
|
28
|
+
for (var c = 0, y, $, R, p, r, I; c < f.length && !r; ) {
|
|
29
|
+
var he = f[c], Ie = f[c + 1];
|
|
30
|
+
for (y = $ = 0; y < he.length && !r && he[y]; )
|
|
31
|
+
if (r = he[y++].exec(w), r)
|
|
32
|
+
for (R = 0; R < Ie.length; R++)
|
|
33
|
+
I = r[++$], p = Ie[R], typeof p === E && p.length > 0 ? p.length === 2 ? typeof p[1] == v ? this[p[0]] = p[1].call(this, I) : this[p[0]] = p[1] : p.length === 3 ? typeof p[1] === v && !(p[1].exec && p[1].test) ? this[p[0]] = I ? p[1].call(this, I, p[2]) : d : this[p[0]] = I ? I.replace(p[1], p[2]) : d : p.length === 4 && (this[p[0]] = I ? p[3].call(this, I.replace(p[1], p[2])) : d) : this[p] = I || d;
|
|
34
34
|
c += 2;
|
|
35
35
|
}
|
|
36
36
|
}, Z = function(w, f) {
|
|
37
37
|
for (var c in f)
|
|
38
38
|
if (typeof f[c] === E && f[c].length > 0) {
|
|
39
39
|
for (var y = 0; y < f[c].length; y++)
|
|
40
|
-
if (
|
|
41
|
-
return c === O ?
|
|
42
|
-
} else if (
|
|
43
|
-
return c === O ?
|
|
40
|
+
if (Le(f[c][y], w))
|
|
41
|
+
return c === O ? d : c;
|
|
42
|
+
} else if (Le(f[c], w))
|
|
43
|
+
return c === O ? d : c;
|
|
44
44
|
return f.hasOwnProperty("*") ? f["*"] : w;
|
|
45
45
|
}, Ze = {
|
|
46
46
|
"1.0": "/8",
|
|
@@ -51,7 +51,7 @@ var he = { exports: {} };
|
|
|
51
51
|
"2.0.3": "/417",
|
|
52
52
|
"2.0.4": "/419",
|
|
53
53
|
"?": "/"
|
|
54
|
-
},
|
|
54
|
+
}, Pe = {
|
|
55
55
|
ME: "4.90",
|
|
56
56
|
"NT 3.11": "NT3.51",
|
|
57
57
|
"NT 4.0": "NT4.0",
|
|
@@ -63,7 +63,7 @@ var he = { exports: {} };
|
|
|
63
63
|
"8.1": "NT 6.3",
|
|
64
64
|
10: ["NT 6.4", "NT 10.0"],
|
|
65
65
|
RT: "ARM"
|
|
66
|
-
},
|
|
66
|
+
}, Re = {
|
|
67
67
|
browser: [
|
|
68
68
|
[
|
|
69
69
|
/\b(?:crmo|crios)\/([\w\.]+)/i
|
|
@@ -416,7 +416,7 @@ var he = { exports: {} };
|
|
|
416
416
|
/((ppc|powerpc)(64)?)( mac|;|\))/i
|
|
417
417
|
// PowerPC
|
|
418
418
|
],
|
|
419
|
-
[[b, /ower/,
|
|
419
|
+
[[b, /ower/, h, K]],
|
|
420
420
|
[
|
|
421
421
|
/ sun4\w[;\)]/i
|
|
422
422
|
// SPARC
|
|
@@ -968,22 +968,22 @@ var he = { exports: {} };
|
|
|
968
968
|
/(nintendo) ([wids3utch]+)/i
|
|
969
969
|
// Nintendo
|
|
970
970
|
],
|
|
971
|
-
[e, o, [i,
|
|
971
|
+
[e, o, [i, P]],
|
|
972
972
|
[
|
|
973
973
|
/droid.+; (shield)( bui|\))/i
|
|
974
974
|
// Nvidia Portable
|
|
975
975
|
],
|
|
976
|
-
[o, [e, we], [i,
|
|
976
|
+
[o, [e, we], [i, P]],
|
|
977
977
|
[
|
|
978
978
|
/(playstation \w+)/i
|
|
979
979
|
// Playstation
|
|
980
980
|
],
|
|
981
|
-
[o, [e, W], [i,
|
|
981
|
+
[o, [e, W], [i, P]],
|
|
982
982
|
[
|
|
983
983
|
/\b(xbox(?: one)?(?!; xbox))[\); ]/i
|
|
984
984
|
// Microsoft Xbox
|
|
985
985
|
],
|
|
986
|
-
[o, [e, ce], [i,
|
|
986
|
+
[o, [e, ce], [i, P]],
|
|
987
987
|
[
|
|
988
988
|
///////////////////
|
|
989
989
|
// WEARABLES
|
|
@@ -1154,14 +1154,14 @@ var he = { exports: {} };
|
|
|
1154
1154
|
/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i
|
|
1155
1155
|
// Windows Phone
|
|
1156
1156
|
],
|
|
1157
|
-
[a, [t, Z,
|
|
1157
|
+
[a, [t, Z, Pe]],
|
|
1158
1158
|
[
|
|
1159
1159
|
/windows nt 6\.2; (arm)/i,
|
|
1160
1160
|
// Windows RT
|
|
1161
1161
|
/windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i,
|
|
1162
1162
|
/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i
|
|
1163
1163
|
],
|
|
1164
|
-
[[t, Z,
|
|
1164
|
+
[[t, Z, Pe], [a, "Windows"]],
|
|
1165
1165
|
[
|
|
1166
1166
|
// iOS/macOS
|
|
1167
1167
|
/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,
|
|
@@ -1175,7 +1175,7 @@ var he = { exports: {} };
|
|
|
1175
1175
|
/(macintosh|mac_powerpc\b)(?!.+haiku)/i
|
|
1176
1176
|
// Mac OS
|
|
1177
1177
|
],
|
|
1178
|
-
[[a,
|
|
1178
|
+
[[a, Ne], [t, /_/g, "."]],
|
|
1179
1179
|
[
|
|
1180
1180
|
// Mobile OSes
|
|
1181
1181
|
/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i
|
|
@@ -1228,7 +1228,7 @@ var he = { exports: {} };
|
|
|
1228
1228
|
/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i
|
|
1229
1229
|
// Chromium OS
|
|
1230
1230
|
],
|
|
1231
|
-
[[a,
|
|
1231
|
+
[[a, ze], t],
|
|
1232
1232
|
[
|
|
1233
1233
|
// Smart TVs
|
|
1234
1234
|
/panasonic;(viera)/i,
|
|
@@ -1279,24 +1279,24 @@ var he = { exports: {} };
|
|
|
1279
1279
|
[a, t]
|
|
1280
1280
|
]
|
|
1281
1281
|
}, V = function(w, f) {
|
|
1282
|
-
if (typeof w === E && (f = w, w =
|
|
1282
|
+
if (typeof w === E && (f = w, w = d), !(this instanceof V))
|
|
1283
1283
|
return new V(w, f).getResult();
|
|
1284
|
-
var c = typeof m !==
|
|
1284
|
+
var c = typeof m !== g && m.navigator ? m.navigator : d, y = w || (c && c.userAgent ? c.userAgent : h), $ = c && c.userAgentData ? c.userAgentData : d, R = f ? Ke(Re, f) : Re, p = c && c.userAgent == y;
|
|
1285
1285
|
return this.getBrowser = function() {
|
|
1286
1286
|
var r = {};
|
|
1287
|
-
return r[a] =
|
|
1287
|
+
return r[a] = d, r[t] = d, Y.call(r, y, R.browser), r[M] = Ye(r[t]), p && c && c.brave && typeof c.brave.isBrave == v && (r[a] = "Brave"), r;
|
|
1288
1288
|
}, this.getCPU = function() {
|
|
1289
1289
|
var r = {};
|
|
1290
|
-
return r[b] =
|
|
1290
|
+
return r[b] = d, Y.call(r, y, R.cpu), r;
|
|
1291
1291
|
}, this.getDevice = function() {
|
|
1292
1292
|
var r = {};
|
|
1293
|
-
return r[e] =
|
|
1293
|
+
return r[e] = d, r[o] = d, r[i] = d, Y.call(r, y, R.device), p && !r[i] && $ && $.mobile && (r[i] = l), p && r[o] == "Macintosh" && c && typeof c.standalone !== g && c.maxTouchPoints && c.maxTouchPoints > 2 && (r[o] = "iPad", r[i] = s), r;
|
|
1294
1294
|
}, this.getEngine = function() {
|
|
1295
1295
|
var r = {};
|
|
1296
|
-
return r[a] =
|
|
1296
|
+
return r[a] = d, r[t] = d, Y.call(r, y, R.engine), r;
|
|
1297
1297
|
}, this.getOS = function() {
|
|
1298
1298
|
var r = {};
|
|
1299
|
-
return r[a] =
|
|
1299
|
+
return r[a] = d, r[t] = d, Y.call(r, y, R.os), p && !r[a] && $ && $.platform && $.platform != "Unknown" && (r[a] = $.platform.replace(/chrome os/i, ze).replace(/macos/i, Ne)), r;
|
|
1300
1300
|
}, this.getResult = function() {
|
|
1301
1301
|
return {
|
|
1302
1302
|
ua: this.getUA(),
|
|
@@ -1312,8 +1312,8 @@ var he = { exports: {} };
|
|
|
1312
1312
|
return y = typeof r === C && r.length > ue ? pe(r, ue) : r, this;
|
|
1313
1313
|
}, this.setUA(y), this;
|
|
1314
1314
|
};
|
|
1315
|
-
V.VERSION = x, V.BROWSER = se([a, t, M]), V.CPU = se([b]), V.DEVICE = se([o, e, i,
|
|
1316
|
-
var j = typeof m !==
|
|
1315
|
+
V.VERSION = x, V.BROWSER = se([a, t, M]), V.CPU = se([b]), V.DEVICE = se([o, e, i, P, l, T, s, B, X]), V.ENGINE = V.OS = se([a, t]), n.exports && (S = n.exports = V), S.UAParser = V;
|
|
1316
|
+
var j = typeof m !== g && (m.jQuery || m.Zepto);
|
|
1317
1317
|
if (j && !j.ua) {
|
|
1318
1318
|
var re = new V();
|
|
1319
1319
|
j.ua = re.getResult(), j.ua.get = function() {
|
|
@@ -1326,8 +1326,8 @@ var he = { exports: {} };
|
|
|
1326
1326
|
};
|
|
1327
1327
|
}
|
|
1328
1328
|
})(typeof window == "object" ? window : ot);
|
|
1329
|
-
})(
|
|
1330
|
-
var nt =
|
|
1329
|
+
})(ge, ge.exports);
|
|
1330
|
+
var nt = ge.exports;
|
|
1331
1331
|
const lt = /* @__PURE__ */ at(nt);
|
|
1332
1332
|
function Fe() {
|
|
1333
1333
|
if (window.webkit != null && window.webkit.messageHandlers !== "undefined")
|
|
@@ -1355,8 +1355,8 @@ function st() {
|
|
|
1355
1355
|
}
|
|
1356
1356
|
const ee = (n, S) => {
|
|
1357
1357
|
const m = n.__vccOpts || n;
|
|
1358
|
-
for (const [
|
|
1359
|
-
m[
|
|
1358
|
+
for (const [d, x] of S)
|
|
1359
|
+
m[d] = x;
|
|
1360
1360
|
return m;
|
|
1361
1361
|
}, rt = { class: "sky-header-container" }, dt = { class: "topmenubox" }, ut = { class: "header-left" }, ct = ["title"], bt = {
|
|
1362
1362
|
width: "15",
|
|
@@ -1369,7 +1369,7 @@ const ee = (n, S) => {
|
|
|
1369
1369
|
}, mt = { class: "topmenu-title" }, ft = {
|
|
1370
1370
|
key: 0,
|
|
1371
1371
|
class: "title-dropdown"
|
|
1372
|
-
}, vt = { class: "title-dropdown-header" }, pt = ["onClick"],
|
|
1372
|
+
}, vt = { class: "title-dropdown-header" }, pt = ["onClick"], ht = { class: "pageName" }, gt = { class: "pageVisit" }, yt = {
|
|
1373
1373
|
key: 0,
|
|
1374
1374
|
class: "topmenu-description"
|
|
1375
1375
|
}, kt = { class: "topmenubox-button" }, xt = {
|
|
@@ -1410,31 +1410,31 @@ const ee = (n, S) => {
|
|
|
1410
1410
|
},
|
|
1411
1411
|
emits: ["back", "navigate"],
|
|
1412
1412
|
setup(n, { emit: S }) {
|
|
1413
|
-
const m = n,
|
|
1414
|
-
O.value.length && (
|
|
1415
|
-
},
|
|
1416
|
-
|
|
1413
|
+
const m = n, d = S, x = U(null), h = U(!1), O = L(() => [...m.dropdownItems].sort((e, t) => t.lastVisit - e.lastVisit)), v = () => {
|
|
1414
|
+
O.value.length && (h.value = !h.value);
|
|
1415
|
+
}, g = () => {
|
|
1416
|
+
h.value = !1;
|
|
1417
1417
|
}, E = (e) => {
|
|
1418
|
-
|
|
1418
|
+
d("navigate", e.path), g();
|
|
1419
1419
|
}, C = (e) => e ? e.charAt(0).toUpperCase() + e.slice(1) : "", M = (e) => {
|
|
1420
|
-
const b = Date.now() - e,
|
|
1421
|
-
return T > 0 ? `${T}д тому` : s > 0 ? `${s}год тому` : l > 0 ? `${l}хв тому` : `${
|
|
1420
|
+
const b = Date.now() - e, P = Math.floor(b / 1e3), l = Math.floor(P / 60), s = Math.floor(l / 60), T = Math.floor(s / 24);
|
|
1421
|
+
return T > 0 ? `${T}д тому` : s > 0 ? `${s}год тому` : l > 0 ? `${l}хв тому` : `${P}с тому`;
|
|
1422
1422
|
}, o = (e) => {
|
|
1423
|
-
x.value && !x.value.contains(e.target) &&
|
|
1423
|
+
x.value && !x.value.contains(e.target) && g();
|
|
1424
1424
|
};
|
|
1425
1425
|
Q(() => {
|
|
1426
1426
|
document.addEventListener("click", o, !0);
|
|
1427
1427
|
}), de(() => {
|
|
1428
1428
|
document.removeEventListener("click", o, !0);
|
|
1429
1429
|
});
|
|
1430
|
-
const a =
|
|
1430
|
+
const a = L(() => m.backEvent || m.showBackButton && st()), i = () => {
|
|
1431
1431
|
if (m.backEvent)
|
|
1432
1432
|
return m.backEvent();
|
|
1433
1433
|
window.parent.postMessage({ type: "exit" }, "*");
|
|
1434
1434
|
};
|
|
1435
1435
|
return (e, t) => (k(), _("header", rt, [
|
|
1436
|
-
|
|
1437
|
-
|
|
1436
|
+
u("div", dt, [
|
|
1437
|
+
u("div", ut, [
|
|
1438
1438
|
a.value ? (k(), _("button", {
|
|
1439
1439
|
key: 0,
|
|
1440
1440
|
class: "btn-back",
|
|
@@ -1442,33 +1442,33 @@ const ee = (n, S) => {
|
|
|
1442
1442
|
title: n.backButtonTitle
|
|
1443
1443
|
}, [
|
|
1444
1444
|
(k(), _("svg", bt, [...t[0] || (t[0] = [
|
|
1445
|
-
|
|
1445
|
+
u("path", {
|
|
1446
1446
|
fill: "currentColor",
|
|
1447
1447
|
d: "M225.923,354.706c-8.098,0-16.195-3.092-22.369-9.263L9.27,151.157c-12.359-12.359-12.359-32.397,0-44.751c12.354-12.354,32.388-12.354,44.748,0l171.905,171.915l171.906-171.909c12.359-12.354,32.391-12.354,44.744,0c12.365,12.354,12.365,32.392,0,44.751L248.292,345.449C242.115,351.621,234.018,354.706,225.923,354.706z"
|
|
1448
1448
|
}, null, -1)
|
|
1449
1449
|
])]))
|
|
1450
1450
|
], 8, ct)) : A("", !0),
|
|
1451
|
-
|
|
1451
|
+
u("div", {
|
|
1452
1452
|
ref_key: "dropdownRef",
|
|
1453
1453
|
ref: x,
|
|
1454
1454
|
class: "titleAndDesc"
|
|
1455
1455
|
}, [
|
|
1456
|
-
|
|
1456
|
+
u("button", {
|
|
1457
1457
|
class: D(["title-dropdown-toggle", { "title-dropdown-toggle-active": O.value.length }]),
|
|
1458
1458
|
onClick: v
|
|
1459
1459
|
}, [
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1460
|
+
N(e.$slots, "title", {}, () => [
|
|
1461
|
+
u("h4", wt, [
|
|
1462
|
+
u("span", mt, z(n.title), 1),
|
|
1463
1463
|
O.value.length ? (k(), _("svg", {
|
|
1464
1464
|
key: 0,
|
|
1465
|
-
class: D(["arrow", { open:
|
|
1465
|
+
class: D(["arrow", { open: h.value }]),
|
|
1466
1466
|
width: "12",
|
|
1467
1467
|
height: "12",
|
|
1468
1468
|
viewBox: "0 0 451.847 451.847",
|
|
1469
1469
|
style: { "flex-shrink": "0" }
|
|
1470
1470
|
}, [...t[1] || (t[1] = [
|
|
1471
|
-
|
|
1471
|
+
u("path", {
|
|
1472
1472
|
fill: "currentColor",
|
|
1473
1473
|
d: "M225.923,354.706c-8.098,0-16.195-3.092-22.369-9.263L9.27,151.157c-12.359-12.359-12.359-32.397,0-44.751c12.354-12.354,32.388-12.354,44.748,0l171.905,171.915l171.906-171.909c12.359-12.354,32.391-12.354,44.744,0c12.365,12.354,12.365,32.392,0,44.751L248.292,345.449C242.115,351.621,234.018,354.706,225.923,354.706z"
|
|
1474
1474
|
}, null, -1)
|
|
@@ -1476,36 +1476,36 @@ const ee = (n, S) => {
|
|
|
1476
1476
|
])
|
|
1477
1477
|
], !0)
|
|
1478
1478
|
], 2),
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
t[2] || (t[2] =
|
|
1482
|
-
(k(!0), _(Qe, null, Je(O.value, (b,
|
|
1483
|
-
key:
|
|
1479
|
+
h.value && O.value.length ? (k(), _("div", ft, [
|
|
1480
|
+
u("div", vt, z(n.dropdownTitle), 1),
|
|
1481
|
+
t[2] || (t[2] = u("div", { class: "title-dropdown-divider" }, null, -1)),
|
|
1482
|
+
(k(!0), _(Qe, null, Je(O.value, (b, P) => (k(), _("div", {
|
|
1483
|
+
key: P,
|
|
1484
1484
|
class: "title-dropdown-item",
|
|
1485
1485
|
onClick: (l) => E(b)
|
|
1486
1486
|
}, [
|
|
1487
|
-
|
|
1488
|
-
|
|
1487
|
+
u("p", ht, z(C(b.name)), 1),
|
|
1488
|
+
u("small", gt, " (" + z(n.visitLabel) + " " + z(M(b.lastVisit)) + ") ", 1)
|
|
1489
1489
|
], 8, pt))), 128))
|
|
1490
1490
|
])) : A("", !0),
|
|
1491
|
-
|
|
1492
|
-
n.subtitle ? (k(), _("p", yt,
|
|
1491
|
+
N(e.$slots, "subtitle", {}, () => [
|
|
1492
|
+
n.subtitle ? (k(), _("p", yt, z(n.subtitle), 1)) : A("", !0)
|
|
1493
1493
|
], !0)
|
|
1494
1494
|
], 512)
|
|
1495
1495
|
]),
|
|
1496
|
-
|
|
1497
|
-
t[3] || (t[3] =
|
|
1498
|
-
|
|
1499
|
-
t[4] || (t[4] =
|
|
1496
|
+
u("div", kt, [
|
|
1497
|
+
t[3] || (t[3] = u("div", null, null, -1)),
|
|
1498
|
+
N(e.$slots, "default", {}, void 0, !0),
|
|
1499
|
+
t[4] || (t[4] = u("div", null, null, -1))
|
|
1500
1500
|
])
|
|
1501
1501
|
])
|
|
1502
1502
|
]));
|
|
1503
1503
|
}
|
|
1504
|
-
},
|
|
1505
|
-
const
|
|
1504
|
+
}, Ht = /* @__PURE__ */ ee(xt, [["__scopeId", "data-v-cd1e671d"]]);
|
|
1505
|
+
const _t = {
|
|
1506
1506
|
key: 0,
|
|
1507
1507
|
class: "sky-dialog-subtitle"
|
|
1508
|
-
},
|
|
1508
|
+
}, Et = ["title"], Tt = {
|
|
1509
1509
|
key: 0,
|
|
1510
1510
|
class: "sky-dialog-swipe-area"
|
|
1511
1511
|
}, St = {
|
|
@@ -1533,7 +1533,7 @@ const Et = {
|
|
|
1533
1533
|
},
|
|
1534
1534
|
enableAnimation: {
|
|
1535
1535
|
type: Boolean,
|
|
1536
|
-
default: !
|
|
1536
|
+
default: !1
|
|
1537
1537
|
},
|
|
1538
1538
|
closeOnEsc: {
|
|
1539
1539
|
type: Boolean,
|
|
@@ -1546,41 +1546,41 @@ const Et = {
|
|
|
1546
1546
|
},
|
|
1547
1547
|
emits: ["update:modelValue", "close", "save"],
|
|
1548
1548
|
setup(n, { emit: S }) {
|
|
1549
|
-
const m = Ue(),
|
|
1549
|
+
const m = Ue(), d = n, x = S, h = U(null), O = U(null), v = U(0), g = L(() => {
|
|
1550
1550
|
try {
|
|
1551
1551
|
return Xe();
|
|
1552
1552
|
} catch {
|
|
1553
1553
|
return !1;
|
|
1554
1554
|
}
|
|
1555
|
-
}), E =
|
|
1555
|
+
}), E = L(() => {
|
|
1556
1556
|
try {
|
|
1557
1557
|
return He();
|
|
1558
1558
|
} catch {
|
|
1559
1559
|
return !1;
|
|
1560
1560
|
}
|
|
1561
|
-
}), C =
|
|
1561
|
+
}), C = L(() => d.hasButtons !== null ? d.hasButtons : !!m.buttons), M = () => {
|
|
1562
1562
|
x("update:modelValue", !1), x("close");
|
|
1563
1563
|
}, o = (t) => {
|
|
1564
|
-
t.key === "Escape" &&
|
|
1564
|
+
t.key === "Escape" && d.closeOnEsc && d.modelValue && M(), t.key === "Enter" && d.modelValue && x("save");
|
|
1565
1565
|
}, a = (t) => {
|
|
1566
1566
|
t.touches[0].clientX < 35 && (v.value = t.touches[0].clientX);
|
|
1567
1567
|
}, i = (t) => {
|
|
1568
1568
|
v.value > 0 && v.value < 35 && t.changedTouches[0].clientX - v.value > 50 && M(), v.value = 0;
|
|
1569
1569
|
}, e = () => {
|
|
1570
|
-
if (!(!E.value || !
|
|
1570
|
+
if (!(!E.value || !h.value))
|
|
1571
1571
|
try {
|
|
1572
1572
|
if (typeof Android < "u" && Android.getDisplayCutoutTop) {
|
|
1573
1573
|
const t = Android.getDisplayCutoutTop();
|
|
1574
1574
|
if (t && window.devicePixelRatio > 1) {
|
|
1575
1575
|
const b = t / window.devicePixelRatio;
|
|
1576
|
-
|
|
1576
|
+
h.value.style.paddingTop = b + "px";
|
|
1577
1577
|
}
|
|
1578
1578
|
}
|
|
1579
1579
|
} catch {
|
|
1580
1580
|
}
|
|
1581
1581
|
};
|
|
1582
1582
|
return ye(
|
|
1583
|
-
() =>
|
|
1583
|
+
() => d.modelValue,
|
|
1584
1584
|
(t) => {
|
|
1585
1585
|
t ? (document.body.style.overflow = "hidden", qe(() => {
|
|
1586
1586
|
e();
|
|
@@ -1591,40 +1591,40 @@ const Et = {
|
|
|
1591
1591
|
}), de(() => {
|
|
1592
1592
|
document.removeEventListener("keydown", o), window.removeEventListener("resize", e), document.body.style.overflow = "";
|
|
1593
1593
|
}), (t, b) => (k(), J(ke, { to: "body" }, [
|
|
1594
|
-
xe(
|
|
1594
|
+
xe(_e, {
|
|
1595
1595
|
name: n.enableAnimation ? "dialog-slide" : ""
|
|
1596
1596
|
}, {
|
|
1597
1597
|
default: F(() => [
|
|
1598
1598
|
n.modelValue ? (k(), _("div", {
|
|
1599
1599
|
key: 0,
|
|
1600
1600
|
class: "sky-dialogbox sky-dialogbox-classic",
|
|
1601
|
-
style:
|
|
1601
|
+
style: Ee([n.zIndex ? { "z-index": n.zIndex } : null])
|
|
1602
1602
|
}, [
|
|
1603
|
-
|
|
1603
|
+
u("div", {
|
|
1604
1604
|
class: D(["sky-dialog-overlay", { "sky-dialog-animate": n.enableAnimation }])
|
|
1605
1605
|
}, [
|
|
1606
|
-
|
|
1606
|
+
u("div", {
|
|
1607
1607
|
ref_key: "dialogContent",
|
|
1608
|
-
ref:
|
|
1608
|
+
ref: h,
|
|
1609
1609
|
class: "sky-dialog-content"
|
|
1610
1610
|
}, [
|
|
1611
|
-
|
|
1611
|
+
u("div", {
|
|
1612
1612
|
class: D(["sky-dialog-title", { "sky-dialog-title-with-subtitle": n.subtitle }])
|
|
1613
1613
|
}, [
|
|
1614
|
-
je(
|
|
1615
|
-
n.subtitle ? (k(), _("span",
|
|
1614
|
+
je(z(n.title) + " ", 1),
|
|
1615
|
+
n.subtitle ? (k(), _("span", _t, z(n.subtitle), 1)) : A("", !0)
|
|
1616
1616
|
], 2),
|
|
1617
|
-
|
|
1617
|
+
u("button", {
|
|
1618
1618
|
class: "sky-dialog-close",
|
|
1619
1619
|
title: n.closeText,
|
|
1620
1620
|
onClick: M
|
|
1621
1621
|
}, [...b[0] || (b[0] = [
|
|
1622
|
-
|
|
1622
|
+
u("svg", {
|
|
1623
1623
|
viewBox: "0 0 16 16",
|
|
1624
1624
|
width: "16",
|
|
1625
1625
|
height: "16"
|
|
1626
1626
|
}, [
|
|
1627
|
-
|
|
1627
|
+
u("line", {
|
|
1628
1628
|
x1: "1",
|
|
1629
1629
|
y1: "15",
|
|
1630
1630
|
x2: "15",
|
|
@@ -1632,7 +1632,7 @@ const Et = {
|
|
|
1632
1632
|
stroke: "currentColor",
|
|
1633
1633
|
"stroke-width": "2"
|
|
1634
1634
|
}),
|
|
1635
|
-
|
|
1635
|
+
u("line", {
|
|
1636
1636
|
x1: "1",
|
|
1637
1637
|
y1: "1",
|
|
1638
1638
|
x2: "15",
|
|
@@ -1641,25 +1641,25 @@ const Et = {
|
|
|
1641
1641
|
"stroke-width": "2"
|
|
1642
1642
|
})
|
|
1643
1643
|
], -1)
|
|
1644
|
-
])], 8,
|
|
1645
|
-
b[3] || (b[3] =
|
|
1646
|
-
|
|
1644
|
+
])], 8, Et),
|
|
1645
|
+
b[3] || (b[3] = u("div", { class: "sky-dialog-clearfix" }, null, -1)),
|
|
1646
|
+
u("div", {
|
|
1647
1647
|
ref_key: "dialogPaper",
|
|
1648
1648
|
ref: O,
|
|
1649
1649
|
class: D(["sky-dialog-paper", { "sky-dialog-paper-no-footer": !C.value }]),
|
|
1650
1650
|
onTouchstart: a,
|
|
1651
1651
|
onTouchend: i
|
|
1652
1652
|
}, [
|
|
1653
|
-
|
|
1654
|
-
|
|
1653
|
+
g.value ? (k(), _("div", Tt)) : A("", !0),
|
|
1654
|
+
N(t.$slots, "default", {}, void 0, !0)
|
|
1655
1655
|
], 34),
|
|
1656
1656
|
C.value ? (k(), _("div", {
|
|
1657
1657
|
key: 0,
|
|
1658
1658
|
class: D(["sky-dialog-footer", { "sky-dialog-footer-animate": n.enableAnimation }])
|
|
1659
1659
|
}, [
|
|
1660
|
-
b[1] || (b[1] =
|
|
1661
|
-
|
|
1662
|
-
b[2] || (b[2] =
|
|
1660
|
+
b[1] || (b[1] = u("div", null, null, -1)),
|
|
1661
|
+
N(t.$slots, "buttons", {}, void 0, !0),
|
|
1662
|
+
b[2] || (b[2] = u("div", null, null, -1))
|
|
1663
1663
|
], 2)) : A("", !0)
|
|
1664
1664
|
], 512)
|
|
1665
1665
|
], 2)
|
|
@@ -1669,19 +1669,19 @@ const Et = {
|
|
|
1669
1669
|
}, 8, ["name"])
|
|
1670
1670
|
]));
|
|
1671
1671
|
}
|
|
1672
|
-
}, De = /* @__PURE__ */ ee(St, [["__scopeId", "data-v-
|
|
1673
|
-
const Ot = ["title"],
|
|
1672
|
+
}, De = /* @__PURE__ */ ee(St, [["__scopeId", "data-v-0cb65d7d"]]);
|
|
1673
|
+
const Ot = { class: "sky-dialog-header" }, At = ["title"], Bt = {
|
|
1674
1674
|
width: "15",
|
|
1675
1675
|
height: "15",
|
|
1676
1676
|
viewBox: "0 0 451.847 451.847",
|
|
1677
1677
|
style: { transform: "rotate(90deg)" }
|
|
1678
|
-
},
|
|
1678
|
+
}, Ct = {
|
|
1679
1679
|
key: 0,
|
|
1680
1680
|
class: "sky-dialog-subtitle"
|
|
1681
|
-
},
|
|
1681
|
+
}, Mt = {
|
|
1682
1682
|
key: 0,
|
|
1683
1683
|
class: "sky-dialog-swipe-area"
|
|
1684
|
-
},
|
|
1684
|
+
}, zt = {
|
|
1685
1685
|
__name: "DialogNext",
|
|
1686
1686
|
props: {
|
|
1687
1687
|
modelValue: {
|
|
@@ -1706,7 +1706,7 @@ const Ot = ["title"], At = {
|
|
|
1706
1706
|
},
|
|
1707
1707
|
enableAnimation: {
|
|
1708
1708
|
type: Boolean,
|
|
1709
|
-
default: !
|
|
1709
|
+
default: !1
|
|
1710
1710
|
},
|
|
1711
1711
|
closeOnEsc: {
|
|
1712
1712
|
type: Boolean,
|
|
@@ -1719,41 +1719,41 @@ const Ot = ["title"], At = {
|
|
|
1719
1719
|
},
|
|
1720
1720
|
emits: ["update:modelValue", "close", "save"],
|
|
1721
1721
|
setup(n, { emit: S }) {
|
|
1722
|
-
const m = Ue(),
|
|
1722
|
+
const m = Ue(), d = n, x = S, h = U(null), O = U(null), v = U(0), g = L(() => {
|
|
1723
1723
|
try {
|
|
1724
1724
|
return Xe();
|
|
1725
1725
|
} catch {
|
|
1726
1726
|
return !1;
|
|
1727
1727
|
}
|
|
1728
|
-
}), E =
|
|
1728
|
+
}), E = L(() => {
|
|
1729
1729
|
try {
|
|
1730
1730
|
return He();
|
|
1731
1731
|
} catch {
|
|
1732
1732
|
return !1;
|
|
1733
1733
|
}
|
|
1734
|
-
}), C =
|
|
1734
|
+
}), C = L(() => d.hasButtons !== null ? d.hasButtons : !!m.buttons), M = () => {
|
|
1735
1735
|
x("update:modelValue", !1), x("close");
|
|
1736
1736
|
}, o = (t) => {
|
|
1737
|
-
t.key === "Escape" &&
|
|
1737
|
+
t.key === "Escape" && d.closeOnEsc && d.modelValue && M(), t.key === "Enter" && d.modelValue && x("save");
|
|
1738
1738
|
}, a = (t) => {
|
|
1739
1739
|
t.touches[0].clientX < 35 && (v.value = t.touches[0].clientX);
|
|
1740
1740
|
}, i = (t) => {
|
|
1741
1741
|
v.value > 0 && v.value < 35 && t.changedTouches[0].clientX - v.value > 50 && M(), v.value = 0;
|
|
1742
1742
|
}, e = () => {
|
|
1743
|
-
if (!(!E.value || !
|
|
1743
|
+
if (!(!E.value || !h.value))
|
|
1744
1744
|
try {
|
|
1745
1745
|
if (typeof Android < "u" && Android.getDisplayCutoutTop) {
|
|
1746
1746
|
const t = Android.getDisplayCutoutTop();
|
|
1747
1747
|
if (t && window.devicePixelRatio > 1) {
|
|
1748
1748
|
const b = t / window.devicePixelRatio;
|
|
1749
|
-
|
|
1749
|
+
h.value.style.paddingTop = b + "px";
|
|
1750
1750
|
}
|
|
1751
1751
|
}
|
|
1752
1752
|
} catch {
|
|
1753
1753
|
}
|
|
1754
1754
|
};
|
|
1755
1755
|
return ye(
|
|
1756
|
-
() =>
|
|
1756
|
+
() => d.modelValue,
|
|
1757
1757
|
(t) => {
|
|
1758
1758
|
t ? (document.body.style.overflow = "hidden", qe(() => {
|
|
1759
1759
|
e();
|
|
@@ -1764,59 +1764,60 @@ const Ot = ["title"], At = {
|
|
|
1764
1764
|
}), de(() => {
|
|
1765
1765
|
document.removeEventListener("keydown", o), window.removeEventListener("resize", e), document.body.style.overflow = "";
|
|
1766
1766
|
}), (t, b) => (k(), J(ke, { to: "body" }, [
|
|
1767
|
-
xe(
|
|
1767
|
+
xe(_e, {
|
|
1768
1768
|
name: n.enableAnimation ? "dialog-slide" : ""
|
|
1769
1769
|
}, {
|
|
1770
1770
|
default: F(() => [
|
|
1771
1771
|
n.modelValue ? (k(), _("div", {
|
|
1772
1772
|
key: 0,
|
|
1773
1773
|
class: "sky-dialogbox sky-dialogbox-next",
|
|
1774
|
-
style:
|
|
1774
|
+
style: Ee([n.zIndex ? { "z-index": n.zIndex } : null])
|
|
1775
1775
|
}, [
|
|
1776
|
-
|
|
1776
|
+
u("div", {
|
|
1777
1777
|
class: D(["sky-dialog-overlay", { "sky-dialog-animate": n.enableAnimation }])
|
|
1778
1778
|
}, [
|
|
1779
|
-
|
|
1779
|
+
u("div", {
|
|
1780
1780
|
ref_key: "dialogContent",
|
|
1781
|
-
ref:
|
|
1781
|
+
ref: h,
|
|
1782
1782
|
class: "sky-dialog-content"
|
|
1783
1783
|
}, [
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1784
|
+
u("div", Ot, [
|
|
1785
|
+
u("button", {
|
|
1786
|
+
class: "sky-dialog-back",
|
|
1787
|
+
title: n.closeText,
|
|
1788
|
+
onClick: M
|
|
1789
|
+
}, [
|
|
1790
|
+
(k(), _("svg", Bt, [...b[0] || (b[0] = [
|
|
1791
|
+
u("path", {
|
|
1792
|
+
fill: "currentColor",
|
|
1793
|
+
d: "M225.923,354.706c-8.098,0-16.195-3.092-22.369-9.263L9.27,151.157c-12.359-12.359-12.359-32.397,0-44.751c12.354-12.354,32.388-12.354,44.748,0l171.905,171.915l171.906-171.909c12.359-12.354,32.391-12.354,44.744,0c12.365,12.354,12.365,32.392,0,44.751L248.292,345.449C242.115,351.621,234.018,354.706,225.923,354.706z"
|
|
1794
|
+
}, null, -1)
|
|
1795
|
+
])]))
|
|
1796
|
+
], 8, At),
|
|
1797
|
+
u("div", {
|
|
1798
|
+
class: D(["sky-dialog-title", { "sky-dialog-title-with-subtitle": n.subtitle }])
|
|
1799
|
+
}, [
|
|
1800
|
+
je(z(n.title) + " ", 1),
|
|
1801
|
+
n.subtitle ? (k(), _("span", Ct, z(n.subtitle), 1)) : A("", !0)
|
|
1802
|
+
], 2)
|
|
1803
|
+
]),
|
|
1804
|
+
u("div", {
|
|
1804
1805
|
ref_key: "dialogPaper",
|
|
1805
1806
|
ref: O,
|
|
1806
1807
|
class: D(["sky-dialog-paper", { "sky-dialog-paper-no-footer": !C.value }]),
|
|
1807
1808
|
onTouchstart: a,
|
|
1808
1809
|
onTouchend: i
|
|
1809
1810
|
}, [
|
|
1810
|
-
|
|
1811
|
-
|
|
1811
|
+
g.value ? (k(), _("div", Mt)) : A("", !0),
|
|
1812
|
+
N(t.$slots, "default", {}, void 0, !0)
|
|
1812
1813
|
], 34),
|
|
1813
1814
|
C.value ? (k(), _("div", {
|
|
1814
1815
|
key: 0,
|
|
1815
1816
|
class: D(["sky-dialog-footer", { "sky-dialog-footer-animate": n.enableAnimation }])
|
|
1816
1817
|
}, [
|
|
1817
|
-
b[1] || (b[1] =
|
|
1818
|
-
|
|
1819
|
-
b[2] || (b[2] =
|
|
1818
|
+
b[1] || (b[1] = u("div", null, null, -1)),
|
|
1819
|
+
N(t.$slots, "buttons", {}, void 0, !0),
|
|
1820
|
+
b[2] || (b[2] = u("div", null, null, -1))
|
|
1820
1821
|
], 2)) : A("", !0)
|
|
1821
1822
|
], 512)
|
|
1822
1823
|
], 2)
|
|
@@ -1826,7 +1827,7 @@ const Ot = ["title"], At = {
|
|
|
1826
1827
|
}, 8, ["name"])
|
|
1827
1828
|
]));
|
|
1828
1829
|
}
|
|
1829
|
-
}, $e = /* @__PURE__ */ ee(
|
|
1830
|
+
}, $e = /* @__PURE__ */ ee(zt, [["__scopeId", "data-v-35e2143b"]]), Gt = {
|
|
1830
1831
|
__name: "Dialog",
|
|
1831
1832
|
props: {
|
|
1832
1833
|
modelValue: {
|
|
@@ -1851,7 +1852,7 @@ const Ot = ["title"], At = {
|
|
|
1851
1852
|
},
|
|
1852
1853
|
enableAnimation: {
|
|
1853
1854
|
type: Boolean,
|
|
1854
|
-
default: !
|
|
1855
|
+
default: !1
|
|
1855
1856
|
},
|
|
1856
1857
|
closeOnEsc: {
|
|
1857
1858
|
type: Boolean,
|
|
@@ -1867,21 +1868,21 @@ const Ot = ["title"], At = {
|
|
|
1867
1868
|
},
|
|
1868
1869
|
emits: ["update:modelValue", "close", "save"],
|
|
1869
1870
|
setup(n, { emit: S }) {
|
|
1870
|
-
const m = n,
|
|
1871
|
+
const m = n, d = S, x = L({
|
|
1871
1872
|
get: () => m.modelValue,
|
|
1872
|
-
set: (v) =>
|
|
1873
|
-
}),
|
|
1873
|
+
set: (v) => d("update:modelValue", v)
|
|
1874
|
+
}), h = U(!0);
|
|
1874
1875
|
Q(() => {
|
|
1875
1876
|
try {
|
|
1876
|
-
new URLSearchParams(window.location.search).get("rocketMode") === "false" ?
|
|
1877
|
+
new URLSearchParams(window.location.search).get("rocketMode") === "false" ? h.value = !1 : h.value = !0;
|
|
1877
1878
|
} catch {
|
|
1878
|
-
|
|
1879
|
+
h.value = !0;
|
|
1879
1880
|
}
|
|
1880
1881
|
});
|
|
1881
|
-
const O =
|
|
1882
|
-
return (v,
|
|
1882
|
+
const O = L(() => m.mode === "next" ? $e : m.mode === "classic" ? De : h.value ? $e : De);
|
|
1883
|
+
return (v, g) => (k(), J(et(O.value), {
|
|
1883
1884
|
modelValue: x.value,
|
|
1884
|
-
"onUpdate:modelValue":
|
|
1885
|
+
"onUpdate:modelValue": g[0] || (g[0] = (E) => x.value = E),
|
|
1885
1886
|
title: n.title,
|
|
1886
1887
|
subtitle: n.subtitle,
|
|
1887
1888
|
"z-index": n.zIndex,
|
|
@@ -1889,18 +1890,18 @@ const Ot = ["title"], At = {
|
|
|
1889
1890
|
"enable-animation": n.enableAnimation,
|
|
1890
1891
|
"close-on-esc": n.closeOnEsc,
|
|
1891
1892
|
"has-buttons": !!v.$slots.buttons,
|
|
1892
|
-
onClose:
|
|
1893
|
-
onSave:
|
|
1893
|
+
onClose: g[1] || (g[1] = (E) => v.$emit("close")),
|
|
1894
|
+
onSave: g[2] || (g[2] = (E) => v.$emit("save"))
|
|
1894
1895
|
}, tt({
|
|
1895
1896
|
default: F(() => [
|
|
1896
|
-
|
|
1897
|
+
N(v.$slots, "default")
|
|
1897
1898
|
]),
|
|
1898
1899
|
_: 2
|
|
1899
1900
|
}, [
|
|
1900
1901
|
v.$slots.buttons ? {
|
|
1901
1902
|
name: "buttons",
|
|
1902
1903
|
fn: F(() => [
|
|
1903
|
-
|
|
1904
|
+
N(v.$slots, "buttons")
|
|
1904
1905
|
]),
|
|
1905
1906
|
key: "0"
|
|
1906
1907
|
} : void 0
|
|
@@ -1914,19 +1915,24 @@ const Ot = ["title"], At = {
|
|
|
1914
1915
|
}
|
|
1915
1916
|
}
|
|
1916
1917
|
};
|
|
1917
|
-
function
|
|
1918
|
+
function Vt(n, S, m, d, x, h) {
|
|
1918
1919
|
return k(), J(ke, { to: m.to }, [
|
|
1919
|
-
|
|
1920
|
+
N(n.$slots, "default")
|
|
1920
1921
|
], 8, ["to"]);
|
|
1921
1922
|
}
|
|
1922
|
-
const
|
|
1923
|
-
const Pt = { class: "sky-modal-header" }, Rt = ["title"],
|
|
1923
|
+
const Lt = /* @__PURE__ */ ee(Nt, [["render", Vt]]);
|
|
1924
|
+
const Pt = { class: "sky-modal-header" }, Rt = ["title"], It = {
|
|
1925
|
+
width: "15",
|
|
1926
|
+
height: "15",
|
|
1927
|
+
viewBox: "0 0 451.847 451.847",
|
|
1928
|
+
style: { transform: "rotate(90deg)" }
|
|
1929
|
+
}, Dt = { class: "sky-modal-title-wrapper" }, $t = { class: "sky-modal-title" }, Ut = {
|
|
1924
1930
|
key: 0,
|
|
1925
1931
|
class: "sky-modal-subtitle"
|
|
1926
|
-
},
|
|
1932
|
+
}, qt = { class: "sky-modal-body" }, jt = {
|
|
1927
1933
|
key: 0,
|
|
1928
1934
|
class: "sky-modal-footer"
|
|
1929
|
-
},
|
|
1935
|
+
}, Ft = {
|
|
1930
1936
|
__name: "Modal",
|
|
1931
1937
|
props: {
|
|
1932
1938
|
modelValue: {
|
|
@@ -1964,71 +1970,63 @@ const Pt = { class: "sky-modal-header" }, Rt = ["title"], Lt = { class: "sky-mod
|
|
|
1964
1970
|
},
|
|
1965
1971
|
emits: ["update:modelValue", "close"],
|
|
1966
1972
|
setup(n, { emit: S }) {
|
|
1967
|
-
const m = n,
|
|
1973
|
+
const m = n, d = S, x = L(() => ({
|
|
1968
1974
|
width: m.width,
|
|
1969
1975
|
height: m.height
|
|
1970
|
-
})),
|
|
1971
|
-
|
|
1976
|
+
})), h = () => {
|
|
1977
|
+
d("update:modelValue", !1), d("close");
|
|
1972
1978
|
}, O = () => {
|
|
1973
|
-
m.closeOnOverlay &&
|
|
1974
|
-
}, v = (
|
|
1975
|
-
|
|
1979
|
+
m.closeOnOverlay && h();
|
|
1980
|
+
}, v = (g) => {
|
|
1981
|
+
g.key === "Escape" && m.closeOnEsc && m.modelValue && h();
|
|
1976
1982
|
};
|
|
1977
1983
|
return ye(
|
|
1978
1984
|
() => m.modelValue,
|
|
1979
|
-
(
|
|
1980
|
-
|
|
1985
|
+
(g) => {
|
|
1986
|
+
g ? document.body.style.overflow = "hidden" : document.body.style.overflow = "";
|
|
1981
1987
|
}
|
|
1982
1988
|
), Q(() => {
|
|
1983
1989
|
document.addEventListener("keydown", v);
|
|
1984
1990
|
}), de(() => {
|
|
1985
1991
|
document.removeEventListener("keydown", v), document.body.style.overflow = "";
|
|
1986
|
-
}), (
|
|
1992
|
+
}), (g, E) => (k(), J(Lt, { to: "body" }, {
|
|
1987
1993
|
default: F(() => [
|
|
1988
|
-
xe(
|
|
1994
|
+
xe(_e, null, {
|
|
1989
1995
|
default: F(() => [
|
|
1990
1996
|
n.modelValue ? (k(), _("div", {
|
|
1991
1997
|
key: 0,
|
|
1992
1998
|
class: "sky-modal-overlay",
|
|
1993
1999
|
onClick: it(O, ["self"])
|
|
1994
2000
|
}, [
|
|
1995
|
-
|
|
2001
|
+
u("div", {
|
|
1996
2002
|
class: "sky-modal",
|
|
1997
|
-
style:
|
|
2003
|
+
style: Ee(x.value)
|
|
1998
2004
|
}, [
|
|
1999
|
-
|
|
2000
|
-
|
|
2005
|
+
u("div", Pt, [
|
|
2006
|
+
u("button", {
|
|
2001
2007
|
class: "sky-modal-back",
|
|
2002
|
-
onClick:
|
|
2008
|
+
onClick: h,
|
|
2003
2009
|
title: n.closeTitle
|
|
2004
|
-
}, [
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
"stroke-linecap": "round",
|
|
2016
|
-
"stroke-linejoin": "round"
|
|
2017
|
-
})
|
|
2018
|
-
], -1)
|
|
2019
|
-
])], 8, Rt),
|
|
2020
|
-
d("div", Lt, [
|
|
2021
|
-
d("h4", It, N(n.title), 1),
|
|
2022
|
-
n.subtitle ? (k(), _("div", Dt, N(n.subtitle), 1)) : A("", !0)
|
|
2010
|
+
}, [
|
|
2011
|
+
(k(), _("svg", It, [...E[0] || (E[0] = [
|
|
2012
|
+
u("path", {
|
|
2013
|
+
fill: "currentColor",
|
|
2014
|
+
d: "M225.923,354.706c-8.098,0-16.195-3.092-22.369-9.263L9.27,151.157c-12.359-12.359-12.359-32.397,0-44.751c12.354-12.354,32.388-12.354,44.748,0l171.905,171.915l171.906-171.909c12.359-12.354,32.391-12.354,44.744,0c12.365,12.354,12.365,32.392,0,44.751L248.292,345.449C242.115,351.621,234.018,354.706,225.923,354.706z"
|
|
2015
|
+
}, null, -1)
|
|
2016
|
+
])]))
|
|
2017
|
+
], 8, Rt),
|
|
2018
|
+
u("div", Dt, [
|
|
2019
|
+
u("h4", $t, z(n.title), 1),
|
|
2020
|
+
n.subtitle ? (k(), _("div", Ut, z(n.subtitle), 1)) : A("", !0)
|
|
2023
2021
|
])
|
|
2024
2022
|
]),
|
|
2025
|
-
|
|
2026
|
-
|
|
2023
|
+
u("div", qt, [
|
|
2024
|
+
N(g.$slots, "default", {}, void 0, !0)
|
|
2027
2025
|
]),
|
|
2028
|
-
|
|
2029
|
-
E[1] || (E[1] =
|
|
2030
|
-
|
|
2031
|
-
E[2] || (E[2] =
|
|
2026
|
+
g.$slots.footer ? (k(), _("div", jt, [
|
|
2027
|
+
E[1] || (E[1] = u("div", null, null, -1)),
|
|
2028
|
+
N(g.$slots, "footer", {}, void 0, !0),
|
|
2029
|
+
E[2] || (E[2] = u("div", null, null, -1))
|
|
2032
2030
|
])) : A("", !0)
|
|
2033
2031
|
], 4)
|
|
2034
2032
|
])) : A("", !0)
|
|
@@ -2039,10 +2037,10 @@ const Pt = { class: "sky-modal-header" }, Rt = ["title"], Lt = { class: "sky-mod
|
|
|
2039
2037
|
_: 3
|
|
2040
2038
|
}));
|
|
2041
2039
|
}
|
|
2042
|
-
},
|
|
2040
|
+
}, Wt = /* @__PURE__ */ ee(Ft, [["__scopeId", "data-v-b612fee8"]]);
|
|
2043
2041
|
export {
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2042
|
+
Lt as BaseTeleport,
|
|
2043
|
+
Gt as Dialog,
|
|
2044
|
+
Ht as Header,
|
|
2045
|
+
Wt as Modal
|
|
2048
2046
|
};
|