@seresweb/website-component 2.0.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.
Files changed (125) hide show
  1. package/README.md +144 -0
  2. package/dist/_vars-BV4QQF-p.js +4 -0
  3. package/dist/_vars-CyrPevgT.cjs +1 -0
  4. package/dist/cjs/Input.cjs +1 -0
  5. package/dist/cjs/accordion-info-panel.cjs +1 -0
  6. package/dist/cjs/animated-number.cjs +1 -0
  7. package/dist/cjs/drawer.cjs +1 -0
  8. package/dist/cjs/dropdown.cjs +1 -0
  9. package/dist/cjs/gradual-highlight.cjs +1 -0
  10. package/dist/cjs/horizontal-viewer.cjs +1 -0
  11. package/dist/cjs/image-indicator.cjs +1 -0
  12. package/dist/cjs/index.cjs +1 -0
  13. package/dist/cjs/layz-image.cjs +1 -0
  14. package/dist/cjs/parameter-box.cjs +1 -0
  15. package/dist/cjs/radio.cjs +1 -0
  16. package/dist/cjs/swiper-normal.cjs +1 -0
  17. package/dist/cjs/swiper-vehicle.cjs +1 -0
  18. package/dist/cjs/tab-indicator.cjs +1 -0
  19. package/dist/cjs/video.cjs +1 -0
  20. package/dist/css/accordion-info-panel.css +1 -0
  21. package/dist/css/drawer.css +1 -0
  22. package/dist/css/dropdown.css +1 -0
  23. package/dist/css/gradual-highlight.css +1 -0
  24. package/dist/css/horizontal-viewer.css +1 -0
  25. package/dist/css/image-indicator.css +1 -0
  26. package/dist/css/input.css +1 -0
  27. package/dist/css/layz-image.css +1 -0
  28. package/dist/css/parameter-box.css +1 -0
  29. package/dist/css/radio.css +1 -0
  30. package/dist/css/swiper-normal.css +1 -0
  31. package/dist/css/swiper-vehicle.css +1 -0
  32. package/dist/css/tab-indicator.css +1 -0
  33. package/dist/css/video.css +1 -0
  34. package/dist/es/Input.mjs +70 -0
  35. package/dist/es/accordion-info-panel.mjs +145 -0
  36. package/dist/es/animated-number.mjs +72 -0
  37. package/dist/es/drawer.mjs +174 -0
  38. package/dist/es/dropdown.mjs +62 -0
  39. package/dist/es/gradual-highlight.mjs +90 -0
  40. package/dist/es/horizontal-viewer.mjs +4 -0
  41. package/dist/es/image-indicator.mjs +4 -0
  42. package/dist/es/index.mjs +60 -0
  43. package/dist/es/layz-image.mjs +51 -0
  44. package/dist/es/parameter-box.mjs +115 -0
  45. package/dist/es/radio.mjs +56 -0
  46. package/dist/es/swiper-normal.mjs +4 -0
  47. package/dist/es/swiper-vehicle.mjs +4 -0
  48. package/dist/es/tab-indicator.mjs +184 -0
  49. package/dist/es/video.mjs +246 -0
  50. package/dist/global.d.ts +22 -0
  51. package/dist/index-BgNMAlW8.js +536 -0
  52. package/dist/index-BrggpRcU.js +5287 -0
  53. package/dist/index-DrnEpWXW.cjs +5 -0
  54. package/dist/index-LswhGmG3.cjs +1 -0
  55. package/dist/index.css +1 -0
  56. package/dist/scss/_animate.scss +132 -0
  57. package/dist/scss/_vars.scss +1 -0
  58. package/dist/scss/accordion-info-panel.scss +104 -0
  59. package/dist/scss/drawer.scss +64 -0
  60. package/dist/scss/dropdown.scss +21 -0
  61. package/dist/scss/gradual-highlight.scss +26 -0
  62. package/dist/scss/horizontal-viewer.scss +161 -0
  63. package/dist/scss/image-indicator.scss +79 -0
  64. package/dist/scss/index.scss +17 -0
  65. package/dist/scss/input.scss +46 -0
  66. package/dist/scss/layz-image.scss +11 -0
  67. package/dist/scss/parameter-box.scss +94 -0
  68. package/dist/scss/radio.scss +70 -0
  69. package/dist/scss/swiper-normal.scss +117 -0
  70. package/dist/scss/swiper-vehicle.scss +123 -0
  71. package/dist/scss/tab-indicator.scss +148 -0
  72. package/dist/scss/video.scss +169 -0
  73. package/dist/types/components/Input/Input.vue.d.ts +26 -0
  74. package/dist/types/components/Input/index.d.ts +6 -0
  75. package/dist/types/components/Input/type.d.ts +9 -0
  76. package/dist/types/components/_utils.d.ts +1 -0
  77. package/dist/types/components/_vars.d.ts +1 -0
  78. package/dist/types/components/accordion-info-panel/accordion-info-panel.vue.d.ts +5 -0
  79. package/dist/types/components/accordion-info-panel/index.d.ts +6 -0
  80. package/dist/types/components/accordion-info-panel/type.d.ts +26 -0
  81. package/dist/types/components/animated-number/animated-number.vue.d.ts +12 -0
  82. package/dist/types/components/animated-number/index.d.ts +6 -0
  83. package/dist/types/components/animated-number/type.d.ts +50 -0
  84. package/dist/types/components/drawer/drawer.vue.d.ts +37 -0
  85. package/dist/types/components/drawer/index.d.ts +6 -0
  86. package/dist/types/components/drawer/type.d.ts +43 -0
  87. package/dist/types/components/drawer/u.d.ts +1 -0
  88. package/dist/types/components/dropdown/dropdown.vue.d.ts +18 -0
  89. package/dist/types/components/dropdown/index.d.ts +5 -0
  90. package/dist/types/components/gradual-highlight/gradual-highlight.vue.d.ts +10 -0
  91. package/dist/types/components/gradual-highlight/index.d.ts +6 -0
  92. package/dist/types/components/gradual-highlight/type.d.ts +17 -0
  93. package/dist/types/components/horizontal-viewer/horizontal-viewer.vue.d.ts +5 -0
  94. package/dist/types/components/horizontal-viewer/index.d.ts +6 -0
  95. package/dist/types/components/horizontal-viewer/mb-viewer.vue.d.ts +5 -0
  96. package/dist/types/components/horizontal-viewer/pc-viewer.vue.d.ts +15 -0
  97. package/dist/types/components/horizontal-viewer/type.d.ts +15 -0
  98. package/dist/types/components/image-indicator/image-indicator.vue.d.ts +11 -0
  99. package/dist/types/components/image-indicator/index.d.ts +6 -0
  100. package/dist/types/components/image-indicator/type.d.ts +18 -0
  101. package/dist/types/components/index.d.ts +21 -0
  102. package/dist/types/components/layz-image/index.d.ts +6 -0
  103. package/dist/types/components/layz-image/layz-image.vue.d.ts +3 -0
  104. package/dist/types/components/layz-image/type.d.ts +35 -0
  105. package/dist/types/components/parameter-box/index.d.ts +6 -0
  106. package/dist/types/components/parameter-box/parameter-box.vue.d.ts +6 -0
  107. package/dist/types/components/parameter-box/type.d.ts +46 -0
  108. package/dist/types/components/radio/index.d.ts +6 -0
  109. package/dist/types/components/radio/radio.vue.d.ts +9 -0
  110. package/dist/types/components/radio/type.d.ts +8 -0
  111. package/dist/types/components/resolver.d.ts +18 -0
  112. package/dist/types/components/swiper-normal/index.d.ts +6 -0
  113. package/dist/types/components/swiper-normal/swiper-normal.vue.d.ts +19 -0
  114. package/dist/types/components/swiper-normal/type.d.ts +79 -0
  115. package/dist/types/components/swiper-vehicle/index.d.ts +6 -0
  116. package/dist/types/components/swiper-vehicle/swiper-vehicle.vue.d.ts +15 -0
  117. package/dist/types/components/swiper-vehicle/type.d.ts +54 -0
  118. package/dist/types/components/tab-indicator/index.d.ts +6 -0
  119. package/dist/types/components/tab-indicator/tab-indicator.vue.d.ts +15 -0
  120. package/dist/types/components/tab-indicator/type.d.ts +28 -0
  121. package/dist/types/components/video/index.d.ts +6 -0
  122. package/dist/types/components/video/type.d.ts +38 -0
  123. package/dist/types/components/video/video-wrapper.vue.d.ts +33 -0
  124. package/dist/types/components/video/video.vue.d.ts +183 -0
  125. package/package.json +48 -0
@@ -0,0 +1,174 @@
1
+ import { defineComponent as Z, useSlots as j, computed as c, ref as $, watch as b, onMounted as G, onBeforeUnmount as J, createElementBlock as p, openBlock as i, Fragment as K, createCommentVNode as h, createElementVNode as w, normalizeStyle as m, normalizeClass as o, renderSlot as y, createBlock as z, Teleport as Q, createVNode as W, Transition as I, unref as Y, withCtx as S, withDirectives as M, vShow as R } from "vue";
2
+ import { P as a } from "../_vars-BV4QQF-p.js";
3
+ const k = /* @__PURE__ */ (() => {
4
+ let l = 1e3;
5
+ return () => ++l;
6
+ })(), T = /* @__PURE__ */ Z({
7
+ __name: "drawer",
8
+ props: {
9
+ modelValue: { type: Boolean, default: !1 },
10
+ direction: { default: "right" },
11
+ showMask: { type: Boolean, default: !0 },
12
+ maskClosable: { type: Boolean, default: !0 },
13
+ hoverable: { type: Boolean, default: !1 },
14
+ triggerOnTop: { type: Boolean },
15
+ width: {},
16
+ class: {}
17
+ },
18
+ emits: ["update:modelValue"],
19
+ setup(l, { emit: O }) {
20
+ const D = `${a}-drawer`, N = `${a}-drawer-wrapper`, A = `${a}-drawer-content`, F = `${a}-drawer-mask`, _ = `${a}-drawer-trigger`, P = `${a}-drawer-header`, r = l, q = O, B = j(), L = c(() => !!B.trigger), x = c(() => !!B.header), s = $(!!r.modelValue), v = $(null), d = $(null);
21
+ b(
22
+ () => r.modelValue,
23
+ (e) => s.value = !!e
24
+ ), b(s, (e) => q("update:modelValue", e));
25
+ const H = c(() => `${a}-drawer-${r.direction}`), U = c(() => `${a}-drawer-${r.direction}`), u = c(() => {
26
+ const e = {
27
+ zIndex: k()
28
+ }, t = {}, n = { zIndex: k() }, V = { zIndex: k() };
29
+ return (r.direction === "left" || r.direction === "right") && (V.width = r.width || "50vw"), r.triggerOnTop && (t.zIndex = k()), {
30
+ main: e,
31
+ mask: n,
32
+ wrapper: V,
33
+ trigger: t
34
+ };
35
+ }), X = () => {
36
+ r.maskClosable !== !1 && (s.value = !1);
37
+ };
38
+ let C = [], E = null;
39
+ const f = () => {
40
+ E && clearTimeout(E), s.value = !0;
41
+ }, g = () => {
42
+ E = setTimeout(() => {
43
+ s.value = !1;
44
+ }, 200);
45
+ };
46
+ return G(() => {
47
+ var e, t;
48
+ r.hoverable && v.value && (C = Array.from(v.value.querySelectorAll("[data-hover-trigger]")), C.forEach((n) => {
49
+ n.addEventListener("mouseenter", f), n.addEventListener("mouseleave", g);
50
+ }), (e = d.value) == null || e.addEventListener("mouseenter", f), (t = d.value) == null || t.addEventListener("mouseleave", g));
51
+ }), J(() => {
52
+ var e, t;
53
+ C.forEach((n) => {
54
+ n.removeEventListener("mouseenter", f), n.removeEventListener("mouseleave", g);
55
+ }), (e = d.value) == null || e.removeEventListener("mouseenter", f), (t = d.value) == null || t.removeEventListener("mouseleave", g);
56
+ }), (e, t) => (i(), p(
57
+ K,
58
+ null,
59
+ [
60
+ L.value && !e.triggerOnTop ? (i(), p(
61
+ "div",
62
+ {
63
+ key: 0,
64
+ class: o(_),
65
+ ref_key: "triggerRef",
66
+ ref: v,
67
+ style: m(u.value.trigger)
68
+ },
69
+ [
70
+ y(e.$slots, "trigger")
71
+ ],
72
+ 4
73
+ /* STYLE */
74
+ )) : h("v-if", !0),
75
+ w(
76
+ "div",
77
+ {
78
+ class: o([D, r.class]),
79
+ style: m(u.value.main)
80
+ },
81
+ [
82
+ L.value && e.triggerOnTop ? (i(), p(
83
+ "div",
84
+ {
85
+ key: 0,
86
+ class: o(_),
87
+ ref_key: "triggerRef",
88
+ ref: v,
89
+ style: m(u.value.trigger)
90
+ },
91
+ [
92
+ y(e.$slots, "trigger")
93
+ ],
94
+ 4
95
+ /* STYLE */
96
+ )) : h("v-if", !0),
97
+ (i(), z(Q, {
98
+ to: "body",
99
+ disabled: e.triggerOnTop
100
+ }, [
101
+ e.showMask ? (i(), z(I, {
102
+ key: 0,
103
+ name: `${Y(a)}-fade`,
104
+ persisted: ""
105
+ }, {
106
+ default: S(() => [
107
+ M(w(
108
+ "div",
109
+ {
110
+ class: o(F),
111
+ style: m(u.value.mask),
112
+ onClick: X
113
+ },
114
+ null,
115
+ 4
116
+ /* STYLE */
117
+ ), [
118
+ [R, s.value]
119
+ ])
120
+ ]),
121
+ _: 1
122
+ /* STABLE */
123
+ }, 8, ["name"])) : h("v-if", !0),
124
+ W(I, {
125
+ name: H.value,
126
+ persisted: ""
127
+ }, {
128
+ default: S(() => [
129
+ M(w(
130
+ "div",
131
+ {
132
+ class: o([N, U.value]),
133
+ style: m(u.value.wrapper),
134
+ ref_key: "mainRef",
135
+ ref: d
136
+ },
137
+ [
138
+ x.value ? (i(), p("div", {
139
+ key: 0,
140
+ class: o(P)
141
+ }, [
142
+ y(e.$slots, "header")
143
+ ])) : h("v-if", !0),
144
+ w("div", {
145
+ class: o(A)
146
+ }, [
147
+ y(e.$slots, "default")
148
+ ])
149
+ ],
150
+ 6
151
+ /* CLASS, STYLE */
152
+ ), [
153
+ [R, s.value]
154
+ ])
155
+ ]),
156
+ _: 3
157
+ /* FORWARDED */
158
+ }, 8, ["name"])
159
+ ], 8, ["disabled"]))
160
+ ],
161
+ 6
162
+ /* CLASS, STYLE */
163
+ )
164
+ ],
165
+ 64
166
+ /* STABLE_FRAGMENT */
167
+ ));
168
+ }
169
+ });
170
+ T.install = (l) => (l.component("ScDrawer", T), l);
171
+ const te = T;
172
+ export {
173
+ te as ScDrawer
174
+ };
@@ -0,0 +1,62 @@
1
+ import { defineComponent as w, ref as v, createElementBlock as f, openBlock as _, normalizeClass as t, createElementVNode as a, createVNode as C, renderSlot as l, Transition as $, withCtx as h, withDirectives as g, vShow as E } from "vue";
2
+ import { P as o } from "../_vars-BV4QQF-p.js";
3
+ const r = /* @__PURE__ */ w({
4
+ __name: "dropdown",
5
+ setup(n) {
6
+ const c = `${o}-dropdown-wrapper`, d = `${o}-dropdown-trigger`, i = `${o}-dropdown-content`, p = `${o}-dropdown`, e = v(!1), u = () => {
7
+ e.value || (e.value = !0);
8
+ }, m = () => {
9
+ e.value && (e.value = !1);
10
+ };
11
+ return (s, M) => (_(), f(
12
+ "div",
13
+ {
14
+ class: t(c),
15
+ onMouseleave: m
16
+ },
17
+ [
18
+ a(
19
+ "div",
20
+ {
21
+ class: t(d),
22
+ onMouseenter: u
23
+ },
24
+ [
25
+ l(s.$slots, "default")
26
+ ],
27
+ 32
28
+ /* NEED_HYDRATION */
29
+ ),
30
+ C($, {
31
+ name: p,
32
+ persisted: ""
33
+ }, {
34
+ default: h(() => [
35
+ g(a(
36
+ "div",
37
+ {
38
+ class: t(i)
39
+ },
40
+ [
41
+ l(s.$slots, "content")
42
+ ],
43
+ 512
44
+ /* NEED_PATCH */
45
+ ), [
46
+ [E, e.value]
47
+ ])
48
+ ]),
49
+ _: 3
50
+ /* FORWARDED */
51
+ })
52
+ ],
53
+ 32
54
+ /* NEED_HYDRATION */
55
+ ));
56
+ }
57
+ });
58
+ r.install = (n) => (n.component("ScDropdown", r), n);
59
+ const N = r;
60
+ export {
61
+ N as ScDropdown
62
+ };
@@ -0,0 +1,90 @@
1
+ import { defineComponent as x, computed as A, ref as E, onMounted as q, onBeforeUnmount as z, createElementBlock as _, openBlock as w, normalizeClass as u, unref as H, Fragment as B, renderList as T, normalizeStyle as G, createElementVNode as F } from "vue";
2
+ import { P as g } from "../_vars-BV4QQF-p.js";
3
+ const I = ["innerHTML"], b = ["innerHTML"], M = /* @__PURE__ */ x({
4
+ __name: "gradual-highlight",
5
+ props: {
6
+ text: {},
7
+ originColor: { default: "#fafafa" },
8
+ highlightColor: { default: "#000" },
9
+ startRatio: { default: 0.9 },
10
+ endRatio: { default: 0.5 }
11
+ },
12
+ setup(o) {
13
+ const i = o, $ = `${g}-gradual-highlight__wrap`, C = `${g}-gradual-highlight__pass`, S = A(() => i.text.split(/(\s+)/)), l = E(), s = E(0);
14
+ let d = 0, c = 0, m = !1;
15
+ const L = () => {
16
+ const e = d - s.value;
17
+ if (Math.abs(e) < 1e-3) {
18
+ s.value = d, m = !1;
19
+ return;
20
+ }
21
+ s.value += e * 0.07, P(s.value), c = requestAnimationFrame(L);
22
+ }, h = () => {
23
+ if (!l.value) return;
24
+ const e = l.value.getBoundingClientRect(), n = window.innerHeight, t = n * i.startRatio, r = n * i.endRatio, f = t - r;
25
+ let a = (t - e.top) / f;
26
+ a = Math.max(0, Math.min(1, a)), d = a, m || (m = !0, cancelAnimationFrame(c), c = requestAnimationFrame(L));
27
+ }, P = (e) => {
28
+ var r;
29
+ const n = (r = l.value) == null ? void 0 : r.querySelectorAll(`.${$}`);
30
+ if (!n) return;
31
+ const t = 1 / n.length;
32
+ n.forEach((f, a) => {
33
+ const R = a * t;
34
+ let p = (e - R) / t;
35
+ p = Math.max(0, Math.min(1, p));
36
+ const k = Math.round(p * 100), v = f.querySelector(`.${C}`);
37
+ v && (v.style.color = i.highlightColor, v.style.width = `${k}%`);
38
+ });
39
+ }, y = () => {
40
+ h();
41
+ };
42
+ return q(() => {
43
+ window.addEventListener("scroll", y, { passive: !0 }), window.addEventListener("resize", h), h();
44
+ }), z(() => {
45
+ window.removeEventListener("scroll", y), window.removeEventListener("resize", h), cancelAnimationFrame(c);
46
+ }), (e, n) => (w(), _(
47
+ "div",
48
+ {
49
+ ref_key: "container",
50
+ ref: l,
51
+ class: u(`${H(g)}-gradual-highlight`)
52
+ },
53
+ [
54
+ (w(!0), _(
55
+ B,
56
+ null,
57
+ T(S.value, (t, r) => (w(), _(
58
+ "span",
59
+ {
60
+ key: `${t}-${r}`,
61
+ class: u($),
62
+ style: G(`color:${e.originColor}`)
63
+ },
64
+ [
65
+ F("span", {
66
+ class: u(`${H(g)}-gradual-highlight__origin`),
67
+ innerHTML: t
68
+ }, null, 10, I),
69
+ F("span", {
70
+ class: u(C),
71
+ innerHTML: t
72
+ }, null, 8, b)
73
+ ],
74
+ 4
75
+ /* STYLE */
76
+ ))),
77
+ 128
78
+ /* KEYED_FRAGMENT */
79
+ ))
80
+ ],
81
+ 2
82
+ /* CLASS */
83
+ ));
84
+ }
85
+ });
86
+ M.install = (o) => (o.component("ScGradualHighlight", M), o);
87
+ const U = M;
88
+ export {
89
+ U as ScGradualHighlight
90
+ };
@@ -0,0 +1,4 @@
1
+ import { S as e } from "../index-BgNMAlW8.js";
2
+ export {
3
+ e as ScHorizontalViewer
4
+ };
@@ -0,0 +1,4 @@
1
+ import { a as r } from "../index-BgNMAlW8.js";
2
+ export {
3
+ r as ScImageIndicator
4
+ };
@@ -0,0 +1,60 @@
1
+ import { ScInput as f } from "./Input.mjs";
2
+ import { ScAccordionInfoPanel as p } from "./accordion-info-panel.mjs";
3
+ import { ScAnimatedNumber as S } from "./animated-number.mjs";
4
+ import { ScDrawer as l } from "./drawer.mjs";
5
+ import { ScDropdown as d } from "./dropdown.mjs";
6
+ import { ScGradualHighlight as u } from "./gradual-highlight.mjs";
7
+ import { S as h, a as w, b as y } from "../index-BgNMAlW8.js";
8
+ import { ScLayzImage as g } from "./layz-image.mjs";
9
+ import { ScParameterBox as I } from "./parameter-box.mjs";
10
+ import { ScRadio as $ } from "./radio.mjs";
11
+ import { S as b } from "../index-BrggpRcU.js";
12
+ import { ScTabIndicator as v } from "./tab-indicator.mjs";
13
+ import { ScVideo as x } from "./video.mjs";
14
+ const n = "@seresweb/website-component", Z = (t = {}) => {
15
+ const s = t.prefix || "Sc", o = t.importStyle ?? "css";
16
+ return {
17
+ type: "component",
18
+ resolve: (i) => {
19
+ if (!i.startsWith(s)) return;
20
+ const c = i.slice(s.length).replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase(), a = `${n}/dist/es/${c}`;
21
+ let e;
22
+ const m = (r) => {
23
+ if (r === "scss") return `${n}/dist/scss/${c}.scss`;
24
+ if (r === "css") return `${n}/dist/css/${c}.css`;
25
+ };
26
+ if (typeof o == "function") {
27
+ const r = o(c);
28
+ r === "css" || r === "scss" ? e = m(r) : r === !0 && (e = m("css"));
29
+ } else (o === !0 || o === "css" || o === "scss") && (e = m(o === !0 ? "css" : o));
30
+ return {
31
+ name: i,
32
+ from: a,
33
+ sideEffects: e ? [e] : void 0
34
+ };
35
+ }
36
+ };
37
+ }, N = [f, p, S, l, d, u, h, w, g, I, $, y, b, v, x], j = {
38
+ install: (t) => (N.forEach((s) => {
39
+ t.use(s);
40
+ }), t)
41
+ };
42
+ export {
43
+ Z as ComponentsResolver,
44
+ p as ScAccordionInfoPanel,
45
+ S as ScAnimatedNumber,
46
+ l as ScDrawer,
47
+ d as ScDropdown,
48
+ u as ScGradualHighlight,
49
+ h as ScHorizontalViewer,
50
+ w as ScImageIndicator,
51
+ f as ScInput,
52
+ g as ScLayzImage,
53
+ I as ScParameterBox,
54
+ $ as ScRadio,
55
+ y as ScSwiperNormal,
56
+ b as ScSwiperVehicle,
57
+ v as ScTabIndicator,
58
+ x as ScVideo,
59
+ j as default
60
+ };
@@ -0,0 +1,51 @@
1
+ import { defineComponent as m, computed as l, createElementBlock as i, openBlock as u, normalizeClass as a, createElementVNode as t, normalizeStyle as d } from "vue";
2
+ const p = ["srcset"], g = ["srcset"], S = ["srcset"], h = ["src", "alt"], r = /* @__PURE__ */ m({
3
+ __name: "layz-image",
4
+ props: {
5
+ src: {},
6
+ lSrcset: {},
7
+ mSrcset: {},
8
+ sSrcset: {},
9
+ alt: {},
10
+ class: {},
11
+ imgClass: {},
12
+ style: {}
13
+ },
14
+ setup(e) {
15
+ const c = e, n = l(() => ["sc-img", c.imgClass]), o = l(() => ["sc-picture", c.class]);
16
+ return (s, y) => (u(), i(
17
+ "picture",
18
+ {
19
+ class: a(o.value)
20
+ },
21
+ [
22
+ t("source", {
23
+ srcset: s.lSrcset || s.src,
24
+ media: "(min-width: 1921px)"
25
+ }, null, 8, p),
26
+ t("source", {
27
+ srcset: s.mSrcset || s.src,
28
+ media: "(min-width: 768px)"
29
+ }, null, 8, g),
30
+ t("source", {
31
+ srcset: s.sSrcset || s.src,
32
+ media: "(max-width: 767px)"
33
+ }, null, 8, S),
34
+ t("img", {
35
+ src: s.src,
36
+ alt: s.alt,
37
+ class: a(n.value),
38
+ style: d(s.style),
39
+ loading: "lazy"
40
+ }, null, 14, h)
41
+ ],
42
+ 2
43
+ /* CLASS */
44
+ ));
45
+ }
46
+ });
47
+ r.install = (e) => (e.component("ScLayzImage", r), e);
48
+ const C = r;
49
+ export {
50
+ C as ScLayzImage
51
+ };
@@ -0,0 +1,115 @@
1
+ import { defineComponent as c, createElementBlock as n, openBlock as a, normalizeClass as d, unref as i, Fragment as v, renderList as _, createElementVNode as t, toDisplayString as r, createBlock as u } from "vue";
2
+ import { P as l } from "../_vars-BV4QQF-p.js";
3
+ import { ScAnimatedNumber as p } from "./animated-number.mjs";
4
+ const y = {
5
+ key: 0,
6
+ class: "parameter-wrap"
7
+ }, f = { class: "item-name" }, h = { class: "item-value" }, k = { key: 1 }, B = {
8
+ key: 1,
9
+ class: "parameter-wrap"
10
+ }, A = { class: "item-value" }, b = { key: 1 }, g = { class: "item-name" }, m = /* @__PURE__ */ c({
11
+ __name: "parameter-box",
12
+ props: {
13
+ dataList: {},
14
+ isAnimation: { type: Boolean, default: !0 },
15
+ showDivider: { type: Boolean },
16
+ nameOnTop: { type: Boolean },
17
+ colorMode: { default: "light" },
18
+ inline: { type: Boolean }
19
+ },
20
+ setup(s) {
21
+ return (o, P) => (a(), n(
22
+ "div",
23
+ {
24
+ class: d([
25
+ `${i(l)}-parameter-box`,
26
+ `${i(l)}-parameter-box--${o.colorMode}`,
27
+ o.inline && `${i(l)}-parameter-box--inline`
28
+ ])
29
+ },
30
+ [
31
+ (a(!0), n(
32
+ v,
33
+ null,
34
+ _(o.dataList, (e) => (a(), n("div", {
35
+ key: e.name,
36
+ class: "parameter-item"
37
+ }, [
38
+ o.nameOnTop ? (a(), n("div", y, [
39
+ t(
40
+ "div",
41
+ f,
42
+ r(e.name),
43
+ 1
44
+ /* TEXT */
45
+ ),
46
+ t("div", h, [
47
+ typeof e.value == "number" ? (a(), u(i(p), {
48
+ key: 0,
49
+ value: e.value,
50
+ format: "",
51
+ direction: "up",
52
+ isAnimation: o.isAnimation,
53
+ range: e.value / 10
54
+ }, null, 8, ["value", "isAnimation", "range"])) : (a(), n(
55
+ "span",
56
+ k,
57
+ r(e.value),
58
+ 1
59
+ /* TEXT */
60
+ )),
61
+ t(
62
+ "span",
63
+ null,
64
+ r(e.unit),
65
+ 1
66
+ /* TEXT */
67
+ )
68
+ ])
69
+ ])) : (a(), n("div", B, [
70
+ t("div", A, [
71
+ typeof e.value == "number" ? (a(), u(i(p), {
72
+ key: 0,
73
+ value: e.value,
74
+ format: "",
75
+ direction: "up",
76
+ isAnimation: o.isAnimation,
77
+ range: e.value / 10
78
+ }, null, 8, ["value", "isAnimation", "range"])) : (a(), n(
79
+ "span",
80
+ b,
81
+ r(e.value),
82
+ 1
83
+ /* TEXT */
84
+ )),
85
+ t(
86
+ "span",
87
+ null,
88
+ r(e.unit),
89
+ 1
90
+ /* TEXT */
91
+ )
92
+ ]),
93
+ t(
94
+ "div",
95
+ g,
96
+ r(e.name),
97
+ 1
98
+ /* TEXT */
99
+ )
100
+ ]))
101
+ ]))),
102
+ 128
103
+ /* KEYED_FRAGMENT */
104
+ ))
105
+ ],
106
+ 2
107
+ /* CLASS */
108
+ ));
109
+ }
110
+ });
111
+ m.install = (s) => (s.component("ScParameterBox", m), s);
112
+ const E = m;
113
+ export {
114
+ E as ScParameterBox
115
+ };
@@ -0,0 +1,56 @@
1
+ import { defineComponent as r, createElementBlock as m, openBlock as u, normalizeClass as p, unref as d, createElementVNode as o, toDisplayString as b } from "vue";
2
+ import { P as i } from "../_vars-BV4QQF-p.js";
3
+ const c = ["id", "name", "value", "checked", "disabled"], v = { class: "radio-label" }, n = /* @__PURE__ */ r({
4
+ __name: "radio",
5
+ props: {
6
+ modelValue: { type: [String, Number, Boolean] },
7
+ value: { type: [String, Number, Boolean] },
8
+ label: {},
9
+ disabled: { type: Boolean },
10
+ id: {},
11
+ name: {}
12
+ },
13
+ emits: ["change", "update:modelValue"],
14
+ setup(l, { emit: s }) {
15
+ const t = s;
16
+ return (e, a) => (u(), m(
17
+ "label",
18
+ {
19
+ class: p([`${d(i)}-radio`, e.disabled && `${d(i)}-disabled`])
20
+ },
21
+ [
22
+ o("input", {
23
+ type: "radio",
24
+ id: e.id,
25
+ name: e.name,
26
+ value: e.value,
27
+ checked: e.modelValue === e.value,
28
+ disabled: e.disabled,
29
+ class: "radio-input",
30
+ onChange: a[0] || (a[0] = (f) => t("update:modelValue", e.value))
31
+ }, null, 40, c),
32
+ a[1] || (a[1] = o(
33
+ "span",
34
+ { class: "radio-box" },
35
+ null,
36
+ -1
37
+ /* CACHED */
38
+ )),
39
+ o(
40
+ "span",
41
+ v,
42
+ b(e.label),
43
+ 1
44
+ /* TEXT */
45
+ )
46
+ ],
47
+ 2
48
+ /* CLASS */
49
+ ));
50
+ }
51
+ });
52
+ n.install = (l) => (l.component("ScRadio", n), l);
53
+ const B = n;
54
+ export {
55
+ B as ScRadio
56
+ };
@@ -0,0 +1,4 @@
1
+ import { b as a } from "../index-BgNMAlW8.js";
2
+ export {
3
+ a as ScSwiperNormal
4
+ };
@@ -0,0 +1,4 @@
1
+ import { S } from "../index-BrggpRcU.js";
2
+ export {
3
+ S as ScSwiperVehicle
4
+ };