@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.
Files changed (667) hide show
  1. package/lib/module/components/Auth/AuthProvider/AuthProvider.js +5 -2
  2. package/lib/module/components/Auth/AuthProvider/AuthProvider.js.map +1 -1
  3. package/lib/module/components/Auth/One/ForgotPassword/ForgotPassword.js +232 -0
  4. package/lib/module/components/Auth/One/ForgotPassword/ForgotPassword.js.map +1 -0
  5. package/lib/module/components/Auth/One/Login/LoginWithEmail.js +324 -0
  6. package/lib/module/components/Auth/One/Login/LoginWithEmail.js.map +1 -0
  7. package/lib/module/components/Auth/{Login → One/Login}/LoginWithPhone.js +13 -11
  8. package/lib/module/components/Auth/One/Login/LoginWithPhone.js.map +1 -0
  9. package/lib/module/components/Auth/One/OTP/OTP.js +301 -0
  10. package/lib/module/components/Auth/One/OTP/OTP.js.map +1 -0
  11. package/lib/module/components/Auth/One/QrLogin/QrLogin.js +479 -0
  12. package/lib/module/components/Auth/One/QrLogin/QrLogin.js.map +1 -0
  13. package/lib/module/components/Auth/One/QrLogin/components/QrViewArea.js +295 -0
  14. package/lib/module/components/Auth/One/QrLogin/components/QrViewArea.js.map +1 -0
  15. package/lib/module/components/Auth/One/SignUp/SignUp.js +362 -0
  16. package/lib/module/components/Auth/One/SignUp/SignUp.js.map +1 -0
  17. package/lib/module/components/Auth/{SplashScreen → One/SplashScreen}/SplashScreen.js +8 -5
  18. package/lib/module/components/Auth/One/SplashScreen/SplashScreen.js.map +1 -0
  19. package/lib/module/components/Auth/One/SplashScreen/components/SplashImage/SplashImage.js +80 -0
  20. package/lib/module/components/Auth/One/SplashScreen/components/SplashImage/SplashImage.js.map +1 -0
  21. package/lib/module/components/Auth/{SplashScreen → One/SplashScreen}/components/SplashLottie/SplashLottie.js +1 -1
  22. package/lib/module/components/Auth/One/SplashScreen/components/SplashLottie/SplashLottie.js.map +1 -0
  23. package/lib/module/components/Auth/{SplashScreen → One/SplashScreen}/components/SplashVideo/SplashVideo.js +42 -21
  24. package/lib/module/components/Auth/One/SplashScreen/components/SplashVideo/SplashVideo.js.map +1 -0
  25. package/lib/module/components/Auth/One/index.js +25 -0
  26. package/lib/module/components/Auth/One/index.js.map +1 -0
  27. package/lib/module/components/Auth/Two/AuthHeader/AuthHeader.js +93 -0
  28. package/lib/module/components/Auth/Two/AuthHeader/AuthHeader.js.map +1 -0
  29. package/lib/module/components/Auth/{ForgotPassword → Two/ForgotPassword}/ForgotPassword.js +55 -28
  30. package/lib/module/components/Auth/Two/ForgotPassword/ForgotPassword.js.map +1 -0
  31. package/lib/module/components/Auth/Two/Login/AuthLoginShell.js +138 -0
  32. package/lib/module/components/Auth/Two/Login/AuthLoginShell.js.map +1 -0
  33. package/lib/module/components/Auth/Two/Login/LoginWithEmail.js +226 -0
  34. package/lib/module/components/Auth/Two/Login/LoginWithEmail.js.map +1 -0
  35. package/lib/module/components/Auth/Two/Login/LoginWithPhone.js +143 -0
  36. package/lib/module/components/Auth/Two/Login/LoginWithPhone.js.map +1 -0
  37. package/lib/module/components/Auth/{OTP → Two/OTP}/OTP.js +93 -63
  38. package/lib/module/components/Auth/Two/OTP/OTP.js.map +1 -0
  39. package/lib/module/components/Auth/Two/QrLogin/QrLogin.js +479 -0
  40. package/lib/module/components/Auth/Two/QrLogin/QrLogin.js.map +1 -0
  41. package/lib/module/components/Auth/Two/QrLogin/components/QrViewArea.js +295 -0
  42. package/lib/module/components/Auth/Two/QrLogin/components/QrViewArea.js.map +1 -0
  43. package/lib/module/components/Auth/Two/SignUp/SignUp.js +379 -0
  44. package/lib/module/components/Auth/Two/SignUp/SignUp.js.map +1 -0
  45. package/lib/module/components/Auth/Two/SplashScreen/SplashScreen.js +141 -0
  46. package/lib/module/components/Auth/Two/SplashScreen/SplashScreen.js.map +1 -0
  47. package/lib/module/components/Auth/{SplashScreen → Two/SplashScreen}/components/SplashImage/SplashImage.js +1 -1
  48. package/lib/module/components/Auth/Two/SplashScreen/components/SplashImage/SplashImage.js.map +1 -0
  49. package/lib/module/components/Auth/Two/SplashScreen/components/SplashLottie/SplashLottie.js +63 -0
  50. package/lib/module/components/Auth/Two/SplashScreen/components/SplashLottie/SplashLottie.js.map +1 -0
  51. package/lib/module/components/Auth/Two/SplashScreen/components/SplashVideo/SplashVideo.js +157 -0
  52. package/lib/module/components/Auth/Two/SplashScreen/components/SplashVideo/SplashVideo.js.map +1 -0
  53. package/lib/module/components/Auth/Two/index.js +29 -0
  54. package/lib/module/components/Auth/Two/index.js.map +1 -0
  55. package/lib/module/components/Auth/index.js +7 -22
  56. package/lib/module/components/Auth/index.js.map +1 -1
  57. package/lib/module/components/BackgroundLayout/BackgroundLayout.js +7 -3
  58. package/lib/module/components/BackgroundLayout/BackgroundLayout.js.map +1 -1
  59. package/lib/module/components/BackgroundLayout/BackgroundLayoutOne.js +52 -0
  60. package/lib/module/components/BackgroundLayout/BackgroundLayoutOne.js.map +1 -0
  61. package/lib/module/components/BottomSheet/BottomSheet.js +7 -3
  62. package/lib/module/components/BottomSheet/BottomSheet.js.map +1 -1
  63. package/lib/module/components/BottomSheet/BottomSheetOne.js +170 -0
  64. package/lib/module/components/BottomSheet/BottomSheetOne.js.map +1 -0
  65. package/lib/module/components/BottomSheet/index.js +1 -0
  66. package/lib/module/components/BottomSheet/index.js.map +1 -1
  67. package/lib/module/components/Button/PrimaryBtn.js +16 -6
  68. package/lib/module/components/Button/PrimaryBtn.js.map +1 -1
  69. package/lib/module/components/Content/Card/Category/Category.js +88 -13
  70. package/lib/module/components/Content/Card/Category/Category.js.map +1 -1
  71. package/lib/module/components/Content/Card/Category/CategroyTwo.js +287 -0
  72. package/lib/module/components/Content/Card/Category/CategroyTwo.js.map +1 -0
  73. package/lib/module/components/Content/Card/NowWatching/NowWatching.js +237 -108
  74. package/lib/module/components/Content/Card/NowWatching/NowWatching.js.map +1 -1
  75. package/lib/module/components/Content/Card/Sliders/Styles/One.js +191 -132
  76. package/lib/module/components/Content/Card/Sliders/Styles/One.js.map +1 -1
  77. package/lib/module/components/Content/Card/Sliders/Styles/Three.js +714 -0
  78. package/lib/module/components/Content/Card/Sliders/Styles/Three.js.map +1 -0
  79. package/lib/module/components/Content/Card/Sliders/Styles/Two.js +139 -92
  80. package/lib/module/components/Content/Card/Sliders/Styles/Two.js.map +1 -1
  81. package/lib/module/components/Content/Card/Sliders/index.js +3 -1
  82. package/lib/module/components/Content/Card/Sliders/index.js.map +1 -1
  83. package/lib/module/components/Content/Card/Styles/Five.js +132 -48
  84. package/lib/module/components/Content/Card/Styles/Five.js.map +1 -1
  85. package/lib/module/components/Content/Card/Styles/Four.js +127 -59
  86. package/lib/module/components/Content/Card/Styles/Four.js.map +1 -1
  87. package/lib/module/components/Content/Card/Styles/One.js +126 -50
  88. package/lib/module/components/Content/Card/Styles/One.js.map +1 -1
  89. package/lib/module/components/Content/Card/Styles/RotateInOut.js +139 -53
  90. package/lib/module/components/Content/Card/Styles/RotateInOut.js.map +1 -1
  91. package/lib/module/components/Content/Card/Styles/Six.js +207 -115
  92. package/lib/module/components/Content/Card/Styles/Six.js.map +1 -1
  93. package/lib/module/components/Content/Card/Styles/Three.js +119 -94
  94. package/lib/module/components/Content/Card/Styles/Three.js.map +1 -1
  95. package/lib/module/components/Content/Card/Styles/TopTen.js +187 -171
  96. package/lib/module/components/Content/Card/Styles/TopTen.js.map +1 -1
  97. package/lib/module/components/Content/Card/Styles/Two.js +145 -64
  98. package/lib/module/components/Content/Card/Styles/Two.js.map +1 -1
  99. package/lib/module/components/Content/Card/components/AdsPoster.js +162 -0
  100. package/lib/module/components/Content/Card/components/AdsPoster.js.map +1 -0
  101. package/lib/module/components/Content/Card/components/CardPoster.js +217 -135
  102. package/lib/module/components/Content/Card/components/CardPoster.js.map +1 -1
  103. package/lib/module/components/Content/Card/components/NavigateToMore.js +26 -2
  104. package/lib/module/components/Content/Card/components/NavigateToMore.js.map +1 -1
  105. package/lib/module/components/Content/Card/components/index.js +4 -0
  106. package/lib/module/components/Content/Card/components/index.js.map +1 -0
  107. package/lib/module/components/Content/Content.js +90 -33
  108. package/lib/module/components/Content/Content.js.map +1 -1
  109. package/lib/module/components/Content/Sections.js +41 -11
  110. package/lib/module/components/Content/Sections.js.map +1 -1
  111. package/lib/module/components/Content/types.js +4 -0
  112. package/lib/module/components/Content/types.js.map +1 -0
  113. package/lib/module/components/ContentView/MoreContentList.js +1 -0
  114. package/lib/module/components/ContentView/MoreContentList.js.map +1 -1
  115. package/lib/module/components/ContentView/{ContentView.js → One/ContentViewOne.js} +6 -5
  116. package/lib/module/components/ContentView/One/ContentViewOne.js.map +1 -0
  117. package/lib/module/components/ContentView/{components → One/components}/AboutSection.js +2 -2
  118. package/lib/module/components/ContentView/One/components/AboutSection.js.map +1 -0
  119. package/lib/module/components/ContentView/{components → One/components}/CastCard.js +2 -2
  120. package/lib/module/components/ContentView/One/components/CastCard.js.map +1 -0
  121. package/lib/module/components/ContentView/{components → One/components}/EpisodeCard.js +5 -6
  122. package/lib/module/components/ContentView/One/components/EpisodeCard.js.map +1 -0
  123. package/lib/module/components/ContentView/{components → One/components}/GenreTags.js +2 -2
  124. package/lib/module/components/ContentView/One/components/GenreTags.js.map +1 -0
  125. package/lib/module/components/ContentView/{components → One/components}/HeroBanner.js +45 -44
  126. package/lib/module/components/ContentView/One/components/HeroBanner.js.map +1 -0
  127. package/lib/module/components/ContentView/{components → One/components}/MiniInfo.js +50 -5
  128. package/lib/module/components/ContentView/One/components/MiniInfo.js.map +1 -0
  129. package/lib/module/components/ContentView/{components → One/components}/PlayButton.js +1 -1
  130. package/lib/module/components/ContentView/One/components/PlayButton.js.map +1 -0
  131. package/lib/module/components/ContentView/{components → One/components}/Title.js +1 -1
  132. package/lib/module/components/ContentView/One/components/Title.js.map +1 -0
  133. package/lib/module/components/ContentView/{components → One/components}/TrailerButton.js +2 -2
  134. package/lib/module/components/ContentView/One/components/TrailerButton.js.map +1 -0
  135. package/lib/module/components/ContentView/Two/ContentViewTwo.js +220 -0
  136. package/lib/module/components/ContentView/Two/ContentViewTwo.js.map +1 -0
  137. package/lib/module/components/ContentView/Two/components/AboutSection.js +150 -0
  138. package/lib/module/components/ContentView/Two/components/AboutSection.js.map +1 -0
  139. package/lib/module/components/ContentView/Two/components/Details.js +156 -0
  140. package/lib/module/components/ContentView/Two/components/Details.js.map +1 -0
  141. package/lib/module/components/ContentView/Two/components/EpisodeCard.js +425 -0
  142. package/lib/module/components/ContentView/Two/components/EpisodeCard.js.map +1 -0
  143. package/lib/module/components/ContentView/Two/components/GenreTags.js +86 -0
  144. package/lib/module/components/ContentView/Two/components/GenreTags.js.map +1 -0
  145. package/lib/module/components/ContentView/Two/components/HeroBanner.js +339 -0
  146. package/lib/module/components/ContentView/Two/components/HeroBanner.js.map +1 -0
  147. package/lib/module/components/ContentView/Two/components/LikeShareActions.js +88 -0
  148. package/lib/module/components/ContentView/Two/components/LikeShareActions.js.map +1 -0
  149. package/lib/module/components/ContentView/Two/components/MoreLikeThisContentList .js +235 -0
  150. package/lib/module/components/ContentView/Two/components/MoreLikeThisContentList .js.map +1 -0
  151. package/lib/module/components/ContentView/Two/components/PlayOrTrailer.js +120 -0
  152. package/lib/module/components/ContentView/Two/components/PlayOrTrailer.js.map +1 -0
  153. package/lib/module/components/ContentView/Two/components/SectionTabs.js +112 -0
  154. package/lib/module/components/ContentView/Two/components/SectionTabs.js.map +1 -0
  155. package/lib/module/components/ContentView/Two/components/Title.js +146 -0
  156. package/lib/module/components/ContentView/Two/components/Title.js.map +1 -0
  157. package/lib/module/components/ContentView/Two/components/index.js +18 -0
  158. package/lib/module/components/ContentView/Two/components/index.js.map +1 -0
  159. package/lib/module/components/ContentView/index.js +6 -1
  160. package/lib/module/components/ContentView/index.js.map +1 -1
  161. package/lib/module/components/Headers/Four.js +68 -0
  162. package/lib/module/components/Headers/Four.js.map +1 -0
  163. package/lib/module/components/Headers/Three.js +75 -24
  164. package/lib/module/components/Headers/Three.js.map +1 -1
  165. package/lib/module/components/Headers/index.js +3 -1
  166. package/lib/module/components/Headers/index.js.map +1 -1
  167. package/lib/module/components/Input/Input.js +5 -1
  168. package/lib/module/components/Input/Input.js.map +1 -1
  169. package/lib/module/components/Input/InputThree.js +157 -0
  170. package/lib/module/components/Input/InputThree.js.map +1 -0
  171. package/lib/module/components/Input/PhoneNumberInput.js.map +1 -1
  172. package/lib/module/components/Input/PhoneNumberInputTwo.js +316 -0
  173. package/lib/module/components/Input/PhoneNumberInputTwo.js.map +1 -0
  174. package/lib/module/components/Loader/Loader.js +14 -6
  175. package/lib/module/components/Loader/Loader.js.map +1 -1
  176. package/lib/module/components/Logo/Logo.js +42 -17
  177. package/lib/module/components/Logo/Logo.js.map +1 -1
  178. package/lib/module/components/NewRelease/NewReleaseSheet.js +227 -0
  179. package/lib/module/components/NewRelease/NewReleaseSheet.js.map +1 -0
  180. package/lib/module/components/NewRelease/index.js +4 -0
  181. package/lib/module/components/NewRelease/index.js.map +1 -0
  182. package/lib/module/components/Reels/ReelsSeries/MediaControls/BottomControls.js +92 -17
  183. package/lib/module/components/Reels/ReelsSeries/MediaControls/BottomControls.js.map +1 -1
  184. package/lib/module/components/Reels/ReelsSeries/MediaControls/MediaControlsProvider.js +65 -2
  185. package/lib/module/components/Reels/ReelsSeries/MediaControls/MediaControlsProvider.js.map +1 -1
  186. package/lib/module/components/Reels/ReelsSeries/MediaControls/RightControls.js +2 -1
  187. package/lib/module/components/Reels/ReelsSeries/MediaControls/RightControls.js.map +1 -1
  188. package/lib/module/components/Reels/ReelsSeries/Model/SettingModal.js +4 -2
  189. package/lib/module/components/Reels/ReelsSeries/Model/SettingModal.js.map +1 -1
  190. package/lib/module/components/Reels/ReelsSeries/ReelsSeries.js +80 -46
  191. package/lib/module/components/Reels/ReelsSeries/ReelsSeries.js.map +1 -1
  192. package/lib/module/components/Reels/ReelsSeries/ReelsSeriesItem.js +78 -29
  193. package/lib/module/components/Reels/ReelsSeries/ReelsSeriesItem.js.map +1 -1
  194. package/lib/module/components/Reels/ReelsSeries/components/VideoControls/QualityControl.js +21 -34
  195. package/lib/module/components/Reels/ReelsSeries/components/VideoControls/QualityControl.js.map +1 -1
  196. package/lib/module/components/Reels/ReelsSeries/useReelsWatchProgress.js +58 -0
  197. package/lib/module/components/Reels/ReelsSeries/useReelsWatchProgress.js.map +1 -0
  198. package/lib/module/components/Reels/ReelsSeries/utils/quality.js +44 -0
  199. package/lib/module/components/Reels/ReelsSeries/utils/quality.js.map +1 -0
  200. package/lib/module/components/Reels/index.js +1 -0
  201. package/lib/module/components/Reels/index.js.map +1 -1
  202. package/lib/module/components/Search/One.js +7 -4
  203. package/lib/module/components/Search/One.js.map +1 -1
  204. package/lib/module/components/Search/components/SearchCard.js +59 -7
  205. package/lib/module/components/Search/components/SearchCard.js.map +1 -1
  206. package/lib/module/components/User/PurchaseHistory/PurchaseHistory.js +2 -1
  207. package/lib/module/components/User/PurchaseHistory/PurchaseHistory.js.map +1 -1
  208. package/lib/module/components/User/WatchHistory/WatchHistory.js +1 -0
  209. package/lib/module/components/User/WatchHistory/WatchHistory.js.map +1 -1
  210. package/lib/module/components/User/WatchLater/WatchLater.js +1 -0
  211. package/lib/module/components/User/WatchLater/WatchLater.js.map +1 -1
  212. package/lib/module/components/common/AppStatusBar.js +2 -1
  213. package/lib/module/components/common/AppStatusBar.js.map +1 -1
  214. package/lib/module/components/index.js +1 -0
  215. package/lib/module/components/index.js.map +1 -1
  216. package/lib/module/constants/dummySections.js +47 -5
  217. package/lib/module/constants/dummySections.js.map +1 -1
  218. package/lib/module/hooks/Images/index.js +5 -0
  219. package/lib/module/hooks/Images/index.js.map +1 -0
  220. package/lib/module/hooks/Images/useImageLoader.js +168 -0
  221. package/lib/module/hooks/Images/useImageLoader.js.map +1 -0
  222. package/lib/module/hooks/Images/useImageValidation.js +36 -0
  223. package/lib/module/hooks/Images/useImageValidation.js.map +1 -0
  224. package/lib/module/hooks/index.js +3 -0
  225. package/lib/module/hooks/index.js.map +1 -1
  226. package/lib/module/hooks/useAdTracking.js +270 -0
  227. package/lib/module/hooks/useAdTracking.js.map +1 -0
  228. package/lib/module/hooks/useCards.js +164 -0
  229. package/lib/module/hooks/useCards.js.map +1 -0
  230. package/lib/module/hooks/usePaginatedSection.js +11 -6
  231. package/lib/module/hooks/usePaginatedSection.js.map +1 -1
  232. package/lib/module/hooks/useSplashCache.js +78 -60
  233. package/lib/module/hooks/useSplashCache.js.map +1 -1
  234. package/lib/module/theme/ThemeProvider.js +14 -2
  235. package/lib/module/theme/ThemeProvider.js.map +1 -1
  236. package/lib/module/theme/hook/index.js +0 -1
  237. package/lib/module/theme/hook/index.js.map +1 -1
  238. package/lib/module/theme/hook/useInternalTheme.js +21 -7
  239. package/lib/module/theme/hook/useInternalTheme.js.map +1 -1
  240. package/lib/module/theme/themes.js +2 -0
  241. package/lib/module/theme/themes.js.map +1 -1
  242. package/lib/module/theme/utils/validateColor.js +84 -0
  243. package/lib/module/theme/utils/validateColor.js.map +1 -0
  244. package/lib/module/utils/colorUtils.js +68 -0
  245. package/lib/module/utils/colorUtils.js.map +1 -0
  246. package/lib/typescript/src/components/Auth/{ForgotPassword → One/ForgotPassword}/ForgotPassword.d.ts +1 -1
  247. package/lib/typescript/src/components/Auth/One/ForgotPassword/ForgotPassword.d.ts.map +1 -0
  248. package/lib/typescript/src/components/Auth/{Login → One/Login}/LoginWithEmail.d.ts +1 -1
  249. package/lib/typescript/src/components/Auth/One/Login/LoginWithEmail.d.ts.map +1 -0
  250. package/lib/typescript/src/components/Auth/{Login → One/Login}/LoginWithPhone.d.ts +1 -1
  251. package/lib/typescript/src/components/Auth/One/Login/LoginWithPhone.d.ts.map +1 -0
  252. package/lib/typescript/src/components/Auth/{OTP → One/OTP}/OTP.d.ts +1 -1
  253. package/lib/typescript/src/components/Auth/One/OTP/OTP.d.ts.map +1 -0
  254. package/lib/typescript/src/components/Auth/{QrLogin → One/QrLogin}/QrLogin.d.ts +3 -1
  255. package/lib/typescript/src/components/Auth/One/QrLogin/QrLogin.d.ts.map +1 -0
  256. package/lib/typescript/src/components/Auth/{QrLogin → One/QrLogin}/components/QrViewArea.d.ts +1 -1
  257. package/lib/typescript/src/components/Auth/One/QrLogin/components/QrViewArea.d.ts.map +1 -0
  258. package/lib/typescript/src/components/Auth/{SignUp → One/SignUp}/SignUp.d.ts +1 -1
  259. package/lib/typescript/src/components/Auth/One/SignUp/SignUp.d.ts.map +1 -0
  260. package/lib/typescript/src/components/Auth/{SplashScreen → One/SplashScreen}/SplashScreen.d.ts +1 -1
  261. package/lib/typescript/src/components/Auth/One/SplashScreen/SplashScreen.d.ts.map +1 -0
  262. package/lib/typescript/src/components/Auth/One/SplashScreen/components/SplashImage/SplashImage.d.ts +14 -0
  263. package/lib/typescript/src/components/Auth/One/SplashScreen/components/SplashImage/SplashImage.d.ts.map +1 -0
  264. package/lib/typescript/src/components/Auth/One/SplashScreen/components/SplashLottie/SplashLottie.d.ts.map +1 -0
  265. package/lib/typescript/src/components/Auth/One/SplashScreen/components/SplashVideo/SplashVideo.d.ts.map +1 -0
  266. package/lib/typescript/src/components/Auth/One/index.d.ts +234 -0
  267. package/lib/typescript/src/components/Auth/One/index.d.ts.map +1 -0
  268. package/lib/typescript/src/components/Auth/Two/AuthHeader/AuthHeader.d.ts +16 -0
  269. package/lib/typescript/src/components/Auth/Two/AuthHeader/AuthHeader.d.ts.map +1 -0
  270. package/lib/typescript/src/components/Auth/Two/ForgotPassword/ForgotPassword.d.ts +53 -0
  271. package/lib/typescript/src/components/Auth/Two/ForgotPassword/ForgotPassword.d.ts.map +1 -0
  272. package/lib/typescript/src/components/Auth/Two/Login/AuthLoginShell.d.ts +17 -0
  273. package/lib/typescript/src/components/Auth/Two/Login/AuthLoginShell.d.ts.map +1 -0
  274. package/lib/typescript/src/components/Auth/Two/Login/LoginWithEmail.d.ts +52 -0
  275. package/lib/typescript/src/components/Auth/Two/Login/LoginWithEmail.d.ts.map +1 -0
  276. package/lib/typescript/src/components/Auth/Two/Login/LoginWithPhone.d.ts +37 -0
  277. package/lib/typescript/src/components/Auth/Two/Login/LoginWithPhone.d.ts.map +1 -0
  278. package/lib/typescript/src/components/Auth/Two/OTP/OTP.d.ts +63 -0
  279. package/lib/typescript/src/components/Auth/Two/OTP/OTP.d.ts.map +1 -0
  280. package/lib/typescript/src/components/Auth/Two/QrLogin/QrLogin.d.ts +19 -0
  281. package/lib/typescript/src/components/Auth/Two/QrLogin/QrLogin.d.ts.map +1 -0
  282. package/lib/typescript/src/components/Auth/Two/QrLogin/components/QrViewArea.d.ts +14 -0
  283. package/lib/typescript/src/components/Auth/Two/QrLogin/components/QrViewArea.d.ts.map +1 -0
  284. package/lib/typescript/src/components/Auth/Two/SignUp/SignUp.d.ts +67 -0
  285. package/lib/typescript/src/components/Auth/Two/SignUp/SignUp.d.ts.map +1 -0
  286. package/lib/typescript/src/components/Auth/Two/SplashScreen/SplashScreen.d.ts +35 -0
  287. package/lib/typescript/src/components/Auth/Two/SplashScreen/SplashScreen.d.ts.map +1 -0
  288. package/lib/typescript/src/components/Auth/Two/SplashScreen/components/SplashImage/SplashImage.d.ts.map +1 -0
  289. package/lib/typescript/src/components/Auth/Two/SplashScreen/components/SplashLottie/SplashLottie.d.ts +17 -0
  290. package/lib/typescript/src/components/Auth/Two/SplashScreen/components/SplashLottie/SplashLottie.d.ts.map +1 -0
  291. package/lib/typescript/src/components/Auth/Two/SplashScreen/components/SplashVideo/SplashVideo.d.ts +20 -0
  292. package/lib/typescript/src/components/Auth/Two/SplashScreen/components/SplashVideo/SplashVideo.d.ts.map +1 -0
  293. package/lib/typescript/src/components/Auth/Two/index.d.ts +220 -0
  294. package/lib/typescript/src/components/Auth/Two/index.d.ts.map +1 -0
  295. package/lib/typescript/src/components/Auth/index.d.ts +447 -232
  296. package/lib/typescript/src/components/Auth/index.d.ts.map +1 -1
  297. package/lib/typescript/src/components/BackgroundLayout/BackgroundLayout.d.ts.map +1 -1
  298. package/lib/typescript/src/components/BackgroundLayout/BackgroundLayoutOne.d.ts +7 -0
  299. package/lib/typescript/src/components/BackgroundLayout/BackgroundLayoutOne.d.ts.map +1 -0
  300. package/lib/typescript/src/components/BottomSheet/BottomSheet.d.ts.map +1 -1
  301. package/lib/typescript/src/components/BottomSheet/BottomSheetOne.d.ts +19 -0
  302. package/lib/typescript/src/components/BottomSheet/BottomSheetOne.d.ts.map +1 -0
  303. package/lib/typescript/src/components/BottomSheet/index.d.ts +2 -0
  304. package/lib/typescript/src/components/BottomSheet/index.d.ts.map +1 -1
  305. package/lib/typescript/src/components/Button/PrimaryBtn.d.ts +1 -0
  306. package/lib/typescript/src/components/Button/PrimaryBtn.d.ts.map +1 -1
  307. package/lib/typescript/src/components/Button/index.d.ts +1 -0
  308. package/lib/typescript/src/components/Button/index.d.ts.map +1 -1
  309. package/lib/typescript/src/components/Content/Card/Category/Category.d.ts.map +1 -1
  310. package/lib/typescript/src/components/Content/Card/Category/CategroyTwo.d.ts +26 -0
  311. package/lib/typescript/src/components/Content/Card/Category/CategroyTwo.d.ts.map +1 -0
  312. package/lib/typescript/src/components/Content/Card/NowWatching/NowWatching.d.ts.map +1 -1
  313. package/lib/typescript/src/components/Content/Card/Sliders/Styles/One.d.ts.map +1 -1
  314. package/lib/typescript/src/components/Content/Card/Sliders/Styles/Three.d.ts +19 -0
  315. package/lib/typescript/src/components/Content/Card/Sliders/Styles/Three.d.ts.map +1 -0
  316. package/lib/typescript/src/components/Content/Card/Sliders/Styles/Two.d.ts.map +1 -1
  317. package/lib/typescript/src/components/Content/Card/Sliders/index.d.ts +11 -0
  318. package/lib/typescript/src/components/Content/Card/Sliders/index.d.ts.map +1 -1
  319. package/lib/typescript/src/components/Content/Card/Styles/Five.d.ts +13 -1
  320. package/lib/typescript/src/components/Content/Card/Styles/Five.d.ts.map +1 -1
  321. package/lib/typescript/src/components/Content/Card/Styles/Four.d.ts +13 -1
  322. package/lib/typescript/src/components/Content/Card/Styles/Four.d.ts.map +1 -1
  323. package/lib/typescript/src/components/Content/Card/Styles/One.d.ts +15 -3
  324. package/lib/typescript/src/components/Content/Card/Styles/One.d.ts.map +1 -1
  325. package/lib/typescript/src/components/Content/Card/Styles/RotateInOut.d.ts +13 -1
  326. package/lib/typescript/src/components/Content/Card/Styles/RotateInOut.d.ts.map +1 -1
  327. package/lib/typescript/src/components/Content/Card/Styles/Six.d.ts +1 -0
  328. package/lib/typescript/src/components/Content/Card/Styles/Six.d.ts.map +1 -1
  329. package/lib/typescript/src/components/Content/Card/Styles/Three.d.ts +13 -5
  330. package/lib/typescript/src/components/Content/Card/Styles/Three.d.ts.map +1 -1
  331. package/lib/typescript/src/components/Content/Card/Styles/TopTen.d.ts +1 -0
  332. package/lib/typescript/src/components/Content/Card/Styles/TopTen.d.ts.map +1 -1
  333. package/lib/typescript/src/components/Content/Card/Styles/Two.d.ts +13 -1
  334. package/lib/typescript/src/components/Content/Card/Styles/Two.d.ts.map +1 -1
  335. package/lib/typescript/src/components/Content/Card/components/AdsPoster.d.ts +26 -0
  336. package/lib/typescript/src/components/Content/Card/components/AdsPoster.d.ts.map +1 -0
  337. package/lib/typescript/src/components/Content/Card/components/CardPoster.d.ts +4 -1
  338. package/lib/typescript/src/components/Content/Card/components/CardPoster.d.ts.map +1 -1
  339. package/lib/typescript/src/components/Content/Card/components/NavigateToMore.d.ts +3 -0
  340. package/lib/typescript/src/components/Content/Card/components/NavigateToMore.d.ts.map +1 -1
  341. package/lib/typescript/src/components/Content/Card/components/index.d.ts +2 -0
  342. package/lib/typescript/src/components/Content/Card/components/index.d.ts.map +1 -0
  343. package/lib/typescript/src/components/Content/Card/index.d.ts +76 -6
  344. package/lib/typescript/src/components/Content/Card/index.d.ts.map +1 -1
  345. package/lib/typescript/src/components/Content/Content.d.ts +2 -51
  346. package/lib/typescript/src/components/Content/Content.d.ts.map +1 -1
  347. package/lib/typescript/src/components/Content/Sections.d.ts +2 -39
  348. package/lib/typescript/src/components/Content/Sections.d.ts.map +1 -1
  349. package/lib/typescript/src/components/Content/types.d.ts +149 -0
  350. package/lib/typescript/src/components/Content/types.d.ts.map +1 -0
  351. package/lib/typescript/src/components/ContentView/MoreContentList.d.ts.map +1 -1
  352. package/lib/typescript/src/components/ContentView/One/ContentViewOne.d.ts +15 -0
  353. package/lib/typescript/src/components/ContentView/One/ContentViewOne.d.ts.map +1 -0
  354. package/lib/typescript/src/components/ContentView/{components → One/components}/AboutSection.d.ts +1 -1
  355. package/lib/typescript/src/components/ContentView/One/components/AboutSection.d.ts.map +1 -0
  356. package/lib/typescript/src/components/ContentView/{components → One/components}/CastCard.d.ts +1 -1
  357. package/lib/typescript/src/components/ContentView/One/components/CastCard.d.ts.map +1 -0
  358. package/lib/typescript/src/components/ContentView/{components → One/components}/EpisodeCard.d.ts +1 -1
  359. package/lib/typescript/src/components/ContentView/One/components/EpisodeCard.d.ts.map +1 -0
  360. package/lib/typescript/src/components/ContentView/{components → One/components}/GenreTags.d.ts +1 -1
  361. package/lib/typescript/src/components/ContentView/One/components/GenreTags.d.ts.map +1 -0
  362. package/lib/typescript/src/components/ContentView/{components → One/components}/HeroBanner.d.ts +1 -1
  363. package/lib/typescript/src/components/ContentView/One/components/HeroBanner.d.ts.map +1 -0
  364. package/lib/typescript/src/components/ContentView/{components → One/components}/MiniInfo.d.ts +1 -1
  365. package/lib/typescript/src/components/ContentView/One/components/MiniInfo.d.ts.map +1 -0
  366. package/lib/typescript/src/components/ContentView/One/components/PlayButton.d.ts.map +1 -0
  367. package/lib/typescript/src/components/ContentView/{components → One/components}/Title.d.ts +1 -1
  368. package/lib/typescript/src/components/ContentView/One/components/Title.d.ts.map +1 -0
  369. package/lib/typescript/src/components/ContentView/One/components/TrailerButton.d.ts.map +1 -0
  370. package/lib/typescript/src/components/ContentView/Two/ContentViewTwo.d.ts +18 -0
  371. package/lib/typescript/src/components/ContentView/Two/ContentViewTwo.d.ts.map +1 -0
  372. package/lib/typescript/src/components/ContentView/Two/components/AboutSection.d.ts +27 -0
  373. package/lib/typescript/src/components/ContentView/Two/components/AboutSection.d.ts.map +1 -0
  374. package/lib/typescript/src/components/ContentView/Two/components/Details.d.ts +15 -0
  375. package/lib/typescript/src/components/ContentView/Two/components/Details.d.ts.map +1 -0
  376. package/lib/typescript/src/components/ContentView/Two/components/EpisodeCard.d.ts +23 -0
  377. package/lib/typescript/src/components/ContentView/Two/components/EpisodeCard.d.ts.map +1 -0
  378. package/lib/typescript/src/components/ContentView/Two/components/GenreTags.d.ts +22 -0
  379. package/lib/typescript/src/components/ContentView/Two/components/GenreTags.d.ts.map +1 -0
  380. package/lib/typescript/src/components/ContentView/Two/components/HeroBanner.d.ts +8 -0
  381. package/lib/typescript/src/components/ContentView/Two/components/HeroBanner.d.ts.map +1 -0
  382. package/lib/typescript/src/components/ContentView/Two/components/LikeShareActions.d.ts +25 -0
  383. package/lib/typescript/src/components/ContentView/Two/components/LikeShareActions.d.ts.map +1 -0
  384. package/lib/typescript/src/components/ContentView/Two/components/MoreLikeThisContentList .d.ts +26 -0
  385. package/lib/typescript/src/components/ContentView/Two/components/MoreLikeThisContentList .d.ts.map +1 -0
  386. package/lib/typescript/src/components/ContentView/Two/components/PlayOrTrailer.d.ts +21 -0
  387. package/lib/typescript/src/components/ContentView/Two/components/PlayOrTrailer.d.ts.map +1 -0
  388. package/lib/typescript/src/components/ContentView/Two/components/SectionTabs.d.ts +28 -0
  389. package/lib/typescript/src/components/ContentView/Two/components/SectionTabs.d.ts.map +1 -0
  390. package/lib/typescript/src/components/ContentView/Two/components/Title.d.ts +34 -0
  391. package/lib/typescript/src/components/ContentView/Two/components/Title.d.ts.map +1 -0
  392. package/lib/typescript/src/components/ContentView/Two/components/index.d.ts +15 -0
  393. package/lib/typescript/src/components/ContentView/Two/components/index.d.ts.map +1 -0
  394. package/lib/typescript/src/components/ContentView/index.d.ts +6 -1
  395. package/lib/typescript/src/components/ContentView/index.d.ts.map +1 -1
  396. package/lib/typescript/src/components/Headers/Four.d.ts +18 -0
  397. package/lib/typescript/src/components/Headers/Four.d.ts.map +1 -0
  398. package/lib/typescript/src/components/Headers/Three.d.ts +9 -1
  399. package/lib/typescript/src/components/Headers/Three.d.ts.map +1 -1
  400. package/lib/typescript/src/components/Headers/index.d.ts +1 -0
  401. package/lib/typescript/src/components/Headers/index.d.ts.map +1 -1
  402. package/lib/typescript/src/components/Input/Input.d.ts +2 -0
  403. package/lib/typescript/src/components/Input/Input.d.ts.map +1 -1
  404. package/lib/typescript/src/components/Input/InputThree.d.ts +22 -0
  405. package/lib/typescript/src/components/Input/InputThree.d.ts.map +1 -0
  406. package/lib/typescript/src/components/Input/PhoneNumberInput.d.ts.map +1 -1
  407. package/lib/typescript/src/components/Input/PhoneNumberInputTwo.d.ts +26 -0
  408. package/lib/typescript/src/components/Input/PhoneNumberInputTwo.d.ts.map +1 -0
  409. package/lib/typescript/src/components/Loader/Loader.d.ts +2 -0
  410. package/lib/typescript/src/components/Loader/Loader.d.ts.map +1 -1
  411. package/lib/typescript/src/components/Logo/Logo.d.ts +1 -1
  412. package/lib/typescript/src/components/Logo/Logo.d.ts.map +1 -1
  413. package/lib/typescript/src/components/NewRelease/NewReleaseSheet.d.ts +10 -0
  414. package/lib/typescript/src/components/NewRelease/NewReleaseSheet.d.ts.map +1 -0
  415. package/lib/typescript/src/components/NewRelease/index.d.ts +2 -0
  416. package/lib/typescript/src/components/NewRelease/index.d.ts.map +1 -0
  417. package/lib/typescript/src/components/Reels/ReelsSeries/MediaControls/BottomControls.d.ts +2 -0
  418. package/lib/typescript/src/components/Reels/ReelsSeries/MediaControls/BottomControls.d.ts.map +1 -1
  419. package/lib/typescript/src/components/Reels/ReelsSeries/MediaControls/MediaControlsProvider.d.ts +1 -0
  420. package/lib/typescript/src/components/Reels/ReelsSeries/MediaControls/MediaControlsProvider.d.ts.map +1 -1
  421. package/lib/typescript/src/components/Reels/ReelsSeries/MediaControls/RightControls.d.ts.map +1 -1
  422. package/lib/typescript/src/components/Reels/ReelsSeries/Model/SettingModal.d.ts +2 -1
  423. package/lib/typescript/src/components/Reels/ReelsSeries/Model/SettingModal.d.ts.map +1 -1
  424. package/lib/typescript/src/components/Reels/ReelsSeries/ReelsSeries.d.ts +9 -2
  425. package/lib/typescript/src/components/Reels/ReelsSeries/ReelsSeries.d.ts.map +1 -1
  426. package/lib/typescript/src/components/Reels/ReelsSeries/ReelsSeriesItem.d.ts +11 -1
  427. package/lib/typescript/src/components/Reels/ReelsSeries/ReelsSeriesItem.d.ts.map +1 -1
  428. package/lib/typescript/src/components/Reels/ReelsSeries/components/VideoControls/QualityControl.d.ts +11 -0
  429. package/lib/typescript/src/components/Reels/ReelsSeries/components/VideoControls/QualityControl.d.ts.map +1 -1
  430. package/lib/typescript/src/components/Reels/ReelsSeries/types.d.ts +15 -0
  431. package/lib/typescript/src/components/Reels/ReelsSeries/types.d.ts.map +1 -1
  432. package/lib/typescript/src/components/Reels/ReelsSeries/useReelsWatchProgress.d.ts +34 -0
  433. package/lib/typescript/src/components/Reels/ReelsSeries/useReelsWatchProgress.d.ts.map +1 -0
  434. package/lib/typescript/src/components/Reels/ReelsSeries/utils/quality.d.ts +10 -0
  435. package/lib/typescript/src/components/Reels/ReelsSeries/utils/quality.d.ts.map +1 -0
  436. package/lib/typescript/src/components/Reels/index.d.ts +1 -0
  437. package/lib/typescript/src/components/Reels/index.d.ts.map +1 -1
  438. package/lib/typescript/src/components/Search/One.d.ts.map +1 -1
  439. package/lib/typescript/src/components/Search/components/SearchCard.d.ts +1 -0
  440. package/lib/typescript/src/components/Search/components/SearchCard.d.ts.map +1 -1
  441. package/lib/typescript/src/components/User/PurchaseHistory/PurchaseHistory.d.ts.map +1 -1
  442. package/lib/typescript/src/components/User/WatchHistory/WatchHistory.d.ts.map +1 -1
  443. package/lib/typescript/src/components/User/WatchLater/WatchLater.d.ts.map +1 -1
  444. package/lib/typescript/src/components/common/AppStatusBar.d.ts +1 -0
  445. package/lib/typescript/src/components/common/AppStatusBar.d.ts.map +1 -1
  446. package/lib/typescript/src/components/index.d.ts +1 -0
  447. package/lib/typescript/src/components/index.d.ts.map +1 -1
  448. package/lib/typescript/src/constants/dummySections.d.ts +8 -1
  449. package/lib/typescript/src/constants/dummySections.d.ts.map +1 -1
  450. package/lib/typescript/src/hooks/Images/index.d.ts +3 -0
  451. package/lib/typescript/src/hooks/Images/index.d.ts.map +1 -0
  452. package/lib/typescript/src/hooks/Images/useImageLoader.d.ts +36 -0
  453. package/lib/typescript/src/hooks/Images/useImageLoader.d.ts.map +1 -0
  454. package/lib/typescript/src/hooks/Images/useImageValidation.d.ts +17 -0
  455. package/lib/typescript/src/hooks/Images/useImageValidation.d.ts.map +1 -0
  456. package/lib/typescript/src/hooks/index.d.ts +3 -0
  457. package/lib/typescript/src/hooks/index.d.ts.map +1 -1
  458. package/lib/typescript/src/hooks/useAdTracking.d.ts +39 -0
  459. package/lib/typescript/src/hooks/useAdTracking.d.ts.map +1 -0
  460. package/lib/typescript/src/hooks/useCards.d.ts +36 -0
  461. package/lib/typescript/src/hooks/useCards.d.ts.map +1 -0
  462. package/lib/typescript/src/hooks/usePaginatedSection.d.ts +12 -2
  463. package/lib/typescript/src/hooks/usePaginatedSection.d.ts.map +1 -1
  464. package/lib/typescript/src/hooks/useSplashCache.d.ts.map +1 -1
  465. package/lib/typescript/src/theme/ThemeProvider.d.ts +2 -0
  466. package/lib/typescript/src/theme/ThemeProvider.d.ts.map +1 -1
  467. package/lib/typescript/src/theme/hook/index.d.ts +0 -1
  468. package/lib/typescript/src/theme/hook/index.d.ts.map +1 -1
  469. package/lib/typescript/src/theme/hook/useInternalTheme.d.ts.map +1 -1
  470. package/lib/typescript/src/theme/themes.d.ts +1 -0
  471. package/lib/typescript/src/theme/themes.d.ts.map +1 -1
  472. package/lib/typescript/src/theme/utils/validateColor.d.ts +21 -0
  473. package/lib/typescript/src/theme/utils/validateColor.d.ts.map +1 -0
  474. package/lib/typescript/src/types/content/content-view.types.d.ts +40 -1
  475. package/lib/typescript/src/types/content/content-view.types.d.ts.map +1 -1
  476. package/lib/typescript/src/types/sections/index.d.ts +7 -4
  477. package/lib/typescript/src/types/sections/index.d.ts.map +1 -1
  478. package/lib/typescript/src/utils/colorUtils.d.ts +19 -0
  479. package/lib/typescript/src/utils/colorUtils.d.ts.map +1 -0
  480. package/package.json +13 -4
  481. package/src/components/Auth/AuthProvider/AuthProvider.tsx +6 -2
  482. package/src/components/Auth/One/ForgotPassword/ForgotPassword.tsx +324 -0
  483. package/src/components/Auth/One/Login/LoginWithEmail.tsx +455 -0
  484. package/src/components/Auth/{Login → One/Login}/LoginWithPhone.tsx +12 -12
  485. package/src/components/Auth/One/OTP/OTP.tsx +465 -0
  486. package/src/components/Auth/One/QrLogin/QrLogin.tsx +602 -0
  487. package/src/components/Auth/One/QrLogin/components/QrViewArea.tsx +423 -0
  488. package/src/components/Auth/One/SignUp/SignUp.tsx +479 -0
  489. package/src/components/Auth/{SplashScreen → One/SplashScreen}/SplashScreen.tsx +10 -6
  490. package/src/components/Auth/One/SplashScreen/components/SplashImage/SplashImage.tsx +103 -0
  491. package/src/components/Auth/{SplashScreen → One/SplashScreen}/components/SplashLottie/SplashLottie.tsx +1 -1
  492. package/src/components/Auth/{SplashScreen → One/SplashScreen}/components/SplashVideo/SplashVideo.tsx +35 -25
  493. package/src/components/Auth/One/index.ts +24 -0
  494. package/src/components/Auth/Two/AuthHeader/AuthHeader.tsx +108 -0
  495. package/src/components/Auth/{ForgotPassword → Two/ForgotPassword}/ForgotPassword.tsx +62 -35
  496. package/src/components/Auth/Two/Login/AuthLoginShell.tsx +173 -0
  497. package/src/components/Auth/Two/Login/LoginWithEmail.tsx +279 -0
  498. package/src/components/Auth/Two/Login/LoginWithPhone.tsx +188 -0
  499. package/src/components/Auth/{OTP → Two/OTP}/OTP.tsx +92 -81
  500. package/src/components/Auth/Two/QrLogin/QrLogin.tsx +602 -0
  501. package/src/components/Auth/Two/QrLogin/components/QrViewArea.tsx +423 -0
  502. package/src/components/Auth/Two/SignUp/SignUp.tsx +472 -0
  503. package/src/components/Auth/Two/SplashScreen/SplashScreen.tsx +248 -0
  504. package/src/components/Auth/{SplashScreen → Two/SplashScreen}/components/SplashImage/SplashImage.tsx +1 -1
  505. package/src/components/Auth/Two/SplashScreen/components/SplashLottie/SplashLottie.tsx +77 -0
  506. package/src/components/Auth/Two/SplashScreen/components/SplashVideo/SplashVideo.tsx +178 -0
  507. package/src/components/Auth/Two/index.ts +28 -0
  508. package/src/components/Auth/index.ts +7 -22
  509. package/src/components/BackgroundLayout/BackgroundLayout.tsx +2 -0
  510. package/src/components/BackgroundLayout/BackgroundLayoutOne.tsx +56 -0
  511. package/src/components/BottomSheet/BottomSheet.tsx +6 -1
  512. package/src/components/BottomSheet/BottomSheetOne.tsx +220 -0
  513. package/src/components/BottomSheet/index.ts +2 -0
  514. package/src/components/Button/PrimaryBtn.tsx +10 -2
  515. package/src/components/Content/Card/Category/Category.tsx +104 -10
  516. package/src/components/Content/Card/Category/CategroyTwo.tsx +429 -0
  517. package/src/components/Content/Card/NowWatching/NowWatching.tsx +281 -136
  518. package/src/components/Content/Card/Sliders/Styles/One.tsx +248 -152
  519. package/src/components/Content/Card/Sliders/Styles/Three.tsx +935 -0
  520. package/src/components/Content/Card/Sliders/Styles/Two.tsx +171 -102
  521. package/src/components/Content/Card/Sliders/index.ts +2 -0
  522. package/src/components/Content/Card/Styles/Five.tsx +162 -62
  523. package/src/components/Content/Card/Styles/Four.tsx +165 -85
  524. package/src/components/Content/Card/Styles/One.tsx +162 -71
  525. package/src/components/Content/Card/Styles/RotateInOut.tsx +158 -60
  526. package/src/components/Content/Card/Styles/Six.tsx +242 -142
  527. package/src/components/Content/Card/Styles/Three.tsx +160 -162
  528. package/src/components/Content/Card/Styles/TopTen.tsx +231 -191
  529. package/src/components/Content/Card/Styles/Two.tsx +183 -79
  530. package/src/components/Content/Card/components/AdsPoster.tsx +202 -0
  531. package/src/components/Content/Card/components/CardPoster.tsx +250 -151
  532. package/src/components/Content/Card/components/NavigateToMore.tsx +29 -1
  533. package/src/components/Content/Card/components/index.ts +1 -0
  534. package/src/components/Content/Content.tsx +103 -119
  535. package/src/components/Content/Sections.tsx +51 -45
  536. package/src/components/Content/types.ts +176 -0
  537. package/src/components/ContentView/MoreContentList.tsx +1 -0
  538. package/src/components/ContentView/{ContentView.tsx → One/ContentViewOne.tsx} +8 -7
  539. package/src/components/ContentView/{components → One/components}/AboutSection.tsx +3 -3
  540. package/src/components/ContentView/{components → One/components}/CastCard.tsx +3 -3
  541. package/src/components/ContentView/{components → One/components}/EpisodeCard.tsx +7 -8
  542. package/src/components/ContentView/{components → One/components}/GenreTags.tsx +3 -3
  543. package/src/components/ContentView/{components → One/components}/HeroBanner.tsx +44 -59
  544. package/src/components/ContentView/{components → One/components}/MiniInfo.tsx +69 -5
  545. package/src/components/ContentView/{components → One/components}/PlayButton.tsx +1 -1
  546. package/src/components/ContentView/{components → One/components}/Title.tsx +2 -2
  547. package/src/components/ContentView/{components → One/components}/TrailerButton.tsx +2 -2
  548. package/src/components/ContentView/Two/ContentViewTwo.tsx +343 -0
  549. package/src/components/ContentView/Two/components/AboutSection.tsx +216 -0
  550. package/src/components/ContentView/Two/components/Details.tsx +193 -0
  551. package/src/components/ContentView/Two/components/EpisodeCard.tsx +602 -0
  552. package/src/components/ContentView/Two/components/GenreTags.tsx +123 -0
  553. package/src/components/ContentView/Two/components/HeroBanner.tsx +402 -0
  554. package/src/components/ContentView/Two/components/LikeShareActions.tsx +125 -0
  555. package/src/components/ContentView/Two/components/MoreLikeThisContentList .tsx +305 -0
  556. package/src/components/ContentView/Two/components/PlayOrTrailer.tsx +133 -0
  557. package/src/components/ContentView/Two/components/SectionTabs.tsx +177 -0
  558. package/src/components/ContentView/Two/components/Title.tsx +226 -0
  559. package/src/components/ContentView/Two/components/index.ts +15 -0
  560. package/src/components/ContentView/index.ts +7 -1
  561. package/src/components/Headers/Four.tsx +83 -0
  562. package/src/components/Headers/Three.tsx +88 -25
  563. package/src/components/Headers/index.ts +2 -0
  564. package/src/components/Input/Input.ts +4 -0
  565. package/src/components/Input/InputThree.tsx +212 -0
  566. package/src/components/Input/PhoneNumberInput.tsx +4 -2
  567. package/src/components/Input/PhoneNumberInputTwo.tsx +418 -0
  568. package/src/components/Loader/Loader.tsx +25 -9
  569. package/src/components/Logo/Logo.tsx +53 -34
  570. package/src/components/NewRelease/NewReleaseSheet.tsx +250 -0
  571. package/src/components/NewRelease/index.ts +1 -0
  572. package/src/components/Reels/ReelsSeries/MediaControls/BottomControls.tsx +92 -27
  573. package/src/components/Reels/ReelsSeries/MediaControls/MediaControlsProvider.tsx +81 -1
  574. package/src/components/Reels/ReelsSeries/MediaControls/RightControls.tsx +4 -1
  575. package/src/components/Reels/ReelsSeries/Model/SettingModal.tsx +6 -3
  576. package/src/components/Reels/ReelsSeries/ReelsSeries.tsx +88 -55
  577. package/src/components/Reels/ReelsSeries/ReelsSeriesItem.tsx +92 -30
  578. package/src/components/Reels/ReelsSeries/components/VideoControls/QualityControl.tsx +35 -38
  579. package/src/components/Reels/ReelsSeries/types.ts +16 -0
  580. package/src/components/Reels/ReelsSeries/useReelsWatchProgress.ts +85 -0
  581. package/src/components/Reels/ReelsSeries/utils/quality.ts +48 -0
  582. package/src/components/Reels/index.ts +1 -0
  583. package/src/components/Search/One.tsx +8 -5
  584. package/src/components/Search/components/SearchCard.tsx +68 -11
  585. package/src/components/User/PurchaseHistory/PurchaseHistory.tsx +1 -0
  586. package/src/components/User/WatchHistory/WatchHistory.tsx +1 -0
  587. package/src/components/User/WatchLater/WatchLater.tsx +1 -0
  588. package/src/components/common/AppStatusBar.tsx +7 -1
  589. package/src/components/index.ts +1 -0
  590. package/src/constants/dummySections.ts +54 -3
  591. package/src/hooks/Images/index.ts +2 -0
  592. package/src/hooks/Images/useImageLoader.ts +206 -0
  593. package/src/hooks/Images/useImageValidation.ts +36 -0
  594. package/src/hooks/index.ts +3 -0
  595. package/src/hooks/useAdTracking.ts +349 -0
  596. package/src/hooks/useCards.ts +228 -0
  597. package/src/hooks/usePaginatedSection.ts +26 -7
  598. package/src/hooks/useSplashCache.ts +88 -69
  599. package/src/theme/ThemeProvider.tsx +15 -2
  600. package/src/theme/hook/index.ts +0 -1
  601. package/src/theme/hook/useInternalTheme.ts +22 -13
  602. package/src/theme/themes.ts +3 -0
  603. package/src/theme/utils/validateColor.ts +127 -0
  604. package/src/types/content/content-view.types.ts +43 -1
  605. package/src/types/sections/index.ts +7 -4
  606. package/src/utils/colorUtils.ts +70 -0
  607. package/lib/module/components/Auth/ForgotPassword/ForgotPassword.js.map +0 -1
  608. package/lib/module/components/Auth/Login/LoginWithEmail.js +0 -314
  609. package/lib/module/components/Auth/Login/LoginWithEmail.js.map +0 -1
  610. package/lib/module/components/Auth/Login/LoginWithPhone.js.map +0 -1
  611. package/lib/module/components/Auth/OTP/OTP.js.map +0 -1
  612. package/lib/module/components/Auth/QrLogin/QrLogin.js +0 -313
  613. package/lib/module/components/Auth/QrLogin/QrLogin.js.map +0 -1
  614. package/lib/module/components/Auth/QrLogin/components/QrViewArea.js +0 -243
  615. package/lib/module/components/Auth/QrLogin/components/QrViewArea.js.map +0 -1
  616. package/lib/module/components/Auth/SignUp/SignUp.js +0 -352
  617. package/lib/module/components/Auth/SignUp/SignUp.js.map +0 -1
  618. package/lib/module/components/Auth/SplashScreen/SplashScreen.js.map +0 -1
  619. package/lib/module/components/Auth/SplashScreen/components/SplashImage/SplashImage.js.map +0 -1
  620. package/lib/module/components/Auth/SplashScreen/components/SplashLottie/SplashLottie.js.map +0 -1
  621. package/lib/module/components/Auth/SplashScreen/components/SplashVideo/SplashVideo.js.map +0 -1
  622. package/lib/module/components/ContentView/ContentView.js.map +0 -1
  623. package/lib/module/components/ContentView/components/AboutSection.js.map +0 -1
  624. package/lib/module/components/ContentView/components/CastCard.js.map +0 -1
  625. package/lib/module/components/ContentView/components/EpisodeCard.js.map +0 -1
  626. package/lib/module/components/ContentView/components/GenreTags.js.map +0 -1
  627. package/lib/module/components/ContentView/components/HeroBanner.js.map +0 -1
  628. package/lib/module/components/ContentView/components/MiniInfo.js.map +0 -1
  629. package/lib/module/components/ContentView/components/PlayButton.js.map +0 -1
  630. package/lib/module/components/ContentView/components/Title.js.map +0 -1
  631. package/lib/module/components/ContentView/components/TrailerButton.js.map +0 -1
  632. package/lib/module/theme/hook/useThemeStatusBar.js +0 -33
  633. package/lib/module/theme/hook/useThemeStatusBar.js.map +0 -1
  634. package/lib/typescript/src/components/Auth/ForgotPassword/ForgotPassword.d.ts.map +0 -1
  635. package/lib/typescript/src/components/Auth/Login/LoginWithEmail.d.ts.map +0 -1
  636. package/lib/typescript/src/components/Auth/Login/LoginWithPhone.d.ts.map +0 -1
  637. package/lib/typescript/src/components/Auth/OTP/OTP.d.ts.map +0 -1
  638. package/lib/typescript/src/components/Auth/QrLogin/QrLogin.d.ts.map +0 -1
  639. package/lib/typescript/src/components/Auth/QrLogin/components/QrViewArea.d.ts.map +0 -1
  640. package/lib/typescript/src/components/Auth/SignUp/SignUp.d.ts.map +0 -1
  641. package/lib/typescript/src/components/Auth/SplashScreen/SplashScreen.d.ts.map +0 -1
  642. package/lib/typescript/src/components/Auth/SplashScreen/components/SplashImage/SplashImage.d.ts.map +0 -1
  643. package/lib/typescript/src/components/Auth/SplashScreen/components/SplashLottie/SplashLottie.d.ts.map +0 -1
  644. package/lib/typescript/src/components/Auth/SplashScreen/components/SplashVideo/SplashVideo.d.ts.map +0 -1
  645. package/lib/typescript/src/components/ContentView/ContentView.d.ts +0 -15
  646. package/lib/typescript/src/components/ContentView/ContentView.d.ts.map +0 -1
  647. package/lib/typescript/src/components/ContentView/components/AboutSection.d.ts.map +0 -1
  648. package/lib/typescript/src/components/ContentView/components/CastCard.d.ts.map +0 -1
  649. package/lib/typescript/src/components/ContentView/components/EpisodeCard.d.ts.map +0 -1
  650. package/lib/typescript/src/components/ContentView/components/GenreTags.d.ts.map +0 -1
  651. package/lib/typescript/src/components/ContentView/components/HeroBanner.d.ts.map +0 -1
  652. package/lib/typescript/src/components/ContentView/components/MiniInfo.d.ts.map +0 -1
  653. package/lib/typescript/src/components/ContentView/components/PlayButton.d.ts.map +0 -1
  654. package/lib/typescript/src/components/ContentView/components/Title.d.ts.map +0 -1
  655. package/lib/typescript/src/components/ContentView/components/TrailerButton.d.ts.map +0 -1
  656. package/lib/typescript/src/theme/hook/useThemeStatusBar.d.ts +0 -10
  657. package/lib/typescript/src/theme/hook/useThemeStatusBar.d.ts.map +0 -1
  658. package/src/components/Auth/Login/LoginWithEmail.tsx +0 -441
  659. package/src/components/Auth/QrLogin/QrLogin.tsx +0 -342
  660. package/src/components/Auth/QrLogin/components/QrViewArea.tsx +0 -329
  661. package/src/components/Auth/SignUp/SignUp.tsx +0 -462
  662. package/src/theme/hook/useThemeStatusBar.ts +0 -42
  663. /package/lib/typescript/src/components/Auth/{SplashScreen → One/SplashScreen}/components/SplashLottie/SplashLottie.d.ts +0 -0
  664. /package/lib/typescript/src/components/Auth/{SplashScreen → One/SplashScreen}/components/SplashVideo/SplashVideo.d.ts +0 -0
  665. /package/lib/typescript/src/components/Auth/{SplashScreen → Two/SplashScreen}/components/SplashImage/SplashImage.d.ts +0 -0
  666. /package/lib/typescript/src/components/ContentView/{components → One/components}/PlayButton.d.ts +0 -0
  667. /package/lib/typescript/src/components/ContentView/{components → One/components}/TrailerButton.d.ts +0 -0
@@ -0,0 +1,220 @@
1
+ "use strict";
2
+
3
+ /**
4
+ * @author Naresh Dhamu
5
+ * @lastModified Tue 01 Jul 2025 at 02:28 PM
6
+ */
7
+ import React, { useMemo, useCallback, useState } from 'react';
8
+ import { ScrollView, StyleSheet } from 'react-native';
9
+ import { useInternalTheme } from "../../../theme/hook/useInternalTheme.js";
10
+ import { CastCard } from "../One/components/CastCard.js";
11
+ import { scale } from 'react-native-size-matters';
12
+ import { NotFoundFallback } from "../../Fallbacks/index.js";
13
+ import { AboutSection, Details, GenreTags, HeroBanner, PlayOrTrailer, SectionTabs, Title } from "./components/index.js";
14
+ import MoreLikeThisContentList from "./components/MoreLikeThisContentList .js";
15
+ import { EpisodeCard } from "./components/EpisodeCard.js";
16
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
17
+ export const ContentViewTwo = /*#__PURE__*/React.memo(({
18
+ content,
19
+ seasons,
20
+ isLoading = false,
21
+ seasonsIsLoading = false,
22
+ theme,
23
+ text,
24
+ recommendedContent,
25
+ isLiked = false,
26
+ events,
27
+ titleStyles,
28
+ genreTagsStyles,
29
+ aboutSectionStyles,
30
+ castStyles,
31
+ history,
32
+ episodeCardMode,
33
+ playButtonConfig
34
+ // pricingAndExpiryInfo,
35
+ }) => {
36
+ const {
37
+ theme: appliedTheme
38
+ } = useInternalTheme(theme);
39
+ const hasFetchedOnce = !!recommendedContent?.content;
40
+ const seekTime = useMemo(() => history?.currentTime || 0, [history?.currentTime]);
41
+ const isComplete = useMemo(() => history?.completed || false, [history?.completed]);
42
+ const currentEpisode = useMemo(() => history?.current_episode, [history?.current_episode]);
43
+ const isNotFound = useMemo(() => !isLoading && !content, [isLoading, content]);
44
+
45
+ // Memoize play handler
46
+ const handlePlayPress = useCallback(({
47
+ is_trailer
48
+ }) => {
49
+ if (!content) return;
50
+ events?.onPlay?.({
51
+ id: content._id,
52
+ slug: content.slug,
53
+ type: content.type,
54
+ current_episode: currentEpisode,
55
+ mode: 'fullscreen',
56
+ is_trailer,
57
+ seekTime: isComplete ? 0 : seekTime
58
+ });
59
+ }, [content, currentEpisode, isComplete, seekTime, events]);
60
+ const handleLikePress = useCallback(async args => {
61
+ await events?.onLikeContent?.(args);
62
+ }, [events]);
63
+ const handleSharePress = useCallback(async args => {
64
+ const {
65
+ id,
66
+ source
67
+ } = args;
68
+ if (!events?.onShareContent) {
69
+ console.error('Share API not provided');
70
+ return;
71
+ }
72
+ try {
73
+ await events.onShareContent({
74
+ id,
75
+ source
76
+ });
77
+ } catch (error) {
78
+ console.error('Share API failed', error);
79
+ }
80
+ }, [events]);
81
+ const handleEpisodePress = useCallback(({
82
+ season_id,
83
+ episode_id,
84
+ episode_number
85
+ }) => {
86
+ if (!content || seasonsIsLoading) return;
87
+ events?.onPlay?.({
88
+ id: content._id,
89
+ slug: content.slug,
90
+ type: content.type,
91
+ current_episode: episode_id,
92
+ current_season: season_id,
93
+ episode_number
94
+ });
95
+ }, [content, seasonsIsLoading, events]);
96
+ const handleRecommendedItemPress = useCallback(item => {
97
+ events?.onPressRecommendedItem?.({
98
+ item
99
+ });
100
+ }, [events]);
101
+ const notFoundText = useMemo(() => ({
102
+ title: text?.notFound?.title || 'Oops! Content Not Found',
103
+ subtitle: text?.notFound?.subtitle || "We couldn't find anything to show here. Please check back later.",
104
+ buttonText: text?.notFound?.buttonText || 'Go Back'
105
+ }), [text?.notFound]);
106
+ const showEpisodes = useMemo(() => content?.type === 'series' && (seasonsIsLoading || seasons && seasons.length > 0), [content?.type, seasonsIsLoading, seasons]);
107
+
108
+ // Memoize show recommended condition
109
+ // const showRecommended = useMemo(
110
+ // () => recommendedContent && recommendedContent?.content,
111
+ // [recommendedContent]
112
+ // );
113
+
114
+ const [activeTab, setActiveTab] = useState('more');
115
+
116
+ // const playButtonConfig = useMemo(() => {
117
+ // if (!content) return { title: 'Watch Now', mode: 'WATCH NOW' as const };
118
+
119
+ // switch (content.content_offering_type) {
120
+ // case 'BUY_OR_RENT':
121
+ // return { title: 'Rent Now', mode: 'RENT NOW' as const };
122
+
123
+ // case 'PREMIUM':
124
+ // return { title: 'Subscribe', mode: 'SUBSCRIBE' as const };
125
+
126
+ // default:
127
+ // return { title: 'Watch Now', mode: 'WATCH NOW' as const };
128
+ // }
129
+ // }, [content]);
130
+
131
+ return /*#__PURE__*/_jsx(_Fragment, {
132
+ children: isNotFound ? /*#__PURE__*/_jsx(NotFoundFallback, {
133
+ title: notFoundText.title,
134
+ subtitle: notFoundText.subtitle,
135
+ backButtonText: notFoundText.buttonText,
136
+ onPressBack: events?.onBackPress,
137
+ theme: theme
138
+ }) : /*#__PURE__*/_jsxs(ScrollView, {
139
+ showsVerticalScrollIndicator: false,
140
+ keyboardShouldPersistTaps: "handled",
141
+ bounces: false,
142
+ contentContainerStyle: [styles.scrollContent, {
143
+ flexGrow: 1
144
+ } // 🔥 IMPORTANT
145
+ ],
146
+ children: [/*#__PURE__*/_jsx(HeroBanner, {
147
+ backgroundImage: content?.thumbnail,
148
+ title: content?.name,
149
+ theme: theme,
150
+ isLoading: isLoading,
151
+ onBackPress: events?.onBackPress,
152
+ titleImage: content?.title_image
153
+ }), /*#__PURE__*/_jsx(Title, {
154
+ contentId: content?._id,
155
+ subtitle: content?.u_age,
156
+ rating: content?.rating,
157
+ releaseYear: content?.release_year,
158
+ duration: content?.duration,
159
+ language: typeof content?.language === 'string' ? content.language : content?.language?.name ?? null,
160
+ theme: appliedTheme,
161
+ isLoading: isLoading,
162
+ isLiked: isLiked,
163
+ onPressLike: handleLikePress,
164
+ onPressShare: handleSharePress,
165
+ style: titleStyles
166
+ }), /*#__PURE__*/_jsx(PlayOrTrailer, {
167
+ onPressPlay: handlePlayPress,
168
+ theme: theme,
169
+ isLoading: isLoading,
170
+ playButtonConfig: playButtonConfig
171
+ }), /*#__PURE__*/_jsx(GenreTags, {
172
+ genres: content?.genres,
173
+ theme: appliedTheme,
174
+ isLoading: isLoading,
175
+ style: genreTagsStyles
176
+ }), /*#__PURE__*/_jsx(AboutSection, {
177
+ theme: appliedTheme,
178
+ description: content?.description,
179
+ release_year: content?.release_year,
180
+ isLoading: isLoading,
181
+ style: aboutSectionStyles
182
+ }), showEpisodes && /*#__PURE__*/_jsx(EpisodeCard, {
183
+ isLoading: seasonsIsLoading,
184
+ seasons: seasonsIsLoading ? [] : seasons ?? [],
185
+ onPress: handleEpisodePress,
186
+ theme: theme,
187
+ mode: episodeCardMode ?? 'horizontal',
188
+ content_offering_type: content?.content_offering_type
189
+ }), /*#__PURE__*/_jsx(CastCard, {
190
+ theme: appliedTheme,
191
+ data: content?.cast || null,
192
+ isLoading: isLoading,
193
+ onItemPress: () => {},
194
+ style: castStyles
195
+ }), /*#__PURE__*/_jsx(SectionTabs, {
196
+ theme: appliedTheme,
197
+ isLoading: isLoading,
198
+ activeTab: activeTab,
199
+ onTabChange: setActiveTab
200
+ }), activeTab === 'more' && /*#__PURE__*/_jsx(MoreLikeThisContentList, {
201
+ contentList: recommendedContent?.content?.data?.filter(item => 'name' in item && '_id' in item) ?? [],
202
+ isLoading: isLoading,
203
+ hasFetchedOnce: hasFetchedOnce,
204
+ theme: theme,
205
+ onItemPress: handleRecommendedItemPress,
206
+ moreDataIsLoading: false
207
+ }), activeTab === 'details' && /*#__PURE__*/_jsx(Details, {
208
+ theme: appliedTheme,
209
+ isLoading: isLoading,
210
+ content: content
211
+ })]
212
+ })
213
+ });
214
+ });
215
+ const styles = StyleSheet.create({
216
+ scrollContent: {
217
+ paddingBottom: scale(30)
218
+ }
219
+ });
220
+ //# sourceMappingURL=ContentViewTwo.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","useMemo","useCallback","useState","ScrollView","StyleSheet","useInternalTheme","CastCard","scale","NotFoundFallback","AboutSection","Details","GenreTags","HeroBanner","PlayOrTrailer","SectionTabs","Title","MoreLikeThisContentList","EpisodeCard","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","ContentViewTwo","memo","content","seasons","isLoading","seasonsIsLoading","theme","text","recommendedContent","isLiked","events","titleStyles","genreTagsStyles","aboutSectionStyles","castStyles","history","episodeCardMode","playButtonConfig","appliedTheme","hasFetchedOnce","seekTime","currentTime","isComplete","completed","currentEpisode","current_episode","isNotFound","handlePlayPress","is_trailer","onPlay","id","_id","slug","type","mode","handleLikePress","args","onLikeContent","handleSharePress","source","onShareContent","console","error","handleEpisodePress","season_id","episode_id","episode_number","current_season","handleRecommendedItemPress","item","onPressRecommendedItem","notFoundText","title","notFound","subtitle","buttonText","showEpisodes","length","activeTab","setActiveTab","children","backButtonText","onPressBack","onBackPress","showsVerticalScrollIndicator","keyboardShouldPersistTaps","bounces","contentContainerStyle","styles","scrollContent","flexGrow","backgroundImage","thumbnail","name","titleImage","title_image","contentId","u_age","rating","releaseYear","release_year","duration","language","onPressLike","onPressShare","style","onPressPlay","genres","description","onPress","content_offering_type","data","cast","onItemPress","onTabChange","contentList","filter","moreDataIsLoading","create","paddingBottom"],"sourceRoot":"../../../../../src","sources":["components/ContentView/Two/ContentViewTwo.tsx"],"mappings":";;AAAA;AACA;AACA;AACA;AACA,OAAOA,KAAK,IAAIC,OAAO,EAAEC,WAAW,EAAEC,QAAQ,QAAQ,OAAO;AAC7D,SAASC,UAAU,EAAEC,UAAU,QAAQ,cAAc;AACrD,SAASC,gBAAgB,QAAQ,yCAAsC;AACvE,SAASC,QAAQ,QAAQ,+BAA4B;AACrD,SAASC,KAAK,QAAQ,2BAA2B;AAKjD,SAASC,gBAAgB,QAAQ,0BAAiB;AAClD,SACEC,YAAY,EACZC,OAAO,EACPC,SAAS,EACTC,UAAU,EACVC,aAAa,EACbC,WAAW,EACXC,KAAK,QAEA,uBAAc;AAErB,OAAOC,uBAAuB,MAAM,0CAAuC;AAC3E,SAASC,WAAW,QAAQ,6BAA0B;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA,EAAAC,QAAA,IAAAC,SAAA;AAEvD,OAAO,MAAMC,cAAc,gBAAGzB,KAAK,CAAC0B,IAAI,CACtC,CAAC;EACCC,OAAO;EACPC,OAAO;EACPC,SAAS,GAAG,KAAK;EACjBC,gBAAgB,GAAG,KAAK;EACxBC,KAAK;EACLC,IAAI;EACJC,kBAAkB;EAClBC,OAAO,GAAG,KAAK;EACfC,MAAM;EACNC,WAAW;EACXC,eAAe;EACfC,kBAAkB;EAClBC,UAAU;EACVC,OAAO;EACPC,eAAe;EACfC;EACA;AAGF,CAAC,KAAK;EACJ,MAAM;IAAEX,KAAK,EAAEY;EAAa,CAAC,GAAGrC,gBAAgB,CAACyB,KAAK,CAAC;EACvD,MAAMa,cAAc,GAAG,CAAC,CAACX,kBAAkB,EAAEN,OAAO;EAEpD,MAAMkB,QAAQ,GAA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
+
3
+ /**
4
+ * @author Ashok Desai
5
+ * @lastModified Tue 13 Jun 2026 at 02:28 PM
6
+ */
7
+
8
+ import React, { useRef, useState, useCallback, useMemo } from 'react';
9
+ import { useSkeletonItems } from "../../../../hooks/useSkeletonItems.js";
10
+ import { View, StyleSheet, ScrollView, TouchableOpacity } from 'react-native';
11
+ import { Text } from "../../../Text/index.js";
12
+ import SkeletonPlaceholder from 'react-native-skeleton-placeholder';
13
+ import { scale, verticalScale } from 'react-native-size-matters';
14
+ import { RFValue } from 'react-native-responsive-fontsize';
15
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
16
+ export const AboutSection = /*#__PURE__*/React.memo(({
17
+ theme,
18
+ title = 'About',
19
+ release_year,
20
+ description,
21
+ isLoading = false,
22
+ style
23
+ }) => {
24
+ const [expanded, setExpanded] = useState(false);
25
+ const scrollRef = useRef(null);
26
+ const skeletonItems = useSkeletonItems(4);
27
+ const toggle = useCallback(() => {
28
+ if (expanded) {
29
+ scrollRef.current?.scrollTo({
30
+ y: 0,
31
+ animated: false
32
+ });
33
+ }
34
+ setExpanded(prev => !prev);
35
+ }, [expanded]);
36
+
37
+ // Memoize show toggle condition
38
+ const showToggle = useMemo(() => description && description.length > 150, [description]);
39
+
40
+ // Memoize container style
41
+ const containerStyle = useMemo(() => [styles.container, style?.container], [style?.container]);
42
+
43
+ // Memoize title style
44
+ const titleStyleMemo = useMemo(() => [styles.title, style?.title], [style?.title]);
45
+
46
+ // Memoize body style
47
+ const bodyStyleMemo = useMemo(() => [styles.body, style?.body], [style?.body]);
48
+
49
+ // Memoize scroll expanded style
50
+ const scrollExpandedStyleMemo = useMemo(() => [styles.scrollExpanded, style?.scrollExpanded], [style?.scrollExpanded]);
51
+
52
+ // Memoize release year style
53
+ const releaseYearStyleMemo = useMemo(() => [styles.releaseYear, style?.releaseYear], [style?.releaseYear]);
54
+
55
+ // Memoize toggle text style
56
+ const toggleTextStyleMemo = useMemo(() => [styles.toggleText, {
57
+ color: theme.colors.primary
58
+ }, style?.toggleText], [theme.colors.primary, style?.toggleText]);
59
+ if (isLoading || !description) {
60
+ return /*#__PURE__*/_jsx(SkeletonPlaceholder, {
61
+ backgroundColor: theme.colors.skeletonBaseColor,
62
+ highlightColor: theme.colors.skeletonHighlightColor,
63
+ children: /*#__PURE__*/_jsxs(SkeletonPlaceholder.Item, {
64
+ paddingHorizontal: scale(12),
65
+ marginTop: verticalScale(7),
66
+ children: [/*#__PURE__*/_jsx(SkeletonPlaceholder.Item, {
67
+ width: scale(70),
68
+ height: scale(16),
69
+ borderRadius: scale(4),
70
+ marginBottom: scale(10),
71
+ style: style?.skeletonLine
72
+ }), skeletonItems.map((_, idx) => /*#__PURE__*/_jsx(SkeletonPlaceholder.Item, {
73
+ width: idx === 3 ? '80%' : idx % 3 === 0 ? '95%' : '100%',
74
+ height: scale(14),
75
+ borderRadius: scale(4),
76
+ marginBottom: scale(6),
77
+ style: style?.skeletonLine
78
+ }, idx))]
79
+ })
80
+ });
81
+ }
82
+ return /*#__PURE__*/_jsxs(View, {
83
+ style: containerStyle,
84
+ children: [/*#__PURE__*/_jsx(Text, {
85
+ color: theme.colors.primary,
86
+ style: titleStyleMemo,
87
+ children: title
88
+ }), release_year && /*#__PURE__*/_jsxs(Text, {
89
+ color: theme.colors.onSurface,
90
+ style: releaseYearStyleMemo,
91
+ children: ["Release:", ' ', /*#__PURE__*/_jsx(Text, {
92
+ color: theme.colors.textPrimary,
93
+ children: release_year
94
+ })]
95
+ }), !expanded ? /*#__PURE__*/_jsx(Text, {
96
+ color: theme.colors.onSurface,
97
+ style: bodyStyleMemo,
98
+ numberOfLines: 3,
99
+ ellipsizeMode: "tail",
100
+ children: description
101
+ }) : /*#__PURE__*/_jsx(ScrollView, {
102
+ style: scrollExpandedStyleMemo,
103
+ showsVerticalScrollIndicator: true,
104
+ ref: scrollRef,
105
+ nestedScrollEnabled: true,
106
+ children: /*#__PURE__*/_jsx(Text, {
107
+ color: theme.colors.onSurface,
108
+ style: bodyStyleMemo,
109
+ children: description
110
+ })
111
+ }), showToggle && /*#__PURE__*/_jsx(TouchableOpacity, {
112
+ onPress: toggle,
113
+ children: /*#__PURE__*/_jsx(Text, {
114
+ style: toggleTextStyleMemo,
115
+ children: expanded ? 'See less' : 'See more'
116
+ })
117
+ })]
118
+ });
119
+ });
120
+ const styles = StyleSheet.create({
121
+ container: {
122
+ paddingHorizontal: scale(12),
123
+ marginTop: verticalScale(7)
124
+ },
125
+ title: {
126
+ fontSize: RFValue(13),
127
+ fontWeight: 'bold',
128
+ marginBottom: scale(6)
129
+ },
130
+ body: {
131
+ fontSize: RFValue(11),
132
+ lineHeight: scale(16),
133
+ textAlign: 'auto'
134
+ },
135
+ scrollExpanded: {
136
+ maxHeight: verticalScale(250)
137
+ },
138
+ releaseYear: {
139
+ fontSize: RFValue(12),
140
+ fontWeight: '500',
141
+ marginBottom: scale(6),
142
+ letterSpacing: 0.3
143
+ },
144
+ toggleText: {
145
+ fontSize: RFValue(9.5),
146
+ fontWeight: '600',
147
+ marginTop: scale(4)
148
+ }
149
+ });
150
+ //# sourceMappingURL=AboutSection.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","useRef","useState","useCallback","useMemo","useSkeletonItems","View","StyleSheet","ScrollView","TouchableOpacity","Text","SkeletonPlaceholder","scale","verticalScale","RFValue","jsx","_jsx","jsxs","_jsxs","AboutSection","memo","theme","title","release_year","description","isLoading","style","expanded","setExpanded","scrollRef","skeletonItems","toggle","current","scrollTo","y","animated","prev","showToggle","length","containerStyle","styles","container","titleStyleMemo","bodyStyleMemo","body","scrollExpandedStyleMemo","scrollExpanded","releaseYearStyleMemo","releaseYear","toggleTextStyleMemo","toggleText","color","colors","primary","backgroundColor","skeletonBaseColor","highlightColor","skeletonHighlightColor","children","Item","paddingHorizontal","marginTop","width","height","borderRadius","marginBottom","skeletonLine","map","_","idx","onSurface","textPrimary","numberOfLines","ellipsizeMode","showsVerticalScrollIndicator","ref","nestedScrollEnabled","onPress","create","fontSize","fontWeight","lineHeight","textAlign","maxHeight","letterSpacing"],"sourceRoot":"../../../../../../src","sources":["components/ContentView/Two/components/AboutSection.tsx"],"mappings":";;AAAA;AACA;AACA;AACA;;AAEA,OAAOA,KAAK,IAAIC,MAAM,EAAEC,QAAQ,EAAEC,WAAW,EAAEC,OAAO,QAAQ,OAAO;AACrE,SAASC,gBAAgB,QAAQ,uCAAoC;AACrE,SACEC,IAAI,EACJC,UAAU,EACVC,UAAU,EACVC,gBAAgB,QAIX,cAAc;AACrB,SAASC,IAAI,QAAQ,wBAAe;AACpC,OAAOC,mBAAmB,MAAM,mCAAmC;AACnE,SAASC,KAAK,EAAEC,aAAa,QAAQ,2BAA2B;AAEhE,SAASC,OAAO,QAAQ,kCAAkC;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAoB3D,OAAO,MAAMC,YAAY,gBAAGnB,KAAK,CAACoB,IAAI,CACpC,CAAC;EACCC,KAAK;EACLC,KAAK,GAAG,OAAO;EACfC,YAAY;EACZC,WAAW;EACXC,SAAS,GAAG,KAAK;EACjBC;AACK,CAAC,KAAK;EACX,MAAM,CAACC,QAAQ,EAAEC,WAAW,CAAC,GAAG1B,QAAQ,CAAC,KAAK,CAAC;EAC/C,MAAM2B,SAAS,GAAG5B,MAAM,CAAa,IAAI,CAAC;EAC1C,MAAM6B,aAAa,GAAGzB,gBAAgB,CAAC,CAAC,CAAC;EAEzC,MAAM0B,MAAM,GAAG5B,WAAW,CAAC,MAAM;IAC/B,IAAIwB,QAAQ,EAAE;MACZE,SAAS,CAACG,OAAO,EAAEC,QAAQ,CAAC;QAAEC,CAAC,EAAE,CAAC;QAAEC,QAAQ,EAAE;MAAM,CAAC,CAAC;IACxD;IACAP,WAAW,CAAEQ,IAAI,IAAK,CAACA,IAAI,CAAC;EAC9B,CAAC,EAAE,CAACT,QAAQ,CAAC,CAAC;;EAEd;EACA,MAAMU,UAAU,GAAGjC,OAAO,CACxB,MAA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CAAC;EACDS,KAAK,EAAE;IACLyD,QAAQ,EAAEjE,OAAO,CAAC,EAAE,CAAC;IACrBkE,UAAU,EAAE,MAAM;IAClBf,YAAY,EAAErD,KAAK,CAAC,CAAC;EACvB,CAAC;EACDgC,IAAI,EAAE;IACJmC,QAAQ,EAAEjE,OAAO,CAAC,EAAE,CAAC;IACrBmE,UAAU,EAAErE,KAAK,CAAC,EAAE,CAAC;IACrBsE,SAAS,EAAE;EACb,CAAC;EACDpC,cAAc,EAAE;IACdqC,SAAS,EAAEtE,aAAa,CAAC,GAAG;EAC9B,CAAC;EACDmC,WAAW,EAAE;IACX+B,QAAQ,EAAEjE,OAAO,CAAC,EAAE,CAAC;IACrBkE,UAAU,EAAE,KAAK;IACjBf,YAAY,EAAErD,KAAK,CAAC,CAAC,CAAC;IACtBwE,aAAa,EAAE;EACjB,CAAC;EACDlC,UAAU,EAAE;IACV6B,QAAQ,EAAEjE,OAAO,CAAC,GAAG,CAAC;IACtBkE,UAAU,EAAE,KAAK;IACjBnB,SAAS,EAAEjD,KAAK,CAAC,CAAC;EACpB;AACF,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,156 @@
1
+ "use strict";
2
+
3
+ /**
4
+ * @author Ashok Desai
5
+ * @lastModified Sat 17 Jan 2026 at 02:28 PM
6
+ */
7
+
8
+ import React, { memo, useMemo } from 'react';
9
+ import { View, StyleSheet, ScrollView } from 'react-native';
10
+ import SkeletonPlaceholder from 'react-native-skeleton-placeholder';
11
+ import { scale, verticalScale } from 'react-native-size-matters';
12
+ import { RFValue } from 'react-native-responsive-fontsize';
13
+ import { Text } from "../../../Text/index.js";
14
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
15
+ const InfoRow = /*#__PURE__*/memo(({
16
+ label,
17
+ value,
18
+ theme
19
+ }) => {
20
+ const displayValue = value && value.trim().length > 0 ? value : 'N/A';
21
+ return /*#__PURE__*/_jsxs(View, {
22
+ style: styles.row,
23
+ children: [/*#__PURE__*/_jsx(Text, {
24
+ style: [styles.label, {
25
+ color: theme.colors.textPrimary
26
+ }],
27
+ children: label
28
+ }), /*#__PURE__*/_jsx(Text, {
29
+ style: [styles.value, {
30
+ color: theme.colors.textPrimary
31
+ }],
32
+ children: displayValue
33
+ })]
34
+ });
35
+ });
36
+ export const Details = ({
37
+ theme,
38
+ isLoading = false,
39
+ content
40
+ }) => {
41
+ const castList = useMemo(() => content?.cast ?? [], [content?.cast]);
42
+ const {
43
+ actors,
44
+ directors,
45
+ writers,
46
+ producers
47
+ } = useMemo(() => {
48
+ const grouped = {
49
+ actors: [],
50
+ directors: [],
51
+ writers: [],
52
+ producers: []
53
+ };
54
+ castList.forEach(person => {
55
+ switch (person.type) {
56
+ case 'actor':
57
+ grouped.actors.push(person);
58
+ break;
59
+ case 'director':
60
+ grouped.directors.push(person);
61
+ break;
62
+ case 'writer':
63
+ grouped.writers.push(person);
64
+ break;
65
+ case 'producer':
66
+ grouped.producers.push(person);
67
+ break;
68
+ default:
69
+ break;
70
+ }
71
+ });
72
+ return grouped;
73
+ }, [castList]);
74
+ if (isLoading) {
75
+ return /*#__PURE__*/_jsx(SkeletonPlaceholder, {
76
+ backgroundColor: theme.colors.skeletonBaseColor,
77
+ highlightColor: theme.colors.skeletonHighlightColor,
78
+ children: /*#__PURE__*/_jsx(SkeletonPlaceholder.Item, {
79
+ paddingHorizontal: scale(14),
80
+ marginTop: verticalScale(16),
81
+ children: Array.from({
82
+ length: 6
83
+ }).map((_, index) => /*#__PURE__*/_jsxs(SkeletonPlaceholder.Item, {
84
+ flexDirection: "row",
85
+ alignItems: "center",
86
+ marginBottom: verticalScale(14),
87
+ children: [/*#__PURE__*/_jsx(SkeletonPlaceholder.Item, {
88
+ width: scale(120),
89
+ height: verticalScale(14),
90
+ borderRadius: 4
91
+ }), /*#__PURE__*/_jsx(SkeletonPlaceholder.Item, {
92
+ flex: 1,
93
+ height: verticalScale(14),
94
+ marginLeft: scale(12),
95
+ borderRadius: 4
96
+ })]
97
+ }, index))
98
+ })
99
+ });
100
+ }
101
+ return /*#__PURE__*/_jsxs(ScrollView, {
102
+ style: styles.container,
103
+ contentContainerStyle: styles.content,
104
+ showsVerticalScrollIndicator: false,
105
+ children: [/*#__PURE__*/_jsx(InfoRow, {
106
+ label: "Year of release",
107
+ value: content?.release_year ? String(content.release_year) : 'N/A',
108
+ theme: theme
109
+ }), /*#__PURE__*/_jsx(InfoRow, {
110
+ label: "Cast",
111
+ value: actors.map(a => a.name).join(', '),
112
+ theme: theme
113
+ }), /*#__PURE__*/_jsx(InfoRow, {
114
+ label: "Director",
115
+ value: directors.map(d => d.name).join(', '),
116
+ theme: theme
117
+ }), /*#__PURE__*/_jsx(InfoRow, {
118
+ label: "Writers",
119
+ value: writers.map(w => w.name).join(', '),
120
+ theme: theme
121
+ }), /*#__PURE__*/_jsx(InfoRow, {
122
+ label: "Producers",
123
+ value: producers.map(p => p.name).join(', '),
124
+ theme: theme
125
+ }), /*#__PURE__*/_jsx(InfoRow, {
126
+ label: "Maturity",
127
+ value: content?.u_age,
128
+ theme: theme
129
+ })]
130
+ });
131
+ };
132
+ const styles = StyleSheet.create({
133
+ container: {
134
+ flex: 1
135
+ },
136
+ content: {
137
+ paddingHorizontal: scale(14),
138
+ paddingBottom: verticalScale(24)
139
+ },
140
+ row: {
141
+ flexDirection: 'row',
142
+ marginBottom: verticalScale(16),
143
+ alignItems: 'flex-start'
144
+ },
145
+ label: {
146
+ flex: 0.55,
147
+ fontSize: RFValue(11),
148
+ lineHeight: RFValue(20),
149
+ opacity: 0.85
150
+ },
151
+ value: {
152
+ flex: 0.55,
153
+ fontSize: RFValue(11)
154
+ }
155
+ });
156
+ //# sourceMappingURL=Details.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","memo","useMemo","View","StyleSheet","ScrollView","SkeletonPlaceholder","scale","verticalScale","RFValue","Text","jsx","_jsx","jsxs","_jsxs","InfoRow","label","value","theme","displayValue","trim","length","style","styles","row","children","color","colors","textPrimary","Details","isLoading","content","castList","cast","actors","directors","writers","producers","grouped","forEach","person","type","push","backgroundColor","skeletonBaseColor","highlightColor","skeletonHighlightColor","Item","paddingHorizontal","marginTop","Array","from","map","_","index","flexDirection","alignItems","marginBottom","width","height","borderRadius","flex","marginLeft","container","contentContainerStyle","showsVerticalScrollIndicator","release_year","String","a","name","join","d","w","p","u_age","create","paddingBottom","fontSize","lineHeight","opacity"],"sourceRoot":"../../../../../../src","sources":["components/ContentView/Two/components/Details.tsx"],"mappings":";;AAAA;AACA;AACA;AACA;;AAEA,OAAOA,KAAK,IAAIC,IAAI,EAAEC,OAAO,QAAQ,OAAO;AAC5C,SAASC,IAAI,EAAEC,UAAU,EAAEC,UAAU,QAAQ,cAAc;AAC3D,OAAOC,mBAAmB,MAAM,mCAAmC;AACnE,SAASC,KAAK,EAAEC,aAAa,QAAQ,2BAA2B;AAChE,SAASC,OAAO,QAAQ,kCAAkC;AAC1D,SAASC,IAAI,QAAQ,wBAAe;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAgBrC,MAAMC,OAAO,gBAAGd,IAAI,CAClB,CAAC;EACCe,KAAK;EACLC,KAAK;EACLC;AAKF,CAAC,KAAK;EACJ,MAAMC,YAAY,GAAGF,KAAK,IAAIA,KAAK,CAACG,IAAI,CAAC,CAAC,CAACC,MAAM,GAAG,CAAC,GAAGJ,KAAK,GAAG,KAAK;EAErE,oBACEH,KAAA,CAACX,IAAI;IAACmB,KAAK,EAAEC,MAAM,CAACC,GAAI;IAAAC,QAAA,gBACtBb,IAAA,CAACF,IAAI;MAACY,KAAK,EAAE,CAACC,MAAM,CAACP,KAAK,EAAE;QAAEU,KAAK,EAAER,KAAK,CAACS,MAAM,CAACC;MAAY,CAAC,CAAE;MAAAH,QAAA,EAC9DT;IAAK,CACF,CAAC,eAEPJ,IAAA,CAACF,IAAI;MAACY,KAAK,EAAE,CAACC,MAAM,CAACN,KAAK,EAAE;QAAES,KAAK,EAAER,KAAK,C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