@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,536 @@
1
+ import { defineComponent as H, ref as g, reactive as Z, onMounted as D, onBeforeUnmount as X, createElementBlock as s, openBlock as r, normalizeStyle as B, normalizeClass as n, unref as t, createElementVNode as h, createCommentVNode as $, Fragment as T, renderList as M, createVNode as x, mergeProps as V, createBlock as k, normalizeProps as U, computed as S, watch as A, createStaticVNode as j } from "vue";
2
+ import { a as q } from "./index-BrggpRcU.js";
3
+ import { P as i } from "./_vars-BV4QQF-p.js";
4
+ import "./es/Input.mjs";
5
+ import "./es/accordion-info-panel.mjs";
6
+ import "./es/animated-number.mjs";
7
+ import "./es/drawer.mjs";
8
+ import "./es/dropdown.mjs";
9
+ import "./es/gradual-highlight.mjs";
10
+ import { getRootOffset as G } from "@vavt/util";
11
+ import { ScLayzImage as W } from "./es/layz-image.mjs";
12
+ import "./es/parameter-box.mjs";
13
+ import "./es/radio.mjs";
14
+ import { ScTabIndicator as J } from "./es/tab-indicator.mjs";
15
+ import { ScVideo as K } from "./es/video.mjs";
16
+ const Q = ["innerHTML"], ee = ["innerHTML"], te = ["innerHTML"], oe = ["innerHTML"], ie = /* @__PURE__ */ H({
17
+ __name: "pc-viewer",
18
+ props: {
19
+ title: {},
20
+ desc: {},
21
+ dataList: {}
22
+ },
23
+ setup(p) {
24
+ const f = g(), c = g(), l = g(), a = g(), u = g(), L = g(), d = Z({
25
+ container: "",
26
+ root: "",
27
+ item: ""
28
+ }), I = () => {
29
+ var z;
30
+ if (!l.value)
31
+ return;
32
+ const e = l.value.offsetHeight, m = window.innerHeight, y = ((z = L.value) == null ? void 0 : z.offsetHeight) || 0, b = o(L.value);
33
+ d.container = `padding-top: ${(m - y - e - b) / 2}px;`, d.root = `height: ${l.value.scrollWidth}px`;
34
+ }, v = () => {
35
+ const e = document.documentElement.getAttribute("dir") || "ltr", m = e === "rtl" ? "right" : "left";
36
+ if (!f.value || !l.value || !a.value || !u.value) return;
37
+ const b = f.value.clientHeight - window.innerHeight, { offsetTop: z } = G(f.value), R = document.documentElement.scrollTop - z;
38
+ if (R < 0) {
39
+ l.value.scrollTo({ left: 0 }), u.value.style[m] = "0px";
40
+ return;
41
+ }
42
+ if (R > b) {
43
+ const F = l.value.scrollWidth - window.innerWidth;
44
+ l.value.scrollTo({ left: e === "rtl" ? -F : F }), u.value.style[m] = a.value.clientWidth - u.value.clientWidth + "px";
45
+ return;
46
+ }
47
+ const O = R / b, N = O * (l.value.scrollWidth - window.innerWidth), Y = O * (a.value.clientWidth * 2 / 3);
48
+ l.value.scrollTo({ left: e === "rtl" ? -N : N }), u.value.style[m] = `${Y}px`;
49
+ }, w = () => {
50
+ d.container = "", I();
51
+ }, o = (e) => {
52
+ if (!(e instanceof HTMLElement))
53
+ return 0;
54
+ const m = window.getComputedStyle(e), y = parseFloat(m.marginTop) || 0, b = parseFloat(m.marginBottom) || 0;
55
+ return y + b;
56
+ };
57
+ let _;
58
+ return D(() => {
59
+ _ = new IntersectionObserver(
60
+ (e) => {
61
+ e.forEach((m) => {
62
+ m.isIntersecting && (d.container = "", I());
63
+ });
64
+ },
65
+ {
66
+ root: null,
67
+ // 相对于 viewport
68
+ rootMargin: "200px 0px 200px 0px",
69
+ // 提前100px触发
70
+ threshold: 0
71
+ }
72
+ ), window.addEventListener("scroll", v), window.addEventListener("resize", w), f.value && _.observe(f.value);
73
+ }), X(() => {
74
+ window.removeEventListener("scroll", v), window.removeEventListener("resize", w), _ && _.disconnect();
75
+ }), (e, m) => (r(), s(
76
+ "div",
77
+ {
78
+ ref_key: "rootRef",
79
+ ref: f,
80
+ class: n(`${t(i)}-horizontal-viewer`),
81
+ style: B(d.root)
82
+ },
83
+ [
84
+ h(
85
+ "div",
86
+ {
87
+ ref_key: "containerRef",
88
+ ref: c,
89
+ class: n([`${t(i)}-horizontal-viewer__container`, (e.title || e.desc) && "has-header"]),
90
+ style: B(d.container)
91
+ },
92
+ [
93
+ e.title || e.desc ? (r(), s(
94
+ "div",
95
+ {
96
+ key: 0,
97
+ class: n(`${t(i)}-horizontal-viewer__header`),
98
+ ref_key: "headerRef",
99
+ ref: L
100
+ },
101
+ [
102
+ e.title ? (r(), s("p", {
103
+ key: 0,
104
+ innerHTML: e.title
105
+ }, null, 8, Q)) : $("v-if", !0),
106
+ e.desc ? (r(), s("p", {
107
+ key: 1,
108
+ innerHTML: e.desc
109
+ }, null, 8, ee)) : $("v-if", !0)
110
+ ],
111
+ 2
112
+ /* CLASS */
113
+ )) : $("v-if", !0),
114
+ h(
115
+ "div",
116
+ {
117
+ ref_key: "scrollerRef",
118
+ ref: l,
119
+ class: n(`${t(i)}-horizontal-viewer__scroller`)
120
+ },
121
+ [
122
+ h(
123
+ "div",
124
+ {
125
+ class: n(`${t(i)}-horizontal-viewer__content`)
126
+ },
127
+ [
128
+ (r(!0), s(
129
+ T,
130
+ null,
131
+ M(e.dataList, (y) => (r(), s(
132
+ "div",
133
+ {
134
+ key: y.title,
135
+ class: n(`${t(i)}-horizontal-viewer__content-item`)
136
+ },
137
+ [
138
+ x(t(W), {
139
+ src: y.url,
140
+ alt: y.alt
141
+ }, null, 8, ["src", "alt"]),
142
+ h(
143
+ "div",
144
+ {
145
+ class: n(`${t(i)}-horizontal-viewer__content-item-footer`)
146
+ },
147
+ [
148
+ h("p", {
149
+ innerHTML: y.title
150
+ }, null, 8, te),
151
+ h("p", {
152
+ innerHTML: y.desc
153
+ }, null, 8, oe)
154
+ ],
155
+ 2
156
+ /* CLASS */
157
+ )
158
+ ],
159
+ 2
160
+ /* CLASS */
161
+ ))),
162
+ 128
163
+ /* KEYED_FRAGMENT */
164
+ ))
165
+ ],
166
+ 2
167
+ /* CLASS */
168
+ )
169
+ ],
170
+ 2
171
+ /* CLASS */
172
+ ),
173
+ h(
174
+ "div",
175
+ {
176
+ ref_key: "paginationRef",
177
+ ref: a,
178
+ class: n(`${t(i)}-horizontal-viewer__pagination`)
179
+ },
180
+ [
181
+ h(
182
+ "div",
183
+ {
184
+ class: n(`${t(i)}-horizontal-viewer__scrollbar`)
185
+ },
186
+ [
187
+ h(
188
+ "div",
189
+ {
190
+ ref_key: "scrollbarDragRef",
191
+ ref: u,
192
+ class: n(`${t(i)}-horizontal-viewer__scrollbar-drag`)
193
+ },
194
+ null,
195
+ 2
196
+ /* CLASS */
197
+ )
198
+ ],
199
+ 2
200
+ /* CLASS */
201
+ )
202
+ ],
203
+ 2
204
+ /* CLASS */
205
+ )
206
+ ],
207
+ 6
208
+ /* CLASS, STYLE */
209
+ )
210
+ ],
211
+ 6
212
+ /* CLASS, STYLE */
213
+ ));
214
+ }
215
+ }), re = /* @__PURE__ */ H({
216
+ __name: "mb-viewer",
217
+ props: {
218
+ title: {},
219
+ desc: {},
220
+ isMobile: { type: Boolean },
221
+ modelValue: {},
222
+ dataList: {},
223
+ swiperOptions: {},
224
+ effect: {},
225
+ showIntro: { type: Boolean },
226
+ videoProps: {},
227
+ indicatorClass: {},
228
+ tabIndicatorBottom: {},
229
+ widthType: {},
230
+ indicatorType: {},
231
+ showIndicator: { type: Boolean },
232
+ indicatorPosition: {}
233
+ },
234
+ setup(p) {
235
+ const f = p, c = g();
236
+ return (l, a) => (r(), s(
237
+ "div",
238
+ {
239
+ ref_key: "rootRef",
240
+ ref: c,
241
+ class: n(`${t(i)}-horizontal-viewer-mb`)
242
+ },
243
+ [
244
+ x(
245
+ t(de),
246
+ V(f, { indicatorType: "image" }),
247
+ null,
248
+ 16
249
+ /* FULL_PROPS */
250
+ )
251
+ ],
252
+ 2
253
+ /* CLASS */
254
+ ));
255
+ }
256
+ }), C = /* @__PURE__ */ H({
257
+ __name: "horizontal-viewer",
258
+ props: {
259
+ title: {},
260
+ desc: {},
261
+ isMobile: { type: Boolean },
262
+ modelValue: {},
263
+ dataList: {},
264
+ swiperOptions: {},
265
+ effect: {},
266
+ showIntro: { type: Boolean },
267
+ videoProps: {},
268
+ indicatorClass: {},
269
+ tabIndicatorBottom: {},
270
+ widthType: {},
271
+ indicatorType: {},
272
+ showIndicator: { type: Boolean, default: !0 },
273
+ indicatorPosition: {}
274
+ },
275
+ setup(p) {
276
+ const f = p;
277
+ return (c, l) => c.isMobile ? (r(), k(
278
+ re,
279
+ U(V({ key: 0 }, f)),
280
+ null,
281
+ 16
282
+ /* FULL_PROPS */
283
+ )) : (r(), k(
284
+ ie,
285
+ U(V({ key: 1 }, f)),
286
+ null,
287
+ 16
288
+ /* FULL_PROPS */
289
+ ));
290
+ }
291
+ });
292
+ C.install = (p) => (p.component("ScHorizontalViewer", C), p);
293
+ const Te = C, ne = ["onClick"], le = ["innerHTML"], ae = ["innerHTML"], E = /* @__PURE__ */ H({
294
+ __name: "image-indicator",
295
+ props: {
296
+ dataList: {},
297
+ showIntro: { type: Boolean, default: !0 }
298
+ },
299
+ emits: ["change"],
300
+ setup(p, { emit: f }) {
301
+ const c = f, l = g(0), a = g([]), u = S(() => {
302
+ const d = a.value[l.value];
303
+ return {
304
+ height: `${d == null ? void 0 : d.offsetHeight}px`
305
+ };
306
+ }), L = (d) => {
307
+ l.value = d, c("change", d);
308
+ };
309
+ return (d, I) => (r(), s(
310
+ "div",
311
+ {
312
+ class: n(`${t(i)}-image-indicator`)
313
+ },
314
+ [
315
+ h(
316
+ "div",
317
+ {
318
+ class: n(`${t(i)}-image-indicator__list`)
319
+ },
320
+ [
321
+ (r(!0), s(
322
+ T,
323
+ null,
324
+ M(d.dataList, (v, w) => (r(), s("div", {
325
+ key: v.url,
326
+ class: n([
327
+ `${t(i)}-image-indicator__list-item`,
328
+ l.value === w ? `${t(i)}-image-indicator__active` : ""
329
+ ]),
330
+ onClick: (o) => L(w)
331
+ }, [
332
+ x(t(W), {
333
+ src: v.url,
334
+ alt: v.alt
335
+ }, null, 8, ["src", "alt"])
336
+ ], 10, ne))),
337
+ 128
338
+ /* KEYED_FRAGMENT */
339
+ ))
340
+ ],
341
+ 2
342
+ /* CLASS */
343
+ ),
344
+ d.showIntro ? (r(), s(
345
+ "div",
346
+ {
347
+ key: 0,
348
+ class: n(`${t(i)}-image-indicator__intro`),
349
+ style: B(u.value)
350
+ },
351
+ [
352
+ (r(!0), s(
353
+ T,
354
+ null,
355
+ M(d.dataList, (v, w) => (r(), s(
356
+ "div",
357
+ {
358
+ key: v.url,
359
+ ref_for: !0,
360
+ ref_key: "introItemRef",
361
+ ref: a,
362
+ class: n([`${t(i)}-image-indicator__intro-item`, l.value === w && `${t(i)}-image-indicator__active`])
363
+ },
364
+ [
365
+ v.title ? (r(), s("p", {
366
+ key: 0,
367
+ class: n(`${t(i)}-image-indicator__intro-title`),
368
+ innerHTML: v.title
369
+ }, null, 10, le)) : $("v-if", !0),
370
+ v.desc ? (r(), s("p", {
371
+ key: 1,
372
+ class: n(`${t(i)}-image-indicator__intro-desc`),
373
+ innerHTML: v.desc
374
+ }, null, 10, ae)) : $("v-if", !0)
375
+ ],
376
+ 2
377
+ /* CLASS */
378
+ ))),
379
+ 128
380
+ /* KEYED_FRAGMENT */
381
+ ))
382
+ ],
383
+ 6
384
+ /* CLASS, STYLE */
385
+ )) : $("v-if", !0)
386
+ ],
387
+ 2
388
+ /* CLASS */
389
+ ));
390
+ }
391
+ });
392
+ E.install = (p) => (p.component("ScImageIndicator", E), p);
393
+ const se = E, ce = { class: "swiper-wrapper" }, P = /* @__PURE__ */ H({
394
+ __name: "swiper-normal",
395
+ props: {
396
+ modelValue: { default: 0 },
397
+ dataList: {},
398
+ swiperOptions: { default: () => ({}) },
399
+ effect: {},
400
+ showIntro: { type: Boolean, default: !0 },
401
+ videoProps: {},
402
+ indicatorClass: {},
403
+ tabIndicatorBottom: {},
404
+ widthType: { default: "full" },
405
+ indicatorType: { default: "tab" },
406
+ showIndicator: { type: Boolean, default: !0 },
407
+ indicatorPosition: { default: "relative" }
408
+ },
409
+ emits: ["change", "update:modelValue"],
410
+ setup(p, { emit: f }) {
411
+ const c = p, l = f;
412
+ let a = null;
413
+ const u = g(c.modelValue), L = g(), d = S(() => {
414
+ const o = [`${i}-swiper-main`];
415
+ return c.widthType === "middle" ? o.push(`${i}-swiper-main__middle`) : o.push(`${i}-swiper-main__full`), o;
416
+ }), I = S(() => {
417
+ const o = {};
418
+ return c.tabIndicatorBottom && (o.position = "absolute", o.zIndex = 1, o.bottom = typeof c.tabIndicatorBottom == "number" ? `${c.tabIndicatorBottom}px` : c.tabIndicatorBottom), o;
419
+ });
420
+ A(
421
+ () => c.modelValue,
422
+ () => {
423
+ u.value = c.modelValue, v(u.value);
424
+ }
425
+ );
426
+ const v = (o) => {
427
+ a == null || a.slideTo(o);
428
+ }, w = () => {
429
+ a == null || a.destroy(), L.value && (a = new q(L.value, {
430
+ slidesPerView: 1,
431
+ allowTouchMove: !1,
432
+ effect: c.effect,
433
+ navigation: {
434
+ nextEl: ".swiper-button-next",
435
+ prevEl: ".swiper-button-prev"
436
+ },
437
+ ...c.swiperOptions
438
+ }), a.on("slideChange", (o) => {
439
+ u.value = o.activeIndex, l("change", o.activeIndex), l("update:modelValue", o.activeIndex);
440
+ }));
441
+ };
442
+ return D(() => {
443
+ w(), window.addEventListener("resize", w);
444
+ }), X(() => {
445
+ a == null || a.destroy(), window.removeEventListener("resize", w);
446
+ }), (o, _) => (r(), s(
447
+ "div",
448
+ {
449
+ class: n(`${t(i)}-swiper`)
450
+ },
451
+ [
452
+ h(
453
+ "div",
454
+ {
455
+ ref_key: "swiperRef",
456
+ ref: L,
457
+ class: n(d.value)
458
+ },
459
+ [
460
+ h("div", ce, [
461
+ (r(!0), s(
462
+ T,
463
+ null,
464
+ M(o.dataList, (e, m) => (r(), s("div", {
465
+ key: e.title,
466
+ class: "swiper-slide"
467
+ }, [
468
+ e.type === "img" ? (r(), k(t(W), {
469
+ key: 0,
470
+ src: e.url,
471
+ alt: e.alt
472
+ }, null, 8, ["src", "alt"])) : (r(), k(t(K), V({
473
+ key: 1,
474
+ ref_for: !0
475
+ }, o.videoProps, {
476
+ url: e.url,
477
+ poster: e.poster,
478
+ playable: u.value === m
479
+ }), null, 16, ["url", "poster", "playable"])),
480
+ e.mask ? (r(), s(
481
+ "div",
482
+ {
483
+ key: 2,
484
+ class: n(`${t(i)}-swiper-mask`)
485
+ },
486
+ null,
487
+ 2
488
+ /* CLASS */
489
+ )) : $("v-if", !0)
490
+ ]))),
491
+ 128
492
+ /* KEYED_FRAGMENT */
493
+ ))
494
+ ]),
495
+ _[2] || (_[2] = j('<div class="swiper-button-next"><svg xmlns="http://www.w3.org/2000/svg" width="25" height="24" viewBox="0 0 25 24" fill="none"><path d="M9.64299 3.12871L9.51887 5.83301L15.6859 12L9.51887 18.167L9.64299 20.8713L18.5143 12L9.64299 3.12871Z" fill="white"></path></svg></div><div class="swiper-button-prev"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M15.1289 3.12871L15.2531 5.83301L9.08609 12L15.2531 18.167L15.1289 20.8713L6.25766 12L15.1289 3.12871Z" fill="white"></path></svg></div>', 2))
496
+ ],
497
+ 2
498
+ /* CLASS */
499
+ ),
500
+ o.showIndicator ? (r(), s(
501
+ T,
502
+ { key: 0 },
503
+ [
504
+ o.indicatorType === "tab" ? (r(), k(t(J), {
505
+ key: 0,
506
+ modelValue: u.value,
507
+ "onUpdate:modelValue": _[0] || (_[0] = (e) => u.value = e),
508
+ class: n([o.indicatorClass, o.indicatorPosition === "absolute" && `${t(i)}-swiper-indicator-absolute`]),
509
+ dataList: o.dataList,
510
+ "show-intro": o.showIntro,
511
+ style: B(I.value),
512
+ onChange: v
513
+ }, null, 8, ["modelValue", "class", "dataList", "show-intro", "style"])) : (r(), k(t(se), {
514
+ key: 1,
515
+ modelValue: u.value,
516
+ "onUpdate:modelValue": _[1] || (_[1] = (e) => u.value = e),
517
+ dataList: c.dataList,
518
+ onChange: v
519
+ }, null, 8, ["modelValue", "dataList"]))
520
+ ],
521
+ 64
522
+ /* STABLE_FRAGMENT */
523
+ )) : $("v-if", !0)
524
+ ],
525
+ 2
526
+ /* CLASS */
527
+ ));
528
+ }
529
+ });
530
+ P.install = (p) => (p.component("ScSwiperNormal", P), p);
531
+ const de = P;
532
+ export {
533
+ Te as S,
534
+ se as a,
535
+ de as b
536
+ };