@skyservice-developers/vue-dev-kit 2.3.1 → 2.4.1
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/README.md +26 -1
- package/dist/shared/ui/SkyLoader/SkyLoader.vue.d.ts +15 -0
- package/dist/shared/ui/SkyLoader/index.d.ts +1 -0
- package/dist/shared/ui/index.d.ts +1 -0
- package/dist/style.css +1 -1
- package/dist/vue-dev-kit.cjs +1 -1
- package/dist/vue-dev-kit.js +318 -287
- package/package.json +1 -1
package/dist/vue-dev-kit.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { openBlock as s, createBlock as P, Teleport as U, renderSlot as k, useSlots as Q, ref as $, computed as
|
|
2
|
-
import { p as te, l as se, A as
|
|
3
|
-
import { S as
|
|
1
|
+
import { openBlock as s, createBlock as P, Teleport as U, renderSlot as k, useSlots as Q, ref as $, computed as x, watch as F, nextTick as Y, onMounted as z, onUnmounted as M, createElementBlock as l, normalizeStyle as H, createElementVNode as t, normalizeClass as B, createTextVNode as W, toDisplayString as g, createCommentVNode as u, resolveDynamicComponent as le, createSlots as ne, withCtx as X, Fragment as Z, renderList as ee, withModifiers as ae, mergeProps as de, defineComponent as ie, onBeforeUnmount as re } from "vue";
|
|
2
|
+
import { p as te, l as se, A as ue, f as ce, o as T, B as ye, c as N, y as fe, z as j, k as ve, r as q, e as ke } from "./api-AhLH5w3p.js";
|
|
3
|
+
import { S as rs, g as us, a as cs, b as ys, d as fs, h as vs, i as ks, j as hs, m as gs, n as ms, q as ps, s as bs, t as ws, u as $s, v as Ss, w as _s, x as xs, C as Cs } from "./api-AhLH5w3p.js";
|
|
4
4
|
import "ua-parser-js";
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
for (const [f, h] of
|
|
8
|
-
|
|
9
|
-
return
|
|
10
|
-
},
|
|
5
|
+
const _ = (e, a) => {
|
|
6
|
+
const o = e.__vccOpts || e;
|
|
7
|
+
for (const [f, h] of a)
|
|
8
|
+
o[f] = h;
|
|
9
|
+
return o;
|
|
10
|
+
}, he = {
|
|
11
11
|
props: {
|
|
12
12
|
to: {
|
|
13
13
|
type: String,
|
|
@@ -15,21 +15,21 @@ const C = (e, d) => {
|
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
};
|
|
18
|
-
function
|
|
19
|
-
return s(), P(U, { to:
|
|
18
|
+
function ge(e, a, o, f, h, c) {
|
|
19
|
+
return s(), P(U, { to: o.to }, [
|
|
20
20
|
k(e.$slots, "default")
|
|
21
21
|
], 8, ["to"]);
|
|
22
22
|
}
|
|
23
|
-
const
|
|
23
|
+
const me = /* @__PURE__ */ _(he, [["render", ge]]), pe = { class: "sky-dialog-overlay" }, be = {
|
|
24
24
|
key: 0,
|
|
25
25
|
class: "sky-dialog-subtitle"
|
|
26
|
-
},
|
|
26
|
+
}, we = ["title"], $e = {
|
|
27
27
|
key: 0,
|
|
28
28
|
class: "sky-dialog-swipe-area"
|
|
29
|
-
},
|
|
29
|
+
}, Se = {
|
|
30
30
|
key: 0,
|
|
31
31
|
class: "sky-dialog-footer"
|
|
32
|
-
},
|
|
32
|
+
}, _e = {
|
|
33
33
|
__name: "DialogModal",
|
|
34
34
|
props: {
|
|
35
35
|
modelValue: {
|
|
@@ -62,24 +62,24 @@ const ge = /* @__PURE__ */ C(ke, [["render", he]]), me = { class: "sky-dialog-ov
|
|
|
62
62
|
}
|
|
63
63
|
},
|
|
64
64
|
emits: ["update:modelValue", "close", "save"],
|
|
65
|
-
setup(e, { emit:
|
|
66
|
-
const
|
|
65
|
+
setup(e, { emit: a }) {
|
|
66
|
+
const o = Q(), f = e, h = a, c = $(null), p = $(null), r = $(0), y = x(() => {
|
|
67
67
|
try {
|
|
68
68
|
return te();
|
|
69
69
|
} catch {
|
|
70
70
|
return !1;
|
|
71
71
|
}
|
|
72
|
-
}), b =
|
|
72
|
+
}), b = x(() => {
|
|
73
73
|
try {
|
|
74
74
|
return se();
|
|
75
75
|
} catch {
|
|
76
76
|
return !1;
|
|
77
77
|
}
|
|
78
|
-
}), w =
|
|
78
|
+
}), w = x(() => f.hasButtons !== null ? f.hasButtons : !!o.buttons), S = () => {
|
|
79
79
|
h("update:modelValue", !1), h("close");
|
|
80
|
-
},
|
|
80
|
+
}, C = (n) => {
|
|
81
81
|
n.key === "Escape" && f.closeOnEsc && f.modelValue && S(), n.key === "Enter" && f.modelValue && h("save");
|
|
82
|
-
},
|
|
82
|
+
}, E = (n) => {
|
|
83
83
|
n.touches[0].clientX < 35 && (r.value = n.touches[0].clientX);
|
|
84
84
|
}, I = (n) => {
|
|
85
85
|
r.value > 0 && r.value < 35 && n.changedTouches[0].clientX - r.value > 50 && S(), r.value = 0;
|
|
@@ -89,8 +89,8 @@ const ge = /* @__PURE__ */ C(ke, [["render", he]]), me = { class: "sky-dialog-ov
|
|
|
89
89
|
if (typeof Android < "u" && Android.getDisplayCutoutTop) {
|
|
90
90
|
const n = Android.getDisplayCutoutTop();
|
|
91
91
|
if (n && window.devicePixelRatio > 1) {
|
|
92
|
-
const
|
|
93
|
-
c.value.style.paddingTop =
|
|
92
|
+
const m = n / window.devicePixelRatio;
|
|
93
|
+
c.value.style.paddingTop = m + "px";
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
96
|
} catch {
|
|
@@ -104,32 +104,32 @@ const ge = /* @__PURE__ */ C(ke, [["render", he]]), me = { class: "sky-dialog-ov
|
|
|
104
104
|
})) : document.body.style.overflow = "";
|
|
105
105
|
}
|
|
106
106
|
), z(() => {
|
|
107
|
-
document.addEventListener("keydown",
|
|
107
|
+
document.addEventListener("keydown", C), window.addEventListener("resize", i);
|
|
108
108
|
}), M(() => {
|
|
109
|
-
document.removeEventListener("keydown",
|
|
110
|
-
}), (n,
|
|
111
|
-
e.modelValue ? (s(),
|
|
109
|
+
document.removeEventListener("keydown", C), window.removeEventListener("resize", i), document.body.style.overflow = "";
|
|
110
|
+
}), (n, m) => (s(), P(U, { to: "body" }, [
|
|
111
|
+
e.modelValue ? (s(), l("div", {
|
|
112
112
|
key: 0,
|
|
113
113
|
class: "sky-dialogbox sky-dialogbox-classic",
|
|
114
114
|
style: H([e.zIndex ? { "z-index": e.zIndex } : null])
|
|
115
115
|
}, [
|
|
116
|
-
t("div",
|
|
116
|
+
t("div", pe, [
|
|
117
117
|
t("div", {
|
|
118
118
|
ref_key: "dialogContent",
|
|
119
119
|
ref: c,
|
|
120
120
|
class: "sky-dialog-content"
|
|
121
121
|
}, [
|
|
122
122
|
t("div", {
|
|
123
|
-
class:
|
|
123
|
+
class: B(["sky-dialog-title", { "sky-dialog-title-with-subtitle": e.subtitle }])
|
|
124
124
|
}, [
|
|
125
|
-
W(
|
|
126
|
-
e.subtitle ? (s(),
|
|
125
|
+
W(g(e.title) + " ", 1),
|
|
126
|
+
e.subtitle ? (s(), l("span", be, g(e.subtitle), 1)) : u("", !0)
|
|
127
127
|
], 2),
|
|
128
128
|
t("button", {
|
|
129
129
|
class: "sky-dialog-close",
|
|
130
130
|
title: e.closeText,
|
|
131
131
|
onClick: S
|
|
132
|
-
}, [...
|
|
132
|
+
}, [...m[0] || (m[0] = [
|
|
133
133
|
t("svg", {
|
|
134
134
|
viewBox: "0 0 16 16",
|
|
135
135
|
width: "16",
|
|
@@ -152,19 +152,19 @@ const ge = /* @__PURE__ */ C(ke, [["render", he]]), me = { class: "sky-dialog-ov
|
|
|
152
152
|
"stroke-width": "2"
|
|
153
153
|
})
|
|
154
154
|
], -1)
|
|
155
|
-
])], 8,
|
|
156
|
-
|
|
155
|
+
])], 8, we),
|
|
156
|
+
m[1] || (m[1] = t("div", { class: "sky-dialog-clearfix" }, null, -1)),
|
|
157
157
|
t("div", {
|
|
158
158
|
ref_key: "dialogPaper",
|
|
159
159
|
ref: p,
|
|
160
|
-
class:
|
|
161
|
-
onTouchstart:
|
|
160
|
+
class: B(["sky-dialog-paper", { "sky-dialog-paper-no-footer": !w.value }]),
|
|
161
|
+
onTouchstart: E,
|
|
162
162
|
onTouchend: I
|
|
163
163
|
}, [
|
|
164
|
-
y.value ? (s(),
|
|
164
|
+
y.value ? (s(), l("div", $e)) : u("", !0),
|
|
165
165
|
k(n.$slots, "default", {}, void 0, !0)
|
|
166
166
|
], 34),
|
|
167
|
-
w.value ? (s(),
|
|
167
|
+
w.value ? (s(), l("div", Se, [
|
|
168
168
|
k(n.$slots, "buttons", {}, void 0, !0)
|
|
169
169
|
])) : u("", !0)
|
|
170
170
|
], 512)
|
|
@@ -172,21 +172,21 @@ const ge = /* @__PURE__ */ C(ke, [["render", he]]), me = { class: "sky-dialog-ov
|
|
|
172
172
|
], 4)) : u("", !0)
|
|
173
173
|
]));
|
|
174
174
|
}
|
|
175
|
-
}, J = /* @__PURE__ */
|
|
175
|
+
}, J = /* @__PURE__ */ _(_e, [["__scopeId", "data-v-62f59776"]]), xe = { class: "sky-dialog-overlay" }, Ce = { class: "sky-dialog-header" }, Be = ["title"], Ee = {
|
|
176
176
|
width: "15",
|
|
177
177
|
height: "15",
|
|
178
178
|
viewBox: "0 0 451.847 451.847",
|
|
179
179
|
style: { transform: "rotate(90deg)" }
|
|
180
|
-
},
|
|
180
|
+
}, Ie = {
|
|
181
181
|
key: 0,
|
|
182
182
|
class: "sky-dialog-subtitle"
|
|
183
|
-
},
|
|
183
|
+
}, Ve = {
|
|
184
184
|
key: 0,
|
|
185
185
|
class: "sky-dialog-swipe-area"
|
|
186
|
-
},
|
|
186
|
+
}, Te = {
|
|
187
187
|
key: 0,
|
|
188
188
|
class: "sky-dialog-footer"
|
|
189
|
-
},
|
|
189
|
+
}, Le = {
|
|
190
190
|
__name: "DialogNext",
|
|
191
191
|
props: {
|
|
192
192
|
modelValue: {
|
|
@@ -219,24 +219,24 @@ const ge = /* @__PURE__ */ C(ke, [["render", he]]), me = { class: "sky-dialog-ov
|
|
|
219
219
|
}
|
|
220
220
|
},
|
|
221
221
|
emits: ["update:modelValue", "close", "save"],
|
|
222
|
-
setup(e, { emit:
|
|
223
|
-
const
|
|
222
|
+
setup(e, { emit: a }) {
|
|
223
|
+
const o = Q(), f = e, h = a, c = $(null), p = $(null), r = $(0), y = x(() => {
|
|
224
224
|
try {
|
|
225
225
|
return te();
|
|
226
226
|
} catch {
|
|
227
227
|
return !1;
|
|
228
228
|
}
|
|
229
|
-
}), b =
|
|
229
|
+
}), b = x(() => {
|
|
230
230
|
try {
|
|
231
231
|
return se();
|
|
232
232
|
} catch {
|
|
233
233
|
return !1;
|
|
234
234
|
}
|
|
235
|
-
}), w =
|
|
235
|
+
}), w = x(() => f.hasButtons !== null ? f.hasButtons : !!o.buttons), S = () => {
|
|
236
236
|
h("update:modelValue", !1), h("close");
|
|
237
|
-
},
|
|
237
|
+
}, C = (n) => {
|
|
238
238
|
n.key === "Escape" && f.closeOnEsc && f.modelValue && S(), n.key === "Enter" && f.modelValue && h("save");
|
|
239
|
-
},
|
|
239
|
+
}, E = (n) => {
|
|
240
240
|
n.touches[0].clientX < 35 && (r.value = n.touches[0].clientX);
|
|
241
241
|
}, I = (n) => {
|
|
242
242
|
r.value > 0 && r.value < 35 && n.changedTouches[0].clientX - r.value > 50 && S(), r.value = 0;
|
|
@@ -246,8 +246,8 @@ const ge = /* @__PURE__ */ C(ke, [["render", he]]), me = { class: "sky-dialog-ov
|
|
|
246
246
|
if (typeof Android < "u" && Android.getDisplayCutoutTop) {
|
|
247
247
|
const n = Android.getDisplayCutoutTop();
|
|
248
248
|
if (n && window.devicePixelRatio > 1) {
|
|
249
|
-
const
|
|
250
|
-
c.value.style.paddingTop =
|
|
249
|
+
const m = n / window.devicePixelRatio;
|
|
250
|
+
c.value.style.paddingTop = m + "px";
|
|
251
251
|
}
|
|
252
252
|
}
|
|
253
253
|
} catch {
|
|
@@ -261,16 +261,16 @@ const ge = /* @__PURE__ */ C(ke, [["render", he]]), me = { class: "sky-dialog-ov
|
|
|
261
261
|
})) : document.body.style.overflow = "";
|
|
262
262
|
}
|
|
263
263
|
), z(() => {
|
|
264
|
-
document.addEventListener("keydown",
|
|
264
|
+
document.addEventListener("keydown", C), window.addEventListener("resize", i);
|
|
265
265
|
}), M(() => {
|
|
266
|
-
document.removeEventListener("keydown",
|
|
267
|
-
}), (n,
|
|
268
|
-
e.modelValue ? (s(),
|
|
266
|
+
document.removeEventListener("keydown", C), window.removeEventListener("resize", i), document.body.style.overflow = "";
|
|
267
|
+
}), (n, m) => (s(), P(U, { to: "body" }, [
|
|
268
|
+
e.modelValue ? (s(), l("div", {
|
|
269
269
|
key: 0,
|
|
270
270
|
class: "sky-dialogbox sky-dialogbox-next",
|
|
271
271
|
style: H([e.zIndex ? { "z-index": e.zIndex } : null])
|
|
272
272
|
}, [
|
|
273
|
-
t("div",
|
|
273
|
+
t("div", xe, [
|
|
274
274
|
t("div", {
|
|
275
275
|
ref_key: "dialogContent",
|
|
276
276
|
ref: c,
|
|
@@ -282,7 +282,7 @@ const ge = /* @__PURE__ */ C(ke, [["render", he]]), me = { class: "sky-dialog-ov
|
|
|
282
282
|
title: e.closeText,
|
|
283
283
|
onClick: S
|
|
284
284
|
}, [
|
|
285
|
-
(s(),
|
|
285
|
+
(s(), l("svg", Ee, [...m[0] || (m[0] = [
|
|
286
286
|
t("path", {
|
|
287
287
|
fill: "currentColor",
|
|
288
288
|
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"
|
|
@@ -290,23 +290,23 @@ const ge = /* @__PURE__ */ C(ke, [["render", he]]), me = { class: "sky-dialog-ov
|
|
|
290
290
|
])]))
|
|
291
291
|
], 8, Be),
|
|
292
292
|
t("div", {
|
|
293
|
-
class:
|
|
293
|
+
class: B(["sky-dialog-title", { "sky-dialog-title-with-subtitle": e.subtitle }])
|
|
294
294
|
}, [
|
|
295
|
-
W(
|
|
296
|
-
e.subtitle ? (s(),
|
|
295
|
+
W(g(e.title) + " ", 1),
|
|
296
|
+
e.subtitle ? (s(), l("span", Ie, g(e.subtitle), 1)) : u("", !0)
|
|
297
297
|
], 2)
|
|
298
298
|
]),
|
|
299
299
|
t("div", {
|
|
300
300
|
ref_key: "dialogPaper",
|
|
301
301
|
ref: p,
|
|
302
|
-
class:
|
|
303
|
-
onTouchstart:
|
|
302
|
+
class: B(["sky-dialog-paper", { "sky-dialog-paper-no-footer": !w.value }]),
|
|
303
|
+
onTouchstart: E,
|
|
304
304
|
onTouchend: I
|
|
305
305
|
}, [
|
|
306
|
-
y.value ? (s(),
|
|
306
|
+
y.value ? (s(), l("div", Ve)) : u("", !0),
|
|
307
307
|
k(n.$slots, "default", {}, void 0, !0)
|
|
308
308
|
], 34),
|
|
309
|
-
w.value ? (s(),
|
|
309
|
+
w.value ? (s(), l("div", Te, [
|
|
310
310
|
k(n.$slots, "buttons", {}, void 0, !0)
|
|
311
311
|
])) : u("", !0)
|
|
312
312
|
], 512)
|
|
@@ -314,7 +314,7 @@ const ge = /* @__PURE__ */ C(ke, [["render", he]]), me = { class: "sky-dialog-ov
|
|
|
314
314
|
], 4)) : u("", !0)
|
|
315
315
|
]));
|
|
316
316
|
}
|
|
317
|
-
}, G = /* @__PURE__ */
|
|
317
|
+
}, G = /* @__PURE__ */ _(Le, [["__scopeId", "data-v-857b5f70"]]), Jt = {
|
|
318
318
|
__name: "Dialog",
|
|
319
319
|
props: {
|
|
320
320
|
modelValue: {
|
|
@@ -350,9 +350,9 @@ const ge = /* @__PURE__ */ C(ke, [["render", he]]), me = { class: "sky-dialog-ov
|
|
|
350
350
|
}
|
|
351
351
|
},
|
|
352
352
|
emits: ["update:modelValue", "close", "save"],
|
|
353
|
-
setup(e, { emit:
|
|
354
|
-
const
|
|
355
|
-
get: () =>
|
|
353
|
+
setup(e, { emit: a }) {
|
|
354
|
+
const o = e, f = a, h = x({
|
|
355
|
+
get: () => o.modelValue,
|
|
356
356
|
set: (r) => f("update:modelValue", r)
|
|
357
357
|
}), c = $(!0);
|
|
358
358
|
z(() => {
|
|
@@ -362,7 +362,7 @@ const ge = /* @__PURE__ */ C(ke, [["render", he]]), me = { class: "sky-dialog-ov
|
|
|
362
362
|
c.value = !0;
|
|
363
363
|
}
|
|
364
364
|
});
|
|
365
|
-
const p =
|
|
365
|
+
const p = x(() => o.mode === "next" ? G : o.mode === "classic" ? J : c.value ? G : J);
|
|
366
366
|
return (r, y) => (s(), P(le(p.value), {
|
|
367
367
|
modelValue: h.value,
|
|
368
368
|
"onUpdate:modelValue": y[0] || (y[0] = (b) => h.value = b),
|
|
@@ -389,18 +389,18 @@ const ge = /* @__PURE__ */ C(ke, [["render", he]]), me = { class: "sky-dialog-ov
|
|
|
389
389
|
} : void 0
|
|
390
390
|
]), 1064, ["modelValue", "title", "subtitle", "z-index", "close-text", "close-on-esc", "has-buttons"]));
|
|
391
391
|
}
|
|
392
|
-
},
|
|
392
|
+
}, Me = { class: "sky-header-container" }, Pe = { class: "topmenubox" }, ze = { class: "header-left" }, De = ["title"], Oe = {
|
|
393
393
|
width: "15",
|
|
394
394
|
height: "15",
|
|
395
395
|
viewBox: "0 0 451.847 451.847",
|
|
396
396
|
style: { transform: "rotate(90deg)" }
|
|
397
|
-
},
|
|
397
|
+
}, Ae = { class: "notPadding" }, Ne = { class: "topmenu-title" }, Re = {
|
|
398
398
|
key: 0,
|
|
399
399
|
class: "title-dropdown"
|
|
400
|
-
},
|
|
400
|
+
}, Xe = { class: "title-dropdown-header" }, Ue = ["onClick"], Fe = { class: "pageName" }, He = { class: "pageVisit" }, We = {
|
|
401
401
|
key: 0,
|
|
402
402
|
class: "topmenu-description"
|
|
403
|
-
},
|
|
403
|
+
}, Ke = { class: "topmenubox-button" }, je = {
|
|
404
404
|
__name: "Header",
|
|
405
405
|
props: {
|
|
406
406
|
title: {
|
|
@@ -449,100 +449,100 @@ const ge = /* @__PURE__ */ C(ke, [["render", he]]), me = { class: "sky-dialog-ov
|
|
|
449
449
|
}
|
|
450
450
|
},
|
|
451
451
|
emits: ["back", "navigate"],
|
|
452
|
-
setup(e, { emit:
|
|
453
|
-
const
|
|
454
|
-
|
|
455
|
-
const f =
|
|
456
|
-
T() &&
|
|
457
|
-
|
|
458
|
-
|
|
452
|
+
setup(e, { emit: a }) {
|
|
453
|
+
const o = e;
|
|
454
|
+
ue(o.appId || ce());
|
|
455
|
+
const f = a, h = $(null), c = $(!1), p = $([]), r = $({});
|
|
456
|
+
T() && o.trackPageName && ye(
|
|
457
|
+
o.trackPageName,
|
|
458
|
+
o.trackPagePath || `/${o.trackPageName}`
|
|
459
459
|
);
|
|
460
460
|
const y = $(null);
|
|
461
|
-
T() && N("rocketMode").then(async (
|
|
462
|
-
y.value =
|
|
461
|
+
T() && N("rocketMode").then(async (d) => {
|
|
462
|
+
y.value = d, await N("fallbackRocketMode") === null && fe("fallbackRocketMode", d === !0 || d === "true" ? "true" : "false"), j(!0);
|
|
463
463
|
}), M(() => {
|
|
464
464
|
L();
|
|
465
|
-
}), T() &&
|
|
466
|
-
|
|
465
|
+
}), T() && ve("lang").then((d) => {
|
|
466
|
+
d != null && (r.value = d);
|
|
467
467
|
});
|
|
468
|
-
function b(
|
|
468
|
+
function b(d) {
|
|
469
469
|
try {
|
|
470
|
-
if (!
|
|
471
|
-
const v = typeof
|
|
470
|
+
if (!d) return;
|
|
471
|
+
const v = typeof d == "string" ? JSON.parse(d) : d;
|
|
472
472
|
v != null && v.pages && (p.value = Object.values(v.pages));
|
|
473
473
|
} catch {
|
|
474
474
|
}
|
|
475
475
|
}
|
|
476
|
-
b(localStorage.componentStats), T() && N("componentStats").then((
|
|
477
|
-
|
|
476
|
+
b(localStorage.componentStats), T() && N("componentStats").then((d) => {
|
|
477
|
+
d != null && (localStorage.setItem("componentStats", JSON.stringify(d)), b(d));
|
|
478
478
|
});
|
|
479
|
-
const w =
|
|
479
|
+
const w = x(() => [...o.dropdownItems.length ? o.dropdownItems : p.value].sort((v, V) => V.lastVisit - v.lastVisit)), S = () => {
|
|
480
480
|
w.value.length && (c.value = !c.value);
|
|
481
|
-
},
|
|
481
|
+
}, C = () => {
|
|
482
482
|
c.value = !1;
|
|
483
|
-
},
|
|
484
|
-
f("navigate",
|
|
485
|
-
}, I = (
|
|
486
|
-
if (!
|
|
487
|
-
const v = r.value[
|
|
483
|
+
}, E = (d) => {
|
|
484
|
+
f("navigate", d.path), T() && q(d.path), C();
|
|
485
|
+
}, I = (d) => {
|
|
486
|
+
if (!d) return "";
|
|
487
|
+
const v = r.value[d] || d;
|
|
488
488
|
return v.charAt(0).toUpperCase() + v.slice(1);
|
|
489
|
-
}, i = (
|
|
490
|
-
const V = Date.now() -
|
|
489
|
+
}, i = (d) => {
|
|
490
|
+
const V = Date.now() - d, O = Math.floor(V / 1e3), A = Math.floor(O / 60), R = Math.floor(A / 60), K = Math.floor(R / 24);
|
|
491
491
|
return K > 0 ? `${K}д тому` : R > 0 ? `${R}год тому` : A > 0 ? `${A}хв тому` : `${O}с тому`;
|
|
492
|
-
}, n = (
|
|
493
|
-
h.value && !h.value.contains(
|
|
492
|
+
}, n = (d) => {
|
|
493
|
+
h.value && !h.value.contains(d.target) && C();
|
|
494
494
|
};
|
|
495
495
|
z(() => {
|
|
496
496
|
document.addEventListener("click", n, !0);
|
|
497
497
|
}), M(() => {
|
|
498
498
|
document.removeEventListener("click", n, !0);
|
|
499
499
|
});
|
|
500
|
-
const
|
|
500
|
+
const m = x(() => o.backEvent || o.showBackButton && T()), L = () => {
|
|
501
501
|
if (y.value !== null) {
|
|
502
|
-
const
|
|
503
|
-
j(
|
|
502
|
+
const d = y.value === !0 || y.value === "true";
|
|
503
|
+
j(d);
|
|
504
504
|
}
|
|
505
|
-
}, D = () => w.value.find((
|
|
506
|
-
if (
|
|
507
|
-
return L(),
|
|
508
|
-
let
|
|
509
|
-
if (!
|
|
505
|
+
}, D = () => w.value.find((d) => d.name !== o.trackPageName && d.path), oe = async () => {
|
|
506
|
+
if (o.backEvent)
|
|
507
|
+
return L(), o.backEvent();
|
|
508
|
+
let d = D();
|
|
509
|
+
if (!d && T()) {
|
|
510
510
|
const v = await N("componentStats");
|
|
511
|
-
v && (b(v),
|
|
511
|
+
v && (b(v), d = D());
|
|
512
512
|
}
|
|
513
|
-
L(),
|
|
513
|
+
L(), d ? q(d.path) : ke();
|
|
514
514
|
};
|
|
515
|
-
return (
|
|
516
|
-
t("div",
|
|
517
|
-
t("div",
|
|
518
|
-
|
|
515
|
+
return (d, v) => (s(), l("header", Me, [
|
|
516
|
+
t("div", Pe, [
|
|
517
|
+
t("div", ze, [
|
|
518
|
+
m.value ? (s(), l("button", {
|
|
519
519
|
key: 0,
|
|
520
520
|
class: "btn-back",
|
|
521
521
|
onClick: oe,
|
|
522
522
|
title: e.backButtonTitle
|
|
523
523
|
}, [
|
|
524
|
-
(s(),
|
|
524
|
+
(s(), l("svg", Oe, [...v[0] || (v[0] = [
|
|
525
525
|
t("path", {
|
|
526
526
|
fill: "currentColor",
|
|
527
527
|
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"
|
|
528
528
|
}, null, -1)
|
|
529
529
|
])]))
|
|
530
|
-
], 8,
|
|
530
|
+
], 8, De)) : u("", !0),
|
|
531
531
|
t("div", {
|
|
532
532
|
ref_key: "dropdownRef",
|
|
533
533
|
ref: h,
|
|
534
534
|
class: "titleAndDesc"
|
|
535
535
|
}, [
|
|
536
536
|
t("button", {
|
|
537
|
-
class:
|
|
537
|
+
class: B(["title-dropdown-toggle", { "title-dropdown-toggle-active": w.value.length }]),
|
|
538
538
|
onClick: S
|
|
539
539
|
}, [
|
|
540
|
-
k(
|
|
541
|
-
t("h4",
|
|
542
|
-
t("span",
|
|
543
|
-
w.value.length ? (s(),
|
|
540
|
+
k(d.$slots, "title", {}, () => [
|
|
541
|
+
t("h4", Ae, [
|
|
542
|
+
t("span", Ne, g(e.title), 1),
|
|
543
|
+
w.value.length ? (s(), l("svg", {
|
|
544
544
|
key: 0,
|
|
545
|
-
class:
|
|
545
|
+
class: B(["arrow", { open: c.value }]),
|
|
546
546
|
width: "12",
|
|
547
547
|
height: "12",
|
|
548
548
|
viewBox: "0 0 451.847 451.847",
|
|
@@ -556,43 +556,43 @@ const ge = /* @__PURE__ */ C(ke, [["render", he]]), me = { class: "sky-dialog-ov
|
|
|
556
556
|
])
|
|
557
557
|
], !0)
|
|
558
558
|
], 2),
|
|
559
|
-
c.value && w.value.length ? (s(),
|
|
560
|
-
t("div",
|
|
559
|
+
c.value && w.value.length ? (s(), l("div", Re, [
|
|
560
|
+
t("div", Xe, g(e.dropdownTitle), 1),
|
|
561
561
|
v[2] || (v[2] = t("div", { class: "title-dropdown-divider" }, null, -1)),
|
|
562
|
-
(s(!0),
|
|
562
|
+
(s(!0), l(Z, null, ee(w.value, (V, O) => (s(), l("div", {
|
|
563
563
|
key: O,
|
|
564
564
|
class: "title-dropdown-item",
|
|
565
|
-
onClick: (A) =>
|
|
565
|
+
onClick: (A) => E(V)
|
|
566
566
|
}, [
|
|
567
|
-
t("p",
|
|
568
|
-
t("small",
|
|
569
|
-
], 8,
|
|
567
|
+
t("p", Fe, g(I(V.name)), 1),
|
|
568
|
+
t("small", He, " (" + g(e.visitLabel) + " " + g(i(V.lastVisit)) + ") ", 1)
|
|
569
|
+
], 8, Ue))), 128))
|
|
570
570
|
])) : u("", !0),
|
|
571
|
-
k(
|
|
572
|
-
e.subtitle ? (s(),
|
|
571
|
+
k(d.$slots, "subtitle", {}, () => [
|
|
572
|
+
e.subtitle ? (s(), l("p", We, g(e.subtitle), 1)) : u("", !0)
|
|
573
573
|
], !0)
|
|
574
574
|
], 512)
|
|
575
575
|
]),
|
|
576
|
-
t("div",
|
|
576
|
+
t("div", Ke, [
|
|
577
577
|
v[3] || (v[3] = t("div", null, null, -1)),
|
|
578
|
-
k(
|
|
578
|
+
k(d.$slots, "default", {}, void 0, !0),
|
|
579
579
|
v[4] || (v[4] = t("div", null, null, -1))
|
|
580
580
|
])
|
|
581
581
|
])
|
|
582
582
|
]));
|
|
583
583
|
}
|
|
584
|
-
},
|
|
584
|
+
}, Gt = /* @__PURE__ */ _(je, [["__scopeId", "data-v-8bf4384c"]]), qe = { class: "sky-modal-header" }, Je = ["title"], Ge = {
|
|
585
585
|
width: "15",
|
|
586
586
|
height: "15",
|
|
587
587
|
viewBox: "0 0 451.847 451.847",
|
|
588
588
|
style: { transform: "rotate(90deg)" }
|
|
589
|
-
},
|
|
589
|
+
}, Qe = { class: "sky-modal-title-wrapper" }, Ye = { class: "sky-modal-title" }, Ze = {
|
|
590
590
|
key: 0,
|
|
591
591
|
class: "sky-modal-subtitle"
|
|
592
|
-
},
|
|
592
|
+
}, et = { class: "sky-modal-body" }, tt = {
|
|
593
593
|
key: 0,
|
|
594
594
|
class: "sky-modal-footer"
|
|
595
|
-
},
|
|
595
|
+
}, st = {
|
|
596
596
|
__name: "Modal",
|
|
597
597
|
props: {
|
|
598
598
|
modelValue: {
|
|
@@ -629,19 +629,19 @@ const ge = /* @__PURE__ */ C(ke, [["render", he]]), me = { class: "sky-dialog-ov
|
|
|
629
629
|
}
|
|
630
630
|
},
|
|
631
631
|
emits: ["update:modelValue", "close"],
|
|
632
|
-
setup(e, { emit:
|
|
633
|
-
const
|
|
634
|
-
width:
|
|
635
|
-
height:
|
|
632
|
+
setup(e, { emit: a }) {
|
|
633
|
+
const o = e, f = a, h = x(() => ({
|
|
634
|
+
width: o.width,
|
|
635
|
+
height: o.height
|
|
636
636
|
})), c = () => {
|
|
637
637
|
f("update:modelValue", !1), f("close");
|
|
638
638
|
}, p = () => {
|
|
639
|
-
|
|
639
|
+
o.closeOnOverlay && c();
|
|
640
640
|
}, r = (y) => {
|
|
641
|
-
y.key === "Escape" &&
|
|
641
|
+
y.key === "Escape" && o.closeOnEsc && o.modelValue && c();
|
|
642
642
|
};
|
|
643
643
|
return F(
|
|
644
|
-
() =>
|
|
644
|
+
() => o.modelValue,
|
|
645
645
|
(y) => {
|
|
646
646
|
y ? document.body.style.overflow = "hidden" : document.body.style.overflow = "";
|
|
647
647
|
}
|
|
@@ -649,9 +649,9 @@ const ge = /* @__PURE__ */ C(ke, [["render", he]]), me = { class: "sky-dialog-ov
|
|
|
649
649
|
document.addEventListener("keydown", r);
|
|
650
650
|
}), M(() => {
|
|
651
651
|
document.removeEventListener("keydown", r), document.body.style.overflow = "";
|
|
652
|
-
}), (y, b) => (s(), P(
|
|
652
|
+
}), (y, b) => (s(), P(me, { to: "body" }, {
|
|
653
653
|
default: X(() => [
|
|
654
|
-
e.modelValue ? (s(),
|
|
654
|
+
e.modelValue ? (s(), l("div", {
|
|
655
655
|
key: 0,
|
|
656
656
|
class: "sky-modal-overlay",
|
|
657
657
|
onMousedown: ae(p, ["self"])
|
|
@@ -660,28 +660,28 @@ const ge = /* @__PURE__ */ C(ke, [["render", he]]), me = { class: "sky-dialog-ov
|
|
|
660
660
|
class: "sky-modal",
|
|
661
661
|
style: H(h.value)
|
|
662
662
|
}, [
|
|
663
|
-
t("div",
|
|
663
|
+
t("div", qe, [
|
|
664
664
|
t("button", {
|
|
665
665
|
class: "sky-modal-back",
|
|
666
666
|
onClick: c,
|
|
667
667
|
title: e.closeTitle
|
|
668
668
|
}, [
|
|
669
|
-
(s(),
|
|
669
|
+
(s(), l("svg", Ge, [...b[0] || (b[0] = [
|
|
670
670
|
t("path", {
|
|
671
671
|
fill: "currentColor",
|
|
672
672
|
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"
|
|
673
673
|
}, null, -1)
|
|
674
674
|
])]))
|
|
675
|
-
], 8,
|
|
676
|
-
t("div",
|
|
677
|
-
t("h4",
|
|
678
|
-
e.subtitle ? (s(),
|
|
675
|
+
], 8, Je),
|
|
676
|
+
t("div", Qe, [
|
|
677
|
+
t("h4", Ye, g(e.title), 1),
|
|
678
|
+
e.subtitle ? (s(), l("div", Ze, g(e.subtitle), 1)) : u("", !0)
|
|
679
679
|
])
|
|
680
680
|
]),
|
|
681
|
-
t("div",
|
|
681
|
+
t("div", et, [
|
|
682
682
|
k(y.$slots, "default", {}, void 0, !0)
|
|
683
683
|
]),
|
|
684
|
-
y.$slots.footer ? (s(),
|
|
684
|
+
y.$slots.footer ? (s(), l("div", tt, [
|
|
685
685
|
b[1] || (b[1] = t("div", null, null, -1)),
|
|
686
686
|
k(y.$slots, "footer", {}, void 0, !0),
|
|
687
687
|
b[2] || (b[2] = t("div", null, null, -1))
|
|
@@ -692,14 +692,14 @@ const ge = /* @__PURE__ */ C(ke, [["render", he]]), me = { class: "sky-dialog-ov
|
|
|
692
692
|
_: 3
|
|
693
693
|
}));
|
|
694
694
|
}
|
|
695
|
-
},
|
|
695
|
+
}, Qt = /* @__PURE__ */ _(st, [["__scopeId", "data-v-361413ac"]]), ot = {
|
|
696
696
|
key: 0,
|
|
697
697
|
class: "sky-alert-icon",
|
|
698
698
|
width: "16",
|
|
699
699
|
height: "16",
|
|
700
700
|
viewBox: "0 0 20 20",
|
|
701
701
|
fill: "none"
|
|
702
|
-
},
|
|
702
|
+
}, lt = { class: "sky-alert-body" }, nt = {
|
|
703
703
|
__name: "SkyAlert",
|
|
704
704
|
props: {
|
|
705
705
|
tone: {
|
|
@@ -710,24 +710,24 @@ const ge = /* @__PURE__ */ C(ke, [["render", he]]), me = { class: "sky-dialog-ov
|
|
|
710
710
|
showIcon: { type: Boolean, default: !0 }
|
|
711
711
|
},
|
|
712
712
|
setup(e) {
|
|
713
|
-
return (
|
|
714
|
-
class:
|
|
713
|
+
return (a, o) => (s(), l("div", {
|
|
714
|
+
class: B(["sky-alert", `sky-alert-${e.tone}`])
|
|
715
715
|
}, [
|
|
716
|
-
e.showIcon ? (s(),
|
|
716
|
+
e.showIcon ? (s(), l("svg", ot, [...o[0] || (o[0] = [
|
|
717
717
|
t("path", {
|
|
718
718
|
d: "M10 0C4.48 0 0 4.48 0 10s4.48 10 10 10 10-4.48 10-10S15.52 0 10 0zm1 15H9v-2h2v2zm0-4H9V5h2v6z",
|
|
719
719
|
fill: "currentColor"
|
|
720
720
|
}, null, -1)
|
|
721
721
|
])])) : u("", !0),
|
|
722
|
-
t("span",
|
|
723
|
-
k(
|
|
722
|
+
t("span", lt, [
|
|
723
|
+
k(a.$slots, "default", {}, void 0, !0)
|
|
724
724
|
])
|
|
725
725
|
], 2));
|
|
726
726
|
}
|
|
727
|
-
},
|
|
727
|
+
}, Yt = /* @__PURE__ */ _(nt, [["__scopeId", "data-v-ae1976b5"]]), at = {
|
|
728
728
|
key: 0,
|
|
729
729
|
class: "sky-badge-dot"
|
|
730
|
-
},
|
|
730
|
+
}, dt = {
|
|
731
731
|
__name: "SkyBadge",
|
|
732
732
|
props: {
|
|
733
733
|
tone: {
|
|
@@ -739,19 +739,19 @@ const ge = /* @__PURE__ */ C(ke, [["render", he]]), me = { class: "sky-dialog-ov
|
|
|
739
739
|
dot: { type: Boolean, default: !0 }
|
|
740
740
|
},
|
|
741
741
|
setup(e) {
|
|
742
|
-
return (
|
|
743
|
-
class:
|
|
742
|
+
return (a, o) => (s(), l("span", {
|
|
743
|
+
class: B(["sky-badge", `sky-badge-${e.tone}`])
|
|
744
744
|
}, [
|
|
745
|
-
e.dot ? (s(),
|
|
746
|
-
k(
|
|
747
|
-
W(
|
|
745
|
+
e.dot ? (s(), l("span", at)) : u("", !0),
|
|
746
|
+
k(a.$slots, "default", {}, () => [
|
|
747
|
+
W(g(e.label), 1)
|
|
748
748
|
], !0)
|
|
749
749
|
], 2));
|
|
750
750
|
}
|
|
751
|
-
},
|
|
751
|
+
}, Zt = /* @__PURE__ */ _(dt, [["__scopeId", "data-v-3c7aa57d"]]), it = ["disabled"], rt = {
|
|
752
752
|
key: 0,
|
|
753
753
|
class: "sky-btn-spinner"
|
|
754
|
-
},
|
|
754
|
+
}, ut = {
|
|
755
755
|
__name: "SkyButton",
|
|
756
756
|
props: {
|
|
757
757
|
variant: {
|
|
@@ -777,7 +777,7 @@ const ge = /* @__PURE__ */ C(ke, [["render", he]]), me = { class: "sky-dialog-ov
|
|
|
777
777
|
}
|
|
778
778
|
},
|
|
779
779
|
setup(e) {
|
|
780
|
-
return (
|
|
780
|
+
return (a, o) => (s(), l("button", de({
|
|
781
781
|
class: ["sky-btn", [
|
|
782
782
|
`sky-btn-${e.variant}`,
|
|
783
783
|
{
|
|
@@ -787,48 +787,48 @@ const ge = /* @__PURE__ */ C(ke, [["render", he]]), me = { class: "sky-dialog-ov
|
|
|
787
787
|
}
|
|
788
788
|
]],
|
|
789
789
|
disabled: e.disabled || e.loading
|
|
790
|
-
},
|
|
791
|
-
e.loading ? (s(),
|
|
792
|
-
k(
|
|
793
|
-
], 16,
|
|
790
|
+
}, a.$attrs), [
|
|
791
|
+
e.loading ? (s(), l("span", rt)) : u("", !0),
|
|
792
|
+
k(a.$slots, "default", {}, void 0, !0)
|
|
793
|
+
], 16, it));
|
|
794
794
|
}
|
|
795
|
-
},
|
|
795
|
+
}, es = /* @__PURE__ */ _(ut, [["__scopeId", "data-v-755083cb"]]), ct = { class: "sky-card" }, yt = {
|
|
796
796
|
key: 0,
|
|
797
797
|
class: "sky-card-ribbon"
|
|
798
|
-
},
|
|
798
|
+
}, ft = {
|
|
799
799
|
key: 1,
|
|
800
800
|
class: "sky-card-header"
|
|
801
|
-
},
|
|
801
|
+
}, vt = {
|
|
802
802
|
key: 2,
|
|
803
803
|
class: "sky-card-body"
|
|
804
|
-
},
|
|
804
|
+
}, kt = {
|
|
805
805
|
key: 3,
|
|
806
806
|
class: "sky-card-footer"
|
|
807
|
-
},
|
|
807
|
+
}, ht = {
|
|
808
808
|
__name: "SkyCard",
|
|
809
809
|
setup(e) {
|
|
810
|
-
return (
|
|
811
|
-
|
|
812
|
-
k(
|
|
810
|
+
return (a, o) => (s(), l("div", ct, [
|
|
811
|
+
a.$slots.ribbon ? (s(), l("div", yt, [
|
|
812
|
+
k(a.$slots, "ribbon", {}, void 0, !0)
|
|
813
813
|
])) : u("", !0),
|
|
814
|
-
|
|
815
|
-
k(
|
|
814
|
+
a.$slots.header ? (s(), l("div", ft, [
|
|
815
|
+
k(a.$slots, "header", {}, void 0, !0)
|
|
816
816
|
])) : u("", !0),
|
|
817
|
-
|
|
818
|
-
k(
|
|
817
|
+
a.$slots.default ? (s(), l("div", vt, [
|
|
818
|
+
k(a.$slots, "default", {}, void 0, !0)
|
|
819
819
|
])) : u("", !0),
|
|
820
|
-
|
|
821
|
-
k(
|
|
820
|
+
a.$slots.footer ? (s(), l("div", kt, [
|
|
821
|
+
k(a.$slots, "footer", {}, void 0, !0)
|
|
822
822
|
])) : u("", !0)
|
|
823
823
|
]));
|
|
824
824
|
}
|
|
825
|
-
},
|
|
825
|
+
}, ts = /* @__PURE__ */ _(ht, [["__scopeId", "data-v-6a2d353e"]]), gt = { class: "sky-card-header-content" }, mt = {
|
|
826
826
|
key: 0,
|
|
827
827
|
class: "sky-card-header-icon"
|
|
828
|
-
},
|
|
828
|
+
}, pt = ["src", "alt"], bt = { class: "sky-card-header-titles" }, wt = { class: "sky-card-header-title" }, $t = {
|
|
829
829
|
key: 0,
|
|
830
830
|
class: "sky-card-header-subtitle"
|
|
831
|
-
},
|
|
831
|
+
}, St = {
|
|
832
832
|
__name: "SkyCardHeader",
|
|
833
833
|
props: {
|
|
834
834
|
title: { type: String, required: !0 },
|
|
@@ -836,48 +836,78 @@ const ge = /* @__PURE__ */ C(ke, [["render", he]]), me = { class: "sky-dialog-ov
|
|
|
836
836
|
iconSrc: { type: String, default: "" }
|
|
837
837
|
},
|
|
838
838
|
setup(e) {
|
|
839
|
-
return (
|
|
840
|
-
|
|
841
|
-
k(
|
|
842
|
-
e.iconSrc ? (s(),
|
|
839
|
+
return (a, o) => (s(), l("div", gt, [
|
|
840
|
+
a.$slots.icon || e.iconSrc ? (s(), l("div", mt, [
|
|
841
|
+
k(a.$slots, "icon", {}, () => [
|
|
842
|
+
e.iconSrc ? (s(), l("img", {
|
|
843
843
|
key: 0,
|
|
844
844
|
src: e.iconSrc,
|
|
845
845
|
alt: e.title,
|
|
846
846
|
width: "48",
|
|
847
847
|
height: "48"
|
|
848
|
-
}, null, 8,
|
|
848
|
+
}, null, 8, pt)) : u("", !0)
|
|
849
849
|
], !0)
|
|
850
850
|
])) : u("", !0),
|
|
851
|
-
t("div",
|
|
852
|
-
t("h3",
|
|
853
|
-
e.subtitle ? (s(),
|
|
851
|
+
t("div", bt, [
|
|
852
|
+
t("h3", wt, g(e.title), 1),
|
|
853
|
+
e.subtitle ? (s(), l("p", $t, g(e.subtitle), 1)) : u("", !0)
|
|
854
854
|
])
|
|
855
855
|
]));
|
|
856
856
|
}
|
|
857
|
-
},
|
|
857
|
+
}, ss = /* @__PURE__ */ _(St, [["__scopeId", "data-v-ab38d71f"]]), _t = { class: "sky-card-row" }, xt = { class: "sky-card-row-label" }, Ct = { class: "sky-card-row-value" }, Bt = {
|
|
858
858
|
__name: "SkyCardRow",
|
|
859
859
|
props: {
|
|
860
860
|
label: { type: String, required: !0 },
|
|
861
861
|
value: { type: [String, Number], default: "" }
|
|
862
862
|
},
|
|
863
863
|
setup(e) {
|
|
864
|
-
return (
|
|
865
|
-
t("span",
|
|
866
|
-
k(
|
|
867
|
-
t("span", Ct,
|
|
864
|
+
return (a, o) => (s(), l("div", _t, [
|
|
865
|
+
t("span", xt, g(e.label), 1),
|
|
866
|
+
k(a.$slots, "default", {}, () => [
|
|
867
|
+
t("span", Ct, g(e.value), 1)
|
|
868
868
|
], !0)
|
|
869
869
|
]));
|
|
870
870
|
}
|
|
871
|
-
},
|
|
871
|
+
}, os = /* @__PURE__ */ _(Bt, [["__scopeId", "data-v-8bd0b0e7"]]), Et = { class: "sky-loader" }, It = {
|
|
872
|
+
key: 0,
|
|
873
|
+
class: "sky-loader-text"
|
|
874
|
+
}, Vt = {
|
|
875
|
+
version: "1.1",
|
|
876
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
877
|
+
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
878
|
+
x: "0px",
|
|
879
|
+
y: "0px",
|
|
880
|
+
width: "40px",
|
|
881
|
+
height: "50px",
|
|
882
|
+
viewBox: "0 0 44.96 56.12",
|
|
883
|
+
style: { "enable-background": "new 0 0 44.96 56.12", fill: "#ffffff", display: "block", margin: "auto", "margin-top": "39px" },
|
|
884
|
+
"xml:space": "preserve"
|
|
885
|
+
}, Tt = /* @__PURE__ */ ie({
|
|
886
|
+
__name: "SkyLoader",
|
|
887
|
+
props: {
|
|
888
|
+
text: {}
|
|
889
|
+
},
|
|
890
|
+
setup(e) {
|
|
891
|
+
return (a, o) => (s(), l("div", Et, [
|
|
892
|
+
e.text ? (s(), l("div", It, g(e.text), 1)) : u("", !0),
|
|
893
|
+
(s(), l("svg", Vt, [...o[0] || (o[0] = [
|
|
894
|
+
t("path", { d: "m0.84382,47.05821l28.6299,0c4.64652,0 4.86634,-4.02966 4.86634,-5.8895c0,-2.16243 -0.51403,-4.63853 -5.01514,-6.10722l-20.36828,-6.73085c-0.80824,-0.23248 -4.05472,-1.39119 -6.12097,-4.02597c-2.36046,-2.94475 -2.65467,-7.19581 -2.65467,-10.21806c0,-3.25103 0.36861,-7.19581 3.3175,-10.06307c2.65467,-2.6237 5.97893,-3.01855 8.48819,-3.01855l29.73235,0l0,8.12942l-26.41485,0c-1.32565,0 -2.87787,0.07749 -4.05472,1.23989c-1.25463,1.2362 -1.32565,3.16985 -1.32565,4.17726c0,2.40229 0.66282,4.71972 4.79194,6.1146l18.88707,6.26958c3.46291,1.1624 5.83014,2.3248 7.3756,3.86729c3.10106,3.09605 3.39528,7.89694 3.39528,10.44685c0,3.40602 -0.44301,7.20319 -2.58028,10.07045c-2.58366,3.48351 -5.83014,3.86729 -9.22203,3.86729l-31.72758,0l0,-8.12942z" }, null, -1)
|
|
895
|
+
])])),
|
|
896
|
+
o[1] || (o[1] = t("div", { class: "sky-loader-double-ring" }, [
|
|
897
|
+
t("div")
|
|
898
|
+
], -1))
|
|
899
|
+
]));
|
|
900
|
+
}
|
|
901
|
+
}), ls = /* @__PURE__ */ _(Tt, [["__scopeId", "data-v-934935ba"]]), Lt = ["disabled"], Mt = {
|
|
872
902
|
key: 0,
|
|
873
903
|
class: "sky-select-dropdown"
|
|
874
|
-
},
|
|
904
|
+
}, Pt = ["onClick", "onMouseenter"], zt = {
|
|
875
905
|
key: 0,
|
|
876
906
|
class: "sky-select-check",
|
|
877
907
|
viewBox: "0 0 16 16",
|
|
878
908
|
fill: "none",
|
|
879
909
|
"aria-hidden": "true"
|
|
880
|
-
},
|
|
910
|
+
}, Dt = {
|
|
881
911
|
__name: "SkySelect",
|
|
882
912
|
props: {
|
|
883
913
|
modelValue: {
|
|
@@ -901,27 +931,27 @@ const ge = /* @__PURE__ */ C(ke, [["render", he]]), me = { class: "sky-dialog-ov
|
|
|
901
931
|
}
|
|
902
932
|
},
|
|
903
933
|
emits: ["update:modelValue"],
|
|
904
|
-
setup(e, { emit:
|
|
905
|
-
const
|
|
906
|
-
() =>
|
|
934
|
+
setup(e, { emit: a }) {
|
|
935
|
+
const o = e, f = a, h = $(null), c = $(!1), p = $(-1), r = x(
|
|
936
|
+
() => o.options.map(
|
|
907
937
|
(i) => typeof i == "string" ? { label: i, value: i } : i
|
|
908
938
|
)
|
|
909
|
-
), y =
|
|
910
|
-
() => r.value.find((i) => i.value ===
|
|
939
|
+
), y = x(
|
|
940
|
+
() => r.value.find((i) => i.value === o.modelValue) ?? null
|
|
911
941
|
);
|
|
912
942
|
function b() {
|
|
913
|
-
|
|
943
|
+
o.disabled || (c.value ? S() : w());
|
|
914
944
|
}
|
|
915
945
|
function w() {
|
|
916
|
-
c.value = !0, p.value = r.value.findIndex((i) => i.value ===
|
|
946
|
+
c.value = !0, p.value = r.value.findIndex((i) => i.value === o.modelValue), document.addEventListener("mousedown", E);
|
|
917
947
|
}
|
|
918
948
|
function S() {
|
|
919
|
-
c.value = !1, document.removeEventListener("mousedown",
|
|
949
|
+
c.value = !1, document.removeEventListener("mousedown", E);
|
|
920
950
|
}
|
|
921
|
-
function
|
|
951
|
+
function C(i) {
|
|
922
952
|
f("update:modelValue", i.value), S();
|
|
923
953
|
}
|
|
924
|
-
function
|
|
954
|
+
function E(i) {
|
|
925
955
|
var n;
|
|
926
956
|
(n = h.value) != null && n.contains(i.target) || S();
|
|
927
957
|
}
|
|
@@ -930,14 +960,14 @@ const ge = /* @__PURE__ */ C(ke, [["render", he]]), me = { class: "sky-dialog-ov
|
|
|
930
960
|
(i.key === "Enter" || i.key === " ") && (i.preventDefault(), w());
|
|
931
961
|
return;
|
|
932
962
|
}
|
|
933
|
-
i.key === "Escape" ? S() : i.key === "ArrowDown" ? (i.preventDefault(), p.value = Math.min(p.value + 1, r.value.length - 1)) : i.key === "ArrowUp" ? (i.preventDefault(), p.value = Math.max(p.value - 1, 0)) : i.key === "Enter" && (i.preventDefault(), p.value >= 0 &&
|
|
963
|
+
i.key === "Escape" ? S() : i.key === "ArrowDown" ? (i.preventDefault(), p.value = Math.min(p.value + 1, r.value.length - 1)) : i.key === "ArrowUp" ? (i.preventDefault(), p.value = Math.max(p.value - 1, 0)) : i.key === "Enter" && (i.preventDefault(), p.value >= 0 && C(r.value[p.value]));
|
|
934
964
|
}
|
|
935
|
-
return
|
|
936
|
-
document.removeEventListener("mousedown",
|
|
937
|
-
}), (i, n) => (s(),
|
|
965
|
+
return re(() => {
|
|
966
|
+
document.removeEventListener("mousedown", E);
|
|
967
|
+
}), (i, n) => (s(), l("div", {
|
|
938
968
|
ref_key: "root",
|
|
939
969
|
ref: h,
|
|
940
|
-
class:
|
|
970
|
+
class: B(["sky-select", {
|
|
941
971
|
"sky-select-block": e.block,
|
|
942
972
|
"sky-select-open": c.value,
|
|
943
973
|
"sky-select-disabled": e.disabled
|
|
@@ -951,8 +981,8 @@ const ge = /* @__PURE__ */ C(ke, [["render", he]]), me = { class: "sky-dialog-ov
|
|
|
951
981
|
onKeydown: I
|
|
952
982
|
}, [
|
|
953
983
|
t("span", {
|
|
954
|
-
class:
|
|
955
|
-
},
|
|
984
|
+
class: B(["sky-select-value", { "sky-select-placeholder": y.value === null }])
|
|
985
|
+
}, g(y.value ? y.value.label : e.placeholder), 3),
|
|
956
986
|
n[0] || (n[0] = t("svg", {
|
|
957
987
|
class: "sky-select-chevron",
|
|
958
988
|
viewBox: "0 0 16 16",
|
|
@@ -967,19 +997,19 @@ const ge = /* @__PURE__ */ C(ke, [["render", he]]), me = { class: "sky-dialog-ov
|
|
|
967
997
|
"stroke-linejoin": "round"
|
|
968
998
|
})
|
|
969
999
|
], -1))
|
|
970
|
-
], 40,
|
|
971
|
-
c.value ? (s(),
|
|
972
|
-
(s(!0),
|
|
973
|
-
key:
|
|
974
|
-
class:
|
|
975
|
-
"sky-select-option-selected":
|
|
1000
|
+
], 40, Lt),
|
|
1001
|
+
c.value ? (s(), l("div", Mt, [
|
|
1002
|
+
(s(!0), l(Z, null, ee(r.value, (m, L) => (s(), l("div", {
|
|
1003
|
+
key: m.value,
|
|
1004
|
+
class: B(["sky-select-option", {
|
|
1005
|
+
"sky-select-option-selected": m.value === e.modelValue,
|
|
976
1006
|
"sky-select-option-focused": L === p.value
|
|
977
1007
|
}]),
|
|
978
|
-
onClick: (D) =>
|
|
1008
|
+
onClick: (D) => C(m),
|
|
979
1009
|
onMouseenter: (D) => p.value = L
|
|
980
1010
|
}, [
|
|
981
|
-
t("span", null, m
|
|
982
|
-
|
|
1011
|
+
t("span", null, g(m.label), 1),
|
|
1012
|
+
m.value === e.modelValue ? (s(), l("svg", zt, [...n[1] || (n[1] = [
|
|
983
1013
|
t("path", {
|
|
984
1014
|
d: "M3 8l4 4 6-6",
|
|
985
1015
|
stroke: "currentColor",
|
|
@@ -988,20 +1018,20 @@ const ge = /* @__PURE__ */ C(ke, [["render", he]]), me = { class: "sky-dialog-ov
|
|
|
988
1018
|
"stroke-linejoin": "round"
|
|
989
1019
|
}, null, -1)
|
|
990
1020
|
])])) : u("", !0)
|
|
991
|
-
], 42,
|
|
1021
|
+
], 42, Pt))), 128))
|
|
992
1022
|
])) : u("", !0)
|
|
993
1023
|
], 2));
|
|
994
1024
|
}
|
|
995
|
-
},
|
|
1025
|
+
}, ns = /* @__PURE__ */ _(Dt, [["__scopeId", "data-v-a5711987"]]), Ot = { class: "sky-tile-card" }, At = { class: "sky-tile-card-head" }, Nt = {
|
|
996
1026
|
key: 0,
|
|
997
1027
|
class: "sky-tile-card-icon"
|
|
998
|
-
},
|
|
1028
|
+
}, Rt = ["src", "alt"], Xt = { class: "sky-tile-card-titles" }, Ut = { class: "sky-tile-card-title" }, Ft = {
|
|
999
1029
|
key: 0,
|
|
1000
1030
|
class: "sky-tile-card-subtitle"
|
|
1001
|
-
},
|
|
1031
|
+
}, Ht = {
|
|
1002
1032
|
key: 0,
|
|
1003
1033
|
class: "sky-tile-card-body"
|
|
1004
|
-
},
|
|
1034
|
+
}, Wt = {
|
|
1005
1035
|
__name: "SkyTileCard",
|
|
1006
1036
|
props: {
|
|
1007
1037
|
title: { type: String, required: !0 },
|
|
@@ -1009,71 +1039,72 @@ const ge = /* @__PURE__ */ C(ke, [["render", he]]), me = { class: "sky-dialog-ov
|
|
|
1009
1039
|
imageUrl: { type: String, default: "" }
|
|
1010
1040
|
},
|
|
1011
1041
|
setup(e) {
|
|
1012
|
-
return (
|
|
1013
|
-
t("div",
|
|
1014
|
-
|
|
1015
|
-
k(
|
|
1016
|
-
e.imageUrl ? (s(),
|
|
1042
|
+
return (a, o) => (s(), l("div", Ot, [
|
|
1043
|
+
t("div", At, [
|
|
1044
|
+
a.$slots.icon || e.imageUrl ? (s(), l("div", Nt, [
|
|
1045
|
+
k(a.$slots, "icon", {}, () => [
|
|
1046
|
+
e.imageUrl ? (s(), l("img", {
|
|
1017
1047
|
key: 0,
|
|
1018
1048
|
src: e.imageUrl,
|
|
1019
1049
|
alt: e.title
|
|
1020
|
-
}, null, 8,
|
|
1050
|
+
}, null, 8, Rt)) : u("", !0)
|
|
1021
1051
|
], !0)
|
|
1022
1052
|
])) : u("", !0),
|
|
1023
|
-
t("div",
|
|
1024
|
-
t("h3",
|
|
1025
|
-
e.subtitle ? (s(),
|
|
1053
|
+
t("div", Xt, [
|
|
1054
|
+
t("h3", Ut, g(e.title), 1),
|
|
1055
|
+
e.subtitle ? (s(), l("p", Ft, g(e.subtitle), 1)) : u("", !0)
|
|
1026
1056
|
])
|
|
1027
1057
|
]),
|
|
1028
|
-
|
|
1029
|
-
k(
|
|
1058
|
+
a.$slots.default ? (s(), l("div", Ht, [
|
|
1059
|
+
k(a.$slots, "default", {}, void 0, !0)
|
|
1030
1060
|
])) : u("", !0)
|
|
1031
1061
|
]));
|
|
1032
1062
|
}
|
|
1033
|
-
},
|
|
1063
|
+
}, as = /* @__PURE__ */ _(Wt, [["__scopeId", "data-v-6ac519f3"]]);
|
|
1034
1064
|
export {
|
|
1035
|
-
|
|
1036
|
-
|
|
1065
|
+
me as BaseTeleport,
|
|
1066
|
+
Jt as Dialog,
|
|
1037
1067
|
J as DialogModal,
|
|
1038
1068
|
G as DialogNext,
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1069
|
+
Gt as Header,
|
|
1070
|
+
Qt as Modal,
|
|
1071
|
+
Yt as SkyAlert,
|
|
1072
|
+
Zt as SkyBadge,
|
|
1073
|
+
es as SkyButton,
|
|
1074
|
+
ts as SkyCard,
|
|
1075
|
+
ss as SkyCardHeader,
|
|
1076
|
+
os as SkyCardRow,
|
|
1077
|
+
ls as SkyLoader,
|
|
1078
|
+
ns as SkySelect,
|
|
1079
|
+
as as SkyTileCard,
|
|
1080
|
+
rs as SkyserviceAPI,
|
|
1081
|
+
ke as exit,
|
|
1082
|
+
us as getBack,
|
|
1083
|
+
cs as getCompany,
|
|
1084
|
+
ys as getLang,
|
|
1054
1085
|
N as getLocalStorageData,
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1086
|
+
fs as getProductCategories,
|
|
1087
|
+
ce as getSenderId,
|
|
1088
|
+
vs as getStoreData,
|
|
1089
|
+
ks as getToken,
|
|
1090
|
+
hs as getUser,
|
|
1091
|
+
ve as getWindowData,
|
|
1061
1092
|
se as isAndroidWebview,
|
|
1062
|
-
|
|
1063
|
-
|
|
1093
|
+
gs as isCefWebview,
|
|
1094
|
+
ms as isInIframe,
|
|
1064
1095
|
T as isInsideIframe,
|
|
1065
1096
|
te as isIosWebview,
|
|
1066
|
-
|
|
1097
|
+
ps as isWebview,
|
|
1067
1098
|
q as navigate,
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1099
|
+
bs as notify,
|
|
1100
|
+
ws as notifyError,
|
|
1101
|
+
$s as notifyWarn,
|
|
1102
|
+
Ss as onMessage,
|
|
1103
|
+
_s as openCrispChat,
|
|
1104
|
+
xs as openExternalLink,
|
|
1105
|
+
fe as setLocalStorage,
|
|
1075
1106
|
j as setRocketMode,
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1107
|
+
ue as setSenderId,
|
|
1108
|
+
ye as trackVisit,
|
|
1109
|
+
Cs as webviewCheck
|
|
1079
1110
|
};
|