familiar-vue 0.1.0 → 0.2.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.
- package/README.md +8 -3
- package/dist/blocks/bots/engine/plastic.d.ts +5 -0
- package/dist/blocks/bots/engine/types.d.ts +5 -3
- package/dist/blocks/bots/types-1.d.ts +2 -2
- package/dist/blocks/bots/types.d.ts +2 -2
- package/dist/blocks/gallery/GalleryGrid.vue.d.ts +46 -0
- package/dist/blocks/gallery/MusicPlayer.vue.d.ts +34 -0
- package/dist/blocks/gallery/VideoPlayer.vue.d.ts +34 -0
- package/dist/blocks/gallery/icons.d.ts +49 -0
- package/dist/blocks/gallery/index.d.ts +141 -0
- package/dist/blocks/gallery/styles.d.ts +1 -0
- package/dist/blocks/gallery/support.d.ts +38 -0
- package/dist/blocks/gallery/types.d.ts +132 -0
- package/dist/blocks/image/studio/ImageStudio.vue.d.ts +1 -1
- package/dist/blocks/jelly/JellySurface.vue.d.ts +43 -0
- package/dist/blocks/jelly/engine/color.d.ts +12 -0
- package/dist/blocks/jelly/engine/environment.d.ts +2 -0
- package/dist/blocks/jelly/engine/frosted.d.ts +25 -0
- package/dist/blocks/jelly/engine/geometry.d.ts +13 -0
- package/dist/blocks/jelly/engine/icons.d.ts +16 -0
- package/dist/blocks/jelly/engine/renderer.d.ts +39 -0
- package/dist/blocks/jelly/engine/sound.d.ts +9 -0
- package/dist/blocks/jelly/engine/textures.d.ts +5 -0
- package/dist/blocks/jelly/index.d.ts +23 -0
- package/dist/blocks/jelly/types.d.ts +68 -0
- package/dist/blocks/loading/BreathingRing.vue.d.ts +25 -0
- package/dist/blocks/loading/index.d.ts +54 -1
- package/dist/blocks/loading/types.d.ts +22 -0
- package/dist/blocks/metal/MetalBadge.vue.d.ts +2 -2
- package/dist/bots.cjs +1 -1
- package/dist/bots.js +1 -1
- package/dist/familiar-vue.css +1 -1
- package/dist/gallery.cjs +2 -0
- package/dist/gallery.cjs.map +1 -0
- package/dist/gallery.d.ts +1 -0
- package/dist/gallery.js +8 -0
- package/dist/gallery.js.map +1 -0
- package/dist/index-Bb3rhhZY.cjs +221 -0
- package/dist/index-Bb3rhhZY.cjs.map +1 -0
- package/dist/index-C96O9k0x.cjs +289 -0
- package/dist/index-C96O9k0x.cjs.map +1 -0
- package/dist/index-CgkG0Pah.js +2580 -0
- package/dist/index-CgkG0Pah.js.map +1 -0
- package/dist/index-CjA5aaxl.js +934 -0
- package/dist/index-CjA5aaxl.js.map +1 -0
- package/dist/index-CpPZg7s9.js +476 -0
- package/dist/index-CpPZg7s9.js.map +1 -0
- package/dist/{index-CQIOTNIw.js → index-Da5OgBHn.js} +1269 -1239
- package/dist/index-Da5OgBHn.js.map +1 -0
- package/dist/index-Dc4JnH_g.cjs +80 -0
- package/dist/index-Dc4JnH_g.cjs.map +1 -0
- package/dist/index-U59nAOr-.cjs +1096 -0
- package/dist/index-U59nAOr-.cjs.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +8 -2
- package/dist/index.js +58 -49
- package/dist/index.js.map +1 -1
- package/dist/jelly.cjs +2 -0
- package/dist/jelly.cjs.map +1 -0
- package/dist/jelly.d.ts +2 -0
- package/dist/jelly.js +9 -0
- package/dist/jelly.js.map +1 -0
- package/dist/loading.cjs +1 -1
- package/dist/loading.js +4 -3
- package/package.json +11 -1
- package/dist/index-BAZi5af3.cjs +0 -221
- package/dist/index-BAZi5af3.cjs.map +0 -1
- package/dist/index-BmMsid7x.js +0 -422
- package/dist/index-BmMsid7x.js.map +0 -1
- package/dist/index-CQIOTNIw.js.map +0 -1
- package/dist/index-DZJ-MNwi.cjs +0 -80
- package/dist/index-DZJ-MNwi.cjs.map +0 -1
|
@@ -0,0 +1,2580 @@
|
|
|
1
|
+
import { h as H, ref as h, onMounted as it, onBeforeUnmount as Ee, defineComponent as Be, useSlots as lt, computed as R, openBlock as a, createElementBlock as r, normalizeStyle as ne, unref as s, Fragment as de, renderList as Re, normalizeClass as N, createElementVNode as t, createVNode as y, toDisplayString as m, renderSlot as je, createTextVNode as le, createBlock as $, Teleport as Je, createCommentVNode as C, nextTick as me, watch as Le, withModifiers as pe } from "vue";
|
|
2
|
+
function G(e, c = {}) {
|
|
3
|
+
const g = c.size ?? 18;
|
|
4
|
+
return H(
|
|
5
|
+
"svg",
|
|
6
|
+
{
|
|
7
|
+
width: g,
|
|
8
|
+
height: g,
|
|
9
|
+
viewBox: "0 0 24 24",
|
|
10
|
+
fill: c.fill ? "currentColor" : "none",
|
|
11
|
+
stroke: c.fill ? "none" : "currentColor",
|
|
12
|
+
"stroke-width": 1.9,
|
|
13
|
+
"stroke-linecap": "round",
|
|
14
|
+
"stroke-linejoin": "round",
|
|
15
|
+
"aria-hidden": "true",
|
|
16
|
+
focusable: "false"
|
|
17
|
+
},
|
|
18
|
+
e
|
|
19
|
+
);
|
|
20
|
+
}
|
|
21
|
+
const S = (e) => H("path", { d: e });
|
|
22
|
+
function Ke(e) {
|
|
23
|
+
return G([
|
|
24
|
+
H("rect", { x: 3, y: 4, width: 18, height: 16, rx: 3 }),
|
|
25
|
+
H("circle", { cx: 9, cy: 9.5, r: 1.6 }),
|
|
26
|
+
S("M3.5 17l5-4.5 4 3.5 3-3 5 4.5")
|
|
27
|
+
], e);
|
|
28
|
+
}
|
|
29
|
+
function Qe(e) {
|
|
30
|
+
return G([
|
|
31
|
+
H("rect", { x: 2.5, y: 5, width: 13.5, height: 14, rx: 3 }),
|
|
32
|
+
S("M16 10.5l4.2-2.4a1 1 0 0 1 1.5.87v6.06a1 1 0 0 1-1.5.87L16 13.5")
|
|
33
|
+
], e);
|
|
34
|
+
}
|
|
35
|
+
function xe(e) {
|
|
36
|
+
return G([
|
|
37
|
+
S("M9 18V6.2a1 1 0 0 1 .8-.98l8-1.6a1 1 0 0 1 1.2.98V15"),
|
|
38
|
+
H("circle", { cx: 6.5, cy: 18, r: 2.5 }),
|
|
39
|
+
H("circle", { cx: 16.5, cy: 15, r: 2.5 })
|
|
40
|
+
], e);
|
|
41
|
+
}
|
|
42
|
+
function te(e) {
|
|
43
|
+
return G([S("M8 5.4a1 1 0 0 1 1.53-.85l9.2 5.8a1 1 0 0 1 0 1.7l-9.2 5.8A1 1 0 0 1 8 16.6z")], { ...e, fill: !0 });
|
|
44
|
+
}
|
|
45
|
+
function _e(e) {
|
|
46
|
+
return G([
|
|
47
|
+
H("rect", { x: 7, y: 5, width: 3.6, height: 14, rx: 1.2 }),
|
|
48
|
+
H("rect", { x: 13.4, y: 5, width: 3.6, height: 14, rx: 1.2 })
|
|
49
|
+
], { ...e, fill: !0 });
|
|
50
|
+
}
|
|
51
|
+
function Pe(e) {
|
|
52
|
+
return G([S("M6 6l12 12M18 6L6 18")], e);
|
|
53
|
+
}
|
|
54
|
+
function $e(e) {
|
|
55
|
+
return G([
|
|
56
|
+
S("M4 9.5v5a1 1 0 0 0 1 1h2.4l4.2 3.4a1 1 0 0 0 1.6-.8V5.9a1 1 0 0 0-1.6-.8L7.4 8.5H5a1 1 0 0 0-1 1z"),
|
|
57
|
+
S("M16.5 8.8a4.6 4.6 0 0 1 0 6.4"),
|
|
58
|
+
S("M19 6.4a8.2 8.2 0 0 1 0 11.2")
|
|
59
|
+
], e);
|
|
60
|
+
}
|
|
61
|
+
function Me(e) {
|
|
62
|
+
return G([
|
|
63
|
+
S("M4 9.5v5a1 1 0 0 0 1 1h2.4l4.2 3.4a1 1 0 0 0 1.6-.8V5.9a1 1 0 0 0-1.6-.8L7.4 8.5H5a1 1 0 0 0-1 1z"),
|
|
64
|
+
S("M16.5 9.5l4.5 5M21 9.5l-4.5 5")
|
|
65
|
+
], e);
|
|
66
|
+
}
|
|
67
|
+
function Ce(e) {
|
|
68
|
+
return G([
|
|
69
|
+
S("M9 4H4v5M15 4h5v5M15 20h5v-5M9 20H4v-5")
|
|
70
|
+
], e);
|
|
71
|
+
}
|
|
72
|
+
function Te(e) {
|
|
73
|
+
return G([
|
|
74
|
+
S("M4 9h5V4M20 9h-5V4M20 15h-5v5M4 15h5v5")
|
|
75
|
+
], e);
|
|
76
|
+
}
|
|
77
|
+
function nt(e) {
|
|
78
|
+
return G([
|
|
79
|
+
H("rect", { x: 3, y: 5, width: 18, height: 14, rx: 3 }),
|
|
80
|
+
H("rect", { x: 12, y: 11, width: 7, height: 6, rx: 1.6, fill: "currentColor", stroke: "none" })
|
|
81
|
+
], e);
|
|
82
|
+
}
|
|
83
|
+
function ot(e) {
|
|
84
|
+
return G([
|
|
85
|
+
S("M4 5v6h6"),
|
|
86
|
+
S("M4.8 15a7.5 7.5 0 1 0 1.8-7.4")
|
|
87
|
+
], e);
|
|
88
|
+
}
|
|
89
|
+
function st(e) {
|
|
90
|
+
return G([
|
|
91
|
+
S("M20 5v6h-6"),
|
|
92
|
+
S("M19.2 15a7.5 7.5 0 1 1-1.8-7.4")
|
|
93
|
+
], e);
|
|
94
|
+
}
|
|
95
|
+
function rt(e) {
|
|
96
|
+
return G([
|
|
97
|
+
H("rect", { x: 9, y: 9, width: 11, height: 11, rx: 2 }),
|
|
98
|
+
S("M15 5.5A2.5 2.5 0 0 0 12.5 3h-7A2.5 2.5 0 0 0 3 5.5v7A2.5 2.5 0 0 0 5.5 15")
|
|
99
|
+
], e);
|
|
100
|
+
}
|
|
101
|
+
function Ze(e) {
|
|
102
|
+
return G([S("M4.5 12.5l5 5 10-11")], e);
|
|
103
|
+
}
|
|
104
|
+
const We = "familiar-vue-gallery-styles", dt = (
|
|
105
|
+
/* css */
|
|
106
|
+
`
|
|
107
|
+
/* ══ Gallery family ═════════════════════════════════════════════════════
|
|
108
|
+
One wall of work cards, one music disc that becomes a now-playing panel,
|
|
109
|
+
one video window that becomes a theater. The three share a single motion
|
|
110
|
+
idea: the piece grows out of the rect it was clicked in, and folds back
|
|
111
|
+
into that rect when it closes. */
|
|
112
|
+
|
|
113
|
+
.fv-gal-root,
|
|
114
|
+
.fv-gal-detail,
|
|
115
|
+
.fv-mus,
|
|
116
|
+
.fv-mus-stage,
|
|
117
|
+
.fv-vid {
|
|
118
|
+
--fv-gal-font: var(--font-ui, var(--font-sans, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif));
|
|
119
|
+
}
|
|
120
|
+
.fv-gal-root[data-theme="light"],
|
|
121
|
+
.fv-gal-detail[data-theme="light"],
|
|
122
|
+
.fv-mus[data-theme="light"],
|
|
123
|
+
.fv-mus-stage[data-theme="light"],
|
|
124
|
+
.fv-vid[data-theme="light"] {
|
|
125
|
+
--fv-gal-ink: #1c1f2b;
|
|
126
|
+
--fv-gal-muted: #6a7080;
|
|
127
|
+
--fv-gal-surface: #fbfaf7;
|
|
128
|
+
--fv-gal-sunken: #ecebe6;
|
|
129
|
+
--fv-gal-accent: #5856d6;
|
|
130
|
+
--fv-gal-backdrop: rgba(17, 21, 38, 0.46);
|
|
131
|
+
--fv-gal-line: rgba(28, 31, 43, 0.09);
|
|
132
|
+
--fv-gal-raise: rgba(28, 31, 43, 0.05);
|
|
133
|
+
}
|
|
134
|
+
.fv-gal-root[data-theme="dark"],
|
|
135
|
+
.fv-gal-detail[data-theme="dark"],
|
|
136
|
+
.fv-mus[data-theme="dark"],
|
|
137
|
+
.fv-mus-stage[data-theme="dark"],
|
|
138
|
+
.fv-vid[data-theme="dark"] {
|
|
139
|
+
--fv-gal-ink: #f2f2ef;
|
|
140
|
+
--fv-gal-muted: #a3a3ab;
|
|
141
|
+
--fv-gal-surface: #1e1f24;
|
|
142
|
+
--fv-gal-sunken: #141518;
|
|
143
|
+
--fv-gal-accent: #a5b4fc;
|
|
144
|
+
--fv-gal-backdrop: rgba(3, 5, 14, 0.65);
|
|
145
|
+
--fv-gal-line: rgba(242, 242, 239, 0.1);
|
|
146
|
+
--fv-gal-raise: rgba(242, 242, 239, 0.07);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
:where(.fv-gal-root, .fv-gal-detail, .fv-mus, .fv-mus-stage, .fv-vid) * { box-sizing: border-box; }
|
|
150
|
+
:where(.fv-gal-root, .fv-gal-detail, .fv-mus, .fv-mus-stage, .fv-vid) button {
|
|
151
|
+
margin: 0;
|
|
152
|
+
padding: 0;
|
|
153
|
+
border: 0;
|
|
154
|
+
background: transparent;
|
|
155
|
+
color: inherit;
|
|
156
|
+
font: inherit;
|
|
157
|
+
letter-spacing: inherit;
|
|
158
|
+
cursor: pointer;
|
|
159
|
+
}
|
|
160
|
+
:where(.fv-gal-root, .fv-gal-detail, .fv-mus, .fv-mus-stage, .fv-vid) button:focus-visible {
|
|
161
|
+
outline: 2px solid var(--fv-gal-accent);
|
|
162
|
+
outline-offset: 2px;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
/* ══ the wall ══════════════════════════════════════════════════════════ */
|
|
166
|
+
.fv-gal-root {
|
|
167
|
+
position: relative;
|
|
168
|
+
width: 100%;
|
|
169
|
+
color: var(--fv-gal-ink);
|
|
170
|
+
font-family: var(--fv-gal-font);
|
|
171
|
+
-webkit-tap-highlight-color: transparent;
|
|
172
|
+
}
|
|
173
|
+
.fv-gal-grid {
|
|
174
|
+
columns: var(--fv-gal-cols, 3);
|
|
175
|
+
column-gap: var(--fv-gal-gap, 14px);
|
|
176
|
+
width: 100%;
|
|
177
|
+
}
|
|
178
|
+
.fv-gal-card {
|
|
179
|
+
break-inside: avoid;
|
|
180
|
+
margin: 0 0 var(--fv-gal-gap, 14px);
|
|
181
|
+
position: relative;
|
|
182
|
+
}
|
|
183
|
+
.fv-gal-frame {
|
|
184
|
+
position: relative;
|
|
185
|
+
padding: 7px 7px 4px;
|
|
186
|
+
border: 1px solid var(--fv-gal-line);
|
|
187
|
+
border-radius: calc(var(--fv-gal-corner, 20px) + 6px);
|
|
188
|
+
background: var(--fv-gal-surface);
|
|
189
|
+
box-shadow: 0 1px 2px rgba(20, 26, 52, 0.04), 0 20px 44px -32px rgba(20, 26, 52, 0.55);
|
|
190
|
+
transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.25s;
|
|
191
|
+
}
|
|
192
|
+
/* The deeper hover shadow is its own layer, faded in with opacity, so the
|
|
193
|
+
frame never repaints a blur while the pointer crosses the wall. */
|
|
194
|
+
.fv-gal-frame::after {
|
|
195
|
+
content: "";
|
|
196
|
+
position: absolute;
|
|
197
|
+
inset: 0;
|
|
198
|
+
border-radius: inherit;
|
|
199
|
+
box-shadow: 0 2px 4px rgba(20, 26, 52, 0.05), 0 30px 64px -34px rgba(20, 26, 52, 0.6);
|
|
200
|
+
opacity: 0;
|
|
201
|
+
pointer-events: none;
|
|
202
|
+
transition: opacity 0.32s ease;
|
|
203
|
+
}
|
|
204
|
+
.fv-gal-card:hover .fv-gal-frame,
|
|
205
|
+
.fv-gal-card:focus-within .fv-gal-frame {
|
|
206
|
+
transform: translateY(-4px);
|
|
207
|
+
border-color: color-mix(in srgb, var(--fv-gal-accent) 26%, transparent);
|
|
208
|
+
will-change: transform;
|
|
209
|
+
}
|
|
210
|
+
.fv-gal-card:hover .fv-gal-frame::after,
|
|
211
|
+
.fv-gal-card:focus-within .fv-gal-frame::after { opacity: 1; }
|
|
212
|
+
.fv-gal-media {
|
|
213
|
+
position: relative;
|
|
214
|
+
border-radius: var(--fv-gal-corner, 20px);
|
|
215
|
+
overflow: hidden;
|
|
216
|
+
background: var(--fv-gal-sunken);
|
|
217
|
+
}
|
|
218
|
+
.fv-gal-media img {
|
|
219
|
+
display: block;
|
|
220
|
+
width: 100%;
|
|
221
|
+
height: auto;
|
|
222
|
+
max-height: 420px;
|
|
223
|
+
object-fit: cover;
|
|
224
|
+
transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
|
|
225
|
+
}
|
|
226
|
+
.fv-gal-card:hover .fv-gal-media > img { transform: scale(1.045); }
|
|
227
|
+
.fv-gal-media.has-ratio { width: 100%; }
|
|
228
|
+
.fv-gal-media.has-ratio > img { height: 100%; max-height: none; }
|
|
229
|
+
.fv-gal-card.is-video .fv-gal-media { aspect-ratio: 16 / 10; }
|
|
230
|
+
.fv-gal-card.is-music .fv-gal-media { aspect-ratio: 1; }
|
|
231
|
+
|
|
232
|
+
.fv-gal-poster {
|
|
233
|
+
position: relative;
|
|
234
|
+
display: flex;
|
|
235
|
+
width: 100%;
|
|
236
|
+
height: 100%;
|
|
237
|
+
min-height: 168px;
|
|
238
|
+
align-items: center;
|
|
239
|
+
justify-content: center;
|
|
240
|
+
overflow: hidden;
|
|
241
|
+
color: #eef1ff;
|
|
242
|
+
background:
|
|
243
|
+
radial-gradient(circle at 28% 20%, rgba(140, 156, 255, 0.55), transparent 46%),
|
|
244
|
+
radial-gradient(circle at 80% 84%, rgba(88, 86, 214, 0.4), transparent 52%),
|
|
245
|
+
linear-gradient(150deg, #2a3358, #161c34 58%, #0d1226);
|
|
246
|
+
}
|
|
247
|
+
.fv-gal-poster.has-poster { background: var(--fv-gal-sunken); }
|
|
248
|
+
.fv-gal-poster > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
|
|
249
|
+
.fv-gal-poster-glow {
|
|
250
|
+
display: grid;
|
|
251
|
+
width: 64px;
|
|
252
|
+
height: 64px;
|
|
253
|
+
place-items: center;
|
|
254
|
+
border-radius: 50%;
|
|
255
|
+
background: rgba(255, 255, 255, 0.13);
|
|
256
|
+
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
|
|
257
|
+
backdrop-filter: blur(6px);
|
|
258
|
+
}
|
|
259
|
+
.fv-gal-play-chip {
|
|
260
|
+
position: absolute;
|
|
261
|
+
z-index: 2;
|
|
262
|
+
display: grid;
|
|
263
|
+
width: 46px;
|
|
264
|
+
height: 46px;
|
|
265
|
+
place-items: center;
|
|
266
|
+
border-radius: 50%;
|
|
267
|
+
background: rgba(255, 255, 255, 0.9);
|
|
268
|
+
color: #1c2240;
|
|
269
|
+
box-shadow: 0 10px 24px rgba(8, 12, 30, 0.35);
|
|
270
|
+
transform: scale(0.92);
|
|
271
|
+
transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
|
|
272
|
+
}
|
|
273
|
+
.fv-gal-card:hover .fv-gal-play-chip { transform: scale(1); }
|
|
274
|
+
.fv-gal-music-art,
|
|
275
|
+
.fv-gal-placeholder {
|
|
276
|
+
display: flex;
|
|
277
|
+
width: 100%;
|
|
278
|
+
height: 100%;
|
|
279
|
+
min-height: 168px;
|
|
280
|
+
flex-direction: column;
|
|
281
|
+
align-items: center;
|
|
282
|
+
justify-content: center;
|
|
283
|
+
gap: 12px;
|
|
284
|
+
padding: 18px;
|
|
285
|
+
text-align: center;
|
|
286
|
+
color: #5b6aa8;
|
|
287
|
+
background:
|
|
288
|
+
radial-gradient(circle at 30% 25%, rgba(214, 222, 255, 0.9), transparent 46%),
|
|
289
|
+
linear-gradient(145deg, #eef1ff, #f7f9ff);
|
|
290
|
+
}
|
|
291
|
+
.fv-gal-music-art span,
|
|
292
|
+
.fv-gal-placeholder span {
|
|
293
|
+
display: -webkit-box;
|
|
294
|
+
-webkit-line-clamp: 2;
|
|
295
|
+
-webkit-box-orient: vertical;
|
|
296
|
+
overflow: hidden;
|
|
297
|
+
font-size: 0.8rem;
|
|
298
|
+
font-weight: 600;
|
|
299
|
+
color: #4a5680;
|
|
300
|
+
}
|
|
301
|
+
.fv-gal-music-art > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
|
|
302
|
+
.fv-gal-music-art:has(> img) { background: var(--fv-gal-sunken); }
|
|
303
|
+
.fv-gal-kind {
|
|
304
|
+
position: absolute;
|
|
305
|
+
left: 10px;
|
|
306
|
+
bottom: 10px;
|
|
307
|
+
z-index: 3;
|
|
308
|
+
padding: 4px 9px;
|
|
309
|
+
border-radius: 999px;
|
|
310
|
+
background: rgba(12, 16, 32, 0.58);
|
|
311
|
+
backdrop-filter: blur(8px);
|
|
312
|
+
color: #fff;
|
|
313
|
+
font-size: 10.5px;
|
|
314
|
+
font-weight: 600;
|
|
315
|
+
letter-spacing: 0.04em;
|
|
316
|
+
text-transform: uppercase;
|
|
317
|
+
opacity: 0;
|
|
318
|
+
transform: translateY(4px);
|
|
319
|
+
transition: opacity 0.24s, transform 0.24s;
|
|
320
|
+
pointer-events: none;
|
|
321
|
+
}
|
|
322
|
+
.fv-gal-card:hover .fv-gal-kind,
|
|
323
|
+
.fv-gal-card:focus-within .fv-gal-kind { opacity: 1; transform: none; }
|
|
324
|
+
.fv-gal-caption {
|
|
325
|
+
display: flex;
|
|
326
|
+
flex-direction: column;
|
|
327
|
+
gap: 2px;
|
|
328
|
+
min-width: 0;
|
|
329
|
+
padding: 9px 8px 8px;
|
|
330
|
+
}
|
|
331
|
+
.fv-gal-caption strong {
|
|
332
|
+
overflow: hidden;
|
|
333
|
+
color: var(--fv-gal-ink);
|
|
334
|
+
font-size: 0.84rem;
|
|
335
|
+
font-weight: 600;
|
|
336
|
+
letter-spacing: -0.01em;
|
|
337
|
+
text-overflow: ellipsis;
|
|
338
|
+
white-space: nowrap;
|
|
339
|
+
}
|
|
340
|
+
.fv-gal-caption span { color: var(--fv-gal-muted); font-size: 0.72rem; }
|
|
341
|
+
.fv-gal-open {
|
|
342
|
+
position: absolute;
|
|
343
|
+
inset: 0;
|
|
344
|
+
z-index: 4;
|
|
345
|
+
border-radius: inherit;
|
|
346
|
+
}
|
|
347
|
+
.fv-gal-empty {
|
|
348
|
+
padding: 40px 20px;
|
|
349
|
+
border: 1px dashed var(--fv-gal-line);
|
|
350
|
+
border-radius: calc(var(--fv-gal-corner, 20px) + 4px);
|
|
351
|
+
color: var(--fv-gal-muted);
|
|
352
|
+
font-size: 0.84rem;
|
|
353
|
+
text-align: center;
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
/* ══ the detail stage ═══════════════════════════════════════════════════ */
|
|
357
|
+
.fv-gal-detail {
|
|
358
|
+
position: fixed;
|
|
359
|
+
inset: 0;
|
|
360
|
+
z-index: 1000;
|
|
361
|
+
display: grid;
|
|
362
|
+
place-items: center;
|
|
363
|
+
padding: clamp(10px, 2.4vw, 32px);
|
|
364
|
+
color: var(--fv-gal-ink);
|
|
365
|
+
font-family: var(--fv-gal-font);
|
|
366
|
+
}
|
|
367
|
+
.fv-gal-backdrop {
|
|
368
|
+
position: absolute;
|
|
369
|
+
inset: 0;
|
|
370
|
+
width: 100%;
|
|
371
|
+
height: 100%;
|
|
372
|
+
background:
|
|
373
|
+
radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--fv-gal-backdrop) 76%, transparent), var(--fv-gal-backdrop));
|
|
374
|
+
animation: fv-gal-fade 0.28s ease both;
|
|
375
|
+
cursor: default;
|
|
376
|
+
}
|
|
377
|
+
.fv-gal-detail.is-closing .fv-gal-backdrop { opacity: 0; transition: opacity 0.3s ease; }
|
|
378
|
+
@keyframes fv-gal-fade { from { opacity: 0; } to { opacity: 1; } }
|
|
379
|
+
|
|
380
|
+
.fv-gal-panel {
|
|
381
|
+
position: relative;
|
|
382
|
+
z-index: 1;
|
|
383
|
+
display: grid;
|
|
384
|
+
width: min(100%, var(--fv-dialog-w, 1020px));
|
|
385
|
+
height: min(100%, calc(var(--fv-dialog-w, 1020px) * 0.7));
|
|
386
|
+
grid-template-columns: minmax(0, 1fr) clamp(310px, 34%, 392px);
|
|
387
|
+
overflow: hidden;
|
|
388
|
+
border-radius: var(--fv-gal-detail-corner, 28px);
|
|
389
|
+
background: var(--fv-gal-sunken);
|
|
390
|
+
box-shadow: 0 34px 90px rgba(8, 12, 30, 0.44);
|
|
391
|
+
transform-origin: 0 0;
|
|
392
|
+
will-change: transform;
|
|
393
|
+
contain: layout paint;
|
|
394
|
+
}
|
|
395
|
+
.fv-gal-stage {
|
|
396
|
+
position: relative;
|
|
397
|
+
display: flex;
|
|
398
|
+
min-width: 0;
|
|
399
|
+
min-height: 0;
|
|
400
|
+
align-items: center;
|
|
401
|
+
justify-content: center;
|
|
402
|
+
padding: clamp(18px, 3.4vw, 48px);
|
|
403
|
+
overflow: hidden;
|
|
404
|
+
background:
|
|
405
|
+
radial-gradient(circle at 30% 18%, color-mix(in srgb, var(--fv-gal-surface) 82%, transparent), transparent 58%),
|
|
406
|
+
var(--fv-gal-sunken);
|
|
407
|
+
}
|
|
408
|
+
/* A host stage (usually a player) owns the whole media column. */
|
|
409
|
+
.fv-gal-stage.has-host-stage {
|
|
410
|
+
padding: clamp(8px, 1.2vw, 16px);
|
|
411
|
+
align-items: stretch;
|
|
412
|
+
}
|
|
413
|
+
.fv-gal-stage-media {
|
|
414
|
+
max-width: 100%;
|
|
415
|
+
max-height: 100%;
|
|
416
|
+
object-fit: contain;
|
|
417
|
+
border-radius: 14px;
|
|
418
|
+
box-shadow: 0 24px 60px -30px rgba(16, 22, 44, 0.5);
|
|
419
|
+
}
|
|
420
|
+
.fv-gal-stage-poster {
|
|
421
|
+
position: relative;
|
|
422
|
+
display: flex;
|
|
423
|
+
width: min(100%, 760px);
|
|
424
|
+
aspect-ratio: 16 / 10;
|
|
425
|
+
align-items: center;
|
|
426
|
+
justify-content: center;
|
|
427
|
+
overflow: hidden;
|
|
428
|
+
border-radius: 18px;
|
|
429
|
+
color: #eef1ff;
|
|
430
|
+
background:
|
|
431
|
+
radial-gradient(circle at 28% 20%, rgba(140, 156, 255, 0.5), transparent 46%),
|
|
432
|
+
linear-gradient(150deg, #2a3358, #161c34 58%, #0d1226);
|
|
433
|
+
box-shadow: 0 30px 70px -34px rgba(8, 12, 30, 0.7);
|
|
434
|
+
}
|
|
435
|
+
.fv-gal-stage-poster > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
|
|
436
|
+
.fv-gal-big-play {
|
|
437
|
+
position: relative;
|
|
438
|
+
z-index: 1;
|
|
439
|
+
display: inline-flex;
|
|
440
|
+
align-items: center;
|
|
441
|
+
gap: 10px;
|
|
442
|
+
padding: 13px 20px 13px 16px;
|
|
443
|
+
border-radius: 999px;
|
|
444
|
+
background: rgba(255, 255, 255, 0.94);
|
|
445
|
+
color: #1c2240;
|
|
446
|
+
font-size: 0.82rem;
|
|
447
|
+
font-weight: 650;
|
|
448
|
+
box-shadow: 0 18px 40px rgba(6, 10, 26, 0.4);
|
|
449
|
+
transition: transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
|
|
450
|
+
}
|
|
451
|
+
.fv-gal-big-play:hover { transform: translateY(-2px) scale(1.02); }
|
|
452
|
+
.fv-gal-stage-music {
|
|
453
|
+
display: flex;
|
|
454
|
+
flex-direction: column;
|
|
455
|
+
align-items: center;
|
|
456
|
+
gap: 20px;
|
|
457
|
+
}
|
|
458
|
+
.fv-gal-stage-cover {
|
|
459
|
+
position: relative;
|
|
460
|
+
width: min(390px, 46vh, 100%);
|
|
461
|
+
aspect-ratio: 1;
|
|
462
|
+
overflow: hidden;
|
|
463
|
+
border-radius: 50%;
|
|
464
|
+
background: radial-gradient(circle at 32% 24%, #8e9df4, #4d5dc7 54%, #232c5b);
|
|
465
|
+
box-shadow: 0 34px 70px -32px rgba(8, 12, 30, 0.75), inset 0 0 0 1px rgba(255, 255, 255, 0.18);
|
|
466
|
+
}
|
|
467
|
+
.fv-gal-stage-cover > img { display: block; width: 100%; height: 100%; object-fit: cover; }
|
|
468
|
+
.fv-gal-stage-cover span { display: grid; color: #dfe5ff; place-items: center; }
|
|
469
|
+
.fv-gal-stage-cover .fv-gal-stage-glyph { position: absolute; inset: 0; }
|
|
470
|
+
.fv-gal-stage-music .fv-gal-big-play { position: static; }
|
|
471
|
+
.fv-gal-stage-meta {
|
|
472
|
+
display: flex;
|
|
473
|
+
flex-direction: column;
|
|
474
|
+
gap: 3px;
|
|
475
|
+
text-align: center;
|
|
476
|
+
}
|
|
477
|
+
.fv-gal-stage-meta strong { color: var(--fv-gal-ink); font-size: 1rem; }
|
|
478
|
+
.fv-gal-stage-meta span { color: var(--fv-gal-muted); font-size: 0.78rem; }
|
|
479
|
+
.fv-gal-stage-missing {
|
|
480
|
+
display: flex;
|
|
481
|
+
flex-direction: column;
|
|
482
|
+
align-items: center;
|
|
483
|
+
gap: 8px;
|
|
484
|
+
padding: 40px;
|
|
485
|
+
color: var(--fv-gal-muted);
|
|
486
|
+
font-size: 0.8rem;
|
|
487
|
+
text-align: center;
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
.fv-gal-side {
|
|
491
|
+
display: flex;
|
|
492
|
+
min-width: 0;
|
|
493
|
+
min-height: 0;
|
|
494
|
+
flex-direction: column;
|
|
495
|
+
border-left: 1px solid var(--fv-gal-line);
|
|
496
|
+
background: var(--fv-gal-surface);
|
|
497
|
+
}
|
|
498
|
+
.fv-gal-head {
|
|
499
|
+
display: flex;
|
|
500
|
+
align-items: flex-start;
|
|
501
|
+
justify-content: space-between;
|
|
502
|
+
gap: 12px;
|
|
503
|
+
padding: 20px 20px 16px;
|
|
504
|
+
border-bottom: 1px solid var(--fv-gal-line);
|
|
505
|
+
}
|
|
506
|
+
.fv-gal-kicker {
|
|
507
|
+
color: var(--fv-gal-muted);
|
|
508
|
+
font-size: 10.5px;
|
|
509
|
+
font-weight: 600;
|
|
510
|
+
letter-spacing: 0.09em;
|
|
511
|
+
text-transform: uppercase;
|
|
512
|
+
}
|
|
513
|
+
.fv-gal-head h2 {
|
|
514
|
+
margin: 5px 0 0;
|
|
515
|
+
color: var(--fv-gal-ink);
|
|
516
|
+
font-size: 1.12rem;
|
|
517
|
+
font-weight: 650;
|
|
518
|
+
letter-spacing: -0.015em;
|
|
519
|
+
line-height: 1.4;
|
|
520
|
+
}
|
|
521
|
+
.fv-gal-close {
|
|
522
|
+
display: grid;
|
|
523
|
+
width: 34px;
|
|
524
|
+
height: 34px;
|
|
525
|
+
flex: 0 0 auto;
|
|
526
|
+
place-items: center;
|
|
527
|
+
border-radius: 50%;
|
|
528
|
+
background: var(--fv-gal-raise);
|
|
529
|
+
color: var(--fv-gal-muted);
|
|
530
|
+
transition: background 0.2s, color 0.2s;
|
|
531
|
+
}
|
|
532
|
+
.fv-gal-close:hover { background: color-mix(in srgb, var(--fv-gal-ink) 13%, transparent); color: var(--fv-gal-ink); }
|
|
533
|
+
.fv-gal-scroll {
|
|
534
|
+
flex: 1;
|
|
535
|
+
min-width: 0;
|
|
536
|
+
min-height: 0;
|
|
537
|
+
overflow-y: auto;
|
|
538
|
+
padding: 18px 20px;
|
|
539
|
+
}
|
|
540
|
+
.fv-gal-block + .fv-gal-block { margin-top: 22px; }
|
|
541
|
+
.fv-gal-block-head {
|
|
542
|
+
display: flex;
|
|
543
|
+
align-items: center;
|
|
544
|
+
justify-content: space-between;
|
|
545
|
+
gap: 10px;
|
|
546
|
+
margin-bottom: 8px;
|
|
547
|
+
color: var(--fv-gal-muted);
|
|
548
|
+
font-size: 10.5px;
|
|
549
|
+
font-weight: 700;
|
|
550
|
+
letter-spacing: 0.08em;
|
|
551
|
+
text-transform: uppercase;
|
|
552
|
+
}
|
|
553
|
+
.fv-gal-copy {
|
|
554
|
+
display: inline-flex;
|
|
555
|
+
align-items: center;
|
|
556
|
+
gap: 4px;
|
|
557
|
+
padding: 4px 9px;
|
|
558
|
+
border-radius: 999px;
|
|
559
|
+
background: var(--fv-gal-raise);
|
|
560
|
+
color: var(--fv-gal-muted);
|
|
561
|
+
font-size: 10.5px;
|
|
562
|
+
font-weight: 600;
|
|
563
|
+
letter-spacing: 0;
|
|
564
|
+
text-transform: none;
|
|
565
|
+
transition: background 0.2s, color 0.2s;
|
|
566
|
+
}
|
|
567
|
+
.fv-gal-copy:hover { background: color-mix(in srgb, var(--fv-gal-ink) 13%, transparent); color: var(--fv-gal-ink); }
|
|
568
|
+
.fv-gal-prompt,
|
|
569
|
+
.fv-gal-text {
|
|
570
|
+
margin: 0;
|
|
571
|
+
color: var(--fv-gal-ink);
|
|
572
|
+
font-size: 0.84rem;
|
|
573
|
+
line-height: 1.72;
|
|
574
|
+
overflow-wrap: anywhere;
|
|
575
|
+
white-space: pre-wrap;
|
|
576
|
+
}
|
|
577
|
+
.fv-gal-prompt {
|
|
578
|
+
padding: 12px 13px;
|
|
579
|
+
border: 1px solid var(--fv-gal-line);
|
|
580
|
+
border-radius: 12px;
|
|
581
|
+
background: var(--fv-gal-sunken);
|
|
582
|
+
}
|
|
583
|
+
.fv-gal-text { color: color-mix(in srgb, var(--fv-gal-ink) 78%, var(--fv-gal-surface)); }
|
|
584
|
+
.fv-gal-params {
|
|
585
|
+
display: grid;
|
|
586
|
+
margin: 22px 0 0;
|
|
587
|
+
gap: 10px;
|
|
588
|
+
}
|
|
589
|
+
.fv-gal-params div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
|
|
590
|
+
.fv-gal-params dt { color: var(--fv-gal-muted); font-size: 0.74rem; }
|
|
591
|
+
.fv-gal-params dd { margin: 0; color: var(--fv-gal-ink); font-size: 0.78rem; font-weight: 600; text-align: right; }
|
|
592
|
+
.fv-gal-foot {
|
|
593
|
+
display: flex;
|
|
594
|
+
flex-direction: column;
|
|
595
|
+
gap: 8px;
|
|
596
|
+
padding: 16px 20px 20px;
|
|
597
|
+
border-top: 1px solid var(--fv-gal-line);
|
|
598
|
+
}
|
|
599
|
+
.fv-gal-cta {
|
|
600
|
+
display: inline-flex;
|
|
601
|
+
align-items: center;
|
|
602
|
+
justify-content: center;
|
|
603
|
+
gap: 9px;
|
|
604
|
+
min-height: 46px;
|
|
605
|
+
border-radius: 13px;
|
|
606
|
+
background: linear-gradient(135deg, color-mix(in srgb, var(--fv-gal-accent) 86%, #000), var(--fv-gal-accent));
|
|
607
|
+
color: #fff;
|
|
608
|
+
font-size: 0.84rem;
|
|
609
|
+
font-weight: 650;
|
|
610
|
+
box-shadow: 0 16px 30px -18px color-mix(in srgb, var(--fv-gal-accent) 70%, transparent);
|
|
611
|
+
transition: transform 0.2s, box-shadow 0.2s;
|
|
612
|
+
}
|
|
613
|
+
.fv-gal-cta:hover { transform: translateY(-1px); box-shadow: 0 20px 36px -18px color-mix(in srgb, var(--fv-gal-accent) 78%, transparent); }
|
|
614
|
+
.fv-gal-hint { margin: 0; color: var(--fv-gal-muted); font-size: 0.7rem; text-align: center; }
|
|
615
|
+
|
|
616
|
+
/* ══ music: the disc ════════════════════════════════════════════════════ */
|
|
617
|
+
.fv-mus {
|
|
618
|
+
position: fixed;
|
|
619
|
+
right: 24px;
|
|
620
|
+
bottom: 24px;
|
|
621
|
+
z-index: 1150;
|
|
622
|
+
color: var(--fv-gal-ink);
|
|
623
|
+
font-family: var(--fv-gal-font);
|
|
624
|
+
}
|
|
625
|
+
.fv-mus-disc-wrap {
|
|
626
|
+
--fv-mus-disc: 78px;
|
|
627
|
+
--fv-mus-wide: 248px;
|
|
628
|
+
display: flex;
|
|
629
|
+
width: var(--fv-mus-disc);
|
|
630
|
+
height: var(--fv-mus-disc);
|
|
631
|
+
align-items: center;
|
|
632
|
+
overflow: hidden;
|
|
633
|
+
border-radius: calc(var(--fv-mus-disc) / 2);
|
|
634
|
+
background: color-mix(in srgb, var(--fv-gal-surface) 92%, transparent);
|
|
635
|
+
box-shadow: 0 16px 36px -14px rgba(12, 16, 34, 0.5), 0 0 0 1px var(--fv-gal-line);
|
|
636
|
+
backdrop-filter: blur(14px);
|
|
637
|
+
transition: width 0.34s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s;
|
|
638
|
+
}
|
|
639
|
+
.fv-mus-disc-wrap:hover,
|
|
640
|
+
.fv-mus-disc-wrap:focus-within {
|
|
641
|
+
width: var(--fv-mus-wide);
|
|
642
|
+
transform: translateY(-2px);
|
|
643
|
+
box-shadow: 0 20px 42px -14px rgba(12, 16, 34, 0.55), 0 0 0 1px color-mix(in srgb, var(--fv-gal-accent) 32%, transparent);
|
|
644
|
+
}
|
|
645
|
+
.fv-mus-disc {
|
|
646
|
+
position: relative;
|
|
647
|
+
display: grid;
|
|
648
|
+
width: var(--fv-mus-disc);
|
|
649
|
+
height: var(--fv-mus-disc);
|
|
650
|
+
flex: 0 0 var(--fv-mus-disc);
|
|
651
|
+
place-items: center;
|
|
652
|
+
border-radius: 50%;
|
|
653
|
+
}
|
|
654
|
+
.fv-mus-ring { position: absolute; inset: 3px; width: calc(100% - 6px); height: calc(100% - 6px); }
|
|
655
|
+
.fv-mus-ring .is-track { stroke: color-mix(in srgb, var(--fv-gal-ink) 14%, transparent); }
|
|
656
|
+
.fv-mus-ring .is-value { stroke: var(--fv-gal-accent); stroke-linecap: round; transition: stroke-dashoffset 0.25s linear; }
|
|
657
|
+
.fv-mus-cover {
|
|
658
|
+
display: grid;
|
|
659
|
+
width: 58px;
|
|
660
|
+
height: 58px;
|
|
661
|
+
overflow: hidden;
|
|
662
|
+
place-items: center;
|
|
663
|
+
border-radius: 50%;
|
|
664
|
+
background: radial-gradient(circle at 35% 25%, #8d9cf3, #4f5fc9 55%, #232c5b);
|
|
665
|
+
color: #fff;
|
|
666
|
+
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
|
|
667
|
+
}
|
|
668
|
+
.fv-mus-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
|
|
669
|
+
.fv-mus-cover.is-spinning { animation: fv-mus-spin 14s linear infinite; }
|
|
670
|
+
@keyframes fv-mus-spin { to { transform: rotate(360deg); } }
|
|
671
|
+
.fv-mus-disc-toggle {
|
|
672
|
+
position: absolute;
|
|
673
|
+
inset: 0;
|
|
674
|
+
display: grid;
|
|
675
|
+
place-items: center;
|
|
676
|
+
border-radius: 50%;
|
|
677
|
+
background: rgba(10, 14, 30, 0.46);
|
|
678
|
+
color: #fff;
|
|
679
|
+
opacity: 0;
|
|
680
|
+
transition: opacity 0.2s;
|
|
681
|
+
}
|
|
682
|
+
.fv-mus-disc:hover .fv-mus-disc-toggle,
|
|
683
|
+
.fv-mus-disc:focus-visible .fv-mus-disc-toggle { opacity: 1; }
|
|
684
|
+
.fv-mus-disc-controls {
|
|
685
|
+
display: flex;
|
|
686
|
+
flex: 0 0 auto;
|
|
687
|
+
align-items: center;
|
|
688
|
+
gap: 6px;
|
|
689
|
+
margin-left: 6px;
|
|
690
|
+
padding-right: 12px;
|
|
691
|
+
opacity: 0;
|
|
692
|
+
visibility: hidden;
|
|
693
|
+
transform: translateX(-8px);
|
|
694
|
+
transition: opacity 0.16s ease, transform 0.2s ease, visibility 0s linear 0.3s;
|
|
695
|
+
}
|
|
696
|
+
.fv-mus-disc-wrap:hover .fv-mus-disc-controls,
|
|
697
|
+
.fv-mus-disc-wrap:focus-within .fv-mus-disc-controls {
|
|
698
|
+
opacity: 1;
|
|
699
|
+
visibility: visible;
|
|
700
|
+
transform: none;
|
|
701
|
+
transition: opacity 0.22s ease 0.1s, transform 0.26s ease 0.06s, visibility 0s;
|
|
702
|
+
}
|
|
703
|
+
.fv-mus-disc-controls button {
|
|
704
|
+
display: grid;
|
|
705
|
+
width: 34px;
|
|
706
|
+
height: 34px;
|
|
707
|
+
place-items: center;
|
|
708
|
+
border-radius: 50%;
|
|
709
|
+
background: var(--fv-gal-raise);
|
|
710
|
+
color: var(--fv-gal-muted);
|
|
711
|
+
transition: background 0.2s, color 0.2s, transform 0.2s;
|
|
712
|
+
}
|
|
713
|
+
.fv-mus-disc-controls button:hover { transform: scale(1.06); background: color-mix(in srgb, var(--fv-gal-ink) 13%, transparent); color: var(--fv-gal-ink); }
|
|
714
|
+
.fv-mus-disc-controls button.is-danger:hover { background: #fbeeee; color: #b4565d; }
|
|
715
|
+
|
|
716
|
+
/* ══ music: the now-playing panel ═══════════════════════════════════════ */
|
|
717
|
+
.fv-mus-stage {
|
|
718
|
+
position: fixed;
|
|
719
|
+
inset: 0;
|
|
720
|
+
z-index: 1200;
|
|
721
|
+
display: grid;
|
|
722
|
+
place-items: center;
|
|
723
|
+
padding: clamp(10px, 2.4vw, 34px);
|
|
724
|
+
color: var(--fv-gal-ink);
|
|
725
|
+
font-family: var(--fv-gal-font);
|
|
726
|
+
}
|
|
727
|
+
.fv-mus-backdrop {
|
|
728
|
+
position: absolute;
|
|
729
|
+
inset: 0;
|
|
730
|
+
width: 100%;
|
|
731
|
+
height: 100%;
|
|
732
|
+
background:
|
|
733
|
+
radial-gradient(circle at 45% 40%, color-mix(in srgb, var(--fv-gal-backdrop) 76%, transparent), var(--fv-gal-backdrop));
|
|
734
|
+
animation: fv-gal-fade 0.28s ease both;
|
|
735
|
+
cursor: default;
|
|
736
|
+
}
|
|
737
|
+
.fv-mus-stage.is-closing .fv-mus-backdrop { opacity: 0; transition: opacity 0.3s ease; }
|
|
738
|
+
.fv-mus-panel {
|
|
739
|
+
position: relative;
|
|
740
|
+
z-index: 1;
|
|
741
|
+
display: grid;
|
|
742
|
+
width: min(100%, var(--fv-dialog-w, 1020px));
|
|
743
|
+
height: min(100%, calc(var(--fv-dialog-w, 1020px) * 0.7));
|
|
744
|
+
grid-template-columns: minmax(0, 1fr) clamp(320px, 36%, 420px);
|
|
745
|
+
overflow: hidden;
|
|
746
|
+
border-radius: var(--fv-mus-corner, 28px);
|
|
747
|
+
background: var(--fv-gal-sunken);
|
|
748
|
+
box-shadow: 0 34px 90px rgba(6, 10, 26, 0.46);
|
|
749
|
+
transform-origin: bottom right;
|
|
750
|
+
will-change: transform;
|
|
751
|
+
contain: layout paint;
|
|
752
|
+
}
|
|
753
|
+
/* embedded: the same panel, in flow inside a host stage */
|
|
754
|
+
.fv-mus.is-embedded {
|
|
755
|
+
position: static;
|
|
756
|
+
right: auto;
|
|
757
|
+
bottom: auto;
|
|
758
|
+
z-index: auto;
|
|
759
|
+
width: 100%;
|
|
760
|
+
height: 100%;
|
|
761
|
+
container-type: inline-size;
|
|
762
|
+
}
|
|
763
|
+
.fv-mus-stage.is-embedded {
|
|
764
|
+
position: static;
|
|
765
|
+
inset: auto;
|
|
766
|
+
display: block;
|
|
767
|
+
height: 100%;
|
|
768
|
+
padding: 0;
|
|
769
|
+
}
|
|
770
|
+
.fv-mus.is-embedded .fv-mus-panel {
|
|
771
|
+
width: 100%;
|
|
772
|
+
height: 100%;
|
|
773
|
+
grid-template-columns: 1fr;
|
|
774
|
+
grid-template-rows: minmax(0, 1fr) minmax(0, 46%);
|
|
775
|
+
border-radius: 14px;
|
|
776
|
+
box-shadow: 0 18px 42px -26px rgba(6, 10, 26, 0.55);
|
|
777
|
+
}
|
|
778
|
+
.fv-mus.is-embedded .fv-mus-side { border-top: 1px solid var(--fv-gal-line); border-left: 0; }
|
|
779
|
+
.fv-mus.is-embedded .fv-mus-art { gap: 12px; padding: clamp(16px, 2.2vw, 28px); }
|
|
780
|
+
/* The stage is shorter than the standalone art column, so the cover is sized
|
|
781
|
+
to fit and kept square; the live line is redundant beside the lyric list. */
|
|
782
|
+
.fv-mus.is-embedded .fv-mus-cover-wrap { width: min(24vh, 210px, 48%); flex-shrink: 0; }
|
|
783
|
+
.fv-mus.is-embedded .fv-mus-live { display: none; }
|
|
784
|
+
.fv-mus.is-embedded .fv-mus-lyric-list { padding: 10px 0 14px; }
|
|
785
|
+
|
|
786
|
+
/* Wide stage: artwork beside the lyrics, like the standalone panel. */
|
|
787
|
+
@container (min-width: 600px) {
|
|
788
|
+
.fv-mus.is-embedded .fv-mus-panel {
|
|
789
|
+
grid-template-columns: minmax(0, 1fr) clamp(290px, 44%, 380px);
|
|
790
|
+
grid-template-rows: minmax(0, 1fr);
|
|
791
|
+
}
|
|
792
|
+
.fv-mus.is-embedded .fv-mus-side { border-top: 0; border-left: 1px solid var(--fv-gal-line); }
|
|
793
|
+
.fv-mus.is-embedded .fv-mus-cover-wrap { width: min(38vh, 240px, 70%); }
|
|
794
|
+
.fv-mus.is-embedded .fv-mus-live { display: block; }
|
|
795
|
+
}
|
|
796
|
+
|
|
797
|
+
/* Narrow stage: a compact now-playing row above a full-height lyric list. */
|
|
798
|
+
@container (max-width: 599px) {
|
|
799
|
+
.fv-mus.is-embedded .fv-mus-panel { grid-template-rows: auto minmax(0, 1fr); }
|
|
800
|
+
.fv-mus.is-embedded .fv-mus-art {
|
|
801
|
+
flex-direction: row;
|
|
802
|
+
align-items: center;
|
|
803
|
+
justify-content: flex-start;
|
|
804
|
+
gap: 14px;
|
|
805
|
+
padding: 14px 16px;
|
|
806
|
+
}
|
|
807
|
+
.fv-mus.is-embedded .fv-mus-cover-wrap { width: 84px; flex: 0 0 auto; }
|
|
808
|
+
.fv-mus.is-embedded .fv-mus-now { max-width: none; padding: 0; text-align: left; }
|
|
809
|
+
.fv-mus.is-embedded .fv-mus-now h2 { font-size: 1.05rem; }
|
|
810
|
+
.fv-mus.is-embedded .fv-mus-eq { display: none; }
|
|
811
|
+
}
|
|
812
|
+
.fv-mus-art {
|
|
813
|
+
position: relative;
|
|
814
|
+
display: flex;
|
|
815
|
+
min-width: 0;
|
|
816
|
+
min-height: 0;
|
|
817
|
+
flex-direction: column;
|
|
818
|
+
align-items: center;
|
|
819
|
+
justify-content: center;
|
|
820
|
+
gap: clamp(10px, 1.6vh, 18px);
|
|
821
|
+
overflow: hidden;
|
|
822
|
+
padding: clamp(20px, 3.4vw, 50px);
|
|
823
|
+
color: #eef1ff;
|
|
824
|
+
background:
|
|
825
|
+
radial-gradient(circle at 26% 18%, rgba(123, 142, 255, 0.5), transparent 42%),
|
|
826
|
+
radial-gradient(circle at 78% 86%, rgba(88, 86, 214, 0.28), transparent 50%),
|
|
827
|
+
linear-gradient(150deg, #263159, #151c38 58%, #0d1226);
|
|
828
|
+
}
|
|
829
|
+
.fv-mus-art::before {
|
|
830
|
+
content: "";
|
|
831
|
+
position: absolute;
|
|
832
|
+
inset: 0;
|
|
833
|
+
background-image: radial-gradient(rgba(255, 255, 255, 0.14) 0.7px, transparent 0.7px);
|
|
834
|
+
background-size: 22px 22px;
|
|
835
|
+
opacity: 0.35;
|
|
836
|
+
pointer-events: none;
|
|
837
|
+
}
|
|
838
|
+
.fv-mus-cover-wrap { position: relative; width: min(40vh, 380px, 72%); aspect-ratio: 1; flex-shrink: 1; min-height: 0; }
|
|
839
|
+
.fv-mus-cover-big {
|
|
840
|
+
position: absolute;
|
|
841
|
+
inset: 7%;
|
|
842
|
+
display: grid;
|
|
843
|
+
overflow: hidden;
|
|
844
|
+
place-items: center;
|
|
845
|
+
border-radius: 50%;
|
|
846
|
+
background: radial-gradient(circle at 32% 24%, #8e9df4, #4d5dc7 54%, #232c5b);
|
|
847
|
+
color: #dfe5ff;
|
|
848
|
+
box-shadow: 0 30px 60px -26px rgba(0, 0, 0, 0.8), inset 0 0 0 1px rgba(255, 255, 255, 0.18);
|
|
849
|
+
}
|
|
850
|
+
.fv-mus-cover-big img { display: block; width: 100%; height: 100%; object-fit: cover; }
|
|
851
|
+
.fv-mus-cover-big.is-spinning { animation: fv-mus-spin 20s linear infinite; }
|
|
852
|
+
.fv-mus-cover-wrap .fv-mus-ring { inset: 0; width: 100%; height: 100%; }
|
|
853
|
+
.fv-mus-cover-wrap .fv-mus-ring .is-track { stroke: rgba(255, 255, 255, 0.16); }
|
|
854
|
+
.fv-mus-cover-wrap .fv-mus-ring .is-value { stroke: #aab7ff; }
|
|
855
|
+
.fv-mus-now { position: relative; z-index: 1; max-width: min(100%, 520px); padding: 0 10px; text-align: center; }
|
|
856
|
+
.fv-mus-badge { color: #aab7ff; font-size: 10px; font-weight: 700; letter-spacing: 0.15em; }
|
|
857
|
+
.fv-mus-now h2 {
|
|
858
|
+
margin: 5px 0 0;
|
|
859
|
+
color: #eef1ff;
|
|
860
|
+
font-size: clamp(1.05rem, 1.8vw, 1.42rem);
|
|
861
|
+
font-weight: 650;
|
|
862
|
+
letter-spacing: -0.02em;
|
|
863
|
+
line-height: 1.35;
|
|
864
|
+
}
|
|
865
|
+
.fv-mus-now p { margin: 5px 0 0; color: rgba(226, 232, 255, 0.64); font-size: 0.76rem; line-height: 1.55; }
|
|
866
|
+
.fv-mus-eq { display: flex; height: 18px; align-items: flex-end; gap: 3px; opacity: 0.45; transition: opacity 0.25s; }
|
|
867
|
+
.fv-mus-eq.is-active { opacity: 1; }
|
|
868
|
+
.fv-mus-eq span { width: 3px; height: 5px; border-radius: 2px; background: #aab7ff; }
|
|
869
|
+
.fv-mus-eq.is-active span { animation: fv-mus-eq 0.9s ease-in-out infinite alternate; }
|
|
870
|
+
.fv-mus-eq span:nth-child(2) { animation-delay: 0.12s; }
|
|
871
|
+
.fv-mus-eq span:nth-child(3) { animation-delay: 0.24s; }
|
|
872
|
+
.fv-mus-eq span:nth-child(4) { animation-delay: 0.06s; }
|
|
873
|
+
.fv-mus-eq span:nth-child(5) { animation-delay: 0.3s; }
|
|
874
|
+
.fv-mus-eq span:nth-child(6) { animation-delay: 0.18s; }
|
|
875
|
+
@keyframes fv-mus-eq { from { height: 5px; } to { height: 17px; } }
|
|
876
|
+
.fv-mus-live { position: relative; z-index: 1; max-width: min(100%, 560px); color: rgba(238, 241, 255, 0.78); font-size: 0.8rem; text-align: center; }
|
|
877
|
+
|
|
878
|
+
.fv-mus-side {
|
|
879
|
+
display: flex;
|
|
880
|
+
min-width: 0;
|
|
881
|
+
min-height: 0;
|
|
882
|
+
flex-direction: column;
|
|
883
|
+
border-left: 1px solid var(--fv-gal-line);
|
|
884
|
+
background: var(--fv-gal-surface);
|
|
885
|
+
}
|
|
886
|
+
.fv-mus-head {
|
|
887
|
+
display: flex;
|
|
888
|
+
align-items: flex-start;
|
|
889
|
+
justify-content: space-between;
|
|
890
|
+
gap: 12px;
|
|
891
|
+
padding: 20px 20px 16px;
|
|
892
|
+
border-bottom: 1px solid var(--fv-gal-line);
|
|
893
|
+
}
|
|
894
|
+
.fv-mus-kicker { display: block; color: var(--fv-gal-muted); font-size: 10px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; }
|
|
895
|
+
.fv-mus-title {
|
|
896
|
+
display: block;
|
|
897
|
+
margin-top: 4px;
|
|
898
|
+
overflow: hidden;
|
|
899
|
+
color: var(--fv-gal-ink);
|
|
900
|
+
font-size: 1rem;
|
|
901
|
+
font-weight: 650;
|
|
902
|
+
text-overflow: ellipsis;
|
|
903
|
+
white-space: nowrap;
|
|
904
|
+
}
|
|
905
|
+
.fv-mus-head-actions { display: flex; flex: 0 0 auto; gap: 6px; }
|
|
906
|
+
.fv-mus-head-actions button {
|
|
907
|
+
display: grid;
|
|
908
|
+
width: 34px;
|
|
909
|
+
height: 34px;
|
|
910
|
+
place-items: center;
|
|
911
|
+
border-radius: 50%;
|
|
912
|
+
background: var(--fv-gal-raise);
|
|
913
|
+
color: var(--fv-gal-muted);
|
|
914
|
+
transition: background 0.2s, color 0.2s;
|
|
915
|
+
}
|
|
916
|
+
.fv-mus-head-actions button:hover { background: color-mix(in srgb, var(--fv-gal-ink) 13%, transparent); color: var(--fv-gal-ink); }
|
|
917
|
+
.fv-mus-head-actions button.is-danger:hover { background: #fbeeee; color: #b4565d; }
|
|
918
|
+
.fv-mus-lyrics { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 20px; scroll-behavior: smooth; }
|
|
919
|
+
/* Vertical-only breathing room around the active lyric. Percentage padding
|
|
920
|
+
would resolve against the list's width, which balloons when the panel is
|
|
921
|
+
stacked in a wide stage. */
|
|
922
|
+
.fv-mus-lyric-list { display: flex; flex-direction: column; gap: 2px; padding: clamp(18px, 9vh, 84px) 0 clamp(22px, 11vh, 104px); }
|
|
923
|
+
.fv-mus-lyric {
|
|
924
|
+
display: flex;
|
|
925
|
+
align-items: baseline;
|
|
926
|
+
gap: 12px;
|
|
927
|
+
padding: 7px 10px;
|
|
928
|
+
border-radius: 10px;
|
|
929
|
+
color: var(--fv-gal-muted);
|
|
930
|
+
cursor: pointer;
|
|
931
|
+
text-align: left;
|
|
932
|
+
transition: background 0.2s, color 0.2s;
|
|
933
|
+
}
|
|
934
|
+
.fv-mus-lyric:hover { background: var(--fv-gal-raise); color: var(--fv-gal-ink); }
|
|
935
|
+
.fv-mus-lyric.is-active { background: color-mix(in srgb, var(--fv-gal-accent) 13%, transparent); color: var(--fv-gal-ink); }
|
|
936
|
+
.fv-mus-lyric.is-active .fv-mus-lyric-text { font-weight: 650; }
|
|
937
|
+
.fv-mus-lyric-time { flex: 0 0 38px; color: var(--fv-gal-muted); font-family: var(--font-mono, ui-monospace, monospace); font-size: 10.5px; }
|
|
938
|
+
.fv-mus-lyric-text { font-size: 0.84rem; line-height: 1.6; }
|
|
939
|
+
.fv-mus-empty {
|
|
940
|
+
display: flex;
|
|
941
|
+
min-height: 100%;
|
|
942
|
+
flex-direction: column;
|
|
943
|
+
align-items: center;
|
|
944
|
+
justify-content: center;
|
|
945
|
+
gap: 8px;
|
|
946
|
+
color: var(--fv-gal-muted);
|
|
947
|
+
font-size: 0.8rem;
|
|
948
|
+
text-align: center;
|
|
949
|
+
}
|
|
950
|
+
.fv-mus-foot {
|
|
951
|
+
padding: 12px 20px 18px;
|
|
952
|
+
border-top: 1px solid var(--fv-gal-line);
|
|
953
|
+
}
|
|
954
|
+
.fv-mus-progress { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
|
|
955
|
+
.fv-mus-progress span { flex: 0 0 auto; color: var(--fv-gal-muted); font-family: var(--font-mono, ui-monospace, monospace); font-size: 10.5px; }
|
|
956
|
+
.fv-mus-controls { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
|
|
957
|
+
.fv-mus-controls-side { display: flex; min-width: 96px; align-items: center; gap: 4px; }
|
|
958
|
+
.fv-mus-controls-side.is-right { justify-content: flex-end; }
|
|
959
|
+
.fv-mus-controls-side button { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; color: var(--fv-gal-muted); transition: background 0.2s, color 0.2s; }
|
|
960
|
+
.fv-mus-controls-side button:hover { background: var(--fv-gal-raise); color: var(--fv-gal-ink); }
|
|
961
|
+
.fv-mus-center { display: flex; align-items: center; gap: 12px; }
|
|
962
|
+
.fv-mus-jump { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; color: var(--fv-gal-muted); transition: background 0.2s, color 0.2s; }
|
|
963
|
+
.fv-mus-jump:hover { background: var(--fv-gal-raise); color: var(--fv-gal-ink); }
|
|
964
|
+
.fv-mus-play {
|
|
965
|
+
display: grid;
|
|
966
|
+
width: 52px;
|
|
967
|
+
height: 52px;
|
|
968
|
+
place-items: center;
|
|
969
|
+
border-radius: 50%;
|
|
970
|
+
background: linear-gradient(135deg, #2b3660, #141b36);
|
|
971
|
+
color: #fff;
|
|
972
|
+
box-shadow: 0 16px 30px -18px rgba(20, 27, 55, 0.8);
|
|
973
|
+
transition: transform 0.2s, box-shadow 0.2s;
|
|
974
|
+
}
|
|
975
|
+
.fv-mus-play:hover { transform: translateY(-1px); box-shadow: 0 20px 36px -18px rgba(20, 27, 55, 0.9); }
|
|
976
|
+
.fv-mus-speed { color: var(--fv-gal-muted); font-size: 11px; font-weight: 700; }
|
|
977
|
+
|
|
978
|
+
/* ══ range slider shared by music and video ═════════════════════════════ */
|
|
979
|
+
.fv-mus-slider,
|
|
980
|
+
.fv-vid-slider {
|
|
981
|
+
width: 100%;
|
|
982
|
+
height: 4px;
|
|
983
|
+
margin: 0;
|
|
984
|
+
border-radius: 999px;
|
|
985
|
+
appearance: none;
|
|
986
|
+
-webkit-appearance: none;
|
|
987
|
+
background: color-mix(in srgb, var(--fv-gal-ink) 16%, transparent);
|
|
988
|
+
cursor: pointer;
|
|
989
|
+
}
|
|
990
|
+
.fv-mus-slider::-webkit-slider-thumb,
|
|
991
|
+
.fv-vid-slider::-webkit-slider-thumb {
|
|
992
|
+
width: 12px;
|
|
993
|
+
height: 12px;
|
|
994
|
+
border: 0;
|
|
995
|
+
border-radius: 50%;
|
|
996
|
+
background: #fff;
|
|
997
|
+
box-shadow: 0 1px 4px rgba(10, 14, 30, 0.35);
|
|
998
|
+
appearance: none;
|
|
999
|
+
-webkit-appearance: none;
|
|
1000
|
+
}
|
|
1001
|
+
.fv-mus-slider::-moz-range-thumb,
|
|
1002
|
+
.fv-vid-slider::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: #fff; }
|
|
1003
|
+
|
|
1004
|
+
/* ══ video: the window and the theater ═════════════════════════════════ */
|
|
1005
|
+
.fv-vid {
|
|
1006
|
+
position: fixed;
|
|
1007
|
+
right: 24px;
|
|
1008
|
+
bottom: 24px;
|
|
1009
|
+
z-index: 1160;
|
|
1010
|
+
width: min(330px, calc(100vw - 32px));
|
|
1011
|
+
color: #fff;
|
|
1012
|
+
font-family: var(--fv-gal-font);
|
|
1013
|
+
}
|
|
1014
|
+
/* embedded: the same frame, in flow inside a host stage */
|
|
1015
|
+
.fv-vid.is-embedded {
|
|
1016
|
+
position: relative;
|
|
1017
|
+
inset: auto;
|
|
1018
|
+
z-index: auto;
|
|
1019
|
+
width: 100%;
|
|
1020
|
+
filter: none;
|
|
1021
|
+
}
|
|
1022
|
+
.fv-vid.is-embedded .fv-vid-frame {
|
|
1023
|
+
border-radius: 14px;
|
|
1024
|
+
box-shadow: 0 24px 60px -34px rgba(8, 12, 30, 0.6);
|
|
1025
|
+
transform-origin: center;
|
|
1026
|
+
}
|
|
1027
|
+
.fv-vid-frame {
|
|
1028
|
+
position: relative;
|
|
1029
|
+
display: flex;
|
|
1030
|
+
width: 100%;
|
|
1031
|
+
flex-direction: column;
|
|
1032
|
+
overflow: hidden;
|
|
1033
|
+
border-radius: var(--fv-vid-corner, 18px);
|
|
1034
|
+
background: #0b0912;
|
|
1035
|
+
box-shadow: 0 22px 44px rgba(8, 12, 30, 0.42);
|
|
1036
|
+
transform-origin: bottom right;
|
|
1037
|
+
will-change: transform;
|
|
1038
|
+
contain: layout paint;
|
|
1039
|
+
}
|
|
1040
|
+
.fv-vid-header {
|
|
1041
|
+
position: absolute;
|
|
1042
|
+
top: 0;
|
|
1043
|
+
left: 0;
|
|
1044
|
+
right: 0;
|
|
1045
|
+
z-index: 3;
|
|
1046
|
+
display: flex;
|
|
1047
|
+
align-items: center;
|
|
1048
|
+
justify-content: space-between;
|
|
1049
|
+
gap: 10px;
|
|
1050
|
+
padding: 10px 11px;
|
|
1051
|
+
background: linear-gradient(to bottom, rgba(8, 6, 16, 0.88), rgba(8, 6, 16, 0));
|
|
1052
|
+
opacity: 0;
|
|
1053
|
+
pointer-events: none;
|
|
1054
|
+
transition: opacity 0.22s;
|
|
1055
|
+
}
|
|
1056
|
+
.fv-vid-header.is-visible,
|
|
1057
|
+
.fv-vid.is-theater .fv-vid-header { opacity: 1; pointer-events: auto; }
|
|
1058
|
+
.fv-vid-title { display: flex; min-width: 0; align-items: center; gap: 8px; }
|
|
1059
|
+
.fv-vid-badge {
|
|
1060
|
+
display: inline-flex;
|
|
1061
|
+
flex: 0 0 auto;
|
|
1062
|
+
align-items: center;
|
|
1063
|
+
gap: 4px;
|
|
1064
|
+
padding: 3px 8px;
|
|
1065
|
+
border-radius: 999px;
|
|
1066
|
+
background: rgba(255, 255, 255, 0.16);
|
|
1067
|
+
color: #dfe5ff;
|
|
1068
|
+
font-size: 10px;
|
|
1069
|
+
font-weight: 600;
|
|
1070
|
+
letter-spacing: 0.03em;
|
|
1071
|
+
backdrop-filter: blur(6px);
|
|
1072
|
+
}
|
|
1073
|
+
.fv-vid-name { overflow: hidden; color: #f2f4ff; font-size: 11.5px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
|
|
1074
|
+
.fv-vid-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 4px; }
|
|
1075
|
+
.fv-vid-icon-btn {
|
|
1076
|
+
display: grid;
|
|
1077
|
+
width: 28px;
|
|
1078
|
+
height: 28px;
|
|
1079
|
+
place-items: center;
|
|
1080
|
+
border-radius: 8px;
|
|
1081
|
+
color: #dbe1ff;
|
|
1082
|
+
transition: background 0.2s, color 0.2s;
|
|
1083
|
+
}
|
|
1084
|
+
.fv-vid-icon-btn:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
|
|
1085
|
+
.fv-vid-icon-btn.is-danger:hover { background: rgba(180, 86, 93, 0.35); }
|
|
1086
|
+
.fv-vid-stage {
|
|
1087
|
+
position: relative;
|
|
1088
|
+
display: flex;
|
|
1089
|
+
aspect-ratio: 16 / 10;
|
|
1090
|
+
width: 100%;
|
|
1091
|
+
align-items: center;
|
|
1092
|
+
justify-content: center;
|
|
1093
|
+
overflow: hidden;
|
|
1094
|
+
background: #07060c;
|
|
1095
|
+
cursor: pointer;
|
|
1096
|
+
}
|
|
1097
|
+
.fv-vid-el { display: block; width: 100%; height: 100%; object-fit: cover; }
|
|
1098
|
+
.fv-vid-pause {
|
|
1099
|
+
position: absolute;
|
|
1100
|
+
inset: 0;
|
|
1101
|
+
display: grid;
|
|
1102
|
+
place-items: center;
|
|
1103
|
+
pointer-events: none;
|
|
1104
|
+
}
|
|
1105
|
+
.fv-vid-pause span {
|
|
1106
|
+
display: grid;
|
|
1107
|
+
width: 52px;
|
|
1108
|
+
height: 52px;
|
|
1109
|
+
place-items: center;
|
|
1110
|
+
border-radius: 50%;
|
|
1111
|
+
background: rgba(255, 255, 255, 0.9);
|
|
1112
|
+
color: #1c2240;
|
|
1113
|
+
box-shadow: 0 12px 26px rgba(4, 8, 22, 0.4), 0 0 0 10px rgba(255, 255, 255, 0.14);
|
|
1114
|
+
}
|
|
1115
|
+
.fv-vid-controls {
|
|
1116
|
+
position: absolute;
|
|
1117
|
+
right: 0;
|
|
1118
|
+
bottom: 0;
|
|
1119
|
+
left: 0;
|
|
1120
|
+
z-index: 3;
|
|
1121
|
+
padding: 20px 11px 9px;
|
|
1122
|
+
background: linear-gradient(to top, rgba(8, 6, 16, 0.92), rgba(8, 6, 16, 0));
|
|
1123
|
+
opacity: 0;
|
|
1124
|
+
pointer-events: none;
|
|
1125
|
+
transition: opacity 0.22s;
|
|
1126
|
+
}
|
|
1127
|
+
.fv-vid-controls.is-visible,
|
|
1128
|
+
.fv-vid.is-theater .fv-vid-controls { opacity: 1; pointer-events: auto; }
|
|
1129
|
+
.fv-vid-progress { margin-bottom: 6px; }
|
|
1130
|
+
.fv-vid-slider { background: linear-gradient(to right, #fff var(--fv-vid-progress, 0%), rgba(255, 255, 255, 0.26) var(--fv-vid-progress, 0%)); }
|
|
1131
|
+
.fv-vid-buttons { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
|
|
1132
|
+
.fv-vid-buttons-left,
|
|
1133
|
+
.fv-vid-buttons-right { display: flex; align-items: center; gap: 6px; }
|
|
1134
|
+
.fv-vid-btn { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; color: #e6eaff; transition: background 0.2s, color 0.2s; }
|
|
1135
|
+
.fv-vid-btn:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }
|
|
1136
|
+
.fv-vid-time { color: rgba(235, 239, 255, 0.8); font-family: var(--font-mono, ui-monospace, monospace); font-size: 10.5px; }
|
|
1137
|
+
.fv-vid-backdrop {
|
|
1138
|
+
position: fixed;
|
|
1139
|
+
inset: 0;
|
|
1140
|
+
display: none;
|
|
1141
|
+
background: radial-gradient(circle at 50% 45%, rgba(6, 8, 18, 0.5), rgba(6, 8, 18, 0.68));
|
|
1142
|
+
animation: fv-gal-fade 0.26s ease both;
|
|
1143
|
+
cursor: default;
|
|
1144
|
+
}
|
|
1145
|
+
.fv-vid.is-theater {
|
|
1146
|
+
inset: 0;
|
|
1147
|
+
right: 0;
|
|
1148
|
+
bottom: 0;
|
|
1149
|
+
display: grid;
|
|
1150
|
+
width: auto;
|
|
1151
|
+
place-items: center;
|
|
1152
|
+
padding: clamp(12px, 3vw, 40px);
|
|
1153
|
+
background: transparent;
|
|
1154
|
+
filter: none;
|
|
1155
|
+
}
|
|
1156
|
+
.fv-vid.is-theater .fv-vid-backdrop { display: block; }
|
|
1157
|
+
.fv-vid.is-theater .fv-vid-frame {
|
|
1158
|
+
z-index: 1;
|
|
1159
|
+
width: min(94vw, var(--fv-dialog-w, 1020px));
|
|
1160
|
+
height: min(72vh, calc(var(--fv-dialog-w, 1020px) * 0.5926));
|
|
1161
|
+
max-height: 100%;
|
|
1162
|
+
border-radius: var(--fv-vid-corner, 18px);
|
|
1163
|
+
box-shadow: 0 40px 120px rgba(0, 0, 0, 0.62);
|
|
1164
|
+
}
|
|
1165
|
+
.fv-vid.is-theater .fv-vid-stage { flex: 1; min-height: 0; aspect-ratio: auto; cursor: default; }
|
|
1166
|
+
.fv-vid.is-theater .fv-vid-el { object-fit: contain; }
|
|
1167
|
+
.fv-vid.is-theater .fv-vid-header { padding: 12px 14px; }
|
|
1168
|
+
.fv-vid.is-theater .fv-vid-actions .fv-vid-icon-btn { width: 32px; height: 32px; }
|
|
1169
|
+
.fv-vid.is-theater .fv-vid-controls { padding: 24px 16px 12px; }
|
|
1170
|
+
.fv-vid.is-theater .fv-vid-slider { height: 4px; }
|
|
1171
|
+
|
|
1172
|
+
/* ══ small screens ═════════════════════════════════════════════════════ */
|
|
1173
|
+
@media (max-width: 880px) {
|
|
1174
|
+
.fv-gal-panel,
|
|
1175
|
+
.fv-mus-panel { width: 100%; height: 100%; grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) minmax(0, 46%); }
|
|
1176
|
+
.fv-gal-stage { padding: 18px; }
|
|
1177
|
+
.fv-gal-side,
|
|
1178
|
+
.fv-mus-side { border-top: 1px solid var(--fv-gal-line); border-left: 0; }
|
|
1179
|
+
.fv-mus-art { padding: 18px; }
|
|
1180
|
+
.fv-mus-cover-wrap { width: min(30vh, 240px, 60%); }
|
|
1181
|
+
.fv-gal-stage-cover { width: min(220px, 30vh, 80%); }
|
|
1182
|
+
.fv-gal-panel { border-radius: 20px; }
|
|
1183
|
+
.fv-mus-panel { border-radius: 20px; }
|
|
1184
|
+
}
|
|
1185
|
+
@media (max-width: 560px) {
|
|
1186
|
+
.fv-mus { right: 14px; bottom: 14px; }
|
|
1187
|
+
.fv-vid { right: 12px; bottom: 12px; }
|
|
1188
|
+
.fv-vid.is-theater { padding: 8px; }
|
|
1189
|
+
.fv-gal-grid { columns: 1; }
|
|
1190
|
+
.fv-gal-caption { padding-bottom: 6px; }
|
|
1191
|
+
}
|
|
1192
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1193
|
+
.fv-mus-cover.is-spinning,
|
|
1194
|
+
.fv-mus-cover-big.is-spinning { animation: none; }
|
|
1195
|
+
.fv-mus-eq.is-active span { animation: none; }
|
|
1196
|
+
.fv-gal-card:hover .fv-gal-frame { transform: none; }
|
|
1197
|
+
.fv-gal-card:hover .fv-gal-media > img { transform: none; }
|
|
1198
|
+
}
|
|
1199
|
+
`
|
|
1200
|
+
);
|
|
1201
|
+
let Xe = !1;
|
|
1202
|
+
function Se() {
|
|
1203
|
+
if (typeof document > "u" || Xe) return;
|
|
1204
|
+
let e = document.getElementById(We);
|
|
1205
|
+
e || (e = document.createElement("style"), e.id = We, document.head.appendChild(e)), e.textContent = dt, Xe = !0;
|
|
1206
|
+
}
|
|
1207
|
+
const Fe = {
|
|
1208
|
+
sm: "760px",
|
|
1209
|
+
md: "1020px",
|
|
1210
|
+
lg: "1280px"
|
|
1211
|
+
};
|
|
1212
|
+
function Ge() {
|
|
1213
|
+
const e = h("light");
|
|
1214
|
+
let c = null, g = null;
|
|
1215
|
+
function o() {
|
|
1216
|
+
if (typeof document > "u") return;
|
|
1217
|
+
const z = document.documentElement, L = z.dataset.theme ?? (z.classList.contains("dark") ? "dark" : z.classList.contains("light") ? "light" : "");
|
|
1218
|
+
L === "dark" || L === "light" ? e.value = L : e.value = c?.matches ? "dark" : "light";
|
|
1219
|
+
}
|
|
1220
|
+
return it(() => {
|
|
1221
|
+
typeof window > "u" || (c = window.matchMedia?.("(prefers-color-scheme: dark)") ?? null, c?.addEventListener?.("change", o), g = new MutationObserver(o), g.observe(document.documentElement, { attributes: !0, attributeFilter: ["data-theme", "class"] }), o());
|
|
1222
|
+
}), Ee(() => {
|
|
1223
|
+
c?.removeEventListener?.("change", o), g?.disconnect();
|
|
1224
|
+
}), e;
|
|
1225
|
+
}
|
|
1226
|
+
function Ae(e) {
|
|
1227
|
+
if (!e) return {};
|
|
1228
|
+
const c = {};
|
|
1229
|
+
return e.ink && (c["--fv-gal-ink"] = e.ink), e.muted && (c["--fv-gal-muted"] = e.muted), e.surface && (c["--fv-gal-surface"] = e.surface), e.sunken && (c["--fv-gal-sunken"] = e.sunken), e.accent && (c["--fv-gal-accent"] = e.accent), e.backdrop && (c["--fv-gal-backdrop"] = e.backdrop), c;
|
|
1230
|
+
}
|
|
1231
|
+
function qe() {
|
|
1232
|
+
return typeof window < "u" && !!window.matchMedia?.("(prefers-reduced-motion: reduce)").matches;
|
|
1233
|
+
}
|
|
1234
|
+
function ge(e) {
|
|
1235
|
+
if (!Number.isFinite(e) || e < 0) return "00:00";
|
|
1236
|
+
const c = Math.floor(e / 60), g = Math.floor(e % 60);
|
|
1237
|
+
return `${String(c).padStart(2, "0")}:${String(g).padStart(2, "0")}`;
|
|
1238
|
+
}
|
|
1239
|
+
function Ne() {
|
|
1240
|
+
if (typeof document > "u") return () => {
|
|
1241
|
+
};
|
|
1242
|
+
const e = document.body, c = e.style.overflow, g = e.style.paddingRight, o = window.innerWidth - document.documentElement.clientWidth;
|
|
1243
|
+
return o > 0 && (e.style.paddingRight = `${o}px`), e.style.overflow = "hidden", () => {
|
|
1244
|
+
e.style.overflow = c, e.style.paddingRight = g;
|
|
1245
|
+
};
|
|
1246
|
+
}
|
|
1247
|
+
function Ve() {
|
|
1248
|
+
return new Promise((e) => requestAnimationFrame(() => e()));
|
|
1249
|
+
}
|
|
1250
|
+
function ct(e) {
|
|
1251
|
+
if (!e) return [];
|
|
1252
|
+
const c = [];
|
|
1253
|
+
for (const g of e.split(`
|
|
1254
|
+
`)) {
|
|
1255
|
+
const o = [...g.matchAll(/\[(\d+):(\d+(?:\.\d+)?)\]/g)], z = g.replace(/\[[^\]]+\]/g, "").trim();
|
|
1256
|
+
if (z)
|
|
1257
|
+
for (const L of o)
|
|
1258
|
+
c.push({ time: Number(L[1]) * 60 + Number(L[2]), text: z });
|
|
1259
|
+
}
|
|
1260
|
+
return c.sort((g, o) => g.time - o.time);
|
|
1261
|
+
}
|
|
1262
|
+
function Oe(e, c, g) {
|
|
1263
|
+
if (!c || qe()) return null;
|
|
1264
|
+
const o = e.getBoundingClientRect();
|
|
1265
|
+
return !o.width || !o.height || !c.width || !c.height ? null : e.animate(
|
|
1266
|
+
[
|
|
1267
|
+
{
|
|
1268
|
+
transform: `translate(${c.left - o.left}px, ${c.top - o.top}px) scale(${c.width / o.width}, ${c.height / o.height})`,
|
|
1269
|
+
opacity: g.opacity
|
|
1270
|
+
},
|
|
1271
|
+
{ transform: "translate(0, 0) scale(1, 1)", opacity: 1 }
|
|
1272
|
+
],
|
|
1273
|
+
{ duration: g.duration, easing: "cubic-bezier(0.2, 0.9, 0.25, 1)" }
|
|
1274
|
+
);
|
|
1275
|
+
}
|
|
1276
|
+
function Ie(e, c, g) {
|
|
1277
|
+
if (!c || qe()) return null;
|
|
1278
|
+
const o = e.getBoundingClientRect();
|
|
1279
|
+
return !o.width || !o.height || !c.width || !c.height ? null : e.animate(
|
|
1280
|
+
[
|
|
1281
|
+
{ transform: "translate(0, 0) scale(1, 1)", opacity: 1 },
|
|
1282
|
+
{
|
|
1283
|
+
transform: `translate(${c.left - o.left}px, ${c.top - o.top}px) scale(${c.width / o.width}, ${c.height / o.height})`,
|
|
1284
|
+
opacity: g.opacity
|
|
1285
|
+
}
|
|
1286
|
+
],
|
|
1287
|
+
{ duration: g.duration, easing: "cubic-bezier(0.2, 0.9, 0.25, 1)", fill: "forwards" }
|
|
1288
|
+
);
|
|
1289
|
+
}
|
|
1290
|
+
function Ue(e, c) {
|
|
1291
|
+
if (e.key !== "Tab" || !c) return;
|
|
1292
|
+
const g = Array.from(
|
|
1293
|
+
c.querySelectorAll('button:not(:disabled), a[href], input:not(:disabled), textarea:not(:disabled), [tabindex]:not([tabindex="-1"])')
|
|
1294
|
+
).filter((L) => L.offsetParent !== null);
|
|
1295
|
+
if (!g.length) return;
|
|
1296
|
+
const o = g[0], z = g[g.length - 1];
|
|
1297
|
+
e.shiftKey && document.activeElement === o ? (e.preventDefault(), z.focus()) : !e.shiftKey && document.activeElement === z && (e.preventDefault(), o.focus());
|
|
1298
|
+
}
|
|
1299
|
+
const ut = ["data-theme"], vt = {
|
|
1300
|
+
key: 0,
|
|
1301
|
+
class: "fv-gal-grid",
|
|
1302
|
+
role: "list"
|
|
1303
|
+
}, ft = { class: "fv-gal-frame" }, pt = ["src", "alt", "onError"], gt = {
|
|
1304
|
+
key: 1,
|
|
1305
|
+
class: "fv-gal-placeholder"
|
|
1306
|
+
}, mt = ["src"], ht = {
|
|
1307
|
+
key: 1,
|
|
1308
|
+
class: "fv-gal-poster-glow"
|
|
1309
|
+
}, bt = {
|
|
1310
|
+
class: "fv-gal-play-chip",
|
|
1311
|
+
"aria-hidden": "true"
|
|
1312
|
+
}, xt = {
|
|
1313
|
+
key: 2,
|
|
1314
|
+
class: "fv-gal-music-art"
|
|
1315
|
+
}, yt = ["src"], kt = {
|
|
1316
|
+
class: "fv-gal-kind",
|
|
1317
|
+
"aria-hidden": "true"
|
|
1318
|
+
}, wt = { class: "fv-gal-caption" }, zt = ["title"], _t = ["aria-label", "onClick"], $t = {
|
|
1319
|
+
key: 1,
|
|
1320
|
+
class: "fv-gal-empty"
|
|
1321
|
+
}, Mt = ["data-theme", "aria-label"], Ct = ["aria-label"], Tt = ["aria-label"], Pt = ["src", "alt"], Et = {
|
|
1322
|
+
key: 1,
|
|
1323
|
+
class: "fv-gal-stage-missing"
|
|
1324
|
+
}, St = {
|
|
1325
|
+
key: 2,
|
|
1326
|
+
class: "fv-gal-stage-poster"
|
|
1327
|
+
}, jt = ["src"], Rt = {
|
|
1328
|
+
key: 3,
|
|
1329
|
+
class: "fv-gal-stage-music"
|
|
1330
|
+
}, Lt = { class: "fv-gal-stage-cover" }, Bt = ["src"], Ft = {
|
|
1331
|
+
key: 1,
|
|
1332
|
+
class: "fv-gal-stage-glyph"
|
|
1333
|
+
}, Gt = { class: "fv-gal-stage-meta" }, At = { class: "fv-gal-side" }, qt = { class: "fv-gal-head" }, Nt = { class: "fv-gal-kicker" }, Vt = { class: "fv-gal-scroll" }, Ot = {
|
|
1334
|
+
key: 0,
|
|
1335
|
+
class: "fv-gal-block"
|
|
1336
|
+
}, It = { class: "fv-gal-block-head" }, Ut = { class: "fv-gal-prompt" }, Dt = {
|
|
1337
|
+
key: 1,
|
|
1338
|
+
class: "fv-gal-block"
|
|
1339
|
+
}, Ht = { class: "fv-gal-text" }, Yt = { class: "fv-gal-params" }, Kt = { key: 0 }, Wt = { key: 1 }, Xt = { class: "fv-gal-foot" }, Jt = { class: "fv-gal-hint" }, Qt = /* @__PURE__ */ Be({
|
|
1340
|
+
name: "GalleryGrid",
|
|
1341
|
+
__name: "GalleryGrid",
|
|
1342
|
+
props: {
|
|
1343
|
+
items: { default: () => [] },
|
|
1344
|
+
columns: { default: 3 },
|
|
1345
|
+
gap: { default: 14 },
|
|
1346
|
+
corner: { default: 20 },
|
|
1347
|
+
label: { default: "Gallery" },
|
|
1348
|
+
size: { default: "md" },
|
|
1349
|
+
palette: { default: void 0 }
|
|
1350
|
+
},
|
|
1351
|
+
emits: ["open", "close", "play"],
|
|
1352
|
+
setup(e, { expose: c, emit: g }) {
|
|
1353
|
+
Se();
|
|
1354
|
+
const o = e, z = g, L = Ge(), M = lt(), i = h(null), I = h(null), j = h(null), T = h(!1), b = h(!1), p = h(/* @__PURE__ */ new Set());
|
|
1355
|
+
let k = null, x = null, _, A, B = 0;
|
|
1356
|
+
const U = R(() => ({
|
|
1357
|
+
...Ae(o.palette),
|
|
1358
|
+
"--fv-gal-cols": String(Math.max(1, o.columns)),
|
|
1359
|
+
"--fv-gal-gap": `${Math.max(0, o.gap)}px`,
|
|
1360
|
+
"--fv-gal-corner": `${Math.max(0, o.corner)}px`,
|
|
1361
|
+
"--fv-gal-detail-corner": `${Math.max(0, o.corner) + 8}px`,
|
|
1362
|
+
"--fv-dialog-w": Fe[o.size]
|
|
1363
|
+
})), P = (d) => d.kind ?? "image", F = (d) => ({
|
|
1364
|
+
image: "Image",
|
|
1365
|
+
video: "Video",
|
|
1366
|
+
music: "Music"
|
|
1367
|
+
})[P(d)], W = (d) => d.thumbnail || d.src || "", Z = (d) => d.src || d.thumbnail || "", V = (d) => d.cover || d.poster || d.thumbnail || "", O = (d) => d.poster || d.cover || d.thumbnail || "", ae = (d) => P(d) === "image" && d.width && d.height ? `${d.width} / ${d.height}` : void 0, ce = (d) => P(d) === "video" ? "Play video" : P(d) === "music" ? "Play track" : "", Y = R(() => !!M.stage), ie = R(() => i.value ? P(i.value) === "image" ? "Opened from the wall · Esc to close" : Y.value ? "Plays right here · Esc to close" : "The player floats where you left the wall" : "");
|
|
1368
|
+
function oe(d, v) {
|
|
1369
|
+
B += 1, clearTimeout(_), x?.(), x = null, k = (v?.currentTarget instanceof HTMLElement ? v.currentTarget.closest("article") : null)?.getBoundingClientRect() ?? null, T.value = !1, i.value = d, z("open", d), he();
|
|
1370
|
+
}
|
|
1371
|
+
function X() {
|
|
1372
|
+
clearTimeout(_), x?.(), x = null, window.removeEventListener("keydown", ee), i.value = null, T.value = !1, b.value = !1, z("close");
|
|
1373
|
+
}
|
|
1374
|
+
function D() {
|
|
1375
|
+
if (!i.value || T.value) return;
|
|
1376
|
+
T.value = !0;
|
|
1377
|
+
const d = ++B, v = I.value, u = v ? Ie(v, k, { opacity: 0, duration: 320 }) : null;
|
|
1378
|
+
if (!u) {
|
|
1379
|
+
X();
|
|
1380
|
+
return;
|
|
1381
|
+
}
|
|
1382
|
+
const K = () => {
|
|
1383
|
+
d === B && X();
|
|
1384
|
+
};
|
|
1385
|
+
u.onfinish = K, u.oncancel = K, _ = setTimeout(K, 520);
|
|
1386
|
+
}
|
|
1387
|
+
function ee(d) {
|
|
1388
|
+
if (d.key === "Escape") {
|
|
1389
|
+
d.preventDefault(), D();
|
|
1390
|
+
return;
|
|
1391
|
+
}
|
|
1392
|
+
Ue(d, I.value);
|
|
1393
|
+
}
|
|
1394
|
+
async function he() {
|
|
1395
|
+
const d = B;
|
|
1396
|
+
x = Ne(), window.addEventListener("keydown", ee), await me(), requestAnimationFrame(() => j.value?.focus({ preventScroll: !0 })), await Ve();
|
|
1397
|
+
const v = I.value;
|
|
1398
|
+
v && i.value && d === B && Oe(v, k, { opacity: 0.8, duration: 440 });
|
|
1399
|
+
}
|
|
1400
|
+
function J(d) {
|
|
1401
|
+
z("play", d);
|
|
1402
|
+
}
|
|
1403
|
+
async function Q(d) {
|
|
1404
|
+
if (d.prompt) {
|
|
1405
|
+
try {
|
|
1406
|
+
await navigator.clipboard.writeText(d.prompt), b.value = !0;
|
|
1407
|
+
} catch {
|
|
1408
|
+
b.value = !1;
|
|
1409
|
+
}
|
|
1410
|
+
clearTimeout(A), A = setTimeout(() => {
|
|
1411
|
+
b.value = !1;
|
|
1412
|
+
}, 1800);
|
|
1413
|
+
}
|
|
1414
|
+
}
|
|
1415
|
+
function ue(d) {
|
|
1416
|
+
p.value = new Set(p.value).add(d);
|
|
1417
|
+
}
|
|
1418
|
+
return Ee(() => {
|
|
1419
|
+
x?.(), window.removeEventListener("keydown", ee), clearTimeout(_), clearTimeout(A);
|
|
1420
|
+
}), c({ close: D, open: oe }), (d, v) => (a(), r("div", {
|
|
1421
|
+
class: "fv-gal-root",
|
|
1422
|
+
"data-theme": s(L),
|
|
1423
|
+
style: ne(U.value)
|
|
1424
|
+
}, [
|
|
1425
|
+
e.items.length ? (a(), r("div", vt, [
|
|
1426
|
+
(a(!0), r(de, null, Re(e.items, (u) => (a(), r("article", {
|
|
1427
|
+
key: u.id,
|
|
1428
|
+
class: N(["fv-gal-card", `is-${P(u)}`]),
|
|
1429
|
+
role: "listitem"
|
|
1430
|
+
}, [
|
|
1431
|
+
t("div", ft, [
|
|
1432
|
+
t("div", {
|
|
1433
|
+
class: N(["fv-gal-media", { "has-ratio": ae(u) }]),
|
|
1434
|
+
style: ne(ae(u) ? { aspectRatio: ae(u) } : void 0)
|
|
1435
|
+
}, [
|
|
1436
|
+
P(u) === "image" ? (a(), r(de, { key: 0 }, [
|
|
1437
|
+
W(u) && !p.value.has(u.id) ? (a(), r("img", {
|
|
1438
|
+
key: 0,
|
|
1439
|
+
src: W(u),
|
|
1440
|
+
alt: u.title,
|
|
1441
|
+
loading: "lazy",
|
|
1442
|
+
onError: (K) => ue(u.id)
|
|
1443
|
+
}, null, 40, pt)) : (a(), r("div", gt, [
|
|
1444
|
+
y(s(Ke), { size: 26 }),
|
|
1445
|
+
t("span", null, m(u.title), 1)
|
|
1446
|
+
]))
|
|
1447
|
+
], 64)) : P(u) === "video" ? (a(), r("div", {
|
|
1448
|
+
key: 1,
|
|
1449
|
+
class: N(["fv-gal-poster", { "has-poster": O(u) }])
|
|
1450
|
+
}, [
|
|
1451
|
+
O(u) ? (a(), r("img", {
|
|
1452
|
+
key: 0,
|
|
1453
|
+
src: O(u),
|
|
1454
|
+
alt: "",
|
|
1455
|
+
loading: "lazy"
|
|
1456
|
+
}, null, 8, mt)) : (a(), r("span", ht, [
|
|
1457
|
+
y(s(Qe), { size: 30 })
|
|
1458
|
+
])),
|
|
1459
|
+
t("span", bt, [
|
|
1460
|
+
y(s(te), { size: 17 })
|
|
1461
|
+
])
|
|
1462
|
+
], 2)) : (a(), r("div", xt, [
|
|
1463
|
+
V(u) ? (a(), r("img", {
|
|
1464
|
+
key: 0,
|
|
1465
|
+
src: V(u),
|
|
1466
|
+
alt: "",
|
|
1467
|
+
loading: "lazy"
|
|
1468
|
+
}, null, 8, yt)) : (a(), r(de, { key: 1 }, [
|
|
1469
|
+
y(s(xe), { size: 34 }),
|
|
1470
|
+
t("span", null, m(u.title), 1)
|
|
1471
|
+
], 64))
|
|
1472
|
+
])),
|
|
1473
|
+
t("span", kt, m(F(u)), 1)
|
|
1474
|
+
], 6),
|
|
1475
|
+
t("div", wt, [
|
|
1476
|
+
t("strong", {
|
|
1477
|
+
title: u.title
|
|
1478
|
+
}, m(u.title), 9, zt),
|
|
1479
|
+
t("span", null, m(u.meta || F(u)), 1)
|
|
1480
|
+
]),
|
|
1481
|
+
t("button", {
|
|
1482
|
+
type: "button",
|
|
1483
|
+
class: "fv-gal-open",
|
|
1484
|
+
"aria-label": `Open ${u.title}`,
|
|
1485
|
+
onClick: (K) => oe(u, K)
|
|
1486
|
+
}, null, 8, _t)
|
|
1487
|
+
])
|
|
1488
|
+
], 2))), 128))
|
|
1489
|
+
])) : (a(), r("div", $t, [
|
|
1490
|
+
je(d.$slots, "empty", {}, () => [
|
|
1491
|
+
v[5] || (v[5] = le("No works yet.", -1))
|
|
1492
|
+
])
|
|
1493
|
+
])),
|
|
1494
|
+
(a(), $(Je, { to: "body" }, [
|
|
1495
|
+
i.value ? (a(), r("div", {
|
|
1496
|
+
key: 0,
|
|
1497
|
+
class: N(["fv-gal-detail", { "is-closing": T.value }]),
|
|
1498
|
+
"data-theme": s(L),
|
|
1499
|
+
style: ne(U.value),
|
|
1500
|
+
role: "dialog",
|
|
1501
|
+
"aria-modal": "true",
|
|
1502
|
+
"aria-label": `${F(i.value)} detail: ${i.value.title}`
|
|
1503
|
+
}, [
|
|
1504
|
+
t("button", {
|
|
1505
|
+
type: "button",
|
|
1506
|
+
class: "fv-gal-backdrop",
|
|
1507
|
+
"aria-label": `Close ${e.label} detail`,
|
|
1508
|
+
onClick: D
|
|
1509
|
+
}, null, 8, Ct),
|
|
1510
|
+
t("div", {
|
|
1511
|
+
ref_key: "panelRef",
|
|
1512
|
+
ref: I,
|
|
1513
|
+
class: "fv-gal-panel"
|
|
1514
|
+
}, [
|
|
1515
|
+
t("section", {
|
|
1516
|
+
class: N(["fv-gal-stage", { "has-host-stage": Y.value && P(i.value) !== "image" }]),
|
|
1517
|
+
"aria-label": `${i.value.title} media`
|
|
1518
|
+
}, [
|
|
1519
|
+
P(i.value) === "image" ? (a(), r(de, { key: 0 }, [
|
|
1520
|
+
Z(i.value) && !p.value.has(i.value.id) ? (a(), r("img", {
|
|
1521
|
+
key: 0,
|
|
1522
|
+
class: "fv-gal-stage-media",
|
|
1523
|
+
src: Z(i.value),
|
|
1524
|
+
alt: i.value.title,
|
|
1525
|
+
onError: v[0] || (v[0] = (u) => ue(i.value.id))
|
|
1526
|
+
}, null, 40, Pt)) : (a(), r("div", Et, [
|
|
1527
|
+
y(s(Ke), { size: 30 }),
|
|
1528
|
+
v[6] || (v[6] = t("span", null, "Image unavailable", -1))
|
|
1529
|
+
]))
|
|
1530
|
+
], 64)) : Y.value ? je(d.$slots, "stage", {
|
|
1531
|
+
item: i.value,
|
|
1532
|
+
close: D
|
|
1533
|
+
}, void 0, void 0, 1) : P(i.value) === "video" ? (a(), r("div", St, [
|
|
1534
|
+
O(i.value) ? (a(), r("img", {
|
|
1535
|
+
key: 0,
|
|
1536
|
+
src: O(i.value),
|
|
1537
|
+
alt: ""
|
|
1538
|
+
}, null, 8, jt)) : C("", !0),
|
|
1539
|
+
t("button", {
|
|
1540
|
+
type: "button",
|
|
1541
|
+
class: "fv-gal-big-play",
|
|
1542
|
+
onClick: v[1] || (v[1] = (u) => J(i.value))
|
|
1543
|
+
}, [
|
|
1544
|
+
y(s(te), { size: 18 }),
|
|
1545
|
+
v[7] || (v[7] = le("Play video ", -1))
|
|
1546
|
+
])
|
|
1547
|
+
])) : (a(), r("div", Rt, [
|
|
1548
|
+
t("div", Lt, [
|
|
1549
|
+
V(i.value) ? (a(), r("img", {
|
|
1550
|
+
key: 0,
|
|
1551
|
+
src: V(i.value),
|
|
1552
|
+
alt: ""
|
|
1553
|
+
}, null, 8, Bt)) : (a(), r("span", Ft, [
|
|
1554
|
+
y(s(xe), { size: 62 })
|
|
1555
|
+
]))
|
|
1556
|
+
]),
|
|
1557
|
+
t("div", Gt, [
|
|
1558
|
+
t("strong", null, m(i.value.title), 1),
|
|
1559
|
+
t("span", null, m(i.value.style || i.value.meta || "Original music"), 1)
|
|
1560
|
+
]),
|
|
1561
|
+
t("button", {
|
|
1562
|
+
type: "button",
|
|
1563
|
+
class: "fv-gal-big-play",
|
|
1564
|
+
onClick: v[2] || (v[2] = (u) => J(i.value))
|
|
1565
|
+
}, [
|
|
1566
|
+
y(s(te), { size: 18 }),
|
|
1567
|
+
v[8] || (v[8] = le("Play track ", -1))
|
|
1568
|
+
])
|
|
1569
|
+
]))
|
|
1570
|
+
], 10, Tt),
|
|
1571
|
+
t("aside", At, [
|
|
1572
|
+
t("header", qt, [
|
|
1573
|
+
t("div", null, [
|
|
1574
|
+
t("span", Nt, [
|
|
1575
|
+
le(m(F(i.value)), 1),
|
|
1576
|
+
i.value.meta ? (a(), r(de, { key: 0 }, [
|
|
1577
|
+
le(" · " + m(i.value.meta), 1)
|
|
1578
|
+
], 64)) : C("", !0)
|
|
1579
|
+
]),
|
|
1580
|
+
t("h2", null, m(i.value.title), 1)
|
|
1581
|
+
]),
|
|
1582
|
+
t("button", {
|
|
1583
|
+
ref_key: "closeButtonRef",
|
|
1584
|
+
ref: j,
|
|
1585
|
+
type: "button",
|
|
1586
|
+
class: "fv-gal-close",
|
|
1587
|
+
"aria-label": "Close detail",
|
|
1588
|
+
onClick: D
|
|
1589
|
+
}, [
|
|
1590
|
+
y(s(Pe), { size: 17 })
|
|
1591
|
+
], 512)
|
|
1592
|
+
]),
|
|
1593
|
+
t("div", Vt, [
|
|
1594
|
+
je(d.$slots, "detail", {
|
|
1595
|
+
item: i.value,
|
|
1596
|
+
close: D
|
|
1597
|
+
}, () => [
|
|
1598
|
+
i.value.prompt ? (a(), r("section", Ot, [
|
|
1599
|
+
t("div", It, [
|
|
1600
|
+
v[9] || (v[9] = t("span", null, "Prompt", -1)),
|
|
1601
|
+
t("button", {
|
|
1602
|
+
type: "button",
|
|
1603
|
+
class: "fv-gal-copy",
|
|
1604
|
+
onClick: v[3] || (v[3] = (u) => Q(i.value))
|
|
1605
|
+
}, [
|
|
1606
|
+
b.value ? (a(), $(s(Ze), {
|
|
1607
|
+
key: 0,
|
|
1608
|
+
size: 12
|
|
1609
|
+
})) : (a(), $(s(rt), {
|
|
1610
|
+
key: 1,
|
|
1611
|
+
size: 12
|
|
1612
|
+
})),
|
|
1613
|
+
le(" " + m(b.value ? "Copied" : "Copy"), 1)
|
|
1614
|
+
])
|
|
1615
|
+
]),
|
|
1616
|
+
t("p", Ut, m(i.value.prompt), 1)
|
|
1617
|
+
])) : C("", !0),
|
|
1618
|
+
i.value.description ? (a(), r("section", Dt, [
|
|
1619
|
+
v[10] || (v[10] = t("div", { class: "fv-gal-block-head" }, [
|
|
1620
|
+
t("span", null, "About")
|
|
1621
|
+
], -1)),
|
|
1622
|
+
t("p", Ht, m(i.value.description), 1)
|
|
1623
|
+
])) : C("", !0),
|
|
1624
|
+
t("dl", Yt, [
|
|
1625
|
+
t("div", null, [
|
|
1626
|
+
v[11] || (v[11] = t("dt", null, "Type", -1)),
|
|
1627
|
+
t("dd", null, m(F(i.value)), 1)
|
|
1628
|
+
]),
|
|
1629
|
+
i.value.width && i.value.height ? (a(), r("div", Kt, [
|
|
1630
|
+
v[12] || (v[12] = t("dt", null, "Size", -1)),
|
|
1631
|
+
t("dd", null, m(i.value.width) + " × " + m(i.value.height), 1)
|
|
1632
|
+
])) : C("", !0),
|
|
1633
|
+
i.value.style ? (a(), r("div", Wt, [
|
|
1634
|
+
v[13] || (v[13] = t("dt", null, "Style", -1)),
|
|
1635
|
+
t("dd", null, m(i.value.style), 1)
|
|
1636
|
+
])) : C("", !0)
|
|
1637
|
+
])
|
|
1638
|
+
])
|
|
1639
|
+
]),
|
|
1640
|
+
t("footer", Xt, [
|
|
1641
|
+
ce(i.value) && !Y.value ? (a(), r("button", {
|
|
1642
|
+
key: 0,
|
|
1643
|
+
type: "button",
|
|
1644
|
+
class: "fv-gal-cta",
|
|
1645
|
+
onClick: v[4] || (v[4] = (u) => J(i.value))
|
|
1646
|
+
}, [
|
|
1647
|
+
y(s(te), { size: 17 }),
|
|
1648
|
+
le(m(ce(i.value)), 1)
|
|
1649
|
+
])) : C("", !0),
|
|
1650
|
+
t("p", Jt, m(ie.value), 1)
|
|
1651
|
+
])
|
|
1652
|
+
])
|
|
1653
|
+
], 512)
|
|
1654
|
+
], 14, Mt)) : C("", !0)
|
|
1655
|
+
]))
|
|
1656
|
+
], 12, ut));
|
|
1657
|
+
}
|
|
1658
|
+
}), Zt = ["data-theme"], ea = ["src"], ta = ["aria-label"], aa = ["aria-label", "title"], ia = {
|
|
1659
|
+
class: "fv-mus-ring",
|
|
1660
|
+
viewBox: "0 0 100 100",
|
|
1661
|
+
"aria-hidden": "true"
|
|
1662
|
+
}, la = ["stroke-dasharray", "stroke-dashoffset"], na = ["src"], oa = {
|
|
1663
|
+
class: "fv-mus-disc-toggle",
|
|
1664
|
+
"aria-hidden": "true"
|
|
1665
|
+
}, sa = { class: "fv-mus-disc-controls" }, ra = ["aria-label", "title"], da = ["aria-label", "title"], ca = ["data-theme", "role", "aria-modal", "aria-label"], ua = { class: "fv-mus-art" }, va = { class: "fv-mus-cover-wrap" }, fa = ["src", "alt"], pa = {
|
|
1666
|
+
class: "fv-mus-ring",
|
|
1667
|
+
viewBox: "0 0 100 100",
|
|
1668
|
+
"aria-hidden": "true"
|
|
1669
|
+
}, ga = ["stroke-dashoffset"], ma = { class: "fv-mus-now" }, ha = {
|
|
1670
|
+
key: 0,
|
|
1671
|
+
class: "fv-mus-live"
|
|
1672
|
+
}, ba = { class: "fv-mus-side" }, xa = { class: "fv-mus-head" }, ya = { style: { "min-width": "0" } }, ka = ["title"], wa = { class: "fv-mus-head-actions" }, za = ["aria-label", "title"], _a = { class: "fv-mus-lyrics" }, $a = {
|
|
1673
|
+
key: 0,
|
|
1674
|
+
class: "fv-mus-lyric-list"
|
|
1675
|
+
}, Ma = ["title", "onClick"], Ca = { class: "fv-mus-lyric-time" }, Ta = { class: "fv-mus-lyric-text" }, Pa = {
|
|
1676
|
+
key: 1,
|
|
1677
|
+
class: "fv-mus-empty"
|
|
1678
|
+
}, Ea = { class: "fv-mus-foot" }, Sa = { class: "fv-mus-progress" }, ja = ["max", "value"], Ra = { class: "fv-mus-controls" }, La = { class: "fv-mus-controls-side" }, Ba = ["aria-label"], Fa = { class: "fv-mus-speed" }, Ga = ["title"], Aa = {
|
|
1679
|
+
key: 1,
|
|
1680
|
+
width: "16",
|
|
1681
|
+
height: "16",
|
|
1682
|
+
viewBox: "0 0 24 24",
|
|
1683
|
+
fill: "none",
|
|
1684
|
+
stroke: "currentColor",
|
|
1685
|
+
"stroke-width": "1.9",
|
|
1686
|
+
"stroke-linecap": "round",
|
|
1687
|
+
"stroke-linejoin": "round",
|
|
1688
|
+
"aria-hidden": "true"
|
|
1689
|
+
}, qa = { class: "fv-mus-center" }, Na = ["aria-label"], Va = { class: "fv-mus-controls-side is-right" }, Oa = ["aria-label", "title"], Ia = /* @__PURE__ */ Be({
|
|
1690
|
+
name: "MusicPlayer",
|
|
1691
|
+
__name: "MusicPlayer",
|
|
1692
|
+
props: {
|
|
1693
|
+
track: { default: null },
|
|
1694
|
+
corner: { default: 28 },
|
|
1695
|
+
size: { default: "md" },
|
|
1696
|
+
embedded: { type: Boolean, default: !1 },
|
|
1697
|
+
autoplay: { type: Boolean, default: !1 },
|
|
1698
|
+
palette: { default: void 0 }
|
|
1699
|
+
},
|
|
1700
|
+
emits: ["close", "expand", "collapse"],
|
|
1701
|
+
setup(e, { expose: c, emit: g }) {
|
|
1702
|
+
Se();
|
|
1703
|
+
const o = e, z = g, L = Ge(), M = h(null), i = h(null), I = h(null), j = h(null), T = h(!1), b = h(!1), p = h(!1), k = h(0), x = h(0), _ = h(!1), A = h(1), B = h(!1), U = /* @__PURE__ */ new Map();
|
|
1704
|
+
let P = null, F = null, W, Z, V = null, O = 0;
|
|
1705
|
+
const ae = R(() => ({
|
|
1706
|
+
...Ae(o.palette),
|
|
1707
|
+
"--fv-mus-corner": `${Math.max(0, o.corner)}px`,
|
|
1708
|
+
"--fv-dialog-w": Fe[o.size]
|
|
1709
|
+
})), ce = R(() => o.track?.style || o.track?.artist || "Original music"), Y = R(() => ct(o.track?.lyrics)), ie = R(
|
|
1710
|
+
() => Y.value.reduce((l, f, E) => k.value >= f.time ? E : l, -1)
|
|
1711
|
+
), oe = R(() => ie.value >= 0 ? Y.value[ie.value]?.text : ""), X = R(
|
|
1712
|
+
() => x.value > 0 ? Math.min(100, Math.max(0, k.value / x.value * 100)) : 0
|
|
1713
|
+
), D = R(() => 295.31), ee = R(() => D.value * (1 - X.value / 100)), he = R(
|
|
1714
|
+
() => `linear-gradient(to right, var(--fv-gal-accent) ${X.value}%, color-mix(in srgb, var(--fv-gal-ink) 16%, transparent) ${X.value}%)`
|
|
1715
|
+
), J = R(() => o.track?.title ?? "No track");
|
|
1716
|
+
function Q() {
|
|
1717
|
+
const l = M.value;
|
|
1718
|
+
if (l) {
|
|
1719
|
+
l.muted = _.value;
|
|
1720
|
+
try {
|
|
1721
|
+
l.playbackRate = A.value;
|
|
1722
|
+
} catch {
|
|
1723
|
+
}
|
|
1724
|
+
}
|
|
1725
|
+
}
|
|
1726
|
+
function ue() {
|
|
1727
|
+
p.value = !0;
|
|
1728
|
+
}
|
|
1729
|
+
function d() {
|
|
1730
|
+
p.value = !1;
|
|
1731
|
+
}
|
|
1732
|
+
function v() {
|
|
1733
|
+
p.value = !1, k.value = x.value;
|
|
1734
|
+
}
|
|
1735
|
+
function u() {
|
|
1736
|
+
const l = M.value;
|
|
1737
|
+
l && (k.value = l.currentTime, Number.isFinite(l.duration) && (x.value = l.duration));
|
|
1738
|
+
}
|
|
1739
|
+
function K() {
|
|
1740
|
+
Q();
|
|
1741
|
+
const l = M.value;
|
|
1742
|
+
l && (Number.isFinite(l.duration) && (x.value = l.duration), !ye() && o.autoplay && l.paused && l.play().catch(() => {
|
|
1743
|
+
p.value = !1;
|
|
1744
|
+
}));
|
|
1745
|
+
}
|
|
1746
|
+
function ye() {
|
|
1747
|
+
const l = M.value;
|
|
1748
|
+
if (!l || V === null) return !1;
|
|
1749
|
+
const f = V;
|
|
1750
|
+
if (V = null, l.readyState < 1)
|
|
1751
|
+
return V = f, !1;
|
|
1752
|
+
try {
|
|
1753
|
+
l.currentTime = f;
|
|
1754
|
+
} catch {
|
|
1755
|
+
}
|
|
1756
|
+
return l.play().catch(() => {
|
|
1757
|
+
p.value = !1;
|
|
1758
|
+
}), !0;
|
|
1759
|
+
}
|
|
1760
|
+
Le(() => o.track?.src, async () => {
|
|
1761
|
+
k.value = 0, x.value = 0, p.value = !1, _.value = !1, A.value = 1, await me();
|
|
1762
|
+
const l = M.value;
|
|
1763
|
+
l && (l.load(), Q(), o.autoplay && l.play().catch(() => {
|
|
1764
|
+
p.value = !1;
|
|
1765
|
+
}));
|
|
1766
|
+
}), Le(ie, async (l) => {
|
|
1767
|
+
!T.value || l < 0 || (await me(), U.get(l)?.scrollIntoView({ behavior: qe() ? "auto" : "smooth", block: "center" }));
|
|
1768
|
+
});
|
|
1769
|
+
function ke() {
|
|
1770
|
+
const l = M.value;
|
|
1771
|
+
l && l.play().catch(() => {
|
|
1772
|
+
p.value = !1;
|
|
1773
|
+
});
|
|
1774
|
+
}
|
|
1775
|
+
function se() {
|
|
1776
|
+
const l = M.value;
|
|
1777
|
+
l && (l.paused ? ke() : l.pause());
|
|
1778
|
+
}
|
|
1779
|
+
function n(l) {
|
|
1780
|
+
const f = M.value, E = Math.min(x.value || l, Math.max(0, l));
|
|
1781
|
+
f && (f.currentTime = E), k.value = E;
|
|
1782
|
+
}
|
|
1783
|
+
function w(l) {
|
|
1784
|
+
n(k.value + l);
|
|
1785
|
+
}
|
|
1786
|
+
function q() {
|
|
1787
|
+
_.value = !_.value, Q();
|
|
1788
|
+
}
|
|
1789
|
+
function we() {
|
|
1790
|
+
const l = [1, 1.25, 1.5, 2], f = l.indexOf(A.value);
|
|
1791
|
+
A.value = l[(f + 1) % l.length], Q();
|
|
1792
|
+
}
|
|
1793
|
+
function ve(l, f) {
|
|
1794
|
+
f instanceof HTMLElement ? U.set(l, f) : U.delete(l);
|
|
1795
|
+
}
|
|
1796
|
+
function be() {
|
|
1797
|
+
F?.(), F = null, window.removeEventListener("keydown", Ye);
|
|
1798
|
+
}
|
|
1799
|
+
function et(l) {
|
|
1800
|
+
V = Math.max(0, Number.isFinite(l) ? l : 0), ye();
|
|
1801
|
+
}
|
|
1802
|
+
function tt() {
|
|
1803
|
+
M.value?.pause(), z("collapse", k.value);
|
|
1804
|
+
}
|
|
1805
|
+
function De() {
|
|
1806
|
+
if (!o.track || T.value || o.embedded) return;
|
|
1807
|
+
const l = ++O;
|
|
1808
|
+
clearTimeout(W), P = i.value?.getBoundingClientRect() ?? null, b.value = !1, T.value = !0, z("expand", !0), F = Ne(), window.addEventListener("keydown", Ye), (async () => {
|
|
1809
|
+
await me(), requestAnimationFrame(() => j.value?.focus({ preventScroll: !0 })), await Ve();
|
|
1810
|
+
const f = I.value;
|
|
1811
|
+
f && T.value && l === O && Oe(f, P, { opacity: 0.8, duration: 440 });
|
|
1812
|
+
})();
|
|
1813
|
+
}
|
|
1814
|
+
function ze() {
|
|
1815
|
+
if (!T.value || b.value) return;
|
|
1816
|
+
const l = ++O, f = I.value, E = f ? Ie(f, P, { opacity: 0, duration: 320 }) : null;
|
|
1817
|
+
let fe = !1;
|
|
1818
|
+
const re = () => {
|
|
1819
|
+
fe || l !== O || (fe = !0, clearTimeout(W), T.value = !1, b.value = !1, be(), z("expand", !1));
|
|
1820
|
+
};
|
|
1821
|
+
if (!E) {
|
|
1822
|
+
re();
|
|
1823
|
+
return;
|
|
1824
|
+
}
|
|
1825
|
+
b.value = !0, E.onfinish = re, E.oncancel = re, W = setTimeout(re, 520);
|
|
1826
|
+
}
|
|
1827
|
+
function He() {
|
|
1828
|
+
O += 1, clearTimeout(W);
|
|
1829
|
+
const l = M.value;
|
|
1830
|
+
l && (l.pause(), l.removeAttribute("src"), l.load()), T.value = !1, p.value = !1, be(), z("close");
|
|
1831
|
+
}
|
|
1832
|
+
async function at() {
|
|
1833
|
+
if (o.track?.lyrics) {
|
|
1834
|
+
try {
|
|
1835
|
+
await navigator.clipboard.writeText(o.track.lyrics), B.value = !0;
|
|
1836
|
+
} catch {
|
|
1837
|
+
B.value = !1;
|
|
1838
|
+
}
|
|
1839
|
+
clearTimeout(Z), Z = setTimeout(() => {
|
|
1840
|
+
B.value = !1;
|
|
1841
|
+
}, 1800);
|
|
1842
|
+
}
|
|
1843
|
+
}
|
|
1844
|
+
function Ye(l) {
|
|
1845
|
+
if (l.key === "Escape") {
|
|
1846
|
+
l.preventDefault(), ze();
|
|
1847
|
+
return;
|
|
1848
|
+
}
|
|
1849
|
+
Ue(l, I.value);
|
|
1850
|
+
}
|
|
1851
|
+
return Ee(() => {
|
|
1852
|
+
be(), clearTimeout(W), clearTimeout(Z);
|
|
1853
|
+
}), c({ expand: De, collapse: ze, toggle: se, start: ke, startAt: et, close: He }), (l, f) => e.track ? (a(), r("div", {
|
|
1854
|
+
key: 0,
|
|
1855
|
+
class: N(["fv-mus", { "is-embedded": e.embedded }]),
|
|
1856
|
+
"data-theme": s(L),
|
|
1857
|
+
style: ne(ae.value)
|
|
1858
|
+
}, [
|
|
1859
|
+
t("audio", {
|
|
1860
|
+
ref_key: "audioEl",
|
|
1861
|
+
ref: M,
|
|
1862
|
+
src: e.track.src,
|
|
1863
|
+
preload: "auto",
|
|
1864
|
+
onPlay: ue,
|
|
1865
|
+
onPause: d,
|
|
1866
|
+
onEnded: v,
|
|
1867
|
+
onTimeupdate: u,
|
|
1868
|
+
onLoadedmetadata: K
|
|
1869
|
+
}, null, 40, ea),
|
|
1870
|
+
!T.value && !e.embedded ? (a(), r("aside", {
|
|
1871
|
+
key: 0,
|
|
1872
|
+
class: "fv-mus-disc-wrap",
|
|
1873
|
+
"aria-label": `Music player: ${J.value}`
|
|
1874
|
+
}, [
|
|
1875
|
+
t("button", {
|
|
1876
|
+
ref_key: "discRef",
|
|
1877
|
+
ref: i,
|
|
1878
|
+
type: "button",
|
|
1879
|
+
class: "fv-mus-disc",
|
|
1880
|
+
"aria-label": `${p.value ? "Pause" : "Play"}: ${J.value}`,
|
|
1881
|
+
title: `${J.value} · ${p.value ? "Pause" : "Play"}`,
|
|
1882
|
+
onClick: se
|
|
1883
|
+
}, [
|
|
1884
|
+
(a(), r("svg", ia, [
|
|
1885
|
+
f[3] || (f[3] = t("circle", {
|
|
1886
|
+
class: "is-track",
|
|
1887
|
+
cx: "50",
|
|
1888
|
+
cy: "50",
|
|
1889
|
+
r: "47",
|
|
1890
|
+
fill: "none",
|
|
1891
|
+
"stroke-width": "2.4"
|
|
1892
|
+
}, null, -1)),
|
|
1893
|
+
t("circle", {
|
|
1894
|
+
class: "is-value",
|
|
1895
|
+
cx: "50",
|
|
1896
|
+
cy: "50",
|
|
1897
|
+
r: "47",
|
|
1898
|
+
fill: "none",
|
|
1899
|
+
"stroke-width": "2.4",
|
|
1900
|
+
"stroke-dasharray": D.value,
|
|
1901
|
+
"stroke-dashoffset": ee.value,
|
|
1902
|
+
transform: "rotate(-90 50 50)"
|
|
1903
|
+
}, null, 8, la)
|
|
1904
|
+
])),
|
|
1905
|
+
t("span", {
|
|
1906
|
+
class: N(["fv-mus-cover", { "is-spinning": p.value }])
|
|
1907
|
+
}, [
|
|
1908
|
+
e.track.cover ? (a(), r("img", {
|
|
1909
|
+
key: 0,
|
|
1910
|
+
src: e.track.cover,
|
|
1911
|
+
alt: ""
|
|
1912
|
+
}, null, 8, na)) : (a(), $(s(xe), {
|
|
1913
|
+
key: 1,
|
|
1914
|
+
size: 24
|
|
1915
|
+
}))
|
|
1916
|
+
], 2),
|
|
1917
|
+
t("span", oa, [
|
|
1918
|
+
p.value ? (a(), $(s(_e), {
|
|
1919
|
+
key: 0,
|
|
1920
|
+
size: 17
|
|
1921
|
+
})) : (a(), $(s(te), {
|
|
1922
|
+
key: 1,
|
|
1923
|
+
size: 17
|
|
1924
|
+
}))
|
|
1925
|
+
])
|
|
1926
|
+
], 8, aa),
|
|
1927
|
+
t("div", sa, [
|
|
1928
|
+
t("button", {
|
|
1929
|
+
type: "button",
|
|
1930
|
+
"aria-label": p.value ? "Pause" : "Play",
|
|
1931
|
+
title: p.value ? "Pause" : "Play",
|
|
1932
|
+
onClick: se
|
|
1933
|
+
}, [
|
|
1934
|
+
p.value ? (a(), $(s(_e), {
|
|
1935
|
+
key: 0,
|
|
1936
|
+
size: 15
|
|
1937
|
+
})) : (a(), $(s(te), {
|
|
1938
|
+
key: 1,
|
|
1939
|
+
size: 15
|
|
1940
|
+
}))
|
|
1941
|
+
], 8, ra),
|
|
1942
|
+
t("button", {
|
|
1943
|
+
type: "button",
|
|
1944
|
+
"aria-label": "Expand player",
|
|
1945
|
+
title: "Expand player",
|
|
1946
|
+
onClick: De
|
|
1947
|
+
}, [
|
|
1948
|
+
y(s(Ce), { size: 15 })
|
|
1949
|
+
]),
|
|
1950
|
+
t("button", {
|
|
1951
|
+
type: "button",
|
|
1952
|
+
"aria-label": _.value ? "Unmute" : "Mute",
|
|
1953
|
+
title: _.value ? "Unmute" : "Mute",
|
|
1954
|
+
onClick: q
|
|
1955
|
+
}, [
|
|
1956
|
+
_.value ? (a(), $(s(Me), {
|
|
1957
|
+
key: 0,
|
|
1958
|
+
size: 15
|
|
1959
|
+
})) : (a(), $(s($e), {
|
|
1960
|
+
key: 1,
|
|
1961
|
+
size: 15
|
|
1962
|
+
}))
|
|
1963
|
+
], 8, da),
|
|
1964
|
+
t("button", {
|
|
1965
|
+
type: "button",
|
|
1966
|
+
class: "is-danger",
|
|
1967
|
+
"aria-label": "Close player",
|
|
1968
|
+
title: "Close player",
|
|
1969
|
+
onClick: He
|
|
1970
|
+
}, [
|
|
1971
|
+
y(s(Pe), { size: 15 })
|
|
1972
|
+
])
|
|
1973
|
+
])
|
|
1974
|
+
], 8, ta)) : C("", !0),
|
|
1975
|
+
(a(), $(Je, {
|
|
1976
|
+
to: "body",
|
|
1977
|
+
disabled: e.embedded
|
|
1978
|
+
}, [
|
|
1979
|
+
T.value || e.embedded ? (a(), r("div", {
|
|
1980
|
+
key: 0,
|
|
1981
|
+
class: N(["fv-mus-stage", { "is-closing": b.value, "is-embedded": e.embedded }]),
|
|
1982
|
+
"data-theme": s(L),
|
|
1983
|
+
style: ne(ae.value),
|
|
1984
|
+
role: e.embedded ? "group" : "dialog",
|
|
1985
|
+
"aria-modal": e.embedded ? void 0 : "true",
|
|
1986
|
+
"aria-label": `Now playing: ${J.value}`
|
|
1987
|
+
}, [
|
|
1988
|
+
e.embedded ? C("", !0) : (a(), r("button", {
|
|
1989
|
+
key: 0,
|
|
1990
|
+
type: "button",
|
|
1991
|
+
class: "fv-mus-backdrop",
|
|
1992
|
+
"aria-label": "Collapse music player",
|
|
1993
|
+
onClick: ze
|
|
1994
|
+
})),
|
|
1995
|
+
t("section", {
|
|
1996
|
+
ref_key: "panelRef",
|
|
1997
|
+
ref: I,
|
|
1998
|
+
class: "fv-mus-panel"
|
|
1999
|
+
}, [
|
|
2000
|
+
t("div", ua, [
|
|
2001
|
+
t("div", va, [
|
|
2002
|
+
t("div", {
|
|
2003
|
+
class: N(["fv-mus-cover-big", { "is-spinning": p.value }])
|
|
2004
|
+
}, [
|
|
2005
|
+
e.track.cover ? (a(), r("img", {
|
|
2006
|
+
key: 0,
|
|
2007
|
+
src: e.track.cover,
|
|
2008
|
+
alt: `${e.track.title} cover`
|
|
2009
|
+
}, null, 8, fa)) : (a(), $(s(xe), {
|
|
2010
|
+
key: 1,
|
|
2011
|
+
size: 64
|
|
2012
|
+
}))
|
|
2013
|
+
], 2),
|
|
2014
|
+
(a(), r("svg", pa, [
|
|
2015
|
+
f[4] || (f[4] = t("circle", {
|
|
2016
|
+
class: "is-track",
|
|
2017
|
+
cx: "50",
|
|
2018
|
+
cy: "50",
|
|
2019
|
+
r: "47.4",
|
|
2020
|
+
fill: "none",
|
|
2021
|
+
"stroke-width": "1.5"
|
|
2022
|
+
}, null, -1)),
|
|
2023
|
+
t("circle", {
|
|
2024
|
+
class: "is-value",
|
|
2025
|
+
cx: "50",
|
|
2026
|
+
cy: "50",
|
|
2027
|
+
r: "47.4",
|
|
2028
|
+
fill: "none",
|
|
2029
|
+
"stroke-width": "1.8",
|
|
2030
|
+
"stroke-dasharray": 298,
|
|
2031
|
+
"stroke-dashoffset": 298 * (1 - X.value / 100),
|
|
2032
|
+
transform: "rotate(-90 50 50)"
|
|
2033
|
+
}, null, 8, ga)
|
|
2034
|
+
]))
|
|
2035
|
+
]),
|
|
2036
|
+
t("div", ma, [
|
|
2037
|
+
f[5] || (f[5] = t("span", { class: "fv-mus-badge" }, "AI AUDIO", -1)),
|
|
2038
|
+
t("h2", null, m(e.track.title), 1),
|
|
2039
|
+
t("p", null, m(ce.value), 1)
|
|
2040
|
+
]),
|
|
2041
|
+
t("div", {
|
|
2042
|
+
class: N(["fv-mus-eq", { "is-active": p.value }]),
|
|
2043
|
+
"aria-hidden": "true"
|
|
2044
|
+
}, [
|
|
2045
|
+
(a(), r(de, null, Re(6, (E) => t("span", { key: E })), 64))
|
|
2046
|
+
], 2),
|
|
2047
|
+
oe.value ? (a(), r("p", ha, m(oe.value), 1)) : C("", !0)
|
|
2048
|
+
]),
|
|
2049
|
+
t("div", ba, [
|
|
2050
|
+
t("header", xa, [
|
|
2051
|
+
t("div", ya, [
|
|
2052
|
+
f[6] || (f[6] = t("span", { class: "fv-mus-kicker" }, "Now playing", -1)),
|
|
2053
|
+
t("strong", {
|
|
2054
|
+
class: "fv-mus-title",
|
|
2055
|
+
title: e.track.title
|
|
2056
|
+
}, m(e.track.title), 9, ka)
|
|
2057
|
+
]),
|
|
2058
|
+
t("div", wa, [
|
|
2059
|
+
t("button", {
|
|
2060
|
+
type: "button",
|
|
2061
|
+
"aria-label": _.value ? "Unmute" : "Mute",
|
|
2062
|
+
title: _.value ? "Unmute" : "Mute",
|
|
2063
|
+
onClick: q
|
|
2064
|
+
}, [
|
|
2065
|
+
_.value ? (a(), $(s(Me), {
|
|
2066
|
+
key: 0,
|
|
2067
|
+
size: 16
|
|
2068
|
+
})) : (a(), $(s($e), {
|
|
2069
|
+
key: 1,
|
|
2070
|
+
size: 16
|
|
2071
|
+
}))
|
|
2072
|
+
], 8, za),
|
|
2073
|
+
e.embedded ? (a(), r("button", {
|
|
2074
|
+
key: 0,
|
|
2075
|
+
type: "button",
|
|
2076
|
+
"aria-label": "Collapse to player",
|
|
2077
|
+
title: "Collapse to player",
|
|
2078
|
+
onClick: tt
|
|
2079
|
+
}, [
|
|
2080
|
+
y(s(Te), { size: 16 })
|
|
2081
|
+
])) : (a(), r("button", {
|
|
2082
|
+
key: 1,
|
|
2083
|
+
ref_key: "closeButtonRef",
|
|
2084
|
+
ref: j,
|
|
2085
|
+
type: "button",
|
|
2086
|
+
class: "is-danger",
|
|
2087
|
+
"aria-label": "Collapse player",
|
|
2088
|
+
title: "Collapse player",
|
|
2089
|
+
onClick: ze
|
|
2090
|
+
}, [
|
|
2091
|
+
y(s(Pe), { size: 16 })
|
|
2092
|
+
], 512))
|
|
2093
|
+
])
|
|
2094
|
+
]),
|
|
2095
|
+
t("div", _a, [
|
|
2096
|
+
Y.value.length ? (a(), r("div", $a, [
|
|
2097
|
+
(a(!0), r(de, null, Re(Y.value, (E, fe) => (a(), r("button", {
|
|
2098
|
+
key: `${fe}-${E.time}`,
|
|
2099
|
+
ref_for: !0,
|
|
2100
|
+
ref: (re) => ve(fe, re),
|
|
2101
|
+
type: "button",
|
|
2102
|
+
class: N(["fv-mus-lyric", { "is-active": fe === ie.value }]),
|
|
2103
|
+
title: `Seek to ${s(ge)(E.time)}`,
|
|
2104
|
+
onClick: (re) => n(E.time)
|
|
2105
|
+
}, [
|
|
2106
|
+
t("span", Ca, m(s(ge)(E.time)), 1),
|
|
2107
|
+
t("span", Ta, m(E.text), 1)
|
|
2108
|
+
], 10, Ma))), 128))
|
|
2109
|
+
])) : (a(), r("div", Pa, [
|
|
2110
|
+
y(s(xe), { size: 30 }),
|
|
2111
|
+
f[7] || (f[7] = t("span", null, "No aligned lyrics for this track", -1))
|
|
2112
|
+
]))
|
|
2113
|
+
]),
|
|
2114
|
+
t("footer", Ea, [
|
|
2115
|
+
t("div", Sa, [
|
|
2116
|
+
t("span", null, m(s(ge)(k.value)), 1),
|
|
2117
|
+
t("input", {
|
|
2118
|
+
class: "fv-mus-slider",
|
|
2119
|
+
type: "range",
|
|
2120
|
+
min: "0",
|
|
2121
|
+
max: x.value || 100,
|
|
2122
|
+
step: "0.1",
|
|
2123
|
+
value: Math.min(k.value, x.value || 100),
|
|
2124
|
+
"aria-label": "Playback position",
|
|
2125
|
+
style: ne({ background: he.value }),
|
|
2126
|
+
onInput: f[0] || (f[0] = (E) => n(Number(E.target.value)))
|
|
2127
|
+
}, null, 44, ja),
|
|
2128
|
+
t("span", null, m(s(ge)(x.value)), 1)
|
|
2129
|
+
]),
|
|
2130
|
+
t("div", Ra, [
|
|
2131
|
+
t("div", La, [
|
|
2132
|
+
t("button", {
|
|
2133
|
+
type: "button",
|
|
2134
|
+
title: "Playback speed",
|
|
2135
|
+
"aria-label": `Playback speed ${A.value} times`,
|
|
2136
|
+
onClick: we
|
|
2137
|
+
}, [
|
|
2138
|
+
t("span", Fa, m(A.value) + "x", 1)
|
|
2139
|
+
], 8, Ba),
|
|
2140
|
+
e.track.lyrics ? (a(), r("button", {
|
|
2141
|
+
key: 0,
|
|
2142
|
+
type: "button",
|
|
2143
|
+
title: B.value ? "Lyrics copied" : "Copy lyrics",
|
|
2144
|
+
"aria-label": "Copy lyrics",
|
|
2145
|
+
onClick: at
|
|
2146
|
+
}, [
|
|
2147
|
+
B.value ? (a(), $(s(Ze), {
|
|
2148
|
+
key: 0,
|
|
2149
|
+
size: 16
|
|
2150
|
+
})) : (a(), r("svg", Aa, [...f[8] || (f[8] = [
|
|
2151
|
+
t("rect", {
|
|
2152
|
+
x: "9",
|
|
2153
|
+
y: "9",
|
|
2154
|
+
width: "11",
|
|
2155
|
+
height: "11",
|
|
2156
|
+
rx: "2"
|
|
2157
|
+
}, null, -1),
|
|
2158
|
+
t("path", { d: "M15 5.5A2.5 2.5 0 0 0 12.5 3h-7A2.5 2.5 0 0 0 3 5.5v7A2.5 2.5 0 0 0 5.5 15" }, null, -1)
|
|
2159
|
+
])]))
|
|
2160
|
+
], 8, Ga)) : C("", !0)
|
|
2161
|
+
]),
|
|
2162
|
+
t("div", qa, [
|
|
2163
|
+
t("button", {
|
|
2164
|
+
type: "button",
|
|
2165
|
+
class: "fv-mus-jump",
|
|
2166
|
+
"aria-label": "Back 5 seconds",
|
|
2167
|
+
title: "Back 5 seconds",
|
|
2168
|
+
onClick: f[1] || (f[1] = (E) => w(-5))
|
|
2169
|
+
}, [
|
|
2170
|
+
y(s(ot), { size: 18 })
|
|
2171
|
+
]),
|
|
2172
|
+
t("button", {
|
|
2173
|
+
type: "button",
|
|
2174
|
+
class: "fv-mus-play",
|
|
2175
|
+
"aria-label": p.value ? "Pause" : "Play",
|
|
2176
|
+
onClick: se
|
|
2177
|
+
}, [
|
|
2178
|
+
p.value ? (a(), $(s(_e), {
|
|
2179
|
+
key: 0,
|
|
2180
|
+
size: 23
|
|
2181
|
+
})) : (a(), $(s(te), {
|
|
2182
|
+
key: 1,
|
|
2183
|
+
size: 23
|
|
2184
|
+
}))
|
|
2185
|
+
], 8, Na),
|
|
2186
|
+
t("button", {
|
|
2187
|
+
type: "button",
|
|
2188
|
+
class: "fv-mus-jump",
|
|
2189
|
+
"aria-label": "Forward 5 seconds",
|
|
2190
|
+
title: "Forward 5 seconds",
|
|
2191
|
+
onClick: f[2] || (f[2] = (E) => w(5))
|
|
2192
|
+
}, [
|
|
2193
|
+
y(s(st), { size: 18 })
|
|
2194
|
+
])
|
|
2195
|
+
]),
|
|
2196
|
+
t("div", Va, [
|
|
2197
|
+
t("button", {
|
|
2198
|
+
type: "button",
|
|
2199
|
+
"aria-label": _.value ? "Unmute" : "Mute",
|
|
2200
|
+
title: _.value ? "Unmute" : "Mute",
|
|
2201
|
+
onClick: q
|
|
2202
|
+
}, [
|
|
2203
|
+
_.value ? (a(), $(s(Me), {
|
|
2204
|
+
key: 0,
|
|
2205
|
+
size: 16
|
|
2206
|
+
})) : (a(), $(s($e), {
|
|
2207
|
+
key: 1,
|
|
2208
|
+
size: 16
|
|
2209
|
+
}))
|
|
2210
|
+
], 8, Oa)
|
|
2211
|
+
])
|
|
2212
|
+
])
|
|
2213
|
+
])
|
|
2214
|
+
])
|
|
2215
|
+
], 512)
|
|
2216
|
+
], 14, ca)) : C("", !0)
|
|
2217
|
+
], 8, ["disabled"]))
|
|
2218
|
+
], 14, Zt)) : C("", !0);
|
|
2219
|
+
}
|
|
2220
|
+
}), Ua = ["data-theme"], Da = { class: "fv-vid-title" }, Ha = { class: "fv-vid-badge" }, Ya = ["title"], Ka = { class: "fv-vid-actions" }, Wa = ["src", "poster"], Xa = {
|
|
2221
|
+
key: 0,
|
|
2222
|
+
class: "fv-vid-pause",
|
|
2223
|
+
"aria-hidden": "true"
|
|
2224
|
+
}, Ja = { class: "fv-vid-progress" }, Qa = ["max", "value"], Za = { class: "fv-vid-buttons" }, ei = { class: "fv-vid-buttons-left" }, ti = ["aria-label", "title"], ai = { class: "fv-vid-time" }, ii = { class: "fv-vid-buttons-right" }, li = ["aria-label", "title"], ni = /* @__PURE__ */ Be({
|
|
2225
|
+
name: "VideoPlayer",
|
|
2226
|
+
__name: "VideoPlayer",
|
|
2227
|
+
props: {
|
|
2228
|
+
media: { default: null },
|
|
2229
|
+
corner: { default: 18 },
|
|
2230
|
+
size: { default: "md" },
|
|
2231
|
+
embedded: { type: Boolean, default: !1 },
|
|
2232
|
+
autoplay: { type: Boolean, default: !1 },
|
|
2233
|
+
palette: { default: void 0 }
|
|
2234
|
+
},
|
|
2235
|
+
emits: ["close", "expand", "collapse"],
|
|
2236
|
+
setup(e, { expose: c, emit: g }) {
|
|
2237
|
+
Se();
|
|
2238
|
+
const o = e, z = g, L = Ge(), M = h(null), i = h(null), I = h(null), j = h(!1), T = h(!1), b = h(!1), p = h(0), k = h(0), x = h(!1), _ = h(!1);
|
|
2239
|
+
let A = null, B = null, U, P = null, F = 0;
|
|
2240
|
+
const W = R(() => ({
|
|
2241
|
+
...Ae(o.palette),
|
|
2242
|
+
"--fv-vid-corner": `${Math.max(0, o.corner)}px`,
|
|
2243
|
+
"--fv-dialog-w": Fe[o.size]
|
|
2244
|
+
})), Z = R(() => o.media?.title || "Untitled video"), V = R(
|
|
2245
|
+
() => k.value > 0 ? Math.min(100, Math.max(0, p.value / k.value * 100)) : 0
|
|
2246
|
+
), O = R(
|
|
2247
|
+
() => `linear-gradient(to right, #fff ${V.value}%, rgba(255, 255, 255, 0.26) ${V.value}%)`
|
|
2248
|
+
);
|
|
2249
|
+
function ae() {
|
|
2250
|
+
b.value = !0;
|
|
2251
|
+
}
|
|
2252
|
+
function ce() {
|
|
2253
|
+
b.value = !1;
|
|
2254
|
+
}
|
|
2255
|
+
function Y() {
|
|
2256
|
+
b.value = !1, p.value = k.value;
|
|
2257
|
+
}
|
|
2258
|
+
function ie() {
|
|
2259
|
+
const n = i.value;
|
|
2260
|
+
n && (p.value = n.currentTime, Number.isFinite(n.duration) && (k.value = n.duration));
|
|
2261
|
+
}
|
|
2262
|
+
function oe() {
|
|
2263
|
+
const n = i.value;
|
|
2264
|
+
n && (Number.isFinite(n.duration) && (k.value = n.duration), n.muted = x.value, !X() && o.autoplay && n.paused && n.play().catch(() => {
|
|
2265
|
+
b.value = !1;
|
|
2266
|
+
}));
|
|
2267
|
+
}
|
|
2268
|
+
function X() {
|
|
2269
|
+
const n = i.value;
|
|
2270
|
+
if (!n || P === null) return !1;
|
|
2271
|
+
const w = P;
|
|
2272
|
+
if (P = null, n.readyState < 1)
|
|
2273
|
+
return P = w, !1;
|
|
2274
|
+
try {
|
|
2275
|
+
n.currentTime = w;
|
|
2276
|
+
} catch {
|
|
2277
|
+
}
|
|
2278
|
+
return n.play().catch(() => {
|
|
2279
|
+
b.value = !1;
|
|
2280
|
+
}), !0;
|
|
2281
|
+
}
|
|
2282
|
+
Le(() => o.media?.src, async () => {
|
|
2283
|
+
p.value = 0, k.value = 0, b.value = !1, x.value = !1, await me();
|
|
2284
|
+
const n = i.value;
|
|
2285
|
+
n && (n.load(), n.muted = x.value, o.autoplay && n.play().catch(() => {
|
|
2286
|
+
b.value = !1;
|
|
2287
|
+
}));
|
|
2288
|
+
});
|
|
2289
|
+
function D() {
|
|
2290
|
+
const n = i.value;
|
|
2291
|
+
n && n.play().catch(() => {
|
|
2292
|
+
b.value = !1;
|
|
2293
|
+
});
|
|
2294
|
+
}
|
|
2295
|
+
function ee() {
|
|
2296
|
+
const n = i.value;
|
|
2297
|
+
n && (n.paused ? D() : n.pause());
|
|
2298
|
+
}
|
|
2299
|
+
function he(n) {
|
|
2300
|
+
const w = i.value, q = Math.min(k.value || n, Math.max(0, n));
|
|
2301
|
+
w && (w.currentTime = q), p.value = q;
|
|
2302
|
+
}
|
|
2303
|
+
function J() {
|
|
2304
|
+
x.value = !x.value;
|
|
2305
|
+
const n = i.value;
|
|
2306
|
+
n && (n.muted = x.value);
|
|
2307
|
+
}
|
|
2308
|
+
function Q() {
|
|
2309
|
+
B?.(), B = null, window.removeEventListener("keydown", se);
|
|
2310
|
+
}
|
|
2311
|
+
function ue(n) {
|
|
2312
|
+
P = Math.max(0, Number.isFinite(n) ? n : 0), X();
|
|
2313
|
+
}
|
|
2314
|
+
function d() {
|
|
2315
|
+
i.value?.pause(), z("collapse", p.value);
|
|
2316
|
+
}
|
|
2317
|
+
function v() {
|
|
2318
|
+
if (!o.media || j.value || o.embedded) return;
|
|
2319
|
+
const n = ++F;
|
|
2320
|
+
clearTimeout(U), M.value?.getAnimations().forEach((w) => w.cancel()), A = M.value?.getBoundingClientRect() ?? null, T.value = !1, j.value = !0, z("expand", !0), B = Ne(), window.addEventListener("keydown", se), (async () => {
|
|
2321
|
+
await me(), requestAnimationFrame(() => I.value?.focus({ preventScroll: !0 })), await Ve();
|
|
2322
|
+
const w = M.value;
|
|
2323
|
+
w && j.value && n === F && Oe(w, A, { opacity: 0.8, duration: 440 });
|
|
2324
|
+
})();
|
|
2325
|
+
}
|
|
2326
|
+
function u() {
|
|
2327
|
+
if (!j.value || T.value) return;
|
|
2328
|
+
T.value = !0;
|
|
2329
|
+
const n = ++F, w = M.value, q = w ? Ie(w, A, { opacity: 1, duration: 320 }) : null;
|
|
2330
|
+
let we = !1;
|
|
2331
|
+
const ve = () => {
|
|
2332
|
+
we || n !== F || (we = !0, clearTimeout(U), M.value?.getAnimations().forEach((be) => be.cancel()), j.value = !1, T.value = !1, Q(), z("expand", !1));
|
|
2333
|
+
};
|
|
2334
|
+
if (!q) {
|
|
2335
|
+
ve();
|
|
2336
|
+
return;
|
|
2337
|
+
}
|
|
2338
|
+
q.onfinish = ve, q.oncancel = ve, U = setTimeout(ve, 520);
|
|
2339
|
+
}
|
|
2340
|
+
function K() {
|
|
2341
|
+
F += 1, clearTimeout(U);
|
|
2342
|
+
const n = i.value;
|
|
2343
|
+
n && (n.pause(), n.removeAttribute("src"), n.load()), j.value = !1, b.value = !1, Q(), z("close");
|
|
2344
|
+
}
|
|
2345
|
+
function ye() {
|
|
2346
|
+
const n = i.value;
|
|
2347
|
+
if (n)
|
|
2348
|
+
try {
|
|
2349
|
+
document.pictureInPictureElement ? document.exitPictureInPicture() : n.requestPictureInPicture();
|
|
2350
|
+
} catch {
|
|
2351
|
+
}
|
|
2352
|
+
}
|
|
2353
|
+
function ke() {
|
|
2354
|
+
const n = M.value;
|
|
2355
|
+
n && (document.fullscreenElement ? document.exitFullscreen().catch(() => {
|
|
2356
|
+
}) : n.requestFullscreen().catch(() => {
|
|
2357
|
+
}));
|
|
2358
|
+
}
|
|
2359
|
+
function se(n) {
|
|
2360
|
+
if (n.key === "Escape") {
|
|
2361
|
+
n.preventDefault(), u();
|
|
2362
|
+
return;
|
|
2363
|
+
}
|
|
2364
|
+
Ue(n, M.value);
|
|
2365
|
+
}
|
|
2366
|
+
return Ee(() => {
|
|
2367
|
+
Q(), clearTimeout(U);
|
|
2368
|
+
}), c({ expand: v, collapse: u, toggle: ee, start: D, startAt: ue, close: K }), (n, w) => e.media ? (a(), r("div", {
|
|
2369
|
+
key: 0,
|
|
2370
|
+
class: N(["fv-vid", { "is-theater": j.value, "is-closing": T.value, "is-embedded": e.embedded }]),
|
|
2371
|
+
"data-theme": s(L),
|
|
2372
|
+
style: ne(W.value),
|
|
2373
|
+
onMouseenter: w[2] || (w[2] = (q) => _.value = !0),
|
|
2374
|
+
onMouseleave: w[3] || (w[3] = (q) => _.value = !1)
|
|
2375
|
+
}, [
|
|
2376
|
+
j.value && !e.embedded ? (a(), r("button", {
|
|
2377
|
+
key: 0,
|
|
2378
|
+
type: "button",
|
|
2379
|
+
class: "fv-vid-backdrop",
|
|
2380
|
+
"aria-label": "Collapse video player",
|
|
2381
|
+
onClick: u
|
|
2382
|
+
})) : C("", !0),
|
|
2383
|
+
t("div", {
|
|
2384
|
+
ref_key: "frameRef",
|
|
2385
|
+
ref: M,
|
|
2386
|
+
class: "fv-vid-frame"
|
|
2387
|
+
}, [
|
|
2388
|
+
t("header", {
|
|
2389
|
+
class: N(["fv-vid-header", { "is-visible": _.value || !b.value }])
|
|
2390
|
+
}, [
|
|
2391
|
+
t("div", Da, [
|
|
2392
|
+
t("span", Ha, [
|
|
2393
|
+
y(s(Qe), { size: 11 }),
|
|
2394
|
+
le(m(j.value ? "Theater" : "Video"), 1)
|
|
2395
|
+
]),
|
|
2396
|
+
t("span", {
|
|
2397
|
+
class: "fv-vid-name",
|
|
2398
|
+
title: Z.value
|
|
2399
|
+
}, m(Z.value), 9, Ya)
|
|
2400
|
+
]),
|
|
2401
|
+
t("div", Ka, [
|
|
2402
|
+
e.embedded ? C("", !0) : (a(), r("button", {
|
|
2403
|
+
key: 0,
|
|
2404
|
+
type: "button",
|
|
2405
|
+
class: "fv-vid-icon-btn",
|
|
2406
|
+
title: "Picture in picture",
|
|
2407
|
+
"aria-label": "Picture in picture",
|
|
2408
|
+
onClick: ye
|
|
2409
|
+
}, [
|
|
2410
|
+
y(s(nt), { size: 14 })
|
|
2411
|
+
])),
|
|
2412
|
+
e.embedded ? (a(), r("button", {
|
|
2413
|
+
key: 1,
|
|
2414
|
+
type: "button",
|
|
2415
|
+
class: "fv-vid-icon-btn",
|
|
2416
|
+
title: "Collapse to player",
|
|
2417
|
+
"aria-label": "Collapse to player",
|
|
2418
|
+
onClick: d
|
|
2419
|
+
}, [
|
|
2420
|
+
y(s(Te), { size: 14 })
|
|
2421
|
+
])) : C("", !0),
|
|
2422
|
+
j.value ? (a(), r("button", {
|
|
2423
|
+
key: 2,
|
|
2424
|
+
ref_key: "theaterButtonRef",
|
|
2425
|
+
ref: I,
|
|
2426
|
+
type: "button",
|
|
2427
|
+
class: "fv-vid-icon-btn",
|
|
2428
|
+
title: "Collapse to window",
|
|
2429
|
+
"aria-label": "Collapse to window",
|
|
2430
|
+
onClick: u
|
|
2431
|
+
}, [
|
|
2432
|
+
y(s(Te), { size: 14 })
|
|
2433
|
+
], 512)) : e.embedded ? C("", !0) : (a(), r("button", {
|
|
2434
|
+
key: 3,
|
|
2435
|
+
type: "button",
|
|
2436
|
+
class: "fv-vid-icon-btn",
|
|
2437
|
+
title: "Theater mode",
|
|
2438
|
+
"aria-label": "Theater mode",
|
|
2439
|
+
onClick: v
|
|
2440
|
+
}, [
|
|
2441
|
+
y(s(Ce), { size: 14 })
|
|
2442
|
+
])),
|
|
2443
|
+
e.embedded ? C("", !0) : (a(), r("button", {
|
|
2444
|
+
key: 4,
|
|
2445
|
+
type: "button",
|
|
2446
|
+
class: "fv-vid-icon-btn is-danger",
|
|
2447
|
+
title: "Close player",
|
|
2448
|
+
"aria-label": "Close player",
|
|
2449
|
+
onClick: K
|
|
2450
|
+
}, [
|
|
2451
|
+
y(s(Pe), { size: 15 })
|
|
2452
|
+
]))
|
|
2453
|
+
])
|
|
2454
|
+
], 2),
|
|
2455
|
+
t("div", {
|
|
2456
|
+
class: "fv-vid-stage",
|
|
2457
|
+
onClick: ee
|
|
2458
|
+
}, [
|
|
2459
|
+
t("video", {
|
|
2460
|
+
ref_key: "videoEl",
|
|
2461
|
+
ref: i,
|
|
2462
|
+
class: "fv-vid-el",
|
|
2463
|
+
src: e.media.src,
|
|
2464
|
+
poster: e.media.poster,
|
|
2465
|
+
playsinline: "",
|
|
2466
|
+
preload: "auto",
|
|
2467
|
+
onPlay: ae,
|
|
2468
|
+
onPause: ce,
|
|
2469
|
+
onEnded: Y,
|
|
2470
|
+
onTimeupdate: ie,
|
|
2471
|
+
onLoadedmetadata: oe
|
|
2472
|
+
}, null, 40, Wa),
|
|
2473
|
+
b.value ? C("", !0) : (a(), r("div", Xa, [
|
|
2474
|
+
t("span", null, [
|
|
2475
|
+
y(s(te), { size: 22 })
|
|
2476
|
+
])
|
|
2477
|
+
]))
|
|
2478
|
+
]),
|
|
2479
|
+
t("div", {
|
|
2480
|
+
class: N(["fv-vid-controls", { "is-visible": _.value || !b.value }])
|
|
2481
|
+
}, [
|
|
2482
|
+
t("div", Ja, [
|
|
2483
|
+
t("input", {
|
|
2484
|
+
class: "fv-vid-slider",
|
|
2485
|
+
type: "range",
|
|
2486
|
+
min: "0",
|
|
2487
|
+
max: k.value || 100,
|
|
2488
|
+
step: "0.1",
|
|
2489
|
+
value: Math.min(p.value, k.value || 100),
|
|
2490
|
+
"aria-label": "Playback position",
|
|
2491
|
+
style: ne({ background: O.value }),
|
|
2492
|
+
onInput: w[0] || (w[0] = (q) => he(Number(q.target.value))),
|
|
2493
|
+
onClick: w[1] || (w[1] = pe(() => {
|
|
2494
|
+
}, ["stop"]))
|
|
2495
|
+
}, null, 44, Qa)
|
|
2496
|
+
]),
|
|
2497
|
+
t("div", Za, [
|
|
2498
|
+
t("div", ei, [
|
|
2499
|
+
t("button", {
|
|
2500
|
+
type: "button",
|
|
2501
|
+
class: "fv-vid-btn",
|
|
2502
|
+
"aria-label": b.value ? "Pause" : "Play",
|
|
2503
|
+
title: b.value ? "Pause" : "Play",
|
|
2504
|
+
onClick: pe(ee, ["stop"])
|
|
2505
|
+
}, [
|
|
2506
|
+
b.value ? (a(), $(s(_e), {
|
|
2507
|
+
key: 0,
|
|
2508
|
+
size: 16
|
|
2509
|
+
})) : (a(), $(s(te), {
|
|
2510
|
+
key: 1,
|
|
2511
|
+
size: 16
|
|
2512
|
+
}))
|
|
2513
|
+
], 8, ti),
|
|
2514
|
+
t("span", ai, m(s(ge)(p.value)) + " / " + m(s(ge)(k.value)), 1)
|
|
2515
|
+
]),
|
|
2516
|
+
t("div", ii, [
|
|
2517
|
+
t("button", {
|
|
2518
|
+
type: "button",
|
|
2519
|
+
class: "fv-vid-btn",
|
|
2520
|
+
"aria-label": x.value ? "Unmute" : "Mute",
|
|
2521
|
+
title: x.value ? "Unmute" : "Mute",
|
|
2522
|
+
onClick: pe(J, ["stop"])
|
|
2523
|
+
}, [
|
|
2524
|
+
x.value ? (a(), $(s(Me), {
|
|
2525
|
+
key: 0,
|
|
2526
|
+
size: 16
|
|
2527
|
+
})) : (a(), $(s($e), {
|
|
2528
|
+
key: 1,
|
|
2529
|
+
size: 16
|
|
2530
|
+
}))
|
|
2531
|
+
], 8, li),
|
|
2532
|
+
j.value ? (a(), r("button", {
|
|
2533
|
+
key: 0,
|
|
2534
|
+
type: "button",
|
|
2535
|
+
class: "fv-vid-btn",
|
|
2536
|
+
title: "Collapse to window",
|
|
2537
|
+
"aria-label": "Collapse to window",
|
|
2538
|
+
onClick: pe(u, ["stop"])
|
|
2539
|
+
}, [
|
|
2540
|
+
y(s(Te), { size: 16 })
|
|
2541
|
+
])) : e.embedded ? C("", !0) : (a(), r("button", {
|
|
2542
|
+
key: 1,
|
|
2543
|
+
type: "button",
|
|
2544
|
+
class: "fv-vid-btn",
|
|
2545
|
+
title: "Theater mode",
|
|
2546
|
+
"aria-label": "Theater mode",
|
|
2547
|
+
onClick: pe(v, ["stop"])
|
|
2548
|
+
}, [
|
|
2549
|
+
y(s(Ce), { size: 16 })
|
|
2550
|
+
])),
|
|
2551
|
+
t("button", {
|
|
2552
|
+
type: "button",
|
|
2553
|
+
class: "fv-vid-btn",
|
|
2554
|
+
title: "Fullscreen",
|
|
2555
|
+
"aria-label": "Fullscreen",
|
|
2556
|
+
onClick: pe(ke, ["stop"])
|
|
2557
|
+
}, [
|
|
2558
|
+
y(s(Ce), { size: 16 })
|
|
2559
|
+
])
|
|
2560
|
+
])
|
|
2561
|
+
])
|
|
2562
|
+
], 2)
|
|
2563
|
+
], 512)
|
|
2564
|
+
], 46, Ua)) : C("", !0);
|
|
2565
|
+
}
|
|
2566
|
+
}), oi = Qt, si = Ia, ri = ni, ci = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2567
|
+
__proto__: null,
|
|
2568
|
+
GalleryGrid: oi,
|
|
2569
|
+
MusicPlayer: si,
|
|
2570
|
+
VideoPlayer: ri,
|
|
2571
|
+
ensureGalleryStyles: Se
|
|
2572
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
2573
|
+
export {
|
|
2574
|
+
oi as G,
|
|
2575
|
+
si as M,
|
|
2576
|
+
ri as V,
|
|
2577
|
+
Se as e,
|
|
2578
|
+
ci as i
|
|
2579
|
+
};
|
|
2580
|
+
//# sourceMappingURL=index-CgkG0Pah.js.map
|