@salina-app/media-editor 0.2.6 → 0.2.8
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/index.js +92 -98
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as N from "react";
|
|
2
|
-
import Ke, { useState as Sn, useCallback as Bi, useEffect as
|
|
2
|
+
import Ke, { useState as Sn, useCallback as Bi, useEffect as rn, forwardRef as Bl, createElement as rd, memo as va, useRef as Cr, createContext as $v, useContext as qa, useId as YX, Component as KX, useLayoutEffect as c6, useInsertionEffect as XX, useMemo as sr, Fragment as d6, useImperativeHandle as QX } from "react";
|
|
3
3
|
import { jsx as z, Fragment as Qr, jsxs as ut } from "react/jsx-runtime";
|
|
4
4
|
const ZX = 1, JX = 1e6;
|
|
5
5
|
let kE = 0;
|
|
@@ -1799,7 +1799,7 @@ const Up = Ts()((t) => ({
|
|
|
1799
1799
|
a
|
|
1800
1800
|
]
|
|
1801
1801
|
);
|
|
1802
|
-
|
|
1802
|
+
rn(() => (document.addEventListener("keydown", G), () => {
|
|
1803
1803
|
document.removeEventListener("keydown", G);
|
|
1804
1804
|
}), [G]);
|
|
1805
1805
|
};
|
|
@@ -3954,15 +3954,15 @@ const Ol = /* @__PURE__ */ ud(see), Ml = "secret", { GET: k3 } = zR(!1), qR = ()
|
|
|
3954
3954
|
setThumbnails: h,
|
|
3955
3955
|
setVideoSrc: p
|
|
3956
3956
|
} = Vu();
|
|
3957
|
-
|
|
3957
|
+
rn(() => {
|
|
3958
3958
|
i && i.length ? c(i) : c([]);
|
|
3959
|
-
}, [i, c]),
|
|
3959
|
+
}, [i, c]), rn(() => {
|
|
3960
3960
|
n && n.length ? a(n) : a([]);
|
|
3961
|
-
}, [n, a]),
|
|
3961
|
+
}, [n, a]), rn(() => {
|
|
3962
3962
|
l(e || "");
|
|
3963
|
-
}, [e, l]),
|
|
3963
|
+
}, [e, l]), rn(() => {
|
|
3964
3964
|
r && r.length ? h(r) : h([]);
|
|
3965
|
-
}, [r, h]),
|
|
3965
|
+
}, [r, h]), rn(() => {
|
|
3966
3966
|
p(t || "");
|
|
3967
3967
|
}, [t, p]);
|
|
3968
3968
|
}, Ax = () => {
|
|
@@ -23248,7 +23248,7 @@ function gee() {
|
|
|
23248
23248
|
}
|
|
23249
23249
|
var Vp = gee();
|
|
23250
23250
|
const KR = /* @__PURE__ */ ud(Vp);
|
|
23251
|
-
function
|
|
23251
|
+
function nn(t, e, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
23252
23252
|
return function(i) {
|
|
23253
23253
|
if (t == null || t(i), n === !1 || !i.defaultPrevented)
|
|
23254
23254
|
return e == null ? void 0 : e(i);
|
|
@@ -23551,9 +23551,9 @@ var Aee = "DismissableLayer", yA = "dismissableLayer.update", Ree = "dismissable
|
|
|
23551
23551
|
pointerEvents: I ? $ ? "auto" : "none" : void 0,
|
|
23552
23552
|
...t.style
|
|
23553
23553
|
},
|
|
23554
|
-
onFocusCapture:
|
|
23555
|
-
onBlurCapture:
|
|
23556
|
-
onPointerDownCapture:
|
|
23554
|
+
onFocusCapture: nn(t.onFocusCapture, W.onFocusCapture),
|
|
23555
|
+
onBlurCapture: nn(t.onBlurCapture, W.onBlurCapture),
|
|
23556
|
+
onPointerDownCapture: nn(
|
|
23557
23557
|
t.onPointerDownCapture,
|
|
23558
23558
|
B.onPointerDownCapture
|
|
23559
23559
|
)
|
|
@@ -23923,17 +23923,17 @@ var Mx = "Toast", Gee = "toast.swipeStart", Yee = "toast.swipeMove", Kee = "toas
|
|
|
23923
23923
|
onClose: () => h(!1),
|
|
23924
23924
|
onPause: ga(t.onPause),
|
|
23925
23925
|
onResume: ga(t.onResume),
|
|
23926
|
-
onSwipeStart:
|
|
23926
|
+
onSwipeStart: nn(t.onSwipeStart, (p) => {
|
|
23927
23927
|
p.currentTarget.setAttribute("data-swipe", "start");
|
|
23928
23928
|
}),
|
|
23929
|
-
onSwipeMove:
|
|
23929
|
+
onSwipeMove: nn(t.onSwipeMove, (p) => {
|
|
23930
23930
|
const { x: m, y: b } = p.detail.delta;
|
|
23931
23931
|
p.currentTarget.setAttribute("data-swipe", "move"), p.currentTarget.style.setProperty("--radix-toast-swipe-move-x", `${m}px`), p.currentTarget.style.setProperty("--radix-toast-swipe-move-y", `${b}px`);
|
|
23932
23932
|
}),
|
|
23933
|
-
onSwipeCancel:
|
|
23933
|
+
onSwipeCancel: nn(t.onSwipeCancel, (p) => {
|
|
23934
23934
|
p.currentTarget.setAttribute("data-swipe", "cancel"), p.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"), p.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"), p.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"), p.currentTarget.style.removeProperty("--radix-toast-swipe-end-y");
|
|
23935
23935
|
}),
|
|
23936
|
-
onSwipeEnd:
|
|
23936
|
+
onSwipeEnd: nn(t.onSwipeEnd, (p) => {
|
|
23937
23937
|
const { x: m, y: b } = p.detail.delta;
|
|
23938
23938
|
p.currentTarget.setAttribute("data-swipe", "end"), p.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"), p.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"), p.currentTarget.style.setProperty("--radix-toast-swipe-end-x", `${m}px`), p.currentTarget.style.setProperty("--radix-toast-swipe-end-y", `${b}px`), h(!1);
|
|
23939
23939
|
})
|
|
@@ -24003,7 +24003,7 @@ var [Qee, Zee] = tF(Mx, {
|
|
|
24003
24003
|
Nee,
|
|
24004
24004
|
{
|
|
24005
24005
|
asChild: !0,
|
|
24006
|
-
onEscapeKeyDown:
|
|
24006
|
+
onEscapeKeyDown: nn(c, () => {
|
|
24007
24007
|
_.isFocusedToastEscapeKeyDownRef.current || ne(), _.isFocusedToastEscapeKeyDownRef.current = !1;
|
|
24008
24008
|
}),
|
|
24009
24009
|
children: /* @__PURE__ */ z(
|
|
@@ -24018,13 +24018,13 @@ var [Qee, Zee] = tF(Mx, {
|
|
|
24018
24018
|
...A,
|
|
24019
24019
|
ref: M,
|
|
24020
24020
|
style: { userSelect: "none", touchAction: "none", ...t.style },
|
|
24021
|
-
onKeyDown:
|
|
24021
|
+
onKeyDown: nn(t.onKeyDown, (ce) => {
|
|
24022
24022
|
ce.key === "Escape" && (c == null || c(ce.nativeEvent), ce.nativeEvent.defaultPrevented || (_.isFocusedToastEscapeKeyDownRef.current = !0, ne()));
|
|
24023
24023
|
}),
|
|
24024
|
-
onPointerDown:
|
|
24024
|
+
onPointerDown: nn(t.onPointerDown, (ce) => {
|
|
24025
24025
|
ce.button === 0 && (I.current = { x: ce.clientX, y: ce.clientY });
|
|
24026
24026
|
}),
|
|
24027
|
-
onPointerMove:
|
|
24027
|
+
onPointerMove: nn(t.onPointerMove, (ce) => {
|
|
24028
24028
|
if (!I.current) return;
|
|
24029
24029
|
const ye = ce.clientX - I.current.x, ve = ce.clientY - I.current.y, ge = !!$.current, se = ["left", "right"].includes(_.swipeDirection), J = ["left", "up"].includes(_.swipeDirection) ? Math.min : Math.max, ee = se ? J(0, ye) : 0, ue = se ? 0 : J(0, ve), Te = ce.pointerType === "touch" ? 10 : 2, Ce = { x: ee, y: ue }, Oe = { originalEvent: ce, delta: Ce };
|
|
24030
24030
|
ge ? ($.current = Ce, V_(Yee, b, Oe, {
|
|
@@ -24033,7 +24033,7 @@ var [Qee, Zee] = tF(Mx, {
|
|
|
24033
24033
|
discrete: !1
|
|
24034
24034
|
}), ce.target.setPointerCapture(ce.pointerId)) : (Math.abs(ye) > Te || Math.abs(ve) > Te) && (I.current = null);
|
|
24035
24035
|
}),
|
|
24036
|
-
onPointerUp:
|
|
24036
|
+
onPointerUp: nn(t.onPointerUp, (ce) => {
|
|
24037
24037
|
const ye = $.current, ve = ce.target;
|
|
24038
24038
|
if (ve.hasPointerCapture(ce.pointerId) && ve.releasePointerCapture(ce.pointerId), $.current = null, I.current = null, ye) {
|
|
24039
24039
|
const ge = ce.currentTarget, se = { originalEvent: ce, delta: ye };
|
|
@@ -24101,7 +24101,7 @@ var dF = "ToastClose", JR = N.forwardRef(
|
|
|
24101
24101
|
type: "button",
|
|
24102
24102
|
...r,
|
|
24103
24103
|
ref: e,
|
|
24104
|
-
onClick:
|
|
24104
|
+
onClick: nn(t.onClick, i.onClose)
|
|
24105
24105
|
}
|
|
24106
24106
|
) });
|
|
24107
24107
|
}
|
|
@@ -27552,7 +27552,7 @@ var XF = "DialogTrigger", QF = N.forwardRef(
|
|
|
27552
27552
|
"data-state": uk(i.open),
|
|
27553
27553
|
...r,
|
|
27554
27554
|
ref: a,
|
|
27555
|
-
onClick:
|
|
27555
|
+
onClick: nn(t.onClick, i.onOpenToggle)
|
|
27556
27556
|
}
|
|
27557
27557
|
);
|
|
27558
27558
|
}
|
|
@@ -27609,15 +27609,15 @@ var cre = N.forwardRef(
|
|
|
27609
27609
|
ref: i,
|
|
27610
27610
|
trapFocus: n.open,
|
|
27611
27611
|
disableOutsidePointerEvents: !0,
|
|
27612
|
-
onCloseAutoFocus:
|
|
27612
|
+
onCloseAutoFocus: nn(t.onCloseAutoFocus, (a) => {
|
|
27613
27613
|
var l;
|
|
27614
27614
|
a.preventDefault(), (l = n.triggerRef.current) == null || l.focus();
|
|
27615
27615
|
}),
|
|
27616
|
-
onPointerDownOutside:
|
|
27616
|
+
onPointerDownOutside: nn(t.onPointerDownOutside, (a) => {
|
|
27617
27617
|
const l = a.detail.originalEvent, c = l.button === 0 && l.ctrlKey === !0;
|
|
27618
27618
|
(l.button === 2 || c) && a.preventDefault();
|
|
27619
27619
|
}),
|
|
27620
|
-
onFocusOutside:
|
|
27620
|
+
onFocusOutside: nn(
|
|
27621
27621
|
t.onFocusOutside,
|
|
27622
27622
|
(a) => a.preventDefault()
|
|
27623
27623
|
)
|
|
@@ -27703,7 +27703,7 @@ var aB = "DialogClose", oB = N.forwardRef(
|
|
|
27703
27703
|
type: "button",
|
|
27704
27704
|
...r,
|
|
27705
27705
|
ref: e,
|
|
27706
|
-
onClick:
|
|
27706
|
+
onClick: nn(t.onClick, () => i.onOpenChange(!1))
|
|
27707
27707
|
}
|
|
27708
27708
|
);
|
|
27709
27709
|
}
|
|
@@ -27815,7 +27815,7 @@ var cv = "AlertDialogContent", [Ere, Dre] = _re(cv), vB = N.forwardRef(
|
|
|
27815
27815
|
...a,
|
|
27816
27816
|
...i,
|
|
27817
27817
|
ref: c,
|
|
27818
|
-
onOpenAutoFocus:
|
|
27818
|
+
onOpenAutoFocus: nn(i.onOpenAutoFocus, (p) => {
|
|
27819
27819
|
var m;
|
|
27820
27820
|
p.preventDefault(), (m = h.current) == null || m.focus({ preventScroll: !0 });
|
|
27821
27821
|
}),
|
|
@@ -29058,7 +29058,7 @@ function HB(t) {
|
|
|
29058
29058
|
});
|
|
29059
29059
|
} else _ && ((S = t.onLoad) === null || S === void 0 || S.call(t, A));
|
|
29060
29060
|
}
|
|
29061
|
-
|
|
29061
|
+
rn(() => (n(!0), h), []), rn(() => {
|
|
29062
29062
|
e && m();
|
|
29063
29063
|
}, [t.icon, e]);
|
|
29064
29064
|
const { name: b, data: x } = l;
|
|
@@ -66238,15 +66238,9 @@ const kde = (t) => Lf(t) ? iP(t) ? t : "" : t, Pde = ({
|
|
|
66238
66238
|
disableCut: !Lf((n == null ? void 0 : n.videoLink) || "")
|
|
66239
66239
|
}), aee({
|
|
66240
66240
|
videoSrc: n == null ? void 0 : n.videoLink
|
|
66241
|
-
}),
|
|
66241
|
+
}), rn(() => () => {
|
|
66242
66242
|
a(""), i();
|
|
66243
|
-
}, [a, i]),
|
|
66244
|
-
console.log("Current timestampRanges:", b);
|
|
66245
|
-
const j = b.filter(
|
|
66246
|
-
(q) => q.startSeconds !== null && q.endSeconds !== null
|
|
66247
|
-
);
|
|
66248
|
-
console.log("Valid ranges for highlighting:", j);
|
|
66249
|
-
}, [b]), nn(() => {
|
|
66243
|
+
}, [a, i]), rn(() => {
|
|
66250
66244
|
(() => {
|
|
66251
66245
|
try {
|
|
66252
66246
|
setTimeout(() => {
|
|
@@ -66258,7 +66252,7 @@ const kde = (t) => Lf(t) ? iP(t) ? t : "" : t, Pde = ({
|
|
|
66258
66252
|
console.error("Error disabling autoplay:", q);
|
|
66259
66253
|
}
|
|
66260
66254
|
})();
|
|
66261
|
-
}, []),
|
|
66255
|
+
}, []), rn(() => {
|
|
66262
66256
|
const j = b.filter((q) => q.start && q.end).map((q, ne) => ({
|
|
66263
66257
|
_id: String(ne),
|
|
66264
66258
|
id: String(ne),
|
|
@@ -66297,7 +66291,7 @@ const kde = (t) => Lf(t) ? iP(t) ? t : "" : t, Pde = ({
|
|
|
66297
66291
|
}
|
|
66298
66292
|
}));
|
|
66299
66293
|
l(j);
|
|
66300
|
-
}, [b, l, n == null ? void 0 : n.videoLink]),
|
|
66294
|
+
}, [b, l, n == null ? void 0 : n.videoLink]), rn(() => {
|
|
66301
66295
|
if (!h.current) return;
|
|
66302
66296
|
const j = () => {
|
|
66303
66297
|
var ve, ge, se, J, ee, ue;
|
|
@@ -66376,9 +66370,9 @@ const kde = (t) => Lf(t) ? iP(t) ? t : "" : t, Pde = ({
|
|
|
66376
66370
|
return !0;
|
|
66377
66371
|
return !1;
|
|
66378
66372
|
};
|
|
66379
|
-
return
|
|
66373
|
+
return rn(() => {
|
|
66380
66374
|
h.current && (h.current.dispose(), h.current = null);
|
|
66381
|
-
}, [M]),
|
|
66375
|
+
}, [M]), rn(() => {
|
|
66382
66376
|
if (M && !h.current) {
|
|
66383
66377
|
const j = Lf(M), q = !j && rU(M) === "audio", ne = document.createElement("video-js");
|
|
66384
66378
|
ne.classList.add("vjs-big-play-centered", "vjs-theme-city"), j ? ne.classList.add("vjs-youtube") : q && ne.classList.add("vjs-default-skin", "videojs-audio"), c.current && c.current.appendChild(ne);
|
|
@@ -66502,7 +66496,7 @@ const kde = (t) => Lf(t) ? iP(t) ? t : "" : t, Pde = ({
|
|
|
66502
66496
|
S,
|
|
66503
66497
|
P,
|
|
66504
66498
|
$
|
|
66505
|
-
]),
|
|
66499
|
+
]), rn(() => {
|
|
66506
66500
|
var q;
|
|
66507
66501
|
const j = h.current;
|
|
66508
66502
|
if ((q = j == null ? void 0 : j.textTracks()) != null && q.length && G(j), j && (t == null ? void 0 : t.length) !== 0) {
|
|
@@ -66515,9 +66509,9 @@ const kde = (t) => Lf(t) ? iP(t) ? t : "" : t, Pde = ({
|
|
|
66515
66509
|
re && (re.innerHTML = X9);
|
|
66516
66510
|
}
|
|
66517
66511
|
}
|
|
66518
|
-
}, [t]),
|
|
66512
|
+
}, [t]), rn(() => {
|
|
66519
66513
|
h.current && $(h.current);
|
|
66520
|
-
}, [b, $]),
|
|
66514
|
+
}, [b, $]), rn(() => {
|
|
66521
66515
|
const j = h.current;
|
|
66522
66516
|
return () => {
|
|
66523
66517
|
p.current && cancelAnimationFrame(p.current), j && !j.isDisposed() && (j.dispose(), h.current = null);
|
|
@@ -66571,7 +66565,7 @@ const kde = (t) => Lf(t) ? iP(t) ? t : "" : t, Pde = ({
|
|
|
66571
66565
|
return !0;
|
|
66572
66566
|
return !1;
|
|
66573
66567
|
};
|
|
66574
|
-
return
|
|
66568
|
+
return rn(() => {
|
|
66575
66569
|
if (b && !i.current) {
|
|
66576
66570
|
const _ = Lf(b), E = !_ && rU(b) === "audio", P = document.createElement("video-js");
|
|
66577
66571
|
P.classList.add("vjs-big-play-centered", "vjs-theme-city"), _ ? P.classList.add("vjs-youtube") : E && P.classList.add("vjs-default-skin", "videojs-audio"), r.current && r.current.appendChild(P);
|
|
@@ -66692,7 +66686,7 @@ const kde = (t) => Lf(t) ? iP(t) ? t : "" : t, Pde = ({
|
|
|
66692
66686
|
c,
|
|
66693
66687
|
l,
|
|
66694
66688
|
m
|
|
66695
|
-
]),
|
|
66689
|
+
]), rn(() => {
|
|
66696
66690
|
var E;
|
|
66697
66691
|
const _ = i.current;
|
|
66698
66692
|
if ((E = _ == null ? void 0 : _.textTracks()) != null && E.length && S(_), _ && (t == null ? void 0 : t.length) !== 0) {
|
|
@@ -66702,7 +66696,7 @@ const kde = (t) => Lf(t) ? iP(t) ? t : "" : t, Pde = ({
|
|
|
66702
66696
|
const M = _.controlBar.getChild("SubsCapsButton").items[0].el().lastElementChild;
|
|
66703
66697
|
M && (M.innerHTML = X9);
|
|
66704
66698
|
}
|
|
66705
|
-
}, [t]),
|
|
66699
|
+
}, [t]), rn(() => {
|
|
66706
66700
|
const _ = i.current;
|
|
66707
66701
|
return () => {
|
|
66708
66702
|
_ && !_.isDisposed() && (_.dispose(), i.current = null);
|
|
@@ -69516,7 +69510,7 @@ function gpe() {
|
|
|
69516
69510
|
if (t === null)
|
|
69517
69511
|
return [!0, null];
|
|
69518
69512
|
const { isPresent: e, onExitComplete: n, register: r } = t, i = YX();
|
|
69519
|
-
|
|
69513
|
+
rn(() => r(i), []);
|
|
69520
69514
|
const a = Bi(() => n && n(i), [i, n]);
|
|
69521
69515
|
return !e && n ? [!1, a] : [!0];
|
|
69522
69516
|
}
|
|
@@ -70533,7 +70527,7 @@ const fme = {
|
|
|
70533
70527
|
transformPagePoint: (t) => t,
|
|
70534
70528
|
isStatic: !1,
|
|
70535
70529
|
reducedMotion: "never"
|
|
70536
|
-
}), o2 = $v({}), kP = typeof window < "u", pme = kP ? c6 :
|
|
70530
|
+
}), o2 = $v({}), kP = typeof window < "u", pme = kP ? c6 : rn, c$ = $v({ strict: !1 });
|
|
70537
70531
|
function mme(t, e, n, r, i) {
|
|
70538
70532
|
var a, l;
|
|
70539
70533
|
const { visualElement: c } = qa(o2), h = qa(c$), p = qa(AP), m = qa(u$).reducedMotion, b = Cr(null);
|
|
@@ -70554,7 +70548,7 @@ function mme(t, e, n, r, i) {
|
|
|
70554
70548
|
const _ = n[LV], E = Cr(!!_ && !(!((a = window.MotionHandoffIsComplete) === null || a === void 0) && a.call(window, _)) && ((l = window.MotionHasOptimisedAnimation) === null || l === void 0 ? void 0 : l.call(window, _)));
|
|
70555
70549
|
return pme(() => {
|
|
70556
70550
|
x && (A.current = !0, window.MotionIsMounted = !0, x.updateFeatures(), RP.render(x.render), E.current && x.animationState && x.animationState.animateChanges());
|
|
70557
|
-
}),
|
|
70551
|
+
}), rn(() => {
|
|
70558
70552
|
x && (!E.current && x.animationState && x.animationState.animateChanges(), E.current && (queueMicrotask(() => {
|
|
70559
70553
|
var P;
|
|
70560
70554
|
(P = window.MotionHandoffMarkAsComplete) === null || P === void 0 || P.call(window, _);
|
|
@@ -73743,7 +73737,7 @@ const Kge = Age, Xge = Rge, Qge = Cge, Zge = Pge, Jge = Ege, D8 = wge, eve = kge
|
|
|
73743
73737
|
platform: a
|
|
73744
73738
|
});
|
|
73745
73739
|
};
|
|
73746
|
-
var CS = typeof document < "u" ? c6 :
|
|
73740
|
+
var CS = typeof document < "u" ? c6 : rn;
|
|
73747
73741
|
function gx(t, e) {
|
|
73748
73742
|
if (t === e)
|
|
73749
73743
|
return !0;
|
|
@@ -74306,20 +74300,20 @@ var CR = "TooltipTrigger", fj = N.forwardRef(
|
|
|
74306
74300
|
"data-state": i.stateAttribute,
|
|
74307
74301
|
...r,
|
|
74308
74302
|
ref: h,
|
|
74309
|
-
onPointerMove:
|
|
74303
|
+
onPointerMove: nn(t.onPointerMove, (x) => {
|
|
74310
74304
|
x.pointerType !== "touch" && !m.current && !a.isPointerInTransitRef.current && (i.onTriggerEnter(), m.current = !0);
|
|
74311
74305
|
}),
|
|
74312
|
-
onPointerLeave:
|
|
74306
|
+
onPointerLeave: nn(t.onPointerLeave, () => {
|
|
74313
74307
|
i.onTriggerLeave(), m.current = !1;
|
|
74314
74308
|
}),
|
|
74315
|
-
onPointerDown:
|
|
74309
|
+
onPointerDown: nn(t.onPointerDown, () => {
|
|
74316
74310
|
p.current = !0, document.addEventListener("pointerup", b, { once: !0 });
|
|
74317
74311
|
}),
|
|
74318
|
-
onFocus:
|
|
74312
|
+
onFocus: nn(t.onFocus, () => {
|
|
74319
74313
|
p.current || i.onOpen();
|
|
74320
74314
|
}),
|
|
74321
|
-
onBlur:
|
|
74322
|
-
onClick:
|
|
74315
|
+
onBlur: nn(t.onBlur, i.onClose),
|
|
74316
|
+
onClick: nn(t.onClick, i.onClose)
|
|
74323
74317
|
}
|
|
74324
74318
|
) });
|
|
74325
74319
|
}
|
|
@@ -74560,7 +74554,7 @@ const Nve = (t, e, n = 30) => {
|
|
|
74560
74554
|
),
|
|
74561
74555
|
[t.timestamp_start, t.timestamp_end, n]
|
|
74562
74556
|
), [m, b] = Sn(p - 35);
|
|
74563
|
-
return
|
|
74557
|
+
return rn(() => {
|
|
74564
74558
|
l(
|
|
74565
74559
|
qn(
|
|
74566
74560
|
"00:00:000",
|
|
@@ -74994,7 +74988,7 @@ var KP = "Switch", [Wve, s_e] = Wf(KP), [Gve, Yve] = Wve(KP), Aj = N.forwardRef(
|
|
|
74994
74988
|
value: h,
|
|
74995
74989
|
...b,
|
|
74996
74990
|
ref: A,
|
|
74997
|
-
onClick:
|
|
74991
|
+
onClick: nn(t.onClick, (I) => {
|
|
74998
74992
|
M(($) => !$), E && (_.current = I.isPropagationStopped(), _.current || I.stopPropagation());
|
|
74999
74993
|
})
|
|
75000
74994
|
}
|
|
@@ -75277,12 +75271,12 @@ const P8 = Bl(
|
|
|
75277
75271
|
(b == null ? void 0 : b.map((sn) => ({ ...sn, headstart: r }))) || []
|
|
75278
75272
|
), A && A(t);
|
|
75279
75273
|
};
|
|
75280
|
-
|
|
75274
|
+
rn(() => {
|
|
75281
75275
|
cn <= 250 ? ve(!0) : ve(!1);
|
|
75282
|
-
}, [cn, r, i]),
|
|
75276
|
+
}, [cn, r, i]), rn(() => {
|
|
75283
75277
|
var sn;
|
|
75284
75278
|
I && I === t ? (ce(!0), (sn = q.current) == null || sn.focus()) : ce(!1);
|
|
75285
|
-
}, [I]),
|
|
75279
|
+
}, [I]), rn(() => (yn = async () => {
|
|
75286
75280
|
var sn;
|
|
75287
75281
|
try {
|
|
75288
75282
|
const dn = await (X == null ? void 0 : X({
|
|
@@ -75320,9 +75314,9 @@ const P8 = Bl(
|
|
|
75320
75314
|
}, h ? ee(!1) : P && l && yn(), () => {
|
|
75321
75315
|
yn = () => {
|
|
75322
75316
|
};
|
|
75323
|
-
}), [l, c]),
|
|
75317
|
+
}), [l, c]), rn(() => {
|
|
75324
75318
|
l && c === "done" && !h && ee(!1);
|
|
75325
|
-
}, [l, c, h]),
|
|
75319
|
+
}, [l, c, h]), rn(() => {
|
|
75326
75320
|
Ue(
|
|
75327
75321
|
qn("00:00:00", r, n)
|
|
75328
75322
|
), Ye(qn("00:00:00", i, n));
|
|
@@ -75664,7 +75658,7 @@ const P8 = Bl(
|
|
|
75664
75658
|
};
|
|
75665
75659
|
let E = () => {
|
|
75666
75660
|
};
|
|
75667
|
-
return
|
|
75661
|
+
return rn(() => (E = async () => {
|
|
75668
75662
|
var M, I, $, B, W, G;
|
|
75669
75663
|
if (m)
|
|
75670
75664
|
try {
|
|
@@ -75689,7 +75683,7 @@ const P8 = Bl(
|
|
|
75689
75683
|
}, m && !m.redirect_url && E(), () => {
|
|
75690
75684
|
E = () => {
|
|
75691
75685
|
};
|
|
75692
|
-
}), [m == null ? void 0 : m.process_status]),
|
|
75686
|
+
}), [m == null ? void 0 : m.process_status]), rn(() => {
|
|
75693
75687
|
var M;
|
|
75694
75688
|
(m == null ? void 0 : m.process_status) === "error" || (M = m == null ? void 0 : m.process_status) != null && M.includes("error") ? Wo({
|
|
75695
75689
|
title: m.process_status.split("_").join(" "),
|
|
@@ -75866,7 +75860,7 @@ const n0e = ({
|
|
|
75866
75860
|
const m = e < 15 ? 3 : e < 30 ? 2 : e < 50 ? 1 : 0;
|
|
75867
75861
|
return t[m];
|
|
75868
75862
|
}, [e, t]);
|
|
75869
|
-
return
|
|
75863
|
+
return rn(() => {
|
|
75870
75864
|
if (!p) return;
|
|
75871
75865
|
const m = new Image();
|
|
75872
75866
|
return m.src = p, a(!0), c(!1), m.onload = () => {
|
|
@@ -76001,7 +75995,7 @@ const a0e = va(Nj), o0e = ({
|
|
|
76001
75995
|
() => po(A),
|
|
76002
75996
|
[A]
|
|
76003
75997
|
);
|
|
76004
|
-
|
|
75998
|
+
rn(() => {
|
|
76005
75999
|
r && B(r);
|
|
76006
76000
|
}, [r]);
|
|
76007
76001
|
const re = sr(() => {
|
|
@@ -76059,9 +76053,9 @@ const a0e = va(Nj), o0e = ({
|
|
|
76059
76053
|
}, [ne, re, $]), ye = (Ue) => {
|
|
76060
76054
|
a.current && (a.current.scrollLeft = c3(Ue, $));
|
|
76061
76055
|
};
|
|
76062
|
-
|
|
76056
|
+
rn(() => {
|
|
76063
76057
|
ye(_);
|
|
76064
|
-
}, [_, $, a.current]),
|
|
76058
|
+
}, [_, $, a.current]), rn(() => {
|
|
76065
76059
|
if (c.current && _ !== void 0) {
|
|
76066
76060
|
const Ue = c3(_, $);
|
|
76067
76061
|
Ue < 0 ? c.current.style.left = "0px" : c.current.style.left = `${Ue}px`;
|
|
@@ -76103,7 +76097,7 @@ const a0e = va(Nj), o0e = ({
|
|
|
76103
76097
|
po(A),
|
|
76104
76098
|
$
|
|
76105
76099
|
), [J, ee] = Sn(!0);
|
|
76106
|
-
|
|
76100
|
+
rn(() => {
|
|
76107
76101
|
ee(!0);
|
|
76108
76102
|
let Ue = null;
|
|
76109
76103
|
return setTimeout(async () => {
|
|
@@ -76453,7 +76447,7 @@ const f0e = ({ className: t }) => /* @__PURE__ */ ut(
|
|
|
76453
76447
|
}
|
|
76454
76448
|
}
|
|
76455
76449
|
};
|
|
76456
|
-
return
|
|
76450
|
+
return rn(() => {
|
|
76457
76451
|
t && re && se();
|
|
76458
76452
|
}, [l]), /* @__PURE__ */ ut("div", { className: "w-full", children: [
|
|
76459
76453
|
u0e(e) ? /* @__PURE__ */ z("div", { className: ct("w-full flex-row items-center gap-[5px] pb-2"), children: /* @__PURE__ */ ut(
|
|
@@ -76590,7 +76584,7 @@ const f0e = ({ className: t }) => /* @__PURE__ */ ut(
|
|
|
76590
76584
|
), x = GR((E) => E.setOutputFiles), S = ov((E) => E.setMainFilePath), A = ov(
|
|
76591
76585
|
(E) => E.setTrimmedFilePath
|
|
76592
76586
|
), { getDirectory: _ } = qR();
|
|
76593
|
-
return
|
|
76587
|
+
return rn(() => {
|
|
76594
76588
|
const E = async () => {
|
|
76595
76589
|
try {
|
|
76596
76590
|
c(!0);
|
|
@@ -79889,7 +79883,7 @@ const D1e = ({
|
|
|
79889
79883
|
}
|
|
79890
79884
|
}, 50);
|
|
79891
79885
|
};
|
|
79892
|
-
|
|
79886
|
+
rn(() => {
|
|
79893
79887
|
c && !I && ce();
|
|
79894
79888
|
}, [c]);
|
|
79895
79889
|
const ye = () => {
|
|
@@ -80100,7 +80094,7 @@ const D1e = ({
|
|
|
80100
80094
|
l,
|
|
80101
80095
|
c
|
|
80102
80096
|
]);
|
|
80103
|
-
return
|
|
80097
|
+
return rn(() => {
|
|
80104
80098
|
var $, B;
|
|
80105
80099
|
const M = n == null ? void 0 : n.findIndex(
|
|
80106
80100
|
(W) => pt(r == null ? void 0 : r.timestamp_start) >= pt(W.timestamp_start) && pt(r == null ? void 0 : r.timestamp_end) <= pt(W.timestamp_end)
|
|
@@ -80361,7 +80355,7 @@ const R1e = ({
|
|
|
80361
80355
|
activeSegment: a
|
|
80362
80356
|
}
|
|
80363
80357
|
) : /* @__PURE__ */ z("div", { className: "w-full flex flex-row flex-wrap", children: ve });
|
|
80364
|
-
return
|
|
80358
|
+
return rn(() => {
|
|
80365
80359
|
if (j) {
|
|
80366
80360
|
const se = document.querySelector(
|
|
80367
80361
|
"#editable-transcript"
|
|
@@ -80374,7 +80368,7 @@ const R1e = ({
|
|
|
80374
80368
|
ee == null || ee.removeAllRanges(), ee == null || ee.addRange(J);
|
|
80375
80369
|
}
|
|
80376
80370
|
}
|
|
80377
|
-
}, [j]),
|
|
80371
|
+
}, [j]), rn(() => {
|
|
80378
80372
|
ie && ce.current && ce.current.blur();
|
|
80379
80373
|
}, [ie]), /* @__PURE__ */ ut("div", { className: ct("p-3 w-full flex flex-row gap-1", x), ...A, children: [
|
|
80380
80374
|
/* @__PURE__ */ ut(Qr, { children: [
|
|
@@ -80482,7 +80476,7 @@ const O1e = va(hz), a6 = (t, e, n) => {
|
|
|
80482
80476
|
return B[G].timestamp_start;
|
|
80483
80477
|
return ((W = B[B.length - 1]) == null ? void 0 : W.timestamp_start) || null;
|
|
80484
80478
|
}, [h, t, r]);
|
|
80485
|
-
|
|
80479
|
+
rn(() => {
|
|
80486
80480
|
c(!1);
|
|
80487
80481
|
}, [p]);
|
|
80488
80482
|
const _ = Bi(() => {
|
|
@@ -80571,7 +80565,7 @@ const O1e = va(hz), a6 = (t, e, n) => {
|
|
|
80571
80565
|
E
|
|
80572
80566
|
]
|
|
80573
80567
|
);
|
|
80574
|
-
|
|
80568
|
+
rn(() => {
|
|
80575
80569
|
if (h && n.current) {
|
|
80576
80570
|
const $ = n.current.querySelector(
|
|
80577
80571
|
`[data-segment-id="${h._id}"]`
|
|
@@ -80678,9 +80672,9 @@ var I1e = "DismissableLayer", MR = "dismissableLayer.update", L1e = "dismissable
|
|
|
80678
80672
|
pointerEvents: I ? $ ? "auto" : "none" : void 0,
|
|
80679
80673
|
...t.style
|
|
80680
80674
|
},
|
|
80681
|
-
onFocusCapture:
|
|
80682
|
-
onBlurCapture:
|
|
80683
|
-
onPointerDownCapture:
|
|
80675
|
+
onFocusCapture: nn(t.onFocusCapture, W.onFocusCapture),
|
|
80676
|
+
onBlurCapture: nn(t.onBlurCapture, W.onBlurCapture),
|
|
80677
|
+
onPointerDownCapture: nn(
|
|
80684
80678
|
t.onPointerDownCapture,
|
|
80685
80679
|
B.onPointerDownCapture
|
|
80686
80680
|
)
|
|
@@ -80908,15 +80902,15 @@ var bz = "SelectTrigger", Tz = N.forwardRef(
|
|
|
80908
80902
|
"data-placeholder": Hz(l.value) ? "" : void 0,
|
|
80909
80903
|
...i,
|
|
80910
80904
|
ref: h,
|
|
80911
|
-
onClick:
|
|
80905
|
+
onClick: nn(i.onClick, (_) => {
|
|
80912
80906
|
_.currentTarget.focus(), m.current !== "mouse" && A(_);
|
|
80913
80907
|
}),
|
|
80914
|
-
onPointerDown:
|
|
80908
|
+
onPointerDown: nn(i.onPointerDown, (_) => {
|
|
80915
80909
|
m.current = _.pointerType;
|
|
80916
80910
|
const E = _.target;
|
|
80917
80911
|
E.hasPointerCapture(_.pointerId) && E.releasePointerCapture(_.pointerId), _.button === 0 && _.ctrlKey === !1 && _.pointerType === "mouse" && (A(_), _.preventDefault());
|
|
80918
80912
|
}),
|
|
80919
|
-
onKeyDown:
|
|
80913
|
+
onKeyDown: nn(i.onKeyDown, (_) => {
|
|
80920
80914
|
const E = b.current !== "";
|
|
80921
80915
|
!(_.ctrlKey || _.altKey || _.metaKey) && _.key.length === 1 && x(_.key), !(E && _.key === " ") && W1e.includes(_.key) && (A(), _.preventDefault());
|
|
80922
80916
|
})
|
|
@@ -81083,7 +81077,7 @@ var Pl = 10, [Ez, Xf] = r0(Bp), eTe = "SelectContentImpl", Dz = N.forwardRef(
|
|
|
81083
81077
|
onMountAutoFocus: (Le) => {
|
|
81084
81078
|
Le.preventDefault();
|
|
81085
81079
|
},
|
|
81086
|
-
onUnmountAutoFocus:
|
|
81080
|
+
onUnmountAutoFocus: nn(i, (Le) => {
|
|
81087
81081
|
var Ue;
|
|
81088
81082
|
(Ue = M.trigger) == null || Ue.focus({ preventScroll: !0 }), Le.preventDefault();
|
|
81089
81083
|
}),
|
|
@@ -81116,7 +81110,7 @@ var Pl = 10, [Ez, Xf] = r0(Bp), eTe = "SelectContentImpl", Dz = N.forwardRef(
|
|
|
81116
81110
|
outline: "none",
|
|
81117
81111
|
...P.style
|
|
81118
81112
|
},
|
|
81119
|
-
onKeyDown:
|
|
81113
|
+
onKeyDown: nn(P.onKeyDown, (Le) => {
|
|
81120
81114
|
const Ue = Le.ctrlKey || Le.altKey || Le.metaKey;
|
|
81121
81115
|
if (Le.key === "Tab" && Le.preventDefault(), !Ue && Le.key.length === 1 && ue(Le.key), ["ArrowUp", "ArrowDown", "Home", "End"].includes(Le.key)) {
|
|
81122
81116
|
let Ye = re().filter((at) => !at.disabled).map((at) => at.ref.current);
|
|
@@ -81305,7 +81299,7 @@ var [rTe, fO] = r0(Bp, {}), LR = "SelectViewport", Rz = N.forwardRef(
|
|
|
81305
81299
|
overflow: "hidden auto",
|
|
81306
81300
|
...i.style
|
|
81307
81301
|
},
|
|
81308
|
-
onScroll:
|
|
81302
|
+
onScroll: nn(i.onScroll, (p) => {
|
|
81309
81303
|
const m = p.currentTarget, { contentWrapper: b, shouldExpandOnScrollRef: x } = l;
|
|
81310
81304
|
if (x != null && x.current && b) {
|
|
81311
81305
|
const S = Math.abs(h.current - m.scrollTop);
|
|
@@ -81391,26 +81385,26 @@ var Tx = "SelectItem", [aTe, Nz] = r0(Tx), Iz = N.forwardRef(
|
|
|
81391
81385
|
tabIndex: i ? void 0 : -1,
|
|
81392
81386
|
...l,
|
|
81393
81387
|
ref: A,
|
|
81394
|
-
onFocus:
|
|
81395
|
-
onBlur:
|
|
81396
|
-
onClick:
|
|
81388
|
+
onFocus: nn(l.onFocus, () => S(!0)),
|
|
81389
|
+
onBlur: nn(l.onBlur, () => S(!1)),
|
|
81390
|
+
onClick: nn(l.onClick, () => {
|
|
81397
81391
|
E.current !== "mouse" && P();
|
|
81398
81392
|
}),
|
|
81399
|
-
onPointerUp:
|
|
81393
|
+
onPointerUp: nn(l.onPointerUp, () => {
|
|
81400
81394
|
E.current === "mouse" && P();
|
|
81401
81395
|
}),
|
|
81402
|
-
onPointerDown:
|
|
81396
|
+
onPointerDown: nn(l.onPointerDown, (M) => {
|
|
81403
81397
|
E.current = M.pointerType;
|
|
81404
81398
|
}),
|
|
81405
|
-
onPointerMove:
|
|
81399
|
+
onPointerMove: nn(l.onPointerMove, (M) => {
|
|
81406
81400
|
var I;
|
|
81407
81401
|
E.current = M.pointerType, i ? (I = h.onItemLeave) == null || I.call(h) : E.current === "mouse" && M.currentTarget.focus({ preventScroll: !0 });
|
|
81408
81402
|
}),
|
|
81409
|
-
onPointerLeave:
|
|
81403
|
+
onPointerLeave: nn(l.onPointerLeave, (M) => {
|
|
81410
81404
|
var I;
|
|
81411
81405
|
M.currentTarget === document.activeElement && ((I = h.onItemLeave) == null || I.call(h));
|
|
81412
81406
|
}),
|
|
81413
|
-
onKeyDown:
|
|
81407
|
+
onKeyDown: nn(l.onKeyDown, (M) => {
|
|
81414
81408
|
var $;
|
|
81415
81409
|
(($ = h.searchRef) == null ? void 0 : $.current) !== "" && M.key === " " || (G1e.includes(M.key) && P(), M.key === " " && M.preventDefault());
|
|
81416
81410
|
})
|
|
@@ -81514,14 +81508,14 @@ var $z = N.forwardRef((t, e) => {
|
|
|
81514
81508
|
...i,
|
|
81515
81509
|
ref: e,
|
|
81516
81510
|
style: { flexShrink: 0, ...i.style },
|
|
81517
|
-
onPointerDown:
|
|
81511
|
+
onPointerDown: nn(i.onPointerDown, () => {
|
|
81518
81512
|
l.current === null && (l.current = window.setInterval(r, 50));
|
|
81519
81513
|
}),
|
|
81520
|
-
onPointerMove:
|
|
81514
|
+
onPointerMove: nn(i.onPointerMove, () => {
|
|
81521
81515
|
var p;
|
|
81522
81516
|
(p = a.onItemLeave) == null || p.call(a), l.current === null && (l.current = window.setInterval(r, 50));
|
|
81523
81517
|
}),
|
|
81524
|
-
onPointerLeave:
|
|
81518
|
+
onPointerLeave: nn(i.onPointerLeave, () => {
|
|
81525
81519
|
h();
|
|
81526
81520
|
})
|
|
81527
81521
|
}
|