@skyservice-developers/vue-dev-kit 1.3.7 → 1.3.9
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 +3 -3
- package/dist/vue3/style.css +1 -1
- package/dist/vue3/vue-dev-kit.cjs +1 -1
- package/dist/vue3/vue-dev-kit.js +202 -206
- package/package.json +1 -1
- package/src/vue2/components/DialogModal.vue +13 -0
- package/src/vue2/components/DialogNext.vue +10 -0
- package/src/vue2/components/Modal.vue +13 -0
- package/src/vue3/components/DialogModal.vue +13 -2
- package/src/vue3/components/DialogNext.vue +10 -2
- package/src/vue3/components/Modal.vue +13 -0
package/dist/vue3/vue-dev-kit.js
CHANGED
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
import { ref as P, onUnmounted as ie, computed as z, onMounted as oe, openBlock as x, createElementBlock as T, createElementVNode as
|
|
1
|
+
import { ref as P, onUnmounted as ie, computed as z, onMounted as oe, openBlock as x, createElementBlock as T, createElementVNode as w, createCommentVNode as C, normalizeClass as $, renderSlot as I, toDisplayString as N, Fragment as nt, renderList as at, useSlots as He, watch as _e, nextTick as Ge, createBlock as ne, Teleport as Se, createVNode as Ee, Transition as Te, withCtx as K, normalizeStyle as Ae, createTextVNode as We, resolveDynamicComponent as st, createSlots as lt, withModifiers as rt } from "vue";
|
|
2
2
|
var dt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
3
3
|
function ut(a) {
|
|
4
4
|
return a && a.__esModule && Object.prototype.hasOwnProperty.call(a, "default") ? a.default : a;
|
|
5
5
|
}
|
|
6
6
|
var xe = { exports: {} };
|
|
7
7
|
(function(a, A) {
|
|
8
|
-
(function(
|
|
9
|
-
var
|
|
10
|
-
var
|
|
8
|
+
(function(c, l) {
|
|
9
|
+
var _ = "1.0.41", p = "", B = "?", b = "function", h = "undefined", S = "object", O = "string", M = "major", t = "model", n = "name", e = "type", i = "vendor", o = "version", y = "architecture", j = "console", d = "mobile", s = "tablet", m = "smarttv", E = "wearable", R = "embedded", F = 500, X = "Amazon", q = "Apple", Be = "ASUS", Ce = "BlackBerry", se = "Browser", le = "Chrome", Qe = "Edge", re = "Firefox", de = "Google", Me = "Honor", Ne = "Huawei", et = "Lenovo", ue = "LG", me = "Microsoft", fe = "Motorola", pe = "Nvidia", Pe = "OnePlus", Y = "Opera", ve = "OPPO", Z = "Samsung", Ie = "Sharp", J = "Sony", ge = "Xiaomi", he = "Zebra", Ve = "Facebook", ze = "Chromium OS", Re = "Mac OS", Le = " Browser", tt = function(f, v) {
|
|
10
|
+
var u = {};
|
|
11
11
|
for (var k in f)
|
|
12
|
-
|
|
13
|
-
return
|
|
12
|
+
v[k] && v[k].length % 2 === 0 ? u[k] = v[k].concat(f[k]) : u[k] = f[k];
|
|
13
|
+
return u;
|
|
14
14
|
}, ce = function(f) {
|
|
15
|
-
for (var
|
|
16
|
-
|
|
17
|
-
return
|
|
18
|
-
}, De = function(f,
|
|
19
|
-
return typeof f === O ? Q(
|
|
15
|
+
for (var v = {}, u = 0; u < f.length; u++)
|
|
16
|
+
v[f[u].toUpperCase()] = f[u];
|
|
17
|
+
return v;
|
|
18
|
+
}, De = function(f, v) {
|
|
19
|
+
return typeof f === O ? Q(v).indexOf(Q(f)) !== -1 : !1;
|
|
20
20
|
}, Q = function(f) {
|
|
21
21
|
return f.toLowerCase();
|
|
22
22
|
}, it = function(f) {
|
|
23
|
-
return typeof f === O ? f.replace(/[^\d\.]/g,
|
|
24
|
-
}, ye = function(f,
|
|
23
|
+
return typeof f === O ? f.replace(/[^\d\.]/g, p).split(".")[0] : l;
|
|
24
|
+
}, ye = function(f, v) {
|
|
25
25
|
if (typeof f === O)
|
|
26
|
-
return f = f.replace(/^\s\s*/,
|
|
27
|
-
}, ee = function(f,
|
|
28
|
-
for (var
|
|
29
|
-
var ke =
|
|
26
|
+
return f = f.replace(/^\s\s*/, p), typeof v === h ? f : f.substring(0, F);
|
|
27
|
+
}, ee = function(f, v) {
|
|
28
|
+
for (var u = 0, k, U, L, g, r, D; u < v.length && !r; ) {
|
|
29
|
+
var ke = v[u], Ue = v[u + 1];
|
|
30
30
|
for (k = U = 0; k < ke.length && !r && ke[k]; )
|
|
31
31
|
if (r = ke[k++].exec(f), r)
|
|
32
32
|
for (L = 0; L < Ue.length; L++)
|
|
33
|
-
D = r[++U],
|
|
34
|
-
|
|
33
|
+
D = r[++U], g = Ue[L], typeof g === S && g.length > 0 ? g.length === 2 ? typeof g[1] == b ? this[g[0]] = g[1].call(this, D) : this[g[0]] = g[1] : g.length === 3 ? typeof g[1] === b && !(g[1].exec && g[1].test) ? this[g[0]] = D ? g[1].call(this, D, g[2]) : l : this[g[0]] = D ? D.replace(g[1], g[2]) : l : g.length === 4 && (this[g[0]] = D ? g[3].call(this, D.replace(g[1], g[2])) : l) : this[g] = D || l;
|
|
34
|
+
u += 2;
|
|
35
35
|
}
|
|
36
|
-
}, te = function(f,
|
|
37
|
-
for (var
|
|
38
|
-
if (typeof
|
|
39
|
-
for (var k = 0; k <
|
|
40
|
-
if (De(
|
|
41
|
-
return
|
|
42
|
-
} else if (De(
|
|
43
|
-
return
|
|
44
|
-
return
|
|
36
|
+
}, te = function(f, v) {
|
|
37
|
+
for (var u in v)
|
|
38
|
+
if (typeof v[u] === S && v[u].length > 0) {
|
|
39
|
+
for (var k = 0; k < v[u].length; k++)
|
|
40
|
+
if (De(v[u][k], f))
|
|
41
|
+
return u === B ? l : u;
|
|
42
|
+
} else if (De(v[u], f))
|
|
43
|
+
return u === B ? l : u;
|
|
44
|
+
return v.hasOwnProperty("*") ? v["*"] : f;
|
|
45
45
|
}, ot = {
|
|
46
46
|
"1.0": "/8",
|
|
47
47
|
"1.2": "/1",
|
|
@@ -389,44 +389,44 @@ var xe = { exports: {} };
|
|
|
389
389
|
/\b((amd|x|x86[-_]?|wow|win)64)\b/i
|
|
390
390
|
// AMD64 (x64)
|
|
391
391
|
],
|
|
392
|
-
[[
|
|
392
|
+
[[y, "amd64"]],
|
|
393
393
|
[
|
|
394
394
|
/(ia32(?=;))/i,
|
|
395
395
|
// IA32 (quicktime)
|
|
396
396
|
/\b((i[346]|x)86)(pc)?\b/i
|
|
397
397
|
// IA32 (x86)
|
|
398
398
|
],
|
|
399
|
-
[[
|
|
399
|
+
[[y, "ia32"]],
|
|
400
400
|
[
|
|
401
401
|
/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i
|
|
402
402
|
// ARM64
|
|
403
403
|
],
|
|
404
|
-
[[
|
|
404
|
+
[[y, "arm64"]],
|
|
405
405
|
[
|
|
406
406
|
/\b(arm(v[67])?ht?n?[fl]p?)\b/i
|
|
407
407
|
// ARMHF
|
|
408
408
|
],
|
|
409
|
-
[[
|
|
409
|
+
[[y, "armhf"]],
|
|
410
410
|
[
|
|
411
411
|
// PocketPC mistakenly identified as PowerPC
|
|
412
412
|
/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i
|
|
413
413
|
],
|
|
414
|
-
[[
|
|
414
|
+
[[y, "arm"]],
|
|
415
415
|
[
|
|
416
416
|
/((ppc|powerpc)(64)?)( mac|;|\))/i
|
|
417
417
|
// PowerPC
|
|
418
418
|
],
|
|
419
|
-
[[
|
|
419
|
+
[[y, /ower/, p, Q]],
|
|
420
420
|
[
|
|
421
421
|
/ sun4\w[;\)]/i
|
|
422
422
|
// SPARC
|
|
423
423
|
],
|
|
424
|
-
[[
|
|
424
|
+
[[y, "sparc"]],
|
|
425
425
|
[
|
|
426
426
|
/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i
|
|
427
427
|
// IA64, 68K, ARM/64, AVR/32, IRIX/64, MIPS/64, SPARC/64, PA-RISC
|
|
428
428
|
],
|
|
429
|
-
[[
|
|
429
|
+
[[y, Q]]
|
|
430
430
|
],
|
|
431
431
|
device: [
|
|
432
432
|
[
|
|
@@ -1278,25 +1278,25 @@ var xe = { exports: {} };
|
|
|
1278
1278
|
],
|
|
1279
1279
|
[n, o]
|
|
1280
1280
|
]
|
|
1281
|
-
}, V = function(f,
|
|
1282
|
-
if (typeof f ===
|
|
1283
|
-
return new V(f,
|
|
1284
|
-
var
|
|
1281
|
+
}, V = function(f, v) {
|
|
1282
|
+
if (typeof f === S && (v = f, f = l), !(this instanceof V))
|
|
1283
|
+
return new V(f, v).getResult();
|
|
1284
|
+
var u = typeof c !== h && c.navigator ? c.navigator : l, k = f || (u && u.userAgent ? u.userAgent : p), U = u && u.userAgentData ? u.userAgentData : l, L = v ? tt(qe, v) : qe, g = u && u.userAgent == k;
|
|
1285
1285
|
return this.getBrowser = function() {
|
|
1286
1286
|
var r = {};
|
|
1287
|
-
return r[n] = l, r[o] = l, ee.call(r, k, L.browser), r[M] = it(r[o]),
|
|
1287
|
+
return r[n] = l, r[o] = l, ee.call(r, k, L.browser), r[M] = it(r[o]), g && u && u.brave && typeof u.brave.isBrave == b && (r[n] = "Brave"), r;
|
|
1288
1288
|
}, this.getCPU = function() {
|
|
1289
1289
|
var r = {};
|
|
1290
|
-
return r[
|
|
1290
|
+
return r[y] = l, ee.call(r, k, L.cpu), r;
|
|
1291
1291
|
}, this.getDevice = function() {
|
|
1292
1292
|
var r = {};
|
|
1293
|
-
return r[i] = l, r[t] = l, r[e] = l, ee.call(r, k, L.device),
|
|
1293
|
+
return r[i] = l, r[t] = l, r[e] = l, ee.call(r, k, L.device), g && !r[e] && U && U.mobile && (r[e] = d), g && r[t] == "Macintosh" && u && typeof u.standalone !== h && u.maxTouchPoints && u.maxTouchPoints > 2 && (r[t] = "iPad", r[e] = s), r;
|
|
1294
1294
|
}, this.getEngine = function() {
|
|
1295
1295
|
var r = {};
|
|
1296
1296
|
return r[n] = l, r[o] = l, ee.call(r, k, L.engine), r;
|
|
1297
1297
|
}, this.getOS = function() {
|
|
1298
1298
|
var r = {};
|
|
1299
|
-
return r[n] = l, r[o] = l, ee.call(r, k, L.os),
|
|
1299
|
+
return r[n] = l, r[o] = l, ee.call(r, k, L.os), g && !r[n] && U && U.platform && U.platform != "Unknown" && (r[n] = U.platform.replace(/chrome os/i, ze).replace(/macos/i, Re)), r;
|
|
1300
1300
|
}, this.getResult = function() {
|
|
1301
1301
|
return {
|
|
1302
1302
|
ua: this.getUA(),
|
|
@@ -1312,17 +1312,17 @@ var xe = { exports: {} };
|
|
|
1312
1312
|
return k = typeof r === O && r.length > F ? ye(r, F) : r, this;
|
|
1313
1313
|
}, this.setUA(k), this;
|
|
1314
1314
|
};
|
|
1315
|
-
V.VERSION =
|
|
1316
|
-
var G = typeof
|
|
1315
|
+
V.VERSION = _, V.BROWSER = ce([n, o, M]), V.CPU = ce([y]), V.DEVICE = ce([t, i, e, j, d, m, s, E, R]), V.ENGINE = V.OS = ce([n, o]), a.exports && (A = a.exports = V), A.UAParser = V;
|
|
1316
|
+
var G = typeof c !== h && (c.jQuery || c.Zepto);
|
|
1317
1317
|
if (G && !G.ua) {
|
|
1318
1318
|
var be = new V();
|
|
1319
1319
|
G.ua = be.getResult(), G.ua.get = function() {
|
|
1320
1320
|
return be.getUA();
|
|
1321
1321
|
}, G.ua.set = function(f) {
|
|
1322
1322
|
be.setUA(f);
|
|
1323
|
-
var
|
|
1324
|
-
for (var
|
|
1325
|
-
G.ua[
|
|
1323
|
+
var v = be.getResult();
|
|
1324
|
+
for (var u in v)
|
|
1325
|
+
G.ua[u] = v[u];
|
|
1326
1326
|
};
|
|
1327
1327
|
}
|
|
1328
1328
|
})(typeof window == "object" ? window : dt);
|
|
@@ -1375,15 +1375,15 @@ function W(a) {
|
|
|
1375
1375
|
}, "*");
|
|
1376
1376
|
}
|
|
1377
1377
|
function Je(a, A) {
|
|
1378
|
-
return H() ? new Promise((
|
|
1379
|
-
const l = ft(),
|
|
1380
|
-
window.removeEventListener("message",
|
|
1378
|
+
return H() ? new Promise((c) => {
|
|
1379
|
+
const l = ft(), _ = setTimeout(() => {
|
|
1380
|
+
window.removeEventListener("message", p), c(null);
|
|
1381
1381
|
}, wt);
|
|
1382
|
-
function
|
|
1383
|
-
const
|
|
1384
|
-
(
|
|
1382
|
+
function p(B) {
|
|
1383
|
+
const b = B.data;
|
|
1384
|
+
(b == null ? void 0 : b.type) === "DATA_RESPONSE" && (b == null ? void 0 : b.requestId) === l && (!b.target || b.target === Oe()) && (clearTimeout(_), window.removeEventListener("message", p), c(b.data ?? null));
|
|
1385
1385
|
}
|
|
1386
|
-
window.addEventListener("message",
|
|
1386
|
+
window.addEventListener("message", p), W({
|
|
1387
1387
|
type: "DATA_REQUEST",
|
|
1388
1388
|
requestId: l,
|
|
1389
1389
|
source: a,
|
|
@@ -1398,16 +1398,16 @@ function gt(a) {
|
|
|
1398
1398
|
return Je("window", a);
|
|
1399
1399
|
}
|
|
1400
1400
|
const ae = (a, A) => {
|
|
1401
|
-
const
|
|
1402
|
-
for (const [l,
|
|
1403
|
-
|
|
1404
|
-
return
|
|
1405
|
-
}, ht = { class: "sky-header-container" }, yt = { class: "topmenubox" }, kt = { class: "header-left" }, xt = ["title"],
|
|
1401
|
+
const c = a.__vccOpts || a;
|
|
1402
|
+
for (const [l, _] of A)
|
|
1403
|
+
c[l] = _;
|
|
1404
|
+
return c;
|
|
1405
|
+
}, ht = { class: "sky-header-container" }, yt = { class: "topmenubox" }, kt = { class: "header-left" }, xt = ["title"], _t = {
|
|
1406
1406
|
width: "15",
|
|
1407
1407
|
height: "15",
|
|
1408
1408
|
viewBox: "0 0 451.847 451.847",
|
|
1409
1409
|
style: { transform: "rotate(90deg)" }
|
|
1410
|
-
},
|
|
1410
|
+
}, St = {
|
|
1411
1411
|
class: "notPadding",
|
|
1412
1412
|
style: { "margin-bottom": "4px" }
|
|
1413
1413
|
}, Et = { class: "topmenu-title" }, Tt = {
|
|
@@ -1466,23 +1466,23 @@ const ae = (a, A) => {
|
|
|
1466
1466
|
},
|
|
1467
1467
|
emits: ["back", "navigate"],
|
|
1468
1468
|
setup(a, { emit: A }) {
|
|
1469
|
-
const
|
|
1470
|
-
vt(
|
|
1471
|
-
const l = A,
|
|
1472
|
-
H() &&
|
|
1469
|
+
const c = a;
|
|
1470
|
+
vt(c.appId || Oe());
|
|
1471
|
+
const l = A, _ = P(null), p = P(!1), B = P([]), b = P({});
|
|
1472
|
+
H() && c.trackPageName && W({
|
|
1473
1473
|
type: "trackVisit",
|
|
1474
|
-
name:
|
|
1475
|
-
path:
|
|
1474
|
+
name: c.trackPageName,
|
|
1475
|
+
path: c.trackPagePath || `/${c.trackPageName}`
|
|
1476
1476
|
});
|
|
1477
|
-
const
|
|
1477
|
+
const h = P(null);
|
|
1478
1478
|
H() && je("rocketMode").then((s) => {
|
|
1479
|
-
|
|
1479
|
+
h.value = s, W({ type: "setRocketMode", value: !0 });
|
|
1480
1480
|
}), ie(() => {
|
|
1481
1481
|
j();
|
|
1482
1482
|
}), H() && gt("lang").then((s) => {
|
|
1483
|
-
s != null && (
|
|
1483
|
+
s != null && (b.value = s);
|
|
1484
1484
|
});
|
|
1485
|
-
function
|
|
1485
|
+
function S(s) {
|
|
1486
1486
|
try {
|
|
1487
1487
|
if (!s)
|
|
1488
1488
|
return;
|
|
@@ -1491,78 +1491,78 @@ const ae = (a, A) => {
|
|
|
1491
1491
|
} catch {
|
|
1492
1492
|
}
|
|
1493
1493
|
}
|
|
1494
|
-
|
|
1495
|
-
s != null && (localStorage.setItem("componentStats", JSON.stringify(s)),
|
|
1494
|
+
S(localStorage.componentStats), H() && je("componentStats").then((s) => {
|
|
1495
|
+
s != null && (localStorage.setItem("componentStats", JSON.stringify(s)), S(s));
|
|
1496
1496
|
});
|
|
1497
|
-
const O = z(() => [...
|
|
1498
|
-
O.value.length && (
|
|
1497
|
+
const O = z(() => [...c.dropdownItems.length ? c.dropdownItems : B.value].sort((m, E) => E.lastVisit - m.lastVisit)), M = () => {
|
|
1498
|
+
O.value.length && (p.value = !p.value);
|
|
1499
1499
|
}, t = () => {
|
|
1500
|
-
|
|
1500
|
+
p.value = !1;
|
|
1501
1501
|
}, n = (s) => {
|
|
1502
1502
|
l("navigate", s.path), H() && W({ type: "navigate", path: s.path }), t();
|
|
1503
1503
|
}, e = (s) => {
|
|
1504
1504
|
if (!s)
|
|
1505
1505
|
return "";
|
|
1506
|
-
const m =
|
|
1506
|
+
const m = b.value[s] || s;
|
|
1507
1507
|
return m.charAt(0).toUpperCase() + m.slice(1);
|
|
1508
1508
|
}, i = (s) => {
|
|
1509
1509
|
const E = Date.now() - s, R = Math.floor(E / 1e3), F = Math.floor(R / 60), X = Math.floor(F / 60), q = Math.floor(X / 24);
|
|
1510
1510
|
return q > 0 ? `${q}д тому` : X > 0 ? `${X}год тому` : F > 0 ? `${F}хв тому` : `${R}с тому`;
|
|
1511
1511
|
}, o = (s) => {
|
|
1512
|
-
|
|
1512
|
+
_.value && !_.value.contains(s.target) && t();
|
|
1513
1513
|
};
|
|
1514
1514
|
oe(() => {
|
|
1515
1515
|
document.addEventListener("click", o, !0);
|
|
1516
1516
|
}), ie(() => {
|
|
1517
1517
|
document.removeEventListener("click", o, !0);
|
|
1518
1518
|
});
|
|
1519
|
-
const
|
|
1520
|
-
if (
|
|
1521
|
-
const s =
|
|
1519
|
+
const y = z(() => c.backEvent || c.showBackButton && H()), j = () => {
|
|
1520
|
+
if (h.value !== null) {
|
|
1521
|
+
const s = h.value === "true";
|
|
1522
1522
|
W({ type: "setRocketMode", value: s });
|
|
1523
1523
|
}
|
|
1524
1524
|
}, d = () => {
|
|
1525
|
-
if (
|
|
1526
|
-
return
|
|
1525
|
+
if (c.backEvent)
|
|
1526
|
+
return c.backEvent();
|
|
1527
1527
|
j(), W({ type: "exit" });
|
|
1528
1528
|
};
|
|
1529
1529
|
return (s, m) => (x(), T("header", ht, [
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1530
|
+
w("div", yt, [
|
|
1531
|
+
w("div", kt, [
|
|
1532
|
+
y.value ? (x(), T("button", {
|
|
1533
1533
|
key: 0,
|
|
1534
1534
|
class: "btn-back",
|
|
1535
1535
|
onClick: d,
|
|
1536
1536
|
title: a.backButtonTitle
|
|
1537
1537
|
}, [
|
|
1538
|
-
(x(), T("svg",
|
|
1539
|
-
|
|
1538
|
+
(x(), T("svg", _t, [...m[0] || (m[0] = [
|
|
1539
|
+
w("path", {
|
|
1540
1540
|
fill: "currentColor",
|
|
1541
1541
|
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"
|
|
1542
1542
|
}, null, -1)
|
|
1543
1543
|
])]))
|
|
1544
1544
|
], 8, xt)) : C("", !0),
|
|
1545
|
-
|
|
1545
|
+
w("div", {
|
|
1546
1546
|
ref_key: "dropdownRef",
|
|
1547
|
-
ref:
|
|
1547
|
+
ref: _,
|
|
1548
1548
|
class: "titleAndDesc"
|
|
1549
1549
|
}, [
|
|
1550
|
-
|
|
1550
|
+
w("button", {
|
|
1551
1551
|
class: $(["title-dropdown-toggle", { "title-dropdown-toggle-active": O.value.length }]),
|
|
1552
1552
|
onClick: M
|
|
1553
1553
|
}, [
|
|
1554
1554
|
I(s.$slots, "title", {}, () => [
|
|
1555
|
-
|
|
1556
|
-
|
|
1555
|
+
w("h4", St, [
|
|
1556
|
+
w("span", Et, N(a.title), 1),
|
|
1557
1557
|
O.value.length ? (x(), T("svg", {
|
|
1558
1558
|
key: 0,
|
|
1559
|
-
class: $(["arrow", { open:
|
|
1559
|
+
class: $(["arrow", { open: p.value }]),
|
|
1560
1560
|
width: "12",
|
|
1561
1561
|
height: "12",
|
|
1562
1562
|
viewBox: "0 0 451.847 451.847",
|
|
1563
1563
|
style: { "flex-shrink": "0" }
|
|
1564
1564
|
}, [...m[1] || (m[1] = [
|
|
1565
|
-
|
|
1565
|
+
w("path", {
|
|
1566
1566
|
fill: "currentColor",
|
|
1567
1567
|
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"
|
|
1568
1568
|
}, null, -1)
|
|
@@ -1570,16 +1570,16 @@ const ae = (a, A) => {
|
|
|
1570
1570
|
])
|
|
1571
1571
|
], !0)
|
|
1572
1572
|
], 2),
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
m[2] || (m[2] =
|
|
1573
|
+
p.value && O.value.length ? (x(), T("div", Tt, [
|
|
1574
|
+
w("div", At, N(a.dropdownTitle), 1),
|
|
1575
|
+
m[2] || (m[2] = w("div", { class: "title-dropdown-divider" }, null, -1)),
|
|
1576
1576
|
(x(!0), T(nt, null, at(O.value, (E, R) => (x(), T("div", {
|
|
1577
1577
|
key: R,
|
|
1578
1578
|
class: "title-dropdown-item",
|
|
1579
1579
|
onClick: (F) => n(E)
|
|
1580
1580
|
}, [
|
|
1581
|
-
|
|
1582
|
-
|
|
1581
|
+
w("p", Bt, N(e(E.name)), 1),
|
|
1582
|
+
w("small", Ct, " (" + N(a.visitLabel) + " " + N(i(E.lastVisit)) + ") ", 1)
|
|
1583
1583
|
], 8, Ot))), 128))
|
|
1584
1584
|
])) : C("", !0),
|
|
1585
1585
|
I(s.$slots, "subtitle", {}, () => [
|
|
@@ -1587,10 +1587,10 @@ const ae = (a, A) => {
|
|
|
1587
1587
|
], !0)
|
|
1588
1588
|
], 512)
|
|
1589
1589
|
]),
|
|
1590
|
-
|
|
1591
|
-
m[3] || (m[3] =
|
|
1590
|
+
w("div", Nt, [
|
|
1591
|
+
m[3] || (m[3] = w("div", null, null, -1)),
|
|
1592
1592
|
I(s.$slots, "default", {}, void 0, !0),
|
|
1593
|
-
m[4] || (m[4] =
|
|
1593
|
+
m[4] || (m[4] = w("div", null, null, -1))
|
|
1594
1594
|
])
|
|
1595
1595
|
])
|
|
1596
1596
|
]));
|
|
@@ -1640,40 +1640,40 @@ const It = {
|
|
|
1640
1640
|
},
|
|
1641
1641
|
emits: ["update:modelValue", "close", "save"],
|
|
1642
1642
|
setup(a, { emit: A }) {
|
|
1643
|
-
const
|
|
1643
|
+
const c = He(), l = a, _ = A, p = P(null), B = P(null), b = P(0), h = z(() => {
|
|
1644
1644
|
try {
|
|
1645
1645
|
return Ye();
|
|
1646
1646
|
} catch {
|
|
1647
1647
|
return !1;
|
|
1648
1648
|
}
|
|
1649
|
-
}),
|
|
1649
|
+
}), S = z(() => {
|
|
1650
1650
|
try {
|
|
1651
1651
|
return Ze();
|
|
1652
1652
|
} catch {
|
|
1653
1653
|
return !1;
|
|
1654
1654
|
}
|
|
1655
|
-
}), O = z(() => l.hasButtons !== null ? l.hasButtons : !!
|
|
1656
|
-
|
|
1655
|
+
}), O = z(() => l.hasButtons !== null ? l.hasButtons : !!c.buttons), M = () => {
|
|
1656
|
+
_("update:modelValue", !1), _("close");
|
|
1657
1657
|
}, t = (o) => {
|
|
1658
|
-
o.key === "Escape" && l.closeOnEsc && l.modelValue && M(), o.key === "Enter" && l.modelValue &&
|
|
1658
|
+
o.key === "Escape" && l.closeOnEsc && l.modelValue && M(), o.key === "Enter" && l.modelValue && _("save");
|
|
1659
1659
|
}, n = (o) => {
|
|
1660
|
-
o.touches[0].clientX < 35 && (
|
|
1660
|
+
o.touches[0].clientX < 35 && (b.value = o.touches[0].clientX);
|
|
1661
1661
|
}, e = (o) => {
|
|
1662
|
-
|
|
1662
|
+
b.value > 0 && b.value < 35 && o.changedTouches[0].clientX - b.value > 50 && M(), b.value = 0;
|
|
1663
1663
|
}, i = () => {
|
|
1664
|
-
if (!(!
|
|
1664
|
+
if (!(!S.value || !p.value))
|
|
1665
1665
|
try {
|
|
1666
1666
|
if (typeof Android < "u" && Android.getDisplayCutoutTop) {
|
|
1667
1667
|
const o = Android.getDisplayCutoutTop();
|
|
1668
1668
|
if (o && window.devicePixelRatio > 1) {
|
|
1669
|
-
const
|
|
1670
|
-
|
|
1669
|
+
const y = o / window.devicePixelRatio;
|
|
1670
|
+
p.value.style.paddingTop = y + "px";
|
|
1671
1671
|
}
|
|
1672
1672
|
}
|
|
1673
1673
|
} catch {
|
|
1674
1674
|
}
|
|
1675
1675
|
};
|
|
1676
|
-
return
|
|
1676
|
+
return _e(
|
|
1677
1677
|
() => l.modelValue,
|
|
1678
1678
|
(o) => {
|
|
1679
1679
|
o ? (document.body.style.overflow = "hidden", Ge(() => {
|
|
@@ -1684,7 +1684,7 @@ const It = {
|
|
|
1684
1684
|
document.addEventListener("keydown", t), window.addEventListener("resize", i);
|
|
1685
1685
|
}), ie(() => {
|
|
1686
1686
|
document.removeEventListener("keydown", t), window.removeEventListener("resize", i), document.body.style.overflow = "";
|
|
1687
|
-
}), (o,
|
|
1687
|
+
}), (o, y) => (x(), ne(Se, { to: "body" }, [
|
|
1688
1688
|
Ee(Te, {
|
|
1689
1689
|
name: a.enableAnimation ? "dialog-slide" : ""
|
|
1690
1690
|
}, {
|
|
@@ -1694,31 +1694,31 @@ const It = {
|
|
|
1694
1694
|
class: "sky-dialogbox sky-dialogbox-classic",
|
|
1695
1695
|
style: Ae([a.zIndex ? { "z-index": a.zIndex } : null])
|
|
1696
1696
|
}, [
|
|
1697
|
-
|
|
1697
|
+
w("div", {
|
|
1698
1698
|
class: $(["sky-dialog-overlay", { "sky-dialog-animate": a.enableAnimation }])
|
|
1699
1699
|
}, [
|
|
1700
|
-
|
|
1700
|
+
w("div", {
|
|
1701
1701
|
ref_key: "dialogContent",
|
|
1702
|
-
ref:
|
|
1702
|
+
ref: p,
|
|
1703
1703
|
class: "sky-dialog-content"
|
|
1704
1704
|
}, [
|
|
1705
|
-
|
|
1705
|
+
w("div", {
|
|
1706
1706
|
class: $(["sky-dialog-title", { "sky-dialog-title-with-subtitle": a.subtitle }])
|
|
1707
1707
|
}, [
|
|
1708
1708
|
We(N(a.title) + " ", 1),
|
|
1709
1709
|
a.subtitle ? (x(), T("span", It, N(a.subtitle), 1)) : C("", !0)
|
|
1710
1710
|
], 2),
|
|
1711
|
-
|
|
1711
|
+
w("button", {
|
|
1712
1712
|
class: "sky-dialog-close",
|
|
1713
1713
|
title: a.closeText,
|
|
1714
1714
|
onClick: M
|
|
1715
|
-
}, [...
|
|
1716
|
-
|
|
1715
|
+
}, [...y[0] || (y[0] = [
|
|
1716
|
+
w("svg", {
|
|
1717
1717
|
viewBox: "0 0 16 16",
|
|
1718
1718
|
width: "16",
|
|
1719
1719
|
height: "16"
|
|
1720
1720
|
}, [
|
|
1721
|
-
|
|
1721
|
+
w("line", {
|
|
1722
1722
|
x1: "1",
|
|
1723
1723
|
y1: "15",
|
|
1724
1724
|
x2: "15",
|
|
@@ -1726,7 +1726,7 @@ const It = {
|
|
|
1726
1726
|
stroke: "currentColor",
|
|
1727
1727
|
"stroke-width": "2"
|
|
1728
1728
|
}),
|
|
1729
|
-
|
|
1729
|
+
w("line", {
|
|
1730
1730
|
x1: "1",
|
|
1731
1731
|
y1: "1",
|
|
1732
1732
|
x2: "15",
|
|
@@ -1736,24 +1736,22 @@ const It = {
|
|
|
1736
1736
|
})
|
|
1737
1737
|
], -1)
|
|
1738
1738
|
])], 8, Vt),
|
|
1739
|
-
|
|
1740
|
-
|
|
1739
|
+
y[1] || (y[1] = w("div", { class: "sky-dialog-clearfix" }, null, -1)),
|
|
1740
|
+
w("div", {
|
|
1741
1741
|
ref_key: "dialogPaper",
|
|
1742
1742
|
ref: B,
|
|
1743
1743
|
class: $(["sky-dialog-paper", { "sky-dialog-paper-no-footer": !O.value }]),
|
|
1744
1744
|
onTouchstart: n,
|
|
1745
1745
|
onTouchend: e
|
|
1746
1746
|
}, [
|
|
1747
|
-
|
|
1747
|
+
h.value ? (x(), T("div", zt)) : C("", !0),
|
|
1748
1748
|
I(o.$slots, "default", {}, void 0, !0)
|
|
1749
1749
|
], 34),
|
|
1750
1750
|
O.value ? (x(), T("div", {
|
|
1751
1751
|
key: 0,
|
|
1752
1752
|
class: $(["sky-dialog-footer", { "sky-dialog-footer-animate": a.enableAnimation }])
|
|
1753
1753
|
}, [
|
|
1754
|
-
|
|
1755
|
-
I(o.$slots, "buttons", {}, void 0, !0),
|
|
1756
|
-
p[2] || (p[2] = u("div", null, null, -1))
|
|
1754
|
+
I(o.$slots, "buttons", {}, void 0, !0)
|
|
1757
1755
|
], 2)) : C("", !0)
|
|
1758
1756
|
], 512)
|
|
1759
1757
|
], 2)
|
|
@@ -1763,7 +1761,7 @@ const It = {
|
|
|
1763
1761
|
}, 8, ["name"])
|
|
1764
1762
|
]));
|
|
1765
1763
|
}
|
|
1766
|
-
}, Fe = /* @__PURE__ */ ae(Rt, [["__scopeId", "data-v-
|
|
1764
|
+
}, Fe = /* @__PURE__ */ ae(Rt, [["__scopeId", "data-v-25f8ff74"]]);
|
|
1767
1765
|
const Lt = { class: "sky-dialog-header" }, Dt = ["title"], $t = {
|
|
1768
1766
|
width: "15",
|
|
1769
1767
|
height: "15",
|
|
@@ -1813,40 +1811,40 @@ const Lt = { class: "sky-dialog-header" }, Dt = ["title"], $t = {
|
|
|
1813
1811
|
},
|
|
1814
1812
|
emits: ["update:modelValue", "close", "save"],
|
|
1815
1813
|
setup(a, { emit: A }) {
|
|
1816
|
-
const
|
|
1814
|
+
const c = He(), l = a, _ = A, p = P(null), B = P(null), b = P(0), h = z(() => {
|
|
1817
1815
|
try {
|
|
1818
1816
|
return Ye();
|
|
1819
1817
|
} catch {
|
|
1820
1818
|
return !1;
|
|
1821
1819
|
}
|
|
1822
|
-
}),
|
|
1820
|
+
}), S = z(() => {
|
|
1823
1821
|
try {
|
|
1824
1822
|
return Ze();
|
|
1825
1823
|
} catch {
|
|
1826
1824
|
return !1;
|
|
1827
1825
|
}
|
|
1828
|
-
}), O = z(() => l.hasButtons !== null ? l.hasButtons : !!
|
|
1829
|
-
|
|
1826
|
+
}), O = z(() => l.hasButtons !== null ? l.hasButtons : !!c.buttons), M = () => {
|
|
1827
|
+
_("update:modelValue", !1), _("close");
|
|
1830
1828
|
}, t = (o) => {
|
|
1831
|
-
o.key === "Escape" && l.closeOnEsc && l.modelValue && M(), o.key === "Enter" && l.modelValue &&
|
|
1829
|
+
o.key === "Escape" && l.closeOnEsc && l.modelValue && M(), o.key === "Enter" && l.modelValue && _("save");
|
|
1832
1830
|
}, n = (o) => {
|
|
1833
|
-
o.touches[0].clientX < 35 && (
|
|
1831
|
+
o.touches[0].clientX < 35 && (b.value = o.touches[0].clientX);
|
|
1834
1832
|
}, e = (o) => {
|
|
1835
|
-
|
|
1833
|
+
b.value > 0 && b.value < 35 && o.changedTouches[0].clientX - b.value > 50 && M(), b.value = 0;
|
|
1836
1834
|
}, i = () => {
|
|
1837
|
-
if (!(!
|
|
1835
|
+
if (!(!S.value || !p.value))
|
|
1838
1836
|
try {
|
|
1839
1837
|
if (typeof Android < "u" && Android.getDisplayCutoutTop) {
|
|
1840
1838
|
const o = Android.getDisplayCutoutTop();
|
|
1841
1839
|
if (o && window.devicePixelRatio > 1) {
|
|
1842
|
-
const
|
|
1843
|
-
|
|
1840
|
+
const y = o / window.devicePixelRatio;
|
|
1841
|
+
p.value.style.paddingTop = y + "px";
|
|
1844
1842
|
}
|
|
1845
1843
|
}
|
|
1846
1844
|
} catch {
|
|
1847
1845
|
}
|
|
1848
1846
|
};
|
|
1849
|
-
return
|
|
1847
|
+
return _e(
|
|
1850
1848
|
() => l.modelValue,
|
|
1851
1849
|
(o) => {
|
|
1852
1850
|
o ? (document.body.style.overflow = "hidden", Ge(() => {
|
|
@@ -1857,7 +1855,7 @@ const Lt = { class: "sky-dialog-header" }, Dt = ["title"], $t = {
|
|
|
1857
1855
|
document.addEventListener("keydown", t), window.addEventListener("resize", i);
|
|
1858
1856
|
}), ie(() => {
|
|
1859
1857
|
document.removeEventListener("keydown", t), window.removeEventListener("resize", i), document.body.style.overflow = "";
|
|
1860
|
-
}), (o,
|
|
1858
|
+
}), (o, y) => (x(), ne(Se, { to: "body" }, [
|
|
1861
1859
|
Ee(Te, {
|
|
1862
1860
|
name: a.enableAnimation ? "dialog-slide" : ""
|
|
1863
1861
|
}, {
|
|
@@ -1867,51 +1865,49 @@ const Lt = { class: "sky-dialog-header" }, Dt = ["title"], $t = {
|
|
|
1867
1865
|
class: "sky-dialogbox sky-dialogbox-next",
|
|
1868
1866
|
style: Ae([a.zIndex ? { "z-index": a.zIndex } : null])
|
|
1869
1867
|
}, [
|
|
1870
|
-
|
|
1868
|
+
w("div", {
|
|
1871
1869
|
class: $(["sky-dialog-overlay", { "sky-dialog-animate": a.enableAnimation }])
|
|
1872
1870
|
}, [
|
|
1873
|
-
|
|
1871
|
+
w("div", {
|
|
1874
1872
|
ref_key: "dialogContent",
|
|
1875
|
-
ref:
|
|
1873
|
+
ref: p,
|
|
1876
1874
|
class: "sky-dialog-content"
|
|
1877
1875
|
}, [
|
|
1878
|
-
|
|
1879
|
-
|
|
1876
|
+
w("div", Lt, [
|
|
1877
|
+
w("button", {
|
|
1880
1878
|
class: "sky-dialog-back",
|
|
1881
1879
|
title: a.closeText,
|
|
1882
1880
|
onClick: M
|
|
1883
1881
|
}, [
|
|
1884
|
-
(x(), T("svg", $t, [...
|
|
1885
|
-
|
|
1882
|
+
(x(), T("svg", $t, [...y[0] || (y[0] = [
|
|
1883
|
+
w("path", {
|
|
1886
1884
|
fill: "currentColor",
|
|
1887
1885
|
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"
|
|
1888
1886
|
}, null, -1)
|
|
1889
1887
|
])]))
|
|
1890
1888
|
], 8, Dt),
|
|
1891
|
-
|
|
1889
|
+
w("div", {
|
|
1892
1890
|
class: $(["sky-dialog-title", { "sky-dialog-title-with-subtitle": a.subtitle }])
|
|
1893
1891
|
}, [
|
|
1894
1892
|
We(N(a.title) + " ", 1),
|
|
1895
1893
|
a.subtitle ? (x(), T("span", qt, N(a.subtitle), 1)) : C("", !0)
|
|
1896
1894
|
], 2)
|
|
1897
1895
|
]),
|
|
1898
|
-
|
|
1896
|
+
w("div", {
|
|
1899
1897
|
ref_key: "dialogPaper",
|
|
1900
1898
|
ref: B,
|
|
1901
1899
|
class: $(["sky-dialog-paper", { "sky-dialog-paper-no-footer": !O.value }]),
|
|
1902
1900
|
onTouchstart: n,
|
|
1903
1901
|
onTouchend: e
|
|
1904
1902
|
}, [
|
|
1905
|
-
|
|
1903
|
+
h.value ? (x(), T("div", Ut)) : C("", !0),
|
|
1906
1904
|
I(o.$slots, "default", {}, void 0, !0)
|
|
1907
1905
|
], 34),
|
|
1908
1906
|
O.value ? (x(), T("div", {
|
|
1909
1907
|
key: 0,
|
|
1910
1908
|
class: $(["sky-dialog-footer", { "sky-dialog-footer-animate": a.enableAnimation }])
|
|
1911
1909
|
}, [
|
|
1912
|
-
|
|
1913
|
-
I(o.$slots, "buttons", {}, void 0, !0),
|
|
1914
|
-
p[2] || (p[2] = u("div", null, null, -1))
|
|
1910
|
+
I(o.$slots, "buttons", {}, void 0, !0)
|
|
1915
1911
|
], 2)) : C("", !0)
|
|
1916
1912
|
], 512)
|
|
1917
1913
|
], 2)
|
|
@@ -1921,7 +1917,7 @@ const Lt = { class: "sky-dialog-header" }, Dt = ["title"], $t = {
|
|
|
1921
1917
|
}, 8, ["name"])
|
|
1922
1918
|
]));
|
|
1923
1919
|
}
|
|
1924
|
-
}, Xe = /* @__PURE__ */ ae(jt, [["__scopeId", "data-v-
|
|
1920
|
+
}, Xe = /* @__PURE__ */ ae(jt, [["__scopeId", "data-v-910c4e3a"]]), ni = {
|
|
1925
1921
|
__name: "Dialog",
|
|
1926
1922
|
props: {
|
|
1927
1923
|
modelValue: {
|
|
@@ -1962,40 +1958,40 @@ const Lt = { class: "sky-dialog-header" }, Dt = ["title"], $t = {
|
|
|
1962
1958
|
},
|
|
1963
1959
|
emits: ["update:modelValue", "close", "save"],
|
|
1964
1960
|
setup(a, { emit: A }) {
|
|
1965
|
-
const
|
|
1966
|
-
get: () =>
|
|
1967
|
-
set: (
|
|
1968
|
-
}),
|
|
1961
|
+
const c = a, l = A, _ = z({
|
|
1962
|
+
get: () => c.modelValue,
|
|
1963
|
+
set: (b) => l("update:modelValue", b)
|
|
1964
|
+
}), p = P(!0);
|
|
1969
1965
|
oe(() => {
|
|
1970
1966
|
try {
|
|
1971
|
-
new URLSearchParams(window.location.search).get("rocketMode") === "false" ?
|
|
1967
|
+
new URLSearchParams(window.location.search).get("rocketMode") === "false" ? p.value = !1 : p.value = !0;
|
|
1972
1968
|
} catch {
|
|
1973
|
-
|
|
1969
|
+
p.value = !0;
|
|
1974
1970
|
}
|
|
1975
1971
|
});
|
|
1976
|
-
const B = z(() =>
|
|
1977
|
-
return (
|
|
1978
|
-
modelValue:
|
|
1979
|
-
"onUpdate:modelValue":
|
|
1972
|
+
const B = z(() => c.mode === "next" ? Xe : c.mode === "classic" ? Fe : p.value ? Xe : Fe);
|
|
1973
|
+
return (b, h) => (x(), ne(st(B.value), {
|
|
1974
|
+
modelValue: _.value,
|
|
1975
|
+
"onUpdate:modelValue": h[0] || (h[0] = (S) => _.value = S),
|
|
1980
1976
|
title: a.title,
|
|
1981
1977
|
subtitle: a.subtitle,
|
|
1982
1978
|
"z-index": a.zIndex,
|
|
1983
1979
|
"close-text": a.closeText,
|
|
1984
1980
|
"enable-animation": a.enableAnimation,
|
|
1985
1981
|
"close-on-esc": a.closeOnEsc,
|
|
1986
|
-
"has-buttons": !!
|
|
1987
|
-
onClose:
|
|
1988
|
-
onSave:
|
|
1982
|
+
"has-buttons": !!b.$slots.buttons,
|
|
1983
|
+
onClose: h[1] || (h[1] = (S) => b.$emit("close")),
|
|
1984
|
+
onSave: h[2] || (h[2] = (S) => b.$emit("save"))
|
|
1989
1985
|
}, lt({
|
|
1990
1986
|
default: K(() => [
|
|
1991
|
-
I(
|
|
1987
|
+
I(b.$slots, "default")
|
|
1992
1988
|
]),
|
|
1993
1989
|
_: 2
|
|
1994
1990
|
}, [
|
|
1995
|
-
|
|
1991
|
+
b.$slots.buttons ? {
|
|
1996
1992
|
name: "buttons",
|
|
1997
1993
|
fn: K(() => [
|
|
1998
|
-
I(
|
|
1994
|
+
I(b.$slots, "buttons")
|
|
1999
1995
|
]),
|
|
2000
1996
|
key: "0"
|
|
2001
1997
|
} : void 0
|
|
@@ -2009,8 +2005,8 @@ const Lt = { class: "sky-dialog-header" }, Dt = ["title"], $t = {
|
|
|
2009
2005
|
}
|
|
2010
2006
|
}
|
|
2011
2007
|
};
|
|
2012
|
-
function Xt(a, A,
|
|
2013
|
-
return x(), ne(
|
|
2008
|
+
function Xt(a, A, c, l, _, p) {
|
|
2009
|
+
return x(), ne(Se, { to: c.to }, [
|
|
2014
2010
|
I(a.$slots, "default")
|
|
2015
2011
|
], 8, ["to"]);
|
|
2016
2012
|
}
|
|
@@ -2064,26 +2060,26 @@ const Gt = { class: "sky-modal-header" }, Wt = ["title"], Kt = {
|
|
|
2064
2060
|
},
|
|
2065
2061
|
emits: ["update:modelValue", "close"],
|
|
2066
2062
|
setup(a, { emit: A }) {
|
|
2067
|
-
const
|
|
2068
|
-
width:
|
|
2069
|
-
height:
|
|
2070
|
-
})),
|
|
2063
|
+
const c = a, l = A, _ = z(() => ({
|
|
2064
|
+
width: c.width,
|
|
2065
|
+
height: c.height
|
|
2066
|
+
})), p = () => {
|
|
2071
2067
|
l("update:modelValue", !1), l("close");
|
|
2072
2068
|
}, B = () => {
|
|
2073
|
-
|
|
2074
|
-
},
|
|
2075
|
-
|
|
2069
|
+
c.closeOnOverlay && p();
|
|
2070
|
+
}, b = (h) => {
|
|
2071
|
+
h.key === "Escape" && c.closeOnEsc && c.modelValue && p();
|
|
2076
2072
|
};
|
|
2077
|
-
return
|
|
2078
|
-
() =>
|
|
2079
|
-
(
|
|
2080
|
-
|
|
2073
|
+
return _e(
|
|
2074
|
+
() => c.modelValue,
|
|
2075
|
+
(h) => {
|
|
2076
|
+
h ? document.body.style.overflow = "hidden" : document.body.style.overflow = "";
|
|
2081
2077
|
}
|
|
2082
2078
|
), oe(() => {
|
|
2083
|
-
document.addEventListener("keydown",
|
|
2079
|
+
document.addEventListener("keydown", b);
|
|
2084
2080
|
}), ie(() => {
|
|
2085
|
-
document.removeEventListener("keydown",
|
|
2086
|
-
}), (
|
|
2081
|
+
document.removeEventListener("keydown", b), document.body.style.overflow = "";
|
|
2082
|
+
}), (h, S) => (x(), ne(Ht, { to: "body" }, {
|
|
2087
2083
|
default: K(() => [
|
|
2088
2084
|
Ee(Te, null, {
|
|
2089
2085
|
default: K(() => [
|
|
@@ -2092,35 +2088,35 @@ const Gt = { class: "sky-modal-header" }, Wt = ["title"], Kt = {
|
|
|
2092
2088
|
class: "sky-modal-overlay",
|
|
2093
2089
|
onClick: rt(B, ["self"])
|
|
2094
2090
|
}, [
|
|
2095
|
-
|
|
2091
|
+
w("div", {
|
|
2096
2092
|
class: "sky-modal",
|
|
2097
|
-
style: Ae(
|
|
2093
|
+
style: Ae(_.value)
|
|
2098
2094
|
}, [
|
|
2099
|
-
|
|
2100
|
-
|
|
2095
|
+
w("div", Gt, [
|
|
2096
|
+
w("button", {
|
|
2101
2097
|
class: "sky-modal-back",
|
|
2102
|
-
onClick:
|
|
2098
|
+
onClick: p,
|
|
2103
2099
|
title: a.closeTitle
|
|
2104
2100
|
}, [
|
|
2105
|
-
(x(), T("svg", Kt, [...
|
|
2106
|
-
|
|
2101
|
+
(x(), T("svg", Kt, [...S[0] || (S[0] = [
|
|
2102
|
+
w("path", {
|
|
2107
2103
|
fill: "currentColor",
|
|
2108
2104
|
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"
|
|
2109
2105
|
}, null, -1)
|
|
2110
2106
|
])]))
|
|
2111
2107
|
], 8, Wt),
|
|
2112
|
-
|
|
2113
|
-
|
|
2108
|
+
w("div", Yt, [
|
|
2109
|
+
w("h4", Zt, N(a.title), 1),
|
|
2114
2110
|
a.subtitle ? (x(), T("div", Jt, N(a.subtitle), 1)) : C("", !0)
|
|
2115
2111
|
])
|
|
2116
2112
|
]),
|
|
2117
|
-
|
|
2118
|
-
I(
|
|
2113
|
+
w("div", Qt, [
|
|
2114
|
+
I(h.$slots, "default", {}, void 0, !0)
|
|
2119
2115
|
]),
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
I(
|
|
2123
|
-
|
|
2116
|
+
h.$slots.footer ? (x(), T("div", ei, [
|
|
2117
|
+
S[1] || (S[1] = w("div", null, null, -1)),
|
|
2118
|
+
I(h.$slots, "footer", {}, void 0, !0),
|
|
2119
|
+
S[2] || (S[2] = w("div", null, null, -1))
|
|
2124
2120
|
])) : C("", !0)
|
|
2125
2121
|
], 4)
|
|
2126
2122
|
])) : C("", !0)
|
|
@@ -2131,7 +2127,7 @@ const Gt = { class: "sky-modal-header" }, Wt = ["title"], Kt = {
|
|
|
2131
2127
|
_: 3
|
|
2132
2128
|
}));
|
|
2133
2129
|
}
|
|
2134
|
-
}, ai = /* @__PURE__ */ ae(ti, [["__scopeId", "data-v-
|
|
2130
|
+
}, ai = /* @__PURE__ */ ae(ti, [["__scopeId", "data-v-f35c4457"]]);
|
|
2135
2131
|
export {
|
|
2136
2132
|
Ht as BaseTeleport,
|
|
2137
2133
|
ni as Dialog,
|