@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.
- package/dist/_icons-B94owPWc.cjs +20 -0
- package/dist/_icons-B97SN5iK.js +25 -0
- package/dist/cjs/date-picker.cjs +1 -1
- package/dist/cjs/date-select.cjs +1 -1
- package/dist/cjs/horizontal-viewer.cjs +1 -1
- package/dist/cjs/image-indicator.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/select.cjs +1 -1
- package/dist/cjs/swiper-normal.cjs +1 -1
- package/dist/cjs/video.cjs +1 -1
- package/dist/css/horizontal-viewer.css +1 -1
- package/dist/css/input.css +1 -1
- package/dist/css/select.css +1 -1
- package/dist/es/date-picker.mjs +1 -1
- package/dist/es/date-select.mjs +25 -22
- package/dist/es/horizontal-viewer.mjs +1 -1
- package/dist/es/image-indicator.mjs +1 -1
- package/dist/es/index.mjs +2 -2
- package/dist/es/select.mjs +98 -98
- package/dist/es/swiper-normal.mjs +1 -1
- package/dist/es/video.mjs +186 -174
- package/dist/{index-CEjz1ubF.cjs → index-B-0yM6xR.cjs} +1 -1
- package/dist/{index-BPX4w5Vn.js → index-BPpds5EG.js} +1 -1
- package/dist/{index-Bc4wAl0z.js → index-CMZ8zDDd.js} +1 -1
- package/dist/{index-B-sVxtkA.cjs → index-D6pYBGfZ.cjs} +1 -1
- package/dist/index.css +1 -1
- package/dist/scss/col.scss +3 -2
- package/dist/scss/horizontal-viewer.scss +2 -2
- package/dist/scss/input.scss +13 -0
- package/dist/scss/select.scss +12 -20
- package/dist/types/components/_icons.d.ts +2 -0
- package/dist/types/components/select/select.vue.d.ts +2 -0
- package/dist/types/components/select/type.d.ts +2 -0
- package/package.json +1 -1
- package/dist/_icons-DtBTpiO2.cjs +0 -11
- package/dist/_icons-FW35XHO0.js +0 -14
package/dist/es/video.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as S, ref as
|
|
2
|
-
import { P as
|
|
3
|
-
import { ScLayzImage as
|
|
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:
|
|
20
|
-
const t = v,
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
t.
|
|
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
|
-
}),
|
|
33
|
-
},
|
|
34
|
-
|
|
34
|
+
}), l.observe(s.value));
|
|
35
|
+
}, L = () => {
|
|
36
|
+
l == null || l.disconnect(), l = null;
|
|
35
37
|
};
|
|
36
|
-
return
|
|
38
|
+
return G(
|
|
37
39
|
() => t.playable,
|
|
38
40
|
() => {
|
|
39
|
-
|
|
41
|
+
L(), O(() => M());
|
|
40
42
|
}
|
|
41
|
-
),
|
|
43
|
+
), k({
|
|
42
44
|
play() {
|
|
43
|
-
|
|
45
|
+
s.value.play(), o.value = s.value.paused;
|
|
44
46
|
},
|
|
45
47
|
pause() {
|
|
46
|
-
|
|
48
|
+
s.value.pause(), o.value = s.value.paused;
|
|
47
49
|
}
|
|
48
|
-
}),
|
|
49
|
-
|
|
50
|
-
if (!
|
|
51
|
-
throw new Error(`HTTP error! status: ${
|
|
52
|
-
return
|
|
53
|
-
}).then((
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
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:
|
|
68
|
+
class: i([$, t.class, !o.value && !t.autoPlay && m])
|
|
64
69
|
},
|
|
65
70
|
[
|
|
66
|
-
|
|
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:
|
|
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: !
|
|
86
|
+
controls: !o.value && !t.autoPlay,
|
|
75
87
|
poster: t.poster,
|
|
76
|
-
src:
|
|
77
|
-
}, null, 8, D),
|
|
78
|
-
!
|
|
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:
|
|
82
|
-
class:
|
|
83
|
-
onClick:
|
|
93
|
+
key: 2,
|
|
94
|
+
class: i([b, t.playerButtonClass]),
|
|
95
|
+
onClick: p
|
|
84
96
|
},
|
|
85
97
|
[
|
|
86
|
-
|
|
87
|
-
(
|
|
88
|
-
class:
|
|
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
|
-
}, [...
|
|
95
|
-
|
|
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
|
-
|
|
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
|
-
)) :
|
|
132
|
+
)) : P("v-if", !0)
|
|
121
133
|
],
|
|
122
134
|
2
|
|
123
135
|
/* CLASS */
|
|
124
136
|
));
|
|
125
137
|
}
|
|
126
|
-
}),
|
|
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:
|
|
141
|
-
const e = v, t = `${
|
|
142
|
-
l.stopPropagation(), e.playable && (
|
|
143
|
-
var
|
|
144
|
-
(
|
|
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
|
-
},
|
|
147
|
-
|
|
158
|
+
}, o = () => {
|
|
159
|
+
B.value = !1;
|
|
148
160
|
};
|
|
149
|
-
let
|
|
150
|
-
return
|
|
151
|
-
!e.autoPlay && m.value && (
|
|
161
|
+
let a = null;
|
|
162
|
+
return E(() => {
|
|
163
|
+
!e.autoPlay && m.value && (a = new IntersectionObserver(
|
|
152
164
|
([l]) => {
|
|
153
|
-
l.isIntersecting && (
|
|
165
|
+
l.isIntersecting && (B.value = !0);
|
|
154
166
|
},
|
|
155
167
|
{ threshold: 0.1 }
|
|
156
|
-
),
|
|
157
|
-
}),
|
|
158
|
-
|
|
159
|
-
}),
|
|
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 =
|
|
174
|
+
e.autoPlay ? (l = b.value) == null || l.play() : s(new MouseEvent("click"));
|
|
163
175
|
},
|
|
164
176
|
pause() {
|
|
165
|
-
var l,
|
|
166
|
-
(l =
|
|
177
|
+
var l, p;
|
|
178
|
+
(l = b.value) == null || l.pause(), (p = _.value) == null || p.pause();
|
|
167
179
|
}
|
|
168
|
-
}), (l,
|
|
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"])) : (
|
|
173
|
-
|
|
183
|
+
ref: b
|
|
184
|
+
}), null, 16, ["url"])) : (n(), g(
|
|
185
|
+
H,
|
|
174
186
|
{ key: 1 },
|
|
175
187
|
[
|
|
176
|
-
|
|
188
|
+
f(
|
|
177
189
|
"div",
|
|
178
190
|
{
|
|
179
|
-
class:
|
|
180
|
-
style:
|
|
191
|
+
class: i([t, e.class]),
|
|
192
|
+
style: X(e.style)
|
|
181
193
|
},
|
|
182
194
|
[
|
|
183
|
-
e.poster ? (
|
|
195
|
+
e.poster ? (n(), R(Q(N), {
|
|
184
196
|
key: 0,
|
|
185
|
-
class:
|
|
197
|
+
class: i(r),
|
|
186
198
|
src: e.poster,
|
|
187
199
|
alt: "AITO"
|
|
188
|
-
}, null, 8, ["src"])) :
|
|
189
|
-
|
|
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:
|
|
195
|
-
onClick:
|
|
206
|
+
class: i([C, e.playerButtonClass]),
|
|
207
|
+
onClick: s
|
|
196
208
|
},
|
|
197
209
|
[
|
|
198
|
-
|
|
199
|
-
(
|
|
200
|
-
class:
|
|
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
|
-
}, [...
|
|
207
|
-
|
|
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
|
-
|
|
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
|
-
|
|
240
|
+
f(
|
|
229
241
|
"span",
|
|
230
242
|
{
|
|
231
|
-
class:
|
|
243
|
+
class: i(x)
|
|
232
244
|
},
|
|
233
|
-
|
|
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
|
-
|
|
258
|
+
B.value ? (n(), R(F, {
|
|
247
259
|
key: 0,
|
|
248
260
|
to: "body"
|
|
249
261
|
}, [
|
|
250
|
-
|
|
262
|
+
A(
|
|
251
263
|
I,
|
|
252
|
-
|
|
264
|
+
T(e, {
|
|
253
265
|
autoPlay: !1,
|
|
254
266
|
ref_key: "modalVideoRef",
|
|
255
|
-
ref:
|
|
256
|
-
onPaused:
|
|
267
|
+
ref: _,
|
|
268
|
+
onPaused: o
|
|
257
269
|
}),
|
|
258
270
|
{
|
|
259
|
-
close:
|
|
260
|
-
|
|
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
|
-
])) :
|
|
280
|
+
])) : P("v-if", !0)
|
|
269
281
|
],
|
|
270
282
|
64
|
|
271
283
|
/* STABLE_FRAGMENT */
|
|
272
284
|
));
|
|
273
285
|
}
|
|
274
|
-
}),
|
|
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:
|
|
289
|
-
const e = v, t = `${
|
|
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
|
-
|
|
292
|
-
var
|
|
293
|
-
(
|
|
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
|
-
},
|
|
296
|
-
var
|
|
297
|
-
|
|
307
|
+
}, s = () => {
|
|
308
|
+
var a;
|
|
309
|
+
_.value = !1, (a = m.value) == null || a.play();
|
|
298
310
|
};
|
|
299
|
-
let
|
|
300
|
-
return
|
|
301
|
-
|
|
302
|
-
([
|
|
303
|
-
|
|
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
|
-
),
|
|
307
|
-
}),
|
|
308
|
-
|
|
309
|
-
}),
|
|
318
|
+
), o.observe($.value));
|
|
319
|
+
}), U(() => {
|
|
320
|
+
o == null || o.disconnect();
|
|
321
|
+
}), k({
|
|
310
322
|
play() {
|
|
311
|
-
|
|
323
|
+
B(new MouseEvent("click"));
|
|
312
324
|
},
|
|
313
325
|
pause() {
|
|
314
|
-
var
|
|
315
|
-
(
|
|
326
|
+
var a, l;
|
|
327
|
+
(a = m.value) == null || a.pause(), (l = b.value) == null || l.pause();
|
|
316
328
|
}
|
|
317
|
-
}), (
|
|
318
|
-
|
|
329
|
+
}), (a, l) => (n(), g(
|
|
330
|
+
H,
|
|
319
331
|
null,
|
|
320
332
|
[
|
|
321
|
-
|
|
322
|
-
|
|
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
|
-
|
|
329
|
-
|
|
340
|
+
P(" Foreground: Button -> Modal Video (Large) "),
|
|
341
|
+
f(
|
|
330
342
|
"div",
|
|
331
343
|
{
|
|
332
|
-
class:
|
|
333
|
-
style:
|
|
344
|
+
class: i([t, e.class, "is-multiple"]),
|
|
345
|
+
style: X(e.style)
|
|
334
346
|
},
|
|
335
347
|
[
|
|
336
|
-
|
|
348
|
+
f(
|
|
337
349
|
"button",
|
|
338
350
|
{
|
|
339
351
|
ref_key: "btnRef",
|
|
340
|
-
ref:
|
|
341
|
-
class:
|
|
342
|
-
onClick:
|
|
352
|
+
ref: $,
|
|
353
|
+
class: i([r, e.playerButtonClass]),
|
|
354
|
+
onClick: B
|
|
343
355
|
},
|
|
344
356
|
[
|
|
345
|
-
|
|
346
|
-
(
|
|
347
|
-
class:
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
387
|
+
f(
|
|
376
388
|
"span",
|
|
377
389
|
{
|
|
378
|
-
class:
|
|
390
|
+
class: i(C)
|
|
379
391
|
},
|
|
380
|
-
|
|
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
|
-
|
|
405
|
+
_.value ? (n(), R(F, {
|
|
394
406
|
key: 0,
|
|
395
407
|
to: "body"
|
|
396
408
|
}, [
|
|
397
|
-
|
|
409
|
+
A(I, T(e, {
|
|
398
410
|
url: e.url,
|
|
399
411
|
autoPlay: !1,
|
|
400
412
|
ref_key: "modalVideoRef",
|
|
401
|
-
ref:
|
|
402
|
-
onPaused:
|
|
413
|
+
ref: b,
|
|
414
|
+
onPaused: s
|
|
403
415
|
}), {
|
|
404
|
-
close:
|
|
405
|
-
|
|
416
|
+
close: V(() => [
|
|
417
|
+
h(a.$slots, "close")
|
|
406
418
|
]),
|
|
407
419
|
_: 3
|
|
408
420
|
/* FORWARDED */
|
|
409
421
|
}, 16, ["url"])
|
|
410
|
-
])) :
|
|
422
|
+
])) : P("v-if", !0)
|
|
411
423
|
],
|
|
412
424
|
64
|
|
413
425
|
/* STABLE_FRAGMENT */
|
|
414
426
|
));
|
|
415
427
|
}
|
|
416
|
-
}),
|
|
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:
|
|
431
|
-
const e = v, t =
|
|
432
|
-
return
|
|
442
|
+
setup(v, { expose: k }) {
|
|
443
|
+
const e = v, t = y();
|
|
444
|
+
return k({
|
|
433
445
|
play() {
|
|
434
|
-
var
|
|
435
|
-
(
|
|
446
|
+
var r;
|
|
447
|
+
(r = t.value) == null || r.play();
|
|
436
448
|
},
|
|
437
449
|
pause() {
|
|
438
|
-
var
|
|
439
|
-
(
|
|
450
|
+
var r;
|
|
451
|
+
(r = t.value) == null || r.pause();
|
|
440
452
|
}
|
|
441
|
-
}), (
|
|
442
|
-
|
|
443
|
-
|
|
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
|
-
|
|
460
|
+
play: V(() => [
|
|
461
|
+
h(r.$slots, "play")
|
|
450
462
|
]),
|
|
451
|
-
close:
|
|
452
|
-
|
|
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
|
-
)) : (
|
|
460
|
-
|
|
461
|
-
|
|
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
|
-
|
|
478
|
+
play: V(() => [
|
|
479
|
+
h(r.$slots, "play")
|
|
468
480
|
]),
|
|
469
|
-
close:
|
|
470
|
-
|
|
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
|
-
|
|
481
|
-
const
|
|
492
|
+
z.install = (v) => (v.component("ScVideo", z), v);
|
|
493
|
+
const le = z;
|
|
482
494
|
export {
|
|
483
|
-
|
|
495
|
+
le as ScVideo
|
|
484
496
|
};
|