@factorialco/f0-react 7.23.0 → 7.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/dist/{ChatPdfThumbnail-BBAjTpRO.js → ChatPdfThumbnail-2_8sBW1U.js} +1 -1
  2. package/dist/{ChatPostComposerDialog-CzzBwu4c.js → ChatPostComposerDialog-BGEl20rM.js} +3 -3
  3. package/dist/{DocumentToolbar-CLmAa1CS.js → DocumentToolbar-BDDt63-g.js} +2 -2
  4. package/dist/{DocxViewer-17wM_5Ub.js → DocxViewer-Dt2nHTXV.js} +2 -2
  5. package/dist/{F0AiProcessingOverlay-Crv3v_qi.js → F0AiProcessingOverlay-nojpvoxK.js} +285 -285
  6. package/dist/{F0CanvasPanel-B2aaoYnV.js → F0CanvasPanel-DnlpQoxW.js} +639 -638
  7. package/dist/F0Map-C7hMGlk_.js +2499 -0
  8. package/dist/{F0VideoPlayer-aMaViir7.js → F0VideoPlayer-DKPfOJBp.js} +79 -79
  9. package/dist/{MapProvider-cgH29EcL.js → MapProvider-DNpgap--.js} +8174 -8124
  10. package/dist/{SheetViewer-DRvoh1Ht.js → SheetViewer-Wd4Fmg4a.js} +2 -2
  11. package/dist/{TextViewer-t6wTzXs4.js → TextViewer-C3OMcE58.js} +2 -2
  12. package/dist/ai.d.ts +22 -12
  13. package/dist/ai.js +2 -2
  14. package/dist/component-status.d.ts +12 -12
  15. package/dist/component-status.js +2 -2
  16. package/dist/{experimental-7owBUBms.js → experimental-DZvuUsDE.js} +11859 -13903
  17. package/dist/experimental.d.ts +367 -92
  18. package/dist/experimental.js +291 -284
  19. package/dist/f0.d.ts +182 -12
  20. package/dist/f0.js +6005 -6007
  21. package/dist/i18n-provider-defaults.d.ts +22 -12
  22. package/dist/i18n-provider-defaults.js +11 -1
  23. package/dist/index-B1UwLgNv.js +256 -0
  24. package/dist/index-BUqW79F1.js +4 -0
  25. package/dist/{index-CyVOH26Y.js → index-CCea6fTM.js} +1 -1
  26. package/dist/index-eeXQJkem.js +410 -0
  27. package/dist/{index-zELO6ifF.js → index-ekx-EJga.js} +31 -31
  28. package/dist/{pdfWorker-tk-Ol5j0.js → pdfWorker-CK4gerrz.js} +3 -3
  29. package/dist/styles.css +1 -1
  30. package/dist/{tooltip-BElsa4MF.js → tooltip-CrXp1Uaz.js} +2 -2
  31. package/package.json +1 -1
  32. package/dist/index-C2NRpdhB.js +0 -4
  33. package/dist/index-DnEPnn6A.js +0 -255
  34. /package/dist/{experimental.css → maplibre-gl.css} +0 -0
@@ -1,7 +1,7 @@
1
- import { u as W, x as je, y as Xe, o as $, z as Ge, A as Ze, B as qe, E as Ye, G as Je, H as Qe, J as et, K as tt, L as nt, M as rt, N as at, O as ot, Q as st, R as ye, U as it, V as Ce, l as ct, W as lt, X as ut, Y as dt, w as ft, t as mt } from "./F0CanvasPanel-B2aaoYnV.js";
1
+ import { u as W, H as je, J as Xe, y as $, K as Ge, L as Ze, M as qe, N as Ye, O as Je, Q as Qe, R as et, U as tt, V as nt, W as rt, X as at, Y as ot, Z as st, _ as ye, $ as it, a0 as Ce, l as ct, a1 as lt, a2 as ut, v as dt, B as ft, E as mt } from "./F0CanvasPanel-DnlpQoxW.js";
2
2
  import { jsxs as S, jsx as c } from "react/jsx-runtime";
3
- import { forwardRef as re, useId as pt, useState as x, useRef as F, useEffect as N, useMemo as J, useCallback as T } from "react";
4
- import { d as H, f as ue } from "./tooltip-BElsa4MF.js";
3
+ import { forwardRef as re, useId as pt, useState as E, useRef as F, useEffect as N, useMemo as J, useCallback as T } from "react";
4
+ import { d as H, f as ue } from "./tooltip-CrXp1Uaz.js";
5
5
  import { F as Pe, a as ht, b as gt } from "./VolumeMuted-UfTwt2zn.js";
6
6
  function Se(e) {
7
7
  return Array.isArray(e) && e.every(
@@ -61,7 +61,7 @@ function ne(e) {
61
61
  function se(e) {
62
62
  return `${e}x`;
63
63
  }
64
- function xt(e) {
64
+ function Et(e) {
65
65
  return Re.includes(e);
66
66
  }
67
67
  const De = {
@@ -177,7 +177,7 @@ const fe = re(
177
177
  )
178
178
  );
179
179
  fe.displayName = "CaptionsLineIcon";
180
- const Ae = re(
180
+ const Me = re(
181
181
  ({ animate: e, ...t }, a) => /* @__PURE__ */ c(
182
182
  "svg",
183
183
  {
@@ -199,13 +199,13 @@ const Ae = re(
199
199
  }
200
200
  )
201
201
  );
202
- Ae.displayName = "CaptionsFilledIcon";
203
- function Et({
202
+ Me.displayName = "CaptionsFilledIcon";
203
+ function xt({
204
204
  value: e,
205
205
  onChange: t,
206
206
  containerRef: a
207
207
  }) {
208
- const { t: n } = W(), [o, s] = x(!1), r = (d) => {
208
+ const { t: n } = W(), [o, s] = E(!1), r = (d) => {
209
209
  const u = Array.from(
210
210
  d.currentTarget.querySelectorAll(
211
211
  '[role="menuitemradio"]'
@@ -296,17 +296,17 @@ function Ct({
296
296
  blockSeekPastMarker: n = !1,
297
297
  onSeek: o
298
298
  }) {
299
- const { t: s } = W(), r = F(null), [d, u] = x(!1), [m, g] = x(null), y = t > 0 ? Math.min(1, e / t) : 0, l = a !== void 0 && t > 0 ? Math.min(1, a / t) : 0, f = a !== void 0 && t > 0 && a > 0 && a < t - le && e < a - le, h = (v) => {
299
+ const { t: s } = W(), r = F(null), [d, u] = E(!1), [m, g] = E(null), y = t > 0 ? Math.min(1, e / t) : 0, l = a !== void 0 && t > 0 ? Math.min(1, a / t) : 0, f = a !== void 0 && t > 0 && a > 0 && a < t - le && e < a - le, h = (v) => {
300
300
  const P = r.current;
301
301
  if (!P)
302
302
  return 0;
303
- const M = P.getBoundingClientRect();
304
- return Math.max(0, Math.min(1, (v - M.left) / M.width));
303
+ const A = P.getBoundingClientRect();
304
+ return Math.max(0, Math.min(1, (v - A.left) / A.width));
305
305
  }, b = (v) => {
306
306
  t && o(h(v) * t);
307
- }, E = (v) => {
307
+ }, x = (v) => {
308
308
  t && (v.preventDefault(), v.currentTarget.setPointerCapture(v.pointerId), u(!0), b(v.clientX));
309
- }, A = (v) => {
309
+ }, M = (v) => {
310
310
  t && (g(h(v.clientX)), d && b(v.clientX));
311
311
  }, k = (v) => {
312
312
  d && (u(!1), v.currentTarget.hasPointerCapture(v.pointerId) && v.currentTarget.releasePointerCapture(v.pointerId));
@@ -351,8 +351,8 @@ function Ct({
351
351
  current: ne(e),
352
352
  total: ne(t)
353
353
  }),
354
- onPointerDown: E,
355
- onPointerMove: A,
354
+ onPointerDown: x,
355
+ onPointerMove: M,
356
356
  onPointerUp: k,
357
357
  onPointerCancel: k,
358
358
  onLostPointerCapture: () => u(!1),
@@ -387,7 +387,7 @@ function Ct({
387
387
  }
388
388
  );
389
389
  }
390
- const ie = "off", we = "py-2 pr-4 text-base font-medium", Pt = "gap-2 py-2 pl-3 pr-2 text-base font-medium", Me = "max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[13rem] overflow-y-auto p-1";
390
+ const ie = "off", we = "py-2 pr-4 text-base font-medium", Pt = "gap-2 py-2 pl-3 pr-2 text-base font-medium", Ae = "max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[13rem] overflow-y-auto p-1";
391
391
  function ce({
392
392
  icon: e,
393
393
  label: t,
@@ -406,7 +406,7 @@ function ce({
406
406
  /* @__PURE__ */ c("span", { className: "flex-1", children: t }),
407
407
  /* @__PURE__ */ c("span", { className: "text-f1-foreground-secondary", children: y })
408
408
  ] }),
409
- /* @__PURE__ */ c(at, { container: a ?? void 0, children: /* @__PURE__ */ c(ot, { className: Me, children: /* @__PURE__ */ S(
409
+ /* @__PURE__ */ c(at, { container: a ?? void 0, children: /* @__PURE__ */ c(ot, { className: Ae, children: /* @__PURE__ */ S(
410
410
  st,
411
411
  {
412
412
  value: m ? r ? o : ie : o,
@@ -443,7 +443,7 @@ function St({
443
443
  onAudioDescriptionLanguageChange: l,
444
444
  onAudioDescriptionOff: f
445
445
  }) {
446
- const { t: h } = W(), b = e.current, E = h("videoPlayer.off");
446
+ const { t: h } = W(), b = e.current, x = h("videoPlayer.off");
447
447
  return /* @__PURE__ */ S(qe, { children: [
448
448
  /* @__PURE__ */ c(Ye, { asChild: !0, children: /* @__PURE__ */ c(
449
449
  $,
@@ -461,7 +461,7 @@ function St({
461
461
  container: b,
462
462
  side: "top",
463
463
  align: "end",
464
- className: Me,
464
+ className: Ae,
465
465
  children: [
466
466
  t.length > 1 ? /* @__PURE__ */ c(
467
467
  ce,
@@ -472,7 +472,7 @@ function St({
472
472
  options: t,
473
473
  value: a,
474
474
  onLanguageChange: n,
475
- offLabel: E
475
+ offLabel: x
476
476
  }
477
477
  ) : null,
478
478
  o.length > 1 ? /* @__PURE__ */ c(
@@ -486,7 +486,7 @@ function St({
486
486
  on: r,
487
487
  onLanguageChange: d,
488
488
  onOff: u,
489
- offLabel: E
489
+ offLabel: x
490
490
  }
491
491
  ) : null,
492
492
  m.length > 1 ? /* @__PURE__ */ c(
@@ -500,7 +500,7 @@ function St({
500
500
  on: y,
501
501
  onLanguageChange: l,
502
502
  onOff: f,
503
- offLabel: E
503
+ offLabel: x
504
504
  }
505
505
  ) : null
506
506
  ]
@@ -544,11 +544,11 @@ function Tt({
544
544
  onClick: a
545
545
  }
546
546
  ),
547
- /* @__PURE__ */ c(At, { value: r ? 0 : e, onChange: n })
547
+ /* @__PURE__ */ c(Mt, { value: r ? 0 : e, onChange: n })
548
548
  ] });
549
549
  }
550
- function At({ value: e, onChange: t }) {
551
- const { t: a } = W(), n = F(null), [o, s] = x(!1), r = Math.max(0, Math.min(1, e)), d = (l) => {
550
+ function Mt({ value: e, onChange: t }) {
551
+ const { t: a } = W(), n = F(null), [o, s] = E(!1), r = Math.max(0, Math.min(1, e)), d = (l) => {
552
552
  const f = n.current;
553
553
  if (!f)
554
554
  return 0;
@@ -631,7 +631,7 @@ function At({ value: e, onChange: t }) {
631
631
  }
632
632
  );
633
633
  }
634
- function Mt({
634
+ function At({
635
635
  isPlaying: e,
636
636
  currentTime: t,
637
637
  duration: a,
@@ -648,14 +648,14 @@ function Mt({
648
648
  audioDescriptionOn: f,
649
649
  silent: h,
650
650
  persist: b,
651
- audioLanguages: E,
652
- audioLanguage: A,
651
+ audioLanguages: x,
652
+ audioLanguage: M,
653
653
  onAudioLanguageChange: k,
654
654
  captionLanguages: w,
655
655
  captionLanguage: O,
656
656
  onCaptionLanguageChange: v,
657
657
  onCaptionsOff: P,
658
- audioDescriptionLanguages: M,
658
+ audioDescriptionLanguages: A,
659
659
  audioDescriptionLanguage: C,
660
660
  onAudioDescriptionLanguageChange: i,
661
661
  onAudioDescriptionOff: D,
@@ -669,10 +669,10 @@ function Mt({
669
669
  onSeek: Y,
670
670
  download: G
671
671
  }) {
672
- const { t: p } = W(), I = g && w.length <= 1, z = l && M.length <= 1, V = Rt({
673
- audioLanguages: E.length,
672
+ const { t: p } = W(), I = g && w.length <= 1, z = l && A.length <= 1, V = Rt({
673
+ audioLanguages: x.length,
674
674
  captionLanguages: w.length,
675
- audioDescriptionLanguages: M.length
675
+ audioDescriptionLanguages: A.length
676
676
  });
677
677
  return /* @__PURE__ */ S(
678
678
  "div",
@@ -732,7 +732,7 @@ function Mt({
732
732
  }
733
733
  ),
734
734
  /* @__PURE__ */ c(
735
- Et,
735
+ xt,
736
736
  {
737
737
  value: s,
738
738
  onChange: K,
@@ -748,7 +748,7 @@ function Mt({
748
748
  variant: "ghost",
749
749
  size: "sm",
750
750
  hideLabel: !0,
751
- icon: y ? Ae : fe,
751
+ icon: y ? Me : fe,
752
752
  label: p("videoPlayer.captions"),
753
753
  "aria-pressed": y,
754
754
  onClick: _
@@ -776,15 +776,15 @@ function Mt({
776
776
  St,
777
777
  {
778
778
  containerRef: m,
779
- audioLanguages: E,
780
- audioLanguage: A,
779
+ audioLanguages: x,
780
+ audioLanguage: M,
781
781
  onAudioLanguageChange: k,
782
782
  captionLanguages: w,
783
783
  captionLanguage: O,
784
784
  captionsOn: y,
785
785
  onCaptionLanguageChange: v,
786
786
  onCaptionsOff: P,
787
- audioDescriptionLanguages: M,
787
+ audioDescriptionLanguages: A,
788
788
  audioDescriptionLanguage: C,
789
789
  audioDescriptionOn: f,
790
790
  onAudioDescriptionLanguageChange: i,
@@ -819,7 +819,7 @@ function Mt({
819
819
  }
820
820
  const ke = (e) => e.trimStart().startsWith("WEBVTT");
821
821
  function Ie(e) {
822
- const t = e !== void 0 && ke(e), [a, n] = x();
822
+ const t = e !== void 0 && ke(e), [a, n] = E();
823
823
  return N(() => {
824
824
  if (e === void 0 || !ke(e)) {
825
825
  n(void 0);
@@ -832,38 +832,38 @@ function Ie(e) {
832
832
  needsCrossOrigin: e !== void 0 && !t
833
833
  };
834
834
  }
835
- const xe = "descriptions";
835
+ const Ee = "descriptions";
836
836
  function It(e, { enabled: t, describedSrc: a, descriptions: n }) {
837
- const o = a !== void 0, { trackSrc: s, needsCrossOrigin: r } = Ie(n), [d, u] = x(!1), m = o || n !== void 0 || d, [g, y] = x(), l = F(!1);
837
+ const o = a !== void 0, { trackSrc: s, needsCrossOrigin: r } = Ie(n), [d, u] = E(!1), m = o || n !== void 0 || d, [g, y] = E(), l = F(!1);
838
838
  return N(() => {
839
839
  if (!e)
840
840
  return;
841
- const f = e.textTracks, h = typeof window < "u" && "speechSynthesis" in window, b = t && !o && h, E = () => {
841
+ const f = e.textTracks, h = typeof window < "u" && "speechSynthesis" in window, b = t && !o && h, x = () => {
842
842
  l.current && (l.current = !1, e.play().catch(() => {
843
843
  }));
844
- }, A = (C) => {
844
+ }, M = (C) => {
845
845
  window.speechSynthesis.cancel();
846
846
  const i = new SpeechSynthesisUtterance(C);
847
- i.onend = E, i.onerror = E, window.speechSynthesis.speak(i);
847
+ i.onend = x, i.onerror = x, window.speechSynthesis.speak(i);
848
848
  }, k = /* @__PURE__ */ new WeakSet(), w = [], O = (C) => {
849
- if (C.kind !== xe || (C.mode = "hidden", k.has(C)) || typeof C.addEventListener != "function")
849
+ if (C.kind !== Ee || (C.mode = "hidden", k.has(C)) || typeof C.addEventListener != "function")
850
850
  return;
851
851
  k.add(C);
852
852
  const i = () => {
853
853
  const R = C.activeCues?.[0]?.text || void 0;
854
- y(R), b && R && (e.paused || (e.pause(), l.current = !0), A(R));
854
+ y(R), b && R && (e.paused || (e.pause(), l.current = !0), M(R));
855
855
  };
856
856
  C.addEventListener("cuechange", i), w.push(() => C.removeEventListener("cuechange", i));
857
857
  }, v = () => {
858
858
  let C = !1;
859
859
  for (const i of Array.from(f))
860
- i.kind === xe && (n === void 0 && (C = !0), O(i));
860
+ i.kind === Ee && (n === void 0 && (C = !0), O(i));
861
861
  u(C);
862
862
  };
863
863
  v();
864
- const P = typeof f.addEventListener == "function", M = () => v();
865
- return P && (f.addEventListener("addtrack", M), f.addEventListener("removetrack", M)), () => {
866
- P && (f.removeEventListener("addtrack", M), f.removeEventListener("removetrack", M)), w.forEach((C) => C()), h && window.speechSynthesis.cancel(), E();
864
+ const P = typeof f.addEventListener == "function", A = () => v();
865
+ return P && (f.addEventListener("addtrack", A), f.addEventListener("removetrack", A)), () => {
866
+ P && (f.removeEventListener("addtrack", A), f.removeEventListener("removetrack", A)), w.forEach((C) => C()), h && window.speechSynthesis.cancel(), x();
867
867
  };
868
868
  }, [e, t, o, n, s]), J(
869
869
  () => ({ trackSrc: s, needsCrossOrigin: r, available: m, activeCue: g }),
@@ -873,7 +873,7 @@ function It(e, { enabled: t, describedSrc: a, descriptions: n }) {
873
873
  function Nt({
874
874
  targetRef: e
875
875
  }) {
876
- const [t, a] = x(!1);
876
+ const [t, a] = E(!1);
877
877
  N(() => {
878
878
  const o = () => {
879
879
  a(document.fullscreenElement === e.current);
@@ -949,7 +949,7 @@ function Ft({
949
949
  }) {
950
950
  const n = F(0), o = F(0), s = F(t);
951
951
  s.current = t;
952
- const [r, d] = x(0);
952
+ const [r, d] = E(0);
953
953
  N(() => {
954
954
  n.current = 0, o.current = 0, d(0);
955
955
  }, [a]), N(() => {
@@ -977,12 +977,12 @@ function Ft({
977
977
  const u = T((m) => s.current ? Math.min(m, n.current) : m, []);
978
978
  return { maxWatchedTime: r, clampSeek: u };
979
979
  }
980
- const Ee = /* @__PURE__ */ new Set([
980
+ const xe = /* @__PURE__ */ new Set([
981
981
  "captions",
982
982
  "subtitles"
983
983
  ]), Ot = 2, Vt = 3;
984
984
  function Ut(e, t) {
985
- const { trackSrc: a, needsCrossOrigin: n } = Ie(t), [o, s] = x(!1), [r, d] = x(!1), [u, m] = x(!1), y = r || t !== void 0 && !u;
985
+ const { trackSrc: a, needsCrossOrigin: n } = Ie(t), [o, s] = E(!1), [r, d] = E(!1), [u, m] = E(!1), y = r || t !== void 0 && !u;
986
986
  return N(() => {
987
987
  m(!1), d(!1);
988
988
  }, [a]), N(() => {
@@ -993,7 +993,7 @@ function Ut(e, t) {
993
993
  ), h = () => {
994
994
  let k = !1;
995
995
  for (const w of Array.from(l))
996
- Ee.has(w.kind) && (w.mode = o ? "showing" : "hidden", w.cues && w.cues.length > 0 && (k = !0));
996
+ xe.has(w.kind) && (w.mode = o ? "showing" : "hidden", w.cues && w.cues.length > 0 && (k = !0));
997
997
  if (d(k), f) {
998
998
  if (f.readyState === Vt)
999
999
  m(!0);
@@ -1012,14 +1012,14 @@ function Ut(e, t) {
1012
1012
  });
1013
1013
  }
1014
1014
  for (const k of Array.from(l)) {
1015
- if (!Ee.has(k.kind) || typeof k.addEventListener != "function")
1015
+ if (!xe.has(k.kind) || typeof k.addEventListener != "function")
1016
1016
  continue;
1017
1017
  const w = () => h();
1018
1018
  k.addEventListener("cuechange", w), b.push(() => k.removeEventListener("cuechange", w));
1019
1019
  }
1020
- const E = typeof l.addEventListener == "function", A = () => h();
1021
- return E && (l.addEventListener("addtrack", A), l.addEventListener("removetrack", A)), e.addEventListener("loadedmetadata", h), () => {
1022
- b.forEach((k) => k()), E && (l.removeEventListener("addtrack", A), l.removeEventListener("removetrack", A)), e.removeEventListener("loadedmetadata", h);
1020
+ const x = typeof l.addEventListener == "function", M = () => h();
1021
+ return x && (l.addEventListener("addtrack", M), l.addEventListener("removetrack", M)), e.addEventListener("loadedmetadata", h), () => {
1022
+ b.forEach((k) => k()), x && (l.removeEventListener("addtrack", M), l.removeEventListener("removetrack", M)), e.removeEventListener("loadedmetadata", h);
1023
1023
  };
1024
1024
  }, [e, t, o, a]), J(
1025
1025
  () => ({
@@ -1086,11 +1086,11 @@ function zt({
1086
1086
  }, [e, s]);
1087
1087
  }
1088
1088
  function Bt(e) {
1089
- const t = F(null), [a, n] = x(
1089
+ const t = F(null), [a, n] = E(
1090
1090
  null
1091
1091
  ), o = F(0), s = T((i) => {
1092
1092
  t.current = i, n(i);
1093
- }, []), [r, d] = x(!1), [u, m] = x(!1), [g, y] = x(0), [l, f] = x(0), [h, b] = x(1), [E, A] = x(!1), [k, w] = x(
1093
+ }, []), [r, d] = E(!1), [u, m] = E(!1), [g, y] = E(0), [l, f] = E(0), [h, b] = E(1), [x, M] = E(!1), [k, w] = E(
1094
1094
  oe
1095
1095
  );
1096
1096
  N(() => {
@@ -1100,9 +1100,9 @@ function Bt(e) {
1100
1100
  if (!i)
1101
1101
  return;
1102
1102
  const D = () => m(!0), R = () => m(!1), B = () => m(!1), j = () => {
1103
- b(i.volume), A(i.muted);
1103
+ b(i.volume), M(i.muted);
1104
1104
  }, K = () => f(i.duration || 0), X = () => {
1105
- xt(i.playbackRate) && w(i.playbackRate);
1105
+ Et(i.playbackRate) && w(i.playbackRate);
1106
1106
  }, _ = () => {
1107
1107
  const U = performance.now();
1108
1108
  U - o.current >= bt && (o.current = U, y(i.currentTime));
@@ -1124,7 +1124,7 @@ function Bt(e) {
1124
1124
  return;
1125
1125
  const R = Math.max(0, Math.min(1, i));
1126
1126
  D.volume = R, D.muted = R === 0;
1127
- }, []), M = T((i) => {
1127
+ }, []), A = T((i) => {
1128
1128
  const D = t.current;
1129
1129
  D && (D.playbackRate = i);
1130
1130
  }, []), C = T((i) => {
@@ -1143,13 +1143,13 @@ function Bt(e) {
1143
1143
  currentTime: g,
1144
1144
  duration: l,
1145
1145
  volume: h,
1146
- isMuted: E,
1146
+ isMuted: x,
1147
1147
  playbackRate: k,
1148
1148
  setVideoLoaded: d,
1149
1149
  togglePlay: O,
1150
1150
  toggleMute: v,
1151
1151
  setVolume: P,
1152
- setPlaybackRate: M,
1152
+ setPlaybackRate: A,
1153
1153
  seekTo: C
1154
1154
  };
1155
1155
  }
@@ -1195,19 +1195,19 @@ function Wt({
1195
1195
  onComplete: f,
1196
1196
  ...h
1197
1197
  }) {
1198
- const { t: b } = W(), E = F(null), A = J(() => ae(e), [e]), [k, w] = x(
1199
- () => Z(A, r)
1200
- ), O = A.some((L) => L.locale === k) ? k : Z(A, r), v = ee(e, O) ?? "", P = J(
1198
+ const { t: b } = W(), x = F(null), M = J(() => ae(e), [e]), [k, w] = E(
1199
+ () => Z(M, r)
1200
+ ), O = M.some((L) => L.locale === k) ? k : Z(M, r), v = ee(e, O) ?? "", P = J(
1201
1201
  () => ae(s?.captions),
1202
1202
  [s?.captions]
1203
- ), [M, C] = x(
1203
+ ), [A, C] = E(
1204
1204
  () => Z(P, r)
1205
1205
  ), i = P.some(
1206
- (L) => L.locale === M
1207
- ) ? M : Z(P, r), D = ee(s?.captions, i), R = J(
1206
+ (L) => L.locale === A
1207
+ ) ? A : Z(P, r), D = ee(s?.captions, i), R = J(
1208
1208
  () => ae(s?.descriptions, s?.describedSrc),
1209
1209
  [s?.descriptions, s?.describedSrc]
1210
- ), [B, j] = x(
1210
+ ), [B, j] = E(
1211
1211
  () => Z(R, r)
1212
1212
  ), K = R.some(
1213
1213
  (L) => L.locale === B
@@ -1217,7 +1217,7 @@ function Wt({
1217
1217
  ), _ = ee(
1218
1218
  s?.describedSrc,
1219
1219
  K
1220
- ), [U, Y] = x(!1), G = U && _ ? _ : v, p = Bt(G), I = Ut(p.videoElement, D), z = It(p.videoElement, {
1220
+ ), [U, Y] = E(!1), G = U && _ ? _ : v, p = Bt(G), I = Ut(p.videoElement, D), z = It(p.videoElement, {
1221
1221
  enabled: U,
1222
1222
  describedSrc: _,
1223
1223
  descriptions: X
@@ -1269,7 +1269,7 @@ function Wt({
1269
1269
  (L) => p.seekTo(me(L)),
1270
1270
  [p, me]
1271
1271
  ), { isFullscreen: Ke, toggleFullscreen: he } = Nt({
1272
- targetRef: E
1272
+ targetRef: x
1273
1273
  }), ge = T(() => {
1274
1274
  }, []), ve = !!(U && _);
1275
1275
  N(() => {
@@ -1285,13 +1285,13 @@ function Wt({
1285
1285
  setVolume: n ? ge : p.setVolume
1286
1286
  });
1287
1287
  N(() => {
1288
- u && E.current?.focus({ preventScroll: !0 });
1288
+ u && x.current?.focus({ preventScroll: !0 });
1289
1289
  }, [u]);
1290
1290
  const Be = (L) => L.preventDefault();
1291
1291
  return /* @__PURE__ */ S(
1292
1292
  "div",
1293
1293
  {
1294
- ref: E,
1294
+ ref: x,
1295
1295
  className: H(
1296
1296
  "group relative h-full w-full overflow-hidden rounded-[inherit] bg-f1-foreground dark:bg-f1-background",
1297
1297
  "[&:fullscreen]:h-screen [&:fullscreen]:w-screen [&:fullscreen]:rounded-none",
@@ -1384,7 +1384,7 @@ function Wt({
1384
1384
  ) : null,
1385
1385
  /* @__PURE__ */ c("span", { className: "sr-only", "aria-live": "polite", children: p.isPlaying ? b("videoPlayer.playing") : b("videoPlayer.paused") }),
1386
1386
  p.videoLoaded ? /* @__PURE__ */ c(
1387
- Mt,
1387
+ At,
1388
1388
  {
1389
1389
  isPlaying: p.isPlaying,
1390
1390
  currentTime: p.currentTime,
@@ -1395,14 +1395,14 @@ function Wt({
1395
1395
  isFullscreen: Ke,
1396
1396
  markerTime: g ? $e : void 0,
1397
1397
  blockSeekPastMarker: g,
1398
- containerRef: E,
1398
+ containerRef: x,
1399
1399
  captionsAvailable: I.available,
1400
1400
  captionsOn: I.showing,
1401
1401
  audioDescriptionAvailable: z.available,
1402
1402
  audioDescriptionOn: U,
1403
1403
  silent: n,
1404
1404
  persist: o,
1405
- audioLanguages: A,
1405
+ audioLanguages: M,
1406
1406
  audioLanguage: O,
1407
1407
  onAudioLanguageChange: Ne,
1408
1408
  captionLanguages: P,