@skyservice-developers/vue-dev-kit 2.3.1 → 2.4.0
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 +34 -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 +326 -311
- 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 C, watch as F, nextTick as Y, onMounted as z, onUnmounted as M, createElementBlock as l, normalizeStyle as H, createElementVNode as t, normalizeClass as x, createTextVNode as W, toDisplayString as g, createCommentVNode as c, resolveDynamicComponent as le, createSlots as ne, withCtx as X, Fragment as Z, renderList as ee, withModifiers as ae, mergeProps as de, defineComponent as ie, createStaticVNode as re, onBeforeUnmount as ce } from "vue";
|
|
2
|
+
import { p as te, l as se, A as ue, f as ye, o as T, B as fe, c as N, y as ve, z as j, k as ke, r as q, e as he } from "./api-AhLH5w3p.js";
|
|
3
|
+
import { S as rs, g as cs, a as us, 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 Cs, C as Bs } 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
|
+
}, ge = {
|
|
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 me(e, a, o, f, h, u) {
|
|
19
|
+
return s(), P(U, { to: o.to }, [
|
|
20
20
|
k(e.$slots, "default")
|
|
21
21
|
], 8, ["to"]);
|
|
22
22
|
}
|
|
23
|
-
const
|
|
23
|
+
const pe = /* @__PURE__ */ _(ge, [["render", me]]), be = { class: "sky-dialog-overlay" }, we = {
|
|
24
24
|
key: 0,
|
|
25
25
|
class: "sky-dialog-subtitle"
|
|
26
|
-
},
|
|
26
|
+
}, $e = ["title"], Se = {
|
|
27
27
|
key: 0,
|
|
28
28
|
class: "sky-dialog-swipe-area"
|
|
29
|
-
},
|
|
29
|
+
}, _e = {
|
|
30
30
|
key: 0,
|
|
31
31
|
class: "sky-dialog-footer"
|
|
32
|
-
},
|
|
32
|
+
}, Ce = {
|
|
33
33
|
__name: "DialogModal",
|
|
34
34
|
props: {
|
|
35
35
|
modelValue: {
|
|
@@ -62,35 +62,35 @@ 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, u = $(null), p = $(null), r = $(0), y = C(() => {
|
|
67
67
|
try {
|
|
68
68
|
return te();
|
|
69
69
|
} catch {
|
|
70
70
|
return !1;
|
|
71
71
|
}
|
|
72
|
-
}), b =
|
|
72
|
+
}), b = C(() => {
|
|
73
73
|
try {
|
|
74
74
|
return se();
|
|
75
75
|
} catch {
|
|
76
76
|
return !1;
|
|
77
77
|
}
|
|
78
|
-
}), w =
|
|
78
|
+
}), w = C(() => f.hasButtons !== null ? f.hasButtons : !!o.buttons), S = () => {
|
|
79
79
|
h("update:modelValue", !1), h("close");
|
|
80
80
|
}, B = (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;
|
|
86
86
|
}, i = () => {
|
|
87
|
-
if (!(!b.value || !
|
|
87
|
+
if (!(!b.value || !u.value))
|
|
88
88
|
try {
|
|
89
89
|
if (typeof Android < "u" && Android.getDisplayCutoutTop) {
|
|
90
90
|
const n = Android.getDisplayCutoutTop();
|
|
91
91
|
if (n && window.devicePixelRatio > 1) {
|
|
92
|
-
const
|
|
93
|
-
|
|
92
|
+
const m = n / window.devicePixelRatio;
|
|
93
|
+
u.value.style.paddingTop = m + "px";
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
96
|
} catch {
|
|
@@ -107,29 +107,29 @@ const ge = /* @__PURE__ */ C(ke, [["render", he]]), me = { class: "sky-dialog-ov
|
|
|
107
107
|
document.addEventListener("keydown", B), window.addEventListener("resize", i);
|
|
108
108
|
}), M(() => {
|
|
109
109
|
document.removeEventListener("keydown", B), window.removeEventListener("resize", i), document.body.style.overflow = "";
|
|
110
|
-
}), (n,
|
|
111
|
-
e.modelValue ? (s(),
|
|
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", be, [
|
|
117
117
|
t("div", {
|
|
118
118
|
ref_key: "dialogContent",
|
|
119
|
-
ref:
|
|
119
|
+
ref: u,
|
|
120
120
|
class: "sky-dialog-content"
|
|
121
121
|
}, [
|
|
122
122
|
t("div", {
|
|
123
|
-
class:
|
|
123
|
+
class: x(["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", we, g(e.subtitle), 1)) : c("", !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,41 +152,41 @@ 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, $e),
|
|
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: x(["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", Se)) : c("", !0),
|
|
165
165
|
k(n.$slots, "default", {}, void 0, !0)
|
|
166
166
|
], 34),
|
|
167
|
-
w.value ? (s(),
|
|
167
|
+
w.value ? (s(), l("div", _e, [
|
|
168
168
|
k(n.$slots, "buttons", {}, void 0, !0)
|
|
169
|
-
])) :
|
|
169
|
+
])) : c("", !0)
|
|
170
170
|
], 512)
|
|
171
171
|
])
|
|
172
|
-
], 4)) :
|
|
172
|
+
], 4)) : c("", !0)
|
|
173
173
|
]));
|
|
174
174
|
}
|
|
175
|
-
}, J = /* @__PURE__ */
|
|
175
|
+
}, J = /* @__PURE__ */ _(Ce, [["__scopeId", "data-v-62f59776"]]), Be = { class: "sky-dialog-overlay" }, xe = { class: "sky-dialog-header" }, Ee = ["title"], Ie = {
|
|
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
|
+
}, Ve = {
|
|
181
181
|
key: 0,
|
|
182
182
|
class: "sky-dialog-subtitle"
|
|
183
|
-
},
|
|
183
|
+
}, Te = {
|
|
184
184
|
key: 0,
|
|
185
185
|
class: "sky-dialog-swipe-area"
|
|
186
|
-
},
|
|
186
|
+
}, Le = {
|
|
187
187
|
key: 0,
|
|
188
188
|
class: "sky-dialog-footer"
|
|
189
|
-
},
|
|
189
|
+
}, Me = {
|
|
190
190
|
__name: "DialogNext",
|
|
191
191
|
props: {
|
|
192
192
|
modelValue: {
|
|
@@ -219,35 +219,35 @@ 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, u = $(null), p = $(null), r = $(0), y = C(() => {
|
|
224
224
|
try {
|
|
225
225
|
return te();
|
|
226
226
|
} catch {
|
|
227
227
|
return !1;
|
|
228
228
|
}
|
|
229
|
-
}), b =
|
|
229
|
+
}), b = C(() => {
|
|
230
230
|
try {
|
|
231
231
|
return se();
|
|
232
232
|
} catch {
|
|
233
233
|
return !1;
|
|
234
234
|
}
|
|
235
|
-
}), w =
|
|
235
|
+
}), w = C(() => f.hasButtons !== null ? f.hasButtons : !!o.buttons), S = () => {
|
|
236
236
|
h("update:modelValue", !1), h("close");
|
|
237
237
|
}, B = (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;
|
|
243
243
|
}, i = () => {
|
|
244
|
-
if (!(!b.value || !
|
|
244
|
+
if (!(!b.value || !u.value))
|
|
245
245
|
try {
|
|
246
246
|
if (typeof Android < "u" && Android.getDisplayCutoutTop) {
|
|
247
247
|
const n = Android.getDisplayCutoutTop();
|
|
248
248
|
if (n && window.devicePixelRatio > 1) {
|
|
249
|
-
const
|
|
250
|
-
|
|
249
|
+
const m = n / window.devicePixelRatio;
|
|
250
|
+
u.value.style.paddingTop = m + "px";
|
|
251
251
|
}
|
|
252
252
|
}
|
|
253
253
|
} catch {
|
|
@@ -264,57 +264,57 @@ const ge = /* @__PURE__ */ C(ke, [["render", he]]), me = { class: "sky-dialog-ov
|
|
|
264
264
|
document.addEventListener("keydown", B), window.addEventListener("resize", i);
|
|
265
265
|
}), M(() => {
|
|
266
266
|
document.removeEventListener("keydown", B), window.removeEventListener("resize", i), document.body.style.overflow = "";
|
|
267
|
-
}), (n,
|
|
268
|
-
e.modelValue ? (s(),
|
|
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", Be, [
|
|
274
274
|
t("div", {
|
|
275
275
|
ref_key: "dialogContent",
|
|
276
|
-
ref:
|
|
276
|
+
ref: u,
|
|
277
277
|
class: "sky-dialog-content"
|
|
278
278
|
}, [
|
|
279
|
-
t("div",
|
|
279
|
+
t("div", xe, [
|
|
280
280
|
t("button", {
|
|
281
281
|
class: "sky-dialog-back",
|
|
282
282
|
title: e.closeText,
|
|
283
283
|
onClick: S
|
|
284
284
|
}, [
|
|
285
|
-
(s(),
|
|
285
|
+
(s(), l("svg", Ie, [...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"
|
|
289
289
|
}, null, -1)
|
|
290
290
|
])]))
|
|
291
|
-
], 8,
|
|
291
|
+
], 8, Ee),
|
|
292
292
|
t("div", {
|
|
293
|
-
class:
|
|
293
|
+
class: x(["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", Ve, g(e.subtitle), 1)) : c("", !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: x(["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", Te)) : c("", !0),
|
|
307
307
|
k(n.$slots, "default", {}, void 0, !0)
|
|
308
308
|
], 34),
|
|
309
|
-
w.value ? (s(),
|
|
309
|
+
w.value ? (s(), l("div", Le, [
|
|
310
310
|
k(n.$slots, "buttons", {}, void 0, !0)
|
|
311
|
-
])) :
|
|
311
|
+
])) : c("", !0)
|
|
312
312
|
], 512)
|
|
313
313
|
])
|
|
314
|
-
], 4)) :
|
|
314
|
+
], 4)) : c("", !0)
|
|
315
315
|
]));
|
|
316
316
|
}
|
|
317
|
-
}, G = /* @__PURE__ */
|
|
317
|
+
}, G = /* @__PURE__ */ _(Me, [["__scopeId", "data-v-857b5f70"]]), Jt = {
|
|
318
318
|
__name: "Dialog",
|
|
319
319
|
props: {
|
|
320
320
|
modelValue: {
|
|
@@ -350,19 +350,19 @@ 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 = C({
|
|
355
|
+
get: () => o.modelValue,
|
|
356
356
|
set: (r) => f("update:modelValue", r)
|
|
357
|
-
}),
|
|
357
|
+
}), u = $(!0);
|
|
358
358
|
z(() => {
|
|
359
359
|
try {
|
|
360
|
-
new URLSearchParams(window.location.search).get("rocketMode") === "false" ?
|
|
360
|
+
new URLSearchParams(window.location.search).get("rocketMode") === "false" ? u.value = !1 : u.value = !0;
|
|
361
361
|
} catch {
|
|
362
|
-
|
|
362
|
+
u.value = !0;
|
|
363
363
|
}
|
|
364
364
|
});
|
|
365
|
-
const p =
|
|
365
|
+
const p = C(() => o.mode === "next" ? G : o.mode === "classic" ? J : u.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
|
+
}, Pe = { class: "sky-header-container" }, ze = { class: "topmenubox" }, De = { class: "header-left" }, Oe = ["title"], Ae = {
|
|
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
|
+
}, Ne = { class: "notPadding" }, Re = { class: "topmenu-title" }, Xe = {
|
|
398
398
|
key: 0,
|
|
399
399
|
class: "title-dropdown"
|
|
400
|
-
},
|
|
400
|
+
}, Ue = { class: "title-dropdown-header" }, Fe = ["onClick"], He = { class: "pageName" }, We = { class: "pageVisit" }, Ke = {
|
|
401
401
|
key: 0,
|
|
402
402
|
class: "topmenu-description"
|
|
403
|
-
},
|
|
403
|
+
}, je = { class: "topmenubox-button" }, qe = {
|
|
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 || ye());
|
|
455
|
+
const f = a, h = $(null), u = $(!1), p = $([]), r = $({});
|
|
456
|
+
T() && o.trackPageName && fe(
|
|
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 && ve("fallbackRocketMode", d === !0 || d === "true" ? "true" : "false"), j(!0);
|
|
463
463
|
}), M(() => {
|
|
464
464
|
L();
|
|
465
|
-
}), T() &&
|
|
466
|
-
|
|
465
|
+
}), T() && ke("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 =
|
|
480
|
-
w.value.length && (
|
|
479
|
+
const w = C(() => [...o.dropdownItems.length ? o.dropdownItems : p.value].sort((v, V) => V.lastVisit - v.lastVisit)), S = () => {
|
|
480
|
+
w.value.length && (u.value = !u.value);
|
|
481
481
|
}, B = () => {
|
|
482
|
-
|
|
483
|
-
},
|
|
484
|
-
f("navigate",
|
|
485
|
-
}, I = (
|
|
486
|
-
if (!
|
|
487
|
-
const v = r.value[
|
|
482
|
+
u.value = !1;
|
|
483
|
+
}, E = (d) => {
|
|
484
|
+
f("navigate", d.path), T() && q(d.path), B();
|
|
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) && B();
|
|
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 = C(() => 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) : he();
|
|
514
514
|
};
|
|
515
|
-
return (
|
|
516
|
-
t("div",
|
|
517
|
-
t("div",
|
|
518
|
-
|
|
515
|
+
return (d, v) => (s(), l("header", Pe, [
|
|
516
|
+
t("div", ze, [
|
|
517
|
+
t("div", De, [
|
|
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", Ae, [...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, Oe)) : c("", !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: x(["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", Ne, [
|
|
542
|
+
t("span", Re, g(e.title), 1),
|
|
543
|
+
w.value.length ? (s(), l("svg", {
|
|
544
544
|
key: 0,
|
|
545
|
-
class:
|
|
545
|
+
class: x(["arrow", { open: u.value }]),
|
|
546
546
|
width: "12",
|
|
547
547
|
height: "12",
|
|
548
548
|
viewBox: "0 0 451.847 451.847",
|
|
@@ -552,47 +552,47 @@ const ge = /* @__PURE__ */ C(ke, [["render", he]]), me = { class: "sky-dialog-ov
|
|
|
552
552
|
fill: "currentColor",
|
|
553
553
|
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"
|
|
554
554
|
}, null, -1)
|
|
555
|
-
])], 2)) :
|
|
555
|
+
])], 2)) : c("", !0)
|
|
556
556
|
])
|
|
557
557
|
], !0)
|
|
558
558
|
], 2),
|
|
559
|
-
|
|
560
|
-
t("div",
|
|
559
|
+
u.value && w.value.length ? (s(), l("div", Xe, [
|
|
560
|
+
t("div", Ue, 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,
|
|
570
|
-
])) :
|
|
571
|
-
k(
|
|
572
|
-
e.subtitle ? (s(),
|
|
567
|
+
t("p", He, g(I(V.name)), 1),
|
|
568
|
+
t("small", We, " (" + g(e.visitLabel) + " " + g(i(V.lastVisit)) + ") ", 1)
|
|
569
|
+
], 8, Fe))), 128))
|
|
570
|
+
])) : c("", !0),
|
|
571
|
+
k(d.$slots, "subtitle", {}, () => [
|
|
572
|
+
e.subtitle ? (s(), l("p", Ke, g(e.subtitle), 1)) : c("", !0)
|
|
573
573
|
], !0)
|
|
574
574
|
], 512)
|
|
575
575
|
]),
|
|
576
|
-
t("div",
|
|
576
|
+
t("div", je, [
|
|
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__ */ _(qe, [["__scopeId", "data-v-8bf4384c"]]), Je = { class: "sky-modal-header" }, Ge = ["title"], Qe = {
|
|
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
|
+
}, Ye = { class: "sky-modal-title-wrapper" }, Ze = { class: "sky-modal-title" }, et = {
|
|
590
590
|
key: 0,
|
|
591
591
|
class: "sky-modal-subtitle"
|
|
592
|
-
},
|
|
592
|
+
}, tt = { class: "sky-modal-body" }, st = {
|
|
593
593
|
key: 0,
|
|
594
594
|
class: "sky-modal-footer"
|
|
595
|
-
},
|
|
595
|
+
}, ot = {
|
|
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:
|
|
636
|
-
})),
|
|
632
|
+
setup(e, { emit: a }) {
|
|
633
|
+
const o = e, f = a, h = C(() => ({
|
|
634
|
+
width: o.width,
|
|
635
|
+
height: o.height
|
|
636
|
+
})), u = () => {
|
|
637
637
|
f("update:modelValue", !1), f("close");
|
|
638
638
|
}, p = () => {
|
|
639
|
-
|
|
639
|
+
o.closeOnOverlay && u();
|
|
640
640
|
}, r = (y) => {
|
|
641
|
-
y.key === "Escape" &&
|
|
641
|
+
y.key === "Escape" && o.closeOnEsc && o.modelValue && u();
|
|
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(pe, { 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,46 +660,46 @@ 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", Je, [
|
|
664
664
|
t("button", {
|
|
665
665
|
class: "sky-modal-back",
|
|
666
|
-
onClick:
|
|
666
|
+
onClick: u,
|
|
667
667
|
title: e.closeTitle
|
|
668
668
|
}, [
|
|
669
|
-
(s(),
|
|
669
|
+
(s(), l("svg", Qe, [...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, Ge),
|
|
676
|
+
t("div", Ye, [
|
|
677
|
+
t("h4", Ze, g(e.title), 1),
|
|
678
|
+
e.subtitle ? (s(), l("div", et, g(e.subtitle), 1)) : c("", !0)
|
|
679
679
|
])
|
|
680
680
|
]),
|
|
681
|
-
t("div",
|
|
681
|
+
t("div", tt, [
|
|
682
682
|
k(y.$slots, "default", {}, void 0, !0)
|
|
683
683
|
]),
|
|
684
|
-
y.$slots.footer ? (s(),
|
|
684
|
+
y.$slots.footer ? (s(), l("div", st, [
|
|
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))
|
|
688
|
-
])) :
|
|
688
|
+
])) : c("", !0)
|
|
689
689
|
], 4)
|
|
690
|
-
], 32)) :
|
|
690
|
+
], 32)) : c("", !0)
|
|
691
691
|
]),
|
|
692
692
|
_: 3
|
|
693
693
|
}));
|
|
694
694
|
}
|
|
695
|
-
},
|
|
695
|
+
}, Qt = /* @__PURE__ */ _(ot, [["__scopeId", "data-v-361413ac"]]), lt = {
|
|
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
|
+
}, nt = { class: "sky-alert-body" }, at = {
|
|
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: x(["sky-alert", `sky-alert-${e.tone}`])
|
|
715
715
|
}, [
|
|
716
|
-
e.showIcon ? (s(),
|
|
716
|
+
e.showIcon ? (s(), l("svg", lt, [...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
|
-
])])) :
|
|
722
|
-
t("span",
|
|
723
|
-
k(
|
|
721
|
+
])])) : c("", !0),
|
|
722
|
+
t("span", nt, [
|
|
723
|
+
k(a.$slots, "default", {}, void 0, !0)
|
|
724
724
|
])
|
|
725
725
|
], 2));
|
|
726
726
|
}
|
|
727
|
-
},
|
|
727
|
+
}, Yt = /* @__PURE__ */ _(at, [["__scopeId", "data-v-ae1976b5"]]), dt = {
|
|
728
728
|
key: 0,
|
|
729
729
|
class: "sky-badge-dot"
|
|
730
|
-
},
|
|
730
|
+
}, it = {
|
|
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: x(["sky-badge", `sky-badge-${e.tone}`])
|
|
744
744
|
}, [
|
|
745
|
-
e.dot ? (s(),
|
|
746
|
-
k(
|
|
747
|
-
W(
|
|
745
|
+
e.dot ? (s(), l("span", dt)) : c("", !0),
|
|
746
|
+
k(a.$slots, "default", {}, () => [
|
|
747
|
+
W(g(e.label), 1)
|
|
748
748
|
], !0)
|
|
749
749
|
], 2));
|
|
750
750
|
}
|
|
751
|
-
},
|
|
751
|
+
}, Zt = /* @__PURE__ */ _(it, [["__scopeId", "data-v-3c7aa57d"]]), rt = ["disabled"], ct = {
|
|
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", ct)) : c("", !0),
|
|
792
|
+
k(a.$slots, "default", {}, void 0, !0)
|
|
793
|
+
], 16, rt));
|
|
794
794
|
}
|
|
795
|
-
},
|
|
795
|
+
}, es = /* @__PURE__ */ _(ut, [["__scopeId", "data-v-755083cb"]]), yt = { class: "sky-card" }, ft = {
|
|
796
796
|
key: 0,
|
|
797
797
|
class: "sky-card-ribbon"
|
|
798
|
-
},
|
|
798
|
+
}, vt = {
|
|
799
799
|
key: 1,
|
|
800
800
|
class: "sky-card-header"
|
|
801
|
-
},
|
|
801
|
+
}, kt = {
|
|
802
802
|
key: 2,
|
|
803
803
|
class: "sky-card-body"
|
|
804
|
-
},
|
|
804
|
+
}, ht = {
|
|
805
805
|
key: 3,
|
|
806
806
|
class: "sky-card-footer"
|
|
807
|
-
},
|
|
807
|
+
}, gt = {
|
|
808
808
|
__name: "SkyCard",
|
|
809
809
|
setup(e) {
|
|
810
|
-
return (
|
|
811
|
-
|
|
812
|
-
k(
|
|
813
|
-
])) :
|
|
814
|
-
|
|
815
|
-
k(
|
|
816
|
-
])) :
|
|
817
|
-
|
|
818
|
-
k(
|
|
819
|
-
])) :
|
|
820
|
-
|
|
821
|
-
k(
|
|
822
|
-
])) :
|
|
810
|
+
return (a, o) => (s(), l("div", yt, [
|
|
811
|
+
a.$slots.ribbon ? (s(), l("div", ft, [
|
|
812
|
+
k(a.$slots, "ribbon", {}, void 0, !0)
|
|
813
|
+
])) : c("", !0),
|
|
814
|
+
a.$slots.header ? (s(), l("div", vt, [
|
|
815
|
+
k(a.$slots, "header", {}, void 0, !0)
|
|
816
|
+
])) : c("", !0),
|
|
817
|
+
a.$slots.default ? (s(), l("div", kt, [
|
|
818
|
+
k(a.$slots, "default", {}, void 0, !0)
|
|
819
|
+
])) : c("", !0),
|
|
820
|
+
a.$slots.footer ? (s(), l("div", ht, [
|
|
821
|
+
k(a.$slots, "footer", {}, void 0, !0)
|
|
822
|
+
])) : c("", !0)
|
|
823
823
|
]));
|
|
824
824
|
}
|
|
825
|
-
},
|
|
825
|
+
}, ts = /* @__PURE__ */ _(gt, [["__scopeId", "data-v-6a2d353e"]]), mt = { class: "sky-card-header-content" }, pt = {
|
|
826
826
|
key: 0,
|
|
827
827
|
class: "sky-card-header-icon"
|
|
828
|
-
},
|
|
828
|
+
}, bt = ["src", "alt"], wt = { class: "sky-card-header-titles" }, $t = { class: "sky-card-header-title" }, St = {
|
|
829
829
|
key: 0,
|
|
830
830
|
class: "sky-card-header-subtitle"
|
|
831
|
-
},
|
|
831
|
+
}, _t = {
|
|
832
832
|
__name: "SkyCardHeader",
|
|
833
833
|
props: {
|
|
834
834
|
title: { type: String, required: !0 },
|
|
@@ -836,48 +836,62 @@ 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", mt, [
|
|
840
|
+
a.$slots.icon || e.iconSrc ? (s(), l("div", pt, [
|
|
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, bt)) : c("", !0)
|
|
849
849
|
], !0)
|
|
850
|
-
])) :
|
|
851
|
-
t("div",
|
|
852
|
-
t("h3",
|
|
853
|
-
e.subtitle ? (s(),
|
|
850
|
+
])) : c("", !0),
|
|
851
|
+
t("div", wt, [
|
|
852
|
+
t("h3", $t, g(e.title), 1),
|
|
853
|
+
e.subtitle ? (s(), l("p", St, g(e.subtitle), 1)) : c("", !0)
|
|
854
854
|
])
|
|
855
855
|
]));
|
|
856
856
|
}
|
|
857
|
-
},
|
|
857
|
+
}, ss = /* @__PURE__ */ _(_t, [["__scopeId", "data-v-ab38d71f"]]), Ct = { class: "sky-card-row" }, Bt = { class: "sky-card-row-label" }, xt = { class: "sky-card-row-value" }, Et = {
|
|
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",
|
|
864
|
+
return (a, o) => (s(), l("div", Ct, [
|
|
865
|
+
t("span", Bt, g(e.label), 1),
|
|
866
|
+
k(a.$slots, "default", {}, () => [
|
|
867
|
+
t("span", xt, g(e.value), 1)
|
|
868
868
|
], !0)
|
|
869
869
|
]));
|
|
870
870
|
}
|
|
871
|
-
},
|
|
871
|
+
}, os = /* @__PURE__ */ _(Et, [["__scopeId", "data-v-8bd0b0e7"]]), It = { class: "sky-loader" }, Vt = {
|
|
872
|
+
key: 0,
|
|
873
|
+
class: "sky-loader-text"
|
|
874
|
+
}, Tt = /* @__PURE__ */ ie({
|
|
875
|
+
__name: "SkyLoader",
|
|
876
|
+
props: {
|
|
877
|
+
text: {}
|
|
878
|
+
},
|
|
879
|
+
setup(e) {
|
|
880
|
+
return (a, o) => (s(), l("div", It, [
|
|
881
|
+
e.text ? (s(), l("div", Vt, g(e.text), 1)) : c("", !0),
|
|
882
|
+
o[0] || (o[0] = re('<svg class="sky-loader-letter" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 44.96 56.12" aria-hidden="true" data-v-bc1a3ce1><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.61146l18.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" data-v-bc1a3ce1></path></svg><div class="sky-loader-rings" data-v-bc1a3ce1><div class="sky-loader-ring sky-loader-ring--outer" data-v-bc1a3ce1></div><div class="sky-loader-ring sky-loader-ring--inner" data-v-bc1a3ce1></div></div>', 2))
|
|
883
|
+
]));
|
|
884
|
+
}
|
|
885
|
+
}), ls = /* @__PURE__ */ _(Tt, [["__scopeId", "data-v-bc1a3ce1"]]), Lt = ["disabled"], Mt = {
|
|
872
886
|
key: 0,
|
|
873
887
|
class: "sky-select-dropdown"
|
|
874
|
-
},
|
|
888
|
+
}, Pt = ["onClick", "onMouseenter"], zt = {
|
|
875
889
|
key: 0,
|
|
876
890
|
class: "sky-select-check",
|
|
877
891
|
viewBox: "0 0 16 16",
|
|
878
892
|
fill: "none",
|
|
879
893
|
"aria-hidden": "true"
|
|
880
|
-
},
|
|
894
|
+
}, Dt = {
|
|
881
895
|
__name: "SkySelect",
|
|
882
896
|
props: {
|
|
883
897
|
modelValue: {
|
|
@@ -901,45 +915,45 @@ const ge = /* @__PURE__ */ C(ke, [["render", he]]), me = { class: "sky-dialog-ov
|
|
|
901
915
|
}
|
|
902
916
|
},
|
|
903
917
|
emits: ["update:modelValue"],
|
|
904
|
-
setup(e, { emit:
|
|
905
|
-
const
|
|
906
|
-
() =>
|
|
918
|
+
setup(e, { emit: a }) {
|
|
919
|
+
const o = e, f = a, h = $(null), u = $(!1), p = $(-1), r = C(
|
|
920
|
+
() => o.options.map(
|
|
907
921
|
(i) => typeof i == "string" ? { label: i, value: i } : i
|
|
908
922
|
)
|
|
909
|
-
), y =
|
|
910
|
-
() => r.value.find((i) => i.value ===
|
|
923
|
+
), y = C(
|
|
924
|
+
() => r.value.find((i) => i.value === o.modelValue) ?? null
|
|
911
925
|
);
|
|
912
926
|
function b() {
|
|
913
|
-
|
|
927
|
+
o.disabled || (u.value ? S() : w());
|
|
914
928
|
}
|
|
915
929
|
function w() {
|
|
916
|
-
|
|
930
|
+
u.value = !0, p.value = r.value.findIndex((i) => i.value === o.modelValue), document.addEventListener("mousedown", E);
|
|
917
931
|
}
|
|
918
932
|
function S() {
|
|
919
|
-
|
|
933
|
+
u.value = !1, document.removeEventListener("mousedown", E);
|
|
920
934
|
}
|
|
921
935
|
function B(i) {
|
|
922
936
|
f("update:modelValue", i.value), S();
|
|
923
937
|
}
|
|
924
|
-
function
|
|
938
|
+
function E(i) {
|
|
925
939
|
var n;
|
|
926
940
|
(n = h.value) != null && n.contains(i.target) || S();
|
|
927
941
|
}
|
|
928
942
|
function I(i) {
|
|
929
|
-
if (!
|
|
943
|
+
if (!u.value) {
|
|
930
944
|
(i.key === "Enter" || i.key === " ") && (i.preventDefault(), w());
|
|
931
945
|
return;
|
|
932
946
|
}
|
|
933
947
|
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 && B(r.value[p.value]));
|
|
934
948
|
}
|
|
935
|
-
return
|
|
936
|
-
document.removeEventListener("mousedown",
|
|
937
|
-
}), (i, n) => (s(),
|
|
949
|
+
return ce(() => {
|
|
950
|
+
document.removeEventListener("mousedown", E);
|
|
951
|
+
}), (i, n) => (s(), l("div", {
|
|
938
952
|
ref_key: "root",
|
|
939
953
|
ref: h,
|
|
940
|
-
class:
|
|
954
|
+
class: x(["sky-select", {
|
|
941
955
|
"sky-select-block": e.block,
|
|
942
|
-
"sky-select-open":
|
|
956
|
+
"sky-select-open": u.value,
|
|
943
957
|
"sky-select-disabled": e.disabled
|
|
944
958
|
}])
|
|
945
959
|
}, [
|
|
@@ -951,8 +965,8 @@ const ge = /* @__PURE__ */ C(ke, [["render", he]]), me = { class: "sky-dialog-ov
|
|
|
951
965
|
onKeydown: I
|
|
952
966
|
}, [
|
|
953
967
|
t("span", {
|
|
954
|
-
class:
|
|
955
|
-
},
|
|
968
|
+
class: x(["sky-select-value", { "sky-select-placeholder": y.value === null }])
|
|
969
|
+
}, g(y.value ? y.value.label : e.placeholder), 3),
|
|
956
970
|
n[0] || (n[0] = t("svg", {
|
|
957
971
|
class: "sky-select-chevron",
|
|
958
972
|
viewBox: "0 0 16 16",
|
|
@@ -967,19 +981,19 @@ const ge = /* @__PURE__ */ C(ke, [["render", he]]), me = { class: "sky-dialog-ov
|
|
|
967
981
|
"stroke-linejoin": "round"
|
|
968
982
|
})
|
|
969
983
|
], -1))
|
|
970
|
-
], 40,
|
|
971
|
-
|
|
972
|
-
(s(!0),
|
|
973
|
-
key:
|
|
974
|
-
class:
|
|
975
|
-
"sky-select-option-selected":
|
|
984
|
+
], 40, Lt),
|
|
985
|
+
u.value ? (s(), l("div", Mt, [
|
|
986
|
+
(s(!0), l(Z, null, ee(r.value, (m, L) => (s(), l("div", {
|
|
987
|
+
key: m.value,
|
|
988
|
+
class: x(["sky-select-option", {
|
|
989
|
+
"sky-select-option-selected": m.value === e.modelValue,
|
|
976
990
|
"sky-select-option-focused": L === p.value
|
|
977
991
|
}]),
|
|
978
|
-
onClick: (D) => B(
|
|
992
|
+
onClick: (D) => B(m),
|
|
979
993
|
onMouseenter: (D) => p.value = L
|
|
980
994
|
}, [
|
|
981
|
-
t("span", null, m
|
|
982
|
-
|
|
995
|
+
t("span", null, g(m.label), 1),
|
|
996
|
+
m.value === e.modelValue ? (s(), l("svg", zt, [...n[1] || (n[1] = [
|
|
983
997
|
t("path", {
|
|
984
998
|
d: "M3 8l4 4 6-6",
|
|
985
999
|
stroke: "currentColor",
|
|
@@ -987,21 +1001,21 @@ const ge = /* @__PURE__ */ C(ke, [["render", he]]), me = { class: "sky-dialog-ov
|
|
|
987
1001
|
"stroke-linecap": "round",
|
|
988
1002
|
"stroke-linejoin": "round"
|
|
989
1003
|
}, null, -1)
|
|
990
|
-
])])) :
|
|
991
|
-
], 42,
|
|
992
|
-
])) :
|
|
1004
|
+
])])) : c("", !0)
|
|
1005
|
+
], 42, Pt))), 128))
|
|
1006
|
+
])) : c("", !0)
|
|
993
1007
|
], 2));
|
|
994
1008
|
}
|
|
995
|
-
},
|
|
1009
|
+
}, ns = /* @__PURE__ */ _(Dt, [["__scopeId", "data-v-a5711987"]]), Ot = { class: "sky-tile-card" }, At = { class: "sky-tile-card-head" }, Nt = {
|
|
996
1010
|
key: 0,
|
|
997
1011
|
class: "sky-tile-card-icon"
|
|
998
|
-
},
|
|
1012
|
+
}, Rt = ["src", "alt"], Xt = { class: "sky-tile-card-titles" }, Ut = { class: "sky-tile-card-title" }, Ft = {
|
|
999
1013
|
key: 0,
|
|
1000
1014
|
class: "sky-tile-card-subtitle"
|
|
1001
|
-
},
|
|
1015
|
+
}, Ht = {
|
|
1002
1016
|
key: 0,
|
|
1003
1017
|
class: "sky-tile-card-body"
|
|
1004
|
-
},
|
|
1018
|
+
}, Wt = {
|
|
1005
1019
|
__name: "SkyTileCard",
|
|
1006
1020
|
props: {
|
|
1007
1021
|
title: { type: String, required: !0 },
|
|
@@ -1009,71 +1023,72 @@ const ge = /* @__PURE__ */ C(ke, [["render", he]]), me = { class: "sky-dialog-ov
|
|
|
1009
1023
|
imageUrl: { type: String, default: "" }
|
|
1010
1024
|
},
|
|
1011
1025
|
setup(e) {
|
|
1012
|
-
return (
|
|
1013
|
-
t("div",
|
|
1014
|
-
|
|
1015
|
-
k(
|
|
1016
|
-
e.imageUrl ? (s(),
|
|
1026
|
+
return (a, o) => (s(), l("div", Ot, [
|
|
1027
|
+
t("div", At, [
|
|
1028
|
+
a.$slots.icon || e.imageUrl ? (s(), l("div", Nt, [
|
|
1029
|
+
k(a.$slots, "icon", {}, () => [
|
|
1030
|
+
e.imageUrl ? (s(), l("img", {
|
|
1017
1031
|
key: 0,
|
|
1018
1032
|
src: e.imageUrl,
|
|
1019
1033
|
alt: e.title
|
|
1020
|
-
}, null, 8,
|
|
1034
|
+
}, null, 8, Rt)) : c("", !0)
|
|
1021
1035
|
], !0)
|
|
1022
|
-
])) :
|
|
1023
|
-
t("div",
|
|
1024
|
-
t("h3",
|
|
1025
|
-
e.subtitle ? (s(),
|
|
1036
|
+
])) : c("", !0),
|
|
1037
|
+
t("div", Xt, [
|
|
1038
|
+
t("h3", Ut, g(e.title), 1),
|
|
1039
|
+
e.subtitle ? (s(), l("p", Ft, g(e.subtitle), 1)) : c("", !0)
|
|
1026
1040
|
])
|
|
1027
1041
|
]),
|
|
1028
|
-
|
|
1029
|
-
k(
|
|
1030
|
-
])) :
|
|
1042
|
+
a.$slots.default ? (s(), l("div", Ht, [
|
|
1043
|
+
k(a.$slots, "default", {}, void 0, !0)
|
|
1044
|
+
])) : c("", !0)
|
|
1031
1045
|
]));
|
|
1032
1046
|
}
|
|
1033
|
-
},
|
|
1047
|
+
}, as = /* @__PURE__ */ _(Wt, [["__scopeId", "data-v-6ac519f3"]]);
|
|
1034
1048
|
export {
|
|
1035
|
-
|
|
1036
|
-
|
|
1049
|
+
pe as BaseTeleport,
|
|
1050
|
+
Jt as Dialog,
|
|
1037
1051
|
J as DialogModal,
|
|
1038
1052
|
G as DialogNext,
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1053
|
+
Gt as Header,
|
|
1054
|
+
Qt as Modal,
|
|
1055
|
+
Yt as SkyAlert,
|
|
1056
|
+
Zt as SkyBadge,
|
|
1057
|
+
es as SkyButton,
|
|
1058
|
+
ts as SkyCard,
|
|
1059
|
+
ss as SkyCardHeader,
|
|
1060
|
+
os as SkyCardRow,
|
|
1061
|
+
ls as SkyLoader,
|
|
1062
|
+
ns as SkySelect,
|
|
1063
|
+
as as SkyTileCard,
|
|
1064
|
+
rs as SkyserviceAPI,
|
|
1065
|
+
he as exit,
|
|
1066
|
+
cs as getBack,
|
|
1067
|
+
us as getCompany,
|
|
1068
|
+
ys as getLang,
|
|
1054
1069
|
N as getLocalStorageData,
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1070
|
+
fs as getProductCategories,
|
|
1071
|
+
ye as getSenderId,
|
|
1072
|
+
vs as getStoreData,
|
|
1073
|
+
ks as getToken,
|
|
1074
|
+
hs as getUser,
|
|
1075
|
+
ke as getWindowData,
|
|
1061
1076
|
se as isAndroidWebview,
|
|
1062
|
-
|
|
1063
|
-
|
|
1077
|
+
gs as isCefWebview,
|
|
1078
|
+
ms as isInIframe,
|
|
1064
1079
|
T as isInsideIframe,
|
|
1065
1080
|
te as isIosWebview,
|
|
1066
|
-
|
|
1081
|
+
ps as isWebview,
|
|
1067
1082
|
q as navigate,
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1083
|
+
bs as notify,
|
|
1084
|
+
ws as notifyError,
|
|
1085
|
+
$s as notifyWarn,
|
|
1086
|
+
Ss as onMessage,
|
|
1087
|
+
_s as openCrispChat,
|
|
1088
|
+
Cs as openExternalLink,
|
|
1089
|
+
ve as setLocalStorage,
|
|
1075
1090
|
j as setRocketMode,
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1091
|
+
ue as setSenderId,
|
|
1092
|
+
fe as trackVisit,
|
|
1093
|
+
Bs as webviewCheck
|
|
1079
1094
|
};
|