@seresweb/website-component 2.3.1 → 2.3.3

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 (36) hide show
  1. package/dist/_icons-B94owPWc.cjs +20 -0
  2. package/dist/_icons-B97SN5iK.js +25 -0
  3. package/dist/cjs/date-picker.cjs +1 -1
  4. package/dist/cjs/date-select.cjs +1 -1
  5. package/dist/cjs/horizontal-viewer.cjs +1 -1
  6. package/dist/cjs/image-indicator.cjs +1 -1
  7. package/dist/cjs/index.cjs +1 -1
  8. package/dist/cjs/select.cjs +1 -1
  9. package/dist/cjs/swiper-normal.cjs +1 -1
  10. package/dist/cjs/video.cjs +1 -1
  11. package/dist/css/horizontal-viewer.css +1 -1
  12. package/dist/css/input.css +1 -1
  13. package/dist/css/select.css +1 -1
  14. package/dist/es/date-picker.mjs +1 -1
  15. package/dist/es/date-select.mjs +25 -22
  16. package/dist/es/horizontal-viewer.mjs +1 -1
  17. package/dist/es/image-indicator.mjs +1 -1
  18. package/dist/es/index.mjs +2 -2
  19. package/dist/es/select.mjs +98 -98
  20. package/dist/es/swiper-normal.mjs +1 -1
  21. package/dist/es/video.mjs +186 -174
  22. package/dist/{index-CEjz1ubF.cjs → index-B-0yM6xR.cjs} +1 -1
  23. package/dist/{index-BPX4w5Vn.js → index-BPpds5EG.js} +1 -1
  24. package/dist/{index-Bc4wAl0z.js → index-CMZ8zDDd.js} +1 -1
  25. package/dist/{index-B-sVxtkA.cjs → index-D6pYBGfZ.cjs} +1 -1
  26. package/dist/index.css +1 -1
  27. package/dist/scss/col.scss +3 -2
  28. package/dist/scss/horizontal-viewer.scss +2 -2
  29. package/dist/scss/input.scss +13 -0
  30. package/dist/scss/select.scss +12 -20
  31. package/dist/types/components/_icons.d.ts +2 -0
  32. package/dist/types/components/select/select.vue.d.ts +2 -0
  33. package/dist/types/components/select/type.d.ts +2 -0
  34. package/package.json +1 -1
  35. package/dist/_icons-DtBTpiO2.cjs +0 -11
  36. package/dist/_icons-FW35XHO0.js +0 -14
package/dist/es/video.mjs CHANGED
@@ -1,6 +1,6 @@
1
- import { defineComponent as S, ref as d, watch as F, nextTick as N, onMounted as L, onBeforeUnmount as X, createElementBlock as C, openBlock as c, normalizeClass as y, createElementVNode as i, createCommentVNode as R, renderSlot as b, onUnmounted as E, createBlock as x, mergeProps as V, Fragment as O, normalizeStyle as U, unref as W, toDisplayString as H, Teleport as Y, createVNode as z, withCtx as $ } from "vue";
2
- import { P as f } from "../_vars-BV4QQF-p.js";
3
- import { ScLayzImage as j } from "./layz-image.mjs";
1
+ import { defineComponent as S, ref as y, watch as G, nextTick as O, onMounted as E, onBeforeUnmount as j, createElementBlock as g, openBlock as n, normalizeClass as i, createCommentVNode as P, createBlock as R, unref as Q, renderSlot as h, createElementVNode as f, onUnmounted as U, mergeProps as T, Fragment as H, normalizeStyle as X, toDisplayString as Y, Teleport as F, createVNode as A, withCtx as V } from "vue";
2
+ import { P as u } from "../_vars-BV4QQF-p.js";
3
+ import { ScLayzImage as N } from "./layz-image.mjs";
4
4
  const D = ["controls", "poster", "src"], I = /* @__PURE__ */ S({
5
5
  __name: "video-wrapper",
6
6
  props: {
@@ -16,83 +16,95 @@ const D = ["controls", "poster", "src"], I = /* @__PURE__ */ S({
16
16
  urlSmall: {}
17
17
  },
18
18
  emits: ["paused"],
19
- setup(v, { expose: w, emit: e }) {
20
- const t = v, o = e, P = /xiaomi|miui/i, T = `${f}-player-wrapper`, g = `${f}-player-is-fullscreen`, m = `${f}-player-close-btn`, _ = `${f}-player-icon`, a = d(), n = d(!0), k = d(P.test(navigator.userAgent) ? void 0 : t.url);
21
- let r = null;
22
- const s = (p) => {
23
- var h, B;
24
- p.target !== a.value && ((h = a.value) == null || h.pause(), n.value = !!((B = a.value) != null && B.paused), o("paused"));
25
- }, l = (p) => {
26
- const h = p[0], B = a.value;
27
- !B || !t.playable || (h.isIntersecting && t.autoPlay && B.paused ? (B.play().catch(console.warn), n.value = !1) : !h.isIntersecting && !B.paused && (B.pause(), n.value = !0));
28
- }, u = () => {
29
- t.autoPlay && t.playable && a.value && (r = new IntersectionObserver(l, {
19
+ setup(v, { expose: k, emit: e }) {
20
+ const t = v, r = e, C = /xiaomi|miui/i, x = /QQBrowser/i, $ = `${u}-player-wrapper`, m = `${u}-player-is-fullscreen`, b = `${u}-player-close-btn`, _ = `${u}-player-icon`, B = `${u}-player-poster`, s = y(), o = y(!0), a = y(
21
+ C.test(navigator.userAgent) || x.test(navigator.userAgent) ? void 0 : t.url
22
+ );
23
+ let l = null;
24
+ const p = (c) => {
25
+ var d, w;
26
+ c.target !== s.value && ((d = s.value) == null || d.pause(), o.value = !!((w = s.value) != null && w.paused), r("paused"));
27
+ }, W = (c) => {
28
+ const d = c[0], w = s.value;
29
+ !w || !t.playable || (d.isIntersecting && t.autoPlay && w.paused ? (w.play().catch(console.warn), o.value = !1) : !d.isIntersecting && !w.paused && (w.pause(), o.value = !0));
30
+ }, M = () => {
31
+ t.autoPlay && t.playable && s.value && (l = new IntersectionObserver(W, {
30
32
  threshold: 0.25
31
33
  // 可根据需求调整可见区域百分比
32
- }), r.observe(a.value));
33
- }, A = () => {
34
- r == null || r.disconnect(), r = null;
34
+ }), l.observe(s.value));
35
+ }, L = () => {
36
+ l == null || l.disconnect(), l = null;
35
37
  };
36
- return F(
38
+ return G(
37
39
  () => t.playable,
38
40
  () => {
39
- A(), N(() => u());
41
+ L(), O(() => M());
40
42
  }
41
- ), w({
43
+ ), k({
42
44
  play() {
43
- a.value.play(), n.value = a.value.paused;
45
+ s.value.play(), o.value = s.value.paused;
44
46
  },
45
47
  pause() {
46
- a.value.pause(), n.value = a.value.paused;
48
+ s.value.pause(), o.value = s.value.paused;
47
49
  }
48
- }), L(() => {
49
- P.test(navigator.userAgent) && fetch(t.url).then((p) => {
50
- if (!p.ok)
51
- throw new Error(`HTTP error! status: ${p.status}`);
52
- return p.blob();
53
- }).then((p) => {
54
- k.value = URL.createObjectURL(p);
55
- }).catch((p) => {
56
- console.error("获取视频失败:", p);
57
- }), u();
58
- }), X(() => {
59
- A();
60
- }), (p, h) => (c(), C(
50
+ }), E(() => {
51
+ (C.test(navigator.userAgent) || x.test(navigator.userAgent)) && fetch(t.url).then((c) => {
52
+ if (!c.ok)
53
+ throw new Error(`HTTP error! status: ${c.status}`);
54
+ return c.blob();
55
+ }).then((c) => {
56
+ a.value = URL.createObjectURL(c), O(() => {
57
+ var d;
58
+ t.autoPlay && t.playable && ((d = s.value) == null || d.play().catch(console.warn), o.value = !1);
59
+ });
60
+ }).catch((c) => {
61
+ console.error("获取视频失败:", c);
62
+ }), M();
63
+ }), j(() => {
64
+ L();
65
+ }), (c, d) => (n(), g(
61
66
  "div",
62
67
  {
63
- class: y([T, t.class, !n.value && !t.autoPlay && g])
68
+ class: i([$, t.class, !o.value && !t.autoPlay && m])
64
69
  },
65
70
  [
66
- i("video", {
71
+ P(" 特殊的浏览器,QQ、小米浏览器,很魔幻 "),
72
+ !a.value && t.poster ? (n(), R(Q(N), {
73
+ key: 0,
74
+ class: i(B),
75
+ src: t.poster,
76
+ alt: "AITO"
77
+ }, null, 8, ["src"])) : a.value ? (n(), g("video", {
78
+ key: 1,
67
79
  ref_key: "videoRef",
68
- ref: a,
80
+ ref: s,
69
81
  muted: "",
70
82
  loop: "",
71
83
  playsinline: "",
72
84
  "webkit-playsinline": "",
73
85
  "x5-video-player-type": "h5",
74
- controls: !n.value && !t.autoPlay,
86
+ controls: !o.value && !t.autoPlay,
75
87
  poster: t.poster,
76
- src: k.value
77
- }, null, 8, D),
78
- !n.value && !t.autoPlay ? (c(), C(
88
+ src: a.value
89
+ }, null, 8, D)) : P("v-if", !0),
90
+ !o.value && !t.autoPlay ? (n(), g(
79
91
  "button",
80
92
  {
81
- key: 0,
82
- class: y([m, t.playerButtonClass]),
83
- onClick: s
93
+ key: 2,
94
+ class: i([b, t.playerButtonClass]),
95
+ onClick: p
84
96
  },
85
97
  [
86
- b(p.$slots, "close", {}, () => [
87
- (c(), C("svg", {
88
- class: y(_),
98
+ h(c.$slots, "close", {}, () => [
99
+ (n(), g("svg", {
100
+ class: i(_),
89
101
  viewBox: "0 0 1121 1024",
90
102
  version: "1.1",
91
103
  xmlns: "http://www.w3.org/2000/svg",
92
104
  width: "200",
93
105
  height: "200"
94
- }, [...h[0] || (h[0] = [
95
- i(
106
+ }, [...d[0] || (d[0] = [
107
+ f(
96
108
  "path",
97
109
  {
98
110
  d: "M1040.725333 49.005714l-965.485714 965.436953-48.420571-48.469334L992.256 0.487619l48.469333 48.518095z",
@@ -102,7 +114,7 @@ const D = ["controls", "poster", "src"], I = /* @__PURE__ */ S({
102
114
  -1
103
115
  /* CACHED */
104
116
  ),
105
- i(
117
+ f(
106
118
  "path",
107
119
  {
108
120
  d: "M1040.725333 1014.442667l-965.485714-965.485715 48.518095-48.420571L1089.194667 965.973333l-48.469334 48.469334z",
@@ -117,13 +129,13 @@ const D = ["controls", "poster", "src"], I = /* @__PURE__ */ S({
117
129
  ],
118
130
  2
119
131
  /* CLASS */
120
- )) : R("v-if", !0)
132
+ )) : P("v-if", !0)
121
133
  ],
122
134
  2
123
135
  /* CLASS */
124
136
  ));
125
137
  }
126
- }), G = /* @__PURE__ */ S({
138
+ }), q = /* @__PURE__ */ S({
127
139
  __name: "video-normal",
128
140
  props: {
129
141
  class: {},
@@ -137,74 +149,74 @@ const D = ["controls", "poster", "src"], I = /* @__PURE__ */ S({
137
149
  multiple: { type: Boolean },
138
150
  urlSmall: {}
139
151
  },
140
- setup(v, { expose: w }) {
141
- const e = v, t = `${f}-player-wrapper`, o = `${f}-player-poster`, P = `${f}-player-btn`, T = `${f}-player-btn-text`, g = `${f}-player-icon`, m = d(), _ = d(), a = d(), n = d(!1), k = (l) => {
142
- l.stopPropagation(), e.playable && (n.value = !0, setTimeout(() => {
143
- var u;
144
- (u = a.value) == null || u.play();
152
+ setup(v, { expose: k }) {
153
+ const e = v, t = `${u}-player-wrapper`, r = `${u}-player-poster`, C = `${u}-player-btn`, x = `${u}-player-btn-text`, $ = `${u}-player-icon`, m = y(), b = y(), _ = y(), B = y(!1), s = (l) => {
154
+ l.stopPropagation(), e.playable && (B.value = !0, setTimeout(() => {
155
+ var p;
156
+ (p = _.value) == null || p.play();
145
157
  }, 0));
146
- }, r = () => {
147
- n.value = !1;
158
+ }, o = () => {
159
+ B.value = !1;
148
160
  };
149
- let s = null;
150
- return L(() => {
151
- !e.autoPlay && m.value && (s = new IntersectionObserver(
161
+ let a = null;
162
+ return E(() => {
163
+ !e.autoPlay && m.value && (a = new IntersectionObserver(
152
164
  ([l]) => {
153
- l.isIntersecting && (n.value = !0);
165
+ l.isIntersecting && (B.value = !0);
154
166
  },
155
167
  { threshold: 0.1 }
156
- ), s.observe(m.value));
157
- }), E(() => {
158
- s == null || s.disconnect();
159
- }), w({
168
+ ), a.observe(m.value));
169
+ }), U(() => {
170
+ a == null || a.disconnect();
171
+ }), k({
160
172
  play() {
161
173
  var l;
162
- e.autoPlay ? (l = _.value) == null || l.play() : k(new MouseEvent("click"));
174
+ e.autoPlay ? (l = b.value) == null || l.play() : s(new MouseEvent("click"));
163
175
  },
164
176
  pause() {
165
- var l, u;
166
- (l = _.value) == null || l.pause(), (u = a.value) == null || u.pause();
177
+ var l, p;
178
+ (l = b.value) == null || l.pause(), (p = _.value) == null || p.pause();
167
179
  }
168
- }), (l, u) => e.autoPlay ? (c(), x(I, V({ key: 0 }, e, {
180
+ }), (l, p) => e.autoPlay ? (n(), R(I, T({ key: 0 }, e, {
169
181
  url: e.url,
170
182
  ref_key: "videoRef",
171
- ref: _
172
- }), null, 16, ["url"])) : (c(), C(
173
- O,
183
+ ref: b
184
+ }), null, 16, ["url"])) : (n(), g(
185
+ H,
174
186
  { key: 1 },
175
187
  [
176
- i(
188
+ f(
177
189
  "div",
178
190
  {
179
- class: y([t, e.class]),
180
- style: U(e.style)
191
+ class: i([t, e.class]),
192
+ style: X(e.style)
181
193
  },
182
194
  [
183
- e.poster ? (c(), x(W(j), {
195
+ e.poster ? (n(), R(Q(N), {
184
196
  key: 0,
185
- class: y(o),
197
+ class: i(r),
186
198
  src: e.poster,
187
199
  alt: "AITO"
188
- }, null, 8, ["src"])) : R("v-if", !0),
189
- i(
200
+ }, null, 8, ["src"])) : P("v-if", !0),
201
+ f(
190
202
  "button",
191
203
  {
192
204
  ref_key: "btnRef",
193
205
  ref: m,
194
- class: y([P, e.playerButtonClass]),
195
- onClick: k
206
+ class: i([C, e.playerButtonClass]),
207
+ onClick: s
196
208
  },
197
209
  [
198
- b(l.$slots, "play", {}, () => [
199
- (c(), C("svg", {
200
- class: y(g),
210
+ h(l.$slots, "play", {}, () => [
211
+ (n(), g("svg", {
212
+ class: i($),
201
213
  viewBox: "0 0 1024 1024",
202
214
  version: "1.1",
203
215
  xmlns: "http://www.w3.org/2000/svg",
204
216
  width: "200",
205
217
  height: "200"
206
- }, [...u[0] || (u[0] = [
207
- i(
218
+ }, [...p[0] || (p[0] = [
219
+ f(
208
220
  "path",
209
221
  {
210
222
  d: "M671.744 495.616c20.48 12.288 20.48 36.864 0 49.152l-217.088 126.976c-20.48 12.288-45.056-4.096-45.056-24.576V393.216c0-20.48 24.576-36.864 45.056-24.576l217.088 126.976z",
@@ -214,7 +226,7 @@ const D = ["controls", "poster", "src"], I = /* @__PURE__ */ S({
214
226
  -1
215
227
  /* CACHED */
216
228
  ),
217
- i(
229
+ f(
218
230
  "path",
219
231
  {
220
232
  d: "M512 1011.712C237.568 1011.712 12.288 786.432 12.288 512 12.288 237.568 237.568 12.288 512 12.288c274.432 0 499.712 225.28 499.712 499.712 0 274.432-225.28 499.712-499.712 499.712z m0-958.464c-253.952 0-458.752 204.8-458.752 458.752s204.8 458.752 458.752 458.752 458.752-204.8 458.752-458.752-204.8-458.752-458.752-458.752z",
@@ -225,12 +237,12 @@ const D = ["controls", "poster", "src"], I = /* @__PURE__ */ S({
225
237
  /* CACHED */
226
238
  )
227
239
  ])])),
228
- i(
240
+ f(
229
241
  "span",
230
242
  {
231
- class: y(T)
243
+ class: i(x)
232
244
  },
233
- H(e.playerButtonText),
245
+ Y(e.playerButtonText),
234
246
  1
235
247
  /* TEXT */
236
248
  )
@@ -243,21 +255,21 @@ const D = ["controls", "poster", "src"], I = /* @__PURE__ */ S({
243
255
  6
244
256
  /* CLASS, STYLE */
245
257
  ),
246
- n.value ? (c(), x(Y, {
258
+ B.value ? (n(), R(F, {
247
259
  key: 0,
248
260
  to: "body"
249
261
  }, [
250
- z(
262
+ A(
251
263
  I,
252
- V(e, {
264
+ T(e, {
253
265
  autoPlay: !1,
254
266
  ref_key: "modalVideoRef",
255
- ref: a,
256
- onPaused: r
267
+ ref: _,
268
+ onPaused: o
257
269
  }),
258
270
  {
259
- close: $(() => [
260
- b(l.$slots, "close")
271
+ close: V(() => [
272
+ h(l.$slots, "close")
261
273
  ]),
262
274
  _: 3
263
275
  /* FORWARDED */
@@ -265,13 +277,13 @@ const D = ["controls", "poster", "src"], I = /* @__PURE__ */ S({
265
277
  16
266
278
  /* FULL_PROPS */
267
279
  )
268
- ])) : R("v-if", !0)
280
+ ])) : P("v-if", !0)
269
281
  ],
270
282
  64
271
283
  /* STABLE_FRAGMENT */
272
284
  ));
273
285
  }
274
- }), q = /* @__PURE__ */ S({
286
+ }), J = /* @__PURE__ */ S({
275
287
  __name: "video-multiple",
276
288
  props: {
277
289
  class: {},
@@ -285,73 +297,73 @@ const D = ["controls", "poster", "src"], I = /* @__PURE__ */ S({
285
297
  multiple: { type: Boolean },
286
298
  urlSmall: {}
287
299
  },
288
- setup(v, { expose: w }) {
289
- const e = v, t = `${f}-player-wrapper`, o = `${f}-player-btn`, P = `${f}-player-btn-text`, T = `${f}-player-icon`, g = d(), m = d(), _ = d(), a = d(!1), n = (s) => {
300
+ setup(v, { expose: k }) {
301
+ const e = v, t = `${u}-player-wrapper`, r = `${u}-player-btn`, C = `${u}-player-btn-text`, x = `${u}-player-icon`, $ = y(), m = y(), b = y(), _ = y(!1), B = (a) => {
290
302
  var l;
291
- s.stopPropagation(), e.playable && ((l = m.value) == null || l.pause(), a.value = !0, setTimeout(() => {
292
- var u;
293
- (u = _.value) == null || u.play();
303
+ a.stopPropagation(), e.playable && ((l = m.value) == null || l.pause(), _.value = !0, setTimeout(() => {
304
+ var p;
305
+ (p = b.value) == null || p.play();
294
306
  }, 0));
295
- }, k = () => {
296
- var s;
297
- a.value = !1, (s = m.value) == null || s.play();
307
+ }, s = () => {
308
+ var a;
309
+ _.value = !1, (a = m.value) == null || a.play();
298
310
  };
299
- let r = null;
300
- return L(() => {
301
- g.value && (r = new IntersectionObserver(
302
- ([s]) => {
303
- s.isIntersecting && (a.value = !0);
311
+ let o = null;
312
+ return E(() => {
313
+ $.value && (o = new IntersectionObserver(
314
+ ([a]) => {
315
+ a.isIntersecting && (_.value = !0);
304
316
  },
305
317
  { threshold: 0.1 }
306
- ), r.observe(g.value));
307
- }), E(() => {
308
- r == null || r.disconnect();
309
- }), w({
318
+ ), o.observe($.value));
319
+ }), U(() => {
320
+ o == null || o.disconnect();
321
+ }), k({
310
322
  play() {
311
- n(new MouseEvent("click"));
323
+ B(new MouseEvent("click"));
312
324
  },
313
325
  pause() {
314
- var s, l;
315
- (s = m.value) == null || s.pause(), (l = _.value) == null || l.pause();
326
+ var a, l;
327
+ (a = m.value) == null || a.pause(), (l = b.value) == null || l.pause();
316
328
  }
317
- }), (s, l) => (c(), C(
318
- O,
329
+ }), (a, l) => (n(), g(
330
+ H,
319
331
  null,
320
332
  [
321
- R(" Background: Small Video AutoPlay "),
322
- z(I, V(e, {
333
+ P(" Background: Small Video AutoPlay "),
334
+ A(I, T(e, {
323
335
  url: e.urlSmall || e.url,
324
336
  autoPlay: !0,
325
337
  ref_key: "smallVideoRef",
326
338
  ref: m
327
339
  }), null, 16, ["url"]),
328
- R(" Foreground: Button -> Modal Video (Large) "),
329
- i(
340
+ P(" Foreground: Button -> Modal Video (Large) "),
341
+ f(
330
342
  "div",
331
343
  {
332
- class: y([t, e.class, "is-multiple"]),
333
- style: U(e.style)
344
+ class: i([t, e.class, "is-multiple"]),
345
+ style: X(e.style)
334
346
  },
335
347
  [
336
- i(
348
+ f(
337
349
  "button",
338
350
  {
339
351
  ref_key: "btnRef",
340
- ref: g,
341
- class: y([o, e.playerButtonClass]),
342
- onClick: n
352
+ ref: $,
353
+ class: i([r, e.playerButtonClass]),
354
+ onClick: B
343
355
  },
344
356
  [
345
- b(s.$slots, "play", {}, () => [
346
- (c(), C("svg", {
347
- class: y(T),
357
+ h(a.$slots, "play", {}, () => [
358
+ (n(), g("svg", {
359
+ class: i(x),
348
360
  viewBox: "0 0 1024 1024",
349
361
  version: "1.1",
350
362
  xmlns: "http://www.w3.org/2000/svg",
351
363
  width: "200",
352
364
  height: "200"
353
365
  }, [...l[0] || (l[0] = [
354
- i(
366
+ f(
355
367
  "path",
356
368
  {
357
369
  d: "M671.744 495.616c20.48 12.288 20.48 36.864 0 49.152l-217.088 126.976c-20.48 12.288-45.056-4.096-45.056-24.576V393.216c0-20.48 24.576-36.864 45.056-24.576l217.088 126.976z",
@@ -361,7 +373,7 @@ const D = ["controls", "poster", "src"], I = /* @__PURE__ */ S({
361
373
  -1
362
374
  /* CACHED */
363
375
  ),
364
- i(
376
+ f(
365
377
  "path",
366
378
  {
367
379
  d: "M512 1011.712C237.568 1011.712 12.288 786.432 12.288 512 12.288 237.568 237.568 12.288 512 12.288c274.432 0 499.712 225.28 499.712 499.712 0 274.432-225.28 499.712-499.712 499.712z m0-958.464c-253.952 0-458.752 204.8-458.752 458.752s204.8 458.752 458.752 458.752 458.752-204.8 458.752-458.752-204.8-458.752-458.752-458.752-458.752z",
@@ -372,12 +384,12 @@ const D = ["controls", "poster", "src"], I = /* @__PURE__ */ S({
372
384
  /* CACHED */
373
385
  )
374
386
  ])])),
375
- i(
387
+ f(
376
388
  "span",
377
389
  {
378
- class: y(P)
390
+ class: i(C)
379
391
  },
380
- H(e.playerButtonText),
392
+ Y(e.playerButtonText),
381
393
  1
382
394
  /* TEXT */
383
395
  )
@@ -390,30 +402,30 @@ const D = ["controls", "poster", "src"], I = /* @__PURE__ */ S({
390
402
  6
391
403
  /* CLASS, STYLE */
392
404
  ),
393
- a.value ? (c(), x(Y, {
405
+ _.value ? (n(), R(F, {
394
406
  key: 0,
395
407
  to: "body"
396
408
  }, [
397
- z(I, V(e, {
409
+ A(I, T(e, {
398
410
  url: e.url,
399
411
  autoPlay: !1,
400
412
  ref_key: "modalVideoRef",
401
- ref: _,
402
- onPaused: k
413
+ ref: b,
414
+ onPaused: s
403
415
  }), {
404
- close: $(() => [
405
- b(s.$slots, "close")
416
+ close: V(() => [
417
+ h(a.$slots, "close")
406
418
  ]),
407
419
  _: 3
408
420
  /* FORWARDED */
409
421
  }, 16, ["url"])
410
- ])) : R("v-if", !0)
422
+ ])) : P("v-if", !0)
411
423
  ],
412
424
  64
413
425
  /* STABLE_FRAGMENT */
414
426
  ));
415
427
  }
416
- }), M = /* @__PURE__ */ S({
428
+ }), z = /* @__PURE__ */ S({
417
429
  __name: "video",
418
430
  props: {
419
431
  class: {},
@@ -427,47 +439,47 @@ const D = ["controls", "poster", "src"], I = /* @__PURE__ */ S({
427
439
  multiple: { type: Boolean },
428
440
  urlSmall: {}
429
441
  },
430
- setup(v, { expose: w }) {
431
- const e = v, t = d();
432
- return w({
442
+ setup(v, { expose: k }) {
443
+ const e = v, t = y();
444
+ return k({
433
445
  play() {
434
- var o;
435
- (o = t.value) == null || o.play();
446
+ var r;
447
+ (r = t.value) == null || r.play();
436
448
  },
437
449
  pause() {
438
- var o;
439
- (o = t.value) == null || o.pause();
450
+ var r;
451
+ (r = t.value) == null || r.pause();
440
452
  }
441
- }), (o, P) => e.multiple ? (c(), x(
442
- q,
443
- V({ key: 0 }, e, {
453
+ }), (r, C) => e.multiple ? (n(), R(
454
+ J,
455
+ T({ key: 0 }, e, {
444
456
  ref_key: "videoRef",
445
457
  ref: t
446
458
  }),
447
459
  {
448
- play: $(() => [
449
- b(o.$slots, "play")
460
+ play: V(() => [
461
+ h(r.$slots, "play")
450
462
  ]),
451
- close: $(() => [
452
- b(o.$slots, "close")
463
+ close: V(() => [
464
+ h(r.$slots, "close")
453
465
  ]),
454
466
  _: 3
455
467
  /* FORWARDED */
456
468
  },
457
469
  16
458
470
  /* FULL_PROPS */
459
- )) : (c(), x(
460
- G,
461
- V({ key: 1 }, e, {
471
+ )) : (n(), R(
472
+ q,
473
+ T({ key: 1 }, e, {
462
474
  ref_key: "videoRef",
463
475
  ref: t
464
476
  }),
465
477
  {
466
- play: $(() => [
467
- b(o.$slots, "play")
478
+ play: V(() => [
479
+ h(r.$slots, "play")
468
480
  ]),
469
- close: $(() => [
470
- b(o.$slots, "close")
481
+ close: V(() => [
482
+ h(r.$slots, "close")
471
483
  ]),
472
484
  _: 3
473
485
  /* FORWARDED */
@@ -477,8 +489,8 @@ const D = ["controls", "poster", "src"], I = /* @__PURE__ */ S({
477
489
  ));
478
490
  }
479
491
  });
480
- M.install = (v) => (v.component("ScVideo", M), v);
481
- const Z = M;
492
+ z.install = (v) => (v.component("ScVideo", z), v);
493
+ const le = z;
482
494
  export {
483
- Z as ScVideo
495
+ le as ScVideo
484
496
  };