highsoft-ui 1.0.189 → 1.0.190
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/{Accordion-NPNV0Rdr.js → Accordion-BAuBLmE3.js} +2 -2
- package/dist/{Breadcrumb-Diyjpqys.js → Breadcrumb-DyHxzIHZ.js} +3 -3
- package/dist/{BrowserFrame-Bs2fIKzy.js → BrowserFrame-BPBOv1Tk.js} +5 -5
- package/dist/{Button-DtCIaVhq.js → Button-C45Uhxsb.js} +1 -1
- package/dist/{ButtonGroup-6tLQmpEH.js → ButtonGroup-CiqrtZuw.js} +1 -1
- package/dist/{Checkbox-CqFkzrVk.js → Checkbox-CVftEg1_.js} +1 -1
- package/dist/{CodeBlock-BM_Vefdj.js → CodeBlock-B3wBSBYj.js} +4 -4
- package/dist/{CookiePolicyModal-BXIr4v-D.js → CookiePolicyModal-DjSphVoO.js} +2 -2
- package/dist/{CopyCode-4IXo0bTs.js → CopyCode-CUpfwNcv.js} +2 -2
- package/dist/{Dropdown-DoQBagdU.js → Dropdown-CrVLfZiy.js} +1 -1
- package/dist/{Footer-J3MxvPPO.js → Footer-DzsWk7mZ.js} +7 -7
- package/dist/{FooterBottom-CT_vF7Wo.js → FooterBottom-Dr8pA9M3.js} +1 -1
- package/dist/{FooterHelp-BMGx8Hk_.js → FooterHelp-CTJGT2jE.js} +1 -1
- package/dist/{FooterLinks-Bl9DTxcj.js → FooterLinks-WUB3E0CX.js} +2 -2
- package/dist/{Header-Dbi8eOiH.js → Header-LQoKnhWx.js} +16 -16
- package/dist/{InputGrouped-B3WGuESX.js → InputGrouped-Ddlan78b.js} +3 -3
- package/dist/{Label-DwiX1ZiD.js → Label-BE2jiXll.js} +1 -1
- package/dist/{List-_Ahztqfe.js → List-DsP9RBn1.js} +1 -1
- package/dist/{LogoCarousel-e-1WK43R.js → LogoCarousel-DZCklh0c.js} +3 -3
- package/dist/{NewsletterSignup-BY5-NuDn.js → NewsletterSignup-DZNPeWVb.js} +4 -4
- package/dist/{Notification-D93nzw6M.js → Notification-BSUYpeGy.js} +3 -3
- package/dist/{PrefPanel-DTbo6QDa.js → PrefPanel-Dqu4mVyV.js} +7 -7
- package/dist/{PrevNextNav-ChqvTQGz.js → PrevNextNav-ChtdXmcy.js} +1 -1
- package/dist/{ProductNotice-BfI0v5Ag.js → ProductNotice-DnQEPFsx.js} +2 -2
- package/dist/{RoadmapDetails-DIByXo2r.js → RoadmapDetails-BgX6JZ4M.js} +5 -5
- package/dist/{SearchDropdown-X_PX34tw.js → SearchDropdown-DeqQ84uc.js} +1 -1
- package/dist/VideoPlayer-DmgXtaQU.js +456 -0
- package/dist/{VideoPlayerModal-DhH0G9cJ.js → VideoPlayerModal-bQthGzgn.js} +2 -2
- package/dist/{YoutubeModal-DcnPW63b.js → YoutubeModal-CAsJ5oKk.js} +1 -1
- package/dist/components/Accordion/index.js +1 -1
- package/dist/components/Breadcrumb/index.js +1 -1
- package/dist/components/BrowserFrame/index.js +1 -1
- package/dist/components/Button/index.js +1 -1
- package/dist/components/ButtonGroup/index.js +1 -1
- package/dist/components/Checkbox/index.js +1 -1
- package/dist/components/CodeBlock/index.js +1 -1
- package/dist/components/CopyCode/index.js +1 -1
- package/dist/components/Dropdown/index.js +1 -1
- package/dist/components/Figure/ZoomImage.js +2 -2
- package/dist/components/Footer/CookiePolicyModal.js +1 -1
- package/dist/components/Footer/FooterBottom.js +1 -1
- package/dist/components/Footer/FooterHelp.js +1 -1
- package/dist/components/Footer/FooterLinks.js +1 -1
- package/dist/components/Footer/YoutubeModal.js +1 -1
- package/dist/components/Footer/index.js +1 -1
- package/dist/components/Header/index.js +1 -1
- package/dist/components/InputGrouped/index.js +1 -1
- package/dist/components/Label/index.js +1 -1
- package/dist/components/List/index.js +1 -1
- package/dist/components/LogoCarousel/index.js +1 -1
- package/dist/components/Modal/ModalContactFooter.js +2 -2
- package/dist/components/Modal/index.js +2 -2
- package/dist/components/NewsletterSignup/index.js +1 -1
- package/dist/components/Notification/index.js +1 -1
- package/dist/components/PrefPanel/index.js +1 -1
- package/dist/components/PrevNextNav/index.js +1 -1
- package/dist/components/ProductNotice/index.js +1 -1
- package/dist/components/PromoBanner/index.js +19 -19
- package/dist/components/RoadmapDetails/index.js +1 -1
- package/dist/components/Search/SearchDialog.js +8 -8
- package/dist/components/Search/index.js +2 -2
- package/dist/components/SearchDropdown/index.js +1 -1
- package/dist/components/Sidebar/NavDisclosure.js +1 -1
- package/dist/components/Sidebar/NavGroup.js +1 -1
- package/dist/components/Sidebar/Sidebar.js +10 -10
- package/dist/components/Sidebar/SidebarLayout.js +1 -1
- package/dist/components/Sidebar/SidebarSwitcher.js +1 -1
- package/dist/components/VideoCover/index.js +115 -102
- package/dist/components/VideoPlayer/VideoPlayerModal.js +1 -1
- package/dist/components/VideoPlayer/index.js +1 -1
- package/dist/{create-element-ChcNUMOL.js → create-element-BP8g1yS0.js} +1 -1
- package/dist/{esm-CqcQTziN.js → esm-BMNJ2hLn.js} +79 -51
- package/dist/highsoft-ui.css +1 -1
- package/dist/lib/components/VideoCover/index.d.ts +5 -2
- package/dist/main.js +24 -24
- package/dist/{prism-light-B3J0jr_a.js → prism-light-9X-EbG8v.js} +1 -1
- package/dist/{styles.module-BnKyCO6_.js → styles.module-G9LPGB5g.js} +2 -0
- package/package.json +1 -1
- package/dist/VideoPlayer-DRtH0Ah7.js +0 -456
|
@@ -0,0 +1,456 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { t as e } from "./clsx-BWCAbrjV.js";
|
|
3
|
+
import { D as t, I as n, N as r, T as i, a, gt as o, i as s, n as c, o as l, s as u } from "./esm-BMNJ2hLn.js";
|
|
4
|
+
import { t as d } from "./Icon-BUgFags4.js";
|
|
5
|
+
import { detectProvider as f, providerPosterUrl as p, useMediaEngine as m } from "./components/VideoPlayer/useMediaEngine.js";
|
|
6
|
+
import { forwardRef as h, useCallback as g, useEffect as _, useId as v, useImperativeHandle as y, useRef as b, useState as x } from "react";
|
|
7
|
+
import { jsx as S, jsxs as C } from "react/jsx-runtime";
|
|
8
|
+
var w = {
|
|
9
|
+
button: "_1OFWhq_button",
|
|
10
|
+
ccButton: "_1OFWhq_ccButton",
|
|
11
|
+
centerPlay: "_1OFWhq_centerPlay",
|
|
12
|
+
controlBar: "_1OFWhq_controlBar",
|
|
13
|
+
docked: "_1OFWhq_docked",
|
|
14
|
+
dragging: "_1OFWhq_dragging",
|
|
15
|
+
embed: "_1OFWhq_embed",
|
|
16
|
+
fullscreenTranscript: "_1OFWhq_fullscreenTranscript",
|
|
17
|
+
fullscreenTranscriptBody: "_1OFWhq_fullscreenTranscriptBody",
|
|
18
|
+
fullscreenTranscriptClose: "_1OFWhq_fullscreenTranscriptClose",
|
|
19
|
+
fullscreenTranscriptHeader: "_1OFWhq_fullscreenTranscriptHeader",
|
|
20
|
+
fullscreenTranscriptOpen: "_1OFWhq_fullscreenTranscriptOpen",
|
|
21
|
+
fullscreenTranscriptTitle: "_1OFWhq_fullscreenTranscriptTitle",
|
|
22
|
+
fullscreenTranscriptVisible: "_1OFWhq_fullscreenTranscriptVisible",
|
|
23
|
+
idle: "_1OFWhq_idle",
|
|
24
|
+
player: "_1OFWhq_player",
|
|
25
|
+
progress: "_1OFWhq_progress",
|
|
26
|
+
scrim: "_1OFWhq_scrim",
|
|
27
|
+
slider: "_1OFWhq_slider",
|
|
28
|
+
sliderBuffered: "_1OFWhq_sliderBuffered",
|
|
29
|
+
sliderFill: "_1OFWhq_sliderFill",
|
|
30
|
+
sliderThumb: "_1OFWhq_sliderThumb",
|
|
31
|
+
sliderTrack: "_1OFWhq_sliderTrack",
|
|
32
|
+
stack: "_1OFWhq_stack",
|
|
33
|
+
startCover: "_1OFWhq_startCover",
|
|
34
|
+
tapLayer: "_1OFWhq_tapLayer",
|
|
35
|
+
time: "_1OFWhq_time",
|
|
36
|
+
timeDuration: "_1OFWhq_timeDuration",
|
|
37
|
+
transcript: "_1OFWhq_transcript",
|
|
38
|
+
transcriptBody: "_1OFWhq_transcriptBody",
|
|
39
|
+
transcriptButton: "_1OFWhq_transcriptButton",
|
|
40
|
+
transcriptClip: "_1OFWhq_transcriptClip",
|
|
41
|
+
transcriptReveal: "_1OFWhq_transcriptReveal",
|
|
42
|
+
transcriptRevealOpen: "_1OFWhq_transcriptRevealOpen",
|
|
43
|
+
video: "_1OFWhq_video",
|
|
44
|
+
volumePopover: "_1OFWhq_volumePopover",
|
|
45
|
+
volumeSlider: "_1OFWhq_volumeSlider",
|
|
46
|
+
volumeWrap: "_1OFWhq_volumeWrap"
|
|
47
|
+
}, ee = "var(--HS-text-brand-default-alt)", te = 2600, T = -4;
|
|
48
|
+
function E(e) {
|
|
49
|
+
if (!Number.isFinite(e) || e < 0) return "0:00";
|
|
50
|
+
let t = Math.floor(e), n = Math.floor(t / 3600), r = Math.floor(t % 3600 / 60), i = t % 60, a = n > 0 ? String(r).padStart(2, "0") : String(r), o = String(i).padStart(2, "0");
|
|
51
|
+
return n > 0 ? `${n}:${a}:${o}` : `${a}:${o}`;
|
|
52
|
+
}
|
|
53
|
+
var D = (e) => Math.max(0, Math.min(1, e));
|
|
54
|
+
function O({ value: t, buffered: n, ariaLabel: r, ariaValueText: i, className: a, step: o = .05, onChange: s, onScrubStart: c, onScrubEnd: l }) {
|
|
55
|
+
let u = b(null), [d, f] = x(!1), p = (e) => `${D(e) * 100}%`, m = g((e) => {
|
|
56
|
+
let t = u.current;
|
|
57
|
+
if (!t) return 0;
|
|
58
|
+
let n = t.getBoundingClientRect();
|
|
59
|
+
return D((e - n.left) / n.width);
|
|
60
|
+
}, []), h = (e) => {
|
|
61
|
+
e.preventDefault(), u.current?.setPointerCapture(e.pointerId), f(!0), c?.(), s(m(e.clientX));
|
|
62
|
+
}, _ = (e) => {
|
|
63
|
+
d && s(m(e.clientX));
|
|
64
|
+
}, v = (e) => {
|
|
65
|
+
d && (f(!1), l?.(), u.current?.releasePointerCapture?.(e.pointerId));
|
|
66
|
+
}, y = (e) => {
|
|
67
|
+
let n = null;
|
|
68
|
+
switch (e.key) {
|
|
69
|
+
case "ArrowRight":
|
|
70
|
+
case "ArrowUp":
|
|
71
|
+
n = t + o;
|
|
72
|
+
break;
|
|
73
|
+
case "ArrowLeft":
|
|
74
|
+
case "ArrowDown":
|
|
75
|
+
n = t - o;
|
|
76
|
+
break;
|
|
77
|
+
case "Home":
|
|
78
|
+
n = 0;
|
|
79
|
+
break;
|
|
80
|
+
case "End":
|
|
81
|
+
n = 1;
|
|
82
|
+
break;
|
|
83
|
+
default: return;
|
|
84
|
+
}
|
|
85
|
+
e.preventDefault(), e.stopPropagation(), s(D(n));
|
|
86
|
+
};
|
|
87
|
+
return /* @__PURE__ */ C("div", {
|
|
88
|
+
ref: u,
|
|
89
|
+
role: "slider",
|
|
90
|
+
tabIndex: 0,
|
|
91
|
+
"aria-label": r,
|
|
92
|
+
"aria-valuemin": 0,
|
|
93
|
+
"aria-valuemax": 100,
|
|
94
|
+
"aria-valuenow": Math.round(D(t) * 100),
|
|
95
|
+
"aria-valuetext": i,
|
|
96
|
+
className: e(w.slider, a, { [w.dragging]: d }),
|
|
97
|
+
onPointerDown: h,
|
|
98
|
+
onPointerMove: _,
|
|
99
|
+
onPointerUp: v,
|
|
100
|
+
onPointerCancel: v,
|
|
101
|
+
onKeyDown: y,
|
|
102
|
+
children: [/* @__PURE__ */ C("div", {
|
|
103
|
+
className: w.sliderTrack,
|
|
104
|
+
children: [n != null && /* @__PURE__ */ S("div", {
|
|
105
|
+
className: w.sliderBuffered,
|
|
106
|
+
style: { width: p(n) }
|
|
107
|
+
}), /* @__PURE__ */ S("div", {
|
|
108
|
+
className: w.sliderFill,
|
|
109
|
+
style: { width: p(t) }
|
|
110
|
+
})]
|
|
111
|
+
}), /* @__PURE__ */ S("span", {
|
|
112
|
+
className: w.sliderThumb,
|
|
113
|
+
style: { left: p(t) }
|
|
114
|
+
})]
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
var k = h(({ src: h, sources: k, poster: A, muted: ne = !1, autoPlay: re = !1, loop: j = !1, playsInline: ie = !0, preload: ae = "metadata", aspectRatio: oe = "16 / 9", radius: M = 16, accentGradient: se = ee, tracks: N, transcript: P, transcriptTitle: F = "Transcript", "aria-label": ce = "Video player", className: le, style: ue }, de) => {
|
|
118
|
+
let I = f(h, !!k?.length), L = I !== "file", R = !L && N ? N : [], z = R.map((e, t) => (e.kind ?? "captions") === "descriptions" ? -1 : t).filter((e) => e >= 0), B = m({
|
|
119
|
+
provider: I,
|
|
120
|
+
src: h,
|
|
121
|
+
muted: ne,
|
|
122
|
+
autoPlay: re,
|
|
123
|
+
loop: j
|
|
124
|
+
}), { state: V } = B, H = b(null), U = b(null), W = b(void 0), G = v(), fe = g((e) => {
|
|
125
|
+
U.current = e, B.videoRef(e);
|
|
126
|
+
}, [B]);
|
|
127
|
+
y(de, () => U.current, []);
|
|
128
|
+
let [K, pe] = x(!1), [me, q] = x(!1), [he, ge] = x(!1), [_e, ve] = x(!1), [J, ye] = x(() => R.findIndex((e) => e.default && (e.kind ?? "captions") !== "descriptions")), [Y, X] = x(!1), Z = v(), be = b(null), xe = b(null), [Se, Ce] = x(void 0);
|
|
129
|
+
_(() => {
|
|
130
|
+
V.playing && ve(!0);
|
|
131
|
+
}, [V.playing]), _(() => {
|
|
132
|
+
if (Ce(void 0), I !== "vimeo" || A || !h) return;
|
|
133
|
+
let e = !1;
|
|
134
|
+
return fetch(`https://vimeo.com/api/oembed.json?url=${encodeURIComponent(h)}&width=1280`).then((e) => e.ok ? e.json() : null).then((t) => {
|
|
135
|
+
!e && t?.thumbnail_url && Ce(t.thumbnail_url);
|
|
136
|
+
}).catch(() => {}), () => {
|
|
137
|
+
e = !0;
|
|
138
|
+
};
|
|
139
|
+
}, [
|
|
140
|
+
I,
|
|
141
|
+
A,
|
|
142
|
+
h
|
|
143
|
+
]), _(() => {
|
|
144
|
+
let e = () => pe(document.fullscreenElement === H.current);
|
|
145
|
+
return document.addEventListener("fullscreenchange", e), () => document.removeEventListener("fullscreenchange", e);
|
|
146
|
+
}, []), _(() => {
|
|
147
|
+
K && Y && xe.current?.focus();
|
|
148
|
+
}, [K, Y]);
|
|
149
|
+
let we = g(() => {
|
|
150
|
+
q(!1), window.clearTimeout(W.current), W.current = window.setTimeout(() => q(!0), te);
|
|
151
|
+
}, []);
|
|
152
|
+
_(() => () => window.clearTimeout(W.current), []);
|
|
153
|
+
let Q = g(() => {
|
|
154
|
+
let e = H.current;
|
|
155
|
+
e && (document.fullscreenElement === e ? document.exitFullscreen().catch(() => {}) : e.requestFullscreen?.().catch(() => {}));
|
|
156
|
+
}, []), Te = g(() => {
|
|
157
|
+
X(!1), window.requestAnimationFrame(() => be.current?.focus());
|
|
158
|
+
}, []);
|
|
159
|
+
_(() => {
|
|
160
|
+
let e = U.current;
|
|
161
|
+
if (!e || !R.length) return;
|
|
162
|
+
let t = e.textTracks;
|
|
163
|
+
for (let e = 0; e < t.length; e += 1) {
|
|
164
|
+
let n = t[e];
|
|
165
|
+
n && (n.mode = e === J ? "showing" : "hidden");
|
|
166
|
+
}
|
|
167
|
+
}, [
|
|
168
|
+
J,
|
|
169
|
+
R.length,
|
|
170
|
+
V.duration
|
|
171
|
+
]), _(() => {
|
|
172
|
+
let e = U.current;
|
|
173
|
+
if (!e || !R.length || typeof VTTCue > "u" || typeof CSS < "u" && CSS.supports?.("-webkit-box-reflect", "below 0px")) return;
|
|
174
|
+
let t = Array.from(e.textTracks).map((e) => {
|
|
175
|
+
let t = () => {
|
|
176
|
+
let t = e.cues ?? e.activeCues;
|
|
177
|
+
if (t) for (let e = 0; e < t.length; e += 1) {
|
|
178
|
+
let n = t[e];
|
|
179
|
+
n instanceof VTTCue && n.line !== T && (n.line = T);
|
|
180
|
+
}
|
|
181
|
+
};
|
|
182
|
+
return t(), e.addEventListener("cuechange", t), [e, t];
|
|
183
|
+
});
|
|
184
|
+
return () => t.forEach(([e, t]) => e.removeEventListener("cuechange", t));
|
|
185
|
+
}, [
|
|
186
|
+
R.length,
|
|
187
|
+
J,
|
|
188
|
+
V.duration
|
|
189
|
+
]);
|
|
190
|
+
let Ee = g(() => {
|
|
191
|
+
if (!z.length) return;
|
|
192
|
+
let e = z.indexOf(J), t = e + 1 < z.length ? z[e + 1] ?? -1 : -1;
|
|
193
|
+
ye(e === -1 ? z[0] ?? -1 : t);
|
|
194
|
+
}, [z, J]), De = (e) => {
|
|
195
|
+
if (e.target === e.currentTarget) switch (e.key) {
|
|
196
|
+
case " ":
|
|
197
|
+
case "k":
|
|
198
|
+
e.preventDefault(), B.toggle();
|
|
199
|
+
break;
|
|
200
|
+
case "f":
|
|
201
|
+
e.preventDefault(), Q();
|
|
202
|
+
break;
|
|
203
|
+
case "m":
|
|
204
|
+
e.preventDefault(), B.toggleMute();
|
|
205
|
+
break;
|
|
206
|
+
case "c":
|
|
207
|
+
e.preventDefault(), Ee();
|
|
208
|
+
break;
|
|
209
|
+
case "t":
|
|
210
|
+
P != null && (e.preventDefault(), X((e) => !e));
|
|
211
|
+
break;
|
|
212
|
+
case "ArrowRight":
|
|
213
|
+
e.preventDefault(), B.seekBy(5);
|
|
214
|
+
break;
|
|
215
|
+
case "ArrowLeft":
|
|
216
|
+
e.preventDefault(), B.seekBy(-5);
|
|
217
|
+
break;
|
|
218
|
+
default:
|
|
219
|
+
}
|
|
220
|
+
}, Oe = A ?? p(I, h) ?? Se, ke = V.duration ? D(V.currentTime / V.duration) : 0, Ae = V.muted || V.volume === 0 ? s : V.volume < .5 ? a : l, je = {
|
|
221
|
+
"--vp-radius": `${M}px`,
|
|
222
|
+
"--vp-gradient": se,
|
|
223
|
+
aspectRatio: K ? void 0 : oe
|
|
224
|
+
}, Me = I === "file" ? /* @__PURE__ */ C("video", {
|
|
225
|
+
ref: fe,
|
|
226
|
+
className: w.video,
|
|
227
|
+
src: k?.length ? void 0 : h,
|
|
228
|
+
poster: A,
|
|
229
|
+
muted: ne,
|
|
230
|
+
autoPlay: re,
|
|
231
|
+
loop: j,
|
|
232
|
+
playsInline: ie,
|
|
233
|
+
preload: ae,
|
|
234
|
+
onClick: B.toggle,
|
|
235
|
+
children: [k?.map((e) => /* @__PURE__ */ S("source", {
|
|
236
|
+
src: e.src,
|
|
237
|
+
type: e.type
|
|
238
|
+
}, e.src)), R.map((e) => /* @__PURE__ */ S("track", {
|
|
239
|
+
src: e.src,
|
|
240
|
+
srcLang: e.srclang,
|
|
241
|
+
label: e.label,
|
|
242
|
+
kind: e.kind ?? "captions"
|
|
243
|
+
}, e.src))]
|
|
244
|
+
}) : /* @__PURE__ */ S("div", {
|
|
245
|
+
ref: B.mountRef,
|
|
246
|
+
className: w.embed
|
|
247
|
+
}), $ = /* @__PURE__ */ C("div", {
|
|
248
|
+
ref: H,
|
|
249
|
+
role: "region",
|
|
250
|
+
"aria-label": ce,
|
|
251
|
+
"aria-labelledby": G,
|
|
252
|
+
tabIndex: 0,
|
|
253
|
+
className: e("hsui-video-player", w.player, {
|
|
254
|
+
[w.playing]: V.playing,
|
|
255
|
+
[w.ended]: V.ended,
|
|
256
|
+
[w.idle]: me && V.playing && !he,
|
|
257
|
+
[w.docked]: P != null && Y,
|
|
258
|
+
[w.fullscreenTranscriptVisible]: K && Y
|
|
259
|
+
}, le),
|
|
260
|
+
style: {
|
|
261
|
+
...je,
|
|
262
|
+
...ue
|
|
263
|
+
},
|
|
264
|
+
onPointerMove: we,
|
|
265
|
+
onPointerLeave: () => V.playing && q(!0),
|
|
266
|
+
onKeyDown: De,
|
|
267
|
+
onDoubleClick: Q,
|
|
268
|
+
children: [
|
|
269
|
+
/* @__PURE__ */ S("span", {
|
|
270
|
+
id: G,
|
|
271
|
+
className: "sr-only",
|
|
272
|
+
children: ce
|
|
273
|
+
}),
|
|
274
|
+
Me,
|
|
275
|
+
L && !_e && /* @__PURE__ */ S("div", {
|
|
276
|
+
className: w.startCover,
|
|
277
|
+
"aria-hidden": "true",
|
|
278
|
+
style: Oe ? { backgroundImage: `url("${Oe}")` } : void 0
|
|
279
|
+
}),
|
|
280
|
+
L && /* @__PURE__ */ S("button", {
|
|
281
|
+
type: "button",
|
|
282
|
+
className: w.tapLayer,
|
|
283
|
+
onClick: B.toggle,
|
|
284
|
+
"aria-label": V.playing ? "Pause" : "Play",
|
|
285
|
+
tabIndex: -1
|
|
286
|
+
}),
|
|
287
|
+
/* @__PURE__ */ S("div", {
|
|
288
|
+
className: w.scrim,
|
|
289
|
+
"aria-hidden": "true"
|
|
290
|
+
}),
|
|
291
|
+
!V.playing && /* @__PURE__ */ S("button", {
|
|
292
|
+
type: "button",
|
|
293
|
+
className: w.centerPlay,
|
|
294
|
+
onClick: B.toggle,
|
|
295
|
+
"aria-label": V.ended ? "Replay" : "Play",
|
|
296
|
+
tabIndex: -1,
|
|
297
|
+
children: /* @__PURE__ */ S(d, {
|
|
298
|
+
name: i,
|
|
299
|
+
size: 32
|
|
300
|
+
})
|
|
301
|
+
}),
|
|
302
|
+
/* @__PURE__ */ C("div", {
|
|
303
|
+
className: w.controlBar,
|
|
304
|
+
children: [
|
|
305
|
+
/* @__PURE__ */ S("button", {
|
|
306
|
+
type: "button",
|
|
307
|
+
className: w.button,
|
|
308
|
+
onClick: B.toggle,
|
|
309
|
+
"aria-label": V.playing ? "Pause" : "Play",
|
|
310
|
+
children: /* @__PURE__ */ S(d, {
|
|
311
|
+
name: V.playing ? t : i,
|
|
312
|
+
size: 20
|
|
313
|
+
})
|
|
314
|
+
}),
|
|
315
|
+
/* @__PURE__ */ C("div", {
|
|
316
|
+
className: w.volumeWrap,
|
|
317
|
+
children: [/* @__PURE__ */ S("button", {
|
|
318
|
+
type: "button",
|
|
319
|
+
className: w.button,
|
|
320
|
+
onClick: B.toggleMute,
|
|
321
|
+
"aria-label": V.muted ? "Unmute" : "Mute",
|
|
322
|
+
"aria-pressed": V.muted,
|
|
323
|
+
children: /* @__PURE__ */ S(d, {
|
|
324
|
+
name: Ae,
|
|
325
|
+
size: 20
|
|
326
|
+
})
|
|
327
|
+
}), /* @__PURE__ */ S("div", {
|
|
328
|
+
className: w.volumePopover,
|
|
329
|
+
children: /* @__PURE__ */ S(O, {
|
|
330
|
+
className: w.volumeSlider,
|
|
331
|
+
value: V.volume,
|
|
332
|
+
ariaLabel: "Volume",
|
|
333
|
+
ariaValueText: `${Math.round(V.volume * 100)}%`,
|
|
334
|
+
onChange: B.setVolume
|
|
335
|
+
})
|
|
336
|
+
})]
|
|
337
|
+
}),
|
|
338
|
+
/* @__PURE__ */ S("span", {
|
|
339
|
+
className: w.time,
|
|
340
|
+
children: E(V.currentTime)
|
|
341
|
+
}),
|
|
342
|
+
/* @__PURE__ */ S(O, {
|
|
343
|
+
className: w.progress,
|
|
344
|
+
value: ke,
|
|
345
|
+
buffered: V.buffered,
|
|
346
|
+
ariaLabel: "Seek",
|
|
347
|
+
ariaValueText: `${E(V.currentTime)} of ${E(V.duration)}`,
|
|
348
|
+
onChange: B.seekFraction,
|
|
349
|
+
onScrubStart: () => {
|
|
350
|
+
ge(!0), B.beginSeek();
|
|
351
|
+
},
|
|
352
|
+
onScrubEnd: () => {
|
|
353
|
+
ge(!1), B.endSeek();
|
|
354
|
+
}
|
|
355
|
+
}),
|
|
356
|
+
/* @__PURE__ */ S("span", {
|
|
357
|
+
className: e(w.time, w.timeDuration),
|
|
358
|
+
children: E(V.duration)
|
|
359
|
+
}),
|
|
360
|
+
P != null && /* @__PURE__ */ S("button", {
|
|
361
|
+
ref: be,
|
|
362
|
+
type: "button",
|
|
363
|
+
className: e(w.button, w.transcriptButton),
|
|
364
|
+
onClick: () => X((e) => !e),
|
|
365
|
+
"aria-expanded": Y,
|
|
366
|
+
"aria-controls": Z,
|
|
367
|
+
"aria-label": Y ? "Hide transcript" : "Show transcript",
|
|
368
|
+
children: /* @__PURE__ */ S(d, {
|
|
369
|
+
name: o,
|
|
370
|
+
size: 20
|
|
371
|
+
})
|
|
372
|
+
}),
|
|
373
|
+
z.length > 0 && /* @__PURE__ */ S("button", {
|
|
374
|
+
type: "button",
|
|
375
|
+
className: e(w.button, w.ccButton),
|
|
376
|
+
onClick: Ee,
|
|
377
|
+
"aria-pressed": J !== -1,
|
|
378
|
+
"aria-label": J === -1 ? "Turn on captions" : z.length > 1 ? `Captions: ${R[J]?.label ?? ""} — next track` : "Turn off captions",
|
|
379
|
+
children: /* @__PURE__ */ S(d, {
|
|
380
|
+
name: u,
|
|
381
|
+
size: 20
|
|
382
|
+
})
|
|
383
|
+
}),
|
|
384
|
+
/* @__PURE__ */ S("button", {
|
|
385
|
+
type: "button",
|
|
386
|
+
className: w.button,
|
|
387
|
+
onClick: Q,
|
|
388
|
+
"aria-label": K ? "Exit fullscreen" : "Enter fullscreen",
|
|
389
|
+
children: /* @__PURE__ */ S(d, {
|
|
390
|
+
name: K ? r : n,
|
|
391
|
+
size: 20
|
|
392
|
+
})
|
|
393
|
+
})
|
|
394
|
+
]
|
|
395
|
+
}),
|
|
396
|
+
K && P != null && /* @__PURE__ */ C("aside", {
|
|
397
|
+
id: Z,
|
|
398
|
+
role: "region",
|
|
399
|
+
"aria-label": F,
|
|
400
|
+
"aria-hidden": !Y,
|
|
401
|
+
inert: !Y,
|
|
402
|
+
className: e(w.fullscreenTranscript, { [w.fullscreenTranscriptOpen]: Y }),
|
|
403
|
+
onKeyDown: (e) => {
|
|
404
|
+
e.key === "Escape" && (e.preventDefault(), Te());
|
|
405
|
+
},
|
|
406
|
+
children: [/* @__PURE__ */ C("div", {
|
|
407
|
+
className: w.fullscreenTranscriptHeader,
|
|
408
|
+
children: [/* @__PURE__ */ S("h2", {
|
|
409
|
+
className: w.fullscreenTranscriptTitle,
|
|
410
|
+
children: F
|
|
411
|
+
}), /* @__PURE__ */ S("button", {
|
|
412
|
+
ref: xe,
|
|
413
|
+
type: "button",
|
|
414
|
+
className: w.fullscreenTranscriptClose,
|
|
415
|
+
onClick: Te,
|
|
416
|
+
"aria-label": "Close transcript",
|
|
417
|
+
children: /* @__PURE__ */ S(d, {
|
|
418
|
+
name: c,
|
|
419
|
+
size: 20
|
|
420
|
+
})
|
|
421
|
+
})]
|
|
422
|
+
}), /* @__PURE__ */ S("div", {
|
|
423
|
+
className: e(w.transcriptBody, w.fullscreenTranscriptBody),
|
|
424
|
+
children: P
|
|
425
|
+
})]
|
|
426
|
+
})
|
|
427
|
+
]
|
|
428
|
+
});
|
|
429
|
+
return P == null ? $ : /* @__PURE__ */ C("div", {
|
|
430
|
+
className: e("hsui-video-player-stack", w.stack),
|
|
431
|
+
children: [$, !K && /* @__PURE__ */ S("div", {
|
|
432
|
+
className: e(w.transcriptReveal, { [w.transcriptRevealOpen]: Y }),
|
|
433
|
+
inert: !Y,
|
|
434
|
+
children: /* @__PURE__ */ S("div", {
|
|
435
|
+
className: w.transcriptClip,
|
|
436
|
+
children: /* @__PURE__ */ S("div", {
|
|
437
|
+
id: Z,
|
|
438
|
+
role: "region",
|
|
439
|
+
"aria-label": F,
|
|
440
|
+
className: w.transcript,
|
|
441
|
+
style: {
|
|
442
|
+
borderBottomLeftRadius: M,
|
|
443
|
+
borderBottomRightRadius: M
|
|
444
|
+
},
|
|
445
|
+
children: /* @__PURE__ */ S("div", {
|
|
446
|
+
className: w.transcriptBody,
|
|
447
|
+
children: P
|
|
448
|
+
})
|
|
449
|
+
})
|
|
450
|
+
})
|
|
451
|
+
})]
|
|
452
|
+
});
|
|
453
|
+
});
|
|
454
|
+
k.displayName = "VideoPlayer";
|
|
455
|
+
//#endregion
|
|
456
|
+
export { k as t };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { r as e } from "./esm-
|
|
2
|
+
import { r as e } from "./esm-BMNJ2hLn.js";
|
|
3
3
|
import { t } from "./dist-an9z21ra.js";
|
|
4
4
|
import { a as n, i as r, n as i, o as a, r as o, s, t as c } from "./dist-DWZ0DflU.js";
|
|
5
|
-
import { t as l } from "./VideoPlayer-
|
|
5
|
+
import { t as l } from "./VideoPlayer-DmgXtaQU.js";
|
|
6
6
|
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
7
7
|
var f = {
|
|
8
8
|
close: "ig0T5q_close",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { s as e } from "./fa-B95RwBpz.js";
|
|
2
2
|
import { VideoCover as t } from "./components/VideoCover/index.js";
|
|
3
|
-
import { t as n } from "./VideoPlayerModal-
|
|
3
|
+
import { t as n } from "./VideoPlayerModal-bQthGzgn.js";
|
|
4
4
|
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
5
5
|
var a = {
|
|
6
6
|
youtube: "elwCNG_youtube",
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "../../Accordion-
|
|
1
|
+
import { n as e, t } from "../../Accordion-BAuBLmE3.js";
|
|
2
2
|
export { t as Accordion, e as AccordionItem };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../Breadcrumb-
|
|
1
|
+
import { t as e } from "../../Breadcrumb-DyHxzIHZ.js";
|
|
2
2
|
export { e as Breadcrumb };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../BrowserFrame-
|
|
1
|
+
import { t as e } from "../../BrowserFrame-BPBOv1Tk.js";
|
|
2
2
|
export { e as BrowserFrame };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../Button-
|
|
1
|
+
import { t as e } from "../../Button-C45Uhxsb.js";
|
|
2
2
|
export { e as Button };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../ButtonGroup-
|
|
1
|
+
import { t as e } from "../../ButtonGroup-CiqrtZuw.js";
|
|
2
2
|
export { e as ButtonGroup };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "../../Checkbox-
|
|
1
|
+
import { n as e, t } from "../../Checkbox-CVftEg1_.js";
|
|
2
2
|
export { t as Checkbox, e as CheckboxGroup };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../CodeBlock-
|
|
1
|
+
import { t as e } from "../../CodeBlock-B3wBSBYj.js";
|
|
2
2
|
export { e as CodeBlock };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../CopyCode-
|
|
1
|
+
import { t as e } from "../../CopyCode-CUpfwNcv.js";
|
|
2
2
|
export { e as CopyCode };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, r as t, t as n } from "../../Dropdown-
|
|
1
|
+
import { n as e, r as t, t as n } from "../../Dropdown-CrVLfZiy.js";
|
|
2
2
|
export { n as Dropdown, e as DropdownItem, t as DropdownSeparator };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { n as e, t } from "../../esm-
|
|
3
|
-
import { t as n } from "../../Button-
|
|
2
|
+
import { n as e, t } from "../../esm-BMNJ2hLn.js";
|
|
3
|
+
import { t as n } from "../../Button-C45Uhxsb.js";
|
|
4
4
|
import { n as r } from "../../Typography-DI1AkqiO.js";
|
|
5
5
|
import { n as i, t as a } from "../../ImagePair-BH6ZnPcE.js";
|
|
6
6
|
import { t as o } from "../../Icon-BUgFags4.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../CookiePolicyModal-
|
|
1
|
+
import { t as e } from "../../CookiePolicyModal-DjSphVoO.js";
|
|
2
2
|
export { e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../FooterBottom-
|
|
1
|
+
import { t as e } from "../../FooterBottom-Dr8pA9M3.js";
|
|
2
2
|
export { e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../FooterHelp-
|
|
1
|
+
import { t as e } from "../../FooterHelp-CTJGT2jE.js";
|
|
2
2
|
export { e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../FooterLinks-
|
|
1
|
+
import { t as e } from "../../FooterLinks-WUB3E0CX.js";
|
|
2
2
|
export { e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../YoutubeModal-
|
|
1
|
+
import { t as e } from "../../YoutubeModal-CAsJ5oKk.js";
|
|
2
2
|
export { e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../Footer-
|
|
1
|
+
import { t as e } from "../../Footer-DzsWk7mZ.js";
|
|
2
2
|
export { e as Footer };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "../../Header-
|
|
1
|
+
import { n as e, t } from "../../Header-LQoKnhWx.js";
|
|
2
2
|
export { t as Header, e as SubHeader };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as e, n as t, r as n, t as r } from "../../InputGrouped-
|
|
1
|
+
import { i as e, n as t, r as n, t as r } from "../../InputGrouped-Ddlan78b.js";
|
|
2
2
|
export { r as FormGroup, t as FormRow, n as InputGrouped, e as SelectGrouped };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "../../Label-
|
|
1
|
+
import { n as e, t } from "../../Label-BE2jiXll.js";
|
|
2
2
|
export { t as Label, e as NewTag };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "../../List-
|
|
1
|
+
import { n as e, t } from "../../List-DsP9RBn1.js";
|
|
2
2
|
export { t as List, e as ListItem };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../LogoCarousel-
|
|
1
|
+
import { t as e } from "../../LogoCarousel-DZCklh0c.js";
|
|
2
2
|
export { e as LogoCarousel };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t } from "../../Button-
|
|
1
|
+
import { L as e } from "../../esm-BMNJ2hLn.js";
|
|
2
|
+
import { t } from "../../Button-C45Uhxsb.js";
|
|
3
3
|
import { n } from "../../Typography-DI1AkqiO.js";
|
|
4
4
|
import { t as r } from "../../styles.module-BDcr8Smc.js";
|
|
5
5
|
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { t as e } from "../../clsx-BWCAbrjV.js";
|
|
3
|
-
import { n as t } from "../../esm-
|
|
4
|
-
import { t as n } from "../../Button-
|
|
3
|
+
import { n as t } from "../../esm-BMNJ2hLn.js";
|
|
4
|
+
import { t as n } from "../../Button-C45Uhxsb.js";
|
|
5
5
|
import { n as r } from "../../Typography-DI1AkqiO.js";
|
|
6
6
|
import { t as i } from "../../styles.module-BDcr8Smc.js";
|
|
7
7
|
import { useEffect as a, useRef as o } from "react";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../NewsletterSignup-
|
|
1
|
+
import { t as e } from "../../NewsletterSignup-DZNPeWVb.js";
|
|
2
2
|
export { e as NewsletterSignup };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../Notification-
|
|
1
|
+
import { t as e } from "../../Notification-BSUYpeGy.js";
|
|
2
2
|
export { e as Notification };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "../../PrefPanel-
|
|
1
|
+
import { n as e, t } from "../../PrefPanel-Dqu4mVyV.js";
|
|
2
2
|
export { t as PrefPanel, e as PrefRadio };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../PrevNextNav-
|
|
1
|
+
import { t as e } from "../../PrevNextNav-ChtdXmcy.js";
|
|
2
2
|
export { e as PrevNextNav };
|