@namba_one/ui-kit-2 1.0.4 → 1.0.5
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/fonts/Onest-Bold.ttf +0 -0
- package/dist/fonts/Onest-Bold.woff +0 -0
- package/dist/fonts/Onest-Bold.woff2 +0 -0
- package/dist/fonts/Onest-Medium.ttf +0 -0
- package/dist/fonts/Onest-Medium.woff +0 -0
- package/dist/fonts/Onest-Medium.woff2 +0 -0
- package/dist/fonts/Onest-Regular.ttf +0 -0
- package/dist/fonts/Onest-Regular.woff +0 -0
- package/dist/fonts/Onest-Regular.woff2 +0 -0
- package/dist/fonts/Onest-SemiBold.ttf +0 -0
- package/dist/fonts/Onest-SemiBold.woff +0 -0
- package/dist/fonts/Onest-SemiBold.woff2 +0 -0
- package/dist/fonts/SFPro-Regular.woff +0 -0
- package/dist/fonts/SFPro-Regular.woff2 +0 -0
- package/dist/fonts/SFProDisplay-Bold.ttf +0 -0
- package/dist/fonts/SFProDisplay-Bold.woff +0 -0
- package/dist/fonts/SFProDisplay-Bold.woff2 +0 -0
- package/dist/fonts/SFProDisplay-Medium.ttf +0 -0
- package/dist/fonts/SFProDisplay-Medium.woff +0 -0
- package/dist/fonts/SFProDisplay-Medium.woff2 +0 -0
- package/dist/fonts/SFProDisplay-Regular.ttf +0 -0
- package/dist/fonts/SFProDisplay-Regular.woff +0 -0
- package/dist/fonts/SFProDisplay-Regular.woff2 +0 -0
- package/dist/fonts/SFProDisplay-Semibold.ttf +0 -0
- package/dist/fonts/SFProDisplay-Semibold.woff +0 -0
- package/dist/fonts/SFProDisplay-Semibold.woff2 +0 -0
- package/dist/fonts/SFProText-Bold.woff +0 -0
- package/dist/fonts/SFProText-Bold.woff2 +0 -0
- package/dist/fonts/SFProText-Medium.woff +0 -0
- package/dist/fonts/SFProText-Medium.woff2 +0 -0
- package/dist/fonts/SFProText-Regular.woff +0 -0
- package/dist/fonts/SFProText-Regular.woff2 +0 -0
- package/dist/fonts/SFProText-Semibold.woff +0 -0
- package/dist/fonts/SFProText-Semibold.woff2 +0 -0
- package/dist/fonts/iconfont.ttf +0 -0
- package/dist/fonts/iconfont.woff +0 -0
- package/dist/fonts/iconfont.woff2 +0 -0
- package/dist/index.d.ts +39 -114
- package/dist/index.es.js +448 -1068
- package/dist/index.umd.js +1 -1
- package/dist/namba-one-uikit.css +1 -1
- package/dist/scss/mixins.scss +55 -5
- package/dist/scss/spaces.scss +28 -13
- package/dist/scss/typography.scss +31 -142
- package/dist/sprite/sprite.svg +373 -0
- package/package.json +10 -2
- package/dist/fonts/SFMono-Bold.ttf +0 -0
- package/dist/fonts/SFMono-Bold.woff +0 -0
- package/dist/fonts/SFMono-Bold.woff2 +0 -0
- package/dist/fonts/SFMono-Heavy.ttf +0 -0
- package/dist/fonts/SFMono-Heavy.woff +0 -0
- package/dist/fonts/SFMono-Heavy.woff2 +0 -0
- package/dist/fonts/SFMono-Light.ttf +0 -0
- package/dist/fonts/SFMono-Light.woff +0 -0
- package/dist/fonts/SFMono-Light.woff2 +0 -0
- package/dist/fonts/SFMono-Medium.ttf +0 -0
- package/dist/fonts/SFMono-Medium.woff +0 -0
- package/dist/fonts/SFMono-Medium.woff2 +0 -0
- package/dist/fonts/SFMono-Regular.ttf +0 -0
- package/dist/fonts/SFMono-Regular.woff +0 -0
- package/dist/fonts/SFMono-Regular.woff2 +0 -0
- package/dist/fonts/SFMono-Semibold.ttf +0 -0
- package/dist/fonts/SFMono-Semibold.woff +0 -0
- package/dist/fonts/SFMono-Semibold.woff2 +0 -0
- package/dist/fonts/SFPro.ttf +0 -0
- package/dist/fonts/SFPro.woff +0 -0
- package/dist/fonts/SFPro.woff2 +0 -0
- package/dist/fonts/SFProDisplay-Black.ttf +0 -0
- package/dist/fonts/SFProDisplay-Black.woff +0 -0
- package/dist/fonts/SFProDisplay-Black.woff2 +0 -0
- package/dist/fonts/SFProDisplay-Heavy.ttf +0 -0
- package/dist/fonts/SFProDisplay-Heavy.woff +0 -0
- package/dist/fonts/SFProDisplay-Heavy.woff2 +0 -0
- package/dist/fonts/SFProDisplay-Light.ttf +0 -0
- package/dist/fonts/SFProDisplay-Light.woff +0 -0
- package/dist/fonts/SFProDisplay-Light.woff2 +0 -0
- package/dist/fonts/SFProDisplay-Thin.ttf +0 -0
- package/dist/fonts/SFProDisplay-Thin.woff +0 -0
- package/dist/fonts/SFProDisplay-Thin.woff2 +0 -0
- package/dist/fonts/SFProDisplay-Ultralight.ttf +0 -0
- package/dist/fonts/SFProDisplay-Ultralight.woff +0 -0
- package/dist/fonts/SFProDisplay-Ultralight.woff2 +0 -0
- package/src/shims/svg-component-global.d.ts +0 -26
- package/src/shims/svg-component.d.ts +0 -26
package/dist/index.es.js
CHANGED
|
@@ -1,712 +1,201 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { defineComponent as
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
let n;
|
|
8
|
-
const l = (o.ownerDocument || document).defaultView;
|
|
9
|
-
if (l && l.getComputedStyle)
|
|
10
|
-
return t = t.replace(/([A-Z])/g, "-$1").toLowerCase(), l.getComputedStyle(o, null).getPropertyValue(t);
|
|
11
|
-
if (o.currentStyle)
|
|
12
|
-
return t = t.replace(/\-(\w)/g, function(c, i) {
|
|
13
|
-
return i.toUpperCase();
|
|
14
|
-
}), n = o.currentStyle[t], /^\d+(em|pt|%|ex)?$/i.test(n) ? function(c) {
|
|
15
|
-
const i = o.style.left, h = o.runtimeStyle.left;
|
|
16
|
-
return o.runtimeStyle.left = o.currentStyle.left, o.style.left = c || "0", c = o.style.pixelLeft + "px", o.style.left = i, o.runtimeStyle.left = h, c;
|
|
17
|
-
}(n) : n;
|
|
18
|
-
}
|
|
19
|
-
function Le(e, t) {
|
|
20
|
-
switch (e) {
|
|
21
|
-
case "button":
|
|
22
|
-
return {
|
|
23
|
-
role: "button",
|
|
24
|
-
type: "button"
|
|
25
|
-
};
|
|
26
|
-
case "router-link":
|
|
27
|
-
return {
|
|
28
|
-
to: t ?? {}
|
|
29
|
-
};
|
|
30
|
-
case "a":
|
|
31
|
-
return {
|
|
32
|
-
href: t,
|
|
33
|
-
...!((t == null ? void 0 : t.indexOf("tel:")) !== -1 || (t == null ? void 0 : t.indexOf("mailto:")) !== -1) && {
|
|
34
|
-
rel: "noopener noreferrer",
|
|
35
|
-
target: "_blank"
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
default:
|
|
39
|
-
return {};
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
const ue = /* @__PURE__ */ B({
|
|
43
|
-
__name: "ButtonBase",
|
|
1
|
+
var se = Object.defineProperty;
|
|
2
|
+
var oe = (s, e, t) => e in s ? se(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t;
|
|
3
|
+
var N = (s, e, t) => oe(s, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
+
import { defineComponent as T, useCssModule as P, computed as $, createElementBlock as w, openBlock as g, normalizeStyle as y, normalizeClass as u, createElementVNode as h, renderSlot as X, ref as m, watch as Y, nextTick as z, createCommentVNode as ae, withDirectives as le, unref as E, mergeProps as j, vShow as ne, createBlock as re, resolveDynamicComponent as ie, withCtx as O, h as ce, Transition as ue, resolveComponent as de, createVNode as F, createTextVNode as _e, toDisplayString as fe, inject as Z, TransitionGroup as me, Fragment as he, renderList as ve, provide as ye } from "vue";
|
|
5
|
+
const B = (s) => `${Number(s / 12).toFixed(3)}rem`, ge = /* @__PURE__ */ T({
|
|
6
|
+
__name: "Loader",
|
|
44
7
|
props: {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
type: { default: "button" },
|
|
48
|
-
isLoading: { type: Boolean },
|
|
49
|
-
isDisabled: { type: Boolean }
|
|
8
|
+
view: {},
|
|
9
|
+
size: {}
|
|
50
10
|
},
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
type: e.type
|
|
56
|
-
},
|
|
57
|
-
...Le(e.tag, e.href),
|
|
58
|
-
disabled: e.isLoading || e.isDisabled
|
|
11
|
+
setup(s) {
|
|
12
|
+
const e = P(), t = $(() => [e.root, e[`view_${s.view}`]]), a = $(() => ({
|
|
13
|
+
width: B(Number(s.size)),
|
|
14
|
+
height: B(Number(s.size))
|
|
59
15
|
}));
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
16
|
+
return (r, i) => (g(), w("div", {
|
|
17
|
+
class: u(t.value),
|
|
18
|
+
style: y(a.value)
|
|
19
|
+
}, i[0] || (i[0] = [
|
|
20
|
+
h("svg", {
|
|
21
|
+
width: "48",
|
|
22
|
+
height: "48",
|
|
23
|
+
viewBox: "0 0 48 48",
|
|
24
|
+
fill: "none",
|
|
25
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
26
|
+
}, [
|
|
27
|
+
h("path", { d: "M47.7766 27.2672C47.1217 32.0334 45.0494 36.4927 41.8287 40.0666C38.6081 43.6405 34.3876 46.164 29.715 47.3096C25.0424 48.4552 20.1334 48.1701 15.6248 46.4913C11.1163 44.8124 7.21636 41.8173 4.4311 37.8945C1.64583 33.9718 0.103788 29.3025 0.00505465 24.4925C-0.0936792 19.6826 1.25545 14.9539 3.8774 10.9202C6.49934 6.88648 10.2731 3.73385 14.7089 1.87138C19.1448 0.00891139 24.038 -0.477421 28.7537 0.475486L28.0406 4.00416C24.0323 3.19419 19.8731 3.60757 16.1026 5.19067C12.3321 6.77377 9.12444 9.45351 6.89579 12.8822C4.66713 16.3109 3.52037 20.3302 3.6043 24.4187C3.68822 28.5071 4.99895 32.476 7.36643 35.8104C9.73391 39.1447 13.0488 41.6905 16.8811 43.1176C20.7134 44.5446 24.8861 44.787 28.8578 43.8132C32.8295 42.8394 36.4168 40.6945 39.1544 37.6566C41.892 34.6188 43.6534 30.8284 44.2101 26.7771L47.7766 27.2672Z" })
|
|
28
|
+
], -1)
|
|
29
|
+
]), 6));
|
|
70
30
|
}
|
|
71
|
-
}), Ce = {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
}
|
|
93
|
-
|
|
31
|
+
}), we = "Loader__root_6a680", $e = "Loader__rotate360_01915", Te = "Loader__view_default_209d3", be = "Loader__view_critical_2dd0d", pe = "Loader__view_surface_6ebf8", Ce = {
|
|
32
|
+
root: we,
|
|
33
|
+
rotate360: $e,
|
|
34
|
+
view_default: Te,
|
|
35
|
+
view_critical: be,
|
|
36
|
+
view_surface: pe
|
|
37
|
+
}, p = (s, e) => {
|
|
38
|
+
const t = s.__vccOpts || s;
|
|
39
|
+
for (const [a, r] of e)
|
|
40
|
+
t[a] = r;
|
|
41
|
+
return t;
|
|
42
|
+
}, Se = {
|
|
43
|
+
$style: Ce
|
|
44
|
+
}, Fe = /* @__PURE__ */ p(ge, [["__cssModules", Se]]), xe = /* @__PURE__ */ T({
|
|
45
|
+
__name: "SkeletonWrapper",
|
|
46
|
+
setup(s) {
|
|
47
|
+
return (e, t) => (g(), w("div", {
|
|
48
|
+
class: u(e.$style.root)
|
|
49
|
+
}, [
|
|
50
|
+
X(e.$slots, "default")
|
|
51
|
+
], 2));
|
|
52
|
+
}
|
|
53
|
+
}), Ie = "SkeletonWrapper__root_e7206", Me = "SkeletonWrapper__pulse_fef1d", Ee = {
|
|
54
|
+
root: Ie,
|
|
55
|
+
pulse: Me
|
|
56
|
+
}, Be = {
|
|
57
|
+
$style: Ee
|
|
58
|
+
}, Le = /* @__PURE__ */ p(xe, [["__cssModules", Be]]), ke = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20id='_Слой_1'%20data-name='Слой_1'%20xmlns='http://www.w3.org/2000/svg'%20version='1.1'%20viewBox='0%200%2024%2024'%3e%3c!--%20Generator:%20Adobe%20Illustrator%2029.2.1,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%202.1.0%20Build%20116)%20--%3e%3cdefs%3e%3cstyle%3e%20.st0,%20.st1%20{%20fill:%20hsla(204,%2017%25,%2066%25,%201);%20}%20.st1%20{%20fill-rule:%20evenodd;%20}%20%3c/style%3e%3c/defs%3e%3cpath%20class='st1'%20d='M21.2,7c-.1-.9-.3-1.7-.8-2.4-.3-.4-.6-.8-1-1-.7-.5-1.5-.7-2.4-.8-.9,0-2,0-3.4,0h-3.1c-1.4,0-2.5,0-3.4,0-.9,0-1.7.3-2.4.8-.4.3-.8.6-1,1-.5.7-.7,1.5-.8,2.4,0,.9,0,2,0,3.4h0v3h0c0,1.4,0,2.6,0,3.5,0,.9.3,1.7.8,2.4.3.4.6.8,1,1,.7.5,1.5.7,2.4.8.9,0,2,0,3.4,0h3.1c1.4,0,2.5,0,3.4,0,.9-.1,1.7-.3,2.4-.8.4-.3.8-.6,1-1,.5-.7.7-1.5.8-2.4,0-.9,0-2,0-3.4h0v-3h0c0-1.4,0-2.6,0-3.5ZM19.4,16.8c0,.8-.2,1.2-.5,1.5-.2.2-.4.5-.7.7-.3.2-.8.4-1.5.5-.8,0-1.8,0-3.3,0h-3c-1.5,0-2.5,0-3.3,0-.5,0-.9-.1-1.1-.3l7.4-7.4c.5-.5.9-.9,1.2-1.1.3-.2.4-.3.5-.3.1,0,.2,0,.3,0,0,0,.2,0,.5.3.3.2.6.6,1.2,1.1l2.3,2.3c0,1.2,0,2,0,2.7ZM19.5,11.5l-1.1-1.1h0c-.5-.5-.9-.9-1.3-1.2-.4-.3-.8-.6-1.3-.7-.3,0-.6,0-.9,0-.5,0-1,.3-1.3.7-.4.3-.8.7-1.3,1.2h0s-7.4,7.5-7.4,7.5c-.1-.3-.2-.6-.3-1.1,0-.8,0-1.8,0-3.3v-3c0-1.5,0-2.5,0-3.3,0-.8.2-1.2.5-1.5.2-.2.4-.5.7-.7.3-.2.8-.4,1.5-.5.8,0,1.8,0,3.3,0h3c1.5,0,2.5,0,3.3,0,.8,0,1.2.2,1.5.5.2.2.5.4.7.7.2.3.4.8.5,1.5,0,.8,0,1.8,0,3.3v1Z'/%3e%3ccircle%20class='st0'%20cx='8.8'%20cy='8.5'%20r='1.8'/%3e%3c/svg%3e", Ae = ["src"], Ne = ["width", "height", "src", "alt"], ze = /* @__PURE__ */ T({
|
|
59
|
+
__name: "TheImage",
|
|
94
60
|
props: {
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
61
|
+
src: {},
|
|
62
|
+
alt: {},
|
|
63
|
+
width: {},
|
|
64
|
+
height: {},
|
|
65
|
+
objectFit: {},
|
|
66
|
+
hasPlaceholder: { type: Boolean, default: !1 },
|
|
67
|
+
hasPriority: { type: Boolean, default: !1 },
|
|
68
|
+
isLayoutFill: { type: Boolean, default: !1 }
|
|
98
69
|
},
|
|
99
|
-
setup(
|
|
100
|
-
const t =
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
}
|
|
70
|
+
setup(s) {
|
|
71
|
+
const e = m("loading"), t = m(""), a = $(() => ({
|
|
72
|
+
...s.hasPriority && {
|
|
73
|
+
fetchpriority: "high"
|
|
74
|
+
}
|
|
75
|
+
})), r = $(() => ({
|
|
76
|
+
opacity: e.value === "idle" ? 1 : 0,
|
|
77
|
+
...s.isLayoutFill && {
|
|
78
|
+
width: "100%",
|
|
79
|
+
height: "100%"
|
|
80
|
+
}
|
|
81
|
+
}));
|
|
82
|
+
function i() {
|
|
83
|
+
e.value = "idle";
|
|
84
|
+
}
|
|
85
|
+
function S() {
|
|
86
|
+
s.hasPlaceholder && (e.value = "error");
|
|
87
|
+
}
|
|
88
|
+
return Y(
|
|
89
|
+
() => s.src,
|
|
90
|
+
(c) => {
|
|
91
|
+
z(() => {
|
|
92
|
+
t.value = c;
|
|
93
|
+
});
|
|
94
|
+
},
|
|
95
|
+
{ immediate: !0 }
|
|
96
|
+
), (c, L) => (g(), w("div", {
|
|
97
|
+
class: u(c.$style.root)
|
|
98
|
+
}, [
|
|
99
|
+
c.hasPlaceholder && e.value !== "idle" ? (g(), w("div", {
|
|
100
|
+
key: 0,
|
|
101
|
+
class: u([
|
|
102
|
+
c.$style.placeholder,
|
|
103
|
+
e.value === "loading" && c.$style.hasPulse
|
|
104
|
+
])
|
|
105
|
+
}, [
|
|
106
|
+
h("img", {
|
|
107
|
+
src: E(ke),
|
|
108
|
+
alt: "image placeholder",
|
|
109
|
+
style: y([e.value !== "error" && { opacity: 0 }])
|
|
110
|
+
}, null, 12, Ae)
|
|
111
|
+
], 2)) : ae("", !0),
|
|
112
|
+
le(h("img", j(a.value, {
|
|
113
|
+
class: [c.$style.image, c.$style[`objectFit_${c.objectFit}`]],
|
|
114
|
+
style: r.value,
|
|
115
|
+
width: c.width,
|
|
116
|
+
height: c.height,
|
|
117
|
+
src: t.value,
|
|
118
|
+
alt: c.alt,
|
|
119
|
+
onLoad: i,
|
|
120
|
+
onError: S
|
|
121
|
+
}), null, 16, Ne), [
|
|
122
|
+
[ne, e.value !== "error"]
|
|
123
|
+
])
|
|
124
|
+
], 2));
|
|
111
125
|
}
|
|
112
|
-
}), Pe = "
|
|
126
|
+
}), Pe = "TheImage__root_484a1", je = "TheImage__image_2c261", Oe = "TheImage__objectFit_cover_8f5ee", Ge = "TheImage__objectFit_contain_c6076", Re = "TheImage__placeholder_1e624", Ve = "TheImage__hasPulse_af1f2", Ke = "TheImage__pulse_56855", De = {
|
|
113
127
|
root: Pe,
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
color_red: He,
|
|
124
|
-
color_disable: Ke
|
|
125
|
-
}, C = (e, t) => {
|
|
126
|
-
const s = e.__vccOpts || e;
|
|
127
|
-
for (const [o, n] of t)
|
|
128
|
-
s[o] = n;
|
|
129
|
-
return s;
|
|
130
|
-
}, Xe = {
|
|
131
|
-
$style: Ue
|
|
132
|
-
}, Y = /* @__PURE__ */ C(Oe, [["__cssModules", Xe]]), Ye = /* @__PURE__ */ B({
|
|
128
|
+
image: je,
|
|
129
|
+
objectFit_cover: Oe,
|
|
130
|
+
objectFit_contain: Ge,
|
|
131
|
+
placeholder: Re,
|
|
132
|
+
hasPulse: Ve,
|
|
133
|
+
pulse: Ke
|
|
134
|
+
}, We = {
|
|
135
|
+
$style: De
|
|
136
|
+
}, Xe = /* @__PURE__ */ p(ze, [["__cssModules", We]]), Ye = /* @__PURE__ */ T({
|
|
133
137
|
__name: "TheText",
|
|
134
138
|
props: {
|
|
135
|
-
testId: {},
|
|
136
139
|
tag: { default: "p" },
|
|
137
|
-
|
|
138
|
-
align: {},
|
|
139
|
-
|
|
140
|
-
|
|
140
|
+
size: { default: "body" },
|
|
141
|
+
align: { default: "left" },
|
|
142
|
+
weight: { default: "regular" },
|
|
143
|
+
color: { default: "text-common-base-primary-default" },
|
|
141
144
|
numberOfLines: {},
|
|
142
|
-
|
|
145
|
+
isMono: { type: Boolean, default: !1 }
|
|
143
146
|
},
|
|
144
|
-
setup(
|
|
145
|
-
const
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
e.
|
|
152
|
-
|
|
147
|
+
setup(s) {
|
|
148
|
+
const e = P(), t = $(() => [
|
|
149
|
+
e.root,
|
|
150
|
+
e[`font_${s.size}`],
|
|
151
|
+
e.color,
|
|
152
|
+
s.color,
|
|
153
|
+
e[`align_${s.align}`],
|
|
154
|
+
e[`weight_${s.weight}`],
|
|
155
|
+
s.isMono && e["is-mono"]
|
|
156
|
+
]), a = $(() => Number(s.numberOfLines) ? {
|
|
153
157
|
style: {
|
|
154
|
-
"-webkit-line-clamp":
|
|
158
|
+
"-webkit-line-clamp": s.numberOfLines,
|
|
155
159
|
display: "-webkit-box",
|
|
156
160
|
"-webkit-box-orient": "vertical",
|
|
157
|
-
"line-clamp":
|
|
161
|
+
"line-clamp": s.numberOfLines,
|
|
158
162
|
overflow: "hidden"
|
|
159
163
|
}
|
|
160
164
|
} : null);
|
|
161
|
-
return (
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
}, o.value), {
|
|
165
|
-
default: j(() => [
|
|
166
|
-
K(n.$slots, "default")
|
|
165
|
+
return (r, i) => (g(), re(ie(r.tag), j({ class: t.value }, a.value), {
|
|
166
|
+
default: O(() => [
|
|
167
|
+
X(r.$slots, "default")
|
|
167
168
|
]),
|
|
168
169
|
_: 3
|
|
169
|
-
}, 16, ["
|
|
170
|
+
}, 16, ["class"]));
|
|
170
171
|
}
|
|
171
|
-
}), Ze = "text__root_5b5d3",
|
|
172
|
+
}), Ze = "text__root_5b5d3", He = "text__font_title1_22992", Ue = "text__font_title2_b4f65", qe = "text__font_title3_76ef4", Je = "text__font_headline_62d02", Qe = "text__font_body_542cd", et = "text__font_subhead_3ab93", tt = "text__font_caption_4d6f0", st = "text__color_70245", ot = "text__align_left_078d3", at = "text__align_center_6444c", lt = "text__align_right_daaa4", nt = "text__weight_regular_d3c88", rt = "text__weight_medium_679e2", it = "text__weight_semibold_e82dc", ct = "text__weight_bold_44baa", ut = {
|
|
172
173
|
root: Ze,
|
|
173
174
|
"is-mono": "text__is-mono_8b95d",
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
font_subheadSmall: dt,
|
|
190
|
-
font_body: ft,
|
|
191
|
-
font_bodyMedium: mt,
|
|
192
|
-
font_textLarge: ht,
|
|
193
|
-
font_textMedium: vt,
|
|
194
|
-
font_textSmall: yt,
|
|
195
|
-
font_captionLarge: gt,
|
|
196
|
-
font_captionMedium: bt,
|
|
197
|
-
font_captionSmall: $t,
|
|
198
|
-
color: Tt,
|
|
199
|
-
color_base: wt,
|
|
200
|
-
color_secondary: pt,
|
|
201
|
-
"color_brand-accent": "text__color_brand-accent_2e45f",
|
|
202
|
-
"color_brand-market": "text__color_brand-market_06771",
|
|
203
|
-
color_error: St,
|
|
204
|
-
color_success: xt,
|
|
205
|
-
color_inverse: zt,
|
|
206
|
-
"color_inverse-secondary": "text__color_inverse-secondary_1ecb3",
|
|
207
|
-
color_disable: kt,
|
|
208
|
-
align_left: Bt,
|
|
209
|
-
align_center: Mt,
|
|
210
|
-
align_right: Lt,
|
|
175
|
+
font_title1: He,
|
|
176
|
+
font_title2: Ue,
|
|
177
|
+
font_title3: qe,
|
|
178
|
+
font_headline: Je,
|
|
179
|
+
font_body: Qe,
|
|
180
|
+
font_subhead: et,
|
|
181
|
+
font_caption: tt,
|
|
182
|
+
color: st,
|
|
183
|
+
align_left: ot,
|
|
184
|
+
align_center: at,
|
|
185
|
+
align_right: lt,
|
|
186
|
+
weight_regular: nt,
|
|
187
|
+
weight_medium: rt,
|
|
188
|
+
weight_semibold: it,
|
|
189
|
+
weight_bold: ct,
|
|
211
190
|
"is-ellipsis": "text__is-ellipsis_4b9a7"
|
|
212
|
-
},
|
|
213
|
-
$style:
|
|
214
|
-
},
|
|
215
|
-
__name: "TheTextSkeleton",
|
|
216
|
-
props: {
|
|
217
|
-
color: {},
|
|
218
|
-
size: {},
|
|
219
|
-
widthRange: {}
|
|
220
|
-
},
|
|
221
|
-
setup(e) {
|
|
222
|
-
const t = D(), s = z(), o = z(), n = u(() => [t.root, t[`size_${e.size}`], t[`color_${e.color}`]]);
|
|
223
|
-
function l() {
|
|
224
|
-
if (e.widthRange && e.widthRange[0] && e.widthRange[1] && s.value) {
|
|
225
|
-
const c = Me(s.value, "max-width");
|
|
226
|
-
if (c) {
|
|
227
|
-
const i = ~c.toString().indexOf("%") ? parseInt(c.toString().replace("%", ""), 10) : 100, h = parseFloat(
|
|
228
|
-
(Math.abs(e.widthRange[1] - e.widthRange[0]) * Math.random() * 100).toFixed(2)
|
|
229
|
-
), p = (e.widthRange[0] >= e.widthRange[1] ? e.widthRange[0] : e.widthRange[1]) * 100;
|
|
230
|
-
o.value = `${(p - h) * i / 100}%`;
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
return Te(() => l()), (c, i) => (d(), w("div", {
|
|
235
|
-
ref_key: "skeleton",
|
|
236
|
-
ref: s,
|
|
237
|
-
class: m(n.value),
|
|
238
|
-
style: P({ width: o.value }),
|
|
239
|
-
key: o.value
|
|
240
|
-
}, i[0] || (i[0] = [
|
|
241
|
-
y("span", null, null, -1)
|
|
242
|
-
]), 6));
|
|
243
|
-
}
|
|
244
|
-
}), Rt = "TheTextSkeleton__root_e7018", Ot = "TheTextSkeleton__color_620e0", Pt = "TheTextSkeleton__color_base_10465", Et = "TheTextSkeleton__color_secondary_e1ef1", jt = "TheTextSkeleton__color_error_64442", At = "TheTextSkeleton__color_success_5a3da", Vt = "TheTextSkeleton__color_inverse_54207", Dt = "TheTextSkeleton__color_disable_88db9", Nt = "TheTextSkeleton__size_title_huge_23e69", Gt = "TheTextSkeleton__size_title_large_3374c", Wt = "TheTextSkeleton__size_title_medium_0f6e0", Ht = "TheTextSkeleton__size_title_small_138c6", Kt = "TheTextSkeleton__size_title_extraSmall_2f6ca", Ut = "TheTextSkeleton__size_headline_small_96a95", Xt = "TheTextSkeleton__size_subhead_large_effd2", Yt = "TheTextSkeleton__size_text_small_e5cd8", Zt = "TheTextSkeleton__size_caption_small_f5390", qt = {
|
|
245
|
-
root: Rt,
|
|
246
|
-
color: Ot,
|
|
247
|
-
color_base: Pt,
|
|
248
|
-
color_secondary: Et,
|
|
249
|
-
"color_brand-accent": "TheTextSkeleton__color_brand-accent_afa16",
|
|
250
|
-
"color_brand-market": "TheTextSkeleton__color_brand-market_fca73",
|
|
251
|
-
color_error: jt,
|
|
252
|
-
color_success: At,
|
|
253
|
-
color_inverse: Vt,
|
|
254
|
-
"color_inverse-secondary": "TheTextSkeleton__color_inverse-secondary_5e112",
|
|
255
|
-
color_disable: Dt,
|
|
256
|
-
size_title_huge: Nt,
|
|
257
|
-
size_title_large: Gt,
|
|
258
|
-
size_title_medium: Wt,
|
|
259
|
-
size_title_small: Ht,
|
|
260
|
-
size_title_extraSmall: Kt,
|
|
261
|
-
size_headline_small: Ut,
|
|
262
|
-
size_subhead_large: Xt,
|
|
263
|
-
size_text_small: Yt,
|
|
264
|
-
size_caption_small: Zt
|
|
265
|
-
}, Jt = {
|
|
266
|
-
$style: qt
|
|
267
|
-
}, Qt = /* @__PURE__ */ C(Ft, [["__cssModules", Jt]]), eo = ["id"], to = { "stroke-width": "15" }, oo = ["stroke"], so = ["stroke"], no = /* @__PURE__ */ B({
|
|
268
|
-
__name: "Loader",
|
|
269
|
-
props: {
|
|
270
|
-
view: {},
|
|
271
|
-
size: {}
|
|
272
|
-
},
|
|
273
|
-
setup(e) {
|
|
274
|
-
const t = D(), s = {
|
|
275
|
-
orange: "rgba(255, 97, 0, 1)",
|
|
276
|
-
white: "rgba(255, 255, 255, 1)",
|
|
277
|
-
black: "rgba(35, 36, 37, 1)",
|
|
278
|
-
gray: "rgba(197, 205, 220, 1)",
|
|
279
|
-
red: "rgba(255, 45, 85, 1)"
|
|
280
|
-
}, o = {
|
|
281
|
-
a: `spinner-${e.view}-a`,
|
|
282
|
-
b: `spinner-${e.view}-b`
|
|
283
|
-
}, n = u(() => [t.root, t[`size_${e.size}`]]), l = u(
|
|
284
|
-
() => s[e.view]
|
|
285
|
-
), c = u(() => ({
|
|
286
|
-
color: l.value,
|
|
287
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
288
|
-
fill: "none",
|
|
289
|
-
viewBox: "0 0 200 200",
|
|
290
|
-
width: "200",
|
|
291
|
-
height: "200"
|
|
292
|
-
}));
|
|
293
|
-
return (i, h) => (d(), w("div", {
|
|
294
|
-
class: m(n.value)
|
|
295
|
-
}, [
|
|
296
|
-
(d(), w("svg", ce(we(c.value)), [
|
|
297
|
-
h[1] || (h[1] = y("defs", null, [
|
|
298
|
-
y("stop", {
|
|
299
|
-
offset: "0%",
|
|
300
|
-
"stop-opacity": "0",
|
|
301
|
-
"stop-color": "currentColor"
|
|
302
|
-
}),
|
|
303
|
-
y("stop", {
|
|
304
|
-
offset: "100%",
|
|
305
|
-
"stop-opacity": ".5",
|
|
306
|
-
"stop-color": "currentColor"
|
|
307
|
-
})
|
|
308
|
-
], -1)),
|
|
309
|
-
y("linearGradient", {
|
|
310
|
-
id: o.b
|
|
311
|
-
}, h[0] || (h[0] = [
|
|
312
|
-
y("stop", {
|
|
313
|
-
offset: "0%",
|
|
314
|
-
"stop-opacity": "0",
|
|
315
|
-
"stop-color": "currentColor"
|
|
316
|
-
}, null, -1),
|
|
317
|
-
y("stop", {
|
|
318
|
-
offset: "100%",
|
|
319
|
-
"stop-opacity": ".5",
|
|
320
|
-
"stop-color": "currentColor"
|
|
321
|
-
}, null, -1)
|
|
322
|
-
]), 8, eo),
|
|
323
|
-
y("g", to, [
|
|
324
|
-
y("path", {
|
|
325
|
-
stroke: `url(#${o.a})`,
|
|
326
|
-
d: "M15 100a85 85 0 0 1 170 0"
|
|
327
|
-
}, null, 8, oo),
|
|
328
|
-
y("path", {
|
|
329
|
-
stroke: `url(#${o.b})`,
|
|
330
|
-
d: "M185 100a85 85 0 0 1-170 0"
|
|
331
|
-
}, null, 8, so)
|
|
332
|
-
])
|
|
333
|
-
], 16))
|
|
334
|
-
], 2));
|
|
335
|
-
}
|
|
336
|
-
}), ao = "Loader__root_6a680", lo = "Loader__rotate360_01915", io = "Loader__size_xs_72d28", ro = "Loader__size_s_d91c3", co = "Loader__size_m_c2262", _o = "Loader__size_l_ab27e", uo = "Loader__size_xl_f9fa1", fo = {
|
|
337
|
-
root: ao,
|
|
338
|
-
rotate360: lo,
|
|
339
|
-
size_xs: io,
|
|
340
|
-
size_s: ro,
|
|
341
|
-
size_m: co,
|
|
342
|
-
size_l: _o,
|
|
343
|
-
size_xl: uo
|
|
344
|
-
}, mo = {
|
|
345
|
-
$style: fo
|
|
346
|
-
}, de = /* @__PURE__ */ C(no, [["__cssModules", mo]]), ho = {
|
|
347
|
-
xl: 20,
|
|
348
|
-
l: 20,
|
|
349
|
-
m: 20,
|
|
350
|
-
s: 18
|
|
351
|
-
}, vo = {
|
|
352
|
-
xl: "headlineSmall",
|
|
353
|
-
l: "headlineSmall",
|
|
354
|
-
m: "subheadMedium",
|
|
355
|
-
s: "textMedium"
|
|
356
|
-
}, yo = {
|
|
357
|
-
primary: "inverse",
|
|
358
|
-
tertiary: "brand-accent",
|
|
359
|
-
outlineBase: "base",
|
|
360
|
-
system: "secondary",
|
|
361
|
-
brandOpacity: "brand-accent",
|
|
362
|
-
secondary: "base",
|
|
363
|
-
criticalOnSurface: "error",
|
|
364
|
-
onDarkPrimary: "base",
|
|
365
|
-
base: "inverse",
|
|
366
|
-
criticalOpacity: "error"
|
|
367
|
-
}, fe = {
|
|
368
|
-
xl: "m",
|
|
369
|
-
l: "m",
|
|
370
|
-
m: "m",
|
|
371
|
-
s: "s"
|
|
372
|
-
}, go = {
|
|
373
|
-
primary: "white",
|
|
374
|
-
tertiary: "orange",
|
|
375
|
-
outlineBase: "black",
|
|
376
|
-
system: "gray",
|
|
377
|
-
brandOpacity: "orange",
|
|
378
|
-
secondary: "black",
|
|
379
|
-
criticalOnSurface: "red",
|
|
380
|
-
onDarkPrimary: "black",
|
|
381
|
-
base: "white",
|
|
382
|
-
criticalOpacity: "red"
|
|
383
|
-
}, bo = {
|
|
384
|
-
xl: "s",
|
|
385
|
-
l: "s",
|
|
386
|
-
m: "xs",
|
|
387
|
-
s: "xs"
|
|
388
|
-
}, $o = /* @__PURE__ */ B({
|
|
389
|
-
__name: "Button",
|
|
390
|
-
props: {
|
|
391
|
-
tag: {},
|
|
392
|
-
href: {},
|
|
393
|
-
type: {},
|
|
394
|
-
isLoading: { type: Boolean },
|
|
395
|
-
isDisabled: { type: Boolean },
|
|
396
|
-
view: {},
|
|
397
|
-
size: {},
|
|
398
|
-
interactionType: { default: "web" },
|
|
399
|
-
radius: {},
|
|
400
|
-
iconLeft: {},
|
|
401
|
-
iconRight: {},
|
|
402
|
-
isWide: { type: Boolean }
|
|
403
|
-
},
|
|
404
|
-
emits: ["click"],
|
|
405
|
-
setup(e, { emit: t }) {
|
|
406
|
-
const s = t, o = D(), n = u(() => ho[e.size]), l = u(() => vo[e.size]), c = u(() => e.isDisabled ? "disable" : yo[e.view]), i = u(() => e.radius ? e.radius : fe[e.size]), h = u(() => ({
|
|
407
|
-
class: o.loader,
|
|
408
|
-
view: go[e.view],
|
|
409
|
-
size: bo[e.size]
|
|
410
|
-
})), p = u(() => [
|
|
411
|
-
o.root,
|
|
412
|
-
o[`size_${e.size}`],
|
|
413
|
-
o[`view_${e.view}`],
|
|
414
|
-
o[`radius_${i.value}`],
|
|
415
|
-
o[`interaction-type_${e.interactionType}`],
|
|
416
|
-
e.isDisabled && o["is-disabled"],
|
|
417
|
-
e.isWide && o["is-wide"]
|
|
418
|
-
]), v = u(() => [
|
|
419
|
-
o.wrapper,
|
|
420
|
-
e.isLoading && o["is-loading"]
|
|
421
|
-
]);
|
|
422
|
-
function _(r) {
|
|
423
|
-
s("click", r);
|
|
424
|
-
}
|
|
425
|
-
return (r, b) => (d(), E(k(ue), {
|
|
426
|
-
class: m(p.value),
|
|
427
|
-
tag: r.tag,
|
|
428
|
-
href: r.href,
|
|
429
|
-
type: r.type,
|
|
430
|
-
"is-loading": r.isLoading,
|
|
431
|
-
"is-disabled": r.isDisabled,
|
|
432
|
-
onClick: _
|
|
433
|
-
}, {
|
|
434
|
-
default: j(() => [
|
|
435
|
-
y("div", {
|
|
436
|
-
class: m(v.value)
|
|
437
|
-
}, [
|
|
438
|
-
r.iconLeft ? (d(), E(k(Y), {
|
|
439
|
-
key: 0,
|
|
440
|
-
name: r.iconLeft,
|
|
441
|
-
color: c.value,
|
|
442
|
-
size: n.value
|
|
443
|
-
}, null, 8, ["name", "color", "size"])) : W("", !0),
|
|
444
|
-
G(k(Z), {
|
|
445
|
-
name: l.value,
|
|
446
|
-
color: c.value
|
|
447
|
-
}, {
|
|
448
|
-
default: j(() => [
|
|
449
|
-
K(r.$slots, "default")
|
|
450
|
-
]),
|
|
451
|
-
_: 3
|
|
452
|
-
}, 8, ["name", "color"]),
|
|
453
|
-
r.iconRight ? (d(), E(k(Y), {
|
|
454
|
-
key: 1,
|
|
455
|
-
name: r.iconRight,
|
|
456
|
-
color: c.value,
|
|
457
|
-
size: n.value
|
|
458
|
-
}, null, 8, ["name", "color", "size"])) : W("", !0)
|
|
459
|
-
], 2),
|
|
460
|
-
G(ee, {
|
|
461
|
-
name: "fade",
|
|
462
|
-
mode: "out-in"
|
|
463
|
-
}, {
|
|
464
|
-
default: j(() => [
|
|
465
|
-
r.isLoading ? (d(), E(k(de), ce(H({ key: 0 }, h.value)), null, 16)) : W("", !0)
|
|
466
|
-
]),
|
|
467
|
-
_: 1
|
|
468
|
-
})
|
|
469
|
-
]),
|
|
470
|
-
_: 3
|
|
471
|
-
}, 8, ["class", "tag", "href", "type", "is-loading", "is-disabled"]));
|
|
472
|
-
}
|
|
473
|
-
}), To = "Button__root_d73c7", wo = "Button__size_xl_d4508", po = "Button__size_l_36a47", So = "Button__size_m_a0dfa", xo = "Button__size_s_c29cc", zo = "Button__view_2d25c", ko = "Button__view_primary_2e1d8", Bo = "Button__view_tertiary_87211", Mo = "Button__view_outlineBase_c6ec7", Lo = "Button__view_system_b353e", Co = "Button__view_brandOpacity_464b2", Io = "Button__view_secondary_04e61", Fo = "Button__view_criticalOnSurface_466b2", Ro = "Button__view_criticalOpacity_0847b", Oo = "Button__view_onDarkPrimary_1e4eb", Po = "Button__view_base_a30a0", Eo = "Button__view_skeleton_fd281", jo = "Button__radius_m_ee05f", Ao = "Button__radius_s_f15d9", Vo = "Button__wrapper_e7d56", Do = "Button__loader_37a37", me = {
|
|
474
|
-
root: To,
|
|
475
|
-
"interaction-type_webview": "Button__interaction-type_webview_cbcd8",
|
|
476
|
-
size_xl: wo,
|
|
477
|
-
size_l: po,
|
|
478
|
-
size_m: So,
|
|
479
|
-
size_s: xo,
|
|
480
|
-
view: zo,
|
|
481
|
-
view_primary: ko,
|
|
482
|
-
view_tertiary: Bo,
|
|
483
|
-
view_outlineBase: Mo,
|
|
484
|
-
view_system: Lo,
|
|
485
|
-
view_brandOpacity: Co,
|
|
486
|
-
view_secondary: Io,
|
|
487
|
-
view_criticalOnSurface: Fo,
|
|
488
|
-
view_criticalOpacity: Ro,
|
|
489
|
-
view_onDarkPrimary: Oo,
|
|
490
|
-
view_base: Po,
|
|
491
|
-
view_skeleton: Eo,
|
|
492
|
-
radius_m: jo,
|
|
493
|
-
radius_s: Ao,
|
|
494
|
-
wrapper: Vo,
|
|
495
|
-
loader: Do,
|
|
496
|
-
"is-disabled": "Button__is-disabled_b357e",
|
|
497
|
-
"is-loading": "Button__is-loading_53182",
|
|
498
|
-
"is-wide": "Button__is-wide_3f0c1"
|
|
499
|
-
}, No = {
|
|
500
|
-
$style: me
|
|
501
|
-
}, Go = /* @__PURE__ */ C($o, [["__cssModules", No]]), Wo = /* @__PURE__ */ B({
|
|
502
|
-
__name: "ButtonSkeleton",
|
|
503
|
-
props: {
|
|
504
|
-
size: {}
|
|
505
|
-
},
|
|
506
|
-
setup(e) {
|
|
507
|
-
const t = D(), s = u(() => fe[e.size]), o = u(() => [
|
|
508
|
-
t.root,
|
|
509
|
-
t[`size_${e.size}`],
|
|
510
|
-
t.view_skeleton,
|
|
511
|
-
t[`radius_${s.value}`],
|
|
512
|
-
t["is-wide"]
|
|
513
|
-
]);
|
|
514
|
-
return (n, l) => (d(), w("div", {
|
|
515
|
-
class: m(o.value)
|
|
516
|
-
}, null, 2));
|
|
517
|
-
}
|
|
518
|
-
}), Ho = {
|
|
519
|
-
$style: me
|
|
520
|
-
}, Ko = /* @__PURE__ */ C(Wo, [["__cssModules", Ho]]), Uo = /* @__PURE__ */ B({
|
|
521
|
-
__name: "SkeletonWrapper",
|
|
522
|
-
setup(e) {
|
|
523
|
-
const t = D(), s = u(() => [t.root]);
|
|
524
|
-
return (o, n) => (d(), w("div", {
|
|
525
|
-
class: m(s.value)
|
|
526
|
-
}, [
|
|
527
|
-
K(o.$slots, "default")
|
|
528
|
-
], 2));
|
|
529
|
-
}
|
|
530
|
-
}), Xo = "SkeletonWrapper__root_e7206", Yo = "SkeletonWrapper__pulse_fef1d", Zo = {
|
|
531
|
-
root: Xo,
|
|
532
|
-
pulse: Yo
|
|
533
|
-
}, qo = {
|
|
534
|
-
$style: Zo
|
|
535
|
-
}, Jo = /* @__PURE__ */ C(Uo, [["__cssModules", qo]]);
|
|
536
|
-
function V(e) {
|
|
537
|
-
return typeof e == "function" ? e() : k(e);
|
|
538
|
-
}
|
|
539
|
-
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
540
|
-
const ie = () => {
|
|
541
|
-
};
|
|
542
|
-
function J(e, t = !1, s = "Timeout") {
|
|
543
|
-
return new Promise((o, n) => {
|
|
544
|
-
setTimeout(t ? () => n(s) : o, e);
|
|
545
|
-
});
|
|
546
|
-
}
|
|
547
|
-
function Q(e, t = !1) {
|
|
548
|
-
function s(_, { flush: r = "sync", deep: b = !1, timeout: M, throwOnTimeout: A } = {}) {
|
|
549
|
-
let S = null;
|
|
550
|
-
const L = [new Promise((R) => {
|
|
551
|
-
S = X(
|
|
552
|
-
e,
|
|
553
|
-
(T) => {
|
|
554
|
-
_(T) !== t && (S == null || S(), R(T));
|
|
555
|
-
},
|
|
556
|
-
{
|
|
557
|
-
flush: r,
|
|
558
|
-
deep: b,
|
|
559
|
-
immediate: !0
|
|
560
|
-
}
|
|
561
|
-
);
|
|
562
|
-
})];
|
|
563
|
-
return M != null && L.push(
|
|
564
|
-
J(M, A).then(() => V(e)).finally(() => S == null ? void 0 : S())
|
|
565
|
-
), Promise.race(L);
|
|
566
|
-
}
|
|
567
|
-
function o(_, r) {
|
|
568
|
-
if (!pe(_))
|
|
569
|
-
return s((T) => T === _, r);
|
|
570
|
-
const { flush: b = "sync", deep: M = !1, timeout: A, throwOnTimeout: S } = r ?? {};
|
|
571
|
-
let $ = null;
|
|
572
|
-
const R = [new Promise((T) => {
|
|
573
|
-
$ = X(
|
|
574
|
-
[e, _],
|
|
575
|
-
([a, f]) => {
|
|
576
|
-
t !== (a === f) && ($ == null || $(), T(a));
|
|
577
|
-
},
|
|
578
|
-
{
|
|
579
|
-
flush: b,
|
|
580
|
-
deep: M,
|
|
581
|
-
immediate: !0
|
|
582
|
-
}
|
|
583
|
-
);
|
|
584
|
-
})];
|
|
585
|
-
return A != null && R.push(
|
|
586
|
-
J(A, S).then(() => V(e)).finally(() => ($ == null || $(), V(e)))
|
|
587
|
-
), Promise.race(R);
|
|
588
|
-
}
|
|
589
|
-
function n(_) {
|
|
590
|
-
return s((r) => !!r, _);
|
|
591
|
-
}
|
|
592
|
-
function l(_) {
|
|
593
|
-
return o(null, _);
|
|
594
|
-
}
|
|
595
|
-
function c(_) {
|
|
596
|
-
return o(void 0, _);
|
|
597
|
-
}
|
|
598
|
-
function i(_) {
|
|
599
|
-
return s(Number.isNaN, _);
|
|
600
|
-
}
|
|
601
|
-
function h(_, r) {
|
|
602
|
-
return s((b) => {
|
|
603
|
-
const M = Array.from(b);
|
|
604
|
-
return M.includes(_) || M.includes(V(_));
|
|
605
|
-
}, r);
|
|
606
|
-
}
|
|
607
|
-
function p(_) {
|
|
608
|
-
return v(1, _);
|
|
609
|
-
}
|
|
610
|
-
function v(_ = 1, r) {
|
|
611
|
-
let b = -1;
|
|
612
|
-
return s(() => (b += 1, b >= _), r);
|
|
613
|
-
}
|
|
614
|
-
return Array.isArray(V(e)) ? {
|
|
615
|
-
toMatch: s,
|
|
616
|
-
toContains: h,
|
|
617
|
-
changed: p,
|
|
618
|
-
changedTimes: v,
|
|
619
|
-
get not() {
|
|
620
|
-
return Q(e, !t);
|
|
621
|
-
}
|
|
622
|
-
} : {
|
|
623
|
-
toMatch: s,
|
|
624
|
-
toBe: o,
|
|
625
|
-
toBeTruthy: n,
|
|
626
|
-
toBeNull: l,
|
|
627
|
-
toBeNaN: i,
|
|
628
|
-
toBeUndefined: c,
|
|
629
|
-
changed: p,
|
|
630
|
-
changedTimes: v,
|
|
631
|
-
get not() {
|
|
632
|
-
return Q(e, !t);
|
|
633
|
-
}
|
|
634
|
-
};
|
|
635
|
-
}
|
|
636
|
-
function Qo(e) {
|
|
637
|
-
return Q(e);
|
|
638
|
-
}
|
|
639
|
-
function es(e, t, s) {
|
|
640
|
-
const {
|
|
641
|
-
immediate: o = !0,
|
|
642
|
-
delay: n = 0,
|
|
643
|
-
onError: l = ie,
|
|
644
|
-
onSuccess: c = ie,
|
|
645
|
-
resetOnExecute: i = !0,
|
|
646
|
-
shallow: h = !0,
|
|
647
|
-
throwError: p
|
|
648
|
-
} = s ?? {}, v = h ? oe(t) : z(t), _ = z(!1), r = z(!1), b = oe(void 0);
|
|
649
|
-
async function M($ = 0, ...L) {
|
|
650
|
-
i && (v.value = t), b.value = void 0, _.value = !1, r.value = !0, $ > 0 && await J($);
|
|
651
|
-
const R = typeof e == "function" ? e(...L) : e;
|
|
652
|
-
try {
|
|
653
|
-
const T = await R;
|
|
654
|
-
v.value = T, _.value = !0, c(T);
|
|
655
|
-
} catch (T) {
|
|
656
|
-
if (b.value = T, l(T), p)
|
|
657
|
-
throw T;
|
|
658
|
-
} finally {
|
|
659
|
-
r.value = !1;
|
|
660
|
-
}
|
|
661
|
-
return v.value;
|
|
662
|
-
}
|
|
663
|
-
o && M(n);
|
|
664
|
-
const A = {
|
|
665
|
-
state: v,
|
|
666
|
-
isReady: _,
|
|
667
|
-
isLoading: r,
|
|
668
|
-
error: b,
|
|
669
|
-
execute: M
|
|
670
|
-
};
|
|
671
|
-
function S() {
|
|
672
|
-
return new Promise(($, L) => {
|
|
673
|
-
Qo(r).toBe(!1).then(() => $(A)).catch(L);
|
|
674
|
-
});
|
|
675
|
-
}
|
|
676
|
-
return {
|
|
677
|
-
...A,
|
|
678
|
-
then($, L) {
|
|
679
|
-
return S().then($, L);
|
|
680
|
-
}
|
|
681
|
-
};
|
|
682
|
-
}
|
|
683
|
-
async function ts(e) {
|
|
684
|
-
return new Promise((t, s) => {
|
|
685
|
-
const o = new Image(), { src: n, srcset: l, sizes: c, class: i, loading: h, crossorigin: p, referrerPolicy: v } = e;
|
|
686
|
-
o.src = n, l && (o.srcset = l), c && (o.sizes = c), i && (o.className = i), h && (o.loading = h), p && (o.crossOrigin = p), v && (o.referrerPolicy = v), o.onload = () => t(o), o.onerror = s;
|
|
687
|
-
});
|
|
688
|
-
}
|
|
689
|
-
function os(e, t = {}) {
|
|
690
|
-
const s = es(
|
|
691
|
-
() => ts(V(e)),
|
|
692
|
-
void 0,
|
|
693
|
-
{
|
|
694
|
-
resetOnExecute: !0,
|
|
695
|
-
...t
|
|
696
|
-
}
|
|
697
|
-
);
|
|
698
|
-
return X(
|
|
699
|
-
() => V(e),
|
|
700
|
-
() => s.execute(t.delay),
|
|
701
|
-
{ deep: !0 }
|
|
702
|
-
), s;
|
|
703
|
-
}
|
|
704
|
-
const ss = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20id='_Слой_1'%20data-name='Слой_1'%20xmlns='http://www.w3.org/2000/svg'%20version='1.1'%20viewBox='0%200%2024%2024'%3e%3c!--%20Generator:%20Adobe%20Illustrator%2029.2.1,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%202.1.0%20Build%20116)%20--%3e%3cdefs%3e%3cstyle%3e%20.st0,%20.st1%20{%20fill:%20currentColor;%20}%20.st1%20{%20fill-rule:%20evenodd;%20}%20%3c/style%3e%3c/defs%3e%3cpath%20class='st1'%20d='M21.2,7c-.1-.9-.3-1.7-.8-2.4-.3-.4-.6-.8-1-1-.7-.5-1.5-.7-2.4-.8-.9,0-2,0-3.4,0h-3.1c-1.4,0-2.5,0-3.4,0-.9,0-1.7.3-2.4.8-.4.3-.8.6-1,1-.5.7-.7,1.5-.8,2.4,0,.9,0,2,0,3.4h0v3h0c0,1.4,0,2.6,0,3.5,0,.9.3,1.7.8,2.4.3.4.6.8,1,1,.7.5,1.5.7,2.4.8.9,0,2,0,3.4,0h3.1c1.4,0,2.5,0,3.4,0,.9-.1,1.7-.3,2.4-.8.4-.3.8-.6,1-1,.5-.7.7-1.5.8-2.4,0-.9,0-2,0-3.4h0v-3h0c0-1.4,0-2.6,0-3.5ZM19.4,16.8c0,.8-.2,1.2-.5,1.5-.2.2-.4.5-.7.7-.3.2-.8.4-1.5.5-.8,0-1.8,0-3.3,0h-3c-1.5,0-2.5,0-3.3,0-.5,0-.9-.1-1.1-.3l7.4-7.4c.5-.5.9-.9,1.2-1.1.3-.2.4-.3.5-.3.1,0,.2,0,.3,0,0,0,.2,0,.5.3.3.2.6.6,1.2,1.1l2.3,2.3c0,1.2,0,2,0,2.7ZM19.5,11.5l-1.1-1.1h0c-.5-.5-.9-.9-1.3-1.2-.4-.3-.8-.6-1.3-.7-.3,0-.6,0-.9,0-.5,0-1,.3-1.3.7-.4.3-.8.7-1.3,1.2h0s-7.4,7.5-7.4,7.5c-.1-.3-.2-.6-.3-1.1,0-.8,0-1.8,0-3.3v-3c0-1.5,0-2.5,0-3.3,0-.8.2-1.2.5-1.5.2-.2.4-.5.7-.7.3-.2.8-.4,1.5-.5.8,0,1.8,0,3.3,0h3c1.5,0,2.5,0,3.3,0,.8,0,1.2.2,1.5.5.2.2.5.4.7.7.2.3.4.8.5,1.5,0,.8,0,1.8,0,3.3v1Z'/%3e%3ccircle%20class='st0'%20cx='8.8'%20cy='8.5'%20r='1.8'/%3e%3c/svg%3e", U = {
|
|
191
|
+
}, dt = {
|
|
192
|
+
$style: ut
|
|
193
|
+
}, H = /* @__PURE__ */ p(Ye, [["__cssModules", dt]]), M = {
|
|
705
194
|
"fade-enter-active": "TransitionFade__fade-enter-active_aa1d8",
|
|
706
195
|
"fade-leave-active": "TransitionFade__fade-leave-active_39194",
|
|
707
196
|
"fade-enter-from": "TransitionFade__fade-enter-from_74398",
|
|
708
197
|
"fade-leave-to": "TransitionFade__fade-leave-to_fab21"
|
|
709
|
-
},
|
|
198
|
+
}, _t = T({
|
|
710
199
|
name: "TransitionFade",
|
|
711
200
|
props: {
|
|
712
201
|
appear: {
|
|
@@ -719,372 +208,256 @@ const ss = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3c
|
|
|
719
208
|
},
|
|
720
209
|
duration: {
|
|
721
210
|
type: Number,
|
|
722
|
-
default:
|
|
211
|
+
default: 450
|
|
723
212
|
}
|
|
724
213
|
},
|
|
725
|
-
setup(
|
|
726
|
-
return () =>
|
|
727
|
-
|
|
214
|
+
setup(s, { slots: e }) {
|
|
215
|
+
return () => ce(
|
|
216
|
+
ue,
|
|
728
217
|
{
|
|
729
218
|
name: "fade",
|
|
730
|
-
appear:
|
|
731
|
-
mode:
|
|
732
|
-
duration:
|
|
733
|
-
enterFromClass:
|
|
734
|
-
enterActiveClass:
|
|
735
|
-
leaveActiveClass:
|
|
736
|
-
leaveToClass:
|
|
219
|
+
appear: s.appear,
|
|
220
|
+
mode: s.mode,
|
|
221
|
+
duration: s.duration,
|
|
222
|
+
enterFromClass: M["fade-enter-from"],
|
|
223
|
+
enterActiveClass: M["fade-enter-active"],
|
|
224
|
+
leaveActiveClass: M["fade-leave-active"],
|
|
225
|
+
leaveToClass: M["fade-leave-to"]
|
|
737
226
|
},
|
|
738
|
-
() =>
|
|
227
|
+
() => e.default ? e.default() : []
|
|
739
228
|
);
|
|
740
229
|
}
|
|
741
|
-
}),
|
|
742
|
-
__name: "
|
|
230
|
+
}), ft = ["xlink:href"], mt = /* @__PURE__ */ T({
|
|
231
|
+
__name: "Icon",
|
|
743
232
|
props: {
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
height: {},
|
|
748
|
-
objectFit: {},
|
|
749
|
-
hasPlaceholder: { type: Boolean, default: !1 },
|
|
750
|
-
hasPriority: { type: Boolean, default: !1 },
|
|
751
|
-
isLayoutFill: { type: Boolean },
|
|
752
|
-
hasMixBlendMode: { type: Boolean, default: !1 }
|
|
233
|
+
name: {},
|
|
234
|
+
color: {},
|
|
235
|
+
size: {}
|
|
753
236
|
},
|
|
754
|
-
setup(
|
|
755
|
-
const t =
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
class: m([i.$style.root, c.value === "loading" && i.$style.hasPulse]),
|
|
760
|
-
style: P({ aspectRatio: n.value })
|
|
237
|
+
setup(s) {
|
|
238
|
+
const e = P(), t = $(() => [e.root, e.color, s.color, e[s.name]]), a = $(() => s.size ? { width: B(Number(s.size)), height: B(Number(s.size)) } : {});
|
|
239
|
+
return (r, i) => (g(), w("svg", {
|
|
240
|
+
class: u(t.value),
|
|
241
|
+
style: y(a.value)
|
|
761
242
|
}, [
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
key: "error",
|
|
766
|
-
class: m(i.$style.placeholder),
|
|
767
|
-
src: k(ss),
|
|
768
|
-
alt: "image placeholder"
|
|
769
|
-
}, null, 10, ns)) : c.value === "idle" ? (d(), w("img", {
|
|
770
|
-
fetchpriority: i.hasPriority,
|
|
771
|
-
key: "image",
|
|
772
|
-
class: m([
|
|
773
|
-
i.$style.image,
|
|
774
|
-
l.value && i.$style.mixBlendMode,
|
|
775
|
-
i.$style[`objectFit_${i.objectFit}`]
|
|
776
|
-
]),
|
|
777
|
-
width: i.width,
|
|
778
|
-
height: i.height,
|
|
779
|
-
src: i.src,
|
|
780
|
-
alt: i.alt
|
|
781
|
-
}, null, 10, as)) : (d(), w("div", ls))
|
|
782
|
-
]),
|
|
783
|
-
_: 1
|
|
784
|
-
})
|
|
243
|
+
h("use", {
|
|
244
|
+
"xlink:href": `#${r.name}`
|
|
245
|
+
}, null, 8, ft)
|
|
785
246
|
], 6));
|
|
786
247
|
}
|
|
787
|
-
}),
|
|
788
|
-
root:
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
placeholder: fs,
|
|
794
|
-
hasPulse: ms,
|
|
795
|
-
pulse: hs
|
|
796
|
-
}, ys = {
|
|
797
|
-
$style: vs
|
|
798
|
-
}, gs = /* @__PURE__ */ C(is, [["__cssModules", ys]]), bs = ["srcset"], $s = ["width", "height", "src", "alt"], Ts = /* @__PURE__ */ B({
|
|
799
|
-
__name: "ThePicture",
|
|
800
|
-
props: {
|
|
801
|
-
src: {},
|
|
802
|
-
alt: {},
|
|
803
|
-
width: {},
|
|
804
|
-
height: {},
|
|
805
|
-
objectFit: {},
|
|
806
|
-
hasPriority: { type: Boolean }
|
|
807
|
-
},
|
|
808
|
-
setup(e) {
|
|
809
|
-
const t = u(() => {
|
|
810
|
-
const o = /\.(png|jpg|jpeg)$/;
|
|
811
|
-
return o.test(e.src) || console.warn("src prop must be png, jpg or jpeg"), e.src.replace(o, "");
|
|
812
|
-
}), s = u(() => ({
|
|
813
|
-
...e.hasPriority && {
|
|
814
|
-
fetchpriority: "high"
|
|
815
|
-
}
|
|
816
|
-
}));
|
|
817
|
-
return (o, n) => (d(), w("picture", {
|
|
818
|
-
class: m(o.$style.root)
|
|
819
|
-
}, [
|
|
820
|
-
y("source", {
|
|
821
|
-
srcset: t.value + ".webp",
|
|
822
|
-
type: "image/webp"
|
|
823
|
-
}, null, 8, bs),
|
|
824
|
-
y("img", H(s.value, {
|
|
825
|
-
class: [o.$style.image, o.$style[`objectFit_${o.objectFit}`]],
|
|
826
|
-
width: o.width,
|
|
827
|
-
height: o.height,
|
|
828
|
-
src: o.src,
|
|
829
|
-
alt: o.alt,
|
|
830
|
-
loading: "lazy",
|
|
831
|
-
onError: n[0] || (n[0] = //@ts-ignore
|
|
832
|
-
(...l) => o.handleFailure && o.handleFailure(...l))
|
|
833
|
-
}), null, 16, $s)
|
|
834
|
-
], 2));
|
|
835
|
-
}
|
|
836
|
-
}), ws = "ThePicture__root_e38eb", ps = "ThePicture__image_29186", Ss = "ThePicture__objectFit_cover_0c234", xs = "ThePicture__objectFit_contain_9e95d", zs = {
|
|
837
|
-
root: ws,
|
|
838
|
-
image: ps,
|
|
839
|
-
objectFit_cover: Ss,
|
|
840
|
-
objectFit_contain: xs
|
|
841
|
-
}, ks = {
|
|
842
|
-
$style: zs
|
|
843
|
-
}, Bs = /* @__PURE__ */ C(Ts, [["__cssModules", ks]]), Ms = {
|
|
844
|
-
"enter-active": "TransitionVisibilityToggle__enter-active_bc3d6",
|
|
845
|
-
"leave-active": "TransitionVisibilityToggle__leave-active_23b21",
|
|
846
|
-
"enter-from": "TransitionVisibilityToggle__enter-from_0ca29",
|
|
847
|
-
"enter-to": "TransitionVisibilityToggle__enter-to_6293c",
|
|
848
|
-
"leave-from": "TransitionVisibilityToggle__leave-from_4b6bf",
|
|
849
|
-
"leave-to": "TransitionVisibilityToggle__leave-to_d0bb6"
|
|
850
|
-
}, Ls = {};
|
|
851
|
-
function Cs(e, t) {
|
|
852
|
-
return d(), E(ee, {
|
|
853
|
-
mode: "out-in",
|
|
854
|
-
name: "toggle-visibility",
|
|
855
|
-
enterActiveClass: e.$style["enter-active"],
|
|
856
|
-
leaveActiveClass: e.$style["leave-active"],
|
|
857
|
-
enterToClass: e.$style["enter-to"],
|
|
858
|
-
enterFromClass: e.$style["enter-from"],
|
|
859
|
-
leaveToClass: e.$style["leave-to"],
|
|
860
|
-
leaveFromClass: e.$style["leave-from"]
|
|
861
|
-
}, {
|
|
862
|
-
default: j(() => [
|
|
863
|
-
K(e.$slots, "default")
|
|
864
|
-
]),
|
|
865
|
-
_: 3
|
|
866
|
-
}, 8, ["enterActiveClass", "leaveActiveClass", "enterToClass", "enterFromClass", "leaveToClass", "leaveFromClass"]);
|
|
867
|
-
}
|
|
868
|
-
const Is = {
|
|
869
|
-
$style: Ms
|
|
870
|
-
}, Fs = /* @__PURE__ */ C(Ls, [["render", Cs], ["__cssModules", Is]]), Rs = /* @__PURE__ */ B({
|
|
248
|
+
}), ht = "Icon__root_9c34a", vt = "Icon__color_9a568", yt = {
|
|
249
|
+
root: ht,
|
|
250
|
+
color: vt
|
|
251
|
+
}, gt = {
|
|
252
|
+
$style: yt
|
|
253
|
+
}, U = /* @__PURE__ */ p(mt, [["__cssModules", gt]]), wt = /* @__PURE__ */ T({
|
|
871
254
|
__name: "ToastItem",
|
|
872
255
|
props: {
|
|
873
|
-
icon: {},
|
|
874
256
|
title: {},
|
|
875
|
-
|
|
876
|
-
buttonText: {},
|
|
877
|
-
onButtonClick: { type: Function }
|
|
257
|
+
view: { default: "success" }
|
|
878
258
|
},
|
|
879
|
-
setup(
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
}
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
timer: Es,
|
|
921
|
-
button: js,
|
|
922
|
-
title: As
|
|
923
|
-
}, Ds = {
|
|
924
|
-
$style: Vs
|
|
925
|
-
}, Ns = /* @__PURE__ */ C(Rs, [["__cssModules", Ds]]);
|
|
926
|
-
class Gs {
|
|
259
|
+
setup(s) {
|
|
260
|
+
const e = $(() => s.view === "success" ? "success_filled" : "warning_filled");
|
|
261
|
+
return (t, a) => {
|
|
262
|
+
const r = de("IconBase");
|
|
263
|
+
return g(), w("div", {
|
|
264
|
+
class: u([t.$style.root, t.$style[`view_${t.view}`]]),
|
|
265
|
+
onClick: a[0] || (a[0] = (i) => t.$emit("click"))
|
|
266
|
+
}, [
|
|
267
|
+
F(E(U), {
|
|
268
|
+
size: 18,
|
|
269
|
+
name: e.value,
|
|
270
|
+
color: "icon-common-base-tertiary-default"
|
|
271
|
+
}, null, 8, ["name"]),
|
|
272
|
+
F(E(H), {
|
|
273
|
+
class: u(t.$style.title),
|
|
274
|
+
size: "subhead",
|
|
275
|
+
color: "text-common-base-inverse-default",
|
|
276
|
+
align: "left"
|
|
277
|
+
}, {
|
|
278
|
+
default: O(() => [
|
|
279
|
+
_e(fe(t.title), 1)
|
|
280
|
+
]),
|
|
281
|
+
_: 1
|
|
282
|
+
}, 8, ["class"]),
|
|
283
|
+
F(r, {
|
|
284
|
+
size: 18,
|
|
285
|
+
name: "icon-cross",
|
|
286
|
+
color: "icon-common-base-tertiary-default"
|
|
287
|
+
})
|
|
288
|
+
], 2);
|
|
289
|
+
};
|
|
290
|
+
}
|
|
291
|
+
}), $t = "ToastItem__root_ef96a", Tt = "ToastItem__view_success_1372e", bt = "ToastItem__view_danger_4b814", pt = "ToastItem__title_949d1", Ct = {
|
|
292
|
+
root: $t,
|
|
293
|
+
view_success: Tt,
|
|
294
|
+
view_danger: bt,
|
|
295
|
+
title: pt
|
|
296
|
+
}, St = {
|
|
297
|
+
$style: Ct
|
|
298
|
+
}, Ft = /* @__PURE__ */ p(wt, [["__cssModules", St]]);
|
|
299
|
+
class xt {
|
|
927
300
|
constructor() {
|
|
928
|
-
|
|
929
|
-
|
|
301
|
+
N(this, "list", m([]));
|
|
302
|
+
N(this, "timeouts", m({}));
|
|
930
303
|
}
|
|
931
304
|
restartTimeouts() {
|
|
932
|
-
Object.keys(this.timeouts.value).forEach((
|
|
933
|
-
this.timeouts.value[
|
|
305
|
+
Object.keys(this.timeouts.value).forEach((e, t) => {
|
|
306
|
+
this.timeouts.value[e] = setTimeout(
|
|
934
307
|
() => {
|
|
935
|
-
this.remove(+
|
|
308
|
+
this.remove(+e), clearTimeout(this.timeouts.value[e]);
|
|
936
309
|
},
|
|
937
|
-
4e3 +
|
|
310
|
+
4e3 + t * 300
|
|
938
311
|
);
|
|
939
312
|
});
|
|
940
313
|
}
|
|
941
314
|
pauseTimeouts() {
|
|
942
|
-
Object.keys(this.timeouts.value).forEach((
|
|
943
|
-
clearTimeout(this.timeouts.value[
|
|
315
|
+
Object.keys(this.timeouts.value).forEach((e) => {
|
|
316
|
+
clearTimeout(this.timeouts.value[e]);
|
|
944
317
|
});
|
|
945
318
|
}
|
|
946
|
-
remove(
|
|
947
|
-
this.list.value = this.list.value.filter((
|
|
319
|
+
remove(e) {
|
|
320
|
+
this.list.value = this.list.value.filter((t) => t.id !== e);
|
|
948
321
|
}
|
|
949
|
-
show(
|
|
950
|
-
let
|
|
951
|
-
const
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
} :
|
|
957
|
-
...
|
|
958
|
-
title:
|
|
959
|
-
id:
|
|
960
|
-
},
|
|
961
|
-
this.remove(
|
|
962
|
-
},
|
|
322
|
+
show(e) {
|
|
323
|
+
let t;
|
|
324
|
+
const a = this.list.value[0] ? this.list.value[0].id + 1 : 1, r = 5e3;
|
|
325
|
+
typeof e == "string" ? t = {
|
|
326
|
+
id: a,
|
|
327
|
+
title: e,
|
|
328
|
+
view: "success"
|
|
329
|
+
} : t = {
|
|
330
|
+
...e,
|
|
331
|
+
title: e.title,
|
|
332
|
+
id: a
|
|
333
|
+
}, this.list.value.length === 3 && this.list.value.pop(), this.list.value.unshift(t), this.timeouts.value[a] = setTimeout(() => {
|
|
334
|
+
this.remove(t.id), clearTimeout(this.timeouts.value[a]);
|
|
335
|
+
}, r);
|
|
963
336
|
}
|
|
964
|
-
showError(
|
|
337
|
+
showError(e = "Упс, что-то пошло не так :(") {
|
|
965
338
|
this.show({
|
|
966
|
-
title:
|
|
967
|
-
|
|
339
|
+
title: e,
|
|
340
|
+
view: "danger"
|
|
968
341
|
});
|
|
969
342
|
}
|
|
970
|
-
install(
|
|
971
|
-
|
|
343
|
+
install(e) {
|
|
344
|
+
e.provide(q, this);
|
|
972
345
|
}
|
|
973
346
|
}
|
|
974
|
-
const
|
|
347
|
+
const q = Symbol("ToastService"), Wt = new xt(), It = ["id"], Mt = /* @__PURE__ */ T({
|
|
975
348
|
__name: "Toaster",
|
|
976
|
-
setup(
|
|
977
|
-
let
|
|
978
|
-
const
|
|
979
|
-
function
|
|
980
|
-
const
|
|
349
|
+
setup(s) {
|
|
350
|
+
let e;
|
|
351
|
+
const t = Z(q), a = m(), r = m([]), i = m(!1), S = m(I()), c = m(I()), L = m(I()), G = m(I());
|
|
352
|
+
function b(o) {
|
|
353
|
+
const l = V(o);
|
|
981
354
|
return {
|
|
982
355
|
toaster: {
|
|
983
|
-
transform:
|
|
356
|
+
transform: S.value[l]
|
|
984
357
|
},
|
|
985
358
|
body: {
|
|
986
|
-
transform:
|
|
359
|
+
transform: c.value[l]
|
|
987
360
|
},
|
|
988
361
|
left: {
|
|
989
|
-
transform:
|
|
362
|
+
transform: L.value[l]
|
|
990
363
|
},
|
|
991
364
|
right: {
|
|
992
|
-
transform:
|
|
365
|
+
transform: G.value[l]
|
|
993
366
|
}
|
|
994
367
|
};
|
|
995
368
|
}
|
|
996
|
-
function
|
|
997
|
-
(
|
|
369
|
+
function x(o, l) {
|
|
370
|
+
(l !== "main" || S.value.main.length) && (S.value[l] = o.mainTranslate), c.value[l] = o.scale, L.value[l] = o.leftTranslate, G.value[l] = o.rightTranslate;
|
|
998
371
|
}
|
|
999
|
-
function
|
|
1000
|
-
let
|
|
1001
|
-
|
|
1002
|
-
const
|
|
1003
|
-
|
|
1004
|
-
}),
|
|
372
|
+
function k() {
|
|
373
|
+
let l = 0, f = 0;
|
|
374
|
+
r.value.sort(K).forEach((_, n) => {
|
|
375
|
+
const d = V(n), C = D(`${l}px`);
|
|
376
|
+
x(C, d), l += _.clientHeight + 12, f = Math.max(f, _.clientWidth);
|
|
377
|
+
}), a.value.style.height = `${l}px`, a.value.style.width = `${f}px`;
|
|
1005
378
|
}
|
|
1006
|
-
function
|
|
1007
|
-
|
|
1008
|
-
const [
|
|
1009
|
-
if (_
|
|
1010
|
-
const
|
|
1011
|
-
mainElement:
|
|
1012
|
-
element:
|
|
379
|
+
function R() {
|
|
380
|
+
z(() => {
|
|
381
|
+
const [o, l, f] = r.value.sort(K), _ = D("0");
|
|
382
|
+
if (x(_, "main"), l) {
|
|
383
|
+
const n = A({
|
|
384
|
+
mainElement: o,
|
|
385
|
+
element: l,
|
|
1013
386
|
translateY: "-15%",
|
|
1014
387
|
index: 1
|
|
1015
388
|
});
|
|
1016
|
-
|
|
389
|
+
x(n, "second");
|
|
1017
390
|
}
|
|
1018
|
-
if (
|
|
1019
|
-
const
|
|
1020
|
-
mainElement:
|
|
1021
|
-
element:
|
|
391
|
+
if (f) {
|
|
392
|
+
const n = A({
|
|
393
|
+
mainElement: o,
|
|
394
|
+
element: f,
|
|
1022
395
|
translateY: "-30%",
|
|
1023
396
|
index: 2
|
|
1024
397
|
});
|
|
1025
|
-
|
|
1026
|
-
var
|
|
1027
|
-
const
|
|
398
|
+
x(n, "third"), z(() => {
|
|
399
|
+
var C;
|
|
400
|
+
const d = (C = a.value) == null ? void 0 : C.querySelector(
|
|
1028
401
|
".toaster-leave-active"
|
|
1029
402
|
);
|
|
1030
|
-
if (
|
|
1031
|
-
const
|
|
1032
|
-
mainElement:
|
|
1033
|
-
element:
|
|
403
|
+
if (d) {
|
|
404
|
+
const v = A({
|
|
405
|
+
mainElement: o,
|
|
406
|
+
element: d,
|
|
1034
407
|
translateY: "45%",
|
|
1035
408
|
index: 3
|
|
1036
409
|
});
|
|
1037
|
-
|
|
410
|
+
d.setAttribute(
|
|
1038
411
|
"style",
|
|
1039
|
-
`transform: ${
|
|
1040
|
-
),
|
|
412
|
+
`transform: ${v.mainTranslate};`
|
|
413
|
+
), d.children[1].setAttribute(
|
|
1041
414
|
"style",
|
|
1042
|
-
`transform: ${
|
|
1043
|
-
),
|
|
415
|
+
`transform: ${v.scale};`
|
|
416
|
+
), d.children[0].setAttribute(
|
|
1044
417
|
"style",
|
|
1045
|
-
`transform: ${
|
|
1046
|
-
),
|
|
418
|
+
`transform: ${v.leftTranslate};`
|
|
419
|
+
), d.children[2].setAttribute(
|
|
1047
420
|
"style",
|
|
1048
|
-
`transform: ${
|
|
1049
|
-
),
|
|
421
|
+
`transform: ${v.rightTranslate};`
|
|
422
|
+
), d.children[4].setAttribute(
|
|
1050
423
|
"style",
|
|
1051
|
-
`transform: ${
|
|
1052
|
-
),
|
|
424
|
+
`transform: ${v.scale};`
|
|
425
|
+
), d.children[3].setAttribute(
|
|
1053
426
|
"style",
|
|
1054
|
-
`transform: ${
|
|
1055
|
-
),
|
|
427
|
+
`transform: ${v.leftTranslate};`
|
|
428
|
+
), d.children[5].setAttribute(
|
|
1056
429
|
"style",
|
|
1057
|
-
`transform: ${
|
|
430
|
+
`transform: ${v.rightTranslate};`
|
|
1058
431
|
);
|
|
1059
432
|
}
|
|
1060
433
|
});
|
|
1061
434
|
}
|
|
1062
435
|
});
|
|
1063
436
|
}
|
|
1064
|
-
function
|
|
1065
|
-
|
|
437
|
+
function ee(o) {
|
|
438
|
+
i.value && (t == null || t.remove(o), k());
|
|
1066
439
|
}
|
|
1067
|
-
function
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
}, 5e3));
|
|
440
|
+
function te() {
|
|
441
|
+
!i.value && (t != null && t.list.value) && t.list.value.length > 1 ? (i.value = !0, t == null || t.pauseTimeouts(), k(), e = setTimeout(() => {
|
|
442
|
+
i.value = !1, R(), a.value.style.height = "auto", a.value.style.width = "auto", t == null || t.restartTimeouts(), clearTimeout(e);
|
|
443
|
+
}, 5e3)) : t != null && t.list.value[0] && !i.value && (t == null || t.remove(t == null ? void 0 : t.list.value[0].id));
|
|
1071
444
|
}
|
|
1072
|
-
|
|
1073
|
-
() =>
|
|
445
|
+
Y(
|
|
446
|
+
() => t == null ? void 0 : t.list,
|
|
1074
447
|
() => {
|
|
1075
|
-
|
|
448
|
+
i.value ? k() : R();
|
|
1076
449
|
},
|
|
1077
450
|
{ deep: !0 }
|
|
1078
451
|
);
|
|
1079
|
-
function
|
|
452
|
+
function I() {
|
|
1080
453
|
return {
|
|
1081
454
|
main: "",
|
|
1082
455
|
second: "",
|
|
1083
456
|
third: ""
|
|
1084
457
|
};
|
|
1085
458
|
}
|
|
1086
|
-
function
|
|
1087
|
-
switch (
|
|
459
|
+
function V(o) {
|
|
460
|
+
switch (o) {
|
|
1088
461
|
case 0:
|
|
1089
462
|
return "main";
|
|
1090
463
|
case 1:
|
|
@@ -1093,94 +466,98 @@ const ve = Symbol("ToastService"), nn = new Gs(), Ws = ["id"], Hs = /* @__PURE__
|
|
|
1093
466
|
return "third";
|
|
1094
467
|
}
|
|
1095
468
|
}
|
|
1096
|
-
function
|
|
1097
|
-
return Number(
|
|
469
|
+
function K(o, l) {
|
|
470
|
+
return Number(l.id) - Number(o.id);
|
|
1098
471
|
}
|
|
1099
|
-
function
|
|
1100
|
-
mainElement:
|
|
1101
|
-
element:
|
|
1102
|
-
translateY:
|
|
1103
|
-
index:
|
|
472
|
+
function A({
|
|
473
|
+
mainElement: o,
|
|
474
|
+
element: l,
|
|
475
|
+
translateY: f,
|
|
476
|
+
index: _
|
|
1104
477
|
}) {
|
|
1105
|
-
const
|
|
478
|
+
const n = l.getBoundingClientRect(), d = o.getBoundingClientRect(), C = d.height / n.height, v = (d.width - 10 * _) / n.width, W = (n.width - v * n.width) / 2;
|
|
1106
479
|
return {
|
|
1107
|
-
mainTranslate: `translateY(${
|
|
1108
|
-
scale: `scale(${
|
|
1109
|
-
leftTranslate: `translateX(${
|
|
1110
|
-
rightTranslate: `translateX(${-
|
|
480
|
+
mainTranslate: `translateY(${f}) translateX(-50%)`,
|
|
481
|
+
scale: `scale(${v}, ${C})`,
|
|
482
|
+
leftTranslate: `translateX(${W - 12}px)`,
|
|
483
|
+
rightTranslate: `translateX(${-W + 12}px)`
|
|
1111
484
|
};
|
|
1112
485
|
}
|
|
1113
|
-
function
|
|
486
|
+
function D(o) {
|
|
1114
487
|
return {
|
|
1115
|
-
mainTranslate: `translateY(${
|
|
488
|
+
mainTranslate: `translateY(${o}) translateX(-50%)`,
|
|
1116
489
|
scale: "scale(1, 1)",
|
|
1117
490
|
leftTranslate: "translateX(-12px)",
|
|
1118
491
|
rightTranslate: "translateX(12px)"
|
|
1119
492
|
};
|
|
1120
493
|
}
|
|
1121
|
-
return (
|
|
494
|
+
return (o, l) => (g(), w("div", {
|
|
1122
495
|
ref_key: "rootRef",
|
|
1123
|
-
ref:
|
|
1124
|
-
class:
|
|
1125
|
-
onClick:
|
|
496
|
+
ref: a,
|
|
497
|
+
class: u([o.$style.root, i.value && o.$style["is-expand"]]),
|
|
498
|
+
onClick: te
|
|
1126
499
|
}, [
|
|
1127
|
-
|
|
500
|
+
F(me, {
|
|
1128
501
|
tag: "div",
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
502
|
+
enterFromClass: o.$style["toaster-enter-from"],
|
|
503
|
+
enterToClass: o.$style["toaster-enter-to"],
|
|
504
|
+
enterActiveClass: o.$style["toaster-enter-active"],
|
|
505
|
+
leaveFromClass: o.$style["toaster-leave-from"],
|
|
506
|
+
leaveToClass: o.$style["toaster-leave-to"],
|
|
507
|
+
leaveActiveClass: o.$style["toaster-leave-active"]
|
|
1135
508
|
}, {
|
|
1136
|
-
default:
|
|
1137
|
-
var
|
|
509
|
+
default: O(() => {
|
|
510
|
+
var f;
|
|
1138
511
|
return [
|
|
1139
|
-
(
|
|
1140
|
-
key:
|
|
1141
|
-
id: `${
|
|
512
|
+
(g(!0), w(he, null, ve((f = E(t)) == null ? void 0 : f.list.value, (_, n) => (g(), w("div", {
|
|
513
|
+
key: _.id,
|
|
514
|
+
id: `${_.id}`,
|
|
1142
515
|
ref_for: !0,
|
|
1143
516
|
ref_key: "toastersRef",
|
|
1144
|
-
ref:
|
|
1145
|
-
class:
|
|
1146
|
-
|
|
517
|
+
ref: r,
|
|
518
|
+
class: u([
|
|
519
|
+
o.$style.toaster,
|
|
520
|
+
o.$style[`view_${_.view ?? "success"}`],
|
|
521
|
+
i.value ? "is-expand" : ""
|
|
522
|
+
]),
|
|
523
|
+
style: y(b(n).toaster)
|
|
1147
524
|
}, [
|
|
1148
|
-
|
|
1149
|
-
class:
|
|
1150
|
-
style:
|
|
525
|
+
h("div", {
|
|
526
|
+
class: u(o.$style.left),
|
|
527
|
+
style: y(b(n).left)
|
|
1151
528
|
}, null, 6),
|
|
1152
|
-
|
|
1153
|
-
class:
|
|
1154
|
-
style:
|
|
529
|
+
h("div", {
|
|
530
|
+
class: u(o.$style.body),
|
|
531
|
+
style: y(b(n).body)
|
|
1155
532
|
}, [
|
|
1156
|
-
|
|
1157
|
-
onClick: () =>
|
|
533
|
+
F(Ft, j({ ref_for: !0 }, _, {
|
|
534
|
+
onClick: () => ee(_.id)
|
|
1158
535
|
}), null, 16, ["onClick"])
|
|
1159
536
|
], 6),
|
|
1160
|
-
|
|
1161
|
-
class:
|
|
1162
|
-
style:
|
|
537
|
+
h("div", {
|
|
538
|
+
class: u(o.$style.right),
|
|
539
|
+
style: y(b(n).right)
|
|
1163
540
|
}, null, 6),
|
|
1164
|
-
|
|
1165
|
-
class:
|
|
1166
|
-
style:
|
|
541
|
+
h("div", {
|
|
542
|
+
class: u([o.$style.left, o.$style.shadow]),
|
|
543
|
+
style: y(b(n).left)
|
|
1167
544
|
}, null, 6),
|
|
1168
|
-
|
|
1169
|
-
class:
|
|
1170
|
-
style:
|
|
545
|
+
h("div", {
|
|
546
|
+
class: u([o.$style.body, o.$style.shadow]),
|
|
547
|
+
style: y(b(n).body)
|
|
1171
548
|
}, null, 6),
|
|
1172
|
-
|
|
1173
|
-
class:
|
|
1174
|
-
style:
|
|
549
|
+
h("div", {
|
|
550
|
+
class: u([o.$style.right, o.$style.shadow]),
|
|
551
|
+
style: y(b(n).right)
|
|
1175
552
|
}, null, 6)
|
|
1176
|
-
], 14,
|
|
553
|
+
], 14, It))), 128))
|
|
1177
554
|
];
|
|
1178
555
|
}),
|
|
1179
556
|
_: 1
|
|
1180
|
-
}, 8, ["
|
|
557
|
+
}, 8, ["enterFromClass", "enterToClass", "enterActiveClass", "leaveFromClass", "leaveToClass", "leaveActiveClass"])
|
|
1181
558
|
], 2));
|
|
1182
559
|
}
|
|
1183
|
-
}),
|
|
560
|
+
}), Et = "Toaster__root_73fc8", Bt = "Toaster__toaster_72d65", Lt = "Toaster__body_22a84", kt = "Toaster__view_success_eed88", At = "Toaster__left_4f54d", Nt = "Toaster__right_9c31e", zt = "Toaster__view_danger_ab705", Pt = "Toaster__shadow_acb59", jt = {
|
|
1184
561
|
"toaster-enter-from": "Toaster__toaster-enter-from_efcfd",
|
|
1185
562
|
"toaster-enter": "Toaster__toaster-enter_7d5d8",
|
|
1186
563
|
"toaster-enter-to": "Toaster__toaster-enter-to_6201a",
|
|
@@ -1189,64 +566,67 @@ const ve = Symbol("ToastService"), nn = new Gs(), Ws = ["id"], Hs = /* @__PURE__
|
|
|
1189
566
|
"toaster-leave-from": "Toaster__toaster-leave-from_f98c0",
|
|
1190
567
|
"toaster-leave": "Toaster__toaster-leave_948f8",
|
|
1191
568
|
"toaster-leave-to": "Toaster__toaster-leave-to_05c33",
|
|
1192
|
-
root:
|
|
569
|
+
root: Et,
|
|
1193
570
|
"is-expand": "Toaster__is-expand_984b8",
|
|
1194
|
-
toaster:
|
|
1195
|
-
body:
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
},
|
|
571
|
+
toaster: Bt,
|
|
572
|
+
body: Lt,
|
|
573
|
+
view_success: kt,
|
|
574
|
+
left: At,
|
|
575
|
+
right: Nt,
|
|
576
|
+
view_danger: zt,
|
|
577
|
+
shadow: Pt
|
|
578
|
+
}, Ot = {
|
|
579
|
+
$style: jt
|
|
580
|
+
}, Gt = /* @__PURE__ */ p(Mt, [["__cssModules", Ot]]);
|
|
581
|
+
class Rt {
|
|
582
|
+
async install() {
|
|
583
|
+
if (!document.getElementById("svg-sprite"))
|
|
584
|
+
try {
|
|
585
|
+
const t = await (await fetch("/sprite/sprite.svg")).text(), a = document.createElement("div");
|
|
586
|
+
a.id = "svg-sprite", a.style.display = "none", a.innerHTML = t, document.body.insertBefore(a, document.body.firstChild);
|
|
587
|
+
} catch (e) {
|
|
588
|
+
console.error("Failed to load SVG sprite:", e);
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
}
|
|
592
|
+
const Xt = new Rt(), J = {
|
|
1202
593
|
interactionType: "web"
|
|
1203
|
-
},
|
|
1204
|
-
|
|
1205
|
-
...
|
|
1206
|
-
...
|
|
594
|
+
}, Q = Symbol("GlobalConfig"), Yt = (s) => {
|
|
595
|
+
ye(Q, {
|
|
596
|
+
...J,
|
|
597
|
+
...s
|
|
1207
598
|
});
|
|
1208
|
-
},
|
|
599
|
+
}, Zt = () => Z(Q, J), Ht = {
|
|
1209
600
|
KGS: "KGS"
|
|
1210
|
-
},
|
|
1211
|
-
|
|
1212
|
-
Ko,
|
|
1213
|
-
ue,
|
|
1214
|
-
de,
|
|
601
|
+
}, Vt = [
|
|
602
|
+
Fe,
|
|
1215
603
|
Response,
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
install: (e) => {
|
|
1227
|
-
tn.forEach((t) => {
|
|
1228
|
-
e.component(`${t.name}`, t);
|
|
604
|
+
Le,
|
|
605
|
+
Xe,
|
|
606
|
+
H,
|
|
607
|
+
_t,
|
|
608
|
+
Gt,
|
|
609
|
+
U
|
|
610
|
+
], Ut = {
|
|
611
|
+
install: (s) => {
|
|
612
|
+
Vt.forEach((e) => {
|
|
613
|
+
s.component(`${e.name}`, e);
|
|
1229
614
|
});
|
|
1230
615
|
}
|
|
1231
616
|
};
|
|
1232
617
|
export {
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
Fs as TransitionVisibilityToggle,
|
|
1248
|
-
cn as default,
|
|
1249
|
-
nn as toastService,
|
|
1250
|
-
ln as useGlobalConfig,
|
|
1251
|
-
an as useGlobalConfigProvide
|
|
618
|
+
Ht as Currency,
|
|
619
|
+
U as Icon,
|
|
620
|
+
Fe as Loader,
|
|
621
|
+
Le as SkeletonWrapper,
|
|
622
|
+
Xe as TheImage,
|
|
623
|
+
H as TheText,
|
|
624
|
+
q as ToastServiceKey,
|
|
625
|
+
Gt as Toaster,
|
|
626
|
+
_t as TransitionFade,
|
|
627
|
+
Ut as default,
|
|
628
|
+
Xt as spriteService,
|
|
629
|
+
Wt as toastService,
|
|
630
|
+
Zt as useGlobalConfig,
|
|
631
|
+
Yt as useGlobalConfigProvide
|
|
1252
632
|
};
|