highsoft-ui 1.0.175 → 1.0.176
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/CLAUDE.md +59 -0
- package/dist/{Footer-C2tXo3oR.js → Footer-8oEBlwJ5.js} +1 -1
- package/dist/{ProductIcon-C5yvnjHr.js → ProductIcon-Cr6E2K9a.js} +1 -0
- package/dist/Video-VbXl2HoE.js +64 -0
- package/dist/{YoutubeModal-CXSHjsEd.js → YoutubeModal-B6yOEOaP.js} +1 -1
- package/dist/assets/promo-banner/core-dark.mov +0 -0
- package/dist/assets/promo-banner/core-dark.webm +0 -0
- package/dist/assets/promo-banner/core-dark.webp +0 -0
- package/dist/assets/promo-banner/core-light.mov +0 -0
- package/dist/assets/promo-banner/core-light.webm +0 -0
- package/dist/assets/promo-banner/core-light.webp +0 -0
- package/dist/assets/promo-banner/dashboards-dark.mov +0 -0
- package/dist/assets/promo-banner/dashboards-dark.webm +0 -0
- package/dist/assets/promo-banner/dashboards-dark.webp +0 -0
- package/dist/assets/promo-banner/dashboards-light.mov +0 -0
- package/dist/assets/promo-banner/dashboards-light.webm +0 -0
- package/dist/assets/promo-banner/dashboards-light.webp +0 -0
- package/dist/assets/promo-banner/gantt-dark.mov +0 -0
- package/dist/assets/promo-banner/gantt-dark.webm +0 -0
- package/dist/assets/promo-banner/gantt-dark.webp +0 -0
- package/dist/assets/promo-banner/gantt-light.mov +0 -0
- package/dist/assets/promo-banner/gantt-light.webm +0 -0
- package/dist/assets/promo-banner/gantt-light.webp +0 -0
- package/dist/assets/promo-banner/grid-dark.mov +0 -0
- package/dist/assets/promo-banner/grid-dark.webm +0 -0
- package/dist/assets/promo-banner/grid-dark.webp +0 -0
- package/dist/assets/promo-banner/grid-light.mov +0 -0
- package/dist/assets/promo-banner/grid-light.webm +0 -0
- package/dist/assets/promo-banner/grid-light.webp +0 -0
- package/dist/assets/promo-banner/maps-dark.mov +0 -0
- package/dist/assets/promo-banner/maps-dark.webm +0 -0
- package/dist/assets/promo-banner/maps-dark.webp +0 -0
- package/dist/assets/promo-banner/maps-light.mov +0 -0
- package/dist/assets/promo-banner/maps-light.webm +0 -0
- package/dist/assets/promo-banner/maps-light.webp +0 -0
- package/dist/assets/promo-banner/morningstar-dark.mov +0 -0
- package/dist/assets/promo-banner/morningstar-dark.webm +0 -0
- package/dist/assets/promo-banner/morningstar-dark.webp +0 -0
- package/dist/assets/promo-banner/morningstar-light.mov +0 -0
- package/dist/assets/promo-banner/morningstar-light.webm +0 -0
- package/dist/assets/promo-banner/morningstar-light.webp +0 -0
- package/dist/assets/promo-banner/orbit-dark.mov +0 -0
- package/dist/assets/promo-banner/orbit-dark.webm +0 -0
- package/dist/assets/promo-banner/orbit-dark.webp +0 -0
- package/dist/assets/promo-banner/orbit-light.mov +0 -0
- package/dist/assets/promo-banner/orbit-light.webm +0 -0
- package/dist/assets/promo-banner/orbit-light.webp +0 -0
- package/dist/assets/promo-banner/stock-dark.mov +0 -0
- package/dist/assets/promo-banner/stock-dark.webm +0 -0
- package/dist/assets/promo-banner/stock-dark.webp +0 -0
- package/dist/assets/promo-banner/stock-light.mov +0 -0
- package/dist/assets/promo-banner/stock-light.webm +0 -0
- package/dist/assets/promo-banner/stock-light.webp +0 -0
- package/dist/components/Footer/YoutubeModal.js +1 -1
- package/dist/components/Footer/index.js +1 -1
- package/dist/components/ProductIcon/icons/grayscale/Accessibility.js +8 -8
- package/dist/components/ProductIcon/icons/grayscale/Advantageplus.js +3 -3
- package/dist/components/ProductIcon/icons/grayscale/Api.js +3 -3
- package/dist/components/ProductIcon/icons/grayscale/CaseStudies.js +3 -3
- package/dist/components/ProductIcon/icons/grayscale/Changelog.js +3 -3
- package/dist/components/ProductIcon/icons/grayscale/ChartChooser.js +8 -8
- package/dist/components/ProductIcon/icons/grayscale/Core.js +11 -5
- package/dist/components/ProductIcon/icons/grayscale/CustomProjects.js +3 -3
- package/dist/components/ProductIcon/icons/grayscale/Dashboards.js +1 -1
- package/dist/components/ProductIcon/icons/grayscale/Demos.js +5 -5
- package/dist/components/ProductIcon/icons/grayscale/Docs.js +6 -6
- package/dist/components/ProductIcon/icons/grayscale/Editor.js +1 -1
- package/dist/components/ProductIcon/icons/grayscale/EduLicense.js +6 -6
- package/dist/components/ProductIcon/icons/grayscale/ExportServer.js +3 -3
- package/dist/components/ProductIcon/icons/grayscale/Gantt.js +5 -5
- package/dist/components/ProductIcon/icons/grayscale/Gpt.js +9 -19
- package/dist/components/ProductIcon/icons/grayscale/Grid.js +3 -3
- package/dist/components/ProductIcon/icons/grayscale/Hca.js +4 -11
- package/dist/components/ProductIcon/icons/grayscale/Lab.js +8 -22
- package/dist/components/ProductIcon/icons/grayscale/License.js +4 -4
- package/dist/components/ProductIcon/icons/grayscale/Maps.js +8 -6
- package/dist/components/ProductIcon/icons/grayscale/Morningstar.js +11 -0
- package/dist/components/ProductIcon/icons/grayscale/Orbit.js +8 -8
- package/dist/components/ProductIcon/icons/grayscale/Python.js +5 -5
- package/dist/components/ProductIcon/icons/grayscale/Roadmap.js +4 -4
- package/dist/components/ProductIcon/icons/grayscale/Stock.js +8 -19
- package/dist/components/ProductIcon/icons/grayscale/Support.js +3 -3
- package/dist/components/ProductIcon/icons/grayscale/index.js +4 -2
- package/dist/components/ProductIcon/icons/line/Accessibility.js +1 -1
- package/dist/components/ProductIcon/icons/line/Advantageplus.js +3 -3
- package/dist/components/ProductIcon/icons/line/Api.js +1 -1
- package/dist/components/ProductIcon/icons/line/CaseStudies.js +1 -1
- package/dist/components/ProductIcon/icons/line/Changelog.js +3 -3
- package/dist/components/ProductIcon/icons/line/ChartChooser.js +8 -8
- package/dist/components/ProductIcon/icons/line/Core.js +1 -1
- package/dist/components/ProductIcon/icons/line/CustomProjects.js +3 -3
- package/dist/components/ProductIcon/icons/line/Dashboards.js +1 -1
- package/dist/components/ProductIcon/icons/line/Demos.js +1 -1
- package/dist/components/ProductIcon/icons/line/Docs.js +2 -2
- package/dist/components/ProductIcon/icons/line/Editor.js +1 -1
- package/dist/components/ProductIcon/icons/line/EduLicense.js +2 -2
- package/dist/components/ProductIcon/icons/line/ExportServer.js +2 -2
- package/dist/components/ProductIcon/icons/line/Gantt.js +1 -1
- package/dist/components/ProductIcon/icons/line/Gpt.js +2 -2
- package/dist/components/ProductIcon/icons/line/Grid.js +2 -2
- package/dist/components/ProductIcon/icons/line/Hca.js +2 -2
- package/dist/components/ProductIcon/icons/line/Lab.js +2 -2
- package/dist/components/ProductIcon/icons/line/License.js +1 -1
- package/dist/components/ProductIcon/icons/line/Maps.js +1 -1
- package/dist/components/ProductIcon/icons/line/Morningstar.js +11 -0
- package/dist/components/ProductIcon/icons/line/Orbit.js +8 -8
- package/dist/components/ProductIcon/icons/line/Python.js +1 -1
- package/dist/components/ProductIcon/icons/line/Roadmap.js +6 -3
- package/dist/components/ProductIcon/icons/line/Stock.js +2 -2
- package/dist/components/ProductIcon/icons/line/Support.js +1 -1
- package/dist/components/ProductIcon/icons/line/index.js +4 -2
- package/dist/components/ProductIcon/icons/monochrome/Accessibility.js +8 -8
- package/dist/components/ProductIcon/icons/monochrome/Advantageplus.js +3 -3
- package/dist/components/ProductIcon/icons/monochrome/Api.js +4 -4
- package/dist/components/ProductIcon/icons/monochrome/CaseStudies.js +3 -3
- package/dist/components/ProductIcon/icons/monochrome/Changelog.js +3 -3
- package/dist/components/ProductIcon/icons/monochrome/ChartChooser.js +8 -8
- package/dist/components/ProductIcon/icons/monochrome/Core.js +11 -5
- package/dist/components/ProductIcon/icons/monochrome/CustomProjects.js +3 -3
- package/dist/components/ProductIcon/icons/monochrome/Dashboards.js +1 -1
- package/dist/components/ProductIcon/icons/monochrome/Demos.js +6 -6
- package/dist/components/ProductIcon/icons/monochrome/Docs.js +6 -6
- package/dist/components/ProductIcon/icons/monochrome/Editor.js +3 -3
- package/dist/components/ProductIcon/icons/monochrome/EduLicense.js +5 -5
- package/dist/components/ProductIcon/icons/monochrome/ExportServer.js +3 -3
- package/dist/components/ProductIcon/icons/monochrome/Gantt.js +7 -14
- package/dist/components/ProductIcon/icons/monochrome/Gpt.js +6 -22
- package/dist/components/ProductIcon/icons/monochrome/Grid.js +3 -3
- package/dist/components/ProductIcon/icons/monochrome/Hca.js +5 -5
- package/dist/components/ProductIcon/icons/monochrome/Lab.js +8 -22
- package/dist/components/ProductIcon/icons/monochrome/License.js +4 -4
- package/dist/components/ProductIcon/icons/monochrome/Maps.js +5 -3
- package/dist/components/ProductIcon/icons/monochrome/Morningstar.js +11 -0
- package/dist/components/ProductIcon/icons/monochrome/Orbit.js +8 -8
- package/dist/components/ProductIcon/icons/monochrome/Python.js +1 -1
- package/dist/components/ProductIcon/icons/monochrome/Roadmap.js +4 -8
- package/dist/components/ProductIcon/icons/monochrome/Stock.js +8 -19
- package/dist/components/ProductIcon/icons/monochrome/Support.js +1 -1
- package/dist/components/ProductIcon/icons/monochrome/index.js +4 -2
- package/dist/components/ProductIcon/icons/multi/Accessibility.js +8 -8
- package/dist/components/ProductIcon/icons/multi/Advantageplus.js +3 -3
- package/dist/components/ProductIcon/icons/multi/Api.js +3 -3
- package/dist/components/ProductIcon/icons/multi/CaseStudies.js +3 -3
- package/dist/components/ProductIcon/icons/multi/Changelog.js +3 -3
- package/dist/components/ProductIcon/icons/multi/ChartChooser.js +8 -8
- package/dist/components/ProductIcon/icons/multi/Core.js +4 -8
- package/dist/components/ProductIcon/icons/multi/CustomProjects.js +3 -3
- package/dist/components/ProductIcon/icons/multi/Dashboards.js +1 -1
- package/dist/components/ProductIcon/icons/multi/Demos.js +5 -5
- package/dist/components/ProductIcon/icons/multi/Docs.js +6 -6
- package/dist/components/ProductIcon/icons/multi/Editor.js +1 -1
- package/dist/components/ProductIcon/icons/multi/EduLicense.js +5 -5
- package/dist/components/ProductIcon/icons/multi/ExportServer.js +3 -3
- package/dist/components/ProductIcon/icons/multi/Gantt.js +5 -5
- package/dist/components/ProductIcon/icons/multi/Gpt.js +7 -23
- package/dist/components/ProductIcon/icons/multi/Grid.js +3 -3
- package/dist/components/ProductIcon/icons/multi/Hca.js +4 -11
- package/dist/components/ProductIcon/icons/multi/Lab.js +12 -26
- package/dist/components/ProductIcon/icons/multi/License.js +4 -4
- package/dist/components/ProductIcon/icons/multi/Maps.js +8 -6
- package/dist/components/ProductIcon/icons/multi/Morningstar.js +11 -0
- package/dist/components/ProductIcon/icons/multi/Orbit.js +8 -8
- package/dist/components/ProductIcon/icons/multi/Python.js +5 -5
- package/dist/components/ProductIcon/icons/multi/Roadmap.js +4 -8
- package/dist/components/ProductIcon/icons/multi/Stock.js +10 -19
- package/dist/components/ProductIcon/icons/multi/Support.js +1 -1
- package/dist/components/ProductIcon/icons/multi/index.js +4 -2
- package/dist/components/ProductIcon/index.js +1 -1
- package/dist/components/ProductIcon/morningstar-mark.js +91 -0
- package/dist/components/PromoBanner/Video.js +2 -0
- package/dist/components/PromoBanner/index.js +97 -0
- package/dist/components/PromoBanner/playback.js +43 -0
- package/dist/components/PromoBanner/product-framing.js +45 -0
- package/dist/components/PromoBanner/product-media.js +2 -0
- package/dist/components/PromoBanner/products.js +60 -0
- package/dist/components/VideoCover/PlaybackGlyphs.js +29 -0
- package/dist/components/VideoCover/index.js +165 -2
- package/dist/highsoft-ui.css +1 -1
- package/dist/lib/components/ProductIcon/icons/grayscale/Morningstar.d.ts +2 -0
- package/dist/lib/components/ProductIcon/icons/grayscale/index.d.ts +1 -0
- package/dist/lib/components/ProductIcon/icons/line/Morningstar.d.ts +2 -0
- package/dist/lib/components/ProductIcon/icons/line/index.d.ts +1 -0
- package/dist/lib/components/ProductIcon/icons/monochrome/Morningstar.d.ts +2 -0
- package/dist/lib/components/ProductIcon/icons/monochrome/index.d.ts +1 -0
- package/dist/lib/components/ProductIcon/icons/multi/Morningstar.d.ts +2 -0
- package/dist/lib/components/ProductIcon/icons/multi/index.d.ts +1 -0
- package/dist/lib/components/ProductIcon/index.d.ts +2 -2
- package/dist/lib/components/ProductIcon/morningstar-mark.d.ts +5 -0
- package/dist/lib/components/PromoBanner/Video.d.ts +7 -0
- package/dist/lib/components/PromoBanner/index.d.ts +50 -0
- package/dist/lib/components/PromoBanner/playback.d.ts +2 -0
- package/dist/lib/components/PromoBanner/product-framing.d.ts +6 -0
- package/dist/lib/components/PromoBanner/product-media.d.ts +114 -0
- package/dist/lib/components/PromoBanner/products.d.ts +10 -0
- package/dist/lib/components/VideoCover/PlaybackGlyphs.d.ts +2 -0
- package/dist/lib/main.d.ts +2 -0
- package/dist/main.js +8 -7
- package/dist/product-media-gidWl_N7.js +117 -0
- package/dist/scss/variables.scss +2 -0
- package/dist/styles.module-BnKyCO6_.js +13 -0
- package/package.json +10 -7
- package/dist/VideoCover-DdN1nXfu.js +0 -196
|
@@ -1,196 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { t as e } from "./clsx-BWCAbrjV.js";
|
|
3
|
-
import { dt as t } from "./esm-DQBytmnt.js";
|
|
4
|
-
import { n } from "./Typography-DI1AkqiO.js";
|
|
5
|
-
import { t as r } from "./Icon-DJTgdvsG.js";
|
|
6
|
-
import { forwardRef as i, useCallback as a, useEffect as o, useRef as s, useState as c } from "react";
|
|
7
|
-
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
8
|
-
var d = {
|
|
9
|
-
caption: "a1m2bq_caption",
|
|
10
|
-
content: "a1m2bq_content",
|
|
11
|
-
cover: "a1m2bq_cover",
|
|
12
|
-
figure: "a1m2bq_figure",
|
|
13
|
-
hoverZoom: "a1m2bq_hoverZoom",
|
|
14
|
-
playControl: "a1m2bq_playControl",
|
|
15
|
-
poster: "a1m2bq_poster",
|
|
16
|
-
reduced: "a1m2bq_reduced",
|
|
17
|
-
video: "a1m2bq_video"
|
|
18
|
-
}, f = () => /* @__PURE__ */ l("svg", {
|
|
19
|
-
viewBox: "0 0 24 24",
|
|
20
|
-
"aria-hidden": "true",
|
|
21
|
-
focusable: "false",
|
|
22
|
-
fill: "currentColor",
|
|
23
|
-
children: /* @__PURE__ */ l("path", { d: "M8.5 5.65v12.7c0 .8.87 1.29 1.55.88l10.2-6.35a1.04 1.04 0 0 0 0-1.76L10.05 4.77a1.04 1.04 0 0 0-1.55.88Z" })
|
|
24
|
-
}), p = () => /* @__PURE__ */ u("svg", {
|
|
25
|
-
viewBox: "0 0 24 24",
|
|
26
|
-
"aria-hidden": "true",
|
|
27
|
-
focusable: "false",
|
|
28
|
-
fill: "currentColor",
|
|
29
|
-
children: [/* @__PURE__ */ l("rect", {
|
|
30
|
-
x: "6.5",
|
|
31
|
-
y: "5",
|
|
32
|
-
width: "4",
|
|
33
|
-
height: "14",
|
|
34
|
-
rx: "1.6"
|
|
35
|
-
}), /* @__PURE__ */ l("rect", {
|
|
36
|
-
x: "13.5",
|
|
37
|
-
y: "5",
|
|
38
|
-
width: "4",
|
|
39
|
-
height: "14",
|
|
40
|
-
rx: "1.6"
|
|
41
|
-
})]
|
|
42
|
-
}), m = () => /* @__PURE__ */ u("svg", {
|
|
43
|
-
viewBox: "0 0 24 24",
|
|
44
|
-
"aria-hidden": "true",
|
|
45
|
-
focusable: "false",
|
|
46
|
-
fill: "none",
|
|
47
|
-
stroke: "currentColor",
|
|
48
|
-
strokeWidth: "2.4",
|
|
49
|
-
strokeLinecap: "round",
|
|
50
|
-
strokeLinejoin: "round",
|
|
51
|
-
children: [/* @__PURE__ */ l("path", { d: "M20 8.5A8.06 8.06 0 1 0 20.94 12" }), /* @__PURE__ */ l("path", {
|
|
52
|
-
d: "M21 4v4.5h-4.5",
|
|
53
|
-
fill: "none"
|
|
54
|
-
})]
|
|
55
|
-
}), h = i(({ src: i, sources: h, poster: g, fit: _ = "cover", autoPlay: v = !0, loop: ee = !1, muted: y = !0, playsInline: b = !0, preload: x = "auto", lazy: S = !0, hoverZoom: C = !1, reducedMotion: w, aspectRatio: T, radius: E = 0, playControl: D = !0, playWhenVisible: O = !0, caption: k, children: A, "aria-label": j, className: te, style: ne }, M) => {
|
|
56
|
-
let N = s(null), P = s(null), [F, I] = c(!S), [L, R] = c(!1), [z, B] = c("paused"), [V, H] = c(!1), U = s("none"), W = !j, G = a((e) => {
|
|
57
|
-
P.current = e, typeof M == "function" ? M(e) : M && (M.current = e);
|
|
58
|
-
}, [M]), [K, q] = c(() => typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches);
|
|
59
|
-
o(() => {
|
|
60
|
-
if (typeof window > "u" || !window.matchMedia) return;
|
|
61
|
-
let e = window.matchMedia("(prefers-reduced-motion: reduce)"), t = () => q(e.matches);
|
|
62
|
-
return t(), e.addEventListener("change", t), () => e.removeEventListener("change", t);
|
|
63
|
-
}, []);
|
|
64
|
-
let J = w === void 0 ? K ? "no-animation" : !1 : w === !0 ? "no-animation" : w, Y = J !== !1, X = v && !Y, Z = a(() => {
|
|
65
|
-
let e = P.current;
|
|
66
|
-
e && (e.pause(), J === "skip-to-end" && Number.isFinite(e.duration) ? e.currentTime = Math.max(0, e.duration - .05) : J === "no-animation" && (e.currentTime = 0));
|
|
67
|
-
}, [J]);
|
|
68
|
-
o(() => {
|
|
69
|
-
let e = P.current;
|
|
70
|
-
!e || !F || (Y ? Z() : v && !O && e.play().catch(() => {}));
|
|
71
|
-
}, [
|
|
72
|
-
Y,
|
|
73
|
-
F,
|
|
74
|
-
v,
|
|
75
|
-
O,
|
|
76
|
-
Z
|
|
77
|
-
]);
|
|
78
|
-
let Q = a(() => {
|
|
79
|
-
let e = P.current;
|
|
80
|
-
e && B(e.ended ? "ended" : e.paused ? "paused" : "playing");
|
|
81
|
-
}, []), re = a(() => {
|
|
82
|
-
let e = P.current;
|
|
83
|
-
if (e) {
|
|
84
|
-
if (!e.paused) {
|
|
85
|
-
U.current = "pause", e.pause();
|
|
86
|
-
return;
|
|
87
|
-
}
|
|
88
|
-
U.current = "play", e.ended && (e.currentTime = 0), e.play().catch(() => {});
|
|
89
|
-
}
|
|
90
|
-
}, []);
|
|
91
|
-
o(() => {
|
|
92
|
-
if (!O) return;
|
|
93
|
-
let e = N.current;
|
|
94
|
-
if (!e || typeof IntersectionObserver > "u") {
|
|
95
|
-
H(!0);
|
|
96
|
-
return;
|
|
97
|
-
}
|
|
98
|
-
let t = new IntersectionObserver(([e]) => H(!!e?.isIntersecting), { threshold: .2 });
|
|
99
|
-
return t.observe(e), () => t.disconnect();
|
|
100
|
-
}, [O]), o(() => {
|
|
101
|
-
let e = P.current;
|
|
102
|
-
!e || !F || !O || (V ? (U.current === "play" || X && U.current !== "pause") && e.paused && !e.ended && e.play().catch(() => {}) : e.paused || e.pause());
|
|
103
|
-
}, [
|
|
104
|
-
V,
|
|
105
|
-
F,
|
|
106
|
-
O,
|
|
107
|
-
X
|
|
108
|
-
]), o(() => {
|
|
109
|
-
if (F) return;
|
|
110
|
-
let e = N.current;
|
|
111
|
-
if (!e || typeof IntersectionObserver > "u") {
|
|
112
|
-
I(!0);
|
|
113
|
-
return;
|
|
114
|
-
}
|
|
115
|
-
let t = new IntersectionObserver(([e]) => {
|
|
116
|
-
e?.isIntersecting && (I(!0), t.disconnect());
|
|
117
|
-
}, { rootMargin: "200px" });
|
|
118
|
-
return t.observe(e), () => t.disconnect();
|
|
119
|
-
}, [F]);
|
|
120
|
-
let $ = /* @__PURE__ */ u("div", {
|
|
121
|
-
ref: N,
|
|
122
|
-
className: e("hsui-video-cover", d.cover, {
|
|
123
|
-
[d.hoverZoom]: C,
|
|
124
|
-
[d.reduced]: Y
|
|
125
|
-
}, te),
|
|
126
|
-
style: {
|
|
127
|
-
"--vc-radius": `${E}px`,
|
|
128
|
-
aspectRatio: T,
|
|
129
|
-
...ne
|
|
130
|
-
},
|
|
131
|
-
role: W ? "presentation" : "img",
|
|
132
|
-
"aria-label": j,
|
|
133
|
-
children: [
|
|
134
|
-
g && /* @__PURE__ */ l("img", {
|
|
135
|
-
className: d.poster,
|
|
136
|
-
style: { objectFit: _ },
|
|
137
|
-
src: g,
|
|
138
|
-
alt: "",
|
|
139
|
-
"aria-hidden": "true"
|
|
140
|
-
}),
|
|
141
|
-
/* @__PURE__ */ l("video", {
|
|
142
|
-
ref: G,
|
|
143
|
-
className: d.video,
|
|
144
|
-
style: { objectFit: _ },
|
|
145
|
-
src: F && !h ? i : void 0,
|
|
146
|
-
autoPlay: X && !O,
|
|
147
|
-
loop: ee,
|
|
148
|
-
muted: y,
|
|
149
|
-
playsInline: b,
|
|
150
|
-
preload: F ? x : "none",
|
|
151
|
-
"data-ready": L || void 0,
|
|
152
|
-
onCanPlay: () => {
|
|
153
|
-
R(!0), Q();
|
|
154
|
-
},
|
|
155
|
-
onLoadedMetadata: Y ? Z : void 0,
|
|
156
|
-
onPlay: Q,
|
|
157
|
-
onPause: Q,
|
|
158
|
-
onEnded: Q,
|
|
159
|
-
"aria-hidden": W || void 0,
|
|
160
|
-
children: F && h?.map((e) => /* @__PURE__ */ l("source", {
|
|
161
|
-
src: e.src,
|
|
162
|
-
type: e.type
|
|
163
|
-
}, e.src))
|
|
164
|
-
}),
|
|
165
|
-
A != null && /* @__PURE__ */ l("div", {
|
|
166
|
-
className: d.content,
|
|
167
|
-
children: A
|
|
168
|
-
}),
|
|
169
|
-
D && /* @__PURE__ */ l("button", {
|
|
170
|
-
type: "button",
|
|
171
|
-
className: d.playControl,
|
|
172
|
-
onClick: re,
|
|
173
|
-
"aria-label": z === "playing" ? "Pause video" : z === "ended" ? "Replay video" : "Play video",
|
|
174
|
-
children: l(z === "playing" ? p : z === "ended" ? m : f, {})
|
|
175
|
-
})
|
|
176
|
-
]
|
|
177
|
-
});
|
|
178
|
-
return k == null ? $ : /* @__PURE__ */ u("figure", {
|
|
179
|
-
className: e("hsui-video-cover-figure", d.figure),
|
|
180
|
-
children: [$, /* @__PURE__ */ u("figcaption", {
|
|
181
|
-
className: d.caption,
|
|
182
|
-
children: [/* @__PURE__ */ l(r, {
|
|
183
|
-
name: t,
|
|
184
|
-
size: 12
|
|
185
|
-
}), /* @__PURE__ */ l(n, {
|
|
186
|
-
as: "span",
|
|
187
|
-
size: 75,
|
|
188
|
-
color: "tertiary",
|
|
189
|
-
children: k
|
|
190
|
-
})]
|
|
191
|
-
})]
|
|
192
|
-
});
|
|
193
|
-
});
|
|
194
|
-
h.displayName = "VideoCover";
|
|
195
|
-
//#endregion
|
|
196
|
-
export { h as t };
|