@zezosoft/zezo-ott-react-native-ui-kit 1.1.2 → 1.1.5
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/lib/module/components/Auth/AuthProvider/AuthProvider.js +5 -2
- package/lib/module/components/Auth/AuthProvider/AuthProvider.js.map +1 -1
- package/lib/module/components/Auth/One/ForgotPassword/ForgotPassword.js +232 -0
- package/lib/module/components/Auth/One/ForgotPassword/ForgotPassword.js.map +1 -0
- package/lib/module/components/Auth/One/Login/LoginWithEmail.js +324 -0
- package/lib/module/components/Auth/One/Login/LoginWithEmail.js.map +1 -0
- package/lib/module/components/Auth/{Login → One/Login}/LoginWithPhone.js +13 -11
- package/lib/module/components/Auth/One/Login/LoginWithPhone.js.map +1 -0
- package/lib/module/components/Auth/One/OTP/OTP.js +301 -0
- package/lib/module/components/Auth/One/OTP/OTP.js.map +1 -0
- package/lib/module/components/Auth/One/QrLogin/QrLogin.js +479 -0
- package/lib/module/components/Auth/One/QrLogin/QrLogin.js.map +1 -0
- package/lib/module/components/Auth/One/QrLogin/components/QrViewArea.js +295 -0
- package/lib/module/components/Auth/One/QrLogin/components/QrViewArea.js.map +1 -0
- package/lib/module/components/Auth/One/SignUp/SignUp.js +362 -0
- package/lib/module/components/Auth/One/SignUp/SignUp.js.map +1 -0
- package/lib/module/components/Auth/{SplashScreen → One/SplashScreen}/SplashScreen.js +8 -5
- package/lib/module/components/Auth/One/SplashScreen/SplashScreen.js.map +1 -0
- package/lib/module/components/Auth/One/SplashScreen/components/SplashImage/SplashImage.js +80 -0
- package/lib/module/components/Auth/One/SplashScreen/components/SplashImage/SplashImage.js.map +1 -0
- package/lib/module/components/Auth/{SplashScreen → One/SplashScreen}/components/SplashLottie/SplashLottie.js +1 -1
- package/lib/module/components/Auth/One/SplashScreen/components/SplashLottie/SplashLottie.js.map +1 -0
- package/lib/module/components/Auth/{SplashScreen → One/SplashScreen}/components/SplashVideo/SplashVideo.js +42 -21
- package/lib/module/components/Auth/One/SplashScreen/components/SplashVideo/SplashVideo.js.map +1 -0
- package/lib/module/components/Auth/One/index.js +25 -0
- package/lib/module/components/Auth/One/index.js.map +1 -0
- package/lib/module/components/Auth/Two/AuthHeader/AuthHeader.js +93 -0
- package/lib/module/components/Auth/Two/AuthHeader/AuthHeader.js.map +1 -0
- package/lib/module/components/Auth/{ForgotPassword → Two/ForgotPassword}/ForgotPassword.js +55 -28
- package/lib/module/components/Auth/Two/ForgotPassword/ForgotPassword.js.map +1 -0
- package/lib/module/components/Auth/Two/Login/AuthLoginShell.js +138 -0
- package/lib/module/components/Auth/Two/Login/AuthLoginShell.js.map +1 -0
- package/lib/module/components/Auth/Two/Login/LoginWithEmail.js +226 -0
- package/lib/module/components/Auth/Two/Login/LoginWithEmail.js.map +1 -0
- package/lib/module/components/Auth/Two/Login/LoginWithPhone.js +143 -0
- package/lib/module/components/Auth/Two/Login/LoginWithPhone.js.map +1 -0
- package/lib/module/components/Auth/{OTP → Two/OTP}/OTP.js +93 -63
- package/lib/module/components/Auth/Two/OTP/OTP.js.map +1 -0
- package/lib/module/components/Auth/Two/QrLogin/QrLogin.js +479 -0
- package/lib/module/components/Auth/Two/QrLogin/QrLogin.js.map +1 -0
- package/lib/module/components/Auth/Two/QrLogin/components/QrViewArea.js +295 -0
- package/lib/module/components/Auth/Two/QrLogin/components/QrViewArea.js.map +1 -0
- package/lib/module/components/Auth/Two/SignUp/SignUp.js +379 -0
- package/lib/module/components/Auth/Two/SignUp/SignUp.js.map +1 -0
- package/lib/module/components/Auth/Two/SplashScreen/SplashScreen.js +141 -0
- package/lib/module/components/Auth/Two/SplashScreen/SplashScreen.js.map +1 -0
- package/lib/module/components/Auth/{SplashScreen → Two/SplashScreen}/components/SplashImage/SplashImage.js +1 -1
- package/lib/module/components/Auth/Two/SplashScreen/components/SplashImage/SplashImage.js.map +1 -0
- package/lib/module/components/Auth/Two/SplashScreen/components/SplashLottie/SplashLottie.js +63 -0
- package/lib/module/components/Auth/Two/SplashScreen/components/SplashLottie/SplashLottie.js.map +1 -0
- package/lib/module/components/Auth/Two/SplashScreen/components/SplashVideo/SplashVideo.js +157 -0
- package/lib/module/components/Auth/Two/SplashScreen/components/SplashVideo/SplashVideo.js.map +1 -0
- package/lib/module/components/Auth/Two/index.js +29 -0
- package/lib/module/components/Auth/Two/index.js.map +1 -0
- package/lib/module/components/Auth/index.js +7 -22
- package/lib/module/components/Auth/index.js.map +1 -1
- package/lib/module/components/BackgroundLayout/BackgroundLayout.js +7 -3
- package/lib/module/components/BackgroundLayout/BackgroundLayout.js.map +1 -1
- package/lib/module/components/BackgroundLayout/BackgroundLayoutOne.js +52 -0
- package/lib/module/components/BackgroundLayout/BackgroundLayoutOne.js.map +1 -0
- package/lib/module/components/BottomSheet/BottomSheet.js +7 -3
- package/lib/module/components/BottomSheet/BottomSheet.js.map +1 -1
- package/lib/module/components/BottomSheet/BottomSheetOne.js +170 -0
- package/lib/module/components/BottomSheet/BottomSheetOne.js.map +1 -0
- package/lib/module/components/BottomSheet/index.js +1 -0
- package/lib/module/components/BottomSheet/index.js.map +1 -1
- package/lib/module/components/Button/PrimaryBtn.js +16 -6
- package/lib/module/components/Button/PrimaryBtn.js.map +1 -1
- package/lib/module/components/Content/Card/Category/Category.js +88 -13
- package/lib/module/components/Content/Card/Category/Category.js.map +1 -1
- package/lib/module/components/Content/Card/Category/CategroyTwo.js +287 -0
- package/lib/module/components/Content/Card/Category/CategroyTwo.js.map +1 -0
- package/lib/module/components/Content/Card/NowWatching/NowWatching.js +237 -108
- package/lib/module/components/Content/Card/NowWatching/NowWatching.js.map +1 -1
- package/lib/module/components/Content/Card/Sliders/Styles/One.js +191 -132
- package/lib/module/components/Content/Card/Sliders/Styles/One.js.map +1 -1
- package/lib/module/components/Content/Card/Sliders/Styles/Three.js +714 -0
- package/lib/module/components/Content/Card/Sliders/Styles/Three.js.map +1 -0
- package/lib/module/components/Content/Card/Sliders/Styles/Two.js +139 -92
- package/lib/module/components/Content/Card/Sliders/Styles/Two.js.map +1 -1
- package/lib/module/components/Content/Card/Sliders/index.js +3 -1
- package/lib/module/components/Content/Card/Sliders/index.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/Five.js +132 -48
- package/lib/module/components/Content/Card/Styles/Five.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/Four.js +127 -59
- package/lib/module/components/Content/Card/Styles/Four.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/One.js +126 -50
- package/lib/module/components/Content/Card/Styles/One.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/RotateInOut.js +139 -53
- package/lib/module/components/Content/Card/Styles/RotateInOut.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/Six.js +207 -115
- package/lib/module/components/Content/Card/Styles/Six.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/Three.js +119 -94
- package/lib/module/components/Content/Card/Styles/Three.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/TopTen.js +187 -171
- package/lib/module/components/Content/Card/Styles/TopTen.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/Two.js +145 -64
- package/lib/module/components/Content/Card/Styles/Two.js.map +1 -1
- package/lib/module/components/Content/Card/components/AdsPoster.js +162 -0
- package/lib/module/components/Content/Card/components/AdsPoster.js.map +1 -0
- package/lib/module/components/Content/Card/components/CardPoster.js +217 -135
- package/lib/module/components/Content/Card/components/CardPoster.js.map +1 -1
- package/lib/module/components/Content/Card/components/NavigateToMore.js +26 -2
- package/lib/module/components/Content/Card/components/NavigateToMore.js.map +1 -1
- package/lib/module/components/Content/Card/components/index.js +4 -0
- package/lib/module/components/Content/Card/components/index.js.map +1 -0
- package/lib/module/components/Content/Content.js +90 -33
- package/lib/module/components/Content/Content.js.map +1 -1
- package/lib/module/components/Content/Sections.js +41 -11
- package/lib/module/components/Content/Sections.js.map +1 -1
- package/lib/module/components/Content/types.js +4 -0
- package/lib/module/components/Content/types.js.map +1 -0
- package/lib/module/components/ContentView/MoreContentList.js +1 -0
- package/lib/module/components/ContentView/MoreContentList.js.map +1 -1
- package/lib/module/components/ContentView/{ContentView.js → One/ContentViewOne.js} +6 -5
- package/lib/module/components/ContentView/One/ContentViewOne.js.map +1 -0
- package/lib/module/components/ContentView/{components → One/components}/AboutSection.js +2 -2
- package/lib/module/components/ContentView/One/components/AboutSection.js.map +1 -0
- package/lib/module/components/ContentView/{components → One/components}/CastCard.js +2 -2
- package/lib/module/components/ContentView/One/components/CastCard.js.map +1 -0
- package/lib/module/components/ContentView/{components → One/components}/EpisodeCard.js +5 -6
- package/lib/module/components/ContentView/One/components/EpisodeCard.js.map +1 -0
- package/lib/module/components/ContentView/{components → One/components}/GenreTags.js +2 -2
- package/lib/module/components/ContentView/One/components/GenreTags.js.map +1 -0
- package/lib/module/components/ContentView/{components → One/components}/HeroBanner.js +45 -44
- package/lib/module/components/ContentView/One/components/HeroBanner.js.map +1 -0
- package/lib/module/components/ContentView/{components → One/components}/MiniInfo.js +50 -5
- package/lib/module/components/ContentView/One/components/MiniInfo.js.map +1 -0
- package/lib/module/components/ContentView/{components → One/components}/PlayButton.js +1 -1
- package/lib/module/components/ContentView/One/components/PlayButton.js.map +1 -0
- package/lib/module/components/ContentView/{components → One/components}/Title.js +1 -1
- package/lib/module/components/ContentView/One/components/Title.js.map +1 -0
- package/lib/module/components/ContentView/{components → One/components}/TrailerButton.js +2 -2
- package/lib/module/components/ContentView/One/components/TrailerButton.js.map +1 -0
- package/lib/module/components/ContentView/Two/ContentViewTwo.js +220 -0
- package/lib/module/components/ContentView/Two/ContentViewTwo.js.map +1 -0
- package/lib/module/components/ContentView/Two/components/AboutSection.js +150 -0
- package/lib/module/components/ContentView/Two/components/AboutSection.js.map +1 -0
- package/lib/module/components/ContentView/Two/components/Details.js +156 -0
- package/lib/module/components/ContentView/Two/components/Details.js.map +1 -0
- package/lib/module/components/ContentView/Two/components/EpisodeCard.js +425 -0
- package/lib/module/components/ContentView/Two/components/EpisodeCard.js.map +1 -0
- package/lib/module/components/ContentView/Two/components/GenreTags.js +86 -0
- package/lib/module/components/ContentView/Two/components/GenreTags.js.map +1 -0
- package/lib/module/components/ContentView/Two/components/HeroBanner.js +339 -0
- package/lib/module/components/ContentView/Two/components/HeroBanner.js.map +1 -0
- package/lib/module/components/ContentView/Two/components/LikeShareActions.js +88 -0
- package/lib/module/components/ContentView/Two/components/LikeShareActions.js.map +1 -0
- package/lib/module/components/ContentView/Two/components/MoreLikeThisContentList .js +235 -0
- package/lib/module/components/ContentView/Two/components/MoreLikeThisContentList .js.map +1 -0
- package/lib/module/components/ContentView/Two/components/PlayOrTrailer.js +120 -0
- package/lib/module/components/ContentView/Two/components/PlayOrTrailer.js.map +1 -0
- package/lib/module/components/ContentView/Two/components/SectionTabs.js +112 -0
- package/lib/module/components/ContentView/Two/components/SectionTabs.js.map +1 -0
- package/lib/module/components/ContentView/Two/components/Title.js +146 -0
- package/lib/module/components/ContentView/Two/components/Title.js.map +1 -0
- package/lib/module/components/ContentView/Two/components/index.js +18 -0
- package/lib/module/components/ContentView/Two/components/index.js.map +1 -0
- package/lib/module/components/ContentView/index.js +6 -1
- package/lib/module/components/ContentView/index.js.map +1 -1
- package/lib/module/components/Headers/Four.js +68 -0
- package/lib/module/components/Headers/Four.js.map +1 -0
- package/lib/module/components/Headers/Three.js +75 -24
- package/lib/module/components/Headers/Three.js.map +1 -1
- package/lib/module/components/Headers/index.js +3 -1
- package/lib/module/components/Headers/index.js.map +1 -1
- package/lib/module/components/Input/Input.js +5 -1
- package/lib/module/components/Input/Input.js.map +1 -1
- package/lib/module/components/Input/InputThree.js +157 -0
- package/lib/module/components/Input/InputThree.js.map +1 -0
- package/lib/module/components/Input/PhoneNumberInput.js.map +1 -1
- package/lib/module/components/Input/PhoneNumberInputTwo.js +316 -0
- package/lib/module/components/Input/PhoneNumberInputTwo.js.map +1 -0
- package/lib/module/components/Loader/Loader.js +14 -6
- package/lib/module/components/Loader/Loader.js.map +1 -1
- package/lib/module/components/Logo/Logo.js +42 -17
- package/lib/module/components/Logo/Logo.js.map +1 -1
- package/lib/module/components/NewRelease/NewReleaseSheet.js +227 -0
- package/lib/module/components/NewRelease/NewReleaseSheet.js.map +1 -0
- package/lib/module/components/NewRelease/index.js +4 -0
- package/lib/module/components/NewRelease/index.js.map +1 -0
- package/lib/module/components/Reels/ReelsSeries/MediaControls/BottomControls.js +92 -17
- package/lib/module/components/Reels/ReelsSeries/MediaControls/BottomControls.js.map +1 -1
- package/lib/module/components/Reels/ReelsSeries/MediaControls/MediaControlsProvider.js +65 -2
- package/lib/module/components/Reels/ReelsSeries/MediaControls/MediaControlsProvider.js.map +1 -1
- package/lib/module/components/Reels/ReelsSeries/MediaControls/RightControls.js +2 -1
- package/lib/module/components/Reels/ReelsSeries/MediaControls/RightControls.js.map +1 -1
- package/lib/module/components/Reels/ReelsSeries/Model/SettingModal.js +4 -2
- package/lib/module/components/Reels/ReelsSeries/Model/SettingModal.js.map +1 -1
- package/lib/module/components/Reels/ReelsSeries/ReelsSeries.js +80 -46
- package/lib/module/components/Reels/ReelsSeries/ReelsSeries.js.map +1 -1
- package/lib/module/components/Reels/ReelsSeries/ReelsSeriesItem.js +78 -29
- package/lib/module/components/Reels/ReelsSeries/ReelsSeriesItem.js.map +1 -1
- package/lib/module/components/Reels/ReelsSeries/components/VideoControls/QualityControl.js +21 -34
- package/lib/module/components/Reels/ReelsSeries/components/VideoControls/QualityControl.js.map +1 -1
- package/lib/module/components/Reels/ReelsSeries/useReelsWatchProgress.js +58 -0
- package/lib/module/components/Reels/ReelsSeries/useReelsWatchProgress.js.map +1 -0
- package/lib/module/components/Reels/ReelsSeries/utils/quality.js +44 -0
- package/lib/module/components/Reels/ReelsSeries/utils/quality.js.map +1 -0
- package/lib/module/components/Reels/index.js +1 -0
- package/lib/module/components/Reels/index.js.map +1 -1
- package/lib/module/components/Search/One.js +7 -4
- package/lib/module/components/Search/One.js.map +1 -1
- package/lib/module/components/Search/components/SearchCard.js +59 -7
- package/lib/module/components/Search/components/SearchCard.js.map +1 -1
- package/lib/module/components/User/PurchaseHistory/PurchaseHistory.js +2 -1
- package/lib/module/components/User/PurchaseHistory/PurchaseHistory.js.map +1 -1
- package/lib/module/components/User/WatchHistory/WatchHistory.js +1 -0
- package/lib/module/components/User/WatchHistory/WatchHistory.js.map +1 -1
- package/lib/module/components/User/WatchLater/WatchLater.js +1 -0
- package/lib/module/components/User/WatchLater/WatchLater.js.map +1 -1
- package/lib/module/components/common/AppStatusBar.js +2 -1
- package/lib/module/components/common/AppStatusBar.js.map +1 -1
- package/lib/module/components/index.js +1 -0
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/constants/dummySections.js +47 -5
- package/lib/module/constants/dummySections.js.map +1 -1
- package/lib/module/hooks/Images/index.js +5 -0
- package/lib/module/hooks/Images/index.js.map +1 -0
- package/lib/module/hooks/Images/useImageLoader.js +168 -0
- package/lib/module/hooks/Images/useImageLoader.js.map +1 -0
- package/lib/module/hooks/Images/useImageValidation.js +36 -0
- package/lib/module/hooks/Images/useImageValidation.js.map +1 -0
- package/lib/module/hooks/index.js +3 -0
- package/lib/module/hooks/index.js.map +1 -1
- package/lib/module/hooks/useAdTracking.js +270 -0
- package/lib/module/hooks/useAdTracking.js.map +1 -0
- package/lib/module/hooks/useCards.js +164 -0
- package/lib/module/hooks/useCards.js.map +1 -0
- package/lib/module/hooks/usePaginatedSection.js +11 -6
- package/lib/module/hooks/usePaginatedSection.js.map +1 -1
- package/lib/module/hooks/useSplashCache.js +78 -60
- package/lib/module/hooks/useSplashCache.js.map +1 -1
- package/lib/module/theme/ThemeProvider.js +14 -2
- package/lib/module/theme/ThemeProvider.js.map +1 -1
- package/lib/module/theme/hook/index.js +0 -1
- package/lib/module/theme/hook/index.js.map +1 -1
- package/lib/module/theme/hook/useInternalTheme.js +21 -7
- package/lib/module/theme/hook/useInternalTheme.js.map +1 -1
- package/lib/module/theme/themes.js +2 -0
- package/lib/module/theme/themes.js.map +1 -1
- package/lib/module/theme/utils/validateColor.js +84 -0
- package/lib/module/theme/utils/validateColor.js.map +1 -0
- package/lib/module/utils/colorUtils.js +68 -0
- package/lib/module/utils/colorUtils.js.map +1 -0
- package/lib/typescript/src/components/Auth/{ForgotPassword → One/ForgotPassword}/ForgotPassword.d.ts +1 -1
- package/lib/typescript/src/components/Auth/One/ForgotPassword/ForgotPassword.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/{Login → One/Login}/LoginWithEmail.d.ts +1 -1
- package/lib/typescript/src/components/Auth/One/Login/LoginWithEmail.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/{Login → One/Login}/LoginWithPhone.d.ts +1 -1
- package/lib/typescript/src/components/Auth/One/Login/LoginWithPhone.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/{OTP → One/OTP}/OTP.d.ts +1 -1
- package/lib/typescript/src/components/Auth/One/OTP/OTP.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/{QrLogin → One/QrLogin}/QrLogin.d.ts +3 -1
- package/lib/typescript/src/components/Auth/One/QrLogin/QrLogin.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/{QrLogin → One/QrLogin}/components/QrViewArea.d.ts +1 -1
- package/lib/typescript/src/components/Auth/One/QrLogin/components/QrViewArea.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/{SignUp → One/SignUp}/SignUp.d.ts +1 -1
- package/lib/typescript/src/components/Auth/One/SignUp/SignUp.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/{SplashScreen → One/SplashScreen}/SplashScreen.d.ts +1 -1
- package/lib/typescript/src/components/Auth/One/SplashScreen/SplashScreen.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/One/SplashScreen/components/SplashImage/SplashImage.d.ts +14 -0
- package/lib/typescript/src/components/Auth/One/SplashScreen/components/SplashImage/SplashImage.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/One/SplashScreen/components/SplashLottie/SplashLottie.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/One/SplashScreen/components/SplashVideo/SplashVideo.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/One/index.d.ts +234 -0
- package/lib/typescript/src/components/Auth/One/index.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/Two/AuthHeader/AuthHeader.d.ts +16 -0
- package/lib/typescript/src/components/Auth/Two/AuthHeader/AuthHeader.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/Two/ForgotPassword/ForgotPassword.d.ts +53 -0
- package/lib/typescript/src/components/Auth/Two/ForgotPassword/ForgotPassword.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/Two/Login/AuthLoginShell.d.ts +17 -0
- package/lib/typescript/src/components/Auth/Two/Login/AuthLoginShell.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/Two/Login/LoginWithEmail.d.ts +52 -0
- package/lib/typescript/src/components/Auth/Two/Login/LoginWithEmail.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/Two/Login/LoginWithPhone.d.ts +37 -0
- package/lib/typescript/src/components/Auth/Two/Login/LoginWithPhone.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/Two/OTP/OTP.d.ts +63 -0
- package/lib/typescript/src/components/Auth/Two/OTP/OTP.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/Two/QrLogin/QrLogin.d.ts +19 -0
- package/lib/typescript/src/components/Auth/Two/QrLogin/QrLogin.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/Two/QrLogin/components/QrViewArea.d.ts +14 -0
- package/lib/typescript/src/components/Auth/Two/QrLogin/components/QrViewArea.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/Two/SignUp/SignUp.d.ts +67 -0
- package/lib/typescript/src/components/Auth/Two/SignUp/SignUp.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/Two/SplashScreen/SplashScreen.d.ts +35 -0
- package/lib/typescript/src/components/Auth/Two/SplashScreen/SplashScreen.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/Two/SplashScreen/components/SplashImage/SplashImage.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/Two/SplashScreen/components/SplashLottie/SplashLottie.d.ts +17 -0
- package/lib/typescript/src/components/Auth/Two/SplashScreen/components/SplashLottie/SplashLottie.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/Two/SplashScreen/components/SplashVideo/SplashVideo.d.ts +20 -0
- package/lib/typescript/src/components/Auth/Two/SplashScreen/components/SplashVideo/SplashVideo.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/Two/index.d.ts +220 -0
- package/lib/typescript/src/components/Auth/Two/index.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/index.d.ts +447 -232
- package/lib/typescript/src/components/Auth/index.d.ts.map +1 -1
- package/lib/typescript/src/components/BackgroundLayout/BackgroundLayout.d.ts.map +1 -1
- package/lib/typescript/src/components/BackgroundLayout/BackgroundLayoutOne.d.ts +7 -0
- package/lib/typescript/src/components/BackgroundLayout/BackgroundLayoutOne.d.ts.map +1 -0
- package/lib/typescript/src/components/BottomSheet/BottomSheet.d.ts.map +1 -1
- package/lib/typescript/src/components/BottomSheet/BottomSheetOne.d.ts +19 -0
- package/lib/typescript/src/components/BottomSheet/BottomSheetOne.d.ts.map +1 -0
- package/lib/typescript/src/components/BottomSheet/index.d.ts +2 -0
- package/lib/typescript/src/components/BottomSheet/index.d.ts.map +1 -1
- package/lib/typescript/src/components/Button/PrimaryBtn.d.ts +1 -0
- package/lib/typescript/src/components/Button/PrimaryBtn.d.ts.map +1 -1
- package/lib/typescript/src/components/Button/index.d.ts +1 -0
- package/lib/typescript/src/components/Button/index.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Category/Category.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Category/CategroyTwo.d.ts +26 -0
- package/lib/typescript/src/components/Content/Card/Category/CategroyTwo.d.ts.map +1 -0
- package/lib/typescript/src/components/Content/Card/NowWatching/NowWatching.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Sliders/Styles/One.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Sliders/Styles/Three.d.ts +19 -0
- package/lib/typescript/src/components/Content/Card/Sliders/Styles/Three.d.ts.map +1 -0
- package/lib/typescript/src/components/Content/Card/Sliders/Styles/Two.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Sliders/index.d.ts +11 -0
- package/lib/typescript/src/components/Content/Card/Sliders/index.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Styles/Five.d.ts +13 -1
- package/lib/typescript/src/components/Content/Card/Styles/Five.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Styles/Four.d.ts +13 -1
- package/lib/typescript/src/components/Content/Card/Styles/Four.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Styles/One.d.ts +15 -3
- package/lib/typescript/src/components/Content/Card/Styles/One.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Styles/RotateInOut.d.ts +13 -1
- package/lib/typescript/src/components/Content/Card/Styles/RotateInOut.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Styles/Six.d.ts +1 -0
- package/lib/typescript/src/components/Content/Card/Styles/Six.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Styles/Three.d.ts +13 -5
- package/lib/typescript/src/components/Content/Card/Styles/Three.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Styles/TopTen.d.ts +1 -0
- package/lib/typescript/src/components/Content/Card/Styles/TopTen.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Styles/Two.d.ts +13 -1
- package/lib/typescript/src/components/Content/Card/Styles/Two.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/components/AdsPoster.d.ts +26 -0
- package/lib/typescript/src/components/Content/Card/components/AdsPoster.d.ts.map +1 -0
- package/lib/typescript/src/components/Content/Card/components/CardPoster.d.ts +4 -1
- package/lib/typescript/src/components/Content/Card/components/CardPoster.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/components/NavigateToMore.d.ts +3 -0
- package/lib/typescript/src/components/Content/Card/components/NavigateToMore.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/components/index.d.ts +2 -0
- package/lib/typescript/src/components/Content/Card/components/index.d.ts.map +1 -0
- package/lib/typescript/src/components/Content/Card/index.d.ts +76 -6
- package/lib/typescript/src/components/Content/Card/index.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Content.d.ts +2 -51
- package/lib/typescript/src/components/Content/Content.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Sections.d.ts +2 -39
- package/lib/typescript/src/components/Content/Sections.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/types.d.ts +149 -0
- package/lib/typescript/src/components/Content/types.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/MoreContentList.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/One/ContentViewOne.d.ts +15 -0
- package/lib/typescript/src/components/ContentView/One/ContentViewOne.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/{components → One/components}/AboutSection.d.ts +1 -1
- package/lib/typescript/src/components/ContentView/One/components/AboutSection.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/{components → One/components}/CastCard.d.ts +1 -1
- package/lib/typescript/src/components/ContentView/One/components/CastCard.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/{components → One/components}/EpisodeCard.d.ts +1 -1
- package/lib/typescript/src/components/ContentView/One/components/EpisodeCard.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/{components → One/components}/GenreTags.d.ts +1 -1
- package/lib/typescript/src/components/ContentView/One/components/GenreTags.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/{components → One/components}/HeroBanner.d.ts +1 -1
- package/lib/typescript/src/components/ContentView/One/components/HeroBanner.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/{components → One/components}/MiniInfo.d.ts +1 -1
- package/lib/typescript/src/components/ContentView/One/components/MiniInfo.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/One/components/PlayButton.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/{components → One/components}/Title.d.ts +1 -1
- package/lib/typescript/src/components/ContentView/One/components/Title.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/One/components/TrailerButton.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/Two/ContentViewTwo.d.ts +18 -0
- package/lib/typescript/src/components/ContentView/Two/ContentViewTwo.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/Two/components/AboutSection.d.ts +27 -0
- package/lib/typescript/src/components/ContentView/Two/components/AboutSection.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/Two/components/Details.d.ts +15 -0
- package/lib/typescript/src/components/ContentView/Two/components/Details.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/Two/components/EpisodeCard.d.ts +23 -0
- package/lib/typescript/src/components/ContentView/Two/components/EpisodeCard.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/Two/components/GenreTags.d.ts +22 -0
- package/lib/typescript/src/components/ContentView/Two/components/GenreTags.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/Two/components/HeroBanner.d.ts +8 -0
- package/lib/typescript/src/components/ContentView/Two/components/HeroBanner.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/Two/components/LikeShareActions.d.ts +25 -0
- package/lib/typescript/src/components/ContentView/Two/components/LikeShareActions.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/Two/components/MoreLikeThisContentList .d.ts +26 -0
- package/lib/typescript/src/components/ContentView/Two/components/MoreLikeThisContentList .d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/Two/components/PlayOrTrailer.d.ts +21 -0
- package/lib/typescript/src/components/ContentView/Two/components/PlayOrTrailer.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/Two/components/SectionTabs.d.ts +28 -0
- package/lib/typescript/src/components/ContentView/Two/components/SectionTabs.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/Two/components/Title.d.ts +34 -0
- package/lib/typescript/src/components/ContentView/Two/components/Title.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/Two/components/index.d.ts +15 -0
- package/lib/typescript/src/components/ContentView/Two/components/index.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/index.d.ts +6 -1
- package/lib/typescript/src/components/ContentView/index.d.ts.map +1 -1
- package/lib/typescript/src/components/Headers/Four.d.ts +18 -0
- package/lib/typescript/src/components/Headers/Four.d.ts.map +1 -0
- package/lib/typescript/src/components/Headers/Three.d.ts +9 -1
- package/lib/typescript/src/components/Headers/Three.d.ts.map +1 -1
- package/lib/typescript/src/components/Headers/index.d.ts +1 -0
- package/lib/typescript/src/components/Headers/index.d.ts.map +1 -1
- package/lib/typescript/src/components/Input/Input.d.ts +2 -0
- package/lib/typescript/src/components/Input/Input.d.ts.map +1 -1
- package/lib/typescript/src/components/Input/InputThree.d.ts +22 -0
- package/lib/typescript/src/components/Input/InputThree.d.ts.map +1 -0
- package/lib/typescript/src/components/Input/PhoneNumberInput.d.ts.map +1 -1
- package/lib/typescript/src/components/Input/PhoneNumberInputTwo.d.ts +26 -0
- package/lib/typescript/src/components/Input/PhoneNumberInputTwo.d.ts.map +1 -0
- package/lib/typescript/src/components/Loader/Loader.d.ts +2 -0
- package/lib/typescript/src/components/Loader/Loader.d.ts.map +1 -1
- package/lib/typescript/src/components/Logo/Logo.d.ts +1 -1
- package/lib/typescript/src/components/Logo/Logo.d.ts.map +1 -1
- package/lib/typescript/src/components/NewRelease/NewReleaseSheet.d.ts +10 -0
- package/lib/typescript/src/components/NewRelease/NewReleaseSheet.d.ts.map +1 -0
- package/lib/typescript/src/components/NewRelease/index.d.ts +2 -0
- package/lib/typescript/src/components/NewRelease/index.d.ts.map +1 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/MediaControls/BottomControls.d.ts +2 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/MediaControls/BottomControls.d.ts.map +1 -1
- package/lib/typescript/src/components/Reels/ReelsSeries/MediaControls/MediaControlsProvider.d.ts +1 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/MediaControls/MediaControlsProvider.d.ts.map +1 -1
- package/lib/typescript/src/components/Reels/ReelsSeries/MediaControls/RightControls.d.ts.map +1 -1
- package/lib/typescript/src/components/Reels/ReelsSeries/Model/SettingModal.d.ts +2 -1
- package/lib/typescript/src/components/Reels/ReelsSeries/Model/SettingModal.d.ts.map +1 -1
- package/lib/typescript/src/components/Reels/ReelsSeries/ReelsSeries.d.ts +9 -2
- package/lib/typescript/src/components/Reels/ReelsSeries/ReelsSeries.d.ts.map +1 -1
- package/lib/typescript/src/components/Reels/ReelsSeries/ReelsSeriesItem.d.ts +11 -1
- package/lib/typescript/src/components/Reels/ReelsSeries/ReelsSeriesItem.d.ts.map +1 -1
- package/lib/typescript/src/components/Reels/ReelsSeries/components/VideoControls/QualityControl.d.ts +11 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/components/VideoControls/QualityControl.d.ts.map +1 -1
- package/lib/typescript/src/components/Reels/ReelsSeries/types.d.ts +15 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/types.d.ts.map +1 -1
- package/lib/typescript/src/components/Reels/ReelsSeries/useReelsWatchProgress.d.ts +34 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/useReelsWatchProgress.d.ts.map +1 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/utils/quality.d.ts +10 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/utils/quality.d.ts.map +1 -0
- package/lib/typescript/src/components/Reels/index.d.ts +1 -0
- package/lib/typescript/src/components/Reels/index.d.ts.map +1 -1
- package/lib/typescript/src/components/Search/One.d.ts.map +1 -1
- package/lib/typescript/src/components/Search/components/SearchCard.d.ts +1 -0
- package/lib/typescript/src/components/Search/components/SearchCard.d.ts.map +1 -1
- package/lib/typescript/src/components/User/PurchaseHistory/PurchaseHistory.d.ts.map +1 -1
- package/lib/typescript/src/components/User/WatchHistory/WatchHistory.d.ts.map +1 -1
- package/lib/typescript/src/components/User/WatchLater/WatchLater.d.ts.map +1 -1
- package/lib/typescript/src/components/common/AppStatusBar.d.ts +1 -0
- package/lib/typescript/src/components/common/AppStatusBar.d.ts.map +1 -1
- package/lib/typescript/src/components/index.d.ts +1 -0
- package/lib/typescript/src/components/index.d.ts.map +1 -1
- package/lib/typescript/src/constants/dummySections.d.ts +8 -1
- package/lib/typescript/src/constants/dummySections.d.ts.map +1 -1
- package/lib/typescript/src/hooks/Images/index.d.ts +3 -0
- package/lib/typescript/src/hooks/Images/index.d.ts.map +1 -0
- package/lib/typescript/src/hooks/Images/useImageLoader.d.ts +36 -0
- package/lib/typescript/src/hooks/Images/useImageLoader.d.ts.map +1 -0
- package/lib/typescript/src/hooks/Images/useImageValidation.d.ts +17 -0
- package/lib/typescript/src/hooks/Images/useImageValidation.d.ts.map +1 -0
- package/lib/typescript/src/hooks/index.d.ts +3 -0
- package/lib/typescript/src/hooks/index.d.ts.map +1 -1
- package/lib/typescript/src/hooks/useAdTracking.d.ts +39 -0
- package/lib/typescript/src/hooks/useAdTracking.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useCards.d.ts +36 -0
- package/lib/typescript/src/hooks/useCards.d.ts.map +1 -0
- package/lib/typescript/src/hooks/usePaginatedSection.d.ts +12 -2
- package/lib/typescript/src/hooks/usePaginatedSection.d.ts.map +1 -1
- package/lib/typescript/src/hooks/useSplashCache.d.ts.map +1 -1
- package/lib/typescript/src/theme/ThemeProvider.d.ts +2 -0
- package/lib/typescript/src/theme/ThemeProvider.d.ts.map +1 -1
- package/lib/typescript/src/theme/hook/index.d.ts +0 -1
- package/lib/typescript/src/theme/hook/index.d.ts.map +1 -1
- package/lib/typescript/src/theme/hook/useInternalTheme.d.ts.map +1 -1
- package/lib/typescript/src/theme/themes.d.ts +1 -0
- package/lib/typescript/src/theme/themes.d.ts.map +1 -1
- package/lib/typescript/src/theme/utils/validateColor.d.ts +21 -0
- package/lib/typescript/src/theme/utils/validateColor.d.ts.map +1 -0
- package/lib/typescript/src/types/content/content-view.types.d.ts +40 -1
- package/lib/typescript/src/types/content/content-view.types.d.ts.map +1 -1
- package/lib/typescript/src/types/sections/index.d.ts +7 -4
- package/lib/typescript/src/types/sections/index.d.ts.map +1 -1
- package/lib/typescript/src/utils/colorUtils.d.ts +19 -0
- package/lib/typescript/src/utils/colorUtils.d.ts.map +1 -0
- package/package.json +13 -4
- package/src/components/Auth/AuthProvider/AuthProvider.tsx +6 -2
- package/src/components/Auth/One/ForgotPassword/ForgotPassword.tsx +324 -0
- package/src/components/Auth/One/Login/LoginWithEmail.tsx +455 -0
- package/src/components/Auth/{Login → One/Login}/LoginWithPhone.tsx +12 -12
- package/src/components/Auth/One/OTP/OTP.tsx +465 -0
- package/src/components/Auth/One/QrLogin/QrLogin.tsx +602 -0
- package/src/components/Auth/One/QrLogin/components/QrViewArea.tsx +423 -0
- package/src/components/Auth/One/SignUp/SignUp.tsx +479 -0
- package/src/components/Auth/{SplashScreen → One/SplashScreen}/SplashScreen.tsx +10 -6
- package/src/components/Auth/One/SplashScreen/components/SplashImage/SplashImage.tsx +103 -0
- package/src/components/Auth/{SplashScreen → One/SplashScreen}/components/SplashLottie/SplashLottie.tsx +1 -1
- package/src/components/Auth/{SplashScreen → One/SplashScreen}/components/SplashVideo/SplashVideo.tsx +35 -25
- package/src/components/Auth/One/index.ts +24 -0
- package/src/components/Auth/Two/AuthHeader/AuthHeader.tsx +108 -0
- package/src/components/Auth/{ForgotPassword → Two/ForgotPassword}/ForgotPassword.tsx +62 -35
- package/src/components/Auth/Two/Login/AuthLoginShell.tsx +173 -0
- package/src/components/Auth/Two/Login/LoginWithEmail.tsx +279 -0
- package/src/components/Auth/Two/Login/LoginWithPhone.tsx +188 -0
- package/src/components/Auth/{OTP → Two/OTP}/OTP.tsx +92 -81
- package/src/components/Auth/Two/QrLogin/QrLogin.tsx +602 -0
- package/src/components/Auth/Two/QrLogin/components/QrViewArea.tsx +423 -0
- package/src/components/Auth/Two/SignUp/SignUp.tsx +472 -0
- package/src/components/Auth/Two/SplashScreen/SplashScreen.tsx +248 -0
- package/src/components/Auth/{SplashScreen → Two/SplashScreen}/components/SplashImage/SplashImage.tsx +1 -1
- package/src/components/Auth/Two/SplashScreen/components/SplashLottie/SplashLottie.tsx +77 -0
- package/src/components/Auth/Two/SplashScreen/components/SplashVideo/SplashVideo.tsx +178 -0
- package/src/components/Auth/Two/index.ts +28 -0
- package/src/components/Auth/index.ts +7 -22
- package/src/components/BackgroundLayout/BackgroundLayout.tsx +2 -0
- package/src/components/BackgroundLayout/BackgroundLayoutOne.tsx +56 -0
- package/src/components/BottomSheet/BottomSheet.tsx +6 -1
- package/src/components/BottomSheet/BottomSheetOne.tsx +220 -0
- package/src/components/BottomSheet/index.ts +2 -0
- package/src/components/Button/PrimaryBtn.tsx +10 -2
- package/src/components/Content/Card/Category/Category.tsx +104 -10
- package/src/components/Content/Card/Category/CategroyTwo.tsx +429 -0
- package/src/components/Content/Card/NowWatching/NowWatching.tsx +281 -136
- package/src/components/Content/Card/Sliders/Styles/One.tsx +248 -152
- package/src/components/Content/Card/Sliders/Styles/Three.tsx +935 -0
- package/src/components/Content/Card/Sliders/Styles/Two.tsx +171 -102
- package/src/components/Content/Card/Sliders/index.ts +2 -0
- package/src/components/Content/Card/Styles/Five.tsx +162 -62
- package/src/components/Content/Card/Styles/Four.tsx +165 -85
- package/src/components/Content/Card/Styles/One.tsx +162 -71
- package/src/components/Content/Card/Styles/RotateInOut.tsx +158 -60
- package/src/components/Content/Card/Styles/Six.tsx +242 -142
- package/src/components/Content/Card/Styles/Three.tsx +160 -162
- package/src/components/Content/Card/Styles/TopTen.tsx +231 -191
- package/src/components/Content/Card/Styles/Two.tsx +183 -79
- package/src/components/Content/Card/components/AdsPoster.tsx +202 -0
- package/src/components/Content/Card/components/CardPoster.tsx +250 -151
- package/src/components/Content/Card/components/NavigateToMore.tsx +29 -1
- package/src/components/Content/Card/components/index.ts +1 -0
- package/src/components/Content/Content.tsx +103 -119
- package/src/components/Content/Sections.tsx +51 -45
- package/src/components/Content/types.ts +176 -0
- package/src/components/ContentView/MoreContentList.tsx +1 -0
- package/src/components/ContentView/{ContentView.tsx → One/ContentViewOne.tsx} +8 -7
- package/src/components/ContentView/{components → One/components}/AboutSection.tsx +3 -3
- package/src/components/ContentView/{components → One/components}/CastCard.tsx +3 -3
- package/src/components/ContentView/{components → One/components}/EpisodeCard.tsx +7 -8
- package/src/components/ContentView/{components → One/components}/GenreTags.tsx +3 -3
- package/src/components/ContentView/{components → One/components}/HeroBanner.tsx +44 -59
- package/src/components/ContentView/{components → One/components}/MiniInfo.tsx +69 -5
- package/src/components/ContentView/{components → One/components}/PlayButton.tsx +1 -1
- package/src/components/ContentView/{components → One/components}/Title.tsx +2 -2
- package/src/components/ContentView/{components → One/components}/TrailerButton.tsx +2 -2
- package/src/components/ContentView/Two/ContentViewTwo.tsx +343 -0
- package/src/components/ContentView/Two/components/AboutSection.tsx +216 -0
- package/src/components/ContentView/Two/components/Details.tsx +193 -0
- package/src/components/ContentView/Two/components/EpisodeCard.tsx +602 -0
- package/src/components/ContentView/Two/components/GenreTags.tsx +123 -0
- package/src/components/ContentView/Two/components/HeroBanner.tsx +402 -0
- package/src/components/ContentView/Two/components/LikeShareActions.tsx +125 -0
- package/src/components/ContentView/Two/components/MoreLikeThisContentList .tsx +305 -0
- package/src/components/ContentView/Two/components/PlayOrTrailer.tsx +133 -0
- package/src/components/ContentView/Two/components/SectionTabs.tsx +177 -0
- package/src/components/ContentView/Two/components/Title.tsx +226 -0
- package/src/components/ContentView/Two/components/index.ts +15 -0
- package/src/components/ContentView/index.ts +7 -1
- package/src/components/Headers/Four.tsx +83 -0
- package/src/components/Headers/Three.tsx +88 -25
- package/src/components/Headers/index.ts +2 -0
- package/src/components/Input/Input.ts +4 -0
- package/src/components/Input/InputThree.tsx +212 -0
- package/src/components/Input/PhoneNumberInput.tsx +4 -2
- package/src/components/Input/PhoneNumberInputTwo.tsx +418 -0
- package/src/components/Loader/Loader.tsx +25 -9
- package/src/components/Logo/Logo.tsx +53 -34
- package/src/components/NewRelease/NewReleaseSheet.tsx +250 -0
- package/src/components/NewRelease/index.ts +1 -0
- package/src/components/Reels/ReelsSeries/MediaControls/BottomControls.tsx +92 -27
- package/src/components/Reels/ReelsSeries/MediaControls/MediaControlsProvider.tsx +81 -1
- package/src/components/Reels/ReelsSeries/MediaControls/RightControls.tsx +4 -1
- package/src/components/Reels/ReelsSeries/Model/SettingModal.tsx +6 -3
- package/src/components/Reels/ReelsSeries/ReelsSeries.tsx +88 -55
- package/src/components/Reels/ReelsSeries/ReelsSeriesItem.tsx +92 -30
- package/src/components/Reels/ReelsSeries/components/VideoControls/QualityControl.tsx +35 -38
- package/src/components/Reels/ReelsSeries/types.ts +16 -0
- package/src/components/Reels/ReelsSeries/useReelsWatchProgress.ts +85 -0
- package/src/components/Reels/ReelsSeries/utils/quality.ts +48 -0
- package/src/components/Reels/index.ts +1 -0
- package/src/components/Search/One.tsx +8 -5
- package/src/components/Search/components/SearchCard.tsx +68 -11
- package/src/components/User/PurchaseHistory/PurchaseHistory.tsx +1 -0
- package/src/components/User/WatchHistory/WatchHistory.tsx +1 -0
- package/src/components/User/WatchLater/WatchLater.tsx +1 -0
- package/src/components/common/AppStatusBar.tsx +7 -1
- package/src/components/index.ts +1 -0
- package/src/constants/dummySections.ts +54 -3
- package/src/hooks/Images/index.ts +2 -0
- package/src/hooks/Images/useImageLoader.ts +206 -0
- package/src/hooks/Images/useImageValidation.ts +36 -0
- package/src/hooks/index.ts +3 -0
- package/src/hooks/useAdTracking.ts +349 -0
- package/src/hooks/useCards.ts +228 -0
- package/src/hooks/usePaginatedSection.ts +26 -7
- package/src/hooks/useSplashCache.ts +88 -69
- package/src/theme/ThemeProvider.tsx +15 -2
- package/src/theme/hook/index.ts +0 -1
- package/src/theme/hook/useInternalTheme.ts +22 -13
- package/src/theme/themes.ts +3 -0
- package/src/theme/utils/validateColor.ts +127 -0
- package/src/types/content/content-view.types.ts +43 -1
- package/src/types/sections/index.ts +7 -4
- package/src/utils/colorUtils.ts +70 -0
- package/lib/module/components/Auth/ForgotPassword/ForgotPassword.js.map +0 -1
- package/lib/module/components/Auth/Login/LoginWithEmail.js +0 -314
- package/lib/module/components/Auth/Login/LoginWithEmail.js.map +0 -1
- package/lib/module/components/Auth/Login/LoginWithPhone.js.map +0 -1
- package/lib/module/components/Auth/OTP/OTP.js.map +0 -1
- package/lib/module/components/Auth/QrLogin/QrLogin.js +0 -313
- package/lib/module/components/Auth/QrLogin/QrLogin.js.map +0 -1
- package/lib/module/components/Auth/QrLogin/components/QrViewArea.js +0 -243
- package/lib/module/components/Auth/QrLogin/components/QrViewArea.js.map +0 -1
- package/lib/module/components/Auth/SignUp/SignUp.js +0 -352
- package/lib/module/components/Auth/SignUp/SignUp.js.map +0 -1
- package/lib/module/components/Auth/SplashScreen/SplashScreen.js.map +0 -1
- package/lib/module/components/Auth/SplashScreen/components/SplashImage/SplashImage.js.map +0 -1
- package/lib/module/components/Auth/SplashScreen/components/SplashLottie/SplashLottie.js.map +0 -1
- package/lib/module/components/Auth/SplashScreen/components/SplashVideo/SplashVideo.js.map +0 -1
- package/lib/module/components/ContentView/ContentView.js.map +0 -1
- package/lib/module/components/ContentView/components/AboutSection.js.map +0 -1
- package/lib/module/components/ContentView/components/CastCard.js.map +0 -1
- package/lib/module/components/ContentView/components/EpisodeCard.js.map +0 -1
- package/lib/module/components/ContentView/components/GenreTags.js.map +0 -1
- package/lib/module/components/ContentView/components/HeroBanner.js.map +0 -1
- package/lib/module/components/ContentView/components/MiniInfo.js.map +0 -1
- package/lib/module/components/ContentView/components/PlayButton.js.map +0 -1
- package/lib/module/components/ContentView/components/Title.js.map +0 -1
- package/lib/module/components/ContentView/components/TrailerButton.js.map +0 -1
- package/lib/module/theme/hook/useThemeStatusBar.js +0 -33
- package/lib/module/theme/hook/useThemeStatusBar.js.map +0 -1
- package/lib/typescript/src/components/Auth/ForgotPassword/ForgotPassword.d.ts.map +0 -1
- package/lib/typescript/src/components/Auth/Login/LoginWithEmail.d.ts.map +0 -1
- package/lib/typescript/src/components/Auth/Login/LoginWithPhone.d.ts.map +0 -1
- package/lib/typescript/src/components/Auth/OTP/OTP.d.ts.map +0 -1
- package/lib/typescript/src/components/Auth/QrLogin/QrLogin.d.ts.map +0 -1
- package/lib/typescript/src/components/Auth/QrLogin/components/QrViewArea.d.ts.map +0 -1
- package/lib/typescript/src/components/Auth/SignUp/SignUp.d.ts.map +0 -1
- package/lib/typescript/src/components/Auth/SplashScreen/SplashScreen.d.ts.map +0 -1
- package/lib/typescript/src/components/Auth/SplashScreen/components/SplashImage/SplashImage.d.ts.map +0 -1
- package/lib/typescript/src/components/Auth/SplashScreen/components/SplashLottie/SplashLottie.d.ts.map +0 -1
- package/lib/typescript/src/components/Auth/SplashScreen/components/SplashVideo/SplashVideo.d.ts.map +0 -1
- package/lib/typescript/src/components/ContentView/ContentView.d.ts +0 -15
- package/lib/typescript/src/components/ContentView/ContentView.d.ts.map +0 -1
- package/lib/typescript/src/components/ContentView/components/AboutSection.d.ts.map +0 -1
- package/lib/typescript/src/components/ContentView/components/CastCard.d.ts.map +0 -1
- package/lib/typescript/src/components/ContentView/components/EpisodeCard.d.ts.map +0 -1
- package/lib/typescript/src/components/ContentView/components/GenreTags.d.ts.map +0 -1
- package/lib/typescript/src/components/ContentView/components/HeroBanner.d.ts.map +0 -1
- package/lib/typescript/src/components/ContentView/components/MiniInfo.d.ts.map +0 -1
- package/lib/typescript/src/components/ContentView/components/PlayButton.d.ts.map +0 -1
- package/lib/typescript/src/components/ContentView/components/Title.d.ts.map +0 -1
- package/lib/typescript/src/components/ContentView/components/TrailerButton.d.ts.map +0 -1
- package/lib/typescript/src/theme/hook/useThemeStatusBar.d.ts +0 -10
- package/lib/typescript/src/theme/hook/useThemeStatusBar.d.ts.map +0 -1
- package/src/components/Auth/Login/LoginWithEmail.tsx +0 -441
- package/src/components/Auth/QrLogin/QrLogin.tsx +0 -342
- package/src/components/Auth/QrLogin/components/QrViewArea.tsx +0 -329
- package/src/components/Auth/SignUp/SignUp.tsx +0 -462
- package/src/theme/hook/useThemeStatusBar.ts +0 -42
- /package/lib/typescript/src/components/Auth/{SplashScreen → One/SplashScreen}/components/SplashLottie/SplashLottie.d.ts +0 -0
- /package/lib/typescript/src/components/Auth/{SplashScreen → One/SplashScreen}/components/SplashVideo/SplashVideo.d.ts +0 -0
- /package/lib/typescript/src/components/Auth/{SplashScreen → Two/SplashScreen}/components/SplashImage/SplashImage.d.ts +0 -0
- /package/lib/typescript/src/components/ContentView/{components → One/components}/PlayButton.d.ts +0 -0
- /package/lib/typescript/src/components/ContentView/{components → One/components}/TrailerButton.d.ts +0 -0
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { useState, useEffect } from 'react';
|
|
4
|
+
import { View, StyleSheet } from 'react-native';
|
|
5
|
+
import { SafeAreaView } from 'react-native-safe-area-context';
|
|
6
|
+
import { scale } from 'react-native-size-matters';
|
|
7
|
+
import FastImage from 'react-native-fast-image';
|
|
8
|
+
import { RFValue } from 'react-native-responsive-fontsize';
|
|
9
|
+
import SkeletonPlaceholder from 'react-native-skeleton-placeholder';
|
|
10
|
+
import { Text } from "../Text/index.js";
|
|
11
|
+
import { useInternalTheme } from "../../theme/hook/index.js";
|
|
12
|
+
import { Button } from "../Button/index.js";
|
|
13
|
+
import { BottomSheetOne } from "../BottomSheet/index.js";
|
|
14
|
+
import { CirclePlay } from 'lucide-react-native';
|
|
15
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
16
|
+
const NewReleaseSheetSkeleton = ({
|
|
17
|
+
baseColor,
|
|
18
|
+
highlightColor
|
|
19
|
+
}) => /*#__PURE__*/_jsx(SkeletonPlaceholder, {
|
|
20
|
+
backgroundColor: baseColor,
|
|
21
|
+
highlightColor: highlightColor,
|
|
22
|
+
children: /*#__PURE__*/_jsxs(SkeletonPlaceholder.Item, {
|
|
23
|
+
alignItems: "center",
|
|
24
|
+
children: [/*#__PURE__*/_jsx(SkeletonPlaceholder.Item, {
|
|
25
|
+
...styles.skeletonHeader
|
|
26
|
+
}), /*#__PURE__*/_jsx(SkeletonPlaceholder.Item, {
|
|
27
|
+
...styles.skeletonPoster
|
|
28
|
+
}), /*#__PURE__*/_jsx(SkeletonPlaceholder.Item, {
|
|
29
|
+
...styles.skeletonTitle
|
|
30
|
+
}), /*#__PURE__*/_jsx(SkeletonPlaceholder.Item, {
|
|
31
|
+
...styles.skeletonDescription
|
|
32
|
+
}), /*#__PURE__*/_jsx(SkeletonPlaceholder.Item, {
|
|
33
|
+
...styles.skeletonButton
|
|
34
|
+
})]
|
|
35
|
+
})
|
|
36
|
+
});
|
|
37
|
+
const NewReleaseSheetContent = ({
|
|
38
|
+
data,
|
|
39
|
+
theme,
|
|
40
|
+
onPressWatchNow,
|
|
41
|
+
onClose
|
|
42
|
+
}) => {
|
|
43
|
+
const {
|
|
44
|
+
theme: appliedTheme
|
|
45
|
+
} = useInternalTheme(theme);
|
|
46
|
+
const handleWatchNow = () => {
|
|
47
|
+
onClose();
|
|
48
|
+
onPressWatchNow?.(data);
|
|
49
|
+
};
|
|
50
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
51
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
52
|
+
style: styles.header,
|
|
53
|
+
color: appliedTheme.colors.newRelease,
|
|
54
|
+
children: "New Release"
|
|
55
|
+
}), /*#__PURE__*/_jsx(FastImage, {
|
|
56
|
+
source: {
|
|
57
|
+
uri: data.poster
|
|
58
|
+
},
|
|
59
|
+
style: styles.poster,
|
|
60
|
+
resizeMode: FastImage.resizeMode.cover
|
|
61
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
62
|
+
style: styles.title,
|
|
63
|
+
color: appliedTheme.colors.white,
|
|
64
|
+
children: data.name
|
|
65
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
66
|
+
numberOfLines: 3,
|
|
67
|
+
style: styles.description,
|
|
68
|
+
color: appliedTheme.colors.white,
|
|
69
|
+
children: data.description
|
|
70
|
+
}), /*#__PURE__*/_jsx(Button.Primary, {
|
|
71
|
+
containerStyle: {
|
|
72
|
+
...styles.button,
|
|
73
|
+
backgroundColor: appliedTheme.colors.button,
|
|
74
|
+
alignSelf: 'center'
|
|
75
|
+
},
|
|
76
|
+
theme: theme,
|
|
77
|
+
title: "Watch Now",
|
|
78
|
+
titleStyle: {
|
|
79
|
+
...styles.buttonTitle,
|
|
80
|
+
color: appliedTheme.colors.buttonText
|
|
81
|
+
},
|
|
82
|
+
onPress: handleWatchNow,
|
|
83
|
+
leftIcon: /*#__PURE__*/_jsx(CirclePlay, {
|
|
84
|
+
size: 25,
|
|
85
|
+
color: appliedTheme.colors.buttonText
|
|
86
|
+
})
|
|
87
|
+
})]
|
|
88
|
+
});
|
|
89
|
+
};
|
|
90
|
+
export const NewReleaseSheet = ({
|
|
91
|
+
theme,
|
|
92
|
+
data,
|
|
93
|
+
onPressWatchNow
|
|
94
|
+
}) => {
|
|
95
|
+
const [isVisible, setIsVisible] = useState(false);
|
|
96
|
+
const [hasOpened, setHasOpened] = useState(false);
|
|
97
|
+
const {
|
|
98
|
+
theme: appliedTheme
|
|
99
|
+
} = useInternalTheme(theme);
|
|
100
|
+
useEffect(() => {
|
|
101
|
+
if (data && !hasOpened) {
|
|
102
|
+
const timer = setTimeout(() => {
|
|
103
|
+
setIsVisible(true);
|
|
104
|
+
setHasOpened(true);
|
|
105
|
+
}, 1500);
|
|
106
|
+
return () => clearTimeout(timer);
|
|
107
|
+
}
|
|
108
|
+
return undefined;
|
|
109
|
+
}, [data, hasOpened]);
|
|
110
|
+
const isLoading = !data;
|
|
111
|
+
const showSheet = isVisible && !!data;
|
|
112
|
+
const handleClose = () => {
|
|
113
|
+
setIsVisible(false);
|
|
114
|
+
setHasOpened(true);
|
|
115
|
+
};
|
|
116
|
+
return /*#__PURE__*/_jsx(BottomSheetOne, {
|
|
117
|
+
theme: appliedTheme,
|
|
118
|
+
visible: showSheet,
|
|
119
|
+
onClose: () => setIsVisible(false),
|
|
120
|
+
height: "70%",
|
|
121
|
+
showCloseButton: true,
|
|
122
|
+
scrollable: false,
|
|
123
|
+
backgroundImage: !isLoading ? data?.poster : undefined,
|
|
124
|
+
children: /*#__PURE__*/_jsx(SafeAreaView, {
|
|
125
|
+
style: styles.safeArea,
|
|
126
|
+
children: /*#__PURE__*/_jsx(View, {
|
|
127
|
+
style: styles.container,
|
|
128
|
+
children: isLoading ? /*#__PURE__*/_jsx(NewReleaseSheetSkeleton, {
|
|
129
|
+
baseColor: appliedTheme.colors.skeletonBaseColor,
|
|
130
|
+
highlightColor: appliedTheme.colors.skeletonHighlightColor
|
|
131
|
+
}) : data && /*#__PURE__*/_jsx(NewReleaseSheetContent, {
|
|
132
|
+
data: data,
|
|
133
|
+
theme: theme,
|
|
134
|
+
onPressWatchNow: onPressWatchNow,
|
|
135
|
+
onClose: handleClose
|
|
136
|
+
})
|
|
137
|
+
})
|
|
138
|
+
})
|
|
139
|
+
}, "new-release-sheet");
|
|
140
|
+
};
|
|
141
|
+
const styles = StyleSheet.create({
|
|
142
|
+
safeArea: {
|
|
143
|
+
flex: 1
|
|
144
|
+
},
|
|
145
|
+
container: {
|
|
146
|
+
flex: 1,
|
|
147
|
+
alignItems: 'center',
|
|
148
|
+
overflow: 'hidden',
|
|
149
|
+
paddingHorizontal: scale(8)
|
|
150
|
+
},
|
|
151
|
+
header: {
|
|
152
|
+
marginTop: scale(4),
|
|
153
|
+
paddingHorizontal: scale(8),
|
|
154
|
+
fontSize: RFValue(15),
|
|
155
|
+
textAlign: 'center'
|
|
156
|
+
},
|
|
157
|
+
poster: {
|
|
158
|
+
width: scale(170),
|
|
159
|
+
aspectRatio: 2 / 3,
|
|
160
|
+
borderRadius: scale(12),
|
|
161
|
+
marginTop: scale(10),
|
|
162
|
+
elevation: 12
|
|
163
|
+
},
|
|
164
|
+
title: {
|
|
165
|
+
marginTop: scale(12),
|
|
166
|
+
paddingHorizontal: scale(10),
|
|
167
|
+
fontSize: RFValue(17),
|
|
168
|
+
fontWeight: '700',
|
|
169
|
+
textAlign: 'center'
|
|
170
|
+
},
|
|
171
|
+
description: {
|
|
172
|
+
marginTop: scale(10),
|
|
173
|
+
paddingHorizontal: scale(14),
|
|
174
|
+
fontSize: RFValue(12),
|
|
175
|
+
textAlign: 'center',
|
|
176
|
+
opacity: 0.8,
|
|
177
|
+
lineHeight: RFValue(15)
|
|
178
|
+
},
|
|
179
|
+
button: {
|
|
180
|
+
marginTop: scale(20),
|
|
181
|
+
marginBottom: scale(14),
|
|
182
|
+
width: scale(170),
|
|
183
|
+
minWidth: scale(170),
|
|
184
|
+
maxWidth: '100%',
|
|
185
|
+
height: scale(41),
|
|
186
|
+
borderRadius: scale(27)
|
|
187
|
+
},
|
|
188
|
+
buttonTitle: {
|
|
189
|
+
fontSize: RFValue(14),
|
|
190
|
+
fontWeight: '700'
|
|
191
|
+
},
|
|
192
|
+
// Skeleton – matches content layout (poster 170 × 2/3, title/desc/button)
|
|
193
|
+
skeletonHeader: {
|
|
194
|
+
width: scale(100),
|
|
195
|
+
height: scale(16),
|
|
196
|
+
borderRadius: scale(4),
|
|
197
|
+
marginTop: scale(4)
|
|
198
|
+
},
|
|
199
|
+
skeletonPoster: {
|
|
200
|
+
width: scale(170),
|
|
201
|
+
height: scale(255),
|
|
202
|
+
borderRadius: scale(12),
|
|
203
|
+
marginTop: scale(10)
|
|
204
|
+
},
|
|
205
|
+
skeletonTitle: {
|
|
206
|
+
width: scale(140),
|
|
207
|
+
height: scale(20),
|
|
208
|
+
borderRadius: scale(4),
|
|
209
|
+
marginTop: scale(12)
|
|
210
|
+
},
|
|
211
|
+
skeletonDescription: {
|
|
212
|
+
width: scale(170),
|
|
213
|
+
height: scale(42),
|
|
214
|
+
borderRadius: scale(6),
|
|
215
|
+
marginTop: scale(10)
|
|
216
|
+
},
|
|
217
|
+
skeletonButton: {
|
|
218
|
+
width: scale(170),
|
|
219
|
+
height: scale(41),
|
|
220
|
+
borderRadius: scale(27),
|
|
221
|
+
marginTop: scale(20),
|
|
222
|
+
marginBottom: scale(14)
|
|
223
|
+
}
|
|
224
|
+
});
|
|
225
|
+
|
|
226
|
+
// rgb(215, 10, 132)
|
|
227
|
+
//# sourceMappingURL=NewReleaseSheet.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useState","useEffect","View","StyleSheet","SafeAreaView","scale","FastImage","RFValue","SkeletonPlaceholder","Text","useInternalTheme","Button","BottomSheetOne","CirclePlay","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","NewReleaseSheetSkeleton","baseColor","highlightColor","backgroundColor","children","Item","alignItems","styles","skeletonHeader","skeletonPoster","skeletonTitle","skeletonDescription","skeletonButton","NewReleaseSheetContent","data","theme","onPressWatchNow","onClose","appliedTheme","handleWatchNow","style","header","color","colors","newRelease","source","uri","poster","resizeMode","cover","title","white","name","numberOfLines","description","Primary","containerStyle","button","alignSelf","titleStyle","buttonTitle","buttonText","onPress","leftIcon","size","NewReleaseSheet","isVisible","setIsVisible","hasOpened","setHasOpened","timer","setTimeout","clearTimeout","undefined","isLoading","showSheet","handleClose","visible","height","showCloseButton","scrollable","backgroundImage","safeArea","container","skeletonBaseColor","skeletonHighlightColor","create","flex","overflow","paddingHorizontal","marginTop","fontSize","textAlign","width","aspectRatio","borderRadius","elevation","fontWeight","opacity","lineHeight","marginBottom","minWidth","maxWidth"],"sourceRoot":"../../../../src","sources":["components/NewRelease/NewReleaseSheet.tsx"],"mappings":";;AAAA,SAASA,QAAQ,EAAEC,SAAS,QAAQ,OAAO;AAC3C,SAASC,IAAI,EAAEC,UAAU,QAAQ,cAAc;AAC/C,SAASC,YAAY,QAAQ,gCAAgC;AAC7D,SAASC,KAAK,QAAQ,2BAA2B;AACjD,OAAOC,SAAS,MAAM,yBAAyB;AAC/C,SAASC,OAAO,QAAQ,kCAAkC;AAC1D,OAAOC,mBAAmB,MAAM,mCAAm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zE,KAAK,CAAC,GAAG,CAAC;IAClB0F,YAAY,EAAE1F,KAAK,CAAC,EAAE,CAAC;IACvBqF,SAAS,EAAErF,KAAK,CAAC,EAAE;EACrB,CAAC;EACDyB,aAAa,EAAE;IACb+D,KAAK,EAAExF,KAAK,CAAC,GAAG,CAAC;IACjByE,MAAM,EAAEzE,KAAK,CAAC,EAAE,CAAC;IACjB0F,YAAY,EAAE1F,KAAK,CAAC,CAAC,CAAC;IACtBqF,SAAS,EAAErF,KAAK,CAAC,EAAE;EACrB,CAAC;EACD0B,mBAAmB,EAAE;IACnB8D,KAAK,EAAExF,KAAK,CAAC,GAAG,CAAC;IACjByE,MAAM,EAAEzE,KAAK,CAAC,EAAE,CAAC;IACjB0F,YAAY,EAAE1F,KAAK,CAAC,CAAC,CAAC;IACtBqF,SAAS,EAAErF,KAAK,CAAC,EAAE;EACrB,CAAC;EACD2B,cAAc,EAAE;IACd6D,KAAK,EAAExF,KAAK,CAAC,GAAG,CAAC;IACjByE,MAAM,EAAEzE,KAAK,CAAC,EAAE,CAAC;IACjB0F,YAAY,EAAE1F,KAAK,CAAC,EAAE,CAAC;IACvBqF,SAAS,EAAErF,KAAK,CAAC,EAAE,CAAC;IACpB+F,YAAY,EAAE/F,KAAK,CAAC,EAAE;EACxB;AACF,CAAC,CAAC;;AAEF","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/NewRelease/index.ts"],"mappings":";;AAAA,cAAc,sBAAmB","ignoreList":[]}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import React from 'react';
|
|
3
|
+
import React, { useEffect, useRef } from 'react';
|
|
4
4
|
import { View, Text, TouchableOpacity, StyleSheet } from 'react-native';
|
|
5
5
|
import { ChevronRight, ListVideo } from 'lucide-react-native';
|
|
6
6
|
import { moderateScale, verticalScale } from 'react-native-size-matters';
|
|
7
7
|
import { RFValue } from 'react-native-responsive-fontsize';
|
|
8
|
+
import { Slider } from 'react-native-awesome-slider';
|
|
9
|
+
import { useSharedValue, withTiming } from 'react-native-reanimated';
|
|
8
10
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
11
|
const BottomControls = ({
|
|
10
12
|
series,
|
|
@@ -12,12 +14,43 @@ const BottomControls = ({
|
|
|
12
14
|
videoCurrentTime,
|
|
13
15
|
videoDuration,
|
|
14
16
|
onEpisodesPress,
|
|
15
|
-
|
|
17
|
+
isFullScreen,
|
|
18
|
+
theme,
|
|
19
|
+
onSeek
|
|
16
20
|
}) => {
|
|
17
|
-
const progressPercentage = videoDuration > 0 ? videoCurrentTime / videoDuration * 100 : 0;
|
|
18
21
|
const truncatedTitle = series.title.length <= 25 ? series.title : series.title.slice(0, 25) + '...';
|
|
22
|
+
const progress = useSharedValue(videoCurrentTime);
|
|
23
|
+
const minimumValue = useSharedValue(0);
|
|
24
|
+
const maximumValue = useSharedValue(videoDuration > 0 ? videoDuration : 1);
|
|
25
|
+
const isScrubbing = useSharedValue(false);
|
|
26
|
+
const thumbScale = useSharedValue(1);
|
|
27
|
+
const scrubTimeoutRef = useRef(null);
|
|
28
|
+
|
|
29
|
+
// Keep slider in sync with video time
|
|
30
|
+
useEffect(() => {
|
|
31
|
+
if (!isScrubbing.value) {
|
|
32
|
+
progress.value = videoCurrentTime;
|
|
33
|
+
}
|
|
34
|
+
}, [videoCurrentTime, progress, isScrubbing]);
|
|
35
|
+
|
|
36
|
+
// Update duration when it changes
|
|
37
|
+
useEffect(() => {
|
|
38
|
+
maximumValue.value = videoDuration > 0 ? videoDuration : 1;
|
|
39
|
+
}, [videoDuration, maximumValue]);
|
|
40
|
+
|
|
41
|
+
// Cleanup timeout on unmount
|
|
42
|
+
useEffect(() => {
|
|
43
|
+
return () => {
|
|
44
|
+
if (scrubTimeoutRef.current) {
|
|
45
|
+
clearTimeout(scrubTimeoutRef.current);
|
|
46
|
+
scrubTimeoutRef.current = null;
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
}, []);
|
|
19
50
|
return /*#__PURE__*/_jsxs(View, {
|
|
20
|
-
style: styles.container,
|
|
51
|
+
style: [styles.container, {
|
|
52
|
+
bottom: isFullScreen ? verticalScale(5) : verticalScale(0)
|
|
53
|
+
}],
|
|
21
54
|
children: [/*#__PURE__*/_jsxs(View, {
|
|
22
55
|
style: styles.seriesInfo,
|
|
23
56
|
children: [/*#__PURE__*/_jsx(Text, {
|
|
@@ -48,18 +81,53 @@ const BottomControls = ({
|
|
|
48
81
|
})]
|
|
49
82
|
}), /*#__PURE__*/_jsx(View, {
|
|
50
83
|
style: styles.progressBarContainer,
|
|
51
|
-
children: /*#__PURE__*/
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
84
|
+
children: /*#__PURE__*/_jsx(Slider, {
|
|
85
|
+
progress: progress,
|
|
86
|
+
minimumValue: minimumValue,
|
|
87
|
+
maximumValue: maximumValue,
|
|
88
|
+
isScrubbing: isScrubbing,
|
|
89
|
+
thumbScaleValue: thumbScale,
|
|
90
|
+
sliderHeight: verticalScale(2),
|
|
91
|
+
disable: videoDuration <= 0,
|
|
92
|
+
disableTapEvent: false,
|
|
93
|
+
theme: {
|
|
94
|
+
minimumTrackTintColor: theme.colors.primary,
|
|
95
|
+
maximumTrackTintColor: 'rgba(255, 255, 255, 0.3)',
|
|
96
|
+
cacheTrackTintColor: 'rgba(255, 255, 255, 0.3)',
|
|
97
|
+
disableMinTrackTintColor: 'rgba(255, 255, 255, 0.5)',
|
|
98
|
+
bubbleBackgroundColor: 'transparent',
|
|
99
|
+
heartbeatColor: theme.colors.primary
|
|
100
|
+
},
|
|
101
|
+
containerStyle: styles.progressBarWrapper,
|
|
102
|
+
renderThumb: () => /*#__PURE__*/_jsx(View, {
|
|
103
|
+
style: styles.sliderThumb
|
|
104
|
+
}),
|
|
105
|
+
bubbleWidth: 0,
|
|
106
|
+
bubbleMaxWidth: 0,
|
|
107
|
+
onSlidingStart: () => {
|
|
108
|
+
if (scrubTimeoutRef.current) {
|
|
109
|
+
clearTimeout(scrubTimeoutRef.current);
|
|
110
|
+
scrubTimeoutRef.current = null;
|
|
111
|
+
}
|
|
112
|
+
isScrubbing.value = true;
|
|
113
|
+
thumbScale.value = withTiming(1.4, {
|
|
114
|
+
duration: 120
|
|
115
|
+
});
|
|
116
|
+
},
|
|
117
|
+
onSlidingComplete: value => {
|
|
118
|
+
progress.value = value;
|
|
119
|
+
thumbScale.value = withTiming(1, {
|
|
120
|
+
duration: 120
|
|
121
|
+
});
|
|
122
|
+
onSeek?.(value);
|
|
123
|
+
|
|
124
|
+
// Give the video a brief moment to seek before
|
|
125
|
+
// re-syncing slider with currentTime to avoid jumps
|
|
126
|
+
scrubTimeoutRef.current = setTimeout(() => {
|
|
127
|
+
isScrubbing.value = false;
|
|
128
|
+
scrubTimeoutRef.current = null;
|
|
129
|
+
}, 400);
|
|
130
|
+
}
|
|
63
131
|
})
|
|
64
132
|
})]
|
|
65
133
|
});
|
|
@@ -69,8 +137,9 @@ const styles = StyleSheet.create({
|
|
|
69
137
|
container: {
|
|
70
138
|
position: 'absolute',
|
|
71
139
|
bottom: 0,
|
|
140
|
+
width: '100%',
|
|
72
141
|
zIndex: 10,
|
|
73
|
-
|
|
142
|
+
paddingHorizontal: moderateScale(8)
|
|
74
143
|
},
|
|
75
144
|
seriesInfo: {
|
|
76
145
|
marginBottom: verticalScale(10)
|
|
@@ -129,6 +198,12 @@ const styles = StyleSheet.create({
|
|
|
129
198
|
transform: [{
|
|
130
199
|
translateX: -moderateScale(3.5)
|
|
131
200
|
}]
|
|
201
|
+
},
|
|
202
|
+
sliderThumb: {
|
|
203
|
+
width: moderateScale(7),
|
|
204
|
+
height: moderateScale(7),
|
|
205
|
+
borderRadius: moderateScale(3.5),
|
|
206
|
+
backgroundColor: '#fff'
|
|
132
207
|
}
|
|
133
208
|
});
|
|
134
209
|
//# sourceMappingURL=BottomControls.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","View","Text","TouchableOpacity","StyleSheet","ChevronRight","ListVideo","moderateScale","verticalScale","RFValue","jsx","_jsx","jsxs","_jsxs","BottomControls","series","episodeIndex","videoCurrentTime","videoDuration","onEpisodesPress","theme","
|
|
1
|
+
{"version":3,"names":["React","useEffect","useRef","View","Text","TouchableOpacity","StyleSheet","ChevronRight","ListVideo","moderateScale","verticalScale","RFValue","Slider","useSharedValue","withTiming","jsx","_jsx","jsxs","_jsxs","BottomControls","series","episodeIndex","videoCurrentTime","videoDuration","onEpisodesPress","isFullScreen","theme","onSeek","truncatedTitle","title","length","slice","progress","minimumValue","maximumValue","isScrubbing","thumbScale","scrubTimeoutRef","value","current","clearTimeout","style","styles","container","bottom","children","seriesInfo","seriesTitle","numberOfLines","seriesDescription","description","episodesButton","onPress","activeOpacity","episodesButtonContent","color","width","height","episodesText","episodes","size","progressBarContainer","thumbScaleValue","sliderHeight","disable","disableTapEvent","minimumTrackTintColor","colors","primary","maximumTrackTintColor","cacheTrackTintColor","disableMinTrackTintColor","bubbleBackgroundColor","heartbeatColor","containerStyle","progressBarWrapper","renderThumb","sliderThumb","bubbleWidth","bubbleMaxWidth","onSlidingStart","duration","onSlidingComplete","setTimeout","create","position","zIndex","paddingHorizontal","marginBottom","fontSize","fontWeight","marginTop","opacity","flexDirection","justifyContent","alignItems","backgroundColor","borderRadius","paddingVertical","marginLeft","marginVertical","marginHorizontal","progressBarFill","progressBarKnob","top","transform","translateX"],"sourceRoot":"../../../../../../src","sources":["components/Reels/ReelsSeries/MediaControls/BottomControls.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,SAAS,EAAEC,MAAM,QAAQ,OAAO;AAChD,SAASC,IAAI,EAAEC,IAAI,EAAEC,gBAAgB,EAAEC,UAAU,QAAQ,cAAc;A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C,GAAG;IAAE,CAAC;EACjD,CAAC;EACDoE,WAAW,EAAE;IACXrB,KAAK,EAAE/C,aAAa,CAAC,CAAC,CAAC;IACvBgD,MAAM,EAAEhD,aAAa,CAAC,CAAC,CAAC;IACxBwF,YAAY,EAAExF,aAAa,CAAC,GAAG,CAAC;IAChCuF,eAAe,EAAE;EACnB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -11,6 +11,8 @@ import BottomControls from "./BottomControls.js";
|
|
|
11
11
|
import DetailsModal from "../Model/DetailsModal.js";
|
|
12
12
|
import UnLockModal from "../Model/UnlockModal.js";
|
|
13
13
|
import SettingModal from "../Model/SettingModal.js";
|
|
14
|
+
import { videoRef } from "../../utils/Controls/index.js";
|
|
15
|
+
import { DEFAULT_QUALITIES, getVideoQualities } from "../utils/quality.js";
|
|
14
16
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
17
|
const MediaControlsProvider = ({
|
|
16
18
|
children,
|
|
@@ -21,6 +23,7 @@ const MediaControlsProvider = ({
|
|
|
21
23
|
navigation,
|
|
22
24
|
settings,
|
|
23
25
|
modal,
|
|
26
|
+
isFullScreen,
|
|
24
27
|
unlock,
|
|
25
28
|
setModal,
|
|
26
29
|
theme
|
|
@@ -63,6 +66,63 @@ const MediaControlsProvider = ({
|
|
|
63
66
|
onPlaybackRateChange,
|
|
64
67
|
onQualityChange
|
|
65
68
|
} = settings;
|
|
69
|
+
|
|
70
|
+
// Qualities state is managed outside of the modal for smoother UX and to
|
|
71
|
+
// avoid performing API calls inside modal components.
|
|
72
|
+
const [qualities, setQualities] = React.useState(DEFAULT_QUALITIES);
|
|
73
|
+
const [qualitiesLoading, setQualitiesLoading] = React.useState(false);
|
|
74
|
+
const lastLoadedUrlRef = React.useRef(null);
|
|
75
|
+
React.useEffect(() => {
|
|
76
|
+
// Only fetch when settings modal is requested, and let the shared util
|
|
77
|
+
// handle caching per m3u8 URL to avoid repeated network calls.
|
|
78
|
+
if (modal?.type !== 'settings') {
|
|
79
|
+
return;
|
|
80
|
+
}
|
|
81
|
+
const videoUrl = episode.videoUrl;
|
|
82
|
+
|
|
83
|
+
// If we've already loaded qualities for this URL once, don't toggle
|
|
84
|
+
// loading again or refetch – this prevents repeated "open/close" feel
|
|
85
|
+
// and keeps the modal content stable.
|
|
86
|
+
if (videoUrl && lastLoadedUrlRef.current === videoUrl) {
|
|
87
|
+
return;
|
|
88
|
+
}
|
|
89
|
+
let isCancelled = false;
|
|
90
|
+
const fetchQualities = async () => {
|
|
91
|
+
if (!videoUrl || !videoUrl.includes('.m3u8')) {
|
|
92
|
+
if (!isCancelled) {
|
|
93
|
+
setQualities(DEFAULT_QUALITIES);
|
|
94
|
+
setQualitiesLoading(false);
|
|
95
|
+
lastLoadedUrlRef.current = videoUrl ?? null;
|
|
96
|
+
}
|
|
97
|
+
return;
|
|
98
|
+
}
|
|
99
|
+
setQualitiesLoading(true);
|
|
100
|
+
try {
|
|
101
|
+
const qualityOptions = await getVideoQualities(videoUrl);
|
|
102
|
+
if (isCancelled) return;
|
|
103
|
+
if (qualityOptions.length > 0) {
|
|
104
|
+
const qualityStrings = ['Auto', ...qualityOptions.map(q => q.quality).filter((v, i, self) => self.indexOf(v) === i).sort((a, b) => parseInt(b, 10) - parseInt(a, 10))];
|
|
105
|
+
setQualities(qualityStrings);
|
|
106
|
+
} else {
|
|
107
|
+
setQualities(DEFAULT_QUALITIES);
|
|
108
|
+
}
|
|
109
|
+
lastLoadedUrlRef.current = videoUrl;
|
|
110
|
+
} catch (err) {
|
|
111
|
+
if (!isCancelled) {
|
|
112
|
+
setQualities(DEFAULT_QUALITIES);
|
|
113
|
+
lastLoadedUrlRef.current = videoUrl ?? null;
|
|
114
|
+
}
|
|
115
|
+
} finally {
|
|
116
|
+
if (!isCancelled) {
|
|
117
|
+
setQualitiesLoading(false);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
};
|
|
121
|
+
fetchQualities();
|
|
122
|
+
return () => {
|
|
123
|
+
isCancelled = true;
|
|
124
|
+
};
|
|
125
|
+
}, [episode.videoUrl, modal?.type]);
|
|
66
126
|
const episodeLabel = React.useMemo(() => {
|
|
67
127
|
return series.episodes.length > 0 ? `Ep ${activeIndex + 1}/${series.episodes.length}` : undefined;
|
|
68
128
|
}, [activeIndex, series.episodes.length]);
|
|
@@ -106,10 +166,12 @@ const MediaControlsProvider = ({
|
|
|
106
166
|
episodeIndex: activeIndex,
|
|
107
167
|
videoCurrentTime: currentTime,
|
|
108
168
|
videoDuration: duration,
|
|
169
|
+
isFullScreen: isFullScreen,
|
|
109
170
|
onEpisodesPress: () => setModal?.({
|
|
110
171
|
type: 'details',
|
|
111
172
|
isVisible: true
|
|
112
|
-
})
|
|
173
|
+
}),
|
|
174
|
+
onSeek: time => videoRef.current?.seek(time)
|
|
113
175
|
})]
|
|
114
176
|
}), isSeries && /*#__PURE__*/_jsx(DetailsModal, {
|
|
115
177
|
reel: episode,
|
|
@@ -127,7 +189,8 @@ const MediaControlsProvider = ({
|
|
|
127
189
|
theme: theme,
|
|
128
190
|
speed: playbackRate,
|
|
129
191
|
quality: quality,
|
|
130
|
-
|
|
192
|
+
qualities: qualities,
|
|
193
|
+
qualitiesLoading: qualitiesLoading,
|
|
131
194
|
onSpeedChange: onPlaybackRateChange,
|
|
132
195
|
onQualityChange: onQualityChange,
|
|
133
196
|
isVisible: modal?.type === 'settings' && modal.isVisible,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","StyleSheet","View","GradientOverlay","Like","TopControls","MiddleControls","RightControls","BottomControls","DetailsModal","UnLockModal","SettingModal","jsx","_jsx","jsxs","_jsxs","MediaControlsProvider","children","content","video","likes","actions","navigation","settings","modal","unlock","setModal","theme","series","episode","activeIndex","isSeries","episodes","currentTime","duration","paused","buffering","showCenterControls","isLocked","hasError","liked","count","showAnimation","onLike","onEpisodeSelect","onLikeMore","onUnlockPress","onShare","onUnLock","onBack","onSearch","playbackRate","quality","onPlaybackRateChange","onQualityChange","
|
|
1
|
+
{"version":3,"names":["React","StyleSheet","View","GradientOverlay","Like","TopControls","MiddleControls","RightControls","BottomControls","DetailsModal","UnLockModal","SettingModal","videoRef","DEFAULT_QUALITIES","getVideoQualities","jsx","_jsx","jsxs","_jsxs","MediaControlsProvider","children","content","video","likes","actions","navigation","settings","modal","isFullScreen","unlock","setModal","theme","series","episode","activeIndex","isSeries","episodes","currentTime","duration","paused","buffering","showCenterControls","isLocked","hasError","liked","count","showAnimation","onLike","onEpisodeSelect","onLikeMore","onUnlockPress","onShare","onUnLock","onBack","onSearch","playbackRate","quality","onPlaybackRateChange","onQualityChange","qualities","setQualities","useState","qualitiesLoading","setQualitiesLoading","lastLoadedUrlRef","useRef","useEffect","type","videoUrl","current","isCancelled","fetchQualities","includes","qualityOptions","length","qualityStrings","map","q","filter","v","i","self","indexOf","sort","a","b","parseInt","err","episodeLabel","useMemo","undefined","style","styles","root","visible","absoluteFillObject","onSettings","isVisible","isPaused","isBuffering","isLiked","likeCount","showEpisodesButton","onDetailsPress","episodeIndex","videoCurrentTime","videoDuration","onEpisodesPress","onSeek","time","seek","reel","data","activeEpisodeIndex","onClose","onLikeMorePress","speed","onSpeedChange","create","flex"],"sourceRoot":"../../../../../../src","sources":["components/Reels/ReelsSeries/MediaControls/MediaControlsProvider.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAE/C,OAAOC,eAAe,MAAM,iDAA8C;AAC1E,OAAOC,IAAI,MAAM,sCAAmC;AAUpD,OAAOC,WAAW,MAAM,kBAAe;AACvC,OAAOC,cAAc,MAAM,qBAAkB;AAC7C,OAAOC,aAAa,MAAM,oBAAiB;AAC3C,OAAOC,cAAc,MAAM,qBAAkB;AAC7C,OAAOC,YAAY,MAAM,0BAAuB;AAChD,OAAOC,WAAW,MAAM,yBAAsB;AAC9C,OAAOC,YAAY,MAAM,0BAAuB;AAChD,SAASC,QAAQ,QAA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Video } from 'lucide-react-native';
|
|
6
6
|
import { moderateScale, verticalScale } from 'react-native-size-matters';
|
|
7
7
|
import { RFValue } from 'react-native-responsive-fontsize';
|
|
8
|
+
import { formatCount } from "../../../../utils/Formater.js";
|
|
8
9
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
10
|
const RightControls = ({
|
|
10
11
|
episode,
|
|
@@ -27,7 +28,7 @@ const RightControls = ({
|
|
|
27
28
|
fill: isLiked ? 'red' : 'none'
|
|
28
29
|
}), /*#__PURE__*/_jsx(Text, {
|
|
29
30
|
style: styles.actionLabel,
|
|
30
|
-
children: likeCount
|
|
31
|
+
children: formatCount(Number(likeCount) || 0)
|
|
31
32
|
})]
|
|
32
33
|
}), showEpisodesButton && /*#__PURE__*/_jsxs(TouchableOpacity, {
|
|
33
34
|
style: styles.actionButton,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","View","Text","TouchableOpacity","StyleSheet","Heart","Forward","ListVideo","moderateScale","verticalScale","RFValue","jsx","_jsx","jsxs","_jsxs","RightControls","episode","isLiked","likeCount","onLike","onShare","onDetailsPress","showEpisodesButton","style","styles","container","children","actionButton","onPress","activeOpacity","size","color","fill","actionLabel","create","position","bottom","right","flexDirection","zIndex","marginVertical","alignItems","marginTop","fontSize","textAlign"],"sourceRoot":"../../../../../../src","sources":["components/Reels/ReelsSeries/MediaControls/RightControls.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,IAAI,EAAEC,gBAAgB,EAAEC,UAAU,QAAQ,cAAc;AACvE,SAASC,KAAK,EAAEC,OAAO,EAAEC,SAAS,QAAQ,qBAAqB;AAC/D,SAASC,aAAa,EAAEC,aAAa,QAAQ,2BAA2B;AACxE,SAASC,OAAO,QAAQ,kCAAkC;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;
|
|
1
|
+
{"version":3,"names":["React","View","Text","TouchableOpacity","StyleSheet","Heart","Forward","ListVideo","moderateScale","verticalScale","RFValue","formatCount","jsx","_jsx","jsxs","_jsxs","RightControls","episode","isLiked","likeCount","onLike","onShare","onDetailsPress","showEpisodesButton","style","styles","container","children","actionButton","onPress","activeOpacity","size","color","fill","actionLabel","Number","create","position","bottom","right","flexDirection","zIndex","marginVertical","alignItems","marginTop","fontSize","textAlign"],"sourceRoot":"../../../../../../src","sources":["components/Reels/ReelsSeries/MediaControls/RightControls.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,IAAI,EAAEC,gBAAgB,EAAEC,UAAU,QAAQ,cAAc;AACvE,SAASC,KAAK,EAAEC,OAAO,EAAEC,SAAS,QAAQ,qBAAqB;AAC/D,SAASC,aAAa,EAAEC,aAAa,QAAQ,2BAA2B;AACxE,SAASC,OAAO,QAAQ,kCAAkC;AAE1D,SAASC,WAAW,QAAQ,+BAA4B;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAczD,MAAMC,aAA2C,GAAGA,CAAC;EACnDC,OAAO;EACPC,OAAO;EACPC,SAAS;EACTC,MAAM;EACNC,OAAO;EACPC,cAAc;EACdC,kBAAkB,GAAG;AACvB,CAAC,KAAK;EACJ,oBACER,KAAA,CAACd,IAAI;IAACuB,KAAK,EAAEC,MAAM,CAACC,SAAU;IAAAC,QAAA,gBAE5BZ,KAAA,CAACZ,gBAAgB;MACfqB,KAAK,EAAEC,MAAM,CAACG,YAAa;MAC3BC,OAAO,EAAEA,CAAA,KAAMT,MAAM,GAAGH,OAAO,CAAE;MACjCa,aAAa,EAAE,GAAI;MAAAH,QAAA,gBAEnBd,IAAA,CAACR,KAAK;QACJ0B,IAAI,EAAEvB,aAAa,CAAC,EAAE,CAAE;QACxBwB,KAAK,EAAEd,OAAO,GAAG,KAAK,GAAG,MAAO;QAChCe,IAAI,EAAEf,OAAO,GAAG,KAAK,GAAG;MAAO,CAChC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AAC;EACDb,YAAY,EAAE;IACZc,cAAc,EAAEjC,aAAa,CAAC,EAAE,CAAC;IACjCkC,UAAU,EAAE;EACd,CAAC;EACDT,WAAW,EAAE;IACXU,SAAS,EAAEnC,aAAa,CAAC,CAAC,CAAC;IAC3BoC,QAAQ,EAAEnC,OAAO,CAAC,EAAE,CAAC;IACrBsB,KAAK,EAAE,MAAM;IACbc,SAAS,EAAE;EACb;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -12,7 +12,8 @@ const SettingModal = ({
|
|
|
12
12
|
theme,
|
|
13
13
|
speed,
|
|
14
14
|
quality,
|
|
15
|
-
|
|
15
|
+
qualities,
|
|
16
|
+
qualitiesLoading,
|
|
16
17
|
onSpeedChange,
|
|
17
18
|
onQualityChange,
|
|
18
19
|
isVisible,
|
|
@@ -68,8 +69,9 @@ const SettingModal = ({
|
|
|
68
69
|
style: styles.animatedContent,
|
|
69
70
|
children: /*#__PURE__*/_jsx(QualityControl, {
|
|
70
71
|
activeQuality: quality,
|
|
71
|
-
videoUrl: videoUrl,
|
|
72
72
|
theme: theme,
|
|
73
|
+
qualities: qualities,
|
|
74
|
+
loading: qualitiesLoading,
|
|
73
75
|
onQualityChange: value => handleSelect(onQualityChange, value)
|
|
74
76
|
})
|
|
75
77
|
})]
|