@shotstack/shotstack-studio 2.22.0 → 2.22.2
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/internal.es.js +201 -155
- package/dist/internal.umd.js +12 -10
- package/dist/shotstack-studio.es.js +336 -290
- package/dist/shotstack-studio.umd.js +68 -66
- package/package.json +2 -2
|
@@ -11,7 +11,7 @@ import "pixi.js/text-html";
|
|
|
11
11
|
import "pixi.js/sprite-tiling";
|
|
12
12
|
import "pixi.js/filters";
|
|
13
13
|
import "pixi.js/mesh";
|
|
14
|
-
const o8 = "2.22.
|
|
14
|
+
const o8 = "2.22.1", l8 = {
|
|
15
15
|
version: o8
|
|
16
16
|
};
|
|
17
17
|
function pv(e, t, i) {
|
|
@@ -237,7 +237,7 @@ class na {
|
|
|
237
237
|
return this.normaliseAdjacentBoundaries(n), this.validateKeyframes(n), this.insertFillerKeyframes(n, i, r);
|
|
238
238
|
}
|
|
239
239
|
createNormalizedKeyframes(t) {
|
|
240
|
-
return t.filter((i) => typeof i.start == "number" && typeof i.length == "number").
|
|
240
|
+
return t.filter((i) => typeof i.start == "number" && typeof i.length == "number").sort((i, r) => i.start - r.start).map((i) => ({
|
|
241
241
|
start: i.start,
|
|
242
242
|
length: i.length,
|
|
243
243
|
from: typeof i.from == "number" ? i.from : 0,
|
|
@@ -591,7 +591,7 @@ class h8 extends i8 {
|
|
|
591
591
|
this.uniformGroup.uniforms.uRevealFromRight = t ? 1 : 0;
|
|
592
592
|
}
|
|
593
593
|
}
|
|
594
|
-
const
|
|
594
|
+
const Z = {
|
|
595
595
|
// Playback
|
|
596
596
|
PlaybackPlay: "playback:play",
|
|
597
597
|
PlaybackPause: "playback:pause",
|
|
@@ -873,6 +873,11 @@ class Mi extends b8 {
|
|
|
873
873
|
clipId = null;
|
|
874
874
|
/** True when the player's asset needs external resolution (e.g. alias caption awaiting transcription). */
|
|
875
875
|
needsResolution = !1;
|
|
876
|
+
/**
|
|
877
|
+
* Why the asset couldn't be shown, or null. A failing player draws a placeholder and still
|
|
878
|
+
* resolves load() so the rest of the edit keeps loading; this is how the failure is reported.
|
|
879
|
+
*/
|
|
880
|
+
loadError = null;
|
|
876
881
|
edit;
|
|
877
882
|
clipConfiguration;
|
|
878
883
|
resolvedTiming;
|
|
@@ -922,8 +927,11 @@ class Mi extends b8 {
|
|
|
922
927
|
const p = [...f.in.brightnessKeyframes, ...f.out.brightnessKeyframes];
|
|
923
928
|
p.length && (this.wipeBrightnessBuilder = new na(p, t), this.wipeInFromRight = f.in.wipeFromRight, this.wipeOutFromRight = f.out.wipeFromRight, this.wipeOutStart = f.out.brightnessKeyframes[0]?.start ?? Number.POSITIVE_INFINITY);
|
|
924
929
|
}
|
|
930
|
+
recordLoadError(t) {
|
|
931
|
+
this.loadError = t instanceof Error ? t.message : String(t);
|
|
932
|
+
}
|
|
925
933
|
async load() {
|
|
926
|
-
this.lumaWrapper?.destroyed && (this.lumaWrapper = new X.Container(), this.getContainer().addChild(this.lumaWrapper)), this.contentContainer?.destroyed && (this.contentContainer = new X.Container(), this.lumaWrapper.addChild(this.contentContainer)), this.getContainer().sortableChildren = !0, this.getContainer().cursor = "pointer", this.getContainer().eventMode = "static", this.getContainer().on?.("pointerdown", this.onPointerDown.bind(this));
|
|
934
|
+
this.loadError = null, this.lumaWrapper?.destroyed && (this.lumaWrapper = new X.Container(), this.getContainer().addChild(this.lumaWrapper)), this.contentContainer?.destroyed && (this.contentContainer = new X.Container(), this.lumaWrapper.addChild(this.contentContainer)), this.getContainer().sortableChildren = !0, this.getContainer().cursor = "pointer", this.getContainer().eventMode = "static", this.getContainer().on?.("pointerdown", this.onPointerDown.bind(this));
|
|
927
935
|
}
|
|
928
936
|
update(t, i) {
|
|
929
937
|
this.applyPlayheadState();
|
|
@@ -5497,7 +5505,7 @@ const Z9 = /* @__PURE__ */ tt("ZodObject", (e, t) => {
|
|
|
5497
5505
|
ah(), s7.init(e, t), ri.init(e, t), e._zod.processJSONSchema = (i, r, n) => UF(e, i, r, n), rD(e, "shape", (i) => i._zod.def.shape, !1);
|
|
5498
5506
|
}, {
|
|
5499
5507
|
keyof() {
|
|
5500
|
-
return
|
|
5508
|
+
return j(Object.keys(this._zod.def.shape));
|
|
5501
5509
|
},
|
|
5502
5510
|
catchall(e) {
|
|
5503
5511
|
return this.clone(Ar(this._zod.def, { catchall: e }));
|
|
@@ -5625,7 +5633,7 @@ const Sm = /* @__PURE__ */ tt("ZodEnum", (e, t) => {
|
|
|
5625
5633
|
});
|
|
5626
5634
|
};
|
|
5627
5635
|
});
|
|
5628
|
-
function
|
|
5636
|
+
function j(e, t) {
|
|
5629
5637
|
const i = Array.isArray(e) ? Object.fromEntries(e.map((r) => [r, r])) : e;
|
|
5630
5638
|
return new Sm({
|
|
5631
5639
|
type: "enum",
|
|
@@ -5830,7 +5838,7 @@ const Kr = {
|
|
|
5830
5838
|
return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
|
|
5831
5839
|
}, N()), b().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
5832
5840
|
}).strict(), hB = A({
|
|
5833
|
-
type:
|
|
5841
|
+
type: j(["caption"]),
|
|
5834
5842
|
src: b().min(1).regex(/\S/),
|
|
5835
5843
|
font: m(dB),
|
|
5836
5844
|
background: m(cB),
|
|
@@ -5912,7 +5920,7 @@ const Kr = {
|
|
|
5912
5920
|
provider: Pt("google-drive"),
|
|
5913
5921
|
options: m(xB)
|
|
5914
5922
|
}).strict(), kB = A({
|
|
5915
|
-
playbackPolicy: m(jt(
|
|
5923
|
+
playbackPolicy: m(jt(j(["public", "signed"]))),
|
|
5916
5924
|
passthrough: m(b().max(255))
|
|
5917
5925
|
}).strict(), SB = A({
|
|
5918
5926
|
provider: Pt("mux"),
|
|
@@ -5931,7 +5939,7 @@ const Kr = {
|
|
|
5931
5939
|
exclude: m(Yt())
|
|
5932
5940
|
}).strict(), TB = A({
|
|
5933
5941
|
title: m(b().max(150)),
|
|
5934
|
-
privacyLevel: m(
|
|
5942
|
+
privacyLevel: m(j([
|
|
5935
5943
|
"public",
|
|
5936
5944
|
"friends",
|
|
5937
5945
|
"private"
|
|
@@ -5943,19 +5951,19 @@ const Kr = {
|
|
|
5943
5951
|
provider: Pt("tiktok"),
|
|
5944
5952
|
options: m(TB)
|
|
5945
5953
|
}).strict(), DB = A({
|
|
5946
|
-
view: m(
|
|
5954
|
+
view: m(j([
|
|
5947
5955
|
"anybody",
|
|
5948
5956
|
"nobody",
|
|
5949
5957
|
"contacts",
|
|
5950
5958
|
"password",
|
|
5951
5959
|
"unlisted"
|
|
5952
5960
|
])),
|
|
5953
|
-
embed: m(
|
|
5961
|
+
embed: m(j([
|
|
5954
5962
|
"public",
|
|
5955
5963
|
"private",
|
|
5956
5964
|
"whitelist"
|
|
5957
5965
|
])),
|
|
5958
|
-
comments: m(
|
|
5966
|
+
comments: m(j([
|
|
5959
5967
|
"anybody",
|
|
5960
5968
|
"nobody",
|
|
5961
5969
|
"contacts"
|
|
@@ -5986,12 +5994,12 @@ const Kr = {
|
|
|
5986
5994
|
}).strict(), NB = A({
|
|
5987
5995
|
src: b()
|
|
5988
5996
|
}).strict(), K3 = A({
|
|
5989
|
-
type:
|
|
5997
|
+
type: j(["html5"]),
|
|
5990
5998
|
html: b().max(1e6),
|
|
5991
5999
|
css: m(b().max(5e5)),
|
|
5992
6000
|
js: m(b().max(5e5))
|
|
5993
6001
|
}).strict(), MB = K3, zB = A({
|
|
5994
|
-
type:
|
|
6002
|
+
type: j(["html"]),
|
|
5995
6003
|
html: b(),
|
|
5996
6004
|
css: m(b()),
|
|
5997
6005
|
width: m(E([M((e) => {
|
|
@@ -6003,7 +6011,7 @@ const Kr = {
|
|
|
6003
6011
|
return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
|
|
6004
6012
|
}, N().int()), b().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
6005
6013
|
background: m(b()),
|
|
6006
|
-
position: m(
|
|
6014
|
+
position: m(j([
|
|
6007
6015
|
"top",
|
|
6008
6016
|
"topRight",
|
|
6009
6017
|
"right",
|
|
@@ -6015,7 +6023,7 @@ const Kr = {
|
|
|
6015
6023
|
"center"
|
|
6016
6024
|
]))
|
|
6017
6025
|
}).strict(), X3 = A({
|
|
6018
|
-
type:
|
|
6026
|
+
type: j(["image"]),
|
|
6019
6027
|
src: m(b().min(1).regex(/\S/)),
|
|
6020
6028
|
prompt: m(b().max(4e3)),
|
|
6021
6029
|
model: m(b()),
|
|
@@ -6029,10 +6037,10 @@ const Kr = {
|
|
|
6029
6037
|
path: ["src"]
|
|
6030
6038
|
});
|
|
6031
6039
|
}), OB = A({
|
|
6032
|
-
type:
|
|
6040
|
+
type: j(["image-to-video"]),
|
|
6033
6041
|
src: b().min(1),
|
|
6034
6042
|
prompt: m(b()),
|
|
6035
|
-
aspectRatio: m(
|
|
6043
|
+
aspectRatio: m(j([
|
|
6036
6044
|
"1:1",
|
|
6037
6045
|
"4:3",
|
|
6038
6046
|
"16:9",
|
|
@@ -6047,7 +6055,7 @@ const Kr = {
|
|
|
6047
6055
|
}, N().gte(0).lte(10)), b().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
6048
6056
|
crop: m(lh)
|
|
6049
6057
|
}).strict(), RB = A({
|
|
6050
|
-
preset:
|
|
6058
|
+
preset: j([
|
|
6051
6059
|
"conference",
|
|
6052
6060
|
"interview",
|
|
6053
6061
|
"lecture",
|
|
@@ -6099,9 +6107,9 @@ const GB = A({
|
|
|
6099
6107
|
}, N().gte(0).lte(10)), b().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
6100
6108
|
preservePitch: m(Yt())
|
|
6101
6109
|
}).strict(), HB = A({
|
|
6102
|
-
format: m(
|
|
6110
|
+
format: m(j(["srt", "vtt"]))
|
|
6103
6111
|
}).strict(), qB = A({
|
|
6104
|
-
type:
|
|
6112
|
+
type: j(["luma"]),
|
|
6105
6113
|
src: b().min(1).regex(/\S/),
|
|
6106
6114
|
trim: m(E([M((e) => {
|
|
6107
6115
|
if (!(e === "" || e === null || e === void 0))
|
|
@@ -6132,7 +6140,7 @@ const GB = A({
|
|
|
6132
6140
|
providerId: m(b()),
|
|
6133
6141
|
filename: m(b()),
|
|
6134
6142
|
url: m(b()),
|
|
6135
|
-
status:
|
|
6143
|
+
status: j([
|
|
6136
6144
|
"importing",
|
|
6137
6145
|
"ready",
|
|
6138
6146
|
"failed",
|
|
@@ -6152,7 +6160,7 @@ A({
|
|
|
6152
6160
|
}).strict();
|
|
6153
6161
|
A({
|
|
6154
6162
|
id: b(),
|
|
6155
|
-
status:
|
|
6163
|
+
status: j([
|
|
6156
6164
|
"queued",
|
|
6157
6165
|
"processing",
|
|
6158
6166
|
"done",
|
|
@@ -6211,13 +6219,13 @@ const iN = A({
|
|
|
6211
6219
|
if (!(e === "" || e === null || e === void 0))
|
|
6212
6220
|
return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
|
|
6213
6221
|
}, N().gte(1).lte(500)), b().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
6214
|
-
textDecoration: m(
|
|
6222
|
+
textDecoration: m(j([
|
|
6215
6223
|
"none",
|
|
6216
6224
|
"underline",
|
|
6217
6225
|
"line-through"
|
|
6218
6226
|
]))
|
|
6219
6227
|
}).strict(), rN = A({
|
|
6220
|
-
style:
|
|
6228
|
+
style: j([
|
|
6221
6229
|
"karaoke",
|
|
6222
6230
|
"highlight",
|
|
6223
6231
|
"pop",
|
|
@@ -6227,7 +6235,7 @@ const iN = A({
|
|
|
6227
6235
|
"typewriter",
|
|
6228
6236
|
"none"
|
|
6229
6237
|
]),
|
|
6230
|
-
direction: m(
|
|
6238
|
+
direction: m(j([
|
|
6231
6239
|
"left",
|
|
6232
6240
|
"right",
|
|
6233
6241
|
"up",
|
|
@@ -6240,7 +6248,7 @@ const iN = A({
|
|
|
6240
6248
|
return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
|
|
6241
6249
|
}, N().int().gte(1).lte(500)), b().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(24),
|
|
6242
6250
|
weight: m(ti()).default("400"),
|
|
6243
|
-
style: m(
|
|
6251
|
+
style: m(j(["normal", "italic"])),
|
|
6244
6252
|
color: m(E([b().regex(/^#[A-Fa-f0-9]{6}$/), b().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default("#ffffff"),
|
|
6245
6253
|
opacity: m(E([M((e) => {
|
|
6246
6254
|
if (!(e === "" || e === null || e === void 0))
|
|
@@ -6248,18 +6256,18 @@ const iN = A({
|
|
|
6248
6256
|
}, N().gte(0).lte(1)), b().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
|
|
6249
6257
|
background: m(E([b().regex(/^#[A-Fa-f0-9]{6}$/), b().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
6250
6258
|
}).strict(), qg = A({
|
|
6251
|
-
horizontal: m(
|
|
6259
|
+
horizontal: m(j([
|
|
6252
6260
|
"left",
|
|
6253
6261
|
"center",
|
|
6254
6262
|
"right"
|
|
6255
6263
|
])),
|
|
6256
|
-
vertical: m(
|
|
6264
|
+
vertical: m(j([
|
|
6257
6265
|
"top",
|
|
6258
6266
|
"middle",
|
|
6259
6267
|
"bottom"
|
|
6260
6268
|
]))
|
|
6261
6269
|
}).strict(), sN = qg, tC = A({
|
|
6262
|
-
preset:
|
|
6270
|
+
preset: j([
|
|
6263
6271
|
"fadeIn",
|
|
6264
6272
|
"slideIn",
|
|
6265
6273
|
"typewriter",
|
|
@@ -6271,8 +6279,8 @@ const iN = A({
|
|
|
6271
6279
|
if (!(e === "" || e === null || e === void 0))
|
|
6272
6280
|
return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
|
|
6273
6281
|
}, N().gte(0.1).lte(30)), b().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
6274
|
-
style: m(
|
|
6275
|
-
direction: m(
|
|
6282
|
+
style: m(j(["character", "word"])),
|
|
6283
|
+
direction: m(j([
|
|
6276
6284
|
"left",
|
|
6277
6285
|
"right",
|
|
6278
6286
|
"up",
|
|
@@ -6308,7 +6316,7 @@ const iN = A({
|
|
|
6308
6316
|
return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
|
|
6309
6317
|
}, N().gte(0)), b().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0)
|
|
6310
6318
|
}).strict(), iC = A({
|
|
6311
|
-
type: m(
|
|
6319
|
+
type: m(j(["linear", "radial"])),
|
|
6312
6320
|
angle: m(E([M((e) => {
|
|
6313
6321
|
if (!(e === "" || e === null || e === void 0))
|
|
6314
6322
|
return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
|
|
@@ -6329,7 +6337,7 @@ const iN = A({
|
|
|
6329
6337
|
if (!(e === "" || e === null || e === void 0))
|
|
6330
6338
|
return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
|
|
6331
6339
|
}, N().gte(0).lte(10)), b().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1.2),
|
|
6332
|
-
textTransform: m(
|
|
6340
|
+
textTransform: m(j([
|
|
6333
6341
|
"none",
|
|
6334
6342
|
"uppercase",
|
|
6335
6343
|
"lowercase",
|
|
@@ -6339,7 +6347,7 @@ const iN = A({
|
|
|
6339
6347
|
if (!(e === "" || e === null || e === void 0))
|
|
6340
6348
|
return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
|
|
6341
6349
|
}, N().gte(1).lte(500)), b().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
6342
|
-
textDecoration: m(
|
|
6350
|
+
textDecoration: m(j([
|
|
6343
6351
|
"none",
|
|
6344
6352
|
"underline",
|
|
6345
6353
|
"line-through"
|
|
@@ -6394,14 +6402,14 @@ const iN = A({
|
|
|
6394
6402
|
font: m(iN),
|
|
6395
6403
|
stroke: m(E([
|
|
6396
6404
|
cc,
|
|
6397
|
-
|
|
6405
|
+
j(["none"])
|
|
6398
6406
|
])),
|
|
6399
6407
|
shadow: m(E([
|
|
6400
6408
|
uh,
|
|
6401
|
-
|
|
6409
|
+
j(["none"])
|
|
6402
6410
|
]))
|
|
6403
6411
|
}).strict(), dN = nC, fN = A({
|
|
6404
|
-
type:
|
|
6412
|
+
type: j(["rich-caption"]),
|
|
6405
6413
|
src: b().min(1),
|
|
6406
6414
|
font: m(nN),
|
|
6407
6415
|
style: m(lN),
|
|
@@ -6426,7 +6434,7 @@ const iN = A({
|
|
|
6426
6434
|
return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
|
|
6427
6435
|
}, N().int().gte(1).lte(500)), b().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(24),
|
|
6428
6436
|
weight: m(ti()).default("400"),
|
|
6429
|
-
style: m(
|
|
6437
|
+
style: m(j(["normal", "italic"])),
|
|
6430
6438
|
color: m(E([b().regex(/^#[A-Fa-f0-9]{6}$/), b().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default("#000000"),
|
|
6431
6439
|
opacity: m(E([M((e) => {
|
|
6432
6440
|
if (!(e === "" || e === null || e === void 0))
|
|
@@ -6447,20 +6455,20 @@ const iN = A({
|
|
|
6447
6455
|
if (!(e === "" || e === null || e === void 0))
|
|
6448
6456
|
return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
|
|
6449
6457
|
}, N().gte(0).lte(10)), b().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1.2),
|
|
6450
|
-
textTransform: m(
|
|
6458
|
+
textTransform: m(j([
|
|
6451
6459
|
"none",
|
|
6452
6460
|
"uppercase",
|
|
6453
6461
|
"lowercase",
|
|
6454
6462
|
"capitalize"
|
|
6455
6463
|
])),
|
|
6456
|
-
textDecoration: m(
|
|
6464
|
+
textDecoration: m(j([
|
|
6457
6465
|
"none",
|
|
6458
6466
|
"underline",
|
|
6459
6467
|
"line-through"
|
|
6460
6468
|
])),
|
|
6461
6469
|
gradient: m(iC)
|
|
6462
6470
|
}).strict(), pN = aC, oC = A({
|
|
6463
|
-
type:
|
|
6471
|
+
type: j(["rich-text"]),
|
|
6464
6472
|
text: b().max(5e3),
|
|
6465
6473
|
font: m(sC),
|
|
6466
6474
|
style: m(aC),
|
|
@@ -6480,7 +6488,7 @@ const iN = A({
|
|
|
6480
6488
|
}).strict(), mN = oC, gN = A({
|
|
6481
6489
|
id: m(b()),
|
|
6482
6490
|
owner: m(b()),
|
|
6483
|
-
status: m(
|
|
6491
|
+
status: m(j(["queued", "failed"])),
|
|
6484
6492
|
created: m(b())
|
|
6485
6493
|
}).strict(), yN = A({
|
|
6486
6494
|
type: m(b()),
|
|
@@ -6494,8 +6502,8 @@ const bN = A({
|
|
|
6494
6502
|
id: b(),
|
|
6495
6503
|
destinations: jt(Hg)
|
|
6496
6504
|
}).strict(), vN = A({
|
|
6497
|
-
type:
|
|
6498
|
-
shape:
|
|
6505
|
+
type: j(["shape"]),
|
|
6506
|
+
shape: j([
|
|
6499
6507
|
"rectangle",
|
|
6500
6508
|
"circle",
|
|
6501
6509
|
"line"
|
|
@@ -6562,7 +6570,7 @@ const bN = A({
|
|
|
6562
6570
|
return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
|
|
6563
6571
|
}, N().int().gte(1).lte(4096)), b().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
6564
6572
|
}).strict(), uC = A({
|
|
6565
|
-
format: m(
|
|
6573
|
+
format: m(j([
|
|
6566
6574
|
"mp4",
|
|
6567
6575
|
"webm",
|
|
6568
6576
|
"mov",
|
|
@@ -6580,12 +6588,12 @@ const bN = A({
|
|
|
6580
6588
|
"tif"
|
|
6581
6589
|
])),
|
|
6582
6590
|
size: m(lC),
|
|
6583
|
-
fit: m(
|
|
6591
|
+
fit: m(j([
|
|
6584
6592
|
"cover",
|
|
6585
6593
|
"contain",
|
|
6586
6594
|
"crop"
|
|
6587
6595
|
])),
|
|
6588
|
-
resolution: m(
|
|
6596
|
+
resolution: m(j([
|
|
6589
6597
|
"preview",
|
|
6590
6598
|
"mobile",
|
|
6591
6599
|
"sd",
|
|
@@ -6623,7 +6631,7 @@ const bN = A({
|
|
|
6623
6631
|
transcription: m(HB)
|
|
6624
6632
|
}).strict(), xN = A({
|
|
6625
6633
|
id: b(),
|
|
6626
|
-
status: m(
|
|
6634
|
+
status: m(j([
|
|
6627
6635
|
"queued",
|
|
6628
6636
|
"importing",
|
|
6629
6637
|
"ready",
|
|
@@ -6660,7 +6668,7 @@ const bN = A({
|
|
|
6660
6668
|
owner: b(),
|
|
6661
6669
|
input: m(b()),
|
|
6662
6670
|
source: m(b()),
|
|
6663
|
-
status: m(
|
|
6671
|
+
status: m(j([
|
|
6664
6672
|
"queued",
|
|
6665
6673
|
"importing",
|
|
6666
6674
|
"ready",
|
|
@@ -6705,7 +6713,7 @@ const SN = A({
|
|
|
6705
6713
|
callback: m(b())
|
|
6706
6714
|
}).strict(), _N = A({
|
|
6707
6715
|
src: b().min(1).regex(/\S/),
|
|
6708
|
-
effect: m(
|
|
6716
|
+
effect: m(j([
|
|
6709
6717
|
"fadeIn",
|
|
6710
6718
|
"fadeOut",
|
|
6711
6719
|
"fadeInFadeOut"
|
|
@@ -6715,24 +6723,24 @@ const SN = A({
|
|
|
6715
6723
|
return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
|
|
6716
6724
|
}, N()), b().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
6717
6725
|
}).strict(), dC = A({
|
|
6718
|
-
type:
|
|
6726
|
+
type: j(["svg"]),
|
|
6719
6727
|
src: b().min(1).max(5e5)
|
|
6720
6728
|
}).strict(), EN = dC, AN = A({
|
|
6721
6729
|
id: b(),
|
|
6722
6730
|
merge: m(jt(J3))
|
|
6723
6731
|
}).strict(), TN = A({
|
|
6724
|
-
horizontal: m(
|
|
6732
|
+
horizontal: m(j([
|
|
6725
6733
|
"left",
|
|
6726
6734
|
"center",
|
|
6727
6735
|
"right"
|
|
6728
6736
|
])),
|
|
6729
|
-
vertical: m(
|
|
6737
|
+
vertical: m(j([
|
|
6730
6738
|
"top",
|
|
6731
6739
|
"center",
|
|
6732
6740
|
"bottom"
|
|
6733
6741
|
]))
|
|
6734
6742
|
}).strict(), IN = A({
|
|
6735
|
-
preset:
|
|
6743
|
+
preset: j(["typewriter"]),
|
|
6736
6744
|
duration: m(E([M((e) => {
|
|
6737
6745
|
if (!(e === "" || e === null || e === void 0))
|
|
6738
6746
|
return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
|
|
@@ -6778,7 +6786,7 @@ const SN = A({
|
|
|
6778
6786
|
}, N().gte(0).lte(10)), b().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
6779
6787
|
color: m(E([b().regex(/^#[A-Fa-f0-9]{6}$/), b().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
6780
6788
|
}).strict(), BN = A({
|
|
6781
|
-
type:
|
|
6789
|
+
type: j(["text"]),
|
|
6782
6790
|
text: b(),
|
|
6783
6791
|
width: m(E([M((e) => {
|
|
6784
6792
|
if (!(e === "" || e === null || e === void 0))
|
|
@@ -6801,7 +6809,7 @@ const SN = A({
|
|
|
6801
6809
|
path: ["background", "wrap"]
|
|
6802
6810
|
});
|
|
6803
6811
|
}), NN = A({
|
|
6804
|
-
type:
|
|
6812
|
+
type: j(["text-to-image"]),
|
|
6805
6813
|
prompt: b(),
|
|
6806
6814
|
width: m(E([M((e) => {
|
|
6807
6815
|
if (!(e === "" || e === null || e === void 0))
|
|
@@ -6822,7 +6830,7 @@ const SN = A({
|
|
|
6822
6830
|
return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
|
|
6823
6831
|
}, N().gte(0).lte(1)), b().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
6824
6832
|
}).strict(), zN = A({
|
|
6825
|
-
format:
|
|
6833
|
+
format: j([
|
|
6826
6834
|
"mp4",
|
|
6827
6835
|
"gif",
|
|
6828
6836
|
"mp3",
|
|
@@ -6830,7 +6838,7 @@ const SN = A({
|
|
|
6830
6838
|
"png",
|
|
6831
6839
|
"bmp"
|
|
6832
6840
|
]),
|
|
6833
|
-
resolution: m(
|
|
6841
|
+
resolution: m(j([
|
|
6834
6842
|
"preview",
|
|
6835
6843
|
"mobile",
|
|
6836
6844
|
"sd",
|
|
@@ -6838,7 +6846,7 @@ const SN = A({
|
|
|
6838
6846
|
"1080",
|
|
6839
6847
|
"4k"
|
|
6840
6848
|
])),
|
|
6841
|
-
aspectRatio: m(
|
|
6849
|
+
aspectRatio: m(j([
|
|
6842
6850
|
"16:9",
|
|
6843
6851
|
"9:16",
|
|
6844
6852
|
"1:1",
|
|
@@ -6859,7 +6867,7 @@ const SN = A({
|
|
|
6859
6867
|
Pt(59.94),
|
|
6860
6868
|
Pt(60)
|
|
6861
6869
|
])),
|
|
6862
|
-
scaleTo: m(
|
|
6870
|
+
scaleTo: m(j([
|
|
6863
6871
|
"preview",
|
|
6864
6872
|
"mobile",
|
|
6865
6873
|
"sd",
|
|
@@ -6867,7 +6875,7 @@ const SN = A({
|
|
|
6867
6875
|
"1080",
|
|
6868
6876
|
"4k"
|
|
6869
6877
|
])),
|
|
6870
|
-
quality: m(
|
|
6878
|
+
quality: m(j([
|
|
6871
6879
|
"verylow",
|
|
6872
6880
|
"low",
|
|
6873
6881
|
"medium",
|
|
@@ -6889,7 +6897,7 @@ const SN = A({
|
|
|
6889
6897
|
var r = typeof e.resolution == "string", n = e.size != null && e.size.width != null && e.size.height != null;
|
|
6890
6898
|
!i && !r && !n && t.addIssue({ code: Kr.custom, message: 'output requires either "resolution" or "size" (with width and height)' });
|
|
6891
6899
|
}), ON = A({
|
|
6892
|
-
in: m(
|
|
6900
|
+
in: m(j([
|
|
6893
6901
|
"none",
|
|
6894
6902
|
"fade",
|
|
6895
6903
|
"fadeSlow",
|
|
@@ -6953,7 +6961,7 @@ const SN = A({
|
|
|
6953
6961
|
"shuffleTopLeftFast",
|
|
6954
6962
|
"zoom"
|
|
6955
6963
|
])),
|
|
6956
|
-
out: m(
|
|
6964
|
+
out: m(j([
|
|
6957
6965
|
"none",
|
|
6958
6966
|
"fade",
|
|
6959
6967
|
"fadeSlow",
|
|
@@ -7028,12 +7036,12 @@ const SN = A({
|
|
|
7028
7036
|
if (!(e === "" || e === null || e === void 0))
|
|
7029
7037
|
return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
|
|
7030
7038
|
}, N()), b().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
7031
|
-
interpolation: m(
|
|
7039
|
+
interpolation: m(j([
|
|
7032
7040
|
"linear",
|
|
7033
7041
|
"bezier",
|
|
7034
7042
|
"constant"
|
|
7035
7043
|
])),
|
|
7036
|
-
easing: m(
|
|
7044
|
+
easing: m(j([
|
|
7037
7045
|
"ease",
|
|
7038
7046
|
"easeIn",
|
|
7039
7047
|
"easeOut",
|
|
@@ -7064,7 +7072,7 @@ const SN = A({
|
|
|
7064
7072
|
"easeInOutBack"
|
|
7065
7073
|
]))
|
|
7066
7074
|
}).strict(), fC = A({
|
|
7067
|
-
type:
|
|
7075
|
+
type: j(["audio"]),
|
|
7068
7076
|
src: m(b().min(1).regex(/\S/)),
|
|
7069
7077
|
prompt: m(b().max(4e3)),
|
|
7070
7078
|
model: m(b()),
|
|
@@ -7084,7 +7092,7 @@ const SN = A({
|
|
|
7084
7092
|
if (!(e === "" || e === null || e === void 0))
|
|
7085
7093
|
return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
|
|
7086
7094
|
}, N().gte(0).lte(10)), b().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
7087
|
-
effect: m(
|
|
7095
|
+
effect: m(j([
|
|
7088
7096
|
"none",
|
|
7089
7097
|
"fadeIn",
|
|
7090
7098
|
"fadeOut",
|
|
@@ -7136,7 +7144,7 @@ const SN = A({
|
|
|
7136
7144
|
jt(Wn)
|
|
7137
7145
|
]))
|
|
7138
7146
|
}).strict(), LN = A({
|
|
7139
|
-
type:
|
|
7147
|
+
type: j(["text-to-speech"]),
|
|
7140
7148
|
text: b(),
|
|
7141
7149
|
voice: b(),
|
|
7142
7150
|
language: m(b()),
|
|
@@ -7156,16 +7164,16 @@ const SN = A({
|
|
|
7156
7164
|
if (!(e === "" || e === null || e === void 0))
|
|
7157
7165
|
return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
|
|
7158
7166
|
}, N().gte(0).lte(10)), b().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
7159
|
-
effect: m(
|
|
7167
|
+
effect: m(j([
|
|
7160
7168
|
"none",
|
|
7161
7169
|
"fadeIn",
|
|
7162
7170
|
"fadeOut",
|
|
7163
7171
|
"fadeInFadeOut"
|
|
7164
7172
|
]))
|
|
7165
7173
|
}).strict(), $N = A({
|
|
7166
|
-
type:
|
|
7174
|
+
type: j(["title"]),
|
|
7167
7175
|
text: b(),
|
|
7168
|
-
style: m(
|
|
7176
|
+
style: m(j([
|
|
7169
7177
|
"minimal",
|
|
7170
7178
|
"blockbuster",
|
|
7171
7179
|
"vogue",
|
|
@@ -7178,7 +7186,7 @@ const SN = A({
|
|
|
7178
7186
|
"subtitle"
|
|
7179
7187
|
])),
|
|
7180
7188
|
color: m(b()),
|
|
7181
|
-
size: m(
|
|
7189
|
+
size: m(j([
|
|
7182
7190
|
"xx-small",
|
|
7183
7191
|
"x-small",
|
|
7184
7192
|
"small",
|
|
@@ -7188,7 +7196,7 @@ const SN = A({
|
|
|
7188
7196
|
"xx-large"
|
|
7189
7197
|
])),
|
|
7190
7198
|
background: m(b()),
|
|
7191
|
-
position: m(
|
|
7199
|
+
position: m(j([
|
|
7192
7200
|
"top",
|
|
7193
7201
|
"topRight",
|
|
7194
7202
|
"right",
|
|
@@ -7205,7 +7213,7 @@ const SN = A({
|
|
|
7205
7213
|
skew: m(VN),
|
|
7206
7214
|
flip: m(BB)
|
|
7207
7215
|
}).strict(), pC = A({
|
|
7208
|
-
type:
|
|
7216
|
+
type: j(["video"]),
|
|
7209
7217
|
src: m(b().min(1).regex(/\S/)),
|
|
7210
7218
|
prompt: m(b().max(4e3)),
|
|
7211
7219
|
model: m(b()),
|
|
@@ -7222,7 +7230,7 @@ const SN = A({
|
|
|
7222
7230
|
}, N().gte(0).lte(1)), b().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
7223
7231
|
jt(Wn)
|
|
7224
7232
|
])),
|
|
7225
|
-
volumeEffect: m(
|
|
7233
|
+
volumeEffect: m(j([
|
|
7226
7234
|
"none",
|
|
7227
7235
|
"fadeIn",
|
|
7228
7236
|
"fadeOut",
|
|
@@ -7275,7 +7283,7 @@ const SN = A({
|
|
|
7275
7283
|
}, N().gte(0)), b().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
7276
7284
|
E([b().regex(/^(auto|end|alias:\/\/[A-Za-z0-9_-]+)$/), b().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
7277
7285
|
]),
|
|
7278
|
-
fit: m(
|
|
7286
|
+
fit: m(j([
|
|
7279
7287
|
"cover",
|
|
7280
7288
|
"contain",
|
|
7281
7289
|
"crop",
|
|
@@ -7296,7 +7304,7 @@ const SN = A({
|
|
|
7296
7304
|
if (!(e === "" || e === null || e === void 0))
|
|
7297
7305
|
return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
|
|
7298
7306
|
}, N().gte(1).lte(2160)), b().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
7299
|
-
position: m(
|
|
7307
|
+
position: m(j([
|
|
7300
7308
|
"top",
|
|
7301
7309
|
"topRight",
|
|
7302
7310
|
"right",
|
|
@@ -7309,7 +7317,7 @@ const SN = A({
|
|
|
7309
7317
|
])),
|
|
7310
7318
|
offset: m(hC),
|
|
7311
7319
|
transition: m(ON),
|
|
7312
|
-
effect: m(
|
|
7320
|
+
effect: m(j([
|
|
7313
7321
|
"zoomIn",
|
|
7314
7322
|
"zoomInSlow",
|
|
7315
7323
|
"zoomInFast",
|
|
@@ -7329,7 +7337,7 @@ const SN = A({
|
|
|
7329
7337
|
"slideDownSlow",
|
|
7330
7338
|
"slideDownFast"
|
|
7331
7339
|
])),
|
|
7332
|
-
filter: m(
|
|
7340
|
+
filter: m(j([
|
|
7333
7341
|
"none",
|
|
7334
7342
|
"blur",
|
|
7335
7343
|
"boost",
|
|
@@ -7368,8 +7376,8 @@ const SN = A({
|
|
|
7368
7376
|
output: zN,
|
|
7369
7377
|
merge: m(jt(J3)),
|
|
7370
7378
|
callback: m(b()),
|
|
7371
|
-
disk: m(
|
|
7372
|
-
instance: m(
|
|
7379
|
+
disk: m(j(["local", "mount"])),
|
|
7380
|
+
instance: m(j([
|
|
7373
7381
|
"s1",
|
|
7374
7382
|
"s2",
|
|
7375
7383
|
"a1"
|
|
@@ -7378,7 +7386,7 @@ const SN = A({
|
|
|
7378
7386
|
id: b(),
|
|
7379
7387
|
owner: b(),
|
|
7380
7388
|
plan: m(b()),
|
|
7381
|
-
status:
|
|
7389
|
+
status: j([
|
|
7382
7390
|
"queued",
|
|
7383
7391
|
"fetching",
|
|
7384
7392
|
"preprocessing",
|
|
@@ -14652,6 +14660,8 @@ var SV = { gsap: `/*!
|
|
|
14652
14660
|
var origGsapPause = origGsapTl && typeof origGsapTl.pause === "function" ? origGsapTl.pause.bind(origGsapTl) : null;
|
|
14653
14661
|
var origGsapSeek = origGsapTl && typeof origGsapTl.seek === "function" ? origGsapTl.seek.bind(origGsapTl) : null;
|
|
14654
14662
|
var origGsapGetChildren = origGsapTl && typeof origGsapTl.getChildren === "function" ? origGsapTl.getChildren.bind(origGsapTl) : null;
|
|
14663
|
+
// Capture may queue longer than an animation lasts; only the host advances its clock.
|
|
14664
|
+
if (origGsapPause) origGsapPause(0);
|
|
14655
14665
|
var origLottieRegistered = window.lottie && typeof window.lottie.getRegisteredAnimations === "function" ? window.lottie.getRegisteredAnimations.bind(window.lottie) : null;
|
|
14656
14666
|
var animeInstances = [];
|
|
14657
14667
|
|
|
@@ -14728,7 +14738,7 @@ ${IV(r)}
|
|
|
14728
14738
|
</body>
|
|
14729
14739
|
</html>`;
|
|
14730
14740
|
}
|
|
14731
|
-
var DV = "
|
|
14741
|
+
var DV = "v3";
|
|
14732
14742
|
async function PV(e) {
|
|
14733
14743
|
const t = `${DV} ${e.html} ${e.css} ${e.js} ${e.width} ${e.height}`, i = new TextEncoder().encode(t), r = await crypto.subtle.digest("SHA-256", i);
|
|
14734
14744
|
return Array.from(new Uint8Array(r)).map((n) => n.toString(16).padStart(2, "0")).join("");
|
|
@@ -38499,7 +38509,7 @@ class Rf extends Mi {
|
|
|
38499
38509
|
emitCaptureFailed(t, i) {
|
|
38500
38510
|
const r = t instanceof Error ? t.message : String(t);
|
|
38501
38511
|
try {
|
|
38502
|
-
this.edit.getInternalEvents().emit(
|
|
38512
|
+
this.edit.getInternalEvents().emit(Z.ClipCaptureFailed, {
|
|
38503
38513
|
clipId: this.clipId,
|
|
38504
38514
|
assetType: "html5",
|
|
38505
38515
|
error: r,
|
|
@@ -38511,7 +38521,7 @@ class Rf extends Mi {
|
|
|
38511
38521
|
}
|
|
38512
38522
|
emitCaptureStarted() {
|
|
38513
38523
|
try {
|
|
38514
|
-
this.edit.getInternalEvents().emit(
|
|
38524
|
+
this.edit.getInternalEvents().emit(Z.ClipCaptureStarted, {
|
|
38515
38525
|
clipId: this.clipId,
|
|
38516
38526
|
assetType: "html5"
|
|
38517
38527
|
});
|
|
@@ -38521,7 +38531,7 @@ class Rf extends Mi {
|
|
|
38521
38531
|
}
|
|
38522
38532
|
emitCaptureCompleted(t) {
|
|
38523
38533
|
try {
|
|
38524
|
-
this.edit.getInternalEvents().emit(
|
|
38534
|
+
this.edit.getInternalEvents().emit(Z.ClipCaptureCompleted, {
|
|
38525
38535
|
clipId: this.clipId,
|
|
38526
38536
|
assetType: "html5",
|
|
38527
38537
|
frameCount: t
|
|
@@ -38797,8 +38807,8 @@ class Oq extends Mi {
|
|
|
38797
38807
|
await super.load();
|
|
38798
38808
|
try {
|
|
38799
38809
|
await this.loadTexture(), this.configureKeyframes();
|
|
38800
|
-
} catch {
|
|
38801
|
-
this.createFallbackGraphic();
|
|
38810
|
+
} catch (t) {
|
|
38811
|
+
this.recordLoadError(t), this.createFallbackGraphic();
|
|
38802
38812
|
}
|
|
38803
38813
|
}
|
|
38804
38814
|
createFallbackGraphic() {
|
|
@@ -38822,11 +38832,11 @@ class Oq extends Mi {
|
|
|
38822
38832
|
}
|
|
38823
38833
|
/** Reload the image asset when asset.src changes (e.g., merge field update) */
|
|
38824
38834
|
async reloadAsset() {
|
|
38825
|
-
this.disposeTexture(), this.clearPlaceholder();
|
|
38835
|
+
this.disposeTexture(), this.clearPlaceholder(), this.loadError = null;
|
|
38826
38836
|
try {
|
|
38827
38837
|
await this.loadTexture();
|
|
38828
|
-
} catch {
|
|
38829
|
-
this.createFallbackGraphic();
|
|
38838
|
+
} catch (t) {
|
|
38839
|
+
this.recordLoadError(t), this.createFallbackGraphic();
|
|
38830
38840
|
}
|
|
38831
38841
|
}
|
|
38832
38842
|
async loadTexture() {
|
|
@@ -39155,8 +39165,8 @@ function OA(e, t, i) {
|
|
|
39155
39165
|
}, a = ({ clipId: l, error: u }) => {
|
|
39156
39166
|
l === t && i.setFailed(u);
|
|
39157
39167
|
}, o = e.getInternalEvents();
|
|
39158
|
-
return o.on(
|
|
39159
|
-
o.off(
|
|
39168
|
+
return o.on(Z.ClipGenerationStarted, n), o.on(Z.ClipGenerationCompleted, s), o.on(Z.ClipGenerationFailed, a), () => {
|
|
39169
|
+
o.off(Z.ClipGenerationStarted, n), o.off(Z.ClipGenerationCompleted, s), o.off(Z.ClipGenerationFailed, a);
|
|
39160
39170
|
};
|
|
39161
39171
|
}
|
|
39162
39172
|
class G4 extends Mi {
|
|
@@ -39312,7 +39322,7 @@ const Vf = (e) => {
|
|
|
39312
39322
|
return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
|
|
39313
39323
|
}, N()), b().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
39314
39324
|
}).strict(), qq = A({
|
|
39315
|
-
type:
|
|
39325
|
+
type: j(["caption"]),
|
|
39316
39326
|
src: b().min(1).regex(/\S/),
|
|
39317
39327
|
font: m(Gq),
|
|
39318
39328
|
background: m(Wq),
|
|
@@ -39394,7 +39404,7 @@ const Vf = (e) => {
|
|
|
39394
39404
|
provider: Pt("google-drive"),
|
|
39395
39405
|
options: m(iY)
|
|
39396
39406
|
}).strict(), nY = A({
|
|
39397
|
-
playbackPolicy: m(jt(
|
|
39407
|
+
playbackPolicy: m(jt(j(["public", "signed"]))),
|
|
39398
39408
|
passthrough: m(b().max(255))
|
|
39399
39409
|
}).strict(), sY = A({
|
|
39400
39410
|
provider: Pt("mux"),
|
|
@@ -39413,7 +39423,7 @@ const Vf = (e) => {
|
|
|
39413
39423
|
exclude: m(Yt())
|
|
39414
39424
|
}).strict(), uY = A({
|
|
39415
39425
|
title: m(b().max(150)),
|
|
39416
|
-
privacyLevel: m(
|
|
39426
|
+
privacyLevel: m(j([
|
|
39417
39427
|
"public",
|
|
39418
39428
|
"friends",
|
|
39419
39429
|
"private"
|
|
@@ -39425,19 +39435,19 @@ const Vf = (e) => {
|
|
|
39425
39435
|
provider: Pt("tiktok"),
|
|
39426
39436
|
options: m(uY)
|
|
39427
39437
|
}).strict(), dY = A({
|
|
39428
|
-
view: m(
|
|
39438
|
+
view: m(j([
|
|
39429
39439
|
"anybody",
|
|
39430
39440
|
"nobody",
|
|
39431
39441
|
"contacts",
|
|
39432
39442
|
"password",
|
|
39433
39443
|
"unlisted"
|
|
39434
39444
|
])),
|
|
39435
|
-
embed: m(
|
|
39445
|
+
embed: m(j([
|
|
39436
39446
|
"public",
|
|
39437
39447
|
"private",
|
|
39438
39448
|
"whitelist"
|
|
39439
39449
|
])),
|
|
39440
|
-
comments: m(
|
|
39450
|
+
comments: m(j([
|
|
39441
39451
|
"anybody",
|
|
39442
39452
|
"nobody",
|
|
39443
39453
|
"contacts"
|
|
@@ -39468,7 +39478,7 @@ const Vf = (e) => {
|
|
|
39468
39478
|
}).strict(), gY = A({
|
|
39469
39479
|
src: b()
|
|
39470
39480
|
}).strict(), yY = A({
|
|
39471
|
-
unit:
|
|
39481
|
+
unit: j([
|
|
39472
39482
|
"render",
|
|
39473
39483
|
"second",
|
|
39474
39484
|
"minute",
|
|
@@ -39489,7 +39499,7 @@ const Vf = (e) => {
|
|
|
39489
39499
|
effectiveFrom: b()
|
|
39490
39500
|
}).strict(), bY = A({
|
|
39491
39501
|
model: b(),
|
|
39492
|
-
type:
|
|
39502
|
+
type: j([
|
|
39493
39503
|
"image",
|
|
39494
39504
|
"video",
|
|
39495
39505
|
"audio"
|
|
@@ -39497,12 +39507,12 @@ const Vf = (e) => {
|
|
|
39497
39507
|
pricing: m(yY),
|
|
39498
39508
|
options: m(Yn(b(), ti()))
|
|
39499
39509
|
}).strict(), vY = A({
|
|
39500
|
-
type:
|
|
39510
|
+
type: j(["html5"]),
|
|
39501
39511
|
html: b().max(1e6),
|
|
39502
39512
|
css: m(b().max(5e5)),
|
|
39503
39513
|
js: m(b().max(5e5))
|
|
39504
39514
|
}).strict(), wY = A({
|
|
39505
|
-
type:
|
|
39515
|
+
type: j(["html"]),
|
|
39506
39516
|
html: b(),
|
|
39507
39517
|
css: m(b()),
|
|
39508
39518
|
width: m(E([M((e) => {
|
|
@@ -39514,7 +39524,7 @@ const Vf = (e) => {
|
|
|
39514
39524
|
return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
|
|
39515
39525
|
}, N().int()), b().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
39516
39526
|
background: m(b()),
|
|
39517
|
-
position: m(
|
|
39527
|
+
position: m(j([
|
|
39518
39528
|
"top",
|
|
39519
39529
|
"topRight",
|
|
39520
39530
|
"right",
|
|
@@ -39526,7 +39536,7 @@ const Vf = (e) => {
|
|
|
39526
39536
|
"center"
|
|
39527
39537
|
]))
|
|
39528
39538
|
}).strict(), VA = A({
|
|
39529
|
-
type:
|
|
39539
|
+
type: j(["image"]),
|
|
39530
39540
|
src: m(b().min(1).regex(/\S/)),
|
|
39531
39541
|
prompt: m(b().max(4e3)),
|
|
39532
39542
|
model: m(b()),
|
|
@@ -39540,10 +39550,10 @@ const Vf = (e) => {
|
|
|
39540
39550
|
path: ["src"]
|
|
39541
39551
|
});
|
|
39542
39552
|
}), xY = A({
|
|
39543
|
-
type:
|
|
39553
|
+
type: j(["image-to-video"]),
|
|
39544
39554
|
src: b().min(1),
|
|
39545
39555
|
prompt: m(b()),
|
|
39546
|
-
aspectRatio: m(
|
|
39556
|
+
aspectRatio: m(j([
|
|
39547
39557
|
"1:1",
|
|
39548
39558
|
"4:3",
|
|
39549
39559
|
"16:9",
|
|
@@ -39558,7 +39568,7 @@ const Vf = (e) => {
|
|
|
39558
39568
|
}, N().gte(0).lte(10)), b().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
39559
39569
|
crop: m(h0)
|
|
39560
39570
|
}).strict(), CY = A({
|
|
39561
|
-
preset:
|
|
39571
|
+
preset: j([
|
|
39562
39572
|
"conference",
|
|
39563
39573
|
"interview",
|
|
39564
39574
|
"lecture",
|
|
@@ -39610,9 +39620,9 @@ const DY = A({
|
|
|
39610
39620
|
}, N().gte(0).lte(10)), b().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
39611
39621
|
preservePitch: m(Yt())
|
|
39612
39622
|
}).strict(), PY = A({
|
|
39613
|
-
format: m(
|
|
39623
|
+
format: m(j(["srt", "vtt"]))
|
|
39614
39624
|
}).strict(), FY = A({
|
|
39615
|
-
type:
|
|
39625
|
+
type: j(["luma"]),
|
|
39616
39626
|
src: b().min(1).regex(/\S/),
|
|
39617
39627
|
trim: m(E([M((e) => {
|
|
39618
39628
|
if (!(e === "" || e === null || e === void 0))
|
|
@@ -39643,7 +39653,7 @@ const DY = A({
|
|
|
39643
39653
|
providerId: m(b()),
|
|
39644
39654
|
filename: m(b()),
|
|
39645
39655
|
url: m(b()),
|
|
39646
|
-
status:
|
|
39656
|
+
status: j([
|
|
39647
39657
|
"importing",
|
|
39648
39658
|
"ready",
|
|
39649
39659
|
"failed",
|
|
@@ -39666,7 +39676,7 @@ A({
|
|
|
39666
39676
|
}).strict();
|
|
39667
39677
|
A({
|
|
39668
39678
|
id: b(),
|
|
39669
|
-
status:
|
|
39679
|
+
status: j([
|
|
39670
39680
|
"queued",
|
|
39671
39681
|
"processing",
|
|
39672
39682
|
"done",
|
|
@@ -39725,13 +39735,13 @@ const LY = A({
|
|
|
39725
39735
|
if (!(e === "" || e === null || e === void 0))
|
|
39726
39736
|
return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
|
|
39727
39737
|
}, N().gte(1).lte(500)), b().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
39728
|
-
textDecoration: m(
|
|
39738
|
+
textDecoration: m(j([
|
|
39729
39739
|
"none",
|
|
39730
39740
|
"underline",
|
|
39731
39741
|
"line-through"
|
|
39732
39742
|
]))
|
|
39733
39743
|
}).strict(), $Y = A({
|
|
39734
|
-
style:
|
|
39744
|
+
style: j([
|
|
39735
39745
|
"karaoke",
|
|
39736
39746
|
"highlight",
|
|
39737
39747
|
"pop",
|
|
@@ -39741,7 +39751,7 @@ const LY = A({
|
|
|
39741
39751
|
"typewriter",
|
|
39742
39752
|
"none"
|
|
39743
39753
|
]),
|
|
39744
|
-
direction: m(
|
|
39754
|
+
direction: m(j([
|
|
39745
39755
|
"left",
|
|
39746
39756
|
"right",
|
|
39747
39757
|
"up",
|
|
@@ -39754,7 +39764,7 @@ const LY = A({
|
|
|
39754
39764
|
return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
|
|
39755
39765
|
}, N().int().gte(1).lte(500)), b().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(24),
|
|
39756
39766
|
weight: m(ti()).default("400"),
|
|
39757
|
-
style: m(
|
|
39767
|
+
style: m(j(["normal", "italic"])),
|
|
39758
39768
|
color: m(E([b().regex(/^#[A-Fa-f0-9]{6}$/), b().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default("#ffffff"),
|
|
39759
39769
|
opacity: m(E([M((e) => {
|
|
39760
39770
|
if (!(e === "" || e === null || e === void 0))
|
|
@@ -39762,18 +39772,18 @@ const LY = A({
|
|
|
39762
39772
|
}, N().gte(0).lte(1)), b().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
|
|
39763
39773
|
background: m(E([b().regex(/^#[A-Fa-f0-9]{6}$/), b().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
39764
39774
|
}).strict(), UA = A({
|
|
39765
|
-
horizontal: m(
|
|
39775
|
+
horizontal: m(j([
|
|
39766
39776
|
"left",
|
|
39767
39777
|
"center",
|
|
39768
39778
|
"right"
|
|
39769
39779
|
])),
|
|
39770
|
-
vertical: m(
|
|
39780
|
+
vertical: m(j([
|
|
39771
39781
|
"top",
|
|
39772
39782
|
"middle",
|
|
39773
39783
|
"bottom"
|
|
39774
39784
|
]))
|
|
39775
39785
|
}).strict(), ZY = A({
|
|
39776
|
-
preset:
|
|
39786
|
+
preset: j([
|
|
39777
39787
|
"fadeIn",
|
|
39778
39788
|
"slideIn",
|
|
39779
39789
|
"typewriter",
|
|
@@ -39785,8 +39795,8 @@ const LY = A({
|
|
|
39785
39795
|
if (!(e === "" || e === null || e === void 0))
|
|
39786
39796
|
return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
|
|
39787
39797
|
}, N().gte(0.1).lte(30)), b().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
39788
|
-
style: m(
|
|
39789
|
-
direction: m(
|
|
39798
|
+
style: m(j(["character", "word"])),
|
|
39799
|
+
direction: m(j([
|
|
39790
39800
|
"left",
|
|
39791
39801
|
"right",
|
|
39792
39802
|
"up",
|
|
@@ -39822,7 +39832,7 @@ const LY = A({
|
|
|
39822
39832
|
return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
|
|
39823
39833
|
}, N().gte(0)), b().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0)
|
|
39824
39834
|
}).strict(), WA = A({
|
|
39825
|
-
type: m(
|
|
39835
|
+
type: m(j(["linear", "radial"])),
|
|
39826
39836
|
angle: m(E([M((e) => {
|
|
39827
39837
|
if (!(e === "" || e === null || e === void 0))
|
|
39828
39838
|
return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
|
|
@@ -39843,7 +39853,7 @@ const LY = A({
|
|
|
39843
39853
|
if (!(e === "" || e === null || e === void 0))
|
|
39844
39854
|
return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
|
|
39845
39855
|
}, N().gte(0).lte(10)), b().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1.2),
|
|
39846
|
-
textTransform: m(
|
|
39856
|
+
textTransform: m(j([
|
|
39847
39857
|
"none",
|
|
39848
39858
|
"uppercase",
|
|
39849
39859
|
"lowercase",
|
|
@@ -39853,7 +39863,7 @@ const LY = A({
|
|
|
39853
39863
|
if (!(e === "" || e === null || e === void 0))
|
|
39854
39864
|
return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
|
|
39855
39865
|
}, N().gte(1).lte(500)), b().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
39856
|
-
textDecoration: m(
|
|
39866
|
+
textDecoration: m(j([
|
|
39857
39867
|
"none",
|
|
39858
39868
|
"underline",
|
|
39859
39869
|
"line-through"
|
|
@@ -39908,14 +39918,14 @@ const LY = A({
|
|
|
39908
39918
|
font: m(LY),
|
|
39909
39919
|
stroke: m(E([
|
|
39910
39920
|
m0,
|
|
39911
|
-
|
|
39921
|
+
j(["none"])
|
|
39912
39922
|
])),
|
|
39913
39923
|
shadow: m(E([
|
|
39914
39924
|
ub,
|
|
39915
|
-
|
|
39925
|
+
j(["none"])
|
|
39916
39926
|
]))
|
|
39917
39927
|
}).strict(), HA = A({
|
|
39918
|
-
type:
|
|
39928
|
+
type: j(["rich-caption"]),
|
|
39919
39929
|
src: b().min(1),
|
|
39920
39930
|
font: m(UY),
|
|
39921
39931
|
style: m(jY),
|
|
@@ -39940,7 +39950,7 @@ const LY = A({
|
|
|
39940
39950
|
return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
|
|
39941
39951
|
}, N().int().gte(1).lte(500)), b().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(24),
|
|
39942
39952
|
weight: m(ti()).default("400"),
|
|
39943
|
-
style: m(
|
|
39953
|
+
style: m(j(["normal", "italic"])),
|
|
39944
39954
|
color: m(E([b().regex(/^#[A-Fa-f0-9]{6}$/), b().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default("#000000"),
|
|
39945
39955
|
opacity: m(E([M((e) => {
|
|
39946
39956
|
if (!(e === "" || e === null || e === void 0))
|
|
@@ -39961,20 +39971,20 @@ const LY = A({
|
|
|
39961
39971
|
if (!(e === "" || e === null || e === void 0))
|
|
39962
39972
|
return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
|
|
39963
39973
|
}, N().gte(0).lte(10)), b().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1.2),
|
|
39964
|
-
textTransform: m(
|
|
39974
|
+
textTransform: m(j([
|
|
39965
39975
|
"none",
|
|
39966
39976
|
"uppercase",
|
|
39967
39977
|
"lowercase",
|
|
39968
39978
|
"capitalize"
|
|
39969
39979
|
])),
|
|
39970
|
-
textDecoration: m(
|
|
39980
|
+
textDecoration: m(j([
|
|
39971
39981
|
"none",
|
|
39972
39982
|
"underline",
|
|
39973
39983
|
"line-through"
|
|
39974
39984
|
])),
|
|
39975
39985
|
gradient: m(WA)
|
|
39976
39986
|
}).strict(), qA = A({
|
|
39977
|
-
type:
|
|
39987
|
+
type: j(["rich-text"]),
|
|
39978
39988
|
text: b().max(5e3),
|
|
39979
39989
|
font: m(HY),
|
|
39980
39990
|
style: m(qY),
|
|
@@ -39994,7 +40004,7 @@ const LY = A({
|
|
|
39994
40004
|
}).strict(), YY = qA, KY = A({
|
|
39995
40005
|
id: m(b()),
|
|
39996
40006
|
owner: m(b()),
|
|
39997
|
-
status: m(
|
|
40007
|
+
status: m(j(["queued", "failed"])),
|
|
39998
40008
|
created: m(b())
|
|
39999
40009
|
}).strict(), XY = A({
|
|
40000
40010
|
type: m(b()),
|
|
@@ -40008,8 +40018,8 @@ const JY = A({
|
|
|
40008
40018
|
id: b(),
|
|
40009
40019
|
destinations: jt(p0)
|
|
40010
40020
|
}).strict(), QY = A({
|
|
40011
|
-
type:
|
|
40012
|
-
shape:
|
|
40021
|
+
type: j(["shape"]),
|
|
40022
|
+
shape: j([
|
|
40013
40023
|
"rectangle",
|
|
40014
40024
|
"circle",
|
|
40015
40025
|
"line"
|
|
@@ -40076,7 +40086,7 @@ const JY = A({
|
|
|
40076
40086
|
return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
|
|
40077
40087
|
}, N().int().gte(1).lte(4096)), b().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
40078
40088
|
}).strict(), tK = cb, YA = A({
|
|
40079
|
-
format: m(
|
|
40089
|
+
format: m(j([
|
|
40080
40090
|
"mp4",
|
|
40081
40091
|
"webm",
|
|
40082
40092
|
"mov",
|
|
@@ -40094,12 +40104,12 @@ const JY = A({
|
|
|
40094
40104
|
"tif"
|
|
40095
40105
|
])),
|
|
40096
40106
|
size: m(cb),
|
|
40097
|
-
fit: m(
|
|
40107
|
+
fit: m(j([
|
|
40098
40108
|
"cover",
|
|
40099
40109
|
"contain",
|
|
40100
40110
|
"crop"
|
|
40101
40111
|
])),
|
|
40102
|
-
resolution: m(
|
|
40112
|
+
resolution: m(j([
|
|
40103
40113
|
"preview",
|
|
40104
40114
|
"mobile",
|
|
40105
40115
|
"sd",
|
|
@@ -40137,7 +40147,7 @@ const JY = A({
|
|
|
40137
40147
|
transcription: m(PY)
|
|
40138
40148
|
}).strict(), iK = A({
|
|
40139
40149
|
id: b(),
|
|
40140
|
-
status: m(
|
|
40150
|
+
status: m(j([
|
|
40141
40151
|
"queued",
|
|
40142
40152
|
"importing",
|
|
40143
40153
|
"ready",
|
|
@@ -40174,7 +40184,7 @@ const JY = A({
|
|
|
40174
40184
|
owner: b(),
|
|
40175
40185
|
input: m(b()),
|
|
40176
40186
|
source: m(b()),
|
|
40177
|
-
status: m(
|
|
40187
|
+
status: m(j([
|
|
40178
40188
|
"queued",
|
|
40179
40189
|
"importing",
|
|
40180
40190
|
"ready",
|
|
@@ -40219,7 +40229,7 @@ const sK = A({
|
|
|
40219
40229
|
callback: m(b())
|
|
40220
40230
|
}).strict(), aK = A({
|
|
40221
40231
|
src: b().min(1).regex(/\S/),
|
|
40222
|
-
effect: m(
|
|
40232
|
+
effect: m(j([
|
|
40223
40233
|
"fadeIn",
|
|
40224
40234
|
"fadeOut",
|
|
40225
40235
|
"fadeInFadeOut"
|
|
@@ -40229,24 +40239,24 @@ const sK = A({
|
|
|
40229
40239
|
return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
|
|
40230
40240
|
}, N()), b().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
40231
40241
|
}).strict(), XA = A({
|
|
40232
|
-
type:
|
|
40242
|
+
type: j(["svg"]),
|
|
40233
40243
|
src: b().min(1).max(5e5)
|
|
40234
40244
|
}).strict(), oK = XA, lK = A({
|
|
40235
40245
|
id: b(),
|
|
40236
40246
|
merge: m(jt(LA))
|
|
40237
40247
|
}).strict(), uK = A({
|
|
40238
|
-
horizontal: m(
|
|
40248
|
+
horizontal: m(j([
|
|
40239
40249
|
"left",
|
|
40240
40250
|
"center",
|
|
40241
40251
|
"right"
|
|
40242
40252
|
])),
|
|
40243
|
-
vertical: m(
|
|
40253
|
+
vertical: m(j([
|
|
40244
40254
|
"top",
|
|
40245
40255
|
"center",
|
|
40246
40256
|
"bottom"
|
|
40247
40257
|
]))
|
|
40248
40258
|
}).strict(), cK = A({
|
|
40249
|
-
preset:
|
|
40259
|
+
preset: j(["typewriter"]),
|
|
40250
40260
|
duration: m(E([M((e) => {
|
|
40251
40261
|
if (!(e === "" || e === null || e === void 0))
|
|
40252
40262
|
return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
|
|
@@ -40292,7 +40302,7 @@ const sK = A({
|
|
|
40292
40302
|
}, N().gte(0).lte(10)), b().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
40293
40303
|
color: m(E([b().regex(/^#[A-Fa-f0-9]{6}$/), b().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
40294
40304
|
}).strict(), pK = A({
|
|
40295
|
-
type:
|
|
40305
|
+
type: j(["text"]),
|
|
40296
40306
|
text: b(),
|
|
40297
40307
|
width: m(E([M((e) => {
|
|
40298
40308
|
if (!(e === "" || e === null || e === void 0))
|
|
@@ -40315,7 +40325,7 @@ const sK = A({
|
|
|
40315
40325
|
path: ["background", "wrap"]
|
|
40316
40326
|
});
|
|
40317
40327
|
}), mK = A({
|
|
40318
|
-
type:
|
|
40328
|
+
type: j(["text-to-image"]),
|
|
40319
40329
|
prompt: b(),
|
|
40320
40330
|
width: m(E([M((e) => {
|
|
40321
40331
|
if (!(e === "" || e === null || e === void 0))
|
|
@@ -40336,7 +40346,7 @@ const sK = A({
|
|
|
40336
40346
|
return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
|
|
40337
40347
|
}, N().gte(0).lte(1)), b().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
40338
40348
|
}).strict(), JA = A({
|
|
40339
|
-
format:
|
|
40349
|
+
format: j([
|
|
40340
40350
|
"mp4",
|
|
40341
40351
|
"gif",
|
|
40342
40352
|
"mp3",
|
|
@@ -40344,7 +40354,7 @@ const sK = A({
|
|
|
40344
40354
|
"png",
|
|
40345
40355
|
"bmp"
|
|
40346
40356
|
]),
|
|
40347
|
-
resolution: m(
|
|
40357
|
+
resolution: m(j([
|
|
40348
40358
|
"preview",
|
|
40349
40359
|
"mobile",
|
|
40350
40360
|
"sd",
|
|
@@ -40352,7 +40362,7 @@ const sK = A({
|
|
|
40352
40362
|
"1080",
|
|
40353
40363
|
"4k"
|
|
40354
40364
|
])),
|
|
40355
|
-
aspectRatio: m(
|
|
40365
|
+
aspectRatio: m(j([
|
|
40356
40366
|
"16:9",
|
|
40357
40367
|
"9:16",
|
|
40358
40368
|
"1:1",
|
|
@@ -40373,7 +40383,7 @@ const sK = A({
|
|
|
40373
40383
|
Pt(59.94),
|
|
40374
40384
|
Pt(60)
|
|
40375
40385
|
])),
|
|
40376
|
-
scaleTo: m(
|
|
40386
|
+
scaleTo: m(j([
|
|
40377
40387
|
"preview",
|
|
40378
40388
|
"mobile",
|
|
40379
40389
|
"sd",
|
|
@@ -40381,7 +40391,7 @@ const sK = A({
|
|
|
40381
40391
|
"1080",
|
|
40382
40392
|
"4k"
|
|
40383
40393
|
])),
|
|
40384
|
-
quality: m(
|
|
40394
|
+
quality: m(j([
|
|
40385
40395
|
"verylow",
|
|
40386
40396
|
"low",
|
|
40387
40397
|
"medium",
|
|
@@ -40403,7 +40413,7 @@ const sK = A({
|
|
|
40403
40413
|
var r = typeof e.resolution == "string", n = e.size != null && e.size.width != null && e.size.height != null;
|
|
40404
40414
|
!i && !r && !n && t.addIssue({ code: Kr.custom, message: 'output requires either "resolution" or "size" (with width and height)' });
|
|
40405
40415
|
}), g0 = JA, yK = A({
|
|
40406
|
-
in: m(
|
|
40416
|
+
in: m(j([
|
|
40407
40417
|
"none",
|
|
40408
40418
|
"fade",
|
|
40409
40419
|
"fadeSlow",
|
|
@@ -40467,7 +40477,7 @@ const sK = A({
|
|
|
40467
40477
|
"shuffleTopLeftFast",
|
|
40468
40478
|
"zoom"
|
|
40469
40479
|
])),
|
|
40470
|
-
out: m(
|
|
40480
|
+
out: m(j([
|
|
40471
40481
|
"none",
|
|
40472
40482
|
"fade",
|
|
40473
40483
|
"fadeSlow",
|
|
@@ -40542,12 +40552,12 @@ const sK = A({
|
|
|
40542
40552
|
if (!(e === "" || e === null || e === void 0))
|
|
40543
40553
|
return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
|
|
40544
40554
|
}, N()), b().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
40545
|
-
interpolation: m(
|
|
40555
|
+
interpolation: m(j([
|
|
40546
40556
|
"linear",
|
|
40547
40557
|
"bezier",
|
|
40548
40558
|
"constant"
|
|
40549
40559
|
])),
|
|
40550
|
-
easing: m(
|
|
40560
|
+
easing: m(j([
|
|
40551
40561
|
"ease",
|
|
40552
40562
|
"easeIn",
|
|
40553
40563
|
"easeOut",
|
|
@@ -40578,7 +40588,7 @@ const sK = A({
|
|
|
40578
40588
|
"easeInOutBack"
|
|
40579
40589
|
]))
|
|
40580
40590
|
}).strict(), QA = A({
|
|
40581
|
-
type:
|
|
40591
|
+
type: j(["audio"]),
|
|
40582
40592
|
src: m(b().min(1).regex(/\S/)),
|
|
40583
40593
|
prompt: m(b().max(4e3)),
|
|
40584
40594
|
model: m(b()),
|
|
@@ -40598,7 +40608,7 @@ const sK = A({
|
|
|
40598
40608
|
if (!(e === "" || e === null || e === void 0))
|
|
40599
40609
|
return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
|
|
40600
40610
|
}, N().gte(0).lte(10)), b().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
40601
|
-
effect: m(
|
|
40611
|
+
effect: m(j([
|
|
40602
40612
|
"none",
|
|
40603
40613
|
"fadeIn",
|
|
40604
40614
|
"fadeOut",
|
|
@@ -40650,7 +40660,7 @@ const sK = A({
|
|
|
40650
40660
|
jt(qn)
|
|
40651
40661
|
]))
|
|
40652
40662
|
}).strict(), wK = A({
|
|
40653
|
-
type:
|
|
40663
|
+
type: j(["text-to-speech"]),
|
|
40654
40664
|
text: b(),
|
|
40655
40665
|
voice: b(),
|
|
40656
40666
|
language: m(b()),
|
|
@@ -40670,16 +40680,16 @@ const sK = A({
|
|
|
40670
40680
|
if (!(e === "" || e === null || e === void 0))
|
|
40671
40681
|
return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
|
|
40672
40682
|
}, N().gte(0).lte(10)), b().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
40673
|
-
effect: m(
|
|
40683
|
+
effect: m(j([
|
|
40674
40684
|
"none",
|
|
40675
40685
|
"fadeIn",
|
|
40676
40686
|
"fadeOut",
|
|
40677
40687
|
"fadeInFadeOut"
|
|
40678
40688
|
]))
|
|
40679
40689
|
}).strict(), xK = A({
|
|
40680
|
-
type:
|
|
40690
|
+
type: j(["title"]),
|
|
40681
40691
|
text: b(),
|
|
40682
|
-
style: m(
|
|
40692
|
+
style: m(j([
|
|
40683
40693
|
"minimal",
|
|
40684
40694
|
"blockbuster",
|
|
40685
40695
|
"vogue",
|
|
@@ -40692,7 +40702,7 @@ const sK = A({
|
|
|
40692
40702
|
"subtitle"
|
|
40693
40703
|
])),
|
|
40694
40704
|
color: m(b()),
|
|
40695
|
-
size: m(
|
|
40705
|
+
size: m(j([
|
|
40696
40706
|
"xx-small",
|
|
40697
40707
|
"x-small",
|
|
40698
40708
|
"small",
|
|
@@ -40702,7 +40712,7 @@ const sK = A({
|
|
|
40702
40712
|
"xx-large"
|
|
40703
40713
|
])),
|
|
40704
40714
|
background: m(b()),
|
|
40705
|
-
position: m(
|
|
40715
|
+
position: m(j([
|
|
40706
40716
|
"top",
|
|
40707
40717
|
"topRight",
|
|
40708
40718
|
"right",
|
|
@@ -40719,7 +40729,7 @@ const sK = A({
|
|
|
40719
40729
|
skew: m(vK),
|
|
40720
40730
|
flip: m(mY)
|
|
40721
40731
|
}).strict(), eT = A({
|
|
40722
|
-
type:
|
|
40732
|
+
type: j(["video"]),
|
|
40723
40733
|
src: m(b().min(1).regex(/\S/)),
|
|
40724
40734
|
prompt: m(b().max(4e3)),
|
|
40725
40735
|
model: m(b()),
|
|
@@ -40736,7 +40746,7 @@ const sK = A({
|
|
|
40736
40746
|
}, N().gte(0).lte(1)), b().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
40737
40747
|
jt(qn)
|
|
40738
40748
|
])),
|
|
40739
|
-
volumeEffect: m(
|
|
40749
|
+
volumeEffect: m(j([
|
|
40740
40750
|
"none",
|
|
40741
40751
|
"fadeIn",
|
|
40742
40752
|
"fadeOut",
|
|
@@ -40789,7 +40799,7 @@ const sK = A({
|
|
|
40789
40799
|
}, N().gte(0)), b().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
40790
40800
|
E([b().regex(/^(auto|end|alias:\/\/[A-Za-z0-9_-]+)$/), b().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
40791
40801
|
]),
|
|
40792
|
-
fit: m(
|
|
40802
|
+
fit: m(j([
|
|
40793
40803
|
"cover",
|
|
40794
40804
|
"contain",
|
|
40795
40805
|
"crop",
|
|
@@ -40810,7 +40820,7 @@ const sK = A({
|
|
|
40810
40820
|
if (!(e === "" || e === null || e === void 0))
|
|
40811
40821
|
return Array.isArray(e) ? e : typeof e == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e) ? e : Number(e) : e;
|
|
40812
40822
|
}, N().gte(1).lte(2160)), b().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
40813
|
-
position: m(
|
|
40823
|
+
position: m(j([
|
|
40814
40824
|
"top",
|
|
40815
40825
|
"topRight",
|
|
40816
40826
|
"right",
|
|
@@ -40823,7 +40833,7 @@ const sK = A({
|
|
|
40823
40833
|
])),
|
|
40824
40834
|
offset: m(tT),
|
|
40825
40835
|
transition: m(yK),
|
|
40826
|
-
effect: m(
|
|
40836
|
+
effect: m(j([
|
|
40827
40837
|
"zoomIn",
|
|
40828
40838
|
"zoomInSlow",
|
|
40829
40839
|
"zoomInFast",
|
|
@@ -40843,7 +40853,7 @@ const sK = A({
|
|
|
40843
40853
|
"slideDownSlow",
|
|
40844
40854
|
"slideDownFast"
|
|
40845
40855
|
])),
|
|
40846
|
-
filter: m(
|
|
40856
|
+
filter: m(j([
|
|
40847
40857
|
"none",
|
|
40848
40858
|
"blur",
|
|
40849
40859
|
"boost",
|
|
@@ -40882,8 +40892,8 @@ const sK = A({
|
|
|
40882
40892
|
output: JA,
|
|
40883
40893
|
merge: m(jt(LA)),
|
|
40884
40894
|
callback: m(b()),
|
|
40885
|
-
disk: m(
|
|
40886
|
-
instance: m(
|
|
40895
|
+
disk: m(j(["local", "mount"])),
|
|
40896
|
+
instance: m(j([
|
|
40887
40897
|
"s1",
|
|
40888
40898
|
"s2",
|
|
40889
40899
|
"a1"
|
|
@@ -40892,7 +40902,7 @@ const sK = A({
|
|
|
40892
40902
|
id: b(),
|
|
40893
40903
|
owner: b(),
|
|
40894
40904
|
plan: m(b()),
|
|
40895
|
-
status:
|
|
40905
|
+
status: j([
|
|
40896
40906
|
"queued",
|
|
40897
40907
|
"fetching",
|
|
40898
40908
|
"preprocessing",
|
|
@@ -41023,7 +41033,7 @@ A({
|
|
|
41023
41033
|
body: m(mt()),
|
|
41024
41034
|
path: m(mt()),
|
|
41025
41035
|
query: m(A({
|
|
41026
|
-
expand: m(
|
|
41036
|
+
expand: m(j(["options"]))
|
|
41027
41037
|
}))
|
|
41028
41038
|
}).strict();
|
|
41029
41039
|
A({
|
|
@@ -41832,6 +41842,7 @@ class ls extends Mi {
|
|
|
41832
41842
|
renderedWidth = 0;
|
|
41833
41843
|
renderedHeight = 0;
|
|
41834
41844
|
pendingRender = null;
|
|
41845
|
+
placeholder = null;
|
|
41835
41846
|
constructor(t, i) {
|
|
41836
41847
|
super(t, i, Re.Svg);
|
|
41837
41848
|
}
|
|
@@ -41854,27 +41865,36 @@ class ls extends Mi {
|
|
|
41854
41865
|
i !== t.src && (t = { ...t, src: i });
|
|
41855
41866
|
}
|
|
41856
41867
|
try {
|
|
41857
|
-
|
|
41858
|
-
|
|
41868
|
+
const i = oK.safeParse(t);
|
|
41869
|
+
if (!i.success) {
|
|
41870
|
+
this.recordLoadError(`Invalid svg asset: ${i.error.issues.map((r) => r.message).join("; ")}`), this.createFallbackGraphic();
|
|
41859
41871
|
return;
|
|
41860
41872
|
}
|
|
41861
41873
|
await ls.initializeResvg(), await this.doRender(), this.configureKeyframes();
|
|
41862
41874
|
} catch (i) {
|
|
41863
|
-
console.error("Failed to render SVG asset:", i), this.createFallbackGraphic();
|
|
41875
|
+
console.error("Failed to render SVG asset:", i), this.recordLoadError(i), this.createFallbackGraphic();
|
|
41864
41876
|
}
|
|
41865
41877
|
}
|
|
41866
41878
|
async reloadAsset() {
|
|
41867
|
-
|
|
41879
|
+
this.loadError = null;
|
|
41880
|
+
try {
|
|
41881
|
+
await this.rerenderAtCurrentDimensions();
|
|
41882
|
+
} catch (t) {
|
|
41883
|
+
console.error("Failed to render SVG asset:", t), this.recordLoadError(t), this.createFallbackGraphic();
|
|
41884
|
+
}
|
|
41868
41885
|
}
|
|
41869
41886
|
createFallbackGraphic() {
|
|
41870
|
-
const t = this.clipConfiguration.width || this.edit.size.width, i = this.clipConfiguration.height || this.edit.size.height
|
|
41871
|
-
this.renderedWidth = t, this.renderedHeight = i, this.contentContainer.addChild(
|
|
41887
|
+
const t = this.clipConfiguration.width || this.edit.size.width, i = this.clipConfiguration.height || this.edit.size.height;
|
|
41888
|
+
this.clearPlaceholder(), this.placeholder = $c(t, i), this.renderedWidth = t, this.renderedHeight = i, this.contentContainer.addChild(this.placeholder), this.configureKeyframes();
|
|
41889
|
+
}
|
|
41890
|
+
clearPlaceholder() {
|
|
41891
|
+
this.placeholder && (this.contentContainer.removeChild(this.placeholder), this.placeholder.destroy(), this.placeholder = null);
|
|
41872
41892
|
}
|
|
41873
41893
|
update(t, i) {
|
|
41874
41894
|
super.update(t, i);
|
|
41875
41895
|
}
|
|
41876
41896
|
dispose() {
|
|
41877
|
-
super.dispose(), this.pendingRender = null, this.sprite && (this.sprite.destroy(), this.sprite = null), this.texture && (this.texture.destroy(!0), this.texture = null);
|
|
41897
|
+
super.dispose(), this.pendingRender = null, this.placeholder = null, this.sprite && (this.sprite.destroy(), this.sprite = null), this.texture && (this.texture.destroy(!0), this.texture = null);
|
|
41878
41898
|
}
|
|
41879
41899
|
getSize() {
|
|
41880
41900
|
return this.clipConfiguration.width && this.clipConfiguration.height ? {
|
|
@@ -41901,7 +41921,14 @@ class ls extends Mi {
|
|
|
41901
41921
|
this.rerenderAtCurrentDimensions();
|
|
41902
41922
|
}
|
|
41903
41923
|
async rerenderAtCurrentDimensions() {
|
|
41904
|
-
this.pendingRender && await this.pendingRender
|
|
41924
|
+
this.pendingRender && await this.pendingRender.catch(() => {
|
|
41925
|
+
}), this.sprite && (this.contentContainer.removeChild(this.sprite), this.sprite.destroy(), this.sprite = null), this.texture && (this.texture.destroy(!0), this.texture = null), this.pendingRender = this.doRender();
|
|
41926
|
+
try {
|
|
41927
|
+
await this.pendingRender;
|
|
41928
|
+
} finally {
|
|
41929
|
+
this.pendingRender = null;
|
|
41930
|
+
}
|
|
41931
|
+
this.clearPlaceholder();
|
|
41905
41932
|
}
|
|
41906
41933
|
async doRender() {
|
|
41907
41934
|
const t = this.clipConfiguration.asset, i = this.clipConfiguration.width || this.edit.size.width, r = this.clipConfiguration.height || this.edit.size.height, n = await CV(t, {
|
|
@@ -42514,7 +42541,7 @@ class RK extends Mi {
|
|
|
42514
42541
|
try {
|
|
42515
42542
|
await this.loadVideo(), this.configureKeyframes();
|
|
42516
42543
|
} catch (t) {
|
|
42517
|
-
console.warn(`[VideoPlayer.load] FAILED clipId=${this.clipId}:`, t), this.createFallbackGraphic();
|
|
42544
|
+
console.warn(`[VideoPlayer.load] FAILED clipId=${this.clipId}:`, t), this.recordLoadError(t), this.createFallbackGraphic();
|
|
42518
42545
|
} finally {
|
|
42519
42546
|
this.skipVideoUpdate = !1;
|
|
42520
42547
|
}
|
|
@@ -42545,11 +42572,11 @@ class RK extends Mi {
|
|
|
42545
42572
|
}
|
|
42546
42573
|
/** Reload the video asset when asset.src changes (e.g., merge field update) */
|
|
42547
42574
|
async reloadAsset() {
|
|
42548
|
-
this.skipVideoUpdate = !0, this.isPlaying = !1, this.syncTimer = 0, this.activeSyncTimer = 0;
|
|
42575
|
+
this.skipVideoUpdate = !0, this.isPlaying = !1, this.syncTimer = 0, this.activeSyncTimer = 0, this.loadError = null;
|
|
42549
42576
|
try {
|
|
42550
42577
|
this.disposeVideo(), this.clearPlaceholder(), await this.loadVideo();
|
|
42551
42578
|
} catch (t) {
|
|
42552
|
-
console.warn(`[VideoPlayer.reloadAsset] FAILED clipId=${this.clipId}:`, t), this.createFallbackGraphic();
|
|
42579
|
+
console.warn(`[VideoPlayer.reloadAsset] FAILED clipId=${this.clipId}:`, t), this.recordLoadError(t), this.createFallbackGraphic();
|
|
42553
42580
|
} finally {
|
|
42554
42581
|
this.skipVideoUpdate = !1;
|
|
42555
42582
|
}
|
|
@@ -42734,12 +42761,12 @@ class y0 {
|
|
|
42734
42761
|
if (!t) throw new Error("AddTrackCommand.execute: context is required");
|
|
42735
42762
|
const i = t.getDocument();
|
|
42736
42763
|
if (!i) throw new Error("AddTrackCommand.execute: document is required");
|
|
42737
|
-
if (i.addTrack(this.trackIdx, this.preparedTrack), t.resolve(), t.updateDuration(), t.emitEvent(
|
|
42764
|
+
if (i.addTrack(this.trackIdx, this.preparedTrack), t.resolve(), t.updateDuration(), t.emitEvent(Z.TrackAdded, {
|
|
42738
42765
|
trackIndex: this.trackIdx,
|
|
42739
42766
|
totalTracks: i.getTrackCount()
|
|
42740
42767
|
}), this.preparedTrack)
|
|
42741
42768
|
for (let r = 0; r < this.preparedTrack.clips.length; r += 1)
|
|
42742
|
-
t.emitEvent(
|
|
42769
|
+
t.emitEvent(Z.ClipAdded, {
|
|
42743
42770
|
trackIndex: this.trackIdx,
|
|
42744
42771
|
clipIndex: r
|
|
42745
42772
|
});
|
|
@@ -42752,11 +42779,11 @@ class y0 {
|
|
|
42752
42779
|
const n = i.getTrack(this.trackIdx)?.clips.length ?? 0;
|
|
42753
42780
|
i.removeTrack(this.trackIdx), t.resolve(), t.updateDuration();
|
|
42754
42781
|
for (let s = n - 1; s >= 0; s -= 1)
|
|
42755
|
-
t.emitEvent(
|
|
42782
|
+
t.emitEvent(Z.ClipDeleted, {
|
|
42756
42783
|
trackIndex: this.trackIdx,
|
|
42757
42784
|
clipIndex: s
|
|
42758
42785
|
});
|
|
42759
|
-
return t.emitEvent(
|
|
42786
|
+
return t.emitEvent(Z.TrackRemoved, { trackIndex: this.trackIdx }), Xt();
|
|
42760
42787
|
}
|
|
42761
42788
|
dispose() {
|
|
42762
42789
|
}
|
|
@@ -43139,7 +43166,7 @@ class _X {
|
|
|
43139
43166
|
const r = t.documentAddClip(this.trackIdx, this.clip);
|
|
43140
43167
|
this.addedClipId = r.id, this.convertedReferences && this.convertedReferences.size > 0 && mb(i, this.convertedReferences), t.resolve(), t.updateDuration();
|
|
43141
43168
|
const a = t.getDocumentTrack(this.trackIdx)?.clips?.findIndex((o) => o.id === this.addedClipId) ?? -1;
|
|
43142
|
-
return t.emitEvent(
|
|
43169
|
+
return t.emitEvent(Z.ClipAdded, {
|
|
43143
43170
|
trackIndex: this.trackIdx,
|
|
43144
43171
|
clipIndex: a
|
|
43145
43172
|
}), Xt();
|
|
@@ -43158,7 +43185,7 @@ class _X {
|
|
|
43158
43185
|
this.convertedReferences = pb(i, t.getEditState(), a, l);
|
|
43159
43186
|
}
|
|
43160
43187
|
const o = t.getSelectedClip();
|
|
43161
|
-
return o && o.clipId === this.addedClipId && (t.setSelectedClip(null), t.emitEvent(
|
|
43188
|
+
return o && o.clipId === this.addedClipId && (t.setSelectedClip(null), t.emitEvent(Z.SelectionCleared)), t.documentRemoveClip(this.trackIdx, s), t.resolve(), t.updateDuration(), t.emitEvent(Z.ClipDeleted, {
|
|
43162
43189
|
trackIndex: this.trackIdx,
|
|
43163
43190
|
clipIndex: s
|
|
43164
43191
|
}), Xt();
|
|
@@ -43227,7 +43254,7 @@ class gb {
|
|
|
43227
43254
|
s.add(`${this.trackIdx}:${a}`);
|
|
43228
43255
|
this.convertedReferences = kX(i, t.getEditState(), n, s);
|
|
43229
43256
|
}
|
|
43230
|
-
return i.removeTrack(this.trackIdx), t.resolve(), t.updateDuration(), t.emitEvent(
|
|
43257
|
+
return i.removeTrack(this.trackIdx), t.resolve(), t.updateDuration(), t.emitEvent(Z.TrackRemoved, { trackIndex: this.trackIdx }), Xt();
|
|
43231
43258
|
}
|
|
43232
43259
|
undo(t) {
|
|
43233
43260
|
if (!t) throw new Error("DeleteTrackCommand.undo: context is required");
|
|
@@ -43236,7 +43263,7 @@ class gb {
|
|
|
43236
43263
|
i.addTrack(this.trackIdx);
|
|
43237
43264
|
for (let r = 0; r < this.deletedClips.length; r += 1)
|
|
43238
43265
|
i.addClip(this.trackIdx, this.deletedClips[r], r);
|
|
43239
|
-
return this.convertedReferences && this.convertedReferences.size > 0 && mb(i, this.convertedReferences), t.resolve(), t.updateDuration(), t.emitEvent(
|
|
43266
|
+
return this.convertedReferences && this.convertedReferences.size > 0 && mb(i, this.convertedReferences), t.resolve(), t.updateDuration(), t.emitEvent(Z.TrackAdded, { trackIndex: this.trackIdx, totalTracks: i.getTrackCount() }), Xt();
|
|
43240
43267
|
}
|
|
43241
43268
|
dispose() {
|
|
43242
43269
|
this.deletedClips = [], this.convertedReferences = void 0;
|
|
@@ -43273,9 +43300,9 @@ class _p {
|
|
|
43273
43300
|
}
|
|
43274
43301
|
t.clearClipError(this.trackIdx, this.clipIdx);
|
|
43275
43302
|
const s = t.getSelectedClip();
|
|
43276
|
-
s && this.deletedClipId && s.clipId === this.deletedClipId && (t.setSelectedClip(null), t.emitEvent(
|
|
43303
|
+
s && this.deletedClipId && s.clipId === this.deletedClipId && (t.setSelectedClip(null), t.emitEvent(Z.SelectionCleared)), t.documentRemoveClip(this.trackIdx, this.clipIdx);
|
|
43277
43304
|
const a = i.getTrack(this.trackIdx);
|
|
43278
|
-
return a && a.clips.length === 0 && (this.deleteTrackCommand = new gb(this.trackIdx), this.deleteTrackCommand.execute(t).status === "success" && (this.trackWasDeleted = !0)), t.resolve(), t.updateDuration(), t.emitEvent(
|
|
43305
|
+
return a && a.clips.length === 0 && (this.deleteTrackCommand = new gb(this.trackIdx), this.deleteTrackCommand.execute(t).status === "success" && (this.trackWasDeleted = !0)), t.resolve(), t.updateDuration(), t.emitEvent(Z.ClipDeleted, {
|
|
43279
43306
|
trackIndex: this.trackIdx,
|
|
43280
43307
|
clipIndex: this.clipIdx
|
|
43281
43308
|
}), Xt();
|
|
@@ -43287,10 +43314,10 @@ class _p {
|
|
|
43287
43314
|
if (!i) throw new Error("DeleteClipCommand.undo: no document");
|
|
43288
43315
|
this.trackWasDeleted && i.addTrack(this.trackIdx);
|
|
43289
43316
|
const n = t.documentAddClip(this.trackIdx, this.deletedClipConfig, this.clipIdx).id;
|
|
43290
|
-
return n && this.storedBindings && this.storedBindings.size > 0 && i.setClipBindingsForClip(n, this.storedBindings), this.convertedReferences && this.convertedReferences.size > 0 && mb(i, this.convertedReferences), t.resolve(), t.updateDuration(), this.trackWasDeleted && (t.emitEvent(
|
|
43317
|
+
return n && this.storedBindings && this.storedBindings.size > 0 && i.setClipBindingsForClip(n, this.storedBindings), this.convertedReferences && this.convertedReferences.size > 0 && mb(i, this.convertedReferences), t.resolve(), t.updateDuration(), this.trackWasDeleted && (t.emitEvent(Z.TrackAdded, {
|
|
43291
43318
|
trackIndex: this.trackIdx,
|
|
43292
43319
|
totalTracks: i.getTrackCount()
|
|
43293
|
-
}), this.trackWasDeleted = !1), t.emitEvent(
|
|
43320
|
+
}), this.trackWasDeleted = !1), t.emitEvent(Z.ClipRestored, {
|
|
43294
43321
|
trackIndex: this.trackIdx,
|
|
43295
43322
|
clipIndex: this.clipIdx
|
|
43296
43323
|
}), Xt();
|
|
@@ -43328,7 +43355,7 @@ class fs {
|
|
|
43328
43355
|
const a = i.getClip(this.effectiveToTrackIndex, this.newClipIndex);
|
|
43329
43356
|
if (!this.previousDocClip || !a)
|
|
43330
43357
|
throw new Error(`MoveClipCommand: document clip not found after mutation at ${this.effectiveToTrackIndex}/${this.newClipIndex}`);
|
|
43331
|
-
t.emitEvent(
|
|
43358
|
+
t.emitEvent(Z.ClipUpdated, {
|
|
43332
43359
|
previous: {
|
|
43333
43360
|
clip: ke(this.previousDocClip),
|
|
43334
43361
|
trackIndex: this.fromTrackIndex,
|
|
@@ -43341,7 +43368,7 @@ class fs {
|
|
|
43341
43368
|
}
|
|
43342
43369
|
});
|
|
43343
43370
|
const o = this.clipId ? t.getPlayerByClipId(this.clipId) : r;
|
|
43344
|
-
return o && (t.setSelectedClip(o), t.emitEvent(
|
|
43371
|
+
return o && (t.setSelectedClip(o), t.emitEvent(Z.ClipSelected, {
|
|
43345
43372
|
clip: ke(a),
|
|
43346
43373
|
trackIndex: this.effectiveToTrackIndex,
|
|
43347
43374
|
clipIndex: this.newClipIndex
|
|
@@ -43360,7 +43387,7 @@ class fs {
|
|
|
43360
43387
|
start: this.originalStart
|
|
43361
43388
|
}), t.resolve(), t.updateDuration(), this.fromTrackIndex !== this.effectiveToTrackIndex && t.propagateTimingChanges(this.effectiveToTrackIndex, this.newClipIndex - 1), t.propagateTimingChanges(this.fromTrackIndex, this.fromClipIndex);
|
|
43362
43389
|
const s = i.getClip(this.fromTrackIndex, this.fromClipIndex);
|
|
43363
|
-
this.previousDocClip && t.emitEvent(
|
|
43390
|
+
this.previousDocClip && t.emitEvent(Z.ClipUpdated, {
|
|
43364
43391
|
previous: {
|
|
43365
43392
|
clip: ke(n ?? this.previousDocClip),
|
|
43366
43393
|
trackIndex: this.effectiveToTrackIndex,
|
|
@@ -43373,7 +43400,7 @@ class fs {
|
|
|
43373
43400
|
}
|
|
43374
43401
|
});
|
|
43375
43402
|
const a = t.getPlayerByClipId(this.clipId);
|
|
43376
|
-
return a && s && (t.setSelectedClip(a), t.emitEvent(
|
|
43403
|
+
return a && s && (t.setSelectedClip(a), t.emitEvent(Z.ClipSelected, {
|
|
43377
43404
|
clip: ke(s),
|
|
43378
43405
|
trackIndex: this.fromTrackIndex,
|
|
43379
43406
|
clipIndex: this.fromClipIndex
|
|
@@ -43559,7 +43586,7 @@ class Ed {
|
|
|
43559
43586
|
const g = t.getDocumentClip(o, l);
|
|
43560
43587
|
if (!this.previousDocClip || !g)
|
|
43561
43588
|
throw new Error(`SetUpdatedClipCommand: document clip not found after mutation at ${o}/${l}`);
|
|
43562
|
-
return t.emitEvent(
|
|
43589
|
+
return t.emitEvent(Z.ClipUpdated, {
|
|
43563
43590
|
previous: { clip: ke(this.previousDocClip), trackIndex: o, clipIndex: l },
|
|
43564
43591
|
current: { clip: ke(g), trackIndex: o, clipIndex: l }
|
|
43565
43592
|
}), Xt();
|
|
@@ -43585,7 +43612,7 @@ class Ed {
|
|
|
43585
43612
|
const d = t.getDocumentClip(s, a);
|
|
43586
43613
|
if (!o || !d)
|
|
43587
43614
|
throw new Error(`SetUpdatedClipCommand: document clip not found after undo at ${s}/${a}`);
|
|
43588
|
-
return t.emitEvent(
|
|
43615
|
+
return t.emitEvent(Z.ClipUpdated, {
|
|
43589
43616
|
previous: { clip: ke(o), trackIndex: s, clipIndex: a },
|
|
43590
43617
|
current: { clip: ke(d), trackIndex: s, clipIndex: a }
|
|
43591
43618
|
}), Xt();
|
|
@@ -43620,7 +43647,7 @@ class NX {
|
|
|
43620
43647
|
}), t.updateDuration();
|
|
43621
43648
|
const l = t.getDocumentClip(this.trackIndex, this.clipIndex);
|
|
43622
43649
|
if (!l) throw new Error(`UpdateClipTimingCommand: document clip not found after mutation at ${this.trackIndex}/${this.clipIndex}`);
|
|
43623
|
-
return t.emitEvent(
|
|
43650
|
+
return t.emitEvent(Z.ClipUpdated, {
|
|
43624
43651
|
previous: { trackIndex: this.trackIndex, clipIndex: this.clipIndex, clip: ke(a) },
|
|
43625
43652
|
current: { trackIndex: this.trackIndex, clipIndex: this.clipIndex, clip: ke(l) }
|
|
43626
43653
|
}), t.propagateTimingChanges(this.trackIndex, this.clipIndex), Xt();
|
|
@@ -43640,7 +43667,7 @@ class NX {
|
|
|
43640
43667
|
const a = t.getDocumentClip(this.trackIndex, this.clipIndex);
|
|
43641
43668
|
if (!n || !a)
|
|
43642
43669
|
throw new Error(`UpdateClipTimingCommand: document clip not found after undo at ${this.trackIndex}/${this.clipIndex}`);
|
|
43643
|
-
return t.emitEvent(
|
|
43670
|
+
return t.emitEvent(Z.ClipUpdated, {
|
|
43644
43671
|
previous: { trackIndex: this.trackIndex, clipIndex: this.clipIndex, clip: ke(n) },
|
|
43645
43672
|
current: { trackIndex: this.trackIndex, clipIndex: this.clipIndex, clip: ke(a) }
|
|
43646
43673
|
}), t.propagateTimingChanges(this.trackIndex, this.clipIndex), Xt();
|
|
@@ -43672,7 +43699,7 @@ class MX {
|
|
|
43672
43699
|
const l = t.getDocumentClip(this.trackIndex, this.clipIndex);
|
|
43673
43700
|
if (!this.previousDocClip || !l)
|
|
43674
43701
|
throw new Error(`UpdateTextContentCommand: document clip not found after mutation at ${this.trackIndex}/${this.clipIndex}`);
|
|
43675
|
-
return t.emitEvent(
|
|
43702
|
+
return t.emitEvent(Z.ClipUpdated, {
|
|
43676
43703
|
previous: { clip: ke(this.previousDocClip), trackIndex: this.trackIndex, clipIndex: this.clipIndex },
|
|
43677
43704
|
current: { clip: ke(l), trackIndex: this.trackIndex, clipIndex: this.clipIndex }
|
|
43678
43705
|
}), Xt();
|
|
@@ -43689,7 +43716,7 @@ class MX {
|
|
|
43689
43716
|
if (this.previousDocClip) {
|
|
43690
43717
|
if (!r || !o)
|
|
43691
43718
|
throw new Error(`UpdateTextContentCommand: document clip not found after undo at ${this.trackIndex}/${this.clipIndex}`);
|
|
43692
|
-
t.emitEvent(
|
|
43719
|
+
t.emitEvent(Z.ClipUpdated, {
|
|
43693
43720
|
previous: { clip: ke(r), trackIndex: this.trackIndex, clipIndex: this.clipIndex },
|
|
43694
43721
|
current: { clip: ke(o), trackIndex: this.trackIndex, clipIndex: this.clipIndex }
|
|
43695
43722
|
});
|
|
@@ -43833,10 +43860,10 @@ class RX {
|
|
|
43833
43860
|
}
|
|
43834
43861
|
}
|
|
43835
43862
|
setupEventListeners() {
|
|
43836
|
-
this.events.on(Et.PlayerLoaded, this.onPlayerLoadedBound), this.events.on(
|
|
43863
|
+
this.events.on(Et.PlayerLoaded, this.onPlayerLoadedBound), this.events.on(Z.ClipUpdated, this.onClipChangedBound), this.events.on(Et.PlayerMovedBetweenTracks, this.onClipChangedBound);
|
|
43837
43864
|
}
|
|
43838
43865
|
removeEventListeners() {
|
|
43839
|
-
this.events.off(Et.PlayerLoaded, this.onPlayerLoadedBound), this.events.off(
|
|
43866
|
+
this.events.off(Et.PlayerLoaded, this.onPlayerLoadedBound), this.events.off(Z.ClipUpdated, this.onClipChangedBound), this.events.off(Et.PlayerMovedBetweenTracks, this.onClipChangedBound);
|
|
43840
43867
|
}
|
|
43841
43868
|
processPendingMaskCleanup() {
|
|
43842
43869
|
for (let t = this.pendingMaskCleanup.length - 1; t >= 0; t -= 1) {
|
|
@@ -43889,7 +43916,7 @@ class UX {
|
|
|
43889
43916
|
* @param options.silent If true, suppresses event emission (for command-based operations)
|
|
43890
43917
|
*/
|
|
43891
43918
|
register(t, i) {
|
|
43892
|
-
this.fields.set(t.name, t), i?.silent || this.events.emit(
|
|
43919
|
+
this.fields.set(t.name, t), i?.silent || this.events.emit(Z.MergeFieldChanged, { fields: this.getAll() });
|
|
43893
43920
|
}
|
|
43894
43921
|
/**
|
|
43895
43922
|
* Remove a merge field by name.
|
|
@@ -43898,7 +43925,7 @@ class UX {
|
|
|
43898
43925
|
*/
|
|
43899
43926
|
remove(t, i) {
|
|
43900
43927
|
const r = this.fields.delete(t);
|
|
43901
|
-
return r && !i?.silent && this.events.emit(
|
|
43928
|
+
return r && !i?.silent && this.events.emit(Z.MergeFieldChanged, { fields: this.getAll() }), r;
|
|
43902
43929
|
}
|
|
43903
43930
|
/** Get a merge field by name */
|
|
43904
43931
|
get(t) {
|
|
@@ -44029,7 +44056,7 @@ class jX {
|
|
|
44029
44056
|
size: r
|
|
44030
44057
|
}, delete n.output.resolution, delete n.output.aspectRatio);
|
|
44031
44058
|
const s = this.edit.getDocument();
|
|
44032
|
-
s?.setSize(r), s?.clearResolution(), s?.clearAspectRatio(), this.edit.updateCanvasForSize(), this.edit.getInternalEvents().emit(
|
|
44059
|
+
s?.setSize(r), s?.clearResolution(), s?.clearAspectRatio(), this.edit.updateCanvasForSize(), this.edit.getInternalEvents().emit(Z.OutputResized, r);
|
|
44033
44060
|
}
|
|
44034
44061
|
getSize() {
|
|
44035
44062
|
return this.edit.size;
|
|
@@ -44043,7 +44070,7 @@ class jX {
|
|
|
44043
44070
|
r && (r.output = {
|
|
44044
44071
|
...r.output,
|
|
44045
44072
|
fps: i
|
|
44046
|
-
}), this.edit.getDocument()?.setFps(i), this.edit.getInternalEvents().emit(
|
|
44073
|
+
}), this.edit.getDocument()?.setFps(i), this.edit.getInternalEvents().emit(Z.OutputFpsChanged, { fps: t });
|
|
44047
44074
|
}
|
|
44048
44075
|
getFps() {
|
|
44049
44076
|
return this.edit.getResolvedEdit()?.output?.fps ?? 30;
|
|
@@ -44054,7 +44081,7 @@ class jX {
|
|
|
44054
44081
|
r && (r.output = {
|
|
44055
44082
|
...r.output,
|
|
44056
44083
|
format: i
|
|
44057
|
-
}), this.edit.getDocument()?.setFormat(i), this.edit.getInternalEvents().emit(
|
|
44084
|
+
}), this.edit.getDocument()?.setFormat(i), this.edit.getInternalEvents().emit(Z.OutputFormatChanged, { format: i });
|
|
44058
44085
|
}
|
|
44059
44086
|
getFormat() {
|
|
44060
44087
|
return this.edit.getResolvedEdit()?.output?.format ?? "mp4";
|
|
@@ -44065,7 +44092,7 @@ class jX {
|
|
|
44065
44092
|
r && (r.output = {
|
|
44066
44093
|
...r.output,
|
|
44067
44094
|
destinations: i
|
|
44068
|
-
}), this.edit.getInternalEvents().emit(
|
|
44095
|
+
}), this.edit.getInternalEvents().emit(Z.OutputDestinationsChanged, { destinations: i });
|
|
44069
44096
|
}
|
|
44070
44097
|
getDestinations() {
|
|
44071
44098
|
return this.edit.getResolvedEdit()?.output?.destinations ?? [];
|
|
@@ -44078,7 +44105,7 @@ class jX {
|
|
|
44078
44105
|
resolution: i
|
|
44079
44106
|
}, delete r.output.size);
|
|
44080
44107
|
const a = this.edit.getDocument();
|
|
44081
|
-
a?.setResolution(i), a?.clearSize(), this.edit.updateCanvasForSize(), this.edit.getInternalEvents().emit(
|
|
44108
|
+
a?.setResolution(i), a?.clearSize(), this.edit.updateCanvasForSize(), this.edit.getInternalEvents().emit(Z.OutputResolutionChanged, { resolution: i }), this.edit.getInternalEvents().emit(Z.OutputResized, { width: s.width, height: s.height });
|
|
44082
44109
|
}
|
|
44083
44110
|
getResolution() {
|
|
44084
44111
|
return this.edit.getResolvedEdit()?.output?.resolution;
|
|
@@ -44090,7 +44117,7 @@ class jX {
|
|
|
44090
44117
|
r && (r.output = {
|
|
44091
44118
|
...r.output,
|
|
44092
44119
|
aspectRatio: i
|
|
44093
|
-
}), this.edit.getDocument()?.setAspectRatio(i), this.edit.getInternalEvents().emit(
|
|
44120
|
+
}), this.edit.getDocument()?.setAspectRatio(i), this.edit.getInternalEvents().emit(Z.OutputAspectRatioChanged, { aspectRatio: i });
|
|
44094
44121
|
return;
|
|
44095
44122
|
}
|
|
44096
44123
|
const s = $f(n, i);
|
|
@@ -44099,7 +44126,7 @@ class jX {
|
|
|
44099
44126
|
aspectRatio: i
|
|
44100
44127
|
}, delete r.output.size);
|
|
44101
44128
|
const a = this.edit.getDocument();
|
|
44102
|
-
a?.setAspectRatio(i), a?.clearSize(), this.edit.updateCanvasForSize(), this.edit.getInternalEvents().emit(
|
|
44129
|
+
a?.setAspectRatio(i), a?.clearSize(), this.edit.updateCanvasForSize(), this.edit.getInternalEvents().emit(Z.OutputAspectRatioChanged, { aspectRatio: i }), this.edit.getInternalEvents().emit(Z.OutputResized, { width: s.width, height: s.height });
|
|
44103
44130
|
}
|
|
44104
44131
|
getAspectRatio() {
|
|
44105
44132
|
return this.edit.getResolvedEdit()?.output?.aspectRatio;
|
|
@@ -44138,7 +44165,7 @@ class HX {
|
|
|
44138
44165
|
if (r) {
|
|
44139
44166
|
this.selectedClip = r;
|
|
44140
44167
|
const n = this.edit.getDocumentClip(t, i);
|
|
44141
|
-
n && this.edit.getInternalEvents().emit(
|
|
44168
|
+
n && this.edit.getInternalEvents().emit(Z.ClipSelected, {
|
|
44142
44169
|
clip: ke(n),
|
|
44143
44170
|
trackIndex: t,
|
|
44144
44171
|
clipIndex: i
|
|
@@ -44156,7 +44183,7 @@ class HX {
|
|
|
44156
44183
|
* Clear the current selection.
|
|
44157
44184
|
*/
|
|
44158
44185
|
clearSelection() {
|
|
44159
|
-
this.selectedClip = null, this.edit.getInternalEvents().emit(
|
|
44186
|
+
this.selectedClip = null, this.edit.getInternalEvents().emit(Z.SelectionCleared);
|
|
44160
44187
|
}
|
|
44161
44188
|
/**
|
|
44162
44189
|
* Check if a specific clip is selected by indices.
|
|
@@ -44205,7 +44232,7 @@ class HX {
|
|
|
44205
44232
|
r && (this.copiedClip = {
|
|
44206
44233
|
trackIndex: t,
|
|
44207
44234
|
clipConfiguration: structuredClone(r)
|
|
44208
|
-
}, this.edit.getInternalEvents().emit(
|
|
44235
|
+
}, this.edit.getInternalEvents().emit(Z.ClipCopied, { trackIndex: t, clipIndex: i }), GX(LK(r)).catch(() => {
|
|
44209
44236
|
}));
|
|
44210
44237
|
}
|
|
44211
44238
|
/**
|
|
@@ -44350,7 +44377,7 @@ class KX {
|
|
|
44350
44377
|
}), o.reconfigureAfterRestore());
|
|
44351
44378
|
}
|
|
44352
44379
|
}
|
|
44353
|
-
this.edit.updateTotalDuration(), this.edit.getInternalEvents().emit(
|
|
44380
|
+
this.edit.updateTotalDuration(), this.edit.getInternalEvents().emit(Z.TimelineUpdated, {
|
|
44354
44381
|
current: this.edit.getEdit()
|
|
44355
44382
|
});
|
|
44356
44383
|
}
|
|
@@ -45402,16 +45429,16 @@ class nJ {
|
|
|
45402
45429
|
const s = this.edit.createPlayerFromAssetType(t);
|
|
45403
45430
|
s.layer = r + 1, s.clipId = i, this.edit.registerPlayerByClipId(i, s), this.edit.addPlayerToTracksArray(r, s), this.edit.addPlayerToContainer(r, s);
|
|
45404
45431
|
const a = t.asset?.type ?? "unknown", o = s.load().then(() => {
|
|
45405
|
-
this.edit.getInternalEvents().emit(Et.PlayerLoaded, {
|
|
45432
|
+
s.loadError && this.reportLoadFailure(s, s.loadError), this.edit.getInternalEvents().emit(Et.PlayerLoaded, {
|
|
45406
45433
|
player: s,
|
|
45407
45434
|
trackIndex: r,
|
|
45408
45435
|
clipIndex: n
|
|
45409
|
-
}), Cu(t.asset) && this.edit.getInternalEvents().emit(
|
|
45436
|
+
}), Cu(t.asset) && this.edit.getInternalEvents().emit(Z.ClipUnresolved, {
|
|
45410
45437
|
trackIndex: r,
|
|
45411
45438
|
clipIndex: n,
|
|
45412
45439
|
assetType: a,
|
|
45413
45440
|
clipId: i
|
|
45414
|
-
}), s.needsResolution && this.edit.getInternalEvents().emit(
|
|
45441
|
+
}), s.needsResolution && this.edit.getInternalEvents().emit(Z.ClipUnresolved, {
|
|
45415
45442
|
trackIndex: r,
|
|
45416
45443
|
clipIndex: n,
|
|
45417
45444
|
assetType: a,
|
|
@@ -45419,7 +45446,7 @@ class nJ {
|
|
|
45419
45446
|
});
|
|
45420
45447
|
}).catch((l) => {
|
|
45421
45448
|
const u = l instanceof Error ? l.message : String(l);
|
|
45422
|
-
this.edit.getInternalEvents().emit(
|
|
45449
|
+
this.edit.getInternalEvents().emit(Z.ClipLoadFailed, {
|
|
45423
45450
|
trackIndex: r,
|
|
45424
45451
|
clipIndex: n,
|
|
45425
45452
|
error: u,
|
|
@@ -45462,6 +45489,16 @@ class nJ {
|
|
|
45462
45489
|
sx.has(a) || (n[a] !== void 0 ? r[a] = n[a] : delete r[a]);
|
|
45463
45490
|
t.reconfigureAfterRestore();
|
|
45464
45491
|
}
|
|
45492
|
+
/**
|
|
45493
|
+
* Announce a player that couldn't show its asset. Its position is looked up now, not when the
|
|
45494
|
+
* load started, because clips can move while an asset is still loading.
|
|
45495
|
+
*/
|
|
45496
|
+
reportLoadFailure(t, i) {
|
|
45497
|
+
const r = this.edit.findClipIndices(t);
|
|
45498
|
+
if (!r) return;
|
|
45499
|
+
const n = t.clipConfiguration.asset?.type ?? "unknown";
|
|
45500
|
+
this.edit.getInternalEvents().emit(Z.ClipLoadFailed, { ...r, error: i, assetType: n });
|
|
45501
|
+
}
|
|
45465
45502
|
/**
|
|
45466
45503
|
* Check if asset properties changed (excluding type, which is handled separately).
|
|
45467
45504
|
*/
|
|
@@ -45482,9 +45519,9 @@ class nJ {
|
|
|
45482
45519
|
s = a !== o;
|
|
45483
45520
|
}
|
|
45484
45521
|
s && t.reloadAsset ? t.reloadAsset().then(() => {
|
|
45485
|
-
t.reconfigureAfterRestore();
|
|
45522
|
+
t.reconfigureAfterRestore(), t.loadError && this.reportLoadFailure(t, t.loadError);
|
|
45486
45523
|
}).catch((a) => {
|
|
45487
|
-
console.error("Failed to reload asset:", a);
|
|
45524
|
+
console.error("Failed to reload asset:", a), this.reportLoadFailure(t, a instanceof Error ? a.message : String(a));
|
|
45488
45525
|
}) : t.reconfigureAfterRestore();
|
|
45489
45526
|
}
|
|
45490
45527
|
/**
|
|
@@ -45868,9 +45905,9 @@ class Ys {
|
|
|
45868
45905
|
), this.playerReconciler = new nJ(this), this.assetGenerator = new iJ({
|
|
45869
45906
|
getClipAsset: (n) => this.getResolvedClipById(n)?.asset,
|
|
45870
45907
|
applyGeneratedSrc: (n, s) => this.applyGeneratedSrc(n, s),
|
|
45871
|
-
emitStarted: (n) => this.internalEvents.emit(
|
|
45872
|
-
emitCompleted: (n) => this.internalEvents.emit(
|
|
45873
|
-
emitFailed: (n, s) => this.internalEvents.emit(
|
|
45908
|
+
emitStarted: (n) => this.internalEvents.emit(Z.ClipGenerationStarted, { clipId: n }),
|
|
45909
|
+
emitCompleted: (n) => this.internalEvents.emit(Z.ClipGenerationCompleted, { clipId: n }),
|
|
45910
|
+
emitFailed: (n, s) => this.internalEvents.emit(Z.ClipGenerationFailed, { clipId: n, error: s }),
|
|
45874
45911
|
emitStatusChanged: (n) => this.internalEvents.emit(Et.GenerationStatusChanged, { clipId: n })
|
|
45875
45912
|
}), this.mergeFieldService = new UX(this.internalEvents), this.outputSettings = new jX(this), this.selectionManager = new HX(this), this.timingManager = new KX(this), this.setupIntentListeners(), this.setupGenerationListeners();
|
|
45876
45913
|
}
|
|
@@ -45901,7 +45938,7 @@ class Ys {
|
|
|
45901
45938
|
this.lumaMaskController.initialize(), await this.playerReconciler.reconcileInitial(a), this.normalizeLumaAttachments();
|
|
45902
45939
|
for (const [o, l] of n)
|
|
45903
45940
|
l.size > 0 && this.document.setClipBindingsForClip(o, l);
|
|
45904
|
-
await this.timingManager.resolveAllTiming(), this.updateTotalDuration(), s.timeline.soundtrack && await this.loadSoundtrack(s.timeline.soundtrack), this.internalEvents.emit(
|
|
45941
|
+
await this.timingManager.resolveAllTiming(), this.updateTotalDuration(), s.timeline.soundtrack && await this.loadSoundtrack(s.timeline.soundtrack), this.internalEvents.emit(Z.TimelineUpdated, { current: this.getEdit() }), this.emitEditChanged(t);
|
|
45905
45942
|
}
|
|
45906
45943
|
/** @internal */
|
|
45907
45944
|
getInternalEvents() {
|
|
@@ -45933,10 +45970,10 @@ class Ys {
|
|
|
45933
45970
|
}), this.internalEvents.emit(Et.ViewportNeedsZoomToFit);
|
|
45934
45971
|
}
|
|
45935
45972
|
play() {
|
|
45936
|
-
this.isPlaying = !0, this.playWallAnchorMs = performance.now(), this.playTimeAnchorSeconds = this.playbackTime, this.internalEvents.emit(
|
|
45973
|
+
this.isPlaying = !0, this.playWallAnchorMs = performance.now(), this.playTimeAnchorSeconds = this.playbackTime, this.internalEvents.emit(Z.PlaybackPlay);
|
|
45937
45974
|
}
|
|
45938
45975
|
pause() {
|
|
45939
|
-
this.isPlaying = !1, this.internalEvents.emit(
|
|
45976
|
+
this.isPlaying = !1, this.internalEvents.emit(Z.PlaybackPause);
|
|
45940
45977
|
}
|
|
45941
45978
|
seek(t) {
|
|
45942
45979
|
this.playbackTime = Math.max(0, Math.min(t, this.totalDuration)), this.pause(), this.update(0, Ys.SEEK_ELAPSED_MARKER);
|
|
@@ -46278,12 +46315,15 @@ class Ys {
|
|
|
46278
46315
|
* @internal
|
|
46279
46316
|
*/
|
|
46280
46317
|
getClipError(t, i) {
|
|
46281
|
-
const r = this.
|
|
46282
|
-
if (r)
|
|
46283
|
-
|
|
46284
|
-
|
|
46285
|
-
|
|
46286
|
-
|
|
46318
|
+
const r = this.getPlayerClip(t, i);
|
|
46319
|
+
if (r?.loadError)
|
|
46320
|
+
return { error: r.loadError, assetType: r.clipConfiguration.asset?.type ?? "unknown" };
|
|
46321
|
+
const n = this.clipErrors.get(`${t}-${i}`);
|
|
46322
|
+
if (n) return n;
|
|
46323
|
+
const s = this.getResolvedClip(t, i)?.asset;
|
|
46324
|
+
if (!s || !("src" in s) || typeof s.src != "string") return null;
|
|
46325
|
+
const a = pa(s.src), o = this.getClipId(t, i), l = s.type === "video" && o ? `${o}:${a}` : a, u = this.assetLoader.loadTracker.registry[l];
|
|
46326
|
+
return u?.status === "failed" ? { error: u.error ?? `Invalid source '${s.src}'.`, assetType: s.type } : null;
|
|
46287
46327
|
}
|
|
46288
46328
|
/**
|
|
46289
46329
|
* Clear the error for a deleted clip and shift indices for remaining errors.
|
|
@@ -46513,7 +46553,7 @@ class Ys {
|
|
|
46513
46553
|
const t = this.commandHistory[this.commandIndex];
|
|
46514
46554
|
if (!t.undo) return Kt("Command cannot be undone");
|
|
46515
46555
|
const i = this.createCommandContext(), r = await Promise.resolve(t.undo(i));
|
|
46516
|
-
return this.commandIndex -= 1, this.internalEvents.emit(
|
|
46556
|
+
return this.commandIndex -= 1, this.internalEvents.emit(Z.EditUndo, { command: t.name }), this.emitEditChanged(`undo:${t.name}`), r;
|
|
46517
46557
|
});
|
|
46518
46558
|
}
|
|
46519
46559
|
/**
|
|
@@ -46526,7 +46566,7 @@ class Ys {
|
|
|
46526
46566
|
return this.commandQueue.enqueue(async () => {
|
|
46527
46567
|
if (this.commandIndex >= this.commandHistory.length - 1) return Kt("Nothing to redo");
|
|
46528
46568
|
const t = this.commandIndex + 1, i = this.commandHistory[t], r = this.createCommandContext(), n = await Promise.resolve(i.execute(r));
|
|
46529
|
-
return this.commandIndex = t, this.internalEvents.emit(
|
|
46569
|
+
return this.commandIndex = t, this.internalEvents.emit(Z.EditRedo, { command: i.name }), this.emitEditChanged(`redo:${i.name}`), n;
|
|
46530
46570
|
});
|
|
46531
46571
|
}
|
|
46532
46572
|
/** True when there is a command to undo (the history pointer is not before the first command). */
|
|
@@ -46676,7 +46716,7 @@ class Ys {
|
|
|
46676
46716
|
* @internal
|
|
46677
46717
|
*/
|
|
46678
46718
|
emitEditChanged(t) {
|
|
46679
|
-
this.isBatchingEvents || this.internalEvents.emit(
|
|
46719
|
+
this.isBatchingEvents || this.internalEvents.emit(Z.EditChanged, { source: t, timestamp: Date.now() });
|
|
46680
46720
|
}
|
|
46681
46721
|
/**
|
|
46682
46722
|
* Detects merge field placeholders in the raw edit before substitution.
|
|
@@ -46829,9 +46869,15 @@ class Ys {
|
|
|
46829
46869
|
const s = this.document.getClipId(t, r);
|
|
46830
46870
|
s && (i.clipId = s, this.playerByClipId.set(s, i));
|
|
46831
46871
|
}
|
|
46832
|
-
this.addPlayerToContainer(t, i), i.load().
|
|
46872
|
+
this.addPlayerToContainer(t, i), i.load().then(() => {
|
|
46873
|
+
if (!i.loadError) return;
|
|
46874
|
+
const n = this.findClipIndices(i);
|
|
46875
|
+
if (!n) return;
|
|
46876
|
+
const s = i.clipConfiguration?.asset?.type ?? "unknown";
|
|
46877
|
+
this.internalEvents.emit(Z.ClipLoadFailed, { ...n, error: i.loadError, assetType: s });
|
|
46878
|
+
}).catch((n) => {
|
|
46833
46879
|
const s = i.clipConfiguration?.asset?.type ?? "unknown", a = n instanceof Error ? n.message : String(n);
|
|
46834
|
-
this.clipErrors.set(`${t}-${r}`, { error: a, assetType: s }), this.internalEvents.emit(
|
|
46880
|
+
this.clipErrors.set(`${t}-${r}`, { error: a, assetType: s }), this.internalEvents.emit(Z.ClipLoadFailed, {
|
|
46835
46881
|
trackIndex: t,
|
|
46836
46882
|
clipIndex: r,
|
|
46837
46883
|
error: a,
|
|
@@ -47031,7 +47077,7 @@ class Ys {
|
|
|
47031
47077
|
for (const n of r)
|
|
47032
47078
|
t = Math.max(t, n.getEnd());
|
|
47033
47079
|
const i = this.totalDuration;
|
|
47034
|
-
this.totalDuration = t, i !== this.totalDuration && this.internalEvents.emit(
|
|
47080
|
+
this.totalDuration = t, i !== this.totalDuration && this.internalEvents.emit(Z.DurationChanged, { duration: this.totalDuration });
|
|
47035
47081
|
}
|
|
47036
47082
|
/** @internal */
|
|
47037
47083
|
propagateTimingChanges(t, i) {
|
|
@@ -47359,7 +47405,7 @@ class Ys {
|
|
|
47359
47405
|
width: this.size.width,
|
|
47360
47406
|
height: this.size.height,
|
|
47361
47407
|
backgroundColor: this.backgroundColor
|
|
47362
|
-
}), this.internalEvents.emit(
|
|
47408
|
+
}), this.internalEvents.emit(Z.TimelineBackgroundChanged, { color: t });
|
|
47363
47409
|
}
|
|
47364
47410
|
getTimelineBackground() {
|
|
47365
47411
|
return this.backgroundColor;
|
|
@@ -47499,11 +47545,11 @@ class Ys {
|
|
|
47499
47545
|
static DoubleClickThresholdMs = 500;
|
|
47500
47546
|
// ─── Event Listeners ─────────────────────────────────────────────────────────
|
|
47501
47547
|
static GenerationConfigTriggers = [
|
|
47502
|
-
|
|
47503
|
-
|
|
47504
|
-
|
|
47505
|
-
|
|
47506
|
-
|
|
47548
|
+
Z.ClipSelected,
|
|
47549
|
+
Z.SelectionCleared,
|
|
47550
|
+
Z.EditChanged,
|
|
47551
|
+
Z.MergeFieldChanged,
|
|
47552
|
+
Z.TimelineUpdated
|
|
47507
47553
|
];
|
|
47508
47554
|
setupGenerationListeners() {
|
|
47509
47555
|
this.internalEvents.on(Et.Resolved, this.onResolvedForGeneration);
|
|
@@ -63498,7 +63544,7 @@ class OI {
|
|
|
63498
63544
|
}
|
|
63499
63545
|
async undo(t) {
|
|
63500
63546
|
if (!t) throw new Error("CreateTrackAndMoveClipCommand.undo: context is required");
|
|
63501
|
-
return this.wasExecuted ? (await this.moveClipCommand.undo(t), this.addTrackCommand.undo(t), this.wasExecuted = !1, t.emitEvent(
|
|
63547
|
+
return this.wasExecuted ? (await this.moveClipCommand.undo(t), this.addTrackCommand.undo(t), this.wasExecuted = !1, t.emitEvent(Z.TrackRemoved, {
|
|
63502
63548
|
trackIndex: this.insertionIndex
|
|
63503
63549
|
}), Xt()) : Kt("Command was not executed");
|
|
63504
63550
|
}
|
|
@@ -63527,7 +63573,7 @@ class RI {
|
|
|
63527
63573
|
t.documentUpdateClip(this.trackIndex, this.clipIndex, { asset: a }), t.resolve();
|
|
63528
63574
|
const o = t.getDocumentClip(this.trackIndex, this.clipIndex);
|
|
63529
63575
|
if (!o) throw new Error(`TransformClipAssetCommand: document clip not found after mutation at ${this.trackIndex}/${this.clipIndex}`);
|
|
63530
|
-
return t.emitEvent(
|
|
63576
|
+
return t.emitEvent(Z.ClipUpdated, {
|
|
63531
63577
|
previous: { trackIndex: this.trackIndex, clipIndex: this.clipIndex, clip: ke(n) },
|
|
63532
63578
|
current: { trackIndex: this.trackIndex, clipIndex: this.clipIndex, clip: ke(o) }
|
|
63533
63579
|
}), Xt();
|
|
@@ -63539,7 +63585,7 @@ class RI {
|
|
|
63539
63585
|
const r = t.getDocumentClip(this.trackIndex, this.clipIndex);
|
|
63540
63586
|
if (!i || !r)
|
|
63541
63587
|
throw new Error(`TransformClipAssetCommand: document clip not found after undo at ${this.trackIndex}/${this.clipIndex}`);
|
|
63542
|
-
return t.emitEvent(
|
|
63588
|
+
return t.emitEvent(Z.ClipUpdated, {
|
|
63543
63589
|
previous: { trackIndex: this.trackIndex, clipIndex: this.clipIndex, clip: ke(i) },
|
|
63544
63590
|
current: { trackIndex: this.trackIndex, clipIndex: this.clipIndex, clip: ke(r) }
|
|
63545
63591
|
}), Xt();
|
|
@@ -63568,7 +63614,7 @@ class VI {
|
|
|
63568
63614
|
const r = structuredClone(t.getDocumentClip(this.lumaTrackIndex, this.lumaClipIndex)), n = t.getEditSession();
|
|
63569
63615
|
this.storedContentClipId = n.getLumaContentRelationship(i.clipId) ?? null, n.clearLumaContentRelationship(i.clipId), this.transformCommand.execute(t), t.resolve();
|
|
63570
63616
|
const s = t.getDocumentClip(this.lumaTrackIndex, this.lumaClipIndex);
|
|
63571
|
-
return r && s && t.emitEvent(
|
|
63617
|
+
return r && s && t.emitEvent(Z.ClipUpdated, {
|
|
63572
63618
|
previous: {
|
|
63573
63619
|
trackIndex: this.lumaTrackIndex,
|
|
63574
63620
|
clipIndex: this.lumaClipIndex,
|
|
@@ -63591,7 +63637,7 @@ class VI {
|
|
|
63591
63637
|
}
|
|
63592
63638
|
t.resolve();
|
|
63593
63639
|
const r = t.getDocumentClip(this.lumaTrackIndex, this.lumaClipIndex);
|
|
63594
|
-
return i && r && t.emitEvent(
|
|
63640
|
+
return i && r && t.emitEvent(Z.ClipUpdated, {
|
|
63595
63641
|
previous: {
|
|
63596
63642
|
trackIndex: this.lumaTrackIndex,
|
|
63597
63643
|
clipIndex: this.lumaClipIndex,
|
|
@@ -63774,7 +63820,7 @@ class Ca {
|
|
|
63774
63820
|
* Subscribe to clip-inventory events exactly once per toolbar instance.
|
|
63775
63821
|
*/
|
|
63776
63822
|
ensureClipCountSubscription() {
|
|
63777
|
-
this.clipCountListener || (this.clipCountListener = () => this.refreshDeleteState(), this.edit.events.on(
|
|
63823
|
+
this.clipCountListener || (this.clipCountListener = () => this.refreshDeleteState(), this.edit.events.on(Z.ClipAdded, this.clipCountListener), this.edit.events.on(Z.ClipDeleted, this.clipCountListener), this.edit.events.on(Z.ClipRestored, this.clipCountListener));
|
|
63778
63824
|
}
|
|
63779
63825
|
/**
|
|
63780
63826
|
* Sync the trash button's disabled state with whether the selected clip is
|
|
@@ -63820,7 +63866,7 @@ class Ca {
|
|
|
63820
63866
|
* Subclasses should call super.dispose() and then null their own references.
|
|
63821
63867
|
*/
|
|
63822
63868
|
dispose() {
|
|
63823
|
-
this.dragResult?.dispose(), this.dragResult = null, this.clickOutsideHandler && (document.removeEventListener("click", this.clickOutsideHandler), this.clickOutsideHandler = null), this.clipCountListener && (this.edit.events.off(
|
|
63869
|
+
this.dragResult?.dispose(), this.dragResult = null, this.clickOutsideHandler && (document.removeEventListener("click", this.clickOutsideHandler), this.clickOutsideHandler = null), this.clipCountListener && (this.edit.events.off(Z.ClipAdded, this.clipCountListener), this.edit.events.off(Z.ClipDeleted, this.clipCountListener), this.edit.events.off(Z.ClipRestored, this.clipCountListener), this.clipCountListener = null), this.deleteBtn = null, this.container?.remove(), this.container = null;
|
|
63824
63870
|
}
|
|
63825
63871
|
/**
|
|
63826
63872
|
* Check if a popup is currently visible (handles both CSS class and inline style patterns).
|
|
@@ -64653,7 +64699,7 @@ class nrt {
|
|
|
64653
64699
|
length: i.getLength()
|
|
64654
64700
|
}), t.resolve();
|
|
64655
64701
|
const o = t.getDocumentClip(this.lumaTrackIndex, this.lumaClipIndex);
|
|
64656
|
-
return n && o && t.emitEvent(
|
|
64702
|
+
return n && o && t.emitEvent(Z.ClipUpdated, {
|
|
64657
64703
|
previous: {
|
|
64658
64704
|
trackIndex: this.lumaTrackIndex,
|
|
64659
64705
|
clipIndex: this.lumaClipIndex,
|
|
@@ -64682,7 +64728,7 @@ class nrt {
|
|
|
64682
64728
|
}
|
|
64683
64729
|
this.transformCommand.undo(t), t.resolve();
|
|
64684
64730
|
const r = t.getDocumentClip(this.lumaTrackIndex, this.lumaClipIndex);
|
|
64685
|
-
return i && r && t.emitEvent(
|
|
64731
|
+
return i && r && t.emitEvent(Z.ClipUpdated, {
|
|
64686
64732
|
previous: {
|
|
64687
64733
|
trackIndex: this.lumaTrackIndex,
|
|
64688
64734
|
clipIndex: this.lumaClipIndex,
|
|
@@ -64808,7 +64854,7 @@ class Bd {
|
|
|
64808
64854
|
i.updateClip(this.trackIndex, this.clipIndex, { length: this.newLength }), this.clipId ? t.resolveClip(this.clipId) : t.resolve(), t.updateDuration();
|
|
64809
64855
|
const o = t.getDocumentClip(this.trackIndex, this.clipIndex);
|
|
64810
64856
|
if (!o) throw new Error(`ResizeClipCommand: document clip not found after mutation at ${this.trackIndex}/${this.clipIndex}`);
|
|
64811
|
-
return t.emitEvent(
|
|
64857
|
+
return t.emitEvent(Z.ClipUpdated, {
|
|
64812
64858
|
previous: { clip: ke(a), trackIndex: this.trackIndex, clipIndex: this.clipIndex },
|
|
64813
64859
|
current: { clip: ke(o), trackIndex: this.trackIndex, clipIndex: this.clipIndex }
|
|
64814
64860
|
}), t.propagateTimingChanges(this.trackIndex, this.clipIndex), Xt();
|
|
@@ -64824,7 +64870,7 @@ class Bd {
|
|
|
64824
64870
|
const s = t.getDocumentClip(this.trackIndex, this.clipIndex);
|
|
64825
64871
|
if (!n || !s)
|
|
64826
64872
|
throw new Error(`ResizeClipCommand: document clip not found after undo at ${this.trackIndex}/${this.clipIndex}`);
|
|
64827
|
-
return t.emitEvent(
|
|
64873
|
+
return t.emitEvent(Z.ClipUpdated, {
|
|
64828
64874
|
previous: { clip: ke(n), trackIndex: this.trackIndex, clipIndex: this.clipIndex },
|
|
64829
64875
|
current: { clip: ke(s), trackIndex: this.trackIndex, clipIndex: this.clipIndex }
|
|
64830
64876
|
}), t.propagateTimingChanges(this.trackIndex, this.clipIndex), Xt();
|
|
@@ -65690,7 +65736,7 @@ class Srt {
|
|
|
65690
65736
|
pixelsPerSecond: i.pixelsPerSecond ?? 50,
|
|
65691
65737
|
width: i.width ?? 800,
|
|
65692
65738
|
height: i.height ?? 400
|
|
65693
|
-
}, this.edit.getInternalEvents().on(Et.Resolved, this.invalidateCache), this.edit.events.on(
|
|
65739
|
+
}, this.edit.getInternalEvents().on(Et.Resolved, this.invalidateCache), this.edit.events.on(Z.ClipUpdated, this.invalidateCache), this.edit.events.on(Z.TimelineUpdated, this.invalidateCache), this.edit.events.on(Z.ClipGenerationStarted, this.invalidateCache), this.edit.events.on(Z.ClipGenerationCompleted, this.invalidateCache), this.edit.events.on(Z.ClipGenerationFailed, this.invalidateCache), this.edit.events.on(Z.ClipSelected, this.invalidateCache), this.edit.events.on(Z.SelectionCleared, this.invalidateCache), this.edit.getInternalEvents().on(Et.ClipFocused, this.onClipFocused), this.edit.getInternalEvents().on(Et.ClipBlurred, this.onClipBlurred);
|
|
65694
65740
|
}
|
|
65695
65741
|
viewport;
|
|
65696
65742
|
interactionQuery = null;
|
|
@@ -65816,7 +65862,7 @@ class Srt {
|
|
|
65816
65862
|
this.lumaEditingVisibleByClipId.delete(t);
|
|
65817
65863
|
}
|
|
65818
65864
|
dispose() {
|
|
65819
|
-
this.edit.getInternalEvents().off(Et.Resolved, this.invalidateCache), this.edit.events.off(
|
|
65865
|
+
this.edit.getInternalEvents().off(Et.Resolved, this.invalidateCache), this.edit.events.off(Z.ClipUpdated, this.invalidateCache), this.edit.events.off(Z.TimelineUpdated, this.invalidateCache), this.edit.events.off(Z.ClipGenerationStarted, this.invalidateCache), this.edit.events.off(Z.ClipGenerationCompleted, this.invalidateCache), this.edit.events.off(Z.ClipGenerationFailed, this.invalidateCache), this.edit.events.off(Z.ClipSelected, this.invalidateCache), this.edit.events.off(Z.SelectionCleared, this.invalidateCache), this.edit.getInternalEvents().off(Et.ClipFocused, this.onClipFocused), this.edit.getInternalEvents().off(Et.ClipBlurred, this.onClipBlurred), this.cachedTracks = null, this.interactionQuery = null, this.lumaEditingVisibleByClipId.clear();
|
|
65820
65866
|
}
|
|
65821
65867
|
// ========== Private ==========
|
|
65822
65868
|
getComputedVisualState(t, i, r) {
|
|
@@ -65932,12 +65978,12 @@ class Bst {
|
|
|
65932
65978
|
return t;
|
|
65933
65979
|
}
|
|
65934
65980
|
setupEventListeners() {
|
|
65935
|
-
this.edit.events.on(
|
|
65981
|
+
this.edit.events.on(Z.TimelineUpdated, this.handleTimelineUpdated), this.edit.events.on(Z.ClipAdded, this.handleTimelineUpdated), this.edit.events.on(Z.ClipDeleted, this.handleTimelineUpdated), this.edit.events.on(Z.ClipRestored, this.handleTimelineUpdated), this.edit.events.on(Z.TrackAdded, this.handleTimelineUpdated), this.edit.events.on(Z.TrackRemoved, this.handleTimelineUpdated), this.edit.events.on(Z.PlaybackPlay, this.handlePlaybackPlay), this.edit.events.on(Z.PlaybackPause, this.handlePlaybackPause), this.edit.events.on(Z.ClipSelected, this.handleClipSelected), this.edit.events.on(Z.ClipUpdated, this.handleClipUpdated), this.edit.events.on(Z.ClipLoadFailed, this.handleClipLoadFailed), this.edit.assetLoader.loadTracker.on("onAssetLoadInfoUpdated", this.handleClipLoadFailed), this.edit.events.on(Z.ClipGenerationStarted, this.handleClipGeneration), this.edit.events.on(Z.ClipGenerationCompleted, this.handleClipGeneration), this.edit.events.on(Z.ClipGenerationFailed, this.handleClipGeneration);
|
|
65936
65982
|
const t = this.edit.getInternalEvents();
|
|
65937
65983
|
t.on(Et.ClipFocused, this.handleClipFocusChanged), t.on(Et.ClipBlurred, this.handleClipFocusChanged);
|
|
65938
65984
|
}
|
|
65939
65985
|
removeEventListeners() {
|
|
65940
|
-
this.edit.events.off(
|
|
65986
|
+
this.edit.events.off(Z.TimelineUpdated, this.handleTimelineUpdated), this.edit.events.off(Z.ClipAdded, this.handleTimelineUpdated), this.edit.events.off(Z.ClipDeleted, this.handleTimelineUpdated), this.edit.events.off(Z.ClipRestored, this.handleTimelineUpdated), this.edit.events.off(Z.TrackAdded, this.handleTimelineUpdated), this.edit.events.off(Z.TrackRemoved, this.handleTimelineUpdated), this.edit.events.off(Z.PlaybackPlay, this.handlePlaybackPlay), this.edit.events.off(Z.PlaybackPause, this.handlePlaybackPause), this.edit.events.off(Z.ClipSelected, this.handleClipSelected), this.edit.events.off(Z.ClipUpdated, this.handleClipUpdated), this.edit.events.off(Z.ClipLoadFailed, this.handleClipLoadFailed), this.edit.assetLoader.loadTracker.off("onAssetLoadInfoUpdated", this.handleClipLoadFailed), this.edit.events.off(Z.ClipGenerationStarted, this.handleClipGeneration), this.edit.events.off(Z.ClipGenerationCompleted, this.handleClipGeneration), this.edit.events.off(Z.ClipGenerationFailed, this.handleClipGeneration);
|
|
65941
65987
|
const t = this.edit.getInternalEvents();
|
|
65942
65988
|
t.off(Et.ClipFocused, this.handleClipFocusChanged), t.off(Et.ClipBlurred, this.handleClipFocusChanged);
|
|
65943
65989
|
}
|
|
@@ -65973,7 +66019,7 @@ class Bst {
|
|
|
65973
66019
|
container: this.container,
|
|
65974
66020
|
onResize: () => this.resize(),
|
|
65975
66021
|
onResizeEnd: (i) => {
|
|
65976
|
-
this.edit.getInternalEvents().emit(
|
|
66022
|
+
this.edit.getInternalEvents().emit(Z.TimelineResized, { height: i });
|
|
65977
66023
|
}
|
|
65978
66024
|
}), this.element.appendChild(this.resizeHandle.element));
|
|
65979
66025
|
const t = this.stateManager.getViewport();
|
|
@@ -66123,12 +66169,12 @@ class m2 {
|
|
|
66123
66169
|
this.updateDocumentClip(t, r, !0);
|
|
66124
66170
|
} else
|
|
66125
66171
|
this.updateDocumentClip(t, this.storedNewValue, !1);
|
|
66126
|
-
return t.resolve(), t.emitEvent(
|
|
66172
|
+
return t.resolve(), t.emitEvent(Z.MergeFieldChanged, { fields: i.getAll() }), Xt();
|
|
66127
66173
|
}
|
|
66128
66174
|
async undo(t) {
|
|
66129
66175
|
if (!t) throw new Error("SetMergeFieldCommand.undo: context is required");
|
|
66130
66176
|
const i = t.getMergeFields();
|
|
66131
|
-
return this.storedPreviousBinding ? t.setClipBinding(this.clipId, this.propertyPath, this.storedPreviousBinding) : t.removeClipBinding(this.clipId, this.propertyPath), this.previousFieldName && i.register({ name: this.previousFieldName, defaultValue: this.storedPreviousValue }, { silent: !0 }), this.storedPreviousBinding ? this.updateDocumentClip(t, this.storedPreviousBinding.placeholder, !0) : this.updateDocumentClip(t, this.storedPreviousValue, !1), t.resolve(), t.emitEvent(
|
|
66177
|
+
return this.storedPreviousBinding ? t.setClipBinding(this.clipId, this.propertyPath, this.storedPreviousBinding) : t.removeClipBinding(this.clipId, this.propertyPath), this.previousFieldName && i.register({ name: this.previousFieldName, defaultValue: this.storedPreviousValue }, { silent: !0 }), this.storedPreviousBinding ? this.updateDocumentClip(t, this.storedPreviousBinding.placeholder, !0) : this.updateDocumentClip(t, this.storedPreviousValue, !1), t.resolve(), t.emitEvent(Z.MergeFieldChanged, { fields: i.getAll() }), Xt();
|
|
66132
66178
|
}
|
|
66133
66179
|
dispose() {
|
|
66134
66180
|
this.storedPreviousBinding = void 0;
|
|
@@ -66208,7 +66254,7 @@ class Irt extends Ys {
|
|
|
66208
66254
|
this.mergeFieldService.register({ ...r, defaultValue: i }, { silent: !0 });
|
|
66209
66255
|
for (const [, n] of this.getPlayerMap())
|
|
66210
66256
|
this.updateMergeFieldBindings(n, t, i);
|
|
66211
|
-
this.resolve(), this.getInternalEvents().emit(
|
|
66257
|
+
this.resolve(), this.getInternalEvents().emit(Z.TimelineUpdated, { current: this.getEdit() });
|
|
66212
66258
|
} finally {
|
|
66213
66259
|
this.isUpdatingMergeFields = !1;
|
|
66214
66260
|
}
|
|
@@ -66311,7 +66357,7 @@ class Irt extends Ys {
|
|
|
66311
66357
|
const o = this.getTemplateClipById(a);
|
|
66312
66358
|
o && await this.restoreMergeFieldInClip(a, o, r, n);
|
|
66313
66359
|
}
|
|
66314
|
-
this.mergeFieldService.remove(t) || this.getInternalEvents().emit(
|
|
66360
|
+
this.mergeFieldService.remove(t) || this.getInternalEvents().emit(Z.MergeFieldChanged, { fields: this.mergeFieldService.getAll() });
|
|
66315
66361
|
}
|
|
66316
66362
|
// ─── Text Conversion API ───────────────────────────────────────────────────
|
|
66317
66363
|
/**
|
|
@@ -67403,9 +67449,9 @@ class Rrt extends Ca {
|
|
|
67403
67449
|
setupEventListeners() {
|
|
67404
67450
|
this.editChangedListener = () => {
|
|
67405
67451
|
this.selectedTrackIdx >= 0 && this.selectedClipIdx >= 0 && this.syncState();
|
|
67406
|
-
}, this.edit.events.on(
|
|
67452
|
+
}, this.edit.events.on(Z.EditChanged, this.editChangedListener), this.mergeFieldChangedListener = () => {
|
|
67407
67453
|
this.selectedTrackIdx >= 0 && this.selectedClipIdx >= 0 && this.syncState();
|
|
67408
|
-
}, this.edit.events.on(
|
|
67454
|
+
}, this.edit.events.on(Z.MergeFieldChanged, this.mergeFieldChangedListener);
|
|
67409
67455
|
}
|
|
67410
67456
|
mountComponents() {
|
|
67411
67457
|
const t = this.container?.querySelector("[data-start-mount]");
|
|
@@ -67486,7 +67532,7 @@ class Rrt extends Ca {
|
|
|
67486
67532
|
return [];
|
|
67487
67533
|
}
|
|
67488
67534
|
dispose() {
|
|
67489
|
-
this.editChangedListener && (this.edit.events.off(
|
|
67535
|
+
this.editChangedListener && (this.edit.events.off(Z.EditChanged, this.editChangedListener), this.editChangedListener = null), this.mergeFieldChangedListener && (this.edit.events.off(Z.MergeFieldChanged, this.mergeFieldChangedListener), this.mergeFieldChangedListener = null), this.startMergeLabel?.dispose(), this.lengthMergeLabel?.dispose(), this.startControl?.dispose(), this.lengthControl?.dispose(), super.dispose(), this.startMergeLabel = null, this.lengthMergeLabel = null, this.startControl = null, this.lengthControl = null;
|
|
67490
67536
|
}
|
|
67491
67537
|
}
|
|
67492
67538
|
const Vrt = 300, Lrt = {
|
|
@@ -67600,9 +67646,9 @@ class Urt extends Ca {
|
|
|
67600
67646
|
subscribeToEditState() {
|
|
67601
67647
|
if (this.generationUnsubscribers.length > 0) return;
|
|
67602
67648
|
const t = this.edit.getInternalEvents(), i = [
|
|
67603
|
-
|
|
67604
|
-
|
|
67605
|
-
|
|
67649
|
+
Z.ClipGenerationStarted,
|
|
67650
|
+
Z.ClipGenerationCompleted,
|
|
67651
|
+
Z.ClipGenerationFailed,
|
|
67606
67652
|
Et.GenerationStatusChanged
|
|
67607
67653
|
];
|
|
67608
67654
|
for (const s of i) {
|
|
@@ -67614,7 +67660,7 @@ class Urt extends Ca {
|
|
|
67614
67660
|
const r = () => this.syncState();
|
|
67615
67661
|
t.on(Et.AssetGeneratorChanged, r), this.generationUnsubscribers.push(() => t.off(Et.AssetGeneratorChanged, r));
|
|
67616
67662
|
const n = () => this.syncState();
|
|
67617
|
-
this.edit.events.on(
|
|
67663
|
+
this.edit.events.on(Z.EditChanged, n), this.generationUnsubscribers.push(() => this.edit.events.off(Z.EditChanged, n));
|
|
67618
67664
|
}
|
|
67619
67665
|
schedulePromptCommit() {
|
|
67620
67666
|
this.promptDebounceTimer && clearTimeout(this.promptDebounceTimer), this.promptDebounceTimer = setTimeout(() => this.commitPrompt(), Vrt);
|
|
@@ -67822,7 +67868,7 @@ function Ks(e, t, i, r = 0) {
|
|
|
67822
67868
|
}
|
|
67823
67869
|
function w2(e, t, i, r, n) {
|
|
67824
67870
|
const s = ZI(t, r, n), a = Ks(e, s, n);
|
|
67825
|
-
return (a ? e.map((l) => l === a ? { time: l.time, value: i } : l) : [...e, { time: s, value: i }]).
|
|
67871
|
+
return (a ? e.map((l) => l === a ? { time: l.time, value: i } : l) : [...e, { time: s, value: i }]).sort((l, u) => l.time - u.time);
|
|
67826
67872
|
}
|
|
67827
67873
|
function jrt(e, t, i) {
|
|
67828
67874
|
const r = Ks(e, t, i);
|
|
@@ -68803,7 +68849,7 @@ class ps extends Ca {
|
|
|
68803
68849
|
</div>
|
|
68804
68850
|
</div>
|
|
68805
68851
|
` : ""}
|
|
68806
|
-
`, t.insertBefore(this.container, t.firstChild), this.fitBtn = this.container.querySelector('[data-action="fit"]'), this.opacityBtn = this.container.querySelector('[data-action="opacity"]'), this.scaleBtn = this.container.querySelector('[data-action="scale"]'), this.volumeBtn = this.container.querySelector('[data-action="volume"]'), this.transitionBtn = this.container.querySelector('[data-action="transition"]'), this.effectBtn = this.container.querySelector('[data-action="effect"]'), this.advancedBtn = this.container.querySelector('[data-action="advanced"]'), this.audioFadeBtn = this.container.querySelector('[data-action="audio-fade"]'), this.speedBtn = this.container.querySelector('[data-action="speed"]'), this.fitPopup = this.container.querySelector('[data-popup="fit"]'), this.opacityPopup = this.container.querySelector('[data-popup="opacity"]'), this.scalePopup = this.container.querySelector('[data-popup="scale"]'), this.volumePopup = this.container.querySelector('[data-popup="volume"]'), this.transitionPopup = this.container.querySelector('[data-popup="transition"]'), this.effectPopup = this.container.querySelector('[data-popup="effect"]'), this.advancedPopup = this.container.querySelector('[data-popup="advanced"]'), this.audioFadePopup = this.container.querySelector('[data-popup="audio-fade"]'), this.speedPopup = this.container.querySelector('[data-popup="speed"]'), this.fitLabel = this.container.querySelector("[data-fit-label]"), this.volumeValue = this.container.querySelector("[data-volume-value]"), this.volumeSlider = this.container.querySelector("[data-volume-slider]"), this.volumeDisplayInput = this.container.querySelector("[data-volume-display]"), this.volumeSection = this.container.querySelector("[data-volume-section]"), this.visualSection = this.container.querySelector("[data-visual-section]"), this.audioSection = this.container.querySelector("[data-audio-section]"), this.speedSection = this.container.querySelector("[data-speed-section]"), this.speedSlider = this.container.querySelector("[data-speed-slider]"), this.speedValue = this.container.querySelector("[data-speed-value]"), this.speedDisplayInput = this.container.querySelector("[data-speed-display]"), this.dynamicToggle = this.container.querySelector("[data-dynamic-toggle]"), this.dynamicPanel = this.container.querySelector("[data-dynamic-panel]"), this.dynamicInput = this.container.querySelector("[data-dynamic-input]"), this.mountCompositeComponents(), this.showMergeFields && (this.mergeFieldManager = new jI(this, ps.MEDIA_PROPERTY_DEFAULTS), this.mergeFieldManager.init(), this.unsubMergeFieldChanged = this.edit.getInternalEvents().on(
|
|
68852
|
+
`, t.insertBefore(this.container, t.firstChild), this.fitBtn = this.container.querySelector('[data-action="fit"]'), this.opacityBtn = this.container.querySelector('[data-action="opacity"]'), this.scaleBtn = this.container.querySelector('[data-action="scale"]'), this.volumeBtn = this.container.querySelector('[data-action="volume"]'), this.transitionBtn = this.container.querySelector('[data-action="transition"]'), this.effectBtn = this.container.querySelector('[data-action="effect"]'), this.advancedBtn = this.container.querySelector('[data-action="advanced"]'), this.audioFadeBtn = this.container.querySelector('[data-action="audio-fade"]'), this.speedBtn = this.container.querySelector('[data-action="speed"]'), this.fitPopup = this.container.querySelector('[data-popup="fit"]'), this.opacityPopup = this.container.querySelector('[data-popup="opacity"]'), this.scalePopup = this.container.querySelector('[data-popup="scale"]'), this.volumePopup = this.container.querySelector('[data-popup="volume"]'), this.transitionPopup = this.container.querySelector('[data-popup="transition"]'), this.effectPopup = this.container.querySelector('[data-popup="effect"]'), this.advancedPopup = this.container.querySelector('[data-popup="advanced"]'), this.audioFadePopup = this.container.querySelector('[data-popup="audio-fade"]'), this.speedPopup = this.container.querySelector('[data-popup="speed"]'), this.fitLabel = this.container.querySelector("[data-fit-label]"), this.volumeValue = this.container.querySelector("[data-volume-value]"), this.volumeSlider = this.container.querySelector("[data-volume-slider]"), this.volumeDisplayInput = this.container.querySelector("[data-volume-display]"), this.volumeSection = this.container.querySelector("[data-volume-section]"), this.visualSection = this.container.querySelector("[data-visual-section]"), this.audioSection = this.container.querySelector("[data-audio-section]"), this.speedSection = this.container.querySelector("[data-speed-section]"), this.speedSlider = this.container.querySelector("[data-speed-slider]"), this.speedValue = this.container.querySelector("[data-speed-value]"), this.speedDisplayInput = this.container.querySelector("[data-speed-display]"), this.dynamicToggle = this.container.querySelector("[data-dynamic-toggle]"), this.dynamicPanel = this.container.querySelector("[data-dynamic-panel]"), this.dynamicInput = this.container.querySelector("[data-dynamic-input]"), this.mountCompositeComponents(), this.showMergeFields && (this.mergeFieldManager = new jI(this, ps.MEDIA_PROPERTY_DEFAULTS), this.mergeFieldManager.init(), this.unsubMergeFieldChanged = this.edit.getInternalEvents().on(Z.MergeFieldChanged, () => {
|
|
68807
68853
|
this.container?.style.display !== "none" && this.mergeFieldManager?.hasLabels && this.syncState();
|
|
68808
68854
|
})), this.setupEventListeners(), this.setupOutsideClickHandler(), this.enableDrag(), this.appendDeleteButton();
|
|
68809
68855
|
}
|
|
@@ -68972,9 +69018,9 @@ class ps extends Ca {
|
|
|
68972
69018
|
},
|
|
68973
69019
|
{ signal: t }
|
|
68974
69020
|
);
|
|
68975
|
-
}), this.playbackPauseListener || (this.playbackPauseListener = () => this.syncIfVisible(), this.edit.events.on(
|
|
69021
|
+
}), this.playbackPauseListener || (this.playbackPauseListener = () => this.syncIfVisible(), this.edit.events.on(Z.PlaybackPause, this.playbackPauseListener)), this.editChangedListener || (this.editChangedListener = (i) => {
|
|
68976
69022
|
i.source.startsWith("load") && this.pendingOpacityTimes.clear(), this.syncIfVisible();
|
|
68977
|
-
}, this.edit.events.on(
|
|
69023
|
+
}, this.edit.events.on(Z.EditChanged, this.editChangedListener));
|
|
68978
69024
|
}
|
|
68979
69025
|
syncIfVisible() {
|
|
68980
69026
|
this.container?.style.display !== "none" && (this.selectedTrackIdx < 0 || this.dragManager.isDragging("opacity") || this.syncState());
|
|
@@ -69437,7 +69483,7 @@ class ps extends Ca {
|
|
|
69437
69483
|
this.assetType = r?.asset?.type ?? "image", this.pendingOpacityTimes.clear(), super.show(t, i);
|
|
69438
69484
|
}
|
|
69439
69485
|
dispose() {
|
|
69440
|
-
this.abortController?.abort(), this.abortController = null, this.dragManager.clear(), this.playbackPauseListener && (this.edit.events.off(
|
|
69486
|
+
this.abortController?.abort(), this.abortController = null, this.dragManager.clear(), this.playbackPauseListener && (this.edit.events.off(Z.PlaybackPause, this.playbackPauseListener), this.playbackPauseListener = null), this.editChangedListener && (this.edit.events.off(Z.EditChanged, this.editChangedListener), this.editChangedListener = null), this.pendingOpacityTimes.clear(), this.opacityDragTime = null, this.transitionPanel?.dispose(), this.effectPanel?.dispose(), this.opacitySlider?.dispose(), this.scaleSlider?.dispose(), this.unsubMergeFieldChanged?.(), this.unsubMergeFieldChanged = null, this.mergeFieldManager?.dispose(), this.mergeFieldManager = null, super.dispose(), this.transitionPanel = null, this.effectPanel = null, this.opacitySlider = null, this.scaleSlider = null, this.fitBtn = null, this.opacityBtn = null, this.opacityPreviousKeyframeBtn = null, this.opacityKeyframeBtn = null, this.opacityNextKeyframeBtn = null, this.scaleBtn = null, this.volumeBtn = null, this.transitionBtn = null, this.effectBtn = null, this.advancedBtn = null, this.audioFadeBtn = null, this.speedBtn = null, this.fitPopup = null, this.opacityPopup = null, this.scalePopup = null, this.volumePopup = null, this.transitionPopup = null, this.effectPopup = null, this.advancedPopup = null, this.audioFadePopup = null, this.speedPopup = null, this.fitLabel = null, this.volumeSlider = null, this.volumeValue = null, this.volumeDisplayInput = null, this.volumeSection = null, this.visualSection = null, this.audioSection = null, this.speedSection = null, this.speedSlider = null, this.speedValue = null, this.speedDisplayInput = null, this.dynamicToggle = null, this.dynamicPanel = null, this.dynamicInput = null;
|
|
69441
69487
|
}
|
|
69442
69488
|
}
|
|
69443
69489
|
class Yb extends ka {
|
|
@@ -71650,7 +71696,7 @@ class to extends Ca {
|
|
|
71650
71696
|
n.key === "Enter" && (n.ctrlKey || n.metaKey) && (n.preventDefault(), this.textEditDebounceTimer && (clearTimeout(this.textEditDebounceTimer), this.textEditDebounceTimer = null), this.applyTextEdit(), this.closeAllPopups()), n.key === "Escape" && this.closeAllPopups();
|
|
71651
71697
|
}), this.setupOutsideClickHandler(), this.enableDrag(), this.appendDeleteButton(), t.style.position = "relative", t.insertBefore(this.container, t.firstChild), this.unsubFontCapabilities = this.edit.getInternalEvents().on(Et.FontCapabilitiesChanged, () => {
|
|
71652
71698
|
this.container?.style.display !== "none" && this.syncState();
|
|
71653
|
-
}), this.unsubMergeFieldChanged = this.edit.getInternalEvents().on(
|
|
71699
|
+
}), this.unsubMergeFieldChanged = this.edit.getInternalEvents().on(Z.MergeFieldChanged, () => {
|
|
71654
71700
|
this.container?.style.display !== "none" && this.showMergeFields && this.mergeFieldManager?.hasLabels && this.mergeFieldManager.sync();
|
|
71655
71701
|
}), this.unsubCanvasDoubleClick = this.edit.getInternalEvents().on(Et.CanvasClipDoubleClicked, () => {
|
|
71656
71702
|
this.selectedTrackIdx < 0 || this.selectedClipIdx < 0 || !this.container || !this.container.classList.contains("visible") || this.openTextEditPopup();
|
|
@@ -72972,7 +73018,7 @@ class znt {
|
|
|
72972
73018
|
fontSize: Fnt,
|
|
72973
73019
|
fill: "#ffffff"
|
|
72974
73020
|
}
|
|
72975
|
-
}), this.dimensionContainer.addChild(this.dimensionBackground), this.dimensionContainer.addChild(this.dimensionLabel), this.onClipSelectedBound = this.onClipSelected.bind(this), this.onSelectionClearedBound = this.onSelectionCleared.bind(this), this.onClipFocusedBound = this.onClipFocused.bind(this), this.onClipBlurredBound = this.onClipBlurred.bind(this), this.onPointerDownBound = this.onPointerDown.bind(this), this.onPointerMoveBound = this.onPointerMove.bind(this), this.onPointerUpBound = this.onPointerUp.bind(this), this.edit.events.on(
|
|
73021
|
+
}), this.dimensionContainer.addChild(this.dimensionBackground), this.dimensionContainer.addChild(this.dimensionLabel), this.onClipSelectedBound = this.onClipSelected.bind(this), this.onSelectionClearedBound = this.onSelectionCleared.bind(this), this.onClipFocusedBound = this.onClipFocused.bind(this), this.onClipBlurredBound = this.onClipBlurred.bind(this), this.onPointerDownBound = this.onPointerDown.bind(this), this.onPointerMoveBound = this.onPointerMove.bind(this), this.onPointerUpBound = this.onPointerUp.bind(this), this.edit.events.on(Z.ClipSelected, this.onClipSelectedBound), this.edit.events.on(Z.SelectionCleared, this.onSelectionClearedBound);
|
|
72976
73022
|
const i = this.edit.getInternalEvents();
|
|
72977
73023
|
i.on(Et.ClipFocused, this.onClipFocusedBound), i.on(Et.ClipBlurred, this.onClipBlurredBound);
|
|
72978
73024
|
}
|
|
@@ -73039,7 +73085,7 @@ class znt {
|
|
|
73039
73085
|
this.container.visible = !0, this.drawOutline(), this.drawHandles(), this.drawFocusGlow();
|
|
73040
73086
|
}
|
|
73041
73087
|
dispose() {
|
|
73042
|
-
this.edit.events.off(
|
|
73088
|
+
this.edit.events.off(Z.ClipSelected, this.onClipSelectedBound), this.edit.events.off(Z.SelectionCleared, this.onSelectionClearedBound);
|
|
73043
73089
|
const t = this.edit.getInternalEvents();
|
|
73044
73090
|
t.off(Et.ClipFocused, this.onClipFocusedBound), t.off(Et.ClipBlurred, this.onClipBlurredBound), this.app && (this.app.stage.off("pointerdown", this.onPointerDownBound), this.app.stage.off("globalpointermove", this.onPointerMoveBound), this.app.stage.off("pointerup", this.onPointerUpBound), this.app.stage.off("pointerupoutside", this.onPointerUpBound)), this.outline.destroy();
|
|
73045
73091
|
for (const i of this.handles.values())
|
|
@@ -75077,7 +75123,7 @@ class Ag {
|
|
|
75077
75123
|
* Subscribe to edit events. Called by factory methods.
|
|
75078
75124
|
*/
|
|
75079
75125
|
subscribeToEvents() {
|
|
75080
|
-
this.edit.events.on(
|
|
75126
|
+
this.edit.events.on(Z.ClipSelected, this.onClipSelected), this.edit.events.on(Z.SelectionCleared, this.onSelectionCleared);
|
|
75081
75127
|
}
|
|
75082
75128
|
/**
|
|
75083
75129
|
* Register all standard toolbars. Called by create() factory.
|
|
@@ -75154,7 +75200,7 @@ class Ag {
|
|
|
75154
75200
|
});
|
|
75155
75201
|
}), document.addEventListener("keydown", this.onKeyDownBound);
|
|
75156
75202
|
const s = this.edit.getInternalEvents();
|
|
75157
|
-
for (const o of [
|
|
75203
|
+
for (const o of [Z.ClipGenerationStarted, Z.ClipGenerationCompleted, Z.ClipGenerationFailed]) {
|
|
75158
75204
|
const l = () => this.syncGenerateSegments();
|
|
75159
75205
|
s.on(o, l), this.generationListeners.push(() => s.off(o, l));
|
|
75160
75206
|
}
|
|
@@ -75199,7 +75245,7 @@ class Ag {
|
|
|
75199
75245
|
*/
|
|
75200
75246
|
dispose() {
|
|
75201
75247
|
if (this.isDisposed) return;
|
|
75202
|
-
this.isDisposed = !0, this.edit.events.off(
|
|
75248
|
+
this.isDisposed = !0, this.edit.events.off(Z.ClipSelected, this.onClipSelected), this.edit.events.off(Z.SelectionCleared, this.onSelectionCleared), document.removeEventListener("keydown", this.onKeyDownBound);
|
|
75203
75249
|
for (const { btn: i, handler: r } of this.modeButtonHandlers)
|
|
75204
75250
|
i.removeEventListener("click", r);
|
|
75205
75251
|
this.modeButtonHandlers = [];
|