@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
|
@@ -10,21 +10,43 @@ import { View, FlatList, TouchableOpacity, StyleSheet, ScrollView } from 'react-
|
|
|
10
10
|
import SkeletonPlaceholder from 'react-native-skeleton-placeholder';
|
|
11
11
|
import { moderateScale, verticalScale } from 'react-native-size-matters';
|
|
12
12
|
import FastImage from 'react-native-fast-image';
|
|
13
|
+
import { RFValue } from 'react-native-responsive-fontsize';
|
|
13
14
|
import CardPoster from "../components/CardPoster.js";
|
|
14
15
|
import NavigateToMore from "../components/NavigateToMore.js";
|
|
15
|
-
import {
|
|
16
|
+
import { AdsPoster } from "../components/index.js";
|
|
16
17
|
import { useInternalTheme } from "../../../../theme/hook/useInternalTheme.js";
|
|
17
|
-
import {
|
|
18
|
+
import { useCards } from "../../../../hooks/index.js";
|
|
19
|
+
|
|
20
|
+
// Constants
|
|
18
21
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
19
22
|
const DEFAULT_ITEM_WIDTH = moderateScale(140);
|
|
20
23
|
const DEFAULT_BORDER_RADIUS = moderateScale(5);
|
|
21
24
|
const DEFAULT_SKELETON_COUNT = 3;
|
|
25
|
+
const ASPECT_RATIO = 0.67;
|
|
26
|
+
const END_REACHED_THRESHOLD = 0.5;
|
|
27
|
+
const ITEM_ACTIVE_OPACITY = 0.8;
|
|
28
|
+
const INITIAL_NUM_TO_RENDER = 5;
|
|
29
|
+
const SKELETON_TITLE_WIDTH = moderateScale(100);
|
|
30
|
+
const SKELETON_TITLE_HEIGHT = moderateScale(20);
|
|
31
|
+
const SKELETON_TITLE_BORDER_RADIUS = moderateScale(4);
|
|
32
|
+
const SKELETON_TITLE_MARGIN_HORIZONTAL = moderateScale(15);
|
|
33
|
+
const SKELETON_TITLE_MARGIN_BOTTOM = verticalScale(6);
|
|
34
|
+
const SKELETON_ITEM_MARGIN_LEFT = moderateScale(12);
|
|
35
|
+
const SKELETON_ITEM_MARGIN_RIGHT = moderateScale(12);
|
|
36
|
+
const ITEM_MARGIN_LEFT = moderateScale(10);
|
|
37
|
+
const ITEM_MARGIN_BOTTOM = verticalScale(2);
|
|
38
|
+
const LIST_CONTENT_PADDING_RIGHT = moderateScale(15);
|
|
39
|
+
const SKELETON_LIST_PADDING_RIGHT = moderateScale(15);
|
|
40
|
+
|
|
41
|
+
// Types
|
|
42
|
+
|
|
43
|
+
// Main Component
|
|
22
44
|
const MovieCardFive = ({
|
|
23
45
|
theme,
|
|
24
46
|
title,
|
|
25
47
|
section_id,
|
|
26
48
|
type,
|
|
27
|
-
data:
|
|
49
|
+
data: externalData,
|
|
28
50
|
moreFetchData,
|
|
29
51
|
onPressItem,
|
|
30
52
|
onPressMore,
|
|
@@ -32,25 +54,47 @@ const MovieCardFive = ({
|
|
|
32
54
|
itemWidth = DEFAULT_ITEM_WIDTH,
|
|
33
55
|
borderRadius = DEFAULT_BORDER_RADIUS,
|
|
34
56
|
skeletonCount = DEFAULT_SKELETON_COUNT,
|
|
57
|
+
paginationSkeletonCount,
|
|
35
58
|
containerStyle,
|
|
36
59
|
titleStyle,
|
|
37
60
|
itemStyle,
|
|
38
61
|
isLoading = false,
|
|
39
62
|
accessibilityLabel,
|
|
40
|
-
accessibilityHint
|
|
63
|
+
accessibilityHint,
|
|
64
|
+
onDisplayAds,
|
|
65
|
+
screenDimensions,
|
|
66
|
+
viewportOffsets
|
|
41
67
|
}) => {
|
|
68
|
+
// Refs
|
|
69
|
+
const flatListRef = useRef(null);
|
|
70
|
+
const onEndReachedCalledDuringMomentum = useRef(false);
|
|
71
|
+
|
|
72
|
+
// Theme
|
|
42
73
|
const {
|
|
43
74
|
theme: appliedTheme
|
|
44
75
|
} = useInternalTheme(theme);
|
|
45
|
-
|
|
46
|
-
|
|
76
|
+
|
|
77
|
+
// Styles
|
|
47
78
|
const styles = useMemo(() => getStyles(appliedTheme, itemWidth, borderRadius), [appliedTheme, itemWidth, borderRadius]);
|
|
79
|
+
|
|
80
|
+
// Data Management
|
|
48
81
|
const {
|
|
49
|
-
|
|
82
|
+
listData,
|
|
50
83
|
pagination,
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
84
|
+
loadMore,
|
|
85
|
+
isEmpty,
|
|
86
|
+
isPaging: isPaginating
|
|
87
|
+
} = useCards({
|
|
88
|
+
sectionId: section_id,
|
|
89
|
+
data: externalData,
|
|
90
|
+
fetchMore: moreFetchData,
|
|
91
|
+
loading: isLoading,
|
|
92
|
+
initialSkeleton: skeletonCount,
|
|
93
|
+
pagingSkeleton: paginationSkeletonCount,
|
|
94
|
+
adsRender: true
|
|
95
|
+
});
|
|
96
|
+
|
|
97
|
+
// Event Handlers
|
|
54
98
|
const handleItemPress = useCallback(item => onPressItem?.(item), [onPressItem]);
|
|
55
99
|
const handlePressMore = useCallback(() => {
|
|
56
100
|
onPressMore?.({
|
|
@@ -62,48 +106,90 @@ const MovieCardFive = ({
|
|
|
62
106
|
const handleEndReached = useCallback(() => {
|
|
63
107
|
if (!onEndReachedCalledDuringMomentum.current && pagination?.hasNextPage && pagination?.nextPage) {
|
|
64
108
|
onEndReachedCalledDuringMomentum.current = true;
|
|
65
|
-
|
|
109
|
+
loadMore(pagination.nextPage);
|
|
66
110
|
}
|
|
67
|
-
}, [
|
|
111
|
+
}, [loadMore, pagination]);
|
|
112
|
+
const handleScrollBeginDrag = useCallback(() => {
|
|
113
|
+
onEndReachedCalledDuringMomentum.current = false;
|
|
114
|
+
}, []);
|
|
115
|
+
const handleMomentumScrollBegin = useCallback(() => {
|
|
116
|
+
onEndReachedCalledDuringMomentum.current = false;
|
|
117
|
+
}, []);
|
|
118
|
+
|
|
119
|
+
// Render Functions
|
|
68
120
|
const renderItem = useCallback(({
|
|
69
121
|
item,
|
|
70
122
|
index
|
|
71
123
|
}) => {
|
|
124
|
+
// Handle ads
|
|
125
|
+
if ('type' in item && item.type === 'ads') {
|
|
126
|
+
const adItem = item;
|
|
127
|
+
return /*#__PURE__*/_jsx(View, {
|
|
128
|
+
style: [styles.item, itemStyle],
|
|
129
|
+
children: /*#__PURE__*/_jsx(AdsPoster, {
|
|
130
|
+
ad: adItem,
|
|
131
|
+
theme: appliedTheme,
|
|
132
|
+
isLoading: isLoading,
|
|
133
|
+
containerStyle: {
|
|
134
|
+
width: itemWidth,
|
|
135
|
+
aspectRatio: ASPECT_RATIO
|
|
136
|
+
},
|
|
137
|
+
imageStyle: styles.image,
|
|
138
|
+
borderRadius: borderRadius,
|
|
139
|
+
onDisplayAds: onDisplayAds,
|
|
140
|
+
screenDimensions: screenDimensions,
|
|
141
|
+
viewportOffsets: viewportOffsets
|
|
142
|
+
})
|
|
143
|
+
}, `ad-${adItem.tracking?.impression || index}`);
|
|
144
|
+
}
|
|
145
|
+
// Handle content items
|
|
146
|
+
const contentItem = item;
|
|
147
|
+
const isSkeleton = contentItem._id?.startsWith?.('pagination-skeleton') ?? false;
|
|
72
148
|
return /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
73
149
|
style: [styles.item, itemStyle],
|
|
74
|
-
onPress: () =>
|
|
75
|
-
|
|
150
|
+
onPress: () => {
|
|
151
|
+
if (!isSkeleton && !isLoading) {
|
|
152
|
+
handleItemPress(contentItem);
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
activeOpacity: ITEM_ACTIVE_OPACITY,
|
|
76
156
|
children: renderItemImage ? renderItemImage({
|
|
77
157
|
item,
|
|
78
158
|
index
|
|
79
159
|
}) : /*#__PURE__*/_jsx(CardPoster, {
|
|
80
|
-
content_offering_type:
|
|
81
|
-
|
|
160
|
+
content_offering_type: contentItem.content_offering_type,
|
|
161
|
+
contentType: contentItem.type,
|
|
162
|
+
posterUri: contentItem.poster,
|
|
82
163
|
theme: appliedTheme,
|
|
83
164
|
borderRadius: borderRadius,
|
|
84
165
|
posterWrapperStyle: styles.image,
|
|
85
166
|
resizeMode: FastImage.resizeMode.cover,
|
|
86
|
-
isLoading: isLoading
|
|
167
|
+
isLoading: isSkeleton || isLoading
|
|
87
168
|
})
|
|
88
|
-
});
|
|
89
|
-
}, [styles.item, styles.image, itemStyle, renderItemImage, appliedTheme, borderRadius, isLoading, handleItemPress]);
|
|
90
|
-
|
|
91
|
-
return null;
|
|
92
|
-
}
|
|
93
|
-
const renderSkeletonItem = ({
|
|
169
|
+
}, contentItem._id);
|
|
170
|
+
}, [styles.item, styles.image, itemStyle, renderItemImage, appliedTheme, borderRadius, isLoading, handleItemPress, itemWidth, onDisplayAds, screenDimensions, viewportOffsets]);
|
|
171
|
+
const renderSkeletonItem = useCallback(({
|
|
94
172
|
index
|
|
95
173
|
}) => /*#__PURE__*/_jsx(SkeletonPlaceholder, {
|
|
96
174
|
highlightColor: appliedTheme.colors.skeletonHighlightColor,
|
|
97
175
|
backgroundColor: appliedTheme.colors.skeletonBaseColor,
|
|
98
176
|
children: /*#__PURE__*/_jsx(SkeletonPlaceholder.Item, {
|
|
99
177
|
width: itemWidth,
|
|
100
|
-
aspectRatio:
|
|
178
|
+
aspectRatio: ASPECT_RATIO,
|
|
101
179
|
borderRadius: borderRadius,
|
|
102
|
-
marginLeft: index === 0 ?
|
|
103
|
-
marginRight:
|
|
180
|
+
marginLeft: index === 0 ? SKELETON_ITEM_MARGIN_LEFT : 0,
|
|
181
|
+
marginRight: SKELETON_ITEM_MARGIN_RIGHT
|
|
104
182
|
})
|
|
105
|
-
}, `skeleton-${index}`);
|
|
106
|
-
|
|
183
|
+
}, `skeleton-${index}`), [appliedTheme, itemWidth, borderRadius]);
|
|
184
|
+
const keyExtractor = useCallback((item, index) => {
|
|
185
|
+
return '_id' in item ? item._id : `ad-${index}`;
|
|
186
|
+
}, []);
|
|
187
|
+
|
|
188
|
+
// Early Returns
|
|
189
|
+
if (!externalData) return null;
|
|
190
|
+
if (!isLoading && listData.length === 0 && !isEmpty) return null;
|
|
191
|
+
|
|
192
|
+
// Main Render
|
|
107
193
|
return /*#__PURE__*/_jsx(View, {
|
|
108
194
|
style: [styles.root, containerStyle],
|
|
109
195
|
accessibilityLabel: accessibilityLabel || `Movie section: ${title}`,
|
|
@@ -113,11 +199,11 @@ const MovieCardFive = ({
|
|
|
113
199
|
highlightColor: appliedTheme.colors.skeletonHighlightColor,
|
|
114
200
|
backgroundColor: appliedTheme.colors.skeletonBaseColor,
|
|
115
201
|
children: /*#__PURE__*/_jsx(SkeletonPlaceholder.Item, {
|
|
116
|
-
width:
|
|
117
|
-
height:
|
|
118
|
-
borderRadius:
|
|
119
|
-
marginHorizontal:
|
|
120
|
-
marginBottom:
|
|
202
|
+
width: SKELETON_TITLE_WIDTH,
|
|
203
|
+
height: SKELETON_TITLE_HEIGHT,
|
|
204
|
+
borderRadius: SKELETON_TITLE_BORDER_RADIUS,
|
|
205
|
+
marginHorizontal: SKELETON_TITLE_MARGIN_HORIZONTAL,
|
|
206
|
+
marginBottom: SKELETON_TITLE_MARGIN_BOTTOM
|
|
121
207
|
})
|
|
122
208
|
}), /*#__PURE__*/_jsx(ScrollView, {
|
|
123
209
|
horizontal: true,
|
|
@@ -143,21 +229,17 @@ const MovieCardFive = ({
|
|
|
143
229
|
}
|
|
144
230
|
}), /*#__PURE__*/_jsx(FlatList, {
|
|
145
231
|
ref: flatListRef,
|
|
146
|
-
data:
|
|
232
|
+
data: listData,
|
|
147
233
|
horizontal: true,
|
|
148
|
-
keyExtractor:
|
|
234
|
+
keyExtractor: keyExtractor,
|
|
149
235
|
renderItem: renderItem,
|
|
150
236
|
showsHorizontalScrollIndicator: false,
|
|
151
237
|
contentContainerStyle: styles.listContent,
|
|
152
|
-
initialNumToRender:
|
|
238
|
+
initialNumToRender: INITIAL_NUM_TO_RENDER,
|
|
153
239
|
onEndReached: handleEndReached,
|
|
154
|
-
onEndReachedThreshold:
|
|
155
|
-
onScrollBeginDrag:
|
|
156
|
-
|
|
157
|
-
},
|
|
158
|
-
onMomentumScrollBegin: () => {
|
|
159
|
-
onEndReachedCalledDuringMomentum.current = false;
|
|
160
|
-
},
|
|
240
|
+
onEndReachedThreshold: END_REACHED_THRESHOLD,
|
|
241
|
+
onScrollBeginDrag: handleScrollBeginDrag,
|
|
242
|
+
onMomentumScrollBegin: handleMomentumScrollBegin,
|
|
161
243
|
ListFooterComponent: isPaginating ? renderSkeletonItem({
|
|
162
244
|
index: 0
|
|
163
245
|
}) : null
|
|
@@ -165,17 +247,19 @@ const MovieCardFive = ({
|
|
|
165
247
|
})
|
|
166
248
|
});
|
|
167
249
|
};
|
|
250
|
+
|
|
251
|
+
// Styles
|
|
168
252
|
const getStyles = (theme, width, radius) => StyleSheet.create({
|
|
169
253
|
root: {
|
|
170
254
|
marginVertical: verticalScale(6)
|
|
171
255
|
},
|
|
172
256
|
item: {
|
|
173
|
-
marginLeft:
|
|
174
|
-
marginBottom:
|
|
257
|
+
marginLeft: ITEM_MARGIN_LEFT,
|
|
258
|
+
marginBottom: ITEM_MARGIN_BOTTOM
|
|
175
259
|
},
|
|
176
260
|
image: {
|
|
177
261
|
width,
|
|
178
|
-
aspectRatio:
|
|
262
|
+
aspectRatio: ASPECT_RATIO,
|
|
179
263
|
borderRadius: radius,
|
|
180
264
|
backgroundColor: theme.colors.surfaceVariant
|
|
181
265
|
},
|
|
@@ -188,12 +272,12 @@ const getStyles = (theme, width, radius) => StyleSheet.create({
|
|
|
188
272
|
fontWeight: '600'
|
|
189
273
|
},
|
|
190
274
|
listContent: {
|
|
191
|
-
paddingRight:
|
|
275
|
+
paddingRight: LIST_CONTENT_PADDING_RIGHT
|
|
192
276
|
},
|
|
193
277
|
skeletonList: {
|
|
194
278
|
flexDirection: 'row',
|
|
195
279
|
alignItems: 'flex-start',
|
|
196
|
-
paddingRight:
|
|
280
|
+
paddingRight: SKELETON_LIST_PADDING_RIGHT
|
|
197
281
|
}
|
|
198
282
|
});
|
|
199
283
|
export default /*#__PURE__*/memo(MovieCardFive);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","memo","useCallback","useMemo","useRef","View","FlatList","TouchableOpacity","StyleSheet","ScrollView","SkeletonPlaceholder","moderateScale","verticalScale","FastImage","CardPoster","NavigateToMore","usePaginatedSection","useInternalTheme","RFValue","jsx","_jsx","Fragment","_Fragment","jsxs","_jsxs","DEFAULT_ITEM_WIDTH","DEFAULT_BORDER_RADIUS","DEFAULT_SKELETON_COUNT","MovieCardFive","theme","title","section_id","type","data","initialData","moreFetchData","onPressItem","onPressMore","renderItemImage","itemWidth","borderRadius","skeletonCount","containerStyle","titleStyle","itemStyle","isLoading","accessibilityLabel","accessibilityHint","appliedTheme","flatListRef","onEndReachedCalledDuringMomentum","styles","getStyles","pagination","loading","isPaginating","loadMoreData","handleItemPress","item","handlePressMore","name","handleEndReached","current","hasNextPage","nextPage","renderItem","index","style","onPress","activeOpacity","children","content_offering_type","posterUri","poster","posterWrapperStyle","image","resizeMode","cover","renderSkeletonItem","highlightColor","colors","skeletonHighlightColor","backgroundColor","skeletonBaseColor","Item","width","aspectRatio","marginLeft","marginRight","length","root","height","marginHorizontal","marginBottom","horizontal","showsHorizontalScrollIndicator","contentContainerStyle","skeletonList","Array","from","map","_","color","textPrimary","navigateToMoreContainer","showAllProps","iconColor","ref","keyExtractor","_id","listContent","initialNumToRender","onEndReached","onEndReachedThreshold","onScrollBeginDrag","onMomentumScrollBegin","ListFooterComponent","radius","create","marginVertical","surfaceVariant","paddingHorizontal","fontSize","fontWeight","paddingRight","flexDirection","alignItems"],"sourceRoot":"../../../../../../src","sources":["components/Content/Card/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AAEjF,aAAa,CAAC,CAAC;EAC/B,CAAC;EACD+D,KAAK,EAAE;IACLU,KAAK;IACLC,WAAW,EAAE,IAAI;IACjB9C,YAAY,EAAE6E,MAAM;IACpBnC,eAAe,EAAErD,KAAK,CAACmD,MAAM,CAACwC;EAChC,CAAC;EACDhB,uBAAuB,EAAE;IACvBiB,iBAAiB,EAAE9G,aAAa,CAAC,EAAE,CAAC;IACpCkF,YAAY,EAAEjF,aAAa,CAAC,CAAC;EAC/B,CAAC;EACDkB,KAAK,EAAE;IACL4F,QAAQ,EAAExG,OAAO,CAAC,EAAE,CAAC;IACrByG,UAAU,EAAE;EACd,CAAC;EACDb,WAAW,EAAE;IACXc,YAAY,EAAEjH,aAAa,CAAC,EAAE;EAChC,CAAC;EACDsF,YAAY,EAAE;IACZ4B,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE,YAAY;IACxBF,YAAY,EAAEjH,aAAa,CAAC,EAAE;EAChC;AACF,CAAC,CAAC;AAEJ,4BAAeV,IAAI,CAAC2B,aAAa,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["React","memo","useCallback","useMemo","useRef","View","FlatList","TouchableOpacity","StyleSheet","ScrollView","SkeletonPlaceholder","moderateScale","verticalScale","FastImage","RFValue","CardPoster","NavigateToMore","AdsPoster","useInternalTheme","useCards","jsx","_jsx","Fragment","_Fragment","jsxs","_jsxs","DEFAULT_ITEM_WIDTH","DEFAULT_BORDER_RADIUS","DEFAULT_SKELETON_COUNT","ASPECT_RATIO","END_REACHED_THRESHOLD","ITEM_ACTIVE_OPACITY","INITIAL_NUM_TO_RENDER","SKELETON_TITLE_WIDTH","SKELETON_TITLE_HEIGHT","SKELETON_TITLE_BORDER_RADIUS","SKELETON_TITLE_MARGIN_HORIZONTAL","SKELETON_TITLE_MARGIN_BOTTOM","SKELETON_ITEM_MARGIN_LEFT","SKELETON_ITEM_MARGIN_RIGHT","ITEM_MARGIN_LEFT","ITEM_MARGIN_BOTTOM","LIST_CONTENT_PADDING_RIGHT","SKELETON_LIST_PADDING_RIGHT","MovieCardFive","theme","title","section_id","type","data","externalData","moreFetchData","onPressItem","onPressMore","renderItemImage","itemWidth","borderRadius","skeletonCount","paginationSkeletonCount","containerStyle","titleStyle","itemStyle","isLoading","accessibilityLabel","accessibilityHint","onDisplayAds","screenDimensions","viewportOffsets","flatListRef","onEndReachedCalledDuringMomentum","appliedTheme","styles","getStyles","listData","pagination","loadMore","isEmpty","isPaging","isPaginating","sectionId","fetchMore","loading","initialSkeleton","pagingSkeleton","adsRender","handleItemPress","item","handlePressMore","name","handleEndReached","current","hasNextPage","nextPage","handleScrollBeginDrag","handleMomentumScrollBegin","renderItem","index","adItem","style","children","ad","width","aspectRatio","imageStyle","image","tracking","impression","contentItem","isSkeleton","_id","startsWith","onPress","activeOpacity","content_offering_type","contentType","posterUri","poster","posterWrapperStyle","resizeMode","cover","renderSkeletonItem","highlightColor","colors","skeletonHighlightColor","backgroundColor","skeletonBaseColor","Item","marginLeft","marginRight","keyExtractor","length","root","height","marginHorizontal","marginBottom","horizontal","showsHorizontalScrollIndicator","contentContainerStyle","skeletonList","Array","from","map","_","color","textPrimary","navigateToMoreContainer","showAllProps","iconColor","ref","listContent","initialNumToRender","onEndReached","onEndReachedThreshold","onScrollBeginDrag","onMomentumScrollBegin","ListFooterComponent","radius","create","marginVertical","surfaceVariant","paddingHorizontal","fontSize","fontWeight","paddingRight","flexDirection","alignItems"],"sourceRoot":"../../../../../../src","sources":["components/Content/Card/Styles/Five.tsx"],"mappings":";;AAAA;AACA;AACA;AACA;;AAEA,OAAOA,KAAK,IAAIC,IAAI,EAAEC,WAAW,EAAEC,OAAO,EAAEC,MAAM,QAAQ,OAAO;AACjE,SACEC,IAAI,EACJC,QAAQ,EACRC,gBAAgB,EAChBC,UAAU,EACVC,UAAU,QAKL,cAAc;AAErB,OAAOC,mBAAmB,MAAM,mCAAmC;AACnE,SAASC,aAAa,EAAEC,aAAa,QAAQ,2BAA2B;AACxE,OAAOC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EAAE;IACXc,YAAY,EAAEzH;EAChB,CAAC;EACDgG,YAAY,EAAE;IACZ0B,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE,YAAY;IACxBF,YAAY,EAAExH;EAChB;AACF,CAAC,CAAC;AAEJ,4BAAe1C,IAAI,CAAC2C,aAAa,CAAC","ignoreList":[]}
|
|
@@ -9,51 +9,90 @@ import React, { memo, useCallback, useMemo, useRef } from 'react';
|
|
|
9
9
|
import { View, FlatList, TouchableOpacity, StyleSheet, ScrollView } from 'react-native';
|
|
10
10
|
import SkeletonPlaceholder from 'react-native-skeleton-placeholder';
|
|
11
11
|
import { moderateScale, verticalScale } from 'react-native-size-matters';
|
|
12
|
-
import { usePaginatedSection } from "../../../../hooks/usePaginatedSection.js";
|
|
13
|
-
import NavigateToMore from "../components/NavigateToMore.js";
|
|
14
|
-
import { useInternalTheme } from "../../../../theme/hook/useInternalTheme.js";
|
|
15
|
-
import CardPoster from "../components/CardPoster.js";
|
|
16
12
|
import FastImage from 'react-native-fast-image';
|
|
17
13
|
import { RFValue } from 'react-native-responsive-fontsize';
|
|
14
|
+
import NavigateToMore from "../components/NavigateToMore.js";
|
|
15
|
+
import { AdsPoster } from "../components/index.js";
|
|
16
|
+
import CardPoster from "../components/CardPoster.js";
|
|
17
|
+
import { useInternalTheme } from "../../../../theme/hook/useInternalTheme.js";
|
|
18
|
+
import { useCards } from "../../../../hooks/index.js";
|
|
19
|
+
|
|
20
|
+
// Constants
|
|
18
21
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
19
|
-
// default values
|
|
20
22
|
const DEFAULT_ITEM_WIDTH = moderateScale(100);
|
|
21
23
|
const DEFAULT_BORDER_RADIUS = moderateScale(5);
|
|
22
24
|
const DEFAULT_SKELETON_COUNT = 5;
|
|
23
25
|
const ASPECT_RATIO = 0.7 / 1;
|
|
26
|
+
const END_REACHED_THRESHOLD = 0.5;
|
|
27
|
+
const ITEM_ACTIVE_OPACITY = 0.8;
|
|
28
|
+
const SKELETON_TITLE_WIDTH = moderateScale(100);
|
|
29
|
+
const SKELETON_TITLE_HEIGHT = moderateScale(20);
|
|
30
|
+
const SKELETON_TITLE_BORDER_RADIUS = moderateScale(4);
|
|
31
|
+
const SKELETON_TITLE_MARGIN_HORIZONTAL = moderateScale(15);
|
|
32
|
+
const SKELETON_TITLE_MARGIN_BOTTOM = verticalScale(6);
|
|
33
|
+
const SKELETON_ITEM_MARGIN_LEFT = moderateScale(12);
|
|
34
|
+
const SKELETON_ITEM_MARGIN_RIGHT = moderateScale(12);
|
|
35
|
+
const ITEM_MARGIN_LEFT = moderateScale(10);
|
|
36
|
+
const LIST_CONTENT_PADDING_RIGHT = moderateScale(12);
|
|
37
|
+
const SKELETON_LIST_PADDING_RIGHT = moderateScale(15);
|
|
38
|
+
|
|
39
|
+
// Types
|
|
40
|
+
|
|
41
|
+
// Main Component
|
|
24
42
|
const MovieCardFour = ({
|
|
25
43
|
title,
|
|
26
44
|
section_id,
|
|
27
45
|
type,
|
|
28
|
-
data:
|
|
46
|
+
data: externalData,
|
|
29
47
|
moreFetchData,
|
|
30
48
|
onPressItem,
|
|
31
49
|
onPressMore,
|
|
32
|
-
renderItemImage,
|
|
33
50
|
itemWidth = DEFAULT_ITEM_WIDTH,
|
|
34
51
|
itemHeight = DEFAULT_ITEM_WIDTH / ASPECT_RATIO,
|
|
35
52
|
borderRadius = DEFAULT_BORDER_RADIUS,
|
|
36
53
|
skeletonCount = DEFAULT_SKELETON_COUNT,
|
|
37
54
|
containerStyle,
|
|
55
|
+
paginationSkeletonCount,
|
|
38
56
|
titleStyle,
|
|
39
57
|
itemStyle,
|
|
40
58
|
isLoading = false,
|
|
41
59
|
theme,
|
|
42
60
|
accessibilityLabel,
|
|
43
|
-
accessibilityHint
|
|
61
|
+
accessibilityHint,
|
|
62
|
+
onDisplayAds,
|
|
63
|
+
screenDimensions,
|
|
64
|
+
viewportOffsets
|
|
44
65
|
}) => {
|
|
66
|
+
// Refs
|
|
45
67
|
const flatListRef = useRef(null);
|
|
46
68
|
const onEndReachedCalledDuringMomentum = useRef(false);
|
|
69
|
+
|
|
70
|
+
// Theme
|
|
47
71
|
const {
|
|
48
72
|
theme: appliedTheme
|
|
49
73
|
} = useInternalTheme(theme);
|
|
74
|
+
|
|
75
|
+
// Styles
|
|
50
76
|
const styles = useMemo(() => getStyles(appliedTheme, itemWidth, itemHeight, borderRadius), [appliedTheme, itemWidth, itemHeight, borderRadius]);
|
|
77
|
+
|
|
78
|
+
// Data Management
|
|
51
79
|
const {
|
|
52
|
-
|
|
80
|
+
listData,
|
|
53
81
|
pagination,
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
82
|
+
loadMore,
|
|
83
|
+
isEmpty,
|
|
84
|
+
isPaging: isPaginating
|
|
85
|
+
} = useCards({
|
|
86
|
+
sectionId: section_id,
|
|
87
|
+
data: externalData,
|
|
88
|
+
fetchMore: moreFetchData,
|
|
89
|
+
loading: isLoading,
|
|
90
|
+
initialSkeleton: skeletonCount,
|
|
91
|
+
pagingSkeleton: paginationSkeletonCount,
|
|
92
|
+
adsRender: true
|
|
93
|
+
});
|
|
94
|
+
|
|
95
|
+
// Event Handlers
|
|
57
96
|
const handleItemPress = useCallback(item => onPressItem?.(item), [onPressItem]);
|
|
58
97
|
const handlePressMore = useCallback(() => {
|
|
59
98
|
onPressMore?.({
|
|
@@ -65,32 +104,63 @@ const MovieCardFour = ({
|
|
|
65
104
|
const handleEndReached = useCallback(() => {
|
|
66
105
|
if (!onEndReachedCalledDuringMomentum.current && pagination?.hasNextPage && pagination?.nextPage) {
|
|
67
106
|
onEndReachedCalledDuringMomentum.current = true;
|
|
68
|
-
|
|
107
|
+
loadMore(pagination.nextPage);
|
|
69
108
|
}
|
|
70
|
-
}, [
|
|
109
|
+
}, [loadMore, pagination]);
|
|
110
|
+
const handleMomentumScrollBegin = useCallback(() => {
|
|
111
|
+
onEndReachedCalledDuringMomentum.current = false;
|
|
112
|
+
}, []);
|
|
113
|
+
|
|
114
|
+
// Render Functions
|
|
71
115
|
const renderItem = useCallback(({
|
|
72
116
|
item,
|
|
73
117
|
index
|
|
74
118
|
}) => {
|
|
119
|
+
// Handle ads
|
|
120
|
+
if ('type' in item && item.type === 'ads') {
|
|
121
|
+
const adItem = item;
|
|
122
|
+
return /*#__PURE__*/_jsx(View, {
|
|
123
|
+
style: [styles.item, itemStyle],
|
|
124
|
+
children: /*#__PURE__*/_jsx(AdsPoster, {
|
|
125
|
+
ad: adItem,
|
|
126
|
+
theme: appliedTheme,
|
|
127
|
+
isLoading: isLoading,
|
|
128
|
+
containerStyle: {
|
|
129
|
+
width: itemWidth,
|
|
130
|
+
height: itemHeight
|
|
131
|
+
},
|
|
132
|
+
imageStyle: styles.image,
|
|
133
|
+
borderRadius: borderRadius,
|
|
134
|
+
onDisplayAds: onDisplayAds,
|
|
135
|
+
screenDimensions: screenDimensions,
|
|
136
|
+
viewportOffsets: viewportOffsets
|
|
137
|
+
})
|
|
138
|
+
}, `ad-${adItem.tracking?.impression || index}`);
|
|
139
|
+
}
|
|
140
|
+
// Handle content items
|
|
141
|
+
const contentItem = item;
|
|
142
|
+
const isSkeleton = contentItem._id?.startsWith?.('pagination-skeleton') ?? false;
|
|
75
143
|
return /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
76
144
|
style: [styles.item, itemStyle],
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
posterUri:
|
|
145
|
+
activeOpacity: ITEM_ACTIVE_OPACITY,
|
|
146
|
+
onPress: () => {
|
|
147
|
+
if (!isSkeleton && !isLoading) {
|
|
148
|
+
handleItemPress(contentItem);
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
children: /*#__PURE__*/_jsx(CardPoster, {
|
|
152
|
+
posterUri: contentItem.poster,
|
|
153
|
+
content_offering_type: contentItem.content_offering_type,
|
|
154
|
+
contentType: contentItem.type,
|
|
85
155
|
theme: appliedTheme,
|
|
86
156
|
borderRadius: borderRadius,
|
|
87
157
|
posterWrapperStyle: styles.image,
|
|
88
158
|
resizeMode: FastImage.resizeMode.cover,
|
|
89
|
-
isLoading: isLoading
|
|
159
|
+
isLoading: isSkeleton || isLoading
|
|
90
160
|
})
|
|
91
|
-
});
|
|
92
|
-
}, [
|
|
93
|
-
const renderSkeletonItem = ({
|
|
161
|
+
}, contentItem._id);
|
|
162
|
+
}, [appliedTheme, styles, itemStyle, borderRadius, isLoading, handleItemPress, itemWidth, itemHeight, onDisplayAds, screenDimensions, viewportOffsets]);
|
|
163
|
+
const renderSkeletonItem = useCallback(({
|
|
94
164
|
index
|
|
95
165
|
}) => /*#__PURE__*/_jsx(SkeletonPlaceholder, {
|
|
96
166
|
highlightColor: appliedTheme.colors.skeletonHighlightColor,
|
|
@@ -99,14 +169,19 @@ const MovieCardFour = ({
|
|
|
99
169
|
width: itemWidth,
|
|
100
170
|
height: itemHeight,
|
|
101
171
|
borderRadius: borderRadius,
|
|
102
|
-
marginLeft: index === 0 ?
|
|
103
|
-
marginRight:
|
|
172
|
+
marginLeft: index === 0 ? SKELETON_ITEM_MARGIN_LEFT : 0,
|
|
173
|
+
marginRight: SKELETON_ITEM_MARGIN_RIGHT
|
|
104
174
|
})
|
|
105
|
-
}, `skeleton-${index}`);
|
|
106
|
-
|
|
107
|
-
return
|
|
108
|
-
}
|
|
109
|
-
|
|
175
|
+
}, `skeleton-${index}`), [appliedTheme, itemWidth, itemHeight, borderRadius]);
|
|
176
|
+
const keyExtractor = useCallback((item, index) => {
|
|
177
|
+
return '_id' in item ? item._id : `ad-${index}`;
|
|
178
|
+
}, []);
|
|
179
|
+
|
|
180
|
+
// Early Returns
|
|
181
|
+
if (!externalData) return null;
|
|
182
|
+
if (!isLoading && listData.length === 0 && !isEmpty) return null;
|
|
183
|
+
|
|
184
|
+
// Main Render
|
|
110
185
|
return /*#__PURE__*/_jsx(View, {
|
|
111
186
|
style: [styles.root, containerStyle],
|
|
112
187
|
accessibilityLabel: accessibilityLabel || `Movie section: ${title}`,
|
|
@@ -116,24 +191,21 @@ const MovieCardFour = ({
|
|
|
116
191
|
highlightColor: appliedTheme.colors.skeletonHighlightColor,
|
|
117
192
|
backgroundColor: appliedTheme.colors.skeletonBaseColor,
|
|
118
193
|
children: /*#__PURE__*/_jsx(SkeletonPlaceholder.Item, {
|
|
119
|
-
width:
|
|
120
|
-
height:
|
|
121
|
-
borderRadius:
|
|
122
|
-
marginHorizontal:
|
|
123
|
-
marginBottom:
|
|
194
|
+
width: SKELETON_TITLE_WIDTH,
|
|
195
|
+
height: SKELETON_TITLE_HEIGHT,
|
|
196
|
+
borderRadius: SKELETON_TITLE_BORDER_RADIUS,
|
|
197
|
+
marginHorizontal: SKELETON_TITLE_MARGIN_HORIZONTAL,
|
|
198
|
+
marginBottom: SKELETON_TITLE_MARGIN_BOTTOM
|
|
124
199
|
})
|
|
125
200
|
}), /*#__PURE__*/_jsx(ScrollView, {
|
|
126
201
|
horizontal: true,
|
|
127
202
|
showsHorizontalScrollIndicator: false,
|
|
128
203
|
contentContainerStyle: styles.skeletonList,
|
|
129
|
-
children:
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
index
|
|
135
|
-
}))
|
|
136
|
-
})
|
|
204
|
+
children: Array.from({
|
|
205
|
+
length: skeletonCount
|
|
206
|
+
}).map((_, index) => renderSkeletonItem({
|
|
207
|
+
index
|
|
208
|
+
}))
|
|
137
209
|
})]
|
|
138
210
|
}) : /*#__PURE__*/_jsxs(_Fragment, {
|
|
139
211
|
children: [/*#__PURE__*/_jsx(NavigateToMore, {
|
|
@@ -149,21 +221,15 @@ const MovieCardFour = ({
|
|
|
149
221
|
}
|
|
150
222
|
}), /*#__PURE__*/_jsx(FlatList, {
|
|
151
223
|
ref: flatListRef,
|
|
152
|
-
data:
|
|
224
|
+
data: listData,
|
|
153
225
|
horizontal: true,
|
|
154
|
-
keyExtractor:
|
|
226
|
+
keyExtractor: keyExtractor,
|
|
155
227
|
renderItem: renderItem,
|
|
156
228
|
showsHorizontalScrollIndicator: false,
|
|
157
229
|
contentContainerStyle: styles.listContent,
|
|
158
|
-
initialNumToRender: 5,
|
|
159
230
|
onEndReached: handleEndReached,
|
|
160
|
-
onEndReachedThreshold:
|
|
161
|
-
|
|
162
|
-
onEndReachedCalledDuringMomentum.current = false;
|
|
163
|
-
},
|
|
164
|
-
onMomentumScrollBegin: () => {
|
|
165
|
-
onEndReachedCalledDuringMomentum.current = false;
|
|
166
|
-
},
|
|
231
|
+
onEndReachedThreshold: END_REACHED_THRESHOLD,
|
|
232
|
+
onMomentumScrollBegin: handleMomentumScrollBegin,
|
|
167
233
|
ListFooterComponent: isPaginating ? renderSkeletonItem({
|
|
168
234
|
index: 0
|
|
169
235
|
}) : null
|
|
@@ -171,12 +237,14 @@ const MovieCardFour = ({
|
|
|
171
237
|
})
|
|
172
238
|
});
|
|
173
239
|
};
|
|
240
|
+
|
|
241
|
+
// Styles
|
|
174
242
|
const getStyles = (theme, width, height, radius) => StyleSheet.create({
|
|
175
243
|
root: {
|
|
176
244
|
marginVertical: verticalScale(6)
|
|
177
245
|
},
|
|
178
246
|
item: {
|
|
179
|
-
marginLeft:
|
|
247
|
+
marginLeft: ITEM_MARGIN_LEFT
|
|
180
248
|
},
|
|
181
249
|
image: {
|
|
182
250
|
width,
|
|
@@ -193,12 +261,12 @@ const getStyles = (theme, width, height, radius) => StyleSheet.create({
|
|
|
193
261
|
fontWeight: '600'
|
|
194
262
|
},
|
|
195
263
|
listContent: {
|
|
196
|
-
paddingRight:
|
|
264
|
+
paddingRight: LIST_CONTENT_PADDING_RIGHT
|
|
197
265
|
},
|
|
198
266
|
skeletonList: {
|
|
199
267
|
flexDirection: 'row',
|
|
200
268
|
alignItems: 'flex-start',
|
|
201
|
-
paddingRight:
|
|
269
|
+
paddingRight: SKELETON_LIST_PADDING_RIGHT
|
|
202
270
|
}
|
|
203
271
|
});
|
|
204
272
|
export default /*#__PURE__*/memo(MovieCardFour);
|