@video-editor/ui 0.0.1-beta.28 → 0.0.1-beta.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/VideoEditorTimeline.js +1 -1
- package/dist/{index-DH46sG3_.js → index-BEEVxCQj.js} +248 -248
- package/dist/index.js +2 -2
- package/dist/ui.css +1 -1
- package/package.json +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as L, ref as P, onMounted as re, onBeforeUnmount as se, watch as F, nextTick as fe, createElementBlock as T, openBlock as
|
|
1
|
+
import { defineComponent as L, ref as P, onMounted as re, onBeforeUnmount as se, watch as F, nextTick as fe, createElementBlock as T, openBlock as y, createElementVNode as S, reactive as q, computed as U, renderSlot as p, normalizeStyle as N, createVNode as E, createCommentVNode as j, toDisplayString as O, Fragment as K, renderList as ae, watchEffect as ge, createBlock as he, createSlots as ve, withCtx as X, unref as D, normalizeProps as ee, guardReactiveProps as te } from "vue";
|
|
2
2
|
import { extractWaveform as le, generateThumbnails as pe, getMp4Meta as ke } from "@video-editor/protocol";
|
|
3
3
|
import { isVideoFramesSegment as V, isAudioSegment as ye } from "@video-editor/shared";
|
|
4
4
|
import { _ as G, V as be } from "./index-C0eQjJkj.js";
|
|
@@ -15,83 +15,83 @@ const Me = /* @__PURE__ */ L({
|
|
|
15
15
|
maxBufferHeight: { default: 256 }
|
|
16
16
|
},
|
|
17
17
|
setup(i) {
|
|
18
|
-
const
|
|
18
|
+
const f = i, d = P(null), g = P(null), b = P({ width: 0, height: 0 });
|
|
19
19
|
let c = null;
|
|
20
|
-
function
|
|
21
|
-
return Math.min(Math.max(a, l),
|
|
20
|
+
function k(a, l, m) {
|
|
21
|
+
return Math.min(Math.max(a, l), m);
|
|
22
22
|
}
|
|
23
|
-
function
|
|
24
|
-
return
|
|
23
|
+
function h(a) {
|
|
24
|
+
return k(Number.isFinite(a) ? a : 0, 0, 1);
|
|
25
25
|
}
|
|
26
|
-
function
|
|
27
|
-
const a =
|
|
28
|
-
a && (
|
|
26
|
+
function v() {
|
|
27
|
+
const a = d.value;
|
|
28
|
+
a && (b.value = {
|
|
29
29
|
width: Math.max(a.clientWidth, 0),
|
|
30
30
|
height: Math.max(a.clientHeight, 0)
|
|
31
31
|
});
|
|
32
32
|
}
|
|
33
33
|
function $() {
|
|
34
|
-
const a =
|
|
34
|
+
const a = g.value;
|
|
35
35
|
if (!a)
|
|
36
36
|
return;
|
|
37
|
-
const l =
|
|
38
|
-
if (l <= 0 ||
|
|
37
|
+
const l = b.value.width, m = b.value.height;
|
|
38
|
+
if (l <= 0 || m <= 0)
|
|
39
39
|
return;
|
|
40
|
-
const _ = Math.min(window.devicePixelRatio || 1, 2), R =
|
|
40
|
+
const _ = Math.min(window.devicePixelRatio || 1, 2), R = k(Math.round(l * _), 1, f.maxBufferWidth), w = k(Math.round(m * _), 1, f.maxBufferHeight);
|
|
41
41
|
a.width !== R && (a.width = R), a.height !== w && (a.height = w);
|
|
42
|
-
const
|
|
43
|
-
if (!
|
|
42
|
+
const W = a.getContext("2d");
|
|
43
|
+
if (!W)
|
|
44
44
|
return;
|
|
45
|
-
const
|
|
46
|
-
|
|
47
|
-
const
|
|
48
|
-
if (!
|
|
45
|
+
const x = R / l, I = w / m;
|
|
46
|
+
W.setTransform(x, 0, 0, I, 0, 0), W.clearRect(0, 0, l, m);
|
|
47
|
+
const M = f.peaks;
|
|
48
|
+
if (!M.length)
|
|
49
49
|
return;
|
|
50
|
-
const n = l /
|
|
50
|
+
const n = l / M.length;
|
|
51
51
|
if (!Number.isFinite(n) || n <= 0)
|
|
52
52
|
return;
|
|
53
|
-
const r = Math.min(
|
|
54
|
-
|
|
55
|
-
for (let e = 0; e <
|
|
56
|
-
const
|
|
57
|
-
if (
|
|
53
|
+
const r = Math.min(f.barGap, Math.max(0, n - 0.1));
|
|
54
|
+
W.fillStyle = f.barColor;
|
|
55
|
+
for (let e = 0; e < M.length; e++) {
|
|
56
|
+
const s = e * n, t = s + n, o = s + r / 2, u = t - r / 2 - o;
|
|
57
|
+
if (u <= 0)
|
|
58
58
|
continue;
|
|
59
|
-
const z = Math.min(
|
|
60
|
-
|
|
59
|
+
const z = Math.min(f.maxBarWidth, u), A = o + (u - z) / 2, C = h(M[e] ?? 0), H = Math.max(f.minBarHeight, C * m * 0.88), J = (m - H) / 2;
|
|
60
|
+
W.fillRect(A, J, z, H);
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
return re(() => {
|
|
64
|
-
|
|
65
|
-
const a =
|
|
64
|
+
v();
|
|
65
|
+
const a = d.value;
|
|
66
66
|
a && (c = new ResizeObserver(() => {
|
|
67
|
-
|
|
67
|
+
v();
|
|
68
68
|
}), c.observe(a));
|
|
69
69
|
}), se(() => {
|
|
70
70
|
c?.disconnect(), c = null;
|
|
71
71
|
}), F(
|
|
72
72
|
[
|
|
73
|
-
() =>
|
|
74
|
-
() =>
|
|
75
|
-
() =>
|
|
76
|
-
() =>
|
|
77
|
-
() =>
|
|
78
|
-
() =>
|
|
79
|
-
() =>
|
|
80
|
-
() =>
|
|
81
|
-
() =>
|
|
73
|
+
() => f.peaks,
|
|
74
|
+
() => f.barColor,
|
|
75
|
+
() => f.minBarHeight,
|
|
76
|
+
() => f.maxBarWidth,
|
|
77
|
+
() => f.barGap,
|
|
78
|
+
() => f.maxBufferWidth,
|
|
79
|
+
() => f.maxBufferHeight,
|
|
80
|
+
() => b.value.width,
|
|
81
|
+
() => b.value.height
|
|
82
82
|
],
|
|
83
83
|
async () => {
|
|
84
84
|
await fe(), $();
|
|
85
85
|
},
|
|
86
86
|
{ immediate: !0, flush: "post" }
|
|
87
|
-
), (a, l) => (
|
|
87
|
+
), (a, l) => (y(), T("div", {
|
|
88
88
|
ref_key: "containerRef",
|
|
89
|
-
ref:
|
|
89
|
+
ref: d,
|
|
90
90
|
class: "waveform-canvas-strip"
|
|
91
91
|
}, [
|
|
92
92
|
S("canvas", {
|
|
93
93
|
ref_key: "canvasRef",
|
|
94
|
-
ref:
|
|
94
|
+
ref: g,
|
|
95
95
|
class: "waveform-canvas-strip__canvas"
|
|
96
96
|
}, null, 512)
|
|
97
97
|
], 512));
|
|
@@ -109,15 +109,15 @@ const Me = /* @__PURE__ */ L({
|
|
|
109
109
|
segment: {}
|
|
110
110
|
},
|
|
111
111
|
setup(i) {
|
|
112
|
-
const
|
|
113
|
-
let
|
|
112
|
+
const f = i, d = P(null), g = P(0);
|
|
113
|
+
let b = null;
|
|
114
114
|
re(() => {
|
|
115
|
-
|
|
115
|
+
d.value && (g.value = d.value.clientWidth, b = new ResizeObserver((a) => {
|
|
116
116
|
for (const l of a)
|
|
117
|
-
|
|
118
|
-
}),
|
|
117
|
+
g.value = l.contentRect.width;
|
|
118
|
+
}), b.observe(d.value));
|
|
119
119
|
}), se(() => {
|
|
120
|
-
|
|
120
|
+
b?.disconnect();
|
|
121
121
|
});
|
|
122
122
|
const c = q({
|
|
123
123
|
data: null,
|
|
@@ -125,66 +125,66 @@ const Me = /* @__PURE__ */ L({
|
|
|
125
125
|
error: null,
|
|
126
126
|
loadedUrl: null
|
|
127
127
|
});
|
|
128
|
-
let
|
|
129
|
-
F(() =>
|
|
130
|
-
a && a !== l &&
|
|
128
|
+
let k = 0;
|
|
129
|
+
F(() => f.segment.url, (a, l) => {
|
|
130
|
+
a && a !== l && h(a);
|
|
131
131
|
}, { immediate: !0 });
|
|
132
|
-
async function
|
|
132
|
+
async function h(a) {
|
|
133
133
|
if (!a || c.loadedUrl === a && c.data)
|
|
134
134
|
return;
|
|
135
|
-
const l = ++
|
|
135
|
+
const l = ++k;
|
|
136
136
|
c.loading = !0, c.error = null;
|
|
137
137
|
try {
|
|
138
|
-
const
|
|
139
|
-
if (
|
|
138
|
+
const m = await le(a, { samples: 1e3 });
|
|
139
|
+
if (k !== l)
|
|
140
140
|
return;
|
|
141
|
-
c.data =
|
|
142
|
-
} catch (
|
|
143
|
-
if (
|
|
141
|
+
c.data = m, c.loadedUrl = a, c.loading = !1;
|
|
142
|
+
} catch (m) {
|
|
143
|
+
if (k !== l)
|
|
144
144
|
return;
|
|
145
|
-
c.error =
|
|
145
|
+
c.error = m instanceof Error ? m.message : String(m), c.loading = !1;
|
|
146
146
|
}
|
|
147
147
|
}
|
|
148
|
-
function
|
|
148
|
+
function v(a, l) {
|
|
149
149
|
if (l >= a.length)
|
|
150
150
|
return a;
|
|
151
|
-
const
|
|
151
|
+
const m = [], _ = a.length / l;
|
|
152
152
|
for (let R = 0; R < l; R++) {
|
|
153
|
-
const w = Math.floor(R * _),
|
|
154
|
-
let
|
|
155
|
-
for (let I = w; I <
|
|
156
|
-
const
|
|
157
|
-
|
|
153
|
+
const w = Math.floor(R * _), W = Math.max(w + 1, Math.ceil((R + 1) * _));
|
|
154
|
+
let x = 0;
|
|
155
|
+
for (let I = w; I < W; I++) {
|
|
156
|
+
const M = a[I] ?? 0;
|
|
157
|
+
M > x && (x = M);
|
|
158
158
|
}
|
|
159
|
-
|
|
159
|
+
m.push(x);
|
|
160
160
|
}
|
|
161
|
-
return
|
|
161
|
+
return m;
|
|
162
162
|
}
|
|
163
163
|
const $ = U(() => {
|
|
164
164
|
if (!c.data)
|
|
165
165
|
return { peaks: [], renderPeaks: [], coveragePercent: 100 };
|
|
166
|
-
const a =
|
|
166
|
+
const a = f.segment, l = c.data.duration * 1e3, m = c.data.peaks, _ = a.fromTime ?? 0, R = a.endTime - a.startTime, w = a.playRate ?? 1, W = R * w, x = Math.max(0, l - _), I = Math.min(W, x), M = R > 0 ? Math.min(100, I / w / R * 100) : 0, n = _ / l, r = (_ + I) / l, e = Math.floor(n * m.length), s = Math.ceil(r * m.length), t = m.slice(
|
|
167
167
|
Math.max(0, e),
|
|
168
|
-
Math.min(
|
|
168
|
+
Math.min(m.length, s)
|
|
169
169
|
);
|
|
170
170
|
if (!t.length)
|
|
171
|
-
return { peaks: [], renderPeaks: [], coveragePercent:
|
|
172
|
-
const
|
|
171
|
+
return { peaks: [], renderPeaks: [], coveragePercent: M };
|
|
172
|
+
const o = g.value * (M / 100), B = o > 0 ? Math.min(
|
|
173
173
|
$e,
|
|
174
|
-
Math.max(1, Math.floor(
|
|
174
|
+
Math.max(1, Math.floor(o / (we + Re)))
|
|
175
175
|
) : t.length;
|
|
176
176
|
return {
|
|
177
177
|
peaks: t,
|
|
178
|
-
renderPeaks:
|
|
179
|
-
coveragePercent:
|
|
178
|
+
renderPeaks: v(t, B),
|
|
179
|
+
coveragePercent: M
|
|
180
180
|
};
|
|
181
181
|
});
|
|
182
|
-
return (a, l) => (
|
|
182
|
+
return (a, l) => (y(), T("div", {
|
|
183
183
|
ref_key: "containerRef",
|
|
184
|
-
ref:
|
|
184
|
+
ref: d,
|
|
185
185
|
class: "audio-segment"
|
|
186
186
|
}, [
|
|
187
|
-
c.data && $.value.renderPeaks.length ?
|
|
187
|
+
c.data && $.value.renderPeaks.length ? p(a.$slots, "waveform", {
|
|
188
188
|
key: 0,
|
|
189
189
|
segment: i.segment,
|
|
190
190
|
waveform: c.data,
|
|
@@ -205,31 +205,31 @@ const Me = /* @__PURE__ */ L({
|
|
|
205
205
|
"bar-gap": 1
|
|
206
206
|
}, null, 8, ["peaks"])
|
|
207
207
|
], 4)
|
|
208
|
-
], !0) : (
|
|
209
|
-
c.loading ?
|
|
208
|
+
], !0) : (y(), T("div", Te, [
|
|
209
|
+
c.loading ? p(a.$slots, "loading", {
|
|
210
210
|
key: 0,
|
|
211
211
|
segment: i.segment
|
|
212
212
|
}, () => [
|
|
213
213
|
l[0] || (l[0] = S("span", null, "加载波形…", -1))
|
|
214
|
-
], !0) : c.error ?
|
|
214
|
+
], !0) : c.error ? p(a.$slots, "error", {
|
|
215
215
|
key: 1,
|
|
216
216
|
segment: i.segment,
|
|
217
217
|
error: c.error
|
|
218
218
|
}, () => [
|
|
219
219
|
l[1] || (l[1] = S("span", null, "波形加载失败", -1))
|
|
220
|
-
], !0) :
|
|
220
|
+
], !0) : p(a.$slots, "empty", {
|
|
221
221
|
key: 2,
|
|
222
222
|
segment: i.segment
|
|
223
223
|
}, () => [
|
|
224
224
|
l[2] || (l[2] = S("div", { class: "waveform-pattern" }, null, -1))
|
|
225
225
|
], !0)
|
|
226
226
|
])),
|
|
227
|
-
|
|
228
|
-
i.segment.extra?.label ? (
|
|
227
|
+
p(a.$slots, "overlay", { segment: i.segment }, () => [
|
|
228
|
+
i.segment.extra?.label ? (y(), T("span", Se, O(i.segment.extra?.label), 1)) : j("", !0)
|
|
229
229
|
], !0)
|
|
230
230
|
], 512));
|
|
231
231
|
}
|
|
232
|
-
}), Be = /* @__PURE__ */ G(_e, [["__scopeId", "data-v-47cbc534"]]),
|
|
232
|
+
}), Be = /* @__PURE__ */ G(_e, [["__scopeId", "data-v-47cbc534"]]), We = { class: "frames-segment" }, Ie = { class: "frames-segment__video-wrap" }, xe = { class: "frames-segment__video" }, Pe = {
|
|
233
233
|
key: 1,
|
|
234
234
|
class: "frames-segment__placeholder frames-segment__placeholder--video"
|
|
235
235
|
}, Ae = {
|
|
@@ -249,170 +249,170 @@ const Me = /* @__PURE__ */ L({
|
|
|
249
249
|
segment: {}
|
|
250
250
|
},
|
|
251
251
|
setup(i) {
|
|
252
|
-
const
|
|
253
|
-
let
|
|
252
|
+
const f = i, d = P(null), g = P(null), b = P(1), c = P(0);
|
|
253
|
+
let k = null;
|
|
254
254
|
re(() => {
|
|
255
|
-
|
|
255
|
+
k = new ResizeObserver((n) => {
|
|
256
256
|
for (const r of n) {
|
|
257
|
-
if (r.target ===
|
|
257
|
+
if (r.target === d.value) {
|
|
258
258
|
const e = Math.max(1, Math.ceil(r.contentRect.width / 56));
|
|
259
|
-
|
|
259
|
+
b.value !== e && (b.value = e);
|
|
260
260
|
}
|
|
261
|
-
r.target ===
|
|
261
|
+
r.target === g.value && (c.value = r.contentRect.width);
|
|
262
262
|
}
|
|
263
|
-
}),
|
|
263
|
+
}), d.value && k.observe(d.value), g.value && (c.value = g.value.clientWidth, k.observe(g.value));
|
|
264
264
|
}), se(() => {
|
|
265
|
-
|
|
266
|
-
}), F(
|
|
267
|
-
|
|
265
|
+
k?.disconnect(), I();
|
|
266
|
+
}), F(g, (n, r) => {
|
|
267
|
+
k && r && k.unobserve(r), k && n && (c.value = n.clientWidth, k.observe(n));
|
|
268
268
|
});
|
|
269
|
-
const
|
|
269
|
+
const h = q({ items: [], loading: !1, error: null }), v = q({
|
|
270
270
|
data: null,
|
|
271
271
|
loading: !1,
|
|
272
272
|
error: null,
|
|
273
273
|
loadedUrl: null
|
|
274
274
|
});
|
|
275
|
-
let $ = 0, a = 0, l,
|
|
276
|
-
F(() =>
|
|
275
|
+
let $ = 0, a = 0, l, m = null;
|
|
276
|
+
F(() => f.segment, (n, r) => {
|
|
277
277
|
if (!V(n))
|
|
278
278
|
return;
|
|
279
279
|
(!r || _(r, n)) && R(n, r);
|
|
280
|
-
}, { immediate: !0, deep: !0 }), F(() =>
|
|
280
|
+
}, { immediate: !0, deep: !0 }), F(() => f.segment, (n, r) => {
|
|
281
281
|
if (!V(n))
|
|
282
282
|
return;
|
|
283
|
-
const e = n,
|
|
284
|
-
e.url && e.url !==
|
|
283
|
+
const e = n, s = r && V(r) ? r : void 0;
|
|
284
|
+
e.url && e.url !== s?.url && W(e.url);
|
|
285
285
|
}, { immediate: !0, deep: !0 });
|
|
286
286
|
function _(n, r) {
|
|
287
287
|
return n.url !== r.url || n.startTime !== r.startTime || n.endTime !== r.endTime || n.fromTime !== r.fromTime;
|
|
288
288
|
}
|
|
289
289
|
function R(n, r) {
|
|
290
|
-
const e = !r || r.url !== n.url,
|
|
291
|
-
if (
|
|
290
|
+
const e = !r || r.url !== n.url, s = !r || r.fromTime !== n.fromTime, t = e || s;
|
|
291
|
+
if (m = n, l && (window.clearTimeout(l), l = void 0), t) {
|
|
292
292
|
w(n);
|
|
293
293
|
return;
|
|
294
294
|
}
|
|
295
295
|
l = window.setTimeout(() => {
|
|
296
|
-
|
|
296
|
+
m && w(m), l = void 0;
|
|
297
297
|
}, 240);
|
|
298
298
|
}
|
|
299
299
|
async function w(n) {
|
|
300
300
|
if (!n.url)
|
|
301
301
|
return;
|
|
302
302
|
const r = ++$;
|
|
303
|
-
I(),
|
|
303
|
+
I(), h.loading = !0, h.error = null;
|
|
304
304
|
try {
|
|
305
|
-
const e =
|
|
305
|
+
const e = x(n), s = await pe(n.url, e);
|
|
306
306
|
if ($ !== r)
|
|
307
307
|
return;
|
|
308
|
-
const t =
|
|
309
|
-
tsMs: Math.round(
|
|
310
|
-
url: URL.createObjectURL(
|
|
308
|
+
const t = s.map((o) => ({
|
|
309
|
+
tsMs: Math.round(o.ts / 1e3),
|
|
310
|
+
url: URL.createObjectURL(o.img)
|
|
311
311
|
}));
|
|
312
|
-
|
|
312
|
+
h.items = t, h.loading = !1;
|
|
313
313
|
} catch (e) {
|
|
314
314
|
if ($ !== r)
|
|
315
315
|
return;
|
|
316
|
-
|
|
316
|
+
h.error = e instanceof Error ? e.message : String(e), h.loading = !1;
|
|
317
317
|
}
|
|
318
318
|
}
|
|
319
|
-
async function
|
|
320
|
-
if (!n ||
|
|
319
|
+
async function W(n) {
|
|
320
|
+
if (!n || v.loadedUrl === n && v.data)
|
|
321
321
|
return;
|
|
322
322
|
const r = ++a;
|
|
323
|
-
|
|
323
|
+
v.loading = !0, v.error = null;
|
|
324
324
|
try {
|
|
325
325
|
const e = await le(n, { samples: 1e3 });
|
|
326
326
|
if (a !== r)
|
|
327
327
|
return;
|
|
328
|
-
|
|
328
|
+
v.data = e, v.loadedUrl = n, v.loading = !1;
|
|
329
329
|
} catch (e) {
|
|
330
330
|
if (a !== r)
|
|
331
331
|
return;
|
|
332
|
-
|
|
332
|
+
v.data = null, v.error = e instanceof Error ? e.message : String(e), v.loading = !1;
|
|
333
333
|
}
|
|
334
334
|
}
|
|
335
|
-
function
|
|
336
|
-
const r = Math.max(n.fromTime ?? 0, 0) * 1e3, e = Math.max(n.endTime - n.startTime, 1),
|
|
337
|
-
return { start: r, end:
|
|
335
|
+
function x(n) {
|
|
336
|
+
const r = Math.max(n.fromTime ?? 0, 0) * 1e3, e = Math.max(n.endTime - n.startTime, 1), s = r + e * 1e3, o = Math.max(Math.floor((s - r) / 8), 2e5);
|
|
337
|
+
return { start: r, end: s, step: o };
|
|
338
338
|
}
|
|
339
339
|
function I() {
|
|
340
|
-
|
|
340
|
+
h.items.forEach((n) => URL.revokeObjectURL(n.url)), h.items = [];
|
|
341
341
|
}
|
|
342
|
-
const
|
|
343
|
-
if (!V(
|
|
342
|
+
const M = U(() => {
|
|
343
|
+
if (!V(f.segment))
|
|
344
344
|
return { peaks: [], coveragePercent: 100 };
|
|
345
|
-
if (!
|
|
345
|
+
if (!v.data)
|
|
346
346
|
return { peaks: [], coveragePercent: 100 };
|
|
347
|
-
const n =
|
|
347
|
+
const n = f.segment, r = Math.max(n.endTime - n.startTime, 0);
|
|
348
348
|
if (r <= 0)
|
|
349
349
|
return { peaks: [], coveragePercent: 100 };
|
|
350
|
-
const e = Math.max(c.value, 1),
|
|
350
|
+
const e = Math.max(c.value, 1), s = Math.min(
|
|
351
351
|
Fe,
|
|
352
352
|
Math.max(1, Math.floor(e / (De + Ve)))
|
|
353
|
-
), t =
|
|
354
|
-
if (!Number.isFinite(t) || t <= 0 ||
|
|
355
|
-
return { peaks: new Array(
|
|
356
|
-
const
|
|
357
|
-
for (let C = 0; C <
|
|
358
|
-
const H =
|
|
353
|
+
), t = v.data.duration * 1e3, o = v.data.peaks;
|
|
354
|
+
if (!Number.isFinite(t) || t <= 0 || o.length === 0)
|
|
355
|
+
return { peaks: new Array(s).fill(0), coveragePercent: 100 };
|
|
356
|
+
const B = Math.max(n.fromTime ?? 0, 0), u = Math.max(n.playRate ?? 1, 1e-4), z = r * u, A = [];
|
|
357
|
+
for (let C = 0; C < s; C++) {
|
|
358
|
+
const H = B + z * C / s, J = B + z * (C + 1) / s;
|
|
359
359
|
if (H >= t || J <= 0) {
|
|
360
360
|
A.push(0);
|
|
361
361
|
continue;
|
|
362
362
|
}
|
|
363
|
-
const
|
|
363
|
+
const de = Math.max(H, 0), me = Math.min(J, t), oe = Math.floor(de / t * o.length), ue = Math.max(oe + 1, Math.ceil(me / t * o.length));
|
|
364
364
|
let Q = 0;
|
|
365
365
|
for (let Z = oe; Z < ue; Z++) {
|
|
366
|
-
const ie =
|
|
366
|
+
const ie = o[Z] ?? 0;
|
|
367
367
|
ie > Q && (Q = ie);
|
|
368
368
|
}
|
|
369
369
|
A.push(Q);
|
|
370
370
|
}
|
|
371
371
|
return { peaks: A, coveragePercent: 100 };
|
|
372
372
|
});
|
|
373
|
-
return (n, r) => (
|
|
374
|
-
i.segment.type === "image" ?
|
|
373
|
+
return (n, r) => (y(), T("div", We, [
|
|
374
|
+
i.segment.type === "image" ? p(n.$slots, "image", {
|
|
375
375
|
key: 0,
|
|
376
376
|
segment: i.segment,
|
|
377
377
|
style: N({ backgroundImage: i.segment.url ? `url(${i.segment.url})` : "" })
|
|
378
378
|
}, () => [
|
|
379
379
|
S("div", {
|
|
380
380
|
ref_key: "containerRef",
|
|
381
|
-
ref:
|
|
381
|
+
ref: d,
|
|
382
382
|
class: "frames-segment__image"
|
|
383
383
|
}, [
|
|
384
|
-
(
|
|
384
|
+
(y(!0), T(K, null, ae(b.value, (e) => (y(), T("div", {
|
|
385
385
|
key: e,
|
|
386
386
|
class: "frames-segment__image-item",
|
|
387
387
|
style: N({ backgroundImage: i.segment.url ? `url(${i.segment.url})` : "" })
|
|
388
388
|
}, null, 4))), 128))
|
|
389
389
|
], 512)
|
|
390
|
-
], !0) : i.segment.type === "video" ?
|
|
390
|
+
], !0) : i.segment.type === "video" ? p(n.$slots, "video", {
|
|
391
391
|
key: 1,
|
|
392
392
|
segment: i.segment,
|
|
393
|
-
thumbnails:
|
|
394
|
-
waveformPeaks:
|
|
395
|
-
waveformCoveragePercent:
|
|
393
|
+
thumbnails: h.items,
|
|
394
|
+
waveformPeaks: M.value.peaks,
|
|
395
|
+
waveformCoveragePercent: M.value.coveragePercent
|
|
396
396
|
}, () => [
|
|
397
|
-
S("div",
|
|
398
|
-
S("div",
|
|
399
|
-
|
|
397
|
+
S("div", Ie, [
|
|
398
|
+
S("div", xe, [
|
|
399
|
+
h.items.length ? (y(!0), T(K, { key: 0 }, ae(h.items, (e) => (y(), T("div", {
|
|
400
400
|
key: `${i.segment.id}-${e.tsMs}`,
|
|
401
401
|
class: "frames-segment__thumb",
|
|
402
402
|
style: N({ backgroundImage: `url(${e.url})` })
|
|
403
|
-
}, null, 4))), 128)) : (
|
|
404
|
-
|
|
403
|
+
}, null, 4))), 128)) : (y(), T("div", Pe, [
|
|
404
|
+
h.loading ? p(n.$slots, "loading", {
|
|
405
405
|
key: 0,
|
|
406
406
|
segment: i.segment
|
|
407
407
|
}, () => [
|
|
408
408
|
r[0] || (r[0] = S("span", null, "抽帧中…", -1))
|
|
409
|
-
], !0) :
|
|
409
|
+
], !0) : h.error ? p(n.$slots, "error", {
|
|
410
410
|
key: 1,
|
|
411
411
|
segment: i.segment,
|
|
412
|
-
error:
|
|
412
|
+
error: h.error
|
|
413
413
|
}, () => [
|
|
414
414
|
r[1] || (r[1] = S("span", null, "生成失败", -1))
|
|
415
|
-
], !0) :
|
|
415
|
+
], !0) : p(n.$slots, "empty", {
|
|
416
416
|
key: 2,
|
|
417
417
|
segment: i.segment
|
|
418
418
|
}, () => [
|
|
@@ -422,22 +422,22 @@ const Me = /* @__PURE__ */ L({
|
|
|
422
422
|
]),
|
|
423
423
|
S("div", {
|
|
424
424
|
ref_key: "waveformRef",
|
|
425
|
-
ref:
|
|
425
|
+
ref: g,
|
|
426
426
|
class: "frames-segment__waveform-strip"
|
|
427
427
|
}, [
|
|
428
|
-
|
|
428
|
+
M.value.peaks.length ? (y(), T("div", Ae, [
|
|
429
429
|
E(ce, {
|
|
430
430
|
class: "frames-segment__waveform-canvas",
|
|
431
|
-
peaks:
|
|
431
|
+
peaks: M.value.peaks,
|
|
432
432
|
"bar-color": "#3f3f46",
|
|
433
433
|
"min-bar-height": 3,
|
|
434
434
|
"max-bar-width": 4,
|
|
435
435
|
"bar-gap": 1
|
|
436
436
|
}, null, 8, ["peaks"])
|
|
437
|
-
])) : (
|
|
437
|
+
])) : (y(), T("div", Ee))
|
|
438
438
|
], 512)
|
|
439
439
|
])
|
|
440
|
-
], !0) :
|
|
440
|
+
], !0) : p(n.$slots, "fallback", {
|
|
441
441
|
key: 2,
|
|
442
442
|
segment: i.segment
|
|
443
443
|
}, () => [
|
|
@@ -445,8 +445,8 @@ const Me = /* @__PURE__ */ L({
|
|
|
445
445
|
S("span", null, O(i.segment.type), 1)
|
|
446
446
|
])
|
|
447
447
|
], !0),
|
|
448
|
-
|
|
449
|
-
i.segment.extra?.label ? (
|
|
448
|
+
p(n.$slots, "overlay", { segment: i.segment }, () => [
|
|
449
|
+
i.segment.extra?.label ? (y(), T("span", Ce, O(i.segment.extra?.label), 1)) : j("", !0)
|
|
450
450
|
], !0)
|
|
451
451
|
]));
|
|
452
452
|
}
|
|
@@ -462,16 +462,16 @@ const Me = /* @__PURE__ */ L({
|
|
|
462
462
|
accentColor: { default: "#222226" }
|
|
463
463
|
},
|
|
464
464
|
setup(i) {
|
|
465
|
-
const
|
|
466
|
-
const
|
|
467
|
-
return typeof
|
|
465
|
+
const f = i, d = U(() => {
|
|
466
|
+
const g = f.segment?.extra?.label;
|
|
467
|
+
return typeof g == "string" ? g : null;
|
|
468
468
|
});
|
|
469
|
-
return (
|
|
469
|
+
return (g, b) => (y(), T("div", He, [
|
|
470
470
|
S("div", Ne, [
|
|
471
471
|
S("span", je, O(i.trackType), 1),
|
|
472
472
|
S("span", Le, O(i.segment.segmentType), 1)
|
|
473
473
|
]),
|
|
474
|
-
|
|
474
|
+
d.value ? (y(), T("span", Ge, O(d.value), 1)) : j("", !0)
|
|
475
475
|
]));
|
|
476
476
|
}
|
|
477
477
|
}), Y = /* @__PURE__ */ G(Je, [["__scopeId", "data-v-d386af72"]]), Xe = { class: "ve-editor-segment__preview" }, ne = "#222226", Ye = 0.4, qe = /* @__PURE__ */ L({
|
|
@@ -487,10 +487,10 @@ const Me = /* @__PURE__ */ L({
|
|
|
487
487
|
disableInteraction: { type: Boolean, default: !1 }
|
|
488
488
|
},
|
|
489
489
|
emits: ["update:currentTime", "update:zoom", "update:selectedSegmentId", "segmentClick", "segmentDragEnd", "segmentResizeEnd", "add-segment"],
|
|
490
|
-
setup(i, { emit:
|
|
491
|
-
const
|
|
492
|
-
F(() =>
|
|
493
|
-
|
|
490
|
+
setup(i, { emit: f }) {
|
|
491
|
+
const d = i, g = f, b = P(d.selectedSegmentId ?? null);
|
|
492
|
+
F(() => d.selectedSegmentId, (e) => {
|
|
493
|
+
b.value = e ?? null;
|
|
494
494
|
});
|
|
495
495
|
const c = {
|
|
496
496
|
frames: ne,
|
|
@@ -499,181 +499,181 @@ const Me = /* @__PURE__ */ L({
|
|
|
499
499
|
sticker: "#f97316",
|
|
500
500
|
effect: "#a855f7",
|
|
501
501
|
filter: "#64748b"
|
|
502
|
-
},
|
|
503
|
-
if (!
|
|
502
|
+
}, k = U(() => {
|
|
503
|
+
if (!d.protocol?.tracks?.length)
|
|
504
504
|
return [];
|
|
505
|
-
const
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
}),
|
|
505
|
+
const s = (d.trackTypes?.length ? d.protocol.tracks.filter((u) => d.trackTypes?.includes(u.trackType)) : d.protocol.tracks).slice(), t = s.find((u) => u.trackType === "frames" && u.isMain === !0), o = s.filter((u) => !(u.trackType === "audio" || u === t)), B = s.filter((u) => u.trackType === "audio");
|
|
506
|
+
return [
|
|
507
|
+
...o,
|
|
508
|
+
...t ? [t] : [],
|
|
509
|
+
...B
|
|
510
|
+
];
|
|
511
|
+
}), h = q(/* @__PURE__ */ new Map()), v = /* @__PURE__ */ new Map();
|
|
512
512
|
function $(e) {
|
|
513
|
-
if (!e ||
|
|
513
|
+
if (!e || h.has(e) || v.has(e))
|
|
514
514
|
return;
|
|
515
|
-
const
|
|
515
|
+
const s = (async () => {
|
|
516
516
|
try {
|
|
517
517
|
const t = await ke(e);
|
|
518
|
-
|
|
518
|
+
h.set(e, t.durationMs);
|
|
519
519
|
} catch {
|
|
520
520
|
}
|
|
521
521
|
})().finally(() => {
|
|
522
|
-
|
|
522
|
+
v.delete(e);
|
|
523
523
|
});
|
|
524
|
-
|
|
524
|
+
v.set(e, s);
|
|
525
525
|
}
|
|
526
|
-
const a = U(() =>
|
|
527
|
-
const t = c[e.trackType] || ne,
|
|
526
|
+
const a = U(() => k.value.map((e, s) => {
|
|
527
|
+
const t = c[e.trackType] || ne, o = m(t, Ye), B = e.trackType === "frames" && e.isMain === !0;
|
|
528
528
|
return {
|
|
529
|
-
id: e.trackId || `${e.trackType}-${
|
|
529
|
+
id: e.trackId || `${e.trackType}-${s}`,
|
|
530
530
|
label: e.trackType,
|
|
531
531
|
type: e.trackType,
|
|
532
532
|
color: t,
|
|
533
|
-
isMain:
|
|
533
|
+
isMain: B,
|
|
534
534
|
payload: e,
|
|
535
|
-
segments: e.children.map((
|
|
536
|
-
...V(
|
|
537
|
-
id:
|
|
538
|
-
start:
|
|
539
|
-
end:
|
|
540
|
-
type:
|
|
541
|
-
color:
|
|
542
|
-
payload:
|
|
535
|
+
segments: e.children.map((u) => ({
|
|
536
|
+
...V(u) ? { fromTime: u.fromTime ?? 0, sourceDurationMs: h.get(u.url) } : ye(u) ? { fromTime: u.fromTime ?? 0 } : {},
|
|
537
|
+
id: u.id,
|
|
538
|
+
start: u.startTime,
|
|
539
|
+
end: u.endTime,
|
|
540
|
+
type: u.segmentType,
|
|
541
|
+
color: o,
|
|
542
|
+
payload: u
|
|
543
543
|
}))
|
|
544
544
|
};
|
|
545
545
|
}));
|
|
546
546
|
ge(() => {
|
|
547
|
-
for (const e of
|
|
548
|
-
for (const
|
|
549
|
-
V(
|
|
547
|
+
for (const e of k.value)
|
|
548
|
+
for (const s of e.children)
|
|
549
|
+
V(s) && $(s.url);
|
|
550
550
|
});
|
|
551
551
|
const l = U(() => {
|
|
552
|
-
if (!
|
|
552
|
+
if (!d.protocol?.tracks?.length)
|
|
553
553
|
return 0;
|
|
554
|
-
const e =
|
|
554
|
+
const e = d.protocol.tracks.flatMap((s) => s.children.map((t) => t.endTime));
|
|
555
555
|
return e.length ? Math.max(...e) : 0;
|
|
556
556
|
});
|
|
557
|
-
function
|
|
557
|
+
function m(e, s) {
|
|
558
558
|
const t = e.replace("#", "");
|
|
559
559
|
if (!(t.length === 3 || t.length === 6))
|
|
560
560
|
return e;
|
|
561
|
-
const
|
|
562
|
-
return `rgba(${
|
|
561
|
+
const o = t.length === 3 ? t.split("").map((A) => A + A).join("") : t, B = Number.parseInt(o.slice(0, 2), 16), u = Number.parseInt(o.slice(2, 4), 16), z = Number.parseInt(o.slice(4, 6), 16);
|
|
562
|
+
return `rgba(${B}, ${u}, ${z}, ${s})`;
|
|
563
563
|
}
|
|
564
564
|
function _(e) {
|
|
565
565
|
return e && typeof e == "object" && "segmentType" in e ? e : null;
|
|
566
566
|
}
|
|
567
567
|
function R(e) {
|
|
568
|
-
const
|
|
569
|
-
if (
|
|
570
|
-
return
|
|
571
|
-
if (
|
|
572
|
-
return
|
|
568
|
+
const s = e.payload;
|
|
569
|
+
if (s)
|
|
570
|
+
return s;
|
|
571
|
+
if (d.protocol)
|
|
572
|
+
return d.protocol.tracks.find((t) => t.trackId === e.id);
|
|
573
573
|
}
|
|
574
574
|
function w(e) {
|
|
575
|
-
|
|
576
|
-
}
|
|
577
|
-
function B(e) {
|
|
578
|
-
const o = _(e.segment.payload), t = R(e.track);
|
|
579
|
-
o && (w(o.id), t && f("segmentClick", { segment: o, track: t }));
|
|
575
|
+
b.value = e, g("update:selectedSegmentId", e);
|
|
580
576
|
}
|
|
581
577
|
function W(e) {
|
|
578
|
+
const s = _(e.segment.payload), t = R(e.track);
|
|
579
|
+
s && (w(s.id), t && g("segmentClick", { segment: s, track: t }));
|
|
580
|
+
}
|
|
581
|
+
function x(e) {
|
|
582
582
|
w(e.segment.id);
|
|
583
583
|
}
|
|
584
584
|
function I(e) {
|
|
585
|
-
|
|
585
|
+
g("segmentDragEnd", e);
|
|
586
586
|
}
|
|
587
|
-
function
|
|
587
|
+
function M(e) {
|
|
588
588
|
w(e.segment.id);
|
|
589
589
|
}
|
|
590
590
|
function n(e) {
|
|
591
|
-
|
|
591
|
+
g("segmentResizeEnd", e);
|
|
592
592
|
}
|
|
593
|
-
function r({ track: e, startTime:
|
|
594
|
-
const
|
|
595
|
-
|
|
593
|
+
function r({ track: e, startTime: s, endTime: t, event: o }) {
|
|
594
|
+
const B = e.payload;
|
|
595
|
+
B && g("add-segment", { track: B, startTime: s, endTime: t, event: o });
|
|
596
596
|
}
|
|
597
|
-
return (e,
|
|
597
|
+
return (e, s) => (y(), he(be, {
|
|
598
598
|
tracks: a.value,
|
|
599
599
|
duration: l.value,
|
|
600
600
|
"current-time": i.currentTime,
|
|
601
601
|
zoom: i.zoom,
|
|
602
602
|
fps: i.protocol?.fps || 30,
|
|
603
603
|
"snap-step": i.snapStep,
|
|
604
|
-
"selected-segment-id":
|
|
604
|
+
"selected-segment-id": b.value ?? null,
|
|
605
605
|
"disable-interaction": i.disableInteraction,
|
|
606
|
-
"onUpdate:currentTime":
|
|
607
|
-
"onUpdate:zoom":
|
|
608
|
-
onSegmentClick:
|
|
609
|
-
onSegmentDragStart:
|
|
606
|
+
"onUpdate:currentTime": s[0] || (s[0] = (t) => g("update:currentTime", t)),
|
|
607
|
+
"onUpdate:zoom": s[1] || (s[1] = (t) => g("update:zoom", t)),
|
|
608
|
+
onSegmentClick: W,
|
|
609
|
+
onSegmentDragStart: x,
|
|
610
610
|
onSegmentDragEnd: I,
|
|
611
|
-
onSegmentResizeStart:
|
|
611
|
+
onSegmentResizeStart: M,
|
|
612
612
|
onSegmentResizeEnd: n,
|
|
613
|
-
onBackgroundClick:
|
|
613
|
+
onBackgroundClick: s[2] || (s[2] = (t) => w(null)),
|
|
614
614
|
onAddSegment: r
|
|
615
615
|
}, ve({
|
|
616
616
|
segment: X(({ layout: t }) => [
|
|
617
|
-
(
|
|
618
|
-
key:
|
|
617
|
+
(y(!0), T(K, null, ae([_(t.segment.payload)], (o) => (y(), T(K, {
|
|
618
|
+
key: o?.id || t.segment.id
|
|
619
619
|
}, [
|
|
620
|
-
|
|
620
|
+
o ? (y(), T("div", {
|
|
621
621
|
key: 0,
|
|
622
622
|
class: "ve-editor-segment",
|
|
623
623
|
style: N({ "--ve-segment-accent": t.track.color || ne })
|
|
624
624
|
}, [
|
|
625
625
|
S("div", Xe, [
|
|
626
|
-
|
|
626
|
+
o.segmentType === "frames" ? p(e.$slots, "segment-frames", {
|
|
627
627
|
key: 0,
|
|
628
|
-
segment:
|
|
628
|
+
segment: o,
|
|
629
629
|
layout: t
|
|
630
630
|
}, () => [
|
|
631
|
-
E(D(Oe), { segment:
|
|
632
|
-
], !0) :
|
|
631
|
+
E(D(Oe), { segment: o }, null, 8, ["segment"])
|
|
632
|
+
], !0) : o.segmentType === "text" ? p(e.$slots, "segment-text", {
|
|
633
633
|
key: 1,
|
|
634
|
-
segment:
|
|
634
|
+
segment: o,
|
|
635
635
|
layout: t
|
|
636
636
|
}, () => [
|
|
637
637
|
E(D(Y), {
|
|
638
|
-
segment:
|
|
638
|
+
segment: o,
|
|
639
639
|
"track-type": t.track.type || "unknown",
|
|
640
640
|
"accent-color": t.track.color
|
|
641
641
|
}, null, 8, ["segment", "track-type", "accent-color"])
|
|
642
|
-
], !0) :
|
|
642
|
+
], !0) : o.segmentType === "sticker" ? p(e.$slots, "segment-sticker", {
|
|
643
643
|
key: 2,
|
|
644
|
-
segment:
|
|
644
|
+
segment: o,
|
|
645
645
|
layout: t
|
|
646
646
|
}, () => [
|
|
647
647
|
E(D(Y), {
|
|
648
|
-
segment:
|
|
648
|
+
segment: o,
|
|
649
649
|
"track-type": t.track.type || "unknown",
|
|
650
650
|
"accent-color": t.track.color
|
|
651
651
|
}, null, 8, ["segment", "track-type", "accent-color"])
|
|
652
|
-
], !0) :
|
|
652
|
+
], !0) : o.segmentType === "audio" ? p(e.$slots, "segment-audio", {
|
|
653
653
|
key: 3,
|
|
654
|
-
segment:
|
|
654
|
+
segment: o,
|
|
655
655
|
layout: t
|
|
656
656
|
}, () => [
|
|
657
657
|
E(D(Be), {
|
|
658
|
-
segment:
|
|
658
|
+
segment: o
|
|
659
659
|
}, null, 8, ["segment"])
|
|
660
|
-
], !0) :
|
|
660
|
+
], !0) : o.segmentType === "effect" ? p(e.$slots, "segment-effect", {
|
|
661
661
|
key: 4,
|
|
662
|
-
segment:
|
|
662
|
+
segment: o,
|
|
663
663
|
layout: t
|
|
664
664
|
}, () => [
|
|
665
665
|
E(D(Y), {
|
|
666
|
-
segment:
|
|
666
|
+
segment: o,
|
|
667
667
|
"track-type": t.track.type || "unknown",
|
|
668
668
|
"accent-color": t.track.color
|
|
669
669
|
}, null, 8, ["segment", "track-type", "accent-color"])
|
|
670
|
-
], !0) :
|
|
670
|
+
], !0) : o.segmentType === "filter" ? p(e.$slots, "segment-filter", {
|
|
671
671
|
key: 5,
|
|
672
|
-
segment:
|
|
672
|
+
segment: o,
|
|
673
673
|
layout: t
|
|
674
674
|
}, () => [
|
|
675
675
|
E(D(Y), {
|
|
676
|
-
segment:
|
|
676
|
+
segment: o,
|
|
677
677
|
"track-type": t.track.type || "unknown",
|
|
678
678
|
"accent-color": t.track.color
|
|
679
679
|
}, null, 8, ["segment", "track-type", "accent-color"])
|
|
@@ -687,27 +687,27 @@ const Me = /* @__PURE__ */ L({
|
|
|
687
687
|
e.$slots.toolbar ? {
|
|
688
688
|
name: "toolbar",
|
|
689
689
|
fn: X((t) => [
|
|
690
|
-
|
|
690
|
+
p(e.$slots, "toolbar", ee(te(t)), void 0, !0)
|
|
691
691
|
]),
|
|
692
692
|
key: "0"
|
|
693
693
|
} : void 0,
|
|
694
694
|
e.$slots.ruler ? {
|
|
695
695
|
name: "ruler",
|
|
696
696
|
fn: X((t) => [
|
|
697
|
-
|
|
697
|
+
p(e.$slots, "ruler", ee(te(t)), void 0, !0)
|
|
698
698
|
]),
|
|
699
699
|
key: "1"
|
|
700
700
|
} : void 0,
|
|
701
701
|
e.$slots.playhead ? {
|
|
702
702
|
name: "playhead",
|
|
703
703
|
fn: X((t) => [
|
|
704
|
-
|
|
704
|
+
p(e.$slots, "playhead", ee(te(t)), void 0, !0)
|
|
705
705
|
]),
|
|
706
706
|
key: "2"
|
|
707
707
|
} : void 0
|
|
708
708
|
]), 1032, ["tracks", "duration", "current-time", "zoom", "fps", "snap-step", "selected-segment-id", "disable-interaction"]));
|
|
709
709
|
}
|
|
710
|
-
}), tt = /* @__PURE__ */ G(qe, [["__scopeId", "data-v-
|
|
710
|
+
}), tt = /* @__PURE__ */ G(qe, [["__scopeId", "data-v-14600e74"]]);
|
|
711
711
|
export {
|
|
712
712
|
Be as A,
|
|
713
713
|
Oe as F,
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { V as i } from "./index-
|
|
2
|
-
import { A as s, F as d, S as V } from "./index-
|
|
1
|
+
import { V as i } from "./index-BEEVxCQj.js";
|
|
2
|
+
import { A as s, F as d, S as V } from "./index-BEEVxCQj.js";
|
|
3
3
|
import { V as o } from "./index-C0eQjJkj.js";
|
|
4
4
|
const t = {
|
|
5
5
|
install(e) {
|
package/dist/ui.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:where(.ve-playhead[data-v-8e647d40]){--ve-playhead-nudge: 0px;--at-apply: absolute z-20 pointer-events-auto cursor-ew-resize h-full;transform:translate(calc(-50% - var(--ve-playhead-nudge)))}:where(.ve-playhead__icon[data-v-8e647d40]){--at-apply: text-[#222226] pointer-events-none relative z-2}:where(.ve-playhead__line[data-v-8e647d40]){--at-apply: bg-[#222226] bottom-0 w-px translate-x--50% left-50% top-2px absolute pointer-events-none}:where(.ve-ruler[data-v-30f91636]){--ve-ruler-major: 8px;--ve-ruler-minor: 4px;--at-apply: sticky top-0 left-0 right-0 bg-white z-3 border-b border-[#e5e7eb] overflow-hidden}:where(.ve-ruler .ve-ruler__ticks[data-v-30f91636]){--at-apply: relative h-full w-full box-border}:where(.ve-ruler .ve-ruler__tick[data-v-30f91636]){--at-apply: absolute top-0 h-full text-center text-[#6b7280] text-[11px]}:where(.ve-ruler .ve-ruler__line[data-v-30f91636]){--at-apply: h-[var(--ve-ruler-minor)] w-px mx-auto bg-[#cbd5e1]}:where(.ve-ruler .ve-ruler__tick--major .ve-ruler__line[data-v-30f91636]){--at-apply: relative h-[var(--ve-ruler-major)] bg-[#94a3b8]}:where(.ve-ruler .ve-ruler__label[data-v-30f91636]){--at-apply: absolute font-mono text-right whitespace-nowrap left-4px bottom-0;transform:translateY(-50%)}:where(.ve-toolbar[data-v-85ddeb0f]){--at-apply: flex items-center justify-between gap-2 px-3 py-2.5 border-b border-[#eceff3]}:where(.ve-toolbar .ve-toolbar__group[data-v-85ddeb0f]){--at-apply: inline-flex items-center gap-2}:where(.ve-toolbar .ve-zoom[data-v-85ddeb0f]){--at-apply: min-w-14 text-center text-xs text-[#222226] px-2 py-1 border border-[#e5e7eb] rounded-lg bg-white}:where(.ve-toolbar .ve-btn[data-v-85ddeb0f]){--at-apply: border border-[#d1d5db] bg-white text-[#222226] rounded-lg h-7 w-7 cursor-pointer transition-all duration-150}:where(.ve-toolbar .ve-btn[data-v-85ddeb0f]:disabled){--at-apply: cursor-not-allowed opacity-45}:where(.ve-toolbar .ve-btn[data-v-85ddeb0f]:not(:disabled):hover){--at-apply: border-[#222226] text-[#222226]}:where(.ve-toolbar .ve-toolbar__time[data-v-85ddeb0f]){--at-apply: inline-flex items-center gap-1.5 text-xs font-mono text-[#222226] ml-auto}:where(.ve-toolbar .ve-toolbar__time-divider[data-v-85ddeb0f]){--at-apply: text-[#9ca3af]}.ve-timeline__tracks[data-v-902b9363]{position:relative;z-index:1;padding-bottom:.75rem;display:flex;flex-direction:column;gap:2px;flex:1}.ve-track[data-v-902b9363]{position:relative;background-color:#f8fafc;overflow:hidden}.ve-track--main[data-v-902b9363]{background-color:#f4f4f6}.ve-track--has-selection[data-v-902b9363]{background-color:#f2f2fa!important;box-shadow:inset 0 1px #e4e4fc,inset 0 -1px #e4e4fc}.ve-track__body[data-v-902b9363]{position:relative;height:100%}.ve-segment[data-v-902b9363]{position:absolute;top:0;bottom:0;border-radius:4px;color:#0f172a;cursor:pointer;display:flex;align-items:center;overflow:hidden;transition-duration:.15s}.ve-segment__content[data-v-902b9363]{display:flex;flex-direction:column;gap:.25rem;padding:.375rem .625rem}.ve-segment__title[data-v-902b9363]{font-size:12px;font-weight:700;text-transform:capitalize}.ve-segment__time[data-v-902b9363]{font-size:11px;color:#0f172acc;font-family:monospace}.ve-segment__selection[data-v-902b9363]{position:absolute;inset:0;pointer-events:none;z-index:10}.ve-segment__handle[data-v-902b9363]{position:absolute;height:100%;width:4px;background-color:#222226;cursor:ew-resize;pointer-events:auto;border:2px solid #222226}.ve-segment__handle--left[data-v-902b9363]{left:0;top:0;border-radius:.25rem 0 0 .25rem}.ve-segment__handle--right[data-v-902b9363]{right:0;top:0;border-radius:0 .25rem .25rem 0}.ve-segment__handle-dots[data-v-902b9363]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;gap:.125rem;justify-content:center}.ve-segment__handle-dot[data-v-902b9363]{border-radius:9999px;background-color:#fff;width:1px;height:1px}.ve-track__add-button[data-v-902b9363]{position:absolute;top:50%;transform:translateY(-50%);margin-left:.5rem;width:2.5rem;height:2.5rem;border-radius:.5rem;display:flex;align-items:center;justify-content:center;color:#222226;background-color:#f2f2fa;cursor:pointer;transition:background-color .2s;border:1px solid #222226}.ve-track__add-button[data-v-902b9363]:hover{background-color:#e5e5e5}.ve-track__gap-add[data-v-902b9363]{position:absolute;top:0;bottom:0;height:100%;display:flex;align-items:center;justify-content:center;cursor:pointer}.ve-track__gap-add[data-v-902b9363]:hover{background-color:#efefef}.ve-track__gap-add-icon[data-v-902b9363]{display:none;color:#fff;background-color:#222226;padding:4px;border-radius:4px}.ve-track__gap-add:hover .ve-track__gap-add-icon[data-v-902b9363]{display:block}:where(.ve-timeline[data-v-4e3078d5]){--ve-primary: #222226;--at-apply: flex flex-col w-full max-w-full min-w-0 rounded-10px h-full}:where(.ve-timeline .ve-timeline__viewport[data-v-4e3078d5]){--at-apply: relative overflow-auto w-full flex-1 bg-white}:where(.ve-timeline .ve-timeline__content[data-v-4e3078d5]){--at-apply: min-h-full min-w-full}:where(.ve-timeline .ve-segment--dragging[data-v-4e3078d5]){--at-apply: absolute z-50 rounded-[4px] text-[#0f172a] cursor-pointer flex items-center overflow-hidden pointer-events-none;box-shadow:0 4px 16px #0000004d,inset 0 0 0 2px #ffffff80}:where(.ve-timeline .ve-segment--preview[data-v-4e3078d5]){--at-apply: absolute z-45 rounded-[4px] pointer-events-none;opacity:.7;box-shadow:0 2px 8px #0003,inset 0 0 0 2px #fff6}:where(.ve-timeline .ve-segment__content[data-v-4e3078d5]){--at-apply: flex flex-col gap-1 px-2.5 py-1.5}:where(.ve-timeline .ve-segment__title[data-v-4e3078d5]){--at-apply: text-[12px] font-bold capitalize}:where(.ve-timeline .ve-segment__time[data-v-4e3078d5]){--at-apply: text-[11px] text-[rgba(15,23,42,.8)] font-mono}:where(.ve-timeline .ve-segment--placeholder[data-v-4e3078d5]){--at-apply: absolute pointer-events-none rounded-[4px] z-24;background:#2222261f;border:2px solid rgba(34,34,38,.6)}:where(.ve-timeline .ve-segment--placeholder-inner[data-v-4e3078d5]){--at-apply: absolute inset-0 rounded-[2px];opacity:.2}:where(.ve-timeline .ve-snap-guide[data-v-4e3078d5]){--at-apply: absolute pointer-events-none z-20;width:1px;background:var(--ve-primary);opacity:.7}:where(.ve-timeline .ve-new-track-line[data-v-4e3078d5]){--at-apply: absolute pointer-events-none z-25;height:1px;background:var(--ve-primary);opacity:.8}.waveform-canvas-strip[data-v-7cbe9830]{position:relative;width:100%;height:100%;overflow:hidden}.waveform-canvas-strip__canvas[data-v-7cbe9830]{position:absolute;inset:0;width:100%;height:100%;display:block}:where(.audio-segment[data-v-47cbc534]){--at-apply: relative flex items-center w-full h-full overflow-hidden rounded-4px;background-color:#efefef}:where(.audio-segment .audio-segment__waveform[data-v-47cbc534]){--at-apply: absolute top-0 bottom-0 left-0 flex items-center justify-start gap-[1px];overflow:hidden}:where(.audio-segment .audio-segment__waveform-canvas[data-v-47cbc534]){--at-apply: w-full h-full}:where(.audio-segment .audio-segment__placeholder[data-v-47cbc534]){--at-apply: flex items-center justify-center w-full h-full text-xs;color:#2b2b2b;opacity:.6}:where(.audio-segment .waveform-pattern[data-v-47cbc534]){width:100%;height:100%;background-image:linear-gradient(90deg,transparent 45%,#2B2B2B 45%,#2B2B2B 55%,transparent 55%);background-size:4px 100%;background-position:0 center;-webkit-mask-image:linear-gradient(to bottom,transparent 10%,black 40%,black 60%,transparent 90%);mask-image:linear-gradient(to bottom,transparent 10%,black 40%,black 60%,transparent 90%);opacity:.4}:where(.audio-segment .audio-segment__badge[data-v-47cbc534]){--at-apply: absolute top-1.5 left-2 px-1.5 py-0.5 text-[11px] rounded-4px pointer-events-none;background:#00000040;color:#fff;transform-origin:left top;transform:scale(.9)}:where(.frames-segment[data-v-fed75c7c]){--at-apply: relative flex items-stretch w-full h-full overflow-hidden rounded-4px}:where(.frames-segment .frames-segment__image[data-v-fed75c7c]){--at-apply: flex w-full h-full overflow-hidden rounded-4px;background-color:color-mix(in srgb,var(--ve-segment-accent, #222226) 15%,transparent)}:where(.frames-segment .frames-segment__image-item[data-v-fed75c7c]){--at-apply: flex-shrink-0 w-14 h-full bg-cover bg-left-center bg-no-repeat}:where(.frames-segment .frames-segment__video[data-v-fed75c7c]){--at-apply: flex items-center w-full h-full overflow-hidden;background:#f1f5f9}:where(.frames-segment .frames-segment__video-wrap[data-v-fed75c7c]){--at-apply: relative w-full h-full}:where(.frames-segment .frames-segment__thumb[data-v-fed75c7c]){--at-apply: flex-1 min-w-14;aspect-ratio:1 / 1;background-size:cover;background-position:center}:where(.frames-segment .frames-segment__waveform-strip[data-v-fed75c7c]){--at-apply: absolute left-0 right-0 bottom-0 flex items-center w-full px-1 overflow-hidden;height:16px;background:#e5e5e8;z-index:2}:where(.frames-segment .frames-segment__waveform[data-v-fed75c7c]){--at-apply: absolute top-0 bottom-0 left-0 flex items-center gap-[1px];overflow:hidden}:where(.frames-segment .frames-segment__waveform-canvas[data-v-fed75c7c]){--at-apply: w-full h-full}:where(.frames-segment .frames-segment__waveform-pattern[data-v-fed75c7c]){width:100%;height:100%;background-image:linear-gradient(90deg,transparent 45%,#52525b 45%,#52525b 55%,transparent 55%);background-size:4px 100%;background-position:0 center;-webkit-mask-image:linear-gradient(to bottom,transparent 10%,black 35%,black 65%,transparent 90%);mask-image:linear-gradient(to bottom,transparent 10%,black 35%,black 65%,transparent 90%);opacity:.4}:where(.frames-segment .frames-segment__placeholder[data-v-fed75c7c]){--at-apply: flex items-center justify-center w-full h-full text-[12px] rounded-4px whitespace-nowrap;color:#0f172abf;background:#0000000d}:where(.frames-segment .frames-segment__placeholder--video[data-v-fed75c7c]){border-radius:0}:where(.frames-segment .frames-segment__badge[data-v-fed75c7c]){--at-apply: absolute top-1.5 left-2 px-1.5 py-0.5 text-[11px] rounded-4px pointer-events-none;background:#00000040;color:#fff;transform-origin:left top;transform:scale(.9)}:where(.segment-base[data-v-d386af72]){--at-apply: relative flex items-center w-full h-full p-1.5 rounded-4px;background:#ffffff52;box-shadow:inset 0 0 0 1px #fff3}:where(.segment-base .segment-base__content[data-v-d386af72]){--at-apply: flex items-center justify-start gap-1.5 w-full}:where(.segment-base .segment-base__pill[data-v-d386af72]){--at-apply: inline-flex items-center gap-1.5 px-2.5 py-1.5 rounded-full text-[11px] font-semibold whitespace-nowrap;box-shadow:inset 0 0 0 1px #ffffff4d}:where(.segment-base .segment-base__pill--primary[data-v-d386af72]){color:var(--ve-segment-accent, #222226);background:#22222614}:where(.segment-base .segment-base__pill--muted[data-v-d386af72]){color:#0f172ab3;background:#2222260d}:where(.segment-base .segment-base__badge[data-v-d386af72]){--at-apply: absolute top-1.5 left-2 px-1.5 py-0.5 text-[11px] rounded-4px pointer-events-none;background:#00000040;color:#fff;transform-origin:left top;transform:scale(.9)}:where(.ve-editor-segment[data-v-1106a431]){--at-apply: relative flex flex-col gap-1.5 w-full h-full text-[#0f172a]}:where(.ve-editor-segment .ve-editor-segment__preview[data-v-1106a431]){--at-apply: flex items-stretch w-full min-h-14}
|
|
1
|
+
:where(.ve-playhead[data-v-8e647d40]){--ve-playhead-nudge: 0px;--at-apply: absolute z-20 pointer-events-auto cursor-ew-resize h-full;transform:translate(calc(-50% - var(--ve-playhead-nudge)))}:where(.ve-playhead__icon[data-v-8e647d40]){--at-apply: text-[#222226] pointer-events-none relative z-2}:where(.ve-playhead__line[data-v-8e647d40]){--at-apply: bg-[#222226] bottom-0 w-px translate-x--50% left-50% top-2px absolute pointer-events-none}:where(.ve-ruler[data-v-30f91636]){--ve-ruler-major: 8px;--ve-ruler-minor: 4px;--at-apply: sticky top-0 left-0 right-0 bg-white z-3 border-b border-[#e5e7eb] overflow-hidden}:where(.ve-ruler .ve-ruler__ticks[data-v-30f91636]){--at-apply: relative h-full w-full box-border}:where(.ve-ruler .ve-ruler__tick[data-v-30f91636]){--at-apply: absolute top-0 h-full text-center text-[#6b7280] text-[11px]}:where(.ve-ruler .ve-ruler__line[data-v-30f91636]){--at-apply: h-[var(--ve-ruler-minor)] w-px mx-auto bg-[#cbd5e1]}:where(.ve-ruler .ve-ruler__tick--major .ve-ruler__line[data-v-30f91636]){--at-apply: relative h-[var(--ve-ruler-major)] bg-[#94a3b8]}:where(.ve-ruler .ve-ruler__label[data-v-30f91636]){--at-apply: absolute font-mono text-right whitespace-nowrap left-4px bottom-0;transform:translateY(-50%)}:where(.ve-toolbar[data-v-85ddeb0f]){--at-apply: flex items-center justify-between gap-2 px-3 py-2.5 border-b border-[#eceff3]}:where(.ve-toolbar .ve-toolbar__group[data-v-85ddeb0f]){--at-apply: inline-flex items-center gap-2}:where(.ve-toolbar .ve-zoom[data-v-85ddeb0f]){--at-apply: min-w-14 text-center text-xs text-[#222226] px-2 py-1 border border-[#e5e7eb] rounded-lg bg-white}:where(.ve-toolbar .ve-btn[data-v-85ddeb0f]){--at-apply: border border-[#d1d5db] bg-white text-[#222226] rounded-lg h-7 w-7 cursor-pointer transition-all duration-150}:where(.ve-toolbar .ve-btn[data-v-85ddeb0f]:disabled){--at-apply: cursor-not-allowed opacity-45}:where(.ve-toolbar .ve-btn[data-v-85ddeb0f]:not(:disabled):hover){--at-apply: border-[#222226] text-[#222226]}:where(.ve-toolbar .ve-toolbar__time[data-v-85ddeb0f]){--at-apply: inline-flex items-center gap-1.5 text-xs font-mono text-[#222226] ml-auto}:where(.ve-toolbar .ve-toolbar__time-divider[data-v-85ddeb0f]){--at-apply: text-[#9ca3af]}.ve-timeline__tracks[data-v-902b9363]{position:relative;z-index:1;padding-bottom:.75rem;display:flex;flex-direction:column;gap:2px;flex:1}.ve-track[data-v-902b9363]{position:relative;background-color:#f8fafc;overflow:hidden}.ve-track--main[data-v-902b9363]{background-color:#f4f4f6}.ve-track--has-selection[data-v-902b9363]{background-color:#f2f2fa!important;box-shadow:inset 0 1px #e4e4fc,inset 0 -1px #e4e4fc}.ve-track__body[data-v-902b9363]{position:relative;height:100%}.ve-segment[data-v-902b9363]{position:absolute;top:0;bottom:0;border-radius:4px;color:#0f172a;cursor:pointer;display:flex;align-items:center;overflow:hidden;transition-duration:.15s}.ve-segment__content[data-v-902b9363]{display:flex;flex-direction:column;gap:.25rem;padding:.375rem .625rem}.ve-segment__title[data-v-902b9363]{font-size:12px;font-weight:700;text-transform:capitalize}.ve-segment__time[data-v-902b9363]{font-size:11px;color:#0f172acc;font-family:monospace}.ve-segment__selection[data-v-902b9363]{position:absolute;inset:0;pointer-events:none;z-index:10}.ve-segment__handle[data-v-902b9363]{position:absolute;height:100%;width:4px;background-color:#222226;cursor:ew-resize;pointer-events:auto;border:2px solid #222226}.ve-segment__handle--left[data-v-902b9363]{left:0;top:0;border-radius:.25rem 0 0 .25rem}.ve-segment__handle--right[data-v-902b9363]{right:0;top:0;border-radius:0 .25rem .25rem 0}.ve-segment__handle-dots[data-v-902b9363]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;gap:.125rem;justify-content:center}.ve-segment__handle-dot[data-v-902b9363]{border-radius:9999px;background-color:#fff;width:1px;height:1px}.ve-track__add-button[data-v-902b9363]{position:absolute;top:50%;transform:translateY(-50%);margin-left:.5rem;width:2.5rem;height:2.5rem;border-radius:.5rem;display:flex;align-items:center;justify-content:center;color:#222226;background-color:#f2f2fa;cursor:pointer;transition:background-color .2s;border:1px solid #222226}.ve-track__add-button[data-v-902b9363]:hover{background-color:#e5e5e5}.ve-track__gap-add[data-v-902b9363]{position:absolute;top:0;bottom:0;height:100%;display:flex;align-items:center;justify-content:center;cursor:pointer}.ve-track__gap-add[data-v-902b9363]:hover{background-color:#efefef}.ve-track__gap-add-icon[data-v-902b9363]{display:none;color:#fff;background-color:#222226;padding:4px;border-radius:4px}.ve-track__gap-add:hover .ve-track__gap-add-icon[data-v-902b9363]{display:block}:where(.ve-timeline[data-v-4e3078d5]){--ve-primary: #222226;--at-apply: flex flex-col w-full max-w-full min-w-0 rounded-10px h-full}:where(.ve-timeline .ve-timeline__viewport[data-v-4e3078d5]){--at-apply: relative overflow-auto w-full flex-1 bg-white}:where(.ve-timeline .ve-timeline__content[data-v-4e3078d5]){--at-apply: min-h-full min-w-full}:where(.ve-timeline .ve-segment--dragging[data-v-4e3078d5]){--at-apply: absolute z-50 rounded-[4px] text-[#0f172a] cursor-pointer flex items-center overflow-hidden pointer-events-none;box-shadow:0 4px 16px #0000004d,inset 0 0 0 2px #ffffff80}:where(.ve-timeline .ve-segment--preview[data-v-4e3078d5]){--at-apply: absolute z-45 rounded-[4px] pointer-events-none;opacity:.7;box-shadow:0 2px 8px #0003,inset 0 0 0 2px #fff6}:where(.ve-timeline .ve-segment__content[data-v-4e3078d5]){--at-apply: flex flex-col gap-1 px-2.5 py-1.5}:where(.ve-timeline .ve-segment__title[data-v-4e3078d5]){--at-apply: text-[12px] font-bold capitalize}:where(.ve-timeline .ve-segment__time[data-v-4e3078d5]){--at-apply: text-[11px] text-[rgba(15,23,42,.8)] font-mono}:where(.ve-timeline .ve-segment--placeholder[data-v-4e3078d5]){--at-apply: absolute pointer-events-none rounded-[4px] z-24;background:#2222261f;border:2px solid rgba(34,34,38,.6)}:where(.ve-timeline .ve-segment--placeholder-inner[data-v-4e3078d5]){--at-apply: absolute inset-0 rounded-[2px];opacity:.2}:where(.ve-timeline .ve-snap-guide[data-v-4e3078d5]){--at-apply: absolute pointer-events-none z-20;width:1px;background:var(--ve-primary);opacity:.7}:where(.ve-timeline .ve-new-track-line[data-v-4e3078d5]){--at-apply: absolute pointer-events-none z-25;height:1px;background:var(--ve-primary);opacity:.8}.waveform-canvas-strip[data-v-7cbe9830]{position:relative;width:100%;height:100%;overflow:hidden}.waveform-canvas-strip__canvas[data-v-7cbe9830]{position:absolute;inset:0;width:100%;height:100%;display:block}:where(.audio-segment[data-v-47cbc534]){--at-apply: relative flex items-center w-full h-full overflow-hidden rounded-4px;background-color:#efefef}:where(.audio-segment .audio-segment__waveform[data-v-47cbc534]){--at-apply: absolute top-0 bottom-0 left-0 flex items-center justify-start gap-[1px];overflow:hidden}:where(.audio-segment .audio-segment__waveform-canvas[data-v-47cbc534]){--at-apply: w-full h-full}:where(.audio-segment .audio-segment__placeholder[data-v-47cbc534]){--at-apply: flex items-center justify-center w-full h-full text-xs;color:#2b2b2b;opacity:.6}:where(.audio-segment .waveform-pattern[data-v-47cbc534]){width:100%;height:100%;background-image:linear-gradient(90deg,transparent 45%,#2B2B2B 45%,#2B2B2B 55%,transparent 55%);background-size:4px 100%;background-position:0 center;-webkit-mask-image:linear-gradient(to bottom,transparent 10%,black 40%,black 60%,transparent 90%);mask-image:linear-gradient(to bottom,transparent 10%,black 40%,black 60%,transparent 90%);opacity:.4}:where(.audio-segment .audio-segment__badge[data-v-47cbc534]){--at-apply: absolute top-1.5 left-2 px-1.5 py-0.5 text-[11px] rounded-4px pointer-events-none;background:#00000040;color:#fff;transform-origin:left top;transform:scale(.9)}:where(.frames-segment[data-v-fed75c7c]){--at-apply: relative flex items-stretch w-full h-full overflow-hidden rounded-4px}:where(.frames-segment .frames-segment__image[data-v-fed75c7c]){--at-apply: flex w-full h-full overflow-hidden rounded-4px;background-color:color-mix(in srgb,var(--ve-segment-accent, #222226) 15%,transparent)}:where(.frames-segment .frames-segment__image-item[data-v-fed75c7c]){--at-apply: flex-shrink-0 w-14 h-full bg-cover bg-left-center bg-no-repeat}:where(.frames-segment .frames-segment__video[data-v-fed75c7c]){--at-apply: flex items-center w-full h-full overflow-hidden;background:#f1f5f9}:where(.frames-segment .frames-segment__video-wrap[data-v-fed75c7c]){--at-apply: relative w-full h-full}:where(.frames-segment .frames-segment__thumb[data-v-fed75c7c]){--at-apply: flex-1 min-w-14;aspect-ratio:1 / 1;background-size:cover;background-position:center}:where(.frames-segment .frames-segment__waveform-strip[data-v-fed75c7c]){--at-apply: absolute left-0 right-0 bottom-0 flex items-center w-full px-1 overflow-hidden;height:16px;background:#e5e5e8;z-index:2}:where(.frames-segment .frames-segment__waveform[data-v-fed75c7c]){--at-apply: absolute top-0 bottom-0 left-0 flex items-center gap-[1px];overflow:hidden}:where(.frames-segment .frames-segment__waveform-canvas[data-v-fed75c7c]){--at-apply: w-full h-full}:where(.frames-segment .frames-segment__waveform-pattern[data-v-fed75c7c]){width:100%;height:100%;background-image:linear-gradient(90deg,transparent 45%,#52525b 45%,#52525b 55%,transparent 55%);background-size:4px 100%;background-position:0 center;-webkit-mask-image:linear-gradient(to bottom,transparent 10%,black 35%,black 65%,transparent 90%);mask-image:linear-gradient(to bottom,transparent 10%,black 35%,black 65%,transparent 90%);opacity:.4}:where(.frames-segment .frames-segment__placeholder[data-v-fed75c7c]){--at-apply: flex items-center justify-center w-full h-full text-[12px] rounded-4px whitespace-nowrap;color:#0f172abf;background:#0000000d}:where(.frames-segment .frames-segment__placeholder--video[data-v-fed75c7c]){border-radius:0}:where(.frames-segment .frames-segment__badge[data-v-fed75c7c]){--at-apply: absolute top-1.5 left-2 px-1.5 py-0.5 text-[11px] rounded-4px pointer-events-none;background:#00000040;color:#fff;transform-origin:left top;transform:scale(.9)}:where(.segment-base[data-v-d386af72]){--at-apply: relative flex items-center w-full h-full p-1.5 rounded-4px;background:#ffffff52;box-shadow:inset 0 0 0 1px #fff3}:where(.segment-base .segment-base__content[data-v-d386af72]){--at-apply: flex items-center justify-start gap-1.5 w-full}:where(.segment-base .segment-base__pill[data-v-d386af72]){--at-apply: inline-flex items-center gap-1.5 px-2.5 py-1.5 rounded-full text-[11px] font-semibold whitespace-nowrap;box-shadow:inset 0 0 0 1px #ffffff4d}:where(.segment-base .segment-base__pill--primary[data-v-d386af72]){color:var(--ve-segment-accent, #222226);background:#22222614}:where(.segment-base .segment-base__pill--muted[data-v-d386af72]){color:#0f172ab3;background:#2222260d}:where(.segment-base .segment-base__badge[data-v-d386af72]){--at-apply: absolute top-1.5 left-2 px-1.5 py-0.5 text-[11px] rounded-4px pointer-events-none;background:#00000040;color:#fff;transform-origin:left top;transform:scale(.9)}:where(.ve-editor-segment[data-v-14600e74]){--at-apply: relative flex flex-col gap-1.5 w-full h-full text-[#0f172a]}:where(.ve-editor-segment .ve-editor-segment__preview[data-v-14600e74]){--at-apply: flex items-stretch w-full min-h-14}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@video-editor/ui",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.1-beta.
|
|
4
|
+
"version": "0.0.1-beta.29",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"vue": "^3.5.26"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@video-editor/
|
|
24
|
-
"@video-editor/
|
|
23
|
+
"@video-editor/shared": "0.0.1-beta.29",
|
|
24
|
+
"@video-editor/protocol": "0.0.1-beta.29"
|
|
25
25
|
},
|
|
26
26
|
"scripts": {
|
|
27
27
|
"build": "vite build",
|