@factorialco/f0-react 10.1.0 → 10.2.1

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 (50) hide show
  1. package/dist/{ChatDocxThumbnail-CX5HYrKS.js → ChatDocxThumbnail-DdI_ITWn.js} +1 -1
  2. package/dist/{ChatPdfThumbnail-ISkJYLY9.js → ChatPdfThumbnail-DftUFjlF.js} +1 -1
  3. package/dist/{ChatPostComposerDialog-DxbHdZxW.js → ChatPostComposerDialog-Gj1gd5ED.js} +3 -3
  4. package/dist/{ChatSheetThumbnail-B2lUZoSi.js → ChatSheetThumbnail-BKCy7BGq.js} +1 -1
  5. package/dist/{CoachmarkProvider-DqWyppW-.js → CoachmarkProvider-CsqkzlOs.js} +66867 -19860
  6. package/dist/{DocumentToolbar-BcDACwRP.js → DocumentToolbar-DeE70FQ2.js} +5 -5
  7. package/dist/{DocxViewer-D-5449ha.js → DocxViewer-bEu4jZnY.js} +3 -3
  8. package/dist/F0AiProcessingOverlay-IdMxPTPz.js +5999 -0
  9. package/dist/{F0Box-DrW7A9gg.js → F0Box-D0fWIRgc.js} +20 -20
  10. package/dist/{F0CanvasPanel-DCKaKwkK.js → F0CanvasPanel-mMDAtCgu.js} +12993 -9719
  11. package/dist/F0DocumentViewer-CyCOZ_XC.js +391 -0
  12. package/dist/F0DocumentViewer-DZSiAv1A.js +3 -0
  13. package/dist/{F0Map-o0Ni4sbn.js → F0Map-DyOzE_rQ.js} +170 -170
  14. package/dist/{F0Select-CwkVLiZO.js → F0Select-BrvzcAQQ.js} +2270 -2269
  15. package/dist/F0VideoPlayer-2XgTkMzT.js +1 -0
  16. package/dist/{F0VideoPlayer-Iw-SFQqN.js → F0VideoPlayer-CEjGJ_6y.js} +396 -397
  17. package/dist/{LocationMap-CYwkLWH5.js → LocationMap-Ds0SgBMO.js} +2 -2
  18. package/dist/{Map-DM9wfTpz.js → Map-DVMFiMrr.js} +55 -55
  19. package/dist/{SheetViewer-BbDeLWkN.js → SheetViewer-DOPvERv8.js} +5 -5
  20. package/dist/{TextViewer-CnI7Nabs.js → TextViewer-WRl8atLN.js} +2 -2
  21. package/dist/ai.d.ts +2 -2
  22. package/dist/ai.js +3 -3
  23. package/dist/{axe-Z5T0keK7.js → axe-CpDXsSXe.js} +1 -1
  24. package/dist/component-status.js +54 -9
  25. package/dist/{dist-DjxhsV9m.js → dist-7YY6sRd4.js} +1 -1
  26. package/dist/experimental.d.ts +1702 -66
  27. package/dist/experimental.js +8944 -8185
  28. package/dist/{exports-CcIlylmm.d.ts → exports-BDFKcDjH.d.ts} +1 -1
  29. package/dist/f0.d.ts +3 -3
  30. package/dist/f0.js +3994 -51002
  31. package/dist/{index-B_My10oo.d.ts → index-C_3CYY4r.d.ts} +1 -1
  32. package/dist/{index-CAJfRljV.d.ts → index-NaWQyQZT.d.ts} +7 -1
  33. package/dist/{maplibre-BD2IQLbD.js → maplibre-DYBwcFt1.js} +3 -3
  34. package/dist/{maplibre-gl-DT2EWG65.js → maplibre-gl-DVldSYfz.js} +1 -1
  35. package/dist/{papaparse.min-CJow4fNM.js → papaparse.min-BwPbUAd9.js} +1 -1
  36. package/dist/{pdfWorker-DYQKoZEy.js → pdfWorker-C_6XT3yW.js} +4 -3
  37. package/dist/{popover-BTxkQ2PV.js → popover-B2hEEubt.js} +2821 -2780
  38. package/dist/{renderDocx-gCyLwCY2.js → renderDocx-_UmnE-yc.js} +1 -1
  39. package/dist/rolldown-runtime-BItFwnF5.js +30 -0
  40. package/dist/{sheetPreview-CcQwSTIl.js → sheetPreview-Ca0kCtSa.js} +2 -2
  41. package/dist/styles.css +1 -1
  42. package/dist/{tooltip-DVXqL5Ri.js → tooltip-TOvfXq9F.js} +1481 -1509
  43. package/dist/{useData-CiWwYG4W.js → useData-DjJsB0qa.js} +4744 -4743
  44. package/package.json +1 -1
  45. package/dist/F0AiProcessingOverlay-CmqXWu0j.js +0 -9183
  46. package/dist/F0DocumentViewer-CEhoiH_i.js +0 -3
  47. package/dist/F0DocumentViewer-DpuzMqKE.js +0 -392
  48. package/dist/F0VideoPlayer-CnrSP5Em.js +0 -1
  49. package/dist/Printer-snTHysV7.js +0 -34
  50. package/dist/VolumeMuted-Db9P5djr.js +0 -65
@@ -1,24 +1,23 @@
1
- import { I as e, L as t } from "./tooltip-DVXqL5Ri.js";
2
- import { w as n } from "./CoachmarkProvider-DqWyppW-.js";
3
- import { A as r, B as i, F as a, I as o, L as s, U as c, V as l, a as u, an as d, ar as f, b as p, i as m, in as h, j as g, rn as _, rr as v, t as y, z as b } from "./popover-BTxkQ2PV.js";
4
- import { Ma as x, aa as ee, eo as S, go as te, la as C, oa as ne, za as w } from "./F0CanvasPanel-DCKaKwkK.js";
5
- import { t as T } from "./Check-DAp9gCRh.js";
6
- import { n as re, r as ie, t as E } from "./VolumeMuted-Db9P5djr.js";
7
- import { forwardRef as D, useCallback as O, useEffect as k, useId as A, useMemo as j, useRef as M, useState as N } from "react";
8
- import { jsx as P, jsxs as F } from "react/jsx-runtime";
1
+ import { w as e } from "./CoachmarkProvider-CsqkzlOs.js";
2
+ import { A as t, B as n, F as r, I as i, L as a, U as o, V as s, a as c, an as l, ar as u, b as d, i as f, in as p, j as m, rn as h, rr as g, t as _, z as v } from "./popover-B2hEEubt.js";
3
+ import { I as y, L as b } from "./tooltip-TOvfXq9F.js";
4
+ import { Ao as x, Ji as S, Ki as C, Wa as ee, Za as te, _a as w, ma as T, mo as E, pa as ne, qi as re } from "./F0CanvasPanel-mMDAtCgu.js";
5
+ import { t as D } from "./Check-DAp9gCRh.js";
6
+ import { forwardRef as O, useCallback as k, useEffect as A, useId as j, useMemo as M, useRef as N, useState as P } from "react";
7
+ import { jsx as F, jsxs as I } from "react/jsx-runtime";
9
8
  //#region src/elements/lib/localized.ts
10
- function I(e) {
9
+ function L(e) {
11
10
  return Array.isArray(e) && e.every((e) => typeof e == "object" && !!e && "locale" in e && "value" in e);
12
11
  }
13
- function L(e, t) {
12
+ function R(e, t) {
14
13
  if (e !== void 0) {
15
- if (!I(e)) return e;
14
+ if (!L(e)) return e;
16
15
  if (e.length !== 0) return ((t ? e.find((e) => e.locale === t) : void 0) ?? e[0]).value;
17
16
  }
18
17
  }
19
- function R(...e) {
18
+ function z(...e) {
20
19
  let t = /* @__PURE__ */ new Map();
21
- for (let n of e) if (I(n)) for (let e of n) {
20
+ for (let n of e) if (L(n)) for (let e of n) {
22
21
  let n = t.get(e.locale);
23
22
  n ? !n.label && e.label && (n.label = e.label) : t.set(e.locale, {
24
23
  locale: e.locale,
@@ -27,7 +26,7 @@ function R(...e) {
27
26
  }
28
27
  return Array.from(t.values());
29
28
  }
30
- function z(e, t) {
29
+ function B(e, t) {
31
30
  if (e.label) return e.label;
32
31
  try {
33
32
  let n = t ?? e.locale, r = new Intl.DisplayNames([n], { type: "language" }).of(e.locale) ?? e.locale;
@@ -36,7 +35,7 @@ function z(e, t) {
36
35
  return e.locale;
37
36
  }
38
37
  }
39
- function B(e, t) {
38
+ function V(e, t) {
40
39
  if (e.length === 0) return;
41
40
  let n = e.map((e) => e.locale), r = (e) => e.split("-")[0], i = (e) => n.find((t) => t === e) ?? n.find((t) => r(t) === r(e));
42
41
  if (t) {
@@ -52,29 +51,29 @@ function B(e, t) {
52
51
  }
53
52
  //#endregion
54
53
  //#region src/blocks/F0VideoPlayer/utils.ts
55
- var V = [
54
+ var H = [
56
55
  .5,
57
56
  .75,
58
57
  1,
59
58
  1.25,
60
59
  1.5
61
- ], H = .1, U = [
60
+ ], U = .1, W = [
62
61
  25,
63
62
  50,
64
63
  75
65
- ], W = 3e5, G = .03;
66
- function K(e) {
64
+ ], G = 3e5, K = .03;
65
+ function q(e) {
67
66
  return !Number.isFinite(e) || e < 0 ? "0:00" : `${Math.floor(e / 60)}:${Math.floor(e % 60).toString().padStart(2, "0")}`;
68
67
  }
69
- function q(e) {
68
+ function J(e) {
70
69
  return `${e}x`;
71
70
  }
72
- function J(e) {
73
- return V.includes(e);
71
+ function Y(e) {
72
+ return H.includes(e);
74
73
  }
75
74
  //#endregion
76
75
  //#region src/blocks/F0VideoPlayer/components/AudioDescriptionToggleIcons.tsx
77
- var Y = {
76
+ var X = {
78
77
  x: 12,
79
78
  y: 15,
80
79
  textAnchor: "middle",
@@ -82,14 +81,14 @@ var Y = {
82
81
  fontWeight: 700,
83
82
  fontFamily: "inherit",
84
83
  letterSpacing: -.4
85
- }, X = D(({ animate: e, ...t }, n) => /* @__PURE__ */ F("svg", {
84
+ }, Z = O(({ animate: e, ...t }, n) => /* @__PURE__ */ I("svg", {
86
85
  xmlns: "http://www.w3.org/2000/svg",
87
86
  viewBox: "0 0 24 24",
88
87
  fill: "none",
89
88
  ref: n,
90
89
  ...t,
91
90
  "aria-hidden": "true",
92
- children: [/* @__PURE__ */ P("rect", {
91
+ children: [/* @__PURE__ */ F("rect", {
93
92
  x: 3.5,
94
93
  y: 6.5,
95
94
  width: 17,
@@ -97,38 +96,38 @@ var Y = {
97
96
  rx: 2.5,
98
97
  stroke: "currentColor",
99
98
  vectorEffect: "non-scaling-stroke"
100
- }), /* @__PURE__ */ P("text", {
101
- ...Y,
99
+ }), /* @__PURE__ */ F("text", {
100
+ ...X,
102
101
  fill: "currentColor",
103
102
  children: "AD"
104
103
  })]
105
104
  }));
106
- X.displayName = "AudioDescriptionLineIcon";
107
- var ae = D(({ animate: e, ...t }, n) => {
108
- let r = `ad-mask-${A().replace(/:/g, "")}`;
109
- return /* @__PURE__ */ F("svg", {
105
+ Z.displayName = "AudioDescriptionLineIcon";
106
+ var ie = O(({ animate: e, ...t }, n) => {
107
+ let r = `ad-mask-${j().replace(/:/g, "")}`;
108
+ return /* @__PURE__ */ I("svg", {
110
109
  xmlns: "http://www.w3.org/2000/svg",
111
110
  viewBox: "0 0 24 24",
112
111
  fill: "none",
113
112
  ref: n,
114
113
  ...t,
115
114
  "aria-hidden": "true",
116
- children: [/* @__PURE__ */ F("mask", {
115
+ children: [/* @__PURE__ */ I("mask", {
117
116
  id: r,
118
117
  maskUnits: "userSpaceOnUse",
119
- children: [/* @__PURE__ */ P("rect", {
118
+ children: [/* @__PURE__ */ F("rect", {
120
119
  x: 3,
121
120
  y: 6,
122
121
  width: 18,
123
122
  height: 12,
124
123
  rx: 3,
125
124
  fill: "white"
126
- }), /* @__PURE__ */ P("text", {
127
- ...Y,
125
+ }), /* @__PURE__ */ F("text", {
126
+ ...X,
128
127
  fill: "black",
129
128
  children: "AD"
130
129
  })]
131
- }), /* @__PURE__ */ P("rect", {
130
+ }), /* @__PURE__ */ F("rect", {
132
131
  x: 3,
133
132
  y: 6,
134
133
  width: 18,
@@ -139,17 +138,17 @@ var ae = D(({ animate: e, ...t }, n) => {
139
138
  })]
140
139
  });
141
140
  });
142
- ae.displayName = "AudioDescriptionFilledIcon";
141
+ ie.displayName = "AudioDescriptionFilledIcon";
143
142
  //#endregion
144
143
  //#region src/blocks/F0VideoPlayer/components/CaptionsToggleIcons.tsx
145
- var Z = D(({ animate: e, ...t }, n) => /* @__PURE__ */ F("svg", {
144
+ var Q = O(({ animate: e, ...t }, n) => /* @__PURE__ */ I("svg", {
146
145
  xmlns: "http://www.w3.org/2000/svg",
147
146
  fill: "none",
148
147
  viewBox: "0 0 24 24",
149
148
  ref: n,
150
149
  ...t,
151
150
  children: [
152
- /* @__PURE__ */ P("rect", {
151
+ /* @__PURE__ */ F("rect", {
153
152
  x: 3.5,
154
153
  y: 6.5,
155
154
  width: 17,
@@ -158,13 +157,13 @@ var Z = D(({ animate: e, ...t }, n) => /* @__PURE__ */ F("svg", {
158
157
  stroke: "currentColor",
159
158
  vectorEffect: "non-scaling-stroke"
160
159
  }),
161
- /* @__PURE__ */ P("path", {
160
+ /* @__PURE__ */ F("path", {
162
161
  stroke: "currentColor",
163
162
  strokeLinecap: "round",
164
163
  d: "M7 10.75h8",
165
164
  vectorEffect: "non-scaling-stroke"
166
165
  }),
167
- /* @__PURE__ */ P("path", {
166
+ /* @__PURE__ */ F("path", {
168
167
  stroke: "currentColor",
169
168
  strokeLinecap: "round",
170
169
  d: "M7 13.75h4.5",
@@ -172,14 +171,14 @@ var Z = D(({ animate: e, ...t }, n) => /* @__PURE__ */ F("svg", {
172
171
  })
173
172
  ]
174
173
  }));
175
- Z.displayName = "CaptionsLineIcon";
176
- var oe = D(({ animate: e, ...t }, n) => /* @__PURE__ */ P("svg", {
174
+ Q.displayName = "CaptionsLineIcon";
175
+ var ae = O(({ animate: e, ...t }, n) => /* @__PURE__ */ F("svg", {
177
176
  xmlns: "http://www.w3.org/2000/svg",
178
177
  fill: "none",
179
178
  viewBox: "0 0 24 24",
180
179
  ref: n,
181
180
  ...t,
182
- children: /* @__PURE__ */ P("path", {
181
+ children: /* @__PURE__ */ F("path", {
183
182
  fill: "currentColor",
184
183
  fillRule: "evenodd",
185
184
  clipRule: "evenodd",
@@ -187,30 +186,30 @@ var oe = D(({ animate: e, ...t }, n) => /* @__PURE__ */ P("svg", {
187
186
  vectorEffect: "non-scaling-stroke"
188
187
  })
189
188
  }));
190
- oe.displayName = "CaptionsFilledIcon";
189
+ ae.displayName = "CaptionsFilledIcon";
191
190
  //#endregion
192
191
  //#region src/blocks/F0VideoPlayer/components/PlaybackRateMenu.tsx
193
- function se({ value: t, onChange: n, containerRef: r }) {
194
- let { t: i } = _(), [a, o] = N(!1);
195
- return /* @__PURE__ */ F(y, {
196
- open: a,
197
- onOpenChange: o,
198
- children: [/* @__PURE__ */ P(u, {
192
+ function oe({ value: e, onChange: t, containerRef: n }) {
193
+ let { t: r } = h(), [i, a] = P(!1);
194
+ return /* @__PURE__ */ I(_, {
195
+ open: i,
196
+ onOpenChange: a,
197
+ children: [/* @__PURE__ */ F(c, {
199
198
  asChild: !0,
200
- children: /* @__PURE__ */ P(p, {
199
+ children: /* @__PURE__ */ F(d, {
201
200
  variant: "ghost",
202
201
  size: "sm",
203
- label: q(t),
204
- "aria-label": i("videoPlayer.playbackSpeed", { rate: q(t) })
202
+ label: J(e),
203
+ "aria-label": r("videoPlayer.playbackSpeed", { rate: J(e) })
205
204
  })
206
- }), /* @__PURE__ */ P(m, {
207
- container: r.current,
205
+ }), /* @__PURE__ */ F(f, {
206
+ container: n.current,
208
207
  side: "top",
209
208
  align: "end",
210
209
  sideOffset: 8,
211
- className: e("flex w-auto min-w-[7rem] flex-col gap-0.5 rounded-md border", "border-solid border-f1-border-secondary bg-f1-background p-1 shadow-md"),
210
+ className: y("flex w-auto min-w-[7rem] flex-col gap-0.5 rounded-md border", "border-solid border-f1-border-secondary bg-f1-background p-1 shadow-md"),
212
211
  role: "menu",
213
- "aria-label": i("videoPlayer.playbackSpeedLabel"),
212
+ "aria-label": r("videoPlayer.playbackSpeedLabel"),
214
213
  onKeyDown: (e) => {
215
214
  let t = Array.from(e.currentTarget.querySelectorAll("[role=\"menuitemradio\"]"));
216
215
  if (t.length === 0) return;
@@ -232,183 +231,183 @@ function se({ value: t, onChange: n, containerRef: r }) {
232
231
  }
233
232
  e.preventDefault(), t[r]?.focus();
234
233
  },
235
- children: V.map((r) => {
236
- let i = r === t;
237
- return /* @__PURE__ */ F("button", {
234
+ children: H.map((n) => {
235
+ let r = n === e;
236
+ return /* @__PURE__ */ I("button", {
238
237
  type: "button",
239
238
  role: "menuitemradio",
240
- "aria-checked": i,
241
- className: e("relative flex items-center rounded-xs py-1.5 pl-8 pr-3", "cursor-pointer border-none bg-transparent text-left text-sm font-medium tabular-nums", "text-f1-foreground transition-colors hover:bg-f1-background-secondary", "focus-visible:bg-f1-background-secondary focus-visible:outline-none", "[&_svg]:h-3.5 [&_svg]:w-3.5"),
239
+ "aria-checked": r,
240
+ className: y("relative flex items-center rounded-xs py-1.5 pl-8 pr-3", "cursor-pointer border-none bg-transparent text-left text-sm font-medium tabular-nums", "text-f1-foreground transition-colors hover:bg-f1-background-secondary", "focus-visible:bg-f1-background-secondary focus-visible:outline-none", "[&_svg]:h-3.5 [&_svg]:w-3.5"),
242
241
  onClick: () => {
243
- n(r), o(!1);
242
+ t(n), a(!1);
244
243
  },
245
- children: [i ? /* @__PURE__ */ P("span", {
244
+ children: [r ? /* @__PURE__ */ F("span", {
246
245
  className: "absolute left-2.5 inline-flex items-center",
247
- children: /* @__PURE__ */ P(T, {})
248
- }) : null, q(r)]
249
- }, r);
246
+ children: /* @__PURE__ */ F(D, {})
247
+ }) : null, J(n)]
248
+ }, n);
250
249
  })
251
250
  })]
252
251
  });
253
252
  }
254
253
  //#endregion
255
254
  //#region src/blocks/F0VideoPlayer/components/Seekbar.tsx
256
- function ce({ currentTime: n, duration: r, markerTime: i, blockSeekPastMarker: a = !1, onSeek: o }) {
257
- let { t: s } = _(), c = M(null), [l, u] = N(!1), [d, f] = N(null), p = r > 0 ? Math.min(1, n / r) : 0, m = i !== void 0 && r > 0 ? Math.min(1, i / r) : 0, h = i !== void 0 && r > 0 && i > 0 && i < r - .25 && n < i - .25, g = (e) => {
258
- let t = c.current;
255
+ function se({ currentTime: e, duration: t, markerTime: n, blockSeekPastMarker: r = !1, onSeek: i }) {
256
+ let { t: a } = h(), o = N(null), [s, c] = P(!1), [l, u] = P(null), d = t > 0 ? Math.min(1, e / t) : 0, f = n !== void 0 && t > 0 ? Math.min(1, n / t) : 0, p = n !== void 0 && t > 0 && n > 0 && n < t - .25 && e < n - .25, m = (e) => {
257
+ let t = o.current;
259
258
  if (!t) return 0;
260
259
  let n = t.getBoundingClientRect();
261
260
  return Math.max(0, Math.min(1, (e - n.left) / n.width));
261
+ }, g = (e) => {
262
+ t && i(m(e) * t);
263
+ }, _ = (e) => {
264
+ t && (e.preventDefault(), e.currentTarget.setPointerCapture(e.pointerId), c(!0), g(e.clientX));
262
265
  }, v = (e) => {
263
- r && o(g(e) * r);
264
- }, y = (e) => {
265
- r && (e.preventDefault(), e.currentTarget.setPointerCapture(e.pointerId), u(!0), v(e.clientX));
266
- }, b = (e) => {
267
- r && (f(g(e.clientX)), l && v(e.clientX));
266
+ t && (u(m(e.clientX)), s && g(e.clientX));
268
267
  }, x = (e) => {
269
- l && (u(!1), e.currentTarget.hasPointerCapture(e.pointerId) && e.currentTarget.releasePointerCapture(e.pointerId));
270
- }, ee = d !== null && a && i !== void 0 && d > m;
271
- return /* @__PURE__ */ F("div", {
272
- ref: c,
273
- className: e("relative flex h-4 flex-1 items-center rounded-sm", "cursor-pointer touch-none", t()),
268
+ s && (c(!1), e.currentTarget.hasPointerCapture(e.pointerId) && e.currentTarget.releasePointerCapture(e.pointerId));
269
+ }, S = l !== null && r && n !== void 0 && l > f;
270
+ return /* @__PURE__ */ I("div", {
271
+ ref: o,
272
+ className: y("relative flex h-4 flex-1 items-center rounded-sm", "cursor-pointer touch-none", b()),
274
273
  role: "slider",
275
274
  tabIndex: 0,
276
- "aria-label": s("videoPlayer.seekLabel"),
275
+ "aria-label": a("videoPlayer.seekLabel"),
277
276
  "aria-valuemin": 0,
278
- "aria-valuemax": r || 0,
279
- "aria-valuenow": n,
280
- "aria-valuetext": s("videoPlayer.timeProgress", {
281
- current: K(n),
282
- total: K(r)
277
+ "aria-valuemax": t || 0,
278
+ "aria-valuenow": e,
279
+ "aria-valuetext": a("videoPlayer.timeProgress", {
280
+ current: q(e),
281
+ total: q(t)
283
282
  }),
284
- onPointerDown: y,
285
- onPointerMove: b,
283
+ onPointerDown: _,
284
+ onPointerMove: v,
286
285
  onPointerUp: x,
287
286
  onPointerCancel: x,
288
- onLostPointerCapture: () => u(!1),
289
- onPointerLeave: () => f(null),
290
- onKeyDown: (e) => {
291
- if (!r) return;
292
- let t = null;
293
- switch (e.key) {
287
+ onLostPointerCapture: () => c(!1),
288
+ onPointerLeave: () => u(null),
289
+ onKeyDown: (n) => {
290
+ if (!t) return;
291
+ let r = null;
292
+ switch (n.key) {
294
293
  case "ArrowLeft":
295
- t = Math.max(0, n - 5);
294
+ r = Math.max(0, e - 5);
296
295
  break;
297
296
  case "ArrowRight":
298
- t = Math.min(r, n + 5);
297
+ r = Math.min(t, e + 5);
299
298
  break;
300
299
  case "Home":
301
- t = 0;
300
+ r = 0;
302
301
  break;
303
302
  case "End":
304
- t = r;
303
+ r = t;
305
304
  break;
306
305
  default: return;
307
306
  }
308
- e.preventDefault(), e.stopPropagation(), o(t);
307
+ n.preventDefault(), n.stopPropagation(), i(r);
309
308
  },
310
309
  children: [
311
- /* @__PURE__ */ P("div", { className: "absolute inset-x-0 h-1 rounded-sm bg-f1-foreground/30" }),
312
- /* @__PURE__ */ P("div", {
310
+ /* @__PURE__ */ F("div", { className: "absolute inset-x-0 h-1 rounded-sm bg-f1-foreground/30" }),
311
+ /* @__PURE__ */ F("div", {
313
312
  className: "pointer-events-none absolute left-0 h-1 rounded-sm bg-f1-foreground",
314
- style: { width: `${p * 100}%` }
313
+ style: { width: `${d * 100}%` }
315
314
  }),
316
- h ? /* @__PURE__ */ P("div", {
315
+ p ? /* @__PURE__ */ F("div", {
317
316
  className: "pointer-events-none absolute z-[1] h-2.5 w-0.5 -translate-x-px bg-f1-foreground/95",
318
- style: { left: `${m * 100}%` },
317
+ style: { left: `${f * 100}%` },
319
318
  "aria-hidden": "true"
320
319
  }) : null,
321
- /* @__PURE__ */ P("div", {
320
+ /* @__PURE__ */ F("div", {
322
321
  className: "pointer-events-none absolute z-[2] h-3 w-3 -translate-x-1/2 rounded-full bg-f1-foreground shadow-[0_0_4px_rgba(0,0,0,0.4)]",
323
- style: { left: `${p * 100}%` }
322
+ style: { left: `${d * 100}%` }
324
323
  }),
325
- ee ? /* @__PURE__ */ P("div", { className: "absolute inset-0 cursor-not-allowed" }) : null
324
+ S ? /* @__PURE__ */ F("div", { className: "absolute inset-0 cursor-not-allowed" }) : null
326
325
  ]
327
326
  });
328
327
  }
329
328
  //#endregion
330
329
  //#region src/blocks/F0VideoPlayer/components/SettingsMenu.tsx
331
- var Q = "off", le = "py-2 pr-4 text-base font-medium", ue = "gap-2 py-2 pl-3 pr-2 text-base font-medium", de = "max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[13rem] overflow-y-auto p-1";
332
- function $({ icon: e, label: t, container: n, options: r, value: c, onLanguageChange: u, on: f, onOff: p, offLabel: m }) {
333
- let h = p !== void 0, g = r.find((e) => e.locale === c), _ = h && !f ? m : g ? z(g) : m;
334
- return /* @__PURE__ */ F(b, { children: [/* @__PURE__ */ F(l, {
335
- className: ue,
330
+ var $ = "off", ce = "py-2 pr-4 text-base font-medium", le = "gap-2 py-2 pl-3 pr-2 text-base font-medium", ue = "max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[13rem] overflow-y-auto p-1";
331
+ function de({ icon: e, label: t, container: o, options: c, value: u, onLanguageChange: d, on: f, onOff: p, offLabel: m }) {
332
+ let h = p !== void 0, g = c.find((e) => e.locale === u), _ = h && !f ? m : g ? B(g) : m;
333
+ return /* @__PURE__ */ I(v, { children: [/* @__PURE__ */ I(s, {
334
+ className: le,
336
335
  children: [
337
- /* @__PURE__ */ P(d, { icon: e }),
338
- /* @__PURE__ */ P("span", {
336
+ /* @__PURE__ */ F(l, { icon: e }),
337
+ /* @__PURE__ */ F("span", {
339
338
  className: "flex-1",
340
339
  children: t
341
340
  }),
342
- /* @__PURE__ */ P("span", {
341
+ /* @__PURE__ */ F("span", {
343
342
  className: "text-f1-foreground-secondary",
344
343
  children: _
345
344
  })
346
345
  ]
347
- }), /* @__PURE__ */ P(a, {
348
- container: n ?? void 0,
349
- children: /* @__PURE__ */ P(i, {
350
- className: de,
351
- children: /* @__PURE__ */ F(o, {
352
- value: h ? f ? c : Q : c,
353
- onValueChange: (e) => h && e === Q ? p() : u(e),
354
- children: [r.map((e) => /* @__PURE__ */ P(s, {
346
+ }), /* @__PURE__ */ F(r, {
347
+ container: o ?? void 0,
348
+ children: /* @__PURE__ */ F(n, {
349
+ className: ue,
350
+ children: /* @__PURE__ */ I(i, {
351
+ value: h ? f ? u : $ : u,
352
+ onValueChange: (e) => h && e === $ ? p() : d(e),
353
+ children: [c.map((e) => /* @__PURE__ */ F(a, {
355
354
  value: e.locale,
356
- className: le,
357
- children: z(e)
358
- }, e.locale)), h ? /* @__PURE__ */ P(s, {
359
- value: Q,
360
- className: le,
355
+ className: ce,
356
+ children: B(e)
357
+ }, e.locale)), h ? /* @__PURE__ */ F(a, {
358
+ value: $,
359
+ className: ce,
361
360
  children: m
362
361
  }) : null]
363
362
  })
364
363
  })
365
364
  })] });
366
365
  }
367
- function fe({ containerRef: e, audioLanguages: t, audioLanguage: n, onAudioLanguageChange: i, captionLanguages: a, captionLanguage: o, captionsOn: s, onCaptionLanguageChange: l, onCaptionsOff: u, audioDescriptionLanguages: d, audioDescriptionLanguage: f, audioDescriptionOn: m, onAudioDescriptionLanguageChange: h, onAudioDescriptionOff: v }) {
368
- let { t: y } = _(), b = e.current, x = y("videoPlayer.off");
369
- return /* @__PURE__ */ F(r, { children: [/* @__PURE__ */ P(c, {
366
+ function fe({ containerRef: e, audioLanguages: n, audioLanguage: r, onAudioLanguageChange: i, captionLanguages: a, captionLanguage: s, captionsOn: c, onCaptionLanguageChange: l, onCaptionsOff: u, audioDescriptionLanguages: f, audioDescriptionLanguage: p, audioDescriptionOn: g, onAudioDescriptionLanguageChange: _, onAudioDescriptionOff: v }) {
367
+ let { t: y } = h(), b = e.current, x = y("videoPlayer.off");
368
+ return /* @__PURE__ */ I(t, { children: [/* @__PURE__ */ F(o, {
370
369
  asChild: !0,
371
- children: /* @__PURE__ */ P(p, {
370
+ children: /* @__PURE__ */ F(d, {
372
371
  variant: "ghost",
373
372
  size: "sm",
374
373
  hideLabel: !0,
375
- icon: C,
374
+ icon: w,
376
375
  label: y("videoPlayer.settings")
377
376
  })
378
- }), /* @__PURE__ */ F(g, {
377
+ }), /* @__PURE__ */ I(m, {
379
378
  container: b,
380
379
  side: "top",
381
380
  align: "end",
382
- className: de,
381
+ className: ue,
383
382
  children: [
384
- t.length > 1 ? /* @__PURE__ */ P($, {
385
- icon: S,
383
+ n.length > 1 ? /* @__PURE__ */ F(de, {
384
+ icon: E,
386
385
  label: y("videoPlayer.audio"),
387
386
  container: b,
388
- options: t,
389
- value: n,
387
+ options: n,
388
+ value: r,
390
389
  onLanguageChange: i,
391
390
  offLabel: x
392
391
  }) : null,
393
- a.length > 1 ? /* @__PURE__ */ P($, {
394
- icon: Z,
392
+ a.length > 1 ? /* @__PURE__ */ F(de, {
393
+ icon: Q,
395
394
  label: y("videoPlayer.subtitles"),
396
395
  container: b,
397
396
  options: a,
398
- value: o,
399
- on: s,
397
+ value: s,
398
+ on: c,
400
399
  onLanguageChange: l,
401
400
  onOff: u,
402
401
  offLabel: x
403
402
  }) : null,
404
- d.length > 1 ? /* @__PURE__ */ P($, {
405
- icon: X,
403
+ f.length > 1 ? /* @__PURE__ */ F(de, {
404
+ icon: Z,
406
405
  label: y("videoPlayer.audioDescription"),
407
406
  container: b,
408
- options: d,
409
- value: f,
410
- on: m,
411
- onLanguageChange: h,
407
+ options: f,
408
+ value: p,
409
+ on: g,
410
+ onLanguageChange: _,
412
411
  onOff: v,
413
412
  offLabel: x
414
413
  }) : null
@@ -421,189 +420,189 @@ function pe(e) {
421
420
  //#endregion
422
421
  //#region src/blocks/F0VideoPlayer/components/VolumeControl.tsx
423
422
  function me(e, t) {
424
- return t || e === 0 ? E : e <= .5 ? re : ie;
423
+ return t || e === 0 ? C : e <= .5 ? re : S;
425
424
  }
426
425
  function he({ volume: e, isMuted: t, onToggleMute: n, onVolumeChange: r, silent: i = !1 }) {
427
- let { t: a } = _(), o = t || e === 0;
428
- return i ? /* @__PURE__ */ P(p, {
426
+ let { t: a } = h(), o = t || e === 0;
427
+ return i ? /* @__PURE__ */ F(d, {
429
428
  variant: "ghost",
430
429
  size: "sm",
431
430
  hideLabel: !0,
432
431
  disabled: !0,
433
- icon: E,
432
+ icon: C,
434
433
  label: a("videoPlayer.noAudio")
435
- }) : /* @__PURE__ */ F("div", {
434
+ }) : /* @__PURE__ */ I("div", {
436
435
  className: "flex items-center gap-1",
437
- children: [/* @__PURE__ */ P(p, {
436
+ children: [/* @__PURE__ */ F(d, {
438
437
  variant: "ghost",
439
438
  size: "sm",
440
439
  hideLabel: !0,
441
440
  icon: me(e, o),
442
441
  label: a(o ? "videoPlayer.unmute" : "videoPlayer.mute"),
443
442
  onClick: n
444
- }), /* @__PURE__ */ P(ge, {
443
+ }), /* @__PURE__ */ F(ge, {
445
444
  value: o ? 0 : e,
446
445
  onChange: r
447
446
  })]
448
447
  });
449
448
  }
450
- function ge({ value: n, onChange: r }) {
451
- let { t: i } = _(), a = M(null), [o, s] = N(!1), c = Math.max(0, Math.min(1, n)), l = (e) => {
452
- let t = a.current;
449
+ function ge({ value: e, onChange: t }) {
450
+ let { t: n } = h(), r = N(null), [i, a] = P(!1), o = Math.max(0, Math.min(1, e)), s = (e) => {
451
+ let t = r.current;
453
452
  if (!t) return 0;
454
- let n = t.getBoundingClientRect(), r = n.width - 12;
455
- return r <= 0 ? 0 : Math.max(0, Math.min(1, (e - n.left - 6) / r));
453
+ let n = t.getBoundingClientRect(), i = n.width - 12;
454
+ return i <= 0 ? 0 : Math.max(0, Math.min(1, (e - n.left - 6) / i));
455
+ }, c = (e) => {
456
+ e.preventDefault(), e.currentTarget.setPointerCapture(e.pointerId), a(!0), t(s(e.clientX));
457
+ }, l = (e) => {
458
+ i && t(s(e.clientX));
456
459
  }, u = (e) => {
457
- e.preventDefault(), e.currentTarget.setPointerCapture(e.pointerId), s(!0), r(l(e.clientX));
458
- }, d = (e) => {
459
- o && r(l(e.clientX));
460
- }, f = (e) => {
461
- o && (s(!1), e.currentTarget.hasPointerCapture(e.pointerId) && e.currentTarget.releasePointerCapture(e.pointerId));
460
+ i && (a(!1), e.currentTarget.hasPointerCapture(e.pointerId) && e.currentTarget.releasePointerCapture(e.pointerId));
462
461
  };
463
- return /* @__PURE__ */ F("div", {
464
- ref: a,
465
- className: e("relative flex h-4 w-[60px] items-center rounded-sm", "cursor-pointer touch-none", t()),
462
+ return /* @__PURE__ */ I("div", {
463
+ ref: r,
464
+ className: y("relative flex h-4 w-[60px] items-center rounded-sm", "cursor-pointer touch-none", b()),
466
465
  role: "slider",
467
466
  tabIndex: 0,
468
- "aria-label": i("videoPlayer.volume"),
467
+ "aria-label": n("videoPlayer.volume"),
469
468
  "aria-valuemin": 0,
470
469
  "aria-valuemax": 1,
471
- "aria-valuenow": Number(c.toFixed(2)),
472
- "aria-valuetext": `${Math.round(c * 100)}%`,
473
- onPointerDown: u,
474
- onPointerMove: d,
475
- onPointerUp: f,
476
- onPointerCancel: f,
477
- onLostPointerCapture: () => s(!1),
470
+ "aria-valuenow": Number(o.toFixed(2)),
471
+ "aria-valuetext": `${Math.round(o * 100)}%`,
472
+ onPointerDown: c,
473
+ onPointerMove: l,
474
+ onPointerUp: u,
475
+ onPointerCancel: u,
476
+ onLostPointerCapture: () => a(!1),
478
477
  onKeyDown: (e) => {
479
- let t = null;
478
+ let n = null;
480
479
  switch (e.key) {
481
480
  case "ArrowRight":
482
481
  case "ArrowUp":
483
- t = Math.min(1, c + H);
482
+ n = Math.min(1, o + U);
484
483
  break;
485
484
  case "ArrowLeft":
486
485
  case "ArrowDown":
487
- t = Math.max(0, c - H);
486
+ n = Math.max(0, o - U);
488
487
  break;
489
488
  case "Home":
490
- t = 0;
489
+ n = 0;
491
490
  break;
492
491
  case "End":
493
- t = 1;
492
+ n = 1;
494
493
  break;
495
494
  default: return;
496
495
  }
497
- e.preventDefault(), e.stopPropagation(), r(t);
496
+ e.preventDefault(), e.stopPropagation(), t(n);
498
497
  },
499
498
  children: [
500
- /* @__PURE__ */ P("div", { className: "absolute inset-x-0 h-1 rounded-sm bg-f1-foreground/30" }),
501
- /* @__PURE__ */ P("div", {
499
+ /* @__PURE__ */ F("div", { className: "absolute inset-x-0 h-1 rounded-sm bg-f1-foreground/30" }),
500
+ /* @__PURE__ */ F("div", {
502
501
  className: "pointer-events-none absolute left-0 h-1 rounded-sm bg-f1-foreground",
503
- style: { width: `calc(12px + (100% - 12px) * ${c})` }
502
+ style: { width: `calc(12px + (100% - 12px) * ${o})` }
504
503
  }),
505
- /* @__PURE__ */ P("div", {
504
+ /* @__PURE__ */ F("div", {
506
505
  className: "pointer-events-none absolute h-3 w-3 -translate-x-1/2 rounded-full bg-f1-foreground shadow-[0_0_4px_rgba(0,0,0,0.4)]",
507
- style: { left: `calc(6px + (100% - 12px) * ${c})` }
506
+ style: { left: `calc(6px + (100% - 12px) * ${o})` }
508
507
  })
509
508
  ]
510
509
  });
511
510
  }
512
511
  //#endregion
513
512
  //#region src/blocks/F0VideoPlayer/components/Controls.tsx
514
- function _e({ isPlaying: t, currentTime: n, duration: r, volume: i, isMuted: a, playbackRate: o, isFullscreen: s, markerTime: c, blockSeekPastMarker: l, containerRef: u, captionsAvailable: d, captionsOn: f, audioDescriptionAvailable: m, audioDescriptionOn: h, silent: g, persist: v, audioLanguages: y, audioLanguage: b, onAudioLanguageChange: S, captionLanguages: C, captionLanguage: T, onCaptionLanguageChange: re, onCaptionsOff: ie, audioDescriptionLanguages: E, audioDescriptionLanguage: D, onAudioDescriptionLanguageChange: O, onAudioDescriptionOff: k, onTogglePlay: A, onToggleMute: j, onVolumeChange: M, onPlaybackRateChange: N, onToggleFullscreen: I, onToggleCaptions: L, onToggleAudioDescription: R, onSeek: z, download: B }) {
515
- let { t: V } = _(), H = d && C.length <= 1, U = m && E.length <= 1, W = pe({
516
- audioLanguages: y.length,
513
+ function _e({ isPlaying: e, currentTime: t, duration: n, volume: r, isMuted: i, playbackRate: a, isFullscreen: o, markerTime: s, blockSeekPastMarker: c, containerRef: l, captionsAvailable: u, captionsOn: f, audioDescriptionAvailable: p, audioDescriptionOn: m, silent: g, persist: _, audioLanguages: v, audioLanguage: b, onAudioLanguageChange: S, captionLanguages: C, captionLanguage: w, onCaptionLanguageChange: E, onCaptionsOff: re, audioDescriptionLanguages: D, audioDescriptionLanguage: O, onAudioDescriptionLanguageChange: k, onAudioDescriptionOff: A, onTogglePlay: j, onToggleMute: M, onVolumeChange: N, onPlaybackRateChange: P, onToggleFullscreen: L, onToggleCaptions: R, onToggleAudioDescription: z, onSeek: B, download: V }) {
514
+ let { t: H } = h(), U = u && C.length <= 1, W = p && D.length <= 1, G = pe({
515
+ audioLanguages: v.length,
517
516
  captionLanguages: C.length,
518
- audioDescriptionLanguages: E.length
517
+ audioDescriptionLanguages: D.length
519
518
  });
520
- return /* @__PURE__ */ F("div", {
521
- className: e("dark absolute inset-x-0 bottom-0 z-[2] flex select-none items-center gap-2", "rounded-b-[inherit] bg-gradient-to-t from-[#000000f2] via-[#000000b3] to-transparent px-3 py-3", "[text-shadow:0_1px_2px_rgba(0,0,0,0.55)] [&_svg]:drop-shadow-[0_1px_2px_rgba(0,0,0,0.55)]", "transition-opacity duration-200 motion-reduce:transition-none", !t || v ? "opacity-100" : "opacity-0 group-hover:opacity-100 group-focus-within:opacity-100"),
519
+ return /* @__PURE__ */ I("div", {
520
+ className: y("dark absolute inset-x-0 bottom-0 z-[2] flex select-none items-center gap-2", "rounded-b-[inherit] bg-gradient-to-t from-[#000000f2] via-[#000000b3] to-transparent px-3 py-3", "[text-shadow:0_1px_2px_rgba(0,0,0,0.55)] [&_svg]:drop-shadow-[0_1px_2px_rgba(0,0,0,0.55)]", "transition-opacity duration-200 motion-reduce:transition-none", !e || _ ? "opacity-100" : "opacity-0 group-hover:opacity-100 group-focus-within:opacity-100"),
522
521
  children: [
523
- /* @__PURE__ */ P(p, {
522
+ /* @__PURE__ */ F(d, {
524
523
  variant: "ghost",
525
524
  size: "sm",
526
525
  hideLabel: !0,
527
- icon: t ? ne : ee,
528
- label: V(t ? "videoPlayer.pause" : "videoPlayer.play"),
529
- onClick: A
526
+ icon: e ? T : ne,
527
+ label: H(e ? "videoPlayer.pause" : "videoPlayer.play"),
528
+ onClick: j
530
529
  }),
531
- /* @__PURE__ */ P(ce, {
532
- currentTime: n,
533
- duration: r,
534
- markerTime: c,
535
- blockSeekPastMarker: l,
536
- onSeek: z
530
+ /* @__PURE__ */ F(se, {
531
+ currentTime: t,
532
+ duration: n,
533
+ markerTime: s,
534
+ blockSeekPastMarker: c,
535
+ onSeek: B
537
536
  }),
538
- /* @__PURE__ */ F("span", {
537
+ /* @__PURE__ */ I("span", {
539
538
  className: "min-w-[80px] whitespace-nowrap text-center text-base font-medium tabular-nums text-f1-foreground",
540
539
  children: [
541
- K(n),
540
+ q(t),
542
541
  " / ",
543
- K(r)
542
+ q(n)
544
543
  ]
545
544
  }),
546
- /* @__PURE__ */ P(he, {
547
- volume: i,
548
- isMuted: a,
549
- onToggleMute: j,
550
- onVolumeChange: M,
545
+ /* @__PURE__ */ F(he, {
546
+ volume: r,
547
+ isMuted: i,
548
+ onToggleMute: M,
549
+ onVolumeChange: N,
551
550
  silent: g
552
551
  }),
553
- /* @__PURE__ */ P(se, {
554
- value: o,
555
- onChange: N,
556
- containerRef: u
552
+ /* @__PURE__ */ F(oe, {
553
+ value: a,
554
+ onChange: P,
555
+ containerRef: l
557
556
  }),
558
- H ? /* @__PURE__ */ P(p, {
557
+ U ? /* @__PURE__ */ F(d, {
559
558
  variant: "ghost",
560
559
  size: "sm",
561
560
  hideLabel: !0,
562
- icon: f ? oe : Z,
563
- label: V("videoPlayer.captions"),
561
+ icon: f ? ae : Q,
562
+ label: H("videoPlayer.captions"),
564
563
  "aria-pressed": f,
565
- onClick: L
564
+ onClick: R
566
565
  }) : null,
567
- U ? /* @__PURE__ */ P(p, {
566
+ W ? /* @__PURE__ */ F(d, {
568
567
  variant: "ghost",
569
568
  size: "sm",
570
569
  hideLabel: !0,
571
- icon: h ? ae : X,
572
- label: V("videoPlayer.audioDescription"),
573
- "aria-pressed": h,
574
- onClick: R
570
+ icon: m ? ie : Z,
571
+ label: H("videoPlayer.audioDescription"),
572
+ "aria-pressed": m,
573
+ onClick: z
575
574
  }) : null,
576
- W ? /* @__PURE__ */ P(fe, {
577
- containerRef: u,
578
- audioLanguages: y,
575
+ G ? /* @__PURE__ */ F(fe, {
576
+ containerRef: l,
577
+ audioLanguages: v,
579
578
  audioLanguage: b,
580
579
  onAudioLanguageChange: S,
581
580
  captionLanguages: C,
582
- captionLanguage: T,
581
+ captionLanguage: w,
583
582
  captionsOn: f,
584
- onCaptionLanguageChange: re,
585
- onCaptionsOff: ie,
586
- audioDescriptionLanguages: E,
587
- audioDescriptionLanguage: D,
588
- audioDescriptionOn: h,
589
- onAudioDescriptionLanguageChange: O,
590
- onAudioDescriptionOff: k
583
+ onCaptionLanguageChange: E,
584
+ onCaptionsOff: re,
585
+ audioDescriptionLanguages: D,
586
+ audioDescriptionLanguage: O,
587
+ audioDescriptionOn: m,
588
+ onAudioDescriptionLanguageChange: k,
589
+ onAudioDescriptionOff: A
591
590
  }) : null,
592
- B ? /* @__PURE__ */ P(p, {
591
+ V ? /* @__PURE__ */ F(d, {
593
592
  variant: "ghost",
594
593
  size: "sm",
595
594
  hideLabel: !0,
596
- icon: te,
597
- label: B.label,
598
- onClick: B.onClick
595
+ icon: x,
596
+ label: V.label,
597
+ onClick: V.onClick
599
598
  }) : null,
600
- /* @__PURE__ */ P(p, {
599
+ /* @__PURE__ */ F(d, {
601
600
  variant: "ghost",
602
601
  size: "sm",
603
602
  hideLabel: !0,
604
- icon: s ? x : w,
605
- label: V(s ? "videoPlayer.exitFullscreen" : "videoPlayer.enterFullscreen"),
606
- onClick: I
603
+ icon: o ? ee : te,
604
+ label: H(o ? "videoPlayer.exitFullscreen" : "videoPlayer.enterFullscreen"),
605
+ onClick: L
607
606
  })
608
607
  ]
609
608
  });
@@ -612,8 +611,8 @@ function _e({ isPlaying: t, currentTime: n, duration: r, volume: i, isMuted: a,
612
611
  //#region src/blocks/F0VideoPlayer/hooks/useVttSource.ts
613
612
  var ve = (e) => e.trimStart().startsWith("WEBVTT");
614
613
  function ye(e) {
615
- let t = e !== void 0 && ve(e), [n, r] = N();
616
- return k(() => {
614
+ let t = e !== void 0 && ve(e), [n, r] = P();
615
+ return A(() => {
617
616
  if (e === void 0 || !ve(e)) {
618
617
  r(void 0);
619
618
  return;
@@ -629,8 +628,8 @@ function ye(e) {
629
628
  //#region src/blocks/F0VideoPlayer/hooks/useAudioDescription.ts
630
629
  var be = "descriptions";
631
630
  function xe(e, { enabled: t, describedSrc: n, descriptions: r }) {
632
- let i = n !== void 0, { trackSrc: a, needsCrossOrigin: o } = ye(r), [s, c] = N(!1), l = i || r !== void 0 || s, [u, d] = N(), f = M(!1);
633
- return k(() => {
631
+ let i = n !== void 0, { trackSrc: a, needsCrossOrigin: o } = ye(r), [s, c] = P(!1), l = i || r !== void 0 || s, [u, d] = P(), f = N(!1);
632
+ return A(() => {
634
633
  if (!e) return;
635
634
  let n = e.textTracks, a = typeof window < "u" && "speechSynthesis" in window, o = t && !i && a, s = () => {
636
635
  f.current && (f.current = !1, e.play().catch(() => {}));
@@ -662,7 +661,7 @@ function xe(e, { enabled: t, describedSrc: n, descriptions: r }) {
662
661
  i,
663
662
  r,
664
663
  a
665
- ]), j(() => ({
664
+ ]), M(() => ({
666
665
  trackSrc: a,
667
666
  needsCrossOrigin: o,
668
667
  available: l,
@@ -677,7 +676,7 @@ function xe(e, { enabled: t, describedSrc: n, descriptions: r }) {
677
676
  //#endregion
678
677
  //#region src/blocks/F0VideoPlayer/hooks/useKeyboardShortcuts.ts
679
678
  function Se({ videoRef: e, seek: t, togglePlay: n, toggleMute: r, toggleFullscreen: i, setVolume: a }) {
680
- return O((o) => {
679
+ return k((o) => {
681
680
  let s = o.target;
682
681
  if (s instanceof HTMLElement && (s.closest("button, a, input, textarea, select, [role=\"button\"], [contenteditable=\"true\"]") || s.closest("[role=\"menu\"], [role^=\"menuitem\"]") || s.getAttribute("role") === "slider")) return;
683
682
  let c = e.current;
@@ -695,10 +694,10 @@ function Se({ videoRef: e, seek: t, togglePlay: n, toggleMute: r, toggleFullscre
695
694
  return;
696
695
  }
697
696
  case "ArrowUp":
698
- o.preventDefault(), a(Math.min(1, c.volume + H));
697
+ o.preventDefault(), a(Math.min(1, c.volume + U));
699
698
  return;
700
699
  case "ArrowDown":
701
- o.preventDefault(), a(Math.max(0, c.volume - H));
700
+ o.preventDefault(), a(Math.max(0, c.volume - U));
702
701
  return;
703
702
  case "m":
704
703
  o.preventDefault(), r();
@@ -720,12 +719,12 @@ function Se({ videoRef: e, seek: t, togglePlay: n, toggleMute: r, toggleFullscre
720
719
  //#endregion
721
720
  //#region src/blocks/F0VideoPlayer/hooks/useRestrictForwardSeek.ts
722
721
  function Ce({ video: e, enabled: t, resetKey: n }) {
723
- let r = M(0), i = M(0), a = M(t);
722
+ let r = N(0), i = N(0), a = N(t);
724
723
  a.current = t;
725
- let [o, s] = N(0);
726
- return k(() => {
724
+ let [o, s] = P(0);
725
+ return A(() => {
727
726
  r.current = 0, i.current = 0, s(0);
728
- }, [n]), k(() => {
727
+ }, [n]), A(() => {
729
728
  if (!e) return;
730
729
  let t = () => {
731
730
  a.current && e.currentTime > r.current + .25 && (e.currentTime = r.current);
@@ -747,17 +746,17 @@ function Ce({ video: e, enabled: t, resetKey: n }) {
747
746
  };
748
747
  }, [e]), {
749
748
  maxWatchedTime: o,
750
- clampSeek: O((e) => a.current ? Math.min(e, r.current) : e, [])
749
+ clampSeek: k((e) => a.current ? Math.min(e, r.current) : e, [])
751
750
  };
752
751
  }
753
752
  //#endregion
754
753
  //#region src/blocks/F0VideoPlayer/hooks/useVideoCaptions.ts
755
754
  var we = /* @__PURE__ */ new Set(["captions", "subtitles"]), Te = 2, Ee = 3;
756
755
  function De(e, t) {
757
- let { trackSrc: n, needsCrossOrigin: r } = ye(t), [i, a] = N(!1), [o, s] = N(!1), [c, l] = N(!1), u = o || t !== void 0 && !c;
758
- return k(() => {
756
+ let { trackSrc: n, needsCrossOrigin: r } = ye(t), [i, a] = P(!1), [o, s] = P(!1), [c, l] = P(!1), u = o || t !== void 0 && !c;
757
+ return A(() => {
759
758
  l(!1), s(!1);
760
- }, [n]), k(() => {
759
+ }, [n]), A(() => {
761
760
  if (!e) return;
762
761
  let t = e.textTracks, n = e.querySelector("track[kind=\"captions\"]"), r = () => {
763
762
  let e = !1;
@@ -792,7 +791,7 @@ function De(e, t) {
792
791
  t,
793
792
  i,
794
793
  n
795
- ]), j(() => ({
794
+ ]), M(() => ({
796
795
  trackSrc: n,
797
796
  needsCrossOrigin: r,
798
797
  available: u,
@@ -808,15 +807,15 @@ function De(e, t) {
808
807
  //#endregion
809
808
  //#region src/blocks/F0VideoPlayer/hooks/useVideoCompletion.ts
810
809
  function Oe(e) {
811
- return e - Math.min(10, e * G);
810
+ return e - Math.min(10, e * K);
812
811
  }
813
812
  function ke({ video: e, onComplete: t, resetKey: n }) {
814
- let r = M(t);
813
+ let r = N(t);
815
814
  r.current = t;
816
- let i = M(!1), a = !!t;
817
- k(() => {
815
+ let i = N(!1), a = !!t;
816
+ A(() => {
818
817
  i.current = !1;
819
- }, [n]), k(() => {
818
+ }, [n]), A(() => {
820
819
  if (!e || !a) return;
821
820
  let t = () => {
822
821
  !i.current && e.duration && e.currentTime >= Oe(e.duration) && (i.current = !0, r.current?.(e));
@@ -829,17 +828,17 @@ function ke({ video: e, onComplete: t, resetKey: n }) {
829
828
  //#endregion
830
829
  //#region src/blocks/F0VideoPlayer/hooks/useVideoMilestones.ts
831
830
  function Ae({ video: e, onMilestone: t, resetKey: n }) {
832
- let r = M(t);
831
+ let r = N(t);
833
832
  r.current = t;
834
- let i = M(/* @__PURE__ */ new Set()), a = !!t;
835
- k(() => {
833
+ let i = N(/* @__PURE__ */ new Set()), a = !!t;
834
+ A(() => {
836
835
  i.current.clear();
837
- }, [n]), k(() => {
836
+ }, [n]), A(() => {
838
837
  if (!e || !a) return;
839
838
  let t = () => {
840
839
  if (!e.duration) return;
841
840
  let t = Math.round(e.currentTime / e.duration * 100);
842
- for (let n of U) i.current.has(n) || t >= n && (i.current.add(n), r.current?.(n, e));
841
+ for (let n of W) i.current.has(n) || t >= n && (i.current.add(n), r.current?.(n, e));
843
842
  };
844
843
  return e.addEventListener("timeupdate", t), () => {
845
844
  e.removeEventListener("timeupdate", t);
@@ -849,18 +848,18 @@ function Ae({ video: e, onMilestone: t, resetKey: n }) {
849
848
  //#endregion
850
849
  //#region src/blocks/F0VideoPlayer/hooks/useVideoState.ts
851
850
  function je(e) {
852
- let t = M(null), [n, r] = N(null), i = M(0), a = O((e) => {
851
+ let t = N(null), [n, r] = P(null), i = N(0), a = k((e) => {
853
852
  t.current = e, r(e);
854
- }, []), [o, s] = N(!1), [c, l] = N(!1), [u, d] = N(0), [f, p] = N(0), [m, h] = N(1), [g, _] = N(!1), [v, y] = N(1);
855
- return k(() => {
853
+ }, []), [o, s] = P(!1), [c, l] = P(!1), [u, d] = P(0), [f, p] = P(0), [m, h] = P(1), [g, _] = P(!1), [v, y] = P(1);
854
+ return A(() => {
856
855
  i.current = 0, t.current && (t.current.playbackRate = 1), s(!1), l(!1), d(0), p(0), y(1);
857
- }, [e]), k(() => {
856
+ }, [e]), A(() => {
858
857
  let e = n;
859
858
  if (!e) return;
860
859
  let t = () => l(!0), r = () => l(!1), a = () => l(!1), o = () => {
861
860
  h(e.volume), _(e.muted);
862
861
  }, s = () => p(e.duration || 0), c = () => {
863
- J(e.playbackRate) && y(e.playbackRate);
862
+ Y(e.playbackRate) && y(e.playbackRate);
864
863
  }, u = () => {
865
864
  let t = performance.now();
866
865
  t - i.current >= 250 && (i.current = t, d(e.currentTime));
@@ -880,25 +879,25 @@ function je(e) {
880
879
  isMuted: g,
881
880
  playbackRate: v,
882
881
  setVideoLoaded: s,
883
- togglePlay: O(() => {
882
+ togglePlay: k(() => {
884
883
  let e = t.current;
885
884
  e && (e.paused || e.ended ? e.play().catch(() => {}) : e.pause());
886
885
  }, []),
887
- toggleMute: O(() => {
886
+ toggleMute: k(() => {
888
887
  let e = t.current;
889
888
  e && (e.muted = !e.muted);
890
889
  }, []),
891
- setVolume: O((e) => {
890
+ setVolume: k((e) => {
892
891
  let n = t.current;
893
892
  if (!n) return;
894
893
  let r = Math.max(0, Math.min(1, e));
895
894
  n.volume = r, n.muted = r === 0;
896
895
  }, []),
897
- setPlaybackRate: O((e) => {
896
+ setPlaybackRate: k((e) => {
898
897
  let n = t.current;
899
898
  n && (n.playbackRate = e);
900
899
  }, []),
901
- seekTo: O((e) => {
900
+ seekTo: k((e) => {
902
901
  let n = t.current;
903
902
  if (!n) return;
904
903
  let r = Math.max(0, Math.min(e, n.duration || e));
@@ -909,17 +908,17 @@ function je(e) {
909
908
  //#endregion
910
909
  //#region src/blocks/F0VideoPlayer/hooks/useVideoTracking.ts
911
910
  function Me({ video: e, onTrackAction: t }) {
912
- let n = M(t);
911
+ let n = N(t);
913
912
  n.current = t;
914
913
  let r = !!t;
915
- k(() => {
914
+ A(() => {
916
915
  if (!e || !r) return;
917
916
  let t = null, i = () => {
918
917
  t &&= (clearInterval(t), null);
919
918
  }, a = () => {
920
919
  n.current?.(), i(), t = setInterval(() => {
921
920
  n.current?.();
922
- }, W);
921
+ }, G);
923
922
  }, o = () => {
924
923
  n.current?.(), i();
925
924
  }, s = () => i();
@@ -930,185 +929,185 @@ function Me({ video: e, onTrackAction: t }) {
930
929
  }
931
930
  //#endregion
932
931
  //#region src/blocks/F0VideoPlayer/internal.tsx
933
- function Ne({ src: r, poster: i, ariaLabel: a, silent: o = !1, persistControls: s = !1, content: c, defaultLanguage: l, autoPlay: u = !1, autoFocus: d = !1, download: f, restrictForwardSeek: p = !1, onTrackAction: m, onMilestone: g, onComplete: v, ...y }) {
934
- let { t: b } = _(), x = M(null), S = j(() => R(r), [r]), [te, C] = N(() => B(S, l)), ne = S.some((e) => e.locale === te) ? te : B(S, l), w = L(r, ne) ?? "", T = j(() => R(c?.captions), [c?.captions]), [re, ie] = N(() => B(T, l)), E = T.some((e) => e.locale === re) ? re : B(T, l), D = L(c?.captions, E), A = j(() => R(c?.descriptions, c?.describedSrc), [c?.descriptions, c?.describedSrc]), [I, z] = N(() => B(A, l)), V = A.some((e) => e.locale === I) ? I : B(A, l), H = L(c?.descriptions, V), U = L(c?.describedSrc, V), [W, G] = N(!1), K = W && U ? U : w, q = je(K), J = De(q.videoElement, D), Y = xe(q.videoElement, {
935
- enabled: W,
936
- describedSrc: U,
937
- descriptions: H
938
- }), X = O(() => {
939
- let e = q.videoRef.current;
932
+ function Ne({ src: t, poster: n, ariaLabel: r, silent: i = !1, persistControls: a = !1, content: o, defaultLanguage: s, autoPlay: c = !1, autoFocus: l = !1, download: u, restrictForwardSeek: d = !1, onTrackAction: f, onMilestone: m, onComplete: g, ..._ }) {
933
+ let { t: v } = h(), x = N(null), S = M(() => z(t), [t]), [C, ee] = P(() => V(S, s)), te = S.some((e) => e.locale === C) ? C : V(S, s), w = R(t, te) ?? "", T = M(() => z(o?.captions), [o?.captions]), [E, re] = P(() => V(T, s)), D = T.some((e) => e.locale === E) ? E : V(T, s), O = R(o?.captions, D), j = M(() => z(o?.descriptions, o?.describedSrc), [o?.descriptions, o?.describedSrc]), [L, B] = P(() => V(j, s)), H = j.some((e) => e.locale === L) ? L : V(j, s), U = R(o?.descriptions, H), W = R(o?.describedSrc, H), [G, K] = P(!1), q = G && W ? W : w, J = je(q), Y = De(J.videoElement, O), X = xe(J.videoElement, {
934
+ enabled: G,
935
+ describedSrc: W,
936
+ descriptions: U
937
+ }), Z = k(() => {
938
+ let e = J.videoRef.current;
940
939
  if (!e) return;
941
940
  let t = e.currentTime, n = !e.paused, r = () => {
942
941
  e.currentTime = t, n && e.play().catch(() => {}), e.removeEventListener("loadedmetadata", r);
943
942
  };
944
943
  e.addEventListener("loadedmetadata", r);
945
- }, [q.videoRef]), ae = O((e) => {
946
- X(), C(e);
947
- }, [X]), Z = O(() => {
948
- U && X(), G((e) => !e);
949
- }, [U, X]), oe = O((e) => {
950
- ie(e), J.showing || J.toggle();
951
- }, [J]), se = O(() => {
952
- J.showing && J.toggle();
953
- }, [J]), ce = O((e) => {
954
- U && X(), z(e), G(!0);
955
- }, [U, X]), Q = O(() => {
956
- U && X(), G(!1);
957
- }, [U, X]);
944
+ }, [J.videoRef]), ie = k((e) => {
945
+ Z(), ee(e);
946
+ }, [Z]), Q = k(() => {
947
+ W && Z(), K((e) => !e);
948
+ }, [W, Z]), ae = k((e) => {
949
+ re(e), Y.showing || Y.toggle();
950
+ }, [Y]), oe = k(() => {
951
+ Y.showing && Y.toggle();
952
+ }, [Y]), se = k((e) => {
953
+ W && Z(), B(e), K(!0);
954
+ }, [W, Z]), $ = k(() => {
955
+ W && Z(), K(!1);
956
+ }, [W, Z]);
958
957
  Me({
959
- video: q.videoElement,
960
- onTrackAction: m
958
+ video: J.videoElement,
959
+ onTrackAction: f
961
960
  }), Ae({
962
- video: q.videoElement,
963
- onMilestone: g,
961
+ video: J.videoElement,
962
+ onMilestone: m,
964
963
  resetKey: w
965
964
  }), ke({
966
- video: q.videoElement,
967
- onComplete: v,
965
+ video: J.videoElement,
966
+ onComplete: g,
968
967
  resetKey: w
969
968
  });
970
- let { maxWatchedTime: le, clampSeek: ue } = Ce({
971
- video: q.videoElement,
972
- enabled: p,
969
+ let { maxWatchedTime: ce, clampSeek: le } = Ce({
970
+ video: J.videoElement,
971
+ enabled: d,
973
972
  resetKey: w
974
- }), de = O((e) => q.seekTo(ue(e)), [q, ue]), { isFullscreen: $, toggleFullscreen: fe } = n({ targetRef: x }), pe = O(() => {}, []), me = !!(W && U);
975
- k(() => {
976
- let e = q.videoRef.current;
977
- o && e && (e.muted = !me);
973
+ }), ue = k((e) => J.seekTo(le(e)), [J, le]), { isFullscreen: de, toggleFullscreen: fe } = e({ targetRef: x }), pe = k(() => {}, []), me = !!(G && W);
974
+ A(() => {
975
+ let e = J.videoRef.current;
976
+ i && e && (e.muted = !me);
978
977
  }, [
979
- o,
978
+ i,
980
979
  me,
981
- q.videoElement,
982
- q.videoRef
980
+ J.videoElement,
981
+ J.videoRef
983
982
  ]);
984
983
  let he = Se({
985
- videoRef: q.videoRef,
986
- seek: de,
987
- togglePlay: q.togglePlay,
988
- toggleMute: o ? pe : q.toggleMute,
984
+ videoRef: J.videoRef,
985
+ seek: ue,
986
+ togglePlay: J.togglePlay,
987
+ toggleMute: i ? pe : J.toggleMute,
989
988
  toggleFullscreen: fe,
990
- setVolume: o ? pe : q.setVolume
989
+ setVolume: i ? pe : J.setVolume
991
990
  });
992
- k(() => {
993
- d && x.current?.focus({ preventScroll: !0 });
994
- }, [d]);
991
+ A(() => {
992
+ l && x.current?.focus({ preventScroll: !0 });
993
+ }, [l]);
995
994
  let ge = (e) => e.preventDefault();
996
- return /* @__PURE__ */ F("div", {
995
+ return /* @__PURE__ */ I("div", {
997
996
  ref: x,
998
- className: e("group relative h-full w-full overflow-hidden rounded-[inherit] bg-f1-foreground dark:bg-f1-background", "[&:fullscreen]:h-screen [&:fullscreen]:w-screen [&:fullscreen]:rounded-none", t()),
997
+ className: y("group relative h-full w-full overflow-hidden rounded-[inherit] bg-f1-foreground dark:bg-f1-background", "[&:fullscreen]:h-screen [&:fullscreen]:w-screen [&:fullscreen]:rounded-none", b()),
999
998
  role: "region",
1000
- "aria-label": a ?? b("videoPlayer.regionLabel"),
999
+ "aria-label": r ?? v("videoPlayer.regionLabel"),
1001
1000
  tabIndex: 0,
1002
1001
  onKeyDown: he,
1003
- "data-video-captions": o ? "no-audio" : J.available ? "available" : "missing",
1004
- ...y,
1002
+ "data-video-captions": i ? "no-audio" : Y.available ? "available" : "missing",
1003
+ ..._,
1005
1004
  children: [
1006
- /* @__PURE__ */ F("video", {
1007
- ref: q.setVideoNode,
1008
- autoPlay: u,
1005
+ /* @__PURE__ */ I("video", {
1006
+ ref: J.setVideoNode,
1007
+ autoPlay: c,
1009
1008
  playsInline: !0,
1010
1009
  disablePictureInPicture: !0,
1011
1010
  disableRemotePlayback: !0,
1012
1011
  draggable: !1,
1013
1012
  onContextMenu: ge,
1014
- onClick: q.togglePlay,
1015
- src: K,
1016
- poster: i,
1017
- crossOrigin: J.needsCrossOrigin || Y.needsCrossOrigin ? "anonymous" : void 0,
1018
- onLoadedData: () => q.setVideoLoaded(!0),
1019
- className: e("block h-full w-full cursor-pointer rounded-[inherit] object-contain transition-opacity duration-300", "[&::-webkit-media-text-track-container]:![transform:translateY(-3.5rem)]"),
1020
- style: { opacity: q.videoLoaded || i ? 1 : 0 },
1021
- children: [J.trackSrc ? /* @__PURE__ */ P("track", {
1013
+ onClick: J.togglePlay,
1014
+ src: q,
1015
+ poster: n,
1016
+ crossOrigin: Y.needsCrossOrigin || X.needsCrossOrigin ? "anonymous" : void 0,
1017
+ onLoadedData: () => J.setVideoLoaded(!0),
1018
+ className: y("block h-full w-full cursor-pointer rounded-[inherit] object-contain transition-opacity duration-300", "[&::-webkit-media-text-track-container]:![transform:translateY(-3.5rem)]"),
1019
+ style: { opacity: J.videoLoaded || n ? 1 : 0 },
1020
+ children: [Y.trackSrc ? /* @__PURE__ */ F("track", {
1022
1021
  kind: "captions",
1023
- src: J.trackSrc,
1024
- label: b("videoPlayer.captions"),
1022
+ src: Y.trackSrc,
1023
+ label: v("videoPlayer.captions"),
1025
1024
  default: !1
1026
- }) : null, Y.trackSrc ? /* @__PURE__ */ P("track", {
1025
+ }) : null, X.trackSrc ? /* @__PURE__ */ F("track", {
1027
1026
  kind: "descriptions",
1028
- src: Y.trackSrc,
1029
- label: b("videoPlayer.audioDescription"),
1027
+ src: X.trackSrc,
1028
+ label: v("videoPlayer.audioDescription"),
1030
1029
  default: !1
1031
1030
  }) : null]
1032
1031
  }),
1033
- q.isPlaying ? null : /* @__PURE__ */ P("div", {
1032
+ J.isPlaying ? null : /* @__PURE__ */ F("div", {
1034
1033
  "aria-hidden": !0,
1035
1034
  "data-video-play-overlay": !0,
1036
1035
  className: "pointer-events-none absolute inset-0 z-[1] flex items-center justify-center",
1037
- children: /* @__PURE__ */ P("button", {
1036
+ children: /* @__PURE__ */ F("button", {
1038
1037
  type: "button",
1039
1038
  tabIndex: -1,
1040
- onClick: q.togglePlay,
1039
+ onClick: J.togglePlay,
1041
1040
  className: "pointer-events-auto flex size-14 items-center justify-center rounded-full bg-f1-foreground/70 pl-0.5 shadow-[0_2px_8px_rgba(0,0,0,0.45)] transition-transform duration-150 hover:scale-105 motion-reduce:transition-none dark:bg-f1-background/70 [&_svg]:size-7",
1042
- children: /* @__PURE__ */ P(h, {
1043
- icon: ee,
1041
+ children: /* @__PURE__ */ F(p, {
1042
+ icon: ne,
1044
1043
  size: "lg",
1045
1044
  color: "#fff"
1046
1045
  })
1047
1046
  })
1048
1047
  }),
1049
- J.showing && Y.activeCue ? /* @__PURE__ */ P("div", {
1048
+ Y.showing && X.activeCue ? /* @__PURE__ */ F("div", {
1050
1049
  "aria-hidden": !0,
1051
1050
  className: "dark pointer-events-none absolute inset-x-0 top-0 z-[2] flex justify-center p-3",
1052
- children: /* @__PURE__ */ F("p", {
1051
+ children: /* @__PURE__ */ I("p", {
1053
1052
  className: "max-w-[90%] rounded-md bg-f1-background/70 px-2 py-1 text-center text-base italic text-f1-foreground [text-shadow:0_1px_2px_rgba(0,0,0,0.55)]",
1054
- children: [/* @__PURE__ */ F("span", {
1053
+ children: [/* @__PURE__ */ I("span", {
1055
1054
  className: "pr-1 font-medium not-italic opacity-70",
1056
1055
  children: [
1057
1056
  "[",
1058
- b("videoPlayer.audioDescription"),
1057
+ v("videoPlayer.audioDescription"),
1059
1058
  "]"
1060
1059
  ]
1061
- }), Y.activeCue]
1060
+ }), X.activeCue]
1062
1061
  })
1063
1062
  }) : null,
1064
- /* @__PURE__ */ P("span", {
1063
+ /* @__PURE__ */ F("span", {
1065
1064
  className: "sr-only",
1066
1065
  "aria-live": "polite",
1067
- children: q.isPlaying ? b("videoPlayer.playing") : b("videoPlayer.paused")
1066
+ children: J.isPlaying ? v("videoPlayer.playing") : v("videoPlayer.paused")
1068
1067
  }),
1069
- q.videoLoaded ? /* @__PURE__ */ P(_e, {
1070
- isPlaying: q.isPlaying,
1071
- currentTime: q.currentTime,
1072
- duration: q.duration,
1073
- volume: q.volume,
1074
- isMuted: q.isMuted,
1075
- playbackRate: q.playbackRate,
1076
- isFullscreen: $,
1077
- markerTime: p ? le : void 0,
1078
- blockSeekPastMarker: p,
1068
+ J.videoLoaded ? /* @__PURE__ */ F(_e, {
1069
+ isPlaying: J.isPlaying,
1070
+ currentTime: J.currentTime,
1071
+ duration: J.duration,
1072
+ volume: J.volume,
1073
+ isMuted: J.isMuted,
1074
+ playbackRate: J.playbackRate,
1075
+ isFullscreen: de,
1076
+ markerTime: d ? ce : void 0,
1077
+ blockSeekPastMarker: d,
1079
1078
  containerRef: x,
1080
- captionsAvailable: J.available,
1081
- captionsOn: J.showing,
1082
- audioDescriptionAvailable: Y.available,
1083
- audioDescriptionOn: W,
1084
- silent: o,
1085
- persist: s,
1079
+ captionsAvailable: Y.available,
1080
+ captionsOn: Y.showing,
1081
+ audioDescriptionAvailable: X.available,
1082
+ audioDescriptionOn: G,
1083
+ silent: i,
1084
+ persist: a,
1086
1085
  audioLanguages: S,
1087
- audioLanguage: ne,
1088
- onAudioLanguageChange: ae,
1086
+ audioLanguage: te,
1087
+ onAudioLanguageChange: ie,
1089
1088
  captionLanguages: T,
1090
- captionLanguage: E,
1091
- onCaptionLanguageChange: oe,
1092
- onCaptionsOff: se,
1093
- audioDescriptionLanguages: A,
1094
- audioDescriptionLanguage: V,
1095
- onAudioDescriptionLanguageChange: ce,
1096
- onAudioDescriptionOff: Q,
1097
- onTogglePlay: q.togglePlay,
1098
- onToggleMute: q.toggleMute,
1099
- onVolumeChange: q.setVolume,
1100
- onPlaybackRateChange: q.setPlaybackRate,
1089
+ captionLanguage: D,
1090
+ onCaptionLanguageChange: ae,
1091
+ onCaptionsOff: oe,
1092
+ audioDescriptionLanguages: j,
1093
+ audioDescriptionLanguage: H,
1094
+ onAudioDescriptionLanguageChange: se,
1095
+ onAudioDescriptionOff: $,
1096
+ onTogglePlay: J.togglePlay,
1097
+ onToggleMute: J.toggleMute,
1098
+ onVolumeChange: J.setVolume,
1099
+ onPlaybackRateChange: J.setPlaybackRate,
1101
1100
  onToggleFullscreen: () => void fe(),
1102
- onToggleCaptions: J.toggle,
1103
- onToggleAudioDescription: Z,
1104
- onSeek: de,
1105
- download: f
1101
+ onToggleCaptions: Y.toggle,
1102
+ onToggleAudioDescription: Q,
1103
+ onSeek: ue,
1104
+ download: u
1106
1105
  }) : null
1107
1106
  ]
1108
1107
  });
1109
1108
  }
1110
1109
  //#endregion
1111
1110
  //#region src/blocks/F0VideoPlayer/F0VideoPlayer.tsx
1112
- var Pe = f(v("F0VideoPlayer", Ne));
1111
+ var Pe = u(g("F0VideoPlayer", Ne));
1113
1112
  //#endregion
1114
- export { L as a, z as i, R as n, B as r, Pe as t };
1113
+ export { R as a, B as i, z as n, V as r, Pe as t };