softbuilders-react-video-player 1.0.5 → 1.0.7
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/BigPlayButton/index.d.ts +1 -1
- package/dist/components/BigPlayButton/index.js +2 -3
- package/dist/components/BigPlayButton/index.js.map +1 -1
- package/dist/components/BigPlayButton/index.tsx +31 -0
- package/dist/components/BufferTracker/index.d.ts +1 -2
- package/dist/components/BufferTracker/index.js +3 -2
- package/dist/components/BufferTracker/index.js.map +1 -1
- package/dist/components/BufferTracker/index.tsx +19 -0
- package/dist/components/ChapterTooltip/index.d.ts +1 -2
- package/dist/components/ChapterTooltip/index.js +4 -13
- package/dist/components/ChapterTooltip/index.js.map +1 -1
- package/dist/components/ChapterTooltip/index.tsx +65 -0
- package/dist/components/ChaptersPanal/index.d.ts +1 -2
- package/dist/components/ChaptersPanal/index.js +3 -2
- package/dist/components/ChaptersPanal/index.js.map +1 -1
- package/dist/components/ChaptersPanal/index.tsx +40 -0
- package/dist/components/ControlBar/index.d.ts +1 -1
- package/dist/components/ControlBar/index.js +14 -31
- package/dist/components/ControlBar/index.js.map +1 -1
- package/dist/components/ControlBar/index.tsx +127 -0
- package/dist/components/CreateNoteMenu/index.d.ts +1 -2
- package/dist/components/CreateNoteMenu/index.js +3 -9
- package/dist/components/CreateNoteMenu/index.js.map +1 -1
- package/dist/components/CreateNoteMenu/index.tsx +61 -0
- package/dist/components/CurrentTimeLabel/index.d.ts +1 -2
- package/dist/components/CurrentTimeLabel/index.js +2 -2
- package/dist/components/CurrentTimeLabel/index.js.map +1 -1
- package/dist/components/CurrentTimeLabel/index.tsx +13 -0
- package/dist/components/CurrentTimeTracker/index.d.ts +1 -2
- package/dist/components/CurrentTimeTracker/index.js +3 -2
- package/dist/components/CurrentTimeTracker/index.js.map +1 -1
- package/dist/components/CurrentTimeTracker/index.tsx +18 -0
- package/dist/components/Menu/index.d.ts +1 -2
- package/dist/components/Menu/index.js +2 -7
- package/dist/components/Menu/index.js.map +1 -1
- package/dist/components/Menu/index.tsx +49 -0
- package/dist/components/MenuButton/index.d.ts +1 -1
- package/dist/components/MenuButton/index.js +3 -4
- package/dist/components/MenuButton/index.js.map +1 -1
- package/dist/components/MenuButton/index.tsx +67 -0
- package/dist/components/NoteTooltip/index.d.ts +1 -2
- package/dist/components/NoteTooltip/index.js +3 -7
- package/dist/components/NoteTooltip/index.js.map +1 -1
- package/dist/components/NoteTooltip/index.tsx +46 -0
- package/dist/components/NotesPanal/index.d.ts +1 -2
- package/dist/components/NotesPanal/index.js +3 -2
- package/dist/components/NotesPanal/index.js.map +1 -1
- package/dist/components/NotesPanal/index.tsx +34 -0
- package/dist/components/QualityMenu/index.d.ts +1 -2
- package/dist/components/QualityMenu/index.js +19 -28
- package/dist/components/QualityMenu/index.js.map +1 -1
- package/dist/components/QualityMenu/index.tsx +122 -0
- package/dist/components/Slider/index.d.ts +1 -1
- package/dist/components/Slider/index.js +2 -2
- package/dist/components/Slider/index.js.map +1 -1
- package/dist/components/Slider/index.tsx +37 -0
- package/dist/components/SoftBuildersVideoPlayer/index.d.ts +1 -1
- package/dist/components/SoftBuildersVideoPlayer/index.js +3 -2
- package/dist/components/SoftBuildersVideoPlayer/index.js.map +1 -1
- package/dist/components/SoftBuildersVideoPlayer/index.tsx +108 -0
- package/dist/components/SubtitleMenu/index.d.ts +1 -2
- package/dist/components/SubtitleMenu/index.js +12 -21
- package/dist/components/SubtitleMenu/index.js.map +1 -1
- package/dist/components/SubtitleMenu/index.tsx +108 -0
- package/dist/components/TimeSlider/index.d.ts +1 -2
- package/dist/components/TimeSlider/index.js +10 -12
- package/dist/components/TimeSlider/index.js.map +1 -1
- package/dist/components/TimeSlider/index.tsx +107 -0
- package/dist/components/TimeSliderContainer/index.d.ts +1 -2
- package/dist/components/TimeSliderContainer/index.js +2 -7
- package/dist/components/TimeSliderContainer/index.js.map +1 -1
- package/dist/components/TimeSliderContainer/index.tsx +35 -0
- package/dist/components/Tooltip/index.d.ts +1 -1
- package/dist/components/Tooltip/index.js +2 -2
- package/dist/components/Tooltip/index.js.map +1 -1
- package/dist/components/Tooltip/index.tsx +16 -0
- package/dist/components/VideoPlayerComponent/index.d.ts +1 -2
- package/dist/components/VideoPlayerComponent/index.js +5 -7
- package/dist/components/VideoPlayerComponent/index.js.map +1 -1
- package/dist/components/VideoPlayerComponent/index.tsx +244 -0
- package/dist/components/VideoPlayerComponent/provider.d.ts +1 -1
- package/dist/components/VideoPlayerComponent/provider.js +4 -3
- package/dist/components/VideoPlayerComponent/provider.js.map +1 -1
- package/dist/components/VideoPlayerComponent/provider.tsx +82 -0
- package/dist/components/VolumeSlider/index.d.ts +1 -2
- package/dist/components/VolumeSlider/index.js +3 -4
- package/dist/components/VolumeSlider/index.js.map +1 -1
- package/dist/components/VolumeSlider/index.tsx +52 -0
- package/dist/components/icons/BackwardIcon.d.ts +3 -0
- package/dist/components/icons/BackwardIcon.js +4 -0
- package/dist/components/icons/BackwardIcon.js.map +1 -0
- package/dist/components/icons/BackwardIcon.tsx +20 -0
- package/dist/components/icons/CheckedIcon.d.ts +3 -0
- package/dist/components/icons/CheckedIcon.js +4 -0
- package/dist/components/icons/CheckedIcon.js.map +1 -0
- package/dist/components/icons/CheckedIcon.tsx +20 -0
- package/dist/components/icons/ClosedNoteIcon.d.ts +3 -0
- package/dist/components/icons/ClosedNoteIcon.js +4 -0
- package/dist/components/icons/ClosedNoteIcon.js.map +1 -0
- package/dist/components/icons/ClosedNoteIcon.tsx +17 -0
- package/dist/components/icons/ForwardIcon.d.ts +3 -0
- package/dist/components/icons/ForwardIcon.js +4 -0
- package/dist/components/icons/ForwardIcon.js.map +1 -0
- package/dist/components/icons/ForwardIcon.tsx +20 -0
- package/dist/components/icons/FullScreenIcon.d.ts +3 -0
- package/dist/components/icons/FullScreenIcon.js +4 -0
- package/dist/components/icons/FullScreenIcon.js.map +1 -0
- package/dist/components/icons/FullScreenIcon.tsx +20 -0
- package/dist/components/icons/LeftArrowIcon.d.ts +3 -0
- package/dist/components/icons/LeftArrowIcon.js +4 -0
- package/dist/components/icons/LeftArrowIcon.js.map +1 -0
- package/dist/components/icons/LeftArrowIcon.tsx +20 -0
- package/dist/components/icons/MuteIcon.d.ts +3 -0
- package/dist/components/icons/MuteIcon.js +4 -0
- package/dist/components/icons/MuteIcon.js.map +1 -0
- package/dist/components/icons/MuteIcon.tsx +21 -0
- package/dist/components/icons/NoteIcon.d.ts +3 -0
- package/dist/components/icons/NoteIcon.js +4 -0
- package/dist/components/icons/NoteIcon.js.map +1 -0
- package/dist/components/icons/NoteIcon.tsx +17 -0
- package/dist/components/icons/OpenNoteIcon.d.ts +3 -0
- package/dist/components/icons/OpenNoteIcon.js +4 -0
- package/dist/components/icons/OpenNoteIcon.js.map +1 -0
- package/dist/components/icons/OpenNoteIcon.tsx +17 -0
- package/dist/components/icons/PauseIcon.d.ts +3 -0
- package/dist/components/icons/PauseIcon.js +4 -0
- package/dist/components/icons/PauseIcon.js.map +1 -0
- package/dist/components/icons/PauseIcon.tsx +14 -0
- package/dist/components/icons/PlayIcon.d.ts +3 -0
- package/dist/components/icons/PlayIcon.js +4 -0
- package/dist/components/icons/PlayIcon.js.map +1 -0
- package/dist/components/icons/PlayIcon.tsx +20 -0
- package/dist/components/icons/SettingsIcon.d.ts +3 -0
- package/dist/components/icons/SettingsIcon.js +4 -0
- package/dist/components/icons/SettingsIcon.js.map +1 -0
- package/dist/components/icons/SettingsIcon.tsx +17 -0
- package/dist/components/icons/SubtitlesIcon.d.ts +3 -0
- package/dist/components/icons/SubtitlesIcon.js +4 -0
- package/dist/components/icons/SubtitlesIcon.js.map +1 -0
- package/dist/components/icons/SubtitlesIcon.tsx +14 -0
- package/dist/components/icons/UnmuteIcon.d.ts +3 -0
- package/dist/components/icons/UnmuteIcon.js +4 -0
- package/dist/components/icons/UnmuteIcon.js.map +1 -0
- package/dist/components/icons/UnmuteIcon.tsx +17 -0
- package/dist/components/icons/index.d.ts +14 -0
- package/dist/components/icons/index.js +15 -0
- package/dist/components/icons/index.js.map +1 -0
- package/dist/components/icons/index.ts +14 -0
- package/dist/images/index.d.ts +14 -14
- package/dist/images/index.js +14 -14
- package/dist/images/index.js.map +1 -1
- package/dist/index.css +663 -0
- package/dist/index.d.mts +49 -0
- package/dist/index.mjs +1383 -0
- package/package.json +9 -4
@@ -1,10 +1,10 @@
|
|
1
1
|
"use client";
|
2
|
-
import
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
3
3
|
import { durationFormater } from "../../utils";
|
4
4
|
import { useSoftBuildersVideoPlayerContext } from "../VideoPlayerComponent/provider";
|
5
5
|
const CurrentTimeLabel = ({}) => {
|
6
6
|
const { currentTime } = useSoftBuildersVideoPlayerContext();
|
7
|
-
return
|
7
|
+
return _jsx("p", { children: durationFormater(currentTime) });
|
8
8
|
};
|
9
9
|
export default CurrentTimeLabel;
|
10
10
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/CurrentTimeLabel/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/CurrentTimeLabel/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EAAE,iCAAiC,EAAE,MAAM,kCAAkC,CAAC;AAGrF,MAAM,gBAAgB,GAAG,CAAC,EAAS,EAAE,EAAE;IACrC,MAAM,EAAE,WAAW,EAAE,GAAG,iCAAiC,EAAE,CAAC;IAE5D,OAAO,sBAAI,gBAAgB,CAAC,WAAW,CAAC,GAAK,CAAC;AAChD,CAAC,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
"use client";
|
2
|
+
import React, { useEffect } from "react";
|
3
|
+
import { durationFormater } from "../../utils";
|
4
|
+
import { useSoftBuildersVideoPlayerContext } from "../VideoPlayerComponent/provider";
|
5
|
+
type Props = {};
|
6
|
+
|
7
|
+
const CurrentTimeLabel = ({}: Props) => {
|
8
|
+
const { currentTime } = useSoftBuildersVideoPlayerContext();
|
9
|
+
|
10
|
+
return <p>{durationFormater(currentTime)}</p>;
|
11
|
+
};
|
12
|
+
|
13
|
+
export default CurrentTimeLabel;
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import
|
1
|
+
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
2
|
+
import { useEffect } from "react";
|
2
3
|
import { useSoftBuildersVideoPlayerContext } from "../VideoPlayerComponent/provider";
|
3
4
|
const CurrentTimeTracker = () => {
|
4
5
|
const { setCurrentTime, player } = useSoftBuildersVideoPlayerContext();
|
@@ -9,7 +10,7 @@ const CurrentTimeTracker = () => {
|
|
9
10
|
// Cleanup function to clear the interval
|
10
11
|
return () => clearInterval(intervalId);
|
11
12
|
}, [player]);
|
12
|
-
return
|
13
|
+
return _jsx(_Fragment, {});
|
13
14
|
};
|
14
15
|
export default CurrentTimeTracker;
|
15
16
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/CurrentTimeTracker/index.tsx"],"names":[],"mappings":"AAAA,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/CurrentTimeTracker/index.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,iCAAiC,EAAE,MAAM,kCAAkC,CAAC;AAErF,MAAM,kBAAkB,GAAG,GAAG,EAAE;IAC9B,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,GAAG,iCAAiC,EAAE,CAAC;IAEvE,SAAS,CAAC,GAAG,EAAE;QACb,MAAM,UAAU,GAAG,WAAW,CAAC,GAAG,EAAE;YAClC,cAAc,CAAC,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,WAAW,EAAE,KAAI,CAAC,CAAC,CAAC;QAC7C,CAAC,EAAE,GAAG,CAAC,CAAC;QAER,yCAAyC;QACzC,OAAO,GAAG,EAAE,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;IACzC,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;IACb,OAAO,mBAAK,CAAC;AACf,CAAC,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import React, { useEffect } from "react";
|
2
|
+
import { useSoftBuildersVideoPlayerContext } from "../VideoPlayerComponent/provider";
|
3
|
+
|
4
|
+
const CurrentTimeTracker = () => {
|
5
|
+
const { setCurrentTime, player } = useSoftBuildersVideoPlayerContext();
|
6
|
+
|
7
|
+
useEffect(() => {
|
8
|
+
const intervalId = setInterval(() => {
|
9
|
+
setCurrentTime(player?.currentTime() || 0);
|
10
|
+
}, 500);
|
11
|
+
|
12
|
+
// Cleanup function to clear the interval
|
13
|
+
return () => clearInterval(intervalId);
|
14
|
+
}, [player]);
|
15
|
+
return <></>;
|
16
|
+
};
|
17
|
+
|
18
|
+
export default CurrentTimeTracker;
|
@@ -1,11 +1,6 @@
|
|
1
|
-
import
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
2
|
const Menu = ({ name }) => {
|
3
|
-
return (
|
4
|
-
React.createElement("div", { className: "py-1", role: "menu", "aria-orientation": "vertical", "aria-labelledby": `${name}-button` },
|
5
|
-
React.createElement("a", { href: "#", className: "block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 hover:text-gray-900", role: "menuitem" }, "Dashboard"),
|
6
|
-
React.createElement("a", { href: "#", className: "block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 hover:text-gray-900", role: "menuitem" }, "Settings"),
|
7
|
-
React.createElement("a", { href: "#", className: "block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 hover:text-gray-900", role: "menuitem" }, "Profile"),
|
8
|
-
React.createElement("a", { href: "#", className: "block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 hover:text-gray-900", role: "menuitem" }, "Logout"))));
|
3
|
+
return (_jsx("div", { className: "absolute right-0 z-10 w-48 mt-2 origin-top-right bg-white border border-gray-300 rounded-md shadow-lg focus:outline-none", children: _jsxs("div", { className: "py-1", role: "menu", "aria-orientation": "vertical", "aria-labelledby": `${name}-button`, children: [_jsx("a", { href: "#", className: "block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 hover:text-gray-900", role: "menuitem", children: "Dashboard" }), _jsx("a", { href: "#", className: "block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 hover:text-gray-900", role: "menuitem", children: "Settings" }), _jsx("a", { href: "#", className: "block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 hover:text-gray-900", role: "menuitem", children: "Profile" }), _jsx("a", { href: "#", className: "block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 hover:text-gray-900", role: "menuitem", children: "Logout" })] }) }));
|
9
4
|
};
|
10
5
|
export default Menu;
|
11
6
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Menu/index.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Menu/index.tsx"],"names":[],"mappings":";AAMA,MAAM,IAAI,GAAG,CAAC,EAAE,IAAI,EAAS,EAAE,EAAE;IAC/B,OAAO,CACL,cAAK,SAAS,EAAC,0HAA0H,YACvI,eACE,SAAS,EAAC,MAAM,EAChB,IAAI,EAAC,MAAM,sBACM,UAAU,qBACV,GAAG,IAAI,SAAS,aAEjC,YACE,IAAI,EAAC,GAAG,EACR,SAAS,EAAC,6EAA6E,EACvF,IAAI,EAAC,UAAU,0BAGb,EACJ,YACE,IAAI,EAAC,GAAG,EACR,SAAS,EAAC,6EAA6E,EACvF,IAAI,EAAC,UAAU,yBAGb,EACJ,YACE,IAAI,EAAC,GAAG,EACR,SAAS,EAAC,6EAA6E,EACvF,IAAI,EAAC,UAAU,wBAGb,EACJ,YACE,IAAI,EAAC,GAAG,EACR,SAAS,EAAC,6EAA6E,EACvF,IAAI,EAAC,UAAU,uBAGb,IACA,GACF,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
@@ -0,0 +1,49 @@
|
|
1
|
+
import React from "react";
|
2
|
+
|
3
|
+
type Props = {
|
4
|
+
name: string;
|
5
|
+
};
|
6
|
+
|
7
|
+
const Menu = ({ name }: Props) => {
|
8
|
+
return (
|
9
|
+
<div className="absolute right-0 z-10 w-48 mt-2 origin-top-right bg-white border border-gray-300 rounded-md shadow-lg focus:outline-none">
|
10
|
+
<div
|
11
|
+
className="py-1"
|
12
|
+
role="menu"
|
13
|
+
aria-orientation="vertical"
|
14
|
+
aria-labelledby={`${name}-button`}
|
15
|
+
>
|
16
|
+
<a
|
17
|
+
href="#"
|
18
|
+
className="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 hover:text-gray-900"
|
19
|
+
role="menuitem"
|
20
|
+
>
|
21
|
+
Dashboard
|
22
|
+
</a>
|
23
|
+
<a
|
24
|
+
href="#"
|
25
|
+
className="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 hover:text-gray-900"
|
26
|
+
role="menuitem"
|
27
|
+
>
|
28
|
+
Settings
|
29
|
+
</a>
|
30
|
+
<a
|
31
|
+
href="#"
|
32
|
+
className="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 hover:text-gray-900"
|
33
|
+
role="menuitem"
|
34
|
+
>
|
35
|
+
Profile
|
36
|
+
</a>
|
37
|
+
<a
|
38
|
+
href="#"
|
39
|
+
className="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 hover:text-gray-900"
|
40
|
+
role="menuitem"
|
41
|
+
>
|
42
|
+
Logout
|
43
|
+
</a>
|
44
|
+
</div>
|
45
|
+
</div>
|
46
|
+
);
|
47
|
+
};
|
48
|
+
|
49
|
+
export default Menu;
|
@@ -4,5 +4,5 @@ type Props = {
|
|
4
4
|
menuContent: React.ReactNode;
|
5
5
|
close?: (fun: Function) => void;
|
6
6
|
};
|
7
|
-
declare const MenuButton: ({ buttonContent, menuContent, close }: Props) =>
|
7
|
+
declare const MenuButton: ({ buttonContent, menuContent, close }: Props) => import("react/jsx-runtime").JSX.Element;
|
8
8
|
export default MenuButton;
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
+
import { useCallback, useEffect, useRef, useState } from "react";
|
2
3
|
const MenuButton = ({ buttonContent, menuContent, close }) => {
|
3
4
|
const [isOpen, setIsOpen] = useState(false);
|
4
5
|
const buttonRef = useRef(null);
|
@@ -23,9 +24,7 @@ const MenuButton = ({ buttonContent, menuContent, close }) => {
|
|
23
24
|
if (close)
|
24
25
|
close(closeMenu);
|
25
26
|
}, [close, closeMenu]);
|
26
|
-
return (
|
27
|
-
React.createElement("button", { ref: buttonRef, onClick: toggleMenu, "aria-haspopup": "true", "aria-expanded": isOpen, "aria-label": "Open menu" }, buttonContent),
|
28
|
-
isOpen && (React.createElement("div", { ref: menuRef, role: "menu", "aria-orientation": "vertical", "aria-labelledby": "Open menu", className: "sb-absolute sb-shadow-lg sb-right-0 sb-bottom-10" }, menuContent))));
|
27
|
+
return (_jsxs("div", { className: "sb-relative", children: [_jsx("button", { ref: buttonRef, onClick: toggleMenu, "aria-haspopup": "true", "aria-expanded": isOpen, "aria-label": "Open menu", children: buttonContent }), isOpen && (_jsx("div", { ref: menuRef, role: "menu", "aria-orientation": "vertical", "aria-labelledby": "Open menu", className: "sb-absolute sb-shadow-lg sb-right-0 sb-bottom-10", children: menuContent }))] }));
|
29
28
|
};
|
30
29
|
export default MenuButton;
|
31
30
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/MenuButton/index.tsx"],"names":[],"mappings":"AAAA,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AEP,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,KAAK;YAAE,KAAK,CAAC,SAAS,CAAC,CAAC;IAC9B,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC;IAEvB,OAAO,CACL,eAAK,SAAS,EAAC,aAAa,aAC1B,iBACE,GAAG,EAAE,SAAS,EACd,OAAO,EAAE,UAAU,mBACL,MAAM,mBACL,MAAM,gBACV,WAAW,YAErB,aAAa,GACP,EAER,MAAM,IAAI,CACT,cACE,GAAG,EAAE,OAAO,EACZ,IAAI,EAAC,MAAM,sBACM,UAAU,qBACX,WAAW,EAC3B,SAAS,EAAC,kDAAkD,YAE3D,WAAW,GACR,CACP,IACG,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
@@ -0,0 +1,67 @@
|
|
1
|
+
import React, { useCallback, useEffect, useRef, useState } from "react";
|
2
|
+
|
3
|
+
type Props = {
|
4
|
+
buttonContent: React.ReactNode;
|
5
|
+
menuContent: React.ReactNode;
|
6
|
+
close?: (fun: Function) => void;
|
7
|
+
};
|
8
|
+
|
9
|
+
const MenuButton = ({ buttonContent, menuContent, close }: Props) => {
|
10
|
+
const [isOpen, setIsOpen] = useState(false);
|
11
|
+
const buttonRef = useRef<HTMLButtonElement | null>(null);
|
12
|
+
const menuRef = useRef<HTMLDivElement | null>(null);
|
13
|
+
|
14
|
+
const toggleMenu = () => setIsOpen((prev) => !prev);
|
15
|
+
|
16
|
+
const closeMenu = useCallback(() => {
|
17
|
+
setIsOpen(false);
|
18
|
+
}, []);
|
19
|
+
|
20
|
+
useEffect(() => {
|
21
|
+
const handleClickOutside = (event: MouseEvent) => {
|
22
|
+
if (
|
23
|
+
buttonRef.current &&
|
24
|
+
!buttonRef.current.contains(event.target as Node) &&
|
25
|
+
menuRef.current &&
|
26
|
+
!menuRef.current.contains(event.target as Node)
|
27
|
+
) {
|
28
|
+
setIsOpen(false);
|
29
|
+
}
|
30
|
+
};
|
31
|
+
|
32
|
+
document.addEventListener("mousedown", handleClickOutside);
|
33
|
+
return () => document.removeEventListener("mousedown", handleClickOutside);
|
34
|
+
}, []);
|
35
|
+
|
36
|
+
useEffect(() => {
|
37
|
+
if (close) close(closeMenu);
|
38
|
+
}, [close, closeMenu]);
|
39
|
+
|
40
|
+
return (
|
41
|
+
<div className="sb-relative">
|
42
|
+
<button
|
43
|
+
ref={buttonRef}
|
44
|
+
onClick={toggleMenu}
|
45
|
+
aria-haspopup="true"
|
46
|
+
aria-expanded={isOpen}
|
47
|
+
aria-label="Open menu"
|
48
|
+
>
|
49
|
+
{buttonContent}
|
50
|
+
</button>
|
51
|
+
|
52
|
+
{isOpen && (
|
53
|
+
<div
|
54
|
+
ref={menuRef}
|
55
|
+
role="menu"
|
56
|
+
aria-orientation="vertical"
|
57
|
+
aria-labelledby="Open menu"
|
58
|
+
className="sb-absolute sb-shadow-lg sb-right-0 sb-bottom-10"
|
59
|
+
>
|
60
|
+
{menuContent}
|
61
|
+
</div>
|
62
|
+
)}
|
63
|
+
</div>
|
64
|
+
);
|
65
|
+
};
|
66
|
+
|
67
|
+
export default MenuButton;
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import React from "react";
|
2
1
|
import { SoftBuildersVideoPlayerNote } from "../../types";
|
3
2
|
type Note = SoftBuildersVideoPlayerNote & {
|
4
3
|
percentage: number;
|
@@ -6,5 +5,5 @@ type Note = SoftBuildersVideoPlayerNote & {
|
|
6
5
|
type Props = {
|
7
6
|
note: Note;
|
8
7
|
};
|
9
|
-
declare const NoteTooltip: ({ note }: Props) =>
|
8
|
+
declare const NoteTooltip: ({ note }: Props) => import("react/jsx-runtime").JSX.Element;
|
10
9
|
export default NoteTooltip;
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
+
import { useEffect, useState } from "react";
|
2
3
|
import Tooltip from "../Tooltip";
|
3
4
|
import { durationFormater } from "../../utils";
|
4
5
|
import { useSoftBuildersVideoPlayerContext } from "../VideoPlayerComponent/provider";
|
@@ -13,12 +14,7 @@ const NoteTooltip = ({ note }) => {
|
|
13
14
|
}, 5000);
|
14
15
|
}
|
15
16
|
}, [currentTime, note.time]);
|
16
|
-
return (
|
17
|
-
React.createElement("div", { className: "sb-relative" },
|
18
|
-
React.createElement(Tooltip, { open: open },
|
19
|
-
React.createElement("div", { className: "sb-flex sb-flex-col sb-gap-2 sb-items-center" },
|
20
|
-
React.createElement("p", null, note.label),
|
21
|
-
React.createElement("p", { className: "sb-p-2 sb-bg-[#303030] sb-bg-opacity-50 sb-rounded-md" }, durationFormater(note.time)))))));
|
17
|
+
return (_jsx("div", { className: "sb-w-1 sb-h-1 sb-rounded-full sb-bg-white sb-absolute sb-z-30", style: { left: `${note.percentage}%` }, onMouseEnter: () => setOpen(true), onMouseLeave: () => setOpen(false), children: _jsx("div", { className: "sb-relative", children: _jsx(Tooltip, { open: open, children: _jsxs("div", { className: "sb-flex sb-flex-col sb-gap-2 sb-items-center", children: [_jsx("p", { children: note.label }), _jsx("p", { className: "sb-p-2 sb-bg-[#303030] sb-bg-opacity-50 sb-rounded-md", children: durationFormater(note.time) })] }) }) }) }));
|
22
18
|
};
|
23
19
|
export default NoteTooltip;
|
24
20
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/NoteTooltip/index.tsx"],"names":[],"mappings":"AAAA,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/NoteTooltip/index.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,OAAO,MAAM,YAAY,CAAC;AACjC,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EAAE,iCAAiC,EAAE,MAAM,kCAAkC,CAAC;AAQrF,MAAM,WAAW,GAAG,CAAC,EAAE,IAAI,EAAS,EAAE,EAAE;IACtC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IACxC,MAAM,EAAE,WAAW,EAAE,GAAG,iCAAiC,EAAE,CAAC;IAE5D,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,WAAW,KAAK,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;YAC1C,OAAO,CAAC,IAAI,CAAC,CAAC;YAEd,UAAU,CAAC,GAAG,EAAE;gBACd,OAAO,CAAC,KAAK,CAAC,CAAC;YACjB,CAAC,EAAE,IAAI,CAAC,CAAC;QACX,CAAC;IACH,CAAC,EAAE,CAAC,WAAW,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IAC7B,OAAO,CACL,cACE,SAAS,EAAC,+DAA+D,EACzE,KAAK,EAAE,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC,UAAU,GAAG,EAAE,EACtC,YAAY,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,EACjC,YAAY,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,YAElC,cAAK,SAAS,EAAC,aAAa,YAC1B,KAAC,OAAO,IAAC,IAAI,EAAE,IAAI,YACjB,eAAK,SAAS,EAAC,8CAA8C,aAC3D,sBAAI,IAAI,CAAC,KAAK,GAAK,EACnB,YAAG,SAAS,EAAC,uDAAuD,YACjE,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,GAC1B,IACA,GACE,GACN,GACF,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
@@ -0,0 +1,46 @@
|
|
1
|
+
import React, { useEffect, useState } from "react";
|
2
|
+
import Tooltip from "../Tooltip";
|
3
|
+
import { durationFormater } from "../../utils";
|
4
|
+
import { useSoftBuildersVideoPlayerContext } from "../VideoPlayerComponent/provider";
|
5
|
+
import { SoftBuildersVideoPlayerNote } from "../../types";
|
6
|
+
type Note = SoftBuildersVideoPlayerNote & { percentage: number };
|
7
|
+
|
8
|
+
type Props = {
|
9
|
+
note: Note;
|
10
|
+
};
|
11
|
+
|
12
|
+
const NoteTooltip = ({ note }: Props) => {
|
13
|
+
const [open, setOpen] = useState(false);
|
14
|
+
const { currentTime } = useSoftBuildersVideoPlayerContext();
|
15
|
+
|
16
|
+
useEffect(() => {
|
17
|
+
if (currentTime === Math.floor(note.time)) {
|
18
|
+
setOpen(true);
|
19
|
+
|
20
|
+
setTimeout(() => {
|
21
|
+
setOpen(false);
|
22
|
+
}, 5000);
|
23
|
+
}
|
24
|
+
}, [currentTime, note.time]);
|
25
|
+
return (
|
26
|
+
<div
|
27
|
+
className="sb-w-1 sb-h-1 sb-rounded-full sb-bg-white sb-absolute sb-z-30"
|
28
|
+
style={{ left: `${note.percentage}%` }}
|
29
|
+
onMouseEnter={() => setOpen(true)}
|
30
|
+
onMouseLeave={() => setOpen(false)}
|
31
|
+
>
|
32
|
+
<div className="sb-relative">
|
33
|
+
<Tooltip open={open}>
|
34
|
+
<div className="sb-flex sb-flex-col sb-gap-2 sb-items-center">
|
35
|
+
<p>{note.label}</p>
|
36
|
+
<p className="sb-p-2 sb-bg-[#303030] sb-bg-opacity-50 sb-rounded-md">
|
37
|
+
{durationFormater(note.time)}
|
38
|
+
</p>
|
39
|
+
</div>
|
40
|
+
</Tooltip>
|
41
|
+
</div>
|
42
|
+
</div>
|
43
|
+
);
|
44
|
+
};
|
45
|
+
|
46
|
+
export default NoteTooltip;
|
@@ -1,7 +1,6 @@
|
|
1
|
-
import React from "react";
|
2
1
|
import { SoftBuildersVideoPlayerNote } from "../../types";
|
3
2
|
type Props = {
|
4
3
|
notes: SoftBuildersVideoPlayerNote[];
|
5
4
|
};
|
6
|
-
declare const NotesPanal: ({ notes }: Props) =>
|
5
|
+
declare const NotesPanal: ({ notes }: Props) => import("react/jsx-runtime").JSX.Element;
|
7
6
|
export default NotesPanal;
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
+
import { useEffect, useState } from "react";
|
2
3
|
import NoteTooltip from "../NoteTooltip";
|
3
4
|
import { useSoftBuildersVideoPlayerContext } from "../VideoPlayerComponent/provider";
|
4
5
|
const NotesPanal = ({ notes }) => {
|
@@ -11,7 +12,7 @@ const NotesPanal = ({ notes }) => {
|
|
11
12
|
});
|
12
13
|
setNs(newNs);
|
13
14
|
}, [notes, duration]);
|
14
|
-
return (
|
15
|
+
return (_jsx("div", { id: "notes-panal", className: "sb-w-full sb-h-full sb-relative ", children: ns.map((n, i) => (_jsx(NoteTooltip, { note: n }, `note-${i}-${n.time}`))) }));
|
15
16
|
};
|
16
17
|
export default NotesPanal;
|
17
18
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/NotesPanal/index.tsx"],"names":[],"mappings":"AAAA,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/NotesPanal/index.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,EAAE,iCAAiC,EAAE,MAAM,kCAAkC,CAAC;AAOrF,MAAM,UAAU,GAAG,CAAC,EAAE,KAAK,EAAS,EAAE,EAAE;IACtC,MAAM,CAAC,EAAE,EAAE,KAAK,CAAC,GAAG,QAAQ,CAAS,EAAE,CAAC,CAAC;IAEzC,MAAM,EAAE,QAAQ,EAAE,GAAG,iCAAiC,EAAE,CAAC;IAEzD,SAAS,CAAC,GAAG,EAAE;QACb,MAAM,KAAK,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE;YAC5B,MAAM,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,GAAG,GAAG,CAAC,GAAG,QAAQ,CAAC,CAAC;YACzD,uCACK,CAAC,KACJ,UAAU,IACV;QACJ,CAAC,CAAC,CAAC;QACH,KAAK,CAAC,KAAK,CAAC,CAAC;IACf,CAAC,EAAE,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC;IACtB,OAAO,CACL,cAAK,EAAE,EAAC,aAAa,EAAC,SAAS,EAAC,kCAAkC,YAC/D,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAChB,KAAC,WAAW,IAA6B,IAAI,EAAE,CAAC,IAA9B,QAAQ,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,CAAa,CACrD,CAAC,GACE,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
@@ -0,0 +1,34 @@
|
|
1
|
+
import React, { useEffect, useState } from "react";
|
2
|
+
import NoteTooltip from "../NoteTooltip";
|
3
|
+
import { useSoftBuildersVideoPlayerContext } from "../VideoPlayerComponent/provider";
|
4
|
+
import { SoftBuildersVideoPlayerNote } from "../../types";
|
5
|
+
|
6
|
+
type Note = SoftBuildersVideoPlayerNote & { percentage: number };
|
7
|
+
type Props = {
|
8
|
+
notes: SoftBuildersVideoPlayerNote[];
|
9
|
+
};
|
10
|
+
const NotesPanal = ({ notes }: Props) => {
|
11
|
+
const [ns, setNs] = useState<Note[]>([]);
|
12
|
+
|
13
|
+
const { duration } = useSoftBuildersVideoPlayerContext();
|
14
|
+
|
15
|
+
useEffect(() => {
|
16
|
+
const newNs = notes.map((n) => {
|
17
|
+
const percentage = Math.floor((n.time * 100) / duration);
|
18
|
+
return {
|
19
|
+
...n,
|
20
|
+
percentage,
|
21
|
+
};
|
22
|
+
});
|
23
|
+
setNs(newNs);
|
24
|
+
}, [notes, duration]);
|
25
|
+
return (
|
26
|
+
<div id="notes-panal" className="sb-w-full sb-h-full sb-relative ">
|
27
|
+
{ns.map((n, i) => (
|
28
|
+
<NoteTooltip key={`note-${i}-${n.time}`} note={n} />
|
29
|
+
))}
|
30
|
+
</div>
|
31
|
+
);
|
32
|
+
};
|
33
|
+
|
34
|
+
export default NotesPanal;
|
@@ -1,12 +1,10 @@
|
|
1
|
-
import
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
+
import { useEffect, useState } from "react";
|
2
3
|
import MenuButton from "../MenuButton";
|
3
4
|
import { useSoftBuildersVideoPlayerContext } from "../VideoPlayerComponent/provider";
|
4
5
|
import { CheckedIcon, LeftArrowIcon, SettingsIcon } from "../../images";
|
5
6
|
const QualityOption = ({ isSelected, quality, onClick, }) => {
|
6
|
-
return (
|
7
|
-
React.createElement("div", { className: "sb-grid sb-grid-cols-12 sb-items-center sb-gap-2" },
|
8
|
-
React.createElement("div", { className: "sb-col-span-3" }, isSelected ? React.createElement(CheckedIcon, { className: "sb-w-5 sb-h-5" }) : React.createElement("div", null)),
|
9
|
-
React.createElement("p", { className: "sb-text-left sb-col-span-9" }, quality.label))));
|
7
|
+
return (_jsx("button", { className: "hover:sb-text-orange-500 sb-p-2", onClick: onClick, children: _jsxs("div", { className: "sb-grid sb-grid-cols-12 sb-items-center sb-gap-2", children: [_jsx("div", { className: "sb-col-span-3", children: isSelected ? _jsx(CheckedIcon, { className: "sb-w-5 sb-h-5" }) : _jsx("div", {}) }), _jsx("p", { className: "sb-text-left sb-col-span-9", children: quality.label })] }) }));
|
10
8
|
};
|
11
9
|
const QualityMenu = ({}) => {
|
12
10
|
const { player } = useSoftBuildersVideoPlayerContext();
|
@@ -23,29 +21,22 @@ const QualityMenu = ({}) => {
|
|
23
21
|
setCurrentQualitySrc(quality.src);
|
24
22
|
}
|
25
23
|
}, [player]);
|
26
|
-
return (
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
const currentTime = player === null || player === void 0 ? void 0 : player.currentTime();
|
43
|
-
setCurrentQualitySrc(source.src);
|
44
|
-
player === null || player === void 0 ? void 0 : player.currentTime(currentTime);
|
45
|
-
player === null || player === void 0 ? void 0 : player.play();
|
46
|
-
}
|
47
|
-
} }));
|
48
|
-
})))), close: (fn) => {
|
24
|
+
return (_jsx(MenuButton, { buttonContent: _jsx(SettingsIcon, { className: "sb-w-3 sb-h-3" }), menuContent: _jsx("div", { className: "sb-rounded-md sb-bg-[#303030] sb-bg-opacity-50 sb-py-5 sb-w-[150px]", children: _jsxs("div", { className: "sb-flex sb-flex-col sb-gap-3", children: [_jsxs("div", { className: "sb-px-5 sb-flex sb-flex-row sb-gap-3 sb-items-start", children: [_jsx("button", { onClick: () => {
|
25
|
+
if (closeMenuFunction) {
|
26
|
+
closeMenuFunction();
|
27
|
+
}
|
28
|
+
}, className: "hover:sb-scale-150", children: _jsx(LeftArrowIcon, { className: "sb-w-3 sb-h-3" }) }), _jsx("h3", { children: "Quality" })] }), _jsx("div", { className: "sb-w-full sb-h-[.1px] sb-bg-[#AAAAAA] sb-bg-opacity-70" }), _jsx("div", { className: "sb-px-5 sb-flex sb-flex-col sb-gap-3 sb-items-start", children: qualities.map((q, i) => {
|
29
|
+
return (_jsx(QualityOption, { isSelected: currentQualitySrc === q.src, quality: q, onClick: () => {
|
30
|
+
const source = qualities.find((_q) => q.label == _q.label);
|
31
|
+
if (source && source.src != currentQualitySrc) {
|
32
|
+
player === null || player === void 0 ? void 0 : player.src(source.src);
|
33
|
+
const currentTime = player === null || player === void 0 ? void 0 : player.currentTime();
|
34
|
+
setCurrentQualitySrc(source.src);
|
35
|
+
player === null || player === void 0 ? void 0 : player.currentTime(currentTime);
|
36
|
+
player === null || player === void 0 ? void 0 : player.play();
|
37
|
+
}
|
38
|
+
} }, `quality-${q.label}-${i}`));
|
39
|
+
}) })] }) }), close: (fn) => {
|
49
40
|
setCloseMenuFunction(() => fn);
|
50
41
|
} }));
|
51
42
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/QualityMenu/index.tsx"],"names":[],"mappings":"AAAA,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/QualityMenu/index.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAe,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAChE,OAAO,UAAU,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,iCAAiC,EAAE,MAAM,kCAAkC,CAAC;AAGrF,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAOxE,MAAM,aAAa,GAAG,CAAC,EACrB,UAAU,EACV,OAAO,EACP,OAAO,GACY,EAAE,EAAE;IACvB,OAAO,CACL,iBAAQ,SAAS,EAAC,iCAAiC,EAAC,OAAO,EAAE,OAAO,YAClE,eAAK,SAAS,EAAC,kDAAkD,aAC/D,cAAK,SAAS,EAAC,eAAe,YAC3B,UAAU,CAAC,CAAC,CAAC,KAAC,WAAW,IAAC,SAAS,EAAC,eAAe,GAAG,CAAC,CAAC,CAAC,eAAW,GACjE,EAEN,YAAG,SAAS,EAAC,4BAA4B,YAAE,OAAO,CAAC,KAAK,GAAK,IACzD,GACC,CACV,CAAC;AACJ,CAAC,CAAC;AAIF,MAAM,WAAW,GAAG,CAAC,EAAoB,EAAE,EAAE;IAC3C,MAAM,EAAE,MAAM,EAAE,GAAG,iCAAiC,EAAE,CAAC;IAEvD,MAAM,CAAC,iBAAiB,EAAE,oBAAoB,CAAC,GAAG,QAAQ,CAExD,SAAS,CAAC,CAAC;IAEb,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CACxC,EAAE,CACH,CAAC;IAEF,MAAM,CAAC,iBAAiB,EAAE,oBAAoB,CAAC,GAAG,QAAQ,CAExD,SAAS,CAAC,CAAC;IAEb,SAAS,CA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