@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
@@ -1,313 +0,0 @@
1
- "use strict";
2
-
3
- /**
4
- * @author Ashok Desai
5
- * @lastModified oct 02 Oct 2025 at 10:30 AM
6
- */
7
- import React, { useState, useRef, useMemo, useCallback } from 'react';
8
- import { View, StyleSheet, Dimensions, TouchableOpacity, ActivityIndicator } from 'react-native';
9
- import { scale } from 'react-native-size-matters';
10
- import { RFValue } from 'react-native-responsive-fontsize';
11
- import { Text } from "../../Text/index.js";
12
- import AppHeader from "../../Headers/AppHeader.js";
13
- import { useInternalTheme } from "../../../theme/hook/useInternalTheme.js";
14
- import { Camera as CameraIcon, QrCode } from 'lucide-react-native';
15
- import { Camera, useCameraDevice, useCameraPermission, useCodeScanner } from 'react-native-vision-camera';
16
- import QrViewArea from "./components/QrViewArea.js";
17
- import { AppStatusBar } from "../../common/AppStatusBar.js";
18
- import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
19
- const {
20
- width: SCREEN_W,
21
- height: SCREEN_H
22
- } = Dimensions.get('window');
23
- const HEADER_HEIGHT = 25;
24
-
25
- // QR Detection constants
26
- const SCAN_DELAY_MS = 1000; // Delay before triggering scan (reduced for faster response)
27
- const RESET_DELAY_MS = 1000; // Delay before resetting scan state (reduced for faster response)
28
-
29
- const DEFAULTS = {
30
- title: 'QR Login',
31
- description: 'Please move your camera over the QR Code',
32
- scanButtonText: 'Scan QR Code',
33
- cameraType: 'back'
34
- };
35
- export const QrLogin = /*#__PURE__*/React.memo(({
36
- title = DEFAULTS.title,
37
- description = DEFAULTS.description,
38
- scanButtonText = DEFAULTS.scanButtonText,
39
- onBackPress,
40
- onScanSuccess,
41
- theme
42
- }) => {
43
- const {
44
- theme: appliedTheme
45
- } = useInternalTheme(theme);
46
- const {
47
- colors
48
- } = appliedTheme;
49
- const [scanActive, setScanActive] = useState(false);
50
- const [requesting, setRequesting] = useState(false);
51
- const device = useCameraDevice(DEFAULTS.cameraType);
52
- const {
53
- hasPermission,
54
- requestPermission
55
- } = useCameraPermission();
56
- const scanTimer = useRef(null);
57
- const lastValueRef = useRef(null);
58
- const isScanning = useRef(false);
59
-
60
- // Cleanup timers on unmount
61
- React.useEffect(() => {
62
- return () => {
63
- if (scanTimer.current) {
64
- clearTimeout(scanTimer.current);
65
- }
66
- };
67
- }, []);
68
-
69
- // Handle code scanned
70
- const handleCodeScanned = useCallback(codes => {
71
- // Skip if already processing a scan
72
- if (isScanning.current || codes.length === 0) return;
73
-
74
- // Find first valid QR code
75
- for (const code of codes) {
76
- const value = code?.value;
77
- if (!value) continue;
78
-
79
- // Skip if same code was just scanned
80
- if (lastValueRef.current === value) return;
81
-
82
- // Clear any existing timer
83
- if (scanTimer.current) {
84
- clearTimeout(scanTimer.current);
85
- }
86
-
87
- // Update last scanned value
88
- lastValueRef.current = value;
89
-
90
- // Delay scan trigger to avoid rapid multiple scans
91
- scanTimer.current = setTimeout(() => {
92
- isScanning.current = true;
93
- setScanActive(false);
94
- onScanSuccess?.(value);
95
-
96
- // Reset scan state after processing
97
- setTimeout(() => {
98
- isScanning.current = false;
99
- lastValueRef.current = null;
100
- }, RESET_DELAY_MS);
101
- }, SCAN_DELAY_MS);
102
-
103
- // Process only first valid code
104
- break;
105
- }
106
- }, [onScanSuccess]);
107
-
108
- // ---- Code Scanner ----
109
- const codeScanner = useCodeScanner({
110
- codeTypes: ['qr'],
111
- onCodeScanned: handleCodeScanned
112
- });
113
- const startScan = useCallback(async () => {
114
- if (!hasPermission) {
115
- setRequesting(true);
116
- try {
117
- const granted = await requestPermission();
118
- setRequesting(false);
119
- if (!granted) return;
120
- } catch (error) {
121
- setRequesting(false);
122
- console.warn('Camera permission request failed:', error);
123
- return;
124
- }
125
- }
126
- setScanActive(true);
127
- }, [hasPermission, requestPermission]);
128
-
129
- // Memoize container style
130
- const containerStyle = useMemo(() => [styles.container, {
131
- backgroundColor: colors.background
132
- }], [colors.background]);
133
-
134
- // Memoize header wrapper style
135
- const headerWrapperStyle = useMemo(() => [styles.headerWrapper, {
136
- height: HEADER_HEIGHT
137
- }], []);
138
-
139
- // Memoize center style
140
- const centerStyle = useMemo(() => [styles.center, {
141
- backgroundColor: colors.background
142
- }], [colors.background]);
143
-
144
- // Memoize description text style
145
- const descTextStyle = useMemo(() => [styles.descText, {
146
- color: colors.textPrimary
147
- }], [colors.textPrimary]);
148
-
149
- // Memoize QR box style
150
- const qrBoxStyle = useMemo(() => [styles.qrBox, {
151
- borderColor: colors.primary,
152
- backgroundColor: colors.skeletonBaseColor
153
- }], [colors.primary, colors.skeletonBaseColor]);
154
-
155
- // Memoize scan button style
156
- const scanBtnStyle = useMemo(() => [styles.scanBtn, {
157
- borderColor: colors.button
158
- }], [colors.button]);
159
-
160
- // Memoize scan text style
161
- const scanTextStyle = useMemo(() => [styles.scanText, {
162
- color: colors.button
163
- }], [colors.button]);
164
-
165
- // Memoize no camera text style
166
- const noCameraTextStyle = useMemo(() => ({
167
- color: colors.textPrimary,
168
- fontSize: RFValue(16)
169
- }), [colors.textPrimary]);
170
- return /*#__PURE__*/_jsxs(View, {
171
- style: containerStyle,
172
- children: [/*#__PURE__*/_jsx(AppStatusBar, {
173
- theme: theme
174
- }), /*#__PURE__*/_jsx(View, {
175
- style: headerWrapperStyle,
176
- children: /*#__PURE__*/_jsx(AppHeader, {
177
- title: title,
178
- onBackPress: onBackPress,
179
- theme: theme,
180
- titleAlign: "left"
181
- })
182
- }), /*#__PURE__*/_jsx(View, {
183
- style: styles.cameraWrapper,
184
- children: scanActive ? device ? /*#__PURE__*/_jsxs(_Fragment, {
185
- children: [/*#__PURE__*/_jsx(Camera, {
186
- style: StyleSheet.absoluteFill,
187
- device: device,
188
- isActive: true,
189
- codeScanner: codeScanner,
190
- enableFpsGraph: false
191
- }), /*#__PURE__*/_jsx(QrViewArea, {
192
- theme: theme,
193
- headerHeight: HEADER_HEIGHT
194
- })]
195
- }) : /*#__PURE__*/_jsx(View, {
196
- style: centerStyle,
197
- children: /*#__PURE__*/_jsx(Text, {
198
- style: noCameraTextStyle,
199
- children: "No camera available"
200
- })
201
- }) : /*#__PURE__*/_jsx(View, {
202
- style: styles.content,
203
- children: /*#__PURE__*/_jsxs(View, {
204
- style: styles.card,
205
- children: [/*#__PURE__*/_jsx(CameraIcon, {
206
- size: scale(50),
207
- color: colors.button,
208
- strokeWidth: 1.6,
209
- style: styles.iconMargin
210
- }), /*#__PURE__*/_jsx(Text, {
211
- style: descTextStyle,
212
- children: description
213
- }), /*#__PURE__*/_jsx(View, {
214
- style: qrBoxStyle,
215
- children: /*#__PURE__*/_jsx(QrCode, {
216
- size: scale(180),
217
- color: colors.button,
218
- strokeWidth: 1.6
219
- })
220
- }), /*#__PURE__*/_jsxs(TouchableOpacity, {
221
- style: scanBtnStyle,
222
- onPress: startScan,
223
- activeOpacity: 0.85,
224
- children: [/*#__PURE__*/_jsx(CameraIcon, {
225
- size: scale(22),
226
- color: colors.button,
227
- strokeWidth: 2,
228
- style: styles.buttonIconMargin
229
- }), /*#__PURE__*/_jsx(Text, {
230
- style: scanTextStyle,
231
- children: scanButtonText
232
- })]
233
- }), requesting && /*#__PURE__*/_jsx(ActivityIndicator, {
234
- style: styles.loaderMargin,
235
- color: colors.primary
236
- })]
237
- })
238
- })
239
- })]
240
- });
241
- });
242
- const styles = StyleSheet.create({
243
- container: {
244
- flex: 1
245
- },
246
- headerWrapper: {
247
- position: 'absolute',
248
- top: 0,
249
- left: 0,
250
- right: 0,
251
- zIndex: 20,
252
- elevation: 20
253
- },
254
- cameraWrapper: {
255
- flex: 1,
256
- top: HEADER_HEIGHT
257
- },
258
- center: {
259
- flex: 1,
260
- alignItems: 'center',
261
- justifyContent: 'center'
262
- },
263
- content: {
264
- flex: 1,
265
- justifyContent: 'center',
266
- alignItems: 'center',
267
- padding: scale(14),
268
- marginBottom: scale(50)
269
- },
270
- card: {
271
- width: SCREEN_W - scale(40),
272
- minHeight: SCREEN_H / 2.5,
273
- alignItems: 'center',
274
- padding: scale(20)
275
- },
276
- descText: {
277
- fontSize: RFValue(15),
278
- textAlign: 'center',
279
- marginVertical: scale(12)
280
- },
281
- qrBox: {
282
- marginVertical: scale(20),
283
- padding: scale(20),
284
- borderWidth: 2,
285
- borderRadius: scale(12),
286
- justifyContent: 'center',
287
- alignItems: 'center'
288
- },
289
- scanBtn: {
290
- flexDirection: 'row',
291
- alignItems: 'center',
292
- borderWidth: scale(2),
293
- borderRadius: scale(12),
294
- paddingVertical: scale(10),
295
- paddingHorizontal: scale(25),
296
- marginTop: scale(20)
297
- },
298
- scanText: {
299
- fontWeight: '600',
300
- fontSize: RFValue(14)
301
- },
302
- iconMargin: {
303
- marginBottom: scale(12)
304
- },
305
- buttonIconMargin: {
306
- marginRight: 10
307
- },
308
- loaderMargin: {
309
- marginTop: scale(12)
310
- }
311
- });
312
- export default QrLogin;
313
- //# sourceMappingURL=QrLogin.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["React","useState","useRef","useMemo","useCallback","View","StyleSheet","Dimensions","TouchableOpacity","ActivityIndicator","scale","RFValue","Text","AppHeader","useInternalTheme","Camera","CameraIcon","QrCode","useCameraDevice","useCameraPermission","useCodeScanner","QrViewArea","AppStatusBar","jsx","_jsx","Fragment","_Fragment","jsxs","_jsxs","width","SCREEN_W","height","SCREEN_H","get","HEADER_HEIGHT","SCAN_DELAY_MS","RESET_DELAY_MS","DEFAULTS","title","description","scanButtonText","cameraType","QrLogin","memo","onBackPress","onScanSuccess","theme","appliedTheme","colors","scanActive","setScanActive","requesting","setRequesting","device","hasPermission","requestPermission","scanTimer","lastValueRef","isScanning","useEffect","current","clearTimeout","handleCodeScanned","codes","length","code","value","setTimeout","codeScanner","codeTypes","onCodeScanned","startScan","granted","error","console","warn","containerStyle","styles","container","backgroundColor","background","headerWrapperStyle","headerWrapper","centerStyle","center","descTextStyle","descText","color","textPrimary","qrBoxStyle","qrBox","borderColor","primary","skeletonBaseColor","scanBtnStyle","scanBtn","button","scanTextStyle","scanText","noCameraTextStyle","fontSize","style","children","titleAlign","cameraWrapper","absoluteFill","isActive","enableFpsGraph","headerHeight","content","card","size","strokeWidth","iconMargin","onPress","activeOpacity","buttonIconMargin","loaderMargin","create","flex","position","top","left","right","zIndex","elevation","alignItems","justifyContent","padding","marginBottom","minHeight","textAlign","marginVertical","borderWidth","borderRadius","flexDirection","paddingVertical","paddingHorizontal","marginTop","fontWeight","marginRight"],"sourceRoot":"../../../../../src","sources":["components/Auth/QrLogin/QrLogin.tsx"],"mappings":";;AAAA;AACA;AACA;AACA;AACA,OAAOA,KAAK,IAAIC,QAAQ,EAAEC,MAAM,EAAEC,OAAO,EAAEC,WAAW,QAAQ,OAAO;AACrE,SACEC,IAAI,EACJC,UAAU,EACVC,UAAU,EACVC,gBAAgB,EAChBC,iBAAiB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AK,CAAC,EAAE,CAAC;IAC5BgI,SAAS,EAAEhI,KAAK,CAAC,EAAE;EACrB,CAAC;EACDwF,QAAQ,EAAE;IAAEyC,UAAU,EAAE,KAAK;IAAEvC,QAAQ,EAAEzF,OAAO,CAAC,EAAE;EAAE,CAAC;EACtDsG,UAAU,EAAE;IAAEgB,YAAY,EAAEvH,KAAK,CAAC,EAAE;EAAE,CAAC;EACvC0G,gBAAgB,EAAE;IAAEwB,WAAW,EAAE;EAAG,CAAC;EACrCvB,YAAY,EAAE;IAAEqB,SAAS,EAAEhI,KAAK,CAAC,EAAE;EAAE;AACvC,CAAC,CAAC;AAEF,eAAegC,OAAO","ignoreList":[]}
@@ -1,243 +0,0 @@
1
- "use strict";
2
-
3
- /**
4
- * @author Ashok Desai
5
- * @lastModified oct 02 Oct 2025 at 10:30 AM
6
- */
7
- import React, { useEffect, useRef, useMemo, useCallback } from 'react';
8
- import { View, StyleSheet, Animated, Easing, Dimensions, Platform } from 'react-native';
9
- import { scale } from 'react-native-size-matters';
10
- import { useInternalTheme } from "../../../../theme/hook/useInternalTheme.js";
11
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
12
- const {
13
- width: SCREEN_W,
14
- height: SCREEN_H
15
- } = Dimensions.get('window');
16
-
17
- // Constants
18
- const ANIMATION_DURATION = 2000;
19
- const CORNER_SIZE = 18;
20
- const CORNER_BORDER_WIDTH = 3;
21
- const SCAN_LINE_HEIGHT = 3;
22
- const SCAN_LINE_MARGIN = 12;
23
- const QrViewArea = /*#__PURE__*/React.memo(({
24
- scanBoxWidth,
25
- headerHeight = 60,
26
- theme
27
- }) => {
28
- const {
29
- theme: appliedTheme
30
- } = useInternalTheme(theme);
31
- const {
32
- colors
33
- } = appliedTheme;
34
- const anim = useRef(new Animated.Value(0)).current;
35
-
36
- // Memoize box dimensions with better calculations (fix gap on right side)
37
- const boxDimensions = useMemo(() => {
38
- const defaultBoxW = scanBoxWidth || Math.min(SCREEN_W * 0.7, 320);
39
- const boxW = defaultBoxW * 0.9;
40
- const boxH = boxW;
41
- const availableHeight = SCREEN_H - headerHeight;
42
- const boxTop = Math.max(headerHeight, Math.floor(headerHeight + (availableHeight - boxH) / 2 - scale(40)));
43
- const topOverlayHeight = Math.max(0, Math.floor(boxTop - headerHeight));
44
- const bottomOverlayHeight = Math.max(0, Math.floor(SCREEN_H - (boxTop + boxH)));
45
- // Calculate left overlay width
46
- const leftOverlayWidth = Math.floor((SCREEN_W - boxW) / 2);
47
- // Calculate right overlay width to fill remaining space (fix gap)
48
- const scanBoxLeft = leftOverlayWidth;
49
- const scanBoxRight = scanBoxLeft + boxW;
50
- const rightOverlayWidth = Math.max(0, SCREEN_W - scanBoxRight);
51
- return {
52
- boxW,
53
- boxH,
54
- boxTop,
55
- topOverlayHeight,
56
- bottomOverlayHeight,
57
- sideOverlayWidth: leftOverlayWidth,
58
- rightOverlayWidth
59
- };
60
- }, [scanBoxWidth, headerHeight]);
61
- const margin = useMemo(() => scale(SCAN_LINE_MARGIN), []);
62
- const lineTravel = useMemo(() => Math.max(0, boxDimensions.boxH - margin * 2 - scale(SCAN_LINE_HEIGHT)), [boxDimensions.boxH, margin]);
63
- const translateY = useMemo(() => anim.interpolate({
64
- inputRange: [0, 1],
65
- outputRange: [0, lineTravel]
66
- }), [anim, lineTravel]);
67
-
68
- // Memoize animation config
69
- const animationConfig = useMemo(() => ({
70
- duration: ANIMATION_DURATION,
71
- easing: Easing.linear,
72
- useNativeDriver: true
73
- }), []);
74
- useEffect(() => {
75
- const animation = Animated.loop(Animated.sequence([Animated.timing(anim, {
76
- toValue: 1,
77
- ...animationConfig
78
- }), Animated.timing(anim, {
79
- toValue: 0,
80
- ...animationConfig
81
- })]));
82
- animation.start();
83
- return () => animation.stop();
84
- }, [anim, animationConfig]);
85
-
86
- // Memoize corner positions
87
- const cornerPositions = useMemo(() => ['tl', 'tr', 'bl', 'br'], []);
88
-
89
- // Memoize overlay color
90
- const overlayColor = useMemo(() => colors.overlay || 'rgba(0, 0, 0, 0.6)', [colors.overlay]);
91
-
92
- // Memoize all overlay components in one array (optimized - created once)
93
- const overlayComponents = useMemo(() => [{
94
- key: 'top',
95
- style: [styles.overlayTop, {
96
- top: headerHeight,
97
- height: Math.max(0, boxDimensions.topOverlayHeight),
98
- backgroundColor: overlayColor
99
- }]
100
- }, {
101
- key: 'bottom',
102
- style: [styles.overlayBottom, {
103
- top: boxDimensions.boxTop + boxDimensions.boxH,
104
- height: Math.max(0, boxDimensions.bottomOverlayHeight),
105
- backgroundColor: overlayColor
106
- }]
107
- }, {
108
- key: 'left',
109
- style: [styles.overlaySide, {
110
- left: 0,
111
- top: boxDimensions.boxTop,
112
- height: boxDimensions.boxH,
113
- width: Math.max(0, boxDimensions.sideOverlayWidth),
114
- backgroundColor: overlayColor
115
- }]
116
- }, {
117
- key: 'right',
118
- style: [styles.overlaySide, {
119
- right: 0,
120
- top: boxDimensions.boxTop,
121
- height: boxDimensions.boxH,
122
- width: Math.max(0, boxDimensions.rightOverlayWidth),
123
- backgroundColor: overlayColor
124
- }]
125
- }], [headerHeight, boxDimensions.topOverlayHeight, boxDimensions.boxTop, boxDimensions.boxH, boxDimensions.bottomOverlayHeight, boxDimensions.sideOverlayWidth, boxDimensions.rightOverlayWidth, overlayColor]);
126
-
127
- // Memoize scan box style with proper positioning (ensure no gap on right)
128
- const scanBoxStyle = useMemo(() => [styles.scanBox, {
129
- top: boxDimensions.boxTop,
130
- left: boxDimensions.sideOverlayWidth,
131
- width: boxDimensions.boxW,
132
- height: boxDimensions.boxH
133
- }], [boxDimensions.boxTop, boxDimensions.sideOverlayWidth, boxDimensions.boxW, boxDimensions.boxH]);
134
-
135
- // Memoize corner styles for better performance
136
- const cornerSize = useMemo(() => scale(CORNER_SIZE), []);
137
- const cornerBorderWidth = useMemo(() => scale(CORNER_BORDER_WIDTH), []);
138
- const getCornerStyle = useCallback(c => {
139
- const baseStyle = [styles.corner, styles[`corner_${c}`]];
140
- const dynamicStyle = {
141
- borderColor: colors.button,
142
- width: cornerSize,
143
- height: cornerSize,
144
- borderTopWidth: c.startsWith('t') ? cornerBorderWidth : 0,
145
- borderBottomWidth: c.startsWith('b') ? cornerBorderWidth : 0,
146
- borderLeftWidth: c.endsWith('l') ? cornerBorderWidth : 0,
147
- borderRightWidth: c.endsWith('r') ? cornerBorderWidth : 0
148
- };
149
- return [...baseStyle, dynamicStyle];
150
- }, [colors.button, cornerSize, cornerBorderWidth]);
151
-
152
- // Memoize animated line style
153
- const scanLineHeight = useMemo(() => scale(SCAN_LINE_HEIGHT), []);
154
- const animatedLineStyle = useMemo(() => ({
155
- position: 'absolute',
156
- top: margin,
157
- left: margin,
158
- right: margin,
159
- height: scanLineHeight,
160
- borderRadius: scanLineHeight / 2,
161
- backgroundColor: colors.button,
162
- transform: [{
163
- translateY
164
- }],
165
- shadowColor: colors.shadow || '#000',
166
- shadowOffset: {
167
- width: 0,
168
- height: 2
169
- },
170
- shadowOpacity: 0.4,
171
- shadowRadius: 4,
172
- elevation: Platform.OS === 'android' ? 5 : 0
173
- }), [margin, scanLineHeight, colors.button, colors.shadow, translateY]);
174
-
175
- // Memoize corner components for better performance (used in both layouts)
176
- const cornerComponents = useMemo(() => cornerPositions.map(c => /*#__PURE__*/_jsx(View, {
177
- style: getCornerStyle(c)
178
- }, c)), [cornerPositions, getCornerStyle]);
179
- return /*#__PURE__*/_jsxs(View, {
180
- style: styles.container,
181
- pointerEvents: "box-none",
182
- children: [overlayComponents.map(overlay => /*#__PURE__*/_jsx(View, {
183
- style: overlay.style
184
- }, overlay.key)), /*#__PURE__*/_jsxs(View, {
185
- style: scanBoxStyle,
186
- pointerEvents: "none",
187
- children: [cornerComponents, /*#__PURE__*/_jsx(Animated.View, {
188
- style: animatedLineStyle
189
- })]
190
- })]
191
- });
192
- });
193
- const styles = StyleSheet.create({
194
- container: {
195
- ...StyleSheet.absoluteFillObject,
196
- zIndex: 10
197
- },
198
- overlayTop: {
199
- position: 'absolute',
200
- left: 0,
201
- right: 0,
202
- zIndex: 1
203
- },
204
- overlayBottom: {
205
- position: 'absolute',
206
- left: 0,
207
- right: 0,
208
- zIndex: 1
209
- },
210
- overlaySide: {
211
- position: 'absolute',
212
- zIndex: 1
213
- },
214
- scanBox: {
215
- position: 'absolute',
216
- justifyContent: 'center',
217
- alignItems: 'center',
218
- overflow: 'hidden',
219
- zIndex: 2
220
- },
221
- corner: {
222
- position: 'absolute',
223
- zIndex: 3
224
- },
225
- corner_tl: {
226
- top: 0,
227
- left: 0
228
- },
229
- corner_tr: {
230
- top: 0,
231
- right: 0
232
- },
233
- corner_bl: {
234
- bottom: 0,
235
- left: 0
236
- },
237
- corner_br: {
238
- bottom: 0,
239
- right: 0
240
- }
241
- });
242
- export default QrViewArea;
243
- //# sourceMappingURL=QrViewArea.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["React","useEffect","useRef","useMemo","useCallback","View","StyleSheet","Animated","Easing","Dimensions","Platform","scale","useInternalTheme","jsx","_jsx","jsxs","_jsxs","width","SCREEN_W","height","SCREEN_H","get","ANIMATION_DURATION","CORNER_SIZE","CORNER_BORDER_WIDTH","SCAN_LINE_HEIGHT","SCAN_LINE_MARGIN","QrViewArea","memo","scanBoxWidth","headerHeight","theme","appliedTheme","colors","anim","Value","current","boxDimensions","defaultBoxW","Math","min","boxW","boxH","availableHeight","boxTop","max","floor","topOverlayHeight","bottomOverlayHeight","leftOverlayWidth","scanBoxLeft","scanBoxRight","rightOverlayWidth","sideOverlayWidth","margin","lineTravel","translateY","interpolate","inputRange","outputRange","animationConfig","duration","easing","linear","useNativeDriver","animation","loop","sequence","timing","toValue","start","stop","cornerPositions","overlayColor","overlay","overlayComponents","key","style","styles","overlayTop","top","backgroundColor","overlayBottom","overlaySide","left","right","scanBoxStyle","scanBox","cornerSize","cornerBorderWidth","getCornerStyle","c","baseStyle","corner","dynamicStyle","borderColor","button","borderTopWidth","startsWith","borderBottomWidth","borderLeftWidth","endsWith","borderRightWidth","scanLineHeight","animatedLineStyle","position","borderRadius","transform","shadowColor","shadow","shadowOffset","shadowOpacity","shadowRadius","elevation","OS","cornerComponents","map","container","pointerEvents","children","create","absoluteFillObject","zIndex","justifyContent","alignItems","overflow","corner_tl","corner_tr","corner_bl","bottom","corner_br"],"sourceRoot":"../../../../../../src","sources":["components/Auth/QrLogin/components/QrViewArea.tsx"],"mappings":";;AAAA;AACA;AACA;AACA;AACA,OAAOA,KAAK,IAAIC,SAAS,EAAEC,MAAM,EAAEC,OAAO,EAAEC,WAAW,QAAQ,OAAO;AACtE,SACEC,IAAI,EACJC,UAAU,EACVC,QAAQ,EACRC,MAAM,EACNC,UAAU,EACVC,QAAQ,QACH,cAAc;AACrB,SAASC,KAAK,QAAQ,2BAA2B;AAEjD,SAASC,gBAAgB,QAAQ,4CAAyC;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAE3E,MAAM;EAAEC,KAAK,EAAEC,QAAQ;EAAEC,MAAM,EAAEC;AAAS,CAAC,GAAGX,UAAU,CAACY,GAAG,CAAC,QAAQ,CAAC;;AAEtE;AACA,MAAMC,kBAAkB,GAAG,IAAI;AAC/B,MAAMC,WAAW,GAAG,EAAE;AACtB,MAAMC,mBAAmB,GAAG,CAAC;AAC7B,MAAMC,gBAAgB,GAAG,CAAC;AAC1B,MAAMC,gBAAgB,GAAG,EAAE;AAQ3B,MAAMC,UAAqC,gBAAG3B,KAAK,CAAC4B,IAAI,CACtD,CAAC;EAAEC,YAAY;EAAEC,YAAY,GAAG,EAAE;EAAEC;AAAM,CAAC,KAAK;EAC9C,MAAM;IAAEA,KAAK,EAAEC;EAAa,CAAC,GAAGpB,gBAAgB,CAACmB,KAAK,CAAC;EACvD,MAAM;IAAEE;EAAO,CAAC,GAAGD,YAAY;EAE/B,MAAME,IAAI,GAAGhC,MAAM,CAAC,IAAIK,QAAQ,CAAC4B,KAAK,CAAC,CAAC,CAAC,CAAC,CAACC,OAAO;;EAElD;EACA,MAAMC,aAAa,GAAGlC,O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